fix(core): update

This commit is contained in:
2021-11-26 20:06:09 +01:00
parent 75929c089d
commit 9de9f0c202
5 changed files with 1549 additions and 1000 deletions

View File

@ -1,4 +1,4 @@
import { LitElement, html, property, customElement } from 'lit-element';
import { DeesElement, html, property, customElement } from '@designestate/dees-element';
import * as domtools from '@designestate/dees-domtools';
@ -48,8 +48,9 @@ declare global {
}
@customElement('dees-icon')
export class DeesIcon extends LitElement {
export class DeesIcon extends DeesElement {
public static demo = () => html`
<dees-icon iconName="visibility"></dees-icon>
<div style="background: #fff; padding: 10px;">
<dees-icon iconName="visibility"></dees-icon>
<dees-icon brandName="facebook"></dees-icon>

View File

@ -66,18 +66,24 @@ export class DeesTable<T> extends DeesElement {
</div>
`;
@property()
public heading1: string;
@property({
type: String,
})
public heading1: string = 'heading 1';
@property()
public heading2: string;
@property({
type: String,
})
public heading2: string = 'heading 2';
@property({
type: Array,
})
public data: T[] = [];
@property()
@property({
type: Object,
})
public selectedDataRow: T;
@property({

View File

@ -14,12 +14,16 @@ declare global {
@customElement('dees-updater')
export class DeesUpdater extends LitElement {
public static demo = () => html`<dees-updater ></dees-updater>`;
public static demo = () => html`<dees-updater></dees-updater>`;
@property()
@property({
type: String,
})
currentVersion: string;
@property()
@property({
type: String,
})
updatedVersion: string;
constructor() {