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

View File

@ -65,7 +65,7 @@ export class CssManager {
});
returnCssVar = newTriplet.cssVarName;
}
return plugins.litElement.unsafeCSS(`var(${returnCssVar})`);
return plugins.lit.unsafeCSS(`var(${returnCssVar})`);
}
public cssGridColumns = (amountOfColumnsArg: number, gapSizeArg: number): CSSResult => {
@ -75,6 +75,6 @@ export class CssManager {
gapSizeArg * (amountOfColumnsArg - 1)
}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';
export class DeesElement extends plugins.litElement.LitElement {
export class DeesElement extends plugins.lit.LitElement {
// INSTANCE
@plugins.litElement.property({ type: Boolean })
@plugins.lit.property({ type: Boolean })
public goBright: boolean = false;
// domtools
public domtoolsPromise = plugins.domtools.elementBasic.setup(this);
@plugins.litElement.property()
@plugins.lit.property()
domtools?: plugins.domtools.DomTools;
private themeSubscription: plugins.smartrx.rxjs.Subscription;

View File

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

View File

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