genesys-spark-components 4.155.1 → 4.156.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (896) hide show
  1. package/dist/cjs/{_commonjsHelpers-0192c5b3.js → _commonjsHelpers-BJu3ubxk.js} +0 -5
  2. package/dist/cjs/{en-66d2b744.js → en-0H0Z_nRu.js} +1 -1
  3. package/dist/cjs/{en-807a354e.js → en-BCiQgP2I.js} +1 -1
  4. package/dist/cjs/{en-85604f0f.js → en-D98yzdC_.js} +1 -1
  5. package/dist/cjs/{en-63e86478.js → en-Yn3Gutxe.js} +1 -1
  6. package/dist/cjs/{floating-ui.dom.esm-ec8cb051.js → floating-ui.dom-DtfDMTOp.js} +0 -324
  7. package/dist/cjs/genesys-webcomponents.cjs.js +7 -8
  8. package/dist/cjs/{get-valid-timezone-6d0cf04e.js → get-valid-timezone-EaBp44b0.js} +1 -1
  9. package/dist/cjs/gux-accordion-section.cjs.entry.js +10 -12
  10. package/dist/cjs/gux-accordion.cjs.entry.js +3 -6
  11. package/dist/cjs/gux-action-button.cjs.entry.js +9 -12
  12. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +3 -6
  13. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +9 -12
  14. package/dist/cjs/gux-all-row-select.cjs.entry.js +6 -9
  15. package/dist/cjs/gux-announce-beta.cjs.entry.js +4 -7
  16. package/dist/cjs/gux-avatar-beta.cjs.entry.js +8 -11
  17. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +7 -10
  18. package/dist/cjs/gux-avatar-focusable-beta.cjs.entry.js +2 -4
  19. package/dist/cjs/gux-avatar-group-add-item-beta_3.cjs.entry.js +17 -22
  20. package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +6 -9
  21. package/dist/cjs/gux-avatar-group-item-beta.cjs.entry.js +7 -10
  22. package/dist/cjs/{gux-avatar-group.service-ee60ea24.js → gux-avatar-group.service-BdqLlCpg.js} +2 -2
  23. package/dist/cjs/gux-badge.cjs.entry.js +6 -9
  24. package/dist/cjs/gux-blank-state.cjs.entry.js +5 -8
  25. package/dist/cjs/gux-breadcrumb-item.cjs.entry.js +3 -6
  26. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +6 -9
  27. package/dist/cjs/gux-button-multi.cjs.entry.js +6 -9
  28. package/dist/cjs/gux-button-slot.cjs.entry.js +4 -7
  29. package/dist/cjs/gux-button_2.cjs.entry.js +15 -19
  30. package/dist/cjs/gux-calendar-beta.cjs.entry.js +23 -31
  31. package/dist/cjs/gux-calendar.cjs.entry.js +12 -15
  32. package/dist/cjs/gux-card.cjs.entry.js +3 -6
  33. package/dist/cjs/gux-column-manager-item.cjs.entry.js +8 -11
  34. package/dist/cjs/gux-column-manager.cjs.entry.js +9 -12
  35. package/dist/cjs/{gux-column-manager.service-6eaeedb0.js → gux-column-manager.service-BdAzD8uK.js} +2 -2
  36. package/dist/cjs/gux-content-search.cjs.entry.js +8 -11
  37. package/dist/cjs/gux-context-menu.cjs.entry.js +10 -13
  38. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +6 -9
  39. package/dist/cjs/gux-create-option.cjs.entry.js +10 -11
  40. package/dist/cjs/gux-cta-group.cjs.entry.js +3 -6
  41. package/dist/cjs/gux-date-beta.cjs.entry.js +8 -10
  42. package/dist/cjs/gux-date-time-beta.cjs.entry.js +8 -10
  43. package/dist/cjs/gux-datepicker.cjs.entry.js +19 -22
  44. package/dist/cjs/gux-day-beta.cjs.entry.js +9 -11
  45. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +7 -10
  46. package/dist/cjs/gux-dismiss-button.cjs.entry.js +6 -9
  47. package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +5 -8
  48. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +12 -15
  49. package/dist/cjs/gux-dropdown-option.cjs.entry.js +2 -5
  50. package/dist/cjs/gux-dropdown_3.cjs.entry.js +18 -23
  51. package/dist/cjs/gux-file-list-item.cjs.entry.js +6 -9
  52. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +6 -9
  53. package/dist/cjs/gux-flyout-menu.cjs.entry.js +16 -21
  54. package/dist/cjs/gux-form-beta.cjs.entry.js +1 -3
  55. package/dist/cjs/gux-form-description.cjs.entry.js +2 -5
  56. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +13 -16
  57. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +12 -15
  58. package/dist/cjs/gux-form-field-color.cjs.entry.js +14 -17
  59. package/dist/cjs/{gux-form-field-container-64894e99.js → gux-form-field-container-DgZam55R.js} +1 -1
  60. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +16 -19
  61. package/dist/cjs/{gux-form-field-error-e6b8a9ad.js → gux-form-field-error-DqqTb0bm.js} +1 -1
  62. package/dist/cjs/{gux-form-field-fieldset-container-db1aba2b.js → gux-form-field-fieldset-container-BQJwsJLF.js} +1 -1
  63. package/dist/cjs/gux-form-field-file-beta.cjs.entry.js +16 -19
  64. package/dist/cjs/gux-form-field-file.cjs.entry.js +13 -16
  65. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +6 -9
  66. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +6 -9
  67. package/dist/cjs/gux-form-field-number_2.cjs.entry.js +22 -26
  68. package/dist/cjs/gux-form-field-phone.cjs.entry.js +16 -19
  69. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +11 -14
  70. package/dist/cjs/gux-form-field-radio.cjs.entry.js +12 -15
  71. package/dist/cjs/gux-form-field-range.cjs.entry.js +15 -18
  72. package/dist/cjs/gux-form-field-search.cjs.entry.js +15 -18
  73. package/dist/cjs/gux-form-field-select.cjs.entry.js +14 -17
  74. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +15 -18
  75. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +14 -17
  76. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +16 -19
  77. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +16 -19
  78. package/dist/cjs/{gux-form-field.service-9cc5debc.js → gux-form-field.service-MaWFZxSN.js} +4 -4
  79. package/dist/cjs/gux-form-fieldset-heading.cjs.entry.js +2 -5
  80. package/dist/cjs/gux-form-footer.cjs.entry.js +3 -6
  81. package/dist/cjs/gux-form-heading.cjs.entry.js +2 -5
  82. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +4 -7
  83. package/dist/cjs/gux-icon.cjs.entry.js +4 -7
  84. package/dist/cjs/gux-inline-alert.cjs.entry.js +6 -9
  85. package/dist/cjs/gux-inline-dropdown-beta.cjs.entry.js +12 -15
  86. package/dist/cjs/gux-label-info-beta.cjs.entry.js +4 -7
  87. package/dist/cjs/gux-link-beta.cjs.entry.js +4 -7
  88. package/dist/cjs/gux-list-divider.cjs.entry.js +2 -5
  89. package/dist/cjs/gux-list-item.cjs.entry.js +2 -5
  90. package/dist/cjs/gux-list.cjs.entry.js +4 -7
  91. package/dist/cjs/gux-listbox-multi.cjs.entry.js +11 -14
  92. package/dist/cjs/gux-loading-message.cjs.entry.js +3 -6
  93. package/dist/cjs/gux-menu-option.cjs.entry.js +3 -6
  94. package/dist/cjs/gux-menu.cjs.entry.js +2 -5
  95. package/dist/cjs/gux-modal-legacy.cjs.entry.js +4 -7
  96. package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +5 -8
  97. package/dist/cjs/gux-modal.cjs.entry.js +5 -8
  98. package/dist/cjs/gux-month-calendar.cjs.entry.js +11 -14
  99. package/dist/cjs/gux-month-list_2.cjs.entry.js +5 -9
  100. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +13 -16
  101. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +3 -6
  102. package/dist/cjs/gux-option-group-beta.cjs.entry.js +3 -6
  103. package/dist/cjs/gux-option-icon.cjs.entry.js +5 -8
  104. package/dist/cjs/gux-option-multi.cjs.entry.js +7 -10
  105. package/dist/cjs/gux-option-status-beta.cjs.entry.js +4 -7
  106. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +3 -6
  107. package/dist/cjs/gux-pagination-buttons-legacy_3.cjs.entry.js +9 -14
  108. package/dist/cjs/gux-pagination-buttons_2.cjs.entry.js +8 -12
  109. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +6 -9
  110. package/dist/cjs/gux-pagination-items-per-page.cjs.entry.js +5 -8
  111. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +3 -6
  112. package/dist/cjs/gux-pagination.cjs.entry.js +4 -7
  113. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1214 -1205
  114. package/dist/cjs/gux-popover-beta.cjs.entry.js +14 -17
  115. package/dist/cjs/gux-popover-list-beta.cjs.entry.js +15 -20
  116. package/dist/cjs/gux-popover-list.cjs.entry.js +13 -18
  117. package/dist/cjs/gux-popup.cjs.entry.js +10 -13
  118. package/dist/cjs/gux-radial-loading.cjs.entry.js +6 -9
  119. package/dist/cjs/gux-radial-progress.cjs.entry.js +4 -7
  120. package/dist/cjs/gux-rating.cjs.entry.js +6 -9
  121. package/dist/cjs/gux-rich-highlight-list-item.cjs.entry.js +6 -9
  122. package/dist/cjs/gux-rich-style-list-item_3.cjs.entry.js +18 -23
  123. package/dist/cjs/gux-rich-text-editor-action-group.cjs.entry.js +2 -5
  124. package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +10 -13
  125. package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +10 -13
  126. package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +12 -15
  127. package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +8 -11
  128. package/dist/cjs/gux-rich-text-editor-beta.cjs.entry.js +12 -15
  129. package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +4 -7
  130. package/dist/cjs/{gux-rich-text-editor.service-a1f5a275.js → gux-rich-text-editor.service-DvQrMYXi.js} +1 -1
  131. package/dist/cjs/gux-row-select.cjs.entry.js +6 -9
  132. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +3 -6
  133. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +4 -7
  134. package/dist/cjs/gux-segmented-control-item.cjs.entry.js +5 -8
  135. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +10 -13
  136. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +3 -6
  137. package/dist/cjs/gux-side-panel-beta.cjs.entry.js +4 -7
  138. package/dist/cjs/gux-side-panel-heading.cjs.entry.js +3 -6
  139. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +3 -6
  140. package/dist/cjs/gux-skip-navigation-item.cjs.entry.js +2 -5
  141. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +6 -9
  142. package/dist/cjs/gux-sort-control.cjs.entry.js +7 -10
  143. package/dist/cjs/gux-status-indicator-beta.cjs.entry.js +4 -7
  144. package/dist/cjs/gux-step-title.cjs.entry.js +3 -6
  145. package/dist/cjs/gux-step.cjs.entry.js +3 -6
  146. package/dist/cjs/gux-stepper-beta.cjs.entry.js +3 -6
  147. package/dist/cjs/gux-submenu.cjs.entry.js +8 -11
  148. package/dist/cjs/gux-switch-item.cjs.entry.js +2 -5
  149. package/dist/cjs/gux-switch-legacy.cjs.entry.js +4 -7
  150. package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +9 -14
  151. package/dist/cjs/gux-tab-advanced-panel.cjs.entry.js +2 -5
  152. package/dist/cjs/gux-tab-advanced.cjs.entry.js +8 -11
  153. package/dist/cjs/gux-tab-list.cjs.entry.js +7 -10
  154. package/dist/cjs/gux-tab-panel.cjs.entry.js +2 -5
  155. package/dist/cjs/gux-tab.cjs.entry.js +2 -5
  156. package/dist/cjs/gux-table-select-menu.cjs.entry.js +8 -11
  157. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +7 -10
  158. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +5 -8
  159. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +8 -11
  160. package/dist/cjs/gux-table-toolbar.cjs.entry.js +7 -10
  161. package/dist/cjs/gux-table.cjs.entry.js +8 -11
  162. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +2 -4
  163. package/dist/cjs/gux-tabs.cjs.entry.js +3 -6
  164. package/dist/cjs/gux-tag.cjs.entry.js +6 -9
  165. package/dist/cjs/gux-text-highlight.cjs.entry.js +3 -6
  166. package/dist/cjs/gux-time-beta.cjs.entry.js +8 -10
  167. package/dist/cjs/gux-time-picker.cjs.entry.js +13 -16
  168. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +5 -7
  169. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +7 -10
  170. package/dist/cjs/gux-toast.cjs.entry.js +5 -8
  171. package/dist/cjs/gux-toggle-slider.cjs.entry.js +2 -5
  172. package/dist/cjs/gux-toggle.cjs.entry.js +7 -10
  173. package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +14 -17
  174. package/dist/cjs/gux-tooltip-pointer-beta.cjs.entry.js +4 -6
  175. package/dist/cjs/gux-tooltip-title.cjs.entry.js +5 -8
  176. package/dist/cjs/gux-tooltip_2.cjs.entry.js +17 -21
  177. package/dist/cjs/{index-aa48ea67.js → index-7-fpJ2xq.js} +73 -85
  178. package/dist/cjs/index-BYe628F9.js +2638 -0
  179. package/dist/cjs/index.esm-CO-IlDkX.js +26 -0
  180. package/dist/cjs/{intl-ed89316c.js → intl-CN825h6c.js} +1 -1
  181. package/dist/cjs/loader.cjs.js +3 -6
  182. package/dist/cjs/{on-click-outside-8a2d3a8e.js → on-click-outside-Bi2BNvQN.js} +5 -1
  183. package/dist/cjs/{on-mutation-6d71ec1a.js → on-mutation-CxxKdrY9.js} +6 -1
  184. package/dist/cjs/{on-resize-b2cc6e7f.js → on-resize-CKldN5KD.js} +6 -1
  185. package/dist/cjs/{overflow-detection-0adae101.js → overflow-detection-Bzl6oMo9.js} +2 -2
  186. package/dist/cjs/{time-zone-8cc25510.js → time-zone-BamAijyR.js} +18 -34
  187. package/dist/cjs/usage-DWgLAtpA.js +78 -0
  188. package/dist/collection/collection-manifest.json +1 -1
  189. package/dist/collection/components/beta/gux-announce/gux-announce.js +1 -1
  190. package/dist/collection/components/beta/gux-avatar/gux-avatar.js +10 -10
  191. package/dist/collection/components/beta/gux-avatar-group/gux-avatar-group-item/gux-avatar-group-item.js +2 -2
  192. package/dist/collection/components/beta/gux-avatar-group/gux-avatar-group.js +1 -1
  193. package/dist/collection/components/beta/gux-avatar-group/gux-avatar-overflow/gux-avatar-overflow-item/gux-avatar-overflow-item.js +2 -2
  194. package/dist/collection/components/beta/gux-calendar-beta/gux-calendar.js +1 -1
  195. package/dist/collection/components/beta/gux-cta-group/gux-cta-group.js +2 -2
  196. package/dist/collection/components/beta/gux-date/gux-date.js +3 -3
  197. package/dist/collection/components/beta/gux-date-time/gux-date-time.js +3 -3
  198. package/dist/collection/components/beta/gux-day/gux-day.js +2 -2
  199. package/dist/collection/components/beta/gux-flag-icon/gux-flag-icon.js +2 -2
  200. package/dist/collection/components/beta/gux-form/gux-form-footer/gux-form-footer.js +1 -1
  201. package/dist/collection/components/beta/gux-icon-tooltip/gux-icon-tooltip.js +2 -2
  202. package/dist/collection/components/beta/gux-inline-dropdown/gux-inline-dropdown.js +3 -3
  203. package/dist/collection/components/beta/gux-label-info/gux-label-info.js +2 -2
  204. package/dist/collection/components/beta/gux-link/gux-link.js +2 -2
  205. package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.js +3 -3
  206. package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list-item/gux-month-list-item.js +3 -3
  207. package/dist/collection/components/beta/gux-month-picker/gux-month-picker.js +4 -4
  208. package/dist/collection/components/beta/gux-option-status/gux-option-status.js +5 -5
  209. package/dist/collection/components/beta/gux-phone-input/gux-phone-input.js +8 -8
  210. package/dist/collection/components/beta/gux-popover-beta/gux-popover.js +5 -5
  211. package/dist/collection/components/beta/gux-popover-list-beta/gux-popover-list.js +5 -5
  212. 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 -2
  213. 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 +2 -2
  214. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action-text-highlight/gux-rich-text-editor-action-text-highlight.js +2 -2
  215. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action.js +3 -3
  216. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-action-group/gux-rich-text-editor-action-group.js +1 -1
  217. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-beta.js +1 -1
  218. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-list/gux-rich-highlight-list-item/gux-rich-highlight-list-item.js +3 -3
  219. 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
  220. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-list/gux-rich-text-editor-list.js +1 -1
  221. 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 +1 -1
  222. package/dist/collection/components/beta/gux-segmented-control/gux-segmented-control-item/gux-segmented-control-item.js +4 -4
  223. package/dist/collection/components/beta/gux-segmented-control/gux-segmented-control.js +2 -2
  224. package/dist/collection/components/beta/gux-selector-cards/gux-selector-card/gux-selector-card.js +1 -1
  225. package/dist/collection/components/beta/gux-side-panel/components/gux-modal-side-panel/gux-modal-side-panel.js +2 -2
  226. package/dist/collection/components/beta/gux-side-panel/components/gux-side-panel-heading/gux-side-panel-heading.js +2 -2
  227. package/dist/collection/components/beta/gux-side-panel/gux-side-panel.js +1 -1
  228. package/dist/collection/components/beta/gux-status-indicator/gux-status-indicator.js +1 -1
  229. package/dist/collection/components/beta/gux-stepper/gux-step/gux-step.js +3 -3
  230. package/dist/collection/components/beta/gux-stepper/gux-stepper.js +3 -3
  231. package/dist/collection/components/beta/gux-time/gux-time.js +3 -3
  232. package/dist/collection/components/beta/gux-time-zone/gux-time-zone.js +4 -4
  233. package/dist/collection/components/beta/gux-time-zone-picker/gux-time-zone-picker.js +8 -8
  234. package/dist/collection/components/beta/gux-tooltip-base/gux-tooltip-base.js +8 -7
  235. package/dist/collection/components/beta/gux-tooltip-beta/gux-tooltip.js +4 -4
  236. package/dist/collection/components/beta/gux-tooltip-pointer-beta/gux-tooltip-pointer.js +4 -4
  237. package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/dropdown-option/gux-dropdown-option.js +5 -5
  238. package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/gux-advanced-dropdown.js +5 -5
  239. package/dist/collection/components/legacy/gux-disclosure-button-legacy/gux-disclosure-button.js +3 -3
  240. package/dist/collection/components/legacy/gux-modal-legacy/gux-modal-legacy.js +3 -3
  241. package/dist/collection/components/legacy/gux-notification-toast-legacy/gux-notification-toast.js +1 -1
  242. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/gux-pagination-buttons.js +3 -3
  243. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-item-counts-legacy/gux-pagination-item-counts.js +3 -3
  244. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-items-per-page-legacy/gux-pagination-items-per-page.js +1 -1
  245. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination.js +4 -4
  246. package/dist/collection/components/legacy/gux-simple-toast-legacy/gux-simple-toast.js +1 -1
  247. package/dist/collection/components/legacy/gux-switch-legacy/gux-switch-item/gux-switch-item.js +3 -3
  248. package/dist/collection/components/legacy/gux-switch-legacy/gux-switch.js +2 -2
  249. package/dist/collection/components/stable/gux-accordion/gux-accordion-section/gux-accordion-section.js +11 -10
  250. package/dist/collection/components/stable/gux-accordion/gux-accordion.js +1 -1
  251. package/dist/collection/components/stable/gux-action-button/gux-action-button.js +4 -4
  252. package/dist/collection/components/stable/gux-badge/gux-badge.js +2 -2
  253. package/dist/collection/components/stable/gux-breadcrumbs/breadcrumb-item/gux-breadcrumb-item.js +1 -1
  254. package/dist/collection/components/stable/gux-breadcrumbs/gux-breadcrumbs.js +1 -1
  255. package/dist/collection/components/stable/gux-button/gux-button.js +5 -5
  256. package/dist/collection/components/stable/gux-button-multi/gux-button-multi.js +4 -4
  257. package/dist/collection/components/stable/gux-button-slot/gux-button-slot.js +2 -2
  258. package/dist/collection/components/stable/gux-calendar/gux-calendar.js +6 -6
  259. package/dist/collection/components/stable/gux-card/gux-card.js +1 -1
  260. package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/gux-column-manager-item.js +1 -1
  261. package/dist/collection/components/stable/gux-content-search/gux-content-search.js +2 -2
  262. package/dist/collection/components/stable/gux-context-menu/gux-context-menu.js +4 -4
  263. package/dist/collection/components/stable/gux-datepicker/gux-datepicker.js +11 -11
  264. package/dist/collection/components/stable/gux-dismiss-button/gux-dismiss-button.js +2 -2
  265. package/dist/collection/components/stable/gux-dropdown/gux-dropdown.js +8 -8
  266. package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.js +2 -2
  267. package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi.js +8 -8
  268. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.js +1 -1
  269. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.js +3 -3
  270. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox-group/gux-form-field-checkbox-group.js +3 -3
  271. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.js +2 -2
  272. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.js +2 -2
  273. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-file/gux-form-field-file.js +2 -2
  274. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-file-beta/components/gux-file-list-item/gux-file-list-item.js +4 -4
  275. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-file-beta/gux-form-field-file.js +2 -2
  276. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.js +3 -3
  277. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-phone/gux-form-field-phone.js +2 -2
  278. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.js +2 -2
  279. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio-group/gux-form-field-radio-group.js +3 -3
  280. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.js +4 -4
  281. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.js +2 -2
  282. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.js +2 -2
  283. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.js +4 -4
  284. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.js +3 -3
  285. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.js +2 -2
  286. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-zone-picker/gux-form-field-time-zone-picker.js +2 -2
  287. package/dist/collection/components/stable/gux-form-field/helper-components/gux-form-field-label-indicator/gux-form-field-label-indicator.js +2 -2
  288. package/dist/collection/components/stable/gux-icon/gux-icon.js +4 -4
  289. package/dist/collection/components/stable/gux-inline-alert/gux-inline-alert.js +1 -1
  290. package/dist/collection/components/stable/gux-list/gux-list-item/gux-list-item.js +1 -1
  291. package/dist/collection/components/stable/gux-listbox/gux-listbox.js +6 -6
  292. package/dist/collection/components/stable/gux-listbox/option-group/gux-option-group.js +1 -1
  293. package/dist/collection/components/stable/gux-listbox/options/gux-option/gux-option.js +5 -5
  294. package/dist/collection/components/stable/gux-listbox/options/gux-option-icon/gux-option-icon.js +10 -10
  295. package/dist/collection/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.js +8 -6
  296. package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.js +8 -8
  297. package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.js +6 -6
  298. package/dist/collection/components/stable/gux-modal/gux-modal.js +2 -2
  299. package/dist/collection/components/stable/gux-page-loading-spinner/gux-page-loading-spinner.js +1 -1
  300. package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.js +4 -4
  301. package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.js +2 -2
  302. package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.js +3 -3
  303. package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.js +2 -2
  304. package/dist/collection/components/stable/gux-pagination/gux-pagination.js +5 -5
  305. package/dist/collection/components/stable/gux-pagination-cursor/gux-pagination-cursor.js +5 -5
  306. package/dist/collection/components/stable/gux-popover/gux-popover.js +5 -5
  307. package/dist/collection/components/stable/gux-popover-list/gux-popover-list.js +5 -5
  308. package/dist/collection/components/stable/gux-popup/gux-popup.js +6 -6
  309. package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.js +2 -2
  310. package/dist/collection/components/stable/gux-radial-progress/gux-radial-progress.js +3 -3
  311. package/dist/collection/components/stable/gux-rating/gux-rating.js +5 -5
  312. package/dist/collection/components/stable/gux-table/gux-all-row-select/gux-all-row-select.js +2 -2
  313. package/dist/collection/components/stable/gux-table/gux-row-select/gux-row-select.js +2 -2
  314. package/dist/collection/components/stable/gux-table/gux-sort-control/gux-sort-control.js +1 -1
  315. package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-menu.js +1 -1
  316. package/dist/collection/components/stable/gux-table/gux-table.js +4 -4
  317. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-action/gux-table-toolbar-action.js +4 -4
  318. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-custom-action/gux-table-toolbar-custom-action.js +3 -3
  319. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-menu-button/gux-table-toolbar-menu-button.js +1 -1
  320. package/dist/collection/components/stable/gux-tabs/gux-tab/gux-tab.js +2 -2
  321. package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.js +1 -1
  322. package/dist/collection/components/stable/gux-tabs/gux-tabs.js +3 -3
  323. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced/gux-tab-advanced.js +2 -2
  324. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.js +3 -3
  325. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-panel/gux-tab-advanced-panel.js +1 -1
  326. package/dist/collection/components/stable/gux-tabs-advanced/gux-tabs-advanced.js +1 -1
  327. package/dist/collection/components/stable/gux-tag/gux-tag.js +5 -5
  328. package/dist/collection/components/stable/gux-text-highlight/gux-text-highlight.js +4 -4
  329. package/dist/collection/components/stable/gux-time-picker/gux-time-picker.js +9 -9
  330. package/dist/collection/components/stable/gux-toast/gux-toast.js +1 -1
  331. package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.js +5 -5
  332. package/dist/collection/components/stable/gux-toggle/gux-toggle.js +9 -9
  333. package/dist/collection/components/stable/gux-tooltip/gux-tooltip.js +3 -3
  334. package/dist/collection/components/stable/gux-truncate/gux-truncate.js +2 -2
  335. package/dist/collection/test/e2eTestUtils.js +3 -0
  336. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +7 -0
  337. package/dist/esm/{en-25a315a0.js → en-BFMPPR7N.js} +1 -1
  338. package/dist/esm/{en-1f9d79e6.js → en-BIx814vt.js} +1 -1
  339. package/dist/esm/{en-abdadc27.js → en-CHN0tqYN.js} +1 -1
  340. package/dist/esm/{en-bf740e9b.js → en-DFTYqKJS.js} +1 -1
  341. package/dist/esm/{floating-ui.dom.esm-ea64ef12.js → floating-ui.dom-BUgza8B9.js} +1 -325
  342. package/dist/esm/genesys-webcomponents.js +5 -5
  343. package/dist/esm/{get-valid-timezone-3bde2dae.js → get-valid-timezone-DqcOMD7Q.js} +1 -1
  344. package/dist/esm/gux-accordion-section.entry.js +10 -10
  345. package/dist/esm/gux-accordion.entry.js +3 -4
  346. package/dist/esm/gux-action-button.entry.js +9 -10
  347. package/dist/esm/gux-action-toast-legacy.entry.js +3 -4
  348. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +9 -10
  349. package/dist/esm/gux-all-row-select.entry.js +6 -7
  350. package/dist/esm/gux-announce-beta.entry.js +4 -5
  351. package/dist/esm/gux-avatar-beta.entry.js +8 -9
  352. package/dist/esm/gux-avatar-change-photo-beta.entry.js +7 -8
  353. package/dist/esm/gux-avatar-focusable-beta.entry.js +2 -2
  354. package/dist/esm/gux-avatar-group-add-item-beta_3.entry.js +14 -17
  355. package/dist/esm/gux-avatar-group-beta.entry.js +6 -7
  356. package/dist/esm/gux-avatar-group-item-beta.entry.js +7 -8
  357. package/dist/esm/{gux-avatar-group.service-0e62fde4.js → gux-avatar-group.service-DMpkGO63.js} +2 -2
  358. package/dist/esm/{gux-avatar.service-43c1b4e1.js → gux-avatar.service-BV03_Ljp.js} +1 -1
  359. package/dist/esm/gux-badge.entry.js +6 -7
  360. package/dist/esm/gux-blank-state.entry.js +5 -6
  361. package/dist/esm/gux-breadcrumb-item.entry.js +3 -4
  362. package/dist/esm/gux-breadcrumbs.entry.js +6 -7
  363. package/dist/esm/gux-button-multi.entry.js +6 -7
  364. package/dist/esm/gux-button-slot.entry.js +4 -5
  365. package/dist/esm/gux-button_2.entry.js +9 -11
  366. package/dist/esm/gux-calendar-beta.entry.js +23 -29
  367. package/dist/esm/gux-calendar.entry.js +12 -13
  368. package/dist/esm/gux-card.entry.js +3 -4
  369. package/dist/esm/gux-column-manager-item.entry.js +8 -9
  370. package/dist/esm/gux-column-manager.entry.js +9 -10
  371. package/dist/esm/{gux-column-manager.service-90a02975.js → gux-column-manager.service-CB2ijDRX.js} +2 -2
  372. package/dist/esm/gux-content-search.entry.js +8 -9
  373. package/dist/esm/gux-context-menu.entry.js +10 -11
  374. package/dist/esm/gux-copy-to-clipboard.entry.js +6 -7
  375. package/dist/esm/gux-create-option.entry.js +10 -9
  376. package/dist/esm/gux-cta-group.entry.js +3 -4
  377. package/dist/esm/gux-date-beta.entry.js +8 -8
  378. package/dist/esm/gux-date-time-beta.entry.js +8 -8
  379. package/dist/esm/gux-datepicker.entry.js +15 -16
  380. package/dist/esm/gux-day-beta.entry.js +9 -9
  381. package/dist/esm/gux-disclosure-button-legacy.entry.js +7 -8
  382. package/dist/esm/gux-dismiss-button.entry.js +6 -7
  383. package/dist/esm/gux-dropdown-multi-tag.entry.js +5 -6
  384. package/dist/esm/gux-dropdown-multi.entry.js +12 -13
  385. package/dist/esm/gux-dropdown-option.entry.js +2 -3
  386. package/dist/esm/gux-dropdown_3.entry.js +18 -21
  387. package/dist/esm/gux-file-list-item.entry.js +6 -7
  388. package/dist/esm/gux-flag-icon-beta.entry.js +6 -7
  389. package/dist/esm/gux-flyout-menu.entry.js +10 -13
  390. package/dist/esm/gux-form-beta.entry.js +1 -1
  391. package/dist/esm/gux-form-description.entry.js +2 -3
  392. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +13 -14
  393. package/dist/esm/gux-form-field-checkbox.entry.js +12 -13
  394. package/dist/esm/gux-form-field-color.entry.js +14 -15
  395. package/dist/esm/{gux-form-field-container-3dd7c6ff.js → gux-form-field-container-DNLEiw2M.js} +1 -1
  396. package/dist/esm/gux-form-field-dropdown.entry.js +16 -17
  397. package/dist/esm/{gux-form-field-error-9e083eea.js → gux-form-field-error-BdJfez5i.js} +2 -2
  398. package/dist/esm/{gux-form-field-fieldset-container-6cb3610f.js → gux-form-field-fieldset-container-DyGbLtWd.js} +1 -1
  399. package/dist/esm/gux-form-field-file-beta.entry.js +16 -17
  400. package/dist/esm/gux-form-field-file.entry.js +13 -14
  401. package/dist/esm/gux-form-field-input-clear-button.entry.js +6 -7
  402. package/dist/esm/gux-form-field-label-indicator.entry.js +6 -7
  403. package/dist/esm/gux-form-field-number_2.entry.js +22 -24
  404. package/dist/esm/gux-form-field-phone.entry.js +16 -17
  405. package/dist/esm/gux-form-field-radio-group-beta.entry.js +11 -12
  406. package/dist/esm/gux-form-field-radio.entry.js +12 -13
  407. package/dist/esm/gux-form-field-range.entry.js +15 -16
  408. package/dist/esm/gux-form-field-search.entry.js +15 -16
  409. package/dist/esm/gux-form-field-select.entry.js +14 -15
  410. package/dist/esm/gux-form-field-text-like.entry.js +15 -16
  411. package/dist/esm/gux-form-field-textarea.entry.js +14 -15
  412. package/dist/esm/gux-form-field-time-picker.entry.js +16 -17
  413. package/dist/esm/gux-form-field-time-zone-picker.entry.js +16 -17
  414. package/dist/esm/{gux-form-field.service-173b5dfc.js → gux-form-field.service-C3WKbzwR.js} +5 -5
  415. package/dist/esm/gux-form-fieldset-heading.entry.js +2 -3
  416. package/dist/esm/gux-form-footer.entry.js +3 -4
  417. package/dist/esm/gux-form-heading.entry.js +2 -3
  418. package/dist/esm/gux-icon-tooltip-beta.entry.js +4 -5
  419. package/dist/esm/gux-icon.entry.js +4 -5
  420. package/dist/esm/gux-inline-alert.entry.js +6 -7
  421. package/dist/esm/gux-inline-dropdown-beta.entry.js +12 -13
  422. package/dist/esm/gux-label-info-beta.entry.js +4 -5
  423. package/dist/esm/gux-link-beta.entry.js +4 -5
  424. package/dist/esm/gux-list-divider.entry.js +2 -3
  425. package/dist/esm/gux-list-item.entry.js +2 -3
  426. package/dist/esm/gux-list.entry.js +4 -5
  427. package/dist/esm/{gux-list.service-5da368db.js → gux-list.service-BebXX5IS.js} +1 -1
  428. package/dist/esm/gux-listbox-multi.entry.js +11 -12
  429. package/dist/esm/gux-loading-message.entry.js +3 -4
  430. package/dist/esm/gux-menu-option.entry.js +3 -4
  431. package/dist/esm/gux-menu.entry.js +2 -3
  432. package/dist/esm/gux-modal-legacy.entry.js +4 -5
  433. package/dist/esm/gux-modal-side-panel-beta.entry.js +5 -6
  434. package/dist/esm/gux-modal.entry.js +5 -6
  435. package/dist/esm/gux-month-calendar.entry.js +11 -12
  436. package/dist/esm/gux-month-list_2.entry.js +5 -7
  437. package/dist/esm/gux-month-picker-beta.entry.js +13 -14
  438. package/dist/esm/gux-notification-toast-legacy.entry.js +3 -4
  439. package/dist/esm/gux-option-group-beta.entry.js +3 -4
  440. package/dist/esm/gux-option-icon.entry.js +5 -6
  441. package/dist/esm/gux-option-multi.entry.js +7 -8
  442. package/dist/esm/gux-option-status-beta.entry.js +4 -5
  443. package/dist/esm/gux-page-loading-spinner.entry.js +3 -4
  444. package/dist/esm/gux-pagination-buttons-legacy_3.entry.js +9 -12
  445. package/dist/esm/gux-pagination-buttons_2.entry.js +8 -10
  446. package/dist/esm/gux-pagination-cursor.entry.js +6 -7
  447. package/dist/esm/gux-pagination-items-per-page.entry.js +5 -6
  448. package/dist/esm/gux-pagination-legacy.entry.js +3 -4
  449. package/dist/esm/gux-pagination.entry.js +4 -5
  450. package/dist/esm/gux-phone-input-beta.entry.js +1215 -1204
  451. package/dist/esm/gux-popover-beta.entry.js +7 -8
  452. package/dist/esm/gux-popover-list-beta.entry.js +8 -11
  453. package/dist/esm/gux-popover-list.entry.js +7 -10
  454. package/dist/esm/gux-popup.entry.js +3 -4
  455. package/dist/esm/gux-radial-loading.entry.js +6 -7
  456. package/dist/esm/gux-radial-progress.entry.js +4 -5
  457. package/dist/esm/gux-rating.entry.js +6 -7
  458. package/dist/esm/gux-rich-highlight-list-item.entry.js +6 -7
  459. package/dist/esm/gux-rich-style-list-item_3.entry.js +15 -18
  460. package/dist/esm/gux-rich-text-editor-action-group.entry.js +2 -3
  461. package/dist/esm/gux-rich-text-editor-action-link.entry.js +10 -11
  462. package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +10 -11
  463. package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +12 -13
  464. package/dist/esm/gux-rich-text-editor-action.entry.js +8 -9
  465. package/dist/esm/gux-rich-text-editor-beta.entry.js +12 -13
  466. package/dist/esm/gux-rich-text-editor-list.entry.js +4 -5
  467. package/dist/esm/{gux-rich-text-editor.service-dcce5e51.js → gux-rich-text-editor.service-CJnB9AGA.js} +1 -1
  468. package/dist/esm/gux-row-select.entry.js +6 -7
  469. package/dist/esm/gux-screen-reader-beta.entry.js +3 -4
  470. package/dist/esm/gux-segmented-control-beta.entry.js +4 -5
  471. package/dist/esm/gux-segmented-control-item.entry.js +5 -6
  472. package/dist/esm/gux-selector-card-beta.entry.js +10 -11
  473. package/dist/esm/gux-selector-cards-beta.entry.js +3 -4
  474. package/dist/esm/gux-side-panel-beta.entry.js +4 -5
  475. package/dist/esm/gux-side-panel-heading.entry.js +3 -4
  476. package/dist/esm/gux-simple-toast-legacy.entry.js +3 -4
  477. package/dist/esm/gux-skip-navigation-item.entry.js +2 -3
  478. package/dist/esm/gux-skip-navigation-list.entry.js +6 -7
  479. package/dist/esm/gux-sort-control.entry.js +7 -8
  480. package/dist/esm/gux-status-indicator-beta.entry.js +4 -5
  481. package/dist/esm/gux-step-title.entry.js +3 -4
  482. package/dist/esm/gux-step.entry.js +3 -4
  483. package/dist/esm/gux-stepper-beta.entry.js +3 -4
  484. package/dist/esm/gux-submenu.entry.js +5 -6
  485. package/dist/esm/gux-switch-item.entry.js +2 -3
  486. package/dist/esm/gux-switch-legacy.entry.js +4 -5
  487. package/dist/esm/gux-tab-advanced-list.entry.js +9 -12
  488. package/dist/esm/gux-tab-advanced-panel.entry.js +2 -3
  489. package/dist/esm/gux-tab-advanced.entry.js +8 -9
  490. package/dist/esm/gux-tab-list.entry.js +7 -8
  491. package/dist/esm/gux-tab-panel.entry.js +2 -3
  492. package/dist/esm/gux-tab.entry.js +2 -3
  493. package/dist/esm/gux-table-select-menu.entry.js +8 -9
  494. package/dist/esm/gux-table-toolbar-action.entry.js +7 -8
  495. package/dist/esm/gux-table-toolbar-custom-action.entry.js +5 -6
  496. package/dist/esm/gux-table-toolbar-menu-button.entry.js +8 -9
  497. package/dist/esm/gux-table-toolbar.entry.js +7 -8
  498. package/dist/esm/gux-table.entry.js +8 -9
  499. package/dist/esm/gux-tabs-advanced.entry.js +2 -2
  500. package/dist/esm/gux-tabs.entry.js +3 -4
  501. package/dist/esm/gux-tag.entry.js +6 -7
  502. package/dist/esm/gux-text-highlight.entry.js +3 -4
  503. package/dist/esm/gux-time-beta.entry.js +8 -8
  504. package/dist/esm/gux-time-picker.entry.js +13 -14
  505. package/dist/esm/gux-time-zone-beta.entry.js +5 -5
  506. package/dist/esm/gux-time-zone-picker-beta.entry.js +7 -8
  507. package/dist/esm/gux-toast.entry.js +5 -6
  508. package/dist/esm/gux-toggle-slider.entry.js +2 -3
  509. package/dist/esm/gux-toggle.entry.js +7 -8
  510. package/dist/esm/gux-tooltip-base-beta_2.entry.js +8 -9
  511. package/dist/esm/gux-tooltip-pointer-beta.entry.js +4 -4
  512. package/dist/esm/gux-tooltip-title.entry.js +5 -6
  513. package/dist/esm/gux-tooltip_2.entry.js +11 -13
  514. package/dist/esm/{index-4f1356d9.js → index-BdWtzVKY.js} +73 -85
  515. package/dist/esm/index-npw54p0Y.js +2606 -0
  516. package/dist/esm/index.esm-ByC1Z2e8.js +24 -0
  517. package/dist/esm/{intl-93dbfa3b.js → intl-CpptOorV.js} +1 -1
  518. package/dist/esm/loader.js +3 -4
  519. package/dist/esm/{log-error-274efeb7.js → log-error-DxtJDeL9.js} +1 -1
  520. package/dist/esm/{on-click-outside-6c2e399b.js → on-click-outside-0ANQLgQQ.js} +5 -1
  521. package/dist/esm/{on-mutation-751e68e4.js → on-mutation-DMsChnwg.js} +6 -1
  522. package/dist/esm/{on-resize-c9d0d33c.js → on-resize-DWZCeEbw.js} +6 -1
  523. package/dist/esm/{overflow-detection-478d9aa8.js → overflow-detection-Cn75ln-O.js} +1 -1
  524. package/dist/esm/{time-zone-cf8c390b.js → time-zone-BDZ-txoP.js} +18 -34
  525. package/dist/esm/usage-DE51TUwj.js +76 -0
  526. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  527. package/dist/genesys-webcomponents/p-01ef0607.entry.js +1 -0
  528. package/dist/genesys-webcomponents/p-03900bf8.entry.js +1 -0
  529. package/dist/genesys-webcomponents/{p-c13252c9.entry.js → p-07e9458d.entry.js} +1 -1
  530. package/dist/genesys-webcomponents/p-0a466c19.entry.js +1 -0
  531. package/dist/genesys-webcomponents/p-0a7dbf4b.entry.js +1 -0
  532. package/dist/genesys-webcomponents/{p-8d3ffd9f.entry.js → p-0b7d8546.entry.js} +1 -1
  533. package/dist/genesys-webcomponents/{p-0ea76c1a.entry.js → p-0be8896b.entry.js} +1 -1
  534. package/dist/genesys-webcomponents/{p-01903d98.entry.js → p-0cfab9e0.entry.js} +1 -1
  535. package/dist/genesys-webcomponents/p-0f17355e.entry.js +1 -0
  536. package/dist/genesys-webcomponents/{p-5d837d81.entry.js → p-13394e19.entry.js} +1 -1
  537. package/dist/genesys-webcomponents/p-158063d8.entry.js +1 -0
  538. package/dist/genesys-webcomponents/p-1589d770.entry.js +1 -0
  539. package/dist/genesys-webcomponents/{p-dcb97302.entry.js → p-198aaa88.entry.js} +1 -1
  540. package/dist/genesys-webcomponents/{p-8b08be99.entry.js → p-1bc00145.entry.js} +1 -1
  541. package/dist/genesys-webcomponents/{p-1ebe5ed3.entry.js → p-1c8d4258.entry.js} +1 -1
  542. package/dist/genesys-webcomponents/p-1cb754e6.entry.js +1 -0
  543. package/dist/genesys-webcomponents/{p-69e9cd33.entry.js → p-1ee618d2.entry.js} +1 -1
  544. package/dist/genesys-webcomponents/{p-214940c6.entry.js → p-20bf5b90.entry.js} +1 -1
  545. package/dist/genesys-webcomponents/{p-4baa1c14.entry.js → p-22c09631.entry.js} +1 -1
  546. package/dist/genesys-webcomponents/{p-790b11d6.entry.js → p-281abe85.entry.js} +1 -1
  547. package/dist/genesys-webcomponents/p-2a0184b9.entry.js +1 -0
  548. package/dist/genesys-webcomponents/p-2baa2dda.entry.js +1 -0
  549. package/dist/genesys-webcomponents/p-2df3a4c9.entry.js +1 -0
  550. package/dist/genesys-webcomponents/p-2e978892.entry.js +1 -0
  551. package/dist/genesys-webcomponents/p-30856d6c.entry.js +1 -0
  552. package/dist/genesys-webcomponents/p-336b4590.entry.js +1 -0
  553. package/dist/genesys-webcomponents/{p-3a3b1707.entry.js → p-33c2c937.entry.js} +1 -1
  554. package/dist/genesys-webcomponents/p-345b73bd.entry.js +1 -0
  555. package/dist/genesys-webcomponents/p-350b56c1.entry.js +1 -0
  556. package/dist/genesys-webcomponents/{p-015ec925.entry.js → p-3549d6f9.entry.js} +1 -1
  557. package/dist/genesys-webcomponents/{p-0aeb6a87.entry.js → p-35c633f6.entry.js} +1 -1
  558. package/dist/genesys-webcomponents/p-368943d4.entry.js +1 -0
  559. package/dist/genesys-webcomponents/{p-33dc0d03.entry.js → p-39b26ec5.entry.js} +1 -1
  560. package/dist/genesys-webcomponents/p-3a11e0bd.entry.js +1 -0
  561. package/dist/genesys-webcomponents/p-3a680ff9.entry.js +1 -0
  562. package/dist/genesys-webcomponents/{p-af065e47.entry.js → p-3e99d34a.entry.js} +1 -1
  563. package/dist/genesys-webcomponents/{p-381dfc1e.entry.js → p-3f771821.entry.js} +1 -1
  564. package/dist/genesys-webcomponents/{p-c573364e.entry.js → p-426b9213.entry.js} +1 -1
  565. package/dist/genesys-webcomponents/p-436a075f.entry.js +1 -0
  566. package/dist/genesys-webcomponents/p-4432b315.entry.js +1 -0
  567. package/dist/genesys-webcomponents/{p-89a0a654.entry.js → p-44d80840.entry.js} +1 -1
  568. package/dist/genesys-webcomponents/{p-4aeb8c69.entry.js → p-4cc5f28a.entry.js} +1 -1
  569. package/dist/genesys-webcomponents/{p-38484208.entry.js → p-4d0a2fe7.entry.js} +1 -1
  570. package/dist/genesys-webcomponents/p-4d19ea97.entry.js +1 -0
  571. package/dist/genesys-webcomponents/p-4dfdbc95.entry.js +1 -0
  572. package/dist/genesys-webcomponents/{p-f8cf4da5.entry.js → p-4e693d14.entry.js} +1 -1
  573. package/dist/genesys-webcomponents/{p-6d62c7a0.entry.js → p-4ed69aa6.entry.js} +1 -1
  574. package/dist/genesys-webcomponents/{p-2add5b37.entry.js → p-4f6639bf.entry.js} +1 -1
  575. package/dist/genesys-webcomponents/p-5014fd45.entry.js +1 -0
  576. package/dist/genesys-webcomponents/{p-7447f225.entry.js → p-5320a143.entry.js} +1 -1
  577. package/dist/genesys-webcomponents/p-552a31c5.entry.js +1 -0
  578. package/dist/genesys-webcomponents/{p-c1be166a.entry.js → p-55407671.entry.js} +1 -1
  579. package/dist/genesys-webcomponents/p-57c661e7.entry.js +1 -0
  580. package/dist/genesys-webcomponents/p-57e79004.entry.js +1 -0
  581. package/dist/genesys-webcomponents/p-594c124f.entry.js +1 -0
  582. package/dist/genesys-webcomponents/{p-15ffcbea.entry.js → p-5d3e8043.entry.js} +1 -1
  583. package/dist/genesys-webcomponents/p-5e466f6d.entry.js +1 -0
  584. package/dist/genesys-webcomponents/{p-78229446.entry.js → p-5ff414b9.entry.js} +1 -1
  585. package/dist/genesys-webcomponents/{p-17345c5e.entry.js → p-6243d202.entry.js} +1 -1
  586. package/dist/genesys-webcomponents/{p-5008487f.entry.js → p-6374b848.entry.js} +1 -1
  587. package/dist/genesys-webcomponents/{p-2da514bd.entry.js → p-6751d6e3.entry.js} +1 -1
  588. package/dist/genesys-webcomponents/p-6888b364.entry.js +1 -0
  589. package/dist/genesys-webcomponents/{p-bd06e86c.entry.js → p-68a271ec.entry.js} +1 -1
  590. package/dist/genesys-webcomponents/p-68d0f70b.entry.js +1 -0
  591. package/dist/genesys-webcomponents/{p-0919430c.entry.js → p-6908e77e.entry.js} +1 -1
  592. package/dist/genesys-webcomponents/p-6a533ce5.entry.js +1 -0
  593. package/dist/genesys-webcomponents/{p-643df6ba.entry.js → p-6b1e2c47.entry.js} +1 -1
  594. package/dist/genesys-webcomponents/{p-6426db2b.entry.js → p-6b6d5a81.entry.js} +1 -1
  595. package/dist/genesys-webcomponents/{p-70f8f681.entry.js → p-6b761453.entry.js} +1 -1
  596. package/dist/genesys-webcomponents/{p-68ef0852.entry.js → p-6bf59486.entry.js} +1 -1
  597. package/dist/genesys-webcomponents/{p-a08a3aa2.entry.js → p-6bf5e83c.entry.js} +1 -1
  598. package/dist/genesys-webcomponents/p-6e4976a0.entry.js +1 -0
  599. package/dist/genesys-webcomponents/{p-383d3214.entry.js → p-6f68f2d9.entry.js} +1 -1
  600. package/dist/genesys-webcomponents/p-74ac54c5.entry.js +1 -0
  601. package/dist/genesys-webcomponents/{p-1b4b7d0e.entry.js → p-74d3aa6f.entry.js} +1 -1
  602. package/dist/genesys-webcomponents/{p-d2ad4352.entry.js → p-753d0f90.entry.js} +1 -1
  603. package/dist/genesys-webcomponents/{p-bcb7302d.entry.js → p-769f72d0.entry.js} +1 -1
  604. package/dist/genesys-webcomponents/{p-14588d25.entry.js → p-779be15e.entry.js} +1 -1
  605. package/dist/genesys-webcomponents/p-78bde458.entry.js +1 -0
  606. package/dist/genesys-webcomponents/p-7b5e976f.entry.js +1 -0
  607. package/dist/genesys-webcomponents/p-7b89df4e.entry.js +1 -0
  608. package/dist/genesys-webcomponents/{p-bebe2c4e.entry.js → p-7bb0d607.entry.js} +1 -1
  609. package/dist/genesys-webcomponents/p-7cf0ec3d.entry.js +1 -0
  610. package/dist/genesys-webcomponents/{p-fb66e758.entry.js → p-7fe5a273.entry.js} +1 -1
  611. package/dist/genesys-webcomponents/{p-90f7fa54.entry.js → p-808987b0.entry.js} +1 -1
  612. package/dist/genesys-webcomponents/p-812a82dc.entry.js +1 -0
  613. package/dist/genesys-webcomponents/p-858ceab2.entry.js +1 -0
  614. package/dist/genesys-webcomponents/{p-fa39a90c.entry.js → p-8d758cf8.entry.js} +1 -1
  615. package/dist/genesys-webcomponents/{p-9bee68fa.entry.js → p-90ac400a.entry.js} +1 -1
  616. package/dist/genesys-webcomponents/{p-98455831.entry.js → p-92e547a7.entry.js} +1 -1
  617. package/dist/genesys-webcomponents/p-92ee1007.entry.js +1 -0
  618. package/dist/genesys-webcomponents/{p-e385c8c2.entry.js → p-93510a23.entry.js} +1 -1
  619. package/dist/genesys-webcomponents/p-93ce237e.entry.js +1 -0
  620. package/dist/genesys-webcomponents/{p-059ee60e.entry.js → p-95cfed6e.entry.js} +1 -1
  621. package/dist/genesys-webcomponents/{p-085be982.entry.js → p-9c1791a8.entry.js} +1 -1
  622. package/dist/genesys-webcomponents/{p-d290bb18.entry.js → p-9f2b6a4d.entry.js} +1 -1
  623. package/dist/genesys-webcomponents/p-9f66e9a5.entry.js +1 -0
  624. package/dist/genesys-webcomponents/{p-13d8a42a.js → p-B0p1zRQq.js} +1 -1
  625. package/dist/genesys-webcomponents/p-B10WAyAx.js +1 -0
  626. package/dist/genesys-webcomponents/p-BDZ-txoP.js +1 -0
  627. package/dist/genesys-webcomponents/p-BFMPPR7N.js +1 -0
  628. package/dist/genesys-webcomponents/p-BFTU3MAI.js +1 -0
  629. package/dist/genesys-webcomponents/p-BIx814vt.js +1 -0
  630. package/dist/genesys-webcomponents/{p-eca567b9.js → p-BP4cqh7O.js} +1 -1
  631. package/dist/genesys-webcomponents/{p-43db8808.js → p-BUgza8B9.js} +1 -1
  632. package/dist/genesys-webcomponents/{p-5fcdcbfd.js → p-BV03_Ljp.js} +1 -1
  633. package/dist/genesys-webcomponents/{p-8d73b418.js → p-BebXX5IS.js} +1 -1
  634. package/dist/genesys-webcomponents/{p-b2e29026.js → p-Bqbn0_rB.js} +1 -1
  635. package/dist/genesys-webcomponents/p-C7erT454.js +1 -0
  636. package/dist/genesys-webcomponents/p-CHN0tqYN.js +1 -0
  637. package/dist/genesys-webcomponents/p-CIt2cSVJ.js +1 -0
  638. package/dist/genesys-webcomponents/{p-8e7bc8d5.js → p-CT1RzBtI.js} +1 -1
  639. package/dist/genesys-webcomponents/p-CbifHkss.js +1 -0
  640. package/dist/genesys-webcomponents/{p-56b18d28.js → p-Cc0kwTGQ.js} +1 -1
  641. package/dist/genesys-webcomponents/{p-bd1d4fac.js → p-CpEoC8_r.js} +1 -1
  642. package/dist/genesys-webcomponents/p-DE51TUwj.js +1 -0
  643. package/dist/genesys-webcomponents/p-DFTYqKJS.js +1 -0
  644. package/dist/genesys-webcomponents/{p-4aaf349e.js → p-DHLxhscH.js} +1 -1
  645. package/dist/genesys-webcomponents/p-DIwuivkl.js +1 -0
  646. package/dist/genesys-webcomponents/{p-8eaf8caf.js → p-DxtJDeL9.js} +1 -1
  647. package/dist/genesys-webcomponents/p-a0a825e5.entry.js +1 -0
  648. package/dist/genesys-webcomponents/p-a1d31f68.entry.js +1 -0
  649. package/dist/genesys-webcomponents/{p-21936ade.entry.js → p-a22f3d53.entry.js} +1 -1
  650. package/dist/genesys-webcomponents/{p-41ceb756.entry.js → p-a2baa007.entry.js} +1 -1
  651. package/dist/genesys-webcomponents/{p-f77ae719.entry.js → p-a3a04b8e.entry.js} +1 -1
  652. package/dist/genesys-webcomponents/{p-0ac5cb05.entry.js → p-a3b85f99.entry.js} +1 -1
  653. package/dist/genesys-webcomponents/p-a73a867b.entry.js +1 -0
  654. package/dist/genesys-webcomponents/{p-cf76e75b.entry.js → p-ab5a639f.entry.js} +1 -1
  655. package/dist/genesys-webcomponents/p-ab5bc8c6.entry.js +1 -0
  656. package/dist/genesys-webcomponents/{p-29565cf8.entry.js → p-ad3574b9.entry.js} +1 -1
  657. package/dist/genesys-webcomponents/{p-0f49b63b.entry.js → p-b05523fb.entry.js} +1 -1
  658. package/dist/genesys-webcomponents/{p-abe15d64.entry.js → p-b0fe9e62.entry.js} +1 -1
  659. package/dist/genesys-webcomponents/{p-cb69eae5.entry.js → p-b5568e7b.entry.js} +1 -1
  660. package/dist/genesys-webcomponents/{p-6acbe425.entry.js → p-b66b555a.entry.js} +1 -1
  661. package/dist/genesys-webcomponents/p-b6be0be9.entry.js +1 -0
  662. package/dist/genesys-webcomponents/{p-a7cc93aa.entry.js → p-b7ed8df0.entry.js} +1 -1
  663. package/dist/genesys-webcomponents/p-b9d0e6ed.entry.js +1 -0
  664. package/dist/genesys-webcomponents/{p-fc67f8a8.entry.js → p-bce68452.entry.js} +1 -1
  665. package/dist/genesys-webcomponents/p-bdfb4f9e.entry.js +1 -0
  666. package/dist/genesys-webcomponents/{p-a3c8cd87.entry.js → p-c02d9855.entry.js} +1 -1
  667. package/dist/genesys-webcomponents/{p-96bfb4e2.entry.js → p-c2bb202a.entry.js} +1 -1
  668. package/dist/genesys-webcomponents/p-c2e9618b.entry.js +1 -0
  669. package/dist/genesys-webcomponents/{p-c26c84b8.entry.js → p-c46a7270.entry.js} +1 -1
  670. package/dist/genesys-webcomponents/p-c4814940.entry.js +1 -0
  671. package/dist/genesys-webcomponents/p-c68a95c6.entry.js +1 -0
  672. package/dist/genesys-webcomponents/{p-1da9c5fd.entry.js → p-c7b72735.entry.js} +1 -1
  673. package/dist/genesys-webcomponents/{p-ba6baf45.entry.js → p-c966946b.entry.js} +1 -1
  674. package/dist/genesys-webcomponents/p-c9ad1a44.entry.js +1 -0
  675. package/dist/genesys-webcomponents/p-cbd39423.entry.js +1 -0
  676. package/dist/genesys-webcomponents/p-ccf85f26.entry.js +1 -0
  677. package/dist/genesys-webcomponents/p-cd020c7f.entry.js +1 -0
  678. package/dist/genesys-webcomponents/p-d1bc5d2a.entry.js +1 -0
  679. package/dist/genesys-webcomponents/p-d57255fc.entry.js +1 -0
  680. package/dist/genesys-webcomponents/p-d589df6f.entry.js +1 -0
  681. package/dist/genesys-webcomponents/{p-0694875b.entry.js → p-d62af1ee.entry.js} +1 -1
  682. package/dist/genesys-webcomponents/{p-f3d844c7.js → p-d6HR-UfA.js} +1 -1
  683. package/dist/genesys-webcomponents/{p-a75d66cf.entry.js → p-da909873.entry.js} +1 -1
  684. package/dist/genesys-webcomponents/p-da9ff718.entry.js +1 -0
  685. package/dist/genesys-webcomponents/p-de0bf5ee.entry.js +1 -0
  686. package/dist/genesys-webcomponents/p-e0bf441b.entry.js +1 -0
  687. package/dist/genesys-webcomponents/{p-050f2e6b.entry.js → p-e1611c8a.entry.js} +1 -1
  688. package/dist/genesys-webcomponents/p-e162756d.entry.js +1 -0
  689. package/dist/genesys-webcomponents/p-e32258c6.entry.js +1 -0
  690. package/dist/genesys-webcomponents/p-e4f611fb.entry.js +1 -0
  691. package/dist/genesys-webcomponents/{p-feff8389.entry.js → p-e59c24fd.entry.js} +1 -1
  692. package/dist/genesys-webcomponents/p-e61655ff.entry.js +1 -0
  693. package/dist/genesys-webcomponents/p-e6a79f2b.entry.js +1 -0
  694. package/dist/genesys-webcomponents/{p-b7e7e2fd.entry.js → p-e6cf4369.entry.js} +1 -1
  695. package/dist/genesys-webcomponents/p-e811c9ba.entry.js +1 -0
  696. package/dist/genesys-webcomponents/p-e8966f1a.entry.js +1 -0
  697. package/dist/genesys-webcomponents/{p-7c4d5813.entry.js → p-eae14c37.entry.js} +1 -1
  698. package/dist/genesys-webcomponents/{p-a0c54288.entry.js → p-eda050d1.entry.js} +1 -1
  699. package/dist/genesys-webcomponents/p-eeb91460.entry.js +1 -0
  700. package/dist/genesys-webcomponents/p-f0f5ccfd.entry.js +1 -0
  701. package/dist/genesys-webcomponents/{p-252aac89.entry.js → p-f4689e60.entry.js} +1 -1
  702. package/dist/genesys-webcomponents/{p-d198b78d.entry.js → p-f6dc0ba4.entry.js} +1 -1
  703. package/dist/genesys-webcomponents/{p-536a2927.entry.js → p-f89d64a5.entry.js} +1 -1
  704. package/dist/genesys-webcomponents/p-fa50e70e.entry.js +1 -0
  705. package/dist/genesys-webcomponents/p-fa7e9b55.entry.js +1 -0
  706. package/dist/genesys-webcomponents/{p-341f392e.entry.js → p-fa875852.entry.js} +1 -1
  707. package/dist/genesys-webcomponents/{p-1806b365.entry.js → p-fb4e4aea.entry.js} +1 -1
  708. package/dist/genesys-webcomponents/p-fbab6bde.entry.js +7 -0
  709. package/dist/genesys-webcomponents/p-fbfc7e31.entry.js +1 -0
  710. package/dist/genesys-webcomponents/p-fd129cc8.entry.js +1 -0
  711. package/dist/genesys-webcomponents/p-ffa901ec.entry.js +1 -0
  712. package/dist/genesys-webcomponents/p-npw54p0Y.js +2 -0
  713. package/dist/genesys-webcomponents/p-vciQk5kR.js +1 -0
  714. package/dist/genesys-webcomponents/{p-db201bbc.js → p-ygfGN0jf.js} +1 -1
  715. package/dist/stencil-wrapper.js +1 -1
  716. package/dist/types/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.d.ts +1 -0
  717. package/dist/types/components.d.ts +1378 -0
  718. package/dist/types/stencil-public-runtime.d.ts +23 -1
  719. package/dist/types/stencil-wrapper.d.ts +1 -1
  720. package/dist/types/test/e2eTestUtils.d.ts +1 -0
  721. package/package.json +10 -16
  722. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  723. package/dist/cjs/index-e321455d.js +0 -2500
  724. package/dist/cjs/index.umd-3caf0dbf.js +0 -5
  725. package/dist/cjs/usage-16af582c.js +0 -236
  726. package/dist/esm/_commonjsHelpers-c9e3b764.js +0 -11
  727. package/dist/esm/app-globals-0f993ce5.js +0 -3
  728. package/dist/esm/index-1f4f2f77.js +0 -2467
  729. package/dist/esm/index.umd-e7a76fe0.js +0 -3
  730. package/dist/esm/usage-4c1269b2.js +0 -234
  731. package/dist/genesys-webcomponents/p-0000478b.entry.js +0 -1
  732. package/dist/genesys-webcomponents/p-10a9d0c0.entry.js +0 -1
  733. package/dist/genesys-webcomponents/p-116cf29d.entry.js +0 -1
  734. package/dist/genesys-webcomponents/p-1194f154.entry.js +0 -1
  735. package/dist/genesys-webcomponents/p-1561858c.entry.js +0 -1
  736. package/dist/genesys-webcomponents/p-16dd049a.entry.js +0 -1
  737. package/dist/genesys-webcomponents/p-195982e6.js +0 -1
  738. package/dist/genesys-webcomponents/p-1f227dd2.entry.js +0 -1
  739. package/dist/genesys-webcomponents/p-1f4f4ae1.entry.js +0 -1
  740. package/dist/genesys-webcomponents/p-1fe91de2.entry.js +0 -1
  741. package/dist/genesys-webcomponents/p-20fbe34f.js +0 -1
  742. package/dist/genesys-webcomponents/p-254daed2.entry.js +0 -1
  743. package/dist/genesys-webcomponents/p-25fc4944.entry.js +0 -1
  744. package/dist/genesys-webcomponents/p-27330014.entry.js +0 -1
  745. package/dist/genesys-webcomponents/p-2b7c6c54.entry.js +0 -1
  746. package/dist/genesys-webcomponents/p-32086043.entry.js +0 -1
  747. package/dist/genesys-webcomponents/p-32b1e0b9.entry.js +0 -1
  748. package/dist/genesys-webcomponents/p-363466e3.js +0 -1
  749. package/dist/genesys-webcomponents/p-3f3a6a46.entry.js +0 -1
  750. package/dist/genesys-webcomponents/p-40792dfd.entry.js +0 -1
  751. package/dist/genesys-webcomponents/p-408d5857.js +0 -1
  752. package/dist/genesys-webcomponents/p-42bfa89a.entry.js +0 -1
  753. package/dist/genesys-webcomponents/p-436f623a.entry.js +0 -1
  754. package/dist/genesys-webcomponents/p-43f8b993.entry.js +0 -1
  755. package/dist/genesys-webcomponents/p-45db747c.entry.js +0 -1
  756. package/dist/genesys-webcomponents/p-4ad9494d.entry.js +0 -1
  757. package/dist/genesys-webcomponents/p-4c7a7a7a.entry.js +0 -1
  758. package/dist/genesys-webcomponents/p-4fa5d622.entry.js +0 -1
  759. package/dist/genesys-webcomponents/p-509d6c00.entry.js +0 -1
  760. package/dist/genesys-webcomponents/p-50ef4867.entry.js +0 -1
  761. package/dist/genesys-webcomponents/p-54439997.entry.js +0 -1
  762. package/dist/genesys-webcomponents/p-5630e17b.entry.js +0 -1
  763. package/dist/genesys-webcomponents/p-596fde14.entry.js +0 -1
  764. package/dist/genesys-webcomponents/p-60e5a333.entry.js +0 -1
  765. package/dist/genesys-webcomponents/p-699ad555.entry.js +0 -1
  766. package/dist/genesys-webcomponents/p-6fdf7d55.entry.js +0 -1
  767. package/dist/genesys-webcomponents/p-74f7ea50.entry.js +0 -1
  768. package/dist/genesys-webcomponents/p-77b2682f.entry.js +0 -1
  769. package/dist/genesys-webcomponents/p-77b807a0.entry.js +0 -1
  770. package/dist/genesys-webcomponents/p-79a7857c.entry.js +0 -1
  771. package/dist/genesys-webcomponents/p-832c080d.js +0 -1
  772. package/dist/genesys-webcomponents/p-836f1fb3.entry.js +0 -1
  773. package/dist/genesys-webcomponents/p-875363d8.entry.js +0 -1
  774. package/dist/genesys-webcomponents/p-8aab46cf.entry.js +0 -1
  775. package/dist/genesys-webcomponents/p-8e7ab707.entry.js +0 -1
  776. package/dist/genesys-webcomponents/p-8fcd7b71.entry.js +0 -1
  777. package/dist/genesys-webcomponents/p-946c70b7.js +0 -1
  778. package/dist/genesys-webcomponents/p-94886fbe.entry.js +0 -1
  779. package/dist/genesys-webcomponents/p-952477f9.entry.js +0 -1
  780. package/dist/genesys-webcomponents/p-96096520.entry.js +0 -1
  781. package/dist/genesys-webcomponents/p-978f71b5.js +0 -1
  782. package/dist/genesys-webcomponents/p-9957c64d.entry.js +0 -1
  783. package/dist/genesys-webcomponents/p-997f9404.entry.js +0 -1
  784. package/dist/genesys-webcomponents/p-a72df886.entry.js +0 -1
  785. package/dist/genesys-webcomponents/p-a8772b5a.entry.js +0 -1
  786. package/dist/genesys-webcomponents/p-a8ff5c0d.entry.js +0 -1
  787. package/dist/genesys-webcomponents/p-aac9fe92.entry.js +0 -1
  788. package/dist/genesys-webcomponents/p-ac08b61f.entry.js +0 -1
  789. package/dist/genesys-webcomponents/p-ac250736.entry.js +0 -1
  790. package/dist/genesys-webcomponents/p-adc0a88d.entry.js +0 -1
  791. package/dist/genesys-webcomponents/p-adc5d51e.entry.js +0 -1
  792. package/dist/genesys-webcomponents/p-af0ba692.entry.js +0 -1
  793. package/dist/genesys-webcomponents/p-af1d48d9.entry.js +0 -7
  794. package/dist/genesys-webcomponents/p-b168a04f.entry.js +0 -1
  795. package/dist/genesys-webcomponents/p-b381b746.entry.js +0 -1
  796. package/dist/genesys-webcomponents/p-b868b7f8.entry.js +0 -1
  797. package/dist/genesys-webcomponents/p-b8929af0.entry.js +0 -1
  798. package/dist/genesys-webcomponents/p-baa89a43.entry.js +0 -1
  799. package/dist/genesys-webcomponents/p-bc45171e.entry.js +0 -1
  800. package/dist/genesys-webcomponents/p-be142c81.js +0 -1
  801. package/dist/genesys-webcomponents/p-c160463b.entry.js +0 -1
  802. package/dist/genesys-webcomponents/p-c7ef5d27.entry.js +0 -1
  803. package/dist/genesys-webcomponents/p-cb29093e.entry.js +0 -1
  804. package/dist/genesys-webcomponents/p-cc3c3c56.js +0 -1
  805. package/dist/genesys-webcomponents/p-cf74fd3d.js +0 -2
  806. package/dist/genesys-webcomponents/p-d6a9ff86.entry.js +0 -1
  807. package/dist/genesys-webcomponents/p-db43c834.entry.js +0 -1
  808. package/dist/genesys-webcomponents/p-de61f61d.entry.js +0 -1
  809. package/dist/genesys-webcomponents/p-df52606a.entry.js +0 -1
  810. package/dist/genesys-webcomponents/p-e0a3c96f.js +0 -1
  811. package/dist/genesys-webcomponents/p-e1255160.js +0 -1
  812. package/dist/genesys-webcomponents/p-e5e644b3.js +0 -1
  813. package/dist/genesys-webcomponents/p-e728de2d.entry.js +0 -1
  814. package/dist/genesys-webcomponents/p-e9c4f463.js +0 -1
  815. package/dist/genesys-webcomponents/p-ea136b34.entry.js +0 -1
  816. package/dist/genesys-webcomponents/p-ea2b2a92.entry.js +0 -1
  817. package/dist/genesys-webcomponents/p-eaa06cd9.entry.js +0 -1
  818. package/dist/genesys-webcomponents/p-f01d2320.js +0 -1
  819. package/dist/genesys-webcomponents/p-f10762fb.entry.js +0 -1
  820. package/dist/genesys-webcomponents/p-f65beeb0.entry.js +0 -1
  821. package/dist/genesys-webcomponents/p-f95f6c99.entry.js +0 -1
  822. package/dist/genesys-webcomponents/p-fb4da322.entry.js +0 -1
  823. package/dist/genesys-webcomponents/p-fbb3b80b.entry.js +0 -1
  824. package/dist/loader/package.json +0 -11
  825. /package/dist/cjs/{after-next-render-162425fe.js → after-next-render-CeY_1Kbz.js} +0 -0
  826. /package/dist/cjs/{capitalize-first-letter-424667dc.js → capitalize-first-letter-mZPrUEI2.js} +0 -0
  827. /package/dist/cjs/{clamp-e86a226e.js → clamp-BlDLYO0F.js} +0 -0
  828. /package/dist/cjs/{event-is-from-3ab90a6c.js → event-is-from-D62oX3Ld.js} +0 -0
  829. /package/dist/cjs/{find-element-by-id-fde17c92.js → find-element-by-id-BmYnM3YU.js} +0 -0
  830. /package/dist/cjs/{focus-input-element-3a0c1858.js → focus-input-element-DmhIgp7F.js} +0 -0
  831. /package/dist/cjs/{get-closest-element-26170ce0.js → get-closest-element-CIMI0Cx4.js} +0 -0
  832. /package/dist/cjs/{get-closest-element-9e41d6b9.js → get-closest-element-CfyZl7i7.js} +0 -0
  833. /package/dist/cjs/{get-slot-4fedce9f.js → get-slot-EZYuUuno.js} +0 -0
  834. /package/dist/cjs/{get-slot-text-content-83cb3c6d.js → get-slot-text-content-DZwcXMIm.js} +0 -0
  835. /package/dist/cjs/{gux-avatar.service-b4dcfcab.js → gux-avatar.service-DgavlIib.js} +0 -0
  836. /package/dist/cjs/{gux-list.service-cf8447cb.js → gux-list.service-CecJpxVa.js} +0 -0
  837. /package/dist/cjs/{gux-listbox.service-700ba659.js → gux-listbox.service-Dvz43AV2.js} +0 -0
  838. /package/dist/cjs/{gux-menu.common-b5cd8551.js → gux-menu.common-B8_9UAPe.js} +0 -0
  839. /package/dist/cjs/{has-slot-3edae188.js → has-slot-BFTyqu_U.js} +0 -0
  840. /package/dist/cjs/{iso-dates-2daf4199.js → iso-dates-B-hZmvim.js} +0 -0
  841. /package/dist/cjs/{log-error-7b9d4b57.js → log-error-nWO_o1C3.js} +0 -0
  842. /package/dist/cjs/{on-attribute-change-a9f44523.js → on-attribute-change-Cv7L_5Zv.js} +0 -0
  843. /package/dist/cjs/{on-input-disabled-state-change-660a5191.js → on-input-disabled-state-change-CSLxaSas.js} +0 -0
  844. /package/dist/cjs/{on-mutation-d800434a.js → on-mutation-MIY4v9bf.js} +0 -0
  845. /package/dist/cjs/{prevent-browser-validation-styling-132644ad.js → prevent-browser-validation-styling-Dcbciyyc.js} +0 -0
  846. /package/dist/cjs/{random-html-id-71c43d5a.js → random-html-id-DH9-ntZu.js} +0 -0
  847. /package/dist/cjs/{simulate-native-event-e88bf64f.js → simulate-native-event-_MPnVmRN.js} +0 -0
  848. /package/dist/cjs/{use-regional-dates-4d3f1b9d.js → use-regional-dates-qjhuD9Ak.js} +0 -0
  849. /package/dist/cjs/{when-event-is-from-dd77a8d3.js → when-event-is-from-C6TjNoqM.js} +0 -0
  850. /package/dist/cjs/{year-month-values-c47cf051.js → year-month-values-CuDMneF9.js} +0 -0
  851. /package/dist/esm/{after-next-render-07a41f53.js → after-next-render-Bg4q97BS.js} +0 -0
  852. /package/dist/esm/{capitalize-first-letter-404638dd.js → capitalize-first-letter-Cf6_BoFM.js} +0 -0
  853. /package/dist/esm/{clamp-1fc36648.js → clamp-CcCycvZh.js} +0 -0
  854. /package/dist/esm/{event-is-from-60a4bc72.js → event-is-from-C6ZfOd6U.js} +0 -0
  855. /package/dist/esm/{find-element-by-id-d0ce6208.js → find-element-by-id-Cr5bTKWF.js} +0 -0
  856. /package/dist/esm/{focus-input-element-8a137b12.js → focus-input-element-JHLuJ8Pb.js} +0 -0
  857. /package/dist/esm/{get-closest-element-7b2f7d5b.js → get-closest-element-BZb6pJEJ.js} +0 -0
  858. /package/dist/esm/{get-closest-element-728b9f18.js → get-closest-element-Cd4R0amv.js} +0 -0
  859. /package/dist/esm/{get-slot-41f866aa.js → get-slot-BBpQG81s.js} +0 -0
  860. /package/dist/esm/{get-slot-text-content-95a85429.js → get-slot-text-content-MAoEg4ig.js} +0 -0
  861. /package/dist/esm/{gux-listbox.service-250c2b08.js → gux-listbox.service-B_WlCjG2.js} +0 -0
  862. /package/dist/esm/{gux-menu.common-8abe7c98.js → gux-menu.common-QGDBFOq1.js} +0 -0
  863. /package/dist/esm/{has-slot-f24a46a6.js → has-slot-qzV3vtOw.js} +0 -0
  864. /package/dist/esm/{iso-dates-c6c7180d.js → iso-dates-aKaDsw_5.js} +0 -0
  865. /package/dist/esm/{on-attribute-change-33919964.js → on-attribute-change-De1NnCmO.js} +0 -0
  866. /package/dist/esm/{on-input-disabled-state-change-27395154.js → on-input-disabled-state-change-Cb3FOYGS.js} +0 -0
  867. /package/dist/esm/{on-mutation-a222fe93.js → on-mutation-CF55kYjc.js} +0 -0
  868. /package/dist/esm/{prevent-browser-validation-styling-3983eb0a.js → prevent-browser-validation-styling-PYfNAK8p.js} +0 -0
  869. /package/dist/esm/{random-html-id-81ac821b.js → random-html-id-D9jKBqIb.js} +0 -0
  870. /package/dist/esm/{simulate-native-event-e0631897.js → simulate-native-event-BMRf5pjV.js} +0 -0
  871. /package/dist/esm/{use-regional-dates-20f9c0e5.js → use-regional-dates-ZuNZ-MBw.js} +0 -0
  872. /package/dist/esm/{when-event-is-from-2aac15f0.js → when-event-is-from-kLXvN2m9.js} +0 -0
  873. /package/dist/esm/{year-month-values-7461d213.js → year-month-values-Dwrcabgx.js} +0 -0
  874. /package/dist/genesys-webcomponents/{p-89657908.js → p-BBpQG81s.js} +0 -0
  875. /package/dist/genesys-webcomponents/{p-2c25e2f2.js → p-BMRf5pjV.js} +0 -0
  876. /package/dist/genesys-webcomponents/{p-43af726d.js → p-BZb6pJEJ.js} +0 -0
  877. /package/dist/genesys-webcomponents/{p-01ff7495.js → p-B_WlCjG2.js} +0 -0
  878. /package/dist/genesys-webcomponents/{p-cf0e7d3b.js → p-Bg4q97BS.js} +0 -0
  879. /package/dist/genesys-webcomponents/{p-ea5e1b2f.js → p-C6ZfOd6U.js} +0 -0
  880. /package/dist/genesys-webcomponents/{p-0f60c7b5.js → p-CF55kYjc.js} +0 -0
  881. /package/dist/genesys-webcomponents/{p-f4751a15.js → p-Cb3FOYGS.js} +0 -0
  882. /package/dist/genesys-webcomponents/{p-a43079c8.js → p-CcCycvZh.js} +0 -0
  883. /package/dist/genesys-webcomponents/{p-4202e9f2.js → p-Cd4R0amv.js} +0 -0
  884. /package/dist/genesys-webcomponents/{p-267e2aed.js → p-Cf6_BoFM.js} +0 -0
  885. /package/dist/genesys-webcomponents/{p-9b0d3713.js → p-Cr5bTKWF.js} +0 -0
  886. /package/dist/genesys-webcomponents/{p-0934300e.js → p-D9jKBqIb.js} +0 -0
  887. /package/dist/genesys-webcomponents/{p-6b12dd16.js → p-De1NnCmO.js} +0 -0
  888. /package/dist/genesys-webcomponents/{p-67d92675.js → p-Dwrcabgx.js} +0 -0
  889. /package/dist/genesys-webcomponents/{p-54822e3b.js → p-JHLuJ8Pb.js} +0 -0
  890. /package/dist/genesys-webcomponents/{p-0268a3e8.js → p-MAoEg4ig.js} +0 -0
  891. /package/dist/genesys-webcomponents/{p-a11d5d42.js → p-PYfNAK8p.js} +0 -0
  892. /package/dist/genesys-webcomponents/{p-ac18cbbe.js → p-QGDBFOq1.js} +0 -0
  893. /package/dist/genesys-webcomponents/{p-c36d332b.js → p-ZuNZ-MBw.js} +0 -0
  894. /package/dist/genesys-webcomponents/{p-e33e87ef.js → p-aKaDsw_5.js} +0 -0
  895. /package/dist/genesys-webcomponents/{p-e97879b4.js → p-kLXvN2m9.js} +0 -0
  896. /package/dist/genesys-webcomponents/{p-6d8b4027.js → p-qzV3vtOw.js} +0 -0
@@ -1 +1 @@
1
- import{r as t,c as i,d as e,h as r,g as o}from"./p-cf74fd3d.js";import{O as n}from"./p-832c080d.js";import{h as s}from"./p-6d8b4027.js";import{t as a}from"./p-e0a3c96f.js";import{g as d}from"./p-b2e29026.js";import{b as h}from"./p-e5e644b3.js";import{t as c}from"./p-f01d2320.js";import{a as l}from"./p-cf0e7d3b.js";import{O as u}from"./p-946c70b7.js";import"./p-43af726d.js";import"./p-4202e9f2.js";var g=function(t,i,e,r){var o,n=arguments.length,s=n<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(i,e,s):o(i,e))||s);return n>3&&s&&Object.defineProperty(i,e,s),s};const x=class{constructor(e){t(this,e),this.guxToggleAction=i(this,"guxToggleAction",7),this.disabled=!1,this.typographicalEmphasisActions=[],this.textStylingActions=[],this.listsAndIndentationActions=[],this.insertingActions=[],this.hasToolbar=!1}checkResponsiveLayout(){e((()=>{this.handleOverflow(),this.getHiddenActions()}))}onMutation(){this.hasToolbar=this.hasToolbarChildren()}async componentWillLoad(){a(this.root),this.i18n=await h(this.root,c)}componentDidLoad(){this.hasToolbar=this.hasToolbarChildren(),l((()=>{this.checkResponsiveLayout()}))}componentDidUpdate(){this.handleOverflow()}isOverFlowing(){var t;const i=null===(t=this.root)||void 0===t?void 0:t.shadowRoot.querySelector(".gux-rich-text-editor-toolbar-container");return Array.from(i.children).filter((t=>!t.classList.contains("gux-hidden"))).reduce(((t,i)=>t+i.clientWidth),0)>i.clientWidth}handleOverflow(){const t=Array.from(this.root.querySelectorAll("gux-rich-text-editor-action-group"));for(;this.isOverFlowing();){let i=!1;for(let e=t.length-1;e>=0;e--)if(!t[e].classList.contains("gux-hidden")){t[e].classList.add("gux-hidden"),i=!0;break}if(!i)break}for(const i of t)if(i.classList.contains("gux-hidden")&&(i.classList.remove("gux-hidden"),this.isOverFlowing())){i.classList.add("gux-hidden");break}}getHiddenActions(){this.typographicalEmphasisActions=d(this.root,'gux-rich-text-editor-action-group[slot="typographical-emphasis"]',"gux-hidden"),this.listsAndIndentationActions=d(this.root,'gux-rich-text-editor-action-group[slot="lists-indentation"]',"gux-hidden"),this.textStylingActions=d(this.root,'gux-rich-text-editor-action-group[slot="text-styling"]',"gux-hidden"),this.insertingActions=d(this.root,'gux-rich-text-editor-action-group[slot="inserting"]',"gux-hidden")}getAllActions(){return[...this.textStylingActions,...this.typographicalEmphasisActions,...this.listsAndIndentationActions,...this.insertingActions]}categorizeActions(t){const i=[],e=[],r=[];return t.forEach((t=>{t.startsWith("rich-style-")?i.push(t.slice(11)):t.startsWith("highlight-")?e.push(t.slice(10)):r.push(t)})),{richStyleActions:i,highlightActions:e,filteredActions:r}}renderListItems(t,i=!1){return t.map(((t,e)=>{const o=t.replace(/<\/?[^>]+(>|$)/g,"");return r("gux-rich-style-list-item",Object.assign({onClick:()=>this.guxToggleAction.emit(o),key:e,value:o},i?{innerHTML:t}:{}),!i&&(this.i18n(o)||o))}))}renderSubList(t,i,e=!1){if(i.length>0)return r("gux-rich-text-editor-sub-list",{label:this.i18n(t)},this.renderListItems(i,e))}renderHighlightSubList(t){if(t.length>0)return r("gux-rich-text-editor-sub-list",{label:this.i18n("textHighlight")},this.renderListItems(t),r("gux-rich-style-list-item",{onClick:()=>this.guxToggleAction.emit("noHighlightAction"),value:"noHighlight"},r("gux-truncate",{"max-lines":1},this.i18n("noHighlight"))))}renderTextEditorMenu(){const t=this.getAllActions();if(t.length>0){const{richStyleActions:i,highlightActions:e,filteredActions:o}=this.categorizeActions(t);return r("gux-rich-text-editor-menu",null,this.renderListItems(o),this.renderSubList("richStyle",i,!0),this.renderHighlightSubList(e))}}renderSlot(t,i){return s(this.root,t)?r("div",{class:i},r("slot",{name:t})):null}renderTypographicalEmphasis(){return this.renderSlot("typographical-emphasis","gux-typographical-emphasis-container")}renderTextStyling(){return this.renderSlot("text-styling","gux-text-styling-container")}renderListsIndentation(){return this.renderSlot("lists-indentation","gux-lists-indentation-container")}renderInserting(){return this.renderSlot("inserting","gux-inserting-container")}renderGlobalAction(){return this.renderSlot("global-action","gux-global-action-container")}hasToolbarChildren(){return[this.renderTypographicalEmphasis(),this.renderTextStyling(),this.renderListsIndentation(),this.renderInserting(),this.renderTextEditorMenu(),this.renderGlobalAction()].some((t=>null!=t))}render(){return r("div",{key:"0c30232dc23ef57def4f584a7e6d698adf283ab4",class:{"gux-rich-text-editor-container":!0,"gux-disabled":this.disabled,"gux-toolbar-hidden":!this.hasToolbar}},r("div",{key:"8d8c9dc9f48809b588ca2dc0db47c58e00fbd999",class:"gux-rich-text-editor-toolbar-container"},this.renderTypographicalEmphasis(),this.renderTextStyling(),this.renderListsIndentation(),this.renderInserting(),this.renderTextEditorMenu(),this.renderGlobalAction()),r("slot",{key:"d5142a425c14642edd1723d24f9caeff0707545d",name:"editor"}))}get root(){return o(this)}};g([n()],x.prototype,"checkResponsiveLayout",null),g([u({childList:!0,subtree:!0})],x.prototype,"onMutation",null),x.style=":host{display:block}:host([style*=resize]){overflow:auto;resize:inherit}.gux-rich-text-editor-container{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--gse-ui-rte-innerContainer-gap);inline-size:100%;max-inline-size:100%;block-size:100%;max-block-size:100%;padding:var(--gse-ui-rte-padding);overflow:hidden scroll;background-color:var(--gse-ui-formControl-input-backgroundColor);border:var(--gse-ui-rte-mainContainer-default-border-width) var(--gse-ui-rte-mainContainer-default-border-color) var(--gse-ui-rte-mainContainer-default-border-style);border-radius:var(--gse-ui-rte-container-borderRadius)}.gux-rich-text-editor-container.gux-toolbar-hidden{gap:0}.gux-rich-text-editor-container .gux-rich-text-editor-toolbar-container{display:flex;flex-direction:row;justify-content:flex-start}.gux-rich-text-editor-container .gux-rich-text-editor-toolbar-container .gux-global-action-container{margin-inline-start:auto}.gux-rich-text-editor-container.gux-disabled{pointer-events:none;cursor:default;user-select:none;border:var(--gse-ui-rte-mainContainer-disabled-border-width) var(--gse-ui-rte-mainContainer-disabled-border-color) var(--gse-ui-rte-mainContainer-disabled-border-style);opacity:0.5}.gux-rich-text-editor-container:active:enabled{border:var(--gse-ui-rte-mainContainer-active-border-width) var(--gse-ui-rte-mainContainer-active-border-color) var(--gse-ui-rte-mainContainer-active-border-style)}.gux-rich-text-editor-container:focus-within:not(.gux-disabled),.gux-rich-text-editor-container:hover:not(.gux-disabled){border:var(--gse-ui-rte-mainContainer-hover-border-width) var(--gse-ui-rte-mainContainer-hover-border-color) var(--gse-ui-rte-mainContainer-hover-border-style)}.gux-rich-text-editor-container:focus-within:not(.gux-disabled){outline:var(--gse-ui-rte-mainContainer-focus-border-width) var(--gse-ui-rte-mainContainer-focus-border-color) var(--gse-ui-rte-mainContainer-focus-border-style)}";export{x as gux_rich_text_editor_beta}
1
+ import{r as t,c as i,d as e,h as r,a as o}from"./p-npw54p0Y.js";import{O as n}from"./p-DIwuivkl.js";import{h as s}from"./p-qzV3vtOw.js";import{t as a}from"./p-DE51TUwj.js";import{g as d}from"./p-Bqbn0_rB.js";import{b as h}from"./p-CIt2cSVJ.js";import{t as c}from"./p-CHN0tqYN.js";import{a as l}from"./p-Bg4q97BS.js";import{O as u}from"./p-CbifHkss.js";import"./p-BZb6pJEJ.js";import"./p-Cd4R0amv.js";var g=function(t,i,e,r){var o,n=arguments.length,s=n<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(i,e,s):o(i,e))||s);return n>3&&s&&Object.defineProperty(i,e,s),s};const x=class{constructor(e){t(this,e),this.guxToggleAction=i(this,"guxToggleAction",7),this.disabled=!1,this.typographicalEmphasisActions=[],this.textStylingActions=[],this.listsAndIndentationActions=[],this.insertingActions=[],this.hasToolbar=!1}checkResponsiveLayout(){e((()=>{this.handleOverflow(),this.getHiddenActions()}))}onMutation(){this.hasToolbar=this.hasToolbarChildren()}async componentWillLoad(){a(this.root),this.i18n=await h(this.root,c)}componentDidLoad(){this.hasToolbar=this.hasToolbarChildren(),l((()=>{this.checkResponsiveLayout()}))}componentDidUpdate(){this.handleOverflow()}isOverFlowing(){var t;const i=null===(t=this.root)||void 0===t?void 0:t.shadowRoot.querySelector(".gux-rich-text-editor-toolbar-container");return Array.from(i.children).filter((t=>!t.classList.contains("gux-hidden"))).reduce(((t,i)=>t+i.clientWidth),0)>i.clientWidth}handleOverflow(){const t=Array.from(this.root.querySelectorAll("gux-rich-text-editor-action-group"));for(;this.isOverFlowing();){let i=!1;for(let e=t.length-1;e>=0;e--)if(!t[e].classList.contains("gux-hidden")){t[e].classList.add("gux-hidden"),i=!0;break}if(!i)break}for(const i of t)if(i.classList.contains("gux-hidden")&&(i.classList.remove("gux-hidden"),this.isOverFlowing())){i.classList.add("gux-hidden");break}}getHiddenActions(){this.typographicalEmphasisActions=d(this.root,'gux-rich-text-editor-action-group[slot="typographical-emphasis"]',"gux-hidden"),this.listsAndIndentationActions=d(this.root,'gux-rich-text-editor-action-group[slot="lists-indentation"]',"gux-hidden"),this.textStylingActions=d(this.root,'gux-rich-text-editor-action-group[slot="text-styling"]',"gux-hidden"),this.insertingActions=d(this.root,'gux-rich-text-editor-action-group[slot="inserting"]',"gux-hidden")}getAllActions(){return[...this.textStylingActions,...this.typographicalEmphasisActions,...this.listsAndIndentationActions,...this.insertingActions]}categorizeActions(t){const i=[],e=[],r=[];return t.forEach((t=>{t.startsWith("rich-style-")?i.push(t.slice(11)):t.startsWith("highlight-")?e.push(t.slice(10)):r.push(t)})),{richStyleActions:i,highlightActions:e,filteredActions:r}}renderListItems(t,i=!1){return t.map(((t,e)=>{const o=t.replace(/<\/?[^>]+(>|$)/g,"");return r("gux-rich-style-list-item",Object.assign({onClick:()=>this.guxToggleAction.emit(o),key:e,value:o},i?{innerHTML:t}:{}),!i&&(this.i18n(o)||o))}))}renderSubList(t,i,e=!1){if(i.length>0)return r("gux-rich-text-editor-sub-list",{label:this.i18n(t)},this.renderListItems(i,e))}renderHighlightSubList(t){if(t.length>0)return r("gux-rich-text-editor-sub-list",{label:this.i18n("textHighlight")},this.renderListItems(t),r("gux-rich-style-list-item",{onClick:()=>this.guxToggleAction.emit("noHighlightAction"),value:"noHighlight"},r("gux-truncate",{"max-lines":1},this.i18n("noHighlight"))))}renderTextEditorMenu(){const t=this.getAllActions();if(t.length>0){const{richStyleActions:i,highlightActions:e,filteredActions:o}=this.categorizeActions(t);return r("gux-rich-text-editor-menu",null,this.renderListItems(o),this.renderSubList("richStyle",i,!0),this.renderHighlightSubList(e))}}renderSlot(t,i){return s(this.root,t)?r("div",{class:i},r("slot",{name:t})):null}renderTypographicalEmphasis(){return this.renderSlot("typographical-emphasis","gux-typographical-emphasis-container")}renderTextStyling(){return this.renderSlot("text-styling","gux-text-styling-container")}renderListsIndentation(){return this.renderSlot("lists-indentation","gux-lists-indentation-container")}renderInserting(){return this.renderSlot("inserting","gux-inserting-container")}renderGlobalAction(){return this.renderSlot("global-action","gux-global-action-container")}hasToolbarChildren(){return[this.renderTypographicalEmphasis(),this.renderTextStyling(),this.renderListsIndentation(),this.renderInserting(),this.renderTextEditorMenu(),this.renderGlobalAction()].some((t=>null!=t))}render(){return r("div",{key:"0c30232dc23ef57def4f584a7e6d698adf283ab4",class:{"gux-rich-text-editor-container":!0,"gux-disabled":this.disabled,"gux-toolbar-hidden":!this.hasToolbar}},r("div",{key:"8d8c9dc9f48809b588ca2dc0db47c58e00fbd999",class:"gux-rich-text-editor-toolbar-container"},this.renderTypographicalEmphasis(),this.renderTextStyling(),this.renderListsIndentation(),this.renderInserting(),this.renderTextEditorMenu(),this.renderGlobalAction()),r("slot",{key:"d5142a425c14642edd1723d24f9caeff0707545d",name:"editor"}))}get root(){return o(this)}};g([n()],x.prototype,"checkResponsiveLayout",null),g([u({childList:!0,subtree:!0})],x.prototype,"onMutation",null),x.style=":host{display:block}:host([style*=resize]){overflow:auto;resize:inherit}.gux-rich-text-editor-container{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--gse-ui-rte-innerContainer-gap);inline-size:100%;max-inline-size:100%;block-size:100%;max-block-size:100%;padding:var(--gse-ui-rte-padding);overflow:hidden scroll;background-color:var(--gse-ui-formControl-input-backgroundColor);border:var(--gse-ui-rte-mainContainer-default-border-width) var(--gse-ui-rte-mainContainer-default-border-color) var(--gse-ui-rte-mainContainer-default-border-style);border-radius:var(--gse-ui-rte-container-borderRadius)}.gux-rich-text-editor-container.gux-toolbar-hidden{gap:0}.gux-rich-text-editor-container .gux-rich-text-editor-toolbar-container{display:flex;flex-direction:row;justify-content:flex-start}.gux-rich-text-editor-container .gux-rich-text-editor-toolbar-container .gux-global-action-container{margin-inline-start:auto}.gux-rich-text-editor-container.gux-disabled{pointer-events:none;cursor:default;user-select:none;border:var(--gse-ui-rte-mainContainer-disabled-border-width) var(--gse-ui-rte-mainContainer-disabled-border-color) var(--gse-ui-rte-mainContainer-disabled-border-style);opacity:0.5}.gux-rich-text-editor-container:active:enabled{border:var(--gse-ui-rte-mainContainer-active-border-width) var(--gse-ui-rte-mainContainer-active-border-color) var(--gse-ui-rte-mainContainer-active-border-style)}.gux-rich-text-editor-container:focus-within:not(.gux-disabled),.gux-rich-text-editor-container:hover:not(.gux-disabled){border:var(--gse-ui-rte-mainContainer-hover-border-width) var(--gse-ui-rte-mainContainer-hover-border-color) var(--gse-ui-rte-mainContainer-hover-border-style)}.gux-rich-text-editor-container:focus-within:not(.gux-disabled){outline:var(--gse-ui-rte-mainContainer-focus-border-width) var(--gse-ui-rte-mainContainer-focus-border-color) var(--gse-ui-rte-mainContainer-focus-border-style)}";export{x as gux_rich_text_editor_beta}
@@ -1 +1 @@
1
- import{r as t,h as e,g as s}from"./p-cf74fd3d.js";import{g as o}from"./p-43af726d.js";import{t as i}from"./p-e0a3c96f.js";import{g as a}from"./p-0268a3e8.js";const n=class{constructor(e){t(this,e),this.iconOnly=!1,this.accent="secondary",this.disabled=!1}handleClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}hideText(){const t=o(this.root,"gux-table-toolbar"),e="condensed"!==(null==t?void 0:t.getAttribute("gs-layout"));return this.iconOnly&&e}renderTooltip(){if(this.hideText())return e("gux-tooltip",null,e("div",{slot:"content"},a(this.root,"text")))}componentWillLoad(){i(this.root)}render(){return e("gux-button-slot",{key:"61217c24713e01b9209acd9fc11af084a66f1e5a",accent:this.accent},e("button",{key:"d55ec1093371c0bac72df7844ec74c9367cc9844",disabled:this.disabled,type:"button",class:"gux-action-title"},e("slot",{key:"8aa9bbd6693a1bf456f03db7dabb17a3007fe33f",name:"icon"}),e("span",{key:"1ea0dcc0f10779786aa2a82642f58cc847ad665e",class:{"gux-sr-only":this.hideText()}},e("slot",{key:"8460cb5eec68e07b36c229b0b1264a443868eaaf",name:"text"}))),this.renderTooltip())}static get delegatesFocus(){return!0}get root(){return s(this)}};n.style=":host([disabled]),button[disabled]{pointer-events:none;user-select:none}.gux-sr-only{display:flex}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}.gux-action-title{display:flex;flex-direction:row;gap:var(--gse-ui-button-gap);align-items:center}.gux-action-title slot[name=icon]::slotted(gux-icon){inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}";export{n as gux_table_toolbar_custom_action}
1
+ import{r as t,h as e,a as s}from"./p-npw54p0Y.js";import{g as o}from"./p-BZb6pJEJ.js";import{t as i}from"./p-DE51TUwj.js";import{g as a}from"./p-MAoEg4ig.js";const n=class{constructor(e){t(this,e),this.iconOnly=!1,this.accent="secondary",this.disabled=!1}handleClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}hideText(){const t=o(this.root,"gux-table-toolbar"),e="condensed"!==(null==t?void 0:t.getAttribute("gs-layout"));return this.iconOnly&&e}renderTooltip(){if(this.hideText())return e("gux-tooltip",null,e("div",{slot:"content"},a(this.root,"text")))}componentWillLoad(){i(this.root)}render(){return e("gux-button-slot",{key:"61217c24713e01b9209acd9fc11af084a66f1e5a",accent:this.accent},e("button",{key:"d55ec1093371c0bac72df7844ec74c9367cc9844",disabled:this.disabled,type:"button",class:"gux-action-title"},e("slot",{key:"8aa9bbd6693a1bf456f03db7dabb17a3007fe33f",name:"icon"}),e("span",{key:"1ea0dcc0f10779786aa2a82642f58cc847ad665e",class:{"gux-sr-only":this.hideText()}},e("slot",{key:"8460cb5eec68e07b36c229b0b1264a443868eaaf",name:"text"}))),this.renderTooltip())}static get delegatesFocus(){return!0}get root(){return s(this)}};n.style=":host([disabled]),button[disabled]{pointer-events:none;user-select:none}.gux-sr-only{display:flex}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}.gux-action-title{display:flex;flex-direction:row;gap:var(--gse-ui-button-gap);align-items:center}.gux-action-title slot[name=icon]::slotted(gux-icon){inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}";export{n as gux_table_toolbar_custom_action}
@@ -1 +1 @@
1
- import{r as t,h as a,H as s,g as i}from"./p-cf74fd3d.js";import{a as o}from"./p-8eaf8caf.js";const e=class{constructor(a){t(this,a)}componentWillLoad(){this.validateSlot()}validateSlot(){var t;this.slottedElement=this.root.querySelector("a, button, gux-avatar-change-photo-beta"),this.slottedElement?(this.avatarElement=this.slottedElement.querySelector("gux-avatar-beta"),this.avatarElement||o(this.root,"Slotted element must contain a gux-avatar")):o(this.root,"An anchor tag, gux-avatar-change-photo-beta tag or button tag must be slotted into gux-avatar-focusable"),["A","BUTTON"].includes(null===(t=this.slottedElement)||void 0===t?void 0:t.tagName)&&(this.slottedElement.addEventListener("keyup",(t=>{this.handleKeyEvent(t)})),this.slottedElement.addEventListener("focusout",(()=>{this.handleFocusOut()})))}disconnectedCallback(){var t,a,s;["A","BUTTON"].includes(null===(t=this.slottedElement)||void 0===t?void 0:t.tagName)&&(null===(a=this.slottedElement)||void 0===a||a.removeEventListener("keyup",(t=>this.handleKeyEvent(t))),null===(s=this.slottedElement)||void 0===s||s.removeEventListener("focusout",(()=>this.handleFocusOut())))}handleKeyEvent(t){var a,s;"Tab"===t.key?this.slottedElement.matches(":focus-visible")&&this.avatarElement&&(null===(a=this.avatarElement)||void 0===a||a.showTooltip(),this.hideTooltipTimeout=setTimeout((()=>{var t;null===(t=this.avatarElement)||void 0===t||t.hideTooltip()}),6e3)):this.slottedElement.matches(":focus-visible")&&this.avatarElement&&(null===(s=this.avatarElement)||void 0===s||s.hideTooltip(),clearTimeout(this.hideTooltipTimeout))}handleFocusOut(){var t;null===(t=this.avatarElement)||void 0===t||t.hideTooltip(),clearTimeout(this.hideTooltipTimeout)}render(){return a(s,{key:"c32aa2b991c4c8275379d174498c14715be4ebad"},a("slot",{key:"93627d23004d26c9c8e72d6111a75c8585fa3f43"}))}get root(){return i(this)}};export{e as gux_avatar_focusable_beta}
1
+ import{r as t,h as a,H as s,a as i}from"./p-npw54p0Y.js";import{l as o}from"./p-DxtJDeL9.js";const e=class{constructor(a){t(this,a)}componentWillLoad(){this.validateSlot()}validateSlot(){var t;this.slottedElement=this.root.querySelector("a, button, gux-avatar-change-photo-beta"),this.slottedElement?(this.avatarElement=this.slottedElement.querySelector("gux-avatar-beta"),this.avatarElement||o(this.root,"Slotted element must contain a gux-avatar")):o(this.root,"An anchor tag, gux-avatar-change-photo-beta tag or button tag must be slotted into gux-avatar-focusable"),["A","BUTTON"].includes(null===(t=this.slottedElement)||void 0===t?void 0:t.tagName)&&(this.slottedElement.addEventListener("keyup",(t=>{this.handleKeyEvent(t)})),this.slottedElement.addEventListener("focusout",(()=>{this.handleFocusOut()})))}disconnectedCallback(){var t,a,s;["A","BUTTON"].includes(null===(t=this.slottedElement)||void 0===t?void 0:t.tagName)&&(null===(a=this.slottedElement)||void 0===a||a.removeEventListener("keyup",(t=>this.handleKeyEvent(t))),null===(s=this.slottedElement)||void 0===s||s.removeEventListener("focusout",(()=>this.handleFocusOut())))}handleKeyEvent(t){var a,s;"Tab"===t.key?this.slottedElement.matches(":focus-visible")&&this.avatarElement&&(null===(a=this.avatarElement)||void 0===a||a.showTooltip(),this.hideTooltipTimeout=setTimeout((()=>{var t;null===(t=this.avatarElement)||void 0===t||t.hideTooltip()}),6e3)):this.slottedElement.matches(":focus-visible")&&this.avatarElement&&(null===(s=this.avatarElement)||void 0===s||s.hideTooltip(),clearTimeout(this.hideTooltipTimeout))}handleFocusOut(){var t;null===(t=this.avatarElement)||void 0===t||t.hideTooltip(),clearTimeout(this.hideTooltipTimeout)}render(){return a(s,{key:"c32aa2b991c4c8275379d174498c14715be4ebad"},a("slot",{key:"93627d23004d26c9c8e72d6111a75c8585fa3f43"}))}get root(){return i(this)}};export{e as gux_avatar_focusable_beta}
@@ -0,0 +1 @@
1
+ import{r as e,h as o,H as r}from"./p-npw54p0Y.js";const d=class{constructor(o){e(this,o)}render(){return o(r,{key:"0e69a50f9eaaed2e1ed5b8d9f612101dad7d7282",role:"menu"},o("slot",{key:"37cb104c320d31ddf8770b323a9c72ff3e7bdf53"}))}};d.style=":host{flex-direction:column;inline-size:fit-content;padding:var(--gse-ui-menu-padding);background-color:var(--gse-ui-flyoutMenu-backgroundColor);border:none;border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}";export{d as gux_menu}
@@ -1 +1 @@
1
- import{r as e,c as t,h as s,g as r}from"./p-cf74fd3d.js";import{t as o}from"./p-e0a3c96f.js";const i=class{constructor(s){e(this,s),this.internalactivestepchange=t(this,"internalactivestepchange",7)}onClick(){this.stepDisabledState||this.internalactivestepchange.emit()}get stepDisabledState(){var e;return null===(e=this.root.closest("gux-step"))||void 0===e?void 0:e.disabled}componentWillLoad(){o(this.root)}render(){return s("button",{key:"3170eb8c531700e51693f5b78b7e041b7d37704d",type:"button",disabled:this.stepDisabledState},s("gux-truncate",{key:"19bc56b155e1fa0e8c20121dc1a963d3a25fefdc",maxLines:2},s("slot",{key:"be9099cc12e32dbcb3e2455199bb485a0030c77e"})))}get root(){return r(this)}};i.style="button{all:unset;font-family:var(--gse-ui-stepper-default-text-fontFamily);font-size:var(--gse-ui-stepper-default-text-fontSize);font-weight:var(--gse-ui-stepper-default-text-fontWeight);line-height:var(--gse-ui-stepper-default-text-lineHeight);color:var(--gse-ui-stepper-title-default);cursor:pointer}button[disabled]{pointer-events:none;user-select:none}button:hover:not([disabled]){font-family:var(--gse-ui-stepper-hover-text-fontFamily);font-size:var(--gse-ui-stepper-hover-text-fontSize);font-weight:var(--gse-ui-stepper-hover-text-fontWeight);line-height:var(--gse-ui-stepper-hover-text-lineHeight);color:var(--gse-ui-stepper-title-hover);text-decoration:var(--gse-ui-stepper-hover-text-textDecoration)}button:focus-visible{outline:var(--gse-ui-stepper-step-focus-border-width) var(--gse-ui-stepper-step-focus-border-style) var(--gse-ui-stepper-step-focus-border-color);outline-offset:var(--gse-ui-stepper-focus-offset);border-radius:var(--gse-ui-stepper-step-focus-borderRadius)}";export{i as gux_step_title}
1
+ import{r as e,c as t,h as s,a as r}from"./p-npw54p0Y.js";import{t as o}from"./p-DE51TUwj.js";const i=class{constructor(s){e(this,s),this.internalactivestepchange=t(this,"internalactivestepchange",7)}onClick(){this.stepDisabledState||this.internalactivestepchange.emit()}get stepDisabledState(){var e;return null===(e=this.root.closest("gux-step"))||void 0===e?void 0:e.disabled}componentWillLoad(){o(this.root)}render(){return s("button",{key:"3170eb8c531700e51693f5b78b7e041b7d37704d",type:"button",disabled:this.stepDisabledState},s("gux-truncate",{key:"19bc56b155e1fa0e8c20121dc1a963d3a25fefdc",maxLines:2},s("slot",{key:"be9099cc12e32dbcb3e2455199bb485a0030c77e"})))}get root(){return r(this)}};i.style="button{all:unset;font-family:var(--gse-ui-stepper-default-text-fontFamily);font-size:var(--gse-ui-stepper-default-text-fontSize);font-weight:var(--gse-ui-stepper-default-text-fontWeight);line-height:var(--gse-ui-stepper-default-text-lineHeight);color:var(--gse-ui-stepper-title-default);cursor:pointer}button[disabled]{pointer-events:none;user-select:none}button:hover:not([disabled]){font-family:var(--gse-ui-stepper-hover-text-fontFamily);font-size:var(--gse-ui-stepper-hover-text-fontSize);font-weight:var(--gse-ui-stepper-hover-text-fontWeight);line-height:var(--gse-ui-stepper-hover-text-lineHeight);color:var(--gse-ui-stepper-title-hover);text-decoration:var(--gse-ui-stepper-hover-text-textDecoration)}button:focus-visible{outline:var(--gse-ui-stepper-step-focus-border-width) var(--gse-ui-stepper-step-focus-border-style) var(--gse-ui-stepper-step-focus-border-color);outline-offset:var(--gse-ui-stepper-focus-offset);border-radius:var(--gse-ui-stepper-step-focus-borderRadius)}";export{i as gux_step_title}
@@ -1 +1 @@
1
- import{r as o,h as t,g as e,c as r}from"./p-cf74fd3d.js";import{t as i}from"./p-e0a3c96f.js";import{r as n}from"./p-0934300e.js";import{a,c as s,o as u,f as d,s as l,b as c}from"./p-43db8808.js";import{O as g}from"./p-f3d844c7.js";import{g as b}from"./p-89657908.js";import{f as h}from"./p-9b0d3713.js";const p=class{constructor(t){o(this,t),this.buttonId=n("button"),this.type="button",this.disabled=!1,this.accent="secondary",this.autofocus=!1}connectedCallback(){this.slotChanged()}componentWillLoad(){i(this.root,{variant:this.accent})}render(){return[t("button",{key:"24dbbdfe3e039dea0cbdc2d452cb0cf5da7f9d9b",id:this.buttonId,type:this.type,disabled:this.disabled,class:{[`gux-${this.accent}`]:!0,"gux-icon-only":this.iconOnly},"aria-label":this.guxTitle,autofocus:this.autofocus},t("slot",{key:"3cdf6222d210ad14536037885d5d6b54f684a209",onSlotchange:this.slotChanged.bind(this)})),this.renderTooltip()]}renderTooltip(){return this.guxTitle?t("gux-tooltip-beta",{for:this.buttonId,visualOnly:!0},t("div",{slot:"content"},this.guxTitle)):""}stopEventIfDisabled(o){this.disabled&&(o.stopImmediatePropagation(),o.stopPropagation(),o.preventDefault())}makeSlotContentDisableable(){this.root.shadowRoot.addEventListener("click",(o=>this.stopEventIfDisabled(o))),Array.from(this.root.children).forEach((o=>{o.addEventListener("click",(o=>this.stopEventIfDisabled(o)))}))}hasIconOnly(){const o=Array.from(this.root.children);if(1===o.length){if("GUX-ICON"===o[0].tagName)return!0}else if(2===o.length&&"GUX-ICON"===o[0].tagName&&["GUX-TOOLTIP","GUX-TOOLTIP-BETA"].includes(o[1].tagName))return!0;return!1}slotChanged(){this.makeSlotContentDisableable(),this.iconOnly=this.hasIconOnly()}static get delegatesFocus(){return!0}get root(){return e(this)}};p.style=":host{display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none}:host(:focus){outline:none}:host(:focus) button{outline:none}::slotted(gux-icon){inline-size:var(--gse-ui-button-icon-size);block-size:var(--gse-ui-button-icon-size)}::slotted(*){padding-inline-start:var(--gse-ui-button-gap);vertical-align:middle}::slotted(gux-tooltip),::slotted(gux-tooltip-beta){padding-inline-start:0}::slotted(*:first-child){padding:0}button{font-family:var(--gse-ui-button-text-fontFamily);font-size:var(--gse-ui-button-text-fontSize);font-weight:var(--gse-ui-button-text-fontWeight);line-height:var(--gse-ui-button-text-lineHeight);inline-size:100%;min-inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-padding);overflow:hidden;text-overflow:ellipsis;color:var(--gse-ui-button-secondary-default-foregroundColor);white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:var(--gse-ui-button-secondary-default-backgroundColor);border:none;border-radius:var(--gse-ui-button-borderRadius)}button.gux-icon-only{display:inline-flex;padding:var(--gse-ui-button-default-paddingIconOnly)}button[disabled]{pointer-events:none;cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}button:hover:enabled{color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}button:active:enabled{color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}button:focus-visible:enabled{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}button.gux-primary{color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}button.gux-primary:hover:enabled{color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}button.gux-primary:active:enabled{color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}button.gux-tertiary{color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-color:var(--gse-ui-button-tertiary-default-border-color);border-style:var(--gse-ui-button-tertiary-default-border-style);border-width:var(--gse-ui-button-tertiary-default-border-width);}button.gux-tertiary.gux-icon-only{padding:calc(var(--gse-ui-button-default-paddingIconOnly) - var(--gse-ui-button-tertiary-default-border-width))}button.gux-tertiary:hover:enabled{color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}button.gux-tertiary:active:enabled{color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}button.gux-ghost{color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}button.gux-ghost:hover:enabled{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}button.gux-ghost:active:enabled{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}button.gux-danger{color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}button.gux-danger:hover:enabled{color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}button.gux-danger:active:enabled{color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}button.gux-inline{min-inline-size:initial;block-size:initial;padding:0;color:var(--gse-ui-links-default-foregroundColor);background:none;border:none;border-radius:0}button.gux-inline[disabled]{color:var(--gse-ui-links-disabled-foregroundColor)}button.gux-inline:hover:enabled{color:var(--gse-ui-links-hover-foregroundColor);text-decoration:underline;background:none}button.gux-inline:active:enabled{color:var(--gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}";var v=function(o,t,e,r){var i,n=arguments.length,a=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,t,e,r);else for(var s=o.length-1;s>=0;s--)(i=o[s])&&(a=(n<3?i(a):n>3?i(t,e,a):i(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a};const f=class{constructor(t){o(this,t),this.guxdismiss=r(this,"guxdismiss",7),this.position="bottom",this.displayDismissButton=!1,this.closeOnClickOutside=!1,this.isOpen=!1}onKeyDown(o){"Escape"===o.key&&this.dismiss()}onFocusout(o){!this.closeOnClickOutside&&this.displayDismissButton||o.relatedTarget&&!this.root.contains(o.relatedTarget)&&this.dismiss()}checkForClickOutside(o){const t=o.composedPath(),e=h(this.root,this.for),r=t.includes(e);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||r||this.dismiss()}get titleSlot(){return b(this.root,"title")}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.root.isConnected?this.cleanupUpdatePosition=a(h(this.root,this.for),this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const o=h(this.root,this.for);this.popupElement&&o&&s(o,this.popupElement,{placement:this.position,middleware:[u(7),d(),l(),c({element:this.arrowElement,padding:16})]}).then((({x:o,y:t,middlewareData:e,placement:r})=>{Object.assign(this.popupElement.style,{left:`${o}px`,top:`${t}px`});const i=r.split("-")[0],n={top:"bottom",right:"left",bottom:"top",left:"right"}[i],a={top:0,right:90,bottom:180,left:-90}[i],s="left"===i||"right"===i?15:13;if(e.arrow){let o=e.arrow.x;const t=e.arrow.y;"left"!==i&&"right"!==i||(o+=4),this.popupElement.setAttribute("data-placement",r),Object.assign(this.arrowElement.style,{left:null!=o?`${o}px`:"",top:null!=t?`${t}px`:"",right:"",bottom:"",[n]:-s+"px",transform:`rotate(${a}deg)`})}}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1)}connectedCallback(){i(this.root,{variant:this.position})}componentDidLoad(){this.isOpen&&this.runUpdatePosition()}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return t("div",{key:"730abc38bc068191d7175c475c3cfd90b3dd8430",ref:o=>this.popupElement=o,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0},t("div",{key:"f573bffb8b613acc514f0e4e8fc3951cc0dbd4bb",ref:o=>this.arrowElement=o,class:"gux-arrow"},t("div",{key:"f7fa19d404a448f74df9c8b3aa1242d66a4b2bd7",class:"gux-arrow-caret"})),this.displayDismissButton&&t("gux-dismiss-button",{key:"f2633862aabf426f9d0fb6d8e7c26afbdda68ab0",onClick:this.dismiss.bind(this)}),t("div",{key:"00950cd98bcf069ecb8803c01d26d7c687384b8c",class:{"gux-popover-header":Boolean(this.titleSlot)}},t("slot",{key:"0c04f3ed0bba57e277828d00efd67c8b18116147",name:"title"})),t("div",{key:"44ffbca5f03bbceaf3ed6a01f69d86d47796e108",class:"gux-popover-content"},t("slot",{key:"f21c6292416f5c1368eeccda576cbaf4600138cb"})))}get root(){return e(this)}};v([g({triggerEvents:"mousedown"})],f.prototype,"checkForClickOutside",null),v([function(){let o=!1,t=null;return(e,r,i)=>{const n=i.value;i.value=function(...e){o||(n.apply(this,e),o=!0,clearTimeout(t),t=setTimeout((()=>{o=!1}),100))}}}()],f.prototype,"dismiss",null),f.style=".gux-popover-wrapper{position:absolute;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;padding:var(--gse-ui-popover-padding);background-color:var(--gse-ui-popover-backgroundColor);border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow)}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-height);padding-block-end:4px;overflow:hidden}.gux-popover-wrapper .gux-arrow-caret{inline-size:0;block-size:0;border-block-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid var(--gse-ui-popover-backgroundColor);border-inline-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;border-inline-end:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;filter:drop-shadow(0 0 4px var(--gse-semantic-effects-boxShadow))}.gux-popover-wrapper .gux-popover-header{display:flex;flex-direction:row;place-content:center space-between;align-items:center;padding-block-end:var(--gse-ui-popover-gap);font-family:var(--gse-ui-popover-title-text-fontFamily);font-size:var(--gse-ui-popover-title-text-fontSize);font-weight:var(--gse-ui-popover-title-text-fontWeight);line-height:var(--gse-ui-popover-title-text-lineHeight);color:var(--gse-ui-popover-headerColor)}";export{p as gux_button,f as gux_popover}
1
+ import{r as o,h as t,a as e,c as r}from"./p-npw54p0Y.js";import{t as i}from"./p-DE51TUwj.js";import{r as n}from"./p-D9jKBqIb.js";import{a,c as s,o as u,f as d,s as l,b as c}from"./p-BUgza8B9.js";import{O as g}from"./p-d6HR-UfA.js";import{g as b}from"./p-BBpQG81s.js";import{f as h}from"./p-Cr5bTKWF.js";const p=class{constructor(t){o(this,t),this.buttonId=n("button"),this.type="button",this.disabled=!1,this.accent="secondary",this.autofocus=!1}connectedCallback(){this.slotChanged()}componentWillLoad(){i(this.root,{variant:this.accent})}render(){return[t("button",{key:"24dbbdfe3e039dea0cbdc2d452cb0cf5da7f9d9b",id:this.buttonId,type:this.type,disabled:this.disabled,class:{[`gux-${this.accent}`]:!0,"gux-icon-only":this.iconOnly},"aria-label":this.guxTitle,autofocus:this.autofocus},t("slot",{key:"3cdf6222d210ad14536037885d5d6b54f684a209",onSlotchange:this.slotChanged.bind(this)})),this.renderTooltip()]}renderTooltip(){return this.guxTitle?t("gux-tooltip-beta",{for:this.buttonId,visualOnly:!0},t("div",{slot:"content"},this.guxTitle)):""}stopEventIfDisabled(o){this.disabled&&(o.stopImmediatePropagation(),o.stopPropagation(),o.preventDefault())}makeSlotContentDisableable(){this.root.shadowRoot.addEventListener("click",(o=>this.stopEventIfDisabled(o))),Array.from(this.root.children).forEach((o=>{o.addEventListener("click",(o=>this.stopEventIfDisabled(o)))}))}hasIconOnly(){const o=Array.from(this.root.children);if(1===o.length){if("GUX-ICON"===o[0].tagName)return!0}else if(2===o.length&&"GUX-ICON"===o[0].tagName&&["GUX-TOOLTIP","GUX-TOOLTIP-BETA"].includes(o[1].tagName))return!0;return!1}slotChanged(){this.makeSlotContentDisableable(),this.iconOnly=this.hasIconOnly()}static get delegatesFocus(){return!0}get root(){return e(this)}};p.style=":host{display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none}:host(:focus){outline:none}:host(:focus) button{outline:none}::slotted(gux-icon){inline-size:var(--gse-ui-button-icon-size);block-size:var(--gse-ui-button-icon-size)}::slotted(*){padding-inline-start:var(--gse-ui-button-gap);vertical-align:middle}::slotted(gux-tooltip),::slotted(gux-tooltip-beta){padding-inline-start:0}::slotted(*:first-child){padding:0}button{font-family:var(--gse-ui-button-text-fontFamily);font-size:var(--gse-ui-button-text-fontSize);font-weight:var(--gse-ui-button-text-fontWeight);line-height:var(--gse-ui-button-text-lineHeight);inline-size:100%;min-inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-padding);overflow:hidden;text-overflow:ellipsis;color:var(--gse-ui-button-secondary-default-foregroundColor);white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:var(--gse-ui-button-secondary-default-backgroundColor);border:none;border-radius:var(--gse-ui-button-borderRadius)}button.gux-icon-only{display:inline-flex;padding:var(--gse-ui-button-default-paddingIconOnly)}button[disabled]{pointer-events:none;cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}button:hover:enabled{color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}button:active:enabled{color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}button:focus-visible:enabled{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}button.gux-primary{color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}button.gux-primary:hover:enabled{color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}button.gux-primary:active:enabled{color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}button.gux-tertiary{color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-color:var(--gse-ui-button-tertiary-default-border-color);border-style:var(--gse-ui-button-tertiary-default-border-style);border-width:var(--gse-ui-button-tertiary-default-border-width);}button.gux-tertiary.gux-icon-only{padding:calc(var(--gse-ui-button-default-paddingIconOnly) - var(--gse-ui-button-tertiary-default-border-width))}button.gux-tertiary:hover:enabled{color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}button.gux-tertiary:active:enabled{color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}button.gux-ghost{color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}button.gux-ghost:hover:enabled{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}button.gux-ghost:active:enabled{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}button.gux-danger{color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}button.gux-danger:hover:enabled{color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}button.gux-danger:active:enabled{color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}button.gux-inline{min-inline-size:initial;block-size:initial;padding:0;color:var(--gse-ui-links-default-foregroundColor);background:none;border:none;border-radius:0}button.gux-inline[disabled]{color:var(--gse-ui-links-disabled-foregroundColor)}button.gux-inline:hover:enabled{color:var(--gse-ui-links-hover-foregroundColor);text-decoration:underline;background:none}button.gux-inline:active:enabled{color:var(--gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}";var v=function(o,t,e,r){var i,n=arguments.length,a=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,t,e,r);else for(var s=o.length-1;s>=0;s--)(i=o[s])&&(a=(n<3?i(a):n>3?i(t,e,a):i(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a};const f=class{constructor(t){o(this,t),this.guxdismiss=r(this,"guxdismiss",7),this.position="bottom",this.displayDismissButton=!1,this.closeOnClickOutside=!1,this.isOpen=!1}onKeyDown(o){"Escape"===o.key&&this.dismiss()}onFocusout(o){!this.closeOnClickOutside&&this.displayDismissButton||o.relatedTarget&&!this.root.contains(o.relatedTarget)&&this.dismiss()}checkForClickOutside(o){const t=o.composedPath(),e=h(this.root,this.for),r=t.includes(e);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||r||this.dismiss()}get titleSlot(){return b(this.root,"title")}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.root.isConnected?this.cleanupUpdatePosition=a(h(this.root,this.for),this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const o=h(this.root,this.for);this.popupElement&&o&&s(o,this.popupElement,{placement:this.position,middleware:[u(7),d(),l(),c({element:this.arrowElement,padding:16})]}).then((({x:o,y:t,middlewareData:e,placement:r})=>{Object.assign(this.popupElement.style,{left:`${o}px`,top:`${t}px`});const i=r.split("-")[0],n={top:"bottom",right:"left",bottom:"top",left:"right"}[i],a={top:0,right:90,bottom:180,left:-90}[i],s="left"===i||"right"===i?15:13;if(e.arrow){let o=e.arrow.x;const t=e.arrow.y;"left"!==i&&"right"!==i||(o+=4),this.popupElement.setAttribute("data-placement",r),Object.assign(this.arrowElement.style,{left:null!=o?`${o}px`:"",top:null!=t?`${t}px`:"",right:"",bottom:"",[n]:-s+"px",transform:`rotate(${a}deg)`})}}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1)}connectedCallback(){i(this.root,{variant:this.position})}componentDidLoad(){this.isOpen&&this.runUpdatePosition()}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return t("div",{key:"730abc38bc068191d7175c475c3cfd90b3dd8430",ref:o=>this.popupElement=o,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0},t("div",{key:"f573bffb8b613acc514f0e4e8fc3951cc0dbd4bb",ref:o=>this.arrowElement=o,class:"gux-arrow"},t("div",{key:"f7fa19d404a448f74df9c8b3aa1242d66a4b2bd7",class:"gux-arrow-caret"})),this.displayDismissButton&&t("gux-dismiss-button",{key:"f2633862aabf426f9d0fb6d8e7c26afbdda68ab0",onClick:this.dismiss.bind(this)}),t("div",{key:"00950cd98bcf069ecb8803c01d26d7c687384b8c",class:{"gux-popover-header":Boolean(this.titleSlot)}},t("slot",{key:"0c04f3ed0bba57e277828d00efd67c8b18116147",name:"title"})),t("div",{key:"44ffbca5f03bbceaf3ed6a01f69d86d47796e108",class:"gux-popover-content"},t("slot",{key:"f21c6292416f5c1368eeccda576cbaf4600138cb"})))}get root(){return e(this)}};v([g({triggerEvents:"mousedown"})],f.prototype,"checkForClickOutside",null),v([function(){let o=!1,t=null;return(e,r,i)=>{const n=i.value;i.value=function(...e){o||(n.apply(this,e),o=!0,clearTimeout(t),t=setTimeout((()=>{o=!1}),100))}}}()],f.prototype,"dismiss",null),f.style=".gux-popover-wrapper{position:absolute;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;padding:var(--gse-ui-popover-padding);background-color:var(--gse-ui-popover-backgroundColor);border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow)}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-height);padding-block-end:4px;overflow:hidden}.gux-popover-wrapper .gux-arrow-caret{inline-size:0;block-size:0;border-block-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid var(--gse-ui-popover-backgroundColor);border-inline-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;border-inline-end:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;filter:drop-shadow(0 0 4px var(--gse-semantic-effects-boxShadow))}.gux-popover-wrapper .gux-popover-header{display:flex;flex-direction:row;place-content:center space-between;align-items:center;padding-block-end:var(--gse-ui-popover-gap);font-family:var(--gse-ui-popover-title-text-fontFamily);font-size:var(--gse-ui-popover-title-text-fontSize);font-weight:var(--gse-ui-popover-title-text-fontWeight);line-height:var(--gse-ui-popover-title-text-lineHeight);color:var(--gse-ui-popover-headerColor)}";export{p as gux_button,f as gux_popover}
@@ -1 +1 @@
1
- import{r as t,f as e,d as a,h as i,H as o,g as n}from"./p-cf74fd3d.js";import{O as s}from"./p-832c080d.js";import{O as r}from"./p-946c70b7.js";import{t as l}from"./p-e0a3c96f.js";import{g as c}from"./p-89657908.js";import{a as d}from"./p-cf0e7d3b.js";function u(t,e){[].concat(t).forEach((t=>{null!=t&&(t.accent=e)}))}function h(t,...e){e.flat().filter((t=>null!=t&&!(null==t?void 0:t.hasAttribute("icon-only")))).forEach((e=>e.iconOnly=t))}var b=function(t,e,a,i){var o,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,a,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(s=(n<3?o(s):n>3?o(e,a,s):o(e,a))||s);return n>3&&s&&Object.defineProperty(e,a,s),s};const p=class{constructor(e){t(this,e),this.displayedLayout="full",this.hasContextDivider=!1,this.minimumSizes={full:0,iconOnly:0,condensed:0}}onMutation(){this.hasContextDivider=this.needsContextDivider(),e(this.root)}recordLayoutMinSize(){a((()=>{var t,e,a;const i=0|(null===(t=this.searchAndFilterContainer)||void 0===t?void 0:t.clientWidth),o=0|(null===(e=this.actionsContainer)||void 0===e?void 0:e.clientWidth),n=0|(null===(a=this.minControlSize)||void 0===a?void 0:a.clientWidth);this.minimumSizes[this.displayedLayout]=i+o+n}))}get minControlSize(){return this.root.shadowRoot.querySelector(".section-spacing")}get actionsContainer(){return this.root.shadowRoot.querySelector(".gux-contextual-permanent-primary")}get searchAndFilterContainer(){return this.root.shadowRoot.querySelector(".search-filter-container")}get filterSlot(){return c(this.root,"search-and-filter")}get menuActionSlot(){return c(this.root,"menu-actions")}get permanentSlot(){return c(this.root,"permanent-actions")||c(this.menuActionSlot,"permanent-actions")}get contextualSlot(){return c(this.root,"contextual-actions")}get primaryAction(){var t;return null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-table-toolbar-custom-action[slot]")}get permanentActions(){var t,e;return(null===(t=this.permanentSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.permanentSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get menuActionsItems(){var t,e;if(null===(t=this.menuActionSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(e=this.menuActionSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get contextualActions(){var t,e;return(null===(t=this.contextualSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.contextualSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get filterActions(){var t,e;return(null===(t=this.filterSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.filterSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get allFilterContextual(){var t;return null===(t=this.filterActions)||void 0===t?void 0:t.concat(this.contextualActions)}needsContextDivider(){var t;return(null===(t=this.contextualActions)||void 0===t?void 0:t.length)&&this.contextualSlot!==this.root.lastElementChild}renderMenu(){var t;return Boolean((null===(t=this.menuActionsItems)||void 0===t?void 0:t.length)||"condensed"==this.displayedLayout)}renderFullLayout(){this.displayedLayout="full",h(!1,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}renderIconOnlyLayoutScaleDown(){this.displayedLayout="iconOnly",h(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}renderIconOnlyLayoutScaleUp(){var t,e;this.displayedLayout="iconOnly",u(this.permanentActions,"secondary"),u(this.primaryAction,"primary"),h(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions),this.permanentActions&&(null===(t=this.root)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(e=this.root)||void 0===e||e.appendChild(this.primaryAction))}renderCondensedLayout(){var t,e;this.displayedLayout="condensed",this.permanentActions&&(null===(t=this.menuActionSlot)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(e=this.menuActionSlot)||void 0===e||e.appendChild(this.primaryAction)),h(!0,...this.allFilterContextual),h(!1,...this.permanentActions),h(!1,this.primaryAction),u(this.menuActionsItems,"ghost")}componentWillRender(){l(this.root),this.hasContextDivider=this.needsContextDivider()}componentDidLoad(){d((()=>{this.recordLayoutMinSize(),this.checkResponsiveLayout()})),u(this.menuActionsItems,"ghost")}componentDidUpdate(){this.recordLayoutMinSize(),this.checkResponsiveLayout()}checkResponsiveLayout(){a((()=>{const t=this.root.clientWidth;t<=this.minimumSizes.iconOnly?"iconOnly"==this.displayedLayout&&this.renderCondensedLayout():t<=this.minimumSizes.full?"full"==this.displayedLayout?this.renderIconOnlyLayoutScaleDown():"condensed"==this.displayedLayout&&this.renderIconOnlyLayoutScaleUp():this.minimumSizes.iconOnly>this.minimumSizes.full?this.renderIconOnlyLayoutScaleUp():this.renderFullLayout()}))}render(){return i(o,{key:"471d6d31eae27b80afed8e6846a49fe75538a168",role:"toolbar","aria-orientation":"horizontal","gs-layout":this.displayedLayout},i("div",{key:"c751a7c677c79b1c850c9ab77f70c0d1e1c8d43e",class:"search-filter-container"},i("slot",{key:"51b3cc5143e505275887088260866a026b262e2f",name:"search-and-filter"})),i("div",{key:"e9a395f40a63f2ac424ca33c6abb1fa1b20d7831",class:"section-spacing"}),i("div",{key:"eede64181488b62225df19d7d9fb14848ef999a3",class:"gux-contextual-permanent-primary"},i("div",{key:"f17b77eb2f6a4cb2ef2242208fc39f0e4af5936e",class:{"gux-contextual-wrapper":this.hasContextDivider}},i("slot",{key:"d71831933a6a1814c3a60b4d7177088562aa601b",name:"contextual-actions"})),i("div",{key:"1c14c12834419b7b9813ca06b601f1a0a03067ed",class:"gux-permanent-menu-primary-wrapper"},i("slot",{key:"99388b024dbc31203b4a156a7e79a5d7720357c8",name:"permanent-actions"}),i("gux-table-toolbar-menu-button",{key:"9a4084fdb35b5bae952134f7c8eecc9a77de32f3","show-menu":this.renderMenu()},i("slot",{key:"df823a8496e4608426abb807d8deaf80fa561cb0",name:"menu-actions"})),i("slot",{key:"fa81088e82c220b2d824a41119e4adc23f10caf5",name:"primary-action"}))))}get root(){return n(this)}};b([r({childList:!0,subtree:!0})],p.prototype,"onMutation",null),b([s()],p.prototype,"checkResponsiveLayout",null),p.style=":host{display:flex;flex-direction:row;align-items:center;justify-content:space-between;inline-size:100%;max-block-size:var(--gse-ui-dataTableItems-tableToolbar-height);visibility:hidden;transition:visibility 0s 0.5s;}@keyframes show-toolbar{to{visibility:visible}}:host .search-filter-container{min-inline-size:260px;padding-inline-end:var(--gse-ui-dataTableItems-tableToolbar-gap)}:host slot[name=search-and-filter]::slotted(*){display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);align-content:flex-start;align-items:center}:host .section-spacing{display:flex;flex-direction:row;min-inline-size:72px}:host .gux-contextual-permanent-primary{display:flex;flex-direction:row;justify-content:space-between;padding-inline-start:var(--gse-ui-dataTableItems-tableToolbar-gap)}:host .gux-contextual-permanent-primary slot[name=permanent-actions]::slotted(*),:host .gux-contextual-permanent-primary slot[name=contextual-actions]::slotted(*){display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);align-content:flex-end;align-items:center}:host .gux-contextual-permanent-primary .gux-contextual-wrapper{padding-inline-end:var(--gse-ui-dataTableItems-tableToolbar-gap);border-inline-end:var(--gse-ui-dataTableItems-tableToolbar-divider-width) solid var(--gse-ui-dataTableItems-tableToolbar-dividerColor)}:host .gux-contextual-permanent-primary .gux-permanent-menu-primary-wrapper{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);margin-inline-start:var(--gse-ui-dataTableItems-tableToolbar-gap)}";export{p as gux_table_toolbar}
1
+ import{r as t,f as e,d as i,h as a,H as n,a as o}from"./p-npw54p0Y.js";import{O as s}from"./p-DIwuivkl.js";import{O as r}from"./p-CbifHkss.js";import{t as l}from"./p-DE51TUwj.js";import{g as c}from"./p-BBpQG81s.js";import{a as d}from"./p-Bg4q97BS.js";function u(t,e){[].concat(t).forEach((t=>{null!=t&&(t.accent=e)}))}function h(t,...e){e.flat().filter((t=>null!=t&&!(null==t?void 0:t.hasAttribute("icon-only")))).forEach((e=>e.iconOnly=t))}var b=function(t,e,i,a){var n,o=arguments.length,s=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,a);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};const p=class{constructor(e){t(this,e),this.displayedLayout="full",this.hasContextDivider=!1,this.minimumSizes={full:0,iconOnly:0,condensed:0}}onMutation(){this.hasContextDivider=this.needsContextDivider(),e(this.root)}recordLayoutMinSize(){i((()=>{var t,e,i;const a=0|(null===(t=this.searchAndFilterContainer)||void 0===t?void 0:t.clientWidth),n=0|(null===(e=this.actionsContainer)||void 0===e?void 0:e.clientWidth),o=0|(null===(i=this.minControlSize)||void 0===i?void 0:i.clientWidth);this.minimumSizes[this.displayedLayout]=a+n+o}))}get minControlSize(){return this.root.shadowRoot.querySelector(".section-spacing")}get actionsContainer(){return this.root.shadowRoot.querySelector(".gux-contextual-permanent-primary")}get searchAndFilterContainer(){return this.root.shadowRoot.querySelector(".search-filter-container")}get filterSlot(){return c(this.root,"search-and-filter")}get menuActionSlot(){return c(this.root,"menu-actions")}get permanentSlot(){return c(this.root,"permanent-actions")||c(this.menuActionSlot,"permanent-actions")}get contextualSlot(){return c(this.root,"contextual-actions")}get primaryAction(){var t;return null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-table-toolbar-custom-action[slot]")}get permanentActions(){var t,e;return(null===(t=this.permanentSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.permanentSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get menuActionsItems(){var t,e;if(null===(t=this.menuActionSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(e=this.menuActionSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get contextualActions(){var t,e;return(null===(t=this.contextualSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.contextualSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get filterActions(){var t,e;return(null===(t=this.filterSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.filterSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get allFilterContextual(){var t;return null===(t=this.filterActions)||void 0===t?void 0:t.concat(this.contextualActions)}needsContextDivider(){var t;return(null===(t=this.contextualActions)||void 0===t?void 0:t.length)&&this.contextualSlot!==this.root.lastElementChild}renderMenu(){var t;return Boolean((null===(t=this.menuActionsItems)||void 0===t?void 0:t.length)||"condensed"==this.displayedLayout)}renderFullLayout(){this.displayedLayout="full",h(!1,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}renderIconOnlyLayoutScaleDown(){this.displayedLayout="iconOnly",h(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}renderIconOnlyLayoutScaleUp(){var t,e;this.displayedLayout="iconOnly",u(this.permanentActions,"secondary"),u(this.primaryAction,"primary"),h(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions),this.permanentActions&&(null===(t=this.root)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(e=this.root)||void 0===e||e.appendChild(this.primaryAction))}renderCondensedLayout(){var t,e;this.displayedLayout="condensed",this.permanentActions&&(null===(t=this.menuActionSlot)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(e=this.menuActionSlot)||void 0===e||e.appendChild(this.primaryAction)),h(!0,...this.allFilterContextual),h(!1,...this.permanentActions),h(!1,this.primaryAction),u(this.menuActionsItems,"ghost")}componentWillRender(){l(this.root),this.hasContextDivider=this.needsContextDivider()}componentDidLoad(){d((()=>{this.recordLayoutMinSize(),this.checkResponsiveLayout()})),u(this.menuActionsItems,"ghost")}componentDidUpdate(){this.recordLayoutMinSize(),this.checkResponsiveLayout()}checkResponsiveLayout(){i((()=>{const t=this.root.clientWidth;t<=this.minimumSizes.iconOnly?"iconOnly"==this.displayedLayout&&this.renderCondensedLayout():t<=this.minimumSizes.full?"full"==this.displayedLayout?this.renderIconOnlyLayoutScaleDown():"condensed"==this.displayedLayout&&this.renderIconOnlyLayoutScaleUp():this.minimumSizes.iconOnly>this.minimumSizes.full?this.renderIconOnlyLayoutScaleUp():this.renderFullLayout()}))}render(){return a(n,{key:"471d6d31eae27b80afed8e6846a49fe75538a168",role:"toolbar","aria-orientation":"horizontal","gs-layout":this.displayedLayout},a("div",{key:"c751a7c677c79b1c850c9ab77f70c0d1e1c8d43e",class:"search-filter-container"},a("slot",{key:"51b3cc5143e505275887088260866a026b262e2f",name:"search-and-filter"})),a("div",{key:"e9a395f40a63f2ac424ca33c6abb1fa1b20d7831",class:"section-spacing"}),a("div",{key:"eede64181488b62225df19d7d9fb14848ef999a3",class:"gux-contextual-permanent-primary"},a("div",{key:"f17b77eb2f6a4cb2ef2242208fc39f0e4af5936e",class:{"gux-contextual-wrapper":this.hasContextDivider}},a("slot",{key:"d71831933a6a1814c3a60b4d7177088562aa601b",name:"contextual-actions"})),a("div",{key:"1c14c12834419b7b9813ca06b601f1a0a03067ed",class:"gux-permanent-menu-primary-wrapper"},a("slot",{key:"99388b024dbc31203b4a156a7e79a5d7720357c8",name:"permanent-actions"}),a("gux-table-toolbar-menu-button",{key:"9a4084fdb35b5bae952134f7c8eecc9a77de32f3","show-menu":this.renderMenu()},a("slot",{key:"df823a8496e4608426abb807d8deaf80fa561cb0",name:"menu-actions"})),a("slot",{key:"fa81088e82c220b2d824a41119e4adc23f10caf5",name:"primary-action"}))))}get root(){return o(this)}};b([r({childList:!0,subtree:!0})],p.prototype,"onMutation",null),b([s()],p.prototype,"checkResponsiveLayout",null),p.style=":host{display:flex;flex-direction:row;align-items:center;justify-content:space-between;inline-size:100%;max-block-size:var(--gse-ui-dataTableItems-tableToolbar-height);visibility:hidden;transition:visibility 0s 0.5s;}@keyframes show-toolbar{to{visibility:visible}}:host .search-filter-container{min-inline-size:260px;padding-inline-end:var(--gse-ui-dataTableItems-tableToolbar-gap)}:host slot[name=search-and-filter]::slotted(*){display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);align-content:flex-start;align-items:center}:host .section-spacing{display:flex;flex-direction:row;min-inline-size:72px}:host .gux-contextual-permanent-primary{display:flex;flex-direction:row;justify-content:space-between;padding-inline-start:var(--gse-ui-dataTableItems-tableToolbar-gap)}:host .gux-contextual-permanent-primary slot[name=permanent-actions]::slotted(*),:host .gux-contextual-permanent-primary slot[name=contextual-actions]::slotted(*){display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);align-content:flex-end;align-items:center}:host .gux-contextual-permanent-primary .gux-contextual-wrapper{padding-inline-end:var(--gse-ui-dataTableItems-tableToolbar-gap);border-inline-end:var(--gse-ui-dataTableItems-tableToolbar-divider-width) solid var(--gse-ui-dataTableItems-tableToolbar-dividerColor)}:host .gux-contextual-permanent-primary .gux-permanent-menu-primary-wrapper{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);margin-inline-start:var(--gse-ui-dataTableItems-tableToolbar-gap)}";export{p as gux_table_toolbar}
@@ -1 +1 @@
1
- import{r as e,c as t,h as i,g as s}from"./p-cf74fd3d.js";import{r as a}from"./p-0934300e.js";import{h as o}from"./p-6d8b4027.js";import{t as n}from"./p-e0a3c96f.js";const d=class{constructor(i){e(this,i),this.modalSidePanelDismiss=t(this,"modalSidePanelDismiss",7),this.open=!1,this.size="medium",this.dialogElement=null}syncOpenState(){this.open?this.dialogElement.showModal():(this.dialogElement.close(),this.modalSidePanelDismiss.emit())}sidepaneldismissHandler(){this.open=!1}onKeydown(e){if("Escape"===e.key)return e.preventDefault(),void(this.open=!1)}async showModal(){this.open=!0}async close(){this.open=!1}componentWillLoad(){n(this.root,{variant:this.size})}componentDidLoad(){this.open&&this.dialogElement.showModal()}render(){const e=a();return i("dialog",{key:"ecf03e299a46bc5fe8c69c3a45c4ee082678ca54",ref:e=>this.dialogElement=e,"aria-labelledby":e},i("gux-side-panel-beta",{key:"80fd9bc4c0b2a0ff8a5329eb5b882e0c3b7598ef",size:this.size},i("div",{key:"f8c7caadaeb21468617dd03dd4892f4e3efb83c3",slot:"heading",id:e},i("slot",{key:"aca70b21b54b4cfcf9db2ce7f6b67db5321ee753",name:"heading"})),o(this.root,"description")&&i("div",{key:"c9bc9620a4374a3b5d1c3d25ef85d378fdcbf305",slot:"description"},i("slot",{key:"e50e0d1e6e8571108c6ca564c50a1e7c5e0a7a68",name:"description"})),i("div",{key:"bad2c534e47b59dfe0f1c83047eba1395a1c2ff9",slot:"content"},i("slot",{key:"1d3d8a04686e7c18a1dedbf064b889eab7c96615",name:"content"})),i("div",{key:"c8ecb56faec61bda9d39e3f25358968221740721",slot:"footer"},i("slot",{key:"45c9673d168477550f2055115620c112dcc6620f",name:"footer"}))))}get root(){return s(this)}static get watchers(){return{open:["syncOpenState"]}}};d.style="dialog{inset-inline-start:auto;block-size:100%;min-block-size:100%;padding:0;margin:unset;border:none}dialog::backdrop{background:var(--gse-ui-sidePanel-shroudColor);opacity:var(--gse-ui-sidePanel-shroud-opacity)}slot[name=description]::slotted(*){margin:0;font-family:var(--gse-ui-sidePanel-description-text-fontFamily) !important;font-size:var(--gse-ui-sidePanel-description-text-fontSize) !important;font-weight:var(--gse-ui-sidePanel-description-text-fontWeight) !important;line-height:var(--gse-ui-sidePanel-description-text-lineHeight) !important;color:var(--gse-ui-sidePanel-descriptionColor) !important}";export{d as gux_modal_side_panel_beta}
1
+ import{r as e,c as t,h as i,a as s}from"./p-npw54p0Y.js";import{r as a}from"./p-D9jKBqIb.js";import{h as o}from"./p-qzV3vtOw.js";import{t as n}from"./p-DE51TUwj.js";const d=class{constructor(i){e(this,i),this.modalSidePanelDismiss=t(this,"modalSidePanelDismiss",7),this.open=!1,this.size="medium",this.dialogElement=null}syncOpenState(){this.open?this.dialogElement.showModal():(this.dialogElement.close(),this.modalSidePanelDismiss.emit())}sidepaneldismissHandler(){this.open=!1}onKeydown(e){if("Escape"===e.key)return e.preventDefault(),void(this.open=!1)}async showModal(){this.open=!0}async close(){this.open=!1}componentWillLoad(){n(this.root,{variant:this.size})}componentDidLoad(){this.open&&this.dialogElement.showModal()}render(){const e=a();return i("dialog",{key:"ecf03e299a46bc5fe8c69c3a45c4ee082678ca54",ref:e=>this.dialogElement=e,"aria-labelledby":e},i("gux-side-panel-beta",{key:"80fd9bc4c0b2a0ff8a5329eb5b882e0c3b7598ef",size:this.size},i("div",{key:"f8c7caadaeb21468617dd03dd4892f4e3efb83c3",slot:"heading",id:e},i("slot",{key:"aca70b21b54b4cfcf9db2ce7f6b67db5321ee753",name:"heading"})),o(this.root,"description")&&i("div",{key:"c9bc9620a4374a3b5d1c3d25ef85d378fdcbf305",slot:"description"},i("slot",{key:"e50e0d1e6e8571108c6ca564c50a1e7c5e0a7a68",name:"description"})),i("div",{key:"bad2c534e47b59dfe0f1c83047eba1395a1c2ff9",slot:"content"},i("slot",{key:"1d3d8a04686e7c18a1dedbf064b889eab7c96615",name:"content"})),i("div",{key:"c8ecb56faec61bda9d39e3f25358968221740721",slot:"footer"},i("slot",{key:"45c9673d168477550f2055115620c112dcc6620f",name:"footer"}))))}get root(){return s(this)}static get watchers(){return{open:["syncOpenState"]}}};d.style="dialog{inset-inline-start:auto;block-size:100%;min-block-size:100%;padding:0;margin:unset;border:none}dialog::backdrop{background:var(--gse-ui-sidePanel-shroudColor);opacity:var(--gse-ui-sidePanel-shroud-opacity)}slot[name=description]::slotted(*){margin:0;font-family:var(--gse-ui-sidePanel-description-text-fontFamily) !important;font-size:var(--gse-ui-sidePanel-description-text-fontSize) !important;font-weight:var(--gse-ui-sidePanel-description-text-fontWeight) !important;line-height:var(--gse-ui-sidePanel-description-text-lineHeight) !important;color:var(--gse-ui-sidePanel-descriptionColor) !important}";export{d as gux_modal_side_panel_beta}
@@ -0,0 +1 @@
1
+ import{r as t,d as s,w as i,h as e,a as o}from"./p-npw54p0Y.js";import{a as l}from"./p-Bg4q97BS.js";import{b as r}from"./p-CIt2cSVJ.js";import{O as a}from"./p-CbifHkss.js";import"./p-Cd4R0amv.js";var 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.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.root.querySelectorAll("gux-tab").forEach((t=>{t.guxSetActive(!1)})),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]), gux-tab[gux-disabled="false"]'),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:"c5845287442a47d392b395a81d621eb676afa5f1",class:"gux-tab-container"},this.renderScrollButton(this.hasHorizontalScrollbar?"scrollLeft":"scrollUp"),e("div",{key:"7fea2d8285bba7ec3b226d927d12ad9ee9358a9e",role:"tablist",class:"gux-scrollable-section","aria-owns":this.triggerIds},e("slot",{key:"aaeaef7ff1162c7d285cd19e0729743c11bd4c9e"})),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,attributes:!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}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,f as n,h as s,a}from"./p-npw54p0Y.js";import{b as o}from"./p-CIt2cSVJ.js";import{t as c}from"./p-DE51TUwj.js";import{g as i,s as r,a as h,b as d,c as l,d as u,e as m,f as p,h as b}from"./p-ygfGN0jf.js";import"./p-Cd4R0amv.js";import"./p-CcCycvZh.js";import"./p-BMRf5pjV.js";var g={search:"Search",searchResults:"search results",selectedColumnCount:"{count} / {total} Columns Selected",selectAllColumnsScreenReader:"{count} of {total} columns selected: check checkbox to select all {total} columns",unselectAllColumnsScreenReader:"{count} of {total} columns selected: uncheck checkbox to unselect all {total} columns",movePositionPrompt:"Press space or enter to move the {columnName} column to position {newPositionNumber} from position {oldPositionNumber}.",reorderingModeActive:"Reordering mode active. Reposition the {columnName} column using the up arrow key, the down arrow key, the home key and the end key. Press Escape to deactivate reordering mode."};const f=class{constructor(n){e(this,n),this.guxorderchange=t(this,"guxorderchange",7),this.highlightResults={matchCount:0,currentMatch:0},this.keyboardOrderChange=i()}watchKeyboardOrderChange(){r(this.root,this.keyboardOrderChange)}async componentWillLoad(){c(this.root),this.i18n=await o(this.root,g)}componentDidLoad(){h(this.root,this.mainCheckboxElement)}handleInternalorderchange(e){e.stopPropagation(),this.emitOrderChange(e.detail)}emitOrderChange(e){const{oldIndex:t,newIndex:n}=e;if(t!==n){const t=d(this.root,e);this.guxorderchange.emit(t)}}handleInternalkeyboardorderstart(e){e.stopPropagation();const t=e.detail,n=l(e.target);this.keyboardOrderChange={oldIndex:n,newIndex:n},this.announceElement.guxAnnounce(this.i18n("reorderingModeActive",{columnName:t}))}handleInternalkeyboardreordermove(e){e.stopPropagation();const{delta:t,column:n}=e.detail;this.keyboardOrderChange=u(this.root,this.keyboardOrderChange,t),this.announceElement.guxAnnounce(this.i18n("movePositionPrompt",{columnName:n,newPositionNumber:this.keyboardOrderChange.newIndex+1,oldPositionNumber:this.keyboardOrderChange.oldIndex+1}))}handleInternalkeyboarddoreorder(e){e.stopPropagation(),this.emitOrderChange(this.keyboardOrderChange),e.target.guxFocus()}handleInternalkeyboardorderfinish(e){e.stopPropagation(),this.keyboardOrderChange=i()}onSearchInput(){this.highlightResults=m(this.root,this.searchElement)}onGuxCurrentMatchChanged(e){this.highlightResults=m(this.root,this.searchElement,e.detail)}onMainCheckboxChange(){p(this.root,this.mainCheckboxElement.checked),n(this.root)}onListChange(){h(this.root,this.mainCheckboxElement),n(this.root)}onSlotChange(){this.onListChange()}renderSelectedColumnCount(){const{count:e,total:t}=b(this.root);return s("div",null,s("span",{"aria-hidden":"true"},this.i18n("selectedColumnCount",{count:e,total:t})),s("span",{class:"gux-sr-only"},s("span",null,": ",this.i18n(e===t?"unselectAllColumnsScreenReader":"selectAllColumnsScreenReader",{count:e,total:t}))))}render(){return s("div",{key:"62daef53138e926a9cbfae1719232de3f3e7f9b2",class:"gux-container"},s("div",{key:"e3a79e55e8cbe501bdb26935385ba313cd4927ee",class:"gux-sr-only","aria-live":"polite"},`${this.highlightResults.matchCount} ${this.i18n("searchResults")}`),s("div",{key:"76a55f638c25df7ceb4d38b53be63102889b9aa8",class:"gux-search"},s("gux-content-search",{key:"be60a7fdfe003135a386d313bd3fecbbd52c853f","match-count":this.highlightResults.matchCount,"current-match":this.highlightResults.currentMatch,onGuxcurrentmatchchanged:e=>this.onGuxCurrentMatchChanged(e)},s("input",{key:"19af360a04d7d4df522dc76676897363fe35c1a4",type:"search",placeholder:this.i18n("search"),onInput:()=>this.onSearchInput(),ref:e=>this.searchElement=e}))),s("div",{key:"261035c713eb6c548bf5cf3f0c2cfd8337446c4f",class:"gux-select"},s("gux-form-field-checkbox",{key:"7067d7cece7c16d05a45e6b01fa46c245a450eea"},s("input",{key:"bef6b7f2804bc0f8006901195a694f725dd6c14f",slot:"input",type:"checkbox",ref:e=>this.mainCheckboxElement=e,onChange:()=>this.onMainCheckboxChange()}),s("label",{key:"2135cd8bbc8421a4cae0fb46f93728245d5d670f",slot:"label"},this.renderSelectedColumnCount()))),s("div",{key:"58b6db75ebf6d37d15beabf2a6e572d863f01fd4",class:"gux-list",onChange:()=>this.onListChange()},s("slot",{key:"3e2cdf0655d9dfbd380495eccd7cdaf23470b7d3",onSlotchange:()=>this.onSlotChange()})),s("gux-announce-beta",{key:"da70374436f1c5fd2746e327a7eb7709efb770ef",ref:e=>this.announceElement=e}))}get root(){return a(this)}static get watchers(){return{keyboardOrderChange:["watchKeyboardOrderChange"]}}};f.style=".gux-container{inline-size:320px;min-inline-size:320px;padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding)}.gux-container .gux-search gux-content-search{inline-size:100%}.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-decoration,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-cancel-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-decoration{display:none;-webkit-appearance:none}.gux-container .gux-select{padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding);margin-inline-start:24px}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}";export{f as gux_column_manager}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,f as i,h as o,a as s,H as n}from"./p-npw54p0Y.js";import{O as r}from"./p-d6HR-UfA.js";import{b as a}from"./p-CIt2cSVJ.js";import{s as u}from"./p-BMRf5pjV.js";import{o as l,c as d}from"./p-Cb3FOYGS.js";import{b as c}from"./p-Bg4q97BS.js";import{t as h}from"./p-DE51TUwj.js";import{O as g}from"./p-CbifHkss.js";import{s as f,b as p,g as x,a as b,d as v,h as m,e as w,f as C,i as y,j as k,k as z,l as F,m as j,n as O,o as S,c as T,p as E}from"./p-B_WlCjG2.js";import{h as L}from"./p-qzV3vtOw.js";import{w as R}from"./p-kLXvN2m9.js";import{g as H}from"./p-Cd4R0amv.js";import{r as W}from"./p-D9jKBqIb.js";var B={filterResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown"},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.disabled=!1,this.required=!1,this.loading=!1,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)));case"Enter":case" ":return void(this.expanded||this.isFilterable()||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,B),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=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":case"gux-option-status-beta":return this.renderIconOption(t);default:return e}}renderOption(t){let e=t.textContent.trim();if(L(t,"subtext")){const i=t.querySelector("[slot=subtext]");e=e.replace(i.textContent.trim(),"")}return o("gux-truncate",{ref:t=>this.truncateElement=t,dir:"auto"},e)}renderIconOption(t){let e=null,i=t.textContent;if(null!==t.iconColor&&(e={color:t.iconColor}),L(t,"subtext")){const e=t.querySelector("[slot=subtext]");i=i.replace(e.textContent,"")}return 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},i))}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:"ffefed5e0a9f2860826dd80690aa9d36ae91fe30",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","gux-option-status-beta"].join(",");var V={noMatches:"No matches",loading:"Loading..."};const K=class{constructor(i){t(this,i),this.internallistboxoptionsupdated=e(this,"internallistboxoptionsupdated",7),this.loading=!1,this.filter="",this.filterType="none",this.disabled=!1,this.selectedValues=[],this.listboxOptions=[]}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 j(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||O(this.root,t.key)}onKeyup(t){" "!==t.key||j(this.root,(t=>this.updateValue(t)))}onMousemove(){v(this.root)}onClick(t){R(A,t,(t=>{S(t,(t=>this.updateValue(t)))}))}async guxSelectActive(){j(this.root,(t=>this.updateValue(t)))}setListboxOptions(){this.selectedValues=T(this.value),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,V),this.setListboxOptions()}componentWillRender(){this.listboxOptions.forEach((t=>{t.selected=t.value===this.value,"custom"!==this.filterType&&"none"!==this.filterType&&(t.filtered=!E(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.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||W("gux-option"),this.onSubtextChange()}onSubtextChange(){this.hasSubtext=L(this.root,"subtext")}getAriaSelected(){return!this.disabled&&(this.selected?"true":"false")}hasDisabledParent(){const t=H("gux-listbox",this.root);return null==t?void 0:t.disabled}render(){return o(n,{key:"c2672c6cb5bf516a3495eea8357d3bc4c4c900da",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:"b85bf4d463039f58f49ec2d6d18d2d1415403f32",class:"gux-option-wrapper"},o("gux-truncate",{key:"18608184d2d7a77a8fd0018745f9a1b6a8a5fa80","tooltip-placement":"right",ref:t=>this.truncateElement=t},o("slot",{key:"1b42a67570ad5b853612cbfce4481be09442aebd"})),o("slot",{key:"279602519fa45e83691133da63ef404ff014c43e",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}
@@ -0,0 +1 @@
1
+ import{r as e,h as t,a}from"./p-npw54p0Y.js";import{g as o}from"./p-CIt2cSVJ.js";import{d as r}from"./p-B0p1zRQq.js";import{q as n}from"./p-B10WAyAx.js";import"./p-Cd4R0amv.js";import"./p-BZb6pJEJ.js";import"./p-BFTU3MAI.js";const i=class{constructor(t){e(this,t)}onDayPropChange(){this.readDateFromProp()}readDateFromProp(){this.date=n.PlainDate.from(this.day)}async connectedCallback(){this.readDateFromProp();const e=o(this.root);this.readerFormatter=r(e,{year:"numeric",month:"long",day:"numeric"})}render(){return t("button",{key:"4282bb9b77fc4238e0748cc142f4e422ab29be41",type:"button",disabled:this.disabled},t("slot",{key:"54b746f12a4a7d95468f983e6cb5bbeba0733061"},t("span",{key:"712abfbeb57c6b477f46ad8999d0931ab12017b8","aria-hidden":"true"},this.date.day),t("span",{key:"be8a82a9454f700a5b2966db75395e1d7b6ad789",class:"gux-sr-only"},function(e,t){const a=new Date;return a.setFullYear(t.year),a.setMonth(t.month-1),a.setDate(t.day),a.setHours(12),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),e.format(a)}(this.readerFormatter,this.date))))}static get delegatesFocus(){return!0}get root(){return a(this)}static get watchers(){return{day:["onDayPropChange"]}}};i.style=":host{display:inline-block;inline-size:var(--gse-ui-calendarMenu-day-date-size);block-size:var(--gse-ui-calendarMenu-day-input-height);outline:none;border:none;border-radius:var(--gse-ui-calendarMenu-month-borderRadius)}:host(:hover){background-color:var(--gse-ui-calendarMenu-date-hover-backgroundColor)}:host(:focus-within){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:var(--gse-ui-calendarMenu-month-focusBorderRadius)}:host([aria-current=true]){color:var(--gse-ui-calendarMenu-date-selected-foregroundColor);background-color:var(--gse-ui-calendarMenu-date-selected-backgroundColor)}:host(:disabled),:host(.gux-muted){opacity:var(--gse-ui-calendarMenu-disabled-opacity)}button{padding:0;margin:0;color:inherit;background:none;border:none;inline-size:100%;block-size:100%;font-family:var(--gse-ui-calendarMenu-date-currentText-fontFamily);font-size:var(--gse-ui-calendarMenu-date-defaultText-fontSize);font-style:normal;font-weight:var(--gse-ui-calendarMenu-date-defaultText-fontWeight);line-height:32px;vertical-align:middle;text-align:center;cursor:pointer}button:focus{outline:none}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}";export{i as gux_day_beta}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,f as i,h as o,a as r}from"./p-npw54p0Y.js";import{O as n}from"./p-d6HR-UfA.js";import{b as s}from"./p-CIt2cSVJ.js";import{s as l}from"./p-BMRf5pjV.js";import{b as u}from"./p-Bg4q97BS.js";import{o as a}from"./p-Cb3FOYGS.js";import{t as d}from"./p-DE51TUwj.js";import{c,s as h,g,a as f}from"./p-B_WlCjG2.js";import{O as p}from"./p-CbifHkss.js";import"./p-Cd4R0amv.js";var x={textInputResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown",numberSelected:"{numberSelected} selected",pressEnterToCreate:"Press Enter to create new option, {textInputValue}"},b=function(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const v=class{constructor(i){t(this,i),this.guxcreateoption=e(this,"guxcreateoption",7),this.guxexpanded=e(this,"guxexpanded",7),this.guxcollapsed=e(this,"guxcollapsed",7),this.guxfilter=e(this,"guxfilter",7),this.disabled=!1,this.required=!1,this.loading=!1,this.filterType="none",this.hasError=!1,this.exceedTargetWidth=!1,this.hasCreate=!1,this.expanded=!1,this.textInput=""}onMutation(){var t;this.listboxElement||(this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.applyListboxEventListeners())}onInternalExpanded(t){t.stopPropagation(),this.guxexpanded.emit()}onInternalCollapsed(t){t.stopPropagation(),this.guxcollapsed.emit()}focusSelectedItemAfterRender(t){t&&this.listboxElement&&u((()=>{this.hasTextInput()?this.textInputElement.focus():this.listboxElement.focus()})),t||(this.textInput="")}watchDisabled(t){t&&(this.expanded=!1)}watchValue(t){this.validateValue(t,this.listboxElement)}handleFilter(t){this.guxfilter.emit(t)}getSelectedValues(){return Promise.resolve(c(this.value))}onKeydown(t){switch(t.key){case"Escape":return this.hasTextInput()&&document.activeElement===this.listboxElement?this.textInputElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.textInputElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("focusFieldButton")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0,h(this.listboxElement)));case"Enter":return this.canCreateNewOption()&&this.isActiveElement()&&this.emitCreateOption(),void(this.expanded||this.isFilterable()||h(this.listboxElement));case" ":return void(this.expanded||this.isFilterable()||h(this.listboxElement))}}onInternallistboxoptionsupdated(t){t.stopPropagation(),requestAnimationFrame((()=>{requestAnimationFrame((()=>i(this.root)))}))}onClearselected(t){t.stopPropagation(),this.updateValue(void 0),this.listboxElement&&(this.listboxElement.value=void 0),this.validateValue(this.value,this.listboxElement),this.fieldButtonElement.focus()}onCreatenewoption(t){t.stopPropagation(),this.emitCreateOption()}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t)}onClickOutside(){this.collapseListbox("noFocusChange")}connectedCallback(){var t;this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.hasCreate=!!this.root.querySelector("gux-create-option"))}async componentWillLoad(){d(this.root),this.i18n=await s(this.root,x),a(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.textInput=this.textInput)}validateValue(t,e){void 0!==t?this.getOptionElementByValue(t)?e.value=t:this.value=void 0:e&&(e.value=t)}hasTextInput(){return this.isFilterable()||this.hasCreate}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()}))}isFilterable(){return"custom"===this.filterType||"starts-with"===this.filterType}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}getOptionElementByValue(t){const e=Array.from(this.root.querySelectorAll("gux-option-multi")),i=c(t);return e.filter((t=>i.includes(t.value)))}fieldButtonClick(){this.expanded=!this.expanded}fieldButtonInputClick(){this.expanded||(this.expanded=!this.expanded)}filterInput(t){t.stopPropagation(),this.textInput=this.textInputElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.hasTextInput()&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.hasTextInput()&&document.activeElement===this.listboxElement}emitCreateOption(){this.guxcreateoption.emit(this.textInput),this.textInput="",this.textInputElement.value=""}canCreateNewOption(){return this.hasCreate&&this.textInput&&!this.listboxElement.hasExactMatch}isActiveElement(){return document.activeElement===this.root}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){if("ArrowDown"===t.key)return t.stopImmediatePropagation(),t.preventDefault(),this.listboxElement.focus(),void h(this.listboxElement)}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,l(this.root,"input"),l(this.root,"change"))}getTypeaheadText(t){var e;const i=t.length;if(i>0&&!this.loading){const o=g(this.listboxElement,t);if(o&&"custom"!==this.filterType){const t=null===(e=f(o))||void 0===e?void 0:e.textContent.trim();return null==t?void 0:t.substring(i)}return""}}renderTargetDisplay(){return o("div",{class:"gux-placeholder"},this.getSrSelectedText(),this.getSelectedOptionText()||this.placeholder||this.i18n("noSelection"))}getSelectedOptionText(){const t=this.getSelectedOptionValueString();return!!t&&[t,o("div",{class:"gux-sr-only"},this.placeholder)]}getSelectedOptionValueString(){return this.getOptionElementByValue(this.value).map((t=>{var e;return null===(e=f(t))||void 0===e?void 0:e.textContent.trim()})).join(", ")}getSrSelectedText(){const t=this.getOptionElementByValue(this.value);if(t.length)return o("span",{class:"gux-sr-only"},this.i18n("numberSelected",{numberSelected:t.length.toString()}))}getInputAriaLabel(){return this.canCreateNewOption()&&this.isActiveElement()?this.i18n("pressEnterToCreate",{textInputValue:this.textInput}):this.i18n("textInputResults")}renderTag(){const t=c(this.value);if(t.length)return o("gux-dropdown-multi-tag",{disabled:this.disabled,"number-selected":t.length})}renderFilterInputField(){if(this.expanded&&this.hasTextInput())return o("div",{class:"gux-field gux-input-field"},o("div",{class:"gux-field-content"},o("div",{class:"gux-filter"},o("div",{class:"gux-filter-display"},o("span",{class:"gux-filter-text"},this.textInput),o("span",{class:"gux-filter-suggestion"},this.getTypeaheadText(this.textInput))),o("div",{class:"input-and-dropdown-button"},o("input",{onClick:this.fieldButtonInputClick.bind(this),placeholder:this.getSelectedOptionValueString()||this.placeholder||this.i18n("noSelection"),class:"gux-filter-input",type:"text","aria-label":this.getInputAriaLabel(),ref:t=>this.textInputElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this),disabled:this.disabled})))))}renderPopup(){return o("div",{slot:"popup",class:"gux-listbox-container"},o("slot",null))}renderTarget(){return o("div",{class:{"gux-target-container":!0,"gux-target-container-expanded":this.expanded&&this.hasTextInput(),"gux-target-container-collapsed":!(this.expanded&&this.hasTextInput()),"gux-error":this.hasError,"gux-disabled":this.disabled},slot:"target"},this.renderFilterInputField(),o("button",{type:"button",class:"gux-field gux-field-button",disabled:this.disabled,onClick:this.fieldButtonClick.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},this.renderTargetContent(),this.renderTag(),this.renderRadialLoading(),o("gux-icon",{class:{"gux-expand-icon":!0},size:"small","screenreader-text":this.i18n("dropdown"),iconName:"custom/chevron-down-small-regular"})))}renderTargetContent(){if(!this.expanded||!this.hasTextInput())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("div",{key:"21470eb5abc8ce97d749c5b4199c97c3209b63d4",class:"gux-dropdown-container"},o("gux-popup",{key:"a46922d1410cd946f8a8c4d873dfb26fe61de9c3",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 r(this)}static get watchers(){return{expanded:["focusSelectedItemAfterRender"],disabled:["watchDisabled"],value:["watchValue"],textInput:["handleFilter"]}}};b([p({childList:!0,subtree:!0})],v.prototype,"onMutation",null),b([n({triggerEvents:"mousedown"})],v.prototype,"onClickOutside",null),v.style=":host{box-sizing:border-box;color:var(--gse-ui-formControl-input-populatedColor)}.gux-dropdown-container{position:relative}.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-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-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{position:relative;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;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter .gux-sr-only:not(:focus):not(:active),.gux-field .gux-field-content .gux-selected-option .gux-sr-only:not(:focus):not(:active),.gux-field .gux-field-content .gux-placeholder .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}.gux-field .gux-field-content .gux-filter{position:relative;block-size:100%;padding-inline-start:0}.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-input:placeholder-shown{text-overflow:ellipsis}.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-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-expanded:focus-within:has(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);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-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-collapsed .gux-field-button:focus-within:has(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-listbox-container{box-sizing:border-box;margin:0}";export{v as gux_dropdown_multi}
@@ -0,0 +1 @@
1
+ import{r as i,h as t,a}from"./p-npw54p0Y.js";import{b as e}from"./p-CIt2cSVJ.js";import{t as n}from"./p-DE51TUwj.js";import"./p-Cd4R0amv.js";var o={navigationName:"Skip links navigation"};const s=class{constructor(t){i(this,t)}async componentWillLoad(){n(this.root),this.i18n=await e(this.root,o)}render(){return t("div",{key:"0879e8494f729dc4a40c71d2cd455592bc833869",class:"gux-container"},t("nav",{key:"73cf4ba6e9781a3d2e56f67d7da8bf00afabe450","aria-label":this.i18n("navigationName")},t("ul",{key:"acdb0f31bd6f8a321ad2929077191992f325deda",role:"list"},t("slot",{key:"e6f551ce84abde67c2e99686ec8c1501779f2009"}))))}static get delegatesFocus(){return!0}get root(){return a(this)}};s.style=":host{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host(:focus-within){position:inherit;top:inherit;left:inherit;width:inherit;height:inherit;overflow:inherit;position:absolute;inset:0}.gux-container nav{inline-size:fit-content;margin-block:40px;margin-inline:auto}.gux-container nav ul{padding:0;margin:0}";export{s as gux_skip_navigation_list}
@@ -1 +1 @@
1
- import{r as e,h as t,g as i}from"./p-cf74fd3d.js";import{t as r}from"./p-e0a3c96f.js";import{g as s,b as o,v as a}from"./p-4aaf349e.js";import{c as d,o as l}from"./p-f4751a15.js";import{p as c}from"./p-a11d5d42.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";import"./p-6d8b4027.js";const n=class{constructor(t){e(this,t),this.variant="simple"}componentWillLoad(){this.setInput(),r(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}setInput(){this.input=s(this.root,'input[type="radio"][slot="input"], input[type="checkbox"][slot="input"]'),c(this.input),o(this.root,this.input,"description"),this.disabled=d(this.input),this.disabledObserver=l(this.input,(e=>{this.disabled=e})),a(this.root,this.input)}renderDescription(){return"simple"===this.variant?t("span",{class:"gux-screenreader"},t("slot",{name:"description"})):t("div",{class:"gux-description-container"},t("slot",{name:"description"}))}renderBadge(){if("descriptive"===this.variant)return t("slot",{name:"badge"})}render(){return t("div",{key:"97ab16baffb3926895233003ba989f4c1e9e309a",class:{"gux-selector-card":!0,[`gux-${this.variant}`]:!0,"gux-disabled":this.disabled}},t("div",{key:"d0b66d6f254baede578851e47880221128eeea12",class:"gux-content"},t("div",{key:"15130d174bbce1505191d1bbfe2f40e3d59c85d1",class:"gux-icon"},t("slot",{key:"753b20d4ec466c04c3f54f91fb8b8549f8a69d0c",name:"icon"})),t("div",{key:"0b2a096960f86a1c9845de005de25c6d2aed9be2",class:"gux-label-container"},t("slot",{key:"0466e924796a7d44f658a7bab8a4bb96771e9277",name:"label"})),t("slot",{key:"dc6dbd6544931f7fd407e353397af0f6d3697c03",name:"input"}),this.renderDescription(),this.renderBadge()))}get root(){return i(this)}};n.style=":host{display:flex;min-inline-size:var(--gse-ui-selectorCard-simple-minWidth);max-inline-size:var(--gse-ui-selectorCard-simple-maxWidth);min-block-size:var(--gse-ui-selectorCard-simple-minHeight);max-block-size:var(--gse-ui-selectorCard-simple-maxHeight)}:host([variant=descriptive]){min-inline-size:var(--gse-ui-selectorCard-descriptive-minWidth);max-inline-size:var(--gse-ui-selectorCard-descriptive-maxWidth);min-block-size:var(--gse-ui-selectorCard-descriptive-minHeight);max-block-size:var(--gse-ui-selectorCard-descriptive-maxHeight)}::slotted(*){cursor:pointer}::slotted(gux-icon){inline-size:var(--gse-ui-icon-medium-size);block-size:var(--gse-ui-icon-medium-size);color:var(--gse-ui-selectorCard-ilustrativeIcon-foregroundColor)}::slotted(label){inline-size:100%;font-family:var(--gse-ui-selectorCard-simple-label-fontFamily);font-size:var(--gse-ui-selectorCard-simple-label-fontSize);font-weight:var(--gse-ui-selectorCard-simple-label-fontWeight);line-height:var(--gse-ui-selectorCard-simple-label-lineHeight);color:var(--gse-ui-selectorCard-text-foregroundColor)}::slotted(input[type=radio]),::slotted(input[type=checkbox]){position:absolute;inset-block-start:0;inline-size:100%;block-size:100%;margin:0;color:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor);-webkit-appearance:none;appearance:none;outline:none;border:var(--gse-ui-selectorCard-unselected-border-width) var(--gse-ui-selectorCard-unselected-border-style) var(--gse-ui-selectorCard-unselected-border-color);border-radius:var(--gse-ui-selectorCard-simple-borderRadius)}::slotted(input[type=radio])::before,::slotted(input[type=checkbox])::before{position:absolute;inset-block-start:var(--gse-ui-selectorCard-descriptive-text-gap);inset-inline-end:var(--gse-ui-selectorCard-descriptive-text-gap);display:inline-grid;grid-area:1/1;inline-size:var(--gse-ui-radioButton-icon-width);block-size:var(--gse-ui-radioButton-icon-height);vertical-align:middle;color:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor);text-align:center;content:\"\"}::slotted(input[type=radio])::before{border-radius:50%}::slotted(input[type=radio]:checked),::slotted(input[type=checkbox]:checked){border:var(--gse-ui-selectorCard-selected-border-width) var(--gse-ui-selectorCard-selected-border-style) var(--gse-ui-selectorCard-selected-border-color)}::slotted(input[type=radio]:checked)::before,::slotted(input[type=checkbox]:checked)::before{background-color:var(--gse-ui-selectorCard-default-selectedIndicator-selected-foregroundColor)}::slotted(input[type=radio]:not(:checked))::before,::slotted(input[type=checkbox]:not(:checked))::before{background-color:var(--gse-ui-selectorCard-default-selectedIndicator-unselected-foregroundColor)}::slotted(input[type=radio]:disabled),::slotted(input[type=checkbox]:disabled){pointer-events:none;cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}::slotted(input[type=radio])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\")}::slotted(input[type=radio]:checked)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\")}::slotted(input[type=checkbox])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\")}::slotted(input[type=checkbox]:checked)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\")}.gux-selector-card{display:flex;flex:1 1 auto;inline-size:inherit}.gux-selector-card .gux-content{position:relative;box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;gap:var(--gse-ui-selectorCard-descriptive-text-gap);align-items:center;inline-size:inherit;min-inline-size:var(--gse-ui-selectorCard-simple-minWidth);max-inline-size:var(--gse-ui-selectorCard-simple-maxWidth);min-block-size:var(--gse-ui-selectorCard-simple-minHeight);max-block-size:var(--gse-ui-selectorCard-simple-maxHeight);padding:var(--gse-ui-selectorCard-simple-padding);text-align:center;background-color:var(--gse-ui-selectorCard-default-backgroundColor);border-radius:var(--gse-ui-selectorCard-simple-borderRadius)}.gux-selector-card .gux-content .gux-label-container{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.gux-selector-card .gux-content .gux-icon{line-height:0}.gux-selector-card .gux-content:focus-within{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-selector-card.gux-descriptive .gux-content{align-items:flex-start;min-inline-size:var(--gse-ui-selectorCard-descriptive-minWidth);max-inline-size:var(--gse-ui-selectorCard-descriptive-maxWidth);min-block-size:var(--gse-ui-selectorCard-descriptive-minHeight);max-block-size:var(--gse-ui-selectorCard-descriptive-maxHeight);padding:var(--gse-ui-selectorCard-descriptive-padding);text-align:start;white-space:normal;border-radius:var(--gse-ui-selectorCard-descriptive-borderRadius)}.gux-selector-card.gux-descriptive .gux-content .gux-description-container{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3}.gux-selector-card.gux-descriptive .gux-content ::slotted(gux-badge){margin-block-start:var(--gse-ui-selectorCard-descriptive-badge-marginTop)}.gux-selector-card.gux-descriptive .gux-content ::slotted(input[type=radio]),.gux-selector-card.gux-descriptive .gux-content ::slotted(input[type=checkbox]){inset-inline-start:0;border-radius:var(--gse-ui-selectorCard-descriptive-borderRadius)}.gux-selector-card.gux-descriptive .gux-content ::slotted(input[type=radio])::before,.gux-selector-card.gux-descriptive .gux-content ::slotted(input[type=checkbox])::before{inset-block-start:var(--gse-ui-selectorCard-descriptive-gap);inset-inline-end:var(--gse-ui-selectorCard-descriptive-padding);inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}.gux-selector-card.gux-descriptive .gux-content ::slotted(label){display:block;margin-block-end:var(--gse-ui-selectorCard-descriptive-text-gap);font-family:var(--gse-ui-selectorCard-descriptive-label-fontFamily);font-size:var(--gse-ui-selectorCard-descriptive-label-fontSize);font-weight:var(--gse-ui-selectorCard-descriptive-label-fontWeight);line-height:var(--gse-ui-selectorCard-descriptive-label-lineHeight)}.gux-selector-card.gux-descriptive .gux-content ::slotted(gux-icon){inline-size:var(--gse-ui-icon-large-size);block-size:var(--gse-ui-icon-large-size);margin-block-end:var(--gse-ui-selectorCard-descriptive-gap)}.gux-selector-card.gux-disabled{pointer-events:none;cursor:not-allowed}.gux-selector-card.gux-disabled .gux-content{pointer-events:none;-webkit-user-select:none;user-select:none;background-color:var(--gse-ui-selectorCard-disabled-backgroundColor);opacity:var(--gse-ui-selectorCard-disabled-opacity)}.gux-selector-card:hover:not(:disabled) .gux-content{cursor:pointer;background-color:var(--gse-ui-selectorCard-hover-backgroundColor)}.gux-selector-card:hover:not(:disabled) .gux-content ::slotted(input[type=radio])::before,.gux-selector-card:hover:not(:disabled) .gux-content ::slotted(input[type=checkbox])::before{background-color:var(--gse-ui-selectorCard-hover-selectedIndicator-foregroundColor)}.gux-selector-card:active:not(:disabled) .gux-content{background-color:var(--gse-ui-selectorCard-active-backgroundColor)}.gux-selector-card:active:not(:disabled) .gux-content ::slotted(input[type=radio])::before,.gux-selector-card:active:not(:disabled) .gux-content ::slotted(input[type=checkbox])::before{background-color:var(--gse-ui-selectorCard-active-selectedIndicator-foregroundColor)}.gux-selector-card .gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{n as gux_selector_card_beta}
1
+ import{r as e,h as t,a as i}from"./p-npw54p0Y.js";import{t as r}from"./p-DE51TUwj.js";import{g as s,s as o,v as a}from"./p-DHLxhscH.js";import{c as d,o as l}from"./p-Cb3FOYGS.js";import{p as c}from"./p-PYfNAK8p.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";import"./p-qzV3vtOw.js";const n=class{constructor(t){e(this,t),this.variant="simple"}componentWillLoad(){this.setInput(),r(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}setInput(){this.input=s(this.root,'input[type="radio"][slot="input"], input[type="checkbox"][slot="input"]'),c(this.input),o(this.root,this.input,"description"),this.disabled=d(this.input),this.disabledObserver=l(this.input,(e=>{this.disabled=e})),a(this.root,this.input)}renderDescription(){return"simple"===this.variant?t("span",{class:"gux-screenreader"},t("slot",{name:"description"})):t("div",{class:"gux-description-container"},t("slot",{name:"description"}))}renderBadge(){if("descriptive"===this.variant)return t("slot",{name:"badge"})}render(){return t("div",{key:"97ab16baffb3926895233003ba989f4c1e9e309a",class:{"gux-selector-card":!0,[`gux-${this.variant}`]:!0,"gux-disabled":this.disabled}},t("div",{key:"d0b66d6f254baede578851e47880221128eeea12",class:"gux-content"},t("div",{key:"15130d174bbce1505191d1bbfe2f40e3d59c85d1",class:"gux-icon"},t("slot",{key:"753b20d4ec466c04c3f54f91fb8b8549f8a69d0c",name:"icon"})),t("div",{key:"0b2a096960f86a1c9845de005de25c6d2aed9be2",class:"gux-label-container"},t("slot",{key:"0466e924796a7d44f658a7bab8a4bb96771e9277",name:"label"})),t("slot",{key:"dc6dbd6544931f7fd407e353397af0f6d3697c03",name:"input"}),this.renderDescription(),this.renderBadge()))}get root(){return i(this)}};n.style=":host{display:flex;min-inline-size:var(--gse-ui-selectorCard-simple-minWidth);max-inline-size:var(--gse-ui-selectorCard-simple-maxWidth);min-block-size:var(--gse-ui-selectorCard-simple-minHeight);max-block-size:var(--gse-ui-selectorCard-simple-maxHeight)}:host([variant=descriptive]){min-inline-size:var(--gse-ui-selectorCard-descriptive-minWidth);max-inline-size:var(--gse-ui-selectorCard-descriptive-maxWidth);min-block-size:var(--gse-ui-selectorCard-descriptive-minHeight);max-block-size:var(--gse-ui-selectorCard-descriptive-maxHeight)}::slotted(*){cursor:pointer}::slotted(gux-icon){inline-size:var(--gse-ui-icon-medium-size);block-size:var(--gse-ui-icon-medium-size);color:var(--gse-ui-selectorCard-ilustrativeIcon-foregroundColor)}::slotted(label){inline-size:100%;font-family:var(--gse-ui-selectorCard-simple-label-fontFamily);font-size:var(--gse-ui-selectorCard-simple-label-fontSize);font-weight:var(--gse-ui-selectorCard-simple-label-fontWeight);line-height:var(--gse-ui-selectorCard-simple-label-lineHeight);color:var(--gse-ui-selectorCard-text-foregroundColor)}::slotted(input[type=radio]),::slotted(input[type=checkbox]){position:absolute;inset-block-start:0;inline-size:100%;block-size:100%;margin:0;color:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor);-webkit-appearance:none;appearance:none;outline:none;border:var(--gse-ui-selectorCard-unselected-border-width) var(--gse-ui-selectorCard-unselected-border-style) var(--gse-ui-selectorCard-unselected-border-color);border-radius:var(--gse-ui-selectorCard-simple-borderRadius)}::slotted(input[type=radio])::before,::slotted(input[type=checkbox])::before{position:absolute;inset-block-start:var(--gse-ui-selectorCard-descriptive-text-gap);inset-inline-end:var(--gse-ui-selectorCard-descriptive-text-gap);display:inline-grid;grid-area:1/1;inline-size:var(--gse-ui-radioButton-icon-width);block-size:var(--gse-ui-radioButton-icon-height);vertical-align:middle;color:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor);text-align:center;content:\"\"}::slotted(input[type=radio])::before{border-radius:50%}::slotted(input[type=radio]:checked),::slotted(input[type=checkbox]:checked){border:var(--gse-ui-selectorCard-selected-border-width) var(--gse-ui-selectorCard-selected-border-style) var(--gse-ui-selectorCard-selected-border-color)}::slotted(input[type=radio]:checked)::before,::slotted(input[type=checkbox]:checked)::before{background-color:var(--gse-ui-selectorCard-default-selectedIndicator-selected-foregroundColor)}::slotted(input[type=radio]:not(:checked))::before,::slotted(input[type=checkbox]:not(:checked))::before{background-color:var(--gse-ui-selectorCard-default-selectedIndicator-unselected-foregroundColor)}::slotted(input[type=radio]:disabled),::slotted(input[type=checkbox]:disabled){pointer-events:none;cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}::slotted(input[type=radio])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\")}::slotted(input[type=radio]:checked)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\")}::slotted(input[type=checkbox])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\")}::slotted(input[type=checkbox]:checked)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\")}.gux-selector-card{display:flex;flex:1 1 auto;inline-size:inherit}.gux-selector-card .gux-content{position:relative;box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;gap:var(--gse-ui-selectorCard-descriptive-text-gap);align-items:center;inline-size:inherit;min-inline-size:var(--gse-ui-selectorCard-simple-minWidth);max-inline-size:var(--gse-ui-selectorCard-simple-maxWidth);min-block-size:var(--gse-ui-selectorCard-simple-minHeight);max-block-size:var(--gse-ui-selectorCard-simple-maxHeight);padding:var(--gse-ui-selectorCard-simple-padding);text-align:center;background-color:var(--gse-ui-selectorCard-default-backgroundColor);border-radius:var(--gse-ui-selectorCard-simple-borderRadius)}.gux-selector-card .gux-content .gux-label-container{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.gux-selector-card .gux-content .gux-icon{line-height:0}.gux-selector-card .gux-content:focus-within{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-selector-card.gux-descriptive .gux-content{align-items:flex-start;min-inline-size:var(--gse-ui-selectorCard-descriptive-minWidth);max-inline-size:var(--gse-ui-selectorCard-descriptive-maxWidth);min-block-size:var(--gse-ui-selectorCard-descriptive-minHeight);max-block-size:var(--gse-ui-selectorCard-descriptive-maxHeight);padding:var(--gse-ui-selectorCard-descriptive-padding);text-align:start;white-space:normal;border-radius:var(--gse-ui-selectorCard-descriptive-borderRadius)}.gux-selector-card.gux-descriptive .gux-content .gux-description-container{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3}.gux-selector-card.gux-descriptive .gux-content ::slotted(gux-badge){margin-block-start:var(--gse-ui-selectorCard-descriptive-badge-marginTop)}.gux-selector-card.gux-descriptive .gux-content ::slotted(input[type=radio]),.gux-selector-card.gux-descriptive .gux-content ::slotted(input[type=checkbox]){inset-inline-start:0;border-radius:var(--gse-ui-selectorCard-descriptive-borderRadius)}.gux-selector-card.gux-descriptive .gux-content ::slotted(input[type=radio])::before,.gux-selector-card.gux-descriptive .gux-content ::slotted(input[type=checkbox])::before{inset-block-start:var(--gse-ui-selectorCard-descriptive-gap);inset-inline-end:var(--gse-ui-selectorCard-descriptive-padding);inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}.gux-selector-card.gux-descriptive .gux-content ::slotted(label){display:block;margin-block-end:var(--gse-ui-selectorCard-descriptive-text-gap);font-family:var(--gse-ui-selectorCard-descriptive-label-fontFamily);font-size:var(--gse-ui-selectorCard-descriptive-label-fontSize);font-weight:var(--gse-ui-selectorCard-descriptive-label-fontWeight);line-height:var(--gse-ui-selectorCard-descriptive-label-lineHeight)}.gux-selector-card.gux-descriptive .gux-content ::slotted(gux-icon){inline-size:var(--gse-ui-icon-large-size);block-size:var(--gse-ui-icon-large-size);margin-block-end:var(--gse-ui-selectorCard-descriptive-gap)}.gux-selector-card.gux-disabled{pointer-events:none;cursor:not-allowed}.gux-selector-card.gux-disabled .gux-content{pointer-events:none;-webkit-user-select:none;user-select:none;background-color:var(--gse-ui-selectorCard-disabled-backgroundColor);opacity:var(--gse-ui-selectorCard-disabled-opacity)}.gux-selector-card:hover:not(:disabled) .gux-content{cursor:pointer;background-color:var(--gse-ui-selectorCard-hover-backgroundColor)}.gux-selector-card:hover:not(:disabled) .gux-content ::slotted(input[type=radio])::before,.gux-selector-card:hover:not(:disabled) .gux-content ::slotted(input[type=checkbox])::before{background-color:var(--gse-ui-selectorCard-hover-selectedIndicator-foregroundColor)}.gux-selector-card:active:not(:disabled) .gux-content{background-color:var(--gse-ui-selectorCard-active-backgroundColor)}.gux-selector-card:active:not(:disabled) .gux-content ::slotted(input[type=radio])::before,.gux-selector-card:active:not(:disabled) .gux-content ::slotted(input[type=checkbox])::before{background-color:var(--gse-ui-selectorCard-active-selectedIndicator-foregroundColor)}.gux-selector-card .gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{n as gux_selector_card_beta}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,a as r}from"./p-npw54p0Y.js";import{a as s,c as o,o as a,f as n}from"./p-BUgza8B9.js";import{r as u}from"./p-D9jKBqIb.js";import{a as d}from"./p-Bg4q97BS.js";import{f as l,a as c,b as h,c as p}from"./p-aKaDsw_5.js";import{O as g}from"./p-d6HR-UfA.js";import{t as f}from"./p-DE51TUwj.js";import{b as x}from"./p-CIt2cSVJ.js";import{g as b,a as k}from"./p-B0p1zRQq.js";import{u as m}from"./p-ZuNZ-MBw.js";import"./p-Cd4R0amv.js";import"./p-BZb6pJEJ.js";var v={start:"Start",end:"End",date:"Date",toggleCalendar:"Toggle calendar view"};function C(t,e){let i=new Date(e.getTime());return i.setDate(i.getDate()+t),t<0?i.getDate()>e.getDate()&&(i=new Date(e.getFullYear(),e.getMonth()+1,0,0,0,0)):i.getDate()<e.getDate()&&i.setMonth(i.getMonth()-1),i}function y(t,e){const i=new Date(e.valueOf()),r=function(t){let e=t;for(;e<0;)e+=12;return e%=12,e}(i.getMonth()+t);return i.setMonth(r),i.setFullYear(e.getFullYear()),i.getMonth()!==r?y(t,C(-1,e)):i}function w(t,e){const i=t[e];return i&&"/"!==i?i:t[e-1]}function D(t){return t.match(/\W/)[0]}function R(t){const e=D(t);return t.split(e).reduce(((t,e)=>t.concat(e[0])),[])}function F(t,e){return{selectionStart:t.indexOf(e),selectionEnd:t.lastIndexOf(e)+1}}const j=class{constructor(i){t(this,i),this.input=e(this,"input",7),this.yearFormat="yyyy",this.isSelectingRangeWithMouse=!1,this.lastYear=(new Date).getFullYear(),this.startInputId=u("gux-datepicker"),this.endInputId=u("gux-datepicker"),this.label="",this.numberOfMonths=1,this.minDate="",this.maxDate="",this.mode="single",this.disabled=!1,this.labelPosition="beside",this.formattedValue="",this.toFormattedValue="",this.active=!1,this.pressedKeys=[]}watchValue(){this.format&&this.updateDate()}watchMinDate(t){this.minDateDate=t?l(t):null}watchMaxDate(t){this.maxDateDate=t?l(t):null}watchFormat(t){t.includes("yyyy")||(this.yearFormat="yy"),this.intervalOrder=R(t),this.lastIntervalRange=this.initialIntervalRange}watchActiveCalendar(t){if(!0===t){const t=l(this.value.split("/")[0]);this.calendarElement.resetCalendarView(t)}}onKeyDown(t){if(this.isInputFieldEvent(t))switch(this.focusedField=this.getInputFieldFromEvent(t),t.key){case"Enter":case"Escape":this.focusedField.blur(),this.active=!1;break;case"Tab":break;case"ArrowDown":t.preventDefault(),this.increment(-1),this.setCursorRange();break;case"ArrowUp":t.preventDefault(),this.increment(1),this.setCursorRange();break;case"ArrowLeft":{t.preventDefault();const e=function(t,e){const i=R(t),r=w(t,e.selectionStart),s=i.indexOf(r);return F(t,i[(s+i.length-1)%i.length])}(this.format,this.intervalRange);this.setIntervalRange(e),this.setCursorRange(),this.pressedKeys.length=0;break}case"ArrowRight":{t.preventDefault();const e=function(t,e){const i=R(t),r=w(t,e.selectionStart),s=i.indexOf(r);return F(t,i[(s+1)%i.length])}(this.format,this.intervalRange);this.setIntervalRange(e),this.setCursorRange(),this.pressedKeys.length=0;break}default:t.preventDefault(),this.isSelectingRangeWithMouse||(this.setIntervalRange({selectionStart:this.focusedField.selectionStart,selectionEnd:this.focusedField.selectionEnd}),this.updateIntervalValue(t),this.setCursorRange())}else switch(t.key){case"Enter":case"Escape":case" ":{this.active=!1;const t=this.root.shadowRoot.querySelector(".gux-calendar-toggle-button");d((()=>{t.focus()}));break}case"Tab":this.active&&(this.active=!1)}}onMouseDown(t){this.isInputFieldEvent(t)&&(this.isSelectingRangeWithMouse=!0);const e=t.composedPath(),i=e.includes(this.datepickerElement);Array.from(this.root.shadowRoot.querySelectorAll(".gux-calendar-toggle-button")).every((t=>!e.includes(t)))&&(this.active=i)}onClickOutside(){this.active=!1,this.pressedKeys.length=0}onInputFocusIn(t){this.focusedField=this.getInputFieldFromEvent(t),this.isSelectingRangeWithMouse||d((()=>this.setRange()))}onInputFocusOut(){this.lastIntervalRange=this.initialIntervalRange}onInputMouseUp(t){t.preventDefault(),this.lastIntervalRange=F(this.format,w(this.format,this.focusedField.selectionStart)),this.setRange(),this.isSelectingRangeWithMouse=!1}isInputFieldEvent(t){const e=t.composedPath();return e.includes(this.inputElement)||e.includes(this.toInputElement)}get initialIntervalRange(){return F(this.format,w(this.format,0))}getInputFieldFromEvent(t){return t.composedPath()[0]}updateIntervalValue(t){this.pressedKeys.push(t.key);const e=parseInt(t.key,10);if(!isNaN(e)){const i=this.focusedField.value.slice(this.focusedField.selectionStart,this.focusedField.selectionEnd);"y"===w(this.format,this.focusedField.selectionStart)&&"yyyy"===this.yearFormat?this.typeYearValue(i,t.key):this.canSetDate(e)&&this.pressedKeys.length>=2?(this.updateSelection(this.focusedField,`${i[1]}${t.key}`),this.setValue()):(this.updateSelection(this.focusedField,`0${t.key}`.replace("00","01")),this.setValue())}}updateSelection(t,e){t.value=t.value.substr(0,this.intervalRange.selectionStart)+e+t.value.substr(this.intervalRange.selectionEnd)}getCalendarLabels(){return function(t,e,i){const r=t.split(",").map((t=>t.trim()));return"range"===e?[r[0]||i[0],r[1]||i[1]]:"range"===e||r[0]?[r[0]]:[i[2]]}(this.label,this.mode,[this.i18n("start"),this.i18n("end"),this.i18n("date")])}stringToDate(t){const e=D(this.format),i=this.format.toLowerCase().split(e),r=t.split(e),s=parseInt(r[i.indexOf(this.yearFormat)],10),o=parseInt(r[i.indexOf("mm")],10)-1,a=parseInt(r[i.indexOf("dd")],10),n=new Date(s,o,a);return"yy"===this.yearFormat&&n.getFullYear()<1970&&this.lastYear>1970&&n.setFullYear(n.getFullYear()+100),n}onCalendarSelect(t){this.value=t.target.value,t.stopPropagation(),this.input.emit(this.value),this.updateDate(),this.inputElement.value=this.formattedValue,"range"===this.mode&&(this.toInputElement.value=this.toFormattedValue),document.activeElement===this.inputElement&&document.activeElement===this.toInputElement||(this.active=!1)}setValue(){if("range"===this.mode){const t=this.stringToDate(this.inputElement.value),e=this.stringToDate(this.toInputElement.value);this.value=c(t,e),this.updateDate(),this.calendarElement.setValue([t,e])}else{const t=this.stringToDate(this.inputElement.value);this.value=h(t),this.updateDate(),this.calendarElement.setValue(t)}this.input.emit(this.value)}setRange(){this.setIntervalRange(this.lastIntervalRange),this.setCursorRange()}typeYearValue(t,e){" "!==t[0]?this.updateSelection(this.focusedField,` ${e}`):(this.updateSelection(this.focusedField,`${t.substr(1)}${e}`),(t.substr(1)+e).includes(" ")||this.setValue())}canSetDate(t){const e=parseInt([this.focusedField.value[this.intervalRange.selectionEnd-1].toString(),t].join(""),10);if(e)switch(w(this.format,this.focusedField.selectionStart)){case"d":{const t=l(this.value);if(e<=new Date(t.getFullYear(),t.getMonth()+1,0).getDate())return!0;break}case"m":if(e<=12)return!0;break;case"y":return!0}return!1}getMapAndRegexFromField(t){const e={dd:`0${t.getDate()}`.slice(-2),mm:`0${t.getMonth()+1}`.slice(-2)};return"yyyy"===this.yearFormat?e.yyyy=t.getFullYear().toString():e.yy=t.getFullYear().toString().slice(-2),{map:e,regexp:new RegExp(Object.keys(e).join("|"),"gi")}}updateDate(){if("range"===this.mode){const[t,e]=p(this.value),{map:i,regexp:r}=this.getMapAndRegexFromField(t);this.formattedValue=this.format.replace(r,(t=>i[t]));const{map:s,regexp:o}=this.getMapAndRegexFromField(e);this.toFormattedValue=this.format.replace(o,(t=>s[t]))}else{const t=l(this.value),{map:e,regexp:i}=this.getMapAndRegexFromField(t);this.formattedValue=this.format.replace(i,(t=>e[t]))}}setCursorRange(){this.intervalRange&&(this.focusedField.setSelectionRange(0,100),this.focusedField.setSelectionRange(this.intervalRange.selectionStart,this.intervalRange.selectionEnd))}toggleCalendar(){this.active=!this.active,this.active&&d((()=>{this.calendarElement.focusPreviewDate()}))}setIntervalRange(t){this.intervalRange=t}getCombinedFocusedDateValue(){return"range"===this.mode?this.getRangeFocusedDateValue():this.getFocusedDateValue()}getFocusedDateValue(){return l(this.value)}getRangeFocusedDateValue(){const[t,e]=p(this.value);return this.focusedField===this.inputElement?t:e}increment(t){const e=w(this.format,this.focusedField.selectionStart),i=this.getCombinedFocusedDateValue();let r;switch(e){case"d":r=C(t,i);break;case"m":r=y(t,i);break;case"y":r=function(t,e){const i=new Date(e.valueOf());return i.setFullYear(e.getFullYear()+t),i}(t,i)}var s,o,a;s=r,o=this.minDateDate,((a=this.maxDateDate)&&a<s||o&&o>s)&&(r=i),this.lastYear=r.getFullYear(),this.setIntervalRange({selectionStart:this.focusedField.selectionStart,selectionEnd:this.focusedField.selectionEnd}),this.focusedField.value=function(t,e){const i=D(e),r=e.split(i).map((e=>{switch(e[0]){case"d":return function(t){return`0${t.getDate().toString()}`.slice(-2)}(t);case"m":return function(t){return`0${(t.getMonth()+1).toString()}`.slice(-2)}(t);case"y":return function(t,e){return"yyyy"===e?t.getFullYear().toString():t.getFullYear().toString().slice(-2)}(t,e)}})).join(i);return r}(r,this.format),this.setValue()}async componentWillLoad(){if(f(this.root,{variant:this.mode}),this.i18n=await x(this.root,v),this.format=m()?this.format||b(k(this.root)):this.format||"mm/dd/yyyy",this.watchMinDate(this.minDate),this.watchMaxDate(this.maxDate),this.watchFormat(this.format),!this.value){const t=new Date;t.setHours(0,0,0,0),this.value="range"===this.mode?c(t,t):h(t),"range"===this.mode&&this.numberOfMonths<2&&(this.numberOfMonths=2)}this.updateDate()}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.cleanupUpdatePosition=s(this.datepickerElement,this.calendarElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0})}updatePosition(){o(this.datepickerElement,this.calendarElement,{strategy:"fixed",placement:"bottom-start",middleware:[a({crossAxis:-3}),n({fallbackStrategy:"initialPlacement"})]}).then((({x:t,y:e})=>{Object.assign(this.calendarElement.style,{left:`${t}px`,top:`${e}px`})}))}componentDidUpdate(){this.active?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}renderCalendarToggleButton(){return i("button",{class:"gux-calendar-toggle-button",type:"button",onClick:()=>this.toggleCalendar(),"aria-expanded":this.active.toString(),"aria-label":this.i18n("toggleCalendar"),disabled:this.disabled},i("gux-icon",{decorative:!0,"icon-name":"fa/calendar-regular",size:"small"}))}renderCalendar(){return i("gux-calendar",{tabindex:"-1",ref:t=>this.calendarElement=t,value:this.value,mode:this.mode,onCalendarSelect:t=>this.onCalendarSelect(t),minDate:this.minDate,maxDate:this.maxDate,numberOfMonths:this.numberOfMonths,startDayOfWeek:this.startDayOfWeek})}renderStartDateField(){return i("div",{class:{"gux-datepicker-field":!0,"gux-above":"above"===this.labelPosition}},i("label",{htmlFor:this.startInputId,class:{"gux-datepicker-field-label":!0,"gux-sr-only":"single"===this.mode&&!this.label}},this.getCalendarLabels()[0]),i("div",{class:"gux-datepicker-field-input"},i("div",{class:"gux-datepicker-field-text-input"},i("input",{id:this.startInputId,type:"text",onClick:t=>this.onInputMouseUp(t),onFocusin:t=>this.onInputFocusIn(t),onFocusout:()=>this.onInputFocusOut(),ref:t=>this.inputElement=t,value:this.formattedValue,disabled:this.disabled}),this.renderCalendarToggleButton()),this.renderCalendar()))}renderEndDateField(){return"single"===this.mode?null:i("div",{class:{"gux-datepicker-field":!0,"gux-above":"above"===this.labelPosition}},i("label",{htmlFor:this.endInputId,class:"gux-datepicker-field-label"},this.getCalendarLabels()[1]),i("div",{class:"gux-datepicker-field-input"},i("div",{class:"gux-datepicker-field-text-input"},i("input",{id:this.endInputId,type:"text",ref:t=>this.toInputElement=t,onMouseUp:t=>this.onInputMouseUp(t),onFocusin:t=>this.onInputFocusIn(t),onFocusout:()=>this.onInputFocusOut(),value:this.toFormattedValue,disabled:this.disabled}),this.renderCalendarToggleButton())))}render(){return i("div",{key:"8bf19a961f4cd2d4b66e75d6088b93ea72a13879",class:{"gux-datepicker":!0,"gux-active":this.active,"gux-disabled":this.disabled},ref:t=>this.datepickerElement=t},this.renderStartDateField(),this.renderEndDateField())}get root(){return r(this)}static get watchers(){return{value:["watchValue"],minDate:["watchMinDate"],maxDate:["watchMaxDate"],format:["watchFormat"],active:["watchActiveCalendar"]}}};(function(t,e,i,r){var s,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)})([g({triggerEvents:"mousedown"})],j.prototype,"onClickOutside",null),j.style=":host{display:block;inline-size:fit-content}.gux-datepicker{display:flex}.gux-datepicker.gux-disabled{pointer-events:none;cursor:default}.gux-datepicker.gux-disabled .gux-datepicker-field .gux-datepicker-field-input{opacity:var(--gse-ui-datePicker-disabled-opacity)}.gux-datepicker .gux-datepicker-field{display:inline-flex;flex-direction:row;flex-wrap:nowrap;place-content:flex-start flex-start;align-items:center;inline-size:100%}.gux-datepicker .gux-datepicker-field~.gux-datepicker-field{margin-inline-start:var(--gse-ui-datePicker-range-gap)}.gux-datepicker .gux-datepicker-field.gux-above{flex-direction:column;align-items:self-start}.gux-datepicker .gux-datepicker-field.gux-above .gux-datepicker-field-input{margin-block-start:0}.gux-datepicker .gux-datepicker-field.gux-above .gux-datepicker-field-label{margin-inline-end:0}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-label{flex:0 1 auto;align-self:auto;order:0;margin-inline-end:var(--gse-ui-formControl-helper-gap);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)}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);padding:var(--gse-ui-formControl-input-padding);color:var(--gse-ui-formControl-input-populatedColor);white-space:nowrap;background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;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-datepicker .gux-datepicker-field .gux-datepicker-field-input: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-datepicker .gux-datepicker-field .gux-datepicker-field-input:focus-within{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);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-focusRing-borderRadius)}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input.gux-active{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);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-focusRing-borderRadius)}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input{flex:1 1 auto;align-self:auto;order:0;inline-size:calc(var(--gse-ui-calendarMenu-day-input-width) - var(--gse-ui-icon-small-size));padding:0;overflow:hidden;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);color:var(--gse-ui-formControl-input-populatedColor);outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-search-cancel-button,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-search-results-button,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button{display:flex;flex:0 1 auto;align-items:center;align-self:auto;justify-content:center;order:0;padding:0;color:var(--gse-ui-formControl-input-inputIcon-iconEndColor);outline:none;background:transparent;border:none;border-radius:var(--gse-ui-actionButton-borderRadius)}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:focus-within{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);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-focusRing-borderRadius);outline-offset:var(--gse-ui-datePicker-focusCalendar-gap);border:none;border-radius:var(--gse-ui-calendarMenu-month-calendarButton-focusBorderRadius)}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):focus-visible,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):hover{color:var(--gse-ui-datePicker-iconHover);cursor:pointer}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input gux-calendar{position:fixed;z-index:var(--gse-semantic-zIndex-popup);display:none}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button{color:var(--gse-ui-formControl-input-inputIcon-iconEndColor)}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):focus-visible,.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):hover{color:var(--gse-ui-formControl-input-inputIcon-iconEndColor)}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input gux-calendar{display:block}.gux-sr-only{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{j as gux_datepicker}
@@ -0,0 +1 @@
1
+ import{h as a,r as e,a as i}from"./p-npw54p0Y.js";import{t}from"./p-DE51TUwj.js";import{l as r}from"./p-DxtJDeL9.js";import{b as n}from"./p-CIt2cSVJ.js";import{a as g,g as o}from"./p-BV03_Ljp.js";import"./p-Cd4R0amv.js";var u={notifications:"Notifications"};const s=class{constructor(a){e(this,a),this.size="large",this.accent="default",this.presence="none",this.tooltipEnabled=!0,this.ring=!1,this.badge=!1,this.notifications=!1,this.ucIntegration="none"}get hasUcIntegration(){return["zoom","teams","8x8"].includes(this.ucIntegration)&&"large"===this.size}validatingInputs(){const a=this.root.querySelector("img");this.name||r(this.root,"Name prop is required for accessibility"),a&&!a.getAttribute("alt")&&r(this.root,"Alt attribute is required for slotted image."),"none"!==this.ucIntegration&&"large"!==this.size&&r(this.root,"UC Integration app logo can only be shown on large avatar")}renderBadge(){return this.notifications?this.renderNotificationsBadge():this.badge&&!["idle","none"].includes(this.presence)?a("div",{"aria-hidden":"true",class:{"gux-avatar-badge":!0,[`gux-${this.presence}`]:!0,[`gux-${this.size}`]:!0}},a("gux-icon",{"icon-name":this.getPresenceIcon(this.presence),decorative:!0})):void 0}renderNotificationsBadge(){return a("div",{"aria-hidden":"true",class:{"gux-avatar-badge gux-notifications":!0,[`gux-${this.size}`]:!0}},a("gux-icon",{"icon-name":"fa/bell-regular",decorative:!0}))}getPresenceIcon(a){switch(a){case"available":return"fa/circle-check-solid";case"busy":case"meeting":return"fa/ban-outline";case"away":case"break":case"meal":case"training":return"fa/clock-outline";case"on-queue":return"fa/headset-solid";case"offline":default:return"fa/circle-xmark-regular";case"out-of-office":return"fa/subtract-circle"}}renderUcIntegrationsIcon(e){switch(e){case"teams":return a("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("g",{"clip-path":"url(#clip0_17811_243865)"},a("path",{d:"M22.3205 12.0769H30.5862C31.3671 12.0769 32.0002 12.7051 32.0002 13.48V20.951C32.0002 23.799 29.6735 26.1077 26.8035 26.1077H26.7789C23.9089 26.1081 21.582 23.7997 21.5815 20.9517C21.5815 20.9515 21.5815 20.9512 21.5815 20.951V12.8102C21.5816 12.4052 21.9124 12.0769 22.3205 12.0769Z",fill:"#5059C9"}),a("path",{d:"M27.9069 10.6C29.7565 10.6 31.2558 9.11222 31.2558 7.27694C31.2558 5.44165 29.7565 3.95386 27.9069 3.95386C26.0574 3.95386 24.5581 5.44165 24.5581 7.27694C24.5581 9.11222 26.0574 10.6 27.9069 10.6Z",fill:"#5059C9"}),a("path",{d:"M17.4886 10.6C20.1601 10.6 22.3258 8.45098 22.3258 5.80001C22.3258 3.14904 20.1601 1 17.4886 1C14.8171 1 12.6514 3.14904 12.6514 5.80001C12.6514 8.45098 14.8171 10.6 17.4886 10.6Z",fill:"#7B83EB"}),a("path",{d:"M23.9381 12.0769H10.2941C9.52253 12.0959 8.91215 12.7313 8.93005 13.497V22.0181C8.8223 26.613 12.4857 30.426 17.1161 30.5385C21.7465 30.426 25.4099 26.613 25.3022 22.0181V13.497C25.32 12.7313 24.7097 12.0959 23.9381 12.0769Z",fill:"#7B83EB"}),a("path",{opacity:"0.1",d:"M17.8603 12.0769V24.0178C17.8566 24.5654 17.5222 25.0573 17.0119 25.2658C16.8495 25.334 16.6749 25.3692 16.4985 25.3692H9.58496C9.48822 25.1255 9.39892 24.8818 9.32449 24.6308C9.064 23.7834 8.93108 22.9025 8.93007 22.0166V13.4948C8.91218 12.7303 9.52156 12.0959 10.2919 12.0769H17.8603Z",fill:"black"}),a("path",{opacity:"0.2",d:"M17.1161 12.0769V24.7563C17.1161 24.9313 17.0807 25.1046 17.0119 25.2658C16.8018 25.7722 16.3061 26.104 15.7543 26.1077H9.93474C9.80822 25.864 9.68915 25.6203 9.58496 25.3692C9.48077 25.1181 9.39892 24.8818 9.32449 24.6308C9.064 23.7834 8.93108 22.9025 8.93007 22.0166V13.4948C8.91218 12.7303 9.52156 12.0959 10.2919 12.0769H17.1161Z",fill:"black"}),a("path",{opacity:"0.2",d:"M17.1161 12.0769V23.2794C17.1105 24.0234 16.504 24.6251 15.7543 24.6308H9.32449C9.064 23.7834 8.93108 22.9025 8.93007 22.0166V13.4948C8.91218 12.7303 9.52156 12.0959 10.2919 12.0769H17.1161Z",fill:"black"}),a("path",{opacity:"0.2",d:"M16.3719 12.0769V23.2794C16.3663 24.0234 15.7598 24.6251 15.0101 24.6308H9.32449C9.064 23.7834 8.93108 22.9025 8.93007 22.0166V13.4948C8.91218 12.7303 9.52156 12.0959 10.2919 12.0769H16.3719Z",fill:"black"}),a("path",{opacity:"0.1",d:"M17.8605 8.25909V10.5852C17.734 10.5926 17.6149 10.6 17.4884 10.6C17.3619 10.6 17.2428 10.5926 17.1163 10.5852C16.8651 10.5687 16.616 10.5291 16.3721 10.4671C14.8652 10.113 13.6201 9.06422 13.0233 7.64617C12.9206 7.40804 12.8409 7.16077 12.7852 6.90771H16.4986C17.2496 6.91054 17.8577 7.5139 17.8605 8.25909Z",fill:"black"}),a("path",{opacity:"0.2",d:"M17.1165 8.99749V10.5852C16.8653 10.5686 16.6161 10.5291 16.3723 10.467C14.8653 10.1129 13.6203 9.06416 13.0234 7.64612H15.7546C16.5055 7.64894 17.1136 8.25232 17.1165 8.99749Z",fill:"black"}),a("path",{opacity:"0.2",d:"M17.1165 8.99749V10.5852C16.8653 10.5686 16.6161 10.5291 16.3723 10.467C14.8653 10.1129 13.6203 9.06416 13.0234 7.64612H15.7546C16.5055 7.64894 17.1136 8.25232 17.1165 8.99749Z",fill:"black"}),a("path",{opacity:"0.2",d:"M16.3723 8.9975V10.467C14.8653 10.1129 13.6203 9.06416 13.0234 7.64612H15.0104C15.7614 7.64895 16.3694 8.25234 16.3723 8.9975Z",fill:"black"}),a("path",{d:"M1.36409 7.64612H15.008C15.7614 7.64612 16.3721 8.25215 16.3721 8.99971V22.5387C16.3721 23.2862 15.7613 23.8923 15.008 23.8923H1.36409C0.610716 23.8923 0 23.2862 0 22.5387V8.99971C0 8.25215 0.61073 7.64612 1.36409 7.64612Z",fill:"url(#paint0_linear_17811_243865)"}),a("path",{d:"M11.7761 12.7992H9.04865V20.169H7.31098V12.7992H4.59619V11.3695H11.7761V12.7992Z",fill:"white"})),a("defs",null,a("linearGradient",{id:"paint0_linear_17811_243865",x1:"2.84416",y1:"6.58844",x2:"13.4047",y2:"25.0206",gradientUnits:"userSpaceOnUse"},a("stop",{"stop-color":"#5A62C3"}),a("stop",{offset:"0.5","stop-color":"#4D55BD"}),a("stop",{offset:"1","stop-color":"#3940AB"})),a("clipPath",{id:"clip0_17811_243865"},a("rect",{width:"32",height:"29.5385",fill:"white",transform:"translate(0 1)"}))));case"zoom":return a("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M0 14C0 6.26801 6.26801 0 14 0H18C25.732 0 32 6.26801 32 14V18C32 25.732 25.732 32 18 32H14C6.26801 32 0 25.732 0 18V14Z",fill:"url(#paint0_linear_17811_243867)"}),a("path",{d:"M9.03495 17.9231H4.76573C4.48252 17.9231 4.22028 17.7885 4.08392 17.5577C3.93706 17.2885 3.98951 16.9712 4.22028 16.7692L7.1888 14.0481H5.05944C4.47203 14.0481 4 13.6058 4 13.0769H7.93355C8.21677 13.0769 8.479 13.2115 8.61537 13.4423C8.76222 13.7115 8.70977 14.0288 8.479 14.2308L5.51048 16.9519H7.97551C8.56292 16.9519 9.03495 17.3942 9.03495 17.9231ZM25.944 13C25.3356 13 24.7796 13.2404 24.402 13.6346C24.0244 13.25 23.4685 13 22.8601 13C21.7272 13 20.7936 13.8846 20.7936 14.9231V17.9231C21.3811 17.9231 21.8531 17.4904 21.8531 16.9519V14.9135C21.8531 14.4135 22.2727 13.9904 22.8181 13.9712C23.395 13.9519 23.8671 14.375 23.8671 14.8942V16.9519C23.8671 17.4904 24.3391 17.9231 24.9265 17.9231V14.9135C24.9265 14.4135 25.3461 13.9904 25.8915 13.9712C26.4684 13.9519 26.9405 14.375 26.9405 14.8942V16.9519C26.9405 17.4904 27.4125 17.9231 27.9999 17.9231V14.9231C28.0104 13.8846 27.0768 13 25.944 13ZM14.3846 15.5C14.3846 16.875 13.1573 18 11.6573 18C10.1468 18 8.93005 16.875 8.93005 15.5C8.93005 14.125 10.1573 13 11.6573 13C13.1573 13 14.3846 14.125 14.3846 15.5ZM13.3251 15.5C13.3251 14.6538 12.5804 13.9712 11.6573 13.9712C10.7342 13.9712 9.98949 14.6538 9.98949 15.5C9.98949 16.3462 10.7342 17.0288 11.6573 17.0288C12.5804 17.0288 13.3251 16.3462 13.3251 15.5ZM20.2692 15.5C20.2692 16.875 19.0419 18 17.5419 18C16.0314 18 14.8146 16.875 14.8146 15.5C14.8146 14.125 16.0419 13 17.5419 13C19.0419 13 20.2692 14.125 20.2692 15.5ZM19.2097 15.5C19.2097 14.6538 18.465 13.9712 17.5419 13.9712C16.6188 13.9712 15.8741 14.6538 15.8741 15.5C15.8741 16.3462 16.6188 17.0288 17.5419 17.0288C18.465 17.0288 19.2097 16.3462 19.2097 15.5Z",fill:"white"}),a("defs",null,a("linearGradient",{id:"paint0_linear_17811_243867",x1:"6",y1:"29",x2:"26",y2:"2.5",gradientUnits:"userSpaceOnUse"},a("stop",{"stop-color":"#084ACD"}),a("stop",{offset:"0.505","stop-color":"#0B5CFF"}),a("stop",{offset:"1","stop-color":"#236EF9"}))));case"8x8":return a("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("rect",{width:"32",height:"32",fill:"#CB2233"}),a("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4298 14.2388H16.8341L16.2371 15.4154C16.1751 15.5507 16.1037 15.6811 16.0236 15.8055H15.9988C15.9988 15.8055 15.8808 15.5988 15.7841 15.4154L15.1965 14.2302H12.6127L14.6479 17.5052L12.621 20.7815H15.1611L15.8454 19.4129C15.9061 19.2937 15.9589 19.1704 16.0035 19.0437H16.0283C16.0283 19.0437 16.1227 19.2898 16.1864 19.4129L16.886 20.7815H19.4298L17.4028 17.5052L19.4298 14.2388ZM7.95949 19.1225C7.79341 19.1261 7.62828 19.0954 7.47357 19.0323C7.31886 18.9692 7.17761 18.8748 7.05792 18.7547C6.93823 18.6345 6.84245 18.4909 6.77608 18.332C6.7097 18.1732 6.67404 18.0022 6.67112 17.8289C6.68897 17.3197 6.89037 16.8362 7.23508 16.4751C8.28512 16.9674 9.24078 17.3465 9.24078 17.9852C9.24668 18.7163 8.75352 19.1225 7.95949 19.1225ZM8.03028 12.3975C8.72992 12.3975 9.15112 12.8037 9.15112 13.4252C9.14236 13.9074 9.0139 14.3789 8.77829 14.7938C7.83443 14.3705 7.06047 13.9975 7.06047 13.2677C7.05575 12.7877 7.3625 12.3975 8.03028 12.3975ZM10.6613 15.7625C10.7651 15.6308 11.7113 14.4283 11.7113 13.2258C11.7113 11.152 10.082 10 8.09399 10C5.59748 10 4.5085 11.5914 4.5085 13.2086C4.5085 14.1625 4.91436 14.8258 5.47832 15.3403C5.15269 15.6148 4 16.624 4 18.0615C4 19.8363 5.35916 21.52 7.95949 21.52C10.6058 21.52 11.9178 19.8191 11.9178 18.1194C11.9178 16.9994 11.3774 16.2782 10.6613 15.7625ZM24.0452 19.1225C23.8792 19.1259 23.7142 19.0951 23.5597 19.0319C23.4051 18.9688 23.264 18.8744 23.1444 18.7542C23.0249 18.6341 22.9292 18.4905 22.8629 18.3317C22.7966 18.1729 22.761 18.0021 22.758 17.8289C22.7759 17.3197 22.9773 16.8362 23.322 16.4751C24.372 16.9674 25.3277 17.3465 25.3277 17.9852C25.3277 18.7237 24.8345 19.1286 24.0476 19.1286L24.0452 19.1225ZM24.1172 12.3975C24.8168 12.3975 25.238 12.8037 25.238 13.4252C25.2296 13.9076 25.1007 14.3794 24.864 14.7938C23.9202 14.3705 23.1474 13.9975 23.1474 13.2677C23.1474 12.7877 23.4494 12.3975 24.1172 12.3975ZM26.7435 15.7625C26.8473 15.6222 27.7935 14.4197 27.7935 13.2258C27.7935 11.152 26.163 10 24.1762 10C21.6797 10 20.5907 11.5914 20.5907 13.2086C20.5907 14.1625 20.9966 14.8258 21.5605 15.3403C21.2349 15.6049 20.0822 16.6166 20.0822 18.048C20.0822 19.8228 21.4414 21.5065 24.0405 21.5065C26.688 21.5065 28 19.8068 28 18.1058C28 16.9994 27.4596 16.2782 26.7435 15.7625Z",fill:"white"}));default:return null}}getUcIntegrationText(a){switch(a){case"teams":return"Microsoft Teams";case"zoom":return"Zoom";case"8x8":return"8 by 8";default:return null}}renderUcIntegrationBadge(){if(this.hasUcIntegration)return a("div",{class:"gux-avatar-integration-badge","aria-hidden":"true"},this.renderUcIntegrationsIcon(this.ucIntegration))}renderTooltip(){return this.tooltipEnabled&&["A","BUTTON"].includes(this.parentElement.tagName)?a("gux-tooltip-beta",{placement:"top",ref:a=>this.tooltip=a,visualOnly:!0},a("div",{slot:"content"},this.getDescriptionText())):null}getDescriptionText(){let a=`${this.name}`;return this.notifications?a+` (${this.i18n("notifications")})`:(this.label&&"none"!==this.presence&&(a=a+=` (${this.label})`),this.hasUcIntegration&&(a=a+=` (${this.getUcIntegrationText(this.ucIntegration)})`),a)}async showTooltip(){if(this.tooltipEnabled)return await this.tooltip.showTooltip()}async hideTooltip(){if(this.tooltipEnabled)return await this.tooltip.hideTooltip()}async componentWillLoad(){this.parentElement=this.root.parentElement,t(this.root,{variant:this.size}),this.i18n=await n(this.root,u)}componentDidLoad(){this.validatingInputs()}render(){return[a("div",{key:"f8e4ea5d8b1f49d67cc4094209fee7ce98d3a7d9",class:{"gux-avatar":!0,[`gux-${this.presence}`]:this.ring||this.badge,[`gux-${this.size}`]:!0,"gux-ring":this.ring,[o(this.accent,this.name)]:!0}},a("div",{key:"3fb3a3d2338a18c2168397fc781d34f223ece0ec",class:"gux-content"},a("slot",{key:"8764a5308014599caad2e59dbaf6d771e6cb67fb",name:"image"},a("span",{key:"4d3a728f9d2a14f95ca5c4b77e2fdad1e743b006",role:"img","aria-label":this.getDescriptionText()},g(this.name)))),this.renderTooltip()),this.renderBadge(),this.renderUcIntegrationBadge()]}get root(){return i(this)}};s.style=":host{position:relative;display:inline-block;border-radius:50%}:host abbr{text-decoration:none}::slotted(img){inline-size:100%;block-size:100%;object-fit:cover}.gux-avatar{position:relative;inline-size:var(--gse-ui-avatar-large-size);block-size:var(--gse-ui-avatar-large-size);overflow:hidden;border-radius:50%}.gux-avatar .gux-content{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:calc(100% - var(--gse-ui-avatar-large-presenceRing-width) * 2);block-size:calc(100% - var(--gse-ui-avatar-large-presenceRing-width) * 2);margin:var(--gse-ui-avatar-large-presenceRing-width);overflow:hidden;font-family:var(--gse-ui-avatar-large-initials-fontFamily);font-size:var(--gse-ui-avatar-large-initials-fontSize);font-weight:var(--gse-ui-avatar-large-initials-fontWeight);line-height:var(--gse-ui-avatar-small-initials-lineHeight);color:var(--gse-ui-avatar-media-initialsForeground-inverse);text-transform:uppercase;background-color:var(--gse-ui-avatar-media-initialsBackground-default);border:var(--gse-ui-avatar-content-large-border-width) var(--gse-ui-avatar-content-default-border-style) var(--gse-ui-avatar-content-default-border-color);border-radius:50%}.gux-avatar.gux-medium{inline-size:var(--gse-ui-avatar-medium-size);block-size:var(--gse-ui-avatar-medium-size)}.gux-avatar.gux-medium .gux-content{inline-size:calc(100% - var(--gse-ui-avatar-medium-presenceRing-width) * 2);block-size:calc(100% - var(--gse-ui-avatar-medium-presenceRing-width) * 2);margin:var(--gse-ui-avatar-medium-presenceRing-width);font-size:var(--gse-ui-avatar-medium-initials-fontSize);font-weight:var(--gse-ui-avatar-medium-initials-fontWeight)}.gux-avatar.gux-medium .gux-content,.gux-avatar.gux-small .gux-content,.gux-avatar.gux-xsmall .gux-content{border-width:var(--gse-ui-avatar-content-default-border-width)}.gux-avatar.gux-small{inline-size:var(--gse-ui-avatar-small-size);block-size:var(--gse-ui-avatar-small-size)}.gux-avatar.gux-small .gux-content{inline-size:calc(100% - var(--gse-ui-avatar-small-presenceRing-width) * 2);block-size:calc(100% - var(--gse-ui-avatar-small-presenceRing-width) * 2);margin:var(--gse-ui-avatar-small-presenceRing-width);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight)}.gux-avatar.gux-xsmall{inline-size:var(--gse-ui-avatar-xsmall-size);block-size:var(--gse-ui-avatar-xsmall-size)}.gux-avatar.gux-xsmall .gux-content{inline-size:calc(100% - var(--gse-ui-avatar-xsmall-presenceRing-width) * 2);block-size:calc(100% - var(--gse-ui-avatar-xsmall-presenceRing-width) * 2);margin:var(--gse-ui-avatar-xsmall-presenceRing-width);font-size:var(--gse-ui-avatar-xsmall-initials-fontSize);font-weight:var(--gse-ui-avatar-xsmall-initials-fontWeight)}.gux-avatar.gux-accent-1 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent1)}.gux-avatar.gux-accent-2 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent2)}.gux-avatar.gux-accent-3 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent3)}.gux-avatar.gux-accent-4 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent4)}.gux-avatar.gux-accent-5 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent5)}.gux-avatar.gux-accent-6 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent6)}.gux-avatar.gux-accent-7 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent7)}.gux-avatar.gux-accent-8 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent8)}.gux-avatar.gux-accent-9 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent9)}.gux-avatar.gux-accent-10 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent10)}.gux-avatar.gux-accent-11 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent11)}.gux-avatar.gux-accent-12 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent12)}.gux-avatar.gux-accent-inherit .gux-content{color:inherit;background-color:inherit}.gux-avatar.gux-ring.gux-available{background:var(--gse-ui-avatar-presenceRing-available)}.gux-avatar.gux-ring.gux-away,.gux-avatar.gux-ring.gux-break,.gux-avatar.gux-ring.gux-meal,.gux-avatar.gux-ring.gux-training{background:var(--gse-ui-avatar-presenceRing-away)}.gux-avatar.gux-ring.gux-busy,.gux-avatar.gux-ring.gux-meeting{background:var(--gse-ui-avatar-presenceRing-busy)}.gux-avatar.gux-ring.gux-offline{background:var(--gse-ui-avatar-presenceRing-offline)}.gux-avatar.gux-ring.gux-out-of-office{background:var(--gse-ui-avatar-presenceRing-outOfOffice)}.gux-avatar.gux-ring.gux-on-queue{background:var(--gse-ui-avatar-presenceRing-onQueue)}.gux-avatar-integration-badge{position:absolute;inset-block-end:0;inset-inline-end:0;z-index:var(--gse-semantic-zIndex-showFocus);display:flex;align-items:center;justify-content:center}.gux-avatar-badge{position:absolute;inset-block-start:calc(var(--gse-ui-avatar-content-large-border-width) * -1);inset-inline-end:calc(var(--gse-ui-avatar-content-large-border-width) * -1);z-index:var(--gse-semantic-zIndex-showFocus);display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-large-badge-size);block-size:var(--gse-ui-avatar-large-badge-size);border-color:var(--gse-ui-avatar-content-default-border-color);border-style:var(--gse-ui-avatar-content-default-border-style);border-width:var(--gse-ui-avatar-content-large-border-width);border-radius:50%}.gux-avatar-badge.gux-medium{inset-block-start:calc(var(--gse-ui-avatar-content-default-border-width) * -1);inset-inline-end:calc(var(--gse-ui-avatar-content-default-border-width) * -1);inline-size:var(--gse-ui-avatar-medium-badge-size);block-size:var(--gse-ui-avatar-medium-badge-size);border-width:var(--gse-ui-avatar-content-default-border-width)}.gux-avatar-badge.gux-small,.gux-avatar-badge.gux-xsmall{inset-block-start:calc(var(--gse-ui-avatar-content-default-border-width) * -1);inset-inline-end:calc(var(--gse-ui-avatar-content-default-border-width) * -1);inline-size:var(--gse-ui-avatar-small-badge-size);block-size:var(--gse-ui-avatar-small-badge-size);border-width:var(--gse-ui-avatar-content-default-border-width)}.gux-avatar-badge.gux-small gux-icon,.gux-avatar-badge.gux-xsmall gux-icon{display:none}.gux-avatar-badge.gux-available{background-color:var(--gse-semantic-background-container-elevated-default)}.gux-avatar-badge.gux-available.gux-small,.gux-avatar-badge.gux-available.gux-xsmall{background-color:var(--gse-ui-avatar-badge-available-color)}.gux-avatar-badge.gux-available gux-icon{color:var(--gse-ui-avatar-badge-available-color)}.gux-avatar-badge.gux-away,.gux-avatar-badge.gux-break,.gux-avatar-badge.gux-meal,.gux-avatar-badge.gux-training{background-color:var(--gse-ui-avatar-badge-away-color)}.gux-avatar-badge.gux-away gux-icon,.gux-avatar-badge.gux-break gux-icon,.gux-avatar-badge.gux-meal gux-icon,.gux-avatar-badge.gux-training gux-icon{margin:var(--gse-ui-avatar-badge-away-icon-margin);color:var(--gse-ui-avatar-badge-foregroundDark-color)}.gux-avatar-badge.gux-busy,.gux-avatar-badge.gux-meeting{background-color:var(--gse-ui-avatar-badge-busy-color)}.gux-avatar-badge.gux-busy gux-icon,.gux-avatar-badge.gux-meeting gux-icon{margin:var(--gse-ui-avatar-badge-busy-icon-margin);color:var(--gse-ui-avatar-badge-foregroundDefault-color)}.gux-avatar-badge.gux-notifications{background-color:var(--gse-ui-avatar-badge-notification-color)}.gux-avatar-badge.gux-notifications gux-icon{margin:var(--gse-ui-avatar-badge-notifications-icon-margin);color:var(--gse-ui-avatar-badge-foregroundDefault-color)}.gux-avatar-badge.gux-offline{background-color:var(--gse-semantic-background-container-elevated-default)}.gux-avatar-badge.gux-offline.gux-small,.gux-avatar-badge.gux-offline.gux-xsmall{background-color:var(--gse-ui-avatar-badge-offline-color)}.gux-avatar-badge.gux-offline gux-icon{color:var(--gse-ui-avatar-badge-offline-color)}.gux-avatar-badge.gux-out-of-office{background-color:var(--gse-semantic-background-container-elevated-default)}.gux-avatar-badge.gux-out-of-office.gux-small,.gux-avatar-badge.gux-out-of-office.gux-xsmall{background-color:var(--gse-ui-avatar-badge-outOfOffice)}.gux-avatar-badge.gux-out-of-office gux-icon{color:var(--gse-ui-avatar-badge-outOfOffice)}.gux-avatar-badge.gux-on-queue{background-color:var(--gse-ui-avatar-badge-onQueue-color)}.gux-avatar-badge.gux-on-queue gux-icon{margin:var(--gse-ui-avatar-badge-queue-icon-margin);color:var(--gse-ui-avatar-badge-foregroundDefault-color)}.gux-avatar-badge gux-icon{inline-size:100%;block-size:100%}";export{s as gux_avatar_beta}
@@ -1 +1 @@
1
- import{r as t,h as r,g as i}from"./p-cf74fd3d.js";import{t as o}from"./p-e0a3c96f.js";import{b as e}from"./p-e5e644b3.js";import{t as a}from"./p-f01d2320.js";import{g as s}from"./p-4202e9f2.js";const g=class{constructor(r){t(this,r),this.disabled=!1,this.highlight="orange"}onMouseUp(){this.focusParentList()}onMouseOver(){this.focusParentList()}focusParentList(){const t=s("gux-rich-text-editor-list",this.root);t&&null===t.shadowRoot.activeElement&&(this.root.blur(),t.focus({preventScroll:!0}))}async componentWillLoad(){o(this.root,{variant:this.highlight}),this.i18n=await e(this.root,a)}renderTooltip(){if(!this.disabled&&"inherit"!==this.highlight)return r("gux-tooltip-beta",null,r("div",{slot:"content"},this.i18n(`${this.highlight}`)))}render(){return r("div",{key:"50c3810ca3ad7f64567098681c701703eb4d7922",class:{"gux-highlight":!0,[`gux-${this.highlight}`]:!0},role:"listitem"},r("button",{key:"5d2c996348c87453395739b2c28267cadc7a74c6",type:"button","aria-label":this.i18n(`${this.highlight}`),tabIndex:-1,disabled:this.disabled}),this.renderTooltip())}static get delegatesFocus(){return!0}get root(){return i(this)}};g.style=":host{display:block;border-radius:var(--gse-ui-button-borderRadius)}.gux-highlight{inline-size:var(--gse-ui-rte-colorSwatch-width);block-size:var(--gse-ui-rte-colorSwatch-height);border-radius:var(--gse-ui-button-borderRadius)}.gux-highlight button{all:unset;inline-size:100%;block-size:100%;cursor:pointer}.gux-highlight button:focus-visible{outline:var(--gse-semantic-focusOutline-sm-borderWidth) solid var(--gse-semantic-border-focus);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}.gux-highlight.gux-orange{background-color:var(--gse-ui-rte-colorSwatch-orange-default)}.gux-highlight.gux-coral{background-color:var(--gse-ui-rte-colorSwatch-coral-default)}.gux-highlight.gux-pear{background-color:var(--gse-ui-rte-colorSwatch-pear-default)}.gux-highlight.gux-raspberry{background-color:var(--gse-ui-rte-colorSwatch-raspberry-default)}.gux-highlight.gux-mango{background-color:var(--gse-ui-rte-colorSwatch-mango-default)}.gux-highlight.gux-blue{background-color:var(--gse-ui-rte-colorSwatch-azure-default)}.gux-highlight.gux-mineral{background-color:var(--gse-ui-rte-colorSwatch-mineral-default)}.gux-highlight.gux-island{background-color:var(--gse-ui-rte-colorSwatch-island-default)}.gux-highlight.gux-inherit{color:inherit;background-color:inherit}";export{g as gux_rich_highlight_list_item}
1
+ import{r as t,h as r,a as i}from"./p-npw54p0Y.js";import{t as o}from"./p-DE51TUwj.js";import{b as e}from"./p-CIt2cSVJ.js";import{t as a}from"./p-CHN0tqYN.js";import{g as s}from"./p-Cd4R0amv.js";const u=class{constructor(r){t(this,r),this.disabled=!1,this.highlight="orange"}onMouseUp(){this.focusParentList()}onMouseOver(){this.focusParentList()}focusParentList(){const t=s("gux-rich-text-editor-list",this.root);t&&null===t.shadowRoot.activeElement&&(this.root.blur(),t.focus({preventScroll:!0}))}async componentWillLoad(){o(this.root,{variant:this.highlight}),this.i18n=await e(this.root,a)}renderTooltip(){if(!this.disabled&&"inherit"!==this.highlight)return r("gux-tooltip-beta",null,r("div",{slot:"content"},this.i18n(`${this.highlight}`)))}render(){return r("div",{key:"50c3810ca3ad7f64567098681c701703eb4d7922",class:{"gux-highlight":!0,[`gux-${this.highlight}`]:!0},role:"listitem"},r("button",{key:"5d2c996348c87453395739b2c28267cadc7a74c6",type:"button","aria-label":this.i18n(`${this.highlight}`),tabIndex:-1,disabled:this.disabled}),this.renderTooltip())}static get delegatesFocus(){return!0}get root(){return i(this)}};u.style=":host{display:block;border-radius:var(--gse-ui-button-borderRadius)}.gux-highlight{inline-size:var(--gse-ui-rte-colorSwatch-width);block-size:var(--gse-ui-rte-colorSwatch-height);border-radius:var(--gse-ui-button-borderRadius)}.gux-highlight button{all:unset;inline-size:100%;block-size:100%;cursor:pointer}.gux-highlight button:focus-visible{outline:var(--gse-semantic-focusOutline-sm-borderWidth) solid var(--gse-semantic-border-focus);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}.gux-highlight.gux-orange{background-color:var(--gse-ui-rte-colorSwatch-orange-default)}.gux-highlight.gux-coral{background-color:var(--gse-ui-rte-colorSwatch-coral-default)}.gux-highlight.gux-pear{background-color:var(--gse-ui-rte-colorSwatch-pear-default)}.gux-highlight.gux-raspberry{background-color:var(--gse-ui-rte-colorSwatch-raspberry-default)}.gux-highlight.gux-mango{background-color:var(--gse-ui-rte-colorSwatch-mango-default)}.gux-highlight.gux-blue{background-color:var(--gse-ui-rte-colorSwatch-azure-default)}.gux-highlight.gux-mineral{background-color:var(--gse-ui-rte-colorSwatch-mineral-default)}.gux-highlight.gux-island{background-color:var(--gse-ui-rte-colorSwatch-island-default)}.gux-highlight.gux-inherit{color:inherit;background-color:inherit}";export{u as gux_rich_highlight_list_item}