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
@@ -2,7 +2,7 @@ const NAMESPACE = 'eiam-user-preference';
2
2
  const BUILD = /* eiam-user-preference */ { hydratedSelectorName: "hydrated", lazyLoad: false, updatable: true};
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.29.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.38.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -22,21 +22,31 @@ var reWireGetterSetter = (instance, hostRef) => {
22
22
  members.map(([memberName, [memberFlags]]) => {
23
23
  if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
24
24
  const ogValue = instance[memberName];
25
- const ogDescriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(instance), memberName);
26
- Object.defineProperty(instance, memberName, {
27
- get() {
28
- return ogDescriptor.get.call(this);
29
- },
30
- set(newValue) {
31
- ogDescriptor.set.call(this, newValue);
32
- },
33
- configurable: true,
34
- enumerable: true
35
- });
25
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
26
+ if (ogDescriptor) {
27
+ Object.defineProperty(instance, memberName, {
28
+ get() {
29
+ return ogDescriptor.get.call(this);
30
+ },
31
+ set(newValue) {
32
+ ogDescriptor.set.call(this, newValue);
33
+ },
34
+ configurable: true,
35
+ enumerable: true
36
+ });
37
+ }
36
38
  instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
37
39
  }
38
40
  });
39
41
  };
42
+ function getPropertyDescriptor(obj, memberName) {
43
+ while (obj) {
44
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
45
+ if (desc == null ? void 0 : desc.get) return desc;
46
+ obj = Object.getPrototypeOf(obj);
47
+ }
48
+ return void 0;
49
+ }
40
50
 
41
51
  // src/client/client-host-ref.ts
42
52
  var getHostRef = (ref) => {
@@ -50,7 +60,8 @@ var registerHost = (hostElement, cmpMeta) => {
50
60
  $flags$: 0,
51
61
  $hostElement$: hostElement,
52
62
  $cmpMeta$: cmpMeta,
53
- $instanceValues$: /* @__PURE__ */ new Map()
63
+ $instanceValues$: /* @__PURE__ */ new Map(),
64
+ $serializerValues$: /* @__PURE__ */ new Map()
54
65
  };
55
66
  {
56
67
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
@@ -69,7 +80,6 @@ var consoleError = (e, el) => (0, console.error)(e, el);
69
80
 
70
81
  // src/client/client-style.ts
71
82
  var styles = /* @__PURE__ */ new Map();
72
- var HYDRATED_STYLE_ID = "sty-id";
73
83
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
74
84
  var win = typeof window !== "undefined" ? window : {};
75
85
  var H = win.HTMLElement || class {
@@ -92,6 +102,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
92
102
  }
93
103
  return false;
94
104
  })() ;
105
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
95
106
  var queuePending = false;
96
107
  var queueDomReads = [];
97
108
  var queueDomWrites = [];
@@ -145,6 +156,11 @@ function queryNonceMetaTagContent(doc) {
145
156
  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;
146
157
  }
147
158
 
159
+ // src/utils/regular-expression.ts
160
+ var escapeRegExpSpecialCharacters = (text) => {
161
+ return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
162
+ };
163
+
148
164
  // src/utils/result.ts
149
165
  var result_exports = {};
150
166
  __export(result_exports, {
@@ -193,6 +209,26 @@ var unwrapErr = (result) => {
193
209
  throw result.value;
194
210
  }
195
211
  };
212
+
213
+ // src/utils/style.ts
214
+ function createStyleSheetIfNeededAndSupported(styles2) {
215
+ return void 0;
216
+ }
217
+
218
+ // src/utils/shadow-root.ts
219
+ var globalStyleSheet;
220
+ function createShadowRoot(cmpMeta) {
221
+ var _a;
222
+ const shadowRoot = this.attachShadow({ mode: "open" });
223
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
224
+ if (globalStyleSheet) {
225
+ if (supportsMutableAdoptedStyleSheets) {
226
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
227
+ } else {
228
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
229
+ }
230
+ }
231
+ }
196
232
  var createTime = (fnName, tagName = "") => {
197
233
  {
198
234
  return () => {
@@ -200,100 +236,6 @@ var createTime = (fnName, tagName = "") => {
200
236
  };
201
237
  }
202
238
  };
203
- var h = (nodeName, vnodeData, ...children) => {
204
- let child = null;
205
- let key = null;
206
- let simple = false;
207
- let lastSimple = false;
208
- const vNodeChildren = [];
209
- const walk = (c) => {
210
- for (let i2 = 0; i2 < c.length; i2++) {
211
- child = c[i2];
212
- if (Array.isArray(child)) {
213
- walk(child);
214
- } else if (child != null && typeof child !== "boolean") {
215
- if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
216
- child = String(child);
217
- }
218
- if (simple && lastSimple) {
219
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
220
- } else {
221
- vNodeChildren.push(simple ? newVNode(null, child) : child);
222
- }
223
- lastSimple = simple;
224
- }
225
- }
226
- };
227
- walk(children);
228
- if (vnodeData) {
229
- if (vnodeData.key) {
230
- key = vnodeData.key;
231
- }
232
- {
233
- const classData = vnodeData.className || vnodeData.class;
234
- if (classData) {
235
- vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
236
- }
237
- }
238
- }
239
- const vnode = newVNode(nodeName, null);
240
- vnode.$attrs$ = vnodeData;
241
- if (vNodeChildren.length > 0) {
242
- vnode.$children$ = vNodeChildren;
243
- }
244
- {
245
- vnode.$key$ = key;
246
- }
247
- return vnode;
248
- };
249
- var newVNode = (tag, text) => {
250
- const vnode = {
251
- $flags$: 0,
252
- $tag$: tag,
253
- $text$: text,
254
- $elm$: null,
255
- $children$: null
256
- };
257
- {
258
- vnode.$attrs$ = null;
259
- }
260
- {
261
- vnode.$key$ = null;
262
- }
263
- return vnode;
264
- };
265
- var Host = {};
266
- var isHost = (node) => node && node.$tag$ === Host;
267
- var parsePropertyValue = (propValue, propType) => {
268
- if (propValue != null && !isComplexType(propValue)) {
269
- if (propType & 1 /* String */) {
270
- return String(propValue);
271
- }
272
- return propValue;
273
- }
274
- return propValue;
275
- };
276
- var getElement = (ref) => ref;
277
-
278
- // src/runtime/event-emitter.ts
279
- var createEvent = (ref, name, flags) => {
280
- const elm = getElement(ref);
281
- return {
282
- emit: (detail) => {
283
- return emitEvent(elm, name, {
284
- bubbles: true,
285
- composed: true,
286
- cancelable: true,
287
- detail
288
- });
289
- }
290
- };
291
- };
292
- var emitEvent = (elm, name, opts) => {
293
- const ev = plt.ce(name, opts);
294
- elm.dispatchEvent(ev);
295
- return ev;
296
- };
297
239
  var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
298
240
  var registerStyle = (scopeId2, cssText, allowCS) => {
299
241
  let style = styles.get(scopeId2);
@@ -327,7 +269,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
327
269
  }
328
270
  if (!appliedStyles.has(scopeId2)) {
329
271
  {
330
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
272
+ styleElm = win.document.createElement("style");
331
273
  styleElm.innerHTML = style;
332
274
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
333
275
  if (nonce != null) {
@@ -345,7 +287,11 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
345
287
  if (supportsConstructableStylesheets) {
346
288
  const stylesheet = new CSSStyleSheet();
347
289
  stylesheet.replaceSync(style);
348
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
290
+ if (supportsMutableAdoptedStyleSheets) {
291
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
292
+ } else {
293
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
294
+ }
349
295
  } else {
350
296
  const existingStyleContainer = styleContainerNode.querySelector("style");
351
297
  if (existingStyleContainer) {
@@ -370,7 +316,11 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
370
316
  }
371
317
  }
372
318
  } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
373
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
319
+ if (supportsMutableAdoptedStyleSheets) {
320
+ styleContainerNode.adoptedStyleSheets.push(style);
321
+ } else {
322
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
323
+ }
374
324
  }
375
325
  }
376
326
  return scopeId2;
@@ -390,6 +340,114 @@ var attachStyles = (hostRef) => {
390
340
  endAttachStyles();
391
341
  };
392
342
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
343
+ var h = (nodeName, vnodeData, ...children) => {
344
+ let child = null;
345
+ let key = null;
346
+ let simple = false;
347
+ let lastSimple = false;
348
+ const vNodeChildren = [];
349
+ const walk = (c) => {
350
+ for (let i2 = 0; i2 < c.length; i2++) {
351
+ child = c[i2];
352
+ if (Array.isArray(child)) {
353
+ walk(child);
354
+ } else if (child != null && typeof child !== "boolean") {
355
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
356
+ child = String(child);
357
+ }
358
+ if (simple && lastSimple) {
359
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
360
+ } else {
361
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
362
+ }
363
+ lastSimple = simple;
364
+ }
365
+ }
366
+ };
367
+ walk(children);
368
+ if (vnodeData) {
369
+ if (vnodeData.key) {
370
+ key = vnodeData.key;
371
+ }
372
+ {
373
+ const classData = vnodeData.className || vnodeData.class;
374
+ if (classData) {
375
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
376
+ }
377
+ }
378
+ }
379
+ const vnode = newVNode(nodeName, null);
380
+ vnode.$attrs$ = vnodeData;
381
+ if (vNodeChildren.length > 0) {
382
+ vnode.$children$ = vNodeChildren;
383
+ }
384
+ {
385
+ vnode.$key$ = key;
386
+ }
387
+ return vnode;
388
+ };
389
+ var newVNode = (tag, text) => {
390
+ const vnode = {
391
+ $flags$: 0,
392
+ $tag$: tag,
393
+ $text$: text,
394
+ $elm$: null,
395
+ $children$: null
396
+ };
397
+ {
398
+ vnode.$attrs$ = null;
399
+ }
400
+ {
401
+ vnode.$key$ = null;
402
+ }
403
+ return vnode;
404
+ };
405
+ var Host = {};
406
+ var isHost = (node) => node && node.$tag$ === Host;
407
+ var createSupportsRuleRe = (selector) => {
408
+ const safeSelector2 = escapeRegExpSpecialCharacters(selector);
409
+ return new RegExp(
410
+ // First capture group: match any context before the selector that's not inside @supports selector()
411
+ // Using negative lookahead to avoid matching inside @supports selector(...) condition
412
+ `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
413
+ "g"
414
+ );
415
+ };
416
+ createSupportsRuleRe("::slotted");
417
+ createSupportsRuleRe(":host");
418
+ createSupportsRuleRe(":host-context");
419
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
420
+ if (propValue != null && !isComplexType(propValue)) {
421
+ if (propType & 1 /* String */) {
422
+ return String(propValue);
423
+ }
424
+ return propValue;
425
+ }
426
+ return propValue;
427
+ };
428
+ var getElement = (ref) => {
429
+ return ref;
430
+ };
431
+
432
+ // src/runtime/event-emitter.ts
433
+ var createEvent = (ref, name, flags) => {
434
+ const elm = getElement(ref);
435
+ return {
436
+ emit: (detail) => {
437
+ return emitEvent(elm, name, {
438
+ bubbles: true,
439
+ composed: true,
440
+ cancelable: true,
441
+ detail
442
+ });
443
+ }
444
+ };
445
+ };
446
+ var emitEvent = (elm, name, opts) => {
447
+ const ev = plt.ce(name, opts);
448
+ elm.dispatchEvent(ev);
449
+ return ev;
450
+ };
393
451
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
394
452
  if (oldValue === newValue) {
395
453
  return;
@@ -723,7 +781,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
723
781
  !isInitialRender && BUILD.updatable && oldChildren !== null
724
782
  ) {
725
783
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
726
- }
784
+ } else ;
727
785
  if (isSvgMode && tag === "svg") {
728
786
  isSvgMode = false;
729
787
  }
@@ -779,6 +837,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
779
837
  }
780
838
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
781
839
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
840
+ if (isInitialLoad) {
841
+ queueMicrotask(() => {
842
+ dispatch();
843
+ });
844
+ return;
845
+ }
782
846
  return writeTask(dispatch) ;
783
847
  };
784
848
  var dispatchHooks = (hostRef, isInitialLoad) => {
@@ -913,11 +977,16 @@ var addHydratedFlag = (elm) => {
913
977
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
914
978
  var setValue = (ref, propName, newVal, cmpMeta) => {
915
979
  const hostRef = getHostRef(ref);
980
+ if (!hostRef) {
981
+ return;
982
+ }
916
983
  const elm = ref;
917
984
  const oldVal = hostRef.$instanceValues$.get(propName);
918
985
  const flags = hostRef.$flags$;
919
986
  const instance = elm;
920
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
987
+ newVal = parsePropertyValue(
988
+ newVal,
989
+ cmpMeta.$members$[propName][0]);
921
990
  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
922
991
  const didValueChange = newVal !== oldVal && !areBothNaN;
923
992
  if (didValueChange) {
@@ -951,9 +1020,17 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
951
1020
  var proxyComponent = (Cstr, cmpMeta, flags) => {
952
1021
  var _a, _b;
953
1022
  const prototype = Cstr.prototype;
954
- if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
955
- if (Cstr.watchers && !cmpMeta.$watchers$) {
956
- cmpMeta.$watchers$ = Cstr.watchers;
1023
+ {
1024
+ {
1025
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1026
+ cmpMeta.$watchers$ = Cstr.watchers;
1027
+ }
1028
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1029
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1030
+ }
1031
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1032
+ cmpMeta.$serializers$ = Cstr.serializers;
1033
+ }
957
1034
  }
958
1035
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
959
1036
  members.map(([memberName, [memberFlags]]) => {
@@ -975,14 +1052,19 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
975
1052
  Object.defineProperty(prototype, memberName, {
976
1053
  set(newValue) {
977
1054
  const ref = getHostRef(this);
1055
+ if (!ref) {
1056
+ return;
1057
+ }
978
1058
  if (origSetter) {
979
1059
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
980
1060
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
981
1061
  newValue = ref.$instanceValues$.get(memberName);
982
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
983
- ref.$instanceValues$.set(memberName, currentValue);
984
1062
  }
985
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1063
+ origSetter.apply(this, [
1064
+ parsePropertyValue(
1065
+ newValue,
1066
+ memberFlags)
1067
+ ]);
986
1068
  newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
987
1069
  setValue(this, memberName, newValue, cmpMeta);
988
1070
  return;
@@ -1001,13 +1083,14 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1001
1083
  plt.jmp(() => {
1002
1084
  var _a2;
1003
1085
  const propName = attrNameToPropName.get(attrName);
1004
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) ; else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1086
+ const hostRef = getHostRef(this);
1087
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) ;
1088
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1005
1089
  this[propName] == newValue) {
1006
1090
  return;
1007
1091
  } else if (propName == null) {
1008
- const hostRef = getHostRef(this);
1009
1092
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1010
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1093
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1011
1094
  const elm = this;
1012
1095
  const instance = elm;
1013
1096
  const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
@@ -1019,9 +1102,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1019
1102
  }
1020
1103
  return;
1021
1104
  }
1105
+ const propFlags = members.find(([m]) => m === propName);
1106
+ if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
1107
+ newValue = newValue === null || newValue === "false" ? false : true;
1108
+ }
1022
1109
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1023
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1024
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1110
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1025
1111
  this[propName] = newValue;
1026
1112
  }
1027
1113
  });
@@ -1029,7 +1115,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1029
1115
  Cstr.observedAttributes = Array.from(
1030
1116
  /* @__PURE__ */ new Set([
1031
1117
  ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1032
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1118
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1033
1119
  const attrName = m[1] || propName;
1034
1120
  attrNameToPropName.set(attrName, propName);
1035
1121
  return attrName;
@@ -1079,6 +1165,9 @@ var fireConnectedCallback = (instance, elm) => {
1079
1165
  var connectedCallback = (elm) => {
1080
1166
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1081
1167
  const hostRef = getHostRef(elm);
1168
+ if (!hostRef) {
1169
+ return;
1170
+ }
1082
1171
  const cmpMeta = hostRef.$cmpMeta$;
1083
1172
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1084
1173
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
@@ -1094,16 +1183,14 @@ var connectedCallback = (elm) => {
1094
1183
  }
1095
1184
  if (cmpMeta.$members$) {
1096
1185
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1097
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1186
+ if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1098
1187
  const value = elm[memberName];
1099
1188
  delete elm[memberName];
1100
1189
  elm[memberName] = value;
1101
1190
  }
1102
1191
  });
1103
1192
  }
1104
- if (BUILD.initializeNextTick) {
1105
- nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
1106
- } else {
1193
+ {
1107
1194
  initializeComponent(elm, hostRef, cmpMeta);
1108
1195
  }
1109
1196
  } else {
@@ -1135,6 +1222,8 @@ var proxyCustomElement = (Cstr, compactMeta) => {
1135
1222
  }
1136
1223
  {
1137
1224
  cmpMeta.$watchers$ = Cstr.$watchers$;
1225
+ cmpMeta.$deserializers$ = Cstr.$deserializers$;
1226
+ cmpMeta.$serializers$ = Cstr.$serializers$;
1138
1227
  }
1139
1228
  const originalConnectedCallback = Cstr.prototype.connectedCallback;
1140
1229
  const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
@@ -1145,7 +1234,10 @@ var proxyCustomElement = (Cstr, compactMeta) => {
1145
1234
  },
1146
1235
  connectedCallback() {
1147
1236
  if (!this.__hasHostListenerAttached) {
1148
- getHostRef(this);
1237
+ const hostRef = getHostRef(this);
1238
+ if (!hostRef) {
1239
+ return;
1240
+ }
1149
1241
  this.__hasHostListenerAttached = true;
1150
1242
  }
1151
1243
  connectedCallback(this);
@@ -1162,9 +1254,7 @@ var proxyCustomElement = (Cstr, compactMeta) => {
1162
1254
  __attachShadow() {
1163
1255
  {
1164
1256
  if (!this.shadowRoot) {
1165
- {
1166
- this.attachShadow({ mode: "open" });
1167
- }
1257
+ createShadowRoot.call(this, cmpMeta);
1168
1258
  } else {
1169
1259
  if (this.shadowRoot.mode !== "open") {
1170
1260
  throw new Error(
@@ -1185,7 +1275,15 @@ var setNonce = (nonce) => plt.$nonce$ = nonce;
1185
1275
  // src/runtime/platform-options.ts
1186
1276
  var setPlatformOptions = (opts) => Object.assign(plt, opts);
1187
1277
 
1188
- export { H, Host as a, setNonce as b, createEvent as c, setPlatformOptions as d, getAssetPath as g, h, proxyCustomElement as p, setAssetPath as s };
1189
- //# sourceMappingURL=p-Bg8L3BtK.js.map
1278
+ // src/runtime/render.ts
1279
+ function render(vnode, container) {
1280
+ const ref = {
1281
+ $hostElement$: container
1282
+ };
1283
+ renderVdom(ref, vnode);
1284
+ }
1285
+
1286
+ export { H, Host as a, setNonce as b, createEvent as c, setPlatformOptions as d, getAssetPath as g, h, proxyCustomElement as p, render as r, setAssetPath as s };
1287
+ //# sourceMappingURL=p-Dk6Z16y5.js.map
1190
1288
 
1191
- //# sourceMappingURL=p-Bg8L3BtK.js.map
1289
+ //# sourceMappingURL=p-Dk6Z16y5.js.map