@everymatrix/casino-challenges-player-history 0.0.1

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 (62) hide show
  1. package/dist/casino-challenges-player-history/app-globals-0f993ce5.js +1 -0
  2. package/dist/casino-challenges-player-history/casino-challenges-player-history-67980c33.js +1 -0
  3. package/dist/casino-challenges-player-history/casino-challenges-player-history.esm.js +1 -0
  4. package/dist/casino-challenges-player-history/casino-challenges-player-history_2.entry.js +1 -0
  5. package/dist/casino-challenges-player-history/index-29d1f02c.js +2 -0
  6. package/dist/casino-challenges-player-history/index.esm.js +1 -0
  7. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  8. package/dist/cjs/casino-challenges-player-history-0b3c162e.js +2438 -0
  9. package/dist/cjs/casino-challenges-player-history.cjs.js +25 -0
  10. package/dist/cjs/casino-challenges-player-history_2.cjs.entry.js +183 -0
  11. package/dist/cjs/index-f241bc8a.js +1245 -0
  12. package/dist/cjs/index.cjs.js +10 -0
  13. package/dist/cjs/loader.cjs.js +15 -0
  14. package/dist/collection/assets/arrow-down.svg +3 -0
  15. package/dist/collection/assets/arrow-up.svg +3 -0
  16. package/dist/collection/assets/gift.svg +9 -0
  17. package/dist/collection/collection-manifest.json +19 -0
  18. package/dist/collection/components/casino-challenges-player-history/casino-challenges-player-history.css +122 -0
  19. package/dist/collection/components/casino-challenges-player-history/casino-challenges-player-history.js +306 -0
  20. package/dist/collection/components/casino-challenges-player-history/index.js +1 -0
  21. package/dist/collection/index.js +1 -0
  22. package/dist/collection/utils/locale.utils.js +54 -0
  23. package/dist/collection/utils/types.js +7 -0
  24. package/dist/collection/utils/utils.js +3 -0
  25. package/dist/esm/app-globals-0f993ce5.js +3 -0
  26. package/dist/esm/casino-challenges-player-history-67980c33.js +2436 -0
  27. package/dist/esm/casino-challenges-player-history.js +20 -0
  28. package/dist/esm/casino-challenges-player-history_2.entry.js +178 -0
  29. package/dist/esm/index-29d1f02c.js +1217 -0
  30. package/dist/esm/index.js +2 -0
  31. package/dist/esm/loader.js +11 -0
  32. package/dist/index.cjs.js +1 -0
  33. package/dist/index.js +1 -0
  34. package/dist/stencil.config.dev.js +19 -0
  35. package/dist/stencil.config.js +19 -0
  36. package/dist/storybook/main.js +43 -0
  37. package/dist/storybook/preview.js +9 -0
  38. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-player-history/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  39. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-player-history/.stencil/packages/stencil/casino-challenges-player-history/stencil.config.d.ts +2 -0
  40. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-player-history/.stencil/packages/stencil/casino-challenges-player-history/stencil.config.dev.d.ts +2 -0
  41. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-player-history/.stencil/packages/stencil/casino-challenges-player-history/storybook/main.d.ts +3 -0
  42. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-player-history/.stencil/packages/stencil/casino-challenges-player-history/storybook/preview.d.ts +70 -0
  43. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-player-history/.stencil/tools/plugins/index.d.ts +4 -0
  44. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-player-history/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
  45. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-player-history/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  46. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-player-history/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  47. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-player-history/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  48. package/dist/types/components/casino-challenges-player-history/casino-challenges-player-history.d.ts +60 -0
  49. package/dist/types/components/casino-challenges-player-history/index.d.ts +1 -0
  50. package/dist/types/components.d.ts +122 -0
  51. package/dist/types/index.d.ts +1 -0
  52. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  53. package/dist/types/utils/locale.utils.d.ts +3 -0
  54. package/dist/types/utils/types.d.ts +27 -0
  55. package/dist/types/utils/utils.d.ts +1 -0
  56. package/loader/cdn.js +1 -0
  57. package/loader/index.cjs.js +1 -0
  58. package/loader/index.d.ts +24 -0
  59. package/loader/index.es2017.js +1 -0
  60. package/loader/index.js +2 -0
  61. package/loader/package.json +11 -0
  62. package/package.json +27 -0
@@ -0,0 +1,20 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-29d1f02c.js';
2
+ export { s as setNonce } from './index-29d1f02c.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
4
+
5
+ /*
6
+ Stencil Client Patch Browser v4.19.2 | 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-challenges-player-history_2",[[1,"casino-challenges-player-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"playerHistory":[16],"loading":[516],"hasMore":[516,"has-more"],"openItems":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"playerHistory":["handlePlayerHistoryChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]]], options);
20
+ });
@@ -0,0 +1,178 @@
1
+ export { C as casino_challenges_player_history } from './casino-challenges-player-history-67980c33.js';
2
+ import { r as registerInstance, h, H as Host } from './index-29d1f02c.js';
3
+
4
+ const uiSkeletonCss = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";
5
+ const UiSkeletonStyle0 = uiSkeletonCss;
6
+
7
+ const UiSkeleton = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.stylingValue = {
11
+ width: this.handleStylingProps(this.width),
12
+ height: this.handleStylingProps(this.height),
13
+ borderRadius: this.handleStylingProps(this.borderRadius),
14
+ marginBottom: this.handleStylingProps(this.marginBottom),
15
+ marginTop: this.handleStylingProps(this.marginTop),
16
+ marginLeft: this.handleStylingProps(this.marginLeft),
17
+ marginRight: this.handleStylingProps(this.marginRight),
18
+ size: this.handleStylingProps(this.size)
19
+ };
20
+ this.structure = undefined;
21
+ this.width = 'unset';
22
+ this.height = 'unset';
23
+ this.borderRadius = 'unset';
24
+ this.marginBottom = 'unset';
25
+ this.marginTop = 'unset';
26
+ this.marginLeft = 'unset';
27
+ this.marginRight = 'unset';
28
+ this.animation = true;
29
+ this.rows = 0;
30
+ this.size = '100%';
31
+ }
32
+ handleStructureChange(newValue, oldValue) {
33
+ if (oldValue !== newValue) {
34
+ this.handleStructure(newValue);
35
+ }
36
+ }
37
+ handleStylingProps(value) {
38
+ switch (typeof value) {
39
+ case 'number':
40
+ return value === 0 ? 0 : `${value}px`;
41
+ case 'undefined':
42
+ return 'unset';
43
+ case 'string':
44
+ if (['auto', 'unset', 'none', 'inherit', 'initial'].includes(value) ||
45
+ value.endsWith('px') ||
46
+ value.endsWith('%')) {
47
+ return value;
48
+ }
49
+ else {
50
+ return 'unset';
51
+ }
52
+ default:
53
+ return 'unset';
54
+ }
55
+ }
56
+ handleStructure(structure) {
57
+ switch (structure) {
58
+ case 'logo':
59
+ return this.renderLogo();
60
+ case 'image':
61
+ return this.renderImage();
62
+ case 'title':
63
+ return this.renderTitle();
64
+ case 'text':
65
+ return this.renderText();
66
+ case 'rectangle':
67
+ return this.renderRectangle();
68
+ case 'circle':
69
+ return this.renderCircle();
70
+ default:
71
+ return null;
72
+ }
73
+ }
74
+ renderLogo() {
75
+ return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Logo ' + (this.animation ? 'Skeleton' : '') })));
76
+ }
77
+ renderImage() {
78
+ return h("div", { class: 'Image ' + (this.animation ? 'Skeleton' : '') });
79
+ }
80
+ renderTitle() {
81
+ return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Title ' + (this.animation ? 'Skeleton' : '') })));
82
+ }
83
+ renderText() {
84
+ return (h("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index) => (h("div", { key: index, class: 'Text ' + (this.animation ? 'Skeleton' : '') })))));
85
+ }
86
+ renderRectangle() {
87
+ return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Rectangle ' + (this.animation ? 'Skeleton' : '') })));
88
+ }
89
+ renderCircle() {
90
+ return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Circle ' + (this.animation ? 'Skeleton' : '') })));
91
+ }
92
+ render() {
93
+ let styleBlock = '';
94
+ switch (this.structure) {
95
+ case 'logo':
96
+ styleBlock = `
97
+ :host {
98
+ --emw-skeleton-logo-width: ${this.stylingValue.width};
99
+ --emw-skeleton-logo-height: ${this.stylingValue.height};
100
+ --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
101
+ --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
102
+ --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
103
+ --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
104
+ --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
105
+ }
106
+ `;
107
+ break;
108
+ case 'image':
109
+ styleBlock = `
110
+ :host {
111
+ --emw-skeleton-image-width: ${this.stylingValue.width};
112
+ --emw-skeleton-image-height: ${this.stylingValue.height};
113
+ --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
114
+ --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
115
+ --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
116
+ --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
117
+ --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
118
+ }
119
+ `;
120
+ break;
121
+ case 'title':
122
+ styleBlock = `
123
+ :host {
124
+ --emw-skeleton-title-width: ${this.stylingValue.width};
125
+ --emw-skeleton-title-height: ${this.stylingValue.height};
126
+ --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
127
+ --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
128
+ --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
129
+ --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
130
+ --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
131
+ }
132
+ `;
133
+ break;
134
+ case 'text':
135
+ styleBlock = `
136
+ :host {
137
+ --emw-skeleton-text-width: ${this.stylingValue.width};
138
+ --emw-skeleton-text-height: ${this.stylingValue.height};
139
+ --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
140
+ --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
141
+ --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
142
+ --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
143
+ --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
144
+ }
145
+ `;
146
+ break;
147
+ case 'rectangle':
148
+ styleBlock = `
149
+ :host {
150
+ --emw-skeleton-rectangle-width: ${this.stylingValue.width};
151
+ --emw-skeleton-rectangle-height: ${this.stylingValue.height};
152
+ --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
153
+ --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
154
+ --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
155
+ --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
156
+ --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
157
+ }
158
+ `;
159
+ break;
160
+ case 'circle':
161
+ styleBlock = `
162
+ :host {
163
+ --emw-skeleton-circle-size: ${this.stylingValue.size};
164
+ }
165
+ `;
166
+ break;
167
+ default:
168
+ styleBlock = '';
169
+ }
170
+ return (h(Host, { key: 'e6b885bfd985ce7663d990756fe9101e25eb97f0' }, h("style", { key: '06ae24c7bb74f4dacfc12ae58085333f9dc89da5' }, styleBlock), this.handleStructure(this.structure)));
171
+ }
172
+ static get watchers() { return {
173
+ "structure": ["handleStructureChange"]
174
+ }; }
175
+ };
176
+ UiSkeleton.style = UiSkeletonStyle0;
177
+
178
+ export { UiSkeleton as ui_skeleton };