@everymatrix/casino-challenges-list 1.77.16 → 1.77.18
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-challenges-list/casino-challenge-card_3.entry.js +1 -0
- package/dist/casino-challenges-list/casino-challenges-list-d0d9a1e1.js +1 -0
- package/dist/casino-challenges-list/casino-challenges-list.esm.js +1 -1
- package/dist/casino-challenges-list/index-d84ca385.js +2 -0
- package/dist/casino-challenges-list/index.esm.js +1 -1
- package/dist/cjs/casino-challenge-card_3.cjs.entry.js +631 -0
- package/dist/cjs/{casino-challenges-list-d6873cbb.js → casino-challenges-list-b4bc1590.js} +6 -3
- package/dist/cjs/casino-challenges-list.cjs.js +2 -2
- package/dist/cjs/{index-4ab9ba12.js → index-6a66c51c.js} +37 -5
- package/dist/cjs/index.cjs.js +2 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/casino-challenges-list/casino-challenges-list.js +21 -2
- package/dist/esm/casino-challenge-card_3.entry.js +626 -0
- package/dist/esm/{casino-challenges-list-faf39d72.js → casino-challenges-list-d0d9a1e1.js} +4 -4
- package/dist/esm/casino-challenges-list.js +3 -3
- package/dist/esm/{index-ce64c965.js → index-d84ca385.js} +37 -5
- package/dist/esm/index.js +2 -3
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/casino-challenges-list/casino-challenges-list.d.ts +2 -1
- package/dist/types/components.d.ts +2 -0
- package/package.json +1 -1
- package/dist/casino-challenges-list/casino-challenges-list-faf39d72.js +0 -1
- package/dist/casino-challenges-list/casino-challenges-list_2.entry.js +0 -1
- package/dist/casino-challenges-list/index-ce64c965.js +0 -2
- package/dist/cjs/casino-challenges-list_2.cjs.entry.js +0 -184
- package/dist/esm/casino-challenges-list_2.entry.js +0 -179
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
export { C as casino_challenges_list } from './casino-challenges-list-faf39d72.js';
|
|
2
|
-
import { r as registerInstance, h, H as Host } from './index-ce64c965.js';
|
|
3
|
-
import '@everymatrix/casino-challenge-card';
|
|
4
|
-
|
|
5
|
-
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)}}";
|
|
6
|
-
const UiSkeletonStyle0 = uiSkeletonCss;
|
|
7
|
-
|
|
8
|
-
const UiSkeleton = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
this.stylingValue = {
|
|
12
|
-
width: this.handleStylingProps(this.width),
|
|
13
|
-
height: this.handleStylingProps(this.height),
|
|
14
|
-
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
15
|
-
marginBottom: this.handleStylingProps(this.marginBottom),
|
|
16
|
-
marginTop: this.handleStylingProps(this.marginTop),
|
|
17
|
-
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
18
|
-
marginRight: this.handleStylingProps(this.marginRight),
|
|
19
|
-
size: this.handleStylingProps(this.size)
|
|
20
|
-
};
|
|
21
|
-
this.structure = undefined;
|
|
22
|
-
this.width = 'unset';
|
|
23
|
-
this.height = 'unset';
|
|
24
|
-
this.borderRadius = 'unset';
|
|
25
|
-
this.marginBottom = 'unset';
|
|
26
|
-
this.marginTop = 'unset';
|
|
27
|
-
this.marginLeft = 'unset';
|
|
28
|
-
this.marginRight = 'unset';
|
|
29
|
-
this.animation = true;
|
|
30
|
-
this.rows = 0;
|
|
31
|
-
this.size = '100%';
|
|
32
|
-
}
|
|
33
|
-
handleStructureChange(newValue, oldValue) {
|
|
34
|
-
if (oldValue !== newValue) {
|
|
35
|
-
this.handleStructure(newValue);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
handleStylingProps(value) {
|
|
39
|
-
switch (typeof value) {
|
|
40
|
-
case 'number':
|
|
41
|
-
return value === 0 ? 0 : `${value}px`;
|
|
42
|
-
case 'undefined':
|
|
43
|
-
return 'unset';
|
|
44
|
-
case 'string':
|
|
45
|
-
if (['auto', 'unset', 'none', 'inherit', 'initial'].includes(value) ||
|
|
46
|
-
value.endsWith('px') ||
|
|
47
|
-
value.endsWith('%')) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
return 'unset';
|
|
52
|
-
}
|
|
53
|
-
default:
|
|
54
|
-
return 'unset';
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
handleStructure(structure) {
|
|
58
|
-
switch (structure) {
|
|
59
|
-
case 'logo':
|
|
60
|
-
return this.renderLogo();
|
|
61
|
-
case 'image':
|
|
62
|
-
return this.renderImage();
|
|
63
|
-
case 'title':
|
|
64
|
-
return this.renderTitle();
|
|
65
|
-
case 'text':
|
|
66
|
-
return this.renderText();
|
|
67
|
-
case 'rectangle':
|
|
68
|
-
return this.renderRectangle();
|
|
69
|
-
case 'circle':
|
|
70
|
-
return this.renderCircle();
|
|
71
|
-
default:
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
renderLogo() {
|
|
76
|
-
return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Logo ' + (this.animation ? 'Skeleton' : '') })));
|
|
77
|
-
}
|
|
78
|
-
renderImage() {
|
|
79
|
-
return h("div", { class: 'Image ' + (this.animation ? 'Skeleton' : '') });
|
|
80
|
-
}
|
|
81
|
-
renderTitle() {
|
|
82
|
-
return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Title ' + (this.animation ? 'Skeleton' : '') })));
|
|
83
|
-
}
|
|
84
|
-
renderText() {
|
|
85
|
-
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' : '') })))));
|
|
86
|
-
}
|
|
87
|
-
renderRectangle() {
|
|
88
|
-
return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Rectangle ' + (this.animation ? 'Skeleton' : '') })));
|
|
89
|
-
}
|
|
90
|
-
renderCircle() {
|
|
91
|
-
return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Circle ' + (this.animation ? 'Skeleton' : '') })));
|
|
92
|
-
}
|
|
93
|
-
render() {
|
|
94
|
-
let styleBlock = '';
|
|
95
|
-
switch (this.structure) {
|
|
96
|
-
case 'logo':
|
|
97
|
-
styleBlock = `
|
|
98
|
-
:host {
|
|
99
|
-
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
100
|
-
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
101
|
-
--emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
|
|
102
|
-
--emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
|
|
103
|
-
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
104
|
-
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
105
|
-
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
106
|
-
}
|
|
107
|
-
`;
|
|
108
|
-
break;
|
|
109
|
-
case 'image':
|
|
110
|
-
styleBlock = `
|
|
111
|
-
:host {
|
|
112
|
-
--emw-skeleton-image-width: ${this.stylingValue.width};
|
|
113
|
-
--emw-skeleton-image-height: ${this.stylingValue.height};
|
|
114
|
-
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
|
115
|
-
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
|
116
|
-
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
117
|
-
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
118
|
-
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
119
|
-
}
|
|
120
|
-
`;
|
|
121
|
-
break;
|
|
122
|
-
case 'title':
|
|
123
|
-
styleBlock = `
|
|
124
|
-
:host {
|
|
125
|
-
--emw-skeleton-title-width: ${this.stylingValue.width};
|
|
126
|
-
--emw-skeleton-title-height: ${this.stylingValue.height};
|
|
127
|
-
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
|
128
|
-
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
|
129
|
-
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
130
|
-
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
131
|
-
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
132
|
-
}
|
|
133
|
-
`;
|
|
134
|
-
break;
|
|
135
|
-
case 'text':
|
|
136
|
-
styleBlock = `
|
|
137
|
-
:host {
|
|
138
|
-
--emw-skeleton-text-width: ${this.stylingValue.width};
|
|
139
|
-
--emw-skeleton-text-height: ${this.stylingValue.height};
|
|
140
|
-
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
|
141
|
-
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
|
142
|
-
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
143
|
-
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
144
|
-
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
145
|
-
}
|
|
146
|
-
`;
|
|
147
|
-
break;
|
|
148
|
-
case 'rectangle':
|
|
149
|
-
styleBlock = `
|
|
150
|
-
:host {
|
|
151
|
-
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
|
152
|
-
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
|
153
|
-
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
|
154
|
-
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
|
155
|
-
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
156
|
-
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
157
|
-
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
158
|
-
}
|
|
159
|
-
`;
|
|
160
|
-
break;
|
|
161
|
-
case 'circle':
|
|
162
|
-
styleBlock = `
|
|
163
|
-
:host {
|
|
164
|
-
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
165
|
-
}
|
|
166
|
-
`;
|
|
167
|
-
break;
|
|
168
|
-
default:
|
|
169
|
-
styleBlock = '';
|
|
170
|
-
}
|
|
171
|
-
return (h(Host, { key: 'e6b885bfd985ce7663d990756fe9101e25eb97f0' }, h("style", { key: '06ae24c7bb74f4dacfc12ae58085333f9dc89da5' }, styleBlock), this.handleStructure(this.structure)));
|
|
172
|
-
}
|
|
173
|
-
static get watchers() { return {
|
|
174
|
-
"structure": ["handleStructureChange"]
|
|
175
|
-
}; }
|
|
176
|
-
};
|
|
177
|
-
UiSkeleton.style = UiSkeletonStyle0;
|
|
178
|
-
|
|
179
|
-
export { UiSkeleton as ui_skeleton };
|