@everymatrix/casino-engagement-suite-progress-bar 1.0.69

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.
Files changed (42) hide show
  1. package/dist/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.esm.js +1 -0
  2. package/dist/casino-engagement-suite-progress-bar/index.esm.js +0 -0
  3. package/dist/casino-engagement-suite-progress-bar/p-5fb56522.js +2 -0
  4. package/dist/casino-engagement-suite-progress-bar/p-880bfe1a.entry.js +1 -0
  5. package/dist/casino-engagement-suite-progress-bar/p-e1255160.js +1 -0
  6. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  7. package/dist/cjs/casino-engagement-suite-progress-bar.cjs.entry.js +71 -0
  8. package/dist/cjs/casino-engagement-suite-progress-bar.cjs.js +25 -0
  9. package/dist/cjs/index-e420537d.js +1177 -0
  10. package/dist/cjs/index.cjs.js +2 -0
  11. package/dist/cjs/loader.cjs.js +15 -0
  12. package/dist/collection/collection-manifest.json +12 -0
  13. package/dist/collection/components/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.css +57 -0
  14. package/dist/collection/components/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.js +188 -0
  15. package/dist/collection/components/casino-engagement-suite-progress-bar/index.js +1 -0
  16. package/dist/collection/index.js +1 -0
  17. package/dist/collection/utils/utils.js +3 -0
  18. package/dist/esm/app-globals-0f993ce5.js +3 -0
  19. package/dist/esm/casino-engagement-suite-progress-bar.entry.js +67 -0
  20. package/dist/esm/casino-engagement-suite-progress-bar.js +20 -0
  21. package/dist/esm/index-f0b13670.js +1150 -0
  22. package/dist/esm/index.js +1 -0
  23. package/dist/esm/loader.js +11 -0
  24. package/dist/index.cjs.js +1 -0
  25. package/dist/index.js +1 -0
  26. package/dist/stencil.config.dev.js +17 -0
  27. package/dist/stencil.config.js +17 -0
  28. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-engagement-suite-progress-bar/.stencil/packages/stencil/casino-engagement-suite-progress-bar/stencil.config.d.ts +2 -0
  29. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-engagement-suite-progress-bar/.stencil/packages/stencil/casino-engagement-suite-progress-bar/stencil.config.dev.d.ts +2 -0
  30. package/dist/types/components/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.d.ts +39 -0
  31. package/dist/types/components/casino-engagement-suite-progress-bar/index.d.ts +1 -0
  32. package/dist/types/components.d.ts +85 -0
  33. package/dist/types/index.d.ts +1 -0
  34. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  35. package/dist/types/utils/utils.d.ts +1 -0
  36. package/loader/cdn.js +1 -0
  37. package/loader/index.cjs.js +1 -0
  38. package/loader/index.d.ts +24 -0
  39. package/loader/index.es2017.js +1 -0
  40. package/loader/index.js +2 -0
  41. package/loader/package.json +11 -0
  42. package/package.json +26 -0
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-e420537d.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
7
+
8
+ const defineCustomElements = async (win, options) => {
9
+ if (typeof window === 'undefined') return undefined;
10
+ await appGlobals.globalScripts();
11
+ return index.bootstrapLazy([["casino-engagement-suite-progress-bar.cjs",[[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
12
+ };
13
+
14
+ exports.setNonce = index.setNonce;
15
+ exports.defineCustomElements = defineCustomElements;
@@ -0,0 +1,12 @@
1
+ {
2
+ "entries": [
3
+ "components/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.js"
4
+ ],
5
+ "compiler": {
6
+ "name": "@stencil/core",
7
+ "version": "4.20.0",
8
+ "typescriptVersion": "5.5.3"
9
+ },
10
+ "collections": [],
11
+ "bundles": []
12
+ }
@@ -0,0 +1,57 @@
1
+ :host {
2
+ display: block;
3
+ font-family: inherit;
4
+ }
5
+
6
+ :host(.Desktop) .ProgressBarPercent {
7
+ font-size: 14px;
8
+ line-height: 14px;
9
+ }
10
+
11
+ .ProgressBarBackground {
12
+ height: 8px;
13
+ background-color: var(--emw--color-background, #666178);
14
+ border-radius: 4px;
15
+ position: relative;
16
+ }
17
+
18
+ .ProgressBarLine {
19
+ position: absolute;
20
+ left: 0;
21
+ top: 0;
22
+ bottom: 0;
23
+ border-radius: 4px;
24
+ background: linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);
25
+ transition: width ease-out 0.3s;
26
+ }
27
+
28
+ .ProgressBarInfo {
29
+ margin-bottom: 8px;
30
+ display: flex;
31
+ justify-content: space-between;
32
+ align-items: center;
33
+ }
34
+
35
+ .ProgressBarPercent {
36
+ font-weight: 700;
37
+ font-size: 12px;
38
+ line-height: 12px;
39
+ }
40
+
41
+ .HidePercent .ProgressBarPercent {
42
+ display: none;
43
+ }
44
+
45
+ .ProgressBar:not(.Disabled) .ProgressBarPercent {
46
+ background: linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);
47
+ -webkit-background-clip: text;
48
+ background-clip: text;
49
+ -webkit-text-fill-color: transparent;
50
+ }
51
+
52
+ .ProgressBar.Disabled .ProgressBarPercent {
53
+ color: var(--emw--color-background, #666178);
54
+ }
55
+ .ProgressBar.Disabled .ProgressBarLine {
56
+ background: var(--emw--color-background-secondary, #474668);
57
+ }
@@ -0,0 +1,188 @@
1
+ import { h } from "@stencil/core";
2
+ export class CasinoEngagementSuiteProgressBar {
3
+ constructor() {
4
+ this.setClientStyling = () => {
5
+ let sheet = document.createElement('style');
6
+ sheet.innerHTML = this.clientStyling;
7
+ this.host.prepend(sheet);
8
+ };
9
+ this.setClientStylingURL = () => {
10
+ let url = new URL(this.clientStylingUrl);
11
+ let cssFile = document.createElement('style');
12
+ fetch(url.href)
13
+ .then((res) => res.text())
14
+ .then((data) => {
15
+ cssFile.innerHTML = data;
16
+ setTimeout(() => { this.host.prepend(cssFile); }, 1);
17
+ })
18
+ .catch((err) => {
19
+ console.log('Error ', err);
20
+ });
21
+ };
22
+ this.value = 0;
23
+ this.disabled = false;
24
+ this.hidePercent = false;
25
+ this.indeterminate = false;
26
+ this.clientStyling = '';
27
+ this.clientStylingUrl = '';
28
+ this.limitStylingAppends = false;
29
+ }
30
+ componentDidRender() {
31
+ if (!this.limitStylingAppends && this.host) {
32
+ if (this.clientStyling)
33
+ this.setClientStyling();
34
+ if (this.clientStylingUrl)
35
+ this.setClientStylingURL();
36
+ this.limitStylingAppends = true;
37
+ }
38
+ }
39
+ getProgressBarClasses() {
40
+ return {
41
+ ProgressBar: true,
42
+ Completed: this.value === 100,
43
+ Disabled: this.disabled,
44
+ HidePercent: this.hidePercent || this.indeterminate
45
+ };
46
+ }
47
+ getProgressBarLineTemplate() {
48
+ if (this.indeterminate) {
49
+ return h("div", { class: "ProgressBarLine Indeterminate", part: "ProgressBarLine Indeterminate" });
50
+ }
51
+ else {
52
+ return h("div", { class: "ProgressBarLine", part: "ProgressBarLine", style: { width: this.value + '%' } });
53
+ }
54
+ }
55
+ render() {
56
+ return h("div", { key: 'ecce3a26a92d2e090c1db84bdc1bdbeb505080ed', class: this.getProgressBarClasses(), part: "ProgressBar" }, h("div", { key: '649fe1103d222200f2a1ad3b5967e37da1f1ab3d', class: "ProgressBarInfo", part: "ProgressBarInfo" }, h("slot", { key: '49dc180eedd823f0027f75099813fb9d91bcd938', name: "Title" }, h("div", { key: 'e6e59da3fe7bbcb37e118e7fd23a8ff35587aca5' })), h("slot", { key: '3dc8e5fd1dbc8c268b9c76e393b751cb53605e7e', name: "Percent" }, h("div", { key: '6a9e880f3ee3c4f26e8577c69be5db5f8e2d10ad', class: "ProgressBarPercent", part: "ProgressBarPercent" }, this.value, "%"))), h("div", { key: '141106e77caad7b04bb199f911e87c0c6f0adc2d', class: "ProgressBarBackground", part: "ProgressBarBackground" }, this.getProgressBarLineTemplate()));
57
+ }
58
+ static get is() { return "casino-engagement-suite-progress-bar"; }
59
+ static get encapsulation() { return "shadow"; }
60
+ static get originalStyleUrls() {
61
+ return {
62
+ "$": ["casino-engagement-suite-progress-bar.scss"]
63
+ };
64
+ }
65
+ static get styleUrls() {
66
+ return {
67
+ "$": ["casino-engagement-suite-progress-bar.css"]
68
+ };
69
+ }
70
+ static get properties() {
71
+ return {
72
+ "value": {
73
+ "type": "number",
74
+ "mutable": false,
75
+ "complexType": {
76
+ "original": "number",
77
+ "resolved": "number",
78
+ "references": {}
79
+ },
80
+ "required": false,
81
+ "optional": false,
82
+ "docs": {
83
+ "tags": [],
84
+ "text": "Value for the widget"
85
+ },
86
+ "attribute": "value",
87
+ "reflect": false,
88
+ "defaultValue": "0"
89
+ },
90
+ "disabled": {
91
+ "type": "boolean",
92
+ "mutable": false,
93
+ "complexType": {
94
+ "original": "boolean",
95
+ "resolved": "boolean",
96
+ "references": {}
97
+ },
98
+ "required": false,
99
+ "optional": false,
100
+ "docs": {
101
+ "tags": [],
102
+ "text": "Shows disabled styles"
103
+ },
104
+ "attribute": "disabled",
105
+ "reflect": false,
106
+ "defaultValue": "false"
107
+ },
108
+ "hidePercent": {
109
+ "type": "boolean",
110
+ "mutable": false,
111
+ "complexType": {
112
+ "original": "boolean",
113
+ "resolved": "boolean",
114
+ "references": {}
115
+ },
116
+ "required": false,
117
+ "optional": false,
118
+ "docs": {
119
+ "tags": [],
120
+ "text": "Hide percent value"
121
+ },
122
+ "attribute": "hide-percent",
123
+ "reflect": false,
124
+ "defaultValue": "false"
125
+ },
126
+ "indeterminate": {
127
+ "type": "boolean",
128
+ "mutable": false,
129
+ "complexType": {
130
+ "original": "boolean",
131
+ "resolved": "boolean",
132
+ "references": {}
133
+ },
134
+ "required": false,
135
+ "optional": false,
136
+ "docs": {
137
+ "tags": [],
138
+ "text": "Constantly animates"
139
+ },
140
+ "attribute": "indeterminate",
141
+ "reflect": false,
142
+ "defaultValue": "false"
143
+ },
144
+ "clientStyling": {
145
+ "type": "string",
146
+ "mutable": false,
147
+ "complexType": {
148
+ "original": "string",
149
+ "resolved": "string",
150
+ "references": {}
151
+ },
152
+ "required": false,
153
+ "optional": false,
154
+ "docs": {
155
+ "tags": [],
156
+ "text": "Client custom styling via string"
157
+ },
158
+ "attribute": "client-styling",
159
+ "reflect": true,
160
+ "defaultValue": "''"
161
+ },
162
+ "clientStylingUrl": {
163
+ "type": "string",
164
+ "mutable": false,
165
+ "complexType": {
166
+ "original": "string",
167
+ "resolved": "string",
168
+ "references": {}
169
+ },
170
+ "required": false,
171
+ "optional": false,
172
+ "docs": {
173
+ "tags": [],
174
+ "text": "Client custom styling via url"
175
+ },
176
+ "attribute": "client-styling-url",
177
+ "reflect": true,
178
+ "defaultValue": "''"
179
+ }
180
+ };
181
+ }
182
+ static get states() {
183
+ return {
184
+ "limitStylingAppends": {}
185
+ };
186
+ }
187
+ static get elementRef() { return "host"; }
188
+ }
@@ -0,0 +1 @@
1
+ export { CasinoEngagementSuiteProgressBar } from './casino-engagement-suite-progress-bar';
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,3 @@
1
+ export function format(first, middle, last) {
2
+ return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
3
+ }
@@ -0,0 +1,3 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };
@@ -0,0 +1,67 @@
1
+ import { r as registerInstance, h, g as getElement } from './index-f0b13670.js';
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}.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
+ const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarCss;
5
+
6
+ const CasinoEngagementSuiteProgressBar = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.setClientStyling = () => {
10
+ let sheet = document.createElement('style');
11
+ sheet.innerHTML = this.clientStyling;
12
+ this.host.prepend(sheet);
13
+ };
14
+ this.setClientStylingURL = () => {
15
+ let url = new URL(this.clientStylingUrl);
16
+ let cssFile = document.createElement('style');
17
+ fetch(url.href)
18
+ .then((res) => res.text())
19
+ .then((data) => {
20
+ cssFile.innerHTML = data;
21
+ setTimeout(() => { this.host.prepend(cssFile); }, 1);
22
+ })
23
+ .catch((err) => {
24
+ console.log('Error ', err);
25
+ });
26
+ };
27
+ this.value = 0;
28
+ this.disabled = false;
29
+ this.hidePercent = false;
30
+ this.indeterminate = false;
31
+ this.clientStyling = '';
32
+ this.clientStylingUrl = '';
33
+ this.limitStylingAppends = false;
34
+ }
35
+ componentDidRender() {
36
+ if (!this.limitStylingAppends && this.host) {
37
+ if (this.clientStyling)
38
+ this.setClientStyling();
39
+ if (this.clientStylingUrl)
40
+ this.setClientStylingURL();
41
+ this.limitStylingAppends = true;
42
+ }
43
+ }
44
+ getProgressBarClasses() {
45
+ return {
46
+ ProgressBar: true,
47
+ Completed: this.value === 100,
48
+ Disabled: this.disabled,
49
+ HidePercent: this.hidePercent || this.indeterminate
50
+ };
51
+ }
52
+ getProgressBarLineTemplate() {
53
+ if (this.indeterminate) {
54
+ return h("div", { class: "ProgressBarLine Indeterminate", part: "ProgressBarLine Indeterminate" });
55
+ }
56
+ else {
57
+ return h("div", { class: "ProgressBarLine", part: "ProgressBarLine", style: { width: this.value + '%' } });
58
+ }
59
+ }
60
+ render() {
61
+ return h("div", { key: 'ecce3a26a92d2e090c1db84bdc1bdbeb505080ed', class: this.getProgressBarClasses(), part: "ProgressBar" }, h("div", { key: '649fe1103d222200f2a1ad3b5967e37da1f1ab3d', class: "ProgressBarInfo", part: "ProgressBarInfo" }, h("slot", { key: '49dc180eedd823f0027f75099813fb9d91bcd938', name: "Title" }, h("div", { key: 'e6e59da3fe7bbcb37e118e7fd23a8ff35587aca5' })), h("slot", { key: '3dc8e5fd1dbc8c268b9c76e393b751cb53605e7e', name: "Percent" }, h("div", { key: '6a9e880f3ee3c4f26e8577c69be5db5f8e2d10ad', class: "ProgressBarPercent", part: "ProgressBarPercent" }, this.value, "%"))), h("div", { key: '141106e77caad7b04bb199f911e87c0c6f0adc2d', class: "ProgressBarBackground", part: "ProgressBarBackground" }, this.getProgressBarLineTemplate()));
62
+ }
63
+ get host() { return getElement(this); }
64
+ };
65
+ CasinoEngagementSuiteProgressBar.style = CasinoEngagementSuiteProgressBarStyle0;
66
+
67
+ export { CasinoEngagementSuiteProgressBar as casino_engagement_suite_progress_bar };
@@ -0,0 +1,20 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-f0b13670.js';
2
+ export { s as setNonce } from './index-f0b13670.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
4
+
5
+ /*
6
+ Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
7
+ */
8
+ var patchBrowser = () => {
9
+ const importMeta = import.meta.url;
10
+ const opts = {};
11
+ if (importMeta !== "") {
12
+ opts.resourcesUrl = new URL(".", importMeta).href;
13
+ }
14
+ return promiseResolve(opts);
15
+ };
16
+
17
+ patchBrowser().then(async (options) => {
18
+ await globalScripts();
19
+ return bootstrapLazy([["casino-engagement-suite-progress-bar",[[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
20
+ });