Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
ba83aad026 | |||
2531126935 | |||
00a2de6560 | |||
b357bc67fa | |||
0665f85d49 | |||
c222a66ead |
717
package-lock.json
generated
717
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@designestate/dees-wcctools",
|
||||
"version": "1.0.30",
|
||||
"version": "1.0.33",
|
||||
"private": false,
|
||||
"description": "wcc tools for creating element catalogues",
|
||||
"main": "dist_ts_web/index.js",
|
||||
@ -13,19 +13,19 @@
|
||||
"author": "Lossless GmbH",
|
||||
"license": "UNLICENSED",
|
||||
"dependencies": {
|
||||
"@designestate/dees-domtools": "^1.0.26",
|
||||
"@gitzone/tsrun": "^1.1.17",
|
||||
"@designestate/dees-domtools": "^1.0.30",
|
||||
"@gitzone/tsrun": "^1.2.12",
|
||||
"@pushrocks/smartdelay": "^2.0.9",
|
||||
"@pushrocks/smartexpress": "^3.0.10",
|
||||
"@pushrocks/smartexpress": "^3.0.73",
|
||||
"lit-element": "^2.0.0-rc.5",
|
||||
"lit-html": "^1.0.0-rc.2",
|
||||
"typescript": "^3.9.3"
|
||||
"typescript": "^3.9.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.1.24",
|
||||
"@gitzone/tsbundle": "^1.0.69",
|
||||
"@gitzone/tswatch": "^1.0.46",
|
||||
"@pushrocks/projectinfo": "^4.0.2",
|
||||
"@pushrocks/projectinfo": "^4.0.5",
|
||||
"tslint": "^6.1.2",
|
||||
"tslint-config-prettier": "^1.17.0"
|
||||
},
|
||||
|
@ -73,7 +73,6 @@ export class WccDashboard extends LitElement {
|
||||
this.setWarning(null);
|
||||
return html`${anonItem.demo()}`;
|
||||
} else {
|
||||
this.selectedItem = WccDefaultElement as any;
|
||||
this.updateSlot();
|
||||
}
|
||||
})()}
|
||||
@ -81,12 +80,22 @@ export class WccDashboard extends LitElement {
|
||||
`;
|
||||
}
|
||||
|
||||
private currentlyUpdating: boolean = false;
|
||||
public async updateSlot() {
|
||||
if (this.currentlyUpdating) {
|
||||
return;
|
||||
}
|
||||
this.currentlyUpdating = true;
|
||||
!this.selectedItem ? this.selectedItem = WccDefaultElement as any : null;
|
||||
const localSelectedItem = this.selectedItem;
|
||||
this.selectedItem = null;
|
||||
console.log('updateSlot');
|
||||
const domtools = await plugins.deesDomtools.DomTools.setupDomTools();
|
||||
domtools.setVirtualViewport(this.selectedViewport);
|
||||
await plugins.smartdelay.delayFor(0);
|
||||
super.performUpdate();
|
||||
await super.performUpdate();
|
||||
this.selectedItem = localSelectedItem;
|
||||
await super.performUpdate();
|
||||
this.currentlyUpdating = false;
|
||||
}
|
||||
|
||||
public setWarning(warningTextArg: string) {
|
||||
|
Reference in New Issue
Block a user