genesys-spark-components 4.181.0 → 4.182.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (445) hide show
  1. package/README.md +1 -3
  2. package/dist/cjs/boolean-string-D-xbzBO7.js +7 -0
  3. package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
  4. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-avatar-beta.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-avatar-group-add-item-beta_3.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-avatar-group-item-beta.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-blank-state-beta.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-button_2.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-cloud-logo-beta.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-cloud-logomark-beta.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-dropdown_3.cjs.entry.js +8 -5
  36. package/dist/cjs/gux-file-list-item.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-file-beta.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-file.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-number_2.cjs.entry.js +2 -2
  48. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-illustration-beta.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-inline-dropdown-beta.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-link-beta.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-logo-beta.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-logomark-beta.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-option-icon.cjs.entry.js +5 -4
  77. package/dist/cjs/gux-option-multi.cjs.entry.js +7 -5
  78. package/dist/cjs/gux-option-status-beta.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-popover-beta.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-popover-list-beta.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-prompt-input-beta.cjs.entry.js +1 -1
  88. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  91. package/dist/cjs/gux-rich-highlight-list-item.cjs.entry.js +1 -1
  92. package/dist/cjs/gux-rich-style-list-item_3.cjs.entry.js +1 -1
  93. package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +1 -1
  95. package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +1 -1
  96. package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +1 -1
  97. package/dist/cjs/gux-rich-text-editor-beta.cjs.entry.js +1 -1
  98. package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +1 -1
  99. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  100. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  101. package/dist/cjs/gux-select-all.cjs.entry.js +9 -4
  102. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
  103. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
  104. package/dist/cjs/gux-side-panel-beta.cjs.entry.js +1 -1
  105. package/dist/cjs/gux-side-panel-header.cjs.entry.js +1 -1
  106. package/dist/cjs/gux-side-panel-heading.cjs.entry.js +1 -1
  107. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  108. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  109. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  110. package/dist/cjs/gux-status-indicator-beta.cjs.entry.js +1 -1
  111. package/dist/cjs/gux-step-title.cjs.entry.js +1 -1
  112. package/dist/cjs/gux-step.cjs.entry.js +1 -1
  113. package/dist/cjs/gux-stepper-beta.cjs.entry.js +1 -1
  114. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  115. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  116. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  117. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  118. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  119. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  120. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  121. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  122. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  123. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  124. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  125. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  126. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
  127. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  128. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  129. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  130. package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +1 -1
  131. package/dist/cjs/gux-tooltip-pointer-beta.cjs.entry.js +1 -1
  132. package/dist/cjs/gux-tooltip_2.cjs.entry.js +6 -5
  133. package/dist/cjs/loader.cjs.js +1 -1
  134. package/dist/cjs/{usage-CV-dw-yg.js → usage-ObFGxeV1.js} +1 -1
  135. package/dist/collection/components/beta/gux-option-status/gux-option-status.css +3 -1
  136. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.css +3 -0
  137. package/dist/collection/components/stable/gux-icon/icons/brand/8x8.svg +3 -3
  138. package/dist/collection/components/stable/gux-icon/icons/brand/apple-business-messenger.svg +5 -5
  139. package/dist/collection/components/stable/gux-icon/icons/brand/google.svg +13 -6
  140. package/dist/collection/components/stable/gux-icon/icons/brand/instagram.svg +41 -23
  141. package/dist/collection/components/stable/gux-icon/icons/brand/meta.svg +19 -20
  142. package/dist/collection/components/stable/gux-icon/icons/brand/teams.svg +17 -17
  143. package/dist/collection/components/stable/gux-icon/icons/brand/zoom.svg +4 -4
  144. package/dist/collection/components/stable/gux-listbox/options/gux-option/gux-option.css +3 -1
  145. package/dist/collection/components/stable/gux-listbox/options/gux-option/gux-option.js +6 -4
  146. package/dist/collection/components/stable/gux-listbox/options/gux-option-icon/gux-option-icon.css +3 -1
  147. package/dist/collection/components/stable/gux-listbox/options/gux-option-icon/gux-option-icon.js +4 -3
  148. package/dist/collection/components/stable/gux-listbox/tests/gux-listbox.common.js +81 -0
  149. package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.css +1 -0
  150. package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.js +6 -4
  151. package/dist/collection/components/stable/gux-listbox-multi/gux-select-all/gux-select-all.js +9 -4
  152. package/dist/collection/components/stable/gux-truncate/gux-truncate.js +31 -4
  153. package/dist/collection/components/stable/gux-truncate/tests/gux-truncate.common.js +4 -0
  154. package/dist/collection/utils/dom/boolean-string.js +3 -0
  155. package/dist/esm/boolean-string-CK42c8Uy.js +5 -0
  156. package/dist/esm/genesys-webcomponents.js +1 -1
  157. package/dist/esm/gux-accordion.entry.js +1 -1
  158. package/dist/esm/gux-action-button.entry.js +1 -1
  159. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  160. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  161. package/dist/esm/gux-announce-beta.entry.js +1 -1
  162. package/dist/esm/gux-avatar-beta.entry.js +1 -1
  163. package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
  164. package/dist/esm/gux-avatar-group-add-item-beta_3.entry.js +1 -1
  165. package/dist/esm/gux-avatar-group-beta.entry.js +1 -1
  166. package/dist/esm/gux-avatar-group-item-beta.entry.js +1 -1
  167. package/dist/esm/gux-badge.entry.js +1 -1
  168. package/dist/esm/gux-blank-state-beta.entry.js +1 -1
  169. package/dist/esm/gux-blank-state.entry.js +1 -1
  170. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  171. package/dist/esm/gux-button-multi.entry.js +1 -1
  172. package/dist/esm/gux-button-slot.entry.js +1 -1
  173. package/dist/esm/gux-button_2.entry.js +1 -1
  174. package/dist/esm/gux-calendar.entry.js +1 -1
  175. package/dist/esm/gux-card.entry.js +1 -1
  176. package/dist/esm/gux-cloud-logo-beta.entry.js +1 -1
  177. package/dist/esm/gux-cloud-logomark-beta.entry.js +1 -1
  178. package/dist/esm/gux-column-manager.entry.js +1 -1
  179. package/dist/esm/gux-content-search.entry.js +1 -1
  180. package/dist/esm/gux-context-menu.entry.js +1 -1
  181. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  182. package/dist/esm/gux-date-beta.entry.js +1 -1
  183. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  184. package/dist/esm/gux-datepicker.entry.js +1 -1
  185. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  186. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  187. package/dist/esm/gux-dropdown-multi.entry.js +1 -1
  188. package/dist/esm/gux-dropdown_3.entry.js +8 -5
  189. package/dist/esm/gux-file-list-item.entry.js +1 -1
  190. package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
  191. package/dist/esm/gux-flyout-menu.entry.js +1 -1
  192. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +1 -1
  193. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  194. package/dist/esm/gux-form-field-color.entry.js +1 -1
  195. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  196. package/dist/esm/gux-form-field-file-beta.entry.js +1 -1
  197. package/dist/esm/gux-form-field-file.entry.js +1 -1
  198. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  199. package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
  200. package/dist/esm/gux-form-field-number_2.entry.js +2 -2
  201. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  202. package/dist/esm/gux-form-field-radio-group-beta.entry.js +1 -1
  203. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  204. package/dist/esm/gux-form-field-range.entry.js +1 -1
  205. package/dist/esm/gux-form-field-search.entry.js +1 -1
  206. package/dist/esm/gux-form-field-select.entry.js +1 -1
  207. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  208. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  209. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  210. package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
  211. package/dist/esm/gux-form-footer.entry.js +1 -1
  212. package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
  213. package/dist/esm/gux-icon.entry.js +1 -1
  214. package/dist/esm/gux-illustration-beta.entry.js +1 -1
  215. package/dist/esm/gux-inline-alert.entry.js +1 -1
  216. package/dist/esm/gux-inline-dropdown-beta.entry.js +1 -1
  217. package/dist/esm/gux-label-info-beta.entry.js +1 -1
  218. package/dist/esm/gux-link-beta.entry.js +1 -1
  219. package/dist/esm/gux-list.entry.js +1 -1
  220. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  221. package/dist/esm/gux-loading-message.entry.js +1 -1
  222. package/dist/esm/gux-logo-beta.entry.js +1 -1
  223. package/dist/esm/gux-logomark-beta.entry.js +1 -1
  224. package/dist/esm/gux-modal-legacy.entry.js +1 -1
  225. package/dist/esm/gux-modal-side-panel-beta.entry.js +1 -1
  226. package/dist/esm/gux-modal.entry.js +1 -1
  227. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  228. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  229. package/dist/esm/gux-option-icon.entry.js +5 -4
  230. package/dist/esm/gux-option-multi.entry.js +7 -5
  231. package/dist/esm/gux-option-status-beta.entry.js +1 -1
  232. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  233. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  234. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  235. package/dist/esm/gux-pagination.entry.js +1 -1
  236. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  237. package/dist/esm/gux-popover-beta.entry.js +1 -1
  238. package/dist/esm/gux-popover-list-beta.entry.js +1 -1
  239. package/dist/esm/gux-popover-list.entry.js +1 -1
  240. package/dist/esm/gux-prompt-input-beta.entry.js +1 -1
  241. package/dist/esm/gux-radial-loading.entry.js +1 -1
  242. package/dist/esm/gux-radial-progress.entry.js +1 -1
  243. package/dist/esm/gux-rating.entry.js +1 -1
  244. package/dist/esm/gux-rich-highlight-list-item.entry.js +1 -1
  245. package/dist/esm/gux-rich-style-list-item_3.entry.js +1 -1
  246. package/dist/esm/gux-rich-text-editor-action-link.entry.js +1 -1
  247. package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +1 -1
  248. package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +1 -1
  249. package/dist/esm/gux-rich-text-editor-action.entry.js +1 -1
  250. package/dist/esm/gux-rich-text-editor-beta.entry.js +1 -1
  251. package/dist/esm/gux-rich-text-editor-list.entry.js +1 -1
  252. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  253. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  254. package/dist/esm/gux-select-all.entry.js +9 -4
  255. package/dist/esm/gux-selector-card-beta.entry.js +1 -1
  256. package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
  257. package/dist/esm/gux-side-panel-beta.entry.js +1 -1
  258. package/dist/esm/gux-side-panel-header.entry.js +1 -1
  259. package/dist/esm/gux-side-panel-heading.entry.js +1 -1
  260. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  261. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  262. package/dist/esm/gux-sort-control.entry.js +1 -1
  263. package/dist/esm/gux-status-indicator-beta.entry.js +1 -1
  264. package/dist/esm/gux-step-title.entry.js +1 -1
  265. package/dist/esm/gux-step.entry.js +1 -1
  266. package/dist/esm/gux-stepper-beta.entry.js +1 -1
  267. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  268. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  269. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  270. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  271. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  272. package/dist/esm/gux-table.entry.js +1 -1
  273. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  274. package/dist/esm/gux-tabs.entry.js +1 -1
  275. package/dist/esm/gux-tag.entry.js +1 -1
  276. package/dist/esm/gux-text-highlight.entry.js +1 -1
  277. package/dist/esm/gux-time-beta.entry.js +1 -1
  278. package/dist/esm/gux-time-picker.entry.js +1 -1
  279. package/dist/esm/gux-time-zone-beta.entry.js +1 -1
  280. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  281. package/dist/esm/gux-toast.entry.js +1 -1
  282. package/dist/esm/gux-toggle.entry.js +1 -1
  283. package/dist/esm/gux-tooltip-base-beta_2.entry.js +1 -1
  284. package/dist/esm/gux-tooltip-pointer-beta.entry.js +1 -1
  285. package/dist/esm/gux-tooltip_2.entry.js +6 -5
  286. package/dist/esm/loader.js +1 -1
  287. package/dist/esm/{usage-BEMpuBA2.js → usage-Dfk0nYGa.js} +1 -1
  288. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  289. package/dist/genesys-webcomponents/icons/brand/8x8.svg +3 -3
  290. package/dist/genesys-webcomponents/icons/brand/apple-business-messenger.svg +5 -5
  291. package/dist/genesys-webcomponents/icons/brand/google.svg +13 -6
  292. package/dist/genesys-webcomponents/icons/brand/instagram.svg +41 -23
  293. package/dist/genesys-webcomponents/icons/brand/meta.svg +19 -20
  294. package/dist/genesys-webcomponents/icons/brand/teams.svg +17 -17
  295. package/dist/genesys-webcomponents/icons/brand/zoom.svg +4 -4
  296. package/dist/genesys-webcomponents/{p-34e66acc.entry.js → p-003b5126.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-48b2b114.entry.js → p-03feffbd.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-99b418da.entry.js → p-04508744.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-9f39f033.entry.js → p-053bbf83.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-f73e09da.entry.js → p-059b42cf.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/{p-fe343bda.entry.js → p-06219232.entry.js} +1 -1
  302. package/dist/genesys-webcomponents/{p-bee0a986.entry.js → p-0891a8a0.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-651fd5be.entry.js → p-0982e88c.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-6b9c53ac.entry.js → p-0b30056f.entry.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-e566a383.entry.js → p-0ff5c1bd.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-2b734466.entry.js → p-11efc4e8.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/{p-70edf513.entry.js → p-1c560362.entry.js} +1 -1
  308. package/dist/genesys-webcomponents/{p-2bc0ff80.entry.js → p-1d22ab52.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-3da0b32d.entry.js → p-2068833c.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-0765cacc.entry.js → p-20c236b6.entry.js} +1 -1
  311. package/dist/genesys-webcomponents/{p-5f2d1c8c.entry.js → p-21e7f8f9.entry.js} +1 -1
  312. package/dist/genesys-webcomponents/{p-b755decc.entry.js → p-231359a9.entry.js} +1 -1
  313. package/dist/genesys-webcomponents/{p-4f5c773b.entry.js → p-2361fa2e.entry.js} +1 -1
  314. package/dist/genesys-webcomponents/{p-43bc8bfc.entry.js → p-258c5578.entry.js} +1 -1
  315. package/dist/genesys-webcomponents/{p-058e2466.entry.js → p-2813b952.entry.js} +1 -1
  316. package/dist/genesys-webcomponents/{p-8767b14d.entry.js → p-28d35aa7.entry.js} +1 -1
  317. package/dist/genesys-webcomponents/{p-d7c50db3.entry.js → p-29762e90.entry.js} +1 -1
  318. package/dist/genesys-webcomponents/{p-defeafea.entry.js → p-2b0df652.entry.js} +1 -1
  319. package/dist/genesys-webcomponents/{p-63cdd82f.entry.js → p-2b661701.entry.js} +1 -1
  320. package/dist/genesys-webcomponents/{p-a7c82dbb.entry.js → p-2dd36587.entry.js} +1 -1
  321. package/dist/genesys-webcomponents/{p-9021321c.entry.js → p-320f0ec9.entry.js} +1 -1
  322. package/dist/genesys-webcomponents/{p-c9ac5893.entry.js → p-32a77c6f.entry.js} +1 -1
  323. package/dist/genesys-webcomponents/{p-cac8041d.entry.js → p-3c5a3cab.entry.js} +1 -1
  324. package/dist/genesys-webcomponents/{p-72974274.entry.js → p-3f08402f.entry.js} +1 -1
  325. package/dist/genesys-webcomponents/{p-f4b1f4f4.entry.js → p-3fe6d842.entry.js} +1 -1
  326. package/dist/genesys-webcomponents/{p-47419b80.entry.js → p-40be5948.entry.js} +1 -1
  327. package/dist/genesys-webcomponents/{p-f13f1a8e.entry.js → p-42157ed1.entry.js} +1 -1
  328. package/dist/genesys-webcomponents/{p-a15d06dd.entry.js → p-427f650e.entry.js} +1 -1
  329. package/dist/genesys-webcomponents/{p-3e45d8ca.entry.js → p-429a6c87.entry.js} +1 -1
  330. package/dist/genesys-webcomponents/{p-dbcc7495.entry.js → p-43984609.entry.js} +1 -1
  331. package/dist/genesys-webcomponents/{p-43c99f77.entry.js → p-456fdc62.entry.js} +1 -1
  332. package/dist/genesys-webcomponents/{p-7f55324d.entry.js → p-46c80988.entry.js} +1 -1
  333. package/dist/genesys-webcomponents/{p-a21db55f.entry.js → p-482dc07d.entry.js} +1 -1
  334. package/dist/genesys-webcomponents/p-485ddb95.entry.js +1 -0
  335. package/dist/genesys-webcomponents/{p-972a56e3.entry.js → p-491a728e.entry.js} +1 -1
  336. package/dist/genesys-webcomponents/{p-58e67b3f.entry.js → p-4c0ca725.entry.js} +1 -1
  337. package/dist/genesys-webcomponents/{p-0e5313e5.entry.js → p-4c951722.entry.js} +1 -1
  338. package/dist/genesys-webcomponents/{p-fa9074d6.entry.js → p-501dac20.entry.js} +1 -1
  339. package/dist/genesys-webcomponents/{p-bd3ae989.entry.js → p-51b06281.entry.js} +1 -1
  340. package/dist/genesys-webcomponents/{p-49e3c674.entry.js → p-550ea2a0.entry.js} +1 -1
  341. package/dist/genesys-webcomponents/{p-bec5e249.entry.js → p-5720e044.entry.js} +1 -1
  342. package/dist/genesys-webcomponents/{p-86a81417.entry.js → p-5f35d9ce.entry.js} +1 -1
  343. package/dist/genesys-webcomponents/{p-8caddade.entry.js → p-609d8334.entry.js} +1 -1
  344. package/dist/genesys-webcomponents/{p-8cef8797.entry.js → p-6467a711.entry.js} +1 -1
  345. package/dist/genesys-webcomponents/{p-850f2f00.entry.js → p-6502cd44.entry.js} +1 -1
  346. package/dist/genesys-webcomponents/{p-e4d8315b.entry.js → p-66254d9d.entry.js} +1 -1
  347. package/dist/genesys-webcomponents/{p-42538213.entry.js → p-695056c0.entry.js} +1 -1
  348. package/dist/genesys-webcomponents/{p-967b1fac.entry.js → p-69ad4339.entry.js} +1 -1
  349. package/dist/genesys-webcomponents/{p-eeb63914.entry.js → p-6de3144d.entry.js} +1 -1
  350. package/dist/genesys-webcomponents/{p-2f57fea5.entry.js → p-6f52c5bb.entry.js} +1 -1
  351. package/dist/genesys-webcomponents/p-76b3af17.entry.js +1 -0
  352. package/dist/genesys-webcomponents/p-775f113a.entry.js +1 -0
  353. package/dist/genesys-webcomponents/{p-8f6c7761.entry.js → p-797484b6.entry.js} +1 -1
  354. package/dist/genesys-webcomponents/{p-649fee62.entry.js → p-79882492.entry.js} +1 -1
  355. package/dist/genesys-webcomponents/{p-96f64c7b.entry.js → p-79b58ed5.entry.js} +1 -1
  356. package/dist/genesys-webcomponents/{p-c4f04236.entry.js → p-7a31c7a8.entry.js} +1 -1
  357. package/dist/genesys-webcomponents/p-7e5ecd9e.entry.js +1 -0
  358. package/dist/genesys-webcomponents/p-804fec2f.entry.js +1 -0
  359. package/dist/genesys-webcomponents/{p-f430758f.entry.js → p-834738c5.entry.js} +1 -1
  360. package/dist/genesys-webcomponents/{p-2168d700.entry.js → p-86dcafcc.entry.js} +1 -1
  361. package/dist/genesys-webcomponents/{p-315205b1.entry.js → p-872ca41a.entry.js} +1 -1
  362. package/dist/genesys-webcomponents/{p-a395860e.entry.js → p-88e2a5b5.entry.js} +1 -1
  363. package/dist/genesys-webcomponents/p-8eed3de6.entry.js +1 -0
  364. package/dist/genesys-webcomponents/{p-14cd7601.entry.js → p-9000d7b5.entry.js} +1 -1
  365. package/dist/genesys-webcomponents/p-9131eecb.entry.js +1 -0
  366. package/dist/genesys-webcomponents/{p-1d7a2c4c.entry.js → p-936987a3.entry.js} +1 -1
  367. package/dist/genesys-webcomponents/{p-337fb8c6.entry.js → p-9509386b.entry.js} +1 -1
  368. package/dist/genesys-webcomponents/{p-beaf6c5c.entry.js → p-95a055c6.entry.js} +1 -1
  369. package/dist/genesys-webcomponents/{p-64d47112.entry.js → p-96ffbf9d.entry.js} +1 -1
  370. package/dist/genesys-webcomponents/{p-5683ae68.entry.js → p-999ce9c9.entry.js} +1 -1
  371. package/dist/genesys-webcomponents/{p-85f5b3ac.entry.js → p-9a1577f7.entry.js} +1 -1
  372. package/dist/genesys-webcomponents/{p-5ba1abb5.entry.js → p-9e6b9625.entry.js} +1 -1
  373. package/dist/genesys-webcomponents/p-CK42c8Uy.js +1 -0
  374. package/dist/genesys-webcomponents/{p-BEMpuBA2.js → p-Dfk0nYGa.js} +1 -1
  375. package/dist/genesys-webcomponents/{p-3c4918eb.entry.js → p-a23c6a51.entry.js} +1 -1
  376. package/dist/genesys-webcomponents/{p-fb78a01d.entry.js → p-a25122cc.entry.js} +1 -1
  377. package/dist/genesys-webcomponents/{p-af3c9349.entry.js → p-a2e30859.entry.js} +1 -1
  378. package/dist/genesys-webcomponents/p-a3d3ca07.entry.js +1 -0
  379. package/dist/genesys-webcomponents/{p-16c37838.entry.js → p-a3e57bbd.entry.js} +1 -1
  380. package/dist/genesys-webcomponents/{p-e8191844.entry.js → p-a439080d.entry.js} +1 -1
  381. package/dist/genesys-webcomponents/{p-5028f9b0.entry.js → p-a49cf4ec.entry.js} +1 -1
  382. package/dist/genesys-webcomponents/{p-d858535a.entry.js → p-a53ca97b.entry.js} +1 -1
  383. package/dist/genesys-webcomponents/{p-f6fe1ac0.entry.js → p-a83b76cd.entry.js} +1 -1
  384. package/dist/genesys-webcomponents/{p-e09786fe.entry.js → p-a864eb89.entry.js} +1 -1
  385. package/dist/genesys-webcomponents/{p-3596cacf.entry.js → p-aa7f4578.entry.js} +1 -1
  386. package/dist/genesys-webcomponents/{p-fda3ff8f.entry.js → p-ac5123f5.entry.js} +1 -1
  387. package/dist/genesys-webcomponents/{p-c7c57d57.entry.js → p-acb9d96d.entry.js} +1 -1
  388. package/dist/genesys-webcomponents/{p-bfd6be3d.entry.js → p-acf1e0d2.entry.js} +1 -1
  389. package/dist/genesys-webcomponents/{p-3f8270ad.entry.js → p-af58914a.entry.js} +1 -1
  390. package/dist/genesys-webcomponents/{p-ca7779ec.entry.js → p-afd0ec1a.entry.js} +1 -1
  391. package/dist/genesys-webcomponents/{p-a6a23ad0.entry.js → p-b1339a99.entry.js} +1 -1
  392. package/dist/genesys-webcomponents/{p-67ad32fd.entry.js → p-b4f13af4.entry.js} +1 -1
  393. package/dist/genesys-webcomponents/{p-122ddf86.entry.js → p-b5b09d15.entry.js} +1 -1
  394. package/dist/genesys-webcomponents/{p-db6acc9c.entry.js → p-b779eb0d.entry.js} +1 -1
  395. package/dist/genesys-webcomponents/{p-18a44871.entry.js → p-b7a5d81a.entry.js} +1 -1
  396. package/dist/genesys-webcomponents/{p-a3a3e804.entry.js → p-b8a96941.entry.js} +1 -1
  397. package/dist/genesys-webcomponents/{p-5809cb2e.entry.js → p-ba78518e.entry.js} +1 -1
  398. package/dist/genesys-webcomponents/{p-2dee9c51.entry.js → p-bb1dea85.entry.js} +1 -1
  399. package/dist/genesys-webcomponents/p-bdc8956a.entry.js +1 -0
  400. package/dist/genesys-webcomponents/{p-212ba768.entry.js → p-bddc87ee.entry.js} +1 -1
  401. package/dist/genesys-webcomponents/{p-0e126eda.entry.js → p-c1b344ab.entry.js} +1 -1
  402. package/dist/genesys-webcomponents/{p-149616a0.entry.js → p-c4f7d76a.entry.js} +1 -1
  403. package/dist/genesys-webcomponents/{p-70add0bf.entry.js → p-c5764d14.entry.js} +1 -1
  404. package/dist/genesys-webcomponents/{p-0c673738.entry.js → p-c68e1b53.entry.js} +1 -1
  405. package/dist/genesys-webcomponents/p-c6ca9557.entry.js +1 -0
  406. package/dist/genesys-webcomponents/{p-4b5819fa.entry.js → p-c7174199.entry.js} +1 -1
  407. package/dist/genesys-webcomponents/{p-f8e930d8.entry.js → p-cc35276f.entry.js} +1 -1
  408. package/dist/genesys-webcomponents/p-cfb67666.entry.js +1 -0
  409. package/dist/genesys-webcomponents/{p-25ea94e8.entry.js → p-d06ca25c.entry.js} +1 -1
  410. package/dist/genesys-webcomponents/{p-a23e4b24.entry.js → p-d3430e75.entry.js} +1 -1
  411. package/dist/genesys-webcomponents/{p-919f26a0.entry.js → p-d4076e9e.entry.js} +1 -1
  412. package/dist/genesys-webcomponents/{p-ed57d1bd.entry.js → p-d5f88f22.entry.js} +1 -1
  413. package/dist/genesys-webcomponents/{p-40fccd5e.entry.js → p-d62265e9.entry.js} +1 -1
  414. package/dist/genesys-webcomponents/{p-e5157aba.entry.js → p-da7b91f4.entry.js} +1 -1
  415. package/dist/genesys-webcomponents/{p-60a260bb.entry.js → p-dc632df5.entry.js} +1 -1
  416. package/dist/genesys-webcomponents/{p-5e812fea.entry.js → p-df1842d9.entry.js} +1 -1
  417. package/dist/genesys-webcomponents/{p-c32c5fb7.entry.js → p-dfb41cde.entry.js} +1 -1
  418. package/dist/genesys-webcomponents/{p-17711fa1.entry.js → p-e20a9ad3.entry.js} +1 -1
  419. package/dist/genesys-webcomponents/{p-0aa81905.entry.js → p-e8c17ba4.entry.js} +1 -1
  420. package/dist/genesys-webcomponents/{p-74cd946b.entry.js → p-ecaa12ee.entry.js} +1 -1
  421. package/dist/genesys-webcomponents/{p-f43583bf.entry.js → p-f0d7d3fb.entry.js} +1 -1
  422. package/dist/genesys-webcomponents/{p-b65f29a1.entry.js → p-f47e1ba4.entry.js} +1 -1
  423. package/dist/genesys-webcomponents/{p-7e39d584.entry.js → p-fb27a8a9.entry.js} +1 -1
  424. package/dist/genesys-webcomponents/{p-69d74367.entry.js → p-fbb18f10.entry.js} +1 -1
  425. package/dist/genesys-webcomponents/{p-2c39a507.entry.js → p-fd980cc8.entry.js} +1 -1
  426. package/dist/genesys-webcomponents/{p-e6c2a7f0.entry.js → p-ff5b2f0a.entry.js} +1 -1
  427. package/dist/stencil-wrapper.js +1 -1
  428. package/dist/types/components/stable/gux-listbox/tests/gux-listbox.common.d.ts +36 -0
  429. package/dist/types/components/stable/gux-listbox-multi/gux-select-all/gux-select-all.d.ts +1 -0
  430. package/dist/types/components/stable/gux-truncate/gux-truncate.d.ts +2 -0
  431. package/dist/types/components.d.ts +8 -0
  432. package/dist/types/stencil-wrapper.d.ts +1 -1
  433. package/dist/types/utils/dom/boolean-string.d.ts +1 -0
  434. package/package.json +5 -6
  435. package/dist/genesys-webcomponents/p-1d61422f.entry.js +0 -1
  436. package/dist/genesys-webcomponents/p-31432b4f.entry.js +0 -1
  437. package/dist/genesys-webcomponents/p-350696dc.entry.js +0 -1
  438. package/dist/genesys-webcomponents/p-481a111b.entry.js +0 -1
  439. package/dist/genesys-webcomponents/p-a57d987a.entry.js +0 -1
  440. package/dist/genesys-webcomponents/p-c5fab65f.entry.js +0 -1
  441. package/dist/genesys-webcomponents/p-ceb28de9.entry.js +0 -1
  442. package/dist/genesys-webcomponents/p-d53d9d2f.entry.js +0 -1
  443. package/dist/genesys-webcomponents/p-dac4a7af.entry.js +0 -1
  444. package/dist/genesys-webcomponents/p-df92b891.entry.js +0 -1
  445. package/dist/genesys-webcomponents/p-e2ed2ef9.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as e,f as i,h as t,H as r,a}from"./p-COgvjwDR.js";import{c as o,o as n}from"./p-Cb3FOYGS.js";import{O as l}from"./p-vOC0-qDq.js";import{o as s}from"./p-De1NnCmO.js";import{p as g}from"./p-PYfNAK8p.js";import{h as u}from"./p-qzV3vtOw.js";import{G as f,a as d}from"./p-Dry1Kkrx.js";import{a as h,G as p}from"./p-Co3DWTSR.js";import{g as c,v as x,a as b}from"./p-DHLxhscH.js";import{t as m}from"./p-Dfk0nYGa.js";import{O as v}from"./p-DKPAGIJA.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";var y=function(e,i,t,r){var a,o=arguments.length,n=o<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,i,t,r);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(n=(o<3?a(n):o>3?a(i,t,n):a(i,t))||n);return o>3&&n&&Object.defineProperty(i,t,n),n};const k=class{constructor(i){e(this,i),this.indicatorMark="required",this.computedLabelPosition="above",this.hasError=!1,this.hasHelp=!1}onInput(e){this.updateValue(e.target.value)}onMousedown(){this.disabled||(this.active=!0)}onMouseup(){this.active=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help")}handleKeyup(e){var i,t;switch(e.key){case"Tab":this.input.matches(":focus-visible")&&(null===(i=this.labelInfo)||void 0===i||i.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3));break;case"Shift":break;default:this.input.matches(":focus-visible")&&(null===(t=this.labelInfo)||void 0===t||t.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}}onFocusout(){var e;this.active=!1,null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help"),m(this.root,{variant:this.variant})}componentDidLoad(){this.updatePosition(),this.tooltipElement&&i(this.root)}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect(),clearInterval(this.valueWatcherId)}render(){return t(r,{key:"c9659001a315704171830f441ec9182edcdb775b",class:{"gux-active":this.active}},t(h,{key:"6375acacb5ffe29e4ab47b537934b53adf2ca1eb",labelPosition:this.computedLabelPosition},t(p,{key:"bf3d45c557af11a891b35d4770f31627e181af4d",required:this.required,position:this.computedLabelPosition},t("slot",{key:"220710ee4498dee17925719dfd97833f2761a8b6",name:"label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"6409696d7f0261aaf56fedf08b9aefa225f77c87",variant:this.indicatorMark,required:this.required}),t("slot",{key:"404dd77023651d4c31e63e792c3aeb4a04e67f5d",name:"label-info"})),t("div",{key:"cc59cf41be40345152d4ba98a267502cb4b09da4",class:"gux-input-and-error-container"},this.renderRangeInput(),t(f,{key:"82eb5395053d1f34698b3efbfd1906fc4ef872e1",show:this.hasError},t("slot",{key:"dff24fd024a96675168b79286aa97b1a8352ecc1",name:"error"})),t(d,{key:"95f342c37af75350aba83b531b3dfa73680266d0",show:!this.hasError&&this.hasHelp},t("slot",{key:"235e9611fccf02f722d1b6eeb738656b4e1c8154",name:"help"})))))}get variant(){return this.labelPosition?this.labelPosition.toLowerCase():"none"}setInput(){this.input=c(this.root,'input[type="range"][slot="input"]'),g(this.input),this.disabled=o(this.input),this.required=this.input.required,this.value=this.input.value,this.disabledObserver=n(this.input,(e=>{this.disabled=e})),this.requiredObserver=s(this.input,(e=>{this.required=e})),clearInterval(this.valueWatcherId),this.valueWatcherId=setInterval((()=>{this.value!==this.input.value&&this.updateValue(this.input.value)}),100),x(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=b(this.label,this.labelPosition)}renderRangeInput(){return t("div",{class:{"gux-range-input-container":!0,"gux-disabled":this.disabled},"aria-disabled":this.disabled?"true":"false",ref:e=>this.containerElement=e},t("div",{class:"gux-range"},t("div",{class:"gux-track"},t("div",{class:"gux-progress",ref:e=>this.progressElement=e})),t("slot",{name:"input"}),this.valueInTooltip&&t("gux-tooltip-base-beta",{ref:e=>this.tooltipElement=e,forElement:this.containerElement,offsetY:10,placement:"top"},t("span",{slot:"content"},this.getDisplayValue()))),t("div",{class:{"gux-display":!0,"gux-hidden":this.valueInTooltip}},this.getDisplayValue()))}updateValue(e){this.value=e,this.updatePosition()}updatePosition(){var e,i,t;const r=Number((null===(e=this.input)||void 0===e?void 0:e.value)||0),a=Number((null===(i=this.input)||void 0===i?void 0:i.min)||0),o=(r-a)/(Number((null===(t=this.input)||void 0===t?void 0:t.max)||100)-a)*100;this.tooltipElement&&(this.tooltipElement.offsetX=(o/100-.5)*(this.containerElement.offsetWidth-20)),this.progressElement&&(this.progressElement.style.width=`${o}%`)}getDisplayValue(){return this.displayUnits?`${this.value}${this.displayUnits}`:this.value}get root(){return a(this)}};y([l({childList:!0,subtree:!0})],k.prototype,"onMutation",null),y([v()],k.prototype,"updatePosition",null),k.style=".gux-form-field-container{display:flex;flex-direction:column}.gux-form-field-container.gux-beside{flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(label){min-inline-size:0}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input[type=range]){position:absolute;inline-size:100%;block-size:var(--gse-ui-rangeSlider-bar-height);margin-block:calc(var(--gse-ui-rangeSlider-handle-height) / 2);margin-block-start:calc(-1 * (calc(var(--gse-ui-rangeSlider-handle-height) / 2) + var(--gse-ui-rangeSlider-bar-height)));margin-inline:0;-webkit-appearance:none;background:transparent}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container.gux-hidden{display:none}.gux-input-and-error-container .gux-range-input-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-rangeSlider-gap);place-content:stretch flex-start;align-items:center;block-size:var(--gse-ui-rangeSlider-set-height);font-size:var(--gse-ui-rangeSlider-label-text-fontSize)}.gux-input-and-error-container .gux-range-input-container.gux-disabled{opacity:var(--gse-ui-rangeSlider-disabled-opacity)}.gux-input-and-error-container .gux-range-input-container .gux-range{position:relative;flex:1 1 auto;align-self:center;order:0}.gux-input-and-error-container .gux-range-input-container .gux-range:hover .gux-range-tooltip,.gux-input-and-error-container .gux-range-input-container .gux-range:focus-within .gux-range-tooltip{visibility:visible}.gux-input-and-error-container .gux-range-input-container .gux-range .gux-track{inline-size:100%;block-size:var(--gse-ui-rangeSlider-bar-height);margin-block:6px;margin-inline:0;background:var(--gse-ui-rangeSlider-bar-default-backgroundColor);border-radius:var(--gse-ui-rangeSlider-track-borderRadius)}.gux-input-and-error-container .gux-range-input-container .gux-range .gux-track .gux-progress{block-size:var(--gse-ui-rangeSlider-bar-height);background-color:var(--gse-ui-rangeSlider-bar-selected-backgroundColor);border-radius:var(--gse-ui-rangeSlider-track-borderRadius)}.gux-input-and-error-container .gux-range-input-container .gux-display{flex:0 1 auto;align-self:auto;order:0;margin-block:0;margin-inline:var(--gux-spacing-medium) 0;font-family:var(--gse-ui-rangeSlider-label-text-fontFamily);font-size:var(--gse-ui-rangeSlider-label-text-fontSize);font-weight:var(--gse-ui-rangeSlider-label-text-fontWeight);line-height:var(--gse-ui-rangeSlider-label-text-lineHeight);text-align:end}.gux-input-and-error-container .gux-range-input-container .gux-display.gux-hidden{display:none}.gux-form-field-label.gux-beside{inset-block-start:0}";export{k as gux_form_field_range}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,H as i,a}from"./p-COgvjwDR.js";import{r as s}from"./p-D9jKBqIb.js";import{g as o}from"./p-Cd4R0amv.js";const n=class{constructor(e){t(this,e),this.active=!1,this.selected=!1,this.disabled=!1,this.accent="info"}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||s("gux-option-status")}getAriaSelected(){return!this.disabled&&(this.selected?"true":"false")}hasDisabledParent(){const t=o("gux-listbox",this.root);return null==t?void 0:t.disabled}render(){return e(i,{key:"a334972f4caaeadcc6e1dbbfd904e0e5bb71f10d",role:"option",class:{"gux-active":this.active,"gux-disabled":this.disabled||this.hasDisabledParent(),"gux-selected":this.selected},"aria-selected":this.getAriaSelected(),"aria-disabled":this.disabled.toString()},e("div",{key:"8c3128a229a9c34ea7c9a0e0a6601add942334a5",class:"gux-status-indicator"},e("span",{key:"88cd3f16fd0d199d69ac1d23349af251cd754f7a",class:`gux-status-icon gux-status-icon-${this.accent}`}),e("div",{key:"91940a275a235776900164ed2effae3f066171b0",class:"gux-status-indicator-text"},e("gux-truncate",{key:"4cdd799cd6b21c54a0e294c79b400b1a8c03e3df",ref:t=>this.truncateElement=t},e("slot",{key:"7d6057801c12e181427022be2001472f2da23e2f"})))))}get root(){return a(this)}static get watchers(){return{active:["handleActive"]}}};n.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);min-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);overflow-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){align-items:flex-start;block-size:auto;padding:var(--gse-ui-menu-option-subtext-padding)}: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}:host{justify-content:flex-start}.gux-status-indicator{display:inline-flex;gap:var(--gse-ui-dataTableItems-statusIndicator-gap);align-items:center}.gux-status-icon{display:inline-flex}.gux-status-icon::before{content:\"\"}.gux-status-icon-info::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' %3E%3Cpath d='M6 0C7.59 0 9.12 0.629997 10.245 1.755C11.37 2.88 12 4.41 12 6C12 7.59 11.37 9.12 10.245 10.245C9.12 11.37 7.59 12 6 12C4.41 12 2.88 11.37 1.755 10.245C0.629997 9.12 0 7.59 0 6C0 4.41 0.629997 2.88 1.755 1.755C2.88 0.629997 4.41 0 6 0Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' %3E%3Cpath d='M6 0C7.59 0 9.12 0.629997 10.245 1.755C11.37 2.88 12 4.41 12 6C12 7.59 11.37 9.12 10.245 10.245C9.12 11.37 7.59 12 6 12C4.41 12 2.88 11.37 1.755 10.245C0.629997 9.12 0 7.59 0 6C0 4.41 0.629997 2.88 1.755 1.755C2.88 0.629997 4.41 0 6 0Z' /%3E%3C/svg%3E\");inline-size:var(--gse-ui-dataTableItems-statusIndicator-label-fontSize);block-size:var(--gse-ui-dataTableItems-statusIndicator-label-fontSize);background:var(--gse-ui-statusGlyph-information)}.gux-status-icon-warning::before{inline-size:var(--gse-ui-dataTableItems-statusIndicator-label-fontSize);block-size:var(--gse-ui-dataTableItems-statusIndicator-label-fontSize);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' %3E%3Cpath d='M6.16516 0.749268C6.49521 0.749268 6.80275 0.921791 6.97527 1.21434L12.0386 9.8407C12.2111 10.1332 12.2111 10.4933 12.0386 10.7783C11.8735 11.0709 11.5585 11.2509 11.2285 11.2509H1.10186C0.764303 11.2509 0.456764 11.0709 0.291738 10.7783C0.126712 10.4858 0.126712 10.1257 0.291738 9.8407L5.35504 1.21434C5.52757 0.929292 5.8276 0.749268 6.16516 0.749268Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' %3E%3Cpath d='M6.16516 0.749268C6.49521 0.749268 6.80275 0.921791 6.97527 1.21434L12.0386 9.8407C12.2111 10.1332 12.2111 10.4933 12.0386 10.7783C11.8735 11.0709 11.5585 11.2509 11.2285 11.2509H1.10186C0.764303 11.2509 0.456764 11.0709 0.291738 10.7783C0.126712 10.4858 0.126712 10.1257 0.291738 9.8407L5.35504 1.21434C5.52757 0.929292 5.8276 0.749268 6.16516 0.749268Z' /%3E%3C/svg%3E\");background:var(--gse-ui-statusGlyph-neutral)}.gux-status-icon-error::before{inline-size:var(--gse-ui-dataTableItems-statusIndicator-label-fontSize);block-size:var(--gse-ui-dataTableItems-statusIndicator-label-fontSize);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' %3E%3Cpath d='M0.236102 6.88C-0.0787008 6.33785 -0.0787008 5.66215 0.236102 5.12L2.36477 1.38C2.67957 0.837853 3.24922 0.5 3.87133 0.5H8.12867C8.75078 0.5 9.32043 0.837853 9.63523 1.38L11.7639 5.12C12.0787 5.66215 12.0787 6.33785 11.7639 6.88L9.63523 10.62C9.32043 11.1621 8.75078 11.5 8.12867 11.5H3.87133C3.24922 11.5 2.67957 11.1621 2.36477 10.62L0.236102 6.88Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' %3E%3Cpath d='M0.236102 6.88C-0.0787008 6.33785 -0.0787008 5.66215 0.236102 5.12L2.36477 1.38C2.67957 0.837853 3.24922 0.5 3.87133 0.5H8.12867C8.75078 0.5 9.32043 0.837853 9.63523 1.38L11.7639 5.12C12.0787 5.66215 12.0787 6.33785 11.7639 6.88L9.63523 10.62C9.32043 11.1621 8.75078 11.5 8.12867 11.5H3.87133C3.24922 11.5 2.67957 11.1621 2.36477 10.62L0.236102 6.88Z' /%3E%3C/svg%3E\");background:var(--gse-ui-statusGlyph-negative)}.gux-status-icon-success::before{inline-size:var(--gse-ui-dataTableItems-statusIndicator-label-fontSize);block-size:var(--gse-ui-dataTableItems-statusIndicator-label-fontSize);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' %3E%3Cpath d='M6 0C7.59 0 9.12 0.629997 10.245 1.755C11.37 2.88 12 4.41 12 6C12 7.59 11.37 9.12 10.245 10.245C9.12 11.37 7.59 12 6 12C4.41 12 2.88 11.37 1.755 10.245C0.629997 9.12 0 7.59 0 6C0 4.41 0.629997 2.88 1.755 1.755C2.88 0.629997 4.41 0 6 0Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' %3E%3Cpath d='M6 0C7.59 0 9.12 0.629997 10.245 1.755C11.37 2.88 12 4.41 12 6C12 7.59 11.37 9.12 10.245 10.245C9.12 11.37 7.59 12 6 12C4.41 12 2.88 11.37 1.755 10.245C0.629997 9.12 0 7.59 0 6C0 4.41 0.629997 2.88 1.755 1.755C2.88 0.629997 4.41 0 6 0Z' /%3E%3C/svg%3E\");background:var(--gse-ui-statusGlyph-positive)}";export{n as gux_option_status_beta}
@@ -1 +1 @@
1
- import{r as t,h as s,H as i,a as e}from"./p-COgvjwDR.js";import{t as r}from"./p-BEMpuBA2.js";import{D as o,g as a}from"./p-BxILAe-M.js";import{d as h,a as m}from"./p-B0p1zRQq.js";import{u as p}from"./p-ZuNZ-MBw.js";import{g as n}from"./p-D2nzPgXC.js";import"./p-BZb6pJEJ.js";import"./p-Cd4R0amv.js";const c=class{constructor(s){t(this,s),this.hasRegionalDatesCookie=!1,this.datetime=(new Date).toISOString(),this.format="short"}componentWillLoad(){r(this.root),p()?this.hasRegionalDatesCookie=!0:this.formatter=new o(n(this.root))}renderDateTime(){return this.hasRegionalDatesCookie?h(m(this.root),{dateStyle:this.format,timeStyle:this.format,timeZone:a(this.timeZone)}).format(new Date(this.datetime)):this.formatter.formatDateTime(new Date(this.datetime),this.format,{timeZone:a(this.timeZone)})}render(){return s(i,{key:"158ac2979183159491bc24fb1cd1bff59c122be7"},this.renderDateTime())}get root(){return e(this)}};export{c as gux_date_time_beta}
1
+ import{r as t,h as s,H as i,a as e}from"./p-COgvjwDR.js";import{t as r}from"./p-Dfk0nYGa.js";import{D as o,g as a}from"./p-BxILAe-M.js";import{d as h,a as m}from"./p-B0p1zRQq.js";import{u as p}from"./p-ZuNZ-MBw.js";import{g as n}from"./p-D2nzPgXC.js";import"./p-BZb6pJEJ.js";import"./p-Cd4R0amv.js";const f=class{constructor(s){t(this,s),this.hasRegionalDatesCookie=!1,this.datetime=(new Date).toISOString(),this.format="short"}componentWillLoad(){r(this.root),p()?this.hasRegionalDatesCookie=!0:this.formatter=new o(n(this.root))}renderDateTime(){return this.hasRegionalDatesCookie?h(m(this.root),{dateStyle:this.format,timeStyle:this.format,timeZone:a(this.timeZone)}).format(new Date(this.datetime)):this.formatter.formatDateTime(new Date(this.datetime),this.format,{timeZone:a(this.timeZone)})}render(){return s(i,{key:"158ac2979183159491bc24fb1cd1bff59c122be7"},this.renderDateTime())}get root(){return e(this)}};export{f as gux_date_time_beta}
@@ -1 +1 @@
1
- import{r as e,c as t,f as n,h as s,a}from"./p-COgvjwDR.js";import{b as o}from"./p-D2nzPgXC.js";import{t as c}from"./p-BEMpuBA2.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 g,h as p}from"./p-ygfGN0jf.js";import"./p-Cd4R0amv.js";import"./p-CcCycvZh.js";import"./p-BMRf5pjV.js";var b={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,b)}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(){g(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}=p(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:"ec62e7dca4e952ee2ff9f24096e8d8ab58ddebcb",class:"gux-container"},s("div",{key:"9cc756a41d6cb27773eb73e5a2b0d6e13f494457",class:"gux-sr-only","aria-live":"polite"},`${this.highlightResults.matchCount} ${this.i18n("searchResults")}`),s("div",{key:"366f89222f45124eeee50b4cf84c3fe6e67df905",class:"gux-search"},s("gux-content-search",{key:"9336b96f0681f3a014ed950439f45326677787e7","match-count":this.highlightResults.matchCount,"current-match":this.highlightResults.currentMatch,onGuxcurrentmatchchanged:e=>this.onGuxCurrentMatchChanged(e)},s("input",{key:"83881361b6a2339213f03c726b95dc5c2efc2796",type:"search",placeholder:this.i18n("search"),onInput:()=>this.onSearchInput(),ref:e=>this.searchElement=e}))),s("div",{key:"66fff64c2242bd34b4c4e47574dd234574ede6a6",class:"gux-select"},s("gux-form-field-checkbox",{key:"a1786d994eb7a1a87e0a4bd838694dba570284fd"},s("input",{key:"cbb33c97393adfbc7500ee39a2422a54b2c8bf5c",slot:"input",type:"checkbox",ref:e=>this.mainCheckboxElement=e,onChange:()=>this.onMainCheckboxChange()}),s("label",{key:"c1cd5cc6d9fc5ffbe680d0ceb9e4aa6ee41526d3",slot:"label"},this.renderSelectedColumnCount()))),s("div",{key:"2f4e12af3991e9a161fc0de86883364eab110ec1",class:"gux-list",onChange:()=>this.onListChange()},s("slot",{key:"ab0751734003d7dc26387e4f88d46d31de6e8d59",onSlotchange:()=>this.onSlotChange()})),s("gux-announce-beta",{key:"a36c42516b7b13942da965d59596fd51c68935ef",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{}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip-path:inset(50%)}";export{f as gux_column_manager}
1
+ import{r as e,c as t,f as n,h as s,a}from"./p-COgvjwDR.js";import{b as o}from"./p-D2nzPgXC.js";import{t as c}from"./p-Dfk0nYGa.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 g,h as p}from"./p-ygfGN0jf.js";import"./p-Cd4R0amv.js";import"./p-CcCycvZh.js";import"./p-BMRf5pjV.js";var b={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,b)}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(){g(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}=p(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:"ec62e7dca4e952ee2ff9f24096e8d8ab58ddebcb",class:"gux-container"},s("div",{key:"9cc756a41d6cb27773eb73e5a2b0d6e13f494457",class:"gux-sr-only","aria-live":"polite"},`${this.highlightResults.matchCount} ${this.i18n("searchResults")}`),s("div",{key:"366f89222f45124eeee50b4cf84c3fe6e67df905",class:"gux-search"},s("gux-content-search",{key:"9336b96f0681f3a014ed950439f45326677787e7","match-count":this.highlightResults.matchCount,"current-match":this.highlightResults.currentMatch,onGuxcurrentmatchchanged:e=>this.onGuxCurrentMatchChanged(e)},s("input",{key:"83881361b6a2339213f03c726b95dc5c2efc2796",type:"search",placeholder:this.i18n("search"),onInput:()=>this.onSearchInput(),ref:e=>this.searchElement=e}))),s("div",{key:"66fff64c2242bd34b4c4e47574dd234574ede6a6",class:"gux-select"},s("gux-form-field-checkbox",{key:"a1786d994eb7a1a87e0a4bd838694dba570284fd"},s("input",{key:"cbb33c97393adfbc7500ee39a2422a54b2c8bf5c",slot:"input",type:"checkbox",ref:e=>this.mainCheckboxElement=e,onChange:()=>this.onMainCheckboxChange()}),s("label",{key:"c1cd5cc6d9fc5ffbe680d0ceb9e4aa6ee41526d3",slot:"label"},this.renderSelectedColumnCount()))),s("div",{key:"2f4e12af3991e9a161fc0de86883364eab110ec1",class:"gux-list",onChange:()=>this.onListChange()},s("slot",{key:"ab0751734003d7dc26387e4f88d46d31de6e8d59",onSlotchange:()=>this.onSlotChange()})),s("gux-announce-beta",{key:"a36c42516b7b13942da965d59596fd51c68935ef",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{}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip-path:inset(50%)}";export{f as gux_column_manager}
@@ -1 +1 @@
1
- import{r as s,c as o,h as e,H as a,a as i}from"./p-COgvjwDR.js";import{t as r}from"./p-BEMpuBA2.js";const t=class{constructor(e){s(this,e),this.guxdismiss=o(this,"guxdismiss",7),this.accent="neutral"}componentWillLoad(){r(this.root,{variant:this.accent})}render(){return e(a,{key:"5275d73676fafc7025fdea71ee25f0fab28a00f1"},e("div",{key:"82fd7729e65752b6778491530524b3e959d566e0",class:`gux-icon gux-${this.accent}`},e("slot",{key:"f47bc51dd31878e3390c9b5f61bc25fc1a2e83a4",name:"icon"})),e("gux-truncate",{key:"8c71dc705732e729a8ab8bcc6f3628963d16acf7",class:"gux-message","max-lines":2},e("slot",{key:"a9d41b6e2d75c4aea85b60acd1fdb6f23444cbaf",name:"message"})),e("gux-dismiss-button",{key:"4d104e7e0fccd621be5ec158f93d3a1992cb52c4",class:"gux-dismiss",position:"inherit",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(s){s.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return i(this)}};t.style=":host{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;width:286px;margin-bottom:4px;color:var(--gse-ui-toast-success-foregroundColor);background:var(--gse-ui-toast-success-backgroundColor);border:1px solid var(--gse-ui-card-default-border-color);border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-icon{flex:0 1 auto;align-self:auto;order:0;padding:8px 12px 8px 16px;margin:2px 0}.gux-icon.gux-alert{color:var(--gse-ui-toast-error-iconColor)}.gux-icon.gux-warning{color:var(--gse-ui-toast-warning-iconColor)}.gux-icon.gux-positive{color:var(--gse-ui-toast-success-iconColor)}.gux-icon.gux-neutral{color:var(--gse-ui-toast-info-iconColor)}.gux-icon ::slotted(gux-icon){width:16px;height:16px}.gux-message{flex:1 1 auto;align-self:center;order:0;margin:8px 0}.gux-dismiss{margin:4px 0}";export{t as gux_simple_toast_legacy}
1
+ import{r as s,c as o,h as e,H as a,a as i}from"./p-COgvjwDR.js";import{t as r}from"./p-Dfk0nYGa.js";const t=class{constructor(e){s(this,e),this.guxdismiss=o(this,"guxdismiss",7),this.accent="neutral"}componentWillLoad(){r(this.root,{variant:this.accent})}render(){return e(a,{key:"5275d73676fafc7025fdea71ee25f0fab28a00f1"},e("div",{key:"82fd7729e65752b6778491530524b3e959d566e0",class:`gux-icon gux-${this.accent}`},e("slot",{key:"f47bc51dd31878e3390c9b5f61bc25fc1a2e83a4",name:"icon"})),e("gux-truncate",{key:"8c71dc705732e729a8ab8bcc6f3628963d16acf7",class:"gux-message","max-lines":2},e("slot",{key:"a9d41b6e2d75c4aea85b60acd1fdb6f23444cbaf",name:"message"})),e("gux-dismiss-button",{key:"4d104e7e0fccd621be5ec158f93d3a1992cb52c4",class:"gux-dismiss",position:"inherit",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(s){s.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return i(this)}};t.style=":host{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;width:286px;margin-bottom:4px;color:var(--gse-ui-toast-success-foregroundColor);background:var(--gse-ui-toast-success-backgroundColor);border:1px solid var(--gse-ui-card-default-border-color);border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-icon{flex:0 1 auto;align-self:auto;order:0;padding:8px 12px 8px 16px;margin:2px 0}.gux-icon.gux-alert{color:var(--gse-ui-toast-error-iconColor)}.gux-icon.gux-warning{color:var(--gse-ui-toast-warning-iconColor)}.gux-icon.gux-positive{color:var(--gse-ui-toast-success-iconColor)}.gux-icon.gux-neutral{color:var(--gse-ui-toast-info-iconColor)}.gux-icon ::slotted(gux-icon){width:16px;height:16px}.gux-message{flex:1 1 auto;align-self:center;order:0;margin:8px 0}.gux-dismiss{margin:4px 0}";export{t as gux_simple_toast_legacy}
@@ -1 +1 @@
1
- import{r as e,h as t,H as s,a as o}from"./p-COgvjwDR.js";import{t as i}from"./p-BEMpuBA2.js";import{O as a}from"./p-DGRFHar4.js";import{b as r}from"./p-D2nzPgXC.js";import{b as n}from"./p-Bg4q97BS.js";import"./p-Cd4R0amv.js";var c={additionalActions:"Additional Actions"};const u=class{constructor(t){e(this,t),this.expanded=!1}handleKeyDown(e){const t=e.composedPath();switch(e.key){case"Escape":this.expanded=!1,t.includes(this.listElement)&&(e.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.expanded=!1;break;case"ArrowDown":case"Enter":t.includes(this.dropdownButton)&&(e.preventDefault(),this.expanded=!0,this.focusFirstItemInPopupList())}}handleKeyup(e){if(" "===e.key)e.composedPath().includes(this.dropdownButton)&&(this.expanded=!0,this.focusFirstItemInPopupList())}toggle(){this.expanded=!this.expanded,this.expanded&&this.focusPopupList()}onClickOutside(){this.expanded=!1}focusPopupList(){n((()=>{this.listElement.focus()}))}focusFirstItemInPopupList(){n((()=>{this.listElement.guxFocusFirstItem()}))}renderTooltip(){if(!this.expanded)return t("gux-tooltip-beta",null,t("div",{slot:"content"},this.i18n("additionalActions")))}async componentWillLoad(){this.i18n=await r(this.root,c),i(this.root)}render(){return t(s,{key:"dd49b24a4fe0c685da9f27f5268a528c299b46a6",class:{"gux-show-menu":this.showMenu}},t("gux-popup",{key:"9f043c22c9ed34a76af2541a0db261e2e2c78097",expanded:this.expanded,"exceed-target-width":!0},t("div",{key:"00b3e38e8177844dcb20adb2748612191fe87bc6",slot:"target",class:"gux-toolbar-menu-container"},t("gux-button-slot",{key:"6e371e26c59393e4da151a698633a1b8c20949c6",accent:"secondary"},t("button",{key:"dca1886543276742e05bba4d67d6b4c66f86299a",class:"gux-menu-button",type:"button",ref:e=>this.dropdownButton=e,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.expanded.toString()},t("gux-icon",{key:"1208f23faefd26db958cfe684f6b66d0f08099d6","icon-name":"fa/ellipsis-regular",size:"small",decorative:!0}),t("gux-screen-reader-beta",{key:"b5fda673c8393b39eb02cfeecdac6cf409ff60f4"},this.i18n("additionalActions"))),this.renderTooltip())),t("div",{key:"2d62be98b045fe722751925fb867039ec7af8c36",class:"gux-list-container",slot:"popup"},t("gux-list",{key:"57a47771b36648d6353090057351cfb6e818c9fd",ref:e=>this.listElement=e},t("slot",{key:"80ec1ac5ef2154b0f95615701e4260ec2364ceda"})))))}static get delegatesFocus(){return!0}get root(){return o(this)}};(function(e,t,s,o){var i,a=arguments.length,r=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,o);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(r=(a<3?i(r):a>3?i(t,s,r):i(t,s))||r);a>3&&r&&Object.defineProperty(t,s,r)})([a({triggerEvents:"mousedown"})],u.prototype,"onClickOutside",null),u.style=":host{display:none;-webkit-user-select:none;user-select:none}:host(.gux-show-menu){display:block}.gux-menu-button{display:flex;color:var(--gse-ui-button-secondary-default-foregroundColor);cursor:pointer;border:none}.gux-menu-button gux-icon{align-self:center}.gux-list-container{inline-size:min-content;margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}";export{u as gux_table_toolbar_menu_button}
1
+ import{r as e,h as t,H as s,a as o}from"./p-COgvjwDR.js";import{t as i}from"./p-Dfk0nYGa.js";import{O as a}from"./p-DGRFHar4.js";import{b as r}from"./p-D2nzPgXC.js";import{b as n}from"./p-Bg4q97BS.js";import"./p-Cd4R0amv.js";var c={additionalActions:"Additional Actions"};const u=class{constructor(t){e(this,t),this.expanded=!1}handleKeyDown(e){const t=e.composedPath();switch(e.key){case"Escape":this.expanded=!1,t.includes(this.listElement)&&(e.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.expanded=!1;break;case"ArrowDown":case"Enter":t.includes(this.dropdownButton)&&(e.preventDefault(),this.expanded=!0,this.focusFirstItemInPopupList())}}handleKeyup(e){if(" "===e.key)e.composedPath().includes(this.dropdownButton)&&(this.expanded=!0,this.focusFirstItemInPopupList())}toggle(){this.expanded=!this.expanded,this.expanded&&this.focusPopupList()}onClickOutside(){this.expanded=!1}focusPopupList(){n((()=>{this.listElement.focus()}))}focusFirstItemInPopupList(){n((()=>{this.listElement.guxFocusFirstItem()}))}renderTooltip(){if(!this.expanded)return t("gux-tooltip-beta",null,t("div",{slot:"content"},this.i18n("additionalActions")))}async componentWillLoad(){this.i18n=await r(this.root,c),i(this.root)}render(){return t(s,{key:"dd49b24a4fe0c685da9f27f5268a528c299b46a6",class:{"gux-show-menu":this.showMenu}},t("gux-popup",{key:"9f043c22c9ed34a76af2541a0db261e2e2c78097",expanded:this.expanded,"exceed-target-width":!0},t("div",{key:"00b3e38e8177844dcb20adb2748612191fe87bc6",slot:"target",class:"gux-toolbar-menu-container"},t("gux-button-slot",{key:"6e371e26c59393e4da151a698633a1b8c20949c6",accent:"secondary"},t("button",{key:"dca1886543276742e05bba4d67d6b4c66f86299a",class:"gux-menu-button",type:"button",ref:e=>this.dropdownButton=e,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.expanded.toString()},t("gux-icon",{key:"1208f23faefd26db958cfe684f6b66d0f08099d6","icon-name":"fa/ellipsis-regular",size:"small",decorative:!0}),t("gux-screen-reader-beta",{key:"b5fda673c8393b39eb02cfeecdac6cf409ff60f4"},this.i18n("additionalActions"))),this.renderTooltip())),t("div",{key:"2d62be98b045fe722751925fb867039ec7af8c36",class:"gux-list-container",slot:"popup"},t("gux-list",{key:"57a47771b36648d6353090057351cfb6e818c9fd",ref:e=>this.listElement=e},t("slot",{key:"80ec1ac5ef2154b0f95615701e4260ec2364ceda"})))))}static get delegatesFocus(){return!0}get root(){return o(this)}};(function(e,t,s,o){var i,a=arguments.length,r=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,o);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(r=(a<3?i(r):a>3?i(t,s,r):i(t,s))||r);a>3&&r&&Object.defineProperty(t,s,r)})([a({triggerEvents:"mousedown"})],u.prototype,"onClickOutside",null),u.style=":host{display:none;-webkit-user-select:none;user-select:none}:host(.gux-show-menu){display:block}.gux-menu-button{display:flex;color:var(--gse-ui-button-secondary-default-foregroundColor);cursor:pointer;border:none}.gux-menu-button gux-icon{align-self:center}.gux-list-container{inline-size:min-content;margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}";export{u as gux_table_toolbar_menu_button}
@@ -0,0 +1 @@
1
+ import{r as s,h as t,H as a,a as e}from"./p-COgvjwDR.js";import{l as o,n as r,f as i,p as c,b as n,a as l}from"./p-BebXX5IS.js";import{t as d}from"./p-Dfk0nYGa.js";const m=["gux-list-item"],p=class{constructor(t){s(this,t)}componentWillLoad(){d(this.root)}onKeyDown(s){switch(s.key){case"ArrowUp":s.preventDefault(),c(this.root,m);break;case"Home":s.preventDefault(),i(this.root,m);break;case"ArrowDown":s.preventDefault(),r(this.root,m);break;case"End":s.preventDefault(),o(this.root,m)}}async guxFocusFirstItem(){i(this.root,m)}async guxFocusItemById(s){n(this.root,m,s)}async guxFocusItemByClosestId(s){l(this.root,m,s)}async guxFocusLastItem(){o(this.root,m)}render(){return t(a,{key:"04903a671a66545f3d748874cdcf7964c2a427dc",tabindex:"-1",role:"list"},t("slot",{key:"6ca81b9a4d94d518552320a617f0777ff52e28e5"}))}get root(){return e(this)}};p.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;padding:var(--gse-ui-menu-padding)}";export{p as gux_list}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,H as e,a as o,f as s}from"./p-COgvjwDR.js";import{a,c as r,o as n,f as l,s as d,h as c}from"./p-C8aV-TzO.js";import{r as h}from"./p-D9jKBqIb.js";import{t as u}from"./p-Dfk0nYGa.js";import{f as p}from"./p-Cr5bTKWF.js";import{b as g}from"./p-Bg4q97BS.js";import{o as f}from"./p-DKtwSwJx.js";import{O as m}from"./p-vOC0-qDq.js";import{O as b}from"./p-DKPAGIJA.js";import{g as v}from"./p-DjLdmWVU.js";const x=class{constructor(i){t(this,i),this.pointerenterHandler=()=>this.show(),this.pointerleaveHandler=()=>this.hide(),this.focusinHandler=()=>this.show(),this.focusoutHandler=()=>this.hide(),this.forElementListeners=new Map([["pointerenter",this.pointerenterHandler],["pointerleave",this.pointerleaveHandler],["focusin",this.focusinHandler],["focusout",this.focusoutHandler]]),this.id=h("gux-tooltip"),this.placement="bottom-start",this.accent="light",this.isShown=!1}handleKeyDown(t){"Escape"===t.key&&this.isShown&&this.hide()}handlePointerenter(){this.show()}handlePointerleave(){this.hide()}async showTooltip(){this.show()}async hideTooltip(){this.hide()}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.cleanupUpdatePosition=a(this.forElement,this.root,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!1,ancestorResize:!0})}updatePosition(){const t=[n(12),l({fallbackAxisSideDirection:"start",crossAxis:!1}),d(),c(),f()];r(this.forElement,this.root,{placement:this.placement,strategy:"fixed",middleware:t}).then((({x:t,y:i,middlewareData:e})=>{var o;Object.assign(this.root.style,{left:`${t}px`,top:`${i}px`,visibility:(null===(o=e.hide)||void 0===o?void 0:o.referenceHidden)?"hidden":"visible"}),this.root.setAttribute("data-placement",this.placement)}))}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0,g((()=>{this.runUpdatePosition()}))}hide(){this.hideDelayTimeout=setTimeout((()=>{this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.isShown=!1}),350)}getForElement(){return this.for?p(this.root,this.for):this.root.parentElement}logForAttributeError(){this.root.isConnected&&console.error(`gux-tooltip: invalid element supplied to 'for': "${this.for}"`)}setForElement(){this.forElement=this.getForElement(),this.forElement?(this.forElement.setAttribute("aria-describedby",this.id),this.forElementListeners.forEach(((t,i)=>this.forElement.addEventListener(i,t)))):this.logForAttributeError()}disconnectForElement(){this.forElement&&(this.forElement.removeAttribute("aria-describedby"),this.forElementListeners.forEach(((t,i)=>this.forElement.removeEventListener(i,t))))}updateForElement(){this.disconnectForElement(),this.setForElement()}connectedCallback(){this.setForElement()}componentWillLoad(){u(this.root,{variant:this.placement})}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.disconnectForElement()}render(){return i(e,{key:"74913ea005def5c10e986822932615562c3a4d52",id:this.id,class:{"gux-show":this.isShown},role:"tooltip"},i("div",{key:"356dc86d585632c86004d10fc88a9a1cb378fb8a",class:{"gux-container":!0,[`gux-${this.accent}`]:!0},"data-placement":this.placement},i("slot",{key:"1d9920b52e360fa8285afaadfcc31ecddb2160f4",name:"content"},i("slot",{key:"0e0aa1e2f83795ffea14dd00387aec18241d5ecb"}))))}get root(){return o(this)}static get watchers(){return{for:["updateForElement"]}}};x.style=":host{position:fixed;z-index:var(--gse-semantic-zIndex-tooltip);display:none;inline-size:max-content;max-inline-size:var(--gse-ui-tooltip-maxWidth);border-radius:var(--gse-ui-tooltip-borderRadius);box-shadow:var(--gse-ui-tooltip-boxShadow);opacity:0}:host(.gux-show){display:block;animation-name:fade-in;animation-duration:250ms;animation-delay:350ms;animation-fill-mode:forwards}.gux-container{box-sizing:border-box;display:flex;flex-direction:row;gap:var(--gse-ui-tooltip-gap);place-content:center flex-start;padding:var(--gse-ui-tooltip-padding);font-family:var(--gse-ui-tooltip-text-fontFamily);font-size:var(--gse-ui-tooltip-text-fontSize);font-weight:var(--gse-ui-tooltip-text-fontWeight);line-height:var(--gse-ui-tooltip-text-lineHeight);color:var(--gse-ui-tooltip-light-foregroundColor);pointer-events:none;background-color:var(--gse-ui-tooltip-light-backgroundColor);border:var(--gse-ui-tooltip-light-border-width) var(--gse-ui-tooltip-light-border-style) var(--gse-ui-tooltip-light-border-color);border-radius:var(--gse-ui-tooltip-borderRadius)}.gux-container ::slotted(gux-icon){align-self:center;inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size);color:var(--gse-ui-tooltip-light-foregroundColor)}.gux-container ::slotted(*){inline-size:100%;overflow-wrap:break-word;white-space:normal}.gux-container.gux-dark{color:var(--gse-ui-tooltip-dark-foregroundColor);background-color:var(--gse-ui-tooltip-dark-backgroundColor);border:var(--gse-ui-tooltip-dark-border-width) var(--gse-ui-tooltip-dark-border-style) var(--gse-ui-tooltip-dark-border-color)}.gux-container.gux-dark ::slotted(gux-icon){align-self:center;inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size);color:var(--gse-ui-tooltip-dark-iconColor)}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}";var w=function(t,i,e,o){var s,a=arguments.length,r=a<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,e,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(r=(a<3?s(r):a>3?s(i,e,r):s(i,e))||r);return a>3&&r&&Object.defineProperty(i,e,r),r};const y=class{constructor(i){t(this,i),this.tooltipPlacement="bottom-start",this.tooltipAccent="light"}async setShowTooltip(){var t;await(null===(t=this.tooltipElement)||void 0===t?void 0:t.showTooltip())}async setHideTooltip(){var t;await(null===(t=this.tooltipElement)||void 0===t?void 0:t.hideTooltip())}onMutation(){s(this.root)}onResize(){s(this.root)}getTooltipContent(){return v(Array.from(this.root.childNodes))||""}needsTruncation(){const t=this.root.shadowRoot.querySelector(".gux-truncate-slot-container");return(null==t?void 0:t.scrollWidth)>(null==t?void 0:t.offsetWidth)||(null==t?void 0:t.scrollHeight)>(null==t?void 0:t.offsetHeight)}renderTooltip(){return this.needsTruncation()?i("gux-tooltip",{accent:this.tooltipAccent,placement:this.tooltipPlacement,"aria-hidden":"true",ref:t=>this.tooltipElement=t},i("div",{slot:"content"},this.getTooltipContent())):null}render(){var t;return i("div",{key:"3fc6df08f4e5b36071d4e18e6eacffecfc06b18d",class:{"gux-truncate-multi-line":Boolean(this.maxLines)}},i("span",{key:"c2a8e7803b4f364e8ff21b8f728d38550a373240",class:{"gux-overflow-hidden":this.needsTruncation(),"gux-truncate-slot-container":!0},style:{webkitLineClamp:null===(t=this.maxLines)||void 0===t?void 0:t.toString()}},i("slot",{key:"c19b5fb35613f3fd6a6b737e06e435ea16bda7b8"})),this.renderTooltip())}get root(){return o(this)}};w([m({childList:!0,subtree:!0,characterData:!0})],y.prototype,"onMutation",null),w([b()],y.prototype,"onResize",null),y.style=":host{display:block;inline-size:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:inherit}::slotted(*){display:inline}.gux-truncate-multi-line{white-space:normal}.gux-truncate-multi-line .gux-truncate-slot-container{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1}gux-tooltip{font-weight:normal;line-height:normal;text-align:start;overflow-wrap:break-word;white-space:normal}.gux-truncate-slot-container>*{display:inline}.gux-truncate-slot-container{display:block;text-overflow:ellipsis}.gux-overflow-hidden{overflow:hidden}";export{x as gux_tooltip,y as gux_truncate}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,H as e,a as r}from"./p-COgvjwDR.js";import{t as o}from"./p-BEMpuBA2.js";import{l as a,f as h,n,p as c}from"./p-BebXX5IS.js";const l=["gux-rich-style-list-item","gux-rich-highlight-list-item","gux-rich-text-editor-sub-list"],g=class{constructor(i){t(this,i),this.internallistitemsupdated=s(this,"internallistitemsupdated",7),this.listItems=[]}get listItemsSlot(){return this.root.querySelector("slot")}get listItemElements(){var t;const s=null===(t=this.listItemsSlot)||void 0===t?void 0:t.assignedElements();return s?Array.from(s):[]}handleHighlighItemsNavigation(){if(this.listItemsSlot){const t=this.listItemsSlot.assignedElements().find((t=>"gux-rich-highlight-list-item"===t.tagName.toLowerCase()));if(t){const s=t.shadowRoot.querySelector("button");s&&(s.tabIndex=0)}}}setListItems(){this.listItems=this.listItemElements,this.internallistitemsupdated.emit()}async componentWillLoad(){o(this.root),this.setListItems(),this.handleHighlighItemsNavigation()}onKeyDown(t){const s=t.target;if(!s)return;const i={ArrowUp:()=>c(this.root,l),ArrowDown:()=>n(this.root,l),Home:()=>h(this.root,l),End:()=>a(this.root,l)};s.matches("gux-rich-highlight-list-item")&&Object.assign(i,{ArrowLeft:()=>c(this.root,l),ArrowRight:()=>n(this.root,l)});const e=i[t.key];e&&(t.preventDefault(),e())}async guxFocusFirstItem(){h(this.root,l)}async guxFocusLastItem(){a(this.root,l)}render(){return i(e,{key:"ad1c3e75d5ab63711351cee75cb7a3d87eca1993",role:"list"},i("slot",{key:"182ea3bfa2d473961a3aa40b325c759024cacfde",onSlotchange:()=>this.setListItems()}))}static get delegatesFocus(){return!0}get root(){return r(this)}};g.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;padding:var(--gse-ui-menu-padding)}";export{g as gux_rich_text_editor_list}
1
+ import{r as t,c as s,h as i,H as e,a as r}from"./p-COgvjwDR.js";import{t as o}from"./p-Dfk0nYGa.js";import{l as a,f as h,n,p as c}from"./p-BebXX5IS.js";const l=["gux-rich-style-list-item","gux-rich-highlight-list-item","gux-rich-text-editor-sub-list"],g=class{constructor(i){t(this,i),this.internallistitemsupdated=s(this,"internallistitemsupdated",7),this.listItems=[]}get listItemsSlot(){return this.root.querySelector("slot")}get listItemElements(){var t;const s=null===(t=this.listItemsSlot)||void 0===t?void 0:t.assignedElements();return s?Array.from(s):[]}handleHighlighItemsNavigation(){if(this.listItemsSlot){const t=this.listItemsSlot.assignedElements().find((t=>"gux-rich-highlight-list-item"===t.tagName.toLowerCase()));if(t){const s=t.shadowRoot.querySelector("button");s&&(s.tabIndex=0)}}}setListItems(){this.listItems=this.listItemElements,this.internallistitemsupdated.emit()}async componentWillLoad(){o(this.root),this.setListItems(),this.handleHighlighItemsNavigation()}onKeyDown(t){const s=t.target;if(!s)return;const i={ArrowUp:()=>c(this.root,l),ArrowDown:()=>n(this.root,l),Home:()=>h(this.root,l),End:()=>a(this.root,l)};s.matches("gux-rich-highlight-list-item")&&Object.assign(i,{ArrowLeft:()=>c(this.root,l),ArrowRight:()=>n(this.root,l)});const e=i[t.key];e&&(t.preventDefault(),e())}async guxFocusFirstItem(){h(this.root,l)}async guxFocusLastItem(){a(this.root,l)}render(){return i(e,{key:"ad1c3e75d5ab63711351cee75cb7a3d87eca1993",role:"list"},i("slot",{key:"182ea3bfa2d473961a3aa40b325c759024cacfde",onSlotchange:()=>this.setListItems()}))}static get delegatesFocus(){return!0}get root(){return r(this)}};g.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;padding:var(--gse-ui-menu-padding)}";export{g as gux_rich_text_editor_list}
@@ -1 +1 @@
1
- import{r as t,h as e,a as s}from"./p-COgvjwDR.js";import{g as o}from"./p-BZb6pJEJ.js";import{t as i}from"./p-BEMpuBA2.js";import{g as n}from"./p-MAoEg4ig.js";const a=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"},n(this.root,"text")))}componentWillLoad(){i(this.root)}render(){return e("gux-button-slot",{key:"923d82c32881b340dcbf7eb4649c539498772207",accent:this.accent},e("button",{key:"bfaabd1c1febf6fe59c3d6b5eee1fa7aa9fc5537",disabled:this.disabled,type:"button",class:"gux-action-title"},e("slot",{key:"dda09541cdd02088b35aa4c5c949f02cbb7fd7f5",name:"icon"}),e("span",{key:"1d717aaf5a9fd5135e5f56edaf97f35c04b046f6",class:{"gux-sr-only":this.hideText()}},e("slot",{key:"c3fae433fcedc42f9e1435934e6e2053c4da5bb8",name:"text"}))),this.renderTooltip())}static get delegatesFocus(){return!0}get root(){return s(this)}};a.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-path:inset(50%)}gux-button-slot{inline-size:100%}.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{a as gux_table_toolbar_custom_action}
1
+ import{r as t,h as e,a as s}from"./p-COgvjwDR.js";import{g as o}from"./p-BZb6pJEJ.js";import{t as i}from"./p-Dfk0nYGa.js";import{g as n}from"./p-MAoEg4ig.js";const a=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"},n(this.root,"text")))}componentWillLoad(){i(this.root)}render(){return e("gux-button-slot",{key:"923d82c32881b340dcbf7eb4649c539498772207",accent:this.accent},e("button",{key:"bfaabd1c1febf6fe59c3d6b5eee1fa7aa9fc5537",disabled:this.disabled,type:"button",class:"gux-action-title"},e("slot",{key:"dda09541cdd02088b35aa4c5c949f02cbb7fd7f5",name:"icon"}),e("span",{key:"1d717aaf5a9fd5135e5f56edaf97f35c04b046f6",class:{"gux-sr-only":this.hideText()}},e("slot",{key:"c3fae433fcedc42f9e1435934e6e2053c4da5bb8",name:"text"}))),this.renderTooltip())}static get delegatesFocus(){return!0}get root(){return s(this)}};a.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-path:inset(50%)}gux-button-slot{inline-size:100%}.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{a as gux_table_toolbar_custom_action}
@@ -1 +1 @@
1
- import{r as o,h as i,a as e}from"./p-COgvjwDR.js";import{t as a}from"./p-BEMpuBA2.js";import{b as t}from"./p-D2nzPgXC.js";import{g as r}from"./p-MAoEg4ig.js";import"./p-Cd4R0amv.js";var c={clickToCopy:"Click to Copy",copySuccess:"Copied to Clipboard",copyFailure:"Copy failed. Please try again."};const l=class{constructor(i){o(this,i),this.tooltipContent="clickToCopy"}onMouseleave(){this.resetTooltip()}onFocusout(){this.resetTooltip()}resetTooltip(){this.tooltipContent="clickToCopy"}async onCopyToClipboard(){return navigator.clipboard.writeText(this.root.innerText).then((()=>{this.tooltipContent="copySuccess"})).catch((()=>{this.tooltipContent="copyFailure"}))}getIconName(o){switch(o){case"copyFailure":return"fa/circle-xmark-solid";case"copySuccess":return"fa/circle-check-solid"}}renderTooltipIcon(){const o=this.getIconName(this.tooltipContent);if(o)return i("gux-icon",{"icon-name":o,size:"small",decorative:!0})}renderTooltip(){return i("gux-tooltip",{placement:"bottom-end"},i("div",{slot:"content",class:"gux-tooltip-content"},this.renderTooltipIcon(),i("span",null,this.i18n(this.tooltipContent))))}async componentWillLoad(){a(this.root),this.i18n=await t(this.root,c)}render(){return i("button",{key:"ca0ca5e140ad732a465cae42866b0cee5a1f1af3",class:"gux-copy-to-clipboard-wrapper",onClick:this.onCopyToClipboard.bind(this),"aria-label":r(this.root,"content")},i("div",{key:"577957a7e26c7655e3a6533328d4fbb77a2bb384",class:"gux-copy-content"},i("slot",{key:"55bdaeb5fead9651cdd67ba7d5b25938dce17df0",name:"content"}),i("gux-icon",{key:"947f96029d0569ed96463ba3c4d8a0e26def479f","icon-name":"fa/copy-regular",size:"small",decorative:!0})),this.renderTooltip())}get root(){return e(this)}};l.style='button{all:unset}.gux-copy-to-clipboard-wrapper{display:inline-flex;align-items:center;max-inline-size:100%}.gux-copy-to-clipboard-wrapper .gux-copy-content{display:inherit;gap:var(--gse-ui-copyToClipboard-contentContainer-gap);align-items:inherit;max-inline-size:100%;cursor:pointer}.gux-copy-to-clipboard-wrapper .gux-copy-content ::slotted(*){padding:var(--gse-ui-copyToClipboard-label-padding);font-family:var(--gse-ui-copyToClipboard-label-text-fontFamily);font-size:var(--gse-ui-copyToClipboard-label-text-fontSize);font-weight:var(--gse-ui-copyToClipboard-label-text-fontWeight);line-height:var(--gse-ui-copyToClipboard-label-text-lineHeight);color:var(--gse-ui-copyToClipboard-label-foregroundColor);text-decoration:var(--gse-ui-copyToClipboard-label-text-textDecoration);border-radius:var(--gse-ui-copyToClipboard-label-borderRadius)}.gux-copy-to-clipboard-wrapper .gux-copy-content:hover ::slotted(*){background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor)}.gux-copy-to-clipboard-wrapper .gux-copy-content:hover gux-icon[icon-name="fa/copy-regular"]{visibility:visible}.gux-copy-to-clipboard-wrapper .gux-copy-content gux-icon[icon-name="fa/copy-regular"]{visibility:hidden;flex-shrink:0;padding:var(--gse-ui-copyToClipboard-iconContainer-padding);background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor);border-radius:var(--gse-ui-copyToClipboard-label-borderRadius)}.gux-copy-to-clipboard-wrapper:focus-visible{outline:none}.gux-copy-to-clipboard-wrapper:focus-visible ::slotted(*){background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor)}.gux-copy-to-clipboard-wrapper:focus-visible gux-icon[icon-name="fa/copy-regular"]{visibility:visible}gux-tooltip.gux-show{display:inline-flex;align-items:center}gux-tooltip.gux-show .gux-tooltip-content{display:contents}gux-tooltip.gux-show .gux-tooltip-content>*{vertical-align:middle}gux-tooltip.gux-show gux-icon[icon-name="fa/circle-check-solid"]{color:var(--gse-ui-copyToClipboard-tooltipIcon-success-foregroundColor)}gux-tooltip.gux-show gux-icon[icon-name="fa/circle-xmark-solid"]{color:var(--gse-ui-copyToClipboard-tooltipIcon-error-foregroundColor)}';export{l as gux_copy_to_clipboard}
1
+ import{r as o,h as i,a as e}from"./p-COgvjwDR.js";import{t as a}from"./p-Dfk0nYGa.js";import{b as t}from"./p-D2nzPgXC.js";import{g as r}from"./p-MAoEg4ig.js";import"./p-Cd4R0amv.js";var c={clickToCopy:"Click to Copy",copySuccess:"Copied to Clipboard",copyFailure:"Copy failed. Please try again."};const l=class{constructor(i){o(this,i),this.tooltipContent="clickToCopy"}onMouseleave(){this.resetTooltip()}onFocusout(){this.resetTooltip()}resetTooltip(){this.tooltipContent="clickToCopy"}async onCopyToClipboard(){return navigator.clipboard.writeText(this.root.innerText).then((()=>{this.tooltipContent="copySuccess"})).catch((()=>{this.tooltipContent="copyFailure"}))}getIconName(o){switch(o){case"copyFailure":return"fa/circle-xmark-solid";case"copySuccess":return"fa/circle-check-solid"}}renderTooltipIcon(){const o=this.getIconName(this.tooltipContent);if(o)return i("gux-icon",{"icon-name":o,size:"small",decorative:!0})}renderTooltip(){return i("gux-tooltip",{placement:"bottom-end"},i("div",{slot:"content",class:"gux-tooltip-content"},this.renderTooltipIcon(),i("span",null,this.i18n(this.tooltipContent))))}async componentWillLoad(){a(this.root),this.i18n=await t(this.root,c)}render(){return i("button",{key:"ca0ca5e140ad732a465cae42866b0cee5a1f1af3",class:"gux-copy-to-clipboard-wrapper",onClick:this.onCopyToClipboard.bind(this),"aria-label":r(this.root,"content")},i("div",{key:"577957a7e26c7655e3a6533328d4fbb77a2bb384",class:"gux-copy-content"},i("slot",{key:"55bdaeb5fead9651cdd67ba7d5b25938dce17df0",name:"content"}),i("gux-icon",{key:"947f96029d0569ed96463ba3c4d8a0e26def479f","icon-name":"fa/copy-regular",size:"small",decorative:!0})),this.renderTooltip())}get root(){return e(this)}};l.style='button{all:unset}.gux-copy-to-clipboard-wrapper{display:inline-flex;align-items:center;max-inline-size:100%}.gux-copy-to-clipboard-wrapper .gux-copy-content{display:inherit;gap:var(--gse-ui-copyToClipboard-contentContainer-gap);align-items:inherit;max-inline-size:100%;cursor:pointer}.gux-copy-to-clipboard-wrapper .gux-copy-content ::slotted(*){padding:var(--gse-ui-copyToClipboard-label-padding);font-family:var(--gse-ui-copyToClipboard-label-text-fontFamily);font-size:var(--gse-ui-copyToClipboard-label-text-fontSize);font-weight:var(--gse-ui-copyToClipboard-label-text-fontWeight);line-height:var(--gse-ui-copyToClipboard-label-text-lineHeight);color:var(--gse-ui-copyToClipboard-label-foregroundColor);text-decoration:var(--gse-ui-copyToClipboard-label-text-textDecoration);border-radius:var(--gse-ui-copyToClipboard-label-borderRadius)}.gux-copy-to-clipboard-wrapper .gux-copy-content:hover ::slotted(*){background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor)}.gux-copy-to-clipboard-wrapper .gux-copy-content:hover gux-icon[icon-name="fa/copy-regular"]{visibility:visible}.gux-copy-to-clipboard-wrapper .gux-copy-content gux-icon[icon-name="fa/copy-regular"]{visibility:hidden;flex-shrink:0;padding:var(--gse-ui-copyToClipboard-iconContainer-padding);background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor);border-radius:var(--gse-ui-copyToClipboard-label-borderRadius)}.gux-copy-to-clipboard-wrapper:focus-visible{outline:none}.gux-copy-to-clipboard-wrapper:focus-visible ::slotted(*){background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor)}.gux-copy-to-clipboard-wrapper:focus-visible gux-icon[icon-name="fa/copy-regular"]{visibility:visible}gux-tooltip.gux-show{display:inline-flex;align-items:center}gux-tooltip.gux-show .gux-tooltip-content{display:contents}gux-tooltip.gux-show .gux-tooltip-content>*{vertical-align:middle}gux-tooltip.gux-show gux-icon[icon-name="fa/circle-check-solid"]{color:var(--gse-ui-copyToClipboard-tooltipIcon-success-foregroundColor)}gux-tooltip.gux-show gux-icon[icon-name="fa/circle-xmark-solid"]{color:var(--gse-ui-copyToClipboard-tooltipIcon-error-foregroundColor)}';export{l as gux_copy_to_clipboard}
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,a as s}from"./p-COgvjwDR.js";import{O as o}from"./p-DGRFHar4.js";import{t as r}from"./p-BEMpuBA2.js";import{b as h}from"./p-D2nzPgXC.js";import{t as a}from"./p-DN3YAdAX.js";import{h as n}from"./p-Bqbn0_rB.js";import{w as l}from"./p-kLXvN2m9.js";import{b as u}from"./p-Bg4q97BS.js";import{e as g}from"./p-C6ZfOd6U.js";import"./p-Cd4R0amv.js";import"./p-BZb6pJEJ.js";const c=class{constructor(e){t(this,e),this.noHighlightAction=i(this,"noHighlightAction",7),this.disabled=!1,this.isActive=!1,this.expanded=!1}onClickOutside(){this.expanded=!1}watchDisabled(t){t&&(this.expanded=!1)}handleKeydown(t){const i=g("gux-rich-highlight-list-item",t),e=t.composedPath();switch(t.key){case"Escape":this.expanded=!1,this.actionButton.focus();break;case"ArrowDown":case"Enter":e.includes(this.actionButton)&&(t.preventDefault(),this.expanded=!0,this.focusNoHighlightActionButton());break;case"Tab":if(t.shiftKey)return;i&&(this.expanded=!1)}}async componentWillLoad(){r(this.root),this.i18n=await h(this.root,a)}togglePopup(){this.expanded=!this.expanded,this.expanded?this.focusNoHighlightActionButton():this.actionButton.focus()}focusNoHighlightActionButton(){u((()=>{this.noHighlightActionButton.focus()}))}renderTooltip(){if(!this.disabled&&!this.expanded)return e("gux-tooltip-beta",null,e("div",{slot:"content"},this.i18n("textHighlight")))}renderPopup(){return e("div",{class:"gux-text-highlight-popup",slot:"popup"},this.renderNoHighlightAction(),this.renderTextHighlightColors())}renderNoHighlightAction(){return e("gux-button-slot",{accent:"tertiary"},e("button",{type:"button",ref:t=>this.noHighlightActionButton=t,onClick:()=>this.emitNoHighlightAction()},e("gux-truncate",{"max-lines":1},this.i18n("noHighlight"))))}onListClick(t){l("gux-rich-highlight-list-item",t,(()=>{this.expanded=!1,this.actionButton.focus()}))}renderTextHighlightColors(){return e("gux-rich-text-editor-list",{onClick:t=>this.onListClick(t)},e("slot",null))}emitNoHighlightAction(){this.noHighlightAction.emit(),this.expanded=!1,this.actionButton.focus()}renderTarget(){return e("gux-button-slot",{accent:"ghost","icon-only":!0,slot:"target"},e("button",{type:"button",ref:t=>this.actionButton=t,onClick:()=>this.togglePopup(),disabled:this.disabled||n(this.root),class:{"gux-is-pressed":this.isActive||this.expanded},"aria-haspopup":"true","aria-expanded":this.expanded.toString(),"aria-pressed":this.isActive.toString()},e("gux-icon",{size:"small","icon-name":"fa/highlighter-line-regular",decorative:!0}),e("gux-screen-reader-beta",null,this.i18n("textHighlight"))),this.renderTooltip())}render(){return e("gux-popup",{key:"b678380c78c583ca55ffa44f0b87ba09345b412a",disabled:this.disabled,expanded:this.expanded,exceedTargetWidth:!0,placement:"bottom-start"},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return s(this)}static get watchers(){return{disabled:["watchDisabled"]}}};(function(t,i,e,s){var o,r=arguments.length,h=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,e,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(h=(r<3?o(h):r>3?o(i,e,h):o(i,e))||h);r>3&&h&&Object.defineProperty(i,e,h)})([o({triggerEvents:"mousedown"})],c.prototype,"onClickOutside",null),c.style=":host{display:block}.gux-text-highlight-popup{display:flex;flex-direction:column;gap:var(--gse-ui-rte-colorPalette-gap);inline-size:104px;padding:12px;margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}.gux-text-highlight-popup gux-rich-text-editor-list{display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--gse-ui-rte-colorPalette-gap);align-items:flex-start;justify-content:flex-start;padding:0}.gux-text-highlight-popup gux-button-slot{align-self:center;block-size:var(--gse-ui-rte-menuButton-height)}.gux-text-highlight-popup gux-button-slot button{block-size:var(--gse-ui-rte-menuButton-height)}gux-button-slot button.gux-is-pressed{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}";export{c as gux_rich_text_editor_action_text_highlight}
1
+ import{r as t,c as i,h as e,a as s}from"./p-COgvjwDR.js";import{O as o}from"./p-DGRFHar4.js";import{t as r}from"./p-Dfk0nYGa.js";import{b as h}from"./p-D2nzPgXC.js";import{t as a}from"./p-DN3YAdAX.js";import{h as n}from"./p-Bqbn0_rB.js";import{w as l}from"./p-kLXvN2m9.js";import{b as u}from"./p-Bg4q97BS.js";import{e as g}from"./p-C6ZfOd6U.js";import"./p-Cd4R0amv.js";import"./p-BZb6pJEJ.js";const c=class{constructor(e){t(this,e),this.noHighlightAction=i(this,"noHighlightAction",7),this.disabled=!1,this.isActive=!1,this.expanded=!1}onClickOutside(){this.expanded=!1}watchDisabled(t){t&&(this.expanded=!1)}handleKeydown(t){const i=g("gux-rich-highlight-list-item",t),e=t.composedPath();switch(t.key){case"Escape":this.expanded=!1,this.actionButton.focus();break;case"ArrowDown":case"Enter":e.includes(this.actionButton)&&(t.preventDefault(),this.expanded=!0,this.focusNoHighlightActionButton());break;case"Tab":if(t.shiftKey)return;i&&(this.expanded=!1)}}async componentWillLoad(){r(this.root),this.i18n=await h(this.root,a)}togglePopup(){this.expanded=!this.expanded,this.expanded?this.focusNoHighlightActionButton():this.actionButton.focus()}focusNoHighlightActionButton(){u((()=>{this.noHighlightActionButton.focus()}))}renderTooltip(){if(!this.disabled&&!this.expanded)return e("gux-tooltip-beta",null,e("div",{slot:"content"},this.i18n("textHighlight")))}renderPopup(){return e("div",{class:"gux-text-highlight-popup",slot:"popup"},this.renderNoHighlightAction(),this.renderTextHighlightColors())}renderNoHighlightAction(){return e("gux-button-slot",{accent:"tertiary"},e("button",{type:"button",ref:t=>this.noHighlightActionButton=t,onClick:()=>this.emitNoHighlightAction()},e("gux-truncate",{"max-lines":1},this.i18n("noHighlight"))))}onListClick(t){l("gux-rich-highlight-list-item",t,(()=>{this.expanded=!1,this.actionButton.focus()}))}renderTextHighlightColors(){return e("gux-rich-text-editor-list",{onClick:t=>this.onListClick(t)},e("slot",null))}emitNoHighlightAction(){this.noHighlightAction.emit(),this.expanded=!1,this.actionButton.focus()}renderTarget(){return e("gux-button-slot",{accent:"ghost","icon-only":!0,slot:"target"},e("button",{type:"button",ref:t=>this.actionButton=t,onClick:()=>this.togglePopup(),disabled:this.disabled||n(this.root),class:{"gux-is-pressed":this.isActive||this.expanded},"aria-haspopup":"true","aria-expanded":this.expanded.toString(),"aria-pressed":this.isActive.toString()},e("gux-icon",{size:"small","icon-name":"fa/highlighter-line-regular",decorative:!0}),e("gux-screen-reader-beta",null,this.i18n("textHighlight"))),this.renderTooltip())}render(){return e("gux-popup",{key:"b678380c78c583ca55ffa44f0b87ba09345b412a",disabled:this.disabled,expanded:this.expanded,exceedTargetWidth:!0,placement:"bottom-start"},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return s(this)}static get watchers(){return{disabled:["watchDisabled"]}}};(function(t,i,e,s){var o,r=arguments.length,h=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,e,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(h=(r<3?o(h):r>3?o(i,e,h):o(i,e))||h);r>3&&h&&Object.defineProperty(i,e,h)})([o({triggerEvents:"mousedown"})],c.prototype,"onClickOutside",null),c.style=":host{display:block}.gux-text-highlight-popup{display:flex;flex-direction:column;gap:var(--gse-ui-rte-colorPalette-gap);inline-size:104px;padding:12px;margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}.gux-text-highlight-popup gux-rich-text-editor-list{display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--gse-ui-rte-colorPalette-gap);align-items:flex-start;justify-content:flex-start;padding:0}.gux-text-highlight-popup gux-button-slot{align-self:center;block-size:var(--gse-ui-rte-menuButton-height)}.gux-text-highlight-popup gux-button-slot button{block-size:var(--gse-ui-rte-menuButton-height)}gux-button-slot button.gux-is-pressed{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}";export{c as gux_rich_text_editor_action_text_highlight}
@@ -0,0 +1 @@
1
+ import{r as e,h as a,a as r}from"./p-COgvjwDR.js";import{t as s}from"./p-Dfk0nYGa.js";const t=class{constructor(a){e(this,a)}componentWillLoad(){s(this.root)}render(){return a("div",{key:"851af279f7f53cfee9ba3b9e5f612f7f81b7ae04",class:"gux-selector-cards"},a("slot",{key:"099a9505beea553cad32b1f90703d6b885cd41e0"}))}get root(){return r(this)}};t.style=".gux-selector-cards{display:flex;flex-wrap:wrap;gap:var(--gse-ui-selectorCard-simple-gap)}";export{t as gux_selector_cards_beta}
@@ -1 +1 @@
1
- import{r as o,h as r,a}from"./p-COgvjwDR.js";import{t as g}from"./p-BEMpuBA2.js";import{b as s}from"./p-D2nzPgXC.js";import"./p-Cd4R0amv.js";var e={genesysCloudLogomark:"Genesys Cloud Logomark"};const l=class{constructor(r){o(this,r),this.variant="primary"}async componentWillLoad(){this.i18n=await s(this.root,e),g(this.root,{variant:this.variant})}render(){return r("svg",{key:"f309da3d69edee9695957393a982dd7a7807d253",class:`gux-${this.variant}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50","aria-label":this.i18n("genesysCloudLogomark"),role:"img"},r("path",{key:"3ba9f456fb76011caed0b9ad31b71046b74297b6",class:"gux-background",d:"M50 0H0V50H50V0Z"}),r("path",{key:"8e2429fcabb75a5456453e2f64014983e35f4cb2",class:"gux-foreground",d:"M29.283 11.5234H20.6388C17.1517 11.5234 14.325 14.3502 14.325 17.8372V17.8967C14.325 21.3838 17.1517 24.2105 20.6388 24.2105H29.283C32.77 24.2105 35.5968 21.3838 35.5968 17.8967V17.8372C35.5968 14.3502 32.77 11.5234 29.283 11.5234Z"}),r("path",{key:"52441fac21628323ca6c6f15430d08e23f3aab28",class:"gux-foreground",d:"M23.4827 32.6137C23.4827 29.3995 26.0884 26.7937 29.3027 26.7937H39.878C43.0922 26.7937 45.698 29.3995 45.698 32.6137C45.698 35.828 43.0922 38.4337 39.878 38.4337H29.3027C26.0884 38.4337 23.4827 35.828 23.4827 32.6137Z"}),r("path",{key:"7cd3748bb675c32828abf4d42b915857d49a3256",class:"gux-foreground",d:"M4.29688 32.6137C4.29688 29.3995 6.90258 26.7937 10.1168 26.7937H15.0798C18.2942 26.7937 20.8999 29.3995 20.8999 32.6137C20.8999 35.828 18.2942 38.4337 15.0798 38.4337H10.1168C6.90258 38.4337 4.29688 35.828 4.29688 32.6137Z"}))}get root(){return a(this)}};l.style=":host{display:inline-block}svg{inline-size:100%;block-size:100%;fill:var(--gse-core-color-transparent)}svg .gux-background{fill:var(--gse-core-color-transparent)}svg .gux-foreground{fill:var(--gse-ui-logo-cloud-logomark-primary)}svg.gux-neutral .gux-foreground{fill:var(--gse-ui-logo-cloud-logomark-neutral)}svg.gux-on-background .gux-background{fill:var(--gse-ui-logo-cloud-logomark-onBackground-backgroundColor)}svg.gux-on-background .gux-foreground{fill:var(--gse-ui-logo-cloud-logomark-onBackground-foregroundColor)}";export{l as gux_cloud_logomark_beta}
1
+ import{r as o,h as r,a}from"./p-COgvjwDR.js";import{t as g}from"./p-Dfk0nYGa.js";import{b as s}from"./p-D2nzPgXC.js";import"./p-Cd4R0amv.js";var e={genesysCloudLogomark:"Genesys Cloud Logomark"};const l=class{constructor(r){o(this,r),this.variant="primary"}async componentWillLoad(){this.i18n=await s(this.root,e),g(this.root,{variant:this.variant})}render(){return r("svg",{key:"f309da3d69edee9695957393a982dd7a7807d253",class:`gux-${this.variant}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50","aria-label":this.i18n("genesysCloudLogomark"),role:"img"},r("path",{key:"3ba9f456fb76011caed0b9ad31b71046b74297b6",class:"gux-background",d:"M50 0H0V50H50V0Z"}),r("path",{key:"8e2429fcabb75a5456453e2f64014983e35f4cb2",class:"gux-foreground",d:"M29.283 11.5234H20.6388C17.1517 11.5234 14.325 14.3502 14.325 17.8372V17.8967C14.325 21.3838 17.1517 24.2105 20.6388 24.2105H29.283C32.77 24.2105 35.5968 21.3838 35.5968 17.8967V17.8372C35.5968 14.3502 32.77 11.5234 29.283 11.5234Z"}),r("path",{key:"52441fac21628323ca6c6f15430d08e23f3aab28",class:"gux-foreground",d:"M23.4827 32.6137C23.4827 29.3995 26.0884 26.7937 29.3027 26.7937H39.878C43.0922 26.7937 45.698 29.3995 45.698 32.6137C45.698 35.828 43.0922 38.4337 39.878 38.4337H29.3027C26.0884 38.4337 23.4827 35.828 23.4827 32.6137Z"}),r("path",{key:"7cd3748bb675c32828abf4d42b915857d49a3256",class:"gux-foreground",d:"M4.29688 32.6137C4.29688 29.3995 6.90258 26.7937 10.1168 26.7937H15.0798C18.2942 26.7937 20.8999 29.3995 20.8999 32.6137C20.8999 35.828 18.2942 38.4337 15.0798 38.4337H10.1168C6.90258 38.4337 4.29688 35.828 4.29688 32.6137Z"}))}get root(){return a(this)}};l.style=":host{display:inline-block}svg{inline-size:100%;block-size:100%;fill:var(--gse-core-color-transparent)}svg .gux-background{fill:var(--gse-core-color-transparent)}svg .gux-foreground{fill:var(--gse-ui-logo-cloud-logomark-primary)}svg.gux-neutral .gux-foreground{fill:var(--gse-ui-logo-cloud-logomark-neutral)}svg.gux-on-background .gux-background{fill:var(--gse-ui-logo-cloud-logomark-onBackground-backgroundColor)}svg.gux-on-background .gux-foreground{fill:var(--gse-ui-logo-cloud-logomark-onBackground-foregroundColor)}";export{l as gux_cloud_logomark_beta}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,H as o,a}from"./p-COgvjwDR.js";import{t as s}from"./p-Dfk0nYGa.js";import{b as i}from"./p-Bg4q97BS.js";const c=class{constructor(e){t(this,e),this.politeness="polite"}async guxAnnounce(t){this.containerElement.innerText="",i((()=>{this.containerElement.innerText=t}))}componentWillLoad(){s(this.root)}render(){return e(o,{key:"96acda36ac04edb73e9fcc5af71fa83cd30fce92","aria-live":this.politeness},e("slot",{key:"b490bf95af7e150220969cc20383b9406b4bcf19"}),e("div",{key:"2c731aff495c684d15bda9ed006030608bc9a4e7",ref:t=>this.containerElement=t}))}get root(){return a(this)}};c.style=":host{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{c as gux_announce_beta}
@@ -1 +1 @@
1
- import{r as t,h as i,H as a,a as e}from"./p-COgvjwDR.js";import{s as r}from"./p-BMRf5pjV.js";import{c as s}from"./p-CcCycvZh.js";import{t as n}from"./p-BEMpuBA2.js";import{l as o}from"./p-DxtJDeL9.js";import{b as l}from"./p-D2nzPgXC.js";import{O as g}from"./p-DGRFHar4.js";import"./p-Cd4R0amv.js";var u={editRating:"Edit Rating"};const c=class{constructor(i){t(this,i),this.value=0,this.maxValue=5,this.disabled=!1,this.readonly=!1,this.increment="default",this.compact=!1,this.isOpen=!1}onClickOutside(){this.isOpen=!1}onFocusIn(){this.compact&&this.compactRatingElement.focus()}onClick(t){if(t.stopPropagation(),this.disabled||this.readonly||this.compact)return;const[i]=t.composedPath(),a=i.getRootNode(),e=Array.from(this.starContainer.children).findIndex((t=>t.shadowRoot===a))+1;e===this.value+.5?this.updateRatingValue(e):e===this.value?this.updateRatingValue(0):e!==Math.floor(this.value)?this.updateRatingValue("half"===this.increment?e-.5:e):this.updateRatingValue(e)}onKeyDown(t){if(t.stopPropagation(),this.disabled||this.readonly||this.isOpen)return;const i="half"===this.increment?.5:1;switch(t.key){case"ArrowUp":case"ArrowRight":t.preventDefault(),this.updateRatingValue(this.value+i);break;case"ArrowDown":case"ArrowLeft":t.preventDefault(),this.updateRatingValue(this.value-i);break;case"End":t.preventDefault(),this.updateRatingValue(1/0);break;case"Home":t.preventDefault(),this.updateRatingValue(-1/0)}}get ariaLabel(){var t;return null===(t=this.root)||void 0===t?void 0:t.getAttribute("aria-label")}get ariaLabelledby(){var t;return null===(t=this.root)||void 0===t?void 0:t.getAttribute("aria-labelledby")}updateRatingValue(t){const i=s(t,0,this.maxValue),a="half"===this.increment?.5:1,e=Math.round(i/a)*a;this.value!==e&&(this.value=e,r(this.root,"input"),r(this.root,"change"))}getRatingStarElements(){return[...Array(this.maxValue).keys()].reduce(((t,i)=>t.concat(i+.5===this.value?"fa/star-sharp-half-stroke-regular":i+1<=this.value?"fa/star-solid":"fa/star-regular")),[]).map((t=>i("gux-icon",{"icon-name":t,decorative:!0,size:"small"})))}getCompactRatingElement(){let t;return t=0===this.value?"fa/star-regular":"fa/star-solid",i("div",{class:"gux-star-rating-compact"},i("div",{class:"gux-star-rating-label-value"},i("gux-icon",{tabindex:"0",ref:t=>this.compactRatingElement=t,"icon-name":t,decorative:!0,size:"small"}),i("span",{class:"gux-star-rating-value"},this.value)),this.renderEditRatingButton())}renderEditRatingButton(){if(!this.readonly)return i("div",{class:"gux-edit-rating-button"},i("gux-button",{tabindex:"-1",onClick:()=>{this.togglePopover()},id:"popover-target",accent:"inline",disabled:this.disabled},this.i18n("editRating")),i("gux-popover-beta",{position:"bottom-start",for:"popover-target","is-open":this.isOpen},i("gux-rating",{tabindex:"-1",value:this.value,"max-value":this.maxValue,increment:this.increment,readonly:this.readonly,onClick:t=>this.handlePopoverRatingChange(t),"aria-label":this.ariaLabel,"aria-labelledby":this.ariaLabelledby})))}togglePopover(){this.isOpen=!this.isOpen}handlePopoverRatingChange(t){this.value=t.target.value,r(this.root,"input"),r(this.root,"change")}getTabIndex(){return this.disabled?-1:0}componentWillLoad(){n(this.root)}async componentWillRender(){this.i18n=await l(this.root,u)}componentDidLoad(){this.root.getAttribute("aria-label")||this.root.getAttribute("aria-labelledby")||o(this.root,"`gux-rating` requires a label. Either provide a label and associate it with the gux-rating element using `aria-labelledby` or add an `aria-label` attribute to the gux-rating element.")}renderStars(){return this.compact?this.getCompactRatingElement():this.getRatingStarElements()}render(){return i(a,{key:"ed9db3fa3b92555c69e6fc2abe7b63b3f3c23bf1",role:"spinbutton",tabindex:this.getTabIndex(),"aria-readonly":this.readonly.toString(),"aria-valuenow":this.value,"aria-valuemin":"0","aria-valuemax":this.maxValue},i("div",{key:"ea9c04b9fa8c5e901fa4afb3e70a20bc7aafb6dc",ref:t=>this.starContainer=t,class:{"gux-rating-star-container":!0,"gux-disabled":this.disabled,"gux-compact":this.compact}},this.renderStars()))}get root(){return e(this)}};(function(t,i,a,e){var r,s=arguments.length,n=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,e);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(n=(s<3?r(n):s>3?r(i,a,n):r(i,a))||n);s>3&&n&&Object.defineProperty(i,a,n)})([g({triggerEvents:"mousedown"})],c.prototype,"onClickOutside",null),c.style=":host{display:inline-block;min-inline-size:fit-content;user-select:none}:host(:host:focus-visible){outline:var(--gse-semantic-focusOutline-sm-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset);box-shadow:0 0 0 1px var(--gse-semantic-border-focus)}.gux-rating-star-container{display:flex;gap:var(--gse-ui-rating-star-gap);justify-content:space-between;color:var(--gse-ui-rating-default-color)}.gux-rating-star-container.gux-disabled{color:var(--gse-ui-rating-disabled-color);pointer-events:none;opacity:var(--gse-ui-rating-disabled-opacity)}.gux-rating-star-container gux-icon{flex:0 0 auto;color:var(--gse-ui-rating-default-color)}.gux-rating-star-container:not(.gux-compact) gux-icon:hover:not(.gux-disabled){color:var(--gse-ui-rating-hover-color);cursor:pointer}.gux-rating-star-container .gux-star-rating-compact{display:flex;flex-direction:column;gap:var(--gse-ui-ratingGroup-shortened-edit-gap);align-items:flex-start;justify-content:center}.gux-rating-star-container .gux-star-rating-compact .gux-star-rating-label-value{display:flex;flex-direction:row;gap:var(--gse-ui-ratingGroup-shortened-gap);align-items:center;justify-content:center}.gux-rating-star-container .gux-star-rating-compact .gux-star-rating-value{font-family:var(--gse-ui-ratingGroup-text-fontFamily);font-size:var(--gse-ui-ratingGroup-text-fontSize);font-weight:var(--gse-ui-ratingGroup-text-fontWeight);line-height:var(--gse-ui-ratingGroup-text-lineHeight);color:var(--gse-ui-ratingGroup-label)}";export{c as gux_rating}
1
+ import{r as t,h as i,H as a,a as e}from"./p-COgvjwDR.js";import{s as r}from"./p-BMRf5pjV.js";import{c as s}from"./p-CcCycvZh.js";import{t as n}from"./p-Dfk0nYGa.js";import{l as o}from"./p-DxtJDeL9.js";import{b as l}from"./p-D2nzPgXC.js";import{O as g}from"./p-DGRFHar4.js";import"./p-Cd4R0amv.js";var u={editRating:"Edit Rating"};const c=class{constructor(i){t(this,i),this.value=0,this.maxValue=5,this.disabled=!1,this.readonly=!1,this.increment="default",this.compact=!1,this.isOpen=!1}onClickOutside(){this.isOpen=!1}onFocusIn(){this.compact&&this.compactRatingElement.focus()}onClick(t){if(t.stopPropagation(),this.disabled||this.readonly||this.compact)return;const[i]=t.composedPath(),a=i.getRootNode(),e=Array.from(this.starContainer.children).findIndex((t=>t.shadowRoot===a))+1;e===this.value+.5?this.updateRatingValue(e):e===this.value?this.updateRatingValue(0):e!==Math.floor(this.value)?this.updateRatingValue("half"===this.increment?e-.5:e):this.updateRatingValue(e)}onKeyDown(t){if(t.stopPropagation(),this.disabled||this.readonly||this.isOpen)return;const i="half"===this.increment?.5:1;switch(t.key){case"ArrowUp":case"ArrowRight":t.preventDefault(),this.updateRatingValue(this.value+i);break;case"ArrowDown":case"ArrowLeft":t.preventDefault(),this.updateRatingValue(this.value-i);break;case"End":t.preventDefault(),this.updateRatingValue(1/0);break;case"Home":t.preventDefault(),this.updateRatingValue(-1/0)}}get ariaLabel(){var t;return null===(t=this.root)||void 0===t?void 0:t.getAttribute("aria-label")}get ariaLabelledby(){var t;return null===(t=this.root)||void 0===t?void 0:t.getAttribute("aria-labelledby")}updateRatingValue(t){const i=s(t,0,this.maxValue),a="half"===this.increment?.5:1,e=Math.round(i/a)*a;this.value!==e&&(this.value=e,r(this.root,"input"),r(this.root,"change"))}getRatingStarElements(){return[...Array(this.maxValue).keys()].reduce(((t,i)=>t.concat(i+.5===this.value?"fa/star-sharp-half-stroke-regular":i+1<=this.value?"fa/star-solid":"fa/star-regular")),[]).map((t=>i("gux-icon",{"icon-name":t,decorative:!0,size:"small"})))}getCompactRatingElement(){let t;return t=0===this.value?"fa/star-regular":"fa/star-solid",i("div",{class:"gux-star-rating-compact"},i("div",{class:"gux-star-rating-label-value"},i("gux-icon",{tabindex:"0",ref:t=>this.compactRatingElement=t,"icon-name":t,decorative:!0,size:"small"}),i("span",{class:"gux-star-rating-value"},this.value)),this.renderEditRatingButton())}renderEditRatingButton(){if(!this.readonly)return i("div",{class:"gux-edit-rating-button"},i("gux-button",{tabindex:"-1",onClick:()=>{this.togglePopover()},id:"popover-target",accent:"inline",disabled:this.disabled},this.i18n("editRating")),i("gux-popover-beta",{position:"bottom-start",for:"popover-target","is-open":this.isOpen},i("gux-rating",{tabindex:"-1",value:this.value,"max-value":this.maxValue,increment:this.increment,readonly:this.readonly,onClick:t=>this.handlePopoverRatingChange(t),"aria-label":this.ariaLabel,"aria-labelledby":this.ariaLabelledby})))}togglePopover(){this.isOpen=!this.isOpen}handlePopoverRatingChange(t){this.value=t.target.value,r(this.root,"input"),r(this.root,"change")}getTabIndex(){return this.disabled?-1:0}componentWillLoad(){n(this.root)}async componentWillRender(){this.i18n=await l(this.root,u)}componentDidLoad(){this.root.getAttribute("aria-label")||this.root.getAttribute("aria-labelledby")||o(this.root,"`gux-rating` requires a label. Either provide a label and associate it with the gux-rating element using `aria-labelledby` or add an `aria-label` attribute to the gux-rating element.")}renderStars(){return this.compact?this.getCompactRatingElement():this.getRatingStarElements()}render(){return i(a,{key:"ed9db3fa3b92555c69e6fc2abe7b63b3f3c23bf1",role:"spinbutton",tabindex:this.getTabIndex(),"aria-readonly":this.readonly.toString(),"aria-valuenow":this.value,"aria-valuemin":"0","aria-valuemax":this.maxValue},i("div",{key:"ea9c04b9fa8c5e901fa4afb3e70a20bc7aafb6dc",ref:t=>this.starContainer=t,class:{"gux-rating-star-container":!0,"gux-disabled":this.disabled,"gux-compact":this.compact}},this.renderStars()))}get root(){return e(this)}};(function(t,i,a,e){var r,s=arguments.length,n=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,e);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(n=(s<3?r(n):s>3?r(i,a,n):r(i,a))||n);s>3&&n&&Object.defineProperty(i,a,n)})([g({triggerEvents:"mousedown"})],c.prototype,"onClickOutside",null),c.style=":host{display:inline-block;min-inline-size:fit-content;user-select:none}:host(:host:focus-visible){outline:var(--gse-semantic-focusOutline-sm-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset);box-shadow:0 0 0 1px var(--gse-semantic-border-focus)}.gux-rating-star-container{display:flex;gap:var(--gse-ui-rating-star-gap);justify-content:space-between;color:var(--gse-ui-rating-default-color)}.gux-rating-star-container.gux-disabled{color:var(--gse-ui-rating-disabled-color);pointer-events:none;opacity:var(--gse-ui-rating-disabled-opacity)}.gux-rating-star-container gux-icon{flex:0 0 auto;color:var(--gse-ui-rating-default-color)}.gux-rating-star-container:not(.gux-compact) gux-icon:hover:not(.gux-disabled){color:var(--gse-ui-rating-hover-color);cursor:pointer}.gux-rating-star-container .gux-star-rating-compact{display:flex;flex-direction:column;gap:var(--gse-ui-ratingGroup-shortened-edit-gap);align-items:flex-start;justify-content:center}.gux-rating-star-container .gux-star-rating-compact .gux-star-rating-label-value{display:flex;flex-direction:row;gap:var(--gse-ui-ratingGroup-shortened-gap);align-items:center;justify-content:center}.gux-rating-star-container .gux-star-rating-compact .gux-star-rating-value{font-family:var(--gse-ui-ratingGroup-text-fontFamily);font-size:var(--gse-ui-ratingGroup-text-fontSize);font-weight:var(--gse-ui-ratingGroup-text-fontWeight);line-height:var(--gse-ui-ratingGroup-text-lineHeight);color:var(--gse-ui-ratingGroup-label)}";export{c as gux_rating}
@@ -1 +1 @@
1
- import{r as e,h as t,a as i}from"./p-COgvjwDR.js";import{t as r}from"./p-BEMpuBA2.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:"6c6acfab276f54a672fb64934bf5ef5faa663f6b",class:{"gux-selector-card":!0,[`gux-${this.variant}`]:!0,"gux-disabled":this.disabled}},t("div",{key:"44fd2ef3df27c24de77d17baa59df344ec20e5d6",class:"gux-content"},t("div",{key:"69395d3a7b6fd0b32c483f95a815c826b6a19469",class:"gux-icon"},t("slot",{key:"67adc625cd8d46bb25fb5d2e8384375e52d8d7fc",name:"icon"})),t("div",{key:"a31bd052a23407e320146a7a67eb982025769e0f",class:"gux-label-container"},t("slot",{key:"c8a99dfec8b2dd474a1eb9427dae5d46561b9c0c",name:"label"})),t("slot",{key:"c698027026fdbf513c6173442fbc94ee89c85fe0",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-COgvjwDR.js";import{t as r}from"./p-Dfk0nYGa.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:"6c6acfab276f54a672fb64934bf5ef5faa663f6b",class:{"gux-selector-card":!0,[`gux-${this.variant}`]:!0,"gux-disabled":this.disabled}},t("div",{key:"44fd2ef3df27c24de77d17baa59df344ec20e5d6",class:"gux-content"},t("div",{key:"69395d3a7b6fd0b32c483f95a815c826b6a19469",class:"gux-icon"},t("slot",{key:"67adc625cd8d46bb25fb5d2e8384375e52d8d7fc",name:"icon"})),t("div",{key:"a31bd052a23407e320146a7a67eb982025769e0f",class:"gux-label-container"},t("slot",{key:"c8a99dfec8b2dd474a1eb9427dae5d46561b9c0c",name:"label"})),t("slot",{key:"c698027026fdbf513c6173442fbc94ee89c85fe0",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 +1 @@
1
- import{r as a,c as t,d as i,h as e,a as n}from"./p-COgvjwDR.js";import{a as s}from"./p-Bg4q97BS.js";import{t as o}from"./p-BEMpuBA2.js";const r=class{constructor(i){a(this,i),this.guxpaginationchange=t(this,"guxpaginationchange",7),this.reinstateLayoutBreakpoint=0,this.layout="advanced",this.currentPage=1,this.totalItems=0,this.itemsPerPage=25,this.disabled=!1}setPage(a){if(a<=0)return void this.setPage(1);const t=this.calculateTotalPages(this.totalItems,this.itemsPerPage);a>t?this.setPage(t):(this.currentPage=a,this.guxpaginationchange.emit({currentPage:this.currentPage,itemsPerPage:this.itemsPerPage}))}handleInternalitemsperpagechange(a){this.itemsPerPage=a.detail,this.setPage(1)}handleInternalcurrentpagechange(a){this.setPage(a.detail)}calculateTotalPages(a,t){return Math.max(1,Math.ceil(a/t))}calculateCurrentPage(a,t){return Math.max(a>0?1:0,Math.min(t,a))}checkPaginationContainerWidthForLayout(){i((()=>{const a=this.root.shadowRoot.querySelector(".gux-pagination-container"),t=this.root.shadowRoot.querySelector(".gux-pagination-spacer"),i=a.clientWidth;t.clientWidth<24&&"simple"!==this.displayedLayout?(this.reinstateLayoutBreakpoint=i,this.displayedLayout="simple"):i>this.reinstateLayoutBreakpoint&&(this.reinstateLayoutBreakpoint=0,this.displayedLayout=this.layout)}))}componentWillLoad(){o(this.root,{variant:this.layout})}componentWillRender(){this.totalPages=this.calculateTotalPages(this.totalItems,this.itemsPerPage),this.currentPage=this.calculateCurrentPage(this.totalPages,this.currentPage)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.unobserve(this.root.shadowRoot.querySelector(".gux-pagination-container"))}componentDidLoad(){!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkPaginationContainerWidthForLayout()))),this.resizeObserver&&this.resizeObserver.observe(this.root.shadowRoot.querySelector(".gux-pagination-container")),s((()=>{this.checkPaginationContainerWidthForLayout()}),500)}render(){return e("div",{key:"a3457044c618f68d56a7949b38697c38b81366b4",class:"gux-pagination-container"},e("div",{key:"760f80259b8202e74622dc124f3e926e27ecd0d9",class:"gux-pagination-info"},e("gux-pagination-item-counts",{key:"84e7667f505e4cd402bb25025ec22a4c0117886c","total-items":this.totalItems,"current-page":this.currentPage,"items-per-page":this.itemsPerPage}),"advanced"===this.displayedLayout&&e("gux-pagination-items-per-page",{key:"5481d08f3dc86b70d897735de7fab5b941f1a449",disabled:this.disabled,"items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})),e("div",{key:"9e7e49f9de9278488c13b2d50d885a3d6fe2ef20",class:"gux-pagination-spacer"}),e("div",{key:"137cc8057bd270f62cb1f123ae2d893937f506c8",class:"gux-pagination-change"},e("gux-pagination-buttons",{key:"9f8141a4e2be3dfa43929dd9d270eae8d8ba27b3",disabled:this.disabled,layout:this.displayedLayout,"current-page":this.currentPage,"total-pages":this.totalPages,onInternalcurrentpagechange:this.handleInternalcurrentpagechange.bind(this)})))}get root(){return n(this)}};r.style=":host{display:block;block-size:var(--gse-ui-dataTableItems-cell-tablePagination-height);border-block-start:var(--gse-ui-dataTableItems-tablePagination-divider-width) var(--gse-ui-dataTableItems-tablePagination-divider-style) var(--gse-ui-dataTableItems-tablePagination-divider-color)}.gux-pagination-container{display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:center;padding:var(--gse-ui-dataTableItems-tablePagination-padding);background-color:var(--gse-ui-dataTableItems-tablePagination-defaultBackgroundColor)}.gux-pagination-container .gux-pagination-info{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-start;align-items:center;align-self:auto;order:0}.gux-pagination-container .gux-pagination-info>*{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-spacer{flex:1 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change:first-child{margin-inline-start:0}";export{r as gux_pagination}
1
+ import{r as a,c as t,d as i,h as e,a as n}from"./p-COgvjwDR.js";import{a as s}from"./p-Bg4q97BS.js";import{t as o}from"./p-Dfk0nYGa.js";const r=class{constructor(i){a(this,i),this.guxpaginationchange=t(this,"guxpaginationchange",7),this.reinstateLayoutBreakpoint=0,this.layout="advanced",this.currentPage=1,this.totalItems=0,this.itemsPerPage=25,this.disabled=!1}setPage(a){if(a<=0)return void this.setPage(1);const t=this.calculateTotalPages(this.totalItems,this.itemsPerPage);a>t?this.setPage(t):(this.currentPage=a,this.guxpaginationchange.emit({currentPage:this.currentPage,itemsPerPage:this.itemsPerPage}))}handleInternalitemsperpagechange(a){this.itemsPerPage=a.detail,this.setPage(1)}handleInternalcurrentpagechange(a){this.setPage(a.detail)}calculateTotalPages(a,t){return Math.max(1,Math.ceil(a/t))}calculateCurrentPage(a,t){return Math.max(a>0?1:0,Math.min(t,a))}checkPaginationContainerWidthForLayout(){i((()=>{const a=this.root.shadowRoot.querySelector(".gux-pagination-container"),t=this.root.shadowRoot.querySelector(".gux-pagination-spacer"),i=a.clientWidth;t.clientWidth<24&&"simple"!==this.displayedLayout?(this.reinstateLayoutBreakpoint=i,this.displayedLayout="simple"):i>this.reinstateLayoutBreakpoint&&(this.reinstateLayoutBreakpoint=0,this.displayedLayout=this.layout)}))}componentWillLoad(){o(this.root,{variant:this.layout})}componentWillRender(){this.totalPages=this.calculateTotalPages(this.totalItems,this.itemsPerPage),this.currentPage=this.calculateCurrentPage(this.totalPages,this.currentPage)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.unobserve(this.root.shadowRoot.querySelector(".gux-pagination-container"))}componentDidLoad(){!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkPaginationContainerWidthForLayout()))),this.resizeObserver&&this.resizeObserver.observe(this.root.shadowRoot.querySelector(".gux-pagination-container")),s((()=>{this.checkPaginationContainerWidthForLayout()}),500)}render(){return e("div",{key:"a3457044c618f68d56a7949b38697c38b81366b4",class:"gux-pagination-container"},e("div",{key:"760f80259b8202e74622dc124f3e926e27ecd0d9",class:"gux-pagination-info"},e("gux-pagination-item-counts",{key:"84e7667f505e4cd402bb25025ec22a4c0117886c","total-items":this.totalItems,"current-page":this.currentPage,"items-per-page":this.itemsPerPage}),"advanced"===this.displayedLayout&&e("gux-pagination-items-per-page",{key:"5481d08f3dc86b70d897735de7fab5b941f1a449",disabled:this.disabled,"items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})),e("div",{key:"9e7e49f9de9278488c13b2d50d885a3d6fe2ef20",class:"gux-pagination-spacer"}),e("div",{key:"137cc8057bd270f62cb1f123ae2d893937f506c8",class:"gux-pagination-change"},e("gux-pagination-buttons",{key:"9f8141a4e2be3dfa43929dd9d270eae8d8ba27b3",disabled:this.disabled,layout:this.displayedLayout,"current-page":this.currentPage,"total-pages":this.totalPages,onInternalcurrentpagechange:this.handleInternalcurrentpagechange.bind(this)})))}get root(){return n(this)}};r.style=":host{display:block;block-size:var(--gse-ui-dataTableItems-cell-tablePagination-height);border-block-start:var(--gse-ui-dataTableItems-tablePagination-divider-width) var(--gse-ui-dataTableItems-tablePagination-divider-style) var(--gse-ui-dataTableItems-tablePagination-divider-color)}.gux-pagination-container{display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:center;padding:var(--gse-ui-dataTableItems-tablePagination-padding);background-color:var(--gse-ui-dataTableItems-tablePagination-defaultBackgroundColor)}.gux-pagination-container .gux-pagination-info{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-start;align-items:center;align-self:auto;order:0}.gux-pagination-container .gux-pagination-info>*{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-spacer{flex:1 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change:first-child{margin-inline-start:0}";export{r as gux_pagination}
@@ -1 +1 @@
1
- import{r as t,h as e,H as o,a as s}from"./p-COgvjwDR.js";import{a as i,c as a,o as r,f as n,s as d,b as c}from"./p-C8aV-TzO.js";import{a as h}from"./p-Bg4q97BS.js";import{t as u}from"./p-BEMpuBA2.js";import{h as p}from"./p-QGDBFOq1.js";import{b as l}from"./p-D2nzPgXC.js";import"./p-Cd4R0amv.js";var f={onMenuFocus:"Use the right arrow to enter the submenu, and the left arrow to return to the previous menu",onTargetFocus:"A popup has appeared. Press the down arrow to enter the menu"};const m=class{constructor(e){t(this,e),this.isShown=!1}onKeydown(t){if(t.stopPropagation(),this.isShown)switch(t.key){case"Escape":case"ArrowLeft":case"ArrowUp":return void this.root.focus();case"ArrowDown":return t.preventDefault(),void this.focusOnMenu();case"Enter":return void(this.hideDelayTimeout=h((()=>{this.focusOnMenu()})))}}onKeyup(t){t.stopPropagation()," "!==t.key||(this.root===t.target?this.focusOnMenu():this.hideDelayTimeout=h((()=>{this.root.focus()})))}onmouseenter(){this.show()}onMouseleave(){this.hide()}onClick(t){0!==t.detail&&this.hide(),this.root.focus()}onFocusin(){this.isShown||this.announceElement.guxAnnounce(this.i18n("onTargetFocus")),this.show()}onFocusout(){this.hide()}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0}hide(){this.isShown&&(this.hideDelayTimeout=setTimeout((()=>{this.isShown=!1}),p))}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.root.isConnected?this.cleanupUpdatePosition=i(this.targetElement,this.menuContentElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.root&&a(this.targetElement,this.menuContentElement,{placement:"bottom-start",strategy:"fixed",middleware:[r(16),n(),d(),c({element:this.arrowElement,padding:16})]}).then((({x:t,y:e,middlewareData:o,placement:s})=>{var i;Object.assign(this.menuContentElement.style,{left:`${t}px`,top:`${e}px`});const a=s.split("-")[0],r={top:"bottom",right:"left",bottom:"top",left:"right"}[a],n={top:0,right:90,bottom:180,left:-90}[a];if(o.arrow){const{x:t,y:e}=o.arrow;Object.assign(null===(i=this.arrowElement)||void 0===i?void 0:i.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:"",right:"",bottom:"",[r]:"-12px",transform:`rotate(${n}deg)`})}}))}focusOnMenu(){if(this.menuContentElement.contains(document.activeElement))return;this.hideDelayTimeout=h((()=>{this.announceElement.guxAnnounce(this.i18n("onMenuFocus"))}));const t=this.root.querySelector("gux-menu");Array.from(t.children)[0].guxFocus()}async componentWillLoad(){u(this.root),this.i18n=await l(this.root,f)}componentDidLoad(){this.isShown&&this.runUpdatePosition()}componentDidUpdate(){this.isShown?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return e(o,{key:"e63550a1d6bd46a833e2d9053972e18154d516d1",tabIndex:0,"aria-haspopup":"true"},e("gux-announce-beta",{key:"89859f6ac2382dc070c599fe25978ccab17be9e7",ref:t=>this.announceElement=t}),e("span",{key:"0da478edbd7914dd84f606f48adc19c3db587d15",ref:t=>this.targetElement=t},e("slot",{key:"555653f60007b0afc0f179758abea8fd1abe177c",name:"target"})),e("div",{key:"d772af60894dc6b37fa6243e6b90c1622ea79b75",class:{"gux-flyout-menu-content":!0,"gux-shown":this.isShown},ref:t=>this.menuContentElement=t},e("div",{key:"029dbd6582546f044b52752e7259aba60e68fdf3",ref:t=>this.arrowElement=t,class:"gux-arrow"},e("div",{key:"664c59bfe7fa693cfdd981628bab735acf2407c5",class:"gux-arrow-caret"})),e("slot",{key:"a4c61997204f12dfadbeab2dab0161760d6ec25b",name:"menu"})))}get root(){return s(this)}};m.style=":host{z-index:var(--gse-semantic-zIndex-popover);color:var(--gse-ui-menu-option-label-foregroundColor);cursor:default}:host(:focus){outline:none}:host(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-flyout-menu-content{position:fixed;display:none;border:none;border-radius:var(--gse-ui-menu-borderRadius);opacity:0}.gux-flyout-menu-content.gux-shown{display:flex;animation-name:fade-in;animation-duration:100ms;animation-delay:350ms;animation-fill-mode:forwards}.gux-flyout-menu-content .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-flyout-menu-content .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))}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}";export{m as gux_flyout_menu}
1
+ import{r as t,h as e,H as o,a as s}from"./p-COgvjwDR.js";import{a as i,c as a,o as r,f as n,s as d,b as c}from"./p-C8aV-TzO.js";import{a as h}from"./p-Bg4q97BS.js";import{t as u}from"./p-Dfk0nYGa.js";import{h as l}from"./p-QGDBFOq1.js";import{b as p}from"./p-D2nzPgXC.js";import"./p-Cd4R0amv.js";var f={onMenuFocus:"Use the right arrow to enter the submenu, and the left arrow to return to the previous menu",onTargetFocus:"A popup has appeared. Press the down arrow to enter the menu"};const m=class{constructor(e){t(this,e),this.isShown=!1}onKeydown(t){if(t.stopPropagation(),this.isShown)switch(t.key){case"Escape":case"ArrowLeft":case"ArrowUp":return void this.root.focus();case"ArrowDown":return t.preventDefault(),void this.focusOnMenu();case"Enter":return void(this.hideDelayTimeout=h((()=>{this.focusOnMenu()})))}}onKeyup(t){t.stopPropagation()," "!==t.key||(this.root===t.target?this.focusOnMenu():this.hideDelayTimeout=h((()=>{this.root.focus()})))}onmouseenter(){this.show()}onMouseleave(){this.hide()}onClick(t){0!==t.detail&&this.hide(),this.root.focus()}onFocusin(){this.isShown||this.announceElement.guxAnnounce(this.i18n("onTargetFocus")),this.show()}onFocusout(){this.hide()}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0}hide(){this.isShown&&(this.hideDelayTimeout=setTimeout((()=>{this.isShown=!1}),l))}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.root.isConnected?this.cleanupUpdatePosition=i(this.targetElement,this.menuContentElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.root&&a(this.targetElement,this.menuContentElement,{placement:"bottom-start",strategy:"fixed",middleware:[r(16),n(),d(),c({element:this.arrowElement,padding:16})]}).then((({x:t,y:e,middlewareData:o,placement:s})=>{var i;Object.assign(this.menuContentElement.style,{left:`${t}px`,top:`${e}px`});const a=s.split("-")[0],r={top:"bottom",right:"left",bottom:"top",left:"right"}[a],n={top:0,right:90,bottom:180,left:-90}[a];if(o.arrow){const{x:t,y:e}=o.arrow;Object.assign(null===(i=this.arrowElement)||void 0===i?void 0:i.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:"",right:"",bottom:"",[r]:"-12px",transform:`rotate(${n}deg)`})}}))}focusOnMenu(){if(this.menuContentElement.contains(document.activeElement))return;this.hideDelayTimeout=h((()=>{this.announceElement.guxAnnounce(this.i18n("onMenuFocus"))}));const t=this.root.querySelector("gux-menu");Array.from(t.children)[0].guxFocus()}async componentWillLoad(){u(this.root),this.i18n=await p(this.root,f)}componentDidLoad(){this.isShown&&this.runUpdatePosition()}componentDidUpdate(){this.isShown?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return e(o,{key:"e63550a1d6bd46a833e2d9053972e18154d516d1",tabIndex:0,"aria-haspopup":"true"},e("gux-announce-beta",{key:"89859f6ac2382dc070c599fe25978ccab17be9e7",ref:t=>this.announceElement=t}),e("span",{key:"0da478edbd7914dd84f606f48adc19c3db587d15",ref:t=>this.targetElement=t},e("slot",{key:"555653f60007b0afc0f179758abea8fd1abe177c",name:"target"})),e("div",{key:"d772af60894dc6b37fa6243e6b90c1622ea79b75",class:{"gux-flyout-menu-content":!0,"gux-shown":this.isShown},ref:t=>this.menuContentElement=t},e("div",{key:"029dbd6582546f044b52752e7259aba60e68fdf3",ref:t=>this.arrowElement=t,class:"gux-arrow"},e("div",{key:"664c59bfe7fa693cfdd981628bab735acf2407c5",class:"gux-arrow-caret"})),e("slot",{key:"a4c61997204f12dfadbeab2dab0161760d6ec25b",name:"menu"})))}get root(){return s(this)}};m.style=":host{z-index:var(--gse-semantic-zIndex-popover);color:var(--gse-ui-menu-option-label-foregroundColor);cursor:default}:host(:focus){outline:none}:host(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-flyout-menu-content{position:fixed;display:none;border:none;border-radius:var(--gse-ui-menu-borderRadius);opacity:0}.gux-flyout-menu-content.gux-shown{display:flex;animation-name:fade-in;animation-duration:100ms;animation-delay:350ms;animation-fill-mode:forwards}.gux-flyout-menu-content .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-flyout-menu-content .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))}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}";export{m as gux_flyout_menu}
@@ -1 +1 @@
1
- import{r as t,c as i,d as e,h as r,a as o}from"./p-COgvjwDR.js";import{O as n}from"./p-DKPAGIJA.js";import{h as s}from"./p-qzV3vtOw.js";import{t as a}from"./p-BEMpuBA2.js";import{g as h}from"./p-Bqbn0_rB.js";import{b as d}from"./p-D2nzPgXC.js";import{t as l}from"./p-DN3YAdAX.js";import{a as c}from"./p-Bg4q97BS.js";import{O as u}from"./p-vOC0-qDq.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 d(this.root,l),this.hasToolbar=this.hasToolbarChildren()}componentDidLoad(){c((()=>{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=h(this.root,'gux-rich-text-editor-action-group[slot="typographical-emphasis"]',"gux-hidden"),this.listsAndIndentationActions=h(this.root,'gux-rich-text-editor-action-group[slot="lists-indentation"]',"gux-hidden"),this.textStylingActions=h(this.root,'gux-rich-text-editor-action-group[slot="text-styling"]',"gux-hidden"),this.insertingActions=h(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:"87485db6853a7b91ed7e41f6b940583fdb1f4993",class:{"gux-rich-text-editor-container":!0,"gux-disabled":this.disabled,"gux-toolbar-hidden":!this.hasToolbar}},r("div",{key:"c2ec7a7097b07b58e34e0b6a8ee8f39648974c3f",class:"gux-rich-text-editor-toolbar-container"},this.renderTypographicalEmphasis(),this.renderTextStyling(),this.renderListsIndentation(),this.renderInserting(),this.renderTextEditorMenu(),this.renderGlobalAction()),r("slot",{key:"647b6ed5016b40fe4c21ede9d01e82f47ab36b80",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-COgvjwDR.js";import{O as n}from"./p-DKPAGIJA.js";import{h as s}from"./p-qzV3vtOw.js";import{t as a}from"./p-Dfk0nYGa.js";import{g as h}from"./p-Bqbn0_rB.js";import{b as d}from"./p-D2nzPgXC.js";import{t as l}from"./p-DN3YAdAX.js";import{a as c}from"./p-Bg4q97BS.js";import{O as u}from"./p-vOC0-qDq.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 d(this.root,l),this.hasToolbar=this.hasToolbarChildren()}componentDidLoad(){c((()=>{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=h(this.root,'gux-rich-text-editor-action-group[slot="typographical-emphasis"]',"gux-hidden"),this.listsAndIndentationActions=h(this.root,'gux-rich-text-editor-action-group[slot="lists-indentation"]',"gux-hidden"),this.textStylingActions=h(this.root,'gux-rich-text-editor-action-group[slot="text-styling"]',"gux-hidden"),this.insertingActions=h(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:"87485db6853a7b91ed7e41f6b940583fdb1f4993",class:{"gux-rich-text-editor-container":!0,"gux-disabled":this.disabled,"gux-toolbar-hidden":!this.hasToolbar}},r("div",{key:"c2ec7a7097b07b58e34e0b6a8ee8f39648974c3f",class:"gux-rich-text-editor-toolbar-container"},this.renderTypographicalEmphasis(),this.renderTextStyling(),this.renderListsIndentation(),this.renderInserting(),this.renderTextEditorMenu(),this.renderGlobalAction()),r("slot",{key:"647b6ed5016b40fe4c21ede9d01e82f47ab36b80",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 s,a as o}from"./p-COgvjwDR.js";import{t as e}from"./p-BEMpuBA2.js";const r=class{constructor(s){t(this,s)}componentWillLoad(){e(this.root)}render(){return s("span",{key:"5edd5c0b02d6605dd8902bb830f5733bc6dc597c",class:"gux-sr-only"},s("slot",{key:"605827494225b8ed1ff05fce6704ec80381ad796"}))}get root(){return o(this)}};r.style=":host{display:contents}.gux-sr-only{}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip-path:inset(50%)}";export{r as gux_screen_reader_beta}
1
+ import{r as t,h as s,a as o}from"./p-COgvjwDR.js";import{t as e}from"./p-Dfk0nYGa.js";const r=class{constructor(s){t(this,s)}componentWillLoad(){e(this.root)}render(){return s("span",{key:"5edd5c0b02d6605dd8902bb830f5733bc6dc597c",class:"gux-sr-only"},s("slot",{key:"605827494225b8ed1ff05fce6704ec80381ad796"}))}get root(){return o(this)}};r.style=":host{display:contents}.gux-sr-only{}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip-path:inset(50%)}";export{r as gux_screen_reader_beta}
@@ -1 +1 @@
1
- import{r as e,h as t,a as i}from"./p-COgvjwDR.js";import{t as s}from"./p-BEMpuBA2.js";import{h as n}from"./p-qzV3vtOw.js";const a=class{constructor(t){e(this,t)}renderSlot(e){return n(this.root,e)?t("div",{class:`${e}`},t("slot",{name:`${e}`})):null}renderTitleDesc(){const e=n(this.root,"title"),i=n(this.root,"description");return e||i?t("div",{class:"gux-title-description"},e&&t("slot",{name:"title"}),i&&t("gux-truncate",{"max-lines":"2"},t("slot",{name:"description"}))):null}componentWillLoad(){s(this.root)}connectedCallback(){this.internals=this.root.attachInternals(),this.internals.role="banner"}render(){return t("div",{key:"33db49a00f60b51edef7d957db66a50df880eb54",class:"title-block"},this.renderSlot("icon"),this.renderTitleDesc(),this.renderSlot("badge"))}get root(){return i(this)}};a.style=":host{display:block;padding:var(--gse-ui-sidePanel-header-padding)}.title-block{display:flex;gap:var(--gse-ui-sidePanel-header-titleBlock-iconGap);padding:var(--gse-ui-sidePanel-header-titleBlock-padding)}.icon{flex:0 0 auto;align-content:center}.gux-title-description{flex:1 1 auto;inline-size:1px;font-family:var(--gse-ui-sidePanel-description-text-fontFamily);font-size:var(--gse-ui-sidePanel-description-text-fontSize);font-weight:var(--gse-ui-sidePanel-description-text-fontWeight);line-height:var(--gse-ui-sidePanel-description-text-lineHeight);color:var(--gse-ui-sidePanel-descriptionColor)}.badge{flex:0 0 auto;align-content:center}";export{a as gux_side_panel_header}
1
+ import{r as e,h as t,a as i}from"./p-COgvjwDR.js";import{t as n}from"./p-Dfk0nYGa.js";import{h as s}from"./p-qzV3vtOw.js";const a=class{constructor(t){e(this,t)}renderSlot(e){return s(this.root,e)?t("div",{class:`${e}`},t("slot",{name:`${e}`})):null}renderTitleDesc(){const e=s(this.root,"title"),i=s(this.root,"description");return e||i?t("div",{class:"gux-title-description"},e&&t("slot",{name:"title"}),i&&t("gux-truncate",{"max-lines":"2"},t("slot",{name:"description"}))):null}componentWillLoad(){n(this.root)}connectedCallback(){this.internals=this.root.attachInternals(),this.internals.role="banner"}render(){return t("div",{key:"33db49a00f60b51edef7d957db66a50df880eb54",class:"title-block"},this.renderSlot("icon"),this.renderTitleDesc(),this.renderSlot("badge"))}get root(){return i(this)}};a.style=":host{display:block;padding:var(--gse-ui-sidePanel-header-padding)}.title-block{display:flex;gap:var(--gse-ui-sidePanel-header-titleBlock-iconGap);padding:var(--gse-ui-sidePanel-header-titleBlock-padding)}.icon{flex:0 0 auto;align-content:center}.gux-title-description{flex:1 1 auto;inline-size:1px;font-family:var(--gse-ui-sidePanel-description-text-fontFamily);font-size:var(--gse-ui-sidePanel-description-text-fontSize);font-weight:var(--gse-ui-sidePanel-description-text-fontWeight);line-height:var(--gse-ui-sidePanel-description-text-lineHeight);color:var(--gse-ui-sidePanel-descriptionColor)}.badge{flex:0 0 auto;align-content:center}";export{a as gux_side_panel_header}
@@ -0,0 +1 @@
1
+ function e(e){return e?"true":"false"}export{e as b}
@@ -1 +1 @@
1
- var e="4.181.0";const t=[function(e){const[t,n,...o]=e.split(".");return{name:"spark-library",metadata:{fullVersion:`${t}.${n}.${o.join(".")}`,majorVersion:t,minorVersion:`${t}.${n}`}}}(e)];function n(){const e=window.newrelic;if(e){for(let o=0;o<20;o++){if(0==t.length)return void setTimeout(n,3e4);const o=t.shift();e.addPageAction(o.name,Object.assign(Object.assign({},o.metadata),{queueDepth:t.length}))}setTimeout(n,3e4)}}let o=!1;function r(r,i){window.newrelic&&(o||(o=!0,n()),document.contains(r)&&t.push({name:"spark-component",metadata:Object.assign(Object.assign({},i),{component:r.tagName.toLowerCase(),version:e})}))}export{r as t}
1
+ var e="4.182.0";const t=[function(e){const[t,n,...o]=e.split(".");return{name:"spark-library",metadata:{fullVersion:`${t}.${n}.${o.join(".")}`,majorVersion:t,minorVersion:`${t}.${n}`}}}(e)];function n(){const e=window.newrelic;if(e){for(let o=0;o<20;o++){if(0==t.length)return void setTimeout(n,3e4);const o=t.shift();e.addPageAction(o.name,Object.assign(Object.assign({},o.metadata),{queueDepth:t.length}))}setTimeout(n,3e4)}}let o=!1;function r(r,i){window.newrelic&&(o||(o=!0,n()),document.contains(r)&&t.push({name:"spark-component",metadata:Object.assign(Object.assign({},i),{component:r.tagName.toLowerCase(),version:e})}))}export{r as t}
@@ -1 +1 @@
1
- import{r as e,h as o,a as r}from"./p-COgvjwDR.js";import{O as i}from"./p-vOC0-qDq.js";import{h as t}from"./p-qzV3vtOw.js";import{b as l}from"./p-D2nzPgXC.js";import{a,G as s}from"./p-Dry1Kkrx.js";import{G as f,a as n,b as d}from"./p-DiDRSPEJ.js";import{g as u}from"./p-MAoEg4ig.js";import{t as h}from"./p-BEMpuBA2.js";import"./p-Cd4R0amv.js";var g={required:"Required"};const p=class{constructor(o){e(this,o),this.required=!1,this.indicatorMark="required",this.hasGroupError=!1,this.hasGroupHelp=!1,this.hasGroupLabelInfo=!1,this.disabled=!1}watchGroupError(e){const o=this.root.querySelectorAll("gux-form-field-radio");o&&o.forEach((o=>{o.hasGroupError=e}))}watchDisabled(){this.setDisabledRadio()}onMutation(){this.groupLabelInfo=this.root.querySelector("[slot=group-label-info]"),this.hasGroupError=t(this.root,"group-error"),this.hasGroupHelp=t(this.root,"group-help")}handleKeyup(e){var o,r;switch(e.key){case"Tab":this.root.matches(":focus-within")&&(null===(o=this.groupLabelInfo)||void 0===o||o.showTooltip(),this.hideTooltipTimeout=setTimeout((()=>{var e;null===(e=this.groupLabelInfo)||void 0===e||e.hideTooltip()}),6e3));break;case"Shift":break;default:this.root.matches(":focus-within")&&(null===(r=this.groupLabelInfo)||void 0===r||r.hideTooltip(),clearTimeout(this.hideTooltipTimeout))}}onFocusout(){var e;null===(e=this.groupLabelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideTooltipTimeout)}async componentWillLoad(){this.getI18nValue=await l(this.root,g),this.groupLabelInfo=this.root.querySelector("[slot=group-label-info]"),this.hasGroupError=t(this.root,"group-error"),this.hasGroupHelp=t(this.root,"group-help"),this.hasGroupLabelInfo=t(this.root,"group-label-info"),this.setLabel(),this.setDisabledRadio(),h(this.root)}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}setDisabledRadio(){const e=this.root.querySelectorAll("gux-form-field-radio");e&&e.forEach((e=>{e.hasGroupDisabled=this.disabled}))}renderText(e,o=!1){if(o)return" "+e}render(){var e;return o(d,{key:"05c64757b4360c2cbde636f1b9c56bfa87bb1ed1",labelPosition:"above",disabled:this.disabled},o(n,{key:"ec3b592bb9814a3991941107459c486500f32ba1"},null===(e=this.label)||void 0===e?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(u(this.root,"group-error"),this.hasGroupError),this.renderText(u(this.root,"group-help"),this.hasGroupHelp),this.renderText(u(this.root,"group-label-info"),this.hasGroupLabelInfo)),o(f,{key:"e633013670cd3b1d623ffc5af52272d66b88a5b9",position:"above",required:this.required},o("slot",{key:"4c44be52fa7bd735bfcedb8b32034ab0596e5667",name:"group-label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"5d23a198f2cc49a64d9e09da30a360861254e465",variant:this.indicatorMark,required:this.required}),o("slot",{key:"b1ff651a76c99d7347903d4cfb4ebeed0028516d",name:"group-label-info"})),o("slot",{key:"8bf311b110c4d56f6127ed9faec116e05b129918"}),o(s,{key:"cc188359f1812cfbd4eff1e2ce5cbaa3c843ba77",show:this.hasGroupError},o("slot",{key:"28b1c773eefb6e64a149aa656d63a5b8395dcf40",name:"group-error"})),o(a,{key:"c27f1d0a442422c08018734031295f7afd35f345",show:!this.hasGroupError&&this.hasGroupHelp},o("slot",{key:"20eca05d8843a71929c0d96af015f83bfd596e40",name:"group-help"})))}setLabel(){this.label=this.root.querySelector('label[slot="group-label"]')}get root(){return r(this)}static get watchers(){return{hasGroupError:["watchGroupError"],disabled:["watchDisabled"]}}};(function(e,o,r,i){var t,l=arguments.length,a=l<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,r,i);else for(var s=e.length-1;s>=0;s--)(t=e[s])&&(a=(l<3?t(a):l>3?t(o,r,a):t(o,r))||a);l>3&&a&&Object.defineProperty(o,r,a)})([i({childList:!0,subtree:!0})],p.prototype,"onMutation",null),p.style=".gux-form-field-fieldset-container{display:flex;min-inline-size:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-visual-label{display:inline-flex;flex:1 0 auto}.gux-form-field-visual-label ::slotted(label){min-inline-size:0}.gux-form-field-visual-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-visual-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-screenreader{display:none}.gux-form-field-screenreader-label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block}::slotted(gux-form-field-radio){padding-block-start:var(--gse-ui-formControl-group-gapItems)}::slotted(gux-form-field-radio:first-of-type){padding-block-start:0}:host([disabled]) ::slotted(label){opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}";export{p as gux_form_field_radio_group_beta}
1
+ import{r as e,h as o,a as r}from"./p-COgvjwDR.js";import{O as i}from"./p-vOC0-qDq.js";import{h as t}from"./p-qzV3vtOw.js";import{b as l}from"./p-D2nzPgXC.js";import{a,G as s}from"./p-Dry1Kkrx.js";import{G as f,a as n,b as d}from"./p-DiDRSPEJ.js";import{g as u}from"./p-MAoEg4ig.js";import{t as h}from"./p-Dfk0nYGa.js";import"./p-Cd4R0amv.js";var g={required:"Required"};const p=class{constructor(o){e(this,o),this.required=!1,this.indicatorMark="required",this.hasGroupError=!1,this.hasGroupHelp=!1,this.hasGroupLabelInfo=!1,this.disabled=!1}watchGroupError(e){const o=this.root.querySelectorAll("gux-form-field-radio");o&&o.forEach((o=>{o.hasGroupError=e}))}watchDisabled(){this.setDisabledRadio()}onMutation(){this.groupLabelInfo=this.root.querySelector("[slot=group-label-info]"),this.hasGroupError=t(this.root,"group-error"),this.hasGroupHelp=t(this.root,"group-help")}handleKeyup(e){var o,r;switch(e.key){case"Tab":this.root.matches(":focus-within")&&(null===(o=this.groupLabelInfo)||void 0===o||o.showTooltip(),this.hideTooltipTimeout=setTimeout((()=>{var e;null===(e=this.groupLabelInfo)||void 0===e||e.hideTooltip()}),6e3));break;case"Shift":break;default:this.root.matches(":focus-within")&&(null===(r=this.groupLabelInfo)||void 0===r||r.hideTooltip(),clearTimeout(this.hideTooltipTimeout))}}onFocusout(){var e;null===(e=this.groupLabelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideTooltipTimeout)}async componentWillLoad(){this.getI18nValue=await l(this.root,g),this.groupLabelInfo=this.root.querySelector("[slot=group-label-info]"),this.hasGroupError=t(this.root,"group-error"),this.hasGroupHelp=t(this.root,"group-help"),this.hasGroupLabelInfo=t(this.root,"group-label-info"),this.setLabel(),this.setDisabledRadio(),h(this.root)}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}setDisabledRadio(){const e=this.root.querySelectorAll("gux-form-field-radio");e&&e.forEach((e=>{e.hasGroupDisabled=this.disabled}))}renderText(e,o=!1){if(o)return" "+e}render(){var e;return o(d,{key:"05c64757b4360c2cbde636f1b9c56bfa87bb1ed1",labelPosition:"above",disabled:this.disabled},o(n,{key:"ec3b592bb9814a3991941107459c486500f32ba1"},null===(e=this.label)||void 0===e?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(u(this.root,"group-error"),this.hasGroupError),this.renderText(u(this.root,"group-help"),this.hasGroupHelp),this.renderText(u(this.root,"group-label-info"),this.hasGroupLabelInfo)),o(f,{key:"e633013670cd3b1d623ffc5af52272d66b88a5b9",position:"above",required:this.required},o("slot",{key:"4c44be52fa7bd735bfcedb8b32034ab0596e5667",name:"group-label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"5d23a198f2cc49a64d9e09da30a360861254e465",variant:this.indicatorMark,required:this.required}),o("slot",{key:"b1ff651a76c99d7347903d4cfb4ebeed0028516d",name:"group-label-info"})),o("slot",{key:"8bf311b110c4d56f6127ed9faec116e05b129918"}),o(s,{key:"cc188359f1812cfbd4eff1e2ce5cbaa3c843ba77",show:this.hasGroupError},o("slot",{key:"28b1c773eefb6e64a149aa656d63a5b8395dcf40",name:"group-error"})),o(a,{key:"c27f1d0a442422c08018734031295f7afd35f345",show:!this.hasGroupError&&this.hasGroupHelp},o("slot",{key:"20eca05d8843a71929c0d96af015f83bfd596e40",name:"group-help"})))}setLabel(){this.label=this.root.querySelector('label[slot="group-label"]')}get root(){return r(this)}static get watchers(){return{hasGroupError:["watchGroupError"],disabled:["watchDisabled"]}}};(function(e,o,r,i){var t,l=arguments.length,a=l<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,r,i);else for(var s=e.length-1;s>=0;s--)(t=e[s])&&(a=(l<3?t(a):l>3?t(o,r,a):t(o,r))||a);l>3&&a&&Object.defineProperty(o,r,a)})([i({childList:!0,subtree:!0})],p.prototype,"onMutation",null),p.style=".gux-form-field-fieldset-container{display:flex;min-inline-size:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-visual-label{display:inline-flex;flex:1 0 auto}.gux-form-field-visual-label ::slotted(label){min-inline-size:0}.gux-form-field-visual-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-visual-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-screenreader{display:none}.gux-form-field-screenreader-label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block}::slotted(gux-form-field-radio){padding-block-start:var(--gse-ui-formControl-group-gapItems)}::slotted(gux-form-field-radio:first-of-type){padding-block-start:0}:host([disabled]) ::slotted(label){opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}";export{p as gux_form_field_radio_group_beta}
@@ -1 +1 @@
1
- import{r as e,f as t,h as s,H as r,a as o}from"./p-COgvjwDR.js";import{s as i}from"./p-BMRf5pjV.js";import{t as n}from"./p-BEMpuBA2.js";const a=class{constructor(t){e(this,t),this.disabled=!1,this.items=[]}onClick(e){e.stopPropagation();const t=e.target.closest("gux-segmented-control-item");t&&this.value!==t.value&&(this.value=t.value,i(this.root,"input"),i(this.root,"change"))}watchDisabled(){this.items.forEach((e=>{t(e)}))}slotChanged(){this.items=Array.from(this.root.children)}componentWillLoad(){n(this.root)}componentWillRender(){this.items.forEach((e=>{e.selected=e.value===this.value}))}render(){return s(r,{key:"5633b4ece2873cf8e70ce8713189f884405856ba",role:"group"},s("slot",{key:"8fadb4810a1ec06276da44a016d47da6fde89431",onSlotchange:this.slotChanged.bind(this)}))}get root(){return o(this)}static get watchers(){return{disabled:["watchDisabled"]}}};a.style=":host{display:inline-flex;block-size:var(--gse-ui-segmentedControl-height);padding:var(--gse-ui-segmentedControl-padding);background-color:var(--gse-ui-segmentedControl-container-background);border:var(--gse-ui-segmentedControl-border-width) var(--gse-ui-segmentedControl-border-style) var(--gse-ui-segmentedControl-border-color);border-radius:var(--gse-ui-segmentedControl-borderRadius)}";export{a as gux_segmented_control_beta}
1
+ import{r as e,f as t,h as s,H as r,a as o}from"./p-COgvjwDR.js";import{s as i}from"./p-BMRf5pjV.js";import{t as n}from"./p-Dfk0nYGa.js";const a=class{constructor(t){e(this,t),this.disabled=!1,this.items=[]}onClick(e){e.stopPropagation();const t=e.target.closest("gux-segmented-control-item");t&&this.value!==t.value&&(this.value=t.value,i(this.root,"input"),i(this.root,"change"))}watchDisabled(){this.items.forEach((e=>{t(e)}))}slotChanged(){this.items=Array.from(this.root.children)}componentWillLoad(){n(this.root)}componentWillRender(){this.items.forEach((e=>{e.selected=e.value===this.value}))}render(){return s(r,{key:"5633b4ece2873cf8e70ce8713189f884405856ba",role:"group"},s("slot",{key:"8fadb4810a1ec06276da44a016d47da6fde89431",onSlotchange:this.slotChanged.bind(this)}))}get root(){return o(this)}static get watchers(){return{disabled:["watchDisabled"]}}};a.style=":host{display:inline-flex;block-size:var(--gse-ui-segmentedControl-height);padding:var(--gse-ui-segmentedControl-padding);background-color:var(--gse-ui-segmentedControl-container-background);border:var(--gse-ui-segmentedControl-border-width) var(--gse-ui-segmentedControl-border-style) var(--gse-ui-segmentedControl-border-color);border-radius:var(--gse-ui-segmentedControl-borderRadius)}";export{a as gux_segmented_control_beta}
@@ -1 +1 @@
1
- import{r as t,h as s,a as i}from"./p-COgvjwDR.js";import{b as e}from"./p-D2nzPgXC.js";import{t as o,f as r,g as n}from"./p-W4Ul1r1n.js";import{t as a}from"./p-BEMpuBA2.js";import{s as h}from"./p-BMRf5pjV.js";import"./p-Cd4R0amv.js";const l=class{constructor(s){t(this,s),this.hasError=!1,this.disabled=!1,this.required=!1,this.searchString=""}on(t){this.searchString=t.detail,this.filteredZoneList=this.filterTimeZoneList(this.timeZoneList),this.timeZoneOptionElements=this.renderTimeZones(this.filteredZoneList)}async componentWillLoad(){a(this.root),this.i18n=await e(this.root,o),this.timeZoneList=this.getTimeZoneOptionsList(),this.filteredZoneList=this.timeZoneList,this.timeZoneOptionElements=this.renderTimeZones(this.filteredZoneList)}componentDidLoad(){var t;(null===(t=this.root)||void 0===t?void 0:t.shadowRoot.querySelector("gux-dropdown")).addEventListener("change",(t=>{const s=t.target;this.value=null==s?void 0:s.value,h(this.root,"change")}))}filterTimeZoneList(t){const s=this.searchString;return t.filter((t=>this.getFormattedTimeZoneOption(t).toLowerCase().includes(s.toLowerCase())))}getTimeZoneOption(t){const s=this.i18n(t.name),i=t.countryName?this.i18n(t.countryName):void 0;if(!s)return;const e=r(t.currentTimeOffsetInMinutes),o=`${s}`,n=` (${this.i18n("UTC")}${e})`,a=`${n}`,h=o.replace(/_/g," "),l=`${i}`,u=o.startsWith("Etc/GMT")?2:1;return{value:t.name,localizedGroupName:s,formattedOffset:e,displayTextNameFormatted:h,displayTextOffset:n,baseDisplayOffsetText:a,countryName:l,defaultZone:"",priority:u}}getFormattedTimeZoneOption(t){return t.displayTextNameFormatted.startsWith("Etc/GMT")?t.displayTextNameFormatted.concat(t.baseDisplayOffsetText):t.displayTextNameFormatted.split("/").pop().concat(", ",t.countryName,t.baseDisplayOffsetText)}getTimeZoneOptionsList(){const t=n(),s=[];return t.forEach((t=>{const i=this.getTimeZoneOption(t);i&&s.push(i)})),s.sort(((t,s)=>{var i;return t.priority-s.priority||(null===(i=t.displayTextNameFormatted)||void 0===i?void 0:i.localeCompare(s.displayTextNameFormatted))}))}getDefaultZones(){return[this.workspaceDefault,this.localDefault,this.customDefault].filter((t=>!!t))}getDefaultZoneList(){const t=this.getDefaultZones(),s=this.timeZoneList.reduce(((s,i)=>t.includes(i.value)?s.concat([Object.assign({},i)]):s),[]);return s.forEach((t=>{this.workspaceDefault===this.localDefault?t.defaultZone=`${this.i18n("localAndWorkspaceDefault")}`:t.value===this.workspaceDefault?t.defaultZone=`${this.i18n("workspaceDefault")}`:t.value===this.localDefault&&(t.defaultZone=`${this.i18n("localDefault")}`),t.value===this.customDefault&&(t.defaultZone=`(${this.customDefaultLabel})`)})),s}renderTimeZones(t){return t.map((t=>s("gux-option",{class:{"gux-has-defaults":""!==t.defaultZone},value:t.value},s("div",{class:"gux-option-wrapper"},s("div",null,this.getFormattedTimeZoneOption(t)),s("span",{class:"gux-default-zone"},t.defaultZone)))))}renderDefaultsList(){const t=this.renderTimeZones(this.getDefaultZoneList());if(t.length)return s("gux-option-group-beta",{label:this.i18n("default")},t)}renderAllTimeZoneOptionsList(){return s("gux-option-group-beta",{label:this.i18n("all")},this.timeZoneOptionElements)}render(){return s("gux-dropdown",{key:"0fb67bab1ec873244921bdfd9e02715a6c004660",class:{"has-defaults":!!this.workspaceDefault||!!this.localDefault||!!this.customDefault},"filter-type":"custom",placeholder:this.i18n("selectZone"),value:this.value,hasError:this.hasError,disabled:this.disabled},s("gux-listbox",{key:"9866ebe3ce78b38593497ac95768142733841094","aria-label":this.i18n("timeZones")},this.renderDefaultsList(),this.renderAllTimeZoneOptionsList()))}get root(){return i(this)}};l.style="gux-dropdown .zone-header{padding-block:8px 4px;padding-inline:12px;color:#6b7585;text-transform:uppercase}gux-dropdown gux-option{padding:var(--gse-ui-menu-option-padding)}gux-dropdown gux-option.gux-has-defaults{block-size:auto}gux-dropdown gux-option .gux-option-wrapper{display:flex;flex-direction:column}gux-dropdown gux-option .gux-default-zone{color:#626e84}";export{l as gux_time_zone_picker_beta}
1
+ import{r as t,h as s,a as i}from"./p-COgvjwDR.js";import{b as e}from"./p-D2nzPgXC.js";import{t as o,f as n,g as r}from"./p-W4Ul1r1n.js";import{t as a}from"./p-Dfk0nYGa.js";import{s as h}from"./p-BMRf5pjV.js";import"./p-Cd4R0amv.js";const l=class{constructor(s){t(this,s),this.hasError=!1,this.disabled=!1,this.required=!1,this.searchString=""}on(t){this.searchString=t.detail,this.filteredZoneList=this.filterTimeZoneList(this.timeZoneList),this.timeZoneOptionElements=this.renderTimeZones(this.filteredZoneList)}async componentWillLoad(){a(this.root),this.i18n=await e(this.root,o),this.timeZoneList=this.getTimeZoneOptionsList(),this.filteredZoneList=this.timeZoneList,this.timeZoneOptionElements=this.renderTimeZones(this.filteredZoneList)}componentDidLoad(){var t;(null===(t=this.root)||void 0===t?void 0:t.shadowRoot.querySelector("gux-dropdown")).addEventListener("change",(t=>{const s=t.target;this.value=null==s?void 0:s.value,h(this.root,"change")}))}filterTimeZoneList(t){const s=this.searchString;return t.filter((t=>this.getFormattedTimeZoneOption(t).toLowerCase().includes(s.toLowerCase())))}getTimeZoneOption(t){const s=this.i18n(t.name),i=t.countryName?this.i18n(t.countryName):void 0;if(!s)return;const e=n(t.currentTimeOffsetInMinutes),o=`${s}`,r=` (${this.i18n("UTC")}${e})`,a=`${r}`,h=o.replace(/_/g," "),l=`${i}`,u=o.startsWith("Etc/GMT")?2:1;return{value:t.name,localizedGroupName:s,formattedOffset:e,displayTextNameFormatted:h,displayTextOffset:r,baseDisplayOffsetText:a,countryName:l,defaultZone:"",priority:u}}getFormattedTimeZoneOption(t){return t.displayTextNameFormatted.startsWith("Etc/GMT")?t.displayTextNameFormatted.concat(t.baseDisplayOffsetText):t.displayTextNameFormatted.split("/").pop().concat(", ",t.countryName,t.baseDisplayOffsetText)}getTimeZoneOptionsList(){const t=r(),s=[];return t.forEach((t=>{const i=this.getTimeZoneOption(t);i&&s.push(i)})),s.sort(((t,s)=>{var i;return t.priority-s.priority||(null===(i=t.displayTextNameFormatted)||void 0===i?void 0:i.localeCompare(s.displayTextNameFormatted))}))}getDefaultZones(){return[this.workspaceDefault,this.localDefault,this.customDefault].filter((t=>!!t))}getDefaultZoneList(){const t=this.getDefaultZones(),s=this.timeZoneList.reduce(((s,i)=>t.includes(i.value)?s.concat([Object.assign({},i)]):s),[]);return s.forEach((t=>{this.workspaceDefault===this.localDefault?t.defaultZone=`${this.i18n("localAndWorkspaceDefault")}`:t.value===this.workspaceDefault?t.defaultZone=`${this.i18n("workspaceDefault")}`:t.value===this.localDefault&&(t.defaultZone=`${this.i18n("localDefault")}`),t.value===this.customDefault&&(t.defaultZone=`(${this.customDefaultLabel})`)})),s}renderTimeZones(t){return t.map((t=>s("gux-option",{class:{"gux-has-defaults":""!==t.defaultZone},value:t.value},s("div",{class:"gux-option-wrapper"},s("div",null,this.getFormattedTimeZoneOption(t)),s("span",{class:"gux-default-zone"},t.defaultZone)))))}renderDefaultsList(){const t=this.renderTimeZones(this.getDefaultZoneList());if(t.length)return s("gux-option-group-beta",{label:this.i18n("default")},t)}renderAllTimeZoneOptionsList(){return s("gux-option-group-beta",{label:this.i18n("all")},this.timeZoneOptionElements)}render(){return s("gux-dropdown",{key:"0fb67bab1ec873244921bdfd9e02715a6c004660",class:{"has-defaults":!!this.workspaceDefault||!!this.localDefault||!!this.customDefault},"filter-type":"custom",placeholder:this.i18n("selectZone"),value:this.value,hasError:this.hasError,disabled:this.disabled},s("gux-listbox",{key:"9866ebe3ce78b38593497ac95768142733841094","aria-label":this.i18n("timeZones")},this.renderDefaultsList(),this.renderAllTimeZoneOptionsList()))}get root(){return i(this)}};l.style="gux-dropdown .zone-header{padding-block:8px 4px;padding-inline:12px;color:#6b7585;text-transform:uppercase}gux-dropdown gux-option{padding:var(--gse-ui-menu-option-padding)}gux-dropdown gux-option.gux-has-defaults{block-size:auto}gux-dropdown gux-option .gux-option-wrapper{display:flex;flex-direction:column}gux-dropdown gux-option .gux-default-zone{color:#626e84}";export{l as gux_time_zone_picker_beta}
@@ -0,0 +1 @@
1
+ import{r as e,f as a,h as r,a as t}from"./p-COgvjwDR.js";import{b as s}from"./p-D2nzPgXC.js";import{t as i}from"./p-Dfk0nYGa.js";import"./p-Cd4R0amv.js";var o={breadcrumbs:"Breadcrumbs"};const n=class{constructor(a){e(this,a),this.accent="primary"}componentWillLoad(){i(this.root,{variant:this.accent})}async componentWillRender(){this.i18n=await s(this.root,o)}onSlotChange(){Array.from(this.root.children).forEach((e=>a(e)))}render(){return r("nav",{key:"f28644755d2c5053a1b7756621d2e0ddd076a64f","aria-label":this.i18n("breadcrumbs")},r("ol",{key:"d6e42de86f1addddcb45b08005085e615fcebc00"},r("slot",{key:"be51087d4684d64424a91de44e3d19fe2eeeb6f6",onSlotchange:this.onSlotChange.bind(this)})))}get root(){return t(this)}};n.style="ol{display:flex;flex-direction:row;flex-wrap:wrap;place-content:flex-start flex-start;align-items:center;padding:0;margin:0;list-style:none}";export{n as gux_breadcrumbs}