fix(core): update
This commit is contained in:
11
ts/dees-element.plugins.ts
Normal file
11
ts/dees-element.plugins.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { LitElement } from 'lit-element';
|
||||
const litElement = {
|
||||
LitElement
|
||||
};
|
||||
|
||||
import * as domtools from '@designestate/dees-domtools';
|
||||
|
||||
export {
|
||||
litElement,
|
||||
domtools
|
||||
};
|
19
ts/index.ts
Normal file
19
ts/index.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import * as plugins from './dees-element.plugins';
|
||||
|
||||
|
||||
|
||||
export class DeesElement extends plugins.litElement.LitElement {
|
||||
|
||||
public goBright: boolean = false;
|
||||
public domtoolsPromise = plugins.domtools.elementBasic.setup(this);
|
||||
|
||||
public connectedCallback() {
|
||||
super.connectedCallback();
|
||||
this.dispatchEvent(new CustomEvent('domtools-disconnected'));
|
||||
}
|
||||
|
||||
public disconnectedCallback() {
|
||||
super.disconnectedCallback();
|
||||
this.dispatchEvent(new CustomEvent('domtools-disconnected'));
|
||||
}
|
||||
}
|
16
ts/tsconfig.json
Normal file
16
ts/tsconfig.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es2017",
|
||||
"module": "es2015",
|
||||
"moduleResolution": "node",
|
||||
"lib": ["es2017", "dom"],
|
||||
"declaration": true,
|
||||
"inlineSources": true,
|
||||
"inlineSourceMap": true,
|
||||
"noUnusedLocals": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"outDir": "dist/",
|
||||
"skipLibCheck": true,
|
||||
"experimentalDecorators": true
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user