Compare commits

...

6 Commits

Author SHA1 Message Date
ba83aad026 1.0.33 2020-06-28 15:57:16 +00:00
2531126935 fix(core): update 2020-06-28 15:57:15 +00:00
00a2de6560 1.0.32 2020-06-03 14:09:21 +00:00
b357bc67fa fix(core): update 2020-06-03 14:09:21 +00:00
0665f85d49 1.0.31 2020-06-01 15:56:33 +00:00
c222a66ead fix(core): update 2020-06-01 15:56:32 +00:00
3 changed files with 377 additions and 367 deletions

717
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "@designestate/dees-wcctools", "name": "@designestate/dees-wcctools",
"version": "1.0.30", "version": "1.0.33",
"private": false, "private": false,
"description": "wcc tools for creating element catalogues", "description": "wcc tools for creating element catalogues",
"main": "dist_ts_web/index.js", "main": "dist_ts_web/index.js",
@ -13,19 +13,19 @@
"author": "Lossless GmbH", "author": "Lossless GmbH",
"license": "UNLICENSED", "license": "UNLICENSED",
"dependencies": { "dependencies": {
"@designestate/dees-domtools": "^1.0.26", "@designestate/dees-domtools": "^1.0.30",
"@gitzone/tsrun": "^1.1.17", "@gitzone/tsrun": "^1.2.12",
"@pushrocks/smartdelay": "^2.0.9", "@pushrocks/smartdelay": "^2.0.9",
"@pushrocks/smartexpress": "^3.0.10", "@pushrocks/smartexpress": "^3.0.73",
"lit-element": "^2.0.0-rc.5", "lit-element": "^2.0.0-rc.5",
"lit-html": "^1.0.0-rc.2", "lit-html": "^1.0.0-rc.2",
"typescript": "^3.9.3" "typescript": "^3.9.5"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.24", "@gitzone/tsbuild": "^2.1.24",
"@gitzone/tsbundle": "^1.0.69", "@gitzone/tsbundle": "^1.0.69",
"@gitzone/tswatch": "^1.0.46", "@gitzone/tswatch": "^1.0.46",
"@pushrocks/projectinfo": "^4.0.2", "@pushrocks/projectinfo": "^4.0.5",
"tslint": "^6.1.2", "tslint": "^6.1.2",
"tslint-config-prettier": "^1.17.0" "tslint-config-prettier": "^1.17.0"
}, },

View File

@ -73,7 +73,6 @@ export class WccDashboard extends LitElement {
this.setWarning(null); this.setWarning(null);
return html`${anonItem.demo()}`; return html`${anonItem.demo()}`;
} else { } else {
this.selectedItem = WccDefaultElement as any;
this.updateSlot(); this.updateSlot();
} }
})()} })()}
@ -81,12 +80,22 @@ export class WccDashboard extends LitElement {
`; `;
} }
private currentlyUpdating: boolean = false;
public async updateSlot() { 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'); console.log('updateSlot');
const domtools = await plugins.deesDomtools.DomTools.setupDomTools(); const domtools = await plugins.deesDomtools.DomTools.setupDomTools();
domtools.setVirtualViewport(this.selectedViewport); domtools.setVirtualViewport(this.selectedViewport);
await plugins.smartdelay.delayFor(0); await super.performUpdate();
super.performUpdate(); this.selectedItem = localSelectedItem;
await super.performUpdate();
this.currentlyUpdating = false;
} }
public setWarning(warningTextArg: string) { public setWarning(warningTextArg: string) {