fix(core): update
This commit is contained in:
parent
8eff93febc
commit
dcca685021
14
package.json
14
package.json
@ -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.10",
|
"@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.8.7"
|
"@types/node": "^20.11.16"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@design.estate/dees-domtools": "^2.0.54",
|
"@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": "^3.0.0"
|
"lit": "^3.1.2"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"last 1 chrome versions"
|
"last 1 chrome versions"
|
||||||
|
1751
pnpm-lock.yaml
generated
1751
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.33',
|
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,7 +43,12 @@ export class DeesElement extends plugins.lit.LitElement {
|
|||||||
this.elementDomReadyDeferred.resolve();
|
this.elementDomReadyDeferred.resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
private garbageFunctions: (() => void)[] = [];
|
private startupFunctions: (() => void | Promise<any>)[] = [];
|
||||||
|
public registerStartupFunction(startupFunctionArg: () => void) {
|
||||||
|
this.startupFunctions.push(startupFunctionArg);
|
||||||
|
}
|
||||||
|
|
||||||
|
private garbageFunctions: (() => void | Promise<any>)[] = [];
|
||||||
public registerGarbageFunction(garbageFunctionArg: () => void) {
|
public registerGarbageFunction(garbageFunctionArg: () => void) {
|
||||||
this.garbageFunctions.push(garbageFunctionArg);
|
this.garbageFunctions.push(garbageFunctionArg);
|
||||||
}
|
}
|
||||||
@ -52,7 +60,7 @@ export class DeesElement extends plugins.lit.LitElement {
|
|||||||
subscription.unsubscribe();
|
subscription.unsubscribe();
|
||||||
}
|
}
|
||||||
for (const garbageFunction of this.garbageFunctions) {
|
for (const garbageFunction of this.garbageFunctions) {
|
||||||
garbageFunction();
|
await garbageFunction();
|
||||||
}
|
}
|
||||||
this.dispatchEvent(new CustomEvent('deesElementDisconnected'));
|
this.dispatchEvent(new CustomEvent('deesElementDisconnected'));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user