@everymatrix/casino-engagement-suite-progress-bar 1.35.0 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.esm.js +1 -1
- package/dist/casino-engagement-suite-progress-bar/p-1a9eaff2.entry.js +1 -0
- package/dist/cjs/casino-engagement-suite-progress-bar.cjs.entry.js +7 -2
- package/dist/cjs/casino-engagement-suite-progress-bar.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.css +4 -0
- package/dist/collection/components/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.js +24 -1
- package/dist/components/casino-engagement-suite-progress-bar.js +8 -2
- package/dist/esm/casino-engagement-suite-progress-bar.entry.js +7 -2
- package/dist/esm/casino-engagement-suite-progress-bar.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.d.ts +5 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/casino-engagement-suite-progress-bar/p-0a8b4144.entry.js +0 -1
package/dist/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as e,b as i}from"./p-212ac068.js";(()=>{const i=import.meta.url,n={};return""!==i&&(n.resourcesUrl=new URL(".",i).href),e(n)})().then((e=>i([["p-1a9eaff2",[[1,"casino-engagement-suite-progress-bar",{value:[2],disabled:[4],hidePercent:[4,"hide-percent"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],limitStylingAppends:[32]}]]]],e)));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as e,g as s}from"./p-212ac068.js";const t=class{constructor(e){r(this,e),this.value=0,this.disabled=!1,this.hidePercent=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.setClientStyling=()=>{let r=document.createElement("style");r.innerHTML=this.clientStyling,this.host.prepend(r)},this.setClientStylingURL=()=>{let r=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(r.href).then((r=>r.text())).then((r=>{e.innerHTML=r,setTimeout((()=>{this.host.prepend(e)}),1)})).catch((r=>{console.log("Error ",r)}))}}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}getProgressBarClasses(){return{ProgressBar:!0,Completed:100===this.value,Disabled:this.disabled,HidePercent:this.hidePercent}}render(){return e("div",{class:this.getProgressBarClasses(),part:"ProgressBar"},e("div",{class:"ProgressBarInfo",part:"ProgressBarInfo"},e("slot",{name:"Title"},e("div",null)),e("slot",{name:"Percent"},e("div",{class:"ProgressBarPercent",part:"ProgressBarPercent"},this.value,"%"))),e("div",{class:"ProgressBarBackground",part:"ProgressBarBackground"},e("div",{class:"ProgressBarLine",part:"ProgressBarLine",style:{width:this.value+"%"}})))}get host(){return s(this)}};t.style=":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:14px;line-height:14px}.ProgressBarBackground{height:8px;background-color:var(--emw--color-background, #666178);border-radius:4px;position:relative}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);transition:width ease-out 0.3s}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:700;font-size:12px;line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-background, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";export{t as casino_engagement_suite_progress_bar}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-7f32df08.js');
|
|
6
6
|
|
|
7
|
-
const casinoEngagementSuiteProgressBarCss = ":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:14px;line-height:14px}.ProgressBarBackground{height:8px;background-color:var(--emw--color-background, #666178);border-radius:4px;position:relative}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);transition:width ease-out 0.3s}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:700;font-size:12px;line-height:12px}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-background, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";
|
|
7
|
+
const casinoEngagementSuiteProgressBarCss = ":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:14px;line-height:14px}.ProgressBarBackground{height:8px;background-color:var(--emw--color-background, #666178);border-radius:4px;position:relative}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);transition:width ease-out 0.3s}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:700;font-size:12px;line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-background, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";
|
|
8
8
|
|
|
9
9
|
const CasinoEngagementSuiteProgressBar = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -17,6 +17,10 @@ const CasinoEngagementSuiteProgressBar = class {
|
|
|
17
17
|
* Shows disabled styles
|
|
18
18
|
*/
|
|
19
19
|
this.disabled = false;
|
|
20
|
+
/**
|
|
21
|
+
* Hide percent value
|
|
22
|
+
*/
|
|
23
|
+
this.hidePercent = false;
|
|
20
24
|
/**
|
|
21
25
|
* Client custom styling via string
|
|
22
26
|
*/
|
|
@@ -58,7 +62,8 @@ const CasinoEngagementSuiteProgressBar = class {
|
|
|
58
62
|
return {
|
|
59
63
|
ProgressBar: true,
|
|
60
64
|
Completed: this.value === 100,
|
|
61
|
-
Disabled: this.disabled
|
|
65
|
+
Disabled: this.disabled,
|
|
66
|
+
HidePercent: this.hidePercent
|
|
62
67
|
};
|
|
63
68
|
}
|
|
64
69
|
render() {
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["casino-engagement-suite-progress-bar.cjs",[[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
|
|
18
|
+
return index.bootstrapLazy([["casino-engagement-suite-progress-bar.cjs",[[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
|
|
19
19
|
});
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["casino-engagement-suite-progress-bar.cjs",[[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
|
|
17
|
+
return index.bootstrapLazy([["casino-engagement-suite-progress-bar.cjs",[[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -38,6 +38,10 @@
|
|
|
38
38
|
line-height: 12px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
.HidePercent .ProgressBarPercent {
|
|
42
|
+
display: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
41
45
|
.ProgressBar:not(.Disabled) .ProgressBarPercent {
|
|
42
46
|
background: linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);
|
|
43
47
|
-webkit-background-clip: text;
|
|
@@ -9,6 +9,10 @@ export class CasinoEngagementSuiteProgressBar {
|
|
|
9
9
|
* Shows disabled styles
|
|
10
10
|
*/
|
|
11
11
|
this.disabled = false;
|
|
12
|
+
/**
|
|
13
|
+
* Hide percent value
|
|
14
|
+
*/
|
|
15
|
+
this.hidePercent = false;
|
|
12
16
|
/**
|
|
13
17
|
* Client custom styling via string
|
|
14
18
|
*/
|
|
@@ -50,7 +54,8 @@ export class CasinoEngagementSuiteProgressBar {
|
|
|
50
54
|
return {
|
|
51
55
|
ProgressBar: true,
|
|
52
56
|
Completed: this.value === 100,
|
|
53
|
-
Disabled: this.disabled
|
|
57
|
+
Disabled: this.disabled,
|
|
58
|
+
HidePercent: this.hidePercent
|
|
54
59
|
};
|
|
55
60
|
}
|
|
56
61
|
render() {
|
|
@@ -110,6 +115,24 @@ export class CasinoEngagementSuiteProgressBar {
|
|
|
110
115
|
"reflect": false,
|
|
111
116
|
"defaultValue": "false"
|
|
112
117
|
},
|
|
118
|
+
"hidePercent": {
|
|
119
|
+
"type": "boolean",
|
|
120
|
+
"mutable": false,
|
|
121
|
+
"complexType": {
|
|
122
|
+
"original": "boolean",
|
|
123
|
+
"resolved": "boolean",
|
|
124
|
+
"references": {}
|
|
125
|
+
},
|
|
126
|
+
"required": false,
|
|
127
|
+
"optional": false,
|
|
128
|
+
"docs": {
|
|
129
|
+
"tags": [],
|
|
130
|
+
"text": "Hide percent value"
|
|
131
|
+
},
|
|
132
|
+
"attribute": "hide-percent",
|
|
133
|
+
"reflect": false,
|
|
134
|
+
"defaultValue": "false"
|
|
135
|
+
},
|
|
113
136
|
"clientStyling": {
|
|
114
137
|
"type": "string",
|
|
115
138
|
"mutable": false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const casinoEngagementSuiteProgressBarCss = ":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:14px;line-height:14px}.ProgressBarBackground{height:8px;background-color:var(--emw--color-background, #666178);border-radius:4px;position:relative}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);transition:width ease-out 0.3s}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:700;font-size:12px;line-height:12px}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-background, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";
|
|
3
|
+
const casinoEngagementSuiteProgressBarCss = ":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:14px;line-height:14px}.ProgressBarBackground{height:8px;background-color:var(--emw--color-background, #666178);border-radius:4px;position:relative}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);transition:width ease-out 0.3s}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:700;font-size:12px;line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-background, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";
|
|
4
4
|
|
|
5
5
|
const CasinoEngagementSuiteProgressBar$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -15,6 +15,10 @@ const CasinoEngagementSuiteProgressBar$1 = /*@__PURE__*/ proxyCustomElement(clas
|
|
|
15
15
|
* Shows disabled styles
|
|
16
16
|
*/
|
|
17
17
|
this.disabled = false;
|
|
18
|
+
/**
|
|
19
|
+
* Hide percent value
|
|
20
|
+
*/
|
|
21
|
+
this.hidePercent = false;
|
|
18
22
|
/**
|
|
19
23
|
* Client custom styling via string
|
|
20
24
|
*/
|
|
@@ -56,7 +60,8 @@ const CasinoEngagementSuiteProgressBar$1 = /*@__PURE__*/ proxyCustomElement(clas
|
|
|
56
60
|
return {
|
|
57
61
|
ProgressBar: true,
|
|
58
62
|
Completed: this.value === 100,
|
|
59
|
-
Disabled: this.disabled
|
|
63
|
+
Disabled: this.disabled,
|
|
64
|
+
HidePercent: this.hidePercent
|
|
60
65
|
};
|
|
61
66
|
}
|
|
62
67
|
render() {
|
|
@@ -67,6 +72,7 @@ const CasinoEngagementSuiteProgressBar$1 = /*@__PURE__*/ proxyCustomElement(clas
|
|
|
67
72
|
}, [1, "casino-engagement-suite-progress-bar", {
|
|
68
73
|
"value": [2],
|
|
69
74
|
"disabled": [4],
|
|
75
|
+
"hidePercent": [4, "hide-percent"],
|
|
70
76
|
"clientStyling": [513, "client-styling"],
|
|
71
77
|
"clientStylingUrl": [513, "client-styling-url"],
|
|
72
78
|
"limitStylingAppends": [32]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-5b84ef46.js';
|
|
2
2
|
|
|
3
|
-
const casinoEngagementSuiteProgressBarCss = ":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:14px;line-height:14px}.ProgressBarBackground{height:8px;background-color:var(--emw--color-background, #666178);border-radius:4px;position:relative}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);transition:width ease-out 0.3s}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:700;font-size:12px;line-height:12px}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-background, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";
|
|
3
|
+
const casinoEngagementSuiteProgressBarCss = ":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:14px;line-height:14px}.ProgressBarBackground{height:8px;background-color:var(--emw--color-background, #666178);border-radius:4px;position:relative}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);transition:width ease-out 0.3s}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:700;font-size:12px;line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-background, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";
|
|
4
4
|
|
|
5
5
|
const CasinoEngagementSuiteProgressBar = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -13,6 +13,10 @@ const CasinoEngagementSuiteProgressBar = class {
|
|
|
13
13
|
* Shows disabled styles
|
|
14
14
|
*/
|
|
15
15
|
this.disabled = false;
|
|
16
|
+
/**
|
|
17
|
+
* Hide percent value
|
|
18
|
+
*/
|
|
19
|
+
this.hidePercent = false;
|
|
16
20
|
/**
|
|
17
21
|
* Client custom styling via string
|
|
18
22
|
*/
|
|
@@ -54,7 +58,8 @@ const CasinoEngagementSuiteProgressBar = class {
|
|
|
54
58
|
return {
|
|
55
59
|
ProgressBar: true,
|
|
56
60
|
Completed: this.value === 100,
|
|
57
|
-
Disabled: this.disabled
|
|
61
|
+
Disabled: this.disabled,
|
|
62
|
+
HidePercent: this.hidePercent
|
|
58
63
|
};
|
|
59
64
|
}
|
|
60
65
|
render() {
|
|
@@ -13,5 +13,5 @@ const patchBrowser = () => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["casino-engagement-suite-progress-bar",[[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
|
|
16
|
+
return bootstrapLazy([["casino-engagement-suite-progress-bar",[[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
|
|
17
17
|
});
|
package/dist/esm/loader.js
CHANGED
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["casino-engagement-suite-progress-bar",[[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
|
|
13
|
+
return bootstrapLazy([["casino-engagement-suite-progress-bar",[[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -7,6 +7,10 @@ export declare class CasinoEngagementSuiteProgressBar {
|
|
|
7
7
|
* Shows disabled styles
|
|
8
8
|
*/
|
|
9
9
|
disabled: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Hide percent value
|
|
12
|
+
*/
|
|
13
|
+
hidePercent: boolean;
|
|
10
14
|
/**
|
|
11
15
|
* Client custom styling via string
|
|
12
16
|
*/
|
|
@@ -24,6 +28,7 @@ export declare class CasinoEngagementSuiteProgressBar {
|
|
|
24
28
|
ProgressBar: boolean;
|
|
25
29
|
Completed: boolean;
|
|
26
30
|
Disabled: boolean;
|
|
31
|
+
HidePercent: boolean;
|
|
27
32
|
};
|
|
28
33
|
render(): any;
|
|
29
34
|
}
|
|
@@ -19,6 +19,10 @@ export namespace Components {
|
|
|
19
19
|
* Shows disabled styles
|
|
20
20
|
*/
|
|
21
21
|
"disabled": boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Hide percent value
|
|
24
|
+
*/
|
|
25
|
+
"hidePercent": boolean;
|
|
22
26
|
/**
|
|
23
27
|
* Value for the widget
|
|
24
28
|
*/
|
|
@@ -50,6 +54,10 @@ declare namespace LocalJSX {
|
|
|
50
54
|
* Shows disabled styles
|
|
51
55
|
*/
|
|
52
56
|
"disabled"?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Hide percent value
|
|
59
|
+
*/
|
|
60
|
+
"hidePercent"?: boolean;
|
|
53
61
|
/**
|
|
54
62
|
* Value for the widget
|
|
55
63
|
*/
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,h as s,g as e}from"./p-212ac068.js";const t=class{constructor(s){r(this,s),this.value=0,this.disabled=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.setClientStyling=()=>{let r=document.createElement("style");r.innerHTML=this.clientStyling,this.host.prepend(r)},this.setClientStylingURL=()=>{let r=new URL(this.clientStylingUrl),s=document.createElement("style");fetch(r.href).then((r=>r.text())).then((r=>{s.innerHTML=r,setTimeout((()=>{this.host.prepend(s)}),1)})).catch((r=>{console.log("Error ",r)}))}}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}getProgressBarClasses(){return{ProgressBar:!0,Completed:100===this.value,Disabled:this.disabled}}render(){return s("div",{class:this.getProgressBarClasses(),part:"ProgressBar"},s("div",{class:"ProgressBarInfo",part:"ProgressBarInfo"},s("slot",{name:"Title"},s("div",null)),s("slot",{name:"Percent"},s("div",{class:"ProgressBarPercent",part:"ProgressBarPercent"},this.value,"%"))),s("div",{class:"ProgressBarBackground",part:"ProgressBarBackground"},s("div",{class:"ProgressBarLine",part:"ProgressBarLine",style:{width:this.value+"%"}})))}get host(){return e(this)}};t.style=":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:14px;line-height:14px}.ProgressBarBackground{height:8px;background-color:var(--emw--color-background, #666178);border-radius:4px;position:relative}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);transition:width ease-out 0.3s}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:700;font-size:12px;line-height:12px}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-background, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";export{t as casino_engagement_suite_progress_bar}
|