fix(core): update

This commit is contained in:
Philipp Kunz 2021-11-27 17:07:33 +01:00
parent 5622ea41e9
commit 17a2504760
6 changed files with 1363 additions and 1701 deletions

3014
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,19 +12,19 @@
"build": "(tsbuild --web)" "build": "(tsbuild --web)"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.27", "@gitzone/tsbuild": "^2.1.28",
"@gitzone/tsbundle": "^1.0.87", "@gitzone/tsbundle": "^1.0.88",
"@gitzone/tstest": "^1.0.57", "@gitzone/tstest": "^1.0.60",
"@pushrocks/tapbundle": "^3.2.14", "@pushrocks/tapbundle": "^3.2.14",
"@types/node": "^16.10.1", "@types/node": "^16.11.10",
"tslint": "^6.1.3", "tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0" "tslint-config-prettier": "^1.18.0"
}, },
"dependencies": { "dependencies": {
"@designestate/dees-domtools": "^1.0.96", "@designestate/dees-domtools": "^1.0.102",
"@pushrocks/isounique": "^1.0.4", "@pushrocks/isounique": "^1.0.4",
"@pushrocks/smartrx": "^2.0.19", "@pushrocks/smartrx": "^2.0.19",
"lit-element": "^3.0.0" "lit": "^2.0.2"
}, },
"browserslist": [ "browserslist": [
"last 1 chrome versions" "last 1 chrome versions"

View File

@ -65,7 +65,7 @@ export class CssManager {
}); });
returnCssVar = newTriplet.cssVarName; returnCssVar = newTriplet.cssVarName;
} }
return plugins.litElement.unsafeCSS(`var(${returnCssVar})`); return plugins.lit.unsafeCSS(`var(${returnCssVar})`);
} }
public cssGridColumns = (amountOfColumnsArg: number, gapSizeArg: number): CSSResult => { public cssGridColumns = (amountOfColumnsArg: number, gapSizeArg: number): CSSResult => {
@ -75,6 +75,6 @@ export class CssManager {
gapSizeArg * (amountOfColumnsArg - 1) gapSizeArg * (amountOfColumnsArg - 1)
}px/${amountOfColumnsArg}))`; }px/${amountOfColumnsArg}))`;
} }
return plugins.litElement.unsafeCSS(returnString); return plugins.lit.unsafeCSS(returnString);
}; };
} }

View File

@ -1,14 +1,14 @@
import * as plugins from './dees-element.plugins'; import * as plugins from './dees-element.plugins';
export class DeesElement extends plugins.litElement.LitElement { export class DeesElement extends plugins.lit.LitElement {
// INSTANCE // INSTANCE
@plugins.litElement.property({ type: Boolean }) @plugins.lit.property({ type: Boolean })
public goBright: boolean = false; public goBright: boolean = false;
// domtools // domtools
public domtoolsPromise = plugins.domtools.elementBasic.setup(this); public domtoolsPromise = plugins.domtools.elementBasic.setup(this);
@plugins.litElement.property() @plugins.lit.property()
domtools?: plugins.domtools.DomTools; domtools?: plugins.domtools.DomTools;
private themeSubscription: plugins.smartrx.rxjs.Subscription; private themeSubscription: plugins.smartrx.rxjs.Subscription;

View File

@ -8,8 +8,9 @@ export {
}; };
// third party scope // third party scope
import { css, unsafeCSS, LitElement, property } from 'lit-element'; import { css, unsafeCSS, LitElement } from 'lit';
const litElement = { import { property } from 'lit/decorators';
const lit = {
css, css,
unsafeCSS, unsafeCSS,
LitElement, LitElement,
@ -19,6 +20,6 @@ const litElement = {
import * as domtools from '@designestate/dees-domtools'; import * as domtools from '@designestate/dees-domtools';
export { export {
litElement, lit,
domtools domtools
}; };

View File

@ -1,21 +1,30 @@
import { CssManager } from './dees-element.classes.cssmanager'; import { CssManager } from './dees-element.classes.cssmanager';
import * as plugins from './dees-element.plugins'; import * as plugins from './dees-element.plugins';
// lit exports
export { export {
customElement,
property,
html, html,
TemplateResult, TemplateResult,
css, css,
unsafeCSS, unsafeCSS,
state } from 'lit';
} from 'lit-element';
export {
customElement,
property,
state
} from 'lit/decorators'
// domtools exports
import * as domtools from '@designestate/dees-domtools'; import * as domtools from '@designestate/dees-domtools';
export { export {
domtools domtools
} }
// DeesElements exports
export { DeesElement } from './dees-element.classes.dees-element'; export { DeesElement } from './dees-element.classes.dees-element';
/**
* a singleton instance of CssManager
*/
export const cssManager = new CssManager(); export const cssManager = new CssManager();