@everymatrix/ui-skeleton 1.69.2 → 1.69.3

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const uiSkeleton = require('./ui-skeleton-2706b5eb.js');
5
+ const uiSkeleton = require('./ui-skeleton-282391af.js');
6
6
  require('./index-946ac65b.js');
7
7
 
8
8
 
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["ui-skeleton.cjs",[[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],"color":[1],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"]},null,{"structure":["handleStructureChange"]}]]]], options);
11
+ return index.bootstrapLazy([["ui-skeleton.cjs",[[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);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -2,7 +2,7 @@
2
2
 
3
3
  const index = require('./index-946ac65b.js');
4
4
 
5
- const uiSkeletonCss = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.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, 2px)}.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, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.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, 5px);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, inherit)}.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, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}";
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
6
  const UiSkeletonStyle0 = uiSkeletonCss;
7
7
 
8
8
  const UiSkeleton = class {
@@ -15,7 +15,8 @@ const UiSkeleton = class {
15
15
  marginBottom: this.handleStylingProps(this.marginBottom),
16
16
  marginTop: this.handleStylingProps(this.marginTop),
17
17
  marginLeft: this.handleStylingProps(this.marginLeft),
18
- marginRight: this.handleStylingProps(this.marginRight)
18
+ marginRight: this.handleStylingProps(this.marginRight),
19
+ size: this.handleStylingProps(this.size)
19
20
  };
20
21
  this.structure = undefined;
21
22
  this.width = 'unset';
@@ -28,9 +29,6 @@ const UiSkeleton = class {
28
29
  this.animation = true;
29
30
  this.rows = 0;
30
31
  this.size = '100%';
31
- this.color = '#c2c2c2';
32
- this.primaryColor = '#c2c2c2';
33
- this.secondaryColor = '#ffffff';
34
32
  }
35
33
  handleStructureChange(newValue, oldValue) {
36
34
  if (oldValue !== newValue) {
@@ -105,9 +103,6 @@ const UiSkeleton = class {
105
103
  --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
106
104
  --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
107
105
  --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
108
- --emw-skeleton-logo-background: ${this.color};
109
- --emw-skeleton-primary-color: ${this.primaryColor};
110
- --emw-skeleton-secondary-color: ${this.secondaryColor};
111
106
  }
112
107
  `;
113
108
  break;
@@ -121,9 +116,6 @@ const UiSkeleton = class {
121
116
  --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
122
117
  --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
123
118
  --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
124
- --emw-skeleton-image-background: ${this.color};
125
- --emw-skeleton-primary-color: ${this.primaryColor};
126
- --emw-skeleton-secondary-color: ${this.secondaryColor};
127
119
  }
128
120
  `;
129
121
  break;
@@ -137,9 +129,6 @@ const UiSkeleton = class {
137
129
  --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
138
130
  --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
139
131
  --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
140
- --emw-skeleton-title-background: ${this.color};
141
- --emw-skeleton-primary-color: ${this.primaryColor};
142
- --emw-skeleton-secondary-color: ${this.secondaryColor};
143
132
  }
144
133
  `;
145
134
  break;
@@ -153,9 +142,6 @@ const UiSkeleton = class {
153
142
  --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
154
143
  --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
155
144
  --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
156
- --emw-skeleton-text-background: ${this.color};
157
- --emw-skeleton-primary-color: ${this.primaryColor};
158
- --emw-skeleton-secondary-color: ${this.secondaryColor};
159
145
  }
160
146
  `;
161
147
  break;
@@ -169,26 +155,20 @@ const UiSkeleton = class {
169
155
  --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
170
156
  --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
171
157
  --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
172
- --emw-skeleton-rectangle-background: ${this.color};
173
- --emw-skeleton-primary-color: ${this.primaryColor};
174
- --emw-skeleton-secondary-color: ${this.secondaryColor};
175
158
  }
176
159
  `;
177
160
  break;
178
161
  case 'circle':
179
162
  styleBlock = `
180
163
  :host {
181
- --emw-skeleton-circle-size: ${this.size};
182
- --emw-skeleton-circle-background: ${this.color};
183
- --emw-skeleton-primary-color: ${this.primaryColor};
184
- --emw-skeleton-secondary-color: ${this.secondaryColor};
164
+ --emw-skeleton-circle-size: ${this.stylingValue.size};
185
165
  }
186
166
  `;
187
167
  break;
188
168
  default:
189
169
  styleBlock = '';
190
170
  }
191
- return (index.h(index.Host, { key: '5c185b76c438d20d4ad88bc48d94ff5628410bb7' }, index.h("style", { key: 'de95e60a5955d5b2af83710423fe40329c187f7e' }, styleBlock), this.handleStructure(this.structure)));
171
+ return (index.h(index.Host, { key: 'e6b885bfd985ce7663d990756fe9101e25eb97f0' }, index.h("style", { key: '06ae24c7bb74f4dacfc12ae58085333f9dc89da5' }, styleBlock), this.handleStructure(this.structure)));
192
172
  }
193
173
  static get watchers() { return {
194
174
  "structure": ["handleStructureChange"]
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const uiSkeleton = require('./ui-skeleton-2706b5eb.js');
5
+ const uiSkeleton = require('./ui-skeleton-282391af.js');
6
6
  require('./index-946ac65b.js');
7
7
 
8
8
 
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["ui-skeleton.cjs",[[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],"color":[1],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"]},null,{"structure":["handleStructureChange"]}]]]], options);
22
+ return index.bootstrapLazy([["ui-skeleton.cjs",[[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
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -1,13 +1,5 @@
1
1
  :host {
2
2
  display: block;
3
- --emw-skeleton-rectangle-background: #c2c2c2;
4
- --emw-skeleton-circle-background: #c2c2c2;
5
- --emw-skeleton-text-background: #c2c2c2;
6
- --emw-skeleton-title-background: #c2c2c2;
7
- --emw-skeleton-image-background: #c2c2c2;
8
- --emw-skeleton-logo-background: #c2c2c2;
9
- --emw-skeleton-primary-color: #e0e0e0;
10
- --emw-skeleton-secondary-color: #f0f0f0;
11
3
  }
12
4
 
13
5
  .Skeleton {
@@ -18,7 +10,7 @@
18
10
  background-color: var(--emw-skeleton-rectangle-background, #c2c2c2);
19
11
  width: var(--emw-skeleton-rectangle-width, 400px);
20
12
  height: var(--emw-skeleton-rectangle-height, 200px);
21
- border-radius: var(--emw-skeleton-rectangle-border-radius, 2px);
13
+ border-radius: var(--emw-skeleton-rectangle-border-radius, 10px);
22
14
  }
23
15
 
24
16
  .Circle {
@@ -32,18 +24,18 @@
32
24
  background-color: var(--emw-skeleton-text-background, #c2c2c2);
33
25
  width: var(--emw-skeleton-text-width, 500px);
34
26
  height: var(--emw-skeleton-text-height, 20px);
35
- border-radius: var(--emw-skeleton-text-border-radius, 5px);
27
+ border-radius: var(--emw-skeleton-text-border-radius, 10px);
36
28
  margin-bottom: var(--emw-skeleton-text-margin-bottom, 5px);
37
29
  }
38
30
  .Text:last-child {
39
- width: var(--emw-skeleton-text-width-100, 300px);
31
+ width: calc(var(--emw-skeleton-text-width, 400px) - 100px);
40
32
  }
41
33
 
42
34
  .Title {
43
35
  background-color: var(--emw-skeleton-title-background, #c2c2c2);
44
36
  width: var(--emw-skeleton-title-width, 300px);
45
37
  height: var(--emw-skeleton-title-height, 30px);
46
- border-radius: var(--emw-skeleton-title-border-radius, 5px);
38
+ border-radius: var(--emw-skeleton-title-border-radius, 10px);
47
39
  margin-bottom: var(--emw-skeleton-title-margin-bottom, 5px);
48
40
  }
49
41
 
@@ -51,21 +43,21 @@
51
43
  background-color: var(--emw-skeleton-image-background, #c2c2c2);
52
44
  width: var(--emw-skeleton-image-width, 100%);
53
45
  height: var(--emw-skeleton-image-height, 100%);
54
- border-radius: var(--emw-skeleton-image-border-radius, inherit);
46
+ border-radius: var(--emw-skeleton-image-border-radius, unset);
55
47
  }
56
48
 
57
49
  .Logo {
58
50
  background-color: var(--emw-skeleton-logo-background, #c2c2c2);
59
51
  width: var(--emw-skeleton-logo-width, 120px);
60
52
  height: var(--emw-skeleton-logo-height, 75px);
61
- border-radius: var(--emw-skeleton-logo-border-radius, 5px);
53
+ border-radius: var(--emw-skeleton-logo-border-radius, 10px);
62
54
  }
63
55
 
64
56
  @keyframes skeleton-loading {
65
57
  0% {
66
- background-color: var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2));
58
+ background-color: var(--emw-skeleton-primary-color, #e0e0e0);
67
59
  }
68
60
  100% {
69
- background-color: var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0));
61
+ background-color: var(--emw-skeleton-secondary-color, #f0f0f0);
70
62
  }
71
63
  }
@@ -8,7 +8,8 @@ export class UiSkeleton {
8
8
  marginBottom: this.handleStylingProps(this.marginBottom),
9
9
  marginTop: this.handleStylingProps(this.marginTop),
10
10
  marginLeft: this.handleStylingProps(this.marginLeft),
11
- marginRight: this.handleStylingProps(this.marginRight)
11
+ marginRight: this.handleStylingProps(this.marginRight),
12
+ size: this.handleStylingProps(this.size)
12
13
  };
13
14
  this.structure = undefined;
14
15
  this.width = 'unset';
@@ -21,9 +22,6 @@ export class UiSkeleton {
21
22
  this.animation = true;
22
23
  this.rows = 0;
23
24
  this.size = '100%';
24
- this.color = '#c2c2c2';
25
- this.primaryColor = '#c2c2c2';
26
- this.secondaryColor = '#ffffff';
27
25
  }
28
26
  handleStructureChange(newValue, oldValue) {
29
27
  if (oldValue !== newValue) {
@@ -98,9 +96,6 @@ export class UiSkeleton {
98
96
  --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
99
97
  --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
100
98
  --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
101
- --emw-skeleton-logo-background: ${this.color};
102
- --emw-skeleton-primary-color: ${this.primaryColor};
103
- --emw-skeleton-secondary-color: ${this.secondaryColor};
104
99
  }
105
100
  `;
106
101
  break;
@@ -114,9 +109,6 @@ export class UiSkeleton {
114
109
  --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
115
110
  --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
116
111
  --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
117
- --emw-skeleton-image-background: ${this.color};
118
- --emw-skeleton-primary-color: ${this.primaryColor};
119
- --emw-skeleton-secondary-color: ${this.secondaryColor};
120
112
  }
121
113
  `;
122
114
  break;
@@ -130,9 +122,6 @@ export class UiSkeleton {
130
122
  --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
131
123
  --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
132
124
  --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
133
- --emw-skeleton-title-background: ${this.color};
134
- --emw-skeleton-primary-color: ${this.primaryColor};
135
- --emw-skeleton-secondary-color: ${this.secondaryColor};
136
125
  }
137
126
  `;
138
127
  break;
@@ -146,9 +135,6 @@ export class UiSkeleton {
146
135
  --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
147
136
  --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
148
137
  --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
149
- --emw-skeleton-text-background: ${this.color};
150
- --emw-skeleton-primary-color: ${this.primaryColor};
151
- --emw-skeleton-secondary-color: ${this.secondaryColor};
152
138
  }
153
139
  `;
154
140
  break;
@@ -162,26 +148,20 @@ export class UiSkeleton {
162
148
  --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
163
149
  --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
164
150
  --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
165
- --emw-skeleton-rectangle-background: ${this.color};
166
- --emw-skeleton-primary-color: ${this.primaryColor};
167
- --emw-skeleton-secondary-color: ${this.secondaryColor};
168
151
  }
169
152
  `;
170
153
  break;
171
154
  case 'circle':
172
155
  styleBlock = `
173
156
  :host {
174
- --emw-skeleton-circle-size: ${this.size};
175
- --emw-skeleton-circle-background: ${this.color};
176
- --emw-skeleton-primary-color: ${this.primaryColor};
177
- --emw-skeleton-secondary-color: ${this.secondaryColor};
157
+ --emw-skeleton-circle-size: ${this.stylingValue.size};
178
158
  }
179
159
  `;
180
160
  break;
181
161
  default:
182
162
  styleBlock = '';
183
163
  }
184
- return (h(Host, { key: '5c185b76c438d20d4ad88bc48d94ff5628410bb7' }, h("style", { key: 'de95e60a5955d5b2af83710423fe40329c187f7e' }, styleBlock), this.handleStructure(this.structure)));
164
+ return (h(Host, { key: 'e6b885bfd985ce7663d990756fe9101e25eb97f0' }, h("style", { key: '06ae24c7bb74f4dacfc12ae58085333f9dc89da5' }, styleBlock), this.handleStructure(this.structure)));
185
165
  }
186
166
  static get is() { return "ui-skeleton"; }
187
167
  static get originalStyleUrls() {
@@ -392,60 +372,6 @@ export class UiSkeleton {
392
372
  "attribute": "size",
393
373
  "reflect": false,
394
374
  "defaultValue": "'100%'"
395
- },
396
- "color": {
397
- "type": "string",
398
- "mutable": false,
399
- "complexType": {
400
- "original": "string",
401
- "resolved": "string",
402
- "references": {}
403
- },
404
- "required": false,
405
- "optional": false,
406
- "docs": {
407
- "tags": [],
408
- "text": "Color of the skeleton when animation is `off` - hexa value (e.g. #c2c2c2)"
409
- },
410
- "attribute": "color",
411
- "reflect": false,
412
- "defaultValue": "'#c2c2c2'"
413
- },
414
- "primaryColor": {
415
- "type": "string",
416
- "mutable": false,
417
- "complexType": {
418
- "original": "string",
419
- "resolved": "string",
420
- "references": {}
421
- },
422
- "required": false,
423
- "optional": false,
424
- "docs": {
425
- "tags": [],
426
- "text": "Primary color of the skeleton when animation is `on` - hexa value (e.g. #c2c2c2)"
427
- },
428
- "attribute": "primary-color",
429
- "reflect": false,
430
- "defaultValue": "'#c2c2c2'"
431
- },
432
- "secondaryColor": {
433
- "type": "string",
434
- "mutable": false,
435
- "complexType": {
436
- "original": "string",
437
- "resolved": "string",
438
- "references": {}
439
- },
440
- "required": false,
441
- "optional": false,
442
- "docs": {
443
- "tags": [],
444
- "text": "Secondary color of the skeleton when animation is `on` - hexa value (e.g. #ffffff)"
445
- },
446
- "attribute": "secondary-color",
447
- "reflect": false,
448
- "defaultValue": "'#ffffff'"
449
375
  }
450
376
  };
451
377
  }
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { U as UiSkeleton } from './ui-skeleton-161699c3.js';
1
+ export { U as UiSkeleton } from './ui-skeleton-ae35c6f2.js';
2
2
  import './index-b2193545.js';
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["ui-skeleton",[[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],"color":[1],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"]},null,{"structure":["handleStructureChange"]}]]]], options);
8
+ return bootstrapLazy([["ui-skeleton",[[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);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-b2193545.js';
2
2
 
3
- const uiSkeletonCss = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.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, 2px)}.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, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.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, 5px);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, inherit)}.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, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}";
3
+ 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)}}";
4
4
  const UiSkeletonStyle0 = uiSkeletonCss;
5
5
 
6
6
  const UiSkeleton = class {
@@ -13,7 +13,8 @@ const UiSkeleton = class {
13
13
  marginBottom: this.handleStylingProps(this.marginBottom),
14
14
  marginTop: this.handleStylingProps(this.marginTop),
15
15
  marginLeft: this.handleStylingProps(this.marginLeft),
16
- marginRight: this.handleStylingProps(this.marginRight)
16
+ marginRight: this.handleStylingProps(this.marginRight),
17
+ size: this.handleStylingProps(this.size)
17
18
  };
18
19
  this.structure = undefined;
19
20
  this.width = 'unset';
@@ -26,9 +27,6 @@ const UiSkeleton = class {
26
27
  this.animation = true;
27
28
  this.rows = 0;
28
29
  this.size = '100%';
29
- this.color = '#c2c2c2';
30
- this.primaryColor = '#c2c2c2';
31
- this.secondaryColor = '#ffffff';
32
30
  }
33
31
  handleStructureChange(newValue, oldValue) {
34
32
  if (oldValue !== newValue) {
@@ -103,9 +101,6 @@ const UiSkeleton = class {
103
101
  --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
104
102
  --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
105
103
  --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
106
- --emw-skeleton-logo-background: ${this.color};
107
- --emw-skeleton-primary-color: ${this.primaryColor};
108
- --emw-skeleton-secondary-color: ${this.secondaryColor};
109
104
  }
110
105
  `;
111
106
  break;
@@ -119,9 +114,6 @@ const UiSkeleton = class {
119
114
  --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
120
115
  --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
121
116
  --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
122
- --emw-skeleton-image-background: ${this.color};
123
- --emw-skeleton-primary-color: ${this.primaryColor};
124
- --emw-skeleton-secondary-color: ${this.secondaryColor};
125
117
  }
126
118
  `;
127
119
  break;
@@ -135,9 +127,6 @@ const UiSkeleton = class {
135
127
  --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
136
128
  --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
137
129
  --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
138
- --emw-skeleton-title-background: ${this.color};
139
- --emw-skeleton-primary-color: ${this.primaryColor};
140
- --emw-skeleton-secondary-color: ${this.secondaryColor};
141
130
  }
142
131
  `;
143
132
  break;
@@ -151,9 +140,6 @@ const UiSkeleton = class {
151
140
  --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
152
141
  --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
153
142
  --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
154
- --emw-skeleton-text-background: ${this.color};
155
- --emw-skeleton-primary-color: ${this.primaryColor};
156
- --emw-skeleton-secondary-color: ${this.secondaryColor};
157
143
  }
158
144
  `;
159
145
  break;
@@ -167,26 +153,20 @@ const UiSkeleton = class {
167
153
  --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
168
154
  --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
169
155
  --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
170
- --emw-skeleton-rectangle-background: ${this.color};
171
- --emw-skeleton-primary-color: ${this.primaryColor};
172
- --emw-skeleton-secondary-color: ${this.secondaryColor};
173
156
  }
174
157
  `;
175
158
  break;
176
159
  case 'circle':
177
160
  styleBlock = `
178
161
  :host {
179
- --emw-skeleton-circle-size: ${this.size};
180
- --emw-skeleton-circle-background: ${this.color};
181
- --emw-skeleton-primary-color: ${this.primaryColor};
182
- --emw-skeleton-secondary-color: ${this.secondaryColor};
162
+ --emw-skeleton-circle-size: ${this.stylingValue.size};
183
163
  }
184
164
  `;
185
165
  break;
186
166
  default:
187
167
  styleBlock = '';
188
168
  }
189
- return (h(Host, { key: '5c185b76c438d20d4ad88bc48d94ff5628410bb7' }, h("style", { key: 'de95e60a5955d5b2af83710423fe40329c187f7e' }, styleBlock), this.handleStructure(this.structure)));
169
+ return (h(Host, { key: 'e6b885bfd985ce7663d990756fe9101e25eb97f0' }, h("style", { key: '06ae24c7bb74f4dacfc12ae58085333f9dc89da5' }, styleBlock), this.handleStructure(this.structure)));
190
170
  }
191
171
  static get watchers() { return {
192
172
  "structure": ["handleStructureChange"]
@@ -1,2 +1,2 @@
1
- export { U as ui_skeleton } from './ui-skeleton-161699c3.js';
1
+ export { U as ui_skeleton } from './ui-skeleton-ae35c6f2.js';
2
2
  import './index-b2193545.js';
@@ -16,5 +16,5 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["ui-skeleton",[[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],"color":[1],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"]},null,{"structure":["handleStructureChange"]}]]]], options);
19
+ return bootstrapLazy([["ui-skeleton",[[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
20
  });
@@ -43,18 +43,6 @@ export declare class UiSkeleton {
43
43
  * The size of the circle - only for `circle` - it can either be a value in px (150px) or in percentage (100%)
44
44
  */
45
45
  size: string;
46
- /**
47
- * Color of the skeleton when animation is `off` - hexa value (e.g. #c2c2c2)
48
- */
49
- color: string;
50
- /**
51
- * Primary color of the skeleton when animation is `on` - hexa value (e.g. #c2c2c2)
52
- */
53
- primaryColor: string;
54
- /**
55
- * Secondary color of the skeleton when animation is `on` - hexa value (e.g. #ffffff)
56
- */
57
- secondaryColor: string;
58
46
  handleStructureChange(newValue: any, oldValue: any): void;
59
47
  private handleStylingProps;
60
48
  private stylingValue;
@@ -15,10 +15,6 @@ export namespace Components {
15
15
  * The border radius of the element
16
16
  */
17
17
  "borderRadius": number | string;
18
- /**
19
- * Color of the skeleton when animation is `off` - hexa value (e.g. #c2c2c2)
20
- */
21
- "color": string;
22
18
  /**
23
19
  * Height of the element - it can either be a value in px (150px) or in percentage (100%)
24
20
  */
@@ -39,18 +35,10 @@ export namespace Components {
39
35
  * Margin top for the element
40
36
  */
41
37
  "marginTop": number | string;
42
- /**
43
- * Primary color of the skeleton when animation is `on` - hexa value (e.g. #c2c2c2)
44
- */
45
- "primaryColor": string;
46
38
  /**
47
39
  * Number of rows displayed - only for `text`
48
40
  */
49
41
  "rows": number;
50
- /**
51
- * Secondary color of the skeleton when animation is `on` - hexa value (e.g. #ffffff)
52
- */
53
- "secondaryColor": string;
54
42
  /**
55
43
  * The size of the circle - only for `circle` - it can either be a value in px (150px) or in percentage (100%)
56
44
  */
@@ -86,10 +74,6 @@ declare namespace LocalJSX {
86
74
  * The border radius of the element
87
75
  */
88
76
  "borderRadius"?: number | string;
89
- /**
90
- * Color of the skeleton when animation is `off` - hexa value (e.g. #c2c2c2)
91
- */
92
- "color"?: string;
93
77
  /**
94
78
  * Height of the element - it can either be a value in px (150px) or in percentage (100%)
95
79
  */
@@ -110,18 +94,10 @@ declare namespace LocalJSX {
110
94
  * Margin top for the element
111
95
  */
112
96
  "marginTop"?: number | string;
113
- /**
114
- * Primary color of the skeleton when animation is `on` - hexa value (e.g. #c2c2c2)
115
- */
116
- "primaryColor"?: string;
117
97
  /**
118
98
  * Number of rows displayed - only for `text`
119
99
  */
120
100
  "rows"?: number;
121
- /**
122
- * Secondary color of the skeleton when animation is `on` - hexa value (e.g. #ffffff)
123
- */
124
- "secondaryColor"?: string;
125
101
  /**
126
102
  * The size of the circle - only for `circle` - it can either be a value in px (150px) or in percentage (100%)
127
103
  */
@@ -1 +1 @@
1
- export{U as UiSkeleton}from"./ui-skeleton-161699c3.js";import"./index-b2193545.js";
1
+ export{U as UiSkeleton}from"./ui-skeleton-ae35c6f2.js";import"./index-b2193545.js";
@@ -0,0 +1 @@
1
+ import{r as e,h as t,H as n}from"./index-b2193545.js";const i=class{constructor(t){e(this,t),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,t){t!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return 0===e?0:`${e}px`;case"undefined":default:return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((e,n)=>t("div",{key:n,class:"Text "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`\n :host {\n --emw-skeleton-logo-width: ${this.stylingValue.width};\n --emw-skeleton-logo-height: ${this.stylingValue.height};\n --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"image":e=`\n :host {\n --emw-skeleton-image-width: ${this.stylingValue.width};\n --emw-skeleton-image-height: ${this.stylingValue.height};\n --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"title":e=`\n :host {\n --emw-skeleton-title-width: ${this.stylingValue.width};\n --emw-skeleton-title-height: ${this.stylingValue.height};\n --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"text":e=`\n :host {\n --emw-skeleton-text-width: ${this.stylingValue.width};\n --emw-skeleton-text-height: ${this.stylingValue.height};\n --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"rectangle":e=`\n :host {\n --emw-skeleton-rectangle-width: ${this.stylingValue.width};\n --emw-skeleton-rectangle-height: ${this.stylingValue.height};\n --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"circle":e=`\n :host {\n --emw-skeleton-circle-size: ${this.stylingValue.size};\n }\n `;break;default:e=""}return t(n,{key:"e6b885bfd985ce7663d990756fe9101e25eb97f0"},t("style",{key:"06ae24c7bb74f4dacfc12ae58085333f9dc89da5"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};i.style=":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)}}";export{i as U}
@@ -1 +1 @@
1
- export{U as ui_skeleton}from"./ui-skeleton-161699c3.js";import"./index-b2193545.js";
1
+ export{U as ui_skeleton}from"./ui-skeleton-ae35c6f2.js";import"./index-b2193545.js";
@@ -1 +1 @@
1
- import{p as r,b as o}from"./index-b2193545.js";export{s as setNonce}from"./index-b2193545.js";import{g as t}from"./app-globals-0f993ce5.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),r(t)})().then((async r=>(await t(),o([["ui-skeleton",[[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],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"]}]]]],r))));
1
+ import{p as r,b as t}from"./index-b2193545.js";export{s as setNonce}from"./index-b2193545.js";import{g as i}from"./app-globals-0f993ce5.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),r(i)})().then((async r=>(await i(),t([["ui-skeleton",[[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"]}]]]],r))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/ui-skeleton",
3
- "version": "1.69.2",
3
+ "version": "1.69.3",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- import{r as e,h as t,H as n}from"./index-b2193545.js";const r=class{constructor(t){e(this,t),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%",this.color="#c2c2c2",this.primaryColor="#c2c2c2",this.secondaryColor="#ffffff"}handleStructureChange(e,t){t!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return 0===e?0:`${e}px`;case"undefined":default:return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((e,n)=>t("div",{key:n,class:"Text "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`\n :host {\n --emw-skeleton-logo-width: ${this.stylingValue.width};\n --emw-skeleton-logo-height: ${this.stylingValue.height};\n --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};\n --emw-skeleton-logo-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"image":e=`\n :host {\n --emw-skeleton-image-width: ${this.stylingValue.width};\n --emw-skeleton-image-height: ${this.stylingValue.height};\n --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};\n --emw-skeleton-image-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"title":e=`\n :host {\n --emw-skeleton-title-width: ${this.stylingValue.width};\n --emw-skeleton-title-height: ${this.stylingValue.height};\n --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};\n --emw-skeleton-title-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"text":e=`\n :host {\n --emw-skeleton-text-width: ${this.stylingValue.width};\n --emw-skeleton-text-height: ${this.stylingValue.height};\n --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};\n --emw-skeleton-text-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"rectangle":e=`\n :host {\n --emw-skeleton-rectangle-width: ${this.stylingValue.width};\n --emw-skeleton-rectangle-height: ${this.stylingValue.height};\n --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};\n --emw-skeleton-rectangle-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"circle":e=`\n :host {\n --emw-skeleton-circle-size: ${this.size};\n --emw-skeleton-circle-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;default:e=""}return t(n,{key:"5c185b76c438d20d4ad88bc48d94ff5628410bb7"},t("style",{key:"de95e60a5955d5b2af83710423fe40329c187f7e"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};r.style=":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.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, 2px)}.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, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.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, 5px);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, inherit)}.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, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}";export{r as U}