genesys-spark-components 4.122.0 → 4.123.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (691) hide show
  1. package/dist/cjs/{en-b47b8378.js → en-63e86478.js} +3 -1
  2. package/dist/cjs/genesys-webcomponents.cjs.js +2 -2
  3. package/dist/cjs/{get-valid-timezone-a3319313.js → get-valid-timezone-92648ac9.js} +1 -1
  4. package/dist/cjs/gux-accordion-section.cjs.entry.js +6 -6
  5. package/dist/cjs/gux-accordion.cjs.entry.js +3 -3
  6. package/dist/cjs/gux-action-button.cjs.entry.js +5 -5
  7. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +3 -3
  8. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +6 -6
  9. package/dist/cjs/gux-all-row-select.cjs.entry.js +3 -3
  10. package/dist/cjs/gux-announce-beta.cjs.entry.js +2 -2
  11. package/dist/cjs/gux-avatar-beta.cjs.entry.js +3 -3
  12. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +3 -3
  13. package/dist/cjs/gux-avatar-focusable-beta.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-avatar-group-add-item-beta_3.cjs.entry.js +4 -4
  15. package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +2 -2
  16. package/dist/cjs/gux-avatar-group-item-beta.cjs.entry.js +2 -2
  17. package/dist/cjs/gux-badge.cjs.entry.js +4 -4
  18. package/dist/cjs/gux-blank-state.cjs.entry.js +4 -4
  19. package/dist/cjs/gux-breadcrumb-item.cjs.entry.js +2 -2
  20. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +4 -4
  21. package/dist/cjs/gux-button-multi.cjs.entry.js +4 -4
  22. package/dist/cjs/gux-button-slot.cjs.entry.js +3 -3
  23. package/dist/cjs/gux-button_2.cjs.entry.js +7 -7
  24. package/dist/cjs/gux-calendar-beta.cjs.entry.js +2 -2
  25. package/dist/cjs/gux-calendar.cjs.entry.js +4 -4
  26. package/dist/cjs/gux-card.cjs.entry.js +4 -4
  27. package/dist/cjs/gux-column-manager-item.cjs.entry.js +5 -5
  28. package/dist/cjs/gux-column-manager.cjs.entry.js +4 -4
  29. package/dist/cjs/gux-content-search.cjs.entry.js +5 -5
  30. package/dist/cjs/gux-context-menu.cjs.entry.js +6 -6
  31. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +4 -4
  32. package/dist/cjs/gux-create-option.cjs.entry.js +4 -4
  33. package/dist/cjs/gux-cta-group.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-date-beta.cjs.entry.js +4 -4
  35. package/dist/cjs/gux-date-time-beta.cjs.entry.js +4 -4
  36. package/dist/cjs/gux-datepicker.cjs.entry.js +5 -5
  37. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +5 -5
  38. package/dist/cjs/gux-dismiss-button.cjs.entry.js +5 -5
  39. package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +3 -3
  40. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +6 -6
  41. package/dist/cjs/gux-dropdown-option.cjs.entry.js +2 -2
  42. package/dist/cjs/gux-dropdown_3.cjs.entry.js +8 -8
  43. package/dist/cjs/gux-file-list-item.cjs.entry.js +5 -5
  44. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +2 -2
  45. package/dist/cjs/gux-flyout-menu.cjs.entry.js +4 -4
  46. package/dist/cjs/gux-form-beta.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-description.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +8 -8
  49. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +6 -6
  50. package/dist/cjs/gux-form-field-color.cjs.entry.js +8 -8
  51. package/dist/cjs/{gux-form-field-container-d667bd55.js → gux-form-field-container-131e8408.js} +1 -1
  52. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +9 -9
  53. package/dist/cjs/{gux-form-field-error-ce0cf9e4.js → gux-form-field-error-b04c6f58.js} +1 -1
  54. package/dist/cjs/{gux-form-field-fieldset-container-1b27772e.js → gux-form-field-fieldset-container-3e2ced98.js} +1 -1
  55. package/dist/cjs/gux-form-field-file-beta.cjs.entry.js +7 -7
  56. package/dist/cjs/gux-form-field-file.cjs.entry.js +6 -6
  57. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +4 -4
  58. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +3 -3
  59. package/dist/cjs/gux-form-field-number_2.cjs.entry.js +14 -14
  60. package/dist/cjs/gux-form-field-phone.cjs.entry.js +10 -10
  61. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +8 -8
  62. package/dist/cjs/gux-form-field-radio.cjs.entry.js +6 -6
  63. package/dist/cjs/gux-form-field-range.cjs.entry.js +8 -8
  64. package/dist/cjs/gux-form-field-search.cjs.entry.js +8 -8
  65. package/dist/cjs/gux-form-field-select.cjs.entry.js +8 -8
  66. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +8 -8
  67. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +7 -7
  68. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +10 -10
  69. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +9 -9
  70. package/dist/cjs/gux-form-fieldset-heading.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-form-footer.cjs.entry.js +2 -2
  72. package/dist/cjs/gux-form-heading.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +2 -2
  74. package/dist/cjs/gux-icon.cjs.entry.js +3 -3
  75. package/dist/cjs/gux-inline-alert.cjs.entry.js +5 -5
  76. package/dist/cjs/gux-label-info-beta.cjs.entry.js +2 -2
  77. package/dist/cjs/gux-link-beta.cjs.entry.js +2 -2
  78. package/dist/cjs/gux-list-divider.cjs.entry.js +2 -2
  79. package/dist/cjs/gux-list-item.cjs.entry.js +2 -2
  80. package/dist/cjs/gux-list.cjs.entry.js +3 -3
  81. package/dist/cjs/gux-listbox-multi.cjs.entry.js +3 -3
  82. package/dist/cjs/gux-loading-message.cjs.entry.js +3 -3
  83. package/dist/cjs/gux-menu-option.cjs.entry.js +2 -2
  84. package/dist/cjs/gux-menu.cjs.entry.js +2 -2
  85. package/dist/cjs/gux-modal-legacy.cjs.entry.js +4 -4
  86. package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +3 -3
  87. package/dist/cjs/gux-modal.cjs.entry.js +3 -3
  88. package/dist/cjs/gux-month-calendar.cjs.entry.js +2 -2
  89. package/dist/cjs/gux-month-list_2.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +4 -4
  91. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +3 -3
  92. package/dist/cjs/gux-option-group-beta.cjs.entry.js +2 -2
  93. package/dist/cjs/gux-option-icon.cjs.entry.js +3 -3
  94. package/dist/cjs/gux-option-multi.cjs.entry.js +4 -4
  95. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +3 -3
  96. package/dist/cjs/gux-pagination-buttons-legacy_3.cjs.entry.js +6 -6
  97. package/dist/cjs/gux-pagination-buttons_2.cjs.entry.js +5 -5
  98. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +3 -3
  99. package/dist/cjs/gux-pagination-items-per-page.cjs.entry.js +3 -3
  100. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +3 -3
  101. package/dist/cjs/gux-pagination.cjs.entry.js +3 -3
  102. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +4 -4
  103. package/dist/cjs/gux-popover-beta.cjs.entry.js +3 -3
  104. package/dist/cjs/gux-popover-list-beta.cjs.entry.js +3 -3
  105. package/dist/cjs/gux-popover-list.cjs.entry.js +5 -5
  106. package/dist/cjs/gux-popup.cjs.entry.js +4 -4
  107. package/dist/cjs/gux-radial-loading.cjs.entry.js +4 -4
  108. package/dist/cjs/gux-radial-progress.cjs.entry.js +2 -2
  109. package/dist/cjs/gux-rating.cjs.entry.js +3 -3
  110. package/dist/cjs/gux-rich-highlight-list-item.cjs.entry.js +4 -4
  111. package/dist/cjs/gux-rich-style-list-item_3.cjs.entry.js +299 -0
  112. package/dist/cjs/gux-rich-text-editor-action-group.cjs.entry.js +2 -2
  113. package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +8 -6
  114. package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +14 -11
  115. package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +6 -6
  116. package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +5 -5
  117. package/dist/cjs/gux-rich-text-editor-beta.cjs.entry.js +140 -3
  118. package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +6 -5
  119. package/dist/cjs/gux-rich-text-editor.service-a1f5a275.js +84 -0
  120. package/dist/cjs/gux-row-select.cjs.entry.js +4 -4
  121. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +3 -3
  122. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +3 -3
  123. package/dist/cjs/gux-segmented-control-item.cjs.entry.js +5 -5
  124. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +4 -4
  125. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +3 -3
  126. package/dist/cjs/gux-side-panel-beta.cjs.entry.js +4 -4
  127. package/dist/cjs/gux-side-panel-heading.cjs.entry.js +3 -3
  128. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +3 -3
  129. package/dist/cjs/gux-skip-navigation-item.cjs.entry.js +2 -2
  130. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +4 -4
  131. package/dist/cjs/gux-sort-control.cjs.entry.js +6 -6
  132. package/dist/cjs/gux-submenu.cjs.entry.js +4 -4
  133. package/dist/cjs/gux-switch-item.cjs.entry.js +2 -2
  134. package/dist/cjs/gux-switch-legacy.cjs.entry.js +3 -3
  135. package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +4 -4
  136. package/dist/cjs/gux-tab-advanced-panel.cjs.entry.js +2 -2
  137. package/dist/cjs/gux-tab-advanced.cjs.entry.js +4 -4
  138. package/dist/cjs/gux-tab-list.cjs.entry.js +5 -5
  139. package/dist/cjs/gux-tab-panel.cjs.entry.js +2 -2
  140. package/dist/cjs/gux-tab.cjs.entry.js +3 -3
  141. package/dist/cjs/gux-table-select-menu.cjs.entry.js +3 -3
  142. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +4 -4
  143. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +3 -3
  144. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +5 -5
  145. package/dist/cjs/gux-table-toolbar.cjs.entry.js +6 -6
  146. package/dist/cjs/gux-table.cjs.entry.js +4 -4
  147. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +3 -3
  148. package/dist/cjs/gux-tabs.cjs.entry.js +3 -3
  149. package/dist/cjs/gux-tag.cjs.entry.js +4 -4
  150. package/dist/cjs/gux-text-highlight.cjs.entry.js +2 -2
  151. package/dist/cjs/gux-time-beta.cjs.entry.js +5 -5
  152. package/dist/cjs/gux-time-picker.cjs.entry.js +5 -5
  153. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +4 -4
  154. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +5 -5
  155. package/dist/cjs/gux-toast.cjs.entry.js +4 -4
  156. package/dist/cjs/gux-toggle-slider.cjs.entry.js +3 -3
  157. package/dist/cjs/gux-toggle.cjs.entry.js +5 -5
  158. package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +5 -5
  159. package/dist/cjs/gux-tooltip-title.cjs.entry.js +5 -5
  160. package/dist/cjs/gux-tooltip_2.cjs.entry.js +9 -9
  161. package/dist/cjs/{index-77202cdc.js → index-8f08a5ed.js} +31 -19
  162. package/dist/cjs/{index-8194d25c.js → index-c5d18923.js} +1 -1
  163. package/dist/cjs/loader.cjs.js +2 -2
  164. package/dist/cjs/{on-click-outside-2faf7467.js → on-click-outside-18d3c600.js} +1 -1
  165. package/dist/cjs/{on-mutation-e89e880e.js → on-mutation-86c636e6.js} +1 -1
  166. package/dist/cjs/{on-resize-810e9012.js → on-resize-15ff32b7.js} +5 -2
  167. package/dist/cjs/{usage-bdf54f32.js → usage-cee7c9f5.js} +1 -1
  168. package/dist/collection/collection-manifest.json +2 -0
  169. package/dist/collection/components/beta/gux-icon-tooltip/gux-icon-tooltip.js +1 -1
  170. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action-link/gux-rich-text-editor-action-link.js +2 -1
  171. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action-rich-style/gux-rich-text-editor-action-rich-style.css +1 -1
  172. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action-rich-style/gux-rich-text-editor-action-rich-style.js +7 -4
  173. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-action-group/gux-rich-text-editor-action-group.css +7 -0
  174. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-beta.js +163 -3
  175. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-list/gux-rich-style-list-item/gux-rich-style-list-item.js +2 -2
  176. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-list/gux-rich-text-editor-list.js +4 -3
  177. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-list/gux-rich-text-editor-sub-list/gux-rich-text-editor-sub-list.css +89 -0
  178. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-list/gux-rich-text-editor-sub-list/gux-rich-text-editor-sub-list.js +213 -0
  179. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-menu/gux-rich-text-editor-menu.css +24 -0
  180. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-menu/gux-rich-text-editor-menu.js +142 -0
  181. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor.service.js +42 -0
  182. package/dist/collection/components/beta/gux-screen-reader/gux-screen-reader.js +1 -1
  183. package/dist/collection/components/beta/gux-segmented-control/gux-segmented-control-item/gux-segmented-control-item.js +4 -4
  184. package/dist/collection/components/beta/gux-segmented-control/gux-segmented-control.js +1 -1
  185. package/dist/collection/components/beta/gux-selector-cards/gux-selector-card/gux-selector-card.js +2 -2
  186. package/dist/collection/components/beta/gux-selector-cards/gux-selector-cards.js +1 -1
  187. package/dist/collection/components/beta/gux-side-panel/components/gux-modal-side-panel/gux-modal-side-panel.js +1 -1
  188. package/dist/collection/components/beta/gux-side-panel/components/gux-side-panel-heading/gux-side-panel-heading.js +2 -2
  189. package/dist/collection/components/beta/gux-side-panel/gux-side-panel.js +2 -2
  190. package/dist/collection/components/beta/gux-time/gux-time.js +1 -1
  191. package/dist/collection/components/beta/gux-time-zone/gux-time-zone.js +1 -1
  192. package/dist/collection/components/beta/gux-time-zone-picker/gux-time-zone-picker.js +2 -2
  193. package/dist/collection/components/beta/gux-tooltip-base/gux-tooltip-base.js +2 -2
  194. package/dist/collection/components/beta/gux-tooltip-beta/gux-tooltip.js +1 -1
  195. package/dist/collection/components/legacy/gux-action-toast-legacy/gux-action-toast.js +1 -1
  196. package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/dropdown-option/gux-dropdown-option.js +1 -1
  197. package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/gux-advanced-dropdown.js +2 -2
  198. package/dist/collection/components/legacy/gux-disclosure-button-legacy/gux-disclosure-button.js +2 -2
  199. package/dist/collection/components/legacy/gux-modal-legacy/gux-modal-legacy.js +2 -2
  200. package/dist/collection/components/legacy/gux-notification-toast-legacy/gux-notification-toast.js +1 -1
  201. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/gux-pagination-buttons.js +1 -1
  202. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-item-counts-legacy/gux-pagination-item-counts.js +2 -2
  203. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-items-per-page-legacy/gux-pagination-items-per-page.js +1 -1
  204. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination.js +1 -1
  205. package/dist/collection/components/legacy/gux-simple-toast-legacy/gux-simple-toast.js +1 -1
  206. package/dist/collection/components/legacy/gux-switch-legacy/gux-switch-item/gux-switch-item.js +1 -1
  207. package/dist/collection/components/legacy/gux-switch-legacy/gux-switch.js +1 -1
  208. package/dist/collection/components/stable/gux-accordion/gux-accordion-section/gux-accordion-section.js +5 -5
  209. package/dist/collection/components/stable/gux-accordion/gux-accordion.js +1 -1
  210. package/dist/collection/components/stable/gux-action-button/gux-action-button.js +1 -1
  211. package/dist/collection/components/stable/gux-badge/gux-badge.js +1 -1
  212. package/dist/collection/components/stable/gux-blank-state/gux-blank-state.js +1 -1
  213. package/dist/collection/components/stable/gux-breadcrumbs/breadcrumb-item/gux-breadcrumb-item.js +1 -1
  214. package/dist/collection/components/stable/gux-breadcrumbs/gux-breadcrumbs.js +1 -1
  215. package/dist/collection/components/stable/gux-button/gux-button.js +2 -2
  216. package/dist/collection/components/stable/gux-button-multi/gux-button-multi.js +1 -1
  217. package/dist/collection/components/stable/gux-button-slot/gux-button-slot.js +1 -1
  218. package/dist/collection/components/stable/gux-calendar/gux-calendar.js +1 -1
  219. package/dist/collection/components/stable/gux-card/gux-card.js +2 -2
  220. package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/gux-column-manager-item.js +3 -3
  221. package/dist/collection/components/stable/gux-column-manager/gux-column-manager.js +1 -1
  222. package/dist/collection/components/stable/gux-content-search/gux-content-search.js +2 -2
  223. package/dist/collection/components/stable/gux-context-menu/gux-context-menu.js +2 -2
  224. package/dist/collection/components/stable/gux-copy-to-clipboard/gux-copy-to-clipboard.js +1 -1
  225. package/dist/collection/components/stable/gux-datepicker/gux-datepicker.js +1 -1
  226. package/dist/collection/components/stable/gux-dismiss-button/gux-dismiss-button.js +2 -2
  227. package/dist/collection/components/stable/gux-dropdown/gux-dropdown.js +1 -1
  228. package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.js +1 -1
  229. package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi.js +1 -1
  230. package/dist/collection/components/stable/gux-flyout-menu/gux-flyout-menu.js +2 -2
  231. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu-option/gux-menu-option.js +1 -1
  232. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu.js +1 -1
  233. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.js +3 -3
  234. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.js +2 -2
  235. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox-group/gux-form-field-checkbox-group.js +2 -2
  236. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.js +3 -3
  237. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.js +3 -3
  238. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-file/gux-form-field-file.js +1 -1
  239. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-file-beta/components/gux-file-list-item/gux-file-list-item.js +2 -2
  240. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-file-beta/gux-form-field-file.js +1 -1
  241. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.js +3 -3
  242. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-phone/gux-form-field-phone.js +4 -4
  243. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.js +2 -2
  244. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio-group/gux-form-field-radio-group.js +2 -2
  245. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.js +2 -2
  246. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.js +3 -3
  247. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.js +3 -3
  248. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.js +3 -3
  249. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.js +2 -2
  250. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.js +4 -4
  251. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-zone-picker/gux-form-field-time-zone-picker.js +3 -3
  252. 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
  253. package/dist/collection/components/stable/gux-icon/gux-icon.js +2 -2
  254. package/dist/collection/components/stable/gux-icon/icons/custom/amb.svg +1 -0
  255. package/dist/collection/components/stable/gux-icon/icons/custom/sun-bright-slash.svg +1 -0
  256. package/dist/collection/components/stable/gux-icon/icons/fa/message-plus-regular.svg +1 -0
  257. package/dist/collection/components/stable/gux-icon/icons/fa/wrench-regular.svg +1 -0
  258. package/dist/collection/components/stable/gux-inline-alert/gux-inline-alert.js +2 -2
  259. package/dist/collection/components/stable/gux-list/gux-list-divider/gux-list-divider.js +1 -1
  260. package/dist/collection/components/stable/gux-list/gux-list-item/gux-list-item.js +1 -1
  261. package/dist/collection/components/stable/gux-list/gux-list.js +1 -1
  262. package/dist/collection/components/stable/gux-listbox/option-group/gux-option-group.js +1 -1
  263. package/dist/collection/components/stable/gux-listbox/options/gux-option/gux-option.js +2 -2
  264. package/dist/collection/components/stable/gux-listbox/options/gux-option-icon/gux-option-icon.js +2 -2
  265. package/dist/collection/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.js +2 -2
  266. package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.js +2 -2
  267. package/dist/collection/components/stable/gux-loading-message/gux-loading-message.js +1 -1
  268. package/dist/collection/components/stable/gux-modal/gux-modal.js +1 -1
  269. package/dist/collection/components/stable/gux-page-loading-spinner/gux-page-loading-spinner.js +1 -1
  270. package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.js +1 -1
  271. package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.js +4 -4
  272. package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.js +2 -2
  273. package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.js +1 -1
  274. package/dist/collection/components/stable/gux-pagination/gux-pagination.js +1 -1
  275. package/dist/collection/components/stable/gux-popover/gux-popover.js +2 -2
  276. package/dist/collection/components/stable/gux-popover-list/gux-popover-list.js +2 -2
  277. package/dist/collection/components/stable/gux-popup/gux-popup.js +3 -3
  278. package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.js +1 -1
  279. package/dist/collection/components/stable/gux-rating/gux-rating.js +1 -1
  280. package/dist/collection/components/stable/gux-skip-navigation-list/gux-skip-navigation-item/gux-skip-navigation-item.js +1 -1
  281. package/dist/collection/components/stable/gux-skip-navigation-list/gux-skip-navigation-list.js +1 -1
  282. package/dist/collection/components/stable/gux-table/gux-all-row-select/gux-all-row-select.js +1 -1
  283. package/dist/collection/components/stable/gux-table/gux-row-select/gux-row-select.js +2 -2
  284. package/dist/collection/components/stable/gux-table/gux-sort-control/gux-sort-control.js +3 -3
  285. package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-menu.js +1 -1
  286. package/dist/collection/components/stable/gux-table/gux-table.js +1 -1
  287. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-action/gux-table-toolbar-action.js +1 -1
  288. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-custom-action/gux-table-toolbar-custom-action.js +1 -1
  289. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-menu-button/gux-table-toolbar-menu-button.js +1 -1
  290. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar.js +2 -2
  291. package/dist/collection/components/stable/gux-tabs/gux-tab/gux-tab.js +2 -2
  292. package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.js +2 -2
  293. package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.js +1 -1
  294. package/dist/collection/components/stable/gux-tabs/gux-tabs.js +1 -1
  295. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced/gux-tab-advanced.js +2 -2
  296. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.js +1 -1
  297. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-panel/gux-tab-advanced-panel.js +1 -1
  298. package/dist/collection/components/stable/gux-tabs-advanced/gux-tabs-advanced.js +1 -1
  299. package/dist/collection/components/stable/gux-tag/gux-tag.js +1 -1
  300. package/dist/collection/components/stable/gux-time-picker/gux-time-picker.js +1 -1
  301. package/dist/collection/components/stable/gux-toast/gux-toast.js +2 -2
  302. package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.js +2 -2
  303. package/dist/collection/components/stable/gux-toggle/gux-toggle.js +2 -2
  304. package/dist/collection/components/stable/gux-tooltip/gux-tooltip.js +2 -2
  305. package/dist/collection/components/stable/gux-tooltip-title/gux-tooltip-title.js +2 -2
  306. package/dist/collection/components/stable/gux-truncate/gux-truncate.js +3 -3
  307. package/dist/collection/utils/decorator/on-resize.js +4 -1
  308. package/dist/esm/{en-d5a4e07d.js → en-abdadc27.js} +3 -1
  309. package/dist/esm/genesys-webcomponents.js +3 -3
  310. package/dist/esm/{get-valid-timezone-8f24f07d.js → get-valid-timezone-cecad33f.js} +1 -1
  311. package/dist/esm/gux-accordion-section.entry.js +6 -6
  312. package/dist/esm/gux-accordion.entry.js +3 -3
  313. package/dist/esm/gux-action-button.entry.js +5 -5
  314. package/dist/esm/gux-action-toast-legacy.entry.js +3 -3
  315. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +6 -6
  316. package/dist/esm/gux-all-row-select.entry.js +3 -3
  317. package/dist/esm/gux-announce-beta.entry.js +2 -2
  318. package/dist/esm/gux-avatar-beta.entry.js +3 -3
  319. package/dist/esm/gux-avatar-change-photo-beta.entry.js +3 -3
  320. package/dist/esm/gux-avatar-focusable-beta.entry.js +1 -1
  321. package/dist/esm/gux-avatar-group-add-item-beta_3.entry.js +4 -4
  322. package/dist/esm/gux-avatar-group-beta.entry.js +2 -2
  323. package/dist/esm/gux-avatar-group-item-beta.entry.js +2 -2
  324. package/dist/esm/gux-badge.entry.js +4 -4
  325. package/dist/esm/gux-blank-state.entry.js +4 -4
  326. package/dist/esm/gux-breadcrumb-item.entry.js +2 -2
  327. package/dist/esm/gux-breadcrumbs.entry.js +4 -4
  328. package/dist/esm/gux-button-multi.entry.js +4 -4
  329. package/dist/esm/gux-button-slot.entry.js +3 -3
  330. package/dist/esm/gux-button_2.entry.js +7 -7
  331. package/dist/esm/gux-calendar-beta.entry.js +2 -2
  332. package/dist/esm/gux-calendar.entry.js +4 -4
  333. package/dist/esm/gux-card.entry.js +4 -4
  334. package/dist/esm/gux-column-manager-item.entry.js +5 -5
  335. package/dist/esm/gux-column-manager.entry.js +4 -4
  336. package/dist/esm/gux-content-search.entry.js +5 -5
  337. package/dist/esm/gux-context-menu.entry.js +6 -6
  338. package/dist/esm/gux-copy-to-clipboard.entry.js +4 -4
  339. package/dist/esm/gux-create-option.entry.js +4 -4
  340. package/dist/esm/gux-cta-group.entry.js +1 -1
  341. package/dist/esm/gux-date-beta.entry.js +4 -4
  342. package/dist/esm/gux-date-time-beta.entry.js +4 -4
  343. package/dist/esm/gux-datepicker.entry.js +5 -5
  344. package/dist/esm/gux-disclosure-button-legacy.entry.js +5 -5
  345. package/dist/esm/gux-dismiss-button.entry.js +5 -5
  346. package/dist/esm/gux-dropdown-multi-tag.entry.js +3 -3
  347. package/dist/esm/gux-dropdown-multi.entry.js +6 -6
  348. package/dist/esm/gux-dropdown-option.entry.js +2 -2
  349. package/dist/esm/gux-dropdown_3.entry.js +8 -8
  350. package/dist/esm/gux-file-list-item.entry.js +5 -5
  351. package/dist/esm/gux-flag-icon-beta.entry.js +2 -2
  352. package/dist/esm/gux-flyout-menu.entry.js +4 -4
  353. package/dist/esm/gux-form-beta.entry.js +1 -1
  354. package/dist/esm/gux-form-description.entry.js +1 -1
  355. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +8 -8
  356. package/dist/esm/gux-form-field-checkbox.entry.js +6 -6
  357. package/dist/esm/gux-form-field-color.entry.js +8 -8
  358. package/dist/esm/{gux-form-field-container-8ca069d2.js → gux-form-field-container-ddad54b9.js} +1 -1
  359. package/dist/esm/gux-form-field-dropdown.entry.js +9 -9
  360. package/dist/esm/{gux-form-field-error-ffe2439b.js → gux-form-field-error-d4daeee8.js} +1 -1
  361. package/dist/esm/{gux-form-field-fieldset-container-afc88f04.js → gux-form-field-fieldset-container-c4354c28.js} +1 -1
  362. package/dist/esm/gux-form-field-file-beta.entry.js +7 -7
  363. package/dist/esm/gux-form-field-file.entry.js +6 -6
  364. package/dist/esm/gux-form-field-input-clear-button.entry.js +4 -4
  365. package/dist/esm/gux-form-field-label-indicator.entry.js +3 -3
  366. package/dist/esm/gux-form-field-number_2.entry.js +14 -14
  367. package/dist/esm/gux-form-field-phone.entry.js +10 -10
  368. package/dist/esm/gux-form-field-radio-group-beta.entry.js +8 -8
  369. package/dist/esm/gux-form-field-radio.entry.js +6 -6
  370. package/dist/esm/gux-form-field-range.entry.js +8 -8
  371. package/dist/esm/gux-form-field-search.entry.js +8 -8
  372. package/dist/esm/gux-form-field-select.entry.js +8 -8
  373. package/dist/esm/gux-form-field-text-like.entry.js +8 -8
  374. package/dist/esm/gux-form-field-textarea.entry.js +7 -7
  375. package/dist/esm/gux-form-field-time-picker.entry.js +10 -10
  376. package/dist/esm/gux-form-field-time-zone-picker.entry.js +9 -9
  377. package/dist/esm/gux-form-fieldset-heading.entry.js +1 -1
  378. package/dist/esm/gux-form-footer.entry.js +2 -2
  379. package/dist/esm/gux-form-heading.entry.js +1 -1
  380. package/dist/esm/gux-icon-tooltip-beta.entry.js +2 -2
  381. package/dist/esm/gux-icon.entry.js +3 -3
  382. package/dist/esm/gux-inline-alert.entry.js +5 -5
  383. package/dist/esm/gux-label-info-beta.entry.js +2 -2
  384. package/dist/esm/gux-link-beta.entry.js +2 -2
  385. package/dist/esm/gux-list-divider.entry.js +2 -2
  386. package/dist/esm/gux-list-item.entry.js +2 -2
  387. package/dist/esm/gux-list.entry.js +3 -3
  388. package/dist/esm/gux-listbox-multi.entry.js +3 -3
  389. package/dist/esm/gux-loading-message.entry.js +3 -3
  390. package/dist/esm/gux-menu-option.entry.js +2 -2
  391. package/dist/esm/gux-menu.entry.js +2 -2
  392. package/dist/esm/gux-modal-legacy.entry.js +4 -4
  393. package/dist/esm/gux-modal-side-panel-beta.entry.js +3 -3
  394. package/dist/esm/gux-modal.entry.js +3 -3
  395. package/dist/esm/gux-month-calendar.entry.js +2 -2
  396. package/dist/esm/gux-month-list_2.entry.js +1 -1
  397. package/dist/esm/gux-month-picker-beta.entry.js +4 -4
  398. package/dist/esm/gux-notification-toast-legacy.entry.js +3 -3
  399. package/dist/esm/gux-option-group-beta.entry.js +2 -2
  400. package/dist/esm/gux-option-icon.entry.js +3 -3
  401. package/dist/esm/gux-option-multi.entry.js +4 -4
  402. package/dist/esm/gux-page-loading-spinner.entry.js +3 -3
  403. package/dist/esm/gux-pagination-buttons-legacy_3.entry.js +6 -6
  404. package/dist/esm/gux-pagination-buttons_2.entry.js +5 -5
  405. package/dist/esm/gux-pagination-cursor.entry.js +3 -3
  406. package/dist/esm/gux-pagination-items-per-page.entry.js +3 -3
  407. package/dist/esm/gux-pagination-legacy.entry.js +3 -3
  408. package/dist/esm/gux-pagination.entry.js +3 -3
  409. package/dist/esm/gux-phone-input-beta.entry.js +4 -4
  410. package/dist/esm/gux-popover-beta.entry.js +3 -3
  411. package/dist/esm/gux-popover-list-beta.entry.js +3 -3
  412. package/dist/esm/gux-popover-list.entry.js +5 -5
  413. package/dist/esm/gux-popup.entry.js +4 -4
  414. package/dist/esm/gux-radial-loading.entry.js +4 -4
  415. package/dist/esm/gux-radial-progress.entry.js +2 -2
  416. package/dist/esm/gux-rating.entry.js +3 -3
  417. package/dist/esm/gux-rich-highlight-list-item.entry.js +4 -4
  418. package/dist/esm/gux-rich-style-list-item_3.entry.js +293 -0
  419. package/dist/esm/gux-rich-text-editor-action-group.entry.js +2 -2
  420. package/dist/esm/gux-rich-text-editor-action-link.entry.js +8 -6
  421. package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +14 -11
  422. package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +6 -6
  423. package/dist/esm/gux-rich-text-editor-action.entry.js +5 -5
  424. package/dist/esm/gux-rich-text-editor-beta.entry.js +140 -3
  425. package/dist/esm/gux-rich-text-editor-list.entry.js +6 -5
  426. package/dist/esm/gux-rich-text-editor.service-dcce5e51.js +80 -0
  427. package/dist/esm/gux-row-select.entry.js +4 -4
  428. package/dist/esm/gux-screen-reader-beta.entry.js +3 -3
  429. package/dist/esm/gux-segmented-control-beta.entry.js +3 -3
  430. package/dist/esm/gux-segmented-control-item.entry.js +5 -5
  431. package/dist/esm/gux-selector-card-beta.entry.js +4 -4
  432. package/dist/esm/gux-selector-cards-beta.entry.js +3 -3
  433. package/dist/esm/gux-side-panel-beta.entry.js +4 -4
  434. package/dist/esm/gux-side-panel-heading.entry.js +3 -3
  435. package/dist/esm/gux-simple-toast-legacy.entry.js +3 -3
  436. package/dist/esm/gux-skip-navigation-item.entry.js +2 -2
  437. package/dist/esm/gux-skip-navigation-list.entry.js +4 -4
  438. package/dist/esm/gux-sort-control.entry.js +6 -6
  439. package/dist/esm/gux-submenu.entry.js +4 -4
  440. package/dist/esm/gux-switch-item.entry.js +2 -2
  441. package/dist/esm/gux-switch-legacy.entry.js +3 -3
  442. package/dist/esm/gux-tab-advanced-list.entry.js +4 -4
  443. package/dist/esm/gux-tab-advanced-panel.entry.js +2 -2
  444. package/dist/esm/gux-tab-advanced.entry.js +4 -4
  445. package/dist/esm/gux-tab-list.entry.js +5 -5
  446. package/dist/esm/gux-tab-panel.entry.js +2 -2
  447. package/dist/esm/gux-tab.entry.js +3 -3
  448. package/dist/esm/gux-table-select-menu.entry.js +3 -3
  449. package/dist/esm/gux-table-toolbar-action.entry.js +4 -4
  450. package/dist/esm/gux-table-toolbar-custom-action.entry.js +3 -3
  451. package/dist/esm/gux-table-toolbar-menu-button.entry.js +5 -5
  452. package/dist/esm/gux-table-toolbar.entry.js +6 -6
  453. package/dist/esm/gux-table.entry.js +4 -4
  454. package/dist/esm/gux-tabs-advanced.entry.js +3 -3
  455. package/dist/esm/gux-tabs.entry.js +3 -3
  456. package/dist/esm/gux-tag.entry.js +4 -4
  457. package/dist/esm/gux-text-highlight.entry.js +2 -2
  458. package/dist/esm/gux-time-beta.entry.js +5 -5
  459. package/dist/esm/gux-time-picker.entry.js +5 -5
  460. package/dist/esm/gux-time-zone-beta.entry.js +4 -4
  461. package/dist/esm/gux-time-zone-picker-beta.entry.js +5 -5
  462. package/dist/esm/gux-toast.entry.js +4 -4
  463. package/dist/esm/gux-toggle-slider.entry.js +3 -3
  464. package/dist/esm/gux-toggle.entry.js +5 -5
  465. package/dist/esm/gux-tooltip-base-beta_2.entry.js +5 -5
  466. package/dist/esm/gux-tooltip-title.entry.js +5 -5
  467. package/dist/esm/gux-tooltip_2.entry.js +9 -9
  468. package/dist/esm/{index-5a5cba3c.js → index-6de381c6.js} +1 -1
  469. package/dist/esm/{index-46ac98b8.js → index-91950719.js} +31 -19
  470. package/dist/esm/loader.js +3 -3
  471. package/dist/esm/{on-click-outside-fe48b6ef.js → on-click-outside-25728f99.js} +1 -1
  472. package/dist/esm/{on-mutation-c5880cd8.js → on-mutation-22820853.js} +1 -1
  473. package/dist/esm/{on-resize-6439d074.js → on-resize-61e616c2.js} +5 -2
  474. package/dist/esm/{usage-d372c506.js → usage-2c9a4d54.js} +1 -1
  475. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  476. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
  477. package/dist/genesys-webcomponents/icons/custom/amb.svg +1 -0
  478. package/dist/genesys-webcomponents/icons/custom/sun-bright-slash.svg +1 -0
  479. package/dist/genesys-webcomponents/icons/fa/message-plus-regular.svg +1 -0
  480. package/dist/genesys-webcomponents/icons/fa/wrench-regular.svg +1 -0
  481. package/dist/genesys-webcomponents/{p-bfa03c2c.entry.js → p-0095b1a9.entry.js} +1 -1
  482. package/dist/genesys-webcomponents/{p-03f266ff.entry.js → p-01780e86.entry.js} +1 -1
  483. package/dist/genesys-webcomponents/{p-156a6e4f.entry.js → p-01fd383c.entry.js} +2 -2
  484. package/dist/genesys-webcomponents/{p-708df7d5.entry.js → p-063dc5ad.entry.js} +1 -1
  485. package/dist/genesys-webcomponents/p-06dd3571.entry.js +1 -0
  486. package/dist/genesys-webcomponents/{p-70889d47.entry.js → p-08066a45.entry.js} +1 -1
  487. package/dist/genesys-webcomponents/{p-950fe7d0.entry.js → p-0a72a5b4.entry.js} +1 -1
  488. package/dist/genesys-webcomponents/{p-2bb7fe1e.entry.js → p-0bfed962.entry.js} +1 -1
  489. package/dist/genesys-webcomponents/{p-ffe75834.entry.js → p-0d5de42d.entry.js} +1 -1
  490. package/dist/genesys-webcomponents/{p-a6018a4e.entry.js → p-0d6a8191.entry.js} +1 -1
  491. package/dist/genesys-webcomponents/{p-5839f7c7.entry.js → p-0e0ef4a2.entry.js} +1 -1
  492. package/dist/genesys-webcomponents/{p-3858d3fa.entry.js → p-0e900117.entry.js} +1 -1
  493. package/dist/genesys-webcomponents/p-0eeb6746.entry.js +1 -0
  494. package/dist/genesys-webcomponents/{p-74728e83.entry.js → p-105a1ebe.entry.js} +1 -1
  495. package/dist/genesys-webcomponents/{p-02a96aaf.entry.js → p-12dd689a.entry.js} +1 -1
  496. package/dist/genesys-webcomponents/p-15e2e14d.entry.js +1 -0
  497. package/dist/genesys-webcomponents/{p-e07238b5.js → p-166634e1.js} +1 -1
  498. package/dist/genesys-webcomponents/{p-af7417cb.entry.js → p-1bb32259.entry.js} +1 -1
  499. package/dist/genesys-webcomponents/p-1d9ed425.js +1 -0
  500. package/dist/genesys-webcomponents/{p-2f3649fb.entry.js → p-1dc5e034.entry.js} +1 -1
  501. package/dist/genesys-webcomponents/{p-af51c01b.entry.js → p-1e5144ca.entry.js} +1 -1
  502. package/dist/genesys-webcomponents/p-21e2f0cc.entry.js +1 -0
  503. package/dist/genesys-webcomponents/{p-23c1644e.entry.js → p-22614ed6.entry.js} +1 -1
  504. package/dist/genesys-webcomponents/{p-3e82ba34.entry.js → p-22c19dc2.entry.js} +1 -1
  505. package/dist/genesys-webcomponents/{p-8a771398.entry.js → p-24ad939b.entry.js} +1 -1
  506. package/dist/genesys-webcomponents/{p-9049f423.entry.js → p-24ee5102.entry.js} +1 -1
  507. package/dist/genesys-webcomponents/{p-9fd58cdf.entry.js → p-2513fba1.entry.js} +1 -1
  508. package/dist/genesys-webcomponents/{p-b26f188d.entry.js → p-262a22b6.entry.js} +1 -1
  509. package/dist/genesys-webcomponents/p-279ade3b.entry.js +1 -0
  510. package/dist/genesys-webcomponents/{p-16ccc26e.entry.js → p-27e99f5c.entry.js} +1 -1
  511. package/dist/genesys-webcomponents/p-29a591e0.entry.js +1 -0
  512. package/dist/genesys-webcomponents/{p-d6f546c2.entry.js → p-2e39b980.entry.js} +1 -1
  513. package/dist/genesys-webcomponents/p-2ec5ea1e.entry.js +1 -0
  514. package/dist/genesys-webcomponents/p-33f3269e.entry.js +1 -0
  515. package/dist/genesys-webcomponents/{p-e7563f9c.entry.js → p-366caebe.entry.js} +1 -1
  516. package/dist/genesys-webcomponents/p-37ab2172.entry.js +1 -0
  517. package/dist/genesys-webcomponents/{p-f153bd1b.entry.js → p-3a05bb21.entry.js} +1 -1
  518. package/dist/genesys-webcomponents/{p-959b68b0.entry.js → p-3b4943fb.entry.js} +1 -1
  519. package/dist/genesys-webcomponents/{p-efa0ee25.entry.js → p-3cbef447.entry.js} +1 -1
  520. package/dist/genesys-webcomponents/{p-684ca644.entry.js → p-400ba313.entry.js} +1 -1
  521. package/dist/genesys-webcomponents/{p-7478a2e2.entry.js → p-45c16b00.entry.js} +1 -1
  522. package/dist/genesys-webcomponents/{p-b22d4324.entry.js → p-4a113db7.entry.js} +1 -1
  523. package/dist/genesys-webcomponents/{p-81bc147c.entry.js → p-50310211.entry.js} +1 -1
  524. package/dist/genesys-webcomponents/{p-23ecd747.entry.js → p-51a3d71f.entry.js} +1 -1
  525. package/dist/genesys-webcomponents/p-52d73ad3.entry.js +1 -0
  526. package/dist/genesys-webcomponents/p-539eba16.entry.js +1 -0
  527. package/dist/genesys-webcomponents/{p-5ad436b9.entry.js → p-5639a5e2.entry.js} +1 -1
  528. package/dist/genesys-webcomponents/{p-0c59b369.entry.js → p-5d04c86c.entry.js} +1 -1
  529. package/dist/genesys-webcomponents/{p-9a720e22.entry.js → p-5faaeb1b.entry.js} +1 -1
  530. package/dist/genesys-webcomponents/{p-5e83d256.entry.js → p-62026921.entry.js} +1 -1
  531. package/dist/genesys-webcomponents/{p-ab664ee0.entry.js → p-67440c93.entry.js} +1 -1
  532. package/dist/genesys-webcomponents/{p-715a2bf5.entry.js → p-6798eb63.entry.js} +1 -1
  533. package/dist/genesys-webcomponents/{p-9a9f68a3.entry.js → p-6903b856.entry.js} +1 -1
  534. package/dist/genesys-webcomponents/p-6d772a2f.entry.js +1 -0
  535. package/dist/genesys-webcomponents/{p-f6303698.entry.js → p-70955497.entry.js} +1 -1
  536. package/dist/genesys-webcomponents/{p-d6f38841.entry.js → p-725055fe.entry.js} +1 -1
  537. package/dist/genesys-webcomponents/{p-1f6c052d.js → p-727bfafa.js} +1 -1
  538. package/dist/genesys-webcomponents/p-72b10e95.entry.js +1 -0
  539. package/dist/genesys-webcomponents/{p-a4f54a2b.entry.js → p-74a1d9ba.entry.js} +1 -1
  540. package/dist/genesys-webcomponents/{p-b6ae205e.entry.js → p-76362633.entry.js} +1 -1
  541. package/dist/genesys-webcomponents/{p-edc7ae8c.entry.js → p-76b32737.entry.js} +1 -1
  542. package/dist/genesys-webcomponents/{p-9734718d.entry.js → p-7834e8b9.entry.js} +1 -1
  543. package/dist/genesys-webcomponents/{p-f96c5d72.entry.js → p-7977d063.entry.js} +1 -1
  544. package/dist/genesys-webcomponents/{p-02c19f87.entry.js → p-7ada77c2.entry.js} +1 -1
  545. package/dist/genesys-webcomponents/{p-19cccd9f.entry.js → p-7b5cfddb.entry.js} +1 -1
  546. package/dist/genesys-webcomponents/{p-87b364b8.entry.js → p-7e7d9b61.entry.js} +1 -1
  547. package/dist/genesys-webcomponents/{p-f75fe956.js → p-8437bb5a.js} +1 -1
  548. package/dist/genesys-webcomponents/{p-03ec1443.entry.js → p-848bdebb.entry.js} +1 -1
  549. package/dist/genesys-webcomponents/{p-72f1b4f0.entry.js → p-84a31c7a.entry.js} +1 -1
  550. package/dist/genesys-webcomponents/{p-3f7710bd.entry.js → p-85f3a0fb.entry.js} +1 -1
  551. package/dist/genesys-webcomponents/{p-788ff701.entry.js → p-877930b3.entry.js} +1 -1
  552. package/dist/genesys-webcomponents/{p-c227247d.entry.js → p-8902a036.entry.js} +1 -1
  553. package/dist/genesys-webcomponents/{p-53b378de.entry.js → p-8a727cfc.entry.js} +1 -1
  554. package/dist/genesys-webcomponents/p-8d41c7cc.entry.js +1 -0
  555. package/dist/genesys-webcomponents/{p-bad8b63e.entry.js → p-8d90c6fa.entry.js} +1 -1
  556. package/dist/genesys-webcomponents/p-8df778a2.entry.js +1 -0
  557. package/dist/genesys-webcomponents/{p-a896f5f8.entry.js → p-8e8c67db.entry.js} +1 -1
  558. package/dist/genesys-webcomponents/{p-c618ea3d.entry.js → p-90873e49.entry.js} +1 -1
  559. package/dist/genesys-webcomponents/{p-94335d0e.entry.js → p-946fb7d7.entry.js} +1 -1
  560. package/dist/genesys-webcomponents/p-94c2e132.entry.js +1 -0
  561. package/dist/genesys-webcomponents/p-94d4a224.entry.js +1 -0
  562. package/dist/genesys-webcomponents/{p-aa28f49d.entry.js → p-95ec698f.entry.js} +1 -1
  563. package/dist/genesys-webcomponents/{p-f153a23b.entry.js → p-9626cf96.entry.js} +1 -1
  564. package/dist/genesys-webcomponents/{p-b620cf75.entry.js → p-972d1404.entry.js} +1 -1
  565. package/dist/genesys-webcomponents/p-979756fc.entry.js +1 -0
  566. package/dist/genesys-webcomponents/{p-493e725b.entry.js → p-97bc37b8.entry.js} +1 -1
  567. package/dist/genesys-webcomponents/{p-5c75223b.entry.js → p-98fa2f26.entry.js} +1 -1
  568. package/dist/genesys-webcomponents/{p-8210954a.entry.js → p-99e97692.entry.js} +1 -1
  569. package/dist/genesys-webcomponents/{p-d5c90cea.entry.js → p-9b2b7dca.entry.js} +1 -1
  570. package/dist/genesys-webcomponents/p-9db8610f.entry.js +1 -0
  571. package/dist/genesys-webcomponents/p-9ffd8ad9.entry.js +1 -0
  572. package/dist/genesys-webcomponents/{p-525ba72c.entry.js → p-a3695df9.entry.js} +1 -1
  573. package/dist/genesys-webcomponents/{p-835c9a18.entry.js → p-a4b04afd.entry.js} +1 -1
  574. package/dist/genesys-webcomponents/{p-3fb29222.entry.js → p-a51d68dc.entry.js} +1 -1
  575. package/dist/genesys-webcomponents/{p-4044624d.entry.js → p-a573e43b.entry.js} +1 -1
  576. package/dist/genesys-webcomponents/{p-669dc8f1.entry.js → p-a6ca79ce.entry.js} +1 -1
  577. package/dist/genesys-webcomponents/{p-d1c0eba2.entry.js → p-a7512630.entry.js} +1 -1
  578. package/dist/genesys-webcomponents/p-a9852dbc.entry.js +1 -0
  579. package/dist/genesys-webcomponents/{p-f180ea4f.entry.js → p-a9b7eec3.entry.js} +1 -1
  580. package/dist/genesys-webcomponents/{p-73e1f574.js → p-ad9b3d73.js} +1 -1
  581. package/dist/genesys-webcomponents/p-b2e29026.js +1 -0
  582. package/dist/genesys-webcomponents/{p-b55922ab.entry.js → p-b3535a8a.entry.js} +1 -1
  583. package/dist/genesys-webcomponents/p-b61f80ae.entry.js +1 -0
  584. package/dist/genesys-webcomponents/{p-b0ceecdf.entry.js → p-b6770aac.entry.js} +1 -1
  585. package/dist/genesys-webcomponents/p-b6be214e.entry.js +1 -0
  586. package/dist/genesys-webcomponents/{p-f5a4cbb4.entry.js → p-b7347eb6.entry.js} +1 -1
  587. package/dist/genesys-webcomponents/p-b7b925ec.entry.js +1 -0
  588. package/dist/genesys-webcomponents/{p-f77cd9ec.entry.js → p-b89f270e.entry.js} +1 -1
  589. package/dist/genesys-webcomponents/{p-b4e8a137.entry.js → p-b8b1cdbf.entry.js} +1 -1
  590. package/dist/genesys-webcomponents/{p-6b664cea.entry.js → p-b99f3f9c.entry.js} +1 -1
  591. package/dist/genesys-webcomponents/{p-77c66cd7.entry.js → p-bbdb689e.entry.js} +1 -1
  592. package/dist/genesys-webcomponents/{p-cbf07c42.entry.js → p-bd202335.entry.js} +1 -1
  593. package/dist/genesys-webcomponents/{p-f88537e3.entry.js → p-bd544cf5.entry.js} +1 -1
  594. package/dist/genesys-webcomponents/{p-ceb6b5c5.entry.js → p-be33ce5f.entry.js} +1 -1
  595. package/dist/genesys-webcomponents/{p-1cf82469.entry.js → p-bf591743.entry.js} +1 -1
  596. package/dist/genesys-webcomponents/{p-f974f2b1.entry.js → p-c3c963a5.entry.js} +1 -1
  597. package/dist/genesys-webcomponents/{p-60b61478.entry.js → p-c4bb140c.entry.js} +1 -1
  598. package/dist/genesys-webcomponents/{p-3dca373a.entry.js → p-c7f1ff13.entry.js} +1 -1
  599. package/dist/genesys-webcomponents/{p-3229e45d.entry.js → p-ca0945a4.entry.js} +1 -1
  600. package/dist/genesys-webcomponents/p-ca64e9fd.entry.js +1 -0
  601. package/dist/genesys-webcomponents/{p-15d211bb.entry.js → p-cb05620c.entry.js} +1 -1
  602. package/dist/genesys-webcomponents/{p-05a13181.entry.js → p-cb4a5155.entry.js} +1 -1
  603. package/dist/genesys-webcomponents/{p-49d373a2.entry.js → p-cb7cfce2.entry.js} +1 -1
  604. package/dist/genesys-webcomponents/{p-6a9e378e.entry.js → p-cbb98fa5.entry.js} +1 -1
  605. package/dist/genesys-webcomponents/{p-052d33b8.entry.js → p-cc6dfea9.entry.js} +1 -1
  606. package/dist/genesys-webcomponents/{p-4a0524d1.entry.js → p-cfb7293c.entry.js} +1 -1
  607. package/dist/genesys-webcomponents/{p-d15985f1.js → p-cfeaf436.js} +1 -1
  608. package/dist/genesys-webcomponents/{p-c2ca148a.entry.js → p-d0de678b.entry.js} +1 -1
  609. package/dist/genesys-webcomponents/{p-c9578616.entry.js → p-d0f4d1eb.entry.js} +1 -1
  610. package/dist/genesys-webcomponents/{p-c44ef054.entry.js → p-d31fb265.entry.js} +1 -1
  611. package/dist/genesys-webcomponents/{p-e337e4f3.entry.js → p-d5d582f1.entry.js} +1 -1
  612. package/dist/genesys-webcomponents/{p-031e43e4.entry.js → p-d62c6a71.entry.js} +1 -1
  613. package/dist/genesys-webcomponents/{p-1b49d50e.entry.js → p-d6e5175b.entry.js} +1 -1
  614. package/dist/genesys-webcomponents/{p-9e1bda51.js → p-da087c59.js} +1 -1
  615. package/dist/genesys-webcomponents/{p-6d6befbf.entry.js → p-da2a54aa.entry.js} +1 -1
  616. package/dist/genesys-webcomponents/{p-3b0c65e9.entry.js → p-da750227.entry.js} +1 -1
  617. package/dist/genesys-webcomponents/{p-00d0e30c.entry.js → p-db241209.entry.js} +1 -1
  618. package/dist/genesys-webcomponents/{p-f7322e3f.entry.js → p-db2f7dc7.entry.js} +1 -1
  619. package/dist/genesys-webcomponents/{p-e0de3453.js → p-db306845.js} +1 -1
  620. package/dist/genesys-webcomponents/{p-3a253565.entry.js → p-dc9713fc.entry.js} +1 -1
  621. package/dist/genesys-webcomponents/{p-7bbf9306.entry.js → p-dd539618.entry.js} +1 -1
  622. package/dist/genesys-webcomponents/p-ddd20c69.entry.js +1 -0
  623. package/dist/genesys-webcomponents/{p-817d0096.entry.js → p-e03a69b0.entry.js} +1 -1
  624. package/dist/genesys-webcomponents/{p-661feac4.entry.js → p-e414408c.entry.js} +1 -1
  625. package/dist/genesys-webcomponents/{p-2cf243a7.entry.js → p-ec7fb58f.entry.js} +1 -1
  626. package/dist/genesys-webcomponents/{p-864d63fe.js → p-f01d2320.js} +1 -1
  627. package/dist/genesys-webcomponents/{p-35aac0eb.entry.js → p-f060d70b.entry.js} +1 -1
  628. package/dist/genesys-webcomponents/p-f0e2ae89.entry.js +1 -0
  629. package/dist/genesys-webcomponents/{p-1a98d8f7.entry.js → p-f0f830ec.entry.js} +1 -1
  630. package/dist/genesys-webcomponents/{p-26c67c23.entry.js → p-f18089ca.entry.js} +1 -1
  631. package/dist/genesys-webcomponents/{p-4005a230.entry.js → p-f27f9eed.entry.js} +1 -1
  632. package/dist/genesys-webcomponents/{p-c1b4631f.entry.js → p-f4f55946.entry.js} +1 -1
  633. package/dist/genesys-webcomponents/{p-41f5525e.entry.js → p-f71f3692.entry.js} +1 -1
  634. package/dist/genesys-webcomponents/{p-8c60e5e0.entry.js → p-f8820aff.entry.js} +1 -1
  635. package/dist/genesys-webcomponents/{p-5deeb893.entry.js → p-f8dce124.entry.js} +1 -1
  636. package/dist/genesys-webcomponents/{p-6c6e5e86.entry.js → p-f9d9be12.entry.js} +1 -1
  637. package/dist/genesys-webcomponents/{p-f0437bd4.entry.js → p-fc85e603.entry.js} +1 -1
  638. package/dist/genesys-webcomponents/{p-fbf14218.js → p-fcca9736.js} +1 -1
  639. package/dist/genesys-webcomponents/p-fe23764b.entry.js +1 -0
  640. package/dist/genesys-webcomponents/p-fe71fb5e.entry.js +1 -0
  641. package/dist/genesys-webcomponents/{p-762b36ab.entry.js → p-fec416c1.entry.js} +1 -1
  642. package/dist/genesys-webcomponents/{p-f5162a61.entry.js → p-ff12eb63.entry.js} +1 -1
  643. package/dist/genesys-webcomponents/{p-8782623d.entry.js → p-ff402d97.entry.js} +1 -1
  644. package/dist/genesys-webcomponents/{p-43ceec2e.entry.js → p-ffae26f6.entry.js} +1 -1
  645. package/dist/genesys-webcomponents/p-ffb7c9dc.js +2 -0
  646. package/dist/stencil-wrapper.js +1 -1
  647. package/dist/types/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action-rich-style/gux-rich-text-editor-action-rich-style.d.ts +1 -0
  648. package/dist/types/components/beta/gux-rich-text-editor/gux-rich-text-editor-beta.d.ts +20 -1
  649. package/dist/types/components/beta/gux-rich-text-editor/gux-rich-text-editor-list/gux-rich-text-editor-sub-list/gux-rich-text-editor-sub-list.d.ts +24 -0
  650. package/dist/types/components/beta/gux-rich-text-editor/gux-rich-text-editor-menu/gux-rich-text-editor-menu.d.ts +18 -0
  651. package/dist/types/components/beta/gux-rich-text-editor/gux-rich-text-editor.service.d.ts +1 -0
  652. package/dist/types/components/stable/gux-icon/gux-icon.types.d.ts +1 -1
  653. package/dist/types/components.d.ts +44 -0
  654. package/dist/types/stencil-wrapper.d.ts +1 -1
  655. package/package.json +1 -1
  656. package/dist/cjs/gux-rich-style-list-item.cjs.entry.js +0 -44
  657. package/dist/cjs/gux-rich-text-editor.service-fd5edfcf.js +0 -41
  658. package/dist/esm/gux-rich-style-list-item.entry.js +0 -40
  659. package/dist/esm/gux-rich-text-editor.service-144f4651.js +0 -38
  660. package/dist/genesys-webcomponents/p-068ca6fe.entry.js +0 -1
  661. package/dist/genesys-webcomponents/p-086c5088.js +0 -2
  662. package/dist/genesys-webcomponents/p-1edb3199.entry.js +0 -1
  663. package/dist/genesys-webcomponents/p-274517cc.js +0 -1
  664. package/dist/genesys-webcomponents/p-2b0c8ff4.entry.js +0 -1
  665. package/dist/genesys-webcomponents/p-36136141.entry.js +0 -1
  666. package/dist/genesys-webcomponents/p-40103e74.entry.js +0 -1
  667. package/dist/genesys-webcomponents/p-402a7403.entry.js +0 -1
  668. package/dist/genesys-webcomponents/p-4ba0a9ab.entry.js +0 -1
  669. package/dist/genesys-webcomponents/p-52e46262.entry.js +0 -1
  670. package/dist/genesys-webcomponents/p-593829be.entry.js +0 -1
  671. package/dist/genesys-webcomponents/p-5b054a3b.entry.js +0 -1
  672. package/dist/genesys-webcomponents/p-6209de55.entry.js +0 -1
  673. package/dist/genesys-webcomponents/p-6c82f724.entry.js +0 -1
  674. package/dist/genesys-webcomponents/p-72a20918.entry.js +0 -1
  675. package/dist/genesys-webcomponents/p-884db9fa.entry.js +0 -1
  676. package/dist/genesys-webcomponents/p-947897ba.entry.js +0 -1
  677. package/dist/genesys-webcomponents/p-96e00955.entry.js +0 -1
  678. package/dist/genesys-webcomponents/p-99b0bec7.entry.js +0 -1
  679. package/dist/genesys-webcomponents/p-a19f8576.entry.js +0 -1
  680. package/dist/genesys-webcomponents/p-a2c71d6c.entry.js +0 -1
  681. package/dist/genesys-webcomponents/p-a6c36b2c.js +0 -1
  682. package/dist/genesys-webcomponents/p-acb6a6cc.entry.js +0 -1
  683. package/dist/genesys-webcomponents/p-b053d117.entry.js +0 -1
  684. package/dist/genesys-webcomponents/p-b292833d.entry.js +0 -1
  685. package/dist/genesys-webcomponents/p-bdd95974.entry.js +0 -1
  686. package/dist/genesys-webcomponents/p-c779ede7.entry.js +0 -1
  687. package/dist/genesys-webcomponents/p-cfb37a0d.entry.js +0 -1
  688. package/dist/genesys-webcomponents/p-dd16bde2.entry.js +0 -1
  689. package/dist/genesys-webcomponents/p-dd99330f.entry.js +0 -1
  690. package/dist/genesys-webcomponents/p-eeed1a2d.entry.js +0 -1
  691. package/dist/genesys-webcomponents/p-fd7d71a2.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,c as e,f as i,h as o,g as s,H as n}from"./p-086c5088.js";import{O as r}from"./p-9e1bda51.js";import{b as a}from"./p-d15985f1.js";import{s as u}from"./p-2c25e2f2.js";import{o as l,c as d}from"./p-f4751a15.js";import{b as c}from"./p-cf0e7d3b.js";import{t as h}from"./p-e0de3453.js";import{O as g}from"./p-e07238b5.js";import{s as f,m as p,g as x,a as v,c as b,h as m,b as w,d as C,e as y,f as k,i as z,j as F,k as O,l as T,n as j,o as S}from"./p-870844dc.js";import{h as E}from"./p-6d8b4027.js";import{w as L}from"./p-e97879b4.js";import{g as W}from"./p-4202e9f2.js";import{r as H}from"./p-0934300e.js";const R={filterResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown"};var I=function(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const D=class{constructor(i){t(this,i),this.guxexpanded=e(this,"guxexpanded",7),this.guxcollapsed=e(this,"guxcollapsed",7),this.guxfilter=e(this,"guxfilter",7),this.value=void 0,this.disabled=!1,this.required=!1,this.loading=!1,this.placeholder=void 0,this.filterType="none",this.hasError=!1,this.exceedTargetWidth=!1,this.expanded=!1,this.filter=""}watchExpanded(t){t||(this.filter="")}watchValue(t){this.validateValue(t,this.listboxElement)}handleFilter(t){this.guxfilter.emit(t)}watchDisabled(t){t&&(this.expanded=!1)}onKeydown(t){switch(t.key){case"Escape":return this.isFilterable()&&document.activeElement===this.listboxElement?this.filterElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.filterElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("focusFieldButton")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0,f(this.listboxElement)))}}onInternallistboxoptionsupdated(t){t.stopPropagation(),i(this.root)}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t)}onClickOutside(){this.collapseListbox("noFocusChange")}onMutation(){var t;this.listboxElement||(this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox"),this.applyListboxEventListeners())}onInternalExpanded(t){t.stopPropagation(),this.guxexpanded.emit(),this.listboxElement&&c((()=>{this.listboxElement.focus(),this.isFilterable()&&this.filterElement&&this.filterElement.focus()}))}onInternalCollapsed(t){t.stopPropagation(),this.guxcollapsed.emit()}connectedCallback(){var t;this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox"),this.listboxElement&&this.validateValue(this.value,this.listboxElement)}async componentWillLoad(){h(this.root),this.i18n=await a(this.root,R),l(this.root,(()=>{i(this.root)}))}componentDidLoad(){this.applyListboxEventListeners()}componentWillRender(){this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.listboxElement.loading=this.loading,this.listboxElement.filterType=this.filterType,this.listboxElement.filter=this.filter)}showTooltip(){var t;null===(t=this.truncateElement)||void 0===t||t.setShowTooltip()}hideTooltip(){var t;null===(t=this.truncateElement)||void 0===t||t.setHideTooltip()}validateValue(t,e){void 0!==t?this.getOptionElementByValue(t)&&(e.value=t):e&&(e.value=t)}applyListboxEventListeners(){var t,e;null===(t=this.listboxElement)||void 0===t||t.addEventListener("input",(t=>{t.stopPropagation(),this.updateValue(t.target.value)})),null===(e=this.listboxElement)||void 0===e||e.addEventListener("change",(t=>{t.stopPropagation()}))}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}isFilterable(){return"starts-with"===this.filterType||"custom"===this.filterType}get optionElements(){return p(this.listboxElement)}getOptionElementByValue(t){return this.optionElements.find((e=>e.value===t))}fieldButtonClick(){this.expanded=!this.expanded}filterInput(t){t.stopPropagation(),this.filter=this.filterElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.isFilterable()&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.isFilterable()&&document.activeElement===this.listboxElement}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){switch(t.key){case"ArrowDown":return t.stopImmediatePropagation(),t.preventDefault(),this.listboxElement.focus(),void f(this.listboxElement);case"Enter":return this.listboxElement.guxSelectActive(),void t.preventDefault()}}filterKeyup(t){" "!==t.key||t.preventDefault()}collapseListbox(t){this.expanded&&(this.expanded=!1),"focusFieldButton"===t&&this.fieldButtonElement.focus()}updateValue(t){this.value!==t&&(this.value=t,u(this.root,"input"),u(this.root,"change")),this.collapseListbox("focusFieldButton")}getTypeaheadText(t){var e;const i=t.length;if(i>0&&!this.loading){const o=x(this.listboxElement,t);if(o&&"custom"!==this.filterType){const t=null===(e=v(o))||void 0===e?void 0:e.textContent.trim();return null==t?void 0:t.substring(i)}}return""}renderTargetDisplay(){const t=this.getOptionElementByValue(this.value);return t?o("div",{class:"gux-selected-option"},this.renderSelectedItem(t)):o("div",{class:"gux-placeholder"},this.placeholder||this.i18n("noSelection"))}renderSelectedItem(t){const e=t.tagName.toLowerCase();switch(e){case"gux-option":return this.renderOption(t);case"gux-option-icon":return this.renderIconOption(t);default:return e}}renderOption(t){let e=t.textContent;if(E(t,"subtext")){const i=t.querySelector("[slot=subtext]");e=e.substring(0,e.length-i.textContent.length)}return o("gux-truncate",{ref:t=>this.truncateElement=t,dir:"auto"},e)}renderIconOption(t){let e=null;return null!==t.iconColor&&(e={color:t.iconColor}),o("span",{class:{"gux-selected-icon":!0,"gux-icon-position-end":"end"===t.iconPosition}},o("gux-icon",{"icon-name":t.iconName,style:e,decorative:!0,size:"small"}),o("gux-truncate",{ref:t=>this.truncateElement=t},t.textContent))}renderFilterInputField(){if(this.expanded&&this.isFilterable())return o("div",{class:"gux-field gux-input-field",dir:"auto"},o("div",{class:"gux-field-content"},o("div",{class:"gux-filter"},o("div",{class:"gux-filter-display"},o("span",{class:"gux-filter-text"},this.filter),o("span",{class:"gux-filter-suggestion"},this.getTypeaheadText(this.filter))),o("div",{class:"input-and-dropdown-button"},o("input",{onClick:this.fieldButtonClick.bind(this),class:"gux-filter-input",type:"text","aria-label":this.i18n("filterResults"),ref:t=>this.filterElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this),disabled:this.disabled})))))}renderPopup(){return o("slot",{slot:"popup"})}renderTarget(){return o("div",{class:{"gux-target-container-expanded":this.expanded&&this.isFilterable(),"gux-target-container-collapsed":!(this.expanded&&this.isFilterable()),"gux-error":this.hasError,"gux-disabled":this.disabled},slot:"target"},this.renderFilterInputField(),o("button",{type:"button",class:"gux-field gux-field-button",disabled:d(this.root),onClick:this.fieldButtonClick.bind(this),onFocusin:this.showTooltip.bind(this),onFocusout:this.hideTooltip.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},this.renderTargetContent(),this.renderRadialLoading(),o("gux-icon",{class:{"gux-expand-icon":!0},"screenreader-text":this.i18n("dropdown"),size:"small",iconName:this.expanded?"custom/chevron-up-small-regular":"custom/chevron-down-small-regular"})))}renderTargetContent(){if(!this.expanded||!this.isFilterable())return o("div",{class:"gux-field-content"},this.renderTargetDisplay())}renderRadialLoading(){if(this.loading&&!this.expanded)return o("gux-radial-loading",{context:"input"})}render(){return o("gux-popup",{key:"6d1688a7ecc7d444a14e828b92f06019bc37da47",expanded:this.expanded&&(!this.loading||this.isFilterable()),disabled:this.disabled||this.loading&&!this.isFilterable(),exceedTargetWidth:this.exceedTargetWidth},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return s(this)}static get watchers(){return{expanded:["watchExpanded"],value:["watchValue"],filter:["handleFilter"],disabled:["watchDisabled"]}}};I([r({triggerEvents:"mousedown"})],D.prototype,"onClickOutside",null),I([g({childList:!0,subtree:!0})],D.prototype,"onMutation",null),D.style=":host{box-sizing:border-box;color:var(--gse-ui-formControl-input-populatedColor)}.gux-field,.gux-target-container-expanded{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center;inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);cursor:pointer;background-color:var(--gse-ui-formControl-input-backgroundColor)}.gux-target-container-expanded,.gux-target-container-collapsed .gux-field{padding:var(--gse-ui-formControl-input-padding)}.gux-error.gux-target-container-collapsed .gux-field-button,.gux-error.gux-target-container-expanded{border:var(--gse-ui-formControl-input-error-border-width) var(--gse-ui-formControl-input-error-border-style) var(--gse-ui-formControl-input-error-border-color)}.gux-disabled.gux-target-container-collapsed .gux-field-button,.gux-disabled.gux-target-container-expanded{user-select:none;border:var(--gse-ui-formControl-input-disabled-border-width) var(--gse-ui-formControl-input-disabled-border-style) var(--gse-ui-formControl-input-disabled-border-color)}.gux-target-container-collapsed .gux-field-button:hover,.gux-target-container-expanded:hover{border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-field.gux-input-field{block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content{--gux-zindex-tooltip:3;display:flex;flex:1 1 0;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;min-inline-size:0;block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content .gux-filter,.gux-field .gux-field-content .gux-selected-option,.gux-field .gux-field-content .gux-placeholder{flex:1 1 auto;align-self:auto;order:0;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter{position:relative;block-size:100%}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;inline-size:100%;color:transparent;caret-color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-display{white-space:pre}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{color:var(--gse-ui-formControl-input-suggestionColor)}.gux-field .gux-field-content .gux-filter .gux-filter-input,.gux-field .gux-field-content .gux-filter .gux-filter-display{position:absolute}.gux-field .gux-field-content .gux-placeholder{color:var(--gse-ui-formControl-input-placeholderColor)}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;padding-inline-start:var(--gse-ui-dropdown-gap);color:var(--gse-ui-formControl-input-inputIcon-iconEndColor)}.gux-target-container-expanded{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-expanded:focus-visible{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-expanded:focus-within:has(:focus-visible){outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-expanded .gux-filter-input{background-color:inherit;border:none}.gux-target-container-expanded .gux-filter-input:focus{outline:none;border:none}.gux-target-container-expanded .gux-field-button{inline-size:auto;block-size:var(--gse-ui-formControl-input-contentText-lineHeight);margin:0;outline:none;background:inherit;border:none;box-shadow:none}.gux-target-container-expanded .gux-field-button:focus{outline:none}.gux-target-container-collapsed .gux-field-button{border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-collapsed .gux-field-button:focus-visible{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-collapsed .gux-field-button:focus-within:has(:focus-visible){outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}::slotted(gux-listbox){outline:none;box-shadow:var(--gse-ui-menu-boxShadow)}.gux-selected-icon{display:flex;flex-direction:row;align-items:center}.gux-selected-icon.gux-icon-position-end{flex-direction:row-reverse}.gux-selected-icon gux-icon{padding-inline-end:var(--gse-ui-dropdown-gap)}";const A=["gux-option","gux-option-icon"].join(","),B={noMatches:"No matches",loading:"Loading..."},K=class{constructor(i){t(this,i),this.internallistboxoptionsupdated=e(this,"internallistboxoptionsupdated",7),this.value=void 0,this.loading=!1,this.filter="",this.filterType="none",this.disabled=!1,this.emptyMessage=void 0,this.selectedValues=[],this.listboxOptions=[],this.allListboxOptionsFiltered=void 0}onBlur(){b(this.root)}onKeydown(t){if(!m(this.root))return t.preventDefault(),void f(this.root);switch(t.key){case"Enter":return t.preventDefault(),void O(this.root,(t=>this.updateValue(t)));case"ArrowDown":return t.preventDefault(),void(z(this.root)?(t.stopPropagation(),F(this.root)):C(this.root));case"ArrowUp":return t.preventDefault(),void(y(this.root)?(t.stopPropagation(),k(this.root)):w(this.root));case"Home":return t.preventDefault(),void C(this.root);case"End":return t.preventDefault(),void w(this.root);case" ":return void t.preventDefault()}1!==t.key.length||T(this.root,t.key)}onKeyup(t){" "!==t.key||O(this.root,(t=>this.updateValue(t)))}onMousemove(){b(this.root)}onClick(t){L(A,t,(t=>{S(t,(t=>this.updateValue(t)))}))}async guxSelectActive(){O(this.root,(t=>this.updateValue(t)))}setListboxOptions(){this.value&&(this.selectedValues=this.value.split(",")),this.listboxOptions=p(this.root),this.internallistboxoptionsupdated.emit()}updateValue(t){this.value!==t&&(this.value=t),u(this.root,"input"),u(this.root,"change")}async componentWillLoad(){h(this.root),this.i18n=await a(this.root,B),this.setListboxOptions()}componentWillRender(){this.listboxOptions.forEach((t=>{t.selected=t.value===this.value,"custom"!==this.filterType&&"none"!==this.filterType&&(t.filtered=!j(t,this.filter))})),this.allListboxOptionsFiltered=0===this.listboxOptions.filter((t=>!t.filtered)).length}renderHiddenSlot(){return o("div",{hidden:!0},o("slot",{onSlotchange:()=>this.setListboxOptions()}))}renderLoading(){return[o("div",{class:"gux-message-container"},o("gux-radial-loading",{context:"modal"}),o("span",null,this.i18n("loading"))),this.renderHiddenSlot()]}renderAllListboxOptionsFiltered(){return[o("div",{class:"gux-message-container"},o("div",{class:"gux-no-matches"},this.emptyMessage||this.i18n("noMatches"))),this.renderHiddenSlot()]}render(){return this.loading?this.renderLoading():this.allListboxOptionsFiltered?this.renderAllListboxOptionsFiltered():o(n,{role:"listbox",tabindex:0},o("slot",{onSlotchange:()=>this.setListboxOptions()}))}get root(){return s(this)}};K.style=":host{box-sizing:border-box;display:block;max-block-size:var(--gse-ui-menu-maxHeight);padding:var(--gse-ui-menu-padding);margin:0;overflow:visible auto;outline:none;background:var(--gse-ui-menu-backgroundColor);border:var(--gse-ui-menu-border-width) var(--gse-ui-menu-border-style) var(--gse-ui-menu-border-color);border-radius:var(--gse-ui-menu-borderRadius)}:host(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-ui-color-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-message-container{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch center;align-items:center;text-align:center}.gux-message-container .gux-no-matches{box-sizing:border-box;block-size:var(--gse-ui-menu-option-height);padding-block:var(--gse-ui-dropdown-gap);font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor)}";const M=class{constructor(e){t(this,e),this.value=void 0,this.active=!1,this.selected=!1,this.disabled=!1,this.filtered=!1,this.hasSubtext=!1}handleActive(t){var e,i;t?null===(e=this.truncateElement)||void 0===e||e.setShowTooltip():null===(i=this.truncateElement)||void 0===i||i.setHideTooltip()}componentWillLoad(){this.root.id=this.root.id||H("gux-option"),this.onSubtextChange()}onSubtextChange(){this.hasSubtext=E(this.root,"subtext")}getAriaSelected(){return!this.disabled&&(this.selected?"true":"false")}hasDisabledParent(){const t=W("gux-listbox",this.root);return null==t?void 0:t.disabled}render(){return o(n,{key:"771ed267948965285f92717f6abe2b316f83b614",role:"option",class:{"gux-active":this.active,"gux-disabled":this.disabled||this.hasDisabledParent(),"gux-filtered":this.filtered,"gux-selected":this.selected,"gux-show-subtext":this.hasSubtext},"aria-selected":this.getAriaSelected(),"aria-disabled":this.disabled.toString()},o("div",{key:"209ec65f605cace67a478f5ca594e12254cf9e07",class:"gux-option-wrapper"},o("gux-truncate",{key:"a9d5018822118c26e1fb189038d0ff28b8563a02",ref:t=>this.truncateElement=t},o("slot",{key:"a65af356d77ee6196ecac3c7874e7f6a6823d898"})),o("slot",{key:"060cfdc00de3ca73f11a4cac54a186e95e447b29",onSlotchange:()=>this.onSubtextChange(),name:"subtext"})))}get root(){return s(this)}static get watchers(){return{active:["handleActive"]}}};M.style=":host{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-menu-option-gap);place-content:stretch center;align-items:center;block-size:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);font-family:var(--gse-ui-menu-option-label-default-text-fontFamily);font-size:var(--gse-ui-menu-option-label-default-text-fontSize);font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);word-wrap:break-word;cursor:pointer}:host .gux-option-wrapper{inline-size:100%}:host .gux-slot-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.gux-disabled){pointer-events:none;cursor:default;opacity:var(--gse-ui-menu-option-disabled-opacity)}:host(.gux-selected){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);background:var(--gse-ui-menu-option-selected-backgroundColor)}:host(:active:not(:disabled)){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight)}:host(.gux-active){outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);outline-offset:-2px;border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}:host(.gux-show-subtext){place-content:stretch flex-start;block-size:auto}:host(.gux-show-subtext) .gux-option-wrapper{display:flex;flex-direction:column}:host(.gux-show-subtext) slot[name=subtext]::slotted(*){font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);color:var(--gse-ui-menu-groupedMenu-subtext-foregroundColor)}:host(:hover:not(:disabled)){background:var(--gse-ui-menu-option-hover-backgroundColor)}:host(.gux-filtered){display:none}";export{D as gux_dropdown,K as gux_listbox,M as gux_option}
1
+ import{r as t,c as e,f as i,h as o,g as s,H as n}from"./p-ffb7c9dc.js";import{O as r}from"./p-da087c59.js";import{b as u}from"./p-cfeaf436.js";import{s as a}from"./p-2c25e2f2.js";import{o as l,c as d}from"./p-f4751a15.js";import{b as c}from"./p-cf0e7d3b.js";import{t as h}from"./p-db306845.js";import{O as g}from"./p-166634e1.js";import{s as f,m as p,g as x,a as b,c as v,h as m,b as w,d as C,e as y,f as k,i as z,j as F,k as O,l as T,n as j,o as S}from"./p-870844dc.js";import{h as E}from"./p-6d8b4027.js";import{w as L}from"./p-e97879b4.js";import{g as W}from"./p-4202e9f2.js";import{r as H}from"./p-0934300e.js";const R={filterResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown"};var I=function(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const D=class{constructor(i){t(this,i),this.guxexpanded=e(this,"guxexpanded",7),this.guxcollapsed=e(this,"guxcollapsed",7),this.guxfilter=e(this,"guxfilter",7),this.value=void 0,this.disabled=!1,this.required=!1,this.loading=!1,this.placeholder=void 0,this.filterType="none",this.hasError=!1,this.exceedTargetWidth=!1,this.expanded=!1,this.filter=""}watchExpanded(t){t||(this.filter="")}watchValue(t){this.validateValue(t,this.listboxElement)}handleFilter(t){this.guxfilter.emit(t)}watchDisabled(t){t&&(this.expanded=!1)}onKeydown(t){switch(t.key){case"Escape":return this.isFilterable()&&document.activeElement===this.listboxElement?this.filterElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.filterElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("focusFieldButton")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0,f(this.listboxElement)))}}onInternallistboxoptionsupdated(t){t.stopPropagation(),i(this.root)}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t)}onClickOutside(){this.collapseListbox("noFocusChange")}onMutation(){var t;this.listboxElement||(this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox"),this.applyListboxEventListeners())}onInternalExpanded(t){t.stopPropagation(),this.guxexpanded.emit(),this.listboxElement&&c((()=>{this.listboxElement.focus(),this.isFilterable()&&this.filterElement&&this.filterElement.focus()}))}onInternalCollapsed(t){t.stopPropagation(),this.guxcollapsed.emit()}connectedCallback(){var t;this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox"),this.listboxElement&&this.validateValue(this.value,this.listboxElement)}async componentWillLoad(){h(this.root),this.i18n=await u(this.root,R),l(this.root,(()=>{i(this.root)}))}componentDidLoad(){this.applyListboxEventListeners()}componentWillRender(){this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.listboxElement.loading=this.loading,this.listboxElement.filterType=this.filterType,this.listboxElement.filter=this.filter)}showTooltip(){var t;null===(t=this.truncateElement)||void 0===t||t.setShowTooltip()}hideTooltip(){var t;null===(t=this.truncateElement)||void 0===t||t.setHideTooltip()}validateValue(t,e){void 0!==t?this.getOptionElementByValue(t)&&(e.value=t):e&&(e.value=t)}applyListboxEventListeners(){var t,e;null===(t=this.listboxElement)||void 0===t||t.addEventListener("input",(t=>{t.stopPropagation(),this.updateValue(t.target.value)})),null===(e=this.listboxElement)||void 0===e||e.addEventListener("change",(t=>{t.stopPropagation()}))}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}isFilterable(){return"starts-with"===this.filterType||"custom"===this.filterType}get optionElements(){return p(this.listboxElement)}getOptionElementByValue(t){return this.optionElements.find((e=>e.value===t))}fieldButtonClick(){this.expanded=!this.expanded}filterInput(t){t.stopPropagation(),this.filter=this.filterElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.isFilterable()&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.isFilterable()&&document.activeElement===this.listboxElement}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){switch(t.key){case"ArrowDown":return t.stopImmediatePropagation(),t.preventDefault(),this.listboxElement.focus(),void f(this.listboxElement);case"Enter":return this.listboxElement.guxSelectActive(),void t.preventDefault()}}filterKeyup(t){" "!==t.key||t.preventDefault()}collapseListbox(t){this.expanded&&(this.expanded=!1),"focusFieldButton"===t&&this.fieldButtonElement.focus()}updateValue(t){this.value!==t&&(this.value=t,a(this.root,"input"),a(this.root,"change")),this.collapseListbox("focusFieldButton")}getTypeaheadText(t){var e;const i=t.length;if(i>0&&!this.loading){const o=x(this.listboxElement,t);if(o&&"custom"!==this.filterType){const t=null===(e=b(o))||void 0===e?void 0:e.textContent.trim();return null==t?void 0:t.substring(i)}}return""}renderTargetDisplay(){const t=this.getOptionElementByValue(this.value);return t?o("div",{class:"gux-selected-option"},this.renderSelectedItem(t)):o("div",{class:"gux-placeholder"},this.placeholder||this.i18n("noSelection"))}renderSelectedItem(t){const e=t.tagName.toLowerCase();switch(e){case"gux-option":return this.renderOption(t);case"gux-option-icon":return this.renderIconOption(t);default:return e}}renderOption(t){let e=t.textContent;if(E(t,"subtext")){const i=t.querySelector("[slot=subtext]");e=e.substring(0,e.length-i.textContent.length)}return o("gux-truncate",{ref:t=>this.truncateElement=t,dir:"auto"},e)}renderIconOption(t){let e=null;return null!==t.iconColor&&(e={color:t.iconColor}),o("span",{class:{"gux-selected-icon":!0,"gux-icon-position-end":"end"===t.iconPosition}},o("gux-icon",{"icon-name":t.iconName,style:e,decorative:!0,size:"small"}),o("gux-truncate",{ref:t=>this.truncateElement=t},t.textContent))}renderFilterInputField(){if(this.expanded&&this.isFilterable())return o("div",{class:"gux-field gux-input-field",dir:"auto"},o("div",{class:"gux-field-content"},o("div",{class:"gux-filter"},o("div",{class:"gux-filter-display"},o("span",{class:"gux-filter-text"},this.filter),o("span",{class:"gux-filter-suggestion"},this.getTypeaheadText(this.filter))),o("div",{class:"input-and-dropdown-button"},o("input",{onClick:this.fieldButtonClick.bind(this),class:"gux-filter-input",type:"text","aria-label":this.i18n("filterResults"),ref:t=>this.filterElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this),disabled:this.disabled})))))}renderPopup(){return o("slot",{slot:"popup"})}renderTarget(){return o("div",{class:{"gux-target-container-expanded":this.expanded&&this.isFilterable(),"gux-target-container-collapsed":!(this.expanded&&this.isFilterable()),"gux-error":this.hasError,"gux-disabled":this.disabled},slot:"target"},this.renderFilterInputField(),o("button",{type:"button",class:"gux-field gux-field-button",disabled:d(this.root),onClick:this.fieldButtonClick.bind(this),onFocusin:this.showTooltip.bind(this),onFocusout:this.hideTooltip.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},this.renderTargetContent(),this.renderRadialLoading(),o("gux-icon",{class:{"gux-expand-icon":!0},"screenreader-text":this.i18n("dropdown"),size:"small",iconName:this.expanded?"custom/chevron-up-small-regular":"custom/chevron-down-small-regular"})))}renderTargetContent(){if(!this.expanded||!this.isFilterable())return o("div",{class:"gux-field-content"},this.renderTargetDisplay())}renderRadialLoading(){if(this.loading&&!this.expanded)return o("gux-radial-loading",{context:"input"})}render(){return o("gux-popup",{key:"e64394b81bdb9bd6dbb77dec69f9405ab9f3cdd5",expanded:this.expanded&&(!this.loading||this.isFilterable()),disabled:this.disabled||this.loading&&!this.isFilterable(),exceedTargetWidth:this.exceedTargetWidth},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return s(this)}static get watchers(){return{expanded:["watchExpanded"],value:["watchValue"],filter:["handleFilter"],disabled:["watchDisabled"]}}};I([r({triggerEvents:"mousedown"})],D.prototype,"onClickOutside",null),I([g({childList:!0,subtree:!0})],D.prototype,"onMutation",null),D.style=":host{box-sizing:border-box;color:var(--gse-ui-formControl-input-populatedColor)}.gux-field,.gux-target-container-expanded{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center;inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);cursor:pointer;background-color:var(--gse-ui-formControl-input-backgroundColor)}.gux-target-container-expanded,.gux-target-container-collapsed .gux-field{padding:var(--gse-ui-formControl-input-padding)}.gux-error.gux-target-container-collapsed .gux-field-button,.gux-error.gux-target-container-expanded{border:var(--gse-ui-formControl-input-error-border-width) var(--gse-ui-formControl-input-error-border-style) var(--gse-ui-formControl-input-error-border-color)}.gux-disabled.gux-target-container-collapsed .gux-field-button,.gux-disabled.gux-target-container-expanded{user-select:none;border:var(--gse-ui-formControl-input-disabled-border-width) var(--gse-ui-formControl-input-disabled-border-style) var(--gse-ui-formControl-input-disabled-border-color)}.gux-target-container-collapsed .gux-field-button:hover,.gux-target-container-expanded:hover{border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-field.gux-input-field{block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content{--gux-zindex-tooltip:3;display:flex;flex:1 1 0;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;min-inline-size:0;block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content .gux-filter,.gux-field .gux-field-content .gux-selected-option,.gux-field .gux-field-content .gux-placeholder{flex:1 1 auto;align-self:auto;order:0;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter{position:relative;block-size:100%}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;inline-size:100%;color:transparent;caret-color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-display{white-space:pre}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{color:var(--gse-ui-formControl-input-suggestionColor)}.gux-field .gux-field-content .gux-filter .gux-filter-input,.gux-field .gux-field-content .gux-filter .gux-filter-display{position:absolute}.gux-field .gux-field-content .gux-placeholder{color:var(--gse-ui-formControl-input-placeholderColor)}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;padding-inline-start:var(--gse-ui-dropdown-gap);color:var(--gse-ui-formControl-input-inputIcon-iconEndColor)}.gux-target-container-expanded{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-expanded:focus-visible{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-expanded:focus-within:has(:focus-visible){outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-expanded .gux-filter-input{background-color:inherit;border:none}.gux-target-container-expanded .gux-filter-input:focus{outline:none;border:none}.gux-target-container-expanded .gux-field-button{inline-size:auto;block-size:var(--gse-ui-formControl-input-contentText-lineHeight);margin:0;outline:none;background:inherit;border:none;box-shadow:none}.gux-target-container-expanded .gux-field-button:focus{outline:none}.gux-target-container-collapsed .gux-field-button{border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-collapsed .gux-field-button:focus-visible{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-collapsed .gux-field-button:focus-within:has(:focus-visible){outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}::slotted(gux-listbox){outline:none;box-shadow:var(--gse-ui-menu-boxShadow)}.gux-selected-icon{display:flex;flex-direction:row;align-items:center}.gux-selected-icon.gux-icon-position-end{flex-direction:row-reverse}.gux-selected-icon gux-icon{padding-inline-end:var(--gse-ui-dropdown-gap)}";const A=["gux-option","gux-option-icon"].join(","),B={noMatches:"No matches",loading:"Loading..."},K=class{constructor(i){t(this,i),this.internallistboxoptionsupdated=e(this,"internallistboxoptionsupdated",7),this.value=void 0,this.loading=!1,this.filter="",this.filterType="none",this.disabled=!1,this.emptyMessage=void 0,this.selectedValues=[],this.listboxOptions=[],this.allListboxOptionsFiltered=void 0}onBlur(){v(this.root)}onKeydown(t){if(!m(this.root))return t.preventDefault(),void f(this.root);switch(t.key){case"Enter":return t.preventDefault(),void O(this.root,(t=>this.updateValue(t)));case"ArrowDown":return t.preventDefault(),void(z(this.root)?(t.stopPropagation(),F(this.root)):C(this.root));case"ArrowUp":return t.preventDefault(),void(y(this.root)?(t.stopPropagation(),k(this.root)):w(this.root));case"Home":return t.preventDefault(),void C(this.root);case"End":return t.preventDefault(),void w(this.root);case" ":return void t.preventDefault()}1!==t.key.length||T(this.root,t.key)}onKeyup(t){" "!==t.key||O(this.root,(t=>this.updateValue(t)))}onMousemove(){v(this.root)}onClick(t){L(A,t,(t=>{S(t,(t=>this.updateValue(t)))}))}async guxSelectActive(){O(this.root,(t=>this.updateValue(t)))}setListboxOptions(){this.value&&(this.selectedValues=this.value.split(",")),this.listboxOptions=p(this.root),this.internallistboxoptionsupdated.emit()}updateValue(t){this.value!==t&&(this.value=t),a(this.root,"input"),a(this.root,"change")}async componentWillLoad(){h(this.root),this.i18n=await u(this.root,B),this.setListboxOptions()}componentWillRender(){this.listboxOptions.forEach((t=>{t.selected=t.value===this.value,"custom"!==this.filterType&&"none"!==this.filterType&&(t.filtered=!j(t,this.filter))})),this.allListboxOptionsFiltered=0===this.listboxOptions.filter((t=>!t.filtered)).length}renderHiddenSlot(){return o("div",{hidden:!0},o("slot",{onSlotchange:()=>this.setListboxOptions()}))}renderLoading(){return[o("div",{class:"gux-message-container"},o("gux-radial-loading",{context:"modal"}),o("span",null,this.i18n("loading"))),this.renderHiddenSlot()]}renderAllListboxOptionsFiltered(){return[o("div",{class:"gux-message-container"},o("div",{class:"gux-no-matches"},this.emptyMessage||this.i18n("noMatches"))),this.renderHiddenSlot()]}render(){return this.loading?this.renderLoading():this.allListboxOptionsFiltered?this.renderAllListboxOptionsFiltered():o(n,{role:"listbox",tabindex:0},o("slot",{onSlotchange:()=>this.setListboxOptions()}))}get root(){return s(this)}};K.style=":host{box-sizing:border-box;display:block;max-block-size:var(--gse-ui-menu-maxHeight);padding:var(--gse-ui-menu-padding);margin:0;overflow:visible auto;outline:none;background:var(--gse-ui-menu-backgroundColor);border:var(--gse-ui-menu-border-width) var(--gse-ui-menu-border-style) var(--gse-ui-menu-border-color);border-radius:var(--gse-ui-menu-borderRadius)}:host(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-ui-color-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-message-container{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch center;align-items:center;text-align:center}.gux-message-container .gux-no-matches{box-sizing:border-box;block-size:var(--gse-ui-menu-option-height);padding-block:var(--gse-ui-dropdown-gap);font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor)}";const M=class{constructor(e){t(this,e),this.value=void 0,this.active=!1,this.selected=!1,this.disabled=!1,this.filtered=!1,this.hasSubtext=!1}handleActive(t){var e,i;t?null===(e=this.truncateElement)||void 0===e||e.setShowTooltip():null===(i=this.truncateElement)||void 0===i||i.setHideTooltip()}componentWillLoad(){this.root.id=this.root.id||H("gux-option"),this.onSubtextChange()}onSubtextChange(){this.hasSubtext=E(this.root,"subtext")}getAriaSelected(){return!this.disabled&&(this.selected?"true":"false")}hasDisabledParent(){const t=W("gux-listbox",this.root);return null==t?void 0:t.disabled}render(){return o(n,{key:"9e48195c318f9299cf5582c1d1bd46c5a0d336ec",role:"option",class:{"gux-active":this.active,"gux-disabled":this.disabled||this.hasDisabledParent(),"gux-filtered":this.filtered,"gux-selected":this.selected,"gux-show-subtext":this.hasSubtext},"aria-selected":this.getAriaSelected(),"aria-disabled":this.disabled.toString()},o("div",{key:"7dd2e74b43d865b9eafa987ca022037c54ecd778",class:"gux-option-wrapper"},o("gux-truncate",{key:"914f40b490bda7c3baff799f43727fc17323048f",ref:t=>this.truncateElement=t},o("slot",{key:"6d5ddf51a8f2eabb468283923ae2b35d423e8d24"})),o("slot",{key:"2c74027ca797f57487b32dbc89606b8b8ffa5349",onSlotchange:()=>this.onSubtextChange(),name:"subtext"})))}get root(){return s(this)}static get watchers(){return{active:["handleActive"]}}};M.style=":host{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-menu-option-gap);place-content:stretch center;align-items:center;block-size:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);font-family:var(--gse-ui-menu-option-label-default-text-fontFamily);font-size:var(--gse-ui-menu-option-label-default-text-fontSize);font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);word-wrap:break-word;cursor:pointer}:host .gux-option-wrapper{inline-size:100%}:host .gux-slot-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.gux-disabled){pointer-events:none;cursor:default;opacity:var(--gse-ui-menu-option-disabled-opacity)}:host(.gux-selected){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);background:var(--gse-ui-menu-option-selected-backgroundColor)}:host(:active:not(:disabled)){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight)}:host(.gux-active){outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);outline-offset:-2px;border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}:host(.gux-show-subtext){place-content:stretch flex-start;block-size:auto}:host(.gux-show-subtext) .gux-option-wrapper{display:flex;flex-direction:column}:host(.gux-show-subtext) slot[name=subtext]::slotted(*){font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);color:var(--gse-ui-menu-groupedMenu-subtext-foregroundColor)}:host(:hover:not(:disabled)){background:var(--gse-ui-menu-option-hover-backgroundColor)}:host(.gux-filtered){display:none}";export{D as gux_dropdown,K as gux_listbox,M as gux_option}
@@ -1 +1 @@
1
- import{r as e,f as i,h as t,H as r,g as o}from"./p-086c5088.js";import{c as a,o as n}from"./p-f4751a15.js";import{O as s}from"./p-e07238b5.js";import{o as l}from"./p-6b12dd16.js";import{p as g}from"./p-a11d5d42.js";import{h as u}from"./p-6d8b4027.js";import{a as d,G as h}from"./p-fbf14218.js";import{a as f,G as c}from"./p-1f6c052d.js";import{g as p,v as x,a as b}from"./p-4aaf349e.js";import{t as m}from"./p-e0de3453.js";import{O as v}from"./p-a6c36b2c.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";var y=function(e,i,t,r){var o,a=arguments.length,n=a<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,i,t,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(n=(a<3?o(n):a>3?o(i,t,n):o(i,t))||n);return a>3&&n&&Object.defineProperty(i,t,n),n};const k=class{constructor(i){e(this,i),this.displayUnits=void 0,this.valueInTooltip=void 0,this.labelPosition=void 0,this.indicatorMark="required",this.computedLabelPosition="above",this.disabled=void 0,this.required=void 0,this.hasError=!1,this.hasHelp=!1,this.value=void 0,this.active=void 0,this.valueWatcherId=void 0}onInput(e){this.updateValue(e.target.value)}onMousedown(){this.disabled||(this.active=!0)}onMouseup(){this.active=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help")}handleKeyup(e){var i,t;"Tab"===e.key?this.input.matches(":focus-visible")&&(null===(i=this.labelInfo)||void 0===i||i.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(t=this.labelInfo)||void 0===t||t.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;this.active=!1,null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help"),m(this.root,{variant:this.variant})}componentDidLoad(){this.updatePosition(),this.tooltipElement&&i(this.root)}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect(),clearInterval(this.valueWatcherId)}render(){return t(r,{key:"10030bc0061686292f5de259b3c73f522b7e68ad",class:{"gux-active":this.active}},t(f,{key:"835be0936fff17c41eaab9d83c8a8c47e1e46242",labelPosition:this.computedLabelPosition},t(c,{key:"8864dfed64b384b2072959d113f743d19afdbfa4",required:this.required,position:this.computedLabelPosition},t("slot",{key:"8fe7c5f6f736b485aa668ff399115915e0471b62",name:"label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"90dd887f8b0aabbc32ed1c46331f03a99d138fc9",variant:this.indicatorMark,required:this.required}),t("slot",{key:"9f18b3e1673e394ed83bba81f7e5856fecc11721",name:"label-info"})),t("div",{key:"67969623d8da0c088f4ec42dc64a4caf21c34bc0",class:"gux-input-and-error-container"},this.renderRangeInput(),t(d,{key:"01e1f0ff09a55c25c5639c40440057787c2abdc4",show:this.hasError},t("slot",{key:"8dca4a4c3e54ec6fcdbba8020e0b2c63fa16439c",name:"error"})),t(h,{key:"888bf437590462938b230ca6aa7ed073e5b9e223",show:!this.hasError&&this.hasHelp},t("slot",{key:"aa56799737605b7f9876da1d8d32f94a583287c4",name:"help"})))))}get variant(){return this.labelPosition?this.labelPosition.toLowerCase():"none"}setInput(){this.input=p(this.root,'input[type="range"][slot="input"]'),g(this.input),this.disabled=a(this.input),this.required=this.input.required,this.value=this.input.value,this.disabledObserver=n(this.input,(e=>{this.disabled=e})),this.requiredObserver=l(this.input,(e=>{this.required=e})),clearInterval(this.valueWatcherId),this.valueWatcherId=setInterval((()=>{this.value!==this.input.value&&this.updateValue(this.input.value)}),100),x(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=b(this.label,this.labelPosition)}renderRangeInput(){return t("div",{class:{"gux-range-input-container":!0,"gux-disabled":this.disabled},ref:e=>this.containerElement=e},t("div",{class:"gux-range"},t("div",{class:"gux-track"},t("div",{class:"gux-progress",ref:e=>this.progressElement=e})),t("slot",{name:"input"}),this.valueInTooltip&&t("gux-tooltip-base-beta",{ref:e=>this.tooltipElement=e,forElement:this.containerElement,offsetY:-10,placement:"top"},t("span",{slot:"content"},this.getDisplayValue()))),t("div",{class:{"gux-display":!0,"gux-hidden":this.valueInTooltip}},this.getDisplayValue()))}updateValue(e){this.value=e,this.updatePosition()}updatePosition(){var e,i,t;const r=Number((null===(e=this.input)||void 0===e?void 0:e.value)||0),o=Number((null===(i=this.input)||void 0===i?void 0:i.min)||0),a=(r-o)/(Number((null===(t=this.input)||void 0===t?void 0:t.max)||100)-o)*100;this.tooltipElement&&(this.tooltipElement.offsetX=(a/100-.5)*(this.containerElement.offsetWidth-20)),this.progressElement&&(this.progressElement.style.width=`${a}%`)}getDisplayValue(){return this.displayUnits?`${this.value}${this.displayUnits}`:this.value}get root(){return o(this)}};y([s({childList:!0,subtree:!0})],k.prototype,"onMutation",null),y([v()],k.prototype,"updatePosition",null),k.style=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;min-inline-size:var(--gse-ui-icon-small-size);min-block-size:var(--gse-ui-icon-small-size);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input[type=range]){position:absolute;inline-size:100%;block-size:var(--gse-ui-rangeSlider-bar-height);margin-block:calc(var(--gse-ui-rangeSlider-handle-height) / 2);margin-block-start:calc(-1 * (var(--gse-ui-rangeSlider-handle-height) / 2 + var(--gse-ui-rangeSlider-bar-height)));margin-inline:0;-webkit-appearance:none;background:transparent}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container.gux-hidden{display:none}.gux-input-and-error-container .gux-range-input-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-rangeSlider-gap);place-content:stretch flex-start;align-items:center;block-size:var(--gse-ui-rangeSlider-set-height);font-size:var(--gse-ui-rangeSlider-label-text-fontSize)}.gux-input-and-error-container .gux-range-input-container.gux-disabled{opacity:var(--gse-ui-rangeSlider-disabled-opacity)}.gux-input-and-error-container .gux-range-input-container .gux-range{position:relative;flex:1 1 auto;align-self:center;order:0}.gux-input-and-error-container .gux-range-input-container .gux-range:hover .gux-range-tooltip,.gux-input-and-error-container .gux-range-input-container .gux-range:focus-within .gux-range-tooltip{visibility:visible}.gux-input-and-error-container .gux-range-input-container .gux-range .gux-track{inline-size:100%;block-size:var(--gse-ui-rangeSlider-bar-height);margin-block:6px;margin-inline:0;background:var(--gse-ui-rangeSlider-bar-default-backgroundColor);border-radius:var(--gse-ui-rangeSlider-track-borderRadius)}.gux-input-and-error-container .gux-range-input-container .gux-range .gux-track .gux-progress{block-size:var(--gse-ui-rangeSlider-bar-height);background-color:var(--gse-ui-rangeSlider-bar-selected-backgroundColor);border-radius:var(--gse-ui-rangeSlider-track-borderRadius)}.gux-input-and-error-container .gux-range-input-container .gux-display{flex:0 1 auto;align-self:auto;order:0;margin-block:0;margin-inline:var(--gux-spacing-medium) 0;font-family:var(--gse-ui-rangeSlider-label-text-fontFamily);font-size:var(--gse-ui-rangeSlider-label-text-fontSize);font-weight:var(--gse-ui-rangeSlider-label-text-fontWeight);line-height:var(--gse-ui-rangeSlider-label-text-lineHeight);text-align:end}.gux-input-and-error-container .gux-range-input-container .gux-display.gux-hidden{display:none}.gux-form-field-label.gux-beside{inset-block-start:0}";export{k as gux_form_field_range}
1
+ import{r as e,f as i,h as t,H as r,g as o}from"./p-ffb7c9dc.js";import{c as a,o as n}from"./p-f4751a15.js";import{O as s}from"./p-166634e1.js";import{o as l}from"./p-6b12dd16.js";import{p as g}from"./p-a11d5d42.js";import{h as u}from"./p-6d8b4027.js";import{a as d,G as h}from"./p-fcca9736.js";import{a as f,G as c}from"./p-727bfafa.js";import{g as p,v as x,a as b}from"./p-4aaf349e.js";import{t as m}from"./p-db306845.js";import{O as v}from"./p-1d9ed425.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";var y=function(e,i,t,r){var o,a=arguments.length,n=a<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,i,t,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(n=(a<3?o(n):a>3?o(i,t,n):o(i,t))||n);return a>3&&n&&Object.defineProperty(i,t,n),n};const k=class{constructor(i){e(this,i),this.displayUnits=void 0,this.valueInTooltip=void 0,this.labelPosition=void 0,this.indicatorMark="required",this.computedLabelPosition="above",this.disabled=void 0,this.required=void 0,this.hasError=!1,this.hasHelp=!1,this.value=void 0,this.active=void 0,this.valueWatcherId=void 0}onInput(e){this.updateValue(e.target.value)}onMousedown(){this.disabled||(this.active=!0)}onMouseup(){this.active=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help")}handleKeyup(e){var i,t;"Tab"===e.key?this.input.matches(":focus-visible")&&(null===(i=this.labelInfo)||void 0===i||i.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(t=this.labelInfo)||void 0===t||t.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;this.active=!1,null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help"),m(this.root,{variant:this.variant})}componentDidLoad(){this.updatePosition(),this.tooltipElement&&i(this.root)}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect(),clearInterval(this.valueWatcherId)}render(){return t(r,{key:"6695fd4b486d4b288b42768e8c6105376d49f580",class:{"gux-active":this.active}},t(f,{key:"648c0a85f4470ba9f7e47e4218caeda3cde59f83",labelPosition:this.computedLabelPosition},t(c,{key:"fd6dbd89b6e073c2f684ef908dc065e84463cf1a",required:this.required,position:this.computedLabelPosition},t("slot",{key:"9a0c9a674bd536c26bd07b38ac8577ca5f2c7814",name:"label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"a52555014c784f3dc06553017d9610cee840c5de",variant:this.indicatorMark,required:this.required}),t("slot",{key:"0cb195c1e75ce2b546c65d51fc7826b859c1a409",name:"label-info"})),t("div",{key:"5986de20e72287a20d2ebf6a1879f7bcdff4143e",class:"gux-input-and-error-container"},this.renderRangeInput(),t(d,{key:"8ee1d349e59c05a6f72129a970fc5f1c3f717b9f",show:this.hasError},t("slot",{key:"0e35a28b75c8678306a54e6f10df456472708602",name:"error"})),t(h,{key:"7a0dd4bdd6e8b0fdf0e0dff9b014ed7d2dc035f7",show:!this.hasError&&this.hasHelp},t("slot",{key:"d1e2cb2e267de30eed1807afda20c58a3d9bc54b",name:"help"})))))}get variant(){return this.labelPosition?this.labelPosition.toLowerCase():"none"}setInput(){this.input=p(this.root,'input[type="range"][slot="input"]'),g(this.input),this.disabled=a(this.input),this.required=this.input.required,this.value=this.input.value,this.disabledObserver=n(this.input,(e=>{this.disabled=e})),this.requiredObserver=l(this.input,(e=>{this.required=e})),clearInterval(this.valueWatcherId),this.valueWatcherId=setInterval((()=>{this.value!==this.input.value&&this.updateValue(this.input.value)}),100),x(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=b(this.label,this.labelPosition)}renderRangeInput(){return t("div",{class:{"gux-range-input-container":!0,"gux-disabled":this.disabled},ref:e=>this.containerElement=e},t("div",{class:"gux-range"},t("div",{class:"gux-track"},t("div",{class:"gux-progress",ref:e=>this.progressElement=e})),t("slot",{name:"input"}),this.valueInTooltip&&t("gux-tooltip-base-beta",{ref:e=>this.tooltipElement=e,forElement:this.containerElement,offsetY:-10,placement:"top"},t("span",{slot:"content"},this.getDisplayValue()))),t("div",{class:{"gux-display":!0,"gux-hidden":this.valueInTooltip}},this.getDisplayValue()))}updateValue(e){this.value=e,this.updatePosition()}updatePosition(){var e,i,t;const r=Number((null===(e=this.input)||void 0===e?void 0:e.value)||0),o=Number((null===(i=this.input)||void 0===i?void 0:i.min)||0),a=(r-o)/(Number((null===(t=this.input)||void 0===t?void 0:t.max)||100)-o)*100;this.tooltipElement&&(this.tooltipElement.offsetX=(a/100-.5)*(this.containerElement.offsetWidth-20)),this.progressElement&&(this.progressElement.style.width=`${a}%`)}getDisplayValue(){return this.displayUnits?`${this.value}${this.displayUnits}`:this.value}get root(){return o(this)}};y([s({childList:!0,subtree:!0})],k.prototype,"onMutation",null),y([v()],k.prototype,"updatePosition",null),k.style=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;min-inline-size:var(--gse-ui-icon-small-size);min-block-size:var(--gse-ui-icon-small-size);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input[type=range]){position:absolute;inline-size:100%;block-size:var(--gse-ui-rangeSlider-bar-height);margin-block:calc(var(--gse-ui-rangeSlider-handle-height) / 2);margin-block-start:calc(-1 * (var(--gse-ui-rangeSlider-handle-height) / 2 + var(--gse-ui-rangeSlider-bar-height)));margin-inline:0;-webkit-appearance:none;background:transparent}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container.gux-hidden{display:none}.gux-input-and-error-container .gux-range-input-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-rangeSlider-gap);place-content:stretch flex-start;align-items:center;block-size:var(--gse-ui-rangeSlider-set-height);font-size:var(--gse-ui-rangeSlider-label-text-fontSize)}.gux-input-and-error-container .gux-range-input-container.gux-disabled{opacity:var(--gse-ui-rangeSlider-disabled-opacity)}.gux-input-and-error-container .gux-range-input-container .gux-range{position:relative;flex:1 1 auto;align-self:center;order:0}.gux-input-and-error-container .gux-range-input-container .gux-range:hover .gux-range-tooltip,.gux-input-and-error-container .gux-range-input-container .gux-range:focus-within .gux-range-tooltip{visibility:visible}.gux-input-and-error-container .gux-range-input-container .gux-range .gux-track{inline-size:100%;block-size:var(--gse-ui-rangeSlider-bar-height);margin-block:6px;margin-inline:0;background:var(--gse-ui-rangeSlider-bar-default-backgroundColor);border-radius:var(--gse-ui-rangeSlider-track-borderRadius)}.gux-input-and-error-container .gux-range-input-container .gux-range .gux-track .gux-progress{block-size:var(--gse-ui-rangeSlider-bar-height);background-color:var(--gse-ui-rangeSlider-bar-selected-backgroundColor);border-radius:var(--gse-ui-rangeSlider-track-borderRadius)}.gux-input-and-error-container .gux-range-input-container .gux-display{flex:0 1 auto;align-self:auto;order:0;margin-block:0;margin-inline:var(--gux-spacing-medium) 0;font-family:var(--gse-ui-rangeSlider-label-text-fontFamily);font-size:var(--gse-ui-rangeSlider-label-text-fontSize);font-weight:var(--gse-ui-rangeSlider-label-text-fontWeight);line-height:var(--gse-ui-rangeSlider-label-text-lineHeight);text-align:end}.gux-input-and-error-container .gux-range-input-container .gux-display.gux-hidden{display:none}.gux-form-field-label.gux-beside{inset-block-start:0}";export{k as gux_form_field_range}
@@ -1 +1 @@
1
- import{r as t,c as a,h as e,g as i}from"./p-086c5088.js";import{b as n}from"./p-d15985f1.js";import"./p-4202e9f2.js";const o={page:"Page",totalPages:" of {totalPages, number}",first:"First",previous:"Previous",next:"Next",last:"Last",pageInputLabel:"Page {currentPage, number} of {totalPages, number}"};class s{static getPageList(t,a){if(a<=10)return[...Array(a).keys()].map((a=>{const e=a+1;return{pageNumber:e,display:String(e),current:e===t}}));if(t<=5)return[...[...Array(6).keys()].map((a=>{const e=a+1;return{pageNumber:e,display:String(e),current:e===t}})),{pageNumber:7,display:"...",current:!1},{pageNumber:a,display:String(a),current:!1}];if(t>a-5){const e=[...Array(6).keys()].map((e=>{const i=e+a-5;return{pageNumber:i,display:String(i),current:i===t}}));return[{pageNumber:1,display:"1",current:!1},{pageNumber:a-6,display:"...",current:!1},...e]}const e=[...Array(5).keys()].map((a=>{const e=a+t-2;return{pageNumber:e,display:String(e),current:e===t}}));return[{pageNumber:1,display:"1",current:!1},{pageNumber:t-3,display:"...",current:!1},...e,{pageNumber:t+3,display:"...",current:!1},{pageNumber:a,display:String(a),current:!1}]}}const g=class{constructor(e){t(this,e),this.internalcurrentpagechange=a(this,"internalcurrentpagechange",3),this.currentPage=void 0,this.totalPages=void 0,this.layout="full"}get onFirstPage(){return this.currentPage<=1}get onLastPage(){return this.currentPage>=this.totalPages}handleClickFirst(){this.internalcurrentpagechange.emit(1)}handleClickPrevious(){this.internalcurrentpagechange.emit(this.currentPage-1)}handleClickNext(){this.internalcurrentpagechange.emit(this.currentPage+1)}handleClickLast(){this.internalcurrentpagechange.emit(this.totalPages)}handleClickPage(t){this.internalcurrentpagechange.emit(t)}setPageFromInput(t){const a=parseInt(t,10);!a||isNaN(a)?this.textFieldRef.value=String(this.currentPage):this.internalcurrentpagechange.emit(a)}getPageListEnteries(t,a){return s.getPageList(t,a).reduce(((t,a)=>t.concat(e("button",a.current?{class:"gux-pagination-buttons-list-button gux-current"}:{class:"gux-pagination-buttons-list-button gux-target",onClick:()=>this.handleClickPage(a.pageNumber)},a.display))),[])}getSmallPagePicker(){return e("div",{class:"gux-pagination-buttons-spacer"})}getExpandedPagePicker(){return e("div",{class:"gux-pagination-buttons-list-container"},this.getPageListEnteries(this.currentPage,this.totalPages))}getFullPagePicker(){return e("div",{class:"gux-pagination-buttons-input-container"},e("div",null,this.i18n("page")),e("div",{class:"gux-pagination-buttons-input"},e("gux-form-field-text-like",{"label-position":"screenreader"},e("label",{slot:"label"},this.i18n("pageInputLabel",{currentPage:this.currentPage,totalPages:this.totalPages})),e("input",{type:"text",slot:"input",value:String(this.currentPage),ref:t=>this.textFieldRef=t,onChange:()=>this.setPageFromInput(this.textFieldRef.value)}))),e("div",null,this.i18n("totalPages",{totalPages:this.totalPages})))}getPagePicker(t){return"small"===t?this.getSmallPagePicker():"expanded"===t?this.getExpandedPagePicker():this.getFullPagePicker()}async componentWillLoad(){this.i18n=await n(this.root,o)}render(){return e("div",{key:"02e225cc747b05e7620cca7cf781dc32eb2dc20b",class:`gux-pagination-buttons-container gux-${this.layout}`},e("div",{key:"a4b95d7b01c768bf22d19c2a3dd01ee36f88bd1a",class:"gux-pagination-buttons-group"},e("gux-button-slot",{key:"76df04ab3210bdf33bca5316604c192431832e5d",accent:"ghost"},e("button",{key:"56c5aa4577d26484ab183ef0a3af428b8e563055",title:this.i18n("first"),disabled:this.onFirstPage,onClick:this.handleClickFirst.bind(this)},e("gux-icon",{key:"df4b8156255d36744d1d4155c02ae98b43da426c",decorative:!0,"icon-name":"fa/chevrons-left-regular"}))),e("gux-button-slot",{key:"c61febd35086ce7ecea4274cc14fe74356d2f545",accent:"ghost"},e("button",{key:"5bb93d100ec55881dbd6dd13be6e28426b7532db",title:this.i18n("previous"),disabled:this.onFirstPage,onClick:this.handleClickPrevious.bind(this)},e("gux-icon",{key:"2581fd7fb1a61799b9d4aeb7e74293409913c7ba",decorative:!0,"icon-name":"custom/chevron-left-small-regular"})))),this.getPagePicker(this.layout),e("div",{key:"ca9d527093b445a8bbabb936ae5592d3c8a8c57b",class:"gux-pagination-buttons-group"},e("gux-button-slot",{key:"28fe7492e64a31ed1518a60ec97c311df7590fe3",accent:"ghost"},e("button",{key:"9e6dc8905743cfc9858b96fc81ddfabffa3a7348",title:this.i18n("next"),disabled:this.onLastPage,onClick:this.handleClickNext.bind(this)},e("gux-icon",{key:"a1d5fc160f64161b8dbae630028ece855c5e8942",decorative:!0,"icon-name":"custom/chevron-right-small-regular"}))),e("gux-button-slot",{key:"706655f3e299d2222a7bbeed5390da52b34c424f",accent:"ghost"},e("button",{key:"67f93b4c3fbfc8ef18c551c61340e754afc04663",title:this.i18n("last"),disabled:this.onLastPage,onClick:this.handleClickLast.bind(this)},e("gux-icon",{key:"dad0d41593b3ba802e2c99e661b251ffb36bdc13",decorative:!0,"icon-name":"fa/chevrons-right-regular"})))))}get root(){return i(this)}};g.style="gux-pagination-buttons-legacy .gux-pagination-buttons-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-end;align-items:center;margin-left:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap)}gux-pagination-buttons-legacy .gux-pagination-buttons-container.gux-expanded{justify-content:center}gux-pagination-buttons-legacy .gux-pagination-buttons-container>div{flex:0 1 auto;align-self:auto;order:0}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-group{white-space:nowrap}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-input-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-input-container>div{flex:0 1 auto;align-self:auto;order:0;white-space:nowrap}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-input-container .gux-pagination-buttons-input{width:60px}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-input-container .gux-pagination-buttons-input input{width:60px;text-align:center;background-color:transparent}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button{height:32px;padding-right:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);padding-left:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);margin-right:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);margin-left:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);background:inherit;border:none}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-ui-color-focus);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:calc(var(--gse-semantic-focusOutline-sm-borderRadius) - var(--gse-semantic-focusOutline-offset))}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button.gux-current{padding-right:var(--gse-ui-dataTableItems-tablePagination-padding);padding-left:var(--gse-ui-dataTableItems-tablePagination-padding);background-color:var(--gse-ui-button-ghost-active-backgroundColor);border-radius:var(--gse-ui-button-borderRadius);font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-button-ghost-default-foregroundColor)}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button.gux-target{padding-right:var(--gse-ui-dataTableItems-tablePagination-padding);padding-left:var(--gse-ui-dataTableItems-tablePagination-padding);cursor:pointer;font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-button-ghost-default-foregroundColor)}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button.gux-target:hover{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor);border-radius:var(--gse-ui-button-borderRadius)}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-spacer{width:var(--gse-ui-dataTableItems-tablePagination-padding)}";const r={itemCountDisplay:"{firstItem, number} - {lastItem, number}",totalItems:" of {totalItems, number}"},u=class{constructor(a){t(this,a),this.totalItems=0,this.currentPage=0,this.itemsPerPage=25}get firstItem(){return this.totalItems<1?0:(this.currentPage-1)*this.itemsPerPage+1}get lastItem(){return this.totalItems<1?0:Math.min(this.currentPage*this.itemsPerPage,this.totalItems)}async componentWillLoad(){this.i18n=await n(this.root,r)}render(){return e("div",{key:"7409beacbcc84005ee3e85ebc4766d48a45b7fb0",class:"gux-pagination-item-counts-container"},e("span",{key:"3b7f37cc0935347ef5191bc3f88655ab0523f575",class:"gux-pagination-item-counts-range"},this.i18n("itemCountDisplay",{firstItem:this.firstItem,lastItem:this.lastItem})),e("span",{key:"1db48dbff49cd646a97f9aebb1a05bc8aa82abc1"},this.i18n("totalItems",{totalItems:this.totalItems})))}get root(){return i(this)}};u.style="gux-pagination-item-counts-legacy .gux-pagination-item-counts-container{display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);white-space:nowrap}";const l={perPage:"per page",itemsPerPage:"Items per page",rangeSelected:"Items per page dropdown, {range} selected"},c=class{constructor(e){t(this,e),this.internalitemsperpagechange=a(this,"internalitemsperpagechange",3),this.itemsPerPage=25}handleChange(t){t.stopPropagation();const a=parseInt(this.dropdownElement.value,10);this.internalitemsperpagechange.emit(a)}async componentWillLoad(){this.i18n=await n(this.root,l)}getDropdown(){return e("gux-dropdown",{ref:t=>this.dropdownElement=t,value:`${this.itemsPerPage}`,"aria-label":this.i18n("rangeSelected",{range:this.itemsPerPage})},e("gux-listbox",{"aria-label":this.i18n("itemsPerPage")},e("gux-option",{value:"25"},"25"),e("gux-option",{value:"50"},"50"),e("gux-option",{value:"75"},"75"),e("gux-option",{value:"100"},"100")))}render(){return e("div",{key:"8cc8d4db80703f18502c9414160e236a93c576e7",class:"gux-pagination-items-per-page-container"},e("div",{key:"d60b4b3a899c9c110350b3b38454b679fdb5176b",class:"gux-pagination-items-per-page-picker"},this.getDropdown()),e("div",{key:"d977d4271382983899c8f417862e556c4d7add24",class:"gux-pagination-per-page"},this.i18n("perPage")))}get root(){return i(this)}};c.style="gux-pagination-items-per-page-legacy .gux-pagination-items-per-page-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-items-per-page-legacy .gux-pagination-items-per-page-container>div{flex:0 1 auto;align-self:auto;order:0;white-space:nowrap}gux-pagination-items-per-page-legacy .gux-pagination-items-per-page-container .gux-pagination-items-per-page-picker gux-dropdown{display:inline-block;width:64px}gux-pagination-items-per-page-legacy .gux-pagination-items-per-page-container .gux-pagination-per-page{font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor)}";export{g as gux_pagination_buttons_legacy,u as gux_pagination_item_counts_legacy,c as gux_pagination_items_per_page_legacy}
1
+ import{r as t,c as a,h as e,g as i}from"./p-ffb7c9dc.js";import{b as n}from"./p-cfeaf436.js";import"./p-4202e9f2.js";const o={page:"Page",totalPages:" of {totalPages, number}",first:"First",previous:"Previous",next:"Next",last:"Last",pageInputLabel:"Page {currentPage, number} of {totalPages, number}"};class s{static getPageList(t,a){if(a<=10)return[...Array(a).keys()].map((a=>{const e=a+1;return{pageNumber:e,display:String(e),current:e===t}}));if(t<=5)return[...[...Array(6).keys()].map((a=>{const e=a+1;return{pageNumber:e,display:String(e),current:e===t}})),{pageNumber:7,display:"...",current:!1},{pageNumber:a,display:String(a),current:!1}];if(t>a-5){const e=[...Array(6).keys()].map((e=>{const i=e+a-5;return{pageNumber:i,display:String(i),current:i===t}}));return[{pageNumber:1,display:"1",current:!1},{pageNumber:a-6,display:"...",current:!1},...e]}const e=[...Array(5).keys()].map((a=>{const e=a+t-2;return{pageNumber:e,display:String(e),current:e===t}}));return[{pageNumber:1,display:"1",current:!1},{pageNumber:t-3,display:"...",current:!1},...e,{pageNumber:t+3,display:"...",current:!1},{pageNumber:a,display:String(a),current:!1}]}}const g=class{constructor(e){t(this,e),this.internalcurrentpagechange=a(this,"internalcurrentpagechange",3),this.currentPage=void 0,this.totalPages=void 0,this.layout="full"}get onFirstPage(){return this.currentPage<=1}get onLastPage(){return this.currentPage>=this.totalPages}handleClickFirst(){this.internalcurrentpagechange.emit(1)}handleClickPrevious(){this.internalcurrentpagechange.emit(this.currentPage-1)}handleClickNext(){this.internalcurrentpagechange.emit(this.currentPage+1)}handleClickLast(){this.internalcurrentpagechange.emit(this.totalPages)}handleClickPage(t){this.internalcurrentpagechange.emit(t)}setPageFromInput(t){const a=parseInt(t,10);!a||isNaN(a)?this.textFieldRef.value=String(this.currentPage):this.internalcurrentpagechange.emit(a)}getPageListEnteries(t,a){return s.getPageList(t,a).reduce(((t,a)=>t.concat(e("button",a.current?{class:"gux-pagination-buttons-list-button gux-current"}:{class:"gux-pagination-buttons-list-button gux-target",onClick:()=>this.handleClickPage(a.pageNumber)},a.display))),[])}getSmallPagePicker(){return e("div",{class:"gux-pagination-buttons-spacer"})}getExpandedPagePicker(){return e("div",{class:"gux-pagination-buttons-list-container"},this.getPageListEnteries(this.currentPage,this.totalPages))}getFullPagePicker(){return e("div",{class:"gux-pagination-buttons-input-container"},e("div",null,this.i18n("page")),e("div",{class:"gux-pagination-buttons-input"},e("gux-form-field-text-like",{"label-position":"screenreader"},e("label",{slot:"label"},this.i18n("pageInputLabel",{currentPage:this.currentPage,totalPages:this.totalPages})),e("input",{type:"text",slot:"input",value:String(this.currentPage),ref:t=>this.textFieldRef=t,onChange:()=>this.setPageFromInput(this.textFieldRef.value)}))),e("div",null,this.i18n("totalPages",{totalPages:this.totalPages})))}getPagePicker(t){return"small"===t?this.getSmallPagePicker():"expanded"===t?this.getExpandedPagePicker():this.getFullPagePicker()}async componentWillLoad(){this.i18n=await n(this.root,o)}render(){return e("div",{key:"35c275d1a2608b85a7141ef1dc510ab8e594743f",class:`gux-pagination-buttons-container gux-${this.layout}`},e("div",{key:"2d4c1520162d6f9bc72580d1f5ba6c7b4a5240a1",class:"gux-pagination-buttons-group"},e("gux-button-slot",{key:"f0f3767a986cb7f6ce60664db50320e4a1e20b8b",accent:"ghost"},e("button",{key:"490294626a841f56b522dcd39215805bb77a6bc4",title:this.i18n("first"),disabled:this.onFirstPage,onClick:this.handleClickFirst.bind(this)},e("gux-icon",{key:"96fe0d712051d6677bbd18ee7b93dd58073be3fb",decorative:!0,"icon-name":"fa/chevrons-left-regular"}))),e("gux-button-slot",{key:"38b5ad9d621040245e3ea1c9ce07081deb300128",accent:"ghost"},e("button",{key:"cc587c7c3985f18e6fb62f826f1e41a873caf4bf",title:this.i18n("previous"),disabled:this.onFirstPage,onClick:this.handleClickPrevious.bind(this)},e("gux-icon",{key:"d6f1d435bd95634171b3692bc6e1c82ad5bf995b",decorative:!0,"icon-name":"custom/chevron-left-small-regular"})))),this.getPagePicker(this.layout),e("div",{key:"e09200135440513915c0961e585d800e97d48d77",class:"gux-pagination-buttons-group"},e("gux-button-slot",{key:"7db272bd5f4a2ffa3c640887d828d0b682991868",accent:"ghost"},e("button",{key:"c73a8c9fe0fa79a3529a4d957df7a204d6e9eb60",title:this.i18n("next"),disabled:this.onLastPage,onClick:this.handleClickNext.bind(this)},e("gux-icon",{key:"09f913cf5962fc38ba10b6c12d62b351efbe8a43",decorative:!0,"icon-name":"custom/chevron-right-small-regular"}))),e("gux-button-slot",{key:"857857ea037260e024bd5b66ce4b5fd2f9b2a497",accent:"ghost"},e("button",{key:"d626cca53cc515c79a1b10b4eae8e97c2703bb77",title:this.i18n("last"),disabled:this.onLastPage,onClick:this.handleClickLast.bind(this)},e("gux-icon",{key:"b7afbfb871db77f39b1a136124cf23b85dac98be",decorative:!0,"icon-name":"fa/chevrons-right-regular"})))))}get root(){return i(this)}};g.style="gux-pagination-buttons-legacy .gux-pagination-buttons-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-end;align-items:center;margin-left:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap)}gux-pagination-buttons-legacy .gux-pagination-buttons-container.gux-expanded{justify-content:center}gux-pagination-buttons-legacy .gux-pagination-buttons-container>div{flex:0 1 auto;align-self:auto;order:0}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-group{white-space:nowrap}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-input-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-input-container>div{flex:0 1 auto;align-self:auto;order:0;white-space:nowrap}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-input-container .gux-pagination-buttons-input{width:60px}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-input-container .gux-pagination-buttons-input input{width:60px;text-align:center;background-color:transparent}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button{height:32px;padding-right:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);padding-left:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);margin-right:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);margin-left:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);background:inherit;border:none}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-ui-color-focus);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:calc(var(--gse-semantic-focusOutline-sm-borderRadius) - var(--gse-semantic-focusOutline-offset))}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button.gux-current{padding-right:var(--gse-ui-dataTableItems-tablePagination-padding);padding-left:var(--gse-ui-dataTableItems-tablePagination-padding);background-color:var(--gse-ui-button-ghost-active-backgroundColor);border-radius:var(--gse-ui-button-borderRadius);font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-button-ghost-default-foregroundColor)}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button.gux-target{padding-right:var(--gse-ui-dataTableItems-tablePagination-padding);padding-left:var(--gse-ui-dataTableItems-tablePagination-padding);cursor:pointer;font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-button-ghost-default-foregroundColor)}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button.gux-target:hover{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor);border-radius:var(--gse-ui-button-borderRadius)}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-spacer{width:var(--gse-ui-dataTableItems-tablePagination-padding)}";const r={itemCountDisplay:"{firstItem, number} - {lastItem, number}",totalItems:" of {totalItems, number}"},u=class{constructor(a){t(this,a),this.totalItems=0,this.currentPage=0,this.itemsPerPage=25}get firstItem(){return this.totalItems<1?0:(this.currentPage-1)*this.itemsPerPage+1}get lastItem(){return this.totalItems<1?0:Math.min(this.currentPage*this.itemsPerPage,this.totalItems)}async componentWillLoad(){this.i18n=await n(this.root,r)}render(){return e("div",{key:"2fcfb5a0eed431432f1fc6ba906375ad86d10658",class:"gux-pagination-item-counts-container"},e("span",{key:"82248452c368ee1031eddabfd0edea44fa58022a",class:"gux-pagination-item-counts-range"},this.i18n("itemCountDisplay",{firstItem:this.firstItem,lastItem:this.lastItem})),e("span",{key:"38f6da2da9a4f6caeaafebbe323eed7b4e00105c"},this.i18n("totalItems",{totalItems:this.totalItems})))}get root(){return i(this)}};u.style="gux-pagination-item-counts-legacy .gux-pagination-item-counts-container{display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);white-space:nowrap}";const l={perPage:"per page",itemsPerPage:"Items per page",rangeSelected:"Items per page dropdown, {range} selected"},c=class{constructor(e){t(this,e),this.internalitemsperpagechange=a(this,"internalitemsperpagechange",3),this.itemsPerPage=25}handleChange(t){t.stopPropagation();const a=parseInt(this.dropdownElement.value,10);this.internalitemsperpagechange.emit(a)}async componentWillLoad(){this.i18n=await n(this.root,l)}getDropdown(){return e("gux-dropdown",{ref:t=>this.dropdownElement=t,value:`${this.itemsPerPage}`,"aria-label":this.i18n("rangeSelected",{range:this.itemsPerPage})},e("gux-listbox",{"aria-label":this.i18n("itemsPerPage")},e("gux-option",{value:"25"},"25"),e("gux-option",{value:"50"},"50"),e("gux-option",{value:"75"},"75"),e("gux-option",{value:"100"},"100")))}render(){return e("div",{key:"7a95dcb6e8a98371c25189e82cedeffd0dcba6af",class:"gux-pagination-items-per-page-container"},e("div",{key:"b059c43814c8e9d4efc6eb99f5fd7443936be897",class:"gux-pagination-items-per-page-picker"},this.getDropdown()),e("div",{key:"064d597f189ed48a16d4105bc09c94822bf9f597",class:"gux-pagination-per-page"},this.i18n("perPage")))}get root(){return i(this)}};c.style="gux-pagination-items-per-page-legacy .gux-pagination-items-per-page-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-items-per-page-legacy .gux-pagination-items-per-page-container>div{flex:0 1 auto;align-self:auto;order:0;white-space:nowrap}gux-pagination-items-per-page-legacy .gux-pagination-items-per-page-container .gux-pagination-items-per-page-picker gux-dropdown{display:inline-block;width:64px}gux-pagination-items-per-page-legacy .gux-pagination-items-per-page-container .gux-pagination-per-page{font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor)}";export{g as gux_pagination_buttons_legacy,u as gux_pagination_item_counts_legacy,c as gux_pagination_items_per_page_legacy}
@@ -1 +1 @@
1
- import{r as t,d as s,w as i,h as e,g as o}from"./p-086c5088.js";import{a as l}from"./p-cf0e7d3b.js";import{b as r}from"./p-d15985f1.js";import{O as a}from"./p-e07238b5.js";import"./p-4202e9f2.js";const n={scrollLeft:"Scroll Left",scrollRight:"Scroll Right",scrollUp:"Scroll Up",scrollDown:"Scroll Down"};const c=class{constructor(s){t(this,s),this.currentScrollIndex=0,this.focused=0,this.tabTriggers=void 0,this.hasHorizontalScrollbar=!1,this.hasVerticalScrollbar=!1,this.isScrolledToBeginning=!1,this.isScrolledToEnd=!1}onFocusout(t){this.root.contains(t.relatedTarget)||this.tabTriggers.forEach(((t,s)=>{t.guxGetActive().then((i=>{i?this.focused=s:t.querySelector("button").setAttribute("tabindex","-1")}))}))}onHasVerticalScrollBar(){this.checkDisabledScrollButtons()}onScroll(){this.checkDisabledScrollButtons()}onKeydown(t){switch(t.key){case"ArrowRight":case"ArrowDown":t.preventDefault(),this.handleKeyboardScroll("forward");break;case"ArrowLeft":case"ArrowUp":t.preventDefault(),this.handleKeyboardScroll("backward");break;case"Escape":t.preventDefault(),this.focusTab(this.focused);break;case"Home":t.preventDefault(),this.focusTab(0);break;case"End":t.preventDefault(),this.focusTab(this.tabTriggers.length-1)}}onMutation(){this.setTabTriggers()}async guxSetActive(t){this.tabTriggers.forEach(((s,i)=>{const e=s.tabId===t;s.guxSetActive(e),e&&(this.focused=i)}))}focusTab(t){this.focused=t,this.tabTriggers.forEach(((t,s)=>{t.guxGetActive().then((i=>{this.focused===s||i||t.querySelector("button").setAttribute("tabindex","-1")}))})),this.tabTriggers[this.focused].querySelector("button").setAttribute("tabindex","0"),this.tabTriggers[this.focused].guxFocus()}setTabTriggers(){this.tabTriggers=this.root.querySelectorAll("gux-tab:not([gux-disabled])"),this.triggerIds=this.tabTriggers?Array.from(this.tabTriggers).map((t=>`gux-${t.getAttribute("tab-id")}-tab`)).join(" "):""}checkForScrollbarHideOrShow(){s((()=>{const t=this.root.querySelector(".gux-scrollable-section"),s=t.clientWidth<t.scrollWidth,i=t.clientHeight<t.scrollHeight;s!==this.hasHorizontalScrollbar&&(this.hasHorizontalScrollbar=s),i!==this.hasVerticalScrollbar&&(this.hasVerticalScrollbar=i),this.checkDisabledScrollButtons()}))}handleKeyboardScroll(t){const s=this.root.querySelector(".gux-scrollable-section");"forward"===t?this.focused<this.tabTriggers.length-1?(i((()=>{this.hasHorizontalScrollbar?this.scrollRight():this.scrollDown()})),this.focusTab(this.focused+1)):(i((()=>{this.hasHorizontalScrollbar?s.scrollBy(-s.scrollWidth,0):s.scrollBy(0,-s.scrollHeight)})),this.focusTab(0)):"backward"===t&&(this.focused>0?(i((()=>{this.hasHorizontalScrollbar?this.scrollLeft():this.scrollUp()})),this.focusTab(this.focused-1)):(i((()=>{this.hasHorizontalScrollbar?s.scrollBy(s.scrollWidth,0):s.scrollBy(0,s.scrollHeight)})),this.focusTab(this.tabTriggers.length-1)))}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.unobserve(this.root.querySelector(".gux-tab-container")),this.domObserver&&this.domObserver.disconnect()}async componentWillLoad(){this.setTabTriggers(),this.i18n=await r(this.root,n,"gux-tabs")}componentDidLoad(){!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkForScrollbarHideOrShow()))),this.resizeObserver&&this.resizeObserver.observe(this.root.querySelector(".gux-scrollable-section")),!this.domObserver&&window.MutationObserver&&(this.domObserver=new MutationObserver((()=>this.checkForScrollbarHideOrShow()))),this.domObserver&&this.domObserver.observe(this.root,{childList:!0,attributes:!1,subtree:!0}),l((()=>{this.checkForScrollbarHideOrShow()}),500)}checkDisabledScrollButtons(){const t=this.root.querySelector(".gux-scrollable-section");if(this.hasHorizontalScrollbar){const s=t.scrollLeft,i=t.scrollWidth-t.clientWidth;this.isScrolledToBeginning=0===s,this.isScrolledToEnd=i-s==0}else{const s=t.scrollTop,i=t.scrollHeight-t.clientHeight;this.isScrolledToBeginning=0===s,this.isScrolledToEnd=i-s==0}}getTabLength(){var t;return null===(t=this.tabTriggers[this.currentScrollIndex])||void 0===t?void 0:t.scrollWidth}scrollLeft(){i((()=>{this.currentScrollIndex=this.isScrolledToEnd?this.tabTriggers.length-1:this.currentScrollIndex-1,this.root.querySelector(".gux-scrollable-section").scrollBy(-this.getTabLength(),0)}))}scrollRight(){i((()=>{this.isScrolledToBeginning&&(this.currentScrollIndex=0),this.root.querySelector(".gux-scrollable-section").scrollBy(this.getTabLength(),0),this.currentScrollIndex=this.currentScrollIndex+1}))}scrollUp(){i((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(0,-this.tabTriggers[this.focused].clientHeight)}))}scrollDown(){i((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(0,this.tabTriggers[this.focused].clientHeight)}))}render(){return e("div",{key:"4e99e1a70a941201cb376fa12f6ba04a233dd9bc",class:"gux-tab-container"},this.renderScrollButton(this.hasHorizontalScrollbar?"scrollLeft":"scrollUp"),e("div",{key:"66557f755a0f44bd80723a419c75e5fc44bf67e2",role:"tablist",class:"gux-scrollable-section","aria-owns":this.triggerIds},e("slot",{key:"f9116a2c1f63111dcbe1e13f4ee5f0e63ae0dde5"})),this.renderScrollButton(this.hasHorizontalScrollbar?"scrollRight":"scrollDown"))}renderScrollButton(t){return e("div",{class:"gux-scroll-button-container"},this.hasHorizontalScrollbar||this.hasVerticalScrollbar?e("gux-button-slot",{accent:"ghost","icon-only":!0},e("button",{class:"gux-scroll-button",disabled:this.getButtonDisabled(t),tabindex:"-1",title:this.i18n(t),"aria-label":this.i18n(t),onClick:()=>this.getScrollDirection(t)},e("gux-icon",{"icon-name":this.getChevronIconName(t),decorative:!0,size:"small"}))):null)}getButtonDisabled(t){switch(t){case"scrollLeft":case"scrollUp":return this.isScrolledToBeginning;case"scrollRight":case"scrollDown":return this.isScrolledToEnd}}getScrollDirection(t){switch(t){case"scrollLeft":this.scrollLeft();break;case"scrollRight":this.scrollRight();break;case"scrollUp":this.scrollUp();break;case"scrollDown":this.scrollDown()}}getChevronIconName(t){switch(t){case"scrollLeft":return"custom/chevron-left-small-regular";case"scrollRight":return"custom/chevron-right-small-regular";case"scrollUp":return"custom/chevron-up-small-regular";case"scrollDown":return"custom/chevron-down-small-regular"}}get root(){return o(this)}};(function(t,s,i,e){var o,l=arguments.length,r=l<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,i,e);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(l<3?o(r):l>3?o(s,i,r):o(s,i))||r);l>3&&r&&Object.defineProperty(s,i,r)})([a({childList:!0,subtree:!0})],c.prototype,"onMutation",null),c.style="gux-tabs[orientation=vertical]{block-size:100%}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container{display:flex;flex-direction:column;inline-size:var(--gse-ui-tabs-set-vertical-width);block-size:100%;margin-inline-end:var(--gse-ui-tabs-set-vertical-marginRight);border-inline-end:var(--gse-ui-tabs-item-divider-horizontal-height) solid var(--gse-ui-tabs-item-divider-dividerColor)}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container .gux-scroll-button-container{inline-size:100%}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container .gux-scroll-button-container button{inline-size:100%}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container .gux-scrollable-section{flex-direction:column;block-size:100%;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container .gux-scrollable-section::-webkit-scrollbar{inline-size:0;block-size:0}gux-tabs:not([orientation=vertical])>gux-tab-list .gux-tab-container{block-size:var(--gse-ui-tabs-set-horizontal-height);margin-block-end:var(--gse-ui-tabs-set-horizontal-marginBottom);border-block-end:var(--gse-ui-tabs-item-divider-horizontal-height) solid var(--gse-ui-tabs-item-divider-dividerColor)}gux-tabs:not([orientation=vertical])>gux-tab-list .gux-scrollable-section{overflow-x:auto}gux-tabs .gux-tab-container{box-sizing:content-box;display:flex;inline-size:100%;overflow:hidden;background-color:transparent}gux-tabs .gux-scrollable-section{display:flex;flex:1 1 auto;scroll-behavior:smooth;scrollbar-width:none}gux-tabs .gux-scrollable-section::-webkit-scrollbar{block-size:0}gux-tabs .gux-scroll-button-container{display:flex;align-items:center;justify-content:center;background-color:var(--gse-ui-advancedTabs-set-backgroundColor);border-radius:var(--gse-ui-button-borderRadius)}gux-tabs .gux-scroll-button-container gux-button-slot{inline-size:100%;block-size:100%}gux-tabs .gux-scroll-button-container button{display:flex;align-items:center;justify-content:center;block-size:100%}";export{c as gux_tab_list}
1
+ import{r as t,d as s,w as i,h as e,g as o}from"./p-ffb7c9dc.js";import{a as l}from"./p-cf0e7d3b.js";import{b as r}from"./p-cfeaf436.js";import{O as a}from"./p-166634e1.js";import"./p-4202e9f2.js";const c={scrollLeft:"Scroll Left",scrollRight:"Scroll Right",scrollUp:"Scroll Up",scrollDown:"Scroll Down"};const n=class{constructor(s){t(this,s),this.currentScrollIndex=0,this.focused=0,this.tabTriggers=void 0,this.hasHorizontalScrollbar=!1,this.hasVerticalScrollbar=!1,this.isScrolledToBeginning=!1,this.isScrolledToEnd=!1}onFocusout(t){this.root.contains(t.relatedTarget)||this.tabTriggers.forEach(((t,s)=>{t.guxGetActive().then((i=>{i?this.focused=s:t.querySelector("button").setAttribute("tabindex","-1")}))}))}onHasVerticalScrollBar(){this.checkDisabledScrollButtons()}onScroll(){this.checkDisabledScrollButtons()}onKeydown(t){switch(t.key){case"ArrowRight":case"ArrowDown":t.preventDefault(),this.handleKeyboardScroll("forward");break;case"ArrowLeft":case"ArrowUp":t.preventDefault(),this.handleKeyboardScroll("backward");break;case"Escape":t.preventDefault(),this.focusTab(this.focused);break;case"Home":t.preventDefault(),this.focusTab(0);break;case"End":t.preventDefault(),this.focusTab(this.tabTriggers.length-1)}}onMutation(){this.setTabTriggers()}async guxSetActive(t){this.tabTriggers.forEach(((s,i)=>{const e=s.tabId===t;s.guxSetActive(e),e&&(this.focused=i)}))}focusTab(t){this.focused=t,this.tabTriggers.forEach(((t,s)=>{t.guxGetActive().then((i=>{this.focused===s||i||t.querySelector("button").setAttribute("tabindex","-1")}))})),this.tabTriggers[this.focused].querySelector("button").setAttribute("tabindex","0"),this.tabTriggers[this.focused].guxFocus()}setTabTriggers(){this.tabTriggers=this.root.querySelectorAll("gux-tab:not([gux-disabled])"),this.triggerIds=this.tabTriggers?Array.from(this.tabTriggers).map((t=>`gux-${t.getAttribute("tab-id")}-tab`)).join(" "):""}checkForScrollbarHideOrShow(){s((()=>{const t=this.root.querySelector(".gux-scrollable-section"),s=t.clientWidth<t.scrollWidth,i=t.clientHeight<t.scrollHeight;s!==this.hasHorizontalScrollbar&&(this.hasHorizontalScrollbar=s),i!==this.hasVerticalScrollbar&&(this.hasVerticalScrollbar=i),this.checkDisabledScrollButtons()}))}handleKeyboardScroll(t){const s=this.root.querySelector(".gux-scrollable-section");"forward"===t?this.focused<this.tabTriggers.length-1?(i((()=>{this.hasHorizontalScrollbar?this.scrollRight():this.scrollDown()})),this.focusTab(this.focused+1)):(i((()=>{this.hasHorizontalScrollbar?s.scrollBy(-s.scrollWidth,0):s.scrollBy(0,-s.scrollHeight)})),this.focusTab(0)):"backward"===t&&(this.focused>0?(i((()=>{this.hasHorizontalScrollbar?this.scrollLeft():this.scrollUp()})),this.focusTab(this.focused-1)):(i((()=>{this.hasHorizontalScrollbar?s.scrollBy(s.scrollWidth,0):s.scrollBy(0,s.scrollHeight)})),this.focusTab(this.tabTriggers.length-1)))}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.unobserve(this.root.querySelector(".gux-tab-container")),this.domObserver&&this.domObserver.disconnect()}async componentWillLoad(){this.setTabTriggers(),this.i18n=await r(this.root,c,"gux-tabs")}componentDidLoad(){!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkForScrollbarHideOrShow()))),this.resizeObserver&&this.resizeObserver.observe(this.root.querySelector(".gux-scrollable-section")),!this.domObserver&&window.MutationObserver&&(this.domObserver=new MutationObserver((()=>this.checkForScrollbarHideOrShow()))),this.domObserver&&this.domObserver.observe(this.root,{childList:!0,attributes:!1,subtree:!0}),l((()=>{this.checkForScrollbarHideOrShow()}),500)}checkDisabledScrollButtons(){const t=this.root.querySelector(".gux-scrollable-section");if(this.hasHorizontalScrollbar){const s=t.scrollLeft,i=t.scrollWidth-t.clientWidth;this.isScrolledToBeginning=0===s,this.isScrolledToEnd=i-s==0}else{const s=t.scrollTop,i=t.scrollHeight-t.clientHeight;this.isScrolledToBeginning=0===s,this.isScrolledToEnd=i-s==0}}getTabLength(){var t;return null===(t=this.tabTriggers[this.currentScrollIndex])||void 0===t?void 0:t.scrollWidth}scrollLeft(){i((()=>{this.currentScrollIndex=this.isScrolledToEnd?this.tabTriggers.length-1:this.currentScrollIndex-1,this.root.querySelector(".gux-scrollable-section").scrollBy(-this.getTabLength(),0)}))}scrollRight(){i((()=>{this.isScrolledToBeginning&&(this.currentScrollIndex=0),this.root.querySelector(".gux-scrollable-section").scrollBy(this.getTabLength(),0),this.currentScrollIndex=this.currentScrollIndex+1}))}scrollUp(){i((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(0,-this.tabTriggers[this.focused].clientHeight)}))}scrollDown(){i((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(0,this.tabTriggers[this.focused].clientHeight)}))}render(){return e("div",{key:"13462fdc74b99320baa46513d2f362a8f9243944",class:"gux-tab-container"},this.renderScrollButton(this.hasHorizontalScrollbar?"scrollLeft":"scrollUp"),e("div",{key:"69b9ffc0961c601edb6ba44a88d9fcf7d9ff50b8",role:"tablist",class:"gux-scrollable-section","aria-owns":this.triggerIds},e("slot",{key:"b74735a55130d0842b08d0d9decf310050b37cc0"})),this.renderScrollButton(this.hasHorizontalScrollbar?"scrollRight":"scrollDown"))}renderScrollButton(t){return e("div",{class:"gux-scroll-button-container"},this.hasHorizontalScrollbar||this.hasVerticalScrollbar?e("gux-button-slot",{accent:"ghost","icon-only":!0},e("button",{class:"gux-scroll-button",disabled:this.getButtonDisabled(t),tabindex:"-1",title:this.i18n(t),"aria-label":this.i18n(t),onClick:()=>this.getScrollDirection(t)},e("gux-icon",{"icon-name":this.getChevronIconName(t),decorative:!0,size:"small"}))):null)}getButtonDisabled(t){switch(t){case"scrollLeft":case"scrollUp":return this.isScrolledToBeginning;case"scrollRight":case"scrollDown":return this.isScrolledToEnd}}getScrollDirection(t){switch(t){case"scrollLeft":this.scrollLeft();break;case"scrollRight":this.scrollRight();break;case"scrollUp":this.scrollUp();break;case"scrollDown":this.scrollDown()}}getChevronIconName(t){switch(t){case"scrollLeft":return"custom/chevron-left-small-regular";case"scrollRight":return"custom/chevron-right-small-regular";case"scrollUp":return"custom/chevron-up-small-regular";case"scrollDown":return"custom/chevron-down-small-regular"}}get root(){return o(this)}};(function(t,s,i,e){var o,l=arguments.length,r=l<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,i,e);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(l<3?o(r):l>3?o(s,i,r):o(s,i))||r);l>3&&r&&Object.defineProperty(s,i,r)})([a({childList:!0,subtree:!0})],n.prototype,"onMutation",null),n.style="gux-tabs[orientation=vertical]{block-size:100%}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container{display:flex;flex-direction:column;inline-size:var(--gse-ui-tabs-set-vertical-width);block-size:100%;margin-inline-end:var(--gse-ui-tabs-set-vertical-marginRight);border-inline-end:var(--gse-ui-tabs-item-divider-horizontal-height) solid var(--gse-ui-tabs-item-divider-dividerColor)}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container .gux-scroll-button-container{inline-size:100%}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container .gux-scroll-button-container button{inline-size:100%}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container .gux-scrollable-section{flex-direction:column;block-size:100%;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container .gux-scrollable-section::-webkit-scrollbar{inline-size:0;block-size:0}gux-tabs:not([orientation=vertical])>gux-tab-list .gux-tab-container{block-size:var(--gse-ui-tabs-set-horizontal-height);margin-block-end:var(--gse-ui-tabs-set-horizontal-marginBottom);border-block-end:var(--gse-ui-tabs-item-divider-horizontal-height) solid var(--gse-ui-tabs-item-divider-dividerColor)}gux-tabs:not([orientation=vertical])>gux-tab-list .gux-scrollable-section{overflow-x:auto}gux-tabs .gux-tab-container{box-sizing:content-box;display:flex;inline-size:100%;overflow:hidden;background-color:transparent}gux-tabs .gux-scrollable-section{display:flex;flex:1 1 auto;scroll-behavior:smooth;scrollbar-width:none}gux-tabs .gux-scrollable-section::-webkit-scrollbar{block-size:0}gux-tabs .gux-scroll-button-container{display:flex;align-items:center;justify-content:center;background-color:var(--gse-ui-advancedTabs-set-backgroundColor);border-radius:var(--gse-ui-button-borderRadius)}gux-tabs .gux-scroll-button-container gux-button-slot{inline-size:100%;block-size:100%}gux-tabs .gux-scroll-button-container button{display:flex;align-items:center;justify-content:center;block-size:100%}";export{n as gux_tab_list}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i,H as e,g as r}from"./p-ffb7c9dc.js";import{t as o}from"./p-db306845.js";import{p as h,n,f as a,l as c}from"./p-8d73b418.js";const l=["gux-rich-style-list-item","gux-rich-highlight-list-item","gux-rich-text-editor-sub-list"],g=class{constructor(i){t(this,i),this.internallistitemsupdated=s(this,"internallistitemsupdated",7),this.value=void 0,this.listItems=[]}get listItemsSlot(){return this.root.querySelector("slot")}get listItemElements(){var t;const s=null===(t=this.listItemsSlot)||void 0===t?void 0:t.assignedElements();return s?Array.from(s):[]}handleHighlighItemsNavigation(){if(this.listItemsSlot){const t=this.listItemsSlot.assignedElements().find((t=>"gux-rich-highlight-list-item"===t.tagName.toLowerCase()));t&&(t.shadowRoot.querySelector("button").tabIndex=0)}}setListItems(){this.listItems=this.listItemElements,this.internallistitemsupdated.emit()}async componentWillLoad(){o(this.root),this.setListItems(),this.handleHighlighItemsNavigation()}onKeyDown(t){const s=t.target;if(!s)return;const i={ArrowUp:()=>h(this.root,l),ArrowDown:()=>n(this.root,l),Home:()=>a(this.root,l),End:()=>c(this.root,l)};s.matches("gux-rich-highlight-list-item")&&Object.assign(i,{ArrowLeft:()=>h(this.root,l),ArrowRight:()=>n(this.root,l)});const e=i[t.key];e&&(t.preventDefault(),e())}async guxFocusFirstItem(){a(this.root,l)}async guxFocusLastItem(){c(this.root,l)}render(){return i(e,{key:"61a6b27bba3f4b2f0d7a773e8dfcb9096c915ef6",role:"list"},i("slot",{key:"9bdb11b67705953e6d39b7075cfcd6226f58cc91",onSlotchange:()=>this.setListItems()}))}static get delegatesFocus(){return!0}get root(){return r(this)}};g.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;padding:var(--gse-ui-menu-padding)}";export{g as gux_rich_text_editor_list}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as a,H as i,g as h}from"./p-ffb7c9dc.js";import{t as e}from"./p-db306845.js";const c=class{constructor(a){t(this,a),this.guxactivetabchange=s(this,"guxactivetabchange",7),this.tabList=void 0,this.tabPanels=[],this.activeTab=void 0}watchActiveTab(t){this.activateTab(t,this.tabList,this.tabPanels),this.guxactivetabchange.emit(t)}onInternalActivateTabPanel(t){t.stopPropagation(),this.activateTab(t.detail,this.tabList,this.tabPanels)}async guxActivate(t){this.activateTab(t,this.tabList,this.tabPanels)}onSlotchange(){const[t,s]=Array.from(this.root.shadowRoot.querySelectorAll("slot"));this.tabList=t.assignedElements()[0],this.tabPanels=s.assignedElements(),this.activateTab(this.activeTab,this.tabList,this.tabPanels)}activateTab(t,s,a){var i;this.activeTab=t||(null===(i=null==s?void 0:s.querySelector("gux-tab-advanced"))||void 0===i?void 0:i.getAttribute("tab-id")),s.guxSetActive(this.activeTab),a.forEach((t=>{t.guxSetActive(t.tabId===this.activeTab)}))}componentWillLoad(){e(this.root)}render(){return a(i,{key:"8489887290e0f9a6b2b5c73ea5a4afbb0fba4d9e"},a("slot",{key:"385185d1a6c25cddb230be2f8ab777e4d336bfe9",name:"tab-list"}),a("slot",{key:"9c35d8ac5108608a92702f78f83ec1f907d41788",onSlotchange:this.onSlotchange.bind(this)}))}get root(){return h(this)}static get watchers(){return{activeTab:["watchActiveTab"]}}};export{c as gux_tabs_advanced}
@@ -1 +1 @@
1
- import{r as e,h as r,g as a}from"./p-086c5088.js";import{b as i}from"./p-d15985f1.js";import{t as o}from"./p-e0de3453.js";import"./p-4202e9f2.js";const t={info:"Information alert with message",success:"Success alert with message",warning:"Warning alert with message",error:"Error alert with message"},s=class{constructor(r){e(this,r),this.accent="info"}getIcon(e){switch(e){case"info":default:return"fa/circle-info-solid";case"success":return"fa/circle-check-solid";case"warning":return"fa/triangle-exclamation-solid";case"error":return"fa/hexagon-exclamation-solid"}}async componentWillLoad(){o(this.root,{variant:this.accent}),this.i18n=await i(this.root,t)}render(){return r("div",{key:"b83e6e5a2e42b9fa37ee5ddcf5c4ddea513f876d",class:{"gux-inline-alert":!0,[`gux-${this.accent}`]:!0}},r("div",{key:"bbde20112a55a4b1393ba20877f04e63ea21ea4b",class:"gux-message-wrapper"},r("gux-icon",{key:"b1850d2cf494d71f4eef2a2a30dcdc43bc8d4ab7","icon-name":this.getIcon(this.accent),decorative:!0}),r("gux-screen-reader-beta",{key:"a640e941802094cac9bf9c0bc911b25d85491247"},this.i18n(this.accent)),r("div",{key:"5cbccf2de793d2d3725475343bc00a320957911e",class:"gux-content"},r("slot",{key:"e625a10d875103c9409490fc874c143751461153",name:"content"},r("slot",{key:"9422a6af2040e632df592a84cdc6acd758af3163"})))))}get root(){return a(this)}};s.style=":host{display:flex;inline-size:fit-content}.gux-inline-alert{display:inline-flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;padding:var(--gse-ui-alert-padding);border:1px solid;border-radius:var(--gse-ui-alert-borderRadius)}.gux-inline-alert gux-icon{flex-shrink:0;align-self:flex-start;inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size);margin-block-start:1px}.gux-inline-alert gux-tooltip-title{white-space:nowrap}.gux-inline-alert .gux-message-wrapper{display:flex;gap:var(--gse-ui-alert-gap);font-family:var(--gse-ui-alert-text-fontFamily);font-size:var(--gse-ui-alert-text-fontSize);font-weight:var(--gse-ui-alert-text-fontWeight);line-height:var(--gse-ui-alert-text-lineHeight)}.gux-inline-alert .gux-content{flex:1 1 auto}.gux-inline-alert.gux-info{color:var(--gse-ui-alert-info-foregroundColor);background-color:var(--gse-ui-alert-info-backgroundColor);border:var(--gse-ui-alert-info-border-width) var(--gse-ui-alert-info-border-style) var(--gse-ui-alert-info-border-color)}.gux-inline-alert.gux-info gux-icon{color:var(--gse-ui-alert-info-iconColor)}.gux-inline-alert.gux-error{color:var(--gse-ui-alert-error-foregroundColor);background-color:var(--gse-ui-alert-error-backgroundColor);border:var(--gse-ui-alert-error-border-width) var(--gse-ui-alert-error-border-style) var(--gse-ui-alert-error-border-color)}.gux-inline-alert.gux-error gux-icon{color:var(--gse-ui-alert-error-iconColor)}.gux-inline-alert.gux-warning{color:var(--gse-ui-alert-warning-foregroundColor);background-color:var(--gse-ui-alert-warning-backgroundColor);border:var(--gse-ui-alert-warning-border-width) var(--gse-ui-alert-warning-border-style) var(--gse-ui-alert-warning-border-color)}.gux-inline-alert.gux-warning gux-icon{color:var(--gse-ui-alert-warning-iconColor)}.gux-inline-alert.gux-success{color:var(--gse-ui-alert-success-foregroundColor);background-color:var(--gse-ui-alert-success-backgroundColor);border:var(--gse-ui-alert-success-border-width) var(--gse-ui-alert-success-border-style) var(--gse-ui-alert-success-border-color)}.gux-inline-alert.gux-success gux-icon{color:var(--gse-ui-alert-success-iconColor)}";export{s as gux_inline_alert}
1
+ import{r as e,h as r,g as a}from"./p-ffb7c9dc.js";import{b as i}from"./p-cfeaf436.js";import{t as o}from"./p-db306845.js";import"./p-4202e9f2.js";const t={info:"Information alert with message",success:"Success alert with message",warning:"Warning alert with message",error:"Error alert with message"},s=class{constructor(r){e(this,r),this.accent="info"}getIcon(e){switch(e){case"info":default:return"fa/circle-info-solid";case"success":return"fa/circle-check-solid";case"warning":return"fa/triangle-exclamation-solid";case"error":return"fa/hexagon-exclamation-solid"}}async componentWillLoad(){o(this.root,{variant:this.accent}),this.i18n=await i(this.root,t)}render(){return r("div",{key:"37c95e73d07b1041e869c0576529f9ab312979a3",class:{"gux-inline-alert":!0,[`gux-${this.accent}`]:!0}},r("div",{key:"6e2e50e1ceefc17ec4898916408946cfc8f3b96c",class:"gux-message-wrapper"},r("gux-icon",{key:"59d2a375bd73322fbd3d1fbc0df939720a1807d7","icon-name":this.getIcon(this.accent),decorative:!0}),r("gux-screen-reader-beta",{key:"690d65e5d7c60e37f95ab49ba226d055f18da570"},this.i18n(this.accent)),r("div",{key:"67bbe9a6cd662effef01163b83735f5d873bc7bd",class:"gux-content"},r("slot",{key:"03e5e6a87f4d5eae33fad7118de53ff010a29432",name:"content"},r("slot",{key:"9cabb3322d35ef99be2e3c88cf456f6b3f2e0995"})))))}get root(){return a(this)}};s.style=":host{display:flex;inline-size:fit-content}.gux-inline-alert{display:inline-flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;padding:var(--gse-ui-alert-padding);border:1px solid;border-radius:var(--gse-ui-alert-borderRadius)}.gux-inline-alert gux-icon{flex-shrink:0;align-self:flex-start;inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size);margin-block-start:1px}.gux-inline-alert gux-tooltip-title{white-space:nowrap}.gux-inline-alert .gux-message-wrapper{display:flex;gap:var(--gse-ui-alert-gap);font-family:var(--gse-ui-alert-text-fontFamily);font-size:var(--gse-ui-alert-text-fontSize);font-weight:var(--gse-ui-alert-text-fontWeight);line-height:var(--gse-ui-alert-text-lineHeight)}.gux-inline-alert .gux-content{flex:1 1 auto}.gux-inline-alert.gux-info{color:var(--gse-ui-alert-info-foregroundColor);background-color:var(--gse-ui-alert-info-backgroundColor);border:var(--gse-ui-alert-info-border-width) var(--gse-ui-alert-info-border-style) var(--gse-ui-alert-info-border-color)}.gux-inline-alert.gux-info gux-icon{color:var(--gse-ui-alert-info-iconColor)}.gux-inline-alert.gux-error{color:var(--gse-ui-alert-error-foregroundColor);background-color:var(--gse-ui-alert-error-backgroundColor);border:var(--gse-ui-alert-error-border-width) var(--gse-ui-alert-error-border-style) var(--gse-ui-alert-error-border-color)}.gux-inline-alert.gux-error gux-icon{color:var(--gse-ui-alert-error-iconColor)}.gux-inline-alert.gux-warning{color:var(--gse-ui-alert-warning-foregroundColor);background-color:var(--gse-ui-alert-warning-backgroundColor);border:var(--gse-ui-alert-warning-border-width) var(--gse-ui-alert-warning-border-style) var(--gse-ui-alert-warning-border-color)}.gux-inline-alert.gux-warning gux-icon{color:var(--gse-ui-alert-warning-iconColor)}.gux-inline-alert.gux-success{color:var(--gse-ui-alert-success-foregroundColor);background-color:var(--gse-ui-alert-success-backgroundColor);border:var(--gse-ui-alert-success-border-width) var(--gse-ui-alert-success-border-style) var(--gse-ui-alert-success-border-color)}.gux-inline-alert.gux-success gux-icon{color:var(--gse-ui-alert-success-iconColor)}";export{s as gux_inline_alert}