@everymatrix/ui-skeleton 1.56.0 → 1.56.2

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 (34) hide show
  1. package/dist/cjs/{index-9cb6c0ab.js → index-00751390.js} +50 -189
  2. package/dist/cjs/index.cjs.js +2 -2
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{ui-skeleton-d9f3209a.js → ui-skeleton-ce8e4a69.js} +14 -4
  5. package/dist/cjs/ui-skeleton.cjs.entry.js +2 -2
  6. package/dist/cjs/ui-skeleton.cjs.js +2 -2
  7. package/dist/collection/collection-manifest.json +2 -2
  8. package/dist/collection/components/ui-skeleton/ui-skeleton.js +13 -31
  9. package/dist/esm/{index-db5752f9.js → index-ae04a8b1.js} +50 -189
  10. package/dist/esm/index.js +2 -2
  11. package/dist/esm/loader.js +2 -2
  12. package/dist/esm/{ui-skeleton-982450d2.js → ui-skeleton-a642cced.js} +14 -4
  13. package/dist/esm/ui-skeleton.entry.js +2 -2
  14. package/dist/esm/ui-skeleton.js +3 -3
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/stencil.config.d.ts +2 -0
  16. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/stencil.config.dev.d.ts +2 -0
  17. package/dist/types/stencil-public-runtime.d.ts +0 -6
  18. package/dist/ui-skeleton/index.esm.js +1 -1
  19. package/dist/ui-skeleton/p-59752f80.js +2 -0
  20. package/dist/ui-skeleton/p-ea31f18e.entry.js +1 -0
  21. package/dist/ui-skeleton/p-fe2a4a98.js +1 -0
  22. package/dist/ui-skeleton/ui-skeleton.esm.js +1 -1
  23. package/package.json +1 -1
  24. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/stencil.config.d.ts +0 -2
  25. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/stencil.config.dev.d.ts +0 -2
  26. package/dist/ui-skeleton/p-558efe80.js +0 -1
  27. package/dist/ui-skeleton/p-a483aa6f.entry.js +0 -1
  28. package/dist/ui-skeleton/p-a551f6fe.js +0 -2
  29. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/storybook/main.d.ts +0 -0
  30. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/storybook/preview.d.ts +0 -0
  31. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/tools/plugins/index.d.ts +0 -0
  32. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  33. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  34. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,10 +1,20 @@
1
1
  import { h } from "@stencil/core";
2
2
  export class UiSkeleton {
3
3
  constructor() {
4
- /**
5
- * Toggles skeleton animation
6
- */
4
+ this.structure = undefined;
5
+ this.width = undefined;
6
+ this.height = undefined;
7
+ this.borderRadius = undefined;
8
+ this.marginBottom = undefined;
9
+ this.marginTop = undefined;
10
+ this.marginLeft = undefined;
11
+ this.marginRight = undefined;
7
12
  this.animation = true;
13
+ this.rows = undefined;
14
+ this.size = undefined;
15
+ this.color = undefined;
16
+ this.primaryColor = undefined;
17
+ this.secondaryColor = undefined;
8
18
  }
9
19
  handleStructureChange(newValue, oldValue) {
10
20
  if (oldValue !== newValue) {
@@ -148,8 +158,6 @@ export class UiSkeleton {
148
158
  "tags": [],
149
159
  "text": "The structure of the skeleton"
150
160
  },
151
- "getter": false,
152
- "setter": false,
153
161
  "attribute": "structure",
154
162
  "reflect": false
155
163
  },
@@ -167,8 +175,6 @@ export class UiSkeleton {
167
175
  "tags": [],
168
176
  "text": "Width of the element - it can either be a value in px (150px) or in percentage (100%)"
169
177
  },
170
- "getter": false,
171
- "setter": false,
172
178
  "attribute": "width",
173
179
  "reflect": false
174
180
  },
@@ -186,8 +192,6 @@ export class UiSkeleton {
186
192
  "tags": [],
187
193
  "text": "Height of the element - it can either be a value in px (150px) or in percentage (100%)"
188
194
  },
189
- "getter": false,
190
- "setter": false,
191
195
  "attribute": "height",
192
196
  "reflect": false
193
197
  },
@@ -205,8 +209,6 @@ export class UiSkeleton {
205
209
  "tags": [],
206
210
  "text": "The border radius of the element"
207
211
  },
208
- "getter": false,
209
- "setter": false,
210
212
  "attribute": "border-radius",
211
213
  "reflect": false
212
214
  },
@@ -224,8 +226,6 @@ export class UiSkeleton {
224
226
  "tags": [],
225
227
  "text": "Margin bottom for the element"
226
228
  },
227
- "getter": false,
228
- "setter": false,
229
229
  "attribute": "margin-bottom",
230
230
  "reflect": false
231
231
  },
@@ -243,8 +243,6 @@ export class UiSkeleton {
243
243
  "tags": [],
244
244
  "text": "Margin top for the element"
245
245
  },
246
- "getter": false,
247
- "setter": false,
248
246
  "attribute": "margin-top",
249
247
  "reflect": false
250
248
  },
@@ -262,8 +260,6 @@ export class UiSkeleton {
262
260
  "tags": [],
263
261
  "text": "Margin left for the element"
264
262
  },
265
- "getter": false,
266
- "setter": false,
267
263
  "attribute": "margin-left",
268
264
  "reflect": false
269
265
  },
@@ -281,8 +277,6 @@ export class UiSkeleton {
281
277
  "tags": [],
282
278
  "text": "Margin right for the element"
283
279
  },
284
- "getter": false,
285
- "setter": false,
286
280
  "attribute": "margin-right",
287
281
  "reflect": false
288
282
  },
@@ -300,8 +294,6 @@ export class UiSkeleton {
300
294
  "tags": [],
301
295
  "text": "Toggles skeleton animation"
302
296
  },
303
- "getter": false,
304
- "setter": false,
305
297
  "attribute": "animation",
306
298
  "reflect": false,
307
299
  "defaultValue": "true"
@@ -320,8 +312,6 @@ export class UiSkeleton {
320
312
  "tags": [],
321
313
  "text": "Number of rows displayed - only for `text`"
322
314
  },
323
- "getter": false,
324
- "setter": false,
325
315
  "attribute": "rows",
326
316
  "reflect": false
327
317
  },
@@ -339,8 +329,6 @@ export class UiSkeleton {
339
329
  "tags": [],
340
330
  "text": "The size of the circle - only for `circle - it can either be a value in px (150px) or in percentage (100%)"
341
331
  },
342
- "getter": false,
343
- "setter": false,
344
332
  "attribute": "size",
345
333
  "reflect": false
346
334
  },
@@ -358,8 +346,6 @@ export class UiSkeleton {
358
346
  "tags": [],
359
347
  "text": "Color of the skeleton when animation is `off` - hexa value (e.g. #c2c2c2)"
360
348
  },
361
- "getter": false,
362
- "setter": false,
363
349
  "attribute": "color",
364
350
  "reflect": false
365
351
  },
@@ -377,8 +363,6 @@ export class UiSkeleton {
377
363
  "tags": [],
378
364
  "text": "Primary color of the skeleton when animation is `on` - hexa value (e.g. #c2c2c2)"
379
365
  },
380
- "getter": false,
381
- "setter": false,
382
366
  "attribute": "primary-color",
383
367
  "reflect": false
384
368
  },
@@ -396,8 +380,6 @@ export class UiSkeleton {
396
380
  "tags": [],
397
381
  "text": "Secondary color of the skeleton when animation is `on` - hexa value (e.g. #ffffff)"
398
382
  },
399
- "getter": false,
400
- "setter": false,
401
383
  "attribute": "secondary-color",
402
384
  "reflect": false
403
385
  }
@@ -1,21 +1,17 @@
1
1
  const NAMESPACE = 'ui-skeleton';
2
- const BUILD = /* ui-skeleton */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: false, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: false, vdomXlink: false, watchCallback: true };
2
+ const BUILD = /* ui-skeleton */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: false, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: false, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
-
13
- // src/client/client-host-ref.ts
14
12
  var hostRefs = /* @__PURE__ */ new WeakMap();
15
13
  var getHostRef = (ref) => hostRefs.get(ref);
16
- var registerInstance = (lazyInstance, hostRef) => {
17
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
- };
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
19
15
  var registerHost = (hostElement, cmpMeta) => {
20
16
  const hostRef = {
21
17
  $flags$: 0,
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
28
24
  hostElement["s-p"] = [];
29
25
  hostElement["s-rc"] = [];
30
26
  }
31
- const ref = hostRefs.set(hostElement, hostRef);
32
- return ref;
27
+ return hostRefs.set(hostElement, hostRef);
33
28
  };
34
29
  var consoleError = (e, el) => (0, console.error)(e, el);
35
30
 
@@ -65,22 +60,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
65
60
  /* webpackExclude: /\.system\.entry\.js$/ */
66
61
  /* webpackMode: "lazy" */
67
62
  `./${bundleId}.entry.js${""}`
68
- ).then(
69
- (importedModule) => {
70
- {
71
- cmpModules.set(bundleId, importedModule);
72
- }
73
- return importedModule[exportName];
74
- },
75
- (e) => {
76
- consoleError(e, hostRef.$hostElement$);
63
+ ).then((importedModule) => {
64
+ {
65
+ cmpModules.set(bundleId, importedModule);
77
66
  }
78
- );
67
+ return importedModule[exportName];
68
+ }, consoleError);
79
69
  };
80
70
 
81
71
  // src/client/client-style.ts
82
72
  var styles = /* @__PURE__ */ new Map();
83
- var HYDRATED_STYLE_ID = "sty-id";
84
73
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
85
74
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
86
75
  var win = typeof window !== "undefined" ? window : {};
@@ -139,6 +128,9 @@ var flush = () => {
139
128
  };
140
129
  var nextTick = (cb) => promiseResolve().then(cb);
141
130
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
131
+
132
+ // src/utils/constants.ts
133
+ var EMPTY_OBJ = {};
142
134
  var isComplexType = (o) => {
143
135
  o = typeof o;
144
136
  return o === "object" || o === "function";
@@ -326,40 +318,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
326
318
  }
327
319
  if (!appliedStyles.has(scopeId2)) {
328
320
  {
329
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
321
+ styleElm = doc.createElement("style");
330
322
  styleElm.innerHTML = style;
331
323
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
332
324
  if (nonce != null) {
333
325
  styleElm.setAttribute("nonce", nonce);
334
326
  }
335
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
336
- if (styleContainerNode.nodeName === "HEAD") {
337
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
338
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
339
- styleContainerNode.insertBefore(
340
- styleElm,
341
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
342
- );
343
- } else if ("host" in styleContainerNode) {
344
- if (supportsConstructableStylesheets) {
345
- const stylesheet = new CSSStyleSheet();
346
- stylesheet.replaceSync(style);
347
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
348
- } else {
349
- const existingStyleContainer = styleContainerNode.querySelector("style");
350
- if (existingStyleContainer) {
351
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
352
- } else {
353
- styleContainerNode.prepend(styleElm);
354
- }
355
- }
356
- } else {
357
- styleContainerNode.append(styleElm);
358
- }
359
- }
360
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
361
- styleContainerNode.insertBefore(styleElm, null);
362
- }
327
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
363
328
  }
364
329
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
365
330
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -384,17 +349,15 @@ var attachStyles = (hostRef) => {
384
349
  endAttachStyles();
385
350
  };
386
351
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
387
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
352
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
388
353
  if (oldValue !== newValue) {
389
354
  memberName.toLowerCase();
390
355
  if (memberName === "class") {
391
356
  const classList = elm.classList;
392
357
  const oldClasses = parseClassList(oldValue);
393
- let newClasses = parseClassList(newValue);
394
- {
395
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
396
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
397
- }
358
+ const newClasses = parseClassList(newValue);
359
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
360
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
398
361
  } else if (memberName === "style") {
399
362
  {
400
363
  for (const prop in oldValue) {
@@ -424,38 +387,22 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
424
387
  }
425
388
  };
426
389
  var parseClassListRegex = /\s/;
427
- var parseClassList = (value) => {
428
- if (typeof value === "object" && value && "baseVal" in value) {
429
- value = value.baseVal;
430
- }
431
- if (!value || typeof value !== "string") {
432
- return [];
433
- }
434
- return value.split(parseClassListRegex);
435
- };
390
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
436
391
 
437
392
  // src/runtime/vdom/update-element.ts
438
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
393
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
439
394
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
440
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
441
- const newVnodeAttrs = newVnode.$attrs$ || {};
395
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
396
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
442
397
  {
443
398
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
444
399
  if (!(memberName in newVnodeAttrs)) {
445
- setAccessor(
446
- elm,
447
- memberName,
448
- oldVnodeAttrs[memberName],
449
- void 0);
400
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0);
450
401
  }
451
402
  }
452
403
  }
453
404
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
454
- setAccessor(
455
- elm,
456
- memberName,
457
- oldVnodeAttrs[memberName],
458
- newVnodeAttrs[memberName]);
405
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName]);
459
406
  }
460
407
  };
461
408
  function sortedAttrNames(attrNames) {
@@ -469,7 +416,7 @@ function sortedAttrNames(attrNames) {
469
416
  }
470
417
  var hostTagName;
471
418
  var useNativeShadowDom = false;
472
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
419
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
473
420
  const newVNode2 = newParentVNode.$children$[childIndex];
474
421
  let i2 = 0;
475
422
  let elm;
@@ -607,9 +554,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
607
554
  if (!isInitialRender) {
608
555
  return leftVNode.$key$ === rightVNode.$key$;
609
556
  }
610
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
611
- leftVNode.$key$ = rightVNode.$key$;
612
- }
613
557
  return true;
614
558
  }
615
559
  return false;
@@ -628,10 +572,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
628
572
  updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
629
573
  } else if (newChildren !== null) {
630
574
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
631
- } else if (
632
- // don't do this on initial render as it can cause non-hydrated content to be removed
633
- !isInitialRender && BUILD.updatable && oldChildren !== null
634
- ) {
575
+ } else if (oldChildren !== null) {
635
576
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
636
577
  }
637
578
  }
@@ -643,9 +584,8 @@ var nullifyVNodeRefs = (vNode) => {
643
584
  }
644
585
  };
645
586
  var insertBefore = (parent, newNode, reference) => {
646
- {
647
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
648
- }
587
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
588
+ return inserted;
649
589
  };
650
590
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
651
591
  const hostElm = hostRef.$hostElement$;
@@ -663,21 +603,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
663
603
  rootVnode.$flags$ |= 4 /* isHost */;
664
604
  hostRef.$vnode$ = rootVnode;
665
605
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm;
666
- useNativeShadowDom = supportsShadow ;
606
+ useNativeShadowDom = supportsShadow ;
667
607
  patch(oldVNode, rootVnode, isInitialLoad);
668
608
  };
669
609
 
670
610
  // src/runtime/update-component.ts
671
611
  var attachToAncestor = (hostRef, ancestorComponent) => {
672
612
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
673
- const index = ancestorComponent["s-p"].push(
674
- new Promise(
675
- (r) => hostRef.$onRenderResolve$ = () => {
676
- ancestorComponent["s-p"].splice(index - 1, 1);
677
- r();
678
- }
679
- )
680
- );
613
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
681
614
  }
682
615
  };
683
616
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -773,7 +706,7 @@ var postUpdateComponent = (hostRef) => {
773
706
  addHydratedFlag(elm);
774
707
  }
775
708
  {
776
- safeCall(instance, "componentDidLoad", void 0, elm);
709
+ safeCall(instance, "componentDidLoad");
777
710
  }
778
711
  endPostUpdate();
779
712
  {
@@ -797,14 +730,17 @@ var postUpdateComponent = (hostRef) => {
797
730
  }
798
731
  };
799
732
  var appDidLoad = (who) => {
733
+ {
734
+ addHydratedFlag(doc.documentElement);
735
+ }
800
736
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
801
737
  };
802
- var safeCall = (instance, method, arg, elm) => {
738
+ var safeCall = (instance, method, arg) => {
803
739
  if (instance && instance[method]) {
804
740
  try {
805
741
  return instance[method](arg);
806
742
  } catch (e) {
807
- consoleError(e, elm);
743
+ consoleError(e);
808
744
  }
809
745
  }
810
746
  return void 0;
@@ -863,68 +799,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
863
799
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
864
800
  members.map(([memberName, [memberFlags]]) => {
865
801
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
866
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
867
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
868
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
869
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
870
- Object.defineProperty(prototype, memberName, {
871
- get() {
872
- {
873
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
874
- return getValue(this, memberName);
875
- }
876
- const ref = getHostRef(this);
877
- const instance = ref ? ref.$lazyInstance$ : prototype;
878
- if (!instance) return;
879
- return instance[memberName];
880
- }
881
- },
882
- configurable: true,
883
- enumerable: true
884
- });
885
- }
886
802
  Object.defineProperty(prototype, memberName, {
803
+ get() {
804
+ return getValue(this, memberName);
805
+ },
887
806
  set(newValue) {
888
- const ref = getHostRef(this);
889
- if (origSetter) {
890
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
891
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
892
- newValue = ref.$instanceValues$.get(memberName);
893
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
894
- ref.$instanceValues$.set(memberName, currentValue);
895
- }
896
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
897
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
898
- setValue(this, memberName, newValue, cmpMeta);
899
- return;
900
- }
901
- {
902
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
903
- setValue(this, memberName, newValue, cmpMeta);
904
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
905
- ref.$onReadyPromise$.then(() => {
906
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
907
- ref.$lazyInstance$[memberName] = newValue;
908
- }
909
- });
910
- }
911
- return;
912
- }
913
- const setterSetVal = () => {
914
- const currentValue = ref.$lazyInstance$[memberName];
915
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
916
- ref.$instanceValues$.set(memberName, currentValue);
917
- }
918
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
919
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
920
- };
921
- if (ref.$lazyInstance$) {
922
- setterSetVal();
923
- } else {
924
- ref.$onReadyPromise$.then(() => setterSetVal());
925
- }
926
- }
927
- }
807
+ setValue(this, memberName, newValue, cmpMeta);
808
+ },
809
+ configurable: true,
810
+ enumerable: true
928
811
  });
929
812
  }
930
813
  });
@@ -934,11 +817,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
934
817
  plt.jmp(() => {
935
818
  var _a2;
936
819
  const propName = attrNameToPropName.get(attrName);
937
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
820
+ if (this.hasOwnProperty(propName)) {
938
821
  newValue = this[propName];
939
822
  delete this[propName];
940
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
941
- this[propName] == newValue) {
823
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
942
824
  return;
943
825
  } else if (propName == null) {
944
826
  const hostRef = getHostRef(this);
@@ -954,11 +836,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
954
836
  }
955
837
  return;
956
838
  }
957
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
958
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
959
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
960
- this[propName] = newValue;
961
- }
839
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
962
840
  });
963
841
  };
964
842
  Cstr.observedAttributes = Array.from(
@@ -983,7 +861,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
983
861
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
984
862
  const bundleId = cmpMeta.$lazyBundleId$;
985
863
  if (bundleId) {
986
- const CstrImport = loadModule(cmpMeta, hostRef);
864
+ const CstrImport = loadModule(cmpMeta);
987
865
  if (CstrImport && "then" in CstrImport) {
988
866
  const endLoad = uniqueTime();
989
867
  Cstr = await CstrImport;
@@ -1008,7 +886,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1008
886
  try {
1009
887
  new Cstr(hostRef);
1010
888
  } catch (e) {
1011
- consoleError(e, elm);
889
+ consoleError(e);
1012
890
  }
1013
891
  {
1014
892
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1043,7 +921,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1043
921
  schedule();
1044
922
  }
1045
923
  };
1046
- var fireConnectedCallback = (instance, elm) => {
924
+ var fireConnectedCallback = (instance) => {
1047
925
  };
1048
926
 
1049
927
  // src/runtime/connected-callback.ts
@@ -1083,7 +961,7 @@ var connectedCallback = (elm) => {
1083
961
  endConnected();
1084
962
  }
1085
963
  };
1086
- var disconnectInstance = (instance, elm) => {
964
+ var disconnectInstance = (instance) => {
1087
965
  };
1088
966
  var disconnectedCallback = async (elm) => {
1089
967
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1092,12 +970,6 @@ var disconnectedCallback = async (elm) => {
1092
970
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1093
971
  }
1094
972
  }
1095
- if (rootAppliedStyles.has(elm)) {
1096
- rootAppliedStyles.delete(elm);
1097
- }
1098
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1099
- rootAppliedStyles.delete(elm.shadowRoot);
1100
- }
1101
973
  };
1102
974
 
1103
975
  // src/runtime/bootstrap-lazy.ts
@@ -1160,17 +1032,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1160
1032
  }
1161
1033
  disconnectedCallback() {
1162
1034
  plt.jmp(() => disconnectedCallback(this));
1163
- plt.raf(() => {
1164
- var _a3;
1165
- const hostRef = getHostRef(this);
1166
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1167
- if (i2 > -1) {
1168
- deferredConnectedCallbacks.splice(i2, 1);
1169
- }
1170
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1171
- delete hostRef.$vnode$.$elm$;
1172
- }
1173
- });
1174
1035
  }
1175
1036
  componentOnReady() {
1176
1037
  return getHostRef(this).$onReadyPromise$;
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { U as UiSkeleton } from './ui-skeleton-982450d2.js';
2
- import './index-db5752f9.js';
1
+ export { U as UiSkeleton } from './ui-skeleton-a642cced.js';
2
+ import './index-ae04a8b1.js';
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-db5752f9.js';
2
- export { s as setNonce } from './index-db5752f9.js';
1
+ import { b as bootstrapLazy } from './index-ae04a8b1.js';
2
+ export { s as setNonce } from './index-ae04a8b1.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-db5752f9.js';
1
+ import { r as registerInstance, h } from './index-ae04a8b1.js';
2
2
 
3
3
  const uiSkeletonCss = ".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, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.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))}}";
4
4
  const UiSkeletonStyle0 = uiSkeletonCss;
@@ -6,10 +6,20 @@ const UiSkeletonStyle0 = uiSkeletonCss;
6
6
  const UiSkeleton = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
- /**
10
- * Toggles skeleton animation
11
- */
9
+ this.structure = undefined;
10
+ this.width = undefined;
11
+ this.height = undefined;
12
+ this.borderRadius = undefined;
13
+ this.marginBottom = undefined;
14
+ this.marginTop = undefined;
15
+ this.marginLeft = undefined;
16
+ this.marginRight = undefined;
12
17
  this.animation = true;
18
+ this.rows = undefined;
19
+ this.size = undefined;
20
+ this.color = undefined;
21
+ this.primaryColor = undefined;
22
+ this.secondaryColor = undefined;
13
23
  }
14
24
  handleStructureChange(newValue, oldValue) {
15
25
  if (oldValue !== newValue) {
@@ -1,2 +1,2 @@
1
- export { U as ui_skeleton } from './ui-skeleton-982450d2.js';
2
- import './index-db5752f9.js';
1
+ export { U as ui_skeleton } from './ui-skeleton-a642cced.js';
2
+ import './index-ae04a8b1.js';
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-db5752f9.js';
2
- export { s as setNonce } from './index-db5752f9.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-ae04a8b1.js';
2
+ export { s as setNonce } from './index-ae04a8b1.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;