fix(core): update
This commit is contained in:
parent
070d894ea6
commit
681de01143
6
package-lock.json
generated
6
package-lock.json
generated
@ -2202,9 +2202,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@pushrocks/smartdelay": {
|
"@pushrocks/smartdelay": {
|
||||||
"version": "2.0.6",
|
"version": "2.0.9",
|
||||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartdelay/-/smartdelay-2.0.6.tgz",
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartdelay/-/smartdelay-2.0.9.tgz",
|
||||||
"integrity": "sha512-4wUnzWNhRPODpaaL5GuRaje/C5dg+TMhBxmr57PKc2fqYpy6azWJwonf/s5xpcbJLCPJRbj1x8M5MqgCFq2uvg==",
|
"integrity": "sha512-aVZJit1wq4fBG6ft2LJSPEnNbLSbRUuwNYggSeDqLtY7mXvAQmu4SIsXx18gfOtf69CoZR36RY3ff/IJv62C7w==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@pushrocks/smartpromise": "^3.0.6"
|
"@pushrocks/smartpromise": "^3.0.6"
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@designestate/dees-domtools": "^1.0.26",
|
"@designestate/dees-domtools": "^1.0.26",
|
||||||
"@gitzone/tsrun": "^1.1.17",
|
"@gitzone/tsrun": "^1.1.17",
|
||||||
|
"@pushrocks/smartdelay": "^2.0.9",
|
||||||
"@pushrocks/smartexpress": "^3.0.10",
|
"@pushrocks/smartexpress": "^3.0.10",
|
||||||
"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",
|
||||||
|
@ -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 } = {};
|
||||||
@ -78,17 +78,15 @@ export class WccDashboard extends LitElement {
|
|||||||
}
|
}
|
||||||
})()}
|
})()}
|
||||||
</wcc-frame>
|
</wcc-frame>
|
||||||
${this.selectedViewport}
|
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async updateSlot() {
|
public async updateSlot() {
|
||||||
console.log('updateSlot');
|
console.log('updateSlot');
|
||||||
const oldSelectedItem = this.selectedItem;
|
const domtools = await plugins.deesDomtools.DomTools.setupDomTools();
|
||||||
this.selectedItem = null;
|
|
||||||
const domtools = await deesDomtools.DomTools.setupDomTools();
|
|
||||||
domtools.setVirtualViewport(this.selectedViewport);
|
domtools.setVirtualViewport(this.selectedViewport);
|
||||||
this.selectedItem = oldSelectedItem;
|
await plugins.smartdelay.delayFor(0);
|
||||||
|
super.performUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user