xv-webcomponents 1.0.4-qa.0 → 1.0.6-qa.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 (76) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
  2. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  3. package/dist/cjs/{index-CjhPTfz8.js → index-Dhn61jyG.js} +164 -115
  4. package/dist/cjs/index-Dhn61jyG.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +4 -3
  6. package/dist/cjs/loader.cjs.js.map +1 -1
  7. package/dist/cjs/xv-accordion-v2_41.cjs.entry.js +89 -68
  8. package/dist/cjs/xv-accordion-v2_41.cjs.entry.js.map +1 -1
  9. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +1 -1
  10. package/dist/cjs/xv-webcomponents.cjs.js +5 -4
  11. package/dist/cjs/xv-webcomponents.cjs.js.map +1 -1
  12. package/dist/collection/collection-manifest.json +1 -1
  13. package/dist/collection/components/xv-header/xv-header.css +106 -0
  14. package/dist/collection/components/xv-header/xv-header.js +6 -3
  15. package/dist/collection/components/xv-header/xv-header.js.map +1 -1
  16. package/dist/collection/components/xv-mega-menu/xv-mega-menu.config.js +23 -22
  17. package/dist/collection/components/xv-mega-menu/xv-mega-menu.config.js.map +1 -1
  18. package/dist/collection/components/xv-mega-menu/xv-mega-menu.css +147 -20
  19. package/dist/collection/components/xv-mega-menu/xv-mega-menu.js +47 -13
  20. package/dist/collection/components/xv-mega-menu/xv-mega-menu.js.map +1 -1
  21. package/dist/collection/components/xv-mega-menu/xv-mega-menu.model.js.map +1 -1
  22. package/dist/collection/components/xv-modal/xv-modal.js +1 -1
  23. package/dist/collection/components/xv-notification/xv-notification.js +1 -1
  24. package/dist/collection/components/xv-number-input/xv-number-input.js +2 -2
  25. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js +1 -1
  26. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js +2 -2
  27. package/dist/collection/components/xv-pagination/xv-pagination.js +1 -1
  28. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +1 -1
  29. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +1 -1
  30. package/dist/collection/components/xv-slider/xv-slider.js +1 -1
  31. package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +1 -1
  32. package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js +1 -1
  33. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +1 -1
  34. package/dist/collection/components/xv-table/xv-table.js +1 -1
  35. package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js +1 -1
  36. package/dist/collection/components/xv-tag/xv-tag.js +1 -1
  37. package/dist/collection/components/xv-text-input/xv-text-input.js +2 -2
  38. package/dist/collection/components/xv-textarea/xv-textarea.js +2 -2
  39. package/dist/collection/components/xv-tile/xv-tile.js +2 -2
  40. package/dist/collection/components/xv-toggle/xv-toggle.js +1 -1
  41. package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +1 -1
  42. package/dist/collection/components/xv-tooltip/xv-tooltip.js +2 -2
  43. package/dist/esm/app-globals-DQuL1Twl.js +6 -0
  44. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  45. package/dist/esm/{index-BQoQLd_U.js → index--DUErNf0.js} +165 -115
  46. package/dist/esm/index--DUErNf0.js.map +1 -0
  47. package/dist/esm/loader.js +4 -3
  48. package/dist/esm/loader.js.map +1 -1
  49. package/dist/esm/xv-accordion-v2_41.entry.js +89 -68
  50. package/dist/esm/xv-accordion-v2_41.entry.js.map +1 -1
  51. package/dist/esm/xv-breadcrumbs-v2.entry.js +1 -1
  52. package/dist/esm/xv-webcomponents.js +5 -4
  53. package/dist/esm/xv-webcomponents.js.map +1 -1
  54. package/dist/types/components/xv-header/xv-header.d.ts +1 -0
  55. package/dist/types/components/xv-mega-menu/xv-mega-menu.d.ts +5 -0
  56. package/dist/types/components/xv-mega-menu/xv-mega-menu.model.d.ts +1 -0
  57. package/dist/types/components.d.ts +16 -0
  58. package/dist/types/stencil-public-runtime.d.ts +12 -5
  59. package/dist/xv-webcomponents/loader.esm.js.map +1 -1
  60. package/dist/xv-webcomponents/p--DUErNf0.js +3 -0
  61. package/dist/xv-webcomponents/p--DUErNf0.js.map +1 -0
  62. package/dist/xv-webcomponents/p-158c9ff0.entry.js +2 -0
  63. package/dist/xv-webcomponents/p-158c9ff0.entry.js.map +1 -0
  64. package/dist/xv-webcomponents/p-DQuL1Twl.js +2 -0
  65. package/dist/xv-webcomponents/p-DQuL1Twl.js.map +1 -0
  66. package/dist/xv-webcomponents/{p-a8d785da.entry.js → p-e180628a.entry.js} +2 -2
  67. package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -1
  68. package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
  69. package/package.json +2 -2
  70. package/dist/cjs/index-CjhPTfz8.js.map +0 -1
  71. package/dist/esm/index-BQoQLd_U.js.map +0 -1
  72. package/dist/xv-webcomponents/p-BQoQLd_U.js +0 -3
  73. package/dist/xv-webcomponents/p-BQoQLd_U.js.map +0 -1
  74. package/dist/xv-webcomponents/p-c7c24c5f.entry.js +0 -2
  75. package/dist/xv-webcomponents/p-c7c24c5f.entry.js.map +0 -1
  76. /package/dist/xv-webcomponents/{p-a8d785da.entry.js.map → p-e180628a.entry.js.map} +0 -0
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ const globalScripts = () => {};
4
+
5
+ exports.globalScripts = globalScripts;
6
+ //# sourceMappingURL=app-globals-V2Kpy_OQ.js.map
7
+
8
+ //# sourceMappingURL=app-globals-V2Kpy_OQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-globals-V2Kpy_OQ.js","sources":["@stencil/core/internal/app-globals"],"sourcesContent":["export const globalScripts = () => {};\nexport const globalStyles = \"\";\n"],"names":[],"mappings":";;AAAY,MAAC,aAAa,GAAG,MAAM;;;;"}
@@ -3,11 +3,8 @@
3
3
  const NAMESPACE = 'xv-webcomponents';
4
4
  const BUILD = /* xv-webcomponents */ { hydratedSelectorName: "hydrated", lazyLoad: true, slotRelocation: true, updatable: true};
5
5
 
6
- const globalScripts = () => {};
7
- const globalStyles = "";
8
-
9
6
  /*
10
- Stencil Client Platform v4.35.1 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Platform v4.36.3 | MIT Licensed | https://stenciljs.com
11
8
  */
12
9
  var __defProp = Object.defineProperty;
13
10
  var __export = (target, all) => {
@@ -130,6 +127,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
130
127
  }
131
128
  return false;
132
129
  })() ;
130
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
133
131
  var queuePending = false;
134
132
  var queueDomReads = [];
135
133
  var queueDomWrites = [];
@@ -229,12 +227,24 @@ var unwrapErr = (result) => {
229
227
  throw result.value;
230
228
  }
231
229
  };
230
+
231
+ // src/utils/style.ts
232
+ function createStyleSheetIfNeededAndSupported(styles2) {
233
+ return void 0;
234
+ }
235
+
236
+ // src/utils/shadow-root.ts
237
+ var globalStyleSheet;
232
238
  function createShadowRoot(cmpMeta) {
239
+ var _a;
233
240
  const shadowRoot = this.attachShadow({ mode: "open" });
234
- if (supportsConstructableStylesheets) {
235
- const sheet = new CSSStyleSheet();
236
- sheet.replaceSync(globalStyles);
237
- shadowRoot.adoptedStyleSheets.push(sheet);
241
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
242
+ if (globalStyleSheet) {
243
+ if (supportsMutableAdoptedStyleSheets) {
244
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
245
+ } else {
246
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
247
+ }
238
248
  }
239
249
  }
240
250
  var updateFallbackSlotVisibility = (elm) => {
@@ -357,6 +367,110 @@ var uniqueTime = (key, measureText) => {
357
367
  };
358
368
  }
359
369
  };
370
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
371
+ var registerStyle = (scopeId2, cssText, allowCS) => {
372
+ let style = styles.get(scopeId2);
373
+ if (supportsConstructableStylesheets && allowCS) {
374
+ style = style || new CSSStyleSheet();
375
+ if (typeof style === "string") {
376
+ style = cssText;
377
+ } else {
378
+ style.replaceSync(cssText);
379
+ }
380
+ } else {
381
+ style = cssText;
382
+ }
383
+ styles.set(scopeId2, style);
384
+ };
385
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
386
+ var _a;
387
+ const scopeId2 = getScopeId(cmpMeta);
388
+ const style = styles.get(scopeId2);
389
+ if (!win.document) {
390
+ return scopeId2;
391
+ }
392
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
393
+ if (style) {
394
+ if (typeof style === "string") {
395
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
396
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
397
+ let styleElm;
398
+ if (!appliedStyles) {
399
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
400
+ }
401
+ if (!appliedStyles.has(scopeId2)) {
402
+ {
403
+ styleElm = win.document.createElement("style");
404
+ styleElm.innerHTML = style;
405
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
406
+ if (nonce != null) {
407
+ styleElm.setAttribute("nonce", nonce);
408
+ }
409
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
410
+ if (styleContainerNode.nodeName === "HEAD") {
411
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
412
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
413
+ styleContainerNode.insertBefore(
414
+ styleElm,
415
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
416
+ );
417
+ } else if ("host" in styleContainerNode) {
418
+ if (supportsConstructableStylesheets) {
419
+ const stylesheet = new CSSStyleSheet();
420
+ stylesheet.replaceSync(style);
421
+ if (supportsMutableAdoptedStyleSheets) {
422
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
423
+ } else {
424
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
425
+ }
426
+ } else {
427
+ const existingStyleContainer = styleContainerNode.querySelector("style");
428
+ if (existingStyleContainer) {
429
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
430
+ } else {
431
+ styleContainerNode.prepend(styleElm);
432
+ }
433
+ }
434
+ } else {
435
+ styleContainerNode.append(styleElm);
436
+ }
437
+ }
438
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
439
+ styleContainerNode.insertBefore(styleElm, null);
440
+ }
441
+ }
442
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
443
+ styleElm.innerHTML += SLOT_FB_CSS;
444
+ }
445
+ if (appliedStyles) {
446
+ appliedStyles.add(scopeId2);
447
+ }
448
+ }
449
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
450
+ if (supportsMutableAdoptedStyleSheets) {
451
+ styleContainerNode.adoptedStyleSheets.push(style);
452
+ } else {
453
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
454
+ }
455
+ }
456
+ }
457
+ return scopeId2;
458
+ };
459
+ var attachStyles = (hostRef) => {
460
+ const cmpMeta = hostRef.$cmpMeta$;
461
+ const elm = hostRef.$hostElement$;
462
+ const flags = cmpMeta.$flags$;
463
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
464
+ const scopeId2 = addStyle(
465
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
466
+ cmpMeta);
467
+ if (flags & 10 /* needsScopedEncapsulation */) {
468
+ elm["s-sc"] = scopeId2;
469
+ elm.classList.add(scopeId2 + "-h");
470
+ }
471
+ endAttachStyles();
472
+ };
473
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
360
474
  var h = (nodeName, vnodeData, ...children) => {
361
475
  let child = null;
362
476
  let key = null;
@@ -481,6 +595,12 @@ createSupportsRuleRe("::slotted");
481
595
  createSupportsRuleRe(":host");
482
596
  createSupportsRuleRe(":host-context");
483
597
  var parsePropertyValue = (propValue, propType, isFormAssociated) => {
598
+ if (typeof propValue === "string" && (propType & 16 /* Unknown */ || propType & 8 /* Any */) && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
599
+ try {
600
+ return JSON.parse(propValue);
601
+ } catch (e) {
602
+ }
603
+ }
484
604
  if (propValue != null && !isComplexType(propValue)) {
485
605
  if (propType & 4 /* Boolean */) {
486
606
  if (isFormAssociated && typeof propValue === "string") {
@@ -499,7 +619,10 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
499
619
  }
500
620
  return propValue;
501
621
  };
502
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
622
+ var getElement = (ref) => {
623
+ var _a;
624
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
625
+ };
503
626
 
504
627
  // src/runtime/event-emitter.ts
505
628
  var createEvent = (ref, name, flags) => {
@@ -520,102 +643,6 @@ var emitEvent = (elm, name, opts) => {
520
643
  elm.dispatchEvent(ev);
521
644
  return ev;
522
645
  };
523
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
524
- var registerStyle = (scopeId2, cssText, allowCS) => {
525
- let style = styles.get(scopeId2);
526
- if (supportsConstructableStylesheets && allowCS) {
527
- style = style || new CSSStyleSheet();
528
- if (typeof style === "string") {
529
- style = cssText;
530
- } else {
531
- style.replaceSync(cssText);
532
- }
533
- } else {
534
- style = cssText;
535
- }
536
- styles.set(scopeId2, style);
537
- };
538
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
539
- var _a;
540
- const scopeId2 = getScopeId(cmpMeta);
541
- const style = styles.get(scopeId2);
542
- if (!win.document) {
543
- return scopeId2;
544
- }
545
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
546
- if (style) {
547
- if (typeof style === "string") {
548
- styleContainerNode = styleContainerNode.head || styleContainerNode;
549
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
550
- let styleElm;
551
- if (!appliedStyles) {
552
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
553
- }
554
- if (!appliedStyles.has(scopeId2)) {
555
- {
556
- styleElm = win.document.createElement("style");
557
- styleElm.innerHTML = style;
558
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
559
- if (nonce != null) {
560
- styleElm.setAttribute("nonce", nonce);
561
- }
562
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
563
- if (styleContainerNode.nodeName === "HEAD") {
564
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
565
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
566
- styleContainerNode.insertBefore(
567
- styleElm,
568
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
569
- );
570
- } else if ("host" in styleContainerNode) {
571
- if (supportsConstructableStylesheets) {
572
- const stylesheet = new CSSStyleSheet();
573
- stylesheet.replaceSync(style);
574
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
575
- } else {
576
- const existingStyleContainer = styleContainerNode.querySelector("style");
577
- if (existingStyleContainer) {
578
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
579
- } else {
580
- styleContainerNode.prepend(styleElm);
581
- }
582
- }
583
- } else {
584
- styleContainerNode.append(styleElm);
585
- }
586
- }
587
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
588
- styleContainerNode.insertBefore(styleElm, null);
589
- }
590
- }
591
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
592
- styleElm.innerHTML += SLOT_FB_CSS;
593
- }
594
- if (appliedStyles) {
595
- appliedStyles.add(scopeId2);
596
- }
597
- }
598
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
599
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
600
- }
601
- }
602
- return scopeId2;
603
- };
604
- var attachStyles = (hostRef) => {
605
- const cmpMeta = hostRef.$cmpMeta$;
606
- const elm = hostRef.$hostElement$;
607
- const flags = cmpMeta.$flags$;
608
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
609
- const scopeId2 = addStyle(
610
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
611
- cmpMeta);
612
- if (flags & 10 /* needsScopedEncapsulation */) {
613
- elm["s-sc"] = scopeId2;
614
- elm.classList.add(scopeId2 + "-h");
615
- }
616
- endAttachStyles();
617
- };
618
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
619
646
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
620
647
  if (oldValue === newValue) {
621
648
  return;
@@ -1036,7 +1063,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1036
1063
  !isInitialRender && BUILD.updatable && oldChildren !== null
1037
1064
  ) {
1038
1065
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
1039
- }
1066
+ } else ;
1040
1067
  if (isSvgMode && tag === "svg") {
1041
1068
  isSvgMode = false;
1042
1069
  }
@@ -1229,6 +1256,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
1229
1256
  }
1230
1257
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1231
1258
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1259
+ if (isInitialLoad) {
1260
+ queueMicrotask(() => {
1261
+ dispatch();
1262
+ });
1263
+ return;
1264
+ }
1232
1265
  return writeTask(dispatch) ;
1233
1266
  };
1234
1267
  var dispatchHooks = (hostRef, isInitialLoad) => {
@@ -1373,6 +1406,9 @@ var addHydratedFlag = (elm) => {
1373
1406
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1374
1407
  var setValue = (ref, propName, newVal, cmpMeta) => {
1375
1408
  const hostRef = getHostRef(ref);
1409
+ if (!hostRef) {
1410
+ return;
1411
+ }
1376
1412
  if (!hostRef) {
1377
1413
  throw new Error(
1378
1414
  `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).`
@@ -1424,10 +1460,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1424
1460
  FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
1425
1461
  Object.defineProperty(prototype, cbName, {
1426
1462
  value(...args) {
1463
+ var _a2;
1427
1464
  const hostRef = getHostRef(this);
1428
- const instance = hostRef.$lazyInstance$ ;
1465
+ const instance = hostRef == null ? void 0 : hostRef.$lazyInstance$ ;
1429
1466
  if (!instance) {
1430
- hostRef.$onReadyPromise$.then((asyncInstance) => {
1467
+ (_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {
1431
1468
  const cb = asyncInstance[cbName];
1432
1469
  typeof cb === "function" && cb.call(asyncInstance, ...args);
1433
1470
  });
@@ -1469,6 +1506,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1469
1506
  Object.defineProperty(prototype, memberName, {
1470
1507
  set(newValue) {
1471
1508
  const ref = getHostRef(this);
1509
+ if (!ref) {
1510
+ return;
1511
+ }
1472
1512
  if (origSetter) {
1473
1513
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1474
1514
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
@@ -1547,7 +1587,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1547
1587
  } else if (propName == null) {
1548
1588
  const hostRef = getHostRef(this);
1549
1589
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1550
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1590
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1551
1591
  const instance = hostRef.$lazyInstance$ ;
1552
1592
  const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1553
1593
  entry == null ? void 0 : entry.forEach((callbackName) => {
@@ -1568,7 +1608,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1568
1608
  Cstr.observedAttributes = Array.from(
1569
1609
  /* @__PURE__ */ new Set([
1570
1610
  ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1571
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1611
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1572
1612
  var _a2;
1573
1613
  const attrName = m[1] || propName;
1574
1614
  attrNameToPropName.set(attrName, propName);
@@ -1662,6 +1702,9 @@ var fireConnectedCallback = (instance, elm) => {
1662
1702
  var connectedCallback = (elm) => {
1663
1703
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1664
1704
  const hostRef = getHostRef(elm);
1705
+ if (!hostRef) {
1706
+ return;
1707
+ }
1665
1708
  const cmpMeta = hostRef.$cmpMeta$;
1666
1709
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1667
1710
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
@@ -1723,7 +1766,7 @@ var disconnectedCallback = async (elm) => {
1723
1766
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1724
1767
  const hostRef = getHostRef(elm);
1725
1768
  {
1726
- if (hostRef.$rmListeners$) {
1769
+ if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
1727
1770
  hostRef.$rmListeners$.map((rmListener) => rmListener());
1728
1771
  hostRef.$rmListeners$ = void 0;
1729
1772
  }
@@ -1810,6 +1853,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1810
1853
  }
1811
1854
  connectedCallback() {
1812
1855
  const hostRef = getHostRef(this);
1856
+ if (!hostRef) {
1857
+ return;
1858
+ }
1813
1859
  if (!this.hasRegisteredEventListeners) {
1814
1860
  this.hasRegisteredEventListeners = true;
1815
1861
  addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
@@ -1829,6 +1875,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1829
1875
  plt.raf(() => {
1830
1876
  var _a3;
1831
1877
  const hostRef = getHostRef(this);
1878
+ if (!hostRef) {
1879
+ return;
1880
+ }
1832
1881
  const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1833
1882
  if (i2 > -1) {
1834
1883
  deferredConnectedCallbacks.splice(i2, 1);
@@ -1839,7 +1888,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1839
1888
  });
1840
1889
  }
1841
1890
  componentOnReady() {
1842
- return getHostRef(this).$onReadyPromise$;
1891
+ var _a3;
1892
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
1843
1893
  }
1844
1894
  };
1845
1895
  if (cmpMeta.$flags$ & 64 /* formAssociated */) {
@@ -1934,11 +1984,10 @@ exports.Host = Host;
1934
1984
  exports.bootstrapLazy = bootstrapLazy;
1935
1985
  exports.createEvent = createEvent;
1936
1986
  exports.getElement = getElement;
1937
- exports.globalScripts = globalScripts;
1938
1987
  exports.h = h;
1939
1988
  exports.promiseResolve = promiseResolve;
1940
1989
  exports.registerInstance = registerInstance;
1941
1990
  exports.setNonce = setNonce;
1942
- //# sourceMappingURL=index-CjhPTfz8.js.map
1991
+ //# sourceMappingURL=index-Dhn61jyG.js.map
1943
1992
 
1944
- //# sourceMappingURL=index-CjhPTfz8.js.map
1993
+ //# sourceMappingURL=index-Dhn61jyG.js.map