@everymatrix/casino-engagement-suite-tournament 1.44.0 → 1.45.5

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 (71) hide show
  1. package/dist/casino-engagement-suite-tournament/casino-engagement-suite-tournament.esm.js +1 -1
  2. package/dist/casino-engagement-suite-tournament/index.esm.js +1 -0
  3. package/dist/casino-engagement-suite-tournament/p-0f4e94ab.entry.js +1 -0
  4. package/dist/casino-engagement-suite-tournament/p-1bf11325.js +2 -0
  5. package/dist/casino-engagement-suite-tournament/p-5df3ac81.js +1 -0
  6. package/dist/casino-engagement-suite-tournament/p-e1255160.js +1 -0
  7. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  8. package/dist/cjs/casino-engagement-suite-progress-bar_3.cjs.entry.js +119 -807
  9. package/dist/cjs/casino-engagement-suite-tournament-1b738bb2.js +560 -0
  10. package/dist/cjs/casino-engagement-suite-tournament.cjs.js +16 -10
  11. package/dist/cjs/index-16d5d7c3.js +1642 -0
  12. package/dist/cjs/index.cjs.js +8 -0
  13. package/dist/cjs/loader.cjs.js +6 -12
  14. package/dist/collection/collection-manifest.json +3 -3
  15. package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.css +17 -17
  16. package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.js +492 -582
  17. package/dist/collection/components/casino-engagement-suite-tournament/index.js +1 -0
  18. package/dist/collection/index.js +1 -1
  19. package/dist/collection/shared/GradientRoundedButton.js +6 -7
  20. package/dist/collection/shared/renderBar.js +11 -11
  21. package/dist/collection/utils/api.apdater.js +30 -30
  22. package/dist/collection/utils/translations.js +19 -19
  23. package/dist/collection/utils/types.js +9 -9
  24. package/dist/collection/utils/util.date.js +26 -26
  25. package/dist/collection/utils/utils.js +16 -16
  26. package/dist/esm/app-globals-0f993ce5.js +3 -0
  27. package/dist/esm/casino-engagement-suite-progress-bar_3.entry.js +119 -807
  28. package/dist/esm/casino-engagement-suite-tournament-d8471680.js +558 -0
  29. package/dist/esm/casino-engagement-suite-tournament.js +13 -10
  30. package/dist/esm/index-3962add4.js +1612 -0
  31. package/dist/esm/index.js +2 -1
  32. package/dist/esm/loader.js +6 -12
  33. package/dist/stencil.config.dev.js +14 -0
  34. package/dist/stencil.config.js +14 -19
  35. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.d.ts +2 -0
  36. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.dev.d.ts +2 -0
  37. package/dist/types/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.d.ts +120 -123
  38. package/dist/types/components/casino-engagement-suite-tournament/index.d.ts +1 -0
  39. package/dist/types/components.d.ts +17 -1
  40. package/dist/types/index.d.ts +1 -1
  41. package/dist/types/shared/GradientRoundedButton.d.ts +3 -3
  42. package/dist/types/stencil-public-runtime.d.ts +142 -33
  43. package/dist/types/utils/api.apdater.d.ts +2 -30
  44. package/dist/types/utils/translations.d.ts +35 -35
  45. package/dist/types/utils/types.d.ts +77 -77
  46. package/loader/cdn.js +1 -3
  47. package/loader/index.cjs.js +1 -3
  48. package/loader/index.d.ts +13 -1
  49. package/loader/index.es2017.js +1 -3
  50. package/loader/index.js +1 -3
  51. package/loader/package.json +1 -0
  52. package/package.json +8 -8
  53. package/dist/casino-engagement-suite-tournament/p-023f3dc7.entry.js +0 -1
  54. package/dist/casino-engagement-suite-tournament/p-86ce7485.js +0 -1
  55. package/dist/cjs/index-e778ddd2.js +0 -1733
  56. package/dist/components/casino-engagement-suite-progress-bar.js +0 -6
  57. package/dist/components/casino-engagement-suite-progress-bar2.js +0 -107
  58. package/dist/components/casino-engagement-suite-tournament.d.ts +0 -11
  59. package/dist/components/casino-engagement-suite-tournament.js +0 -716
  60. package/dist/components/general-styling-wrapper.js +0 -6
  61. package/dist/components/general-styling-wrapper2.js +0 -103
  62. package/dist/components/index.d.ts +0 -26
  63. package/dist/components/index.js +0 -1
  64. package/dist/esm/index-4e611d33.js +0 -1704
  65. package/dist/esm/polyfills/core-js.js +0 -11
  66. package/dist/esm/polyfills/css-shim.js +0 -1
  67. package/dist/esm/polyfills/dom.js +0 -79
  68. package/dist/esm/polyfills/es5-html-element.js +0 -1
  69. package/dist/esm/polyfills/index.js +0 -34
  70. package/dist/esm/polyfills/system.js +0 -6
  71. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-engagement-suite-tournament/.stencil/packages/casino-engagement-suite-tournament/stencil.config.d.ts +0 -2
@@ -1,6 +0,0 @@
1
- import { G as GeneralStylingWrapper$1, d as defineCustomElement$1 } from './general-styling-wrapper2.js';
2
-
3
- const GeneralStylingWrapper = GeneralStylingWrapper$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { GeneralStylingWrapper, defineCustomElement };
@@ -1,103 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
-
3
- const mergeTranslations = (url, target) => {
4
- return new Promise((resolve) => {
5
- fetch(url)
6
- .then((res) => res.json())
7
- .then((data) => {
8
- Object.keys(data).forEach((item) => {
9
- target[item] = target[item] ? target[item] : {};
10
- for (let key in data[item]) {
11
- target[item][key] = data[item][key];
12
- }
13
- });
14
- resolve(true);
15
- });
16
- });
17
- };
18
-
19
- const generalStylingWrapperCss = ":host{display:block}";
20
-
21
- const GeneralStylingWrapper = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
22
- constructor() {
23
- super();
24
- this.__registerHost();
25
- /**
26
- * Client custom styling via inline styles
27
- */
28
- this.clientStyling = '';
29
- /**
30
- * Client custom styling via url
31
- */
32
- this.clientStylingUrl = '';
33
- /**
34
- * Translation via url
35
- */
36
- this.translationUrl = '';
37
- this.stylingAppends = false;
38
- this.setClientStyling = () => {
39
- let sheet = document.createElement('style');
40
- sheet.innerHTML = this.clientStyling;
41
- this.el.prepend(sheet);
42
- };
43
- this.setClientStylingURL = () => {
44
- let url = new URL(this.clientStylingUrl);
45
- let cssFile = document.createElement('style');
46
- fetch(url.href)
47
- .then((res) => res.text())
48
- .then((data) => {
49
- cssFile.innerHTML = data;
50
- setTimeout(() => {
51
- this.el.prepend(cssFile);
52
- }, 1);
53
- })
54
- .catch((err) => {
55
- console.log('error ', err);
56
- });
57
- };
58
- }
59
- componentDidRender() {
60
- // start custom styling area
61
- if (!this.stylingAppends) {
62
- if (this.clientStyling)
63
- this.setClientStyling();
64
- if (this.clientStylingUrl)
65
- this.setClientStylingURL();
66
- this.stylingAppends = true;
67
- }
68
- // end custom styling area
69
- }
70
- async componentWillLoad() {
71
- const promises = [];
72
- if (this.translationUrl) {
73
- const translationPromise = mergeTranslations(this.translationUrl, this.targetTranslations);
74
- promises.push(translationPromise);
75
- }
76
- return await Promise.all(promises);
77
- }
78
- render() {
79
- return (h("div", { class: "StyleShell" }, h("slot", { name: "mainContent" })));
80
- }
81
- get el() { return this; }
82
- static get style() { return generalStylingWrapperCss; }
83
- }, [4, "general-styling-wrapper", {
84
- "clientStyling": [1, "client-styling"],
85
- "clientStylingUrl": [1, "client-styling-url"],
86
- "translationUrl": [1, "translation-url"],
87
- "targetTranslations": [16]
88
- }]);
89
- function defineCustomElement() {
90
- if (typeof customElements === "undefined") {
91
- return;
92
- }
93
- const components = ["general-styling-wrapper"];
94
- components.forEach(tagName => { switch (tagName) {
95
- case "general-styling-wrapper":
96
- if (!customElements.get(tagName)) {
97
- customElements.define(tagName, GeneralStylingWrapper);
98
- }
99
- break;
100
- } });
101
- }
102
-
103
- export { GeneralStylingWrapper as G, defineCustomElement as d };
@@ -1,26 +0,0 @@
1
- /* CasinoEngagementSuiteTournament 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';
@@ -1 +0,0 @@
1
- export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';