Compare commits

..

6 Commits

Author SHA1 Message Date
bdd766e4bc 1.0.30 2021-03-06 15:48:02 +00:00
b1ce8f093f fix(core): update 2021-03-06 15:48:02 +00:00
056090856e 1.0.29 2021-02-13 21:52:37 +00:00
fef0705acc fix(core): update 2021-02-13 21:52:36 +00:00
6eced2321f 1.0.28 2020-12-09 23:05:13 +00:00
05a9042de8 fix(core): update 2020-12-09 23:05:13 +00:00
16 changed files with 1173 additions and 78 deletions

1003
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,12 +1,12 @@
{ {
"name": "@designestate/dees-catalog", "name": "@designestate/dees-catalog",
"version": "1.0.27", "version": "1.0.30",
"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"
}, },
@@ -15,18 +15,20 @@
"dependencies": { "dependencies": {
"@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.52", "@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"
}, },

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

@@ -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>`
@@ -43,7 +49,7 @@ export class DeesButton extends DeesElement {
display: block; display: block;
text-align: center; text-align: center;
background: ${this.goBright ? '#eee' : '#333'}; background: ${this.goBright ? '#eee' : '#333'};
border-top: 1px solid #444; border-top: ${this.goBright ? '1px solid #eee' : '1px solid #444'};
border-radius: 2px; border-radius: 2px;
line-height: 40px; line-height: 40px;
padding: 0px 10px; padding: 0px 10px;

View File

@@ -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 {

View File

@@ -5,14 +5,22 @@ 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`
<dees-form style="display: block; margin:auto; width: 500px; padding: 20px; background: #111;"> <dees-form style="display: block; margin:auto; max-width: 500px; padding: 20px">
<dees-input-text key="hello1"></dees-input-text> <dees-input-text key="hello1" label="a text"></dees-input-text>
<dees-input-text key="hello2"></dees-input-text> <dees-input-text key="hello2" label="also a text"></dees-input-text>
<dees-input-checkbox key="hello3" label="another text"></dees-input-checkbox>
<dees-form-submit>Submit</dees-form-submit> <dees-form-submit>Submit</dees-form-submit>
</dees-form>`; </dees-form>
`;
public name: string = 'myform'; public name: string = 'myform';

View File

@@ -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`

View File

@@ -1,8 +1,14 @@
import { customElement, LitElement, TemplateResult, property, html } from 'lit-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 LitElement { 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>`;
@property() @property()
@@ -33,11 +39,11 @@ export class DeesInputCheckbox extends LitElement {
display: grid; display: grid;
grid-template-columns: 25px auto; grid-template-columns: 25px auto;
padding: 5px 0px; padding: 5px 0px;
color: #ccc; color: ${this.goBright ? '#333' : '#ccc'};
} }
.maincontainer:hover { .maincontainer:hover {
color: #fff; ${this.goBright ? '#000' : '#ccc'};
} }
.label { .label {
@@ -55,12 +61,12 @@ export class DeesInputCheckbox extends LitElement {
.checkbox { .checkbox {
transition: all 0.1s; transition: all 0.1s;
box-sizing: border-box; box-sizing: border-box;
border: 1px solid #999; border: 1px solid ${this.goBright ? '#CCC' : '#999'};
border-radius: 2px; border-radius: 2px;
height: 24px; height: 24px;
width: 24px; width: 24px;
display: inline-block; display: inline-block;
background: #222; background: ${this.goBright ? '#fafafa' : '#222'};
} }
.checkbox.selected { .checkbox.selected {

View File

@@ -2,8 +2,16 @@ 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>`
@property() @property()
public label: string = 'Label'; public label: string = 'Label';

View File

@@ -1,8 +1,14 @@
import { customElement, property, html, TemplateResult, LitElement } from 'lit-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 LitElement { 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>`;
@property() @property()
@@ -32,8 +38,13 @@ export class DeesInputQuantitySelector extends LitElement {
line-height: 40px; line-height: 40px;
padding: 0px; padding: 0px;
min-width: 100px; min-width: 100px;
color: #CCC; color: ${this.goBright ? '#666' : '#CCC'};
border: 1px solid #CCC; border: ${this.goBright ? '1px solid #333' : '1px solid #CCC'};
}
.mainContainer:hover {
color: ${this.goBright ? '#333' : '#fff'};
border: ${this.goBright ? '1px solid #333' : '1px solid #fff'};
} }
.minus { .minus {
@@ -57,10 +68,7 @@ export class DeesInputQuantitySelector extends LitElement {
text-align: center; text-align: center;
} }
.mainContainer:hover {
color: #fff;
border: 1px solid #fff;
}
</style> </style>
<div class="maincontainer"> <div class="maincontainer">

View File

@@ -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>`;

View File

@@ -1,7 +1,13 @@
import {customElement, LitElement, TemplateResult, property, html} from 'lit-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 LitElement { 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>`;
@property() @property()
@@ -28,7 +34,7 @@ export class DeesInputText extends LitElement {
} }
.maincontainer { .maincontainer {
color: #ccc; color: ${this.goBright ? '#333' : '#ccc'};
} }
.label { .label {
@@ -38,10 +44,11 @@ export class DeesInputText extends LitElement {
input { input {
margin-top: 5px; margin-top: 5px;
background: #222; background: ${this.goBright ? '#fafafa' : '#222'};
border: none; border-top: ${this.goBright ? '1px solid #CCC' : '1px solid #444'};
border-top: 1px solid #444; border-bottom: ${this.goBright ? '1px solid #CCC' : '1px solid #333'};
border-bottom: 1px solid #333; border-right: ${this.goBright ? '1px solid #CCC' : 'none'};
border-left: ${this.goBright ? '1px solid #CCC' : 'none'};
padding-left:10px; padding-left:10px;
padding-right: 10px; padding-right: 10px;
border-radius: 2px; border-radius: 2px;

View File

@@ -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 {

View 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>>
`;
}
}

View 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);
}
}

View File

@@ -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';