Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
45b2183c88 | |||
68f11d7e76 | |||
cc6f14551f | |||
12f6bb3317 | |||
b63fac3f75 | |||
61d7de2323 | |||
d6c7f5da97 | |||
36c7f8ae38 |
3285
package-lock.json
generated
3285
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@designestate/dees-element",
|
||||
"version": "1.0.28",
|
||||
"version": "1.0.32",
|
||||
"private": false,
|
||||
"description": "a custom element class extending lit element class",
|
||||
"main": "dist_ts/index.js",
|
||||
@ -9,19 +9,19 @@
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"test": "(tstest test/ --web)",
|
||||
"build": "(tsbuild --web)"
|
||||
"build": "(tsbuild --web && tsbundle npm)"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.1.28",
|
||||
"@gitzone/tsbundle": "^1.0.88",
|
||||
"@gitzone/tstest": "^1.0.60",
|
||||
"@pushrocks/tapbundle": "^3.2.14",
|
||||
"@pushrocks/tapbundle": "^3.2.15",
|
||||
"@types/node": "^16.11.12",
|
||||
"tslint": "^6.1.3",
|
||||
"tslint-config-prettier": "^1.18.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@designestate/dees-domtools": "^1.0.102",
|
||||
"@designestate/dees-domtools": "^1.0.103",
|
||||
"@pushrocks/isounique": "^1.0.4",
|
||||
"@pushrocks/smartrx": "^2.0.19",
|
||||
"lit": "^2.0.2"
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { CSSResult, unsafeCSS } from 'lit-element';
|
||||
import { CSSResult, unsafeCSS } from 'lit';
|
||||
import * as plugins from './dees-element.plugins';
|
||||
import * as domtools from '@designestate/dees-domtools';
|
||||
|
||||
|
@ -20,7 +20,7 @@ export class DeesElement extends plugins.lit.LitElement {
|
||||
});
|
||||
}
|
||||
|
||||
public connectedCallback() {
|
||||
public async connectedCallback() {
|
||||
super.connectedCallback();
|
||||
this.domtoolsPromise.then(async (domtools) => {
|
||||
this.themeSubscription = domtools.themeManager.themeObservable.subscribe((goBrightArg) => {
|
||||
@ -30,7 +30,8 @@ export class DeesElement extends plugins.lit.LitElement {
|
||||
this.dispatchEvent(new CustomEvent('deesElementConnected'));
|
||||
}
|
||||
|
||||
public disconnectedCallback() {
|
||||
public async disconnectedCallback() {
|
||||
await this.domtoolsPromise;
|
||||
super.disconnectedCallback();
|
||||
this.themeSubscription.unsubscribe();
|
||||
this.dispatchEvent(new CustomEvent('deesElementDisconnected'));
|
||||
|
@ -9,7 +9,7 @@ export {
|
||||
|
||||
// third party scope
|
||||
import { css, unsafeCSS, LitElement } from 'lit';
|
||||
import { property } from 'lit/decorators';
|
||||
import { property } from 'lit/decorators/property.js';
|
||||
const lit = {
|
||||
css,
|
||||
unsafeCSS,
|
||||
|
22
ts/index.ts
22
ts/index.ts
@ -1,25 +1,17 @@
|
||||
import { CssManager } from './dees-element.classes.cssmanager';
|
||||
import * as plugins from './dees-element.plugins';
|
||||
|
||||
// lit exports
|
||||
export {
|
||||
html,
|
||||
TemplateResult,
|
||||
css,
|
||||
unsafeCSS,
|
||||
} from 'lit';
|
||||
export { html, TemplateResult, css, unsafeCSS } from 'lit';
|
||||
|
||||
export {
|
||||
customElement,
|
||||
property,
|
||||
state
|
||||
} from 'lit/decorators'
|
||||
export { customElement } from 'lit/decorators/custom-element.js';
|
||||
|
||||
export { property } from 'lit/decorators/property.js';
|
||||
|
||||
export { state } from 'lit/decorators/state.js';
|
||||
|
||||
// domtools exports
|
||||
import * as domtools from '@designestate/dees-domtools';
|
||||
export {
|
||||
domtools
|
||||
}
|
||||
export { domtools };
|
||||
|
||||
// DeesElements exports
|
||||
export { DeesElement } from './dees-element.classes.dees-element';
|
||||
|
Reference in New Issue
Block a user