fix(core): update

This commit is contained in:
Philipp Kunz 2021-03-06 15:48:02 +00:00
parent 056090856e
commit b1ce8f093f
10 changed files with 989 additions and 18 deletions

949
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,7 @@
"main": "dist_ts_web/index.js",
"typings": "dist_ts_web/index.d.ts",
"scripts": {
"test": "npm run build",
"test": "tstest test/ --web",
"build": "tsbuild element && tsbundle element --production",
"watch": "tswatch element"
},
@ -25,8 +25,10 @@
"devDependencies": {
"@gitzone/tsbuild": "^2.1.25",
"@gitzone/tsbundle": "^1.0.78",
"@gitzone/tstest": "^1.0.52",
"@gitzone/tswatch": "^1.0.50",
"@pushrocks/projectinfo": "^4.0.5",
"@pushrocks/tapbundle": "^3.2.14",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.17.0"
},

12
test/test.browser.ts Normal file
View File

@ -0,0 +1,12 @@
import { tap, expect, webhelpers } from '@pushrocks/tapbundle';
webhelpers.enable();
const html = webhelpers.html
import * as deesCatalog from '../ts_web';
tap.test('should create a working button', async () => {
const button: deesCatalog.DeesButton = await webhelpers.fixture(html`<dees-button ></dees-button>`)
expect(button).to.be.instanceOf(deesCatalog.DeesButton);
})
tap.start();

View File

@ -41,6 +41,12 @@ const faIcons: { [key: string]: IconDefinition } = {
users: faUsers,
};
declare global {
interface HTMLElementTagNameMap {
'dees-icon': DeesIcon;
}
}
@customElement('dees-icon')
export class DeesIcon extends LitElement {
public static demo = () => html`

View File

@ -1,6 +1,12 @@
import { customElement, DeesElement, TemplateResult, property, html } from '@designestate/dees-element';
import * as domtools from '@designestate/dees-domtools';
declare global {
interface HTMLElementTagNameMap {
'dees-input-checkbox': DeesInputCheckbox;
}
}
@customElement('dees-input-checkbox')
export class DeesInputCheckbox extends DeesElement {
public static demo = () => html`<dees-input-checkbox></dees-input-checkbox>`;

View File

@ -2,6 +2,12 @@ import { customElement, LitElement, TemplateResult, property, html } from 'lit-e
import * as domtools from '@designestate/dees-domtools';
declare global {
interface HTMLElementTagNameMap {
'dees-input-dropdown': DeesInputDropdown;
}
}
@customElement('dees-input-dropdown')
export class DeesInputDropdown extends LitElement {
public static demo = () => html`<dees-input-dropdown></dees-input-dropdown>`

View File

@ -1,6 +1,12 @@
import { customElement, property, html, TemplateResult, DeesElement } from '@designestate/dees-element';
import * as domtools from '@designestate/dees-domtools';
declare global {
interface HTMLElementTagNameMap {
'dees-input-quantityselector': DeesInputQuantitySelector;
}
}
@customElement('dees-input-quantityselector')
export class DeesInputQuantitySelector extends DeesElement {
public static demo = () => html`<dees-input-quantityselector></dees-input-quantityselector>`;

View File

@ -1,5 +1,11 @@
import {customElement, LitElement, TemplateResult, property, html} from 'lit-element';
declare global {
interface HTMLElementTagNameMap {
'dees-input-radio': DeesInputRadio;
}
}
@customElement('dees-input-radio')
export class DeesInputRadio extends LitElement {
public static demo = () => html`<dees-input-radio></dees-input-radio>`;

View File

@ -1,5 +1,11 @@
import {customElement, DeesElement, TemplateResult, property, html} from '@designestate/dees-element';
declare global {
interface HTMLElementTagNameMap {
'dees-input-text': DeesInputText;
}
}
@customElement('dees-input-text')
export class DeesInputText extends DeesElement {
public static demo = () => html`<dees-input-text></dees-input-text>`;

View File

@ -2,6 +2,12 @@ import { customElement, LitElement, TemplateResult, html } from 'lit-element';
import * as domtools from '@designestate/dees-domtools';
declare global {
interface HTMLElementTagNameMap {
'dees-toast': DeesToast;
}
}
@customElement('dees-toast')
export class DeesToast extends LitElement {