genesys-spark-components 4.82.0 → 4.83.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 (826) hide show
  1. package/dist/cjs/genesys-webcomponents.cjs.js +9 -9
  2. package/dist/cjs/{get-valid-timezone-47bf9353.js → get-valid-timezone-a670d106.js} +1 -1
  3. package/dist/cjs/gux-accordion-section.cjs.entry.js +6 -6
  4. package/dist/cjs/gux-accordion.cjs.entry.js +3 -3
  5. package/dist/cjs/gux-action-button.cjs.entry.js +5 -5
  6. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +2 -2
  7. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +6 -6
  8. package/dist/cjs/gux-all-row-select.cjs.entry.js +3 -3
  9. package/dist/cjs/gux-announce-beta.cjs.entry.js +2 -2
  10. package/dist/cjs/gux-avatar-beta.cjs.entry.js +3 -3
  11. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +3 -3
  12. package/dist/cjs/gux-avatar-focusable-beta.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-badge.cjs.entry.js +4 -4
  14. package/dist/cjs/gux-blank-state.cjs.entry.js +4 -4
  15. package/dist/cjs/gux-breadcrumb-item.cjs.entry.js +2 -2
  16. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +4 -4
  17. package/dist/cjs/gux-button-multi.cjs.entry.js +4 -4
  18. package/dist/cjs/gux-button-slot.cjs.entry.js +3 -3
  19. package/dist/cjs/gux-button.cjs.entry.js +4 -4
  20. package/dist/cjs/gux-calendar-beta.cjs.entry.js +2 -2
  21. package/dist/cjs/gux-calendar.cjs.entry.js +5 -5
  22. package/dist/cjs/gux-card.cjs.entry.js +4 -4
  23. package/dist/cjs/gux-column-manager-item.cjs.entry.js +5 -5
  24. package/dist/cjs/gux-column-manager.cjs.entry.js +4 -4
  25. package/dist/cjs/gux-content-search.cjs.entry.js +5 -5
  26. package/dist/cjs/gux-context-menu.cjs.entry.js +6 -6
  27. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +4 -4
  28. package/dist/cjs/gux-create-option.cjs.entry.js +4 -4
  29. package/dist/cjs/gux-cta-group.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-date-beta.cjs.entry.js +5 -5
  31. package/dist/cjs/gux-date-time-beta.cjs.entry.js +5 -5
  32. package/dist/cjs/gux-datepicker.cjs.entry.js +6 -6
  33. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +5 -5
  34. package/dist/cjs/gux-dismiss-button.cjs.entry.js +4 -4
  35. package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +3 -3
  36. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +6 -6
  37. package/dist/cjs/gux-dropdown-option.cjs.entry.js +2 -2
  38. package/dist/cjs/gux-dropdown_3.cjs.entry.js +10 -10
  39. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +2 -2
  40. package/dist/cjs/gux-flyout-menu.cjs.entry.js +4 -4
  41. package/dist/cjs/gux-form-beta.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-description.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +8 -8
  44. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +6 -6
  45. package/dist/cjs/gux-form-field-color.cjs.entry.js +8 -8
  46. package/dist/cjs/{gux-form-field-container-51849136.js → gux-form-field-container-acf6a036.js} +1 -1
  47. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +9 -9
  48. package/dist/cjs/{gux-form-field-error-4e1d6772.js → gux-form-field-error-ec300f9a.js} +1 -1
  49. package/dist/cjs/{gux-form-field-fieldset-container-bf86cba7.js → gux-form-field-fieldset-container-629ca11f.js} +1 -1
  50. package/dist/cjs/gux-form-field-file.cjs.entry.js +6 -6
  51. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +4 -4
  52. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +3 -3
  53. package/dist/cjs/gux-form-field-number_3.cjs.entry.js +14 -14
  54. package/dist/cjs/gux-form-field-phone.cjs.entry.js +10 -10
  55. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +8 -8
  56. package/dist/cjs/gux-form-field-radio.cjs.entry.js +6 -6
  57. package/dist/cjs/gux-form-field-range.cjs.entry.js +8 -8
  58. package/dist/cjs/gux-form-field-search.cjs.entry.js +8 -8
  59. package/dist/cjs/gux-form-field-select.cjs.entry.js +8 -8
  60. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +8 -8
  61. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +7 -7
  62. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +10 -10
  63. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +9 -9
  64. package/dist/cjs/gux-form-fieldset-heading.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-form-footer.cjs.entry.js +2 -2
  66. package/dist/cjs/gux-form-heading.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +2 -2
  68. package/dist/cjs/gux-icon.cjs.entry.js +3 -3
  69. package/dist/cjs/gux-inline-alert.cjs.entry.js +5 -5
  70. package/dist/cjs/gux-label-info-beta.cjs.entry.js +2 -2
  71. package/dist/cjs/gux-list-divider.cjs.entry.js +2 -2
  72. package/dist/cjs/gux-list-item.cjs.entry.js +2 -2
  73. package/dist/cjs/gux-list.cjs.entry.js +3 -3
  74. package/dist/cjs/gux-listbox-multi.cjs.entry.js +3 -3
  75. package/dist/cjs/gux-loading-message.cjs.entry.js +3 -3
  76. package/dist/cjs/gux-menu-option.cjs.entry.js +2 -2
  77. package/dist/cjs/gux-menu.cjs.entry.js +2 -2
  78. package/dist/cjs/gux-modal-legacy.cjs.entry.js +4 -4
  79. package/dist/cjs/gux-modal.cjs.entry.js +3 -3
  80. package/dist/cjs/gux-month-calendar.cjs.entry.js +3 -3
  81. package/dist/cjs/gux-month-list_2.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +5 -5
  83. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +3 -3
  84. package/dist/cjs/gux-option-group-beta.cjs.entry.js +2 -2
  85. package/dist/cjs/gux-option-icon.cjs.entry.js +3 -3
  86. package/dist/cjs/gux-option-multi.cjs.entry.js +4 -4
  87. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +3 -3
  88. package/dist/cjs/gux-pagination-buttons-legacy_3.cjs.entry.js +6 -6
  89. package/dist/cjs/gux-pagination-buttons_2.cjs.entry.js +4 -4
  90. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +3 -3
  91. package/dist/cjs/gux-pagination-items-per-page.cjs.entry.js +3 -3
  92. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +3 -3
  93. package/dist/cjs/gux-pagination.cjs.entry.js +3 -3
  94. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +4 -4
  95. package/dist/cjs/gux-popover-list.cjs.entry.js +5 -5
  96. package/dist/cjs/gux-popup.cjs.entry.js +4 -4
  97. package/dist/cjs/gux-radial-loading.cjs.entry.js +4 -4
  98. package/dist/cjs/gux-radial-progress.cjs.entry.js +2 -2
  99. package/dist/cjs/gux-rating.cjs.entry.js +3 -3
  100. package/dist/cjs/gux-row-select.cjs.entry.js +3 -3
  101. package/dist/cjs/gux-screen-reader-beta_2.cjs.entry.js +2 -2
  102. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +2 -2
  103. package/dist/cjs/gux-segmented-control-item.cjs.entry.js +1 -1
  104. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +2 -2
  105. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +2 -2
  106. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +3 -3
  107. package/dist/cjs/gux-skip-navigation-item.cjs.entry.js +2 -2
  108. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +4 -4
  109. package/dist/cjs/gux-sort-control.cjs.entry.js +6 -6
  110. package/dist/cjs/gux-submenu.cjs.entry.js +4 -4
  111. package/dist/cjs/gux-switch-item.cjs.entry.js +2 -2
  112. package/dist/cjs/gux-switch-legacy.cjs.entry.js +3 -3
  113. package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +4 -4
  114. package/dist/cjs/gux-tab-advanced-panel.cjs.entry.js +2 -2
  115. package/dist/cjs/gux-tab-advanced.cjs.entry.js +4 -4
  116. package/dist/cjs/gux-tab-list.cjs.entry.js +5 -5
  117. package/dist/cjs/gux-tab-panel.cjs.entry.js +2 -2
  118. package/dist/cjs/gux-tab.cjs.entry.js +3 -3
  119. package/dist/cjs/gux-table-select-menu.cjs.entry.js +3 -3
  120. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +4 -4
  121. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +3 -3
  122. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +5 -5
  123. package/dist/cjs/gux-table-toolbar.cjs.entry.js +6 -6
  124. package/dist/cjs/gux-table.cjs.entry.js +4 -4
  125. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +3 -3
  126. package/dist/cjs/gux-tabs.cjs.entry.js +3 -3
  127. package/dist/cjs/gux-tag.cjs.entry.js +4 -4
  128. package/dist/cjs/gux-text-highlight.cjs.entry.js +2 -2
  129. package/dist/cjs/gux-time-beta.cjs.entry.js +5 -5
  130. package/dist/cjs/gux-time-picker.cjs.entry.js +6 -6
  131. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +3 -3
  132. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +3 -3
  133. package/dist/cjs/gux-toast.cjs.entry.js +4 -4
  134. package/dist/cjs/gux-toggle-slider.cjs.entry.js +3 -3
  135. package/dist/cjs/gux-toggle.cjs.entry.js +5 -5
  136. package/dist/cjs/gux-tooltip-base-beta.cjs.entry.js +2 -2
  137. package/dist/cjs/gux-tooltip-title.cjs.entry.js +5 -5
  138. package/dist/cjs/gux-tooltip.cjs.entry.js +4 -4
  139. package/dist/cjs/gux-truncate.cjs.entry.js +6 -6
  140. package/dist/cjs/{index-f9d85787.js → index-0dfe7f6f.js} +1 -1
  141. package/dist/cjs/index-9fe2464a.js +2230 -0
  142. package/dist/cjs/loader.cjs.js +1 -1
  143. package/dist/cjs/{on-click-outside-6db914c3.js → on-click-outside-a38fafee.js} +1 -1
  144. package/dist/cjs/{on-mutation-3d294d15.js → on-mutation-c819498e.js} +1 -1
  145. package/dist/cjs/{on-resize-da1477df.js → on-resize-15b449e5.js} +1 -1
  146. package/dist/cjs/{usage-b92ab3f5.js → usage-b34c8cf8.js} +6 -7
  147. package/dist/cjs/{use-regional-dates-34243a86.js → use-regional-dates-44835a16.js} +14 -2
  148. package/dist/collection/collection-manifest.json +2 -2
  149. package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/dropdown-option/gux-dropdown-option.js +1 -1
  150. package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/gux-advanced-dropdown.js +2 -2
  151. package/dist/collection/components/legacy/gux-disclosure-button-legacy/gux-disclosure-button.js +2 -2
  152. package/dist/collection/components/legacy/gux-modal-legacy/gux-modal-legacy.js +2 -2
  153. package/dist/collection/components/legacy/gux-notification-toast-legacy/gux-notification-toast.js +1 -1
  154. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/gux-pagination-buttons.js +1 -1
  155. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-item-counts-legacy/gux-pagination-item-counts.js +2 -2
  156. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-items-per-page-legacy/gux-pagination-items-per-page.js +1 -1
  157. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination.js +1 -1
  158. package/dist/collection/components/legacy/gux-simple-toast-legacy/gux-simple-toast.js +1 -1
  159. package/dist/collection/components/legacy/gux-switch-legacy/gux-switch-item/gux-switch-item.js +1 -1
  160. package/dist/collection/components/legacy/gux-switch-legacy/gux-switch.js +1 -1
  161. package/dist/collection/components/stable/gux-accordion/gux-accordion-section/gux-accordion-section.js +5 -5
  162. package/dist/collection/components/stable/gux-accordion/gux-accordion.js +1 -1
  163. package/dist/collection/components/stable/gux-action-button/gux-action-button.js +1 -1
  164. package/dist/collection/components/stable/gux-badge/gux-badge.js +1 -1
  165. package/dist/collection/components/stable/gux-blank-state/gux-blank-state.js +1 -1
  166. package/dist/collection/components/stable/gux-breadcrumbs/breadcrumb-item/gux-breadcrumb-item.js +1 -1
  167. package/dist/collection/components/stable/gux-breadcrumbs/gux-breadcrumbs.js +1 -1
  168. package/dist/collection/components/stable/gux-button/gux-button.js +2 -2
  169. package/dist/collection/components/stable/gux-button-multi/gux-button-multi.js +1 -1
  170. package/dist/collection/components/stable/gux-button-slot/gux-button-slot.js +1 -1
  171. package/dist/collection/components/stable/gux-calendar/gux-calendar.js +1 -1
  172. package/dist/collection/components/stable/gux-card/gux-card.js +2 -2
  173. package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/gux-column-manager-item.js +3 -3
  174. package/dist/collection/components/stable/gux-column-manager/gux-column-manager.js +1 -1
  175. package/dist/collection/components/stable/gux-content-search/gux-content-search.js +2 -2
  176. package/dist/collection/components/stable/gux-context-menu/gux-context-menu.js +2 -2
  177. package/dist/collection/components/stable/gux-copy-to-clipboard/gux-copy-to-clipboard.js +1 -1
  178. package/dist/collection/components/stable/gux-datepicker/gux-datepicker.js +1 -1
  179. package/dist/collection/components/stable/gux-dismiss-button/gux-dismiss-button.js +1 -1
  180. package/dist/collection/components/stable/gux-dropdown/gux-dropdown.js +3 -3
  181. package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.js +1 -1
  182. package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi.js +1 -1
  183. package/dist/collection/components/stable/gux-flyout-menu/gux-flyout-menu.js +2 -2
  184. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu-option/gux-menu-option.js +1 -1
  185. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu.js +1 -1
  186. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.js +3 -3
  187. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.js +2 -2
  188. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox-group/gux-form-field-checkbox-group.js +2 -2
  189. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.js +3 -3
  190. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.js +3 -3
  191. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-file/gux-form-field-file.js +1 -1
  192. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.js +3 -3
  193. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-phone/gux-form-field-phone.js +4 -4
  194. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.js +2 -2
  195. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio-group/gux-form-field-radio-group.js +2 -2
  196. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.js +2 -2
  197. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.js +3 -3
  198. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.js +3 -3
  199. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.js +3 -3
  200. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.js +2 -2
  201. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.js +4 -4
  202. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-zone-picker/gux-form-field-time-zone-picker.js +3 -3
  203. package/dist/collection/components/stable/gux-form-field/helper-components/gux-form-field-input-clear-button/gux-form-field-input-clear-button.js +1 -1
  204. package/dist/collection/components/stable/gux-icon/gux-icon.js +1 -1
  205. package/dist/collection/components/stable/gux-inline-alert/gux-inline-alert.js +2 -2
  206. package/dist/collection/components/stable/gux-list/gux-list-divider/gux-list-divider.js +1 -1
  207. package/dist/collection/components/stable/gux-list/gux-list-item/gux-list-item.js +1 -1
  208. package/dist/collection/components/stable/gux-list/gux-list.js +1 -1
  209. package/dist/collection/components/stable/gux-listbox/option-group/gux-option-group.js +1 -1
  210. package/dist/collection/components/stable/gux-listbox/options/gux-option/gux-option.js +2 -2
  211. package/dist/collection/components/stable/gux-listbox/options/gux-option-icon/gux-option-icon.js +2 -2
  212. package/dist/collection/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.js +2 -2
  213. package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.js +2 -2
  214. package/dist/collection/components/stable/gux-loading-message/gux-loading-message.js +1 -1
  215. package/dist/collection/components/stable/gux-modal/gux-modal.js +1 -1
  216. package/dist/collection/components/stable/gux-page-loading-spinner/gux-page-loading-spinner.js +1 -1
  217. package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.js +1 -1
  218. package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.js +2 -2
  219. package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.js +1 -1
  220. package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.js +1 -1
  221. package/dist/collection/components/stable/gux-pagination/gux-pagination.js +1 -1
  222. package/dist/collection/components/stable/gux-popover/gux-popover.js +2 -2
  223. package/dist/collection/components/stable/gux-popover-list/gux-popover-list.js +2 -2
  224. package/dist/collection/components/stable/gux-popup/gux-popup.js +3 -3
  225. package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.js +1 -1
  226. package/dist/collection/components/stable/gux-rating/gux-rating.js +1 -1
  227. package/dist/collection/components/stable/gux-skip-navigation-list/gux-skip-navigation-item/gux-skip-navigation-item.js +1 -1
  228. package/dist/collection/components/stable/gux-skip-navigation-list/gux-skip-navigation-list.js +1 -1
  229. package/dist/collection/components/stable/gux-table/gux-all-row-select/gux-all-row-select.js +1 -1
  230. package/dist/collection/components/stable/gux-table/gux-row-select/gux-row-select.js +1 -1
  231. package/dist/collection/components/stable/gux-table/gux-sort-control/gux-sort-control.js +3 -3
  232. package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-menu.js +1 -1
  233. package/dist/collection/components/stable/gux-table/gux-table.js +1 -1
  234. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-action/gux-table-toolbar-action.js +1 -1
  235. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-custom-action/gux-table-toolbar-custom-action.js +1 -1
  236. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-menu-button/gux-table-toolbar-menu-button.js +1 -1
  237. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar.js +2 -2
  238. package/dist/collection/components/stable/gux-tabs/gux-tab/gux-tab.js +2 -2
  239. package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.js +2 -2
  240. package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.js +1 -1
  241. package/dist/collection/components/stable/gux-tabs/gux-tabs.js +1 -1
  242. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced/gux-tab-advanced.js +2 -2
  243. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.js +1 -1
  244. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-panel/gux-tab-advanced-panel.js +1 -1
  245. package/dist/collection/components/stable/gux-tabs-advanced/gux-tabs-advanced.js +1 -1
  246. package/dist/collection/components/stable/gux-tag/gux-tag.js +1 -1
  247. package/dist/collection/components/stable/gux-time-picker/gux-time-picker.js +1 -1
  248. package/dist/collection/components/stable/gux-toast/gux-toast.js +2 -2
  249. package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.js +2 -2
  250. package/dist/collection/components/stable/gux-toggle/gux-toggle.js +2 -2
  251. package/dist/collection/components/stable/gux-tooltip/gux-tooltip.js +2 -2
  252. package/dist/collection/components/stable/gux-tooltip-title/gux-tooltip-title.js +2 -2
  253. package/dist/collection/components/stable/gux-truncate/gux-truncate.js +3 -3
  254. package/dist/collection/genesys-spark-utils/intl.js +14 -2
  255. package/dist/collection/test/setupAxeTests.js +3 -11
  256. package/dist/esm/genesys-webcomponents.js +10 -10
  257. package/dist/esm/{get-valid-timezone-6faa4c47.js → get-valid-timezone-3e8bbe2d.js} +1 -1
  258. package/dist/esm/gux-accordion-section.entry.js +6 -6
  259. package/dist/esm/gux-accordion.entry.js +3 -3
  260. package/dist/esm/gux-action-button.entry.js +5 -5
  261. package/dist/esm/gux-action-toast-legacy.entry.js +2 -2
  262. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +6 -6
  263. package/dist/esm/gux-all-row-select.entry.js +3 -3
  264. package/dist/esm/gux-announce-beta.entry.js +2 -2
  265. package/dist/esm/gux-avatar-beta.entry.js +3 -3
  266. package/dist/esm/gux-avatar-change-photo-beta.entry.js +3 -3
  267. package/dist/esm/gux-avatar-focusable-beta.entry.js +1 -1
  268. package/dist/esm/gux-badge.entry.js +4 -4
  269. package/dist/esm/gux-blank-state.entry.js +4 -4
  270. package/dist/esm/gux-breadcrumb-item.entry.js +2 -2
  271. package/dist/esm/gux-breadcrumbs.entry.js +4 -4
  272. package/dist/esm/gux-button-multi.entry.js +4 -4
  273. package/dist/esm/gux-button-slot.entry.js +3 -3
  274. package/dist/esm/gux-button.entry.js +4 -4
  275. package/dist/esm/gux-calendar-beta.entry.js +2 -2
  276. package/dist/esm/gux-calendar.entry.js +5 -5
  277. package/dist/esm/gux-card.entry.js +4 -4
  278. package/dist/esm/gux-column-manager-item.entry.js +5 -5
  279. package/dist/esm/gux-column-manager.entry.js +4 -4
  280. package/dist/esm/gux-content-search.entry.js +5 -5
  281. package/dist/esm/gux-context-menu.entry.js +6 -6
  282. package/dist/esm/gux-copy-to-clipboard.entry.js +4 -4
  283. package/dist/esm/gux-create-option.entry.js +4 -4
  284. package/dist/esm/gux-cta-group.entry.js +1 -1
  285. package/dist/esm/gux-date-beta.entry.js +5 -5
  286. package/dist/esm/gux-date-time-beta.entry.js +5 -5
  287. package/dist/esm/gux-datepicker.entry.js +6 -6
  288. package/dist/esm/gux-disclosure-button-legacy.entry.js +5 -5
  289. package/dist/esm/gux-dismiss-button.entry.js +4 -4
  290. package/dist/esm/gux-dropdown-multi-tag.entry.js +3 -3
  291. package/dist/esm/gux-dropdown-multi.entry.js +6 -6
  292. package/dist/esm/gux-dropdown-option.entry.js +2 -2
  293. package/dist/esm/gux-dropdown_3.entry.js +10 -10
  294. package/dist/esm/gux-flag-icon-beta.entry.js +2 -2
  295. package/dist/esm/gux-flyout-menu.entry.js +4 -4
  296. package/dist/esm/gux-form-beta.entry.js +1 -1
  297. package/dist/esm/gux-form-description.entry.js +1 -1
  298. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +8 -8
  299. package/dist/esm/gux-form-field-checkbox.entry.js +6 -6
  300. package/dist/esm/gux-form-field-color.entry.js +8 -8
  301. package/dist/esm/{gux-form-field-container-777ec473.js → gux-form-field-container-342b6920.js} +1 -1
  302. package/dist/esm/gux-form-field-dropdown.entry.js +9 -9
  303. package/dist/esm/{gux-form-field-error-1776797e.js → gux-form-field-error-e92661e1.js} +1 -1
  304. package/dist/esm/{gux-form-field-fieldset-container-1769a15e.js → gux-form-field-fieldset-container-269b6d42.js} +1 -1
  305. package/dist/esm/gux-form-field-file.entry.js +6 -6
  306. package/dist/esm/gux-form-field-input-clear-button.entry.js +4 -4
  307. package/dist/esm/gux-form-field-label-indicator.entry.js +3 -3
  308. package/dist/esm/gux-form-field-number_3.entry.js +14 -14
  309. package/dist/esm/gux-form-field-phone.entry.js +10 -10
  310. package/dist/esm/gux-form-field-radio-group-beta.entry.js +8 -8
  311. package/dist/esm/gux-form-field-radio.entry.js +6 -6
  312. package/dist/esm/gux-form-field-range.entry.js +8 -8
  313. package/dist/esm/gux-form-field-search.entry.js +8 -8
  314. package/dist/esm/gux-form-field-select.entry.js +8 -8
  315. package/dist/esm/gux-form-field-text-like.entry.js +8 -8
  316. package/dist/esm/gux-form-field-textarea.entry.js +7 -7
  317. package/dist/esm/gux-form-field-time-picker.entry.js +10 -10
  318. package/dist/esm/gux-form-field-time-zone-picker.entry.js +9 -9
  319. package/dist/esm/gux-form-fieldset-heading.entry.js +1 -1
  320. package/dist/esm/gux-form-footer.entry.js +2 -2
  321. package/dist/esm/gux-form-heading.entry.js +1 -1
  322. package/dist/esm/gux-icon-tooltip-beta.entry.js +2 -2
  323. package/dist/esm/gux-icon.entry.js +3 -3
  324. package/dist/esm/gux-inline-alert.entry.js +5 -5
  325. package/dist/esm/gux-label-info-beta.entry.js +2 -2
  326. package/dist/esm/gux-list-divider.entry.js +2 -2
  327. package/dist/esm/gux-list-item.entry.js +2 -2
  328. package/dist/esm/gux-list.entry.js +3 -3
  329. package/dist/esm/gux-listbox-multi.entry.js +3 -3
  330. package/dist/esm/gux-loading-message.entry.js +3 -3
  331. package/dist/esm/gux-menu-option.entry.js +2 -2
  332. package/dist/esm/gux-menu.entry.js +2 -2
  333. package/dist/esm/gux-modal-legacy.entry.js +4 -4
  334. package/dist/esm/gux-modal.entry.js +3 -3
  335. package/dist/esm/gux-month-calendar.entry.js +3 -3
  336. package/dist/esm/gux-month-list_2.entry.js +1 -1
  337. package/dist/esm/gux-month-picker-beta.entry.js +5 -5
  338. package/dist/esm/gux-notification-toast-legacy.entry.js +3 -3
  339. package/dist/esm/gux-option-group-beta.entry.js +2 -2
  340. package/dist/esm/gux-option-icon.entry.js +3 -3
  341. package/dist/esm/gux-option-multi.entry.js +4 -4
  342. package/dist/esm/gux-page-loading-spinner.entry.js +3 -3
  343. package/dist/esm/gux-pagination-buttons-legacy_3.entry.js +6 -6
  344. package/dist/esm/gux-pagination-buttons_2.entry.js +4 -4
  345. package/dist/esm/gux-pagination-cursor.entry.js +3 -3
  346. package/dist/esm/gux-pagination-items-per-page.entry.js +3 -3
  347. package/dist/esm/gux-pagination-legacy.entry.js +3 -3
  348. package/dist/esm/gux-pagination.entry.js +3 -3
  349. package/dist/esm/gux-phone-input-beta.entry.js +4 -4
  350. package/dist/esm/gux-popover-list.entry.js +5 -5
  351. package/dist/esm/gux-popup.entry.js +4 -4
  352. package/dist/esm/gux-radial-loading.entry.js +4 -4
  353. package/dist/esm/gux-radial-progress.entry.js +2 -2
  354. package/dist/esm/gux-rating.entry.js +3 -3
  355. package/dist/esm/gux-row-select.entry.js +3 -3
  356. package/dist/esm/gux-screen-reader-beta_2.entry.js +2 -2
  357. package/dist/esm/gux-segmented-control-beta.entry.js +2 -2
  358. package/dist/esm/gux-segmented-control-item.entry.js +1 -1
  359. package/dist/esm/gux-selector-card-beta.entry.js +2 -2
  360. package/dist/esm/gux-selector-cards-beta.entry.js +2 -2
  361. package/dist/esm/gux-simple-toast-legacy.entry.js +3 -3
  362. package/dist/esm/gux-skip-navigation-item.entry.js +2 -2
  363. package/dist/esm/gux-skip-navigation-list.entry.js +4 -4
  364. package/dist/esm/gux-sort-control.entry.js +6 -6
  365. package/dist/esm/gux-submenu.entry.js +4 -4
  366. package/dist/esm/gux-switch-item.entry.js +2 -2
  367. package/dist/esm/gux-switch-legacy.entry.js +3 -3
  368. package/dist/esm/gux-tab-advanced-list.entry.js +4 -4
  369. package/dist/esm/gux-tab-advanced-panel.entry.js +2 -2
  370. package/dist/esm/gux-tab-advanced.entry.js +4 -4
  371. package/dist/esm/gux-tab-list.entry.js +5 -5
  372. package/dist/esm/gux-tab-panel.entry.js +2 -2
  373. package/dist/esm/gux-tab.entry.js +3 -3
  374. package/dist/esm/gux-table-select-menu.entry.js +3 -3
  375. package/dist/esm/gux-table-toolbar-action.entry.js +4 -4
  376. package/dist/esm/gux-table-toolbar-custom-action.entry.js +3 -3
  377. package/dist/esm/gux-table-toolbar-menu-button.entry.js +5 -5
  378. package/dist/esm/gux-table-toolbar.entry.js +6 -6
  379. package/dist/esm/gux-table.entry.js +4 -4
  380. package/dist/esm/gux-tabs-advanced.entry.js +3 -3
  381. package/dist/esm/gux-tabs.entry.js +3 -3
  382. package/dist/esm/gux-tag.entry.js +4 -4
  383. package/dist/esm/gux-text-highlight.entry.js +2 -2
  384. package/dist/esm/gux-time-beta.entry.js +5 -5
  385. package/dist/esm/gux-time-picker.entry.js +6 -6
  386. package/dist/esm/gux-time-zone-beta.entry.js +3 -3
  387. package/dist/esm/gux-time-zone-picker-beta.entry.js +3 -3
  388. package/dist/esm/gux-toast.entry.js +4 -4
  389. package/dist/esm/gux-toggle-slider.entry.js +3 -3
  390. package/dist/esm/gux-toggle.entry.js +5 -5
  391. package/dist/esm/gux-tooltip-base-beta.entry.js +2 -2
  392. package/dist/esm/gux-tooltip-title.entry.js +5 -5
  393. package/dist/esm/gux-tooltip.entry.js +4 -4
  394. package/dist/esm/gux-truncate.entry.js +6 -6
  395. package/dist/esm/{index-ad321c23.js → index-23f79584.js} +1 -1
  396. package/dist/esm/index-a9821ed9.js +2197 -0
  397. package/dist/esm/loader.js +2 -2
  398. package/dist/esm/{on-click-outside-21dd269e.js → on-click-outside-e10242ab.js} +1 -1
  399. package/dist/esm/{on-mutation-1355c534.js → on-mutation-8eed4e0c.js} +1 -1
  400. package/dist/esm/{on-resize-6a194a58.js → on-resize-a83593c5.js} +1 -1
  401. package/dist/esm/{usage-3d6b4b20.js → usage-3aade09b.js} +6 -7
  402. package/dist/esm/{use-regional-dates-a47e74e6.js → use-regional-dates-dd987b2d.js} +14 -2
  403. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  404. package/dist/genesys-webcomponents/p-0179b174.entry.js +1 -0
  405. package/dist/genesys-webcomponents/{p-40435926.entry.js → p-02393e6b.entry.js} +1 -1
  406. package/dist/genesys-webcomponents/p-027c43d4.js +1 -0
  407. package/dist/genesys-webcomponents/{p-2bcc4685.js → p-0436d67c.js} +1 -1
  408. package/dist/genesys-webcomponents/p-087d422d.entry.js +1 -0
  409. package/dist/genesys-webcomponents/p-09ad38fb.entry.js +1 -0
  410. package/dist/genesys-webcomponents/p-0ab33452.entry.js +1 -0
  411. package/dist/genesys-webcomponents/{p-e080422d.js → p-0ae26361.js} +1 -1
  412. package/dist/genesys-webcomponents/{p-cc58f9d4.entry.js → p-0b08f674.entry.js} +1 -1
  413. package/dist/genesys-webcomponents/{p-2253f98c.entry.js → p-0edf08e9.entry.js} +1 -1
  414. package/dist/genesys-webcomponents/{p-d9256201.entry.js → p-108f5d83.entry.js} +1 -1
  415. package/dist/genesys-webcomponents/p-11be71ca.entry.js +1 -0
  416. package/dist/genesys-webcomponents/{p-aee35636.entry.js → p-11c9be03.entry.js} +1 -1
  417. package/dist/genesys-webcomponents/{p-e634842f.entry.js → p-12214390.entry.js} +1 -1
  418. package/dist/genesys-webcomponents/{p-9773c4fe.js → p-1ea82bf6.js} +1 -1
  419. package/dist/genesys-webcomponents/{p-ee3831e8.entry.js → p-1fb6d3e2.entry.js} +1 -1
  420. package/dist/genesys-webcomponents/{p-413ed990.entry.js → p-2196e991.entry.js} +1 -1
  421. package/dist/genesys-webcomponents/p-22455f08.entry.js +1 -0
  422. package/dist/genesys-webcomponents/{p-6628cd36.entry.js → p-22df2780.entry.js} +1 -1
  423. package/dist/genesys-webcomponents/{p-60776811.entry.js → p-25086339.entry.js} +1 -1
  424. package/dist/genesys-webcomponents/{p-6fbca276.entry.js → p-264bdae8.entry.js} +1 -1
  425. package/dist/genesys-webcomponents/{p-b6a66278.entry.js → p-2757a6b4.entry.js} +1 -1
  426. package/dist/genesys-webcomponents/{p-0d990ed4.entry.js → p-27663fa2.entry.js} +1 -1
  427. package/dist/genesys-webcomponents/{p-26792730.entry.js → p-2917986a.entry.js} +1 -1
  428. package/dist/genesys-webcomponents/{p-62c9a4e1.entry.js → p-2bde7696.entry.js} +1 -1
  429. package/dist/genesys-webcomponents/{p-77e320b7.entry.js → p-2d5e9d0b.entry.js} +1 -1
  430. package/dist/genesys-webcomponents/{p-3f3b2904.entry.js → p-30abf0c4.entry.js} +1 -1
  431. package/dist/genesys-webcomponents/{p-09936465.entry.js → p-3364f18f.entry.js} +1 -1
  432. package/dist/genesys-webcomponents/{p-8c05807d.entry.js → p-35e1e445.entry.js} +1 -1
  433. package/dist/genesys-webcomponents/{p-cf590276.entry.js → p-376e469d.entry.js} +1 -1
  434. package/dist/genesys-webcomponents/p-383a93b2.entry.js +1 -0
  435. package/dist/genesys-webcomponents/{p-1922ddd5.entry.js → p-38f6da60.entry.js} +1 -1
  436. package/dist/genesys-webcomponents/{p-5bcc54c7.js → p-3b4a0d71.js} +1 -1
  437. package/dist/genesys-webcomponents/{p-94921fba.entry.js → p-3d362a82.entry.js} +1 -1
  438. package/dist/genesys-webcomponents/{p-6ca2c952.entry.js → p-3d92e226.entry.js} +1 -1
  439. package/dist/genesys-webcomponents/p-4177f683.entry.js +1 -0
  440. package/dist/genesys-webcomponents/{p-aed20919.entry.js → p-41fe3804.entry.js} +1 -1
  441. package/dist/genesys-webcomponents/p-4464d57b.entry.js +1 -0
  442. package/dist/genesys-webcomponents/{p-9cff2003.entry.js → p-453dcc14.entry.js} +1 -1
  443. package/dist/genesys-webcomponents/{p-d54d74fc.entry.js → p-4a22c6f7.entry.js} +1 -1
  444. package/dist/genesys-webcomponents/{p-7fae78d4.entry.js → p-4aa121d9.entry.js} +1 -1
  445. package/dist/genesys-webcomponents/{p-c5a8ab08.entry.js → p-4ada383c.entry.js} +1 -1
  446. package/dist/genesys-webcomponents/{p-4ef76102.entry.js → p-4b6e955f.entry.js} +1 -1
  447. package/dist/genesys-webcomponents/{p-53cd4011.entry.js → p-4ebba2da.entry.js} +1 -1
  448. package/dist/genesys-webcomponents/{p-7e87e002.entry.js → p-4ec598a6.entry.js} +1 -1
  449. package/dist/genesys-webcomponents/{p-4b3458d2.entry.js → p-50b1d53c.entry.js} +1 -1
  450. package/dist/genesys-webcomponents/{p-ccb7ef75.entry.js → p-50d50951.entry.js} +1 -1
  451. package/dist/genesys-webcomponents/{p-e2ee7d6f.entry.js → p-513ca276.entry.js} +1 -1
  452. package/dist/genesys-webcomponents/{p-0b95c4be.entry.js → p-53125d18.entry.js} +2 -2
  453. package/dist/genesys-webcomponents/{p-91abf805.entry.js → p-53e1504f.entry.js} +1 -1
  454. package/dist/genesys-webcomponents/p-53ec575f.js +2 -0
  455. package/dist/genesys-webcomponents/{p-d1d36f09.entry.js → p-58f94798.entry.js} +1 -1
  456. package/dist/genesys-webcomponents/{p-387364be.entry.js → p-597adf41.entry.js} +1 -1
  457. package/dist/genesys-webcomponents/p-5a6482eb.entry.js +1 -0
  458. package/dist/genesys-webcomponents/{p-2351e1ef.entry.js → p-5b22ae14.entry.js} +1 -1
  459. package/dist/genesys-webcomponents/{p-16e071d9.entry.js → p-5ccb16da.entry.js} +1 -1
  460. package/dist/genesys-webcomponents/{p-0d5dcdd3.js → p-60c044d0.js} +1 -1
  461. package/dist/genesys-webcomponents/{p-c470f1b9.entry.js → p-60d69aa2.entry.js} +1 -1
  462. package/dist/genesys-webcomponents/{p-4dd0710d.entry.js → p-62e58d04.entry.js} +1 -1
  463. package/dist/genesys-webcomponents/{p-443b93e8.entry.js → p-65fc6ec2.entry.js} +1 -1
  464. package/dist/genesys-webcomponents/{p-7b018984.entry.js → p-6b5e20d7.entry.js} +1 -1
  465. package/dist/genesys-webcomponents/p-7008e76b.entry.js +1 -0
  466. package/dist/genesys-webcomponents/p-750314f0.entry.js +1 -0
  467. package/dist/genesys-webcomponents/{p-3515818f.entry.js → p-766cbb49.entry.js} +1 -1
  468. package/dist/genesys-webcomponents/{p-fb1ab7b1.js → p-788c3a6d.js} +1 -1
  469. package/dist/genesys-webcomponents/p-7a02837f.entry.js +1 -0
  470. package/dist/genesys-webcomponents/{p-e601cc45.entry.js → p-7cb995fe.entry.js} +1 -1
  471. package/dist/genesys-webcomponents/{p-22fa8d25.entry.js → p-7ce74a69.entry.js} +1 -1
  472. package/dist/genesys-webcomponents/{p-aab34699.entry.js → p-7d371786.entry.js} +1 -1
  473. package/dist/genesys-webcomponents/{p-c5436f71.entry.js → p-7e9c7181.entry.js} +1 -1
  474. package/dist/genesys-webcomponents/p-7f923c19.js +1 -0
  475. package/dist/genesys-webcomponents/{p-43996564.entry.js → p-8535c841.entry.js} +1 -1
  476. package/dist/genesys-webcomponents/{p-ca4cdad5.entry.js → p-87327f59.entry.js} +1 -1
  477. package/dist/genesys-webcomponents/{p-e9891ef0.entry.js → p-874dc747.entry.js} +1 -1
  478. package/dist/genesys-webcomponents/{p-7d29918d.entry.js → p-8db67b42.entry.js} +1 -1
  479. package/dist/genesys-webcomponents/{p-b811f588.entry.js → p-8faeada8.entry.js} +1 -1
  480. package/dist/genesys-webcomponents/p-927c2b47.entry.js +1 -0
  481. package/dist/genesys-webcomponents/{p-d806095e.entry.js → p-949fef1f.entry.js} +1 -1
  482. package/dist/genesys-webcomponents/p-97b1ea28.entry.js +1 -0
  483. package/dist/genesys-webcomponents/p-9a57af5e.entry.js +1 -0
  484. package/dist/genesys-webcomponents/{p-e3373caf.entry.js → p-a0c87358.entry.js} +1 -1
  485. package/dist/genesys-webcomponents/{p-e1aded78.entry.js → p-a36bd682.entry.js} +1 -1
  486. package/dist/genesys-webcomponents/{p-e135abdf.entry.js → p-a4a73d53.entry.js} +1 -1
  487. package/dist/genesys-webcomponents/{p-6cf2c987.entry.js → p-a689b4cd.entry.js} +1 -1
  488. package/dist/genesys-webcomponents/{p-ce59b6a5.entry.js → p-a7a93823.entry.js} +1 -1
  489. package/dist/genesys-webcomponents/{p-3f9ed1a0.entry.js → p-ab160e2d.entry.js} +1 -1
  490. package/dist/genesys-webcomponents/{p-82bb41ef.entry.js → p-ab1b396f.entry.js} +1 -1
  491. package/dist/genesys-webcomponents/p-ab33e45e.entry.js +1 -0
  492. package/dist/genesys-webcomponents/{p-c2ed23d5.entry.js → p-ac31bfa7.entry.js} +1 -1
  493. package/dist/genesys-webcomponents/{p-7a0286ba.entry.js → p-adb38b12.entry.js} +1 -1
  494. package/dist/genesys-webcomponents/{p-fdbd5e42.entry.js → p-af3a368d.entry.js} +1 -1
  495. package/dist/genesys-webcomponents/{p-9b440896.entry.js → p-b409ebc9.entry.js} +1 -1
  496. package/dist/genesys-webcomponents/p-b4633db2.entry.js +1 -0
  497. package/dist/genesys-webcomponents/{p-d17ab5c8.entry.js → p-b54b15b3.entry.js} +1 -1
  498. package/dist/genesys-webcomponents/p-b62c2a0f.entry.js +1 -0
  499. package/dist/genesys-webcomponents/p-b8c02c2e.entry.js +1 -0
  500. package/dist/genesys-webcomponents/{p-f25264a0.entry.js → p-ba844217.entry.js} +1 -1
  501. package/dist/genesys-webcomponents/p-bb803769.entry.js +1 -0
  502. package/dist/genesys-webcomponents/{p-0e99917d.entry.js → p-bdf597b4.entry.js} +1 -1
  503. package/dist/genesys-webcomponents/{p-73e09c03.entry.js → p-c08466fc.entry.js} +1 -1
  504. package/dist/genesys-webcomponents/{p-9b16ac3b.entry.js → p-c1c6fc20.entry.js} +1 -1
  505. package/dist/genesys-webcomponents/{p-81559e0d.entry.js → p-c28c1753.entry.js} +1 -1
  506. package/dist/genesys-webcomponents/{p-f04d4630.entry.js → p-c352994a.entry.js} +1 -1
  507. package/dist/genesys-webcomponents/{p-577dc151.entry.js → p-c4d9667d.entry.js} +1 -1
  508. package/dist/genesys-webcomponents/p-c5847c69.js +1 -0
  509. package/dist/genesys-webcomponents/p-c6566c0c.entry.js +1 -0
  510. package/dist/genesys-webcomponents/{p-875432dd.entry.js → p-c7449808.entry.js} +1 -1
  511. package/dist/genesys-webcomponents/{p-4cf88aba.entry.js → p-c815fa61.entry.js} +1 -1
  512. package/dist/genesys-webcomponents/p-c84cf91b.entry.js +1 -0
  513. package/dist/genesys-webcomponents/{p-346fcd0d.entry.js → p-c9ac4c45.entry.js} +1 -1
  514. package/dist/genesys-webcomponents/{p-8aefd475.entry.js → p-ca3db1aa.entry.js} +1 -1
  515. package/dist/genesys-webcomponents/{p-4e618678.entry.js → p-cf7c063a.entry.js} +1 -1
  516. package/dist/genesys-webcomponents/{p-f139788a.entry.js → p-d073ad95.entry.js} +1 -1
  517. package/dist/genesys-webcomponents/{p-78714157.entry.js → p-d0d0367f.entry.js} +1 -1
  518. package/dist/genesys-webcomponents/{p-7ffe0228.entry.js → p-d1235609.entry.js} +1 -1
  519. package/dist/genesys-webcomponents/{p-5a75e700.entry.js → p-d143d5a1.entry.js} +1 -1
  520. package/dist/genesys-webcomponents/{p-7cc77530.entry.js → p-d2d4cb90.entry.js} +1 -1
  521. package/dist/genesys-webcomponents/{p-3aa4d1ea.entry.js → p-d43975d5.entry.js} +1 -1
  522. package/dist/genesys-webcomponents/{p-faf1be96.entry.js → p-d48d4931.entry.js} +1 -1
  523. package/dist/genesys-webcomponents/{p-b333391d.entry.js → p-d53a2cb5.entry.js} +1 -1
  524. package/dist/genesys-webcomponents/{p-78290812.entry.js → p-d5dd6917.entry.js} +1 -1
  525. package/dist/genesys-webcomponents/{p-e30bf599.entry.js → p-db04d242.entry.js} +1 -1
  526. package/dist/genesys-webcomponents/{p-5e90b14c.entry.js → p-db24662a.entry.js} +1 -1
  527. package/dist/genesys-webcomponents/{p-bf71027a.entry.js → p-db2604f5.entry.js} +1 -1
  528. package/dist/genesys-webcomponents/{p-51114005.entry.js → p-dd21b0d9.entry.js} +1 -1
  529. package/dist/genesys-webcomponents/{p-75eb2888.entry.js → p-dd76305f.entry.js} +1 -1
  530. package/dist/genesys-webcomponents/{p-8b59ef4c.entry.js → p-e0778138.entry.js} +1 -1
  531. package/dist/genesys-webcomponents/{p-119e8407.entry.js → p-e3e8ca11.entry.js} +1 -1
  532. package/dist/genesys-webcomponents/{p-f4c492c3.entry.js → p-e4147c40.entry.js} +1 -1
  533. package/dist/genesys-webcomponents/{p-5aade352.js → p-e79ff8f4.js} +1 -1
  534. package/dist/genesys-webcomponents/{p-c041d75a.entry.js → p-e8f3d6a5.entry.js} +1 -1
  535. package/dist/genesys-webcomponents/{p-730bfdcf.entry.js → p-ed37b4dc.entry.js} +1 -1
  536. package/dist/genesys-webcomponents/p-ef6463ff.entry.js +1 -0
  537. package/dist/genesys-webcomponents/{p-ed4a0372.entry.js → p-ef9d03ae.entry.js} +1 -1
  538. package/dist/genesys-webcomponents/{p-1f8183dd.entry.js → p-f77fa8df.entry.js} +1 -1
  539. package/dist/genesys-webcomponents/{p-e0a538ec.entry.js → p-f84aceb6.entry.js} +1 -1
  540. package/dist/genesys-webcomponents/{p-f0e8888a.entry.js → p-f8fa6160.entry.js} +1 -1
  541. package/dist/genesys-webcomponents/{p-cfdf92ee.entry.js → p-f9b90dc5.entry.js} +1 -1
  542. package/dist/genesys-webcomponents/{p-2f417760.entry.js → p-fb9f4472.entry.js} +1 -1
  543. package/dist/genesys-webcomponents/p-fbded9fb.entry.js +1 -0
  544. package/dist/genesys-webcomponents/p-fdf8db23.entry.js +1 -0
  545. package/dist/genesys-webcomponents/{p-7e3cce19.entry.js → p-fe179025.entry.js} +1 -1
  546. package/dist/genesys-webcomponents/{p-afcaf5a8.entry.js → p-fe1e5a80.entry.js} +1 -1
  547. package/dist/genesys-webcomponents/{p-a4dcdbe5.entry.js → p-fea1b60a.entry.js} +1 -1
  548. package/dist/genesys-webcomponents/{p-b27a19b1.entry.js → p-fec808f8.entry.js} +1 -1
  549. package/dist/loader/cdn.js +1 -3
  550. package/dist/loader/index.cjs.js +1 -3
  551. package/dist/loader/index.d.ts +3 -0
  552. package/dist/loader/index.es2017.js +1 -3
  553. package/dist/loader/index.js +1 -3
  554. package/dist/stencil-wrapper.js +1 -1
  555. package/dist/types/stencil-public-runtime.d.ts +3 -10
  556. package/dist/types/stencil-wrapper.d.ts +1 -1
  557. package/package.json +6 -7
  558. package/dist/cjs/index-7fb02c8c.js +0 -3076
  559. package/dist/collection/components/beta/gux-announce/tests/gux-announce.e2e.js +0 -18
  560. package/dist/collection/components/beta/gux-announce/tests/gux-announce.spec.js +0 -19
  561. package/dist/collection/components/beta/gux-avatar/gux-avatar-change-photo/tests/gux-avatar-change-photo.e2e.js +0 -14
  562. package/dist/collection/components/beta/gux-avatar/gux-avatar-change-photo/tests/gux-avatar-change-photo.spec.js +0 -29
  563. package/dist/collection/components/beta/gux-avatar/gux-avatar-focusable/gux-avatar-focusable.e2e.js +0 -29
  564. package/dist/collection/components/beta/gux-avatar/gux-avatar-focusable/tests/gux-avatar-focusable.spec.js +0 -66
  565. package/dist/collection/components/beta/gux-avatar/tests/gux-avatar.e2e.js +0 -67
  566. package/dist/collection/components/beta/gux-avatar/tests/gux-avatar.spec.js +0 -155
  567. package/dist/collection/components/beta/gux-calendar-beta/tests/gux-calendar.e2e.js +0 -202
  568. package/dist/collection/components/beta/gux-calendar-beta/tests/gux-calendar.spec.js +0 -19
  569. package/dist/collection/components/beta/gux-cta-group/tests/gux-cta-group.e2e.js +0 -32
  570. package/dist/collection/components/beta/gux-cta-group/tests/gux-cta-group.spec.js +0 -82
  571. package/dist/collection/components/beta/gux-date/tests/gux-date.e2e.js +0 -30
  572. package/dist/collection/components/beta/gux-date/tests/gux-date.spec.js +0 -82
  573. package/dist/collection/components/beta/gux-date-time/tests/gux-date-time.e2e.js +0 -30
  574. package/dist/collection/components/beta/gux-date-time/tests/gux-date-time.spec.js +0 -68
  575. package/dist/collection/components/beta/gux-flag-icon/tests/gux-flag-icon.e2e.js +0 -268
  576. package/dist/collection/components/beta/gux-flag-icon/tests/gux-flag-icon.spec.js +0 -267
  577. package/dist/collection/components/beta/gux-form/gux-form-description/tests/gux-form-description.e2e.js +0 -16
  578. package/dist/collection/components/beta/gux-form/gux-form-description/tests/gux-form-description.spec.js +0 -12
  579. package/dist/collection/components/beta/gux-form/gux-form-fieldset-heading/tests/gux-form-fieldset-heading.e2e.js +0 -16
  580. package/dist/collection/components/beta/gux-form/gux-form-fieldset-heading/tests/gux-form-fieldset-heading.spec.js +0 -11
  581. package/dist/collection/components/beta/gux-form/gux-form-footer/tests/gux-form-footer.e2e.js +0 -25
  582. package/dist/collection/components/beta/gux-form/gux-form-footer/tests/gux-form-footer.spec.js +0 -17
  583. package/dist/collection/components/beta/gux-form/gux-form-heading/tests/gux-form-heading.e2e.js +0 -16
  584. package/dist/collection/components/beta/gux-form/gux-form-heading/tests/gux-form-heading.spec.js +0 -11
  585. package/dist/collection/components/beta/gux-form/tests/gux-form.e2e.js +0 -78
  586. package/dist/collection/components/beta/gux-form/tests/gux-form.spec.js +0 -148
  587. package/dist/collection/components/beta/gux-icon-tooltip/tests/gux-icon-tooltip.e2e.js +0 -17
  588. package/dist/collection/components/beta/gux-icon-tooltip/tests/gux-icon-tooltip.spec.js +0 -19
  589. package/dist/collection/components/beta/gux-label-info/tests/gux-label-info.e2e.js +0 -17
  590. package/dist/collection/components/beta/gux-label-info/tests/gux-label-info.spec.js +0 -20
  591. package/dist/collection/components/beta/gux-month-picker/tests/gux-month-picker.e2e.js +0 -18
  592. package/dist/collection/components/beta/gux-month-picker/tests/gux-month-picker.spec.js +0 -50
  593. package/dist/collection/components/beta/gux-phone-input/tests/gux-phone-input.e2e.js +0 -110
  594. package/dist/collection/components/beta/gux-screen-reader/tests/gux-screen-reader.e2e.js +0 -16
  595. package/dist/collection/components/beta/gux-screen-reader/tests/gux-screen-reader.spec.js +0 -17
  596. package/dist/collection/components/beta/gux-segmented-control/tests/gux-segmented-control.e2e.js +0 -108
  597. package/dist/collection/components/beta/gux-segmented-control/tests/gux-segmented-control.spec.js +0 -126
  598. package/dist/collection/components/beta/gux-selector-cards/gux-selector-card/tests/gux-selector-card.e2e.js +0 -70
  599. package/dist/collection/components/beta/gux-selector-cards/gux-selector-card/tests/gux-selector-card.spec.js +0 -163
  600. package/dist/collection/components/beta/gux-selector-cards/tests/gux-selector-cards.e2e.js +0 -202
  601. package/dist/collection/components/beta/gux-selector-cards/tests/gux-selector-cards.spec.js +0 -157
  602. package/dist/collection/components/beta/gux-time/tests/gux-time.e2e.js +0 -30
  603. package/dist/collection/components/beta/gux-time/tests/gux-time.spec.js +0 -68
  604. package/dist/collection/components/beta/gux-time-zone/tests/gux-time-zone.service.spec.js +0 -24
  605. package/dist/collection/components/beta/gux-time-zone/tests/gux-time-zone.spec.js +0 -24
  606. package/dist/collection/components/beta/gux-time-zone-picker/tests/gux-time-zone-picker.e2e.js +0 -60
  607. package/dist/collection/components/beta/gux-time-zone-picker/tests/gux-time-zone-picker.spec.js +0 -16
  608. package/dist/collection/components/beta/gux-tooltip-beta/tests/gux-tooltip.e2e.js +0 -40
  609. package/dist/collection/components/beta/gux-tooltip-beta/tests/gux-tooltip.spec.js +0 -64
  610. package/dist/collection/components/legacy/gux-action-toast-legacy/tests/gux-action-toast.e2e.js +0 -26
  611. package/dist/collection/components/legacy/gux-action-toast-legacy/tests/gux-action-toast.spec.js +0 -28
  612. package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/dropdown-option/tests/gux-dropdown-option.spec.js +0 -47
  613. package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/tests/gux-advanced-dropdown.e2e.js +0 -149
  614. package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/tests/gux-advanced-dropdown.spec.js +0 -17
  615. package/dist/collection/components/legacy/gux-disclosure-button-legacy/tests/gux-disclosure-button.e2e.js +0 -80
  616. package/dist/collection/components/legacy/gux-disclosure-button-legacy/tests/gux-disclosure-button.spec.js +0 -82
  617. package/dist/collection/components/legacy/gux-modal-legacy/tests/gux-modal-legacy.e2e.js +0 -301
  618. package/dist/collection/components/legacy/gux-modal-legacy/tests/gux-modal-legacy.spec.js +0 -200
  619. package/dist/collection/components/legacy/gux-notification-toast-legacy/tests/gux-notification-toast.e2e.js +0 -109
  620. package/dist/collection/components/legacy/gux-notification-toast-legacy/tests/gux-notification-toast.spec.js +0 -99
  621. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/tests/gux-pagination-buttons.service.spec.js +0 -138
  622. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/tests/gux-pagination-buttons.spec.js +0 -39
  623. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-item-counts-legacy/tests/gux-pagination-item-counts.spec.js +0 -30
  624. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-items-per-page-legacy/tests/gux-pagination-items-per-page.spec.js +0 -33
  625. package/dist/collection/components/legacy/gux-pagination-legacy/tests/gux-pagination.e2e.js +0 -53
  626. package/dist/collection/components/legacy/gux-pagination-legacy/tests/gux-pagination.spec.js +0 -65
  627. package/dist/collection/components/legacy/gux-simple-toast-legacy/tests/gux-simple-toast.e2e.js +0 -103
  628. package/dist/collection/components/legacy/gux-simple-toast-legacy/tests/gux-simple-toast.spec.js +0 -93
  629. package/dist/collection/components/legacy/gux-switch-legacy/tests/gux-switch.e2e.js +0 -87
  630. package/dist/collection/components/legacy/gux-switch-legacy/tests/gux-switch.spec.js +0 -116
  631. package/dist/collection/components/stable/gux-accordion/tests/gux-accordion.e2e.js +0 -46
  632. package/dist/collection/components/stable/gux-accordion/tests/gux-accordion.spec.js +0 -52
  633. package/dist/collection/components/stable/gux-action-button/tests/gux-action-button.e2e.js +0 -93
  634. package/dist/collection/components/stable/gux-action-button/tests/gux-action-button.spec.js +0 -95
  635. package/dist/collection/components/stable/gux-badge/tests/gux-badge.e2e.js +0 -38
  636. package/dist/collection/components/stable/gux-badge/tests/gux-badge.spec.js +0 -39
  637. package/dist/collection/components/stable/gux-blank-state/tests/gux-blank-state.e2e.js +0 -19
  638. package/dist/collection/components/stable/gux-blank-state/tests/gux-blank-state.spec.js +0 -22
  639. package/dist/collection/components/stable/gux-breadcrumbs/tests/gux-breadcrumbs.e2e.js +0 -48
  640. package/dist/collection/components/stable/gux-breadcrumbs/tests/gux-breadcrumbs.spec.js +0 -91
  641. package/dist/collection/components/stable/gux-button/tests/gux-button.e2e.js +0 -131
  642. package/dist/collection/components/stable/gux-button/tests/gux-button.spec.js +0 -114
  643. package/dist/collection/components/stable/gux-button-multi/tests/gux-button-multi.e2e.js +0 -70
  644. package/dist/collection/components/stable/gux-button-multi/tests/gux-button-multi.spec.js +0 -16
  645. package/dist/collection/components/stable/gux-button-slot/tests/gux-button-slot.e2e.js +0 -206
  646. package/dist/collection/components/stable/gux-button-slot/tests/gux-button-slot.spec.js +0 -258
  647. package/dist/collection/components/stable/gux-calendar/tests/gux-calendar.e2e.js +0 -45
  648. package/dist/collection/components/stable/gux-calendar/tests/gux-calendar.methods.spec.js +0 -235
  649. package/dist/collection/components/stable/gux-calendar/tests/gux-calendar.service.spec.js +0 -160
  650. package/dist/collection/components/stable/gux-calendar/tests/gux-calendar.spec.js +0 -62
  651. package/dist/collection/components/stable/gux-card/tests/gux-card.e2e.js +0 -16
  652. package/dist/collection/components/stable/gux-card/tests/gux-card.spec.js +0 -17
  653. package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/tests/gux-column-manager-item.service.spec.js +0 -35
  654. package/dist/collection/components/stable/gux-content-search/tests/gux-content-search.e2e.js +0 -557
  655. package/dist/collection/components/stable/gux-content-search/tests/gux-content-search.spec.js +0 -198
  656. package/dist/collection/components/stable/gux-context-menu/tests/gux-context-menu.e2e.js +0 -79
  657. package/dist/collection/components/stable/gux-context-menu/tests/gux-context-menu.spec.js +0 -44
  658. package/dist/collection/components/stable/gux-copy-to-clipboard/tests/gux-copy-to-clipboard.e2e.js +0 -23
  659. package/dist/collection/components/stable/gux-copy-to-clipboard/tests/gux-copy-to-clipboard.spec.js +0 -44
  660. package/dist/collection/components/stable/gux-datepicker/tests/gux-datepicker.e2e.js +0 -124
  661. package/dist/collection/components/stable/gux-datepicker/tests/gux-datepicker.service.spec.js +0 -237
  662. package/dist/collection/components/stable/gux-datepicker/tests/gux-datepicker.spec.js +0 -48
  663. package/dist/collection/components/stable/gux-dismiss-button/tests/gux-dismiss-button.e2e.js +0 -20
  664. package/dist/collection/components/stable/gux-dismiss-button/tests/gux-dismiss-button.spec.js +0 -22
  665. package/dist/collection/components/stable/gux-dropdown/tests/gux-dropdown.e2e.js +0 -236
  666. package/dist/collection/components/stable/gux-dropdown/tests/gux-dropdown.spec.js +0 -136
  667. package/dist/collection/components/stable/gux-dropdown-multi/tests/gux-dropdown-multi.e2e.js +0 -284
  668. package/dist/collection/components/stable/gux-dropdown-multi/tests/gux-dropdown-multi.spec.js +0 -24
  669. package/dist/collection/components/stable/gux-flyout-menu/tests/gux-flyout-menu.e2e.js +0 -71
  670. package/dist/collection/components/stable/gux-flyout-menu/tests/gux-flyout-menu.spec.js +0 -52
  671. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/tests/gux-form-field-checkbox.e2e.js +0 -93
  672. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/tests/gux-form-field-checkbox.spec.js +0 -64
  673. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox-group/tests/gux-form-field-checkbox-group.e2e.js +0 -212
  674. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox-group/tests/gux-form-field-checkbox-group.spec.js +0 -146
  675. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/tests/gux-form-field-color.e2e.js +0 -83
  676. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/tests/gux-form-field-color.spec.js +0 -92
  677. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/tests/gux-form-field-dropdown.e2e.js +0 -196
  678. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/tests/gux-form-field-dropdown.spec.js +0 -270
  679. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-file/tests/gux-form-field-file.e2e.js +0 -102
  680. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-file/tests/gux-form-field-file.spec.js +0 -130
  681. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/tests/gux-form-field-number.e2e.js +0 -110
  682. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/tests/gux-form-field-number.spec.js +0 -114
  683. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-phone/tests/gux-form-field-phone.e2e.js +0 -82
  684. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-phone/tests/gux-form-field-phone.spec.js +0 -77
  685. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/tests/gux-form-field-radio.e2e.js +0 -119
  686. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/tests/gux-form-field-radio.spec.js +0 -75
  687. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio-group/tests/gux-form-field-radio-group.e2e.js +0 -206
  688. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio-group/tests/gux-form-field-radio-group.spec.js +0 -172
  689. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/tests/gux-form-field-search.e2e.js +0 -83
  690. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/tests/gux-form-field-search.spec.js +0 -94
  691. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/tests/gux-form-field-select.e2e.js +0 -95
  692. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/tests/gux-form-field-select.spec.js +0 -117
  693. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/tests/gux-form-field-text-like.e2e.js +0 -198
  694. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/tests/gux-form-field-text-like.spec.js +0 -174
  695. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/tests/gux-form-field-textarea.e2e.js +0 -104
  696. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/tests/gux-form-field-textarea.spec.js +0 -108
  697. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/tests/gux-form-field-time-picker.e2e.js +0 -83
  698. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/tests/gux-form-field-time-picker.spec.js +0 -95
  699. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-zone-picker/tests/gux-form-field-time-zone-picker.e2e.js +0 -123
  700. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-zone-picker/tests/gux-form-field-time-zone-picker.spec.js +0 -142
  701. package/dist/collection/components/stable/gux-form-field/helper-components/gux-form-field-optional-indicator/tests/gux-form-field-label-indicator.spec.js +0 -20
  702. package/dist/collection/components/stable/gux-form-field/tests/gux-form-field.service.spec.js +0 -19
  703. package/dist/collection/components/stable/gux-icon/tests/gux-icon.service.spec.js +0 -22
  704. package/dist/collection/components/stable/gux-icon/tests/gux-icon.spec.js +0 -6
  705. package/dist/collection/components/stable/gux-icon/tests/icon-names-deprecated.spec.js +0 -13
  706. package/dist/collection/components/stable/gux-inline-alert/tests/gux-inline-alert.e2e.js +0 -18
  707. package/dist/collection/components/stable/gux-inline-alert/tests/gux-inline-alert.spec.js +0 -19
  708. package/dist/collection/components/stable/gux-list/gux-list-divider/tests/gux-list-divider.spec.js +0 -22
  709. package/dist/collection/components/stable/gux-list/gux-list-item/tests/gux-list-item.spec.js +0 -22
  710. package/dist/collection/components/stable/gux-list/tests/gux-list.e2e.js +0 -20
  711. package/dist/collection/components/stable/gux-list/tests/gux-list.spec.js +0 -23
  712. package/dist/collection/components/stable/gux-loading-message/tests/gux-loading-message.e2e.js +0 -14
  713. package/dist/collection/components/stable/gux-loading-message/tests/gux-loading-message.spec.js +0 -27
  714. package/dist/collection/components/stable/gux-modal/tests/gux-modal.e2e.js +0 -285
  715. package/dist/collection/components/stable/gux-modal/tests/gux-modal.spec.js +0 -195
  716. package/dist/collection/components/stable/gux-page-loading-spinner/tests/gux-page-loading-spinner.e2e.js +0 -33
  717. package/dist/collection/components/stable/gux-page-loading-spinner/tests/gux-page-loading-spinner.spec.js +0 -12
  718. package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/tests/gux-pagination-buttons.service.spec.js +0 -129
  719. package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/tests/gux-pagination-buttons.spec.js +0 -32
  720. package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/tests/gux-pagination-item-counts.spec.js +0 -30
  721. package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/tests/gux-pagination-items-per-page.spec.js +0 -33
  722. package/dist/collection/components/stable/gux-pagination/tests/gux-pagination.e2e.js +0 -97
  723. package/dist/collection/components/stable/gux-pagination/tests/gux-pagination.spec.js +0 -116
  724. package/dist/collection/components/stable/gux-pagination-cursor/tests/gux-pagination-cursor.e2e.js +0 -66
  725. package/dist/collection/components/stable/gux-pagination-cursor/tests/gux-pagination-cursor.spec.js +0 -67
  726. package/dist/collection/components/stable/gux-popover/tests/gux-popover.e2e.js +0 -60
  727. package/dist/collection/components/stable/gux-popover/tests/gux-popover.spec.js +0 -54
  728. package/dist/collection/components/stable/gux-popover-list/tests/gux-popover-list.e2e.js +0 -59
  729. package/dist/collection/components/stable/gux-popover-list/tests/gux-popover-list.spec.js +0 -53
  730. package/dist/collection/components/stable/gux-popup/tests/gux-popup.e2e.js +0 -30
  731. package/dist/collection/components/stable/gux-popup/tests/gux-popup.spec.js +0 -41
  732. package/dist/collection/components/stable/gux-radial-loading/tests/gux-radial-loading.e2e.js +0 -33
  733. package/dist/collection/components/stable/gux-radial-loading/tests/gux-radial-loading.spec.js +0 -33
  734. package/dist/collection/components/stable/gux-radial-progress/tests/gux-radial-progress.e2e.js +0 -58
  735. package/dist/collection/components/stable/gux-radial-progress/tests/gux-radial-progress.service.spec.js +0 -36
  736. package/dist/collection/components/stable/gux-radial-progress/tests/gux-radial-progress.spec.js +0 -61
  737. package/dist/collection/components/stable/gux-rating/tests/gux-rating.e2e.js +0 -311
  738. package/dist/collection/components/stable/gux-rating/tests/gux-rating.spec.js +0 -44
  739. package/dist/collection/components/stable/gux-skip-navigation-list/tests/gux-skip-navigation-list.e2e.js +0 -24
  740. package/dist/collection/components/stable/gux-skip-navigation-list/tests/gux-skip-navigation-list.spec.js +0 -29
  741. package/dist/collection/components/stable/gux-table/gux-all-row-select/tests/gux-all-row-select.spec.js +0 -11
  742. package/dist/collection/components/stable/gux-table/gux-row-select/tests/gux-row-select.spec.js +0 -11
  743. package/dist/collection/components/stable/gux-table/gux-sort-control/tests/gux-sort-control.e2e.js +0 -56
  744. package/dist/collection/components/stable/gux-table/gux-sort-control/tests/gux-sort-control.spec.js +0 -44
  745. package/dist/collection/components/stable/gux-table/gux-table-select-menu/tests/gux-table-select-menu.spec.js +0 -24
  746. package/dist/collection/components/stable/gux-table/tests/gux-table.e2e.js +0 -543
  747. package/dist/collection/components/stable/gux-table/tests/gux-table.spec.js +0 -28
  748. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-action/tests/gux-table-toolbar-action.e2e.js +0 -53
  749. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-action/tests/gux-table-toolbar-action.spec.js +0 -54
  750. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-custom-action/tests/gux-table-toolbar-custom-action.e2e.js +0 -44
  751. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-custom-action/tests/gux-table-toolbar-custom-action.spec.js +0 -24
  752. package/dist/collection/components/stable/gux-table-toolbar/tests/gux-table-toolbar.e2e.js +0 -46
  753. package/dist/collection/components/stable/gux-table-toolbar/tests/gux-table-toolbar.spec.js +0 -59
  754. package/dist/collection/components/stable/gux-tabs/gux-tab/tests/gux-tab.e2e.js +0 -15
  755. package/dist/collection/components/stable/gux-tabs/gux-tab/tests/gux-tab.spec.js +0 -16
  756. package/dist/collection/components/stable/gux-tabs/gux-tab-list/tests/gux-tab-list.e2e.js +0 -15
  757. package/dist/collection/components/stable/gux-tabs/gux-tab-list/tests/gux-tab-list.spec.js +0 -16
  758. package/dist/collection/components/stable/gux-tabs/gux-tab-panel/tests/gux-tab-panel.e2e.js +0 -15
  759. package/dist/collection/components/stable/gux-tabs/gux-tab-panel/tests/gux-tab-panel.spec.js +0 -16
  760. package/dist/collection/components/stable/gux-tabs/tests/gux-tabs.e2e.js +0 -140
  761. package/dist/collection/components/stable/gux-tabs/tests/gux-tabs.spec.js +0 -57
  762. package/dist/collection/components/stable/gux-tabs-advanced/tests/gux-tabs-advanced.e2e.js +0 -222
  763. package/dist/collection/components/stable/gux-tabs-advanced/tests/gux-tabs-advanced.spec.js +0 -73
  764. package/dist/collection/components/stable/gux-tag/tests/gux-tag.e2e.js +0 -161
  765. package/dist/collection/components/stable/gux-tag/tests/gux-tag.spec.js +0 -134
  766. package/dist/collection/components/stable/gux-text-highlight/tests/gux-text-highlight.e2e.js +0 -147
  767. package/dist/collection/components/stable/gux-text-highlight/tests/gux-text-hightlight.spec.js +0 -149
  768. package/dist/collection/components/stable/gux-time-picker/tests/gux-time-picker.e2e.js +0 -41
  769. package/dist/collection/components/stable/gux-time-picker/tests/gux-time-picker.service.spec.js +0 -710
  770. package/dist/collection/components/stable/gux-time-picker/tests/gux-time-picker.spec.js +0 -36
  771. package/dist/collection/components/stable/gux-toast/tests/gux-toast.e2e.js +0 -121
  772. package/dist/collection/components/stable/gux-toast/tests/gux-toast.spec.js +0 -111
  773. package/dist/collection/components/stable/gux-toggle/tests/gux-toggle.e2e.js +0 -154
  774. package/dist/collection/components/stable/gux-toggle/tests/gux-toggle.spec.js +0 -128
  775. package/dist/collection/components/stable/gux-tooltip/tests/gux-tooltip.e2e.js +0 -37
  776. package/dist/collection/components/stable/gux-tooltip/tests/gux-tooltip.spec.js +0 -63
  777. package/dist/collection/components/stable/gux-tooltip-title/tests/gux-tooltip-title.e2e.js +0 -86
  778. package/dist/collection/components/stable/gux-truncate/tests/gux-truncate.e2e.js +0 -76
  779. package/dist/collection/components/stable/gux-truncate/tests/gux-truncate.spec.js +0 -23
  780. package/dist/collection/utils/date/from-iso-time-string.spec.js +0 -13
  781. package/dist/collection/utils/date/get-valid-timezone.spec.js +0 -38
  782. package/dist/collection/utils/date/iso-dates.spec.js +0 -170
  783. package/dist/collection/utils/date/time-zone.spec.js +0 -22
  784. package/dist/collection/utils/date/year-month-values.spec.js +0 -81
  785. package/dist/collection/utils/dom/event-is-from.spec.js +0 -29
  786. package/dist/collection/utils/dom/manipulate-elements-classes.spec.js +0 -104
  787. package/dist/collection/utils/dom/random-html-id.spec.js +0 -14
  788. package/dist/collection/utils/dom/when-event-is-from.spec.js +0 -37
  789. package/dist/collection/utils/string/search.spec.js +0 -40
  790. package/dist/collection/utils/tracking/usage.spec.js +0 -121
  791. package/dist/esm/index-da21b737.js +0 -3043
  792. package/dist/esm/polyfills/core-js.js +0 -11
  793. package/dist/esm/polyfills/dom.js +0 -79
  794. package/dist/esm/polyfills/es5-html-element.js +0 -1
  795. package/dist/esm/polyfills/index.js +0 -34
  796. package/dist/esm/polyfills/system.js +0 -6
  797. package/dist/genesys-webcomponents/p-01471ba0.js +0 -1
  798. package/dist/genesys-webcomponents/p-059ba1e7.entry.js +0 -1
  799. package/dist/genesys-webcomponents/p-0b410c79.entry.js +0 -1
  800. package/dist/genesys-webcomponents/p-0e357b17.entry.js +0 -1
  801. package/dist/genesys-webcomponents/p-1946c20f.entry.js +0 -1
  802. package/dist/genesys-webcomponents/p-194e09a1.entry.js +0 -1
  803. package/dist/genesys-webcomponents/p-2e827df1.js +0 -2
  804. package/dist/genesys-webcomponents/p-351f6109.entry.js +0 -1
  805. package/dist/genesys-webcomponents/p-3b7a79af.entry.js +0 -1
  806. package/dist/genesys-webcomponents/p-477b6ccb.entry.js +0 -1
  807. package/dist/genesys-webcomponents/p-4c9dc5aa.entry.js +0 -1
  808. package/dist/genesys-webcomponents/p-4f5dc8e4.entry.js +0 -1
  809. package/dist/genesys-webcomponents/p-4f9cb6ca.entry.js +0 -1
  810. package/dist/genesys-webcomponents/p-522d095f.entry.js +0 -1
  811. package/dist/genesys-webcomponents/p-53ed124f.entry.js +0 -1
  812. package/dist/genesys-webcomponents/p-5de256c6.entry.js +0 -1
  813. package/dist/genesys-webcomponents/p-7a450e35.entry.js +0 -1
  814. package/dist/genesys-webcomponents/p-7e720a33.entry.js +0 -1
  815. package/dist/genesys-webcomponents/p-825590f8.entry.js +0 -1
  816. package/dist/genesys-webcomponents/p-83b34196.entry.js +0 -1
  817. package/dist/genesys-webcomponents/p-84e7e0c3.entry.js +0 -1
  818. package/dist/genesys-webcomponents/p-8e30e75e.entry.js +0 -1
  819. package/dist/genesys-webcomponents/p-8e98278f.entry.js +0 -1
  820. package/dist/genesys-webcomponents/p-a5415051.js +0 -1
  821. package/dist/genesys-webcomponents/p-ab6cf9b9.js +0 -1
  822. package/dist/genesys-webcomponents/p-b40006ba.entry.js +0 -1
  823. package/dist/genesys-webcomponents/p-b4c99969.entry.js +0 -1
  824. package/dist/genesys-webcomponents/p-c2395684.entry.js +0 -1
  825. package/dist/genesys-webcomponents/p-dab8f285.entry.js +0 -1
  826. package/dist/genesys-webcomponents/p-dec73db1.entry.js +0 -1
@@ -1,3076 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopNamespace(e) {
4
- if (e && e.__esModule) return e;
5
- var n = Object.create(null);
6
- if (e) {
7
- Object.keys(e).forEach(function (k) {
8
- if (k !== 'default') {
9
- var d = Object.getOwnPropertyDescriptor(e, k);
10
- Object.defineProperty(n, k, d.get ? d : {
11
- enumerable: true,
12
- get: function () {
13
- return e[k];
14
- }
15
- });
16
- }
17
- });
18
- }
19
- n['default'] = e;
20
- return Object.freeze(n);
21
- }
22
-
23
- const NAMESPACE = 'genesys-webcomponents';
24
- const BUILD = /* genesys-webcomponents */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
25
-
26
- /**
27
- * Virtual DOM patching algorithm based on Snabbdom by
28
- * Simon Friis Vindum (@paldepind)
29
- * Licensed under the MIT License
30
- * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
31
- *
32
- * Modified for Stencil's renderer and slot projection
33
- */
34
- let scopeId;
35
- let contentRef;
36
- let hostTagName;
37
- let useNativeShadowDom = false;
38
- let checkSlotFallbackVisibility = false;
39
- let checkSlotRelocate = false;
40
- let isSvgMode = false;
41
- let queuePending = false;
42
- const getAssetPath = (path) => {
43
- const assetUrl = new URL(path, plt.$resourcesUrl$);
44
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
45
- };
46
- const createTime = (fnName, tagName = '') => {
47
- {
48
- return () => {
49
- return;
50
- };
51
- }
52
- };
53
- const uniqueTime = (key, measureText) => {
54
- {
55
- return () => {
56
- return;
57
- };
58
- }
59
- };
60
- const HYDRATED_CSS = '{visibility:hidden}[hydrated]{visibility:inherit}';
61
- /**
62
- * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
63
- *
64
- * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
65
- * support as of Stencil v4.
66
- */
67
- const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
68
- /**
69
- * Default style mode id
70
- */
71
- /**
72
- * Reusable empty obj/array
73
- * Don't add values to these!!
74
- */
75
- const EMPTY_OBJ = {};
76
- /**
77
- * Namespaces
78
- */
79
- const SVG_NS = 'http://www.w3.org/2000/svg';
80
- const HTML_NS = 'http://www.w3.org/1999/xhtml';
81
- const isDef = (v) => v != null;
82
- /**
83
- * Check whether a value is a 'complex type', defined here as an object or a
84
- * function.
85
- *
86
- * @param o the value to check
87
- * @returns whether it's a complex type or not
88
- */
89
- const isComplexType = (o) => {
90
- // https://jsperf.com/typeof-fn-object/5
91
- o = typeof o;
92
- return o === 'object' || o === 'function';
93
- };
94
- /**
95
- * Helper method for querying a `meta` tag that contains a nonce value
96
- * out of a DOM's head.
97
- *
98
- * @param doc The DOM containing the `head` to query against
99
- * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
100
- * exists or the tag has no content.
101
- */
102
- function queryNonceMetaTagContent(doc) {
103
- var _a, _b, _c;
104
- return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
105
- }
106
- /**
107
- * Production h() function based on Preact by
108
- * Jason Miller (@developit)
109
- * Licensed under the MIT License
110
- * https://github.com/developit/preact/blob/master/LICENSE
111
- *
112
- * Modified for Stencil's compiler and vdom
113
- */
114
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
115
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
116
- const h = (nodeName, vnodeData, ...children) => {
117
- let child = null;
118
- let key = null;
119
- let slotName = null;
120
- let simple = false;
121
- let lastSimple = false;
122
- const vNodeChildren = [];
123
- const walk = (c) => {
124
- for (let i = 0; i < c.length; i++) {
125
- child = c[i];
126
- if (Array.isArray(child)) {
127
- walk(child);
128
- }
129
- else if (child != null && typeof child !== 'boolean') {
130
- if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
131
- child = String(child);
132
- }
133
- if (simple && lastSimple) {
134
- // If the previous child was simple (string), we merge both
135
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
136
- }
137
- else {
138
- // Append a new vNode, if it's text, we create a text vNode
139
- vNodeChildren.push(simple ? newVNode(null, child) : child);
140
- }
141
- lastSimple = simple;
142
- }
143
- }
144
- };
145
- walk(children);
146
- if (vnodeData) {
147
- if (vnodeData.key) {
148
- key = vnodeData.key;
149
- }
150
- if (vnodeData.name) {
151
- slotName = vnodeData.name;
152
- }
153
- // normalize class / className attributes
154
- {
155
- const classData = vnodeData.className || vnodeData.class;
156
- if (classData) {
157
- vnodeData.class =
158
- typeof classData !== 'object'
159
- ? classData
160
- : Object.keys(classData)
161
- .filter((k) => classData[k])
162
- .join(' ');
163
- }
164
- }
165
- }
166
- if (typeof nodeName === 'function') {
167
- // nodeName is a functional component
168
- return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
169
- }
170
- const vnode = newVNode(nodeName, null);
171
- vnode.$attrs$ = vnodeData;
172
- if (vNodeChildren.length > 0) {
173
- vnode.$children$ = vNodeChildren;
174
- }
175
- {
176
- vnode.$key$ = key;
177
- }
178
- {
179
- vnode.$name$ = slotName;
180
- }
181
- return vnode;
182
- };
183
- /**
184
- * A utility function for creating a virtual DOM node from a tag and some
185
- * possible text content.
186
- *
187
- * @param tag the tag for this element
188
- * @param text possible text content for the node
189
- * @returns a newly-minted virtual DOM node
190
- */
191
- const newVNode = (tag, text) => {
192
- const vnode = {
193
- $flags$: 0,
194
- $tag$: tag,
195
- $text$: text,
196
- $elm$: null,
197
- $children$: null,
198
- };
199
- {
200
- vnode.$attrs$ = null;
201
- }
202
- {
203
- vnode.$key$ = null;
204
- }
205
- {
206
- vnode.$name$ = null;
207
- }
208
- return vnode;
209
- };
210
- const Host = {};
211
- /**
212
- * Check whether a given node is a Host node or not
213
- *
214
- * @param node the virtual DOM node to check
215
- * @returns whether it's a Host node or not
216
- */
217
- const isHost = (node) => node && node.$tag$ === Host;
218
- /**
219
- * Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
220
- *
221
- * Note that these functions convert from {@link d.VNode} to
222
- * {@link d.ChildNode} to give functional component developers a friendly
223
- * interface.
224
- */
225
- const vdomFnUtils = {
226
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
227
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
228
- };
229
- /**
230
- * Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
231
- * friendlier public interface (hence, 'convertToPublic').
232
- *
233
- * @param node the virtual DOM node to convert
234
- * @returns a converted child node
235
- */
236
- const convertToPublic = (node) => ({
237
- vattrs: node.$attrs$,
238
- vchildren: node.$children$,
239
- vkey: node.$key$,
240
- vname: node.$name$,
241
- vtag: node.$tag$,
242
- vtext: node.$text$,
243
- });
244
- /**
245
- * Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
246
- * order to use the resulting object in the virtual DOM. The initial object was
247
- * likely created as part of presenting a public API, so converting it back
248
- * involved making it 'private' again (hence, `convertToPrivate`).
249
- *
250
- * @param node the child node to convert
251
- * @returns a converted virtual DOM node
252
- */
253
- const convertToPrivate = (node) => {
254
- if (typeof node.vtag === 'function') {
255
- const vnodeData = Object.assign({}, node.vattrs);
256
- if (node.vkey) {
257
- vnodeData.key = node.vkey;
258
- }
259
- if (node.vname) {
260
- vnodeData.name = node.vname;
261
- }
262
- return h(node.vtag, vnodeData, ...(node.vchildren || []));
263
- }
264
- const vnode = newVNode(node.vtag, node.vtext);
265
- vnode.$attrs$ = node.vattrs;
266
- vnode.$children$ = node.vchildren;
267
- vnode.$key$ = node.vkey;
268
- vnode.$name$ = node.vname;
269
- return vnode;
270
- };
271
- /**
272
- * Parse a new property value for a given property type.
273
- *
274
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
275
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
276
- * 1. `any`, the type given to `propValue` in the function signature
277
- * 2. the type stored from `propType`.
278
- *
279
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
280
- *
281
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
282
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
283
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
284
- * ```tsx
285
- * <my-cmp prop-val={0}></my-cmp>
286
- * ```
287
- *
288
- * HTML prop values on the other hand, will always a string
289
- *
290
- * @param propValue the new value to coerce to some type
291
- * @param propType the type of the prop, expressed as a binary number
292
- * @returns the parsed/coerced value
293
- */
294
- const parsePropertyValue = (propValue, propType) => {
295
- // ensure this value is of the correct prop type
296
- if (propValue != null && !isComplexType(propValue)) {
297
- if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
298
- // per the HTML spec, any string value means it is a boolean true value
299
- // but we'll cheat here and say that the string "false" is the boolean false
300
- return propValue === 'false' ? false : propValue === '' || !!propValue;
301
- }
302
- if (propType & 2 /* MEMBER_FLAGS.Number */) {
303
- // force it to be a number
304
- return parseFloat(propValue);
305
- }
306
- if (propType & 1 /* MEMBER_FLAGS.String */) {
307
- // could have been passed as a number or boolean
308
- // but we still want it as a string
309
- return String(propValue);
310
- }
311
- // redundant return here for better minification
312
- return propValue;
313
- }
314
- // not sure exactly what type we want
315
- // so no need to change to a different type
316
- return propValue;
317
- };
318
- const getElement = (ref) => (getHostRef(ref).$hostElement$ );
319
- const createEvent = (ref, name, flags) => {
320
- const elm = getElement(ref);
321
- return {
322
- emit: (detail) => {
323
- return emitEvent(elm, name, {
324
- bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
325
- composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
326
- cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
327
- detail,
328
- });
329
- },
330
- };
331
- };
332
- /**
333
- * Helper function to create & dispatch a custom Event on a provided target
334
- * @param elm the target of the Event
335
- * @param name the name to give the custom Event
336
- * @param opts options for configuring a custom Event
337
- * @returns the custom Event
338
- */
339
- const emitEvent = (elm, name, opts) => {
340
- const ev = plt.ce(name, opts);
341
- elm.dispatchEvent(ev);
342
- return ev;
343
- };
344
- const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
345
- const registerStyle = (scopeId, cssText, allowCS) => {
346
- let style = styles.get(scopeId);
347
- if (supportsConstructableStylesheets && allowCS) {
348
- style = (style || new CSSStyleSheet());
349
- if (typeof style === 'string') {
350
- style = cssText;
351
- }
352
- else {
353
- style.replaceSync(cssText);
354
- }
355
- }
356
- else {
357
- style = cssText;
358
- }
359
- styles.set(scopeId, style);
360
- };
361
- const addStyle = (styleContainerNode, cmpMeta, mode) => {
362
- var _a;
363
- const scopeId = getScopeId(cmpMeta);
364
- const style = styles.get(scopeId);
365
- // if an element is NOT connected then getRootNode() will return the wrong root node
366
- // so the fallback is to always use the document for the root node in those cases
367
- styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
368
- if (style) {
369
- if (typeof style === 'string') {
370
- styleContainerNode = styleContainerNode.head || styleContainerNode;
371
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
372
- let styleElm;
373
- if (!appliedStyles) {
374
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
375
- }
376
- if (!appliedStyles.has(scopeId)) {
377
- {
378
- styleElm = doc.createElement('style');
379
- styleElm.innerHTML = style;
380
- // Apply CSP nonce to the style tag if it exists
381
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
382
- if (nonce != null) {
383
- styleElm.setAttribute('nonce', nonce);
384
- }
385
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
386
- }
387
- // Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
388
- if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
389
- styleElm.innerHTML += SLOT_FB_CSS;
390
- }
391
- if (appliedStyles) {
392
- appliedStyles.add(scopeId);
393
- }
394
- }
395
- }
396
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
397
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
398
- }
399
- }
400
- return scopeId;
401
- };
402
- const attachStyles = (hostRef) => {
403
- const cmpMeta = hostRef.$cmpMeta$;
404
- const elm = hostRef.$hostElement$;
405
- const flags = cmpMeta.$flags$;
406
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
407
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
408
- if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
409
- // only required when we're NOT using native shadow dom (slot)
410
- // or this browser doesn't support native shadow dom
411
- // and this host element was NOT created with SSR
412
- // let's pick out the inner content for slot projection
413
- // create a node to represent where the original
414
- // content was first placed, which is useful later on
415
- // DOM WRITE!!
416
- elm['s-sc'] = scopeId;
417
- elm.classList.add(scopeId + '-h');
418
- }
419
- endAttachStyles();
420
- };
421
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
422
- /**
423
- * Production setAccessor() function based on Preact by
424
- * Jason Miller (@developit)
425
- * Licensed under the MIT License
426
- * https://github.com/developit/preact/blob/master/LICENSE
427
- *
428
- * Modified for Stencil's compiler and vdom
429
- */
430
- /**
431
- * When running a VDom render set properties present on a VDom node onto the
432
- * corresponding HTML element.
433
- *
434
- * Note that this function has special functionality for the `class`,
435
- * `style`, `key`, and `ref` attributes, as well as event handlers (like
436
- * `onClick`, etc). All others are just passed through as-is.
437
- *
438
- * @param elm the HTMLElement onto which attributes should be set
439
- * @param memberName the name of the attribute to set
440
- * @param oldValue the old value for the attribute
441
- * @param newValue the new value for the attribute
442
- * @param isSvg whether we're in an svg context or not
443
- * @param flags bitflags for Vdom variables
444
- */
445
- const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
446
- if (oldValue !== newValue) {
447
- let isProp = isMemberInElement(elm, memberName);
448
- let ln = memberName.toLowerCase();
449
- if (memberName === 'class') {
450
- const classList = elm.classList;
451
- const oldClasses = parseClassList(oldValue);
452
- const newClasses = parseClassList(newValue);
453
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
454
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
455
- }
456
- else if (memberName === 'style') {
457
- // update style attribute, css properties and values
458
- {
459
- for (const prop in oldValue) {
460
- if (!newValue || newValue[prop] == null) {
461
- if (prop.includes('-')) {
462
- elm.style.removeProperty(prop);
463
- }
464
- else {
465
- elm.style[prop] = '';
466
- }
467
- }
468
- }
469
- }
470
- for (const prop in newValue) {
471
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
472
- if (prop.includes('-')) {
473
- elm.style.setProperty(prop, newValue[prop]);
474
- }
475
- else {
476
- elm.style[prop] = newValue[prop];
477
- }
478
- }
479
- }
480
- }
481
- else if (memberName === 'key')
482
- ;
483
- else if (memberName === 'ref') {
484
- // minifier will clean this up
485
- if (newValue) {
486
- newValue(elm);
487
- }
488
- }
489
- else if ((!isProp ) &&
490
- memberName[0] === 'o' &&
491
- memberName[1] === 'n') {
492
- // Event Handlers
493
- // so if the member name starts with "on" and the 3rd characters is
494
- // a capital letter, and it's not already a member on the element,
495
- // then we're assuming it's an event listener
496
- if (memberName[2] === '-') {
497
- // on- prefixed events
498
- // allows to be explicit about the dom event to listen without any magic
499
- // under the hood:
500
- // <my-cmp on-click> // listens for "click"
501
- // <my-cmp on-Click> // listens for "Click"
502
- // <my-cmp on-ionChange> // listens for "ionChange"
503
- // <my-cmp on-EVENTS> // listens for "EVENTS"
504
- memberName = memberName.slice(3);
505
- }
506
- else if (isMemberInElement(win, ln)) {
507
- // standard event
508
- // the JSX attribute could have been "onMouseOver" and the
509
- // member name "onmouseover" is on the window's prototype
510
- // so let's add the listener "mouseover", which is all lowercased
511
- memberName = ln.slice(2);
512
- }
513
- else {
514
- // custom event
515
- // the JSX attribute could have been "onMyCustomEvent"
516
- // so let's trim off the "on" prefix and lowercase the first character
517
- // and add the listener "myCustomEvent"
518
- // except for the first character, we keep the event name case
519
- memberName = ln[2] + memberName.slice(3);
520
- }
521
- if (oldValue || newValue) {
522
- // Need to account for "capture" events.
523
- // If the event name ends with "Capture", we'll update the name to remove
524
- // the "Capture" suffix and make sure the event listener is setup to handle the capture event.
525
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
526
- // Make sure we only replace the last instance of "Capture"
527
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, '');
528
- if (oldValue) {
529
- plt.rel(elm, memberName, oldValue, capture);
530
- }
531
- if (newValue) {
532
- plt.ael(elm, memberName, newValue, capture);
533
- }
534
- }
535
- }
536
- else {
537
- // Set property if it exists and it's not a SVG
538
- const isComplex = isComplexType(newValue);
539
- if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
540
- try {
541
- if (!elm.tagName.includes('-')) {
542
- const n = newValue == null ? '' : newValue;
543
- // Workaround for Safari, moving the <input> caret when re-assigning the same valued
544
- if (memberName === 'list') {
545
- isProp = false;
546
- }
547
- else if (oldValue == null || elm[memberName] != n) {
548
- elm[memberName] = n;
549
- }
550
- }
551
- else {
552
- elm[memberName] = newValue;
553
- }
554
- }
555
- catch (e) {
556
- /**
557
- * in case someone tries to set a read-only property, e.g. "namespaceURI", we just ignore it
558
- */
559
- }
560
- }
561
- if (newValue == null || newValue === false) {
562
- if (newValue !== false || elm.getAttribute(memberName) === '') {
563
- {
564
- elm.removeAttribute(memberName);
565
- }
566
- }
567
- }
568
- else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
569
- newValue = newValue === true ? '' : newValue;
570
- {
571
- elm.setAttribute(memberName, newValue);
572
- }
573
- }
574
- }
575
- }
576
- };
577
- const parseClassListRegex = /\s/;
578
- /**
579
- * Parsed a string of classnames into an array
580
- * @param value className string, e.g. "foo bar baz"
581
- * @returns list of classes, e.g. ["foo", "bar", "baz"]
582
- */
583
- const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
584
- const CAPTURE_EVENT_SUFFIX = 'Capture';
585
- const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
586
- const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
587
- // if the element passed in is a shadow root, which is a document fragment
588
- // then we want to be adding attrs/props to the shadow root's "host" element
589
- // if it's not a shadow root, then we add attrs/props to the same element
590
- const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
591
- ? newVnode.$elm$.host
592
- : newVnode.$elm$;
593
- const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
594
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
595
- {
596
- // remove attributes no longer present on the vnode by setting them to undefined
597
- for (memberName in oldVnodeAttrs) {
598
- if (!(memberName in newVnodeAttrs)) {
599
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
600
- }
601
- }
602
- }
603
- // add new & update changed attributes
604
- for (memberName in newVnodeAttrs) {
605
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
606
- }
607
- };
608
- /**
609
- * Create a DOM Node corresponding to one of the children of a given VNode.
610
- *
611
- * @param oldParentVNode the parent VNode from the previous render
612
- * @param newParentVNode the parent VNode from the current render
613
- * @param childIndex the index of the VNode, in the _new_ parent node's
614
- * children, for which we will create a new DOM node
615
- * @param parentElm the parent DOM node which our new node will be a child of
616
- * @returns the newly created node
617
- */
618
- const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
619
- // tslint:disable-next-line: prefer-const
620
- const newVNode = newParentVNode.$children$[childIndex];
621
- let i = 0;
622
- let elm;
623
- let childNode;
624
- let oldVNode;
625
- if (!useNativeShadowDom) {
626
- // remember for later we need to check to relocate nodes
627
- checkSlotRelocate = true;
628
- if (newVNode.$tag$ === 'slot') {
629
- if (scopeId) {
630
- // scoped css needs to add its scoped id to the parent element
631
- parentElm.classList.add(scopeId + '-s');
632
- }
633
- newVNode.$flags$ |= newVNode.$children$
634
- ? // slot element has fallback content
635
- 2 /* VNODE_FLAGS.isSlotFallback */
636
- : // slot element does not have fallback content
637
- 1 /* VNODE_FLAGS.isSlotReference */;
638
- }
639
- }
640
- if (newVNode.$text$ !== null) {
641
- // create text node
642
- elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
643
- }
644
- else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
645
- // create a slot reference node
646
- elm = newVNode.$elm$ =
647
- doc.createTextNode('');
648
- }
649
- else {
650
- if (!isSvgMode) {
651
- isSvgMode = newVNode.$tag$ === 'svg';
652
- }
653
- // create element
654
- elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
655
- ? 'slot-fb'
656
- : newVNode.$tag$)
657
- );
658
- if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
659
- isSvgMode = false;
660
- }
661
- // add css classes, attrs, props, listeners, etc.
662
- {
663
- updateElement(null, newVNode, isSvgMode);
664
- }
665
- if (isDef(scopeId) && elm['s-si'] !== scopeId) {
666
- // if there is a scopeId and this is the initial render
667
- // then let's add the scopeId as a css class
668
- elm.classList.add((elm['s-si'] = scopeId));
669
- }
670
- if (newVNode.$children$) {
671
- for (i = 0; i < newVNode.$children$.length; ++i) {
672
- // create the node
673
- childNode = createElm(oldParentVNode, newVNode, i, elm);
674
- // return node could have been null
675
- if (childNode) {
676
- // append our new node
677
- elm.appendChild(childNode);
678
- }
679
- }
680
- }
681
- {
682
- if (newVNode.$tag$ === 'svg') {
683
- // Only reset the SVG context when we're exiting <svg> element
684
- isSvgMode = false;
685
- }
686
- else if (elm.tagName === 'foreignObject') {
687
- // Reenter SVG context when we're exiting <foreignObject> element
688
- isSvgMode = true;
689
- }
690
- }
691
- }
692
- // This needs to always happen so we can hide nodes that are projected
693
- // to another component but don't end up in a slot
694
- elm['s-hn'] = hostTagName;
695
- {
696
- if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
697
- // remember the content reference comment
698
- elm['s-sr'] = true;
699
- // remember the content reference comment
700
- elm['s-cr'] = contentRef;
701
- // remember the slot name, or empty string for default slot
702
- elm['s-sn'] = newVNode.$name$ || '';
703
- // check if we've got an old vnode for this slot
704
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
705
- if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
706
- {
707
- // we've got an old slot vnode and the wrapper is being replaced
708
- // so let's move the old slot content back to its original location
709
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
710
- }
711
- }
712
- }
713
- }
714
- return elm;
715
- };
716
- const putBackInOriginalLocation = (parentElm, recursive) => {
717
- plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
718
- const oldSlotChildNodes = parentElm.childNodes;
719
- for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
720
- const childNode = oldSlotChildNodes[i];
721
- if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
722
- // and relocate it back to it's original location
723
- parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
724
- // remove the old original location comment entirely
725
- // later on the patch function will know what to do
726
- // and move this to the correct spot if need be
727
- childNode['s-ol'].remove();
728
- childNode['s-ol'] = undefined;
729
- // Reset so we can correctly move the node around again.
730
- childNode['s-sh'] = undefined;
731
- checkSlotRelocate = true;
732
- }
733
- if (recursive) {
734
- putBackInOriginalLocation(childNode, recursive);
735
- }
736
- }
737
- plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
738
- };
739
- /**
740
- * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
741
- * add them to the DOM in the appropriate place.
742
- *
743
- * @param parentElm the DOM node which should be used as a parent for the new
744
- * DOM nodes
745
- * @param before a child of the `parentElm` which the new children should be
746
- * inserted before (optional)
747
- * @param parentVNode the parent virtual DOM node
748
- * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
749
- * @param startIdx the index in the child virtual DOM nodes at which to start
750
- * creating DOM nodes (inclusive)
751
- * @param endIdx the index in the child virtual DOM nodes at which to stop
752
- * creating DOM nodes (inclusive)
753
- */
754
- const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
755
- let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
756
- let childNode;
757
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
758
- containerElm = containerElm.shadowRoot;
759
- }
760
- for (; startIdx <= endIdx; ++startIdx) {
761
- if (vnodes[startIdx]) {
762
- childNode = createElm(null, parentVNode, startIdx, parentElm);
763
- if (childNode) {
764
- vnodes[startIdx].$elm$ = childNode;
765
- containerElm.insertBefore(childNode, referenceNode(before) );
766
- }
767
- }
768
- }
769
- };
770
- /**
771
- * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
772
- * This can be used to, for instance, clean up after a list of children which
773
- * should no longer be shown.
774
- *
775
- * This function also handles some of Stencil's slot relocation logic.
776
- *
777
- * @param vnodes a list of virtual DOM nodes to remove
778
- * @param startIdx the index at which to start removing nodes (inclusive)
779
- * @param endIdx the index at which to stop removing nodes (inclusive)
780
- */
781
- const removeVnodes = (vnodes, startIdx, endIdx) => {
782
- for (let index = startIdx; index <= endIdx; ++index) {
783
- const vnode = vnodes[index];
784
- if (vnode) {
785
- const elm = vnode.$elm$;
786
- nullifyVNodeRefs(vnode);
787
- if (elm) {
788
- {
789
- // we're removing this element
790
- // so it's possible we need to show slot fallback content now
791
- checkSlotFallbackVisibility = true;
792
- if (elm['s-ol']) {
793
- // remove the original location comment
794
- elm['s-ol'].remove();
795
- }
796
- else {
797
- // it's possible that child nodes of the node
798
- // that's being removed are slot nodes
799
- putBackInOriginalLocation(elm, true);
800
- }
801
- }
802
- // remove the vnode's element from the dom
803
- elm.remove();
804
- }
805
- }
806
- }
807
- };
808
- /**
809
- * Reconcile the children of a new VNode with the children of an old VNode by
810
- * traversing the two collections of children, identifying nodes that are
811
- * conserved or changed, calling out to `patch` to make any necessary
812
- * updates to the DOM, and rearranging DOM nodes as needed.
813
- *
814
- * The algorithm for reconciling children works by analyzing two 'windows' onto
815
- * the two arrays of children (`oldCh` and `newCh`). We keep track of the
816
- * 'windows' by storing start and end indices and references to the
817
- * corresponding array entries. Initially the two 'windows' are basically equal
818
- * to the entire array, but we progressively narrow the windows until there are
819
- * no children left to update by doing the following:
820
- *
821
- * 1. Skip any `null` entries at the beginning or end of the two arrays, so
822
- * that if we have an initial array like the following we'll end up dealing
823
- * only with a window bounded by the highlighted elements:
824
- *
825
- * [null, null, VNode1 , ... , VNode2, null, null]
826
- * ^^^^^^ ^^^^^^
827
- *
828
- * 2. Check to see if the elements at the head and tail positions are equal
829
- * across the windows. This will basically detect elements which haven't
830
- * been added, removed, or changed position, i.e. if you had the following
831
- * VNode elements (represented as HTML):
832
- *
833
- * oldVNode: `<div><p><span>HEY</span></p></div>`
834
- * newVNode: `<div><p><span>THERE</span></p></div>`
835
- *
836
- * Then when comparing the children of the `<div>` tag we check the equality
837
- * of the VNodes corresponding to the `<p>` tags and, since they are the
838
- * same tag in the same position, we'd be able to avoid completely
839
- * re-rendering the subtree under them with a new DOM element and would just
840
- * call out to `patch` to handle reconciling their children and so on.
841
- *
842
- * 3. Check, for both windows, to see if the element at the beginning of the
843
- * window corresponds to the element at the end of the other window. This is
844
- * a heuristic which will let us identify _some_ situations in which
845
- * elements have changed position, for instance it _should_ detect that the
846
- * children nodes themselves have not changed but merely moved in the
847
- * following example:
848
- *
849
- * oldVNode: `<div><element-one /><element-two /></div>`
850
- * newVNode: `<div><element-two /><element-one /></div>`
851
- *
852
- * If we find cases like this then we also need to move the concrete DOM
853
- * elements corresponding to the moved children to write the re-order to the
854
- * DOM.
855
- *
856
- * 4. Finally, if VNodes have the `key` attribute set on them we check for any
857
- * nodes in the old children which have the same key as the first element in
858
- * our window on the new children. If we find such a node we handle calling
859
- * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
860
- * what we find.
861
- *
862
- * Finally, once we've narrowed our 'windows' to the point that either of them
863
- * collapse (i.e. they have length 0) we then handle any remaining VNode
864
- * insertion or deletion that needs to happen to get a DOM state that correctly
865
- * reflects the new child VNodes. If, for instance, after our window on the old
866
- * children has collapsed we still have more nodes on the new children that
867
- * we haven't dealt with yet then we need to add them, or if the new children
868
- * collapse but we still have unhandled _old_ children then we need to make
869
- * sure the corresponding DOM nodes are removed.
870
- *
871
- * @param parentElm the node into which the parent VNode is rendered
872
- * @param oldCh the old children of the parent node
873
- * @param newVNode the new VNode which will replace the parent
874
- * @param newCh the new children of the parent node
875
- * @param isInitialRender whether or not this is the first render of the vdom
876
- */
877
- const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
878
- let oldStartIdx = 0;
879
- let newStartIdx = 0;
880
- let idxInOld = 0;
881
- let i = 0;
882
- let oldEndIdx = oldCh.length - 1;
883
- let oldStartVnode = oldCh[0];
884
- let oldEndVnode = oldCh[oldEndIdx];
885
- let newEndIdx = newCh.length - 1;
886
- let newStartVnode = newCh[0];
887
- let newEndVnode = newCh[newEndIdx];
888
- let node;
889
- let elmToMove;
890
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
891
- if (oldStartVnode == null) {
892
- // VNode might have been moved left
893
- oldStartVnode = oldCh[++oldStartIdx];
894
- }
895
- else if (oldEndVnode == null) {
896
- oldEndVnode = oldCh[--oldEndIdx];
897
- }
898
- else if (newStartVnode == null) {
899
- newStartVnode = newCh[++newStartIdx];
900
- }
901
- else if (newEndVnode == null) {
902
- newEndVnode = newCh[--newEndIdx];
903
- }
904
- else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
905
- // if the start nodes are the same then we should patch the new VNode
906
- // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
907
- // indices to reflect that. We don't need to move any DOM Nodes around
908
- // since things are matched up in order.
909
- patch(oldStartVnode, newStartVnode, isInitialRender);
910
- oldStartVnode = oldCh[++oldStartIdx];
911
- newStartVnode = newCh[++newStartIdx];
912
- }
913
- else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
914
- // likewise, if the end nodes are the same we patch new onto old and
915
- // decrement our end indices, and also likewise in this case we don't
916
- // need to move any DOM Nodes.
917
- patch(oldEndVnode, newEndVnode, isInitialRender);
918
- oldEndVnode = oldCh[--oldEndIdx];
919
- newEndVnode = newCh[--newEndIdx];
920
- }
921
- else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
922
- // case: "Vnode moved right"
923
- //
924
- // We've found that the last node in our window on the new children is
925
- // the same VNode as the _first_ node in our window on the old children
926
- // we're dealing with now. Visually, this is the layout of these two
927
- // nodes:
928
- //
929
- // newCh: [..., newStartVnode , ... , newEndVnode , ...]
930
- // ^^^^^^^^^^^
931
- // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
932
- // ^^^^^^^^^^^^^
933
- //
934
- // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
935
- // and move the DOM element for `oldStartVnode`.
936
- if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
937
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
938
- }
939
- patch(oldStartVnode, newEndVnode, isInitialRender);
940
- // We need to move the element for `oldStartVnode` into a position which
941
- // will be appropriate for `newEndVnode`. For this we can use
942
- // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
943
- // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
944
- // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
945
- //
946
- // <old-start-node />
947
- // <some-intervening-node />
948
- // <old-end-node />
949
- // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
950
- // <next-sibling />
951
- //
952
- // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
953
- // the node for `oldStartVnode` at the end of the children of
954
- // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
955
- // aren't any siblings, and passing `null` to `Node.insertBefore` will
956
- // append it to the children of the parent element.
957
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
958
- oldStartVnode = oldCh[++oldStartIdx];
959
- newEndVnode = newCh[--newEndIdx];
960
- }
961
- else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
962
- // case: "Vnode moved left"
963
- //
964
- // We've found that the first node in our window on the new children is
965
- // the same VNode as the _last_ node in our window on the old children.
966
- // Visually, this is the layout of these two nodes:
967
- //
968
- // newCh: [..., newStartVnode , ... , newEndVnode , ...]
969
- // ^^^^^^^^^^^^^
970
- // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
971
- // ^^^^^^^^^^^
972
- //
973
- // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
974
- // (which will handle updating any changed attributes, reconciling their
975
- // children etc) but we also need to move the DOM node to which
976
- // `oldEndVnode` corresponds.
977
- if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
978
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
979
- }
980
- patch(oldEndVnode, newStartVnode, isInitialRender);
981
- // We've already checked above if `oldStartVnode` and `newStartVnode` are
982
- // the same node, so since we're here we know that they are not. Thus we
983
- // can move the element for `oldEndVnode` _before_ the element for
984
- // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
985
- // future.
986
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
987
- oldEndVnode = oldCh[--oldEndIdx];
988
- newStartVnode = newCh[++newStartIdx];
989
- }
990
- else {
991
- // Here we do some checks to match up old and new nodes based on the
992
- // `$key$` attribute, which is set by putting a `key="my-key"` attribute
993
- // in the JSX for a DOM element in the implementation of a Stencil
994
- // component.
995
- //
996
- // First we check to see if there are any nodes in the array of old
997
- // children which have the same key as the first node in the new
998
- // children.
999
- idxInOld = -1;
1000
- {
1001
- for (i = oldStartIdx; i <= oldEndIdx; ++i) {
1002
- if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
1003
- idxInOld = i;
1004
- break;
1005
- }
1006
- }
1007
- }
1008
- if (idxInOld >= 0) {
1009
- // We found a node in the old children which matches up with the first
1010
- // node in the new children! So let's deal with that
1011
- elmToMove = oldCh[idxInOld];
1012
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1013
- // the tag doesn't match so we'll need a new DOM element
1014
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
1015
- }
1016
- else {
1017
- patch(elmToMove, newStartVnode, isInitialRender);
1018
- // invalidate the matching old node so that we won't try to update it
1019
- // again later on
1020
- oldCh[idxInOld] = undefined;
1021
- node = elmToMove.$elm$;
1022
- }
1023
- newStartVnode = newCh[++newStartIdx];
1024
- }
1025
- else {
1026
- // We either didn't find an element in the old children that matches
1027
- // the key of the first new child OR the build is not using `key`
1028
- // attributes at all. In either case we need to create a new element
1029
- // for the new node.
1030
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
1031
- newStartVnode = newCh[++newStartIdx];
1032
- }
1033
- if (node) {
1034
- // if we created a new node then handle inserting it to the DOM
1035
- {
1036
- parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
1037
- }
1038
- }
1039
- }
1040
- }
1041
- if (oldStartIdx > oldEndIdx) {
1042
- // we have some more new nodes to add which don't match up with old nodes
1043
- addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
1044
- }
1045
- else if (newStartIdx > newEndIdx) {
1046
- // there are nodes in the `oldCh` array which no longer correspond to nodes
1047
- // in the new array, so lets remove them (which entails cleaning up the
1048
- // relevant DOM nodes)
1049
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1050
- }
1051
- };
1052
- /**
1053
- * Compare two VNodes to determine if they are the same
1054
- *
1055
- * **NB**: This function is an equality _heuristic_ based on the available
1056
- * information set on the two VNodes and can be misleading under certain
1057
- * circumstances. In particular, if the two nodes do not have `key` attrs
1058
- * (available under `$key$` on VNodes) then the function falls back on merely
1059
- * checking that they have the same tag.
1060
- *
1061
- * So, in other words, if `key` attrs are not set on VNodes which may be
1062
- * changing order within a `children` array or something along those lines then
1063
- * we could obtain a false negative and then have to do needless re-rendering
1064
- * (i.e. we'd say two VNodes aren't equal when in fact they should be).
1065
- *
1066
- * @param leftVNode the first VNode to check
1067
- * @param rightVNode the second VNode to check
1068
- * @param isInitialRender whether or not this is the first render of the vdom
1069
- * @returns whether they're equal or not
1070
- */
1071
- const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1072
- // compare if two vnode to see if they're "technically" the same
1073
- // need to have the same element tag, and same key to be the same
1074
- if (leftVNode.$tag$ === rightVNode.$tag$) {
1075
- if (leftVNode.$tag$ === 'slot') {
1076
- return leftVNode.$name$ === rightVNode.$name$;
1077
- }
1078
- // this will be set if JSX tags in the build have `key` attrs set on them
1079
- // we only want to check this if we're not on the first render since on
1080
- // first render `leftVNode.$key$` will always be `null`, so we can be led
1081
- // astray and, for instance, accidentally delete a DOM node that we want to
1082
- // keep around.
1083
- if (!isInitialRender) {
1084
- return leftVNode.$key$ === rightVNode.$key$;
1085
- }
1086
- return true;
1087
- }
1088
- return false;
1089
- };
1090
- const referenceNode = (node) => {
1091
- // this node was relocated to a new location in the dom
1092
- // because of some other component's slot
1093
- // but we still have an html comment in place of where
1094
- // it's original location was according to it's original vdom
1095
- return (node && node['s-ol']) || node;
1096
- };
1097
- const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
1098
- /**
1099
- * Handle reconciling an outdated VNode with a new one which corresponds to
1100
- * it. This function handles flushing updates to the DOM and reconciling the
1101
- * children of the two nodes (if any).
1102
- *
1103
- * @param oldVNode an old VNode whose DOM element and children we want to update
1104
- * @param newVNode a new VNode representing an updated version of the old one
1105
- * @param isInitialRender whether or not this is the first render of the vdom
1106
- */
1107
- const patch = (oldVNode, newVNode, isInitialRender = false) => {
1108
- const elm = (newVNode.$elm$ = oldVNode.$elm$);
1109
- const oldChildren = oldVNode.$children$;
1110
- const newChildren = newVNode.$children$;
1111
- const tag = newVNode.$tag$;
1112
- const text = newVNode.$text$;
1113
- let defaultHolder;
1114
- if (text === null) {
1115
- {
1116
- // test if we're rendering an svg element, or still rendering nodes inside of one
1117
- // only add this to the when the compiler sees we're using an svg somewhere
1118
- isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
1119
- }
1120
- {
1121
- if (tag === 'slot' && !useNativeShadowDom) ;
1122
- else {
1123
- // either this is the first render of an element OR it's an update
1124
- // AND we already know it's possible it could have changed
1125
- // this updates the element's css classes, attrs, props, listeners, etc.
1126
- updateElement(oldVNode, newVNode, isSvgMode);
1127
- }
1128
- }
1129
- if (oldChildren !== null && newChildren !== null) {
1130
- // looks like there's child vnodes for both the old and new vnodes
1131
- // so we need to call `updateChildren` to reconcile them
1132
- updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
1133
- }
1134
- else if (newChildren !== null) {
1135
- // no old child vnodes, but there are new child vnodes to add
1136
- if (oldVNode.$text$ !== null) {
1137
- // the old vnode was text, so be sure to clear it out
1138
- elm.textContent = '';
1139
- }
1140
- // add the new vnode children
1141
- addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
1142
- }
1143
- else if (oldChildren !== null) {
1144
- // no new child vnodes, but there are old child vnodes to remove
1145
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
1146
- }
1147
- if (isSvgMode && tag === 'svg') {
1148
- isSvgMode = false;
1149
- }
1150
- }
1151
- else if ((defaultHolder = elm['s-cr'])) {
1152
- // this element has slotted content
1153
- defaultHolder.parentNode.textContent = text;
1154
- }
1155
- else if (oldVNode.$text$ !== text) {
1156
- // update the text content for the text only vnode
1157
- // and also only if the text is different than before
1158
- elm.data = text;
1159
- }
1160
- };
1161
- /**
1162
- * Adjust the `.hidden` property as-needed on any nodes in a DOM subtree which
1163
- * are slot fallbacks nodes.
1164
- *
1165
- * A slot fallback node should be visible by default. Then, it should be
1166
- * conditionally hidden if:
1167
- *
1168
- * - it has a sibling with a `slot` property set to its slot name or if
1169
- * - it is a default fallback slot node, in which case we hide if it has any
1170
- * content
1171
- *
1172
- * @param elm the element of interest
1173
- */
1174
- const updateFallbackSlotVisibility = (elm) => {
1175
- const childNodes = elm.childNodes;
1176
- for (const childNode of childNodes) {
1177
- if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1178
- if (childNode['s-sr']) {
1179
- // this is a slot fallback node
1180
- // get the slot name for this slot reference node
1181
- const slotName = childNode['s-sn'];
1182
- // by default always show a fallback slot node
1183
- // then hide it if there are other slots in the light dom
1184
- childNode.hidden = false;
1185
- // we need to check all of its sibling nodes in order to see if
1186
- // `childNode` should be hidden
1187
- for (const siblingNode of childNodes) {
1188
- // Don't check the node against itself
1189
- if (siblingNode !== childNode) {
1190
- if (siblingNode['s-hn'] !== childNode['s-hn'] || slotName !== '') {
1191
- // this sibling node is from a different component OR is a named
1192
- // fallback slot node
1193
- if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
1194
- (slotName === siblingNode.getAttribute('slot') || slotName === siblingNode['s-sn'])) {
1195
- childNode.hidden = true;
1196
- break;
1197
- }
1198
- }
1199
- else {
1200
- // this is a default fallback slot node
1201
- // any element or text node (with content)
1202
- // should hide the default fallback slot node
1203
- if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1204
- (siblingNode.nodeType === 3 /* NODE_TYPE.TextNode */ && siblingNode.textContent.trim() !== '')) {
1205
- childNode.hidden = true;
1206
- break;
1207
- }
1208
- }
1209
- }
1210
- }
1211
- }
1212
- // keep drilling down
1213
- updateFallbackSlotVisibility(childNode);
1214
- }
1215
- }
1216
- };
1217
- /**
1218
- * Component-global information about nodes which are either currently being
1219
- * relocated or will be shortly.
1220
- */
1221
- const relocateNodes = [];
1222
- /**
1223
- * Mark the contents of a slot for relocation via adding references to them to
1224
- * the {@link relocateNodes} data structure. The actual work of relocating them
1225
- * will then be handled in {@link renderVdom}.
1226
- *
1227
- * @param elm a render node whose child nodes need to be relocated
1228
- */
1229
- const markSlotContentForRelocation = (elm) => {
1230
- // tslint:disable-next-line: prefer-const
1231
- let node;
1232
- let hostContentNodes;
1233
- let j;
1234
- for (const childNode of elm.childNodes) {
1235
- // we need to find child nodes which are slot references so we can then try
1236
- // to match them up with nodes that need to be relocated
1237
- if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
1238
- // first get the content reference comment node ('s-cr'), then we get
1239
- // its parent, which is where all the host content is now
1240
- hostContentNodes = node.parentNode.childNodes;
1241
- const slotName = childNode['s-sn'];
1242
- // iterate through all the nodes under the location where the host was
1243
- // originally rendered
1244
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
1245
- node = hostContentNodes[j];
1246
- // check that the node is not a content reference node or a node
1247
- // reference and then check that the host name does not match that of
1248
- // childNode.
1249
- // In addition, check that the slot either has not already been relocated, or
1250
- // that its current location's host is not childNode's host. This is essentially
1251
- // a check so that we don't try to relocate (and then hide) a node that is already
1252
- // where it should be.
1253
- if (!node['s-cn'] &&
1254
- !node['s-nr'] &&
1255
- node['s-hn'] !== childNode['s-hn'] &&
1256
- (!BUILD.experimentalSlotFixes )) {
1257
- // if `node` is located in the slot that `childNode` refers to (via the
1258
- // `'s-sn'` property) then we need to relocate it from it's current spot
1259
- // (under the host element parent) to the right slot location
1260
- if (isNodeLocatedInSlot(node, slotName)) {
1261
- // it's possible we've already decided to relocate this node
1262
- let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1263
- // made some changes to slots
1264
- // let's make sure we also double check
1265
- // fallbacks are correctly hidden or shown
1266
- checkSlotFallbackVisibility = true;
1267
- // ensure that the slot-name attr is correct
1268
- node['s-sn'] = node['s-sn'] || slotName;
1269
- if (relocateNodeData) {
1270
- relocateNodeData.$nodeToRelocate$['s-sh'] = childNode['s-hn'];
1271
- // we marked this node for relocation previously but didn't find
1272
- // out the slot reference node to which it needs to be relocated
1273
- // so write it down now!
1274
- relocateNodeData.$slotRefNode$ = childNode;
1275
- }
1276
- else {
1277
- node['s-sh'] = childNode['s-hn'];
1278
- // add to our list of nodes to relocate
1279
- relocateNodes.push({
1280
- $slotRefNode$: childNode,
1281
- $nodeToRelocate$: node,
1282
- });
1283
- }
1284
- if (node['s-sr']) {
1285
- relocateNodes.map((relocateNode) => {
1286
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
1287
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1288
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
1289
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1290
- }
1291
- }
1292
- });
1293
- }
1294
- }
1295
- else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1296
- // the node is not found within the slot (`childNode`) that we're
1297
- // currently looking at, so we stick it into `relocateNodes` to
1298
- // handle later. If we never find a home for this element then
1299
- // we'll need to hide it
1300
- relocateNodes.push({
1301
- $nodeToRelocate$: node,
1302
- });
1303
- }
1304
- }
1305
- }
1306
- }
1307
- // if we're dealing with any type of element (capable of itself being a
1308
- // slot reference or containing one) then we recur
1309
- if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1310
- markSlotContentForRelocation(childNode);
1311
- }
1312
- }
1313
- };
1314
- /**
1315
- * Check whether a node is located in a given named slot.
1316
- *
1317
- * @param nodeToRelocate the node of interest
1318
- * @param slotName the slot name to check
1319
- * @returns whether the node is located in the slot or not
1320
- */
1321
- const isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
1322
- if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1323
- if (nodeToRelocate.getAttribute('slot') === null && slotName === '') {
1324
- // if the node doesn't have a slot attribute, and the slot we're checking
1325
- // is not a named slot, then we assume the node should be within the slot
1326
- return true;
1327
- }
1328
- if (nodeToRelocate.getAttribute('slot') === slotName) {
1329
- return true;
1330
- }
1331
- return false;
1332
- }
1333
- if (nodeToRelocate['s-sn'] === slotName) {
1334
- return true;
1335
- }
1336
- return slotName === '';
1337
- };
1338
- /**
1339
- * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by calling
1340
- * them with `null`. This signals that the DOM element corresponding to the VDom
1341
- * node has been removed from the DOM.
1342
- *
1343
- * @param vNode a virtual DOM node
1344
- */
1345
- const nullifyVNodeRefs = (vNode) => {
1346
- {
1347
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1348
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1349
- }
1350
- };
1351
- /**
1352
- * The main entry point for Stencil's virtual DOM-based rendering engine
1353
- *
1354
- * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1355
- * function will handle creating a virtual DOM tree with a single root, patching
1356
- * the current virtual DOM tree onto an old one (if any), dealing with slot
1357
- * relocation, and reflecting attributes.
1358
- *
1359
- * @param hostRef data needed to root and render the virtual DOM tree, such as
1360
- * the DOM node into which it should be rendered.
1361
- * @param renderFnResults the virtual DOM nodes to be rendered
1362
- * @param isInitialLoad whether or not this is the first call after page load
1363
- */
1364
- const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1365
- var _a, _b, _c, _d;
1366
- const hostElm = hostRef.$hostElement$;
1367
- const cmpMeta = hostRef.$cmpMeta$;
1368
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1369
- // if `renderFnResults` is a Host node then we can use it directly. If not,
1370
- // we need to call `h` again to wrap the children of our component in a
1371
- // 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
1372
- // implicitly that the top-level vdom node is 1) an only child and 2)
1373
- // contains attrs that need to be set on the host element.
1374
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1375
- hostTagName = hostElm.tagName;
1376
- if (cmpMeta.$attrsToReflect$) {
1377
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1378
- cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1379
- }
1380
- // On the first render and *only* on the first render we want to check for
1381
- // any attributes set on the host element which are also set on the vdom
1382
- // node. If we find them, we override the value on the VDom node attrs with
1383
- // the value from the host element, which allows developers building apps
1384
- // with Stencil components to override e.g. the `role` attribute on a
1385
- // component even if it's already set on the `Host`.
1386
- if (isInitialLoad && rootVnode.$attrs$) {
1387
- for (const key of Object.keys(rootVnode.$attrs$)) {
1388
- // We have a special implementation in `setAccessor` for `style` and
1389
- // `class` which reconciles values coming from the VDom with values
1390
- // already present on the DOM element, so we don't want to override those
1391
- // attributes on the VDom tree with values from the host element if they
1392
- // are present.
1393
- //
1394
- // Likewise, `ref` and `key` are special internal values for the Stencil
1395
- // runtime and we don't want to override those either.
1396
- if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
1397
- rootVnode.$attrs$[key] = hostElm[key];
1398
- }
1399
- }
1400
- }
1401
- rootVnode.$tag$ = null;
1402
- rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1403
- hostRef.$vnode$ = rootVnode;
1404
- rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
1405
- {
1406
- scopeId = hostElm['s-sc'];
1407
- }
1408
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1409
- {
1410
- contentRef = hostElm['s-cr'];
1411
- // always reset
1412
- checkSlotFallbackVisibility = false;
1413
- }
1414
- // synchronous patch
1415
- patch(oldVNode, rootVnode, isInitialLoad);
1416
- {
1417
- // while we're moving nodes around existing nodes, temporarily disable
1418
- // the disconnectCallback from working
1419
- plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1420
- if (checkSlotRelocate) {
1421
- markSlotContentForRelocation(rootVnode.$elm$);
1422
- for (const relocateData of relocateNodes) {
1423
- const nodeToRelocate = relocateData.$nodeToRelocate$;
1424
- if (!nodeToRelocate['s-ol']) {
1425
- // add a reference node marking this node's original location
1426
- // keep a reference to this node for later lookups
1427
- const orgLocationNode = doc.createTextNode('');
1428
- orgLocationNode['s-nr'] = nodeToRelocate;
1429
- nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1430
- }
1431
- }
1432
- for (const relocateData of relocateNodes) {
1433
- const nodeToRelocate = relocateData.$nodeToRelocate$;
1434
- const slotRefNode = relocateData.$slotRefNode$;
1435
- if (slotRefNode) {
1436
- const parentNodeRef = slotRefNode.parentNode;
1437
- // When determining where to insert content, the most simple case would be
1438
- // to relocate the node immediately following the slot reference node. We do this
1439
- // by getting a reference to the node immediately following the slot reference node
1440
- // since we will use `insertBefore` to manipulate the DOM.
1441
- //
1442
- // If there is no node immediately following the slot reference node, then we will just
1443
- // end up appending the node as the last child of the parent.
1444
- let insertBeforeNode = slotRefNode.nextSibling;
1445
- // If the node we're currently planning on inserting the new node before is an element,
1446
- // we need to do some additional checks to make sure we're inserting the node in the correct order.
1447
- // The use case here would be that we have multiple nodes being relocated to the same slot. So, we want
1448
- // to make sure they get inserted into their new how in the same order they were declared in their original location.
1449
- //
1450
- // TODO(STENCIL-914): Remove `experimentalSlotFixes` check
1451
- {
1452
- let orgLocationNode = (_a = nodeToRelocate['s-ol']) === null || _a === void 0 ? void 0 : _a.previousSibling;
1453
- while (orgLocationNode) {
1454
- let refNode = (_b = orgLocationNode['s-nr']) !== null && _b !== void 0 ? _b : null;
1455
- if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1456
- refNode = refNode.nextSibling;
1457
- if (!refNode || !refNode['s-nr']) {
1458
- insertBeforeNode = refNode;
1459
- break;
1460
- }
1461
- }
1462
- orgLocationNode = orgLocationNode.previousSibling;
1463
- }
1464
- }
1465
- if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1466
- nodeToRelocate.nextSibling !== insertBeforeNode) {
1467
- // we've checked that it's worth while to relocate
1468
- // since that the node to relocate
1469
- // has a different next sibling or parent relocated
1470
- if (nodeToRelocate !== insertBeforeNode) {
1471
- if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1472
- // probably a component in the index.html that doesn't have its hostname set
1473
- nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1474
- }
1475
- // Add it back to the dom but in its new home
1476
- // If we get to this point and `insertBeforeNode` is `null`, that means
1477
- // we're just going to append the node as the last child of the parent. Passing
1478
- // `null` as the second arg here will trigger that behavior.
1479
- parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1480
- // Reset the `hidden` value back to what it was defined as originally
1481
- // This solves a problem where a `slot` is dynamically rendered and `hidden` may have
1482
- // been set on content originally, but now it has a slot to go to so it should have
1483
- // the value it was defined as having in the DOM, not what we overrode it to.
1484
- if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1485
- nodeToRelocate.hidden = (_c = nodeToRelocate['s-ih']) !== null && _c !== void 0 ? _c : false;
1486
- }
1487
- }
1488
- }
1489
- }
1490
- else {
1491
- // this node doesn't have a slot home to go to, so let's hide it
1492
- if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1493
- // Store the initial value of `hidden` so we can reset it later when
1494
- // moving nodes around.
1495
- if (isInitialLoad) {
1496
- nodeToRelocate['s-ih'] = (_d = nodeToRelocate.hidden) !== null && _d !== void 0 ? _d : false;
1497
- }
1498
- nodeToRelocate.hidden = true;
1499
- }
1500
- }
1501
- }
1502
- }
1503
- if (checkSlotFallbackVisibility) {
1504
- updateFallbackSlotVisibility(rootVnode.$elm$);
1505
- }
1506
- // done moving nodes around
1507
- // allow the disconnect callback to work again
1508
- plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1509
- // always reset
1510
- relocateNodes.length = 0;
1511
- }
1512
- // Clear the content ref so we don't create a memory leak
1513
- contentRef = undefined;
1514
- };
1515
- const attachToAncestor = (hostRef, ancestorComponent) => {
1516
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1517
- ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1518
- }
1519
- };
1520
- const scheduleUpdate = (hostRef, isInitialLoad) => {
1521
- {
1522
- hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1523
- }
1524
- if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1525
- hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1526
- return;
1527
- }
1528
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1529
- // there is no ancestor component or the ancestor component
1530
- // has already fired off its lifecycle update then
1531
- // fire off the initial update
1532
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1533
- return writeTask(dispatch) ;
1534
- };
1535
- /**
1536
- * Dispatch initial-render and update lifecycle hooks, enqueuing calls to
1537
- * component lifecycle methods like `componentWillLoad` as well as
1538
- * {@link updateComponent}, which will kick off the virtual DOM re-render.
1539
- *
1540
- * @param hostRef a reference to a host DOM node
1541
- * @param isInitialLoad whether we're on the initial load or not
1542
- * @returns an empty Promise which is used to enqueue a series of operations for
1543
- * the component
1544
- */
1545
- const dispatchHooks = (hostRef, isInitialLoad) => {
1546
- const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1547
- const instance = hostRef.$lazyInstance$ ;
1548
- // We're going to use this variable together with `enqueue` to implement a
1549
- // little promise-based queue. We start out with it `undefined`. When we add
1550
- // the first function to the queue we'll set this variable to be that
1551
- // function's return value. When we attempt to add subsequent values to the
1552
- // queue we'll check that value and, if it was a `Promise`, we'll then chain
1553
- // the new function off of that `Promise` using `.then()`. This will give our
1554
- // queue two nice properties:
1555
- //
1556
- // 1. If all functions added to the queue are synchronous they'll be called
1557
- // synchronously right away.
1558
- // 2. If all functions added to the queue are asynchronous they'll all be
1559
- // called in order after `dispatchHooks` exits.
1560
- let maybePromise;
1561
- if (isInitialLoad) {
1562
- {
1563
- hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
1564
- if (hostRef.$queuedListeners$) {
1565
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1566
- hostRef.$queuedListeners$ = undefined;
1567
- }
1568
- }
1569
- {
1570
- // If `componentWillLoad` returns a `Promise` then we want to wait on
1571
- // whatever's going on in that `Promise` before we launch into
1572
- // rendering the component, doing other lifecycle stuff, etc. So
1573
- // in that case we assign the returned promise to the variable we
1574
- // declared above to hold a possible 'queueing' Promise
1575
- maybePromise = safeCall(instance, 'componentWillLoad');
1576
- }
1577
- }
1578
- {
1579
- maybePromise = enqueue(maybePromise, () => safeCall(instance, 'componentWillRender'));
1580
- }
1581
- endSchedule();
1582
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1583
- };
1584
- /**
1585
- * This function uses a Promise to implement a simple first-in, first-out queue
1586
- * of functions to be called.
1587
- *
1588
- * The queue is ordered on the basis of the first argument. If it's
1589
- * `undefined`, then nothing is on the queue yet, so the provided function can
1590
- * be called synchronously (although note that this function may return a
1591
- * `Promise`). The idea is that then the return value of that enqueueing
1592
- * operation is kept around, so that if it was a `Promise` then subsequent
1593
- * functions can be enqueued by calling this function again with that `Promise`
1594
- * as the first argument.
1595
- *
1596
- * @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
1597
- * @param fn a function to enqueue
1598
- * @returns either a `Promise` or the return value of the provided function
1599
- */
1600
- const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
1601
- /**
1602
- * Check that a value is a `Promise`. To check, we first see if the value is an
1603
- * instance of the `Promise` global. In a few circumstances, in particular if
1604
- * the global has been overwritten, this is could be misleading, so we also do
1605
- * a little 'duck typing' check to see if the `.then` property of the value is
1606
- * defined and a function.
1607
- *
1608
- * @param maybePromise it might be a promise!
1609
- * @returns whether it is or not
1610
- */
1611
- const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
1612
- (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
1613
- /**
1614
- * Update a component given reference to its host elements and so on.
1615
- *
1616
- * @param hostRef an object containing references to the element's host node,
1617
- * VDom nodes, and other metadata
1618
- * @param instance a reference to the underlying host element where it will be
1619
- * rendered
1620
- * @param isInitialLoad whether or not this function is being called as part of
1621
- * the first render cycle
1622
- */
1623
- const updateComponent = async (hostRef, instance, isInitialLoad) => {
1624
- var _a;
1625
- const elm = hostRef.$hostElement$;
1626
- const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1627
- const rc = elm['s-rc'];
1628
- if (isInitialLoad) {
1629
- // DOM WRITE!
1630
- attachStyles(hostRef);
1631
- }
1632
- const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1633
- {
1634
- callRender(hostRef, instance, elm, isInitialLoad);
1635
- }
1636
- if (rc) {
1637
- // ok, so turns out there are some child host elements
1638
- // waiting on this parent element to load
1639
- // let's fire off all update callbacks waiting
1640
- rc.map((cb) => cb());
1641
- elm['s-rc'] = undefined;
1642
- }
1643
- endRender();
1644
- endUpdate();
1645
- {
1646
- const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
1647
- const postUpdate = () => postUpdateComponent(hostRef);
1648
- if (childrenPromises.length === 0) {
1649
- postUpdate();
1650
- }
1651
- else {
1652
- Promise.all(childrenPromises).then(postUpdate);
1653
- hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1654
- childrenPromises.length = 0;
1655
- }
1656
- }
1657
- };
1658
- /**
1659
- * Handle making the call to the VDom renderer with the proper context given
1660
- * various build variables
1661
- *
1662
- * @param hostRef an object containing references to the element's host node,
1663
- * VDom nodes, and other metadata
1664
- * @param instance a reference to the underlying host element where it will be
1665
- * rendered
1666
- * @param elm the Host element for the component
1667
- * @param isInitialLoad whether or not this function is being called as part of
1668
- * @returns an empty promise
1669
- */
1670
- const callRender = (hostRef, instance, elm, isInitialLoad) => {
1671
- try {
1672
- /**
1673
- * minification optimization: `allRenderFn` is `true` if all components have a `render`
1674
- * method, so we can call the method immediately. If not, check before calling it.
1675
- */
1676
- instance = instance.render() ;
1677
- {
1678
- hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1679
- }
1680
- {
1681
- hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1682
- }
1683
- {
1684
- {
1685
- // looks like we've got child nodes to render into this host element
1686
- // or we need to update the css class/attrs on the host element
1687
- // DOM WRITE!
1688
- {
1689
- renderVdom(hostRef, instance, isInitialLoad);
1690
- }
1691
- }
1692
- }
1693
- }
1694
- catch (e) {
1695
- consoleError(e, hostRef.$hostElement$);
1696
- }
1697
- return null;
1698
- };
1699
- const postUpdateComponent = (hostRef) => {
1700
- const tagName = hostRef.$cmpMeta$.$tagName$;
1701
- const elm = hostRef.$hostElement$;
1702
- const endPostUpdate = createTime('postUpdate', tagName);
1703
- const instance = hostRef.$lazyInstance$ ;
1704
- const ancestorComponent = hostRef.$ancestorComponent$;
1705
- {
1706
- safeCall(instance, 'componentDidRender');
1707
- }
1708
- if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1709
- hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1710
- {
1711
- // DOM WRITE!
1712
- addHydratedFlag(elm);
1713
- }
1714
- {
1715
- safeCall(instance, 'componentDidLoad');
1716
- }
1717
- endPostUpdate();
1718
- {
1719
- hostRef.$onReadyResolve$(elm);
1720
- if (!ancestorComponent) {
1721
- appDidLoad();
1722
- }
1723
- }
1724
- }
1725
- else {
1726
- {
1727
- safeCall(instance, 'componentDidUpdate');
1728
- }
1729
- endPostUpdate();
1730
- }
1731
- {
1732
- hostRef.$onInstanceResolve$(elm);
1733
- }
1734
- // load events fire from bottom to top
1735
- // the deepest elements load first then bubbles up
1736
- {
1737
- if (hostRef.$onRenderResolve$) {
1738
- hostRef.$onRenderResolve$();
1739
- hostRef.$onRenderResolve$ = undefined;
1740
- }
1741
- if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1742
- nextTick(() => scheduleUpdate(hostRef, false));
1743
- }
1744
- hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1745
- }
1746
- // ( •_•)
1747
- // ( •_•)>⌐■-■
1748
- // (⌐■_■)
1749
- };
1750
- const forceUpdate = (ref) => {
1751
- {
1752
- const hostRef = getHostRef(ref);
1753
- const isConnected = hostRef.$hostElement$.isConnected;
1754
- if (isConnected &&
1755
- (hostRef.$flags$ & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1756
- scheduleUpdate(hostRef, false);
1757
- }
1758
- // Returns "true" when the forced update was successfully scheduled
1759
- return isConnected;
1760
- }
1761
- };
1762
- const appDidLoad = (who) => {
1763
- // on appload
1764
- // we have finish the first big initial render
1765
- {
1766
- addHydratedFlag(doc.documentElement);
1767
- }
1768
- nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1769
- };
1770
- /**
1771
- * Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
1772
- * e.g. custom element node. If a build figures out that e.g. no component
1773
- * has a `componentDidLoad` method, the instance method gets removed from the
1774
- * output bundle and this function returns `undefined`.
1775
- * @param instance any object that may or may not contain methods
1776
- * @param method method name
1777
- * @param arg single arbitrary argument
1778
- * @returns result of method call if it exists, otherwise `undefined`
1779
- */
1780
- const safeCall = (instance, method, arg) => {
1781
- if (instance && instance[method]) {
1782
- try {
1783
- return instance[method](arg);
1784
- }
1785
- catch (e) {
1786
- consoleError(e);
1787
- }
1788
- }
1789
- return undefined;
1790
- };
1791
- const addHydratedFlag = (elm) => elm.setAttribute('hydrated', '')
1792
- ;
1793
- const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1794
- const setValue = (ref, propName, newVal, cmpMeta) => {
1795
- // check our new property value against our internal value
1796
- const hostRef = getHostRef(ref);
1797
- const elm = hostRef.$hostElement$ ;
1798
- const oldVal = hostRef.$instanceValues$.get(propName);
1799
- const flags = hostRef.$flags$;
1800
- const instance = hostRef.$lazyInstance$ ;
1801
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1802
- // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1803
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1804
- const didValueChange = newVal !== oldVal && !areBothNaN;
1805
- if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1806
- // gadzooks! the property's value has changed!!
1807
- // set our new value!
1808
- hostRef.$instanceValues$.set(propName, newVal);
1809
- if (instance) {
1810
- // get an array of method names of watch functions to call
1811
- if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1812
- const watchMethods = cmpMeta.$watchers$[propName];
1813
- if (watchMethods) {
1814
- // this instance is watching for when this property changed
1815
- watchMethods.map((watchMethodName) => {
1816
- try {
1817
- // fire off each of the watch methods that are watching this property
1818
- instance[watchMethodName](newVal, oldVal, propName);
1819
- }
1820
- catch (e) {
1821
- consoleError(e, elm);
1822
- }
1823
- });
1824
- }
1825
- }
1826
- if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1827
- // looks like this value actually changed, so we've got work to do!
1828
- // but only if we've already rendered, otherwise just chill out
1829
- // queue that we need to do an update, but don't worry about queuing
1830
- // up millions cuz this function ensures it only runs once
1831
- scheduleUpdate(hostRef, false);
1832
- }
1833
- }
1834
- }
1835
- };
1836
- /**
1837
- * Attach a series of runtime constructs to a compiled Stencil component
1838
- * constructor, including getters and setters for the `@Prop` and `@State`
1839
- * decorators, callbacks for when attributes change, and so on.
1840
- *
1841
- * @param Cstr the constructor for a component that we need to process
1842
- * @param cmpMeta metadata collected previously about the component
1843
- * @param flags a number used to store a series of bit flags
1844
- * @returns a reference to the same constructor passed in (but now mutated)
1845
- */
1846
- const proxyComponent = (Cstr, cmpMeta, flags) => {
1847
- var _a;
1848
- const prototype = Cstr.prototype;
1849
- if (cmpMeta.$members$) {
1850
- if (Cstr.watchers) {
1851
- cmpMeta.$watchers$ = Cstr.watchers;
1852
- }
1853
- // It's better to have a const than two Object.entries()
1854
- const members = Object.entries(cmpMeta.$members$);
1855
- members.map(([memberName, [memberFlags]]) => {
1856
- if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1857
- ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1858
- // proxyComponent - prop
1859
- Object.defineProperty(prototype, memberName, {
1860
- get() {
1861
- // proxyComponent, get value
1862
- return getValue(this, memberName);
1863
- },
1864
- set(newValue) {
1865
- // proxyComponent, set value
1866
- setValue(this, memberName, newValue, cmpMeta);
1867
- },
1868
- configurable: true,
1869
- enumerable: true,
1870
- });
1871
- }
1872
- else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1873
- memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1874
- // proxyComponent - method
1875
- Object.defineProperty(prototype, memberName, {
1876
- value(...args) {
1877
- var _a;
1878
- const ref = getHostRef(this);
1879
- return (_a = ref === null || ref === void 0 ? void 0 : ref.$onInstancePromise$) === null || _a === void 0 ? void 0 : _a.then(() => { var _a; return (_a = ref.$lazyInstance$) === null || _a === void 0 ? void 0 : _a[memberName](...args); });
1880
- },
1881
- });
1882
- }
1883
- });
1884
- if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1885
- const attrNameToPropName = new Map();
1886
- prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1887
- plt.jmp(() => {
1888
- var _a;
1889
- const propName = attrNameToPropName.get(attrName);
1890
- // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1891
- // in the case where an attribute was set inline.
1892
- // ```html
1893
- // <my-component some-attribute="some-value"></my-component>
1894
- // ```
1895
- //
1896
- // There is an edge case where a developer sets the attribute inline on a custom element and then
1897
- // programmatically changes it before it has been upgraded as shown below:
1898
- //
1899
- // ```html
1900
- // <!-- this component has _not_ been upgraded yet -->
1901
- // <my-component id="test" some-attribute="some-value"></my-component>
1902
- // <script>
1903
- // // grab non-upgraded component
1904
- // el = document.querySelector("#test");
1905
- // el.someAttribute = "another-value";
1906
- // // upgrade component
1907
- // customElements.define('my-component', MyComponent);
1908
- // </script>
1909
- // ```
1910
- // In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
1911
- // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1912
- // to the value that was set inline i.e. "some-value" from above example. When
1913
- // the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
1914
- //
1915
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
1916
- // by connectedCallback as this attributeChangedCallback will not fire.
1917
- //
1918
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1919
- //
1920
- // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1921
- // properties here given that this goes against best practices outlined here
1922
- // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1923
- if (this.hasOwnProperty(propName)) {
1924
- newValue = this[propName];
1925
- delete this[propName];
1926
- }
1927
- else if (prototype.hasOwnProperty(propName) &&
1928
- typeof this[propName] === 'number' &&
1929
- this[propName] == newValue) {
1930
- // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1931
- // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1932
- // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1933
- return;
1934
- }
1935
- else if (propName == null) {
1936
- // At this point we should know this is not a "member", so we can treat it like watching an attribute
1937
- // on a vanilla web component
1938
- const hostRef = getHostRef(this);
1939
- const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
1940
- // We only want to trigger the callback(s) if:
1941
- // 1. The instance is ready
1942
- // 2. The watchers are ready
1943
- // 3. The value has changed
1944
- if (flags &&
1945
- !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1946
- flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1947
- newValue !== oldValue) {
1948
- const instance = hostRef.$lazyInstance$ ;
1949
- const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
1950
- entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1951
- if (instance[callbackName] != null) {
1952
- instance[callbackName].call(instance, newValue, oldValue, attrName);
1953
- }
1954
- });
1955
- }
1956
- return;
1957
- }
1958
- this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1959
- });
1960
- };
1961
- // Create an array of attributes to observe
1962
- // This list in comprised of all strings used within a `@Watch()` decorator
1963
- // on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
1964
- // As such, there is no way to guarantee type-safety here that a user hasn't entered
1965
- // an invalid attribute.
1966
- Cstr.observedAttributes = Array.from(new Set([
1967
- ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
1968
- ...members
1969
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1970
- .map(([propName, m]) => {
1971
- var _a;
1972
- const attrName = m[1] || propName;
1973
- attrNameToPropName.set(attrName, propName);
1974
- if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1975
- (_a = cmpMeta.$attrsToReflect$) === null || _a === void 0 ? void 0 : _a.push([propName, attrName]);
1976
- }
1977
- return attrName;
1978
- }),
1979
- ]));
1980
- }
1981
- }
1982
- return Cstr;
1983
- };
1984
- /**
1985
- * Initialize a Stencil component given a reference to its host element, its
1986
- * runtime bookkeeping data structure, runtime metadata about the component,
1987
- * and (optionally) an HMR version ID.
1988
- *
1989
- * @param elm a host element
1990
- * @param hostRef the element's runtime bookkeeping object
1991
- * @param cmpMeta runtime metadata for the Stencil component
1992
- * @param hmrVersionId an (optional) HMR version ID
1993
- */
1994
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1995
- let Cstr;
1996
- // initializeComponent
1997
- if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1998
- // Let the runtime know that the component has been initialized
1999
- hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
2000
- const bundleId = cmpMeta.$lazyBundleId$;
2001
- if (bundleId) {
2002
- // lazy loaded components
2003
- // request the component's implementation to be
2004
- // wired up with the host element
2005
- Cstr = loadModule(cmpMeta);
2006
- if (Cstr.then) {
2007
- // Await creates a micro-task avoid if possible
2008
- const endLoad = uniqueTime();
2009
- Cstr = await Cstr;
2010
- endLoad();
2011
- }
2012
- if (!Cstr.isProxied) {
2013
- // we've never proxied this Constructor before
2014
- // let's add the getters/setters to its prototype before
2015
- // the first time we create an instance of the implementation
2016
- {
2017
- cmpMeta.$watchers$ = Cstr.watchers;
2018
- }
2019
- proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
2020
- Cstr.isProxied = true;
2021
- }
2022
- const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
2023
- // ok, time to construct the instance
2024
- // but let's keep track of when we start and stop
2025
- // so that the getters/setters don't incorrectly step on data
2026
- {
2027
- hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
2028
- }
2029
- // construct the lazy-loaded component implementation
2030
- // passing the hostRef is very important during
2031
- // construction in order to directly wire together the
2032
- // host element and the lazy-loaded instance
2033
- try {
2034
- new Cstr(hostRef);
2035
- }
2036
- catch (e) {
2037
- consoleError(e);
2038
- }
2039
- {
2040
- hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
2041
- }
2042
- {
2043
- hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
2044
- }
2045
- endNewInstance();
2046
- fireConnectedCallback(hostRef.$lazyInstance$);
2047
- }
2048
- else {
2049
- // sync constructor component
2050
- Cstr = elm.constructor;
2051
- // wait for the CustomElementRegistry to mark the component as ready before setting `isWatchReady`. Otherwise,
2052
- // watchers may fire prematurely if `customElements.get()`/`customElements.whenDefined()` resolves _before_
2053
- // Stencil has completed instantiating the component.
2054
- customElements.whenDefined(cmpMeta.$tagName$).then(() => (hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */));
2055
- }
2056
- if (Cstr.style) {
2057
- // this component has styles but we haven't registered them yet
2058
- let style = Cstr.style;
2059
- const scopeId = getScopeId(cmpMeta);
2060
- if (!styles.has(scopeId)) {
2061
- const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
2062
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
2063
- endRegisterStyles();
2064
- }
2065
- }
2066
- }
2067
- // we've successfully created a lazy instance
2068
- const ancestorComponent = hostRef.$ancestorComponent$;
2069
- const schedule = () => scheduleUpdate(hostRef, true);
2070
- if (ancestorComponent && ancestorComponent['s-rc']) {
2071
- // this is the initial load and this component it has an ancestor component
2072
- // but the ancestor component has NOT fired its will update lifecycle yet
2073
- // so let's just cool our jets and wait for the ancestor to continue first
2074
- // this will get fired off when the ancestor component
2075
- // finally gets around to rendering its lazy self
2076
- // fire off the initial update
2077
- ancestorComponent['s-rc'].push(schedule);
2078
- }
2079
- else {
2080
- schedule();
2081
- }
2082
- };
2083
- const fireConnectedCallback = (instance) => {
2084
- {
2085
- safeCall(instance, 'connectedCallback');
2086
- }
2087
- };
2088
- const connectedCallback = (elm) => {
2089
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
2090
- const hostRef = getHostRef(elm);
2091
- const cmpMeta = hostRef.$cmpMeta$;
2092
- const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
2093
- if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
2094
- // first time this component has connected
2095
- hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
2096
- {
2097
- // initUpdate
2098
- // if the slot polyfill is required we'll need to put some nodes
2099
- // in here to act as original content anchors as we move nodes around
2100
- // host element has been connected to the DOM
2101
- if ((// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2102
- cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
2103
- setContentReference(elm);
2104
- }
2105
- }
2106
- {
2107
- // find the first ancestor component (if there is one) and register
2108
- // this component as one of the actively loading child components for its ancestor
2109
- let ancestorComponent = elm;
2110
- while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
2111
- // climb up the ancestors looking for the first
2112
- // component that hasn't finished its lifecycle update yet
2113
- if (ancestorComponent['s-p']) {
2114
- // we found this components first ancestor component
2115
- // keep a reference to this component's ancestor component
2116
- attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
2117
- break;
2118
- }
2119
- }
2120
- }
2121
- // Lazy properties
2122
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
2123
- if (cmpMeta.$members$) {
2124
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2125
- if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
2126
- const value = elm[memberName];
2127
- delete elm[memberName];
2128
- elm[memberName] = value;
2129
- }
2130
- });
2131
- }
2132
- {
2133
- initializeComponent(elm, hostRef, cmpMeta);
2134
- }
2135
- }
2136
- else {
2137
- // not the first time this has connected
2138
- // reattach any event listeners to the host
2139
- // since they would have been removed when disconnected
2140
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2141
- // fire off connectedCallback() on component instance
2142
- if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
2143
- fireConnectedCallback(hostRef.$lazyInstance$);
2144
- }
2145
- else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
2146
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
2147
- }
2148
- }
2149
- endConnected();
2150
- }
2151
- };
2152
- const setContentReference = (elm) => {
2153
- // only required when we're NOT using native shadow dom (slot)
2154
- // or this browser doesn't support native shadow dom
2155
- // and this host element was NOT created with SSR
2156
- // let's pick out the inner content for slot projection
2157
- // create a node to represent where the original
2158
- // content was first placed, which is useful later on
2159
- const contentRefElm = (elm['s-cr'] = doc.createComment(''));
2160
- contentRefElm['s-cn'] = true;
2161
- elm.insertBefore(contentRefElm, elm.firstChild);
2162
- };
2163
- const disconnectInstance = (instance) => {
2164
- {
2165
- safeCall(instance, 'disconnectedCallback');
2166
- }
2167
- };
2168
- const disconnectedCallback = async (elm) => {
2169
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
2170
- const hostRef = getHostRef(elm);
2171
- {
2172
- if (hostRef.$rmListeners$) {
2173
- hostRef.$rmListeners$.map((rmListener) => rmListener());
2174
- hostRef.$rmListeners$ = undefined;
2175
- }
2176
- }
2177
- if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
2178
- disconnectInstance(hostRef.$lazyInstance$);
2179
- }
2180
- else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
2181
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
2182
- }
2183
- }
2184
- };
2185
- const bootstrapLazy = (lazyBundles, options = {}) => {
2186
- var _a;
2187
- const endBootstrap = createTime();
2188
- const cmpTags = [];
2189
- const exclude = options.exclude || [];
2190
- const customElements = win.customElements;
2191
- const head = doc.head;
2192
- const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
2193
- const dataStyles = /*@__PURE__*/ doc.createElement('style');
2194
- const deferredConnectedCallbacks = [];
2195
- let appLoadFallback;
2196
- let isBootstrapping = true;
2197
- Object.assign(plt, options);
2198
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
2199
- let hasSlotRelocation = false;
2200
- lazyBundles.map((lazyBundle) => {
2201
- lazyBundle[1].map((compactMeta) => {
2202
- var _a;
2203
- const cmpMeta = {
2204
- $flags$: compactMeta[0],
2205
- $tagName$: compactMeta[1],
2206
- $members$: compactMeta[2],
2207
- $listeners$: compactMeta[3],
2208
- };
2209
- // Check if we are using slots outside the shadow DOM in this component.
2210
- // We'll use this information later to add styles for `slot-fb` elements
2211
- if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
2212
- hasSlotRelocation = true;
2213
- }
2214
- {
2215
- cmpMeta.$members$ = compactMeta[2];
2216
- }
2217
- {
2218
- cmpMeta.$listeners$ = compactMeta[3];
2219
- }
2220
- {
2221
- cmpMeta.$attrsToReflect$ = [];
2222
- }
2223
- {
2224
- cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
2225
- }
2226
- const tagName = cmpMeta.$tagName$;
2227
- const HostElement = class extends HTMLElement {
2228
- // StencilLazyHost
2229
- constructor(self) {
2230
- // @ts-ignore
2231
- super(self);
2232
- self = this;
2233
- registerHost(self, cmpMeta);
2234
- if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
2235
- // this component is using shadow dom
2236
- // and this browser supports shadow dom
2237
- // add the read-only property "shadowRoot" to the host element
2238
- // adding the shadow root build conditionals to minimize runtime
2239
- {
2240
- {
2241
- self.attachShadow({
2242
- mode: 'open',
2243
- delegatesFocus: !!(cmpMeta.$flags$ & 16 /* CMP_FLAGS.shadowDelegatesFocus */),
2244
- });
2245
- }
2246
- }
2247
- }
2248
- }
2249
- connectedCallback() {
2250
- if (appLoadFallback) {
2251
- clearTimeout(appLoadFallback);
2252
- appLoadFallback = null;
2253
- }
2254
- if (isBootstrapping) {
2255
- // connectedCallback will be processed once all components have been registered
2256
- deferredConnectedCallbacks.push(this);
2257
- }
2258
- else {
2259
- plt.jmp(() => connectedCallback(this));
2260
- }
2261
- }
2262
- disconnectedCallback() {
2263
- plt.jmp(() => disconnectedCallback(this));
2264
- }
2265
- componentOnReady() {
2266
- return getHostRef(this).$onReadyPromise$;
2267
- }
2268
- };
2269
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
2270
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
2271
- cmpTags.push(tagName);
2272
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
2273
- }
2274
- });
2275
- });
2276
- // Only bother generating CSS if we have components
2277
- // TODO(STENCIL-1118): Add test cases for CSS content based on conditionals
2278
- if (cmpTags.length > 0) {
2279
- // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
2280
- if (hasSlotRelocation) {
2281
- dataStyles.textContent += SLOT_FB_CSS;
2282
- }
2283
- // Add hydration styles
2284
- {
2285
- dataStyles.textContent += cmpTags + HYDRATED_CSS;
2286
- }
2287
- // If we have styles, add them to the DOM
2288
- if (dataStyles.innerHTML.length) {
2289
- dataStyles.setAttribute('data-styles', '');
2290
- // Apply CSP nonce to the style tag if it exists
2291
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
2292
- if (nonce != null) {
2293
- dataStyles.setAttribute('nonce', nonce);
2294
- }
2295
- // Insert the styles into the document head
2296
- // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
2297
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2298
- }
2299
- }
2300
- // Process deferred connectedCallbacks now all components have been registered
2301
- isBootstrapping = false;
2302
- if (deferredConnectedCallbacks.length) {
2303
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
2304
- }
2305
- else {
2306
- {
2307
- plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
2308
- }
2309
- }
2310
- // Fallback appLoad event
2311
- endBootstrap();
2312
- };
2313
- const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2314
- if (listeners) {
2315
- listeners.map(([flags, name, method]) => {
2316
- const target = getHostListenerTarget(elm, flags) ;
2317
- const handler = hostListenerProxy(hostRef, method);
2318
- const opts = hostListenerOpts(flags);
2319
- plt.ael(target, name, handler, opts);
2320
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2321
- });
2322
- }
2323
- };
2324
- const hostListenerProxy = (hostRef, methodName) => (ev) => {
2325
- try {
2326
- {
2327
- if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
2328
- // instance is ready, let's call it's member method for this event
2329
- hostRef.$lazyInstance$[methodName](ev);
2330
- }
2331
- else {
2332
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2333
- }
2334
- }
2335
- }
2336
- catch (e) {
2337
- consoleError(e);
2338
- }
2339
- };
2340
- const getHostListenerTarget = (elm, flags) => {
2341
- if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
2342
- return win;
2343
- return elm;
2344
- };
2345
- // prettier-ignore
2346
- const hostListenerOpts = (flags) => supportsListenerOptions
2347
- ? ({
2348
- passive: (flags & 1 /* LISTENER_FLAGS.Passive */) !== 0,
2349
- capture: (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0,
2350
- })
2351
- : (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
2352
- /**
2353
- * Assigns the given value to the nonce property on the runtime platform object.
2354
- * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
2355
- * @param nonce The value to be assigned to the platform nonce property.
2356
- * @returns void
2357
- */
2358
- const setNonce = (nonce) => (plt.$nonce$ = nonce);
2359
- /**
2360
- * A WeakMap mapping runtime component references to their corresponding host reference
2361
- * instances.
2362
- *
2363
- * **Note**: If we're in an HMR context we need to store a reference to this
2364
- * value on `window` in order to maintain the mapping of {@link d.RuntimeRef}
2365
- * to {@link d.HostRef} across HMR updates.
2366
- *
2367
- * This is necessary because when HMR updates for a component are processed by
2368
- * the browser-side dev server client the JS bundle for that component is
2369
- * re-fetched. Since the module containing {@link hostRefs} is included in
2370
- * that bundle, if we do not store a reference to it the new iteration of the
2371
- * component will not have access to the previous hostRef map, leading to a
2372
- * bug where the new version of the component cannot properly initialize.
2373
- */
2374
- const hostRefs = new WeakMap();
2375
- /**
2376
- * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
2377
- *
2378
- * @param ref the runtime ref of interest
2379
- * @returns the Host reference (if found) or undefined
2380
- */
2381
- const getHostRef = (ref) => hostRefs.get(ref);
2382
- /**
2383
- * Register a lazy instance with the {@link hostRefs} object so it's
2384
- * corresponding {@link d.HostRef} can be retrieved later.
2385
- *
2386
- * @param lazyInstance the lazy instance of interest
2387
- * @param hostRef that instances `HostRef` object
2388
- * @returns a reference to the host ref WeakMap
2389
- */
2390
- const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
2391
- /**
2392
- * Register a host element for a Stencil component, setting up various metadata
2393
- * and callbacks based on {@link BUILD} flags as well as the component's runtime
2394
- * metadata.
2395
- *
2396
- * @param hostElement the host element to register
2397
- * @param cmpMeta runtime metadata for that component
2398
- * @returns a reference to the host ref WeakMap
2399
- */
2400
- const registerHost = (hostElement, cmpMeta) => {
2401
- const hostRef = {
2402
- $flags$: 0,
2403
- $hostElement$: hostElement,
2404
- $cmpMeta$: cmpMeta,
2405
- $instanceValues$: new Map(),
2406
- };
2407
- {
2408
- hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
2409
- }
2410
- {
2411
- hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
2412
- hostElement['s-p'] = [];
2413
- hostElement['s-rc'] = [];
2414
- }
2415
- addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$);
2416
- return hostRefs.set(hostElement, hostRef);
2417
- };
2418
- const isMemberInElement = (elm, memberName) => memberName in elm;
2419
- const consoleError = (e, el) => (0, console.error)(e, el);
2420
- const cmpModules = /*@__PURE__*/ new Map();
2421
- const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2422
- // loadModuleImport
2423
- const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
2424
- const bundleId = cmpMeta.$lazyBundleId$;
2425
- const module = cmpModules.get(bundleId) ;
2426
- if (module) {
2427
- return module[exportName];
2428
- }
2429
-
2430
- if (!hmrVersionId || !BUILD.hotModuleReplacement) {
2431
- const processMod = importedModule => {
2432
- cmpModules.set(bundleId, importedModule);
2433
- return importedModule[exportName];
2434
- }
2435
- switch(bundleId) {
2436
-
2437
- case 'gux-accordion.cjs':
2438
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2439
- /* webpackMode: "lazy" */
2440
- './gux-accordion.cjs.entry.js')); }).then(processMod, consoleError);
2441
- case 'gux-accordion-section.cjs':
2442
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2443
- /* webpackMode: "lazy" */
2444
- './gux-accordion-section.cjs.entry.js')); }).then(processMod, consoleError);
2445
- case 'gux-action-button.cjs':
2446
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2447
- /* webpackMode: "lazy" */
2448
- './gux-action-button.cjs.entry.js')); }).then(processMod, consoleError);
2449
- case 'gux-action-toast-legacy.cjs':
2450
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2451
- /* webpackMode: "lazy" */
2452
- './gux-action-toast-legacy.cjs.entry.js')); }).then(processMod, consoleError);
2453
- case 'gux-advanced-dropdown-legacy.cjs':
2454
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2455
- /* webpackMode: "lazy" */
2456
- './gux-advanced-dropdown-legacy.cjs.entry.js')); }).then(processMod, consoleError);
2457
- case 'gux-all-row-select.cjs':
2458
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2459
- /* webpackMode: "lazy" */
2460
- './gux-all-row-select.cjs.entry.js')); }).then(processMod, consoleError);
2461
- case 'gux-avatar-beta.cjs':
2462
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2463
- /* webpackMode: "lazy" */
2464
- './gux-avatar-beta.cjs.entry.js')); }).then(processMod, consoleError);
2465
- case 'gux-avatar-change-photo-beta.cjs':
2466
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2467
- /* webpackMode: "lazy" */
2468
- './gux-avatar-change-photo-beta.cjs.entry.js')); }).then(processMod, consoleError);
2469
- case 'gux-avatar-focusable-beta.cjs':
2470
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2471
- /* webpackMode: "lazy" */
2472
- './gux-avatar-focusable-beta.cjs.entry.js')); }).then(processMod, consoleError);
2473
- case 'gux-badge.cjs':
2474
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2475
- /* webpackMode: "lazy" */
2476
- './gux-badge.cjs.entry.js')); }).then(processMod, consoleError);
2477
- case 'gux-blank-state.cjs':
2478
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2479
- /* webpackMode: "lazy" */
2480
- './gux-blank-state.cjs.entry.js')); }).then(processMod, consoleError);
2481
- case 'gux-breadcrumb-item.cjs':
2482
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2483
- /* webpackMode: "lazy" */
2484
- './gux-breadcrumb-item.cjs.entry.js')); }).then(processMod, consoleError);
2485
- case 'gux-breadcrumbs.cjs':
2486
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2487
- /* webpackMode: "lazy" */
2488
- './gux-breadcrumbs.cjs.entry.js')); }).then(processMod, consoleError);
2489
- case 'gux-button.cjs':
2490
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2491
- /* webpackMode: "lazy" */
2492
- './gux-button.cjs.entry.js')); }).then(processMod, consoleError);
2493
- case 'gux-button-multi.cjs':
2494
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2495
- /* webpackMode: "lazy" */
2496
- './gux-button-multi.cjs.entry.js')); }).then(processMod, consoleError);
2497
- case 'gux-calendar-beta.cjs':
2498
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2499
- /* webpackMode: "lazy" */
2500
- './gux-calendar-beta.cjs.entry.js')); }).then(processMod, consoleError);
2501
- case 'gux-card.cjs':
2502
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2503
- /* webpackMode: "lazy" */
2504
- './gux-card.cjs.entry.js')); }).then(processMod, consoleError);
2505
- case 'gux-column-manager.cjs':
2506
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2507
- /* webpackMode: "lazy" */
2508
- './gux-column-manager.cjs.entry.js')); }).then(processMod, consoleError);
2509
- case 'gux-column-manager-item.cjs':
2510
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2511
- /* webpackMode: "lazy" */
2512
- './gux-column-manager-item.cjs.entry.js')); }).then(processMod, consoleError);
2513
- case 'gux-context-menu.cjs':
2514
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2515
- /* webpackMode: "lazy" */
2516
- './gux-context-menu.cjs.entry.js')); }).then(processMod, consoleError);
2517
- case 'gux-copy-to-clipboard.cjs':
2518
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2519
- /* webpackMode: "lazy" */
2520
- './gux-copy-to-clipboard.cjs.entry.js')); }).then(processMod, consoleError);
2521
- case 'gux-create-option.cjs':
2522
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2523
- /* webpackMode: "lazy" */
2524
- './gux-create-option.cjs.entry.js')); }).then(processMod, consoleError);
2525
- case 'gux-cta-group.cjs':
2526
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2527
- /* webpackMode: "lazy" */
2528
- './gux-cta-group.cjs.entry.js')); }).then(processMod, consoleError);
2529
- case 'gux-date-time-beta.cjs':
2530
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2531
- /* webpackMode: "lazy" */
2532
- './gux-date-time-beta.cjs.entry.js')); }).then(processMod, consoleError);
2533
- case 'gux-datepicker.cjs':
2534
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2535
- /* webpackMode: "lazy" */
2536
- './gux-datepicker.cjs.entry.js')); }).then(processMod, consoleError);
2537
- case 'gux-disclosure-button-legacy.cjs':
2538
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2539
- /* webpackMode: "lazy" */
2540
- './gux-disclosure-button-legacy.cjs.entry.js')); }).then(processMod, consoleError);
2541
- case 'gux-dropdown-multi.cjs':
2542
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2543
- /* webpackMode: "lazy" */
2544
- './gux-dropdown-multi.cjs.entry.js')); }).then(processMod, consoleError);
2545
- case 'gux-dropdown-option.cjs':
2546
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2547
- /* webpackMode: "lazy" */
2548
- './gux-dropdown-option.cjs.entry.js')); }).then(processMod, consoleError);
2549
- case 'gux-flyout-menu.cjs':
2550
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2551
- /* webpackMode: "lazy" */
2552
- './gux-flyout-menu.cjs.entry.js')); }).then(processMod, consoleError);
2553
- case 'gux-form-beta.cjs':
2554
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2555
- /* webpackMode: "lazy" */
2556
- './gux-form-beta.cjs.entry.js')); }).then(processMod, consoleError);
2557
- case 'gux-form-description.cjs':
2558
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2559
- /* webpackMode: "lazy" */
2560
- './gux-form-description.cjs.entry.js')); }).then(processMod, consoleError);
2561
- case 'gux-form-field-checkbox-group-beta.cjs':
2562
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2563
- /* webpackMode: "lazy" */
2564
- './gux-form-field-checkbox-group-beta.cjs.entry.js')); }).then(processMod, consoleError);
2565
- case 'gux-form-field-color.cjs':
2566
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2567
- /* webpackMode: "lazy" */
2568
- './gux-form-field-color.cjs.entry.js')); }).then(processMod, consoleError);
2569
- case 'gux-form-field-dropdown.cjs':
2570
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2571
- /* webpackMode: "lazy" */
2572
- './gux-form-field-dropdown.cjs.entry.js')); }).then(processMod, consoleError);
2573
- case 'gux-form-field-file.cjs':
2574
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2575
- /* webpackMode: "lazy" */
2576
- './gux-form-field-file.cjs.entry.js')); }).then(processMod, consoleError);
2577
- case 'gux-form-field-phone.cjs':
2578
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2579
- /* webpackMode: "lazy" */
2580
- './gux-form-field-phone.cjs.entry.js')); }).then(processMod, consoleError);
2581
- case 'gux-form-field-radio.cjs':
2582
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2583
- /* webpackMode: "lazy" */
2584
- './gux-form-field-radio.cjs.entry.js')); }).then(processMod, consoleError);
2585
- case 'gux-form-field-radio-group-beta.cjs':
2586
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2587
- /* webpackMode: "lazy" */
2588
- './gux-form-field-radio-group-beta.cjs.entry.js')); }).then(processMod, consoleError);
2589
- case 'gux-form-field-range.cjs':
2590
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2591
- /* webpackMode: "lazy" */
2592
- './gux-form-field-range.cjs.entry.js')); }).then(processMod, consoleError);
2593
- case 'gux-form-field-select.cjs':
2594
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2595
- /* webpackMode: "lazy" */
2596
- './gux-form-field-select.cjs.entry.js')); }).then(processMod, consoleError);
2597
- case 'gux-form-field-textarea.cjs':
2598
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2599
- /* webpackMode: "lazy" */
2600
- './gux-form-field-textarea.cjs.entry.js')); }).then(processMod, consoleError);
2601
- case 'gux-form-field-time-picker.cjs':
2602
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2603
- /* webpackMode: "lazy" */
2604
- './gux-form-field-time-picker.cjs.entry.js')); }).then(processMod, consoleError);
2605
- case 'gux-form-field-time-zone-picker.cjs':
2606
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2607
- /* webpackMode: "lazy" */
2608
- './gux-form-field-time-zone-picker.cjs.entry.js')); }).then(processMod, consoleError);
2609
- case 'gux-form-fieldset-heading.cjs':
2610
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2611
- /* webpackMode: "lazy" */
2612
- './gux-form-fieldset-heading.cjs.entry.js')); }).then(processMod, consoleError);
2613
- case 'gux-form-footer.cjs':
2614
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2615
- /* webpackMode: "lazy" */
2616
- './gux-form-footer.cjs.entry.js')); }).then(processMod, consoleError);
2617
- case 'gux-form-heading.cjs':
2618
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2619
- /* webpackMode: "lazy" */
2620
- './gux-form-heading.cjs.entry.js')); }).then(processMod, consoleError);
2621
- case 'gux-icon-tooltip-beta.cjs':
2622
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2623
- /* webpackMode: "lazy" */
2624
- './gux-icon-tooltip-beta.cjs.entry.js')); }).then(processMod, consoleError);
2625
- case 'gux-inline-alert.cjs':
2626
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2627
- /* webpackMode: "lazy" */
2628
- './gux-inline-alert.cjs.entry.js')); }).then(processMod, consoleError);
2629
- case 'gux-label-info-beta.cjs':
2630
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2631
- /* webpackMode: "lazy" */
2632
- './gux-label-info-beta.cjs.entry.js')); }).then(processMod, consoleError);
2633
- case 'gux-listbox-multi.cjs':
2634
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2635
- /* webpackMode: "lazy" */
2636
- './gux-listbox-multi.cjs.entry.js')); }).then(processMod, consoleError);
2637
- case 'gux-loading-message.cjs':
2638
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2639
- /* webpackMode: "lazy" */
2640
- './gux-loading-message.cjs.entry.js')); }).then(processMod, consoleError);
2641
- case 'gux-menu.cjs':
2642
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2643
- /* webpackMode: "lazy" */
2644
- './gux-menu.cjs.entry.js')); }).then(processMod, consoleError);
2645
- case 'gux-menu-option.cjs':
2646
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2647
- /* webpackMode: "lazy" */
2648
- './gux-menu-option.cjs.entry.js')); }).then(processMod, consoleError);
2649
- case 'gux-modal.cjs':
2650
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2651
- /* webpackMode: "lazy" */
2652
- './gux-modal.cjs.entry.js')); }).then(processMod, consoleError);
2653
- case 'gux-modal-legacy.cjs':
2654
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2655
- /* webpackMode: "lazy" */
2656
- './gux-modal-legacy.cjs.entry.js')); }).then(processMod, consoleError);
2657
- case 'gux-month-picker-beta.cjs':
2658
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2659
- /* webpackMode: "lazy" */
2660
- './gux-month-picker-beta.cjs.entry.js')); }).then(processMod, consoleError);
2661
- case 'gux-notification-toast-legacy.cjs':
2662
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2663
- /* webpackMode: "lazy" */
2664
- './gux-notification-toast-legacy.cjs.entry.js')); }).then(processMod, consoleError);
2665
- case 'gux-option-icon.cjs':
2666
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2667
- /* webpackMode: "lazy" */
2668
- './gux-option-icon.cjs.entry.js')); }).then(processMod, consoleError);
2669
- case 'gux-option-multi.cjs':
2670
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2671
- /* webpackMode: "lazy" */
2672
- './gux-option-multi.cjs.entry.js')); }).then(processMod, consoleError);
2673
- case 'gux-page-loading-spinner.cjs':
2674
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2675
- /* webpackMode: "lazy" */
2676
- './gux-page-loading-spinner.cjs.entry.js')); }).then(processMod, consoleError);
2677
- case 'gux-pagination.cjs':
2678
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2679
- /* webpackMode: "lazy" */
2680
- './gux-pagination.cjs.entry.js')); }).then(processMod, consoleError);
2681
- case 'gux-pagination-cursor.cjs':
2682
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2683
- /* webpackMode: "lazy" */
2684
- './gux-pagination-cursor.cjs.entry.js')); }).then(processMod, consoleError);
2685
- case 'gux-pagination-legacy.cjs':
2686
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2687
- /* webpackMode: "lazy" */
2688
- './gux-pagination-legacy.cjs.entry.js')); }).then(processMod, consoleError);
2689
- case 'gux-phone-input-beta.cjs':
2690
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2691
- /* webpackMode: "lazy" */
2692
- './gux-phone-input-beta.cjs.entry.js')); }).then(processMod, consoleError);
2693
- case 'gux-radial-progress.cjs':
2694
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2695
- /* webpackMode: "lazy" */
2696
- './gux-radial-progress.cjs.entry.js')); }).then(processMod, consoleError);
2697
- case 'gux-rating.cjs':
2698
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2699
- /* webpackMode: "lazy" */
2700
- './gux-rating.cjs.entry.js')); }).then(processMod, consoleError);
2701
- case 'gux-row-select.cjs':
2702
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2703
- /* webpackMode: "lazy" */
2704
- './gux-row-select.cjs.entry.js')); }).then(processMod, consoleError);
2705
- case 'gux-segmented-control-beta.cjs':
2706
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2707
- /* webpackMode: "lazy" */
2708
- './gux-segmented-control-beta.cjs.entry.js')); }).then(processMod, consoleError);
2709
- case 'gux-segmented-control-item.cjs':
2710
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2711
- /* webpackMode: "lazy" */
2712
- './gux-segmented-control-item.cjs.entry.js')); }).then(processMod, consoleError);
2713
- case 'gux-selector-card-beta.cjs':
2714
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2715
- /* webpackMode: "lazy" */
2716
- './gux-selector-card-beta.cjs.entry.js')); }).then(processMod, consoleError);
2717
- case 'gux-selector-cards-beta.cjs':
2718
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2719
- /* webpackMode: "lazy" */
2720
- './gux-selector-cards-beta.cjs.entry.js')); }).then(processMod, consoleError);
2721
- case 'gux-simple-toast-legacy.cjs':
2722
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2723
- /* webpackMode: "lazy" */
2724
- './gux-simple-toast-legacy.cjs.entry.js')); }).then(processMod, consoleError);
2725
- case 'gux-skip-navigation-item.cjs':
2726
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2727
- /* webpackMode: "lazy" */
2728
- './gux-skip-navigation-item.cjs.entry.js')); }).then(processMod, consoleError);
2729
- case 'gux-skip-navigation-list.cjs':
2730
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2731
- /* webpackMode: "lazy" */
2732
- './gux-skip-navigation-list.cjs.entry.js')); }).then(processMod, consoleError);
2733
- case 'gux-sort-control.cjs':
2734
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2735
- /* webpackMode: "lazy" */
2736
- './gux-sort-control.cjs.entry.js')); }).then(processMod, consoleError);
2737
- case 'gux-submenu.cjs':
2738
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2739
- /* webpackMode: "lazy" */
2740
- './gux-submenu.cjs.entry.js')); }).then(processMod, consoleError);
2741
- case 'gux-switch-item.cjs':
2742
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2743
- /* webpackMode: "lazy" */
2744
- './gux-switch-item.cjs.entry.js')); }).then(processMod, consoleError);
2745
- case 'gux-switch-legacy.cjs':
2746
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2747
- /* webpackMode: "lazy" */
2748
- './gux-switch-legacy.cjs.entry.js')); }).then(processMod, consoleError);
2749
- case 'gux-tab.cjs':
2750
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2751
- /* webpackMode: "lazy" */
2752
- './gux-tab.cjs.entry.js')); }).then(processMod, consoleError);
2753
- case 'gux-tab-advanced.cjs':
2754
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2755
- /* webpackMode: "lazy" */
2756
- './gux-tab-advanced.cjs.entry.js')); }).then(processMod, consoleError);
2757
- case 'gux-tab-advanced-list.cjs':
2758
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2759
- /* webpackMode: "lazy" */
2760
- './gux-tab-advanced-list.cjs.entry.js')); }).then(processMod, consoleError);
2761
- case 'gux-tab-advanced-panel.cjs':
2762
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2763
- /* webpackMode: "lazy" */
2764
- './gux-tab-advanced-panel.cjs.entry.js')); }).then(processMod, consoleError);
2765
- case 'gux-tab-list.cjs':
2766
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2767
- /* webpackMode: "lazy" */
2768
- './gux-tab-list.cjs.entry.js')); }).then(processMod, consoleError);
2769
- case 'gux-tab-panel.cjs':
2770
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2771
- /* webpackMode: "lazy" */
2772
- './gux-tab-panel.cjs.entry.js')); }).then(processMod, consoleError);
2773
- case 'gux-table.cjs':
2774
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2775
- /* webpackMode: "lazy" */
2776
- './gux-table.cjs.entry.js')); }).then(processMod, consoleError);
2777
- case 'gux-table-select-menu.cjs':
2778
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2779
- /* webpackMode: "lazy" */
2780
- './gux-table-select-menu.cjs.entry.js')); }).then(processMod, consoleError);
2781
- case 'gux-table-toolbar.cjs':
2782
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2783
- /* webpackMode: "lazy" */
2784
- './gux-table-toolbar.cjs.entry.js')); }).then(processMod, consoleError);
2785
- case 'gux-table-toolbar-action.cjs':
2786
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2787
- /* webpackMode: "lazy" */
2788
- './gux-table-toolbar-action.cjs.entry.js')); }).then(processMod, consoleError);
2789
- case 'gux-tabs.cjs':
2790
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2791
- /* webpackMode: "lazy" */
2792
- './gux-tabs.cjs.entry.js')); }).then(processMod, consoleError);
2793
- case 'gux-tabs-advanced.cjs':
2794
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2795
- /* webpackMode: "lazy" */
2796
- './gux-tabs-advanced.cjs.entry.js')); }).then(processMod, consoleError);
2797
- case 'gux-tag.cjs':
2798
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2799
- /* webpackMode: "lazy" */
2800
- './gux-tag.cjs.entry.js')); }).then(processMod, consoleError);
2801
- case 'gux-time-beta.cjs':
2802
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2803
- /* webpackMode: "lazy" */
2804
- './gux-time-beta.cjs.entry.js')); }).then(processMod, consoleError);
2805
- case 'gux-time-picker.cjs':
2806
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2807
- /* webpackMode: "lazy" */
2808
- './gux-time-picker.cjs.entry.js')); }).then(processMod, consoleError);
2809
- case 'gux-time-zone-beta.cjs':
2810
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2811
- /* webpackMode: "lazy" */
2812
- './gux-time-zone-beta.cjs.entry.js')); }).then(processMod, consoleError);
2813
- case 'gux-time-zone-picker-beta.cjs':
2814
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2815
- /* webpackMode: "lazy" */
2816
- './gux-time-zone-picker-beta.cjs.entry.js')); }).then(processMod, consoleError);
2817
- case 'gux-toast.cjs':
2818
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2819
- /* webpackMode: "lazy" */
2820
- './gux-toast.cjs.entry.js')); }).then(processMod, consoleError);
2821
- case 'gux-toggle.cjs':
2822
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2823
- /* webpackMode: "lazy" */
2824
- './gux-toggle.cjs.entry.js')); }).then(processMod, consoleError);
2825
- case 'gux-calendar.cjs':
2826
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2827
- /* webpackMode: "lazy" */
2828
- './gux-calendar.cjs.entry.js')); }).then(processMod, consoleError);
2829
- case 'gux-content-search.cjs':
2830
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2831
- /* webpackMode: "lazy" */
2832
- './gux-content-search.cjs.entry.js')); }).then(processMod, consoleError);
2833
- case 'gux-date-beta.cjs':
2834
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2835
- /* webpackMode: "lazy" */
2836
- './gux-date-beta.cjs.entry.js')); }).then(processMod, consoleError);
2837
- case 'gux-dropdown-multi-tag.cjs':
2838
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2839
- /* webpackMode: "lazy" */
2840
- './gux-dropdown-multi-tag.cjs.entry.js')); }).then(processMod, consoleError);
2841
- case 'gux-flag-icon-beta.cjs':
2842
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2843
- /* webpackMode: "lazy" */
2844
- './gux-flag-icon-beta.cjs.entry.js')); }).then(processMod, consoleError);
2845
- case 'gux-form-field-search.cjs':
2846
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2847
- /* webpackMode: "lazy" */
2848
- './gux-form-field-search.cjs.entry.js')); }).then(processMod, consoleError);
2849
- case 'gux-list-item.cjs':
2850
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2851
- /* webpackMode: "lazy" */
2852
- './gux-list-item.cjs.entry.js')); }).then(processMod, consoleError);
2853
- case 'gux-month-calendar.cjs':
2854
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2855
- /* webpackMode: "lazy" */
2856
- './gux-month-calendar.cjs.entry.js')); }).then(processMod, consoleError);
2857
- case 'gux-option-group-beta.cjs':
2858
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2859
- /* webpackMode: "lazy" */
2860
- './gux-option-group-beta.cjs.entry.js')); }).then(processMod, consoleError);
2861
- case 'gux-pagination-buttons_2.cjs':
2862
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2863
- /* webpackMode: "lazy" */
2864
- './gux-pagination-buttons_2.cjs.entry.js')); }).then(processMod, consoleError);
2865
- case 'gux-pagination-buttons-legacy_3.cjs':
2866
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2867
- /* webpackMode: "lazy" */
2868
- './gux-pagination-buttons-legacy_3.cjs.entry.js')); }).then(processMod, consoleError);
2869
- case 'gux-table-toolbar-custom-action.cjs':
2870
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2871
- /* webpackMode: "lazy" */
2872
- './gux-table-toolbar-custom-action.cjs.entry.js')); }).then(processMod, consoleError);
2873
- case 'gux-table-toolbar-menu-button.cjs':
2874
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2875
- /* webpackMode: "lazy" */
2876
- './gux-table-toolbar-menu-button.cjs.entry.js')); }).then(processMod, consoleError);
2877
- case 'gux-text-highlight.cjs':
2878
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2879
- /* webpackMode: "lazy" */
2880
- './gux-text-highlight.cjs.entry.js')); }).then(processMod, consoleError);
2881
- case 'gux-toggle-slider.cjs':
2882
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2883
- /* webpackMode: "lazy" */
2884
- './gux-toggle-slider.cjs.entry.js')); }).then(processMod, consoleError);
2885
- case 'gux-announce-beta.cjs':
2886
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2887
- /* webpackMode: "lazy" */
2888
- './gux-announce-beta.cjs.entry.js')); }).then(processMod, consoleError);
2889
- case 'gux-form-field-text-like.cjs':
2890
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2891
- /* webpackMode: "lazy" */
2892
- './gux-form-field-text-like.cjs.entry.js')); }).then(processMod, consoleError);
2893
- case 'gux-list-divider.cjs':
2894
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2895
- /* webpackMode: "lazy" */
2896
- './gux-list-divider.cjs.entry.js')); }).then(processMod, consoleError);
2897
- case 'gux-month-list_2.cjs':
2898
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2899
- /* webpackMode: "lazy" */
2900
- './gux-month-list_2.cjs.entry.js')); }).then(processMod, consoleError);
2901
- case 'gux-form-field-number_3.cjs':
2902
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2903
- /* webpackMode: "lazy" */
2904
- './gux-form-field-number_3.cjs.entry.js')); }).then(processMod, consoleError);
2905
- case 'gux-pagination-items-per-page.cjs':
2906
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2907
- /* webpackMode: "lazy" */
2908
- './gux-pagination-items-per-page.cjs.entry.js')); }).then(processMod, consoleError);
2909
- case 'gux-popover-list.cjs':
2910
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2911
- /* webpackMode: "lazy" */
2912
- './gux-popover-list.cjs.entry.js')); }).then(processMod, consoleError);
2913
- case 'gux-form-field-checkbox.cjs':
2914
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2915
- /* webpackMode: "lazy" */
2916
- './gux-form-field-checkbox.cjs.entry.js')); }).then(processMod, consoleError);
2917
- case 'gux-screen-reader-beta_2.cjs':
2918
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2919
- /* webpackMode: "lazy" */
2920
- './gux-screen-reader-beta_2.cjs.entry.js')); }).then(processMod, consoleError);
2921
- case 'gux-dropdown_3.cjs':
2922
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2923
- /* webpackMode: "lazy" */
2924
- './gux-dropdown_3.cjs.entry.js')); }).then(processMod, consoleError);
2925
- case 'gux-list.cjs':
2926
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2927
- /* webpackMode: "lazy" */
2928
- './gux-list.cjs.entry.js')); }).then(processMod, consoleError);
2929
- case 'gux-tooltip-base-beta.cjs':
2930
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2931
- /* webpackMode: "lazy" */
2932
- './gux-tooltip-base-beta.cjs.entry.js')); }).then(processMod, consoleError);
2933
- case 'gux-tooltip-title.cjs':
2934
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2935
- /* webpackMode: "lazy" */
2936
- './gux-tooltip-title.cjs.entry.js')); }).then(processMod, consoleError);
2937
- case 'gux-form-field-input-clear-button.cjs':
2938
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2939
- /* webpackMode: "lazy" */
2940
- './gux-form-field-input-clear-button.cjs.entry.js')); }).then(processMod, consoleError);
2941
- case 'gux-dismiss-button.cjs':
2942
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2943
- /* webpackMode: "lazy" */
2944
- './gux-dismiss-button.cjs.entry.js')); }).then(processMod, consoleError);
2945
- case 'gux-truncate.cjs':
2946
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2947
- /* webpackMode: "lazy" */
2948
- './gux-truncate.cjs.entry.js')); }).then(processMod, consoleError);
2949
- case 'gux-radial-loading.cjs':
2950
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2951
- /* webpackMode: "lazy" */
2952
- './gux-radial-loading.cjs.entry.js')); }).then(processMod, consoleError);
2953
- case 'gux-popup.cjs':
2954
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2955
- /* webpackMode: "lazy" */
2956
- './gux-popup.cjs.entry.js')); }).then(processMod, consoleError);
2957
- case 'gux-form-field-label-indicator.cjs':
2958
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2959
- /* webpackMode: "lazy" */
2960
- './gux-form-field-label-indicator.cjs.entry.js')); }).then(processMod, consoleError);
2961
- case 'gux-button-slot.cjs':
2962
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2963
- /* webpackMode: "lazy" */
2964
- './gux-button-slot.cjs.entry.js')); }).then(processMod, consoleError);
2965
- case 'gux-tooltip.cjs':
2966
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2967
- /* webpackMode: "lazy" */
2968
- './gux-tooltip.cjs.entry.js')); }).then(processMod, consoleError);
2969
- case 'gux-icon.cjs':
2970
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2971
- /* webpackMode: "lazy" */
2972
- './gux-icon.cjs.entry.js')); }).then(processMod, consoleError);
2973
- }
2974
- }
2975
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2976
- /* @vite-ignore */
2977
- /* webpackInclude: /\.entry\.js$/ */
2978
- /* webpackExclude: /\.system\.entry\.js$/ */
2979
- /* webpackMode: "lazy" */
2980
- `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
2981
- {
2982
- cmpModules.set(bundleId, importedModule);
2983
- }
2984
- return importedModule[exportName];
2985
- }, consoleError);
2986
- };
2987
- const styles = /*@__PURE__*/ new Map();
2988
- const win = typeof window !== 'undefined' ? window : {};
2989
- const doc = win.document || { head: {} };
2990
- const plt = {
2991
- $flags$: 0,
2992
- $resourcesUrl$: '',
2993
- jmp: (h) => h(),
2994
- raf: (h) => requestAnimationFrame(h),
2995
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2996
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2997
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
2998
- };
2999
- const supportsListenerOptions = /*@__PURE__*/ (() => {
3000
- let supportsListenerOptions = false;
3001
- try {
3002
- doc.addEventListener('e', null, Object.defineProperty({}, 'passive', {
3003
- get() {
3004
- supportsListenerOptions = true;
3005
- },
3006
- }));
3007
- }
3008
- catch (e) { }
3009
- return supportsListenerOptions;
3010
- })();
3011
- const promiseResolve = (v) => Promise.resolve(v);
3012
- const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
3013
- try {
3014
- new CSSStyleSheet();
3015
- return typeof new CSSStyleSheet().replaceSync === 'function';
3016
- }
3017
- catch (e) { }
3018
- return false;
3019
- })()
3020
- ;
3021
- const queueDomReads = [];
3022
- const queueDomWrites = [];
3023
- const queueTask = (queue, write) => (cb) => {
3024
- queue.push(cb);
3025
- if (!queuePending) {
3026
- queuePending = true;
3027
- if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
3028
- nextTick(flush);
3029
- }
3030
- else {
3031
- plt.raf(flush);
3032
- }
3033
- }
3034
- };
3035
- const consume = (queue) => {
3036
- for (let i = 0; i < queue.length; i++) {
3037
- try {
3038
- queue[i](performance.now());
3039
- }
3040
- catch (e) {
3041
- consoleError(e);
3042
- }
3043
- }
3044
- queue.length = 0;
3045
- };
3046
- const flush = () => {
3047
- // always force a bunch of medium callbacks to run, but still have
3048
- // a throttle on how many can run in a certain time
3049
- // DOM READS!!!
3050
- consume(queueDomReads);
3051
- // DOM WRITES!!!
3052
- {
3053
- consume(queueDomWrites);
3054
- if ((queuePending = queueDomReads.length > 0)) {
3055
- // still more to do yet, but we've run out of time
3056
- // let's let this thing cool off and try again in the next tick
3057
- plt.raf(flush);
3058
- }
3059
- }
3060
- };
3061
- const nextTick = (cb) => promiseResolve().then(cb);
3062
- const readTask = /*@__PURE__*/ queueTask(queueDomReads, false);
3063
- const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
3064
-
3065
- exports.Host = Host;
3066
- exports.bootstrapLazy = bootstrapLazy;
3067
- exports.createEvent = createEvent;
3068
- exports.forceUpdate = forceUpdate;
3069
- exports.getAssetPath = getAssetPath;
3070
- exports.getElement = getElement;
3071
- exports.h = h;
3072
- exports.promiseResolve = promiseResolve;
3073
- exports.readTask = readTask;
3074
- exports.registerInstance = registerInstance;
3075
- exports.setNonce = setNonce;
3076
- exports.writeTask = writeTask;