genesys-spark-components 4.82.0 → 4.83.1

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