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

View File

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

View File

@ -93,6 +93,14 @@ export class DeesIcon extends DeesElement {
public static demo = () => html`
<dees-icon iconName="visibility"></dees-icon>
<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=${'sun'}></dees-icon>
<dees-icon .iconFA=${'sunSolid'}></dees-icon>
@ -124,6 +132,9 @@ export class DeesIcon extends DeesElement {
align-items: 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.js';
export * from './dees-chips.js';
export * from './dees-contextmenu.js';
export * from './dees-form.js';
export * from './dees-form-submit.js';
export * from './dees-icon.js';