fix(core): update

This commit is contained in:
Philipp Kunz 2023-01-12 19:19:31 +01:00
parent 0f8a7a5a7b
commit 3301ad1556
5 changed files with 30 additions and 22 deletions

View File

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

View File

@ -1,3 +1,4 @@
import * as plugins from './plugins.js';
import { import {
customElement, customElement,
html, html,
@ -20,29 +21,23 @@ declare global {
@customElement('dees-contextmenu') @customElement('dees-contextmenu')
export class DeesContextmenu extends DeesElement { export class DeesContextmenu extends DeesElement {
public static demo = () => html` public static demo = () => html`
<dees-contextmenu <dees-button>Hello</dees-button>
<dees-contextmenu .menuItems=${[
></dees-contextmenu> {
<dees-contextmenu name: 'copy',
action: async () => {}
></dees-contextmenu> },
{
name: 'edit',
action: async () => {}
}
] as plugins.tsclass.website.IMenuItem[]}></dees-contextmenu>
`; `;
@property() @property({
public selectionMode: 'single' | 'multiple' = 'single'; type: Array,
})
@property({ public menuItems: plugins.tsclass.website.IMenuItem[] = [];
type: Array,
})
public selectableChips: string[] = [];
@property()
public selectedChip: string = null;
@property({
type: Array,
})
public selectedChips: string[] = [];
constructor() { constructor() {
super(); super();

View File

@ -93,6 +93,14 @@ export class DeesIcon extends DeesElement {
public static demo = () => html` public static demo = () => html`
<dees-icon iconName="visibility"></dees-icon> <dees-icon iconName="visibility"></dees-icon>
<div style="background: #fff; padding: 10px; font-size: 30px"> <div style="background: #fff; padding: 10px; font-size: 30px">
<style>
dees-icon {
transition: color 0.05s;
}
dees-icon:hover {
color: #e4002b;
}
</style>
<dees-icon .iconFA=${'messageSolid'}></dees-icon> <dees-icon .iconFA=${'messageSolid'}></dees-icon>
<dees-icon .iconFA=${'sun'}></dees-icon> <dees-icon .iconFA=${'sun'}></dees-icon>
<dees-icon .iconFA=${'sunSolid'}></dees-icon> <dees-icon .iconFA=${'sunSolid'}></dees-icon>
@ -124,6 +132,9 @@ export class DeesIcon extends DeesElement {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
* {
transition: inherit !important;
}
`, `,
]; ];

View File

@ -0,0 +1 @@
import {} from '@designestate/dees-element';

View File

@ -1,6 +1,7 @@
export * from './dees-button-exit.js'; export * from './dees-button-exit.js';
export * from './dees-button.js'; export * from './dees-button.js';
export * from './dees-chips.js'; export * from './dees-chips.js';
export * from './dees-contextmenu.js';
export * from './dees-form.js'; export * from './dees-form.js';
export * from './dees-form-submit.js'; export * from './dees-form-submit.js';
export * from './dees-icon.js'; export * from './dees-icon.js';