Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 22d7883c04 | |||
| 2a613c96a0 | |||
| bdd766e4bc | |||
| b1ce8f093f | |||
| 056090856e | |||
| fef0705acc |
995
package-lock.json
generated
995
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@designestate/dees-catalog",
|
"name": "@designestate/dees-catalog",
|
||||||
"version": "1.0.28",
|
"version": "1.0.31",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "website for lossless.com",
|
"description": "website for lossless.com",
|
||||||
"main": "dist_ts_web/index.js",
|
"main": "dist_ts_web/index.js",
|
||||||
"typings": "dist_ts_web/index.d.ts",
|
"typings": "dist_ts_web/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm run build",
|
"test": "tstest test/ --web",
|
||||||
"build": "tsbuild element && tsbundle element --production",
|
"build": "tsbuild element && tsbundle element --production",
|
||||||
"watch": "tswatch element"
|
"watch": "tswatch element"
|
||||||
},
|
},
|
||||||
@@ -16,17 +16,19 @@
|
|||||||
"@designestate/dees-domtools": "^1.0.84",
|
"@designestate/dees-domtools": "^1.0.84",
|
||||||
"@designestate/dees-element": "^1.0.10",
|
"@designestate/dees-element": "^1.0.10",
|
||||||
"@designestate/dees-wcctools": "^1.0.54",
|
"@designestate/dees-wcctools": "^1.0.54",
|
||||||
"@fortawesome/fontawesome-svg-core": "^1.2.32",
|
"@fortawesome/fontawesome-svg-core": "^1.2.34",
|
||||||
"@fortawesome/free-brands-svg-icons": "^5.15.1",
|
"@fortawesome/free-brands-svg-icons": "^5.15.2",
|
||||||
"@fortawesome/free-regular-svg-icons": "^5.15.1",
|
"@fortawesome/free-regular-svg-icons": "^5.15.2",
|
||||||
"@fortawesome/free-solid-svg-icons": "^5.15.1",
|
"@fortawesome/free-solid-svg-icons": "^5.15.2",
|
||||||
"typescript": "^4.1.2"
|
"typescript": "^4.1.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.25",
|
"@gitzone/tsbuild": "^2.1.25",
|
||||||
"@gitzone/tsbundle": "^1.0.78",
|
"@gitzone/tsbundle": "^1.0.78",
|
||||||
|
"@gitzone/tstest": "^1.0.52",
|
||||||
"@gitzone/tswatch": "^1.0.50",
|
"@gitzone/tswatch": "^1.0.50",
|
||||||
"@pushrocks/projectinfo": "^4.0.5",
|
"@pushrocks/projectinfo": "^4.0.5",
|
||||||
|
"@pushrocks/tapbundle": "^3.2.14",
|
||||||
"tslint": "^6.1.3",
|
"tslint": "^6.1.3",
|
||||||
"tslint-config-prettier": "^1.17.0"
|
"tslint-config-prettier": "^1.17.0"
|
||||||
},
|
},
|
||||||
|
|||||||
14
test/test.browser.ts
Normal file
14
test/test.browser.ts
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
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();
|
||||||
@@ -2,6 +2,12 @@ import { customElement, html, DeesElement, property, TemplateResult } from '@des
|
|||||||
|
|
||||||
import * as domtools from '@designestate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
'dees-button': DeesButton;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@customElement('dees-button')
|
@customElement('dees-button')
|
||||||
export class DeesButton extends DeesElement {
|
export class DeesButton extends DeesElement {
|
||||||
public static demo = () => html`<dees-button></dees-button>`
|
public static demo = () => html`<dees-button></dees-button>`
|
||||||
|
|||||||
@@ -2,6 +2,12 @@ import { customElement, html, LitElement } from 'lit-element';
|
|||||||
|
|
||||||
import {DeesForm} from './dees-form';
|
import {DeesForm} from './dees-form';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
'dees-form-submit': DeesFormSubmit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@customElement('dees-form-submit')
|
@customElement('dees-form-submit')
|
||||||
export class DeesFormSubmit extends LitElement {
|
export class DeesFormSubmit extends LitElement {
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,12 @@ import { DeesInputText } from './dees-input-text';
|
|||||||
import { DeesInputQuantitySelector } from './dees-input-quantityselector';
|
import { DeesInputQuantitySelector } from './dees-input-quantityselector';
|
||||||
import { DeesInputRadio } from './dees-input-radio';
|
import { DeesInputRadio } from './dees-input-radio';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
'dees-form': DeesForm;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@customElement('dees-form')
|
@customElement('dees-form')
|
||||||
export class DeesForm extends LitElement {
|
export class DeesForm extends LitElement {
|
||||||
public static demo = () => html`
|
public static demo = () => html`
|
||||||
|
|||||||
@@ -41,6 +41,12 @@ const faIcons: { [key: string]: IconDefinition } = {
|
|||||||
users: faUsers,
|
users: faUsers,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
'dees-icon': DeesIcon;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@customElement('dees-icon')
|
@customElement('dees-icon')
|
||||||
export class DeesIcon extends LitElement {
|
export class DeesIcon extends LitElement {
|
||||||
public static demo = () => html`
|
public static demo = () => html`
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
import { customElement, DeesElement, TemplateResult, property, html } from '@designestate/dees-element';
|
import { customElement, DeesElement, TemplateResult, property, html } from '@designestate/dees-element';
|
||||||
import * as domtools from '@designestate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
'dees-input-checkbox': DeesInputCheckbox;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@customElement('dees-input-checkbox')
|
@customElement('dees-input-checkbox')
|
||||||
export class DeesInputCheckbox extends DeesElement {
|
export class DeesInputCheckbox extends DeesElement {
|
||||||
public static demo = () => html`<dees-input-checkbox></dees-input-checkbox>`;
|
public static demo = () => html`<dees-input-checkbox></dees-input-checkbox>`;
|
||||||
|
|||||||
@@ -2,6 +2,12 @@ import { customElement, LitElement, TemplateResult, property, html } from 'lit-e
|
|||||||
|
|
||||||
import * as domtools from '@designestate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
'dees-input-dropdown': DeesInputDropdown;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@customElement('dees-input-dropdown')
|
@customElement('dees-input-dropdown')
|
||||||
export class DeesInputDropdown extends LitElement {
|
export class DeesInputDropdown extends LitElement {
|
||||||
public static demo = () => html`<dees-input-dropdown></dees-input-dropdown>`
|
public static demo = () => html`<dees-input-dropdown></dees-input-dropdown>`
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
import { customElement, property, html, TemplateResult, DeesElement } from '@designestate/dees-element';
|
import { customElement, property, html, TemplateResult, DeesElement } from '@designestate/dees-element';
|
||||||
import * as domtools from '@designestate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
'dees-input-quantityselector': DeesInputQuantitySelector;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@customElement('dees-input-quantityselector')
|
@customElement('dees-input-quantityselector')
|
||||||
export class DeesInputQuantitySelector extends DeesElement {
|
export class DeesInputQuantitySelector extends DeesElement {
|
||||||
public static demo = () => html`<dees-input-quantityselector></dees-input-quantityselector>`;
|
public static demo = () => html`<dees-input-quantityselector></dees-input-quantityselector>`;
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
import {customElement, LitElement, TemplateResult, property, html} from 'lit-element';
|
import {customElement, LitElement, TemplateResult, property, html} from 'lit-element';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
'dees-input-radio': DeesInputRadio;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@customElement('dees-input-radio')
|
@customElement('dees-input-radio')
|
||||||
export class DeesInputRadio extends LitElement {
|
export class DeesInputRadio extends LitElement {
|
||||||
public static demo = () => html`<dees-input-radio></dees-input-radio>`;
|
public static demo = () => html`<dees-input-radio></dees-input-radio>`;
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
import {customElement, DeesElement, TemplateResult, property, html} from '@designestate/dees-element';
|
import {customElement, DeesElement, TemplateResult, property, html} from '@designestate/dees-element';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
'dees-input-text': DeesInputText;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@customElement('dees-input-text')
|
@customElement('dees-input-text')
|
||||||
export class DeesInputText extends DeesElement {
|
export class DeesInputText extends DeesElement {
|
||||||
public static demo = () => html`<dees-input-text></dees-input-text>`;
|
public static demo = () => html`<dees-input-text></dees-input-text>`;
|
||||||
|
|||||||
@@ -2,6 +2,12 @@ import { customElement, LitElement, TemplateResult, html } from 'lit-element';
|
|||||||
|
|
||||||
import * as domtools from '@designestate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
'dees-toast': DeesToast;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@customElement('dees-toast')
|
@customElement('dees-toast')
|
||||||
export class DeesToast extends LitElement {
|
export class DeesToast extends LitElement {
|
||||||
|
|
||||||
|
|||||||
47
ts_web/elements/dees-updater.ts
Normal file
47
ts_web/elements/dees-updater.ts
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
import { customElement, LitElement, TemplateResult, html, property } from 'lit-element';
|
||||||
|
|
||||||
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
|
|
||||||
|
import './dees-windowlayer';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
'dees-updater': DeesUpdater;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@customElement('dees-updater')
|
||||||
|
export class DeesUpdater extends LitElement {
|
||||||
|
public static demo = () => html`<dees-updater ></dees-updater>`;
|
||||||
|
|
||||||
|
@property()
|
||||||
|
currentVersion: string;
|
||||||
|
|
||||||
|
@property()
|
||||||
|
updatedVersion: string;
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
super();
|
||||||
|
domtools.elementBasic.setup();
|
||||||
|
}
|
||||||
|
|
||||||
|
public render(): TemplateResult {
|
||||||
|
return html`
|
||||||
|
${domtools.elementBasic.styles}
|
||||||
|
<style>
|
||||||
|
.modalContainer {
|
||||||
|
background: #333333;
|
||||||
|
margin: auto;
|
||||||
|
height: 200px;
|
||||||
|
width: 800px;
|
||||||
|
margin-top: 80px;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<dees-windowlayer>
|
||||||
|
<div class="modalContainer"></div>
|
||||||
|
</dees-windowlayer>>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
}
|
||||||
50
ts_web/elements/dees-windowlayer.ts
Normal file
50
ts_web/elements/dees-windowlayer.ts
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
import { customElement, LitElement, TemplateResult, html, property } from 'lit-element';
|
||||||
|
|
||||||
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
'dees-windowlayer': DeesWindowLayer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@customElement('dees-windowlayer')
|
||||||
|
export class DeesWindowLayer extends LitElement {
|
||||||
|
public static demo = () => html`<dees-windowlayer></dees-windowlayer>`;
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
super();
|
||||||
|
domtools.elementBasic.setup();
|
||||||
|
}
|
||||||
|
|
||||||
|
public render(): TemplateResult {
|
||||||
|
return html`
|
||||||
|
${domtools.elementBasic.styles}
|
||||||
|
<style>
|
||||||
|
.windowOverlay {
|
||||||
|
transition: all 1s;
|
||||||
|
position: fixed;
|
||||||
|
top: 0px;
|
||||||
|
left: 0px;
|
||||||
|
height: 100vh;
|
||||||
|
width: 100vw;
|
||||||
|
background: rgba(0, 0, 0, 0.0);
|
||||||
|
backdrop-filter: blur(0px);
|
||||||
|
}
|
||||||
|
.visible {
|
||||||
|
background: rgba(0, 0, 0, 0.2);
|
||||||
|
backdrop-filter: blur(3px);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div class="windowOverlay">
|
||||||
|
<slot></slot>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
|
||||||
|
firstUpdated() {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.shadowRoot.querySelector('.windowOverlay').classList.add('visible');
|
||||||
|
}, 100);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,3 +8,5 @@ export * from './dees-input-quantityselector';
|
|||||||
export * from './dees-input-radio';
|
export * from './dees-input-radio';
|
||||||
export * from './dees-input-text';
|
export * from './dees-input-text';
|
||||||
export * from './dees-toast';
|
export * from './dees-toast';
|
||||||
|
export * from './dees-updater';
|
||||||
|
export * from './dees-windowlayer';
|
||||||
|
|||||||
Reference in New Issue
Block a user