@everymatrix/casino-engagement-suite-progress-bar 1.35.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.
Files changed (43) 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-0a8b4144.entry.js +1 -0
  4. package/dist/casino-engagement-suite-progress-bar/p-212ac068.js +1 -0
  5. package/dist/cjs/casino-engagement-suite-progress-bar.cjs.entry.js +71 -0
  6. package/dist/cjs/casino-engagement-suite-progress-bar.cjs.js +19 -0
  7. package/dist/cjs/index-7f32df08.js +1145 -0
  8. package/dist/cjs/index.cjs.js +2 -0
  9. package/dist/cjs/loader.cjs.js +21 -0
  10. package/dist/collection/collection-manifest.json +12 -0
  11. package/dist/collection/components/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.css +53 -0
  12. package/dist/collection/components/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.js +154 -0
  13. package/dist/collection/index.js +1 -0
  14. package/dist/components/casino-engagement-suite-progress-bar.d.ts +11 -0
  15. package/dist/components/casino-engagement-suite-progress-bar.js +91 -0
  16. package/dist/components/index.d.ts +26 -0
  17. package/dist/components/index.js +1 -0
  18. package/dist/esm/casino-engagement-suite-progress-bar.entry.js +67 -0
  19. package/dist/esm/casino-engagement-suite-progress-bar.js +17 -0
  20. package/dist/esm/index-5b84ef46.js +1119 -0
  21. package/dist/esm/index.js +1 -0
  22. package/dist/esm/loader.js +17 -0
  23. package/dist/esm/polyfills/core-js.js +11 -0
  24. package/dist/esm/polyfills/css-shim.js +1 -0
  25. package/dist/esm/polyfills/dom.js +79 -0
  26. package/dist/esm/polyfills/es5-html-element.js +1 -0
  27. package/dist/esm/polyfills/index.js +34 -0
  28. package/dist/esm/polyfills/system.js +6 -0
  29. package/dist/index.cjs.js +1 -0
  30. package/dist/index.js +1 -0
  31. package/dist/stencil.config.js +22 -0
  32. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-engagement-suite-progress-bar/.stencil/packages/casino-engagement-suite-progress-bar/stencil.config.d.ts +2 -0
  33. package/dist/types/components/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.d.ts +29 -0
  34. package/dist/types/components.d.ts +69 -0
  35. package/dist/types/index.d.ts +1 -0
  36. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  37. package/loader/cdn.js +3 -0
  38. package/loader/index.cjs.js +3 -0
  39. package/loader/index.d.ts +12 -0
  40. package/loader/index.es2017.js +3 -0
  41. package/loader/index.js +4 -0
  42. package/loader/package.json +10 -0
  43. package/package.json +19 -0
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-7f32df08.js');
6
+
7
+ /*
8
+ Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
9
+ */
10
+ const patchEsm = () => {
11
+ return index.promiseResolve();
12
+ };
13
+
14
+ const defineCustomElements = (win, options) => {
15
+ if (typeof window === 'undefined') return Promise.resolve();
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);
18
+ });
19
+ };
20
+
21
+ 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": "2.15.2",
8
+ "typescriptVersion": "4.5.4"
9
+ },
10
+ "collections": [],
11
+ "bundles": []
12
+ }
@@ -0,0 +1,53 @@
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
+ .ProgressBar:not(.Disabled) .ProgressBarPercent {
42
+ background: linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);
43
+ -webkit-background-clip: text;
44
+ background-clip: text;
45
+ -webkit-text-fill-color: transparent;
46
+ }
47
+
48
+ .ProgressBar.Disabled .ProgressBarPercent {
49
+ color: var(--emw--color-background, #666178);
50
+ }
51
+ .ProgressBar.Disabled .ProgressBarLine {
52
+ background: var(--emw--color-background-secondary, #474668);
53
+ }
@@ -0,0 +1,154 @@
1
+ import { Component, Element, h, Prop, State } from '@stencil/core';
2
+ export class CasinoEngagementSuiteProgressBar {
3
+ constructor() {
4
+ /**
5
+ * Value for the widget
6
+ */
7
+ this.value = 0;
8
+ /**
9
+ * Shows disabled styles
10
+ */
11
+ this.disabled = false;
12
+ /**
13
+ * Client custom styling via string
14
+ */
15
+ this.clientStyling = '';
16
+ /**
17
+ * Client custom styling via url
18
+ */
19
+ this.clientStylingUrl = '';
20
+ this.limitStylingAppends = false;
21
+ this.setClientStyling = () => {
22
+ let sheet = document.createElement('style');
23
+ sheet.innerHTML = this.clientStyling;
24
+ this.host.prepend(sheet);
25
+ };
26
+ this.setClientStylingURL = () => {
27
+ let url = new URL(this.clientStylingUrl);
28
+ let cssFile = document.createElement('style');
29
+ fetch(url.href)
30
+ .then((res) => res.text())
31
+ .then((data) => {
32
+ cssFile.innerHTML = data;
33
+ setTimeout(() => { this.host.prepend(cssFile); }, 1);
34
+ })
35
+ .catch((err) => {
36
+ console.log('Error ', err);
37
+ });
38
+ };
39
+ }
40
+ componentDidRender() {
41
+ if (!this.limitStylingAppends && this.host) {
42
+ if (this.clientStyling)
43
+ this.setClientStyling();
44
+ if (this.clientStylingUrl)
45
+ this.setClientStylingURL();
46
+ this.limitStylingAppends = true;
47
+ }
48
+ }
49
+ getProgressBarClasses() {
50
+ return {
51
+ ProgressBar: true,
52
+ Completed: this.value === 100,
53
+ Disabled: this.disabled
54
+ };
55
+ }
56
+ render() {
57
+ return h("div", { class: this.getProgressBarClasses(), part: "ProgressBar" },
58
+ h("div", { class: "ProgressBarInfo", part: "ProgressBarInfo" },
59
+ h("slot", { name: "Title" },
60
+ h("div", null)),
61
+ h("slot", { name: "Percent" },
62
+ h("div", { class: "ProgressBarPercent", part: "ProgressBarPercent" },
63
+ this.value,
64
+ "%"))),
65
+ h("div", { class: "ProgressBarBackground", part: "ProgressBarBackground" },
66
+ h("div", { class: "ProgressBarLine", part: "ProgressBarLine", style: { width: this.value + '%' } })));
67
+ }
68
+ static get is() { return "casino-engagement-suite-progress-bar"; }
69
+ static get encapsulation() { return "shadow"; }
70
+ static get originalStyleUrls() { return {
71
+ "$": ["casino-engagement-suite-progress-bar.scss"]
72
+ }; }
73
+ static get styleUrls() { return {
74
+ "$": ["casino-engagement-suite-progress-bar.css"]
75
+ }; }
76
+ static get properties() { return {
77
+ "value": {
78
+ "type": "number",
79
+ "mutable": false,
80
+ "complexType": {
81
+ "original": "number",
82
+ "resolved": "number",
83
+ "references": {}
84
+ },
85
+ "required": false,
86
+ "optional": false,
87
+ "docs": {
88
+ "tags": [],
89
+ "text": "Value for the widget"
90
+ },
91
+ "attribute": "value",
92
+ "reflect": false,
93
+ "defaultValue": "0"
94
+ },
95
+ "disabled": {
96
+ "type": "boolean",
97
+ "mutable": false,
98
+ "complexType": {
99
+ "original": "boolean",
100
+ "resolved": "boolean",
101
+ "references": {}
102
+ },
103
+ "required": false,
104
+ "optional": false,
105
+ "docs": {
106
+ "tags": [],
107
+ "text": "Shows disabled styles"
108
+ },
109
+ "attribute": "disabled",
110
+ "reflect": false,
111
+ "defaultValue": "false"
112
+ },
113
+ "clientStyling": {
114
+ "type": "string",
115
+ "mutable": false,
116
+ "complexType": {
117
+ "original": "string",
118
+ "resolved": "string",
119
+ "references": {}
120
+ },
121
+ "required": false,
122
+ "optional": false,
123
+ "docs": {
124
+ "tags": [],
125
+ "text": "Client custom styling via string"
126
+ },
127
+ "attribute": "client-styling",
128
+ "reflect": true,
129
+ "defaultValue": "''"
130
+ },
131
+ "clientStylingUrl": {
132
+ "type": "string",
133
+ "mutable": false,
134
+ "complexType": {
135
+ "original": "string",
136
+ "resolved": "string",
137
+ "references": {}
138
+ },
139
+ "required": false,
140
+ "optional": false,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": "Client custom styling via url"
144
+ },
145
+ "attribute": "client-styling-url",
146
+ "reflect": true,
147
+ "defaultValue": "''"
148
+ }
149
+ }; }
150
+ static get states() { return {
151
+ "limitStylingAppends": {}
152
+ }; }
153
+ static get elementRef() { return "host"; }
154
+ }
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface CasinoEngagementSuiteProgressBar extends Components.CasinoEngagementSuiteProgressBar, HTMLElement {}
4
+ export const CasinoEngagementSuiteProgressBar: {
5
+ prototype: CasinoEngagementSuiteProgressBar;
6
+ new (): CasinoEngagementSuiteProgressBar;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,91 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
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)}";
4
+
5
+ const CasinoEngagementSuiteProgressBar$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ /**
11
+ * Value for the widget
12
+ */
13
+ this.value = 0;
14
+ /**
15
+ * Shows disabled styles
16
+ */
17
+ this.disabled = false;
18
+ /**
19
+ * Client custom styling via string
20
+ */
21
+ this.clientStyling = '';
22
+ /**
23
+ * Client custom styling via url
24
+ */
25
+ this.clientStylingUrl = '';
26
+ this.limitStylingAppends = false;
27
+ this.setClientStyling = () => {
28
+ let sheet = document.createElement('style');
29
+ sheet.innerHTML = this.clientStyling;
30
+ this.host.prepend(sheet);
31
+ };
32
+ this.setClientStylingURL = () => {
33
+ let url = new URL(this.clientStylingUrl);
34
+ let cssFile = document.createElement('style');
35
+ fetch(url.href)
36
+ .then((res) => res.text())
37
+ .then((data) => {
38
+ cssFile.innerHTML = data;
39
+ setTimeout(() => { this.host.prepend(cssFile); }, 1);
40
+ })
41
+ .catch((err) => {
42
+ console.log('Error ', err);
43
+ });
44
+ };
45
+ }
46
+ componentDidRender() {
47
+ if (!this.limitStylingAppends && this.host) {
48
+ if (this.clientStyling)
49
+ this.setClientStyling();
50
+ if (this.clientStylingUrl)
51
+ this.setClientStylingURL();
52
+ this.limitStylingAppends = true;
53
+ }
54
+ }
55
+ getProgressBarClasses() {
56
+ return {
57
+ ProgressBar: true,
58
+ Completed: this.value === 100,
59
+ Disabled: this.disabled
60
+ };
61
+ }
62
+ render() {
63
+ return h("div", { class: this.getProgressBarClasses(), part: "ProgressBar" }, h("div", { class: "ProgressBarInfo", part: "ProgressBarInfo" }, h("slot", { name: "Title" }, h("div", null)), h("slot", { name: "Percent" }, h("div", { class: "ProgressBarPercent", part: "ProgressBarPercent" }, this.value, "%"))), h("div", { class: "ProgressBarBackground", part: "ProgressBarBackground" }, h("div", { class: "ProgressBarLine", part: "ProgressBarLine", style: { width: this.value + '%' } })));
64
+ }
65
+ get host() { return this; }
66
+ static get style() { return casinoEngagementSuiteProgressBarCss; }
67
+ }, [1, "casino-engagement-suite-progress-bar", {
68
+ "value": [2],
69
+ "disabled": [4],
70
+ "clientStyling": [513, "client-styling"],
71
+ "clientStylingUrl": [513, "client-styling-url"],
72
+ "limitStylingAppends": [32]
73
+ }]);
74
+ function defineCustomElement$1() {
75
+ if (typeof customElements === "undefined") {
76
+ return;
77
+ }
78
+ const components = ["casino-engagement-suite-progress-bar"];
79
+ components.forEach(tagName => { switch (tagName) {
80
+ case "casino-engagement-suite-progress-bar":
81
+ if (!customElements.get(tagName)) {
82
+ customElements.define(tagName, CasinoEngagementSuiteProgressBar$1);
83
+ }
84
+ break;
85
+ } });
86
+ }
87
+
88
+ const CasinoEngagementSuiteProgressBar = CasinoEngagementSuiteProgressBar$1;
89
+ const defineCustomElement = defineCustomElement$1;
90
+
91
+ export { CasinoEngagementSuiteProgressBar, defineCustomElement };
@@ -0,0 +1,26 @@
1
+ /* CasinoEngagementSuiteProgressBar custom elements */
2
+
3
+ import type { Components, JSX } from "../types/components";
4
+
5
+ /**
6
+ * Used to manually set the base path where assets can be found.
7
+ * If the script is used as "module", it's recommended to use "import.meta.url",
8
+ * such as "setAssetPath(import.meta.url)". Other options include
9
+ * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
10
+ * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
11
+ * But do note that this configuration depends on how your script is bundled, or lack of
12
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
13
+ * will have to ensure the static assets are copied to its build directory.
14
+ */
15
+ export declare const setAssetPath: (path: string) => void;
16
+
17
+ export interface SetPlatformOptions {
18
+ raf?: (c: FrameRequestCallback) => number;
19
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
20
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
21
+ }
22
+ export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
23
+
24
+ export type { Components, JSX };
25
+
26
+ export * from '../types';
@@ -0,0 +1 @@
1
+ export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
@@ -0,0 +1,67 @@
1
+ import { r as registerInstance, h, g as getElement } from './index-5b84ef46.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}.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
+
5
+ const CasinoEngagementSuiteProgressBar = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ /**
9
+ * Value for the widget
10
+ */
11
+ this.value = 0;
12
+ /**
13
+ * Shows disabled styles
14
+ */
15
+ this.disabled = false;
16
+ /**
17
+ * Client custom styling via string
18
+ */
19
+ this.clientStyling = '';
20
+ /**
21
+ * Client custom styling via url
22
+ */
23
+ this.clientStylingUrl = '';
24
+ this.limitStylingAppends = false;
25
+ this.setClientStyling = () => {
26
+ let sheet = document.createElement('style');
27
+ sheet.innerHTML = this.clientStyling;
28
+ this.host.prepend(sheet);
29
+ };
30
+ this.setClientStylingURL = () => {
31
+ let url = new URL(this.clientStylingUrl);
32
+ let cssFile = document.createElement('style');
33
+ fetch(url.href)
34
+ .then((res) => res.text())
35
+ .then((data) => {
36
+ cssFile.innerHTML = data;
37
+ setTimeout(() => { this.host.prepend(cssFile); }, 1);
38
+ })
39
+ .catch((err) => {
40
+ console.log('Error ', err);
41
+ });
42
+ };
43
+ }
44
+ componentDidRender() {
45
+ if (!this.limitStylingAppends && this.host) {
46
+ if (this.clientStyling)
47
+ this.setClientStyling();
48
+ if (this.clientStylingUrl)
49
+ this.setClientStylingURL();
50
+ this.limitStylingAppends = true;
51
+ }
52
+ }
53
+ getProgressBarClasses() {
54
+ return {
55
+ ProgressBar: true,
56
+ Completed: this.value === 100,
57
+ Disabled: this.disabled
58
+ };
59
+ }
60
+ render() {
61
+ return h("div", { class: this.getProgressBarClasses(), part: "ProgressBar" }, h("div", { class: "ProgressBarInfo", part: "ProgressBarInfo" }, h("slot", { name: "Title" }, h("div", null)), h("slot", { name: "Percent" }, h("div", { class: "ProgressBarPercent", part: "ProgressBarPercent" }, this.value, "%"))), h("div", { class: "ProgressBarBackground", part: "ProgressBarBackground" }, h("div", { class: "ProgressBarLine", part: "ProgressBarLine", style: { width: this.value + '%' } })));
62
+ }
63
+ get host() { return getElement(this); }
64
+ };
65
+ CasinoEngagementSuiteProgressBar.style = casinoEngagementSuiteProgressBarCss;
66
+
67
+ export { CasinoEngagementSuiteProgressBar as casino_engagement_suite_progress_bar };
@@ -0,0 +1,17 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-5b84ef46.js';
2
+
3
+ /*
4
+ Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
5
+ */
6
+ const patchBrowser = () => {
7
+ const importMeta = import.meta.url;
8
+ const opts = {};
9
+ if (importMeta !== '') {
10
+ opts.resourcesUrl = new URL('.', importMeta).href;
11
+ }
12
+ return promiseResolve(opts);
13
+ };
14
+
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);
17
+ });