@everymatrix/bonus-powerups-ingame-games 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.
- package/dist/bonus-powerups-ingame-games/app-globals-0f993ce5.js +1 -0
- package/dist/bonus-powerups-ingame-games/bonus-powerups-ingame-games-b2c0935f.js +1 -0
- package/dist/bonus-powerups-ingame-games/bonus-powerups-ingame-games.esm.js +1 -0
- package/dist/bonus-powerups-ingame-games/bonus-powerups-ingame-games_3.entry.js +1 -0
- package/dist/bonus-powerups-ingame-games/index-fd928daa.js +2 -0
- package/dist/bonus-powerups-ingame-games/index.esm.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/bonus-powerups-ingame-games-7de80a10.js +317 -0
- package/dist/cjs/bonus-powerups-ingame-games.cjs.js +25 -0
- package/dist/cjs/bonus-powerups-ingame-games_3.cjs.entry.js +247 -0
- package/dist/cjs/index-e3184c85.js +1246 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/collection/assets/Arrow Curve Left.svg +11 -0
- package/dist/collection/assets/double-right.svg +4 -0
- package/dist/collection/assets/gotoPage.svg +3 -0
- package/dist/collection/assets/return.svg +15 -0
- package/dist/collection/collection-manifest.json +25 -0
- package/dist/collection/components/bonus-powerups-ingame-games/bonus-powerups-ingame-games.css +279 -0
- package/dist/collection/components/bonus-powerups-ingame-games/bonus-powerups-ingame-games.js +335 -0
- package/dist/collection/components/bonus-powerups-ingame-games/index.js +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/constants.js +4 -0
- package/dist/collection/utils/locale.utils.js +38 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/bonus-powerups-ingame-games-b2c0935f.js +315 -0
- package/dist/esm/bonus-powerups-ingame-games.js +20 -0
- package/dist/esm/bonus-powerups-ingame-games_3.entry.js +241 -0
- package/dist/esm/index-fd928daa.js +1217 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.dev.js +20 -0
- package/dist/stencil.config.js +20 -0
- package/dist/storybook/main.js +43 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-games/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-games/.stencil/libs/common/src/types/casino/powerups.d.ts +60 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-games/.stencil/packages/stencil/bonus-powerups-ingame-games/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-games/.stencil/packages/stencil/bonus-powerups-ingame-games/stencil.config.dev.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-games/.stencil/packages/stencil/bonus-powerups-ingame-games/storybook/main.d.ts +3 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-games/.stencil/packages/stencil/bonus-powerups-ingame-games/storybook/preview.d.ts +70 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-games/.stencil/tools/plugins/index.d.ts +4 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-games/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-games/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-games/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-games/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/bonus-powerups-ingame-games/bonus-powerups-ingame-games.d.ts +34 -0
- package/dist/types/components/bonus-powerups-ingame-games/index.d.ts +1 -0
- package/dist/types/components.d.ts +69 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/constants.d.ts +4 -0
- package/dist/types/utils/locale.utils.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +27 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const bonusPowerupsIngameGames = require('./bonus-powerups-ingame-games-7de80a10.js');
|
|
6
|
+
const index = require('./index-e3184c85.js');
|
|
7
|
+
|
|
8
|
+
const uiImageCss = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}";
|
|
9
|
+
const UiImageStyle0 = uiImageCss;
|
|
10
|
+
|
|
11
|
+
const UiImage = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
this.src = undefined;
|
|
15
|
+
this.width = undefined;
|
|
16
|
+
this.height = undefined;
|
|
17
|
+
this.alt = undefined;
|
|
18
|
+
this.styles = undefined;
|
|
19
|
+
this.detectDistance = '200px';
|
|
20
|
+
this.imgLoaded = false;
|
|
21
|
+
this.shouldLoad = false;
|
|
22
|
+
}
|
|
23
|
+
handleSrc() {
|
|
24
|
+
if (!this.shouldLoad) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const preloadedImage = new Image();
|
|
28
|
+
preloadedImage.onload = () => {
|
|
29
|
+
if (this.image) {
|
|
30
|
+
this.image.src = this.src;
|
|
31
|
+
this.imgLoaded = true;
|
|
32
|
+
preloadedImage.onload = null;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
preloadedImage.src = this.src;
|
|
36
|
+
}
|
|
37
|
+
componentDidLoad() {
|
|
38
|
+
if ('IntersectionObserver' in window) {
|
|
39
|
+
this.el.__uxComponent = this;
|
|
40
|
+
if (!window.EMUxObserver) {
|
|
41
|
+
window.EMUxObserver = new IntersectionObserver((entries) => {
|
|
42
|
+
entries.forEach(entry => {
|
|
43
|
+
if (entry.isIntersecting) {
|
|
44
|
+
const comp = entry.target.__uxComponent;
|
|
45
|
+
if (comp) {
|
|
46
|
+
comp.shouldLoad = true;
|
|
47
|
+
comp.handleSrc();
|
|
48
|
+
}
|
|
49
|
+
window.EMUxObserver.unobserve(entry.target);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}, { rootMargin: this.detectDistance });
|
|
53
|
+
}
|
|
54
|
+
window.EMUxObserver.observe(this.el);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this.shouldLoad = true;
|
|
58
|
+
this.handleSrc();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
render() {
|
|
62
|
+
return (index.h(index.Host, { key: 'f506ba73852f257ad80bf59ca177d2065a5f365e', class: "HostContainer" }, !this.imgLoaded && (index.h("ui-skeleton", { key: '564ebfab701f827ddc2debccb7615926dbc9e876', class: "UiContainer", structure: "image", width: "100%", height: "100%" })), index.h("img", { key: '2188ca4494c10587f064acc5459ffc468948f497', ref: (el) => (this.image = el), src: this.shouldLoad ? this.src : undefined, onLoad: () => (this.imgLoaded = true), style: this.styles, class: `UiContainer ${this.imgLoaded ? 'Visible' : 'Hidden'}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" })));
|
|
63
|
+
}
|
|
64
|
+
get el() { return index.getElement(this); }
|
|
65
|
+
static get watchers() { return {
|
|
66
|
+
"src": ["handleSrc"]
|
|
67
|
+
}; }
|
|
68
|
+
};
|
|
69
|
+
UiImage.style = UiImageStyle0;
|
|
70
|
+
|
|
71
|
+
const uiSkeletonCss = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{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)}.SkeletonCircle{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%}.SkeletonText{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)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{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)}.SkeletonImage{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)}.SkeletonLogo{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)}}";
|
|
72
|
+
const UiSkeletonStyle0 = uiSkeletonCss;
|
|
73
|
+
|
|
74
|
+
const UiSkeleton = class {
|
|
75
|
+
constructor(hostRef) {
|
|
76
|
+
index.registerInstance(this, hostRef);
|
|
77
|
+
this.stylingValue = {
|
|
78
|
+
width: this.handleStylingProps(this.width),
|
|
79
|
+
height: this.handleStylingProps(this.height),
|
|
80
|
+
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
81
|
+
marginBottom: this.handleStylingProps(this.marginBottom),
|
|
82
|
+
marginTop: this.handleStylingProps(this.marginTop),
|
|
83
|
+
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
84
|
+
marginRight: this.handleStylingProps(this.marginRight),
|
|
85
|
+
size: this.handleStylingProps(this.size),
|
|
86
|
+
};
|
|
87
|
+
this.structure = undefined;
|
|
88
|
+
this.width = 'unset';
|
|
89
|
+
this.height = 'unset';
|
|
90
|
+
this.borderRadius = 'unset';
|
|
91
|
+
this.marginBottom = 'unset';
|
|
92
|
+
this.marginTop = 'unset';
|
|
93
|
+
this.marginLeft = 'unset';
|
|
94
|
+
this.marginRight = 'unset';
|
|
95
|
+
this.animation = true;
|
|
96
|
+
this.rows = 0;
|
|
97
|
+
this.size = '100%';
|
|
98
|
+
}
|
|
99
|
+
handleStructureChange(newValue, oldValue) {
|
|
100
|
+
if (oldValue !== newValue) {
|
|
101
|
+
this.handleStructure(newValue);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
handleStylingProps(value) {
|
|
105
|
+
switch (typeof value) {
|
|
106
|
+
case 'number':
|
|
107
|
+
return value === 0 ? 0 : `${value}px`;
|
|
108
|
+
case 'undefined':
|
|
109
|
+
return 'unset';
|
|
110
|
+
case 'string':
|
|
111
|
+
if (['auto', 'unset', 'none', 'inherit', 'initial'].includes(value) ||
|
|
112
|
+
value.endsWith('px') ||
|
|
113
|
+
value.endsWith('%')) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
return 'unset';
|
|
118
|
+
}
|
|
119
|
+
default:
|
|
120
|
+
return 'unset';
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
handleStructure(structure) {
|
|
124
|
+
switch (structure) {
|
|
125
|
+
case 'logo':
|
|
126
|
+
return this.renderLogo();
|
|
127
|
+
case 'image':
|
|
128
|
+
return this.renderImage();
|
|
129
|
+
case 'title':
|
|
130
|
+
return this.renderTitle();
|
|
131
|
+
case 'text':
|
|
132
|
+
return this.renderText();
|
|
133
|
+
case 'rectangle':
|
|
134
|
+
return this.renderRectangle();
|
|
135
|
+
case 'circle':
|
|
136
|
+
return this.renderCircle();
|
|
137
|
+
default:
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
renderLogo() {
|
|
142
|
+
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'SkeletonLogo ' + (this.animation ? 'Skeleton' : '') })));
|
|
143
|
+
}
|
|
144
|
+
renderImage() {
|
|
145
|
+
return index.h("div", { class: 'SkeletonImage ' + (this.animation ? 'Skeleton' : '') });
|
|
146
|
+
}
|
|
147
|
+
renderTitle() {
|
|
148
|
+
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'SkeletonTitle ' + (this.animation ? 'Skeleton' : '') })));
|
|
149
|
+
}
|
|
150
|
+
renderText() {
|
|
151
|
+
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: 'SkeletonText ' + (this.animation ? 'Skeleton' : '') })))));
|
|
152
|
+
}
|
|
153
|
+
renderRectangle() {
|
|
154
|
+
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'SkeletonRectangle ' + (this.animation ? 'Skeleton' : '') })));
|
|
155
|
+
}
|
|
156
|
+
renderCircle() {
|
|
157
|
+
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'SkeletonCircle ' + (this.animation ? 'Skeleton' : '') })));
|
|
158
|
+
}
|
|
159
|
+
render() {
|
|
160
|
+
let styleBlock = '';
|
|
161
|
+
switch (this.structure) {
|
|
162
|
+
case 'logo':
|
|
163
|
+
styleBlock = `
|
|
164
|
+
:host {
|
|
165
|
+
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
166
|
+
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
167
|
+
--emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
|
|
168
|
+
--emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
|
|
169
|
+
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
170
|
+
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
171
|
+
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
172
|
+
}
|
|
173
|
+
`;
|
|
174
|
+
break;
|
|
175
|
+
case 'image':
|
|
176
|
+
styleBlock = `
|
|
177
|
+
:host {
|
|
178
|
+
--emw-skeleton-image-width: ${this.stylingValue.width};
|
|
179
|
+
--emw-skeleton-image-height: ${this.stylingValue.height};
|
|
180
|
+
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
|
181
|
+
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
|
182
|
+
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
183
|
+
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
184
|
+
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
185
|
+
}
|
|
186
|
+
`;
|
|
187
|
+
break;
|
|
188
|
+
case 'title':
|
|
189
|
+
styleBlock = `
|
|
190
|
+
:host {
|
|
191
|
+
--emw-skeleton-title-width: ${this.stylingValue.width};
|
|
192
|
+
--emw-skeleton-title-height: ${this.stylingValue.height};
|
|
193
|
+
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
|
194
|
+
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
|
195
|
+
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
196
|
+
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
197
|
+
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
198
|
+
}
|
|
199
|
+
`;
|
|
200
|
+
break;
|
|
201
|
+
case 'text':
|
|
202
|
+
styleBlock = `
|
|
203
|
+
:host {
|
|
204
|
+
--emw-skeleton-text-width: ${this.stylingValue.width};
|
|
205
|
+
--emw-skeleton-text-height: ${this.stylingValue.height};
|
|
206
|
+
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
|
207
|
+
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
|
208
|
+
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
209
|
+
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
210
|
+
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
211
|
+
}
|
|
212
|
+
`;
|
|
213
|
+
break;
|
|
214
|
+
case 'rectangle':
|
|
215
|
+
styleBlock = `
|
|
216
|
+
:host {
|
|
217
|
+
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
|
218
|
+
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
|
219
|
+
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
|
220
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
|
221
|
+
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
222
|
+
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
223
|
+
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
224
|
+
}
|
|
225
|
+
`;
|
|
226
|
+
break;
|
|
227
|
+
case 'circle':
|
|
228
|
+
styleBlock = `
|
|
229
|
+
:host {
|
|
230
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
231
|
+
}
|
|
232
|
+
`;
|
|
233
|
+
break;
|
|
234
|
+
default:
|
|
235
|
+
styleBlock = '';
|
|
236
|
+
}
|
|
237
|
+
return (index.h(index.Host, { key: 'c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8' }, index.h("style", { key: '9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19' }, styleBlock), this.handleStructure(this.structure)));
|
|
238
|
+
}
|
|
239
|
+
static get watchers() { return {
|
|
240
|
+
"structure": ["handleStructureChange"]
|
|
241
|
+
}; }
|
|
242
|
+
};
|
|
243
|
+
UiSkeleton.style = UiSkeletonStyle0;
|
|
244
|
+
|
|
245
|
+
exports.bonus_powerups_ingame_games = bonusPowerupsIngameGames.BonusPowerupsIngameGames;
|
|
246
|
+
exports.ui_image = UiImage;
|
|
247
|
+
exports.ui_skeleton = UiSkeleton;
|