@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,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-f241bc8a.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
7
+
8
+ /*
9
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
10
+ */
11
+ var patchBrowser = () => {
12
+ const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('casino-challenges-player-history.cjs.js', document.baseURI).href));
13
+ const opts = {};
14
+ if (importMeta !== "") {
15
+ opts.resourcesUrl = new URL(".", importMeta).href;
16
+ }
17
+ return index.promiseResolve(opts);
18
+ };
19
+
20
+ patchBrowser().then(async (options) => {
21
+ await appGlobals.globalScripts();
22
+ return index.bootstrapLazy([["casino-challenges-player-history_2.cjs",[[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);
23
+ });
24
+
25
+ exports.setNonce = index.setNonce;
@@ -0,0 +1,183 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const casinoChallengesPlayerHistory = require('./casino-challenges-player-history-0b3c162e.js');
6
+ const index = require('./index-f241bc8a.js');
7
+
8
+ 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)}}";
9
+ const UiSkeletonStyle0 = uiSkeletonCss;
10
+
11
+ const UiSkeleton = class {
12
+ constructor(hostRef) {
13
+ index.registerInstance(this, hostRef);
14
+ this.stylingValue = {
15
+ width: this.handleStylingProps(this.width),
16
+ height: this.handleStylingProps(this.height),
17
+ borderRadius: this.handleStylingProps(this.borderRadius),
18
+ marginBottom: this.handleStylingProps(this.marginBottom),
19
+ marginTop: this.handleStylingProps(this.marginTop),
20
+ marginLeft: this.handleStylingProps(this.marginLeft),
21
+ marginRight: this.handleStylingProps(this.marginRight),
22
+ size: this.handleStylingProps(this.size)
23
+ };
24
+ this.structure = undefined;
25
+ this.width = 'unset';
26
+ this.height = 'unset';
27
+ this.borderRadius = 'unset';
28
+ this.marginBottom = 'unset';
29
+ this.marginTop = 'unset';
30
+ this.marginLeft = 'unset';
31
+ this.marginRight = 'unset';
32
+ this.animation = true;
33
+ this.rows = 0;
34
+ this.size = '100%';
35
+ }
36
+ handleStructureChange(newValue, oldValue) {
37
+ if (oldValue !== newValue) {
38
+ this.handleStructure(newValue);
39
+ }
40
+ }
41
+ handleStylingProps(value) {
42
+ switch (typeof value) {
43
+ case 'number':
44
+ return value === 0 ? 0 : `${value}px`;
45
+ case 'undefined':
46
+ return 'unset';
47
+ case 'string':
48
+ if (['auto', 'unset', 'none', 'inherit', 'initial'].includes(value) ||
49
+ value.endsWith('px') ||
50
+ value.endsWith('%')) {
51
+ return value;
52
+ }
53
+ else {
54
+ return 'unset';
55
+ }
56
+ default:
57
+ return 'unset';
58
+ }
59
+ }
60
+ handleStructure(structure) {
61
+ switch (structure) {
62
+ case 'logo':
63
+ return this.renderLogo();
64
+ case 'image':
65
+ return this.renderImage();
66
+ case 'title':
67
+ return this.renderTitle();
68
+ case 'text':
69
+ return this.renderText();
70
+ case 'rectangle':
71
+ return this.renderRectangle();
72
+ case 'circle':
73
+ return this.renderCircle();
74
+ default:
75
+ return null;
76
+ }
77
+ }
78
+ renderLogo() {
79
+ return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'Logo ' + (this.animation ? 'Skeleton' : '') })));
80
+ }
81
+ renderImage() {
82
+ return index.h("div", { class: 'Image ' + (this.animation ? 'Skeleton' : '') });
83
+ }
84
+ renderTitle() {
85
+ return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'Title ' + (this.animation ? 'Skeleton' : '') })));
86
+ }
87
+ renderText() {
88
+ return (index.h("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index$1) => (index.h("div", { key: index$1, class: 'Text ' + (this.animation ? 'Skeleton' : '') })))));
89
+ }
90
+ renderRectangle() {
91
+ return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'Rectangle ' + (this.animation ? 'Skeleton' : '') })));
92
+ }
93
+ renderCircle() {
94
+ return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'Circle ' + (this.animation ? 'Skeleton' : '') })));
95
+ }
96
+ render() {
97
+ let styleBlock = '';
98
+ switch (this.structure) {
99
+ case 'logo':
100
+ styleBlock = `
101
+ :host {
102
+ --emw-skeleton-logo-width: ${this.stylingValue.width};
103
+ --emw-skeleton-logo-height: ${this.stylingValue.height};
104
+ --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
105
+ --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
106
+ --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
107
+ --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
108
+ --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
109
+ }
110
+ `;
111
+ break;
112
+ case 'image':
113
+ styleBlock = `
114
+ :host {
115
+ --emw-skeleton-image-width: ${this.stylingValue.width};
116
+ --emw-skeleton-image-height: ${this.stylingValue.height};
117
+ --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
118
+ --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
119
+ --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
120
+ --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
121
+ --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
122
+ }
123
+ `;
124
+ break;
125
+ case 'title':
126
+ styleBlock = `
127
+ :host {
128
+ --emw-skeleton-title-width: ${this.stylingValue.width};
129
+ --emw-skeleton-title-height: ${this.stylingValue.height};
130
+ --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
131
+ --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
132
+ --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
133
+ --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
134
+ --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
135
+ }
136
+ `;
137
+ break;
138
+ case 'text':
139
+ styleBlock = `
140
+ :host {
141
+ --emw-skeleton-text-width: ${this.stylingValue.width};
142
+ --emw-skeleton-text-height: ${this.stylingValue.height};
143
+ --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
144
+ --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
145
+ --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
146
+ --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
147
+ --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
148
+ }
149
+ `;
150
+ break;
151
+ case 'rectangle':
152
+ styleBlock = `
153
+ :host {
154
+ --emw-skeleton-rectangle-width: ${this.stylingValue.width};
155
+ --emw-skeleton-rectangle-height: ${this.stylingValue.height};
156
+ --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
157
+ --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
158
+ --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
159
+ --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
160
+ --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
161
+ }
162
+ `;
163
+ break;
164
+ case 'circle':
165
+ styleBlock = `
166
+ :host {
167
+ --emw-skeleton-circle-size: ${this.stylingValue.size};
168
+ }
169
+ `;
170
+ break;
171
+ default:
172
+ styleBlock = '';
173
+ }
174
+ return (index.h(index.Host, { key: 'e6b885bfd985ce7663d990756fe9101e25eb97f0' }, index.h("style", { key: '06ae24c7bb74f4dacfc12ae58085333f9dc89da5' }, styleBlock), this.handleStructure(this.structure)));
175
+ }
176
+ static get watchers() { return {
177
+ "structure": ["handleStructureChange"]
178
+ }; }
179
+ };
180
+ UiSkeleton.style = UiSkeletonStyle0;
181
+
182
+ exports.casino_challenges_player_history = casinoChallengesPlayerHistory.CasinoChallengesPlayerHistory;
183
+ exports.ui_skeleton = UiSkeleton;