@everymatrix/casino-engagement-suite-challenges-list 1.43.4 → 1.45.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-challenges-list/casino-engagement-suite-challenges-list.esm.js +1 -1
- package/dist/casino-engagement-suite-challenges-list/p-7fd72b22.js +2 -0
- package/dist/casino-engagement-suite-challenges-list/p-dd67e263.entry.js +1 -0
- package/dist/casino-engagement-suite-challenges-list/p-e1255160.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-engagement-suite-challenges-list.cjs.js +17 -11
- package/dist/cjs/casino-engagement-suite-challenges-list_2.cjs.entry.js +444 -466
- package/dist/cjs/index-97488095.js +1316 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/casino-engagement-suite-challenges-list/casino-engagement-suite-challenges-list.css +112 -111
- package/dist/collection/components/casino-engagement-suite-challenges-list/casino-engagement-suite-challenges-list.js +480 -524
- package/dist/collection/components/casino-engagement-suite-challenges-list/index.js +1 -0
- package/dist/collection/models/challenge.js +18 -18
- package/dist/collection/renders/ChallengesHistory.js +31 -47
- package/dist/collection/utils/locale.utils.js +26 -26
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-engagement-suite-challenges-list.js +14 -11
- package/dist/esm/casino-engagement-suite-challenges-list_2.entry.js +444 -466
- package/dist/esm/index-00eb432b.js +1288 -0
- package/dist/esm/loader.js +7 -13
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-list/.stencil/packages/stencil/casino-engagement-suite-challenges-list/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-list/.stencil/packages/stencil/casino-engagement-suite-challenges-list/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-challenges-list/casino-engagement-suite-challenges-list.d.ts +81 -81
- package/dist/types/components/casino-engagement-suite-challenges-list/index.d.ts +1 -0
- package/dist/types/components.d.ts +19 -2
- package/dist/types/models/challenge.d.ts +65 -65
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +12 -2
- package/dist/casino-engagement-suite-challenges-list/p-2061b71e.entry.js +0 -1
- package/dist/casino-engagement-suite-challenges-list/p-fad4589e.js +0 -1
- package/dist/cjs/index-0a011384.js +0 -1336
- package/dist/components/casino-engagement-suite-challenges-list.d.ts +0 -11
- package/dist/components/casino-engagement-suite-challenges-list.js +0 -2650
- package/dist/components/casino-engagement-suite-progress-bar.js +0 -6
- package/dist/components/casino-engagement-suite-progress-bar2.js +0 -107
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/index-ddf7e990.js +0 -1309
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-engagement-suite-challenges-list/.stencil/packages/casino-engagement-suite-challenges-list/stencil.config.d.ts +0 -2
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { C as CasinoEngagementSuiteProgressBar$1, d as defineCustomElement$1 } from './casino-engagement-suite-progress-bar2.js';
|
|
2
|
-
|
|
3
|
-
const CasinoEngagementSuiteProgressBar = CasinoEngagementSuiteProgressBar$1;
|
|
4
|
-
const defineCustomElement = defineCustomElement$1;
|
|
5
|
-
|
|
6
|
-
export { CasinoEngagementSuiteProgressBar, defineCustomElement };
|
|
@@ -1,107 +0,0 @@
|
|
|
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}@keyframes indeterminate{0%{left:-200%;right:100%}60%{left:110%;right:-10%}to{left:110%;right:-10%}}.ProgressBarBackground{height:8px;background-color:var(--emw--color-background, #666178);border-radius:4px;position:relative;overflow:hidden}.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}.ProgressBarLine.Indeterminate{animation:indeterminate 1s linear infinite}.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
|
-
|
|
5
|
-
const CasinoEngagementSuiteProgressBar = /*@__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
|
-
* Hide percent value
|
|
20
|
-
*/
|
|
21
|
-
this.hidePercent = false;
|
|
22
|
-
/**
|
|
23
|
-
* Constantly animates
|
|
24
|
-
*/
|
|
25
|
-
this.indeterminate = false;
|
|
26
|
-
/**
|
|
27
|
-
* Client custom styling via string
|
|
28
|
-
*/
|
|
29
|
-
this.clientStyling = '';
|
|
30
|
-
/**
|
|
31
|
-
* Client custom styling via url
|
|
32
|
-
*/
|
|
33
|
-
this.clientStylingUrl = '';
|
|
34
|
-
this.limitStylingAppends = false;
|
|
35
|
-
this.setClientStyling = () => {
|
|
36
|
-
let sheet = document.createElement('style');
|
|
37
|
-
sheet.innerHTML = this.clientStyling;
|
|
38
|
-
this.host.prepend(sheet);
|
|
39
|
-
};
|
|
40
|
-
this.setClientStylingURL = () => {
|
|
41
|
-
let url = new URL(this.clientStylingUrl);
|
|
42
|
-
let cssFile = document.createElement('style');
|
|
43
|
-
fetch(url.href)
|
|
44
|
-
.then((res) => res.text())
|
|
45
|
-
.then((data) => {
|
|
46
|
-
cssFile.innerHTML = data;
|
|
47
|
-
setTimeout(() => { this.host.prepend(cssFile); }, 1);
|
|
48
|
-
})
|
|
49
|
-
.catch((err) => {
|
|
50
|
-
console.log('Error ', err);
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
componentDidRender() {
|
|
55
|
-
if (!this.limitStylingAppends && this.host) {
|
|
56
|
-
if (this.clientStyling)
|
|
57
|
-
this.setClientStyling();
|
|
58
|
-
if (this.clientStylingUrl)
|
|
59
|
-
this.setClientStylingURL();
|
|
60
|
-
this.limitStylingAppends = true;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
getProgressBarClasses() {
|
|
64
|
-
return {
|
|
65
|
-
ProgressBar: true,
|
|
66
|
-
Completed: this.value === 100,
|
|
67
|
-
Disabled: this.disabled,
|
|
68
|
-
HidePercent: this.hidePercent || this.indeterminate
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
getProgressBarLineTemplate() {
|
|
72
|
-
if (this.indeterminate) {
|
|
73
|
-
return h("div", { class: "ProgressBarLine Indeterminate", part: "ProgressBarLine Indeterminate" });
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
return h("div", { class: "ProgressBarLine", part: "ProgressBarLine", style: { width: this.value + '%' } });
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
render() {
|
|
80
|
-
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" }, this.getProgressBarLineTemplate()));
|
|
81
|
-
}
|
|
82
|
-
get host() { return this; }
|
|
83
|
-
static get style() { return casinoEngagementSuiteProgressBarCss; }
|
|
84
|
-
}, [1, "casino-engagement-suite-progress-bar", {
|
|
85
|
-
"value": [2],
|
|
86
|
-
"disabled": [4],
|
|
87
|
-
"hidePercent": [4, "hide-percent"],
|
|
88
|
-
"indeterminate": [4],
|
|
89
|
-
"clientStyling": [513, "client-styling"],
|
|
90
|
-
"clientStylingUrl": [513, "client-styling-url"],
|
|
91
|
-
"limitStylingAppends": [32]
|
|
92
|
-
}]);
|
|
93
|
-
function defineCustomElement() {
|
|
94
|
-
if (typeof customElements === "undefined") {
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
const components = ["casino-engagement-suite-progress-bar"];
|
|
98
|
-
components.forEach(tagName => { switch (tagName) {
|
|
99
|
-
case "casino-engagement-suite-progress-bar":
|
|
100
|
-
if (!customElements.get(tagName)) {
|
|
101
|
-
customElements.define(tagName, CasinoEngagementSuiteProgressBar);
|
|
102
|
-
}
|
|
103
|
-
break;
|
|
104
|
-
} });
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export { CasinoEngagementSuiteProgressBar as C, defineCustomElement as d };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/* CasinoEngagementSuiteChallengesList 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';
|
package/dist/components/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|