@pine-ds/icons 9.11.0 → 9.12.0

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 (52) hide show
  1. package/components/index.js +1 -1
  2. package/components/pds-icon.js +5 -3
  3. package/components/pds-icon.js.map +1 -1
  4. package/dist/cheatsheet.html +3 -3
  5. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -1
  6. package/dist/cjs/{index-vqovWm2E.js → index-1SOIMLKQ.js} +3 -3
  7. package/dist/cjs/{index-vqovWm2E.js.map → index-1SOIMLKQ.js.map} +1 -1
  8. package/dist/cjs/{index-Rab0J0J-.js → index-C2yOCYcM.js} +262 -120
  9. package/dist/cjs/index-C2yOCYcM.js.map +1 -0
  10. package/dist/cjs/index.cjs.js +2 -4
  11. package/dist/cjs/loader.cjs.js +2 -4
  12. package/dist/cjs/pds-icon.cjs.entry.js +2 -4
  13. package/dist/cjs/pds-icons.cjs.js +3 -5
  14. package/dist/cjs/pds-icons.cjs.js.map +1 -1
  15. package/dist/collection/collection-manifest.json +2 -2
  16. package/dist/collection/components/pds-icon/pds-icon.js +11 -11
  17. package/dist/docs.json +9 -4
  18. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
  19. package/dist/esm/{index-DageRZ16.js → index-Bbt-SSYo.js} +3 -3
  20. package/dist/esm/{index-DageRZ16.js.map → index-Bbt-SSYo.js.map} +1 -1
  21. package/dist/esm/{index-BtVkVfWm.js → index-BnTKVLFw.js} +262 -120
  22. package/dist/esm/index-BnTKVLFw.js.map +1 -0
  23. package/dist/esm/index.js +2 -4
  24. package/dist/esm/loader.js +3 -5
  25. package/dist/esm/pds-icon.entry.js +2 -4
  26. package/dist/esm/pds-icons.js +4 -6
  27. package/dist/esm/pds-icons.js.map +1 -1
  28. package/dist/pds-icons/index.esm.js +1 -1
  29. package/dist/pds-icons/{p-5ea9f963.entry.js → p-1ade35d9.entry.js} +2 -2
  30. package/dist/pds-icons/p-1ade35d9.entry.js.map +1 -0
  31. package/dist/pds-icons/p-BnTKVLFw.js +3 -0
  32. package/dist/pds-icons/p-BnTKVLFw.js.map +1 -0
  33. package/dist/pds-icons/{p-6DkR999u.js → p-CdP7eq1f.js} +2 -2
  34. package/dist/pds-icons/{p-6DkR999u.js.map → p-CdP7eq1f.js.map} +1 -1
  35. package/dist/pds-icons/p-DQuL1Twl.js.map +1 -1
  36. package/dist/pds-icons/pds-icons.esm.js +1 -1
  37. package/dist/pds-icons/pds-icons.esm.js.map +1 -1
  38. package/dist/pds-icons.json +1 -1
  39. package/dist/pds-icons.symbols.svg +1 -1
  40. package/dist/types/components.d.ts +2 -0
  41. package/dist/types/stencil-public-runtime.d.ts +83 -8
  42. package/icons/index.d.ts +1 -1
  43. package/icons/index.js +1 -1
  44. package/icons/index.mjs +1 -1
  45. package/icons/package.json +1 -1
  46. package/package.json +2 -2
  47. package/dist/cjs/index-Rab0J0J-.js.map +0 -1
  48. package/dist/cjs/pds-icon.cjs.entry.js.map +0 -1
  49. package/dist/esm/index-BtVkVfWm.js.map +0 -1
  50. package/dist/pds-icons/p-5ea9f963.entry.js.map +0 -1
  51. package/dist/pds-icons/p-BtVkVfWm.js +0 -3
  52. package/dist/pds-icons/p-BtVkVfWm.js.map +0 -1
@@ -1,16 +1,48 @@
1
1
  'use strict';
2
2
 
3
3
  const NAMESPACE = 'pds-icons';
4
- const BUILD = /* pds-icons */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
4
+ const BUILD = /* pds-icons */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
5
5
 
6
6
  /*
7
- Stencil Client Platform v4.28.2 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Platform v4.38.3 | MIT Licensed | https://stenciljs.com
8
8
  */
9
9
  var __defProp = Object.defineProperty;
10
10
  var __export = (target, all) => {
11
11
  for (var name in all)
12
12
  __defProp(target, name, { get: all[name], enumerable: true });
13
13
  };
14
+ var reWireGetterSetter = (instance, hostRef) => {
15
+ var _a;
16
+ const cmpMeta = hostRef.$cmpMeta$;
17
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
18
+ members.map(([memberName, [memberFlags]]) => {
19
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
20
+ const ogValue = instance[memberName];
21
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
22
+ if (ogDescriptor) {
23
+ Object.defineProperty(instance, memberName, {
24
+ get() {
25
+ return ogDescriptor.get.call(this);
26
+ },
27
+ set(newValue) {
28
+ ogDescriptor.set.call(this, newValue);
29
+ },
30
+ configurable: true,
31
+ enumerable: true
32
+ });
33
+ }
34
+ instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
35
+ }
36
+ });
37
+ };
38
+ function getPropertyDescriptor(obj, memberName) {
39
+ while (obj) {
40
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
41
+ if (desc == null ? void 0 : desc.get) return desc;
42
+ obj = Object.getPrototypeOf(obj);
43
+ }
44
+ return void 0;
45
+ }
14
46
 
15
47
  // src/client/client-host-ref.ts
16
48
  var getHostRef = (ref) => {
@@ -20,21 +52,29 @@ var getHostRef = (ref) => {
20
52
  return void 0;
21
53
  };
22
54
  var registerInstance = (lazyInstance, hostRef) => {
55
+ if (!hostRef) return;
23
56
  lazyInstance.__stencil__getHostRef = () => hostRef;
24
57
  hostRef.$lazyInstance$ = lazyInstance;
58
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
59
+ reWireGetterSetter(lazyInstance, hostRef);
60
+ }
25
61
  };
26
62
  var registerHost = (hostElement, cmpMeta) => {
27
63
  const hostRef = {
28
64
  $flags$: 0,
29
65
  $hostElement$: hostElement,
30
66
  $cmpMeta$: cmpMeta,
31
- $instanceValues$: /* @__PURE__ */ new Map()
67
+ $instanceValues$: /* @__PURE__ */ new Map(),
68
+ $serializerValues$: /* @__PURE__ */ new Map()
32
69
  };
33
70
  {
34
71
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
35
72
  hostElement["s-p"] = [];
36
73
  hostElement["s-rc"] = [];
37
74
  }
75
+ {
76
+ hostRef.$fetchedCbList$ = [];
77
+ }
38
78
  const ref = hostRef;
39
79
  hostElement.__stencil__getHostRef = () => ref;
40
80
  return ref;
@@ -76,7 +116,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
76
116
 
77
117
  // src/client/client-style.ts
78
118
  var styles = /* @__PURE__ */ new Map();
79
- var HYDRATED_STYLE_ID = "sty-id";
80
119
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
81
120
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
82
121
  var XLINK_NS = "http://www.w3.org/1999/xlink";
@@ -99,6 +138,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
99
138
  }
100
139
  return false;
101
140
  })() ;
141
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
102
142
  var queuePending = false;
103
143
  var queueDomReads = [];
104
144
  var queueDomWrites = [];
@@ -145,6 +185,11 @@ function queryNonceMetaTagContent(doc) {
145
185
  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
186
  }
147
187
 
188
+ // src/utils/regular-expression.ts
189
+ var escapeRegExpSpecialCharacters = (text) => {
190
+ return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
191
+ };
192
+
148
193
  // src/utils/result.ts
149
194
  var result_exports = {};
150
195
  __export(result_exports, {
@@ -193,6 +238,26 @@ var unwrapErr = (result) => {
193
238
  throw result.value;
194
239
  }
195
240
  };
241
+
242
+ // src/utils/style.ts
243
+ function createStyleSheetIfNeededAndSupported(styles2) {
244
+ return void 0;
245
+ }
246
+
247
+ // src/utils/shadow-root.ts
248
+ var globalStyleSheet;
249
+ function createShadowRoot(cmpMeta) {
250
+ var _a;
251
+ const shadowRoot = this.attachShadow({ mode: "open" });
252
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
253
+ if (globalStyleSheet) {
254
+ if (supportsMutableAdoptedStyleSheets) {
255
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
256
+ } else {
257
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
258
+ }
259
+ }
260
+ }
196
261
  var createTime = (fnName, tagName = "") => {
197
262
  {
198
263
  return () => {
@@ -207,88 +272,6 @@ var uniqueTime = (key, measureText) => {
207
272
  };
208
273
  }
209
274
  };
210
- var h = (nodeName, vnodeData, ...children) => {
211
- let child = null;
212
- let key = null;
213
- let simple = false;
214
- let lastSimple = false;
215
- const vNodeChildren = [];
216
- const walk = (c) => {
217
- for (let i2 = 0; i2 < c.length; i2++) {
218
- child = c[i2];
219
- if (Array.isArray(child)) {
220
- walk(child);
221
- } else if (child != null && typeof child !== "boolean") {
222
- if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
223
- child = String(child);
224
- }
225
- if (simple && lastSimple) {
226
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
227
- } else {
228
- vNodeChildren.push(simple ? newVNode(null, child) : child);
229
- }
230
- lastSimple = simple;
231
- }
232
- }
233
- };
234
- walk(children);
235
- if (vnodeData) {
236
- if (vnodeData.key) {
237
- key = vnodeData.key;
238
- }
239
- {
240
- const classData = vnodeData.className || vnodeData.class;
241
- if (classData) {
242
- vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
243
- }
244
- }
245
- }
246
- const vnode = newVNode(nodeName, null);
247
- vnode.$attrs$ = vnodeData;
248
- if (vNodeChildren.length > 0) {
249
- vnode.$children$ = vNodeChildren;
250
- }
251
- {
252
- vnode.$key$ = key;
253
- }
254
- return vnode;
255
- };
256
- var newVNode = (tag, text) => {
257
- const vnode = {
258
- $flags$: 0,
259
- $tag$: tag,
260
- $text$: text,
261
- $elm$: null,
262
- $children$: null
263
- };
264
- {
265
- vnode.$attrs$ = null;
266
- }
267
- {
268
- vnode.$key$ = null;
269
- }
270
- return vnode;
271
- };
272
- var Host = {};
273
- var isHost = (node) => node && node.$tag$ === Host;
274
- var parsePropertyValue = (propValue, propType) => {
275
- if (propValue != null && !isComplexType(propValue)) {
276
- if (propType & 4 /* Boolean */) {
277
- return propValue === "false" ? false : propValue === "" || !!propValue;
278
- }
279
- if (propType & 1 /* String */) {
280
- return String(propValue);
281
- }
282
- return propValue;
283
- }
284
- return propValue;
285
- };
286
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
287
- var emitEvent = (elm, name, opts) => {
288
- const ev = plt.ce(name, opts);
289
- elm.dispatchEvent(ev);
290
- return ev;
291
- };
292
275
  var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
293
276
  var registerStyle = (scopeId2, cssText, allowCS) => {
294
277
  let style = styles.get(scopeId2);
@@ -322,7 +305,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
322
305
  }
323
306
  if (!appliedStyles.has(scopeId2)) {
324
307
  {
325
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
308
+ styleElm = win.document.createElement("style");
326
309
  styleElm.innerHTML = style;
327
310
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
328
311
  if (nonce != null) {
@@ -340,7 +323,11 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
340
323
  if (supportsConstructableStylesheets) {
341
324
  const stylesheet = new CSSStyleSheet();
342
325
  stylesheet.replaceSync(style);
343
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
326
+ if (supportsMutableAdoptedStyleSheets) {
327
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
328
+ } else {
329
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
330
+ }
344
331
  } else {
345
332
  const existingStyleContainer = styleContainerNode.querySelector("style");
346
333
  if (existingStyleContainer) {
@@ -365,7 +352,11 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
365
352
  }
366
353
  }
367
354
  } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
368
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
355
+ if (supportsMutableAdoptedStyleSheets) {
356
+ styleContainerNode.adoptedStyleSheets.push(style);
357
+ } else {
358
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
359
+ }
369
360
  }
370
361
  }
371
362
  return scopeId2;
@@ -378,13 +369,112 @@ var attachStyles = (hostRef) => {
378
369
  const scopeId2 = addStyle(
379
370
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
380
371
  cmpMeta);
381
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
372
+ if (flags & 10 /* needsScopedEncapsulation */) {
382
373
  elm["s-sc"] = scopeId2;
383
374
  elm.classList.add(scopeId2 + "-h");
384
375
  }
385
376
  endAttachStyles();
386
377
  };
387
378
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
379
+ var h = (nodeName, vnodeData, ...children) => {
380
+ let child = null;
381
+ let key = null;
382
+ let simple = false;
383
+ let lastSimple = false;
384
+ const vNodeChildren = [];
385
+ const walk = (c) => {
386
+ for (let i2 = 0; i2 < c.length; i2++) {
387
+ child = c[i2];
388
+ if (Array.isArray(child)) {
389
+ walk(child);
390
+ } else if (child != null && typeof child !== "boolean") {
391
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
392
+ child = String(child);
393
+ }
394
+ if (simple && lastSimple) {
395
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
396
+ } else {
397
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
398
+ }
399
+ lastSimple = simple;
400
+ }
401
+ }
402
+ };
403
+ walk(children);
404
+ if (vnodeData) {
405
+ if (vnodeData.key) {
406
+ key = vnodeData.key;
407
+ }
408
+ {
409
+ const classData = vnodeData.className || vnodeData.class;
410
+ if (classData) {
411
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
412
+ }
413
+ }
414
+ }
415
+ const vnode = newVNode(nodeName, null);
416
+ vnode.$attrs$ = vnodeData;
417
+ if (vNodeChildren.length > 0) {
418
+ vnode.$children$ = vNodeChildren;
419
+ }
420
+ {
421
+ vnode.$key$ = key;
422
+ }
423
+ return vnode;
424
+ };
425
+ var newVNode = (tag, text) => {
426
+ const vnode = {
427
+ $flags$: 0,
428
+ $tag$: tag,
429
+ $text$: text,
430
+ $elm$: null,
431
+ $children$: null
432
+ };
433
+ {
434
+ vnode.$attrs$ = null;
435
+ }
436
+ {
437
+ vnode.$key$ = null;
438
+ }
439
+ return vnode;
440
+ };
441
+ var Host = {};
442
+ var isHost = (node) => node && node.$tag$ === Host;
443
+ var createSupportsRuleRe = (selector) => {
444
+ const safeSelector2 = escapeRegExpSpecialCharacters(selector);
445
+ return new RegExp(
446
+ // First capture group: match any context before the selector that's not inside @supports selector()
447
+ // Using negative lookahead to avoid matching inside @supports selector(...) condition
448
+ `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
449
+ "g"
450
+ );
451
+ };
452
+ createSupportsRuleRe("::slotted");
453
+ createSupportsRuleRe(":host");
454
+ createSupportsRuleRe(":host-context");
455
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
456
+ if (propValue != null && !isComplexType(propValue)) {
457
+ if (propType & 4 /* Boolean */) {
458
+ {
459
+ return propValue === "false" ? false : propValue === "" || !!propValue;
460
+ }
461
+ }
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
+ var emitEvent = (elm, name, opts) => {
474
+ const ev = plt.ce(name, opts);
475
+ elm.dispatchEvent(ev);
476
+ return ev;
477
+ };
388
478
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
389
479
  if (oldValue === newValue) {
390
480
  return;
@@ -716,7 +806,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
716
806
  !isInitialRender && BUILD.updatable && oldChildren !== null
717
807
  ) {
718
808
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
719
- }
809
+ } else ;
720
810
  } else if (oldVNode.$text$ !== text) {
721
811
  elm.data = text;
722
812
  }
@@ -736,13 +826,16 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
736
826
  const hostElm = hostRef.$hostElement$;
737
827
  const cmpMeta = hostRef.$cmpMeta$;
738
828
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
739
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
829
+ const isHostElement = isHost(renderFnResults);
830
+ const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
740
831
  hostTagName = hostElm.tagName;
741
832
  if (cmpMeta.$attrsToReflect$) {
742
833
  rootVnode.$attrs$ = rootVnode.$attrs$ || {};
743
- cmpMeta.$attrsToReflect$.map(
744
- ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
745
- );
834
+ cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
835
+ {
836
+ rootVnode.$attrs$[attribute] = hostElm[propName];
837
+ }
838
+ });
746
839
  }
747
840
  if (isInitialLoad && rootVnode.$attrs$) {
748
841
  for (const key of Object.keys(rootVnode.$attrs$)) {
@@ -781,6 +874,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
781
874
  }
782
875
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
783
876
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
877
+ if (isInitialLoad) {
878
+ queueMicrotask(() => {
879
+ dispatch();
880
+ });
881
+ return;
882
+ }
784
883
  return writeTask(dispatch) ;
785
884
  };
786
885
  var dispatchHooks = (hostRef, isInitialLoad) => {
@@ -794,6 +893,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
794
893
  }
795
894
  let maybePromise;
796
895
  if (isInitialLoad) {
896
+ {
897
+ if (hostRef.$fetchedCbList$.length) {
898
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
899
+ }
900
+ }
797
901
  maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
798
902
  } else {
799
903
  maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
@@ -915,6 +1019,9 @@ var addHydratedFlag = (elm) => {
915
1019
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
916
1020
  var setValue = (ref, propName, newVal, cmpMeta) => {
917
1021
  const hostRef = getHostRef(ref);
1022
+ if (!hostRef) {
1023
+ return;
1024
+ }
918
1025
  if (!hostRef) {
919
1026
  throw new Error(
920
1027
  `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).`
@@ -924,7 +1031,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
924
1031
  const oldVal = hostRef.$instanceValues$.get(propName);
925
1032
  const flags = hostRef.$flags$;
926
1033
  const instance = hostRef.$lazyInstance$ ;
927
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1034
+ newVal = parsePropertyValue(
1035
+ newVal,
1036
+ cmpMeta.$members$[propName][0]);
928
1037
  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
929
1038
  const didValueChange = newVal !== oldVal && !areBothNaN;
930
1039
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
@@ -958,9 +1067,17 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
958
1067
  var proxyComponent = (Cstr, cmpMeta, flags) => {
959
1068
  var _a, _b;
960
1069
  const prototype = Cstr.prototype;
961
- if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
962
- if (Cstr.watchers && !cmpMeta.$watchers$) {
963
- cmpMeta.$watchers$ = Cstr.watchers;
1070
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1071
+ {
1072
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1073
+ cmpMeta.$watchers$ = Cstr.watchers;
1074
+ }
1075
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1076
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1077
+ }
1078
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1079
+ cmpMeta.$serializers$ = Cstr.serializers;
1080
+ }
964
1081
  }
965
1082
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
966
1083
  members.map(([memberName, [memberFlags]]) => {
@@ -988,14 +1105,19 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
988
1105
  Object.defineProperty(prototype, memberName, {
989
1106
  set(newValue) {
990
1107
  const ref = getHostRef(this);
1108
+ if (!ref) {
1109
+ return;
1110
+ }
991
1111
  if (origSetter) {
992
1112
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
993
1113
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
994
1114
  newValue = ref.$instanceValues$.get(memberName);
995
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
996
- ref.$instanceValues$.set(memberName, currentValue);
997
1115
  }
998
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1116
+ origSetter.apply(this, [
1117
+ parsePropertyValue(
1118
+ newValue,
1119
+ memberFlags)
1120
+ ]);
999
1121
  newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1000
1122
  setValue(this, memberName, newValue, cmpMeta);
1001
1123
  return;
@@ -1004,7 +1126,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1004
1126
  if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1005
1127
  setValue(this, memberName, newValue, cmpMeta);
1006
1128
  if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1007
- ref.$onReadyPromise$.then(() => {
1129
+ ref.$fetchedCbList$.push(() => {
1008
1130
  if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1009
1131
  ref.$lazyInstance$[memberName] = newValue;
1010
1132
  }
@@ -1017,13 +1139,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1017
1139
  if (!ref.$instanceValues$.get(memberName) && currentValue) {
1018
1140
  ref.$instanceValues$.set(memberName, currentValue);
1019
1141
  }
1020
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1142
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
1143
+ newValue,
1144
+ memberFlags);
1021
1145
  setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1022
1146
  };
1023
1147
  if (ref.$lazyInstance$) {
1024
1148
  setterSetVal();
1025
1149
  } else {
1026
- ref.$onReadyPromise$.then(() => setterSetVal());
1150
+ ref.$fetchedCbList$.push(() => {
1151
+ setterSetVal();
1152
+ });
1027
1153
  }
1028
1154
  }
1029
1155
  }
@@ -1036,16 +1162,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1036
1162
  plt.jmp(() => {
1037
1163
  var _a2;
1038
1164
  const propName = attrNameToPropName.get(attrName);
1165
+ const hostRef = getHostRef(this);
1039
1166
  if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1040
1167
  newValue = this[propName];
1041
1168
  delete this[propName];
1042
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1169
+ }
1170
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1043
1171
  this[propName] == newValue) {
1044
1172
  return;
1045
1173
  } else if (propName == null) {
1046
- const hostRef = getHostRef(this);
1047
1174
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1048
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1175
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1049
1176
  const instance = hostRef.$lazyInstance$ ;
1050
1177
  const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1051
1178
  entry == null ? void 0 : entry.forEach((callbackName) => {
@@ -1056,9 +1183,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1056
1183
  }
1057
1184
  return;
1058
1185
  }
1186
+ const propFlags = members.find(([m]) => m === propName);
1187
+ if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
1188
+ newValue = newValue === null || newValue === "false" ? false : true;
1189
+ }
1059
1190
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1060
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1061
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1191
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1062
1192
  this[propName] = newValue;
1063
1193
  }
1064
1194
  });
@@ -1066,7 +1196,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1066
1196
  Cstr.observedAttributes = Array.from(
1067
1197
  /* @__PURE__ */ new Set([
1068
1198
  ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1069
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1199
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1070
1200
  var _a2;
1071
1201
  const attrName = m[1] || propName;
1072
1202
  attrNameToPropName.set(attrName, propName);
@@ -1103,6 +1233,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1103
1233
  if (!Cstr.isProxied) {
1104
1234
  {
1105
1235
  cmpMeta.$watchers$ = Cstr.watchers;
1236
+ cmpMeta.$serializers$ = Cstr.serializers;
1237
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1106
1238
  }
1107
1239
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1108
1240
  Cstr.isProxied = true;
@@ -1160,6 +1292,9 @@ var fireConnectedCallback = (instance, elm) => {
1160
1292
  var connectedCallback = (elm) => {
1161
1293
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1162
1294
  const hostRef = getHostRef(elm);
1295
+ if (!hostRef) {
1296
+ return;
1297
+ }
1163
1298
  const cmpMeta = hostRef.$cmpMeta$;
1164
1299
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1165
1300
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
@@ -1175,7 +1310,7 @@ var connectedCallback = (elm) => {
1175
1310
  }
1176
1311
  if (cmpMeta.$members$) {
1177
1312
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1178
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1313
+ if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1179
1314
  const value = elm[memberName];
1180
1315
  delete elm[memberName];
1181
1316
  elm[memberName] = value;
@@ -1239,7 +1374,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1239
1374
  let hasSlotRelocation = false;
1240
1375
  lazyBundles.map((lazyBundle) => {
1241
1376
  lazyBundle[1].map((compactMeta) => {
1242
- var _a2;
1377
+ var _a2, _b, _c;
1243
1378
  const cmpMeta = {
1244
1379
  $flags$: compactMeta[0],
1245
1380
  $tagName$: compactMeta[1],
@@ -1257,6 +1392,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1257
1392
  }
1258
1393
  {
1259
1394
  cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1395
+ cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
1396
+ cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
1260
1397
  }
1261
1398
  const tagName = cmpMeta.$tagName$;
1262
1399
  const HostElement = class extends HTMLElement {
@@ -1269,9 +1406,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1269
1406
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1270
1407
  {
1271
1408
  if (!self.shadowRoot) {
1272
- {
1273
- self.attachShadow({ mode: "open" });
1274
- }
1409
+ createShadowRoot.call(self, cmpMeta);
1275
1410
  } else {
1276
1411
  if (self.shadowRoot.mode !== "open") {
1277
1412
  throw new Error(
@@ -1283,7 +1418,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1283
1418
  }
1284
1419
  }
1285
1420
  connectedCallback() {
1286
- getHostRef(this);
1421
+ const hostRef = getHostRef(this);
1422
+ if (!hostRef) {
1423
+ return;
1424
+ }
1287
1425
  if (!this.hasRegisteredEventListeners) {
1288
1426
  this.hasRegisteredEventListeners = true;
1289
1427
  }
@@ -1302,6 +1440,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1302
1440
  plt.raf(() => {
1303
1441
  var _a3;
1304
1442
  const hostRef = getHostRef(this);
1443
+ if (!hostRef) {
1444
+ return;
1445
+ }
1305
1446
  const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1306
1447
  if (i2 > -1) {
1307
1448
  deferredConnectedCallbacks.splice(i2, 1);
@@ -1312,7 +1453,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1312
1453
  });
1313
1454
  }
1314
1455
  componentOnReady() {
1315
- return getHostRef(this).$onReadyPromise$;
1456
+ var _a3;
1457
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
1316
1458
  }
1317
1459
  };
1318
1460
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
@@ -1362,6 +1504,6 @@ exports.h = h;
1362
1504
  exports.promiseResolve = promiseResolve;
1363
1505
  exports.registerInstance = registerInstance;
1364
1506
  exports.setNonce = setNonce;
1365
- //# sourceMappingURL=index-Rab0J0J-.js.map
1507
+ //# sourceMappingURL=index-C2yOCYcM.js.map
1366
1508
 
1367
- //# sourceMappingURL=index-Rab0J0J-.js.map
1509
+ //# sourceMappingURL=index-C2yOCYcM.js.map