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 = {
name: '@designestate/dees-catalog',
version: '1.0.101',
version: '1.0.102',
description: 'website for lossless.com'
}

View File

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

View File

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