@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
@@ -2,10 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-eb056d5e.js');
5
+ const index = require('./index-13aff0b4.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
6
7
 
7
8
  /*
8
- Stencil Client Patch Browser v4.8.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.12.6 | MIT Licensed | https://stenciljs.com
9
10
  */
10
11
  const patchBrowser = () => {
11
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('catalyst.cjs.js', document.baseURI).href));
@@ -16,7 +17,8 @@ const patchBrowser = () => {
16
17
  return index.promiseResolve(opts);
17
18
  };
18
19
 
19
- patchBrowser().then(options => {
20
+ patchBrowser().then(async (options) => {
21
+ await appGlobals.globalScripts();
20
22
  return index.bootstrapLazy([["cat-alert_26.cjs",[[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);
21
23
  });
22
24
 
@@ -1 +1 @@
1
- {"file":"catalyst.cjs.js","mappings":";;;;;;AAAA;AACA;AACA;AAGA,MAAM,YAAY,GAAG,MAAM;AAa3B,IAAI,MAAM,UAAU,GAAG,0MAAe,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,OAAOA,oBAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;ACpBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAE/B,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC;;;;","names":["promiseResolve","bootstrapLazy"],"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.cjs.js","mappings":";;;;;;;AAAA;AACA;AACA;AAGA,MAAM,YAAY,GAAG,MAAM;AAa3B,IAAI,MAAM,UAAU,GAAG,0MAAe,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,OAAOA,oBAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;ACpBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAMC,wBAAa,EAAE,CAAC;AACxB,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC;;;;","names":["promiseResolve","globalScripts","bootstrapLazy"],"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}
@@ -32,6 +32,7 @@ const NAMESPACE = 'catalyst';
32
32
  */
33
33
  let scopeId;
34
34
  let hostTagName;
35
+ let useNativeShadowDom = false;
35
36
  let isSvgMode = false;
36
37
  let queuePending = false;
37
38
  const createTime = (fnName, tagName = '') => {
@@ -668,6 +669,9 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
668
669
  }
669
670
  }
670
671
  }
672
+ // This needs to always happen so we can hide nodes that are projected
673
+ // to another component but don't end up in a slot
674
+ elm['s-hn'] = hostTagName;
671
675
  return elm;
672
676
  };
673
677
  /**
@@ -792,8 +796,9 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
792
796
  * @param oldCh the old children of the parent node
793
797
  * @param newVNode the new VNode which will replace the parent
794
798
  * @param newCh the new children of the parent node
799
+ * @param isInitialRender whether or not this is the first render of the vdom
795
800
  */
796
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
801
+ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
797
802
  let oldStartIdx = 0;
798
803
  let newStartIdx = 0;
799
804
  let idxInOld = 0;
@@ -820,25 +825,25 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
820
825
  else if (newEndVnode == null) {
821
826
  newEndVnode = newCh[--newEndIdx];
822
827
  }
823
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
828
+ else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
824
829
  // if the start nodes are the same then we should patch the new VNode
825
830
  // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
826
831
  // indices to reflect that. We don't need to move any DOM Nodes around
827
832
  // since things are matched up in order.
828
- patch(oldStartVnode, newStartVnode);
833
+ patch(oldStartVnode, newStartVnode, isInitialRender);
829
834
  oldStartVnode = oldCh[++oldStartIdx];
830
835
  newStartVnode = newCh[++newStartIdx];
831
836
  }
832
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
837
+ else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
833
838
  // likewise, if the end nodes are the same we patch new onto old and
834
839
  // decrement our end indices, and also likewise in this case we don't
835
840
  // need to move any DOM Nodes.
836
- patch(oldEndVnode, newEndVnode);
841
+ patch(oldEndVnode, newEndVnode, isInitialRender);
837
842
  oldEndVnode = oldCh[--oldEndIdx];
838
843
  newEndVnode = newCh[--newEndIdx];
839
844
  }
840
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
841
- patch(oldStartVnode, newEndVnode);
845
+ else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
846
+ patch(oldStartVnode, newEndVnode, isInitialRender);
842
847
  // We need to move the element for `oldStartVnode` into a position which
843
848
  // will be appropriate for `newEndVnode`. For this we can use
844
849
  // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
@@ -860,8 +865,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
860
865
  oldStartVnode = oldCh[++oldStartIdx];
861
866
  newEndVnode = newCh[--newEndIdx];
862
867
  }
863
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
864
- patch(oldEndVnode, newStartVnode);
868
+ else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
869
+ patch(oldEndVnode, newStartVnode, isInitialRender);
865
870
  // We've already checked above if `oldStartVnode` and `newStartVnode` are
866
871
  // the same node, so since we're here we know that they are not. Thus we
867
872
  // can move the element for `oldEndVnode` _before_ the element for
@@ -898,7 +903,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
898
903
  node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
899
904
  }
900
905
  else {
901
- patch(elmToMove, newStartVnode);
906
+ patch(elmToMove, newStartVnode, isInitialRender);
902
907
  // invalidate the matching old node so that we won't try to update it
903
908
  // again later on
904
909
  oldCh[idxInOld] = undefined;
@@ -949,16 +954,22 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
949
954
  *
950
955
  * @param leftVNode the first VNode to check
951
956
  * @param rightVNode the second VNode to check
957
+ * @param isInitialRender whether or not this is the first render of the vdom
952
958
  * @returns whether they're equal or not
953
959
  */
954
- const isSameVnode = (leftVNode, rightVNode) => {
960
+ const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
955
961
  // compare if two vnode to see if they're "technically" the same
956
962
  // need to have the same element tag, and same key to be the same
957
963
  if (leftVNode.$tag$ === rightVNode.$tag$) {
958
- // this will be set if components in the build have `key` attrs set on them
959
- {
964
+ // this will be set if JSX tags in the build have `key` attrs set on them
965
+ // we only want to check this if we're not on the first render since on
966
+ // first render `leftVNode.$key$` will always be `null`, so we can be led
967
+ // astray and, for instance, accidentally delete a DOM node that we want to
968
+ // keep around.
969
+ if (!isInitialRender) {
960
970
  return leftVNode.$key$ === rightVNode.$key$;
961
971
  }
972
+ return true;
962
973
  }
963
974
  return false;
964
975
  };
@@ -969,8 +980,9 @@ const isSameVnode = (leftVNode, rightVNode) => {
969
980
  *
970
981
  * @param oldVNode an old VNode whose DOM element and children we want to update
971
982
  * @param newVNode a new VNode representing an updated version of the old one
983
+ * @param isInitialRender whether or not this is the first render of the vdom
972
984
  */
973
- const patch = (oldVNode, newVNode) => {
985
+ const patch = (oldVNode, newVNode, isInitialRender = false) => {
974
986
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
975
987
  const oldChildren = oldVNode.$children$;
976
988
  const newChildren = newVNode.$children$;
@@ -983,8 +995,7 @@ const patch = (oldVNode, newVNode) => {
983
995
  isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
984
996
  }
985
997
  {
986
- if (tag === 'slot')
987
- ;
998
+ if (tag === 'slot' && !useNativeShadowDom) ;
988
999
  else {
989
1000
  // either this is the first render of an element OR it's an update
990
1001
  // AND we already know it's possible it could have changed
@@ -995,7 +1006,7 @@ const patch = (oldVNode, newVNode) => {
995
1006
  if (oldChildren !== null && newChildren !== null) {
996
1007
  // looks like there's child vnodes for both the old and new vnodes
997
1008
  // so we need to call `updateChildren` to reconcile them
998
- updateChildren(elm, oldChildren, newVNode, newChildren);
1009
+ updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
999
1010
  }
1000
1011
  else if (newChildren !== null) {
1001
1012
  // no old child vnodes, but there are new child vnodes to add
@@ -1089,8 +1100,9 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1089
1100
  {
1090
1101
  scopeId = hostElm['s-sc'];
1091
1102
  }
1103
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1092
1104
  // synchronous patch
1093
- patch(oldVNode, rootVnode);
1105
+ patch(oldVNode, rootVnode, isInitialLoad);
1094
1106
  };
1095
1107
  const attachToAncestor = (hostRef, ancestorComponent) => {
1096
1108
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
@@ -1562,7 +1574,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1562
1574
  if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1563
1575
  // Let the runtime know that the component has been initialized
1564
1576
  hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1565
- {
1577
+ const bundleId = cmpMeta.$lazyBundleId$;
1578
+ if (bundleId) {
1566
1579
  // lazy loaded components
1567
1580
  // request the component's implementation to be
1568
1581
  // wired up with the host element
@@ -1609,6 +1622,14 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1609
1622
  endNewInstance();
1610
1623
  fireConnectedCallback(hostRef.$lazyInstance$);
1611
1624
  }
1625
+ else {
1626
+ // sync constructor component
1627
+ Cstr = elm.constructor;
1628
+ // wait for the CustomElementRegistry to mark the component as ready before setting `isWatchReady`. Otherwise,
1629
+ // watchers may fire prematurely if `customElements.get()`/`customElements.whenDefined()` resolves _before_
1630
+ // Stencil has completed instantiating the component.
1631
+ customElements.whenDefined(cmpMeta.$tagName$).then(() => (hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */));
1632
+ }
1612
1633
  if (Cstr.style) {
1613
1634
  // this component has styles but we haven't registered them yet
1614
1635
  let style = Cstr.style;
@@ -1805,22 +1826,28 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1805
1826
  }
1806
1827
  });
1807
1828
  });
1808
- // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
1809
- if (hasSlotRelocation) {
1810
- dataStyles.innerHTML += SLOT_FB_CSS;
1811
- }
1812
- // Add hydration styles
1813
- {
1814
- dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
1815
- }
1816
- // If we have styles, add them to the DOM
1817
- if (dataStyles.innerHTML.length) {
1818
- dataStyles.setAttribute('data-styles', '');
1819
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1820
- // Apply CSP nonce to the style tag if it exists
1821
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1822
- if (nonce != null) {
1823
- dataStyles.setAttribute('nonce', nonce);
1829
+ // Only bother generating CSS if we have components
1830
+ // TODO(STENCIL-1118): Add test cases for CSS content based on conditionals
1831
+ if (cmpTags.length > 0) {
1832
+ // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
1833
+ if (hasSlotRelocation) {
1834
+ dataStyles.textContent += SLOT_FB_CSS;
1835
+ }
1836
+ // Add hydration styles
1837
+ {
1838
+ dataStyles.textContent += cmpTags + HYDRATED_CSS;
1839
+ }
1840
+ // If we have styles, add them to the DOM
1841
+ if (dataStyles.innerHTML.length) {
1842
+ dataStyles.setAttribute('data-styles', '');
1843
+ // Apply CSP nonce to the style tag if it exists
1844
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1845
+ if (nonce != null) {
1846
+ dataStyles.setAttribute('nonce', nonce);
1847
+ }
1848
+ // Insert the styles into the document head
1849
+ // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
1850
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1824
1851
  }
1825
1852
  }
1826
1853
  // Process deferred connectedCallbacks now all components have been registered
@@ -1864,7 +1891,12 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
1864
1891
  }
1865
1892
  };
1866
1893
  // prettier-ignore
1867
- const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
1894
+ const hostListenerOpts = (flags) => supportsListenerOptions
1895
+ ? ({
1896
+ passive: (flags & 1 /* LISTENER_FLAGS.Passive */) !== 0,
1897
+ capture: (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0,
1898
+ })
1899
+ : (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
1868
1900
  /**
1869
1901
  * Assigns the given value to the nonce property on the runtime platform object.
1870
1902
  * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
@@ -1875,8 +1907,19 @@ const setNonce = (nonce) => (plt.$nonce$ = nonce);
1875
1907
  /**
1876
1908
  * A WeakMap mapping runtime component references to their corresponding host reference
1877
1909
  * instances.
1910
+ *
1911
+ * **Note**: If we're in an HMR context we need to store a reference to this
1912
+ * value on `window` in order to maintain the mapping of {@link d.RuntimeRef}
1913
+ * to {@link d.HostRef} across HMR updates.
1914
+ *
1915
+ * This is necessary because when HMR updates for a component are processed by
1916
+ * the browser-side dev server client the JS bundle for that component is
1917
+ * re-fetched. Since the module containing {@link hostRefs} is included in
1918
+ * that bundle, if we do not store a reference to it the new iteration of the
1919
+ * component will not have access to the previous hostRef map, leading to a
1920
+ * bug where the new version of the component cannot properly initialize.
1878
1921
  */
1879
- const hostRefs = /*@__PURE__*/ new WeakMap();
1922
+ const hostRefs = new WeakMap();
1880
1923
  /**
1881
1924
  * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
1882
1925
  *
@@ -1956,6 +1999,18 @@ const plt = {
1956
1999
  rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1957
2000
  ce: (eventName, opts) => new CustomEvent(eventName, opts),
1958
2001
  };
2002
+ const supportsListenerOptions = /*@__PURE__*/ (() => {
2003
+ let supportsListenerOptions = false;
2004
+ try {
2005
+ doc.addEventListener('e', null, Object.defineProperty({}, 'passive', {
2006
+ get() {
2007
+ supportsListenerOptions = true;
2008
+ },
2009
+ }));
2010
+ }
2011
+ catch (e) { }
2012
+ return supportsListenerOptions;
2013
+ })();
1959
2014
  const promiseResolve = (v) => Promise.resolve(v);
1960
2015
  const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
1961
2016
  try {
@@ -2018,4 +2073,4 @@ exports.promiseResolve = promiseResolve;
2018
2073
  exports.registerInstance = registerInstance;
2019
2074
  exports.setNonce = setNonce;
2020
2075
 
2021
- //# sourceMappingURL=index-eb056d5e.js.map
2076
+ //# sourceMappingURL=index-13aff0b4.js.map