@haiilo/catalyst 10.1.0 → 10.2.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 (184) hide show
  1. package/dist/catalyst/catalyst.css +13 -13
  2. package/dist/catalyst/catalyst.esm.js +1 -1
  3. package/dist/catalyst/catalyst.esm.js.map +1 -1
  4. package/dist/catalyst/index.esm.js +2 -3
  5. package/dist/catalyst/index.esm.js.map +1 -1
  6. package/dist/catalyst/p-20919029.js +3 -0
  7. package/dist/catalyst/p-20919029.js.map +1 -0
  8. package/dist/catalyst/p-37905c93.entry.js +10 -0
  9. package/dist/catalyst/p-37905c93.entry.js.map +1 -0
  10. package/dist/catalyst/p-8fc7b0f0.js +2 -0
  11. package/dist/catalyst/p-8fc7b0f0.js.map +1 -0
  12. package/dist/catalyst/p-e1255160.js +2 -0
  13. package/dist/catalyst/p-e1255160.js.map +1 -0
  14. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  15. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  16. package/dist/cjs/cat-alert_26.cjs.entry.js +209 -128
  17. package/dist/cjs/cat-alert_26.cjs.entry.js.map +1 -1
  18. package/dist/cjs/catalyst.cjs.js +5 -3
  19. package/dist/cjs/catalyst.cjs.js.map +1 -1
  20. package/dist/cjs/{index-eb056d5e.js → index-13aff0b4.js} +93 -38
  21. package/dist/cjs/index-13aff0b4.js.map +1 -0
  22. package/dist/cjs/index.cjs.js +9 -4
  23. package/dist/cjs/index.cjs.js.map +1 -1
  24. package/dist/cjs/loader.cjs.js +4 -2
  25. package/dist/cjs/loader.cjs.js.map +1 -1
  26. package/dist/cjs/{of-30c47b72.js → of-a6e7c491.js} +131 -66
  27. package/dist/cjs/of-a6e7c491.js.map +1 -0
  28. package/dist/collection/collection-manifest.json +2 -2
  29. package/dist/collection/components/cat-alert/cat-alert.css +5 -5
  30. package/dist/collection/components/cat-alert/cat-alert.js +1 -1
  31. package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
  32. package/dist/collection/components/cat-avatar/cat-avatar.js.map +1 -1
  33. package/dist/collection/components/cat-badge/cat-badge.css +3 -3
  34. package/dist/collection/components/cat-badge/cat-badge.js +1 -1
  35. package/dist/collection/components/cat-badge/cat-badge.js.map +1 -1
  36. package/dist/collection/components/cat-button/cat-button.css +10 -10
  37. package/dist/collection/components/cat-button/cat-button.js +3 -5
  38. package/dist/collection/components/cat-button/cat-button.js.map +1 -1
  39. package/dist/collection/components/cat-button-group/cat-button-group.js +1 -1
  40. package/dist/collection/components/cat-button-group/cat-button-group.js.map +1 -1
  41. package/dist/collection/components/cat-card/cat-card.js +1 -1
  42. package/dist/collection/components/cat-card/cat-card.js.map +1 -1
  43. package/dist/collection/components/cat-checkbox/cat-checkbox.js +4 -6
  44. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
  45. package/dist/collection/components/cat-datepicker/cat-datepicker.config.js.map +1 -1
  46. package/dist/collection/components/cat-datepicker/cat-datepicker.js +6 -8
  47. package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
  48. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js +2 -2
  49. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js.map +1 -1
  50. package/dist/collection/components/cat-dropdown/cat-dropdown.js +2 -2
  51. package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
  52. package/dist/collection/components/cat-form-group/cat-form-group.js +1 -1
  53. package/dist/collection/components/cat-form-group/cat-form-group.js.map +1 -1
  54. package/dist/collection/components/cat-i18n/cat-i18n-registry.js.map +1 -1
  55. package/dist/collection/components/cat-icon/cat-icon-registry.js.map +1 -1
  56. package/dist/collection/components/cat-icon/cat-icon.js +1 -1
  57. package/dist/collection/components/cat-icon/cat-icon.js.map +1 -1
  58. package/dist/collection/components/cat-input/cat-input.css +13 -13
  59. package/dist/collection/components/cat-input/cat-input.js +6 -8
  60. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  61. package/dist/collection/components/cat-notification/cat-notification.js.map +1 -1
  62. package/dist/collection/components/cat-pagination/cat-pagination.js +2 -2
  63. package/dist/collection/components/cat-pagination/cat-pagination.js.map +1 -1
  64. package/dist/collection/components/cat-radio/cat-radio.js +4 -6
  65. package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
  66. package/dist/collection/components/cat-radio-group/cat-radio-group.js +1 -1
  67. package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
  68. package/dist/collection/components/cat-scrollable/cat-scrollable.js +3 -3
  69. package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
  70. package/dist/collection/components/cat-select/cat-select.css +13 -13
  71. package/dist/collection/components/cat-select/cat-select.js +11 -15
  72. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  73. package/dist/collection/components/cat-select-demo/cat-select-demo.js +1 -1
  74. package/dist/collection/components/cat-select-demo/cat-select-demo.js.map +1 -1
  75. package/dist/collection/components/cat-skeleton/cat-skeleton.js +1 -1
  76. package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +1 -1
  77. package/dist/collection/components/cat-spinner/cat-spinner.js +2 -2
  78. package/dist/collection/components/cat-spinner/cat-spinner.js.map +1 -1
  79. package/dist/collection/components/cat-tab/cat-tab.js +1 -1
  80. package/dist/collection/components/cat-tab/cat-tab.js.map +1 -1
  81. package/dist/collection/components/cat-tabs/cat-tabs.js +7 -11
  82. package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
  83. package/dist/collection/components/cat-textarea/cat-textarea.css +13 -13
  84. package/dist/collection/components/cat-textarea/cat-textarea.js +6 -8
  85. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  86. package/dist/collection/components/cat-toggle/cat-toggle.js +4 -6
  87. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
  88. package/dist/collection/components/cat-tooltip/cat-tooltip.js +3 -3
  89. package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
  90. package/dist/collection/utils/find-closest.js.map +1 -1
  91. package/dist/collection/utils/media-matcher.js.map +1 -1
  92. package/dist/collection/utils/platform.js.map +1 -1
  93. package/dist/collection/utils/setDefault.js.map +1 -1
  94. package/dist/components/cat-alert.js +4 -3
  95. package/dist/components/cat-alert.js.map +1 -1
  96. package/dist/components/cat-avatar2.js +4 -3
  97. package/dist/components/cat-avatar2.js.map +1 -1
  98. package/dist/components/cat-badge.js +4 -3
  99. package/dist/components/cat-badge.js.map +1 -1
  100. package/dist/components/cat-button-group.js +3 -2
  101. package/dist/components/cat-button-group.js.map +1 -1
  102. package/dist/components/cat-button2.js +6 -5
  103. package/dist/components/cat-button2.js.map +1 -1
  104. package/dist/components/cat-card.js +3 -2
  105. package/dist/components/cat-card.js.map +1 -1
  106. package/dist/components/cat-checkbox2.js +5 -4
  107. package/dist/components/cat-checkbox2.js.map +1 -1
  108. package/dist/components/cat-datepicker-inline.js +4 -3
  109. package/dist/components/cat-datepicker-inline.js.map +1 -1
  110. package/dist/components/cat-datepicker.js +4 -3
  111. package/dist/components/cat-datepicker.js.map +1 -1
  112. package/dist/components/cat-datepicker.locale.js +8 -4
  113. package/dist/components/cat-datepicker.locale.js.map +1 -1
  114. package/dist/components/cat-dropdown2.js +3 -2
  115. package/dist/components/cat-dropdown2.js.map +1 -1
  116. package/dist/components/cat-form-group.js +3 -2
  117. package/dist/components/cat-form-group.js.map +1 -1
  118. package/dist/components/cat-i18n-registry.js +7 -7
  119. package/dist/components/cat-i18n-registry.js.map +1 -1
  120. package/dist/components/cat-icon-registry.js +4 -4
  121. package/dist/components/cat-icon-registry.js.map +1 -1
  122. package/dist/components/cat-icon2.js +3 -2
  123. package/dist/components/cat-icon2.js.map +1 -1
  124. package/dist/components/cat-input2.js +8 -7
  125. package/dist/components/cat-input2.js.map +1 -1
  126. package/dist/components/cat-pagination.js +4 -3
  127. package/dist/components/cat-pagination.js.map +1 -1
  128. package/dist/components/cat-radio-group.js +3 -2
  129. package/dist/components/cat-radio-group.js.map +1 -1
  130. package/dist/components/cat-radio.js +5 -4
  131. package/dist/components/cat-radio.js.map +1 -1
  132. package/dist/components/cat-scrollable2.js +5 -4
  133. package/dist/components/cat-scrollable2.js.map +1 -1
  134. package/dist/components/cat-select-demo.js +1 -1
  135. package/dist/components/cat-select-demo.js.map +1 -1
  136. package/dist/components/cat-select2.js +10 -9
  137. package/dist/components/cat-select2.js.map +1 -1
  138. package/dist/components/cat-skeleton2.js +3 -2
  139. package/dist/components/cat-skeleton2.js.map +1 -1
  140. package/dist/components/cat-spinner2.js +4 -3
  141. package/dist/components/cat-spinner2.js.map +1 -1
  142. package/dist/components/cat-tab.js +3 -2
  143. package/dist/components/cat-tab.js.map +1 -1
  144. package/dist/components/cat-tabs.js +3 -2
  145. package/dist/components/cat-tabs.js.map +1 -1
  146. package/dist/components/cat-textarea.js +8 -7
  147. package/dist/components/cat-textarea.js.map +1 -1
  148. package/dist/components/cat-toggle.js +5 -4
  149. package/dist/components/cat-toggle.js.map +1 -1
  150. package/dist/components/cat-tooltip.js +5 -4
  151. package/dist/components/cat-tooltip.js.map +1 -1
  152. package/dist/components/floating-ui.dom.esm.js +97 -45
  153. package/dist/components/floating-ui.dom.esm.js.map +1 -1
  154. package/dist/components/from.js +16 -1
  155. package/dist/components/from.js.map +1 -1
  156. package/dist/components/index.js +9 -4
  157. package/dist/components/index.js.map +1 -1
  158. package/dist/components/loglevel.js +106 -55
  159. package/dist/components/loglevel.js.map +1 -1
  160. package/dist/esm/app-globals-0f993ce5.js +5 -0
  161. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  162. package/dist/esm/cat-alert_26.entry.js +209 -128
  163. package/dist/esm/cat-alert_26.entry.js.map +1 -1
  164. package/dist/esm/catalyst.js +6 -4
  165. package/dist/esm/catalyst.js.map +1 -1
  166. package/dist/esm/{index-acddba36.js → index-ecb4a974.js} +93 -38
  167. package/dist/esm/index-ecb4a974.js.map +1 -0
  168. package/dist/esm/index.js +10 -5
  169. package/dist/esm/index.js.map +1 -1
  170. package/dist/esm/loader.js +5 -3
  171. package/dist/esm/loader.js.map +1 -1
  172. package/dist/esm/{of-4b71dda1.js → of-d37c1933.js} +131 -65
  173. package/dist/esm/of-d37c1933.js.map +1 -0
  174. package/package.json +15 -15
  175. package/dist/catalyst/p-2a5b4714.entry.js +0 -10
  176. package/dist/catalyst/p-2a5b4714.entry.js.map +0 -1
  177. package/dist/catalyst/p-6cd4fa1e.js +0 -3
  178. package/dist/catalyst/p-6cd4fa1e.js.map +0 -1
  179. package/dist/catalyst/p-f5febe1f.js +0 -2
  180. package/dist/catalyst/p-f5febe1f.js.map +0 -1
  181. package/dist/cjs/index-eb056d5e.js.map +0 -1
  182. package/dist/cjs/of-30c47b72.js.map +0 -1
  183. package/dist/esm/index-acddba36.js.map +0 -1
  184. package/dist/esm/of-4b71dda1.js.map +0 -1
@@ -1,8 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-acddba36.js';
2
- export { s as setNonce } from './index-acddba36.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-ecb4a974.js';
2
+ export { s as setNonce } from './index-ecb4a974.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
3
4
 
4
5
  /*
5
- Stencil Client Patch Browser v4.8.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.12.6 | MIT Licensed | https://stenciljs.com
6
7
  */
7
8
  const patchBrowser = () => {
8
9
  const importMeta = import.meta.url;
@@ -13,7 +14,8 @@ const patchBrowser = () => {
13
14
  return promiseResolve(opts);
14
15
  };
15
16
 
16
- patchBrowser().then(options => {
17
+ patchBrowser().then(async (options) => {
18
+ await globalScripts();
17
19
  return bootstrapLazy([["cat-alert_26",[[0,"cat-select-demo"],[1,"cat-datepicker",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[1],"min":[1],"mode":[1],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"step":[2],"attachToElement":[4,"attach-to-element"],"position":[1],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"nativePickerAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]},null,{"value":["onValueChanged"],"disabled":["onDisabledChanged"],"readonly":["onDisabledChanged"],"mode":["onDisabledChanged"],"min":["onMinChanged"],"max":["onMinChanged"]}],[1,"cat-pagination",{"page":[1026],"pageCount":[2,"page-count"],"activePadding":[2,"active-padding"],"sidePadding":[2,"side-padding"],"size":[1],"variant":[1],"round":[4],"compact":[4],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"]}],[1,"cat-tabs",{"activeTab":[1537,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"setActive":[64],"setActiveIndex":[64]},[[0,"keydown","onKeydown"]],{"activeTab":["onActiveTabChange"]}],[1,"cat-alert",{"color":[513],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-textarea",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"disabled":[4],"hint":[1],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"errorMap":[32],"doFocus":[64],"doBlur":[64],"clear":[64]},null,{"errors":["onErrorsChanged"]}],[1,"cat-badge",{"variant":[513],"color":[513],"size":[513],"round":[516],"pulse":[516]}],[1,"cat-button-group",{"a11yLabel":[1,"a11y-label"]}],[1,"cat-card"],[1,"cat-datepicker-inline",{"disabled":[4],"max":[1],"min":[1],"mode":[1],"readonly":[4],"step":[2],"value":[1025],"nativePickerAttributes":[16]},null,{"value":["onValueChanged"],"disabled":["onDisabledChanged"],"readonly":["onDisabledChanged"]}],[1,"cat-form-group",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"labelSize":[1,"label-size"]},null,{"requiredMarker":["onRequiredMarkerChanged"],"horizontal":["onHorizontalChanged"]}],[1,"cat-radio",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[8],"hint":[1],"labelLeft":[4,"label-left"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1032],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"focus","onFocus"],[2,"blur","onBlur"]],{"name":["onNameChanged"],"value":["onValueChanged"],"disabled":["onDisabledChanged"],"labelLeft":["onLabelLeftChanged"]}],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516],"error":[516],"nativeAttributes":[16]},[[0,"click","onClick"]]],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[8],"noValue":[8,"no-value"],"resolvedValue":[1032,"resolved-value"],"hint":[1],"labelLeft":[4,"label-left"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"round":[4],"size":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"],"open":[32]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"identifier":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"tags":[4],"tagHint":[1,"tag-hint"],"noItems":[1,"no-items"],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"connector":[32],"state":[32],"hasSlottedLabel":[32],"hasSlottedHint":[32],"errorMap":[32],"doFocus":[64],"doBlur":[64],"clear":[64],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]],{"connector":["onConnectorChanged"],"value":["onValueChanged"],"errors":["onErrorsChanged"],"state":["onStateChanged"]}],[1,"cat-input",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"autoComplete":[1,"auto-complete"],"clearable":[4],"togglePassword":[4,"toggle-password"],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"isPasswordShown":[32],"errorMap":[32],"doFocus":[64],"doBlur":[64],"clear":[64]},null,{"errors":["onErrorsChanged"]}],[1,"cat-dropdown",{"placement":[1],"noAutoClose":[4,"no-auto-close"],"overflow":[4],"close":[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]},null,{"src":["onSrcChanged"]}],[1,"cat-checkbox",{"checked":[1028],"indeterminate":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[8],"noValue":[8,"no-value"],"resolvedValue":[1032,"resolved-value"],"hint":[1],"labelLeft":[4,"label-left"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"a11yCurrent":[1,"a11y-current"],"nativeAttributes":[16],"nativeContentAttributes":[16],"buttonGroupPosition":[1,"button-group-position"],"_iconOnly":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]},[[0,"click","haltDisabledEvents"]],{"iconOnly":["onIconOnlyChanged"]}],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"iconSrc":[1,"icon-src"],"size":[1],"a11yLabel":[1,"a11y-label"]}]]]], options);
18
20
  });
19
21
 
@@ -1 +1 @@
1
- {"file":"catalyst.js","mappings":";;;AAAA;AACA;AACA;AAGA,MAAM,YAAY,GAAG,MAAM;AAa3B,IAAI,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACvC,IAAI,MAAM,IAAI,GAAiE,EAAE,CAAC;AAClF,IAAI,IAAI,UAAU,KAAK,EAAE,EAAE;AAC3B,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D,KAAK;AACL,IAAI,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;ACpBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAE/B,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC","names":[],"sources":["../node_modules/.pnpm/@stencil+core@4.8.0/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.8.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
1
+ {"file":"catalyst.js","mappings":";;;;AAAA;AACA;AACA;AAGA,MAAM,YAAY,GAAG,MAAM;AAa3B,IAAI,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACvC,IAAI,MAAM,IAAI,GAAiE,EAAE,CAAC;AAClF,IAAI,IAAI,UAAU,KAAK,EAAE,EAAE;AAC3B,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D,KAAK;AACL,IAAI,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;ACpBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE,CAAC;AACxB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC","names":[],"sources":["../node_modules/.pnpm/@stencil+core@4.12.6/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.12.6 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
@@ -10,6 +10,7 @@ const NAMESPACE = 'catalyst';
10
10
  */
11
11
  let scopeId;
12
12
  let hostTagName;
13
+ let useNativeShadowDom = false;
13
14
  let isSvgMode = false;
14
15
  let queuePending = false;
15
16
  const createTime = (fnName, tagName = '') => {
@@ -646,6 +647,9 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
646
647
  }
647
648
  }
648
649
  }
650
+ // This needs to always happen so we can hide nodes that are projected
651
+ // to another component but don't end up in a slot
652
+ elm['s-hn'] = hostTagName;
649
653
  return elm;
650
654
  };
651
655
  /**
@@ -770,8 +774,9 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
770
774
  * @param oldCh the old children of the parent node
771
775
  * @param newVNode the new VNode which will replace the parent
772
776
  * @param newCh the new children of the parent node
777
+ * @param isInitialRender whether or not this is the first render of the vdom
773
778
  */
774
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
779
+ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
775
780
  let oldStartIdx = 0;
776
781
  let newStartIdx = 0;
777
782
  let idxInOld = 0;
@@ -798,25 +803,25 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
798
803
  else if (newEndVnode == null) {
799
804
  newEndVnode = newCh[--newEndIdx];
800
805
  }
801
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
806
+ else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
802
807
  // if the start nodes are the same then we should patch the new VNode
803
808
  // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
804
809
  // indices to reflect that. We don't need to move any DOM Nodes around
805
810
  // since things are matched up in order.
806
- patch(oldStartVnode, newStartVnode);
811
+ patch(oldStartVnode, newStartVnode, isInitialRender);
807
812
  oldStartVnode = oldCh[++oldStartIdx];
808
813
  newStartVnode = newCh[++newStartIdx];
809
814
  }
810
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
815
+ else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
811
816
  // likewise, if the end nodes are the same we patch new onto old and
812
817
  // decrement our end indices, and also likewise in this case we don't
813
818
  // need to move any DOM Nodes.
814
- patch(oldEndVnode, newEndVnode);
819
+ patch(oldEndVnode, newEndVnode, isInitialRender);
815
820
  oldEndVnode = oldCh[--oldEndIdx];
816
821
  newEndVnode = newCh[--newEndIdx];
817
822
  }
818
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
819
- patch(oldStartVnode, newEndVnode);
823
+ else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
824
+ patch(oldStartVnode, newEndVnode, isInitialRender);
820
825
  // We need to move the element for `oldStartVnode` into a position which
821
826
  // will be appropriate for `newEndVnode`. For this we can use
822
827
  // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
@@ -838,8 +843,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
838
843
  oldStartVnode = oldCh[++oldStartIdx];
839
844
  newEndVnode = newCh[--newEndIdx];
840
845
  }
841
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
842
- patch(oldEndVnode, newStartVnode);
846
+ else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
847
+ patch(oldEndVnode, newStartVnode, isInitialRender);
843
848
  // We've already checked above if `oldStartVnode` and `newStartVnode` are
844
849
  // the same node, so since we're here we know that they are not. Thus we
845
850
  // can move the element for `oldEndVnode` _before_ the element for
@@ -876,7 +881,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
876
881
  node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
877
882
  }
878
883
  else {
879
- patch(elmToMove, newStartVnode);
884
+ patch(elmToMove, newStartVnode, isInitialRender);
880
885
  // invalidate the matching old node so that we won't try to update it
881
886
  // again later on
882
887
  oldCh[idxInOld] = undefined;
@@ -927,16 +932,22 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
927
932
  *
928
933
  * @param leftVNode the first VNode to check
929
934
  * @param rightVNode the second VNode to check
935
+ * @param isInitialRender whether or not this is the first render of the vdom
930
936
  * @returns whether they're equal or not
931
937
  */
932
- const isSameVnode = (leftVNode, rightVNode) => {
938
+ const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
933
939
  // compare if two vnode to see if they're "technically" the same
934
940
  // need to have the same element tag, and same key to be the same
935
941
  if (leftVNode.$tag$ === rightVNode.$tag$) {
936
- // this will be set if components in the build have `key` attrs set on them
937
- {
942
+ // this will be set if JSX tags in the build have `key` attrs set on them
943
+ // we only want to check this if we're not on the first render since on
944
+ // first render `leftVNode.$key$` will always be `null`, so we can be led
945
+ // astray and, for instance, accidentally delete a DOM node that we want to
946
+ // keep around.
947
+ if (!isInitialRender) {
938
948
  return leftVNode.$key$ === rightVNode.$key$;
939
949
  }
950
+ return true;
940
951
  }
941
952
  return false;
942
953
  };
@@ -947,8 +958,9 @@ const isSameVnode = (leftVNode, rightVNode) => {
947
958
  *
948
959
  * @param oldVNode an old VNode whose DOM element and children we want to update
949
960
  * @param newVNode a new VNode representing an updated version of the old one
961
+ * @param isInitialRender whether or not this is the first render of the vdom
950
962
  */
951
- const patch = (oldVNode, newVNode) => {
963
+ const patch = (oldVNode, newVNode, isInitialRender = false) => {
952
964
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
953
965
  const oldChildren = oldVNode.$children$;
954
966
  const newChildren = newVNode.$children$;
@@ -961,8 +973,7 @@ const patch = (oldVNode, newVNode) => {
961
973
  isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
962
974
  }
963
975
  {
964
- if (tag === 'slot')
965
- ;
976
+ if (tag === 'slot' && !useNativeShadowDom) ;
966
977
  else {
967
978
  // either this is the first render of an element OR it's an update
968
979
  // AND we already know it's possible it could have changed
@@ -973,7 +984,7 @@ const patch = (oldVNode, newVNode) => {
973
984
  if (oldChildren !== null && newChildren !== null) {
974
985
  // looks like there's child vnodes for both the old and new vnodes
975
986
  // so we need to call `updateChildren` to reconcile them
976
- updateChildren(elm, oldChildren, newVNode, newChildren);
987
+ updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
977
988
  }
978
989
  else if (newChildren !== null) {
979
990
  // no old child vnodes, but there are new child vnodes to add
@@ -1067,8 +1078,9 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1067
1078
  {
1068
1079
  scopeId = hostElm['s-sc'];
1069
1080
  }
1081
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1070
1082
  // synchronous patch
1071
- patch(oldVNode, rootVnode);
1083
+ patch(oldVNode, rootVnode, isInitialLoad);
1072
1084
  };
1073
1085
  const attachToAncestor = (hostRef, ancestorComponent) => {
1074
1086
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
@@ -1540,7 +1552,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1540
1552
  if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1541
1553
  // Let the runtime know that the component has been initialized
1542
1554
  hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1543
- {
1555
+ const bundleId = cmpMeta.$lazyBundleId$;
1556
+ if (bundleId) {
1544
1557
  // lazy loaded components
1545
1558
  // request the component's implementation to be
1546
1559
  // wired up with the host element
@@ -1587,6 +1600,14 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1587
1600
  endNewInstance();
1588
1601
  fireConnectedCallback(hostRef.$lazyInstance$);
1589
1602
  }
1603
+ else {
1604
+ // sync constructor component
1605
+ Cstr = elm.constructor;
1606
+ // wait for the CustomElementRegistry to mark the component as ready before setting `isWatchReady`. Otherwise,
1607
+ // watchers may fire prematurely if `customElements.get()`/`customElements.whenDefined()` resolves _before_
1608
+ // Stencil has completed instantiating the component.
1609
+ customElements.whenDefined(cmpMeta.$tagName$).then(() => (hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */));
1610
+ }
1590
1611
  if (Cstr.style) {
1591
1612
  // this component has styles but we haven't registered them yet
1592
1613
  let style = Cstr.style;
@@ -1783,22 +1804,28 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1783
1804
  }
1784
1805
  });
1785
1806
  });
1786
- // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
1787
- if (hasSlotRelocation) {
1788
- dataStyles.innerHTML += SLOT_FB_CSS;
1789
- }
1790
- // Add hydration styles
1791
- {
1792
- dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
1793
- }
1794
- // If we have styles, add them to the DOM
1795
- if (dataStyles.innerHTML.length) {
1796
- dataStyles.setAttribute('data-styles', '');
1797
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1798
- // Apply CSP nonce to the style tag if it exists
1799
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1800
- if (nonce != null) {
1801
- dataStyles.setAttribute('nonce', nonce);
1807
+ // Only bother generating CSS if we have components
1808
+ // TODO(STENCIL-1118): Add test cases for CSS content based on conditionals
1809
+ if (cmpTags.length > 0) {
1810
+ // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
1811
+ if (hasSlotRelocation) {
1812
+ dataStyles.textContent += SLOT_FB_CSS;
1813
+ }
1814
+ // Add hydration styles
1815
+ {
1816
+ dataStyles.textContent += cmpTags + HYDRATED_CSS;
1817
+ }
1818
+ // If we have styles, add them to the DOM
1819
+ if (dataStyles.innerHTML.length) {
1820
+ dataStyles.setAttribute('data-styles', '');
1821
+ // Apply CSP nonce to the style tag if it exists
1822
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1823
+ if (nonce != null) {
1824
+ dataStyles.setAttribute('nonce', nonce);
1825
+ }
1826
+ // Insert the styles into the document head
1827
+ // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
1828
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1802
1829
  }
1803
1830
  }
1804
1831
  // Process deferred connectedCallbacks now all components have been registered
@@ -1842,7 +1869,12 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
1842
1869
  }
1843
1870
  };
1844
1871
  // prettier-ignore
1845
- const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
1872
+ const hostListenerOpts = (flags) => supportsListenerOptions
1873
+ ? ({
1874
+ passive: (flags & 1 /* LISTENER_FLAGS.Passive */) !== 0,
1875
+ capture: (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0,
1876
+ })
1877
+ : (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
1846
1878
  /**
1847
1879
  * Assigns the given value to the nonce property on the runtime platform object.
1848
1880
  * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
@@ -1853,8 +1885,19 @@ const setNonce = (nonce) => (plt.$nonce$ = nonce);
1853
1885
  /**
1854
1886
  * A WeakMap mapping runtime component references to their corresponding host reference
1855
1887
  * instances.
1888
+ *
1889
+ * **Note**: If we're in an HMR context we need to store a reference to this
1890
+ * value on `window` in order to maintain the mapping of {@link d.RuntimeRef}
1891
+ * to {@link d.HostRef} across HMR updates.
1892
+ *
1893
+ * This is necessary because when HMR updates for a component are processed by
1894
+ * the browser-side dev server client the JS bundle for that component is
1895
+ * re-fetched. Since the module containing {@link hostRefs} is included in
1896
+ * that bundle, if we do not store a reference to it the new iteration of the
1897
+ * component will not have access to the previous hostRef map, leading to a
1898
+ * bug where the new version of the component cannot properly initialize.
1856
1899
  */
1857
- const hostRefs = /*@__PURE__*/ new WeakMap();
1900
+ const hostRefs = new WeakMap();
1858
1901
  /**
1859
1902
  * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
1860
1903
  *
@@ -1934,6 +1977,18 @@ const plt = {
1934
1977
  rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1935
1978
  ce: (eventName, opts) => new CustomEvent(eventName, opts),
1936
1979
  };
1980
+ const supportsListenerOptions = /*@__PURE__*/ (() => {
1981
+ let supportsListenerOptions = false;
1982
+ try {
1983
+ doc.addEventListener('e', null, Object.defineProperty({}, 'passive', {
1984
+ get() {
1985
+ supportsListenerOptions = true;
1986
+ },
1987
+ }));
1988
+ }
1989
+ catch (e) { }
1990
+ return supportsListenerOptions;
1991
+ })();
1937
1992
  const promiseResolve = (v) => Promise.resolve(v);
1938
1993
  const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
1939
1994
  try {
@@ -1989,4 +2044,4 @@ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1989
2044
 
1990
2045
  export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1991
2046
 
1992
- //# sourceMappingURL=index-acddba36.js.map
2047
+ //# sourceMappingURL=index-ecb4a974.js.map