eiam-user-preference 0.0.56 → 0.0.59

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 (67) hide show
  1. package/LICENSE +22 -22
  2. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -1
  3. package/dist/cjs/eiam-user-preference.cjs.entry.js +15 -5
  4. package/dist/cjs/eiam-user-preference.cjs.js +3 -5
  5. package/dist/cjs/eiam-user-preference.cjs.js.map +1 -1
  6. package/dist/cjs/eiam-user-preference.entry.cjs.js.map +1 -1
  7. package/dist/cjs/{index-BwhDU6Rv.js → index-DFm_LKOZ.js} +250 -138
  8. package/dist/cjs/index-DFm_LKOZ.js.map +1 -0
  9. package/dist/cjs/index.cjs.js +0 -2
  10. package/dist/cjs/index.cjs.js.map +1 -1
  11. package/dist/cjs/loader.cjs.js +2 -4
  12. package/dist/cjs/my-component.cjs.entry.js +2 -4
  13. package/dist/cjs/my-component.entry.cjs.js.map +1 -1
  14. package/dist/collection/collection-manifest.json +2 -2
  15. package/dist/collection/components/eiam-user-preference/eiam-user-preference.js +22 -10
  16. package/dist/collection/components/eiam-user-preference/eiam-user-preference.js.map +1 -1
  17. package/dist/collection/components/my-component/my-component.css +3 -3
  18. package/dist/collection/components/my-component/my-component.js +7 -7
  19. package/dist/collection/components/my-component/my-component.js.map +1 -1
  20. package/dist/collection/index.js.map +1 -1
  21. package/dist/collection/utils/utils.js.map +1 -1
  22. package/dist/components/eiam-user-preference.js +20 -6
  23. package/dist/components/eiam-user-preference.js.map +1 -1
  24. package/dist/components/index.js +1 -1
  25. package/dist/components/index.js.map +1 -1
  26. package/dist/components/my-component.js +7 -5
  27. package/dist/components/my-component.js.map +1 -1
  28. package/dist/components/{p-Bg8L3BtK.js → p-Dk6Z16y5.js} +234 -136
  29. package/dist/components/p-Dk6Z16y5.js.map +1 -0
  30. package/dist/eiam-user-preference/eiam-user-preference.entry.esm.js.map +1 -1
  31. package/dist/eiam-user-preference/eiam-user-preference.esm.js +1 -1
  32. package/dist/eiam-user-preference/eiam-user-preference.esm.js.map +1 -1
  33. package/dist/eiam-user-preference/index.esm.js.map +1 -1
  34. package/dist/eiam-user-preference/my-component.entry.esm.js.map +1 -1
  35. package/dist/eiam-user-preference/p-D1G58aKM.js +3 -0
  36. package/dist/eiam-user-preference/p-D1G58aKM.js.map +1 -0
  37. package/dist/eiam-user-preference/p-DQuL1Twl.js.map +1 -1
  38. package/dist/eiam-user-preference/p-a3ad7926.entry.js +2 -0
  39. package/dist/eiam-user-preference/p-a3ad7926.entry.js.map +1 -0
  40. package/dist/eiam-user-preference/{p-7478358c.entry.js → p-c60f171a.entry.js} +2 -2
  41. package/dist/eiam-user-preference/p-c60f171a.entry.js.map +1 -0
  42. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
  43. package/dist/esm/eiam-user-preference.entry.js +15 -5
  44. package/dist/esm/eiam-user-preference.entry.js.map +1 -1
  45. package/dist/esm/eiam-user-preference.js +4 -6
  46. package/dist/esm/eiam-user-preference.js.map +1 -1
  47. package/dist/esm/{index-Ko8ax98F.js → index-D1G58aKM.js} +250 -138
  48. package/dist/esm/index-D1G58aKM.js.map +1 -0
  49. package/dist/esm/index.js +0 -2
  50. package/dist/esm/index.js.map +1 -1
  51. package/dist/esm/loader.js +3 -5
  52. package/dist/esm/my-component.entry.js +2 -4
  53. package/dist/esm/my-component.entry.js.map +1 -1
  54. package/dist/types/components/eiam-user-preference/eiam-user-preference.d.ts +3 -0
  55. package/dist/types/stencil-public-runtime.d.ts +82 -9
  56. package/package.json +81 -81
  57. package/readme.md +86 -86
  58. package/dist/cjs/eiam-user-preference.cjs.entry.js.map +0 -1
  59. package/dist/cjs/index-BwhDU6Rv.js.map +0 -1
  60. package/dist/cjs/my-component.cjs.entry.js.map +0 -1
  61. package/dist/components/p-Bg8L3BtK.js.map +0 -1
  62. package/dist/eiam-user-preference/p-43c6e6ba.entry.js +0 -2
  63. package/dist/eiam-user-preference/p-43c6e6ba.entry.js.map +0 -1
  64. package/dist/eiam-user-preference/p-7478358c.entry.js.map +0 -1
  65. package/dist/eiam-user-preference/p-Ko8ax98F.js +0 -3
  66. package/dist/eiam-user-preference/p-Ko8ax98F.js.map +0 -1
  67. package/dist/esm/index-Ko8ax98F.js.map +0 -1
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  const NAMESPACE = 'eiam-user-preference';
4
- const BUILD = /* eiam-user-preference */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
4
+ const BUILD = /* eiam-user-preference */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, updatable: true};
5
5
 
6
6
  /*
7
- Stencil Client Platform v4.29.1 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Platform v4.38.2 | MIT Licensed | https://stenciljs.com
8
8
  */
9
9
  var __defProp = Object.defineProperty;
10
10
  var __export = (target, all) => {
@@ -24,21 +24,31 @@ var reWireGetterSetter = (instance, hostRef) => {
24
24
  members.map(([memberName, [memberFlags]]) => {
25
25
  if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
26
26
  const ogValue = instance[memberName];
27
- const ogDescriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(instance), memberName);
28
- Object.defineProperty(instance, memberName, {
29
- get() {
30
- return ogDescriptor.get.call(this);
31
- },
32
- set(newValue) {
33
- ogDescriptor.set.call(this, newValue);
34
- },
35
- configurable: true,
36
- enumerable: true
37
- });
27
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
28
+ if (ogDescriptor) {
29
+ Object.defineProperty(instance, memberName, {
30
+ get() {
31
+ return ogDescriptor.get.call(this);
32
+ },
33
+ set(newValue) {
34
+ ogDescriptor.set.call(this, newValue);
35
+ },
36
+ configurable: true,
37
+ enumerable: true
38
+ });
39
+ }
38
40
  instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
39
41
  }
40
42
  });
41
43
  };
44
+ function getPropertyDescriptor(obj, memberName) {
45
+ while (obj) {
46
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
47
+ if (desc == null ? void 0 : desc.get) return desc;
48
+ obj = Object.getPrototypeOf(obj);
49
+ }
50
+ return void 0;
51
+ }
42
52
 
43
53
  // src/client/client-host-ref.ts
44
54
  var getHostRef = (ref) => {
@@ -48,6 +58,7 @@ var getHostRef = (ref) => {
48
58
  return void 0;
49
59
  };
50
60
  var registerInstance = (lazyInstance, hostRef) => {
61
+ if (!hostRef) return;
51
62
  lazyInstance.__stencil__getHostRef = () => hostRef;
52
63
  hostRef.$lazyInstance$ = lazyInstance;
53
64
  {
@@ -59,13 +70,17 @@ var registerHost = (hostElement, cmpMeta) => {
59
70
  $flags$: 0,
60
71
  $hostElement$: hostElement,
61
72
  $cmpMeta$: cmpMeta,
62
- $instanceValues$: /* @__PURE__ */ new Map()
73
+ $instanceValues$: /* @__PURE__ */ new Map(),
74
+ $serializerValues$: /* @__PURE__ */ new Map()
63
75
  };
64
76
  {
65
77
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
66
78
  hostElement["s-p"] = [];
67
79
  hostElement["s-rc"] = [];
68
80
  }
81
+ {
82
+ hostRef.$fetchedCbList$ = [];
83
+ }
69
84
  const ref = hostRef;
70
85
  hostElement.__stencil__getHostRef = () => ref;
71
86
  return ref;
@@ -107,7 +122,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
107
122
 
108
123
  // src/client/client-style.ts
109
124
  var styles = /* @__PURE__ */ new Map();
110
- var HYDRATED_STYLE_ID = "sty-id";
111
125
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
112
126
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
113
127
  var win = typeof window !== "undefined" ? window : {};
@@ -129,6 +143,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
129
143
  }
130
144
  return false;
131
145
  })() ;
146
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
132
147
  var queuePending = false;
133
148
  var queueDomReads = [];
134
149
  var queueDomWrites = [];
@@ -175,6 +190,11 @@ function queryNonceMetaTagContent(doc) {
175
190
  return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
176
191
  }
177
192
 
193
+ // src/utils/regular-expression.ts
194
+ var escapeRegExpSpecialCharacters = (text) => {
195
+ return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
196
+ };
197
+
178
198
  // src/utils/result.ts
179
199
  var result_exports = {};
180
200
  __export(result_exports, {
@@ -223,6 +243,26 @@ var unwrapErr = (result) => {
223
243
  throw result.value;
224
244
  }
225
245
  };
246
+
247
+ // src/utils/style.ts
248
+ function createStyleSheetIfNeededAndSupported(styles2) {
249
+ return void 0;
250
+ }
251
+
252
+ // src/utils/shadow-root.ts
253
+ var globalStyleSheet;
254
+ function createShadowRoot(cmpMeta) {
255
+ var _a;
256
+ const shadowRoot = this.attachShadow({ mode: "open" });
257
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
258
+ if (globalStyleSheet) {
259
+ if (supportsMutableAdoptedStyleSheets) {
260
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
261
+ } else {
262
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
263
+ }
264
+ }
265
+ }
226
266
  var createTime = (fnName, tagName = "") => {
227
267
  {
228
268
  return () => {
@@ -237,100 +277,6 @@ var uniqueTime = (key, measureText) => {
237
277
  };
238
278
  }
239
279
  };
240
- var h = (nodeName, vnodeData, ...children) => {
241
- let child = null;
242
- let key = null;
243
- let simple = false;
244
- let lastSimple = false;
245
- const vNodeChildren = [];
246
- const walk = (c) => {
247
- for (let i2 = 0; i2 < c.length; i2++) {
248
- child = c[i2];
249
- if (Array.isArray(child)) {
250
- walk(child);
251
- } else if (child != null && typeof child !== "boolean") {
252
- if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
253
- child = String(child);
254
- }
255
- if (simple && lastSimple) {
256
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
257
- } else {
258
- vNodeChildren.push(simple ? newVNode(null, child) : child);
259
- }
260
- lastSimple = simple;
261
- }
262
- }
263
- };
264
- walk(children);
265
- if (vnodeData) {
266
- if (vnodeData.key) {
267
- key = vnodeData.key;
268
- }
269
- {
270
- const classData = vnodeData.className || vnodeData.class;
271
- if (classData) {
272
- vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
273
- }
274
- }
275
- }
276
- const vnode = newVNode(nodeName, null);
277
- vnode.$attrs$ = vnodeData;
278
- if (vNodeChildren.length > 0) {
279
- vnode.$children$ = vNodeChildren;
280
- }
281
- {
282
- vnode.$key$ = key;
283
- }
284
- return vnode;
285
- };
286
- var newVNode = (tag, text) => {
287
- const vnode = {
288
- $flags$: 0,
289
- $tag$: tag,
290
- $text$: text,
291
- $elm$: null,
292
- $children$: null
293
- };
294
- {
295
- vnode.$attrs$ = null;
296
- }
297
- {
298
- vnode.$key$ = null;
299
- }
300
- return vnode;
301
- };
302
- var Host = {};
303
- var isHost = (node) => node && node.$tag$ === Host;
304
- var parsePropertyValue = (propValue, propType) => {
305
- if (propValue != null && !isComplexType(propValue)) {
306
- if (propType & 1 /* String */) {
307
- return String(propValue);
308
- }
309
- return propValue;
310
- }
311
- return propValue;
312
- };
313
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
314
-
315
- // src/runtime/event-emitter.ts
316
- var createEvent = (ref, name, flags) => {
317
- const elm = getElement(ref);
318
- return {
319
- emit: (detail) => {
320
- return emitEvent(elm, name, {
321
- bubbles: true,
322
- composed: true,
323
- cancelable: true,
324
- detail
325
- });
326
- }
327
- };
328
- };
329
- var emitEvent = (elm, name, opts) => {
330
- const ev = plt.ce(name, opts);
331
- elm.dispatchEvent(ev);
332
- return ev;
333
- };
334
280
  var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
335
281
  var registerStyle = (scopeId2, cssText, allowCS) => {
336
282
  let style = styles.get(scopeId2);
@@ -364,7 +310,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
364
310
  }
365
311
  if (!appliedStyles.has(scopeId2)) {
366
312
  {
367
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
313
+ styleElm = win.document.createElement("style");
368
314
  styleElm.innerHTML = style;
369
315
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
370
316
  if (nonce != null) {
@@ -382,7 +328,11 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
382
328
  if (supportsConstructableStylesheets) {
383
329
  const stylesheet = new CSSStyleSheet();
384
330
  stylesheet.replaceSync(style);
385
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
331
+ if (supportsMutableAdoptedStyleSheets) {
332
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
333
+ } else {
334
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
335
+ }
386
336
  } else {
387
337
  const existingStyleContainer = styleContainerNode.querySelector("style");
388
338
  if (existingStyleContainer) {
@@ -407,7 +357,11 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
407
357
  }
408
358
  }
409
359
  } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
410
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
360
+ if (supportsMutableAdoptedStyleSheets) {
361
+ styleContainerNode.adoptedStyleSheets.push(style);
362
+ } else {
363
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
364
+ }
411
365
  }
412
366
  }
413
367
  return scopeId2;
@@ -427,6 +381,115 @@ var attachStyles = (hostRef) => {
427
381
  endAttachStyles();
428
382
  };
429
383
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
384
+ var h = (nodeName, vnodeData, ...children) => {
385
+ let child = null;
386
+ let key = null;
387
+ let simple = false;
388
+ let lastSimple = false;
389
+ const vNodeChildren = [];
390
+ const walk = (c) => {
391
+ for (let i2 = 0; i2 < c.length; i2++) {
392
+ child = c[i2];
393
+ if (Array.isArray(child)) {
394
+ walk(child);
395
+ } else if (child != null && typeof child !== "boolean") {
396
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
397
+ child = String(child);
398
+ }
399
+ if (simple && lastSimple) {
400
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
401
+ } else {
402
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
403
+ }
404
+ lastSimple = simple;
405
+ }
406
+ }
407
+ };
408
+ walk(children);
409
+ if (vnodeData) {
410
+ if (vnodeData.key) {
411
+ key = vnodeData.key;
412
+ }
413
+ {
414
+ const classData = vnodeData.className || vnodeData.class;
415
+ if (classData) {
416
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
417
+ }
418
+ }
419
+ }
420
+ const vnode = newVNode(nodeName, null);
421
+ vnode.$attrs$ = vnodeData;
422
+ if (vNodeChildren.length > 0) {
423
+ vnode.$children$ = vNodeChildren;
424
+ }
425
+ {
426
+ vnode.$key$ = key;
427
+ }
428
+ return vnode;
429
+ };
430
+ var newVNode = (tag, text) => {
431
+ const vnode = {
432
+ $flags$: 0,
433
+ $tag$: tag,
434
+ $text$: text,
435
+ $elm$: null,
436
+ $children$: null
437
+ };
438
+ {
439
+ vnode.$attrs$ = null;
440
+ }
441
+ {
442
+ vnode.$key$ = null;
443
+ }
444
+ return vnode;
445
+ };
446
+ var Host = {};
447
+ var isHost = (node) => node && node.$tag$ === Host;
448
+ var createSupportsRuleRe = (selector) => {
449
+ const safeSelector2 = escapeRegExpSpecialCharacters(selector);
450
+ return new RegExp(
451
+ // First capture group: match any context before the selector that's not inside @supports selector()
452
+ // Using negative lookahead to avoid matching inside @supports selector(...) condition
453
+ `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
454
+ "g"
455
+ );
456
+ };
457
+ createSupportsRuleRe("::slotted");
458
+ createSupportsRuleRe(":host");
459
+ createSupportsRuleRe(":host-context");
460
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
461
+ if (propValue != null && !isComplexType(propValue)) {
462
+ if (propType & 1 /* String */) {
463
+ return String(propValue);
464
+ }
465
+ return propValue;
466
+ }
467
+ return propValue;
468
+ };
469
+ var getElement = (ref) => {
470
+ var _a;
471
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
472
+ };
473
+
474
+ // src/runtime/event-emitter.ts
475
+ var createEvent = (ref, name, flags) => {
476
+ const elm = getElement(ref);
477
+ return {
478
+ emit: (detail) => {
479
+ return emitEvent(elm, name, {
480
+ bubbles: true,
481
+ composed: true,
482
+ cancelable: true,
483
+ detail
484
+ });
485
+ }
486
+ };
487
+ };
488
+ var emitEvent = (elm, name, opts) => {
489
+ const ev = plt.ce(name, opts);
490
+ elm.dispatchEvent(ev);
491
+ return ev;
492
+ };
430
493
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
431
494
  if (oldValue === newValue) {
432
495
  return;
@@ -760,7 +823,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
760
823
  !isInitialRender && BUILD.updatable && oldChildren !== null
761
824
  ) {
762
825
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
763
- }
826
+ } else ;
764
827
  if (isSvgMode && tag === "svg") {
765
828
  isSvgMode = false;
766
829
  }
@@ -816,6 +879,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
816
879
  }
817
880
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
818
881
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
882
+ if (isInitialLoad) {
883
+ queueMicrotask(() => {
884
+ dispatch();
885
+ });
886
+ return;
887
+ }
819
888
  return writeTask(dispatch) ;
820
889
  };
821
890
  var dispatchHooks = (hostRef, isInitialLoad) => {
@@ -829,6 +898,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
829
898
  }
830
899
  let maybePromise;
831
900
  if (isInitialLoad) {
901
+ {
902
+ if (hostRef.$fetchedCbList$.length) {
903
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
904
+ }
905
+ }
832
906
  maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
833
907
  } else {
834
908
  maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
@@ -950,6 +1024,9 @@ var addHydratedFlag = (elm) => {
950
1024
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
951
1025
  var setValue = (ref, propName, newVal, cmpMeta) => {
952
1026
  const hostRef = getHostRef(ref);
1027
+ if (!hostRef) {
1028
+ return;
1029
+ }
953
1030
  if (!hostRef) {
954
1031
  throw new Error(
955
1032
  `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
@@ -959,7 +1036,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
959
1036
  const oldVal = hostRef.$instanceValues$.get(propName);
960
1037
  const flags = hostRef.$flags$;
961
1038
  const instance = hostRef.$lazyInstance$ ;
962
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1039
+ newVal = parsePropertyValue(
1040
+ newVal,
1041
+ cmpMeta.$members$[propName][0]);
963
1042
  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
964
1043
  const didValueChange = newVal !== oldVal && !areBothNaN;
965
1044
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
@@ -993,9 +1072,17 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
993
1072
  var proxyComponent = (Cstr, cmpMeta, flags) => {
994
1073
  var _a, _b;
995
1074
  const prototype = Cstr.prototype;
996
- if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
997
- if (Cstr.watchers && !cmpMeta.$watchers$) {
998
- cmpMeta.$watchers$ = Cstr.watchers;
1075
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1076
+ {
1077
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1078
+ cmpMeta.$watchers$ = Cstr.watchers;
1079
+ }
1080
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1081
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1082
+ }
1083
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1084
+ cmpMeta.$serializers$ = Cstr.serializers;
1085
+ }
999
1086
  }
1000
1087
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1001
1088
  members.map(([memberName, [memberFlags]]) => {
@@ -1023,14 +1110,19 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1023
1110
  Object.defineProperty(prototype, memberName, {
1024
1111
  set(newValue) {
1025
1112
  const ref = getHostRef(this);
1113
+ if (!ref) {
1114
+ return;
1115
+ }
1026
1116
  if (origSetter) {
1027
1117
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1028
1118
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1029
1119
  newValue = ref.$instanceValues$.get(memberName);
1030
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1031
- ref.$instanceValues$.set(memberName, currentValue);
1032
1120
  }
1033
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1121
+ origSetter.apply(this, [
1122
+ parsePropertyValue(
1123
+ newValue,
1124
+ memberFlags)
1125
+ ]);
1034
1126
  newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1035
1127
  setValue(this, memberName, newValue, cmpMeta);
1036
1128
  return;
@@ -1039,7 +1131,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1039
1131
  if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1040
1132
  setValue(this, memberName, newValue, cmpMeta);
1041
1133
  if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1042
- ref.$onReadyPromise$.then(() => {
1134
+ ref.$fetchedCbList$.push(() => {
1043
1135
  if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1044
1136
  ref.$lazyInstance$[memberName] = newValue;
1045
1137
  }
@@ -1052,13 +1144,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1052
1144
  if (!ref.$instanceValues$.get(memberName) && currentValue) {
1053
1145
  ref.$instanceValues$.set(memberName, currentValue);
1054
1146
  }
1055
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1147
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
1148
+ newValue,
1149
+ memberFlags);
1056
1150
  setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1057
1151
  };
1058
1152
  if (ref.$lazyInstance$) {
1059
1153
  setterSetVal();
1060
1154
  } else {
1061
- ref.$onReadyPromise$.then(() => setterSetVal());
1155
+ ref.$fetchedCbList$.push(() => {
1156
+ setterSetVal();
1157
+ });
1062
1158
  }
1063
1159
  }
1064
1160
  }
@@ -1071,16 +1167,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1071
1167
  plt.jmp(() => {
1072
1168
  var _a2;
1073
1169
  const propName = attrNameToPropName.get(attrName);
1170
+ const hostRef = getHostRef(this);
1074
1171
  if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1075
1172
  newValue = this[propName];
1076
1173
  delete this[propName];
1077
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1174
+ }
1175
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1078
1176
  this[propName] == newValue) {
1079
1177
  return;
1080
1178
  } else if (propName == null) {
1081
- const hostRef = getHostRef(this);
1082
1179
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1083
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1180
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1084
1181
  const instance = hostRef.$lazyInstance$ ;
1085
1182
  const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1086
1183
  entry == null ? void 0 : entry.forEach((callbackName) => {
@@ -1091,9 +1188,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1091
1188
  }
1092
1189
  return;
1093
1190
  }
1191
+ const propFlags = members.find(([m]) => m === propName);
1192
+ if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
1193
+ newValue = newValue === null || newValue === "false" ? false : true;
1194
+ }
1094
1195
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1095
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1096
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1196
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1097
1197
  this[propName] = newValue;
1098
1198
  }
1099
1199
  });
@@ -1101,7 +1201,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1101
1201
  Cstr.observedAttributes = Array.from(
1102
1202
  /* @__PURE__ */ new Set([
1103
1203
  ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1104
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1204
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1105
1205
  const attrName = m[1] || propName;
1106
1206
  attrNameToPropName.set(attrName, propName);
1107
1207
  return attrName;
@@ -1134,6 +1234,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1134
1234
  if (!Cstr.isProxied) {
1135
1235
  {
1136
1236
  cmpMeta.$watchers$ = Cstr.watchers;
1237
+ cmpMeta.$serializers$ = Cstr.serializers;
1238
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1137
1239
  }
1138
1240
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1139
1241
  Cstr.isProxied = true;
@@ -1191,6 +1293,9 @@ var fireConnectedCallback = (instance, elm) => {
1191
1293
  var connectedCallback = (elm) => {
1192
1294
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1193
1295
  const hostRef = getHostRef(elm);
1296
+ if (!hostRef) {
1297
+ return;
1298
+ }
1194
1299
  const cmpMeta = hostRef.$cmpMeta$;
1195
1300
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1196
1301
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
@@ -1206,7 +1311,7 @@ var connectedCallback = (elm) => {
1206
1311
  }
1207
1312
  if (cmpMeta.$members$) {
1208
1313
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1209
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1314
+ if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1210
1315
  const value = elm[memberName];
1211
1316
  delete elm[memberName];
1212
1317
  elm[memberName] = value;
@@ -1270,7 +1375,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1270
1375
  let hasSlotRelocation = false;
1271
1376
  lazyBundles.map((lazyBundle) => {
1272
1377
  lazyBundle[1].map((compactMeta) => {
1273
- var _a2;
1378
+ var _a2, _b, _c;
1274
1379
  const cmpMeta = {
1275
1380
  $flags$: compactMeta[0],
1276
1381
  $tagName$: compactMeta[1],
@@ -1285,6 +1390,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1285
1390
  }
1286
1391
  {
1287
1392
  cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1393
+ cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
1394
+ cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
1288
1395
  }
1289
1396
  const tagName = cmpMeta.$tagName$;
1290
1397
  const HostElement = class extends HTMLElement {
@@ -1297,9 +1404,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1297
1404
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1298
1405
  {
1299
1406
  if (!self.shadowRoot) {
1300
- {
1301
- self.attachShadow({ mode: "open" });
1302
- }
1407
+ createShadowRoot.call(self, cmpMeta);
1303
1408
  } else {
1304
1409
  if (self.shadowRoot.mode !== "open") {
1305
1410
  throw new Error(
@@ -1311,7 +1416,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1311
1416
  }
1312
1417
  }
1313
1418
  connectedCallback() {
1314
- getHostRef(this);
1419
+ const hostRef = getHostRef(this);
1420
+ if (!hostRef) {
1421
+ return;
1422
+ }
1315
1423
  if (!this.hasRegisteredEventListeners) {
1316
1424
  this.hasRegisteredEventListeners = true;
1317
1425
  }
@@ -1330,6 +1438,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1330
1438
  plt.raf(() => {
1331
1439
  var _a3;
1332
1440
  const hostRef = getHostRef(this);
1441
+ if (!hostRef) {
1442
+ return;
1443
+ }
1333
1444
  const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1334
1445
  if (i2 > -1) {
1335
1446
  deferredConnectedCallbacks.splice(i2, 1);
@@ -1340,7 +1451,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1340
1451
  });
1341
1452
  }
1342
1453
  componentOnReady() {
1343
- return getHostRef(this).$onReadyPromise$;
1454
+ var _a3;
1455
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
1344
1456
  }
1345
1457
  };
1346
1458
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
@@ -1391,6 +1503,6 @@ exports.h = h;
1391
1503
  exports.promiseResolve = promiseResolve;
1392
1504
  exports.registerInstance = registerInstance;
1393
1505
  exports.setNonce = setNonce;
1394
- //# sourceMappingURL=index-BwhDU6Rv.js.map
1506
+ //# sourceMappingURL=index-DFm_LKOZ.js.map
1395
1507
 
1396
- //# sourceMappingURL=index-BwhDU6Rv.js.map
1508
+ //# sourceMappingURL=index-DFm_LKOZ.js.map