fix(core): update
This commit is contained in:
parent
01963447dd
commit
a00bacd4ff
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@designestate/dees-catalog',
|
name: '@designestate/dees-catalog',
|
||||||
version: '1.0.138',
|
version: '1.0.139',
|
||||||
description: 'website for lossless.com'
|
description: 'website for lossless.com'
|
||||||
}
|
}
|
||||||
|
@ -181,7 +181,7 @@ export class DeesButton extends DeesElement {
|
|||||||
@click="${this.dispatchClick}"
|
@click="${this.dispatchClick}"
|
||||||
>
|
>
|
||||||
${this.status === 'normal' ? html``: html`
|
${this.status === 'normal' ? html``: html`
|
||||||
<dees-spinner status="${this.status}"></dees-spinner>
|
<dees-spinner .bnw=${true} status="${this.status}"></dees-spinner>
|
||||||
`}
|
`}
|
||||||
<div class="textbox">${this.text ? this.text : this.textContent}</div>
|
<div class="textbox">${this.text ? this.text : this.textContent}</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -23,6 +23,8 @@ import {
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
faCopy as faCopyRegular,
|
faCopy as faCopyRegular,
|
||||||
|
faCircleCheck as faCircleCheckRegular,
|
||||||
|
faCircleXmark as faCircleXmarkRegular,
|
||||||
faMessage as faMessageRegular,
|
faMessage as faMessageRegular,
|
||||||
faPaste as faPasteRegular,
|
faPaste as faPasteRegular,
|
||||||
faSun as faSunRegular,
|
faSun as faSunRegular,
|
||||||
@ -37,6 +39,8 @@ import {
|
|||||||
faCaretRight as faCaretRightSolid,
|
faCaretRight as faCaretRightSolid,
|
||||||
faCheck as faCheckSolid,
|
faCheck as faCheckSolid,
|
||||||
faCircleInfo as faCircleInfoSolid,
|
faCircleInfo as faCircleInfoSolid,
|
||||||
|
faCircleCheck as faCircleCheckSolid,
|
||||||
|
faCircleXmark as faCircleXmarkSolid,
|
||||||
faCopy as faCopySolid,
|
faCopy as faCopySolid,
|
||||||
faDesktop as faDesktopSolid,
|
faDesktop as faDesktopSolid,
|
||||||
faGrip as faGripSolid,
|
faGrip as faGripSolid,
|
||||||
@ -68,8 +72,12 @@ export const faIcons = {
|
|||||||
caretRightSolid: faCaretRightSolid,
|
caretRightSolid: faCaretRightSolid,
|
||||||
check: faCheckSolid,
|
check: faCheckSolid,
|
||||||
checkSolid: faCheckSolid,
|
checkSolid: faCheckSolid,
|
||||||
circleinfo: faCircleInfoSolid,
|
circleInfo: faCircleInfoSolid,
|
||||||
circleinfoSolid: faCircleInfoSolid,
|
circleInfoSolid: faCircleInfoSolid,
|
||||||
|
circleCheck: faCircleCheckRegular,
|
||||||
|
circleCheckSolid: faCircleCheckSolid,
|
||||||
|
circleXmark: faCircleXmarkRegular,
|
||||||
|
circleXmarkSolid: faCircleXmarkSolid,
|
||||||
copy: faCopyRegular,
|
copy: faCopyRegular,
|
||||||
copySolid: faCopySolid,
|
copySolid: faCopySolid,
|
||||||
desktop: faDesktopSolid,
|
desktop: faDesktopSolid,
|
||||||
|
@ -32,6 +32,11 @@ export class DeesSpinner extends DeesElement {
|
|||||||
})
|
})
|
||||||
public size = 20;
|
public size = 20;
|
||||||
|
|
||||||
|
@property({
|
||||||
|
type: String,
|
||||||
|
})
|
||||||
|
public bnw: boolean = false;
|
||||||
|
|
||||||
@property()
|
@property()
|
||||||
public status: 'normal' | 'pending' | 'success' | 'error' = 'normal';
|
public status: 'normal' | 'pending' | 'success' | 'error' = 'normal';
|
||||||
|
|
||||||
@ -61,12 +66,14 @@ export class DeesSpinner extends DeesElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#loading.success {
|
#loading.success {
|
||||||
|
border: none;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
animation: none;
|
animation: none;
|
||||||
-webkit-animation: none;
|
-webkit-animation: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#loading.error {
|
#loading.error {
|
||||||
|
border: none;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
animation: none;
|
animation: none;
|
||||||
-webkit-animation: none;
|
-webkit-animation: none;
|
||||||
@ -88,14 +95,6 @@ export class DeesSpinner extends DeesElement {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#loading.success dees-icon {
|
|
||||||
color: #8bc34a;
|
|
||||||
}
|
|
||||||
|
|
||||||
#loading.error dees-icon {
|
|
||||||
color: #e64a19;
|
|
||||||
}
|
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -107,21 +106,22 @@ export class DeesSpinner extends DeesElement {
|
|||||||
height: ${this.size}px;
|
height: ${this.size}px;
|
||||||
}
|
}
|
||||||
#loading.success {
|
#loading.success {
|
||||||
border: ${Math.round(this.size * 0.08)}px solid ${cssManager.bdTheme(`#8bc34a`, '#8bc34a')}
|
color: ${cssManager.bdTheme(this.bnw ? '#333': `#8bc34a`, this.bnw ? '#fff' : `#8bc34a`)};
|
||||||
|
|
||||||
}
|
}
|
||||||
#loading.error {
|
#loading.error {
|
||||||
border: ${Math.round(this.size * 0.1)}px solid ${cssManager.bdTheme(`#e64a19`, '#e64a19')}
|
color: ${cssManager.bdTheme(this.bnw ? '#333': `#e64a19`, this.bnw ? '#fff' : `#e64a19`)};
|
||||||
}
|
}
|
||||||
dees-icon {
|
dees-icon {
|
||||||
font-size: ${Math.round(this.size * 0.6)}px;
|
font-size: ${this.size}px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<div class="${this.status}" id="loading">
|
<div class="${this.status}" id="loading">
|
||||||
${(() => {
|
${(() => {
|
||||||
if (this.status === 'success') {
|
if (this.status === 'success') {
|
||||||
return html`<dees-icon style="transform: translateX(1%) translateY(3%);" .iconFA=${'check' as any}></dees-icon>`;
|
return html`<dees-icon style="transform: translateX(1%) translateY(3%);" .iconFA=${'circleCheck' as any}></dees-icon>`;
|
||||||
} else if (this.status === 'error') {
|
} else if (this.status === 'error') {
|
||||||
return html`<dees-icon .iconFA=${'xmark' as any}></dees-icon>`;
|
return html`<dees-icon .iconFA=${'circleXmark' as any}></dees-icon>`;
|
||||||
}
|
}
|
||||||
})()}
|
})()}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user