Compare commits

..

8 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
8d628d3285 1.0.30 2020-06-01 15:07:13 +00:00
681de01143 fix(core): update 2020-06-01 15:07:13 +00:00
5 changed files with 395 additions and 378 deletions

723
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@designestate/dees-wcctools",
"version": "1.0.29",
"version": "1.0.33",
"private": false,
"description": "wcc tools for creating element catalogues",
"main": "dist_ts_web/index.js",
@ -13,18 +13,19 @@
"author": "Lossless GmbH",
"license": "UNLICENSED",
"dependencies": {
"@designestate/dees-domtools": "^1.0.26",
"@gitzone/tsrun": "^1.1.17",
"@pushrocks/smartexpress": "^3.0.10",
"@designestate/dees-domtools": "^1.0.30",
"@gitzone/tsrun": "^1.2.12",
"@pushrocks/smartdelay": "^2.0.9",
"@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"
},

View File

@ -1,6 +1,6 @@
import { LitElement, property, html, customElement, TemplateResult } from 'lit-element';
import * as deesDomtools from '@designestate/dees-domtools';
import * as plugins from '../wcctools.plugins';
import { WccDefaultElement } from './wcc-defaultelement';
@ -15,7 +15,7 @@ export class WccDashboard extends LitElement {
public selectedItem: TemplateResult | LitElement;
@property()
public selectedViewport: deesDomtools.breakpoints.TViewport = 'desktop';
public selectedViewport: plugins.deesDomtools.breakpoints.TViewport = 'desktop';
@property()
public pages: { [key: string]: TemplateResult } = {};
@ -73,22 +73,29 @@ export class WccDashboard extends LitElement {
this.setWarning(null);
return html`${anonItem.demo()}`;
} else {
this.selectedItem = WccDefaultElement as any;
this.updateSlot();
}
})()}
</wcc-frame>
${this.selectedViewport}
`;
}
private currentlyUpdating: boolean = false;
public async updateSlot() {
console.log('updateSlot');
const oldSelectedItem = this.selectedItem;
if (this.currentlyUpdating) {
return;
}
this.currentlyUpdating = true;
!this.selectedItem ? this.selectedItem = WccDefaultElement as any : null;
const localSelectedItem = this.selectedItem;
this.selectedItem = null;
const domtools = await deesDomtools.DomTools.setupDomTools();
console.log('updateSlot');
const domtools = await plugins.deesDomtools.DomTools.setupDomTools();
domtools.setVirtualViewport(this.selectedViewport);
this.selectedItem = oldSelectedItem;
await super.performUpdate();
this.selectedItem = localSelectedItem;
await super.performUpdate();
this.currentlyUpdating = false;
}
public setWarning(warningTextArg: string) {

View File

@ -13,9 +13,6 @@ export class WccProperties extends LitElement {
@property()
public selectedItem: TemplateResult | LitElement;
@property()
public selectedInstance;
@property()
public selectedViewport = 'native';

View File

@ -0,0 +1,11 @@
import * as smartdelay from '@pushrocks/smartdelay';
export {
smartdelay
};
import * as deesDomtools from '@designestate/dees-domtools';
export {
deesDomtools
};