Compare commits

...

2 Commits

Author SHA1 Message Date
8390ba67b3 1.0.10 2020-12-07 22:56:24 +00:00
d5872511b8 fix(core): update 2020-12-07 22:56:24 +00:00
3 changed files with 18 additions and 6 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@designestate/dees-element",
"version": "1.0.9",
"version": "1.0.10",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@designestate/dees-element",
"version": "1.0.9",
"version": "1.0.10",
"private": false,
"description": "a custom element class extending lit element class",
"main": "dist_ts/index.js",

View File

@ -7,20 +7,32 @@ export {
TemplateResult,
internalProperty,
css,
unsafeCSS
unsafeCSS,
} from 'lit-element';
export class DeesElement extends plugins.litElement.LitElement {
@plugins.litElement.property({type: Boolean})
@plugins.litElement.property({ type: Boolean })
public goBright: boolean = false;
// domtools
public domtoolsPromise = plugins.domtools.elementBasic.setup(this);
@plugins.litElement.property()
domtools?: plugins.domtools.DomTools;
private themeSubscription: plugins.smartrx.rxjs.Subscription;
constructor() {
super();
this.domtoolsPromise.then((domtoolsArg) => {
this.domtools = domtoolsArg;
});
}
public connectedCallback() {
super.connectedCallback();
this.domtoolsPromise.then(async (domtools) => {
this.themeSubscription = domtools.themeManager.themeObservable.subscribe(goBrightArg => {
this.themeSubscription = domtools.themeManager.themeObservable.subscribe((goBrightArg) => {
this.goBright = goBrightArg;
});
});