Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
009674d78c | |||
dcca685021 | |||
8eff93febc | |||
11f731aa61 | |||
a8e7d2f335 | |||
219390e895 | |||
e321286259 | |||
5f141feb50 | |||
7b99c70275 | |||
9f3b396633 | |||
8dd48fdc05 | |||
2538f59769 |
16
package.json
16
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@design.estate/dees-element",
|
"name": "@design.estate/dees-element",
|
||||||
"version": "2.0.28",
|
"version": "2.0.34",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a custom element class extending lit element class",
|
"description": "a custom element class extending lit element class",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
@ -14,17 +14,17 @@
|
|||||||
"buildDocs": "tsdoc"
|
"buildDocs": "tsdoc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@git.zone/tsbuild": "^2.1.70",
|
"@git.zone/tsbuild": "^2.1.72",
|
||||||
"@git.zone/tsbundle": "^2.0.8",
|
"@git.zone/tsbundle": "^2.0.15",
|
||||||
"@git.zone/tstest": "^1.0.81",
|
"@git.zone/tstest": "^1.0.86",
|
||||||
"@push.rocks/tapbundle": "^5.0.15",
|
"@push.rocks/tapbundle": "^5.0.15",
|
||||||
"@types/node": "^20.6.2"
|
"@types/node": "^20.11.16"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@design.estate/dees-domtools": "^2.0.41",
|
"@design.estate/dees-domtools": "^2.0.57",
|
||||||
"@push.rocks/isounique": "^1.0.5",
|
"@push.rocks/isounique": "^1.0.5",
|
||||||
"@push.rocks/smartrx": "^3.0.6",
|
"@push.rocks/smartrx": "^3.0.7",
|
||||||
"lit": "^2.8.0"
|
"lit": "^3.1.2"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"last 1 chrome versions"
|
"last 1 chrome versions"
|
||||||
|
2342
pnpm-lock.yaml
generated
2342
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@design.estate/dees-element',
|
name: '@design.estate/dees-element',
|
||||||
version: '2.0.28',
|
version: '2.0.34',
|
||||||
description: 'a custom element class extending lit element class'
|
description: 'a custom element class extending lit element class'
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,9 @@ export class DeesElement extends plugins.lit.LitElement {
|
|||||||
this.goBright = goBrightArg;
|
this.goBright = goBrightArg;
|
||||||
});
|
});
|
||||||
this.rxSubscriptions.push(this.themeSubscription);
|
this.rxSubscriptions.push(this.themeSubscription);
|
||||||
|
for (const startupFunction of this.startupFunctions) {
|
||||||
|
await startupFunction();
|
||||||
|
}
|
||||||
this.dispatchEvent(new CustomEvent('deesElementConnected'));
|
this.dispatchEvent(new CustomEvent('deesElementConnected'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,12 +43,25 @@ export class DeesElement extends plugins.lit.LitElement {
|
|||||||
this.elementDomReadyDeferred.resolve();
|
this.elementDomReadyDeferred.resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private startupFunctions: (() => void | Promise<any>)[] = [];
|
||||||
|
public registerStartupFunction(startupFunctionArg: () => void) {
|
||||||
|
this.startupFunctions.push(startupFunctionArg);
|
||||||
|
}
|
||||||
|
|
||||||
|
private garbageFunctions: (() => void | Promise<any>)[] = [];
|
||||||
|
public registerGarbageFunction(garbageFunctionArg: () => void) {
|
||||||
|
this.garbageFunctions.push(garbageFunctionArg);
|
||||||
|
}
|
||||||
|
|
||||||
public async disconnectedCallback() {
|
public async disconnectedCallback() {
|
||||||
await this.domtoolsPromise;
|
await this.domtoolsPromise;
|
||||||
super.disconnectedCallback();
|
super.disconnectedCallback();
|
||||||
for (const subscription of this.rxSubscriptions) {
|
for (const subscription of this.rxSubscriptions) {
|
||||||
subscription.unsubscribe();
|
subscription.unsubscribe();
|
||||||
}
|
}
|
||||||
|
for (const garbageFunction of this.garbageFunctions) {
|
||||||
|
await garbageFunction();
|
||||||
|
}
|
||||||
this.dispatchEvent(new CustomEvent('deesElementDisconnected'));
|
this.dispatchEvent(new CustomEvent('deesElementDisconnected'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,3 +33,10 @@ export const directives = {
|
|||||||
resolve,
|
resolve,
|
||||||
subscribe,
|
subscribe,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// type exports
|
||||||
|
import type { rxjs } from '@push.rocks/smartrx';
|
||||||
|
|
||||||
|
export type {
|
||||||
|
rxjs,
|
||||||
|
}
|
@ -3,8 +3,8 @@
|
|||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"useDefineForClassFields": false,
|
"useDefineForClassFields": false,
|
||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"module": "ES2022",
|
"module": "NodeNext",
|
||||||
"moduleResolution": "nodenext",
|
"moduleResolution": "NodeNext",
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"verbatimModuleSyntax": true
|
"verbatimModuleSyntax": true
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user