fix(core): update

This commit is contained in:
Philipp Kunz 2020-06-01 15:07:13 +00:00
parent 070d894ea6
commit 681de01143
5 changed files with 20 additions and 13 deletions

6
package-lock.json generated
View File

@ -2202,9 +2202,9 @@
}
},
"@pushrocks/smartdelay": {
"version": "2.0.6",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartdelay/-/smartdelay-2.0.6.tgz",
"integrity": "sha512-4wUnzWNhRPODpaaL5GuRaje/C5dg+TMhBxmr57PKc2fqYpy6azWJwonf/s5xpcbJLCPJRbj1x8M5MqgCFq2uvg==",
"version": "2.0.9",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartdelay/-/smartdelay-2.0.9.tgz",
"integrity": "sha512-aVZJit1wq4fBG6ft2LJSPEnNbLSbRUuwNYggSeDqLtY7mXvAQmu4SIsXx18gfOtf69CoZR36RY3ff/IJv62C7w==",
"requires": {
"@pushrocks/smartpromise": "^3.0.6"
}

View File

@ -15,6 +15,7 @@
"dependencies": {
"@designestate/dees-domtools": "^1.0.26",
"@gitzone/tsrun": "^1.1.17",
"@pushrocks/smartdelay": "^2.0.9",
"@pushrocks/smartexpress": "^3.0.10",
"lit-element": "^2.0.0-rc.5",
"lit-html": "^1.0.0-rc.2",

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 } = {};
@ -78,17 +78,15 @@ export class WccDashboard extends LitElement {
}
})()}
</wcc-frame>
${this.selectedViewport}
`;
}
public async updateSlot() {
console.log('updateSlot');
const oldSelectedItem = this.selectedItem;
this.selectedItem = null;
const domtools = await deesDomtools.DomTools.setupDomTools();
const domtools = await plugins.deesDomtools.DomTools.setupDomTools();
domtools.setVirtualViewport(this.selectedViewport);
this.selectedItem = oldSelectedItem;
await plugins.smartdelay.delayFor(0);
super.performUpdate();
}
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
};