Compare commits

...

4 Commits

Author SHA1 Message Date
05b2b09395 1.0.103 2022-12-06 14:07:12 +01:00
4dbd4f84c1 fix(core): update 2022-12-06 14:07:12 +01:00
bb0ca2f19d 1.0.102 2022-12-06 13:32:01 +01:00
55175f9ac7 fix(core): update 2022-12-06 13:32:00 +01:00
6 changed files with 28 additions and 9 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@designestate/dees-catalog", "name": "@designestate/dees-catalog",
"version": "1.0.101", "version": "1.0.103",
"private": false, "private": false,
"description": "website for lossless.com", "description": "website for lossless.com",
"main": "dist_ts_web/index.js", "main": "dist_ts_web/index.js",

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@designestate/dees-catalog', name: '@designestate/dees-catalog',
version: '1.0.101', version: '1.0.103',
description: 'website for lossless.com' description: 'website for lossless.com'
} }

View File

@ -86,6 +86,9 @@ export class DeesIcon extends DeesElement {
display: block; display: block;
line-height: inherit; line-height: inherit;
font-size: inherit; font-size: inherit;
margin: 0px;
padding: 0px;
white-space: nowrap;
} }
#iconContainer svg { #iconContainer svg {
display: inline-block; display: inline-block;
@ -104,7 +107,7 @@ export class DeesIcon extends DeesElement {
word-wrap: normal; word-wrap: normal;
white-space: nowrap; white-space: nowrap;
direction: ltr; direction: ltr;
/* Support for all WebKit browsers. */ /* Support for all WebKit browsers. */
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
/* Support for Safari and Chrome. */ /* Support for Safari and Chrome. */

View File

@ -19,7 +19,7 @@ declare global {
@customElement('dees-input-fileupload') @customElement('dees-input-fileupload')
export class DeesInputFileupload extends DeesElement { export class DeesInputFileupload extends DeesElement {
public static demo = () => html`<dees-input-fileupload></dees-input-fileupload>`; public static demo = () => html`<dees-input-fileupload .label=${'Attachments'}></dees-input-fileupload>`;
// INSTANCE // INSTANCE
public changeSubject = new domtools.rxjs.Subject(); public changeSubject = new domtools.rxjs.Subject();
@ -73,6 +73,7 @@ export class DeesInputFileupload extends DeesElement {
.maincontainer { .maincontainer {
color: ${cssManager.bdTheme('#333', '#ccc')}; color: ${cssManager.bdTheme('#333', '#ccc')};
} }
.label { .label {
@ -89,6 +90,12 @@ export class DeesInputFileupload extends DeesElement {
border-radius: 3px; border-radius: 3px;
text-align: center; text-align: center;
} }
.uploadButton:hover {
color: #fff;
background: rgb(3, 155, 229);
}
.uploadButton::after { .uploadButton::after {
top: 2px; top: 2px;
right: 2px; right: 2px;
@ -109,10 +116,16 @@ export class DeesInputFileupload extends DeesElement {
.uploadCandidate { .uploadCandidate {
text-align: left; text-align: left;
border-bottom: 1px dashed #444; border-bottom: 1px dashed #444;
color: #fff; color: ${cssManager.bdTheme('#666', '#ccc')};
padding: 8px; padding: 8px;
font-family: 'Roboto Mono'; font-family: 'Roboto Mono';
} }
.uploadButton:hover .uploadCandidate {
color: ${cssManager.bdTheme('#fff', '#fff')};
border-bottom: 1px dashed #fff;
}
.uploadCandidate:last-child { .uploadCandidate:last-child {
margin-bottom: 8px; margin-bottom: 8px;
} }

View File

View File

@ -19,7 +19,7 @@ declare global {
export interface IDataAction<T = any> { export interface IDataAction<T = any> {
name: string; name: string;
icon: string; iconName: string;
useTableBehaviour?: 'upload' | 'cancelUpload' | 'none'; useTableBehaviour?: 'upload' | 'cancelUpload' | 'none';
actionFunc: (itemArg: T) => Promise<any>; actionFunc: (itemArg: T) => Promise<any>;
} }
@ -70,7 +70,7 @@ export class DeesTable<T> extends DeesElement {
]} ]}
.dataActions="${[{ .dataActions="${[{
name: 'upload', name: 'upload',
icon: 'upload', iconName: 'upload',
useTableBehaviour: 'upload', useTableBehaviour: 'upload',
actionFunc: async (itemArg: any) => { actionFunc: async (itemArg: any) => {
@ -200,6 +200,7 @@ export class DeesTable<T> extends DeesElement {
.action { .action {
margin: -8px 0px; margin: -8px 0px;
padding: 8px; padding: 8px;
line-height: 16px;
} }
.action:first-child { .action:first-child {
@ -208,7 +209,7 @@ export class DeesTable<T> extends DeesElement {
} }
.action:hover { .action:hover {
background: #111; background: ${cssManager.bdTheme('#CCC', '#111')};
} }
.tableStatistics { .tableStatistics {
@ -294,7 +295,9 @@ export class DeesTable<T> extends DeesElement {
${(() => { ${(() => {
const actions: TemplateResult[] = []; const actions: TemplateResult[] = [];
for (const action of this.dataActions) { for (const action of this.dataActions) {
actions.push(html`<div class="action">${action.name}</div>`) actions.push(html`<div class="action">${action.iconName ? html`
<dees-icon .iconName=${'upload_file'}></dees-icon>
` : action.name}</div>`)
} }
return actions; return actions;
})()} })()}