fix(core): update

This commit is contained in:
Philipp Kunz 2022-12-06 13:32:00 +01:00
parent 0be0f9fa34
commit 55175f9ac7
3 changed files with 12 additions and 6 deletions

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.102',
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 {
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;
})()} })()}