fix(core): update
This commit is contained in:
parent
e473364d40
commit
0b2f6715e0
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@design.estate/dees-catalog',
|
name: '@design.estate/dees-catalog',
|
||||||
version: '1.0.243',
|
version: '1.0.244',
|
||||||
description: 'website for lossless.com'
|
description: 'website for lossless.com'
|
||||||
}
|
}
|
||||||
|
11
ts_web/elements/00colors.ts
Normal file
11
ts_web/elements/00colors.ts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
export const dark = {
|
||||||
|
blue: '#0050b9',
|
||||||
|
blueActive: '#0069f2',
|
||||||
|
text: '#ffffff',
|
||||||
|
}
|
||||||
|
|
||||||
|
export const bright = {
|
||||||
|
blue: '#0050b9',
|
||||||
|
blueActive: '#0069f2',
|
||||||
|
text: '#333333',
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
import { html } from '@design.estate/dees-element';
|
import { html } from '@design.estate/dees-element';
|
||||||
import * as plugins from './plugins.js';
|
import * as plugins from './00plugins.js';
|
||||||
|
|
||||||
import { DeesContextmenu } from './dees-contextmenu.js';
|
import { DeesContextmenu } from './dees-contextmenu.js';
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { demoFunc } from './dees-contextmenu.demo.js';
|
import { demoFunc } from './dees-contextmenu.demo.js';
|
||||||
import * as plugins from './plugins.js';
|
import * as plugins from './00plugins.js';
|
||||||
import {
|
import {
|
||||||
customElement,
|
customElement,
|
||||||
html,
|
html,
|
||||||
|
@ -50,6 +50,7 @@ import {
|
|||||||
faEyeSlash as faEyeSlashSolid,
|
faEyeSlash as faEyeSlashSolid,
|
||||||
faFileInvoice as faFileInvoiceSolid,
|
faFileInvoice as faFileInvoiceSolid,
|
||||||
faFileInvoiceDollar as faFileInvoiceDollarSolid,
|
faFileInvoiceDollar as faFileInvoiceDollarSolid,
|
||||||
|
faGear as faGearSolid,
|
||||||
faGrip as faGripSolid,
|
faGrip as faGripSolid,
|
||||||
faMessage as faMessageSolid,
|
faMessage as faMessageSolid,
|
||||||
faMoneyCheckDollar as faMoneyCheckDollarSolid,
|
faMoneyCheckDollar as faMoneyCheckDollarSolid,
|
||||||
@ -93,6 +94,7 @@ export const faIcons = {
|
|||||||
eyeSlash: faEyeSlashSolid,
|
eyeSlash: faEyeSlashSolid,
|
||||||
fileInvoice: faFileInvoiceSolid,
|
fileInvoice: faFileInvoiceSolid,
|
||||||
fileInvoiceDoller: faFileInvoiceDollarSolid,
|
fileInvoiceDoller: faFileInvoiceDollarSolid,
|
||||||
|
gear: faGearSolid,
|
||||||
grip: faGripSolid,
|
grip: faGripSolid,
|
||||||
message: faMessageRegular,
|
message: faMessageRegular,
|
||||||
messageSolid: faMessageSolid,
|
messageSolid: faMessageSolid,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from './plugins.js';
|
import * as plugins from './00plugins.js';
|
||||||
import {
|
import {
|
||||||
cssManager,
|
cssManager,
|
||||||
css,
|
css,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from './plugins.js';
|
import * as plugins from './00plugins.js';
|
||||||
import { demoFunc } from './dees-modal.demo.js';
|
import { demoFunc } from './dees-modal.demo.js';
|
||||||
import {
|
import {
|
||||||
customElement,
|
customElement,
|
||||||
|
11
ts_web/elements/dees-progressbar.demo.ts
Normal file
11
ts_web/elements/dees-progressbar.demo.ts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import { html } from '@design.estate/dees-element';
|
||||||
|
|
||||||
|
import { DeesProgressbar } from './dees-progressbar.js';
|
||||||
|
|
||||||
|
export const demoFunc = () => {
|
||||||
|
return html`
|
||||||
|
<dees-progressbar
|
||||||
|
.percentage=${50}
|
||||||
|
></dees-progressbar>
|
||||||
|
`;
|
||||||
|
}
|
@ -0,0 +1,95 @@
|
|||||||
|
import * as plugins from './00plugins.js';
|
||||||
|
import * as colors from './00colors.js';
|
||||||
|
import { demoFunc } from './dees-progressbar.demo.js';
|
||||||
|
import {
|
||||||
|
customElement,
|
||||||
|
html,
|
||||||
|
DeesElement,
|
||||||
|
property,
|
||||||
|
type TemplateResult,
|
||||||
|
cssManager,
|
||||||
|
css,
|
||||||
|
type CSSResult,
|
||||||
|
unsafeCSS,
|
||||||
|
unsafeHTML,
|
||||||
|
state,
|
||||||
|
} from '@design.estate/dees-element';
|
||||||
|
|
||||||
|
import * as domtools from '@design.estate/dees-domtools';
|
||||||
|
|
||||||
|
@customElement('dees-progressbar')
|
||||||
|
export class DeesProgressbar extends DeesElement {
|
||||||
|
// STATIC
|
||||||
|
public static demo = demoFunc;
|
||||||
|
|
||||||
|
// INSTANCE
|
||||||
|
@property({
|
||||||
|
type: Number,
|
||||||
|
})
|
||||||
|
public percentage = 0;
|
||||||
|
|
||||||
|
public static styles = [
|
||||||
|
cssManager.defaultStyles,
|
||||||
|
css`
|
||||||
|
:host {
|
||||||
|
color: ${cssManager.bdTheme(colors.bright.text, colors.dark.text)};
|
||||||
|
}
|
||||||
|
.progressBarContainer {
|
||||||
|
padding: 8px;
|
||||||
|
min-width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progressBar {
|
||||||
|
background: ${cssManager.bdTheme('#eeeeeb', '#444')};
|
||||||
|
height: 8px;
|
||||||
|
width: 100%;
|
||||||
|
border-radius: 4px;
|
||||||
|
border-top: 0.5px solid ${cssManager.bdTheme('none', '#555')};
|
||||||
|
}
|
||||||
|
|
||||||
|
.progressBarFill {
|
||||||
|
background: ${cssManager.bdTheme(colors.dark.blueActive, colors.bright.blueActive)};
|
||||||
|
height: 8px;
|
||||||
|
margin-top: -0.5px;
|
||||||
|
transition: 0.2s width;
|
||||||
|
border-radius: 4px;
|
||||||
|
width: 0px;
|
||||||
|
border-top: 0.5 solid ${cssManager.bdTheme('none', '#398fff')};
|
||||||
|
}
|
||||||
|
|
||||||
|
.progressText {
|
||||||
|
padding: 8px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
`
|
||||||
|
];
|
||||||
|
|
||||||
|
public render() {
|
||||||
|
return html`
|
||||||
|
<div class="progressBarContainer">
|
||||||
|
<div class="progressBar">
|
||||||
|
<div class="progressBarFill"></div>
|
||||||
|
<div class="progressText">
|
||||||
|
${this.percentage}%
|
||||||
|
<div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`
|
||||||
|
}
|
||||||
|
|
||||||
|
firstUpdated (_changedProperties: Map<string | number | symbol, unknown>): void {
|
||||||
|
super.firstUpdated(_changedProperties);
|
||||||
|
this.updateComplete.then(() => {
|
||||||
|
this.updatePercentage();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public async updatePercentage() {
|
||||||
|
const progressBarFill = this.shadowRoot.querySelector('.progressBarFill') as HTMLElement;
|
||||||
|
progressBarFill.style.width = `${this.percentage}%`;
|
||||||
|
}
|
||||||
|
|
||||||
|
updated(){
|
||||||
|
this.updatePercentage();
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
import { type ITableAction } from './dees-table.js';
|
import { type ITableAction } from './dees-table.js';
|
||||||
import * as plugins from './plugins.js';
|
import * as plugins from './00plugins.js';
|
||||||
import { html } from '@design.estate/dees-element';
|
import { html } from '@design.estate/dees-element';
|
||||||
|
|
||||||
interface ITableDemoData {
|
interface ITableDemoData {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from './plugins.js';
|
import * as plugins from './00plugins.js';
|
||||||
import { demoFunc } from './dees-table.demo.js';
|
import { demoFunc } from './dees-table.demo.js';
|
||||||
import {
|
import {
|
||||||
customElement,
|
customElement,
|
||||||
|
@ -2,6 +2,9 @@ import { html } from '@design.estate/dees-element';
|
|||||||
|
|
||||||
import { DeesUpdater } from './dees-updater.js';
|
import { DeesUpdater } from './dees-updater.js';
|
||||||
|
|
||||||
export const demoFunc = () => {
|
export const demoFunc = async () => {
|
||||||
|
const updater = await DeesUpdater.createAndShow();
|
||||||
|
setTimeout(async () => {
|
||||||
|
await updater.destroy();
|
||||||
|
}, 10000);
|
||||||
}
|
}
|
@ -1,4 +1,12 @@
|
|||||||
import { customElement, DeesElement, type TemplateResult, html, property, type CSSResult, domtools } from '@design.estate/dees-element';
|
import {
|
||||||
|
customElement,
|
||||||
|
DeesElement,
|
||||||
|
type TemplateResult,
|
||||||
|
html,
|
||||||
|
property,
|
||||||
|
type CSSResult,
|
||||||
|
domtools,
|
||||||
|
} from '@design.estate/dees-element';
|
||||||
import { demoFunc } from './dees-updater.demo.js';
|
import { demoFunc } from './dees-updater.demo.js';
|
||||||
|
|
||||||
import './dees-windowlayer';
|
import './dees-windowlayer';
|
||||||
@ -15,7 +23,9 @@ export class DeesUpdater extends DeesElement {
|
|||||||
public static demo = demoFunc;
|
public static demo = demoFunc;
|
||||||
|
|
||||||
public static async createAndShow() {
|
public static async createAndShow() {
|
||||||
|
const updater = new DeesUpdater();
|
||||||
|
document.body.appendChild(updater);
|
||||||
|
return updater;
|
||||||
}
|
}
|
||||||
|
|
||||||
@property({
|
@property({
|
||||||
@ -37,56 +47,64 @@ export class DeesUpdater extends DeesElement {
|
|||||||
cssManager.defaultStyles,
|
cssManager.defaultStyles,
|
||||||
css`
|
css`
|
||||||
.modalContainer {
|
.modalContainer {
|
||||||
will-change: transform;
|
will-change: transform;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: ${cssManager.bdTheme('#eeeeeb', '#222')};
|
background: ${cssManager.bdTheme('#eeeeeb', '#222')};
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
border-top: 1px solid ${cssManager.bdTheme('#eeeeeb', '#333')};
|
border-top: 1px solid ${cssManager.bdTheme('#eeeeeb', '#333')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.headingContainer {
|
.headingContainer {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 40px 40px;
|
padding: 40px 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
margin: none;
|
margin: none;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
color: ${cssManager.bdTheme('#333', '#fff')};
|
color: ${cssManager.bdTheme('#333', '#fff')};
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttonContainer {
|
.buttonContainer {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 50% 50%;
|
grid-template-columns: 50% 50%;
|
||||||
}
|
}
|
||||||
`
|
`,
|
||||||
]
|
];
|
||||||
|
|
||||||
public render(): TemplateResult {
|
public render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
<dees-windowlayer @clicked="${this.windowLayerClicked}" .options=${{
|
<dees-windowlayer
|
||||||
blur: true,
|
@clicked="${this.windowLayerClicked}"
|
||||||
}}>
|
.options=${{
|
||||||
|
blur: true,
|
||||||
|
}}
|
||||||
|
>
|
||||||
<div class="modalContainer">
|
<div class="modalContainer">
|
||||||
<div class="headingContainer">
|
<div class="headingContainer">
|
||||||
<dees-spinner .size=${60}></dees-spinner>
|
<dees-spinner .size=${60}></dees-spinner>
|
||||||
<h1>Updating the application...</h1>
|
<h1>Updating the application...</h1>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="progress">
|
||||||
|
<dees-progressbar .progress=${0.5}></dees-progressbar>
|
||||||
|
</div>
|
||||||
<div class="buttonContainer">
|
<div class="buttonContainer">
|
||||||
<dees-button>More info</dees-button>
|
<dees-button>More info</dees-button>
|
||||||
<dees-button>Changelog</dees-button>
|
<dees-button>Changelog</dees-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> </dees-windowlayer
|
||||||
</dees-windowlayer>>
|
>>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
private windowLayerClicked() {
|
public async destroy() {
|
||||||
|
this.parentElement.removeChild(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private windowLayerClicked() {}
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ export * from './dees-input-fileupload.js';
|
|||||||
export * from './dees-input-iban.js';
|
export * from './dees-input-iban.js';
|
||||||
export * from './dees-input-typelist.js';
|
export * from './dees-input-typelist.js';
|
||||||
export * from './dees-input-phone.js';
|
export * from './dees-input-phone.js';
|
||||||
|
export * from './dees-progressbar.js';
|
||||||
export * from './dees-input-quantityselector.js';
|
export * from './dees-input-quantityselector.js';
|
||||||
export * from './dees-input-radio.js';
|
export * from './dees-input-radio.js';
|
||||||
export * from './dees-input-text.js';
|
export * from './dees-input-text.js';
|
||||||
|
Loading…
Reference in New Issue
Block a user