fix(core): update

This commit is contained in:
Philipp Kunz 2022-04-21 23:15:14 +02:00
parent 6dd5277f9e
commit 76841a6b25
3 changed files with 11 additions and 10 deletions

14
package-lock.json generated
View File

@ -9,7 +9,7 @@
"version": "2.0.10",
"license": "MIT",
"dependencies": {
"@designestate/dees-domtools": "^2.0.8",
"@designestate/dees-domtools": "^2.0.14",
"@pushrocks/isounique": "^1.0.5",
"@pushrocks/smartrx": "^2.0.25",
"lit": "^2.2.2"
@ -1819,9 +1819,9 @@
}
},
"node_modules/@designestate/dees-domtools": {
"version": "2.0.8",
"resolved": "https://verdaccio.lossless.one/@designestate%2fdees-domtools/-/dees-domtools-2.0.8.tgz",
"integrity": "sha512-FASCGhuZcdTxJ3rQO4SWChHv/6PI6Ye6OamNDEwUq4oHZf4nbOA+zseBMLrN1JAcyeUqNUVGSprf7l8r7FP/Dg==",
"version": "2.0.14",
"resolved": "https://verdaccio.lossless.one/@designestate%2fdees-domtools/-/dees-domtools-2.0.14.tgz",
"integrity": "sha512-rcbcMsqS6gIpHUp409IDXNmup57cq4bYp3N4R3lkJ0KDmMuHdniRjPxjx7KQB7oE+k8UGfjZbEgb1IodOHiC6w==",
"license": "MIT",
"dependencies": {
"@apiglobal/typedrequest": "^2.0.3",
@ -12632,9 +12632,9 @@
}
},
"@designestate/dees-domtools": {
"version": "2.0.8",
"resolved": "https://verdaccio.lossless.one/@designestate%2fdees-domtools/-/dees-domtools-2.0.8.tgz",
"integrity": "sha512-FASCGhuZcdTxJ3rQO4SWChHv/6PI6Ye6OamNDEwUq4oHZf4nbOA+zseBMLrN1JAcyeUqNUVGSprf7l8r7FP/Dg==",
"version": "2.0.14",
"resolved": "https://verdaccio.lossless.one/@designestate%2fdees-domtools/-/dees-domtools-2.0.14.tgz",
"integrity": "sha512-rcbcMsqS6gIpHUp409IDXNmup57cq4bYp3N4R3lkJ0KDmMuHdniRjPxjx7KQB7oE+k8UGfjZbEgb1IodOHiC6w==",
"requires": {
"@apiglobal/typedrequest": "^2.0.3",
"@designestate/dees-comms": "^1.0.22",

View File

@ -22,7 +22,7 @@
"tslint-config-prettier": "^1.18.0"
},
"dependencies": {
"@designestate/dees-domtools": "^2.0.8",
"@designestate/dees-domtools": "^2.0.14",
"@pushrocks/isounique": "^1.0.5",
"@pushrocks/smartrx": "^2.0.25",
"lit": "^2.2.2"

View File

@ -6,7 +6,7 @@ export class DeesElement extends plugins.lit.LitElement {
public goBright: boolean = false;
// domtools
public domtoolsPromise = plugins.domtools.elementBasic.setup(this);
public domtoolsPromise: Promise<plugins.domtools.DomTools>;
@plugins.lit.property()
domtools?: plugins.domtools.DomTools;
@ -16,8 +16,9 @@ export class DeesElement extends plugins.lit.LitElement {
private elementDomReadyDeferred = plugins.domtools.plugins.smartpromise.defer();
public elementDomReady = this.elementDomReadyDeferred.promise;
constructor() {
constructor(optionsArg: plugins.domtools.IDomToolsContructorOptions = {}) {
super();
this.domtoolsPromise = plugins.domtools.elementBasic.setup(this, optionsArg);
this.domtoolsPromise.then((domtoolsArg) => {
this.domtools = domtoolsArg;
});