Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
ba83aad026 | |||
2531126935 | |||
00a2de6560 | |||
b357bc67fa | |||
0665f85d49 | |||
c222a66ead | |||
8d628d3285 | |||
681de01143 |
723
package-lock.json
generated
723
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@designestate/dees-wcctools",
|
"name": "@designestate/dees-wcctools",
|
||||||
"version": "1.0.29",
|
"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,18 +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/smartexpress": "^3.0.10",
|
"@pushrocks/smartdelay": "^2.0.9",
|
||||||
|
"@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"
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { LitElement, property, html, customElement, TemplateResult } from 'lit-element';
|
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';
|
import { WccDefaultElement } from './wcc-defaultelement';
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ export class WccDashboard extends LitElement {
|
|||||||
public selectedItem: TemplateResult | LitElement;
|
public selectedItem: TemplateResult | LitElement;
|
||||||
|
|
||||||
@property()
|
@property()
|
||||||
public selectedViewport: deesDomtools.breakpoints.TViewport = 'desktop';
|
public selectedViewport: plugins.deesDomtools.breakpoints.TViewport = 'desktop';
|
||||||
|
|
||||||
@property()
|
@property()
|
||||||
public pages: { [key: string]: TemplateResult } = {};
|
public pages: { [key: string]: TemplateResult } = {};
|
||||||
@ -73,22 +73,29 @@ 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();
|
||||||
}
|
}
|
||||||
})()}
|
})()}
|
||||||
</wcc-frame>
|
</wcc-frame>
|
||||||
${this.selectedViewport}
|
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private currentlyUpdating: boolean = false;
|
||||||
public async updateSlot() {
|
public async updateSlot() {
|
||||||
console.log('updateSlot');
|
if (this.currentlyUpdating) {
|
||||||
const oldSelectedItem = this.selectedItem;
|
return;
|
||||||
|
}
|
||||||
|
this.currentlyUpdating = true;
|
||||||
|
!this.selectedItem ? this.selectedItem = WccDefaultElement as any : null;
|
||||||
|
const localSelectedItem = this.selectedItem;
|
||||||
this.selectedItem = null;
|
this.selectedItem = null;
|
||||||
const domtools = await deesDomtools.DomTools.setupDomTools();
|
console.log('updateSlot');
|
||||||
|
const domtools = await plugins.deesDomtools.DomTools.setupDomTools();
|
||||||
domtools.setVirtualViewport(this.selectedViewport);
|
domtools.setVirtualViewport(this.selectedViewport);
|
||||||
this.selectedItem = oldSelectedItem;
|
await super.performUpdate();
|
||||||
|
this.selectedItem = localSelectedItem;
|
||||||
|
await super.performUpdate();
|
||||||
|
this.currentlyUpdating = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public setWarning(warningTextArg: string) {
|
public setWarning(warningTextArg: string) {
|
||||||
|
@ -13,9 +13,6 @@ export class WccProperties extends LitElement {
|
|||||||
@property()
|
@property()
|
||||||
public selectedItem: TemplateResult | LitElement;
|
public selectedItem: TemplateResult | LitElement;
|
||||||
|
|
||||||
@property()
|
|
||||||
public selectedInstance;
|
|
||||||
|
|
||||||
@property()
|
@property()
|
||||||
public selectedViewport = 'native';
|
public selectedViewport = 'native';
|
||||||
|
|
||||||
|
11
ts_web/wcctools.plugins.ts
Normal file
11
ts_web/wcctools.plugins.ts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import * as smartdelay from '@pushrocks/smartdelay';
|
||||||
|
|
||||||
|
export {
|
||||||
|
smartdelay
|
||||||
|
};
|
||||||
|
|
||||||
|
import * as deesDomtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
|
export {
|
||||||
|
deesDomtools
|
||||||
|
};
|
Reference in New Issue
Block a user