@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
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'ui-skeleton';
24
- 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 };
24
+ 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 };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
-
35
- // src/client/client-host-ref.ts
36
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
37
35
  var getHostRef = (ref) => hostRefs.get(ref);
38
- var registerInstance = (lazyInstance, hostRef) => {
39
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
41
37
  var registerHost = (hostElement, cmpMeta) => {
42
38
  const hostRef = {
43
39
  $flags$: 0,
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
50
46
  hostElement["s-p"] = [];
51
47
  hostElement["s-rc"] = [];
52
48
  }
53
- const ref = hostRefs.set(hostElement, hostRef);
54
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
55
50
  };
56
51
  var consoleError = (e, el) => (0, console.error)(e, el);
57
52
 
@@ -87,22 +82,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
87
82
  /* webpackExclude: /\.system\.entry\.js$/ */
88
83
  /* webpackMode: "lazy" */
89
84
  `./${bundleId}.entry.js${""}`
90
- )); }).then(
91
- (importedModule) => {
92
- {
93
- cmpModules.set(bundleId, importedModule);
94
- }
95
- return importedModule[exportName];
96
- },
97
- (e) => {
98
- consoleError(e, hostRef.$hostElement$);
85
+ )); }).then((importedModule) => {
86
+ {
87
+ cmpModules.set(bundleId, importedModule);
99
88
  }
100
- );
89
+ return importedModule[exportName];
90
+ }, consoleError);
101
91
  };
102
92
 
103
93
  // src/client/client-style.ts
104
94
  var styles = /* @__PURE__ */ new Map();
105
- var HYDRATED_STYLE_ID = "sty-id";
106
95
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
107
96
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
108
97
  var win = typeof window !== "undefined" ? window : {};
@@ -161,6 +150,9 @@ var flush = () => {
161
150
  };
162
151
  var nextTick = (cb) => promiseResolve().then(cb);
163
152
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
+
154
+ // src/utils/constants.ts
155
+ var EMPTY_OBJ = {};
164
156
  var isComplexType = (o) => {
165
157
  o = typeof o;
166
158
  return o === "object" || o === "function";
@@ -348,40 +340,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
348
340
  }
349
341
  if (!appliedStyles.has(scopeId2)) {
350
342
  {
351
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
343
+ styleElm = doc.createElement("style");
352
344
  styleElm.innerHTML = style;
353
345
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
354
346
  if (nonce != null) {
355
347
  styleElm.setAttribute("nonce", nonce);
356
348
  }
357
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
358
- if (styleContainerNode.nodeName === "HEAD") {
359
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
360
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
361
- styleContainerNode.insertBefore(
362
- styleElm,
363
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
364
- );
365
- } else if ("host" in styleContainerNode) {
366
- if (supportsConstructableStylesheets) {
367
- const stylesheet = new CSSStyleSheet();
368
- stylesheet.replaceSync(style);
369
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
370
- } else {
371
- const existingStyleContainer = styleContainerNode.querySelector("style");
372
- if (existingStyleContainer) {
373
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
374
- } else {
375
- styleContainerNode.prepend(styleElm);
376
- }
377
- }
378
- } else {
379
- styleContainerNode.append(styleElm);
380
- }
381
- }
382
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
383
- styleContainerNode.insertBefore(styleElm, null);
384
- }
349
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
385
350
  }
386
351
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
387
352
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -406,17 +371,15 @@ var attachStyles = (hostRef) => {
406
371
  endAttachStyles();
407
372
  };
408
373
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
409
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
374
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
410
375
  if (oldValue !== newValue) {
411
376
  memberName.toLowerCase();
412
377
  if (memberName === "class") {
413
378
  const classList = elm.classList;
414
379
  const oldClasses = parseClassList(oldValue);
415
- let newClasses = parseClassList(newValue);
416
- {
417
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
418
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
419
- }
380
+ const newClasses = parseClassList(newValue);
381
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
382
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
420
383
  } else if (memberName === "style") {
421
384
  {
422
385
  for (const prop in oldValue) {
@@ -446,38 +409,22 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
446
409
  }
447
410
  };
448
411
  var parseClassListRegex = /\s/;
449
- var parseClassList = (value) => {
450
- if (typeof value === "object" && value && "baseVal" in value) {
451
- value = value.baseVal;
452
- }
453
- if (!value || typeof value !== "string") {
454
- return [];
455
- }
456
- return value.split(parseClassListRegex);
457
- };
412
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
458
413
 
459
414
  // src/runtime/vdom/update-element.ts
460
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
415
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
461
416
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
462
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
463
- const newVnodeAttrs = newVnode.$attrs$ || {};
417
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
418
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
464
419
  {
465
420
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
466
421
  if (!(memberName in newVnodeAttrs)) {
467
- setAccessor(
468
- elm,
469
- memberName,
470
- oldVnodeAttrs[memberName],
471
- void 0);
422
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0);
472
423
  }
473
424
  }
474
425
  }
475
426
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
476
- setAccessor(
477
- elm,
478
- memberName,
479
- oldVnodeAttrs[memberName],
480
- newVnodeAttrs[memberName]);
427
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName]);
481
428
  }
482
429
  };
483
430
  function sortedAttrNames(attrNames) {
@@ -491,7 +438,7 @@ function sortedAttrNames(attrNames) {
491
438
  }
492
439
  var hostTagName;
493
440
  var useNativeShadowDom = false;
494
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
441
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
495
442
  const newVNode2 = newParentVNode.$children$[childIndex];
496
443
  let i2 = 0;
497
444
  let elm;
@@ -629,9 +576,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
629
576
  if (!isInitialRender) {
630
577
  return leftVNode.$key$ === rightVNode.$key$;
631
578
  }
632
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
633
- leftVNode.$key$ = rightVNode.$key$;
634
- }
635
579
  return true;
636
580
  }
637
581
  return false;
@@ -650,10 +594,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
650
594
  updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
651
595
  } else if (newChildren !== null) {
652
596
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
653
- } else if (
654
- // don't do this on initial render as it can cause non-hydrated content to be removed
655
- !isInitialRender && BUILD.updatable && oldChildren !== null
656
- ) {
597
+ } else if (oldChildren !== null) {
657
598
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
658
599
  }
659
600
  }
@@ -665,9 +606,8 @@ var nullifyVNodeRefs = (vNode) => {
665
606
  }
666
607
  };
667
608
  var insertBefore = (parent, newNode, reference) => {
668
- {
669
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
670
- }
609
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
610
+ return inserted;
671
611
  };
672
612
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
673
613
  const hostElm = hostRef.$hostElement$;
@@ -685,21 +625,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
685
625
  rootVnode.$flags$ |= 4 /* isHost */;
686
626
  hostRef.$vnode$ = rootVnode;
687
627
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm;
688
- useNativeShadowDom = supportsShadow ;
628
+ useNativeShadowDom = supportsShadow ;
689
629
  patch(oldVNode, rootVnode, isInitialLoad);
690
630
  };
691
631
 
692
632
  // src/runtime/update-component.ts
693
633
  var attachToAncestor = (hostRef, ancestorComponent) => {
694
634
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
695
- const index = ancestorComponent["s-p"].push(
696
- new Promise(
697
- (r) => hostRef.$onRenderResolve$ = () => {
698
- ancestorComponent["s-p"].splice(index - 1, 1);
699
- r();
700
- }
701
- )
702
- );
635
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
703
636
  }
704
637
  };
705
638
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -795,7 +728,7 @@ var postUpdateComponent = (hostRef) => {
795
728
  addHydratedFlag(elm);
796
729
  }
797
730
  {
798
- safeCall(instance, "componentDidLoad", void 0, elm);
731
+ safeCall(instance, "componentDidLoad");
799
732
  }
800
733
  endPostUpdate();
801
734
  {
@@ -819,14 +752,17 @@ var postUpdateComponent = (hostRef) => {
819
752
  }
820
753
  };
821
754
  var appDidLoad = (who) => {
755
+ {
756
+ addHydratedFlag(doc.documentElement);
757
+ }
822
758
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
823
759
  };
824
- var safeCall = (instance, method, arg, elm) => {
760
+ var safeCall = (instance, method, arg) => {
825
761
  if (instance && instance[method]) {
826
762
  try {
827
763
  return instance[method](arg);
828
764
  } catch (e) {
829
- consoleError(e, elm);
765
+ consoleError(e);
830
766
  }
831
767
  }
832
768
  return void 0;
@@ -885,68 +821,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
885
821
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
886
822
  members.map(([memberName, [memberFlags]]) => {
887
823
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
888
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
889
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
890
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
891
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
892
- Object.defineProperty(prototype, memberName, {
893
- get() {
894
- {
895
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
896
- return getValue(this, memberName);
897
- }
898
- const ref = getHostRef(this);
899
- const instance = ref ? ref.$lazyInstance$ : prototype;
900
- if (!instance) return;
901
- return instance[memberName];
902
- }
903
- },
904
- configurable: true,
905
- enumerable: true
906
- });
907
- }
908
824
  Object.defineProperty(prototype, memberName, {
825
+ get() {
826
+ return getValue(this, memberName);
827
+ },
909
828
  set(newValue) {
910
- const ref = getHostRef(this);
911
- if (origSetter) {
912
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
913
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
914
- newValue = ref.$instanceValues$.get(memberName);
915
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
916
- ref.$instanceValues$.set(memberName, currentValue);
917
- }
918
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
919
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
920
- setValue(this, memberName, newValue, cmpMeta);
921
- return;
922
- }
923
- {
924
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
925
- setValue(this, memberName, newValue, cmpMeta);
926
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
927
- ref.$onReadyPromise$.then(() => {
928
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
929
- ref.$lazyInstance$[memberName] = newValue;
930
- }
931
- });
932
- }
933
- return;
934
- }
935
- const setterSetVal = () => {
936
- const currentValue = ref.$lazyInstance$[memberName];
937
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
938
- ref.$instanceValues$.set(memberName, currentValue);
939
- }
940
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
941
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
942
- };
943
- if (ref.$lazyInstance$) {
944
- setterSetVal();
945
- } else {
946
- ref.$onReadyPromise$.then(() => setterSetVal());
947
- }
948
- }
949
- }
829
+ setValue(this, memberName, newValue, cmpMeta);
830
+ },
831
+ configurable: true,
832
+ enumerable: true
950
833
  });
951
834
  }
952
835
  });
@@ -956,11 +839,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
956
839
  plt.jmp(() => {
957
840
  var _a2;
958
841
  const propName = attrNameToPropName.get(attrName);
959
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
842
+ if (this.hasOwnProperty(propName)) {
960
843
  newValue = this[propName];
961
844
  delete this[propName];
962
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
963
- this[propName] == newValue) {
845
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
964
846
  return;
965
847
  } else if (propName == null) {
966
848
  const hostRef = getHostRef(this);
@@ -976,11 +858,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
976
858
  }
977
859
  return;
978
860
  }
979
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
980
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
981
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
982
- this[propName] = newValue;
983
- }
861
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
984
862
  });
985
863
  };
986
864
  Cstr.observedAttributes = Array.from(
@@ -1005,7 +883,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1005
883
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1006
884
  const bundleId = cmpMeta.$lazyBundleId$;
1007
885
  if (bundleId) {
1008
- const CstrImport = loadModule(cmpMeta, hostRef);
886
+ const CstrImport = loadModule(cmpMeta);
1009
887
  if (CstrImport && "then" in CstrImport) {
1010
888
  const endLoad = uniqueTime();
1011
889
  Cstr = await CstrImport;
@@ -1030,7 +908,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1030
908
  try {
1031
909
  new Cstr(hostRef);
1032
910
  } catch (e) {
1033
- consoleError(e, elm);
911
+ consoleError(e);
1034
912
  }
1035
913
  {
1036
914
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1065,7 +943,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1065
943
  schedule();
1066
944
  }
1067
945
  };
1068
- var fireConnectedCallback = (instance, elm) => {
946
+ var fireConnectedCallback = (instance) => {
1069
947
  };
1070
948
 
1071
949
  // src/runtime/connected-callback.ts
@@ -1105,7 +983,7 @@ var connectedCallback = (elm) => {
1105
983
  endConnected();
1106
984
  }
1107
985
  };
1108
- var disconnectInstance = (instance, elm) => {
986
+ var disconnectInstance = (instance) => {
1109
987
  };
1110
988
  var disconnectedCallback = async (elm) => {
1111
989
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1114,12 +992,6 @@ var disconnectedCallback = async (elm) => {
1114
992
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1115
993
  }
1116
994
  }
1117
- if (rootAppliedStyles.has(elm)) {
1118
- rootAppliedStyles.delete(elm);
1119
- }
1120
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1121
- rootAppliedStyles.delete(elm.shadowRoot);
1122
- }
1123
995
  };
1124
996
 
1125
997
  // src/runtime/bootstrap-lazy.ts
@@ -1182,17 +1054,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1182
1054
  }
1183
1055
  disconnectedCallback() {
1184
1056
  plt.jmp(() => disconnectedCallback(this));
1185
- plt.raf(() => {
1186
- var _a3;
1187
- const hostRef = getHostRef(this);
1188
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1189
- if (i2 > -1) {
1190
- deferredConnectedCallbacks.splice(i2, 1);
1191
- }
1192
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1193
- delete hostRef.$vnode$.$elm$;
1194
- }
1195
- });
1196
1057
  }
1197
1058
  componentOnReady() {
1198
1059
  return getHostRef(this).$onReadyPromise$;
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const uiSkeleton = require('./ui-skeleton-d9f3209a.js');
6
- require('./index-9cb6c0ab.js');
5
+ const uiSkeleton = require('./ui-skeleton-ce8e4a69.js');
6
+ require('./index-00751390.js');
7
7
 
8
8
 
9
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9cb6c0ab.js');
5
+ const index = require('./index-00751390.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-9cb6c0ab.js');
3
+ const index = require('./index-00751390.js');
4
4
 
5
5
  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))}}";
6
6
  const UiSkeletonStyle0 = uiSkeletonCss;
@@ -8,10 +8,20 @@ const UiSkeletonStyle0 = uiSkeletonCss;
8
8
  const UiSkeleton = class {
9
9
  constructor(hostRef) {
10
10
  index.registerInstance(this, hostRef);
11
- /**
12
- * Toggles skeleton animation
13
- */
11
+ this.structure = undefined;
12
+ this.width = undefined;
13
+ this.height = undefined;
14
+ this.borderRadius = undefined;
15
+ this.marginBottom = undefined;
16
+ this.marginTop = undefined;
17
+ this.marginLeft = undefined;
18
+ this.marginRight = undefined;
14
19
  this.animation = true;
20
+ this.rows = undefined;
21
+ this.size = undefined;
22
+ this.color = undefined;
23
+ this.primaryColor = undefined;
24
+ this.secondaryColor = undefined;
15
25
  }
16
26
  handleStructureChange(newValue, oldValue) {
17
27
  if (oldValue !== newValue) {
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const uiSkeleton = require('./ui-skeleton-d9f3209a.js');
6
- require('./index-9cb6c0ab.js');
5
+ const uiSkeleton = require('./ui-skeleton-ce8e4a69.js');
6
+ require('./index-00751390.js');
7
7
 
8
8
 
9
9
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9cb6c0ab.js');
5
+ const index = require('./index-00751390.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ui-skeleton.cjs.js', document.baseURI).href));
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
8
- "typescriptVersion": "5.5.4"
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []