Compare commits

...

6 Commits

Author SHA1 Message Date
ef1e373fb3 1.0.33 2022-01-06 22:08:09 +01:00
d607968dfb fix(core): update 2022-01-06 22:08:08 +01:00
45b2183c88 1.0.32 2022-01-06 21:53:21 +01:00
68f11d7e76 fix(core): update 2022-01-06 21:53:21 +01:00
cc6f14551f 1.0.31 2021-12-14 01:59:51 +01:00
12f6bb3317 fix(core): update 2021-12-14 01:59:50 +01:00
5 changed files with 19 additions and 26 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@designestate/dees-element",
"version": "1.0.30",
"version": "1.0.33",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@designestate/dees-element",
"version": "1.0.30",
"version": "1.0.33",
"license": "MIT",
"dependencies": {
"@designestate/dees-domtools": "^1.0.103",

View File

@ -1,6 +1,6 @@
{
"name": "@designestate/dees-element",
"version": "1.0.30",
"version": "1.0.33",
"private": false,
"description": "a custom element class extending lit element class",
"main": "dist_ts/index.js",
@ -9,7 +9,7 @@
"license": "MIT",
"scripts": {
"test": "(tstest test/ --web)",
"build": "(tsbuild --web)"
"build": "(tsbuild --web && tsbundle npm)"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.28",

View File

@ -20,17 +20,17 @@ export class DeesElement extends plugins.lit.LitElement {
});
}
public connectedCallback() {
public async connectedCallback() {
super.connectedCallback();
this.domtoolsPromise.then(async (domtools) => {
const domtools = await this.domtoolsPromise;
this.themeSubscription = domtools.themeManager.themeObservable.subscribe((goBrightArg) => {
this.goBright = goBrightArg;
});
});
this.dispatchEvent(new CustomEvent('deesElementConnected'));
}
public disconnectedCallback() {
public async disconnectedCallback() {
await this.domtoolsPromise;
super.disconnectedCallback();
this.themeSubscription.unsubscribe();
this.dispatchEvent(new CustomEvent('deesElementDisconnected'));

View File

@ -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,

View File

@ -1,24 +1,17 @@
import { CssManager } from './dees-element.classes.cssmanager';
// 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';