genesys-spark-components 4.134.1 → 4.135.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 (347) hide show
  1. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  2. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-avatar-beta.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-avatar-group-add-item-beta_3.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-avatar-group-item-beta.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-button_2.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-file-list-item.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-file-beta.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-file.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-number_2.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-link-beta.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +8 -2
  63. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-popover-beta.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-popover-list-beta.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-rich-highlight-list-item.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-rich-style-list-item_3.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-rich-text-editor-beta.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
  88. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-side-panel-beta.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-side-panel-heading.cjs.entry.js +1 -1
  91. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  92. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  93. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  95. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  96. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  97. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  98. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  99. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  100. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  101. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  102. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  103. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  104. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  105. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  106. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
  107. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  108. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  109. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  110. package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +1 -1
  111. package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
  112. package/dist/cjs/{usage-c07dac44.js → usage-88b0ad02.js} +1 -1
  113. package/dist/collection/components/beta/gux-side-panel/components/gux-modal-side-panel/gux-modal-side-panel.js +7 -1
  114. package/dist/esm/gux-accordion.entry.js +1 -1
  115. package/dist/esm/gux-action-button.entry.js +1 -1
  116. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  117. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  118. package/dist/esm/gux-announce-beta.entry.js +1 -1
  119. package/dist/esm/gux-avatar-beta.entry.js +1 -1
  120. package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
  121. package/dist/esm/gux-avatar-group-add-item-beta_3.entry.js +1 -1
  122. package/dist/esm/gux-avatar-group-beta.entry.js +1 -1
  123. package/dist/esm/gux-avatar-group-item-beta.entry.js +1 -1
  124. package/dist/esm/gux-badge.entry.js +1 -1
  125. package/dist/esm/gux-blank-state.entry.js +1 -1
  126. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  127. package/dist/esm/gux-button-multi.entry.js +1 -1
  128. package/dist/esm/gux-button-slot.entry.js +1 -1
  129. package/dist/esm/gux-button_2.entry.js +1 -1
  130. package/dist/esm/gux-calendar.entry.js +1 -1
  131. package/dist/esm/gux-card.entry.js +1 -1
  132. package/dist/esm/gux-column-manager.entry.js +1 -1
  133. package/dist/esm/gux-content-search.entry.js +1 -1
  134. package/dist/esm/gux-context-menu.entry.js +1 -1
  135. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  136. package/dist/esm/gux-date-beta.entry.js +1 -1
  137. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  138. package/dist/esm/gux-datepicker.entry.js +1 -1
  139. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  140. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  141. package/dist/esm/gux-dropdown-multi.entry.js +1 -1
  142. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  143. package/dist/esm/gux-file-list-item.entry.js +1 -1
  144. package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
  145. package/dist/esm/gux-flyout-menu.entry.js +1 -1
  146. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +1 -1
  147. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  148. package/dist/esm/gux-form-field-color.entry.js +1 -1
  149. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  150. package/dist/esm/gux-form-field-file-beta.entry.js +1 -1
  151. package/dist/esm/gux-form-field-file.entry.js +1 -1
  152. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  153. package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
  154. package/dist/esm/gux-form-field-number_2.entry.js +1 -1
  155. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  156. package/dist/esm/gux-form-field-radio-group-beta.entry.js +1 -1
  157. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  158. package/dist/esm/gux-form-field-range.entry.js +1 -1
  159. package/dist/esm/gux-form-field-search.entry.js +1 -1
  160. package/dist/esm/gux-form-field-select.entry.js +1 -1
  161. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  162. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  163. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  164. package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
  165. package/dist/esm/gux-form-footer.entry.js +1 -1
  166. package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
  167. package/dist/esm/gux-icon.entry.js +1 -1
  168. package/dist/esm/gux-inline-alert.entry.js +1 -1
  169. package/dist/esm/gux-label-info-beta.entry.js +1 -1
  170. package/dist/esm/gux-link-beta.entry.js +1 -1
  171. package/dist/esm/gux-list.entry.js +1 -1
  172. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  173. package/dist/esm/gux-loading-message.entry.js +1 -1
  174. package/dist/esm/gux-modal-legacy.entry.js +1 -1
  175. package/dist/esm/gux-modal-side-panel-beta.entry.js +8 -2
  176. package/dist/esm/gux-modal.entry.js +1 -1
  177. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  178. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  179. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  180. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  181. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  182. package/dist/esm/gux-pagination.entry.js +1 -1
  183. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  184. package/dist/esm/gux-popover-beta.entry.js +1 -1
  185. package/dist/esm/gux-popover-list-beta.entry.js +1 -1
  186. package/dist/esm/gux-popover-list.entry.js +1 -1
  187. package/dist/esm/gux-radial-loading.entry.js +1 -1
  188. package/dist/esm/gux-radial-progress.entry.js +1 -1
  189. package/dist/esm/gux-rating.entry.js +1 -1
  190. package/dist/esm/gux-rich-highlight-list-item.entry.js +1 -1
  191. package/dist/esm/gux-rich-style-list-item_3.entry.js +1 -1
  192. package/dist/esm/gux-rich-text-editor-action-link.entry.js +1 -1
  193. package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +1 -1
  194. package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +1 -1
  195. package/dist/esm/gux-rich-text-editor-action.entry.js +1 -1
  196. package/dist/esm/gux-rich-text-editor-beta.entry.js +1 -1
  197. package/dist/esm/gux-rich-text-editor-list.entry.js +1 -1
  198. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  199. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  200. package/dist/esm/gux-selector-card-beta.entry.js +1 -1
  201. package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
  202. package/dist/esm/gux-side-panel-beta.entry.js +1 -1
  203. package/dist/esm/gux-side-panel-heading.entry.js +1 -1
  204. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  205. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  206. package/dist/esm/gux-sort-control.entry.js +1 -1
  207. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  208. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  209. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  210. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  211. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  212. package/dist/esm/gux-table.entry.js +1 -1
  213. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  214. package/dist/esm/gux-tabs.entry.js +1 -1
  215. package/dist/esm/gux-tag.entry.js +1 -1
  216. package/dist/esm/gux-text-highlight.entry.js +1 -1
  217. package/dist/esm/gux-time-beta.entry.js +1 -1
  218. package/dist/esm/gux-time-picker.entry.js +1 -1
  219. package/dist/esm/gux-time-zone-beta.entry.js +1 -1
  220. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  221. package/dist/esm/gux-toast.entry.js +1 -1
  222. package/dist/esm/gux-toggle.entry.js +1 -1
  223. package/dist/esm/gux-tooltip-base-beta_2.entry.js +1 -1
  224. package/dist/esm/gux-tooltip_2.entry.js +1 -1
  225. package/dist/esm/{usage-fd6de4c9.js → usage-8ba41651.js} +1 -1
  226. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  227. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.hi.json +1 -1
  228. package/dist/genesys-webcomponents/{p-8d31e6ab.entry.js → p-00e4002c.entry.js} +1 -1
  229. package/dist/genesys-webcomponents/{p-2c47a1ea.entry.js → p-025e6493.entry.js} +1 -1
  230. package/dist/genesys-webcomponents/{p-d22de1c6.entry.js → p-02db99da.entry.js} +1 -1
  231. package/dist/genesys-webcomponents/p-078c2a62.entry.js +1 -0
  232. package/dist/genesys-webcomponents/{p-e3b4e120.entry.js → p-07981e8f.entry.js} +1 -1
  233. package/dist/genesys-webcomponents/{p-d596346b.entry.js → p-0aa0ec70.entry.js} +1 -1
  234. package/dist/genesys-webcomponents/{p-9bf59fc8.entry.js → p-0c05783c.entry.js} +1 -1
  235. package/dist/genesys-webcomponents/{p-8d609f1d.entry.js → p-14416da5.entry.js} +1 -1
  236. package/dist/genesys-webcomponents/{p-bfa1c181.entry.js → p-14a021b9.entry.js} +1 -1
  237. package/dist/genesys-webcomponents/p-1532a5f7.entry.js +1 -0
  238. package/dist/genesys-webcomponents/{p-7e064269.entry.js → p-1ada5cb4.entry.js} +1 -1
  239. package/dist/genesys-webcomponents/{p-81730077.entry.js → p-1b6c0fa4.entry.js} +1 -1
  240. package/dist/genesys-webcomponents/{p-3f959ed9.entry.js → p-1cfdec6e.entry.js} +1 -1
  241. package/dist/genesys-webcomponents/{p-39035aa6.entry.js → p-2198c1fb.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/{p-dfa175cd.entry.js → p-22b1959f.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/{p-fd80b110.entry.js → p-2334df23.entry.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-73aca5ed.entry.js → p-23b6dbe3.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/{p-8eb9f314.entry.js → p-25f30a43.entry.js} +1 -1
  246. package/dist/genesys-webcomponents/{p-702d4a41.entry.js → p-26ff0046.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-534ad2d0.entry.js → p-271c6ad8.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/{p-7b6e9643.entry.js → p-28a9f704.entry.js} +1 -1
  249. package/dist/genesys-webcomponents/{p-5ac15f5f.entry.js → p-29c3aa8c.entry.js} +1 -1
  250. package/dist/genesys-webcomponents/{p-35d83007.entry.js → p-346bbf33.entry.js} +1 -1
  251. package/dist/genesys-webcomponents/{p-dc9fb9a1.entry.js → p-357aac4f.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-e8a4e6bf.entry.js → p-36c3791a.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-85b5fadf.entry.js → p-3a496487.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-05d483c8.entry.js → p-3a6bae6a.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-931822e9.entry.js → p-3a821fda.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/{p-8bd86cc9.entry.js → p-3f764d68.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/{p-216d5682.entry.js → p-3f89bf04.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/{p-b0e7f8b4.entry.js → p-423fdbca.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/{p-2c5e8dad.entry.js → p-42904a18.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-45eeb11f.entry.js → p-43f9bbb0.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/{p-16090432.entry.js → p-473006c2.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/p-4810d0e1.entry.js +1 -0
  263. package/dist/genesys-webcomponents/{p-385d8b7c.entry.js → p-514c1ff1.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/{p-ea72ef17.entry.js → p-5177fad3.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-4ecbddad.entry.js → p-52f48b21.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-5503d1cb.entry.js → p-558bbbd2.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-00c2c79a.entry.js → p-558dae5a.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-119e78ca.entry.js → p-56000649.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-18ce4f9d.entry.js → p-58a52a33.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-0124bb2a.entry.js → p-5edcd737.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-c3f5e254.entry.js → p-60a676ff.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-ea885fd2.entry.js → p-62fd7e51.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-0caf424f.entry.js → p-654d56f7.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-37eb848c.entry.js → p-65d27ae5.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-14bbcf6e.entry.js → p-660fa308.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-d7c64849.entry.js → p-67d7b2cd.entry.js} +1 -1
  277. package/dist/genesys-webcomponents/{p-77ba7a88.entry.js → p-6a1d0f28.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-a0f7a07a.entry.js → p-6a76f1cd.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/{p-d6f7db39.entry.js → p-6b407ff6.entry.js} +1 -1
  280. package/dist/genesys-webcomponents/{p-d3ad393b.entry.js → p-6f49c58d.entry.js} +1 -1
  281. package/dist/genesys-webcomponents/{p-1053d898.entry.js → p-728ff83a.entry.js} +1 -1
  282. package/dist/genesys-webcomponents/{p-34fdcdf3.entry.js → p-74196f79.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/p-7bd40e77.entry.js +1 -0
  284. package/dist/genesys-webcomponents/{p-6e18dceb.entry.js → p-7c6ee52e.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/{p-94f0093c.entry.js → p-892f1eca.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-b91a65d8.entry.js → p-8e8cfc22.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-95b316de.entry.js → p-8ec6077e.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-f27ab906.entry.js → p-8fcee069.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-cddb0193.entry.js → p-907f404c.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/{p-8d43e1e4.entry.js → p-9140f269.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/{p-84ce0d52.entry.js → p-9428894c.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-80f9878e.entry.js → p-95902317.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-5521e853.entry.js → p-96d94fe6.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-67b09e6b.entry.js → p-97a57bf2.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-948ac99d.entry.js → p-9a20734f.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-bb5be6c2.entry.js → p-9a321ac3.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-37e9919b.entry.js → p-9cab3cef.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-4b2ca45c.entry.js → p-9d82dedb.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-05a0295a.entry.js → p-9e75716e.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-03e8acf8.entry.js → p-9febf63c.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/{p-6bf058db.entry.js → p-a09907a1.entry.js} +1 -1
  302. package/dist/genesys-webcomponents/{p-ac5e321d.entry.js → p-a16c4170.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-b24e2da6.entry.js → p-a1d19871.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-7c907228.entry.js → p-a41c97d9.entry.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-9ac12870.entry.js → p-a5a959bc.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-912f80b0.entry.js → p-a6737a10.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/{p-7893a21a.entry.js → p-b1a1327d.entry.js} +1 -1
  308. package/dist/genesys-webcomponents/{p-9baf0927.entry.js → p-b5e6ee29.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-b25c248a.entry.js → p-b87e0258.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-bc16866e.entry.js → p-b9074383.entry.js} +1 -1
  311. package/dist/genesys-webcomponents/{p-1c3c68fe.entry.js → p-bb9647b9.entry.js} +1 -1
  312. package/dist/genesys-webcomponents/{p-cc63f471.entry.js → p-bebbdb45.entry.js} +1 -1
  313. package/dist/genesys-webcomponents/{p-47eded1b.entry.js → p-beddf60b.entry.js} +1 -1
  314. package/dist/genesys-webcomponents/{p-d909530f.entry.js → p-c1ea933a.entry.js} +1 -1
  315. package/dist/genesys-webcomponents/{p-b224415b.entry.js → p-c25b86f3.entry.js} +1 -1
  316. package/dist/genesys-webcomponents/{p-3bb0802e.entry.js → p-c452a5da.entry.js} +1 -1
  317. package/dist/genesys-webcomponents/{p-976d8913.entry.js → p-c45ad133.entry.js} +1 -1
  318. package/dist/genesys-webcomponents/{p-a1b5bf54.entry.js → p-c4816c48.entry.js} +1 -1
  319. package/dist/genesys-webcomponents/{p-4fe027d4.entry.js → p-c526a9fc.entry.js} +1 -1
  320. package/dist/genesys-webcomponents/{p-66fa19ea.entry.js → p-c62b2a80.entry.js} +1 -1
  321. package/dist/genesys-webcomponents/{p-f896a3f8.entry.js → p-c769dc1d.entry.js} +1 -1
  322. package/dist/genesys-webcomponents/{p-8f2f95a9.entry.js → p-ca1b02de.entry.js} +1 -1
  323. package/dist/genesys-webcomponents/{p-28269fe3.entry.js → p-cd42e044.entry.js} +1 -1
  324. package/dist/genesys-webcomponents/{p-eafc94a8.entry.js → p-ceb947c8.entry.js} +1 -1
  325. package/dist/genesys-webcomponents/{p-adfef933.entry.js → p-d283ec89.entry.js} +1 -1
  326. package/dist/genesys-webcomponents/{p-9f3d1cc4.entry.js → p-d7321a49.entry.js} +1 -1
  327. package/dist/genesys-webcomponents/{p-1d49b0c2.entry.js → p-da9d9c4a.entry.js} +1 -1
  328. package/dist/genesys-webcomponents/{p-35f8138f.entry.js → p-df8d305a.entry.js} +1 -1
  329. package/dist/genesys-webcomponents/{p-2e98a15c.entry.js → p-e6d4646c.entry.js} +1 -1
  330. package/dist/genesys-webcomponents/{p-f689831c.entry.js → p-e743522a.entry.js} +1 -1
  331. package/dist/genesys-webcomponents/{p-96ed760b.entry.js → p-ef79d9e8.entry.js} +1 -1
  332. package/dist/genesys-webcomponents/{p-6bd8edab.entry.js → p-f0f03718.entry.js} +1 -1
  333. package/dist/genesys-webcomponents/{p-84ebc917.js → p-f15a6eca.js} +1 -1
  334. package/dist/genesys-webcomponents/{p-2f04d747.entry.js → p-f4a47d4b.entry.js} +1 -1
  335. package/dist/genesys-webcomponents/{p-1af0f7ba.entry.js → p-f70220c5.entry.js} +1 -1
  336. package/dist/genesys-webcomponents/{p-3184bf7f.entry.js → p-f825a43b.entry.js} +1 -1
  337. package/dist/genesys-webcomponents/{p-3f56d5eb.entry.js → p-fb2aa03d.entry.js} +1 -1
  338. package/dist/genesys-webcomponents/{p-daa2ed15.entry.js → p-fc7bc36c.entry.js} +1 -1
  339. package/dist/genesys-webcomponents/{p-ab78f51e.entry.js → p-ff57723d.entry.js} +1 -1
  340. package/dist/stencil-wrapper.js +1 -1
  341. package/dist/types/components/beta/gux-side-panel/components/gux-modal-side-panel/gux-modal-side-panel.d.ts +1 -0
  342. package/dist/types/stencil-wrapper.d.ts +1 -1
  343. package/package.json +1 -1
  344. package/dist/genesys-webcomponents/p-2a160656.entry.js +0 -1
  345. package/dist/genesys-webcomponents/p-4597e55c.entry.js +0 -1
  346. package/dist/genesys-webcomponents/p-a618e262.entry.js +0 -1
  347. package/dist/genesys-webcomponents/p-ca43c37e.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as e,h as i,g as t}from"./p-c2a62a18.js";import{b as o}from"./p-16feb2a1.js";import{O as r}from"./p-9df4dd07.js";import{a as l,o as a}from"./p-6b12dd16.js";import{t as s}from"./p-84ebc917.js";import{a as n,G as f}from"./p-546eb56a.js";import{G as d,a as h,b as u}from"./p-2c779f86.js";import{h as p}from"./p-6d8b4027.js";import{g}from"./p-0268a3e8.js";import{v as c,a as m}from"./p-4aaf349e.js";import"./p-4202e9f2.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const b={required:"Required"};const x=class{constructor(i){e(this,i),this.labelPosition=void 0,this.indicatorMark="required",this.computedLabelPosition="above",this.disabled=void 0,this.required=!1,this.hasError=!1,this.hasHelp=!1,this.hasLabelInfo=!1}watchValue(e){const i=this.root.querySelector("gux-phone-input-beta");i&&(i.hasError=e)}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=p(this.root,"error"),this.hasHelp=p(this.root,"help"),this.hasLabelInfo=p(this.root,"label-info")}handleKeyup(e){var i,t;"Tab"===e.key?this.input.matches(":focus-within")&&(null===(i=this.labelInfo)||void 0===i||i.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-within")&&(null===(t=this.labelInfo)||void 0===t||t.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}async componentWillLoad(){this.getI18nValue=await o(this.root,b),this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=p(this.root,"error"),this.hasHelp=p(this.root,"help"),this.hasLabelInfo=p(this.root,"label-info"),s(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){var e;return i(u,{key:"087189f3361114ed4f13434e822a81a8b59b8b20",labelPosition:this.computedLabelPosition},i(h,{key:"d8affd28b8eda3915f971608b658b6d953d65383"},null===(e=this.label)||void 0===e?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(g(this.root,"error"),this.hasError),this.renderText(g(this.root,"label-info"),this.hasLabelInfo)),i(d,{key:"94c00f283bde270bcbbcfc2062553a290fee4b3d",position:this.computedLabelPosition,required:this.required},i("slot",{key:"9833cb45b61a37a6205e6d2c306bb1c244ad8483",name:"label",onSlotchange:()=>this.setLabel()}),i("gux-form-field-label-indicator",{key:"c52319e2464390e6fe0b8d400d7a4f8efcfd4b15",variant:this.indicatorMark,required:this.required}),i("slot",{key:"23bced1f69ff8aa40fa099fb8a375bcdb6cff7be",name:"label-info"})),i("div",{key:"e6a6769c9aad15b22064d8d7e98c822a73ddd245",class:"gux-input-and-error-container"},i("div",{key:"9b56dec4803a50348ad009ab606dd140e56eeaf0",class:{"gux-input":!0,"gux-input-error":this.hasError}},i("div",{key:"453bfe88e66a785030f601dd536a092e5429ede7",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},i("slot",{key:"e65235dc28fc42e119149cc856f7d52fbf9b17ee"}))),i(n,{key:"52517e1615e9de2aa3059c7bd6fe056b2de956b3",show:this.hasError},i("slot",{key:"590f11da0b8a968d691dc57160ea0cc8e5b880d6",name:"error"})),i(f,{key:"810c7fb5f43e9ffe0b36d26a09a2b27da6ee077d",show:!this.hasError&&this.hasHelp},i("slot",{key:"1a0f19b8dd00f83f6ad5e392637af5a61f7e9a05",name:"help"}))))}renderText(e,i=!1){if(i)return" "+e}get variant(){return`phoneInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}setInput(){this.input=this.root.querySelector("gux-phone-input-beta"),this.disabled=this.input.disabled,this.required=this.input.required,this.disabledObserver=l(this.input,(e=>{this.disabled=e})),this.requiredObserver=a(this.input,(e=>{this.required=e})),c(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=m(this.label,this.labelPosition)}get root(){return t(this)}static get watchers(){return{hasError:["watchValue"]}}};(function(e,i,t,o){var r,l=arguments.length,a=l<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,i,t,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(l<3?r(a):l>3?r(i,t,a):r(i,t))||a);l>3&&a&&Object.defineProperty(i,t,a)})([r({childList:!0,subtree:!0})],x.prototype,"onMutation",null),x.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 1 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(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}::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)}.gux-input-and-error-container{flex-grow:1}";export{x as gux_form_field_phone}
1
+ import{r as e,h as i,g as t}from"./p-c2a62a18.js";import{b as o}from"./p-16feb2a1.js";import{O as r}from"./p-9df4dd07.js";import{a as l,o as a}from"./p-6b12dd16.js";import{t as s}from"./p-f15a6eca.js";import{a as n,G as f}from"./p-546eb56a.js";import{G as d,a as h,b as u}from"./p-2c779f86.js";import{h as p}from"./p-6d8b4027.js";import{g}from"./p-0268a3e8.js";import{v as c,a as m}from"./p-4aaf349e.js";import"./p-4202e9f2.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const b={required:"Required"};const x=class{constructor(i){e(this,i),this.labelPosition=void 0,this.indicatorMark="required",this.computedLabelPosition="above",this.disabled=void 0,this.required=!1,this.hasError=!1,this.hasHelp=!1,this.hasLabelInfo=!1}watchValue(e){const i=this.root.querySelector("gux-phone-input-beta");i&&(i.hasError=e)}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=p(this.root,"error"),this.hasHelp=p(this.root,"help"),this.hasLabelInfo=p(this.root,"label-info")}handleKeyup(e){var i,t;"Tab"===e.key?this.input.matches(":focus-within")&&(null===(i=this.labelInfo)||void 0===i||i.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-within")&&(null===(t=this.labelInfo)||void 0===t||t.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}async componentWillLoad(){this.getI18nValue=await o(this.root,b),this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=p(this.root,"error"),this.hasHelp=p(this.root,"help"),this.hasLabelInfo=p(this.root,"label-info"),s(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){var e;return i(u,{key:"087189f3361114ed4f13434e822a81a8b59b8b20",labelPosition:this.computedLabelPosition},i(h,{key:"d8affd28b8eda3915f971608b658b6d953d65383"},null===(e=this.label)||void 0===e?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(g(this.root,"error"),this.hasError),this.renderText(g(this.root,"label-info"),this.hasLabelInfo)),i(d,{key:"94c00f283bde270bcbbcfc2062553a290fee4b3d",position:this.computedLabelPosition,required:this.required},i("slot",{key:"9833cb45b61a37a6205e6d2c306bb1c244ad8483",name:"label",onSlotchange:()=>this.setLabel()}),i("gux-form-field-label-indicator",{key:"c52319e2464390e6fe0b8d400d7a4f8efcfd4b15",variant:this.indicatorMark,required:this.required}),i("slot",{key:"23bced1f69ff8aa40fa099fb8a375bcdb6cff7be",name:"label-info"})),i("div",{key:"e6a6769c9aad15b22064d8d7e98c822a73ddd245",class:"gux-input-and-error-container"},i("div",{key:"9b56dec4803a50348ad009ab606dd140e56eeaf0",class:{"gux-input":!0,"gux-input-error":this.hasError}},i("div",{key:"453bfe88e66a785030f601dd536a092e5429ede7",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},i("slot",{key:"e65235dc28fc42e119149cc856f7d52fbf9b17ee"}))),i(n,{key:"52517e1615e9de2aa3059c7bd6fe056b2de956b3",show:this.hasError},i("slot",{key:"590f11da0b8a968d691dc57160ea0cc8e5b880d6",name:"error"})),i(f,{key:"810c7fb5f43e9ffe0b36d26a09a2b27da6ee077d",show:!this.hasError&&this.hasHelp},i("slot",{key:"1a0f19b8dd00f83f6ad5e392637af5a61f7e9a05",name:"help"}))))}renderText(e,i=!1){if(i)return" "+e}get variant(){return`phoneInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}setInput(){this.input=this.root.querySelector("gux-phone-input-beta"),this.disabled=this.input.disabled,this.required=this.input.required,this.disabledObserver=l(this.input,(e=>{this.disabled=e})),this.requiredObserver=a(this.input,(e=>{this.required=e})),c(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=m(this.label,this.labelPosition)}get root(){return t(this)}static get watchers(){return{hasError:["watchValue"]}}};(function(e,i,t,o){var r,l=arguments.length,a=l<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,i,t,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(l<3?r(a):l>3?r(i,t,a):r(i,t))||a);l>3&&a&&Object.defineProperty(i,t,a)})([r({childList:!0,subtree:!0})],x.prototype,"onMutation",null),x.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 1 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(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}::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)}.gux-input-and-error-container{flex-grow:1}";export{x as gux_form_field_phone}
@@ -1 +1 @@
1
- import{r as t,c as i,d as e,h as r,g as o}from"./p-c2a62a18.js";import{O as n}from"./p-26772091.js";import{h as s}from"./p-6d8b4027.js";import{t as a}from"./p-84ebc917.js";import{g as d}from"./p-b2e29026.js";import{b as c}from"./p-16feb2a1.js";import{t as h}from"./p-f01d2320.js";import"./p-43af726d.js";import"./p-4202e9f2.js";const l=class{constructor(e){t(this,e),this.guxToggleAction=i(this,"guxToggleAction",7),this.disabled=!1,this.typographicalEmphasisActions=[],this.textStylingActions=[],this.listsAndIndentationActions=[],this.insertingActions=[]}checkResponsiveLayout(){e((()=>{this.handleOverflow(),this.getHiddenActions()}))}async componentWillLoad(){a(this.root),this.i18n=await c(this.root,h)}componentDidLoad(){this.checkResponsiveLayout()}componentDidUpdate(){this.handleOverflow()}isOverFlowing(){var t;const i=null===(t=this.root)||void 0===t?void 0:t.shadowRoot.querySelector(".gux-rich-text-editor-toolbar-container");return Array.from(i.children).filter((t=>!t.classList.contains("gux-hidden"))).reduce(((t,i)=>t+i.clientWidth),0)>i.clientWidth}handleOverflow(){const t=Array.from(this.root.querySelectorAll("gux-rich-text-editor-action-group"));for(;this.isOverFlowing();){let i=!1;for(let e=t.length-1;e>=0;e--)if(!t[e].classList.contains("gux-hidden")){t[e].classList.add("gux-hidden"),i=!0;break}if(!i)break}for(const i of t)if(i.classList.contains("gux-hidden")&&(i.classList.remove("gux-hidden"),this.isOverFlowing())){i.classList.add("gux-hidden");break}}getHiddenActions(){this.typographicalEmphasisActions=d(this.root,'gux-rich-text-editor-action-group[slot="typographical-emphasis"]',"gux-hidden"),this.listsAndIndentationActions=d(this.root,'gux-rich-text-editor-action-group[slot="lists-indentation"]',"gux-hidden"),this.textStylingActions=d(this.root,'gux-rich-text-editor-action-group[slot="text-styling"]',"gux-hidden"),this.insertingActions=d(this.root,'gux-rich-text-editor-action-group[slot="inserting"]',"gux-hidden")}getAllActions(){return[...this.textStylingActions,...this.typographicalEmphasisActions,...this.listsAndIndentationActions,...this.insertingActions]}categorizeActions(t){const i=[],e=[],r=[];return t.forEach((t=>{t.startsWith("rich-style-")?i.push(t.slice(11)):t.startsWith("highlight-")?e.push(t.slice(10)):r.push(t)})),{richStyleActions:i,highlightActions:e,filteredActions:r}}renderListItems(t,i=!1){return t.map(((t,e)=>{const o=t.replace(/<\/?[^>]+(>|$)/g,"");return r("gux-rich-style-list-item",Object.assign({onClick:()=>this.guxToggleAction.emit(o),key:e,value:o},i?{innerHTML:t}:{}),!i&&(this.i18n(o)||o))}))}renderSubList(t,i,e=!1){if(i.length>0)return r("gux-rich-text-editor-sub-list",{label:this.i18n(t)},this.renderListItems(i,e))}renderHighlightSubList(t){if(t.length>0)return r("gux-rich-text-editor-sub-list",{label:this.i18n("textHighlight")},this.renderListItems(t),r("gux-rich-style-list-item",{onClick:()=>this.guxToggleAction.emit("noHighlightAction"),value:"noHighlight"},r("gux-truncate",{"max-lines":1},this.i18n("noHighlight"))))}renderTextEditorMenu(){const t=this.getAllActions();if(t.length>0){const{richStyleActions:i,highlightActions:e,filteredActions:o}=this.categorizeActions(t);return r("gux-rich-text-editor-menu",null,this.renderListItems(o),this.renderSubList("richStyle",i,!0),this.renderHighlightSubList(e))}}renderSlot(t,i){return s(this.root,t)?r("div",{class:i},r("slot",{name:t})):null}renderTypographicalEmphasis(){return this.renderSlot("typographical-emphasis","gux-typographical-emphasis-container")}renderTextStyling(){return this.renderSlot("text-styling","gux-text-styling-container")}renderListsIndentation(){return this.renderSlot("lists-indentation","gux-lists-indentation-container")}renderInserting(){return this.renderSlot("inserting","gux-inserting-container")}renderGlobalAction(){return this.renderSlot("global-action","gux-global-action-container")}render(){return r("div",{key:"40a431abfae4b59ab2cb5d6858669d95d67dd70f",class:{"gux-rich-text-editor-container":!0,"gux-disabled":this.disabled}},r("div",{key:"d69396356a78fe4f3af77c5d0da2d475085cb57b",class:"gux-rich-text-editor-toolbar-container"},this.renderTypographicalEmphasis(),this.renderTextStyling(),this.renderListsIndentation(),this.renderInserting(),this.renderTextEditorMenu(),this.renderGlobalAction()),r("slot",{key:"8346fe65a8764fc084dfb38857cd2309f4f89835",name:"editor"}))}get root(){return o(this)}};(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);n>3&&s&&Object.defineProperty(i,e,s)})([n()],l.prototype,"checkResponsiveLayout",null),l.style=":host{display:block}.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%;padding:var(--gse-ui-rte-padding);overflow:auto;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-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{l as gux_rich_text_editor_beta}
1
+ import{r as t,c as i,d as e,h as r,g as o}from"./p-c2a62a18.js";import{O as n}from"./p-26772091.js";import{h as s}from"./p-6d8b4027.js";import{t as a}from"./p-f15a6eca.js";import{g as d}from"./p-b2e29026.js";import{b as c}from"./p-16feb2a1.js";import{t as h}from"./p-f01d2320.js";import"./p-43af726d.js";import"./p-4202e9f2.js";const l=class{constructor(e){t(this,e),this.guxToggleAction=i(this,"guxToggleAction",7),this.disabled=!1,this.typographicalEmphasisActions=[],this.textStylingActions=[],this.listsAndIndentationActions=[],this.insertingActions=[]}checkResponsiveLayout(){e((()=>{this.handleOverflow(),this.getHiddenActions()}))}async componentWillLoad(){a(this.root),this.i18n=await c(this.root,h)}componentDidLoad(){this.checkResponsiveLayout()}componentDidUpdate(){this.handleOverflow()}isOverFlowing(){var t;const i=null===(t=this.root)||void 0===t?void 0:t.shadowRoot.querySelector(".gux-rich-text-editor-toolbar-container");return Array.from(i.children).filter((t=>!t.classList.contains("gux-hidden"))).reduce(((t,i)=>t+i.clientWidth),0)>i.clientWidth}handleOverflow(){const t=Array.from(this.root.querySelectorAll("gux-rich-text-editor-action-group"));for(;this.isOverFlowing();){let i=!1;for(let e=t.length-1;e>=0;e--)if(!t[e].classList.contains("gux-hidden")){t[e].classList.add("gux-hidden"),i=!0;break}if(!i)break}for(const i of t)if(i.classList.contains("gux-hidden")&&(i.classList.remove("gux-hidden"),this.isOverFlowing())){i.classList.add("gux-hidden");break}}getHiddenActions(){this.typographicalEmphasisActions=d(this.root,'gux-rich-text-editor-action-group[slot="typographical-emphasis"]',"gux-hidden"),this.listsAndIndentationActions=d(this.root,'gux-rich-text-editor-action-group[slot="lists-indentation"]',"gux-hidden"),this.textStylingActions=d(this.root,'gux-rich-text-editor-action-group[slot="text-styling"]',"gux-hidden"),this.insertingActions=d(this.root,'gux-rich-text-editor-action-group[slot="inserting"]',"gux-hidden")}getAllActions(){return[...this.textStylingActions,...this.typographicalEmphasisActions,...this.listsAndIndentationActions,...this.insertingActions]}categorizeActions(t){const i=[],e=[],r=[];return t.forEach((t=>{t.startsWith("rich-style-")?i.push(t.slice(11)):t.startsWith("highlight-")?e.push(t.slice(10)):r.push(t)})),{richStyleActions:i,highlightActions:e,filteredActions:r}}renderListItems(t,i=!1){return t.map(((t,e)=>{const o=t.replace(/<\/?[^>]+(>|$)/g,"");return r("gux-rich-style-list-item",Object.assign({onClick:()=>this.guxToggleAction.emit(o),key:e,value:o},i?{innerHTML:t}:{}),!i&&(this.i18n(o)||o))}))}renderSubList(t,i,e=!1){if(i.length>0)return r("gux-rich-text-editor-sub-list",{label:this.i18n(t)},this.renderListItems(i,e))}renderHighlightSubList(t){if(t.length>0)return r("gux-rich-text-editor-sub-list",{label:this.i18n("textHighlight")},this.renderListItems(t),r("gux-rich-style-list-item",{onClick:()=>this.guxToggleAction.emit("noHighlightAction"),value:"noHighlight"},r("gux-truncate",{"max-lines":1},this.i18n("noHighlight"))))}renderTextEditorMenu(){const t=this.getAllActions();if(t.length>0){const{richStyleActions:i,highlightActions:e,filteredActions:o}=this.categorizeActions(t);return r("gux-rich-text-editor-menu",null,this.renderListItems(o),this.renderSubList("richStyle",i,!0),this.renderHighlightSubList(e))}}renderSlot(t,i){return s(this.root,t)?r("div",{class:i},r("slot",{name:t})):null}renderTypographicalEmphasis(){return this.renderSlot("typographical-emphasis","gux-typographical-emphasis-container")}renderTextStyling(){return this.renderSlot("text-styling","gux-text-styling-container")}renderListsIndentation(){return this.renderSlot("lists-indentation","gux-lists-indentation-container")}renderInserting(){return this.renderSlot("inserting","gux-inserting-container")}renderGlobalAction(){return this.renderSlot("global-action","gux-global-action-container")}render(){return r("div",{key:"40a431abfae4b59ab2cb5d6858669d95d67dd70f",class:{"gux-rich-text-editor-container":!0,"gux-disabled":this.disabled}},r("div",{key:"d69396356a78fe4f3af77c5d0da2d475085cb57b",class:"gux-rich-text-editor-toolbar-container"},this.renderTypographicalEmphasis(),this.renderTextStyling(),this.renderListsIndentation(),this.renderInserting(),this.renderTextEditorMenu(),this.renderGlobalAction()),r("slot",{key:"8346fe65a8764fc084dfb38857cd2309f4f89835",name:"editor"}))}get root(){return o(this)}};(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);n>3&&s&&Object.defineProperty(i,e,s)})([n()],l.prototype,"checkResponsiveLayout",null),l.style=":host{display:block}.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%;padding:var(--gse-ui-rte-padding);overflow:auto;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-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{l as gux_rich_text_editor_beta}
@@ -1 +1 @@
1
- import{r as t,f as e,h as s,g as i}from"./p-c2a62a18.js";import{t as r}from"./p-84ebc917.js";import{h as o}from"./p-b2e29026.js";import{O as a}from"./p-6a2b1013.js";import{b as n}from"./p-cf0e7d3b.js";import{b as l}from"./p-16feb2a1.js";import{t as u}from"./p-f01d2320.js";import"./p-43af726d.js";import"./p-4202e9f2.js";const h=class{constructor(e){t(this,e),this.value=void 0,this.expanded=!1,this.disabled=!1}onClickOutside(){this.expanded=!1}watchValue(t){this.validateValue(t,this.listElement)}watchDisabled(t){t&&(this.expanded=!1)}onInternallistitemsupdated(t){t.stopPropagation(),e(this.root)}handleKeydown(t){const e=t.composedPath().includes(this.actionButton),s=t.composedPath().includes(this.listElement);switch(t.key){case"Escape":s&&(t.preventDefault(),this.expanded=!1,this.actionButton.focus());break;case"ArrowDown":case"Enter":e&&!this.expanded&&(t.preventDefault(),this.expanded=!0,this.focusFirstListItem());break;case"Tab":this.expanded=!1;break;case"ArrowUp":e&&!this.expanded&&(t.preventDefault(),this.expanded=!0,this.focusLastListItem())}}handleKeyup(t){" "===t.key&&t.composedPath().includes(this.actionButton)&&(t.preventDefault(),this.expanded=!0,this.focusFirstListItem())}focusFirstListItem(){n((()=>{this.listElement.guxFocusFirstItem()}))}focusLastListItem(){n((()=>{this.listElement.guxFocusLastItem()}))}async componentWillLoad(){r(this.root),this.i18n=await l(this.root,u)}componentWillRender(){(null==this?void 0:this.listElement)&&this.validateValue(this.value,this.listElement)}validateValue(t,e){void 0!==t?this.getListItemElementByValue(t)&&(e.value=t):e.value=t}get listItemElements(){const t=this.listElement.querySelector("slot");if(t)return Array.from(t.assignedElements())}getListItemElementByValue(t){return this.listItemElements.find((e=>e.value===t))}renderTargetDisplay(){if(null==this?void 0:this.listElement){const t=this.getListItemElementByValue(this.value);if(t)return s("span",null,this.renderListItem(t))}}renderMenu(){return s("div",{class:"gux-target-display"},this.renderTargetDisplay(),s("gux-icon",{"icon-name":this.expanded?"custom/chevron-up-small-regular":"custom/chevron-down-small-regular","screenreader-text":this.i18n("richStyleDropdown")}))}renderListItem(t){return s("gux-truncate",{"max-lines":1},t.textContent)}renderTooltip(){if(!this.disabled&&!this.expanded)return s("gux-tooltip-beta",null,s("div",{slot:"content"},this.i18n("richStyle")))}onActionButtonClick(){this.expanded=!this.expanded,this.expanded&&this.focusFirstListItem()}updateValue(t){this.value!==t&&(this.value=t)}onListClick(t){const e=t.target.closest("gux-rich-style-list-item");e&&(this.expanded=!1,this.updateValue(e.value),this.actionButton.focus())}renderPopup(){return s("div",{class:"gux-list-container",slot:"popup"},s("gux-rich-text-editor-list",{ref:t=>this.listElement=t,onClick:t=>this.onListClick(t)},s("slot",null)))}renderTarget(){return s("gux-button-slot",{accent:"ghost",slot:"target","icon-only":!0},s("button",{type:"button",ref:t=>this.actionButton=t,class:{"gux-is-pressed":this.expanded},onClick:()=>this.onActionButtonClick(),disabled:this.disabled||o(this.root),"aria-haspopup":"true","aria-expanded":this.expanded.toString()},this.renderMenu()),this.renderTooltip())}render(){return s("gux-popup",{key:"a0ab8d22aeefe6381bc2aa164aa88719f83ae884",expanded:this.expanded,exceedTargetWidth:!0,placement:"bottom-start"},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return i(this)}static get watchers(){return{value:["watchValue"],disabled:["watchDisabled"]}}};(function(t,e,s,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,s,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(o<3?r(a):o>3?r(e,s,a):r(e,s))||a);o>3&&a&&Object.defineProperty(e,s,a)})([a({triggerEvents:"mousedown"})],h.prototype,"onClickOutside",null),h.style=":host{display:block}gux-button-slot button .gux-target-display{display:flex;flex-direction:row;gap:4px;align-items:center;justify-content:center}gux-button-slot button.gux-is-pressed{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}.gux-list-container{inline-size:214px;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{h as gux_rich_text_editor_action_rich_style}
1
+ import{r as t,f as e,h as s,g as i}from"./p-c2a62a18.js";import{t as r}from"./p-f15a6eca.js";import{h as o}from"./p-b2e29026.js";import{O as a}from"./p-6a2b1013.js";import{b as n}from"./p-cf0e7d3b.js";import{b as l}from"./p-16feb2a1.js";import{t as u}from"./p-f01d2320.js";import"./p-43af726d.js";import"./p-4202e9f2.js";const h=class{constructor(e){t(this,e),this.value=void 0,this.expanded=!1,this.disabled=!1}onClickOutside(){this.expanded=!1}watchValue(t){this.validateValue(t,this.listElement)}watchDisabled(t){t&&(this.expanded=!1)}onInternallistitemsupdated(t){t.stopPropagation(),e(this.root)}handleKeydown(t){const e=t.composedPath().includes(this.actionButton),s=t.composedPath().includes(this.listElement);switch(t.key){case"Escape":s&&(t.preventDefault(),this.expanded=!1,this.actionButton.focus());break;case"ArrowDown":case"Enter":e&&!this.expanded&&(t.preventDefault(),this.expanded=!0,this.focusFirstListItem());break;case"Tab":this.expanded=!1;break;case"ArrowUp":e&&!this.expanded&&(t.preventDefault(),this.expanded=!0,this.focusLastListItem())}}handleKeyup(t){" "===t.key&&t.composedPath().includes(this.actionButton)&&(t.preventDefault(),this.expanded=!0,this.focusFirstListItem())}focusFirstListItem(){n((()=>{this.listElement.guxFocusFirstItem()}))}focusLastListItem(){n((()=>{this.listElement.guxFocusLastItem()}))}async componentWillLoad(){r(this.root),this.i18n=await l(this.root,u)}componentWillRender(){(null==this?void 0:this.listElement)&&this.validateValue(this.value,this.listElement)}validateValue(t,e){void 0!==t?this.getListItemElementByValue(t)&&(e.value=t):e.value=t}get listItemElements(){const t=this.listElement.querySelector("slot");if(t)return Array.from(t.assignedElements())}getListItemElementByValue(t){return this.listItemElements.find((e=>e.value===t))}renderTargetDisplay(){if(null==this?void 0:this.listElement){const t=this.getListItemElementByValue(this.value);if(t)return s("span",null,this.renderListItem(t))}}renderMenu(){return s("div",{class:"gux-target-display"},this.renderTargetDisplay(),s("gux-icon",{"icon-name":this.expanded?"custom/chevron-up-small-regular":"custom/chevron-down-small-regular","screenreader-text":this.i18n("richStyleDropdown")}))}renderListItem(t){return s("gux-truncate",{"max-lines":1},t.textContent)}renderTooltip(){if(!this.disabled&&!this.expanded)return s("gux-tooltip-beta",null,s("div",{slot:"content"},this.i18n("richStyle")))}onActionButtonClick(){this.expanded=!this.expanded,this.expanded&&this.focusFirstListItem()}updateValue(t){this.value!==t&&(this.value=t)}onListClick(t){const e=t.target.closest("gux-rich-style-list-item");e&&(this.expanded=!1,this.updateValue(e.value),this.actionButton.focus())}renderPopup(){return s("div",{class:"gux-list-container",slot:"popup"},s("gux-rich-text-editor-list",{ref:t=>this.listElement=t,onClick:t=>this.onListClick(t)},s("slot",null)))}renderTarget(){return s("gux-button-slot",{accent:"ghost",slot:"target","icon-only":!0},s("button",{type:"button",ref:t=>this.actionButton=t,class:{"gux-is-pressed":this.expanded},onClick:()=>this.onActionButtonClick(),disabled:this.disabled||o(this.root),"aria-haspopup":"true","aria-expanded":this.expanded.toString()},this.renderMenu()),this.renderTooltip())}render(){return s("gux-popup",{key:"a0ab8d22aeefe6381bc2aa164aa88719f83ae884",expanded:this.expanded,exceedTargetWidth:!0,placement:"bottom-start"},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return i(this)}static get watchers(){return{value:["watchValue"],disabled:["watchDisabled"]}}};(function(t,e,s,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,s,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(o<3?r(a):o>3?r(e,s,a):r(e,s))||a);o>3&&a&&Object.defineProperty(e,s,a)})([a({triggerEvents:"mousedown"})],h.prototype,"onClickOutside",null),h.style=":host{display:block}gux-button-slot button .gux-target-display{display:flex;flex-direction:row;gap:4px;align-items:center;justify-content:center}gux-button-slot button.gux-is-pressed{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}.gux-list-container{inline-size:214px;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{h as gux_rich_text_editor_action_rich_style}
@@ -1 +1 @@
1
- import{r as e,h as o,H as t,g as r}from"./p-c2a62a18.js";import{c as a,o as s}from"./p-f4751a15.js";import{O as i}from"./p-9df4dd07.js";import{p as l}from"./p-a11d5d42.js";import{h as C}from"./p-6d8b4027.js";import{a as g,G as d}from"./p-546eb56a.js";import{t as n}from"./p-84ebc917.js";import{g as c,v as h}from"./p-4aaf349e.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const u=class{constructor(o){e(this,o),this.labelPosition="beside",this.disabled=void 0,this.hasHelp=!1,this.hasError=!1,this.hasGroupError=!1,this.hasGroupDisabled=!1}onMutation(){this.hasError=C(this.root,"error"),this.hasHelp=C(this.root,"help")}componentWillLoad(){this.setInput(),this.hasError=C(this.root,"error"),this.hasHelp=C(this.root,"help"),n(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}render(){return o(t,{key:"e40400dce6b34387deee6b6244aa527877532230",class:{"gux-input-error":this.hasError||this.hasGroupError,"gux-disabled":this.disabled}},o("div",{key:"a0aaca6ebd8de03d38e4d3ab28487d8b98e4c14a",class:"gux-form-field-container"},o("div",{key:"39ebc72af0115c16b391f178d14c9cf108d048a6",class:"gux-input-label"},o("div",{key:"5f60fbe50d21b90b39e2110ca3764d0fd495964f",class:"gux-input"},o("slot",{key:"83549d1dd5cac6cd3e5b1f96197635a7bbde25b0",name:"input",onSlotchange:()=>this.setInput()})),o("div",{key:"dd82b4c70ed37e156ad8ffb71218aa811296f8d3",class:`gux-label-${this.labelPosition}`,"aria-disabled":this.disabled?"true":"false"},o("slot",{key:"4a88b290a5de26a75963cc637173a39026ac1177",name:"label"}))),o("div",{key:"aa8a2a00294a6d7131d7073eb823a1685bf7a4a4",class:"error-and-help-text"},o(g,{key:"0f49ae8b132bc53cd850ec4eb31752e4ed5f754b",show:this.hasError},o("slot",{key:"d61465e5408f9ff62397e250259049432ad19e14",name:"error"})),o(d,{key:"9bca8004303189e323b5288eacaf750feeb7339a",show:!this.hasError&&this.hasHelp},o("slot",{key:"f58224e0319a71ed4b8dd45ec969e5876a728007",name:"help"})))))}get variant(){return this.labelPosition.toLowerCase()}setInput(){this.input=c(this.root,'input[type="checkbox"][slot="input"]'),this.hasGroupDisabled&&(this.input.disabled=!0),l(this.input),this.disabled=a(this.input),this.disabledObserver=s(this.input,(e=>{this.disabled=e})),h(this.root,this.input)}get root(){return r(this)}};(function(e,o,t,r){var a,s=arguments.length,i=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,o,t,r);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(i=(s<3?a(i):s>3?a(o,t,i):a(o,t))||i);s>3&&i&&Object.defineProperty(o,t,i)})([i({childList:!0,subtree:!0})],u.prototype,"onMutation",null),u.style=".gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;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}:host{display:block}:host(.gux-input-error) ::slotted(input[type=checkbox]:not(: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='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\");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::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\");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=checkbox]:not(:checked):not(:disabled):not(:indeterminate):hover)::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\");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=checkbox]:indeterminate)::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='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.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.28571ZM1.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.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%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='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.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.28571ZM1.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.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-disabled){cursor:not-allowed;opacity:var(--gse-ui-checkbox-disabled-opacity)}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}.gux-input-label{display:inline-flex;flex-direction:row;gap:var(--gse-ui-checkbox-gap)}.gux-input-label .gux-label-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}::slotted(input[type=checkbox]){display:inline-grid;inline-size:var(--gse-ui-checkbox-icon-width);block-size:var(--gse-ui-checkbox-icon-height);margin:0;vertical-align:middle;text-align:center;-webkit-appearance:none;appearance:none;cursor:pointer;outline:none;border:0}::slotted(input[type=checkbox])::before{grid-area:1/1;content:\"\";border-radius:15%}::slotted(input[type=checkbox]:focus-visible){outline:var(--gse-ui-checkbox-focus-border-width) var(--gse-ui-checkbox-focus-border-style) var(--gse-ui-checkbox-focus-border-color);outline-offset:var(--gse-ui-checkbox-focus-offset);border-radius:var(--gse-ui-checkbox-focus-borderRadiusSmall)}::slotted(input[type=checkbox]:not(: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='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\");background:var(--gse-ui-checkbox-icon-default-unselectedForegroundColor)}::slotted(input[type=checkbox]:not(:checked):not(:disabled):not(:indeterminate):hover)::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\");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::slotted(input[type=checkbox]:checked:not(:disabled):hover){-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\");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::slotted(input[type=checkbox]:not(:disabled):indeterminate:hover){-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.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.28571ZM1.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.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%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='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.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.28571ZM1.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.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::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\");background:var(--gse-ui-checkbox-icon-default-selectedForegroundColor)}::slotted(input[type=checkbox]:indeterminate)::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='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.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.28571ZM1.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.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z'/%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='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.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.28571ZM1.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.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z'/%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-default-selectedForegroundColor)}::slotted(input[type=checkbox]:disabled)::before{cursor:not-allowed;opacity:var(--gse-ui-checkbox-disabled-opacity)}::slotted(label){display:inline-block;font-family:var(--gse-ui-checkbox-label-text-fontFamily);font-size:12px;font-weight:var(--gse-ui-checkbox-label-text-fontWeight);line-height:var(--gse-ui-checkbox-label-text-lineHeight);vertical-align:middle;color:var(--gse-ui-checkbox-label-foregroundColor)}";export{u as gux_form_field_checkbox}
1
+ import{r as e,h as o,H as t,g as r}from"./p-c2a62a18.js";import{c as a,o as s}from"./p-f4751a15.js";import{O as i}from"./p-9df4dd07.js";import{p as l}from"./p-a11d5d42.js";import{h as C}from"./p-6d8b4027.js";import{a as g,G as d}from"./p-546eb56a.js";import{t as n}from"./p-f15a6eca.js";import{g as c,v as h}from"./p-4aaf349e.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const u=class{constructor(o){e(this,o),this.labelPosition="beside",this.disabled=void 0,this.hasHelp=!1,this.hasError=!1,this.hasGroupError=!1,this.hasGroupDisabled=!1}onMutation(){this.hasError=C(this.root,"error"),this.hasHelp=C(this.root,"help")}componentWillLoad(){this.setInput(),this.hasError=C(this.root,"error"),this.hasHelp=C(this.root,"help"),n(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}render(){return o(t,{key:"e40400dce6b34387deee6b6244aa527877532230",class:{"gux-input-error":this.hasError||this.hasGroupError,"gux-disabled":this.disabled}},o("div",{key:"a0aaca6ebd8de03d38e4d3ab28487d8b98e4c14a",class:"gux-form-field-container"},o("div",{key:"39ebc72af0115c16b391f178d14c9cf108d048a6",class:"gux-input-label"},o("div",{key:"5f60fbe50d21b90b39e2110ca3764d0fd495964f",class:"gux-input"},o("slot",{key:"83549d1dd5cac6cd3e5b1f96197635a7bbde25b0",name:"input",onSlotchange:()=>this.setInput()})),o("div",{key:"dd82b4c70ed37e156ad8ffb71218aa811296f8d3",class:`gux-label-${this.labelPosition}`,"aria-disabled":this.disabled?"true":"false"},o("slot",{key:"4a88b290a5de26a75963cc637173a39026ac1177",name:"label"}))),o("div",{key:"aa8a2a00294a6d7131d7073eb823a1685bf7a4a4",class:"error-and-help-text"},o(g,{key:"0f49ae8b132bc53cd850ec4eb31752e4ed5f754b",show:this.hasError},o("slot",{key:"d61465e5408f9ff62397e250259049432ad19e14",name:"error"})),o(d,{key:"9bca8004303189e323b5288eacaf750feeb7339a",show:!this.hasError&&this.hasHelp},o("slot",{key:"f58224e0319a71ed4b8dd45ec969e5876a728007",name:"help"})))))}get variant(){return this.labelPosition.toLowerCase()}setInput(){this.input=c(this.root,'input[type="checkbox"][slot="input"]'),this.hasGroupDisabled&&(this.input.disabled=!0),l(this.input),this.disabled=a(this.input),this.disabledObserver=s(this.input,(e=>{this.disabled=e})),h(this.root,this.input)}get root(){return r(this)}};(function(e,o,t,r){var a,s=arguments.length,i=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,o,t,r);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(i=(s<3?a(i):s>3?a(o,t,i):a(o,t))||i);s>3&&i&&Object.defineProperty(o,t,i)})([i({childList:!0,subtree:!0})],u.prototype,"onMutation",null),u.style=".gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;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}:host{display:block}:host(.gux-input-error) ::slotted(input[type=checkbox]:not(: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='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\");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::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\");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=checkbox]:not(:checked):not(:disabled):not(:indeterminate):hover)::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\");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=checkbox]:indeterminate)::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='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.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.28571ZM1.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.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%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='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.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.28571ZM1.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.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-disabled){cursor:not-allowed;opacity:var(--gse-ui-checkbox-disabled-opacity)}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}.gux-input-label{display:inline-flex;flex-direction:row;gap:var(--gse-ui-checkbox-gap)}.gux-input-label .gux-label-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}::slotted(input[type=checkbox]){display:inline-grid;inline-size:var(--gse-ui-checkbox-icon-width);block-size:var(--gse-ui-checkbox-icon-height);margin:0;vertical-align:middle;text-align:center;-webkit-appearance:none;appearance:none;cursor:pointer;outline:none;border:0}::slotted(input[type=checkbox])::before{grid-area:1/1;content:\"\";border-radius:15%}::slotted(input[type=checkbox]:focus-visible){outline:var(--gse-ui-checkbox-focus-border-width) var(--gse-ui-checkbox-focus-border-style) var(--gse-ui-checkbox-focus-border-color);outline-offset:var(--gse-ui-checkbox-focus-offset);border-radius:var(--gse-ui-checkbox-focus-borderRadiusSmall)}::slotted(input[type=checkbox]:not(: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='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\");background:var(--gse-ui-checkbox-icon-default-unselectedForegroundColor)}::slotted(input[type=checkbox]:not(:checked):not(:disabled):not(:indeterminate):hover)::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\");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::slotted(input[type=checkbox]:checked:not(:disabled):hover){-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\");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::slotted(input[type=checkbox]:not(:disabled):indeterminate:hover){-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.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.28571ZM1.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.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%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='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.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.28571ZM1.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.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::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\");background:var(--gse-ui-checkbox-icon-default-selectedForegroundColor)}::slotted(input[type=checkbox]:indeterminate)::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='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.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.28571ZM1.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.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z'/%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='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.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.28571ZM1.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.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z'/%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-default-selectedForegroundColor)}::slotted(input[type=checkbox]:disabled)::before{cursor:not-allowed;opacity:var(--gse-ui-checkbox-disabled-opacity)}::slotted(label){display:inline-block;font-family:var(--gse-ui-checkbox-label-text-fontFamily);font-size:12px;font-weight:var(--gse-ui-checkbox-label-text-fontWeight);line-height:var(--gse-ui-checkbox-label-text-lineHeight);vertical-align:middle;color:var(--gse-ui-checkbox-label-foregroundColor)}";export{u as gux_form_field_checkbox}
@@ -0,0 +1 @@
1
+ import{r as a,h as e,g as r}from"./p-c2a62a18.js";import{t as s}from"./p-f15a6eca.js";const t=class{constructor(e){a(this,e),this.screenreaderText=void 0}componentWillLoad(){s(this.root)}render(){return e("gux-radial-loading",{key:"0d4ca2add38e62428137de8b072523da164e620f",class:"gux-spinner","screenreader-text":this.screenreaderText,context:"full-page"})}get root(){return r(this)}};t.style=":host{display:flex}.gux-spinner{margin:auto}";export{t as gux_page_loading_spinner}
@@ -1 +1 @@
1
- import{r as e,h as t,H as o,g as s}from"./p-c2a62a18.js";import{t as i}from"./p-84ebc917.js";import{O as a}from"./p-6a2b1013.js";import{b as r}from"./p-16feb2a1.js";import{b as n}from"./p-cf0e7d3b.js";import"./p-4202e9f2.js";const c={additionalActions:"Additional Actions"};const u=class{constructor(t){e(this,t),this.showMenu=void 0,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(o,{key:"36e3b00ff21ff8b7f7e5586d2f9add7ea2488390",class:{"gux-show-menu":this.showMenu}},t("gux-popup",{key:"74223d3dfb730f546296e0ba3616069eff78d970",expanded:this.expanded,"exceed-target-width":!0},t("div",{key:"330242204100861443c7c284db5dff306cf2219f",slot:"target",class:"gux-toolbar-menu-container"},t("gux-button-slot",{key:"e2ee996f510e382137b0bf00f81b2bb4e5c03e8f",accent:"secondary"},t("button",{key:"a9a6bfcdbbe498a59cca8e6f83b7c960f0c77893",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:"b94b61cc764f6f0ca3eecfd908322b94e172b5ee","icon-name":"fa/ellipsis-regular",size:"small",decorative:!0}),this.renderTooltip()))),t("div",{key:"6a4c9ebceacfed4db4fff27fa4c210d36051e16d",class:"gux-list-container",slot:"popup"},t("gux-list",{key:"8c6948e43a0472def754c1fac044af5828e4333a",ref:e=>this.listElement=e},t("slot",{key:"5a70a2c4a3f9c7c90f858ddc1368e602db7cfe5f"})))))}static get delegatesFocus(){return!0}get root(){return s(this)}};(function(e,t,o,s){var i,a=arguments.length,r=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,s);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(r=(a<3?i(r):a>3?i(t,o,r):i(t,o))||r);a>3&&r&&Object.defineProperty(t,o,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 o,g as s}from"./p-c2a62a18.js";import{t as i}from"./p-f15a6eca.js";import{O as a}from"./p-6a2b1013.js";import{b as r}from"./p-16feb2a1.js";import{b as n}from"./p-cf0e7d3b.js";import"./p-4202e9f2.js";const c={additionalActions:"Additional Actions"};const u=class{constructor(t){e(this,t),this.showMenu=void 0,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(o,{key:"36e3b00ff21ff8b7f7e5586d2f9add7ea2488390",class:{"gux-show-menu":this.showMenu}},t("gux-popup",{key:"74223d3dfb730f546296e0ba3616069eff78d970",expanded:this.expanded,"exceed-target-width":!0},t("div",{key:"330242204100861443c7c284db5dff306cf2219f",slot:"target",class:"gux-toolbar-menu-container"},t("gux-button-slot",{key:"e2ee996f510e382137b0bf00f81b2bb4e5c03e8f",accent:"secondary"},t("button",{key:"a9a6bfcdbbe498a59cca8e6f83b7c960f0c77893",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:"b94b61cc764f6f0ca3eecfd908322b94e172b5ee","icon-name":"fa/ellipsis-regular",size:"small",decorative:!0}),this.renderTooltip()))),t("div",{key:"6a4c9ebceacfed4db4fff27fa4c210d36051e16d",class:"gux-list-container",slot:"popup"},t("gux-list",{key:"8c6948e43a0472def754c1fac044af5828e4333a",ref:e=>this.listElement=e},t("slot",{key:"5a70a2c4a3f9c7c90f858ddc1368e602db7cfe5f"})))))}static get delegatesFocus(){return!0}get root(){return s(this)}};(function(e,t,o,s){var i,a=arguments.length,r=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,s);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(r=(a<3?i(r):a>3?i(t,o,r):i(t,o))||r);a>3&&r&&Object.defineProperty(t,o,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 +1 @@
1
- import{r as t,h as a,H as i,g as s}from"./p-c2a62a18.js";import{s as e}from"./p-2c25e2f2.js";import{c as r}from"./p-a43079c8.js";import{t as o}from"./p-84ebc917.js";import{a as n}from"./p-8eaf8caf.js";const h=class{constructor(a){t(this,a),this.value=0,this.maxValue=5,this.disabled=!1,this.readonly=!1,this.increment="default"}onClick(t){if(t.stopPropagation(),this.disabled||this.readonly)return;const[a]=t.composedPath(),i=a.getRootNode(),s=Array.from(this.starContainer.children).findIndex((t=>t.shadowRoot===i))+1;s===this.value+.5?this.updateRatingValue(s):s===this.value?this.updateRatingValue(0):s!==Math.floor(this.value)?this.updateRatingValue("half"===this.increment?s-.5:s):this.updateRatingValue(s)}onKeyDown(t){if(t.stopPropagation(),this.disabled||this.readonly)return;const a="half"===this.increment?.5:1;switch(t.key){case"ArrowUp":case"ArrowRight":t.preventDefault(),this.updateRatingValue(this.value+a);break;case"ArrowDown":case"ArrowLeft":t.preventDefault(),this.updateRatingValue(this.value-a);break;case"End":t.preventDefault(),this.updateRatingValue(1/0);break;case"Home":t.preventDefault(),this.updateRatingValue(-1/0)}}updateRatingValue(t){const a=r(t,0,Array.from(this.starContainer.children).length),i="half"===this.increment?.5:1,s=Math.round(a/i)*i;this.value!==s&&(this.value=s,e(this.root,"input"),e(this.root,"change"))}getRatingStarElements(){return[...Array(this.maxValue).keys()].reduce(((t,a)=>t.concat(a+.5===this.value?"fa/star-sharp-half-stroke-regular":a+1<=this.value?"fa/star-solid":"fa/star-regular")),[]).map((t=>a("gux-icon",{"icon-name":t,decorative:!0,size:"small"})))}getTabIndex(){return this.disabled?-1:0}componentWillLoad(){o(this.root)}componentDidLoad(){this.root.getAttribute("aria-label")||this.root.getAttribute("aria-labelledby")||n(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.")}render(){return a(i,{key:"da1cb281ba3b06d90b42c824bef9106f7e01b508",role:"spinbutton",tabindex:this.getTabIndex(),"aria-readonly":this.readonly.toString(),"aria-valuenow":this.value,"aria-valuemin":"0","aria-valuemax":this.maxValue},a("div",{key:"afa4299f663d44eb841c0497132027dba28a352e",ref:t=>this.starContainer=t,class:{"gux-rating-star-container":!0,"gux-disabled":this.disabled}},this.getRatingStarElements()))}get root(){return s(this)}};h.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 gux-icon:hover:not(.gux-disabled){color:var(--gse-ui-rating-hover-color)}";export{h as gux_rating}
1
+ import{r as t,h as a,H as i,g as s}from"./p-c2a62a18.js";import{s as e}from"./p-2c25e2f2.js";import{c as r}from"./p-a43079c8.js";import{t as o}from"./p-f15a6eca.js";import{a as n}from"./p-8eaf8caf.js";const h=class{constructor(a){t(this,a),this.value=0,this.maxValue=5,this.disabled=!1,this.readonly=!1,this.increment="default"}onClick(t){if(t.stopPropagation(),this.disabled||this.readonly)return;const[a]=t.composedPath(),i=a.getRootNode(),s=Array.from(this.starContainer.children).findIndex((t=>t.shadowRoot===i))+1;s===this.value+.5?this.updateRatingValue(s):s===this.value?this.updateRatingValue(0):s!==Math.floor(this.value)?this.updateRatingValue("half"===this.increment?s-.5:s):this.updateRatingValue(s)}onKeyDown(t){if(t.stopPropagation(),this.disabled||this.readonly)return;const a="half"===this.increment?.5:1;switch(t.key){case"ArrowUp":case"ArrowRight":t.preventDefault(),this.updateRatingValue(this.value+a);break;case"ArrowDown":case"ArrowLeft":t.preventDefault(),this.updateRatingValue(this.value-a);break;case"End":t.preventDefault(),this.updateRatingValue(1/0);break;case"Home":t.preventDefault(),this.updateRatingValue(-1/0)}}updateRatingValue(t){const a=r(t,0,Array.from(this.starContainer.children).length),i="half"===this.increment?.5:1,s=Math.round(a/i)*i;this.value!==s&&(this.value=s,e(this.root,"input"),e(this.root,"change"))}getRatingStarElements(){return[...Array(this.maxValue).keys()].reduce(((t,a)=>t.concat(a+.5===this.value?"fa/star-sharp-half-stroke-regular":a+1<=this.value?"fa/star-solid":"fa/star-regular")),[]).map((t=>a("gux-icon",{"icon-name":t,decorative:!0,size:"small"})))}getTabIndex(){return this.disabled?-1:0}componentWillLoad(){o(this.root)}componentDidLoad(){this.root.getAttribute("aria-label")||this.root.getAttribute("aria-labelledby")||n(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.")}render(){return a(i,{key:"da1cb281ba3b06d90b42c824bef9106f7e01b508",role:"spinbutton",tabindex:this.getTabIndex(),"aria-readonly":this.readonly.toString(),"aria-valuenow":this.value,"aria-valuemin":"0","aria-valuemax":this.maxValue},a("div",{key:"afa4299f663d44eb841c0497132027dba28a352e",ref:t=>this.starContainer=t,class:{"gux-rating-star-container":!0,"gux-disabled":this.disabled}},this.getRatingStarElements()))}get root(){return s(this)}};h.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 gux-icon:hover:not(.gux-disabled){color:var(--gse-ui-rating-hover-color)}";export{h as gux_rating}
@@ -1 +1 @@
1
- import{r as t,f as s,h as e,H as i,g as o}from"./p-c2a62a18.js";import{s as a}from"./p-2c25e2f2.js";import{t as r}from"./p-84ebc917.js";const c=class{constructor(s){t(this,s),this.value=void 0,this.disabled=!1,this.items=[]}onClick(t){t.stopPropagation();const s=t.target.closest("gux-segmented-control-item");s&&this.value!==s.value&&(this.value=s.value,a(this.root,"input"),a(this.root,"change"))}watchDisabled(){this.items.forEach((t=>{s(t)}))}slotChanged(){this.items=Array.from(this.root.children)}componentWillLoad(){r(this.root)}componentWillRender(){this.items.forEach((t=>{t.selected=t.value===this.value}))}render(){return e(i,{key:"89b506b9119b1330460c4c3aea13dc14c083aabe",role:"group"},e("slot",{key:"1b9765f27fed5981688eb7fcd789d0f3d58712eb",onSlotchange:this.slotChanged.bind(this)}))}get root(){return o(this)}static get watchers(){return{disabled:["watchDisabled"]}}};c.style=":host{display:inline-flex}";export{c as gux_segmented_control_beta}
1
+ import{r as t,f as s,h as e,H as i,g as o}from"./p-c2a62a18.js";import{s as a}from"./p-2c25e2f2.js";import{t as r}from"./p-f15a6eca.js";const c=class{constructor(s){t(this,s),this.value=void 0,this.disabled=!1,this.items=[]}onClick(t){t.stopPropagation();const s=t.target.closest("gux-segmented-control-item");s&&this.value!==s.value&&(this.value=s.value,a(this.root,"input"),a(this.root,"change"))}watchDisabled(){this.items.forEach((t=>{s(t)}))}slotChanged(){this.items=Array.from(this.root.children)}componentWillLoad(){r(this.root)}componentWillRender(){this.items.forEach((t=>{t.selected=t.value===this.value}))}render(){return e(i,{key:"89b506b9119b1330460c4c3aea13dc14c083aabe",role:"group"},e("slot",{key:"1b9765f27fed5981688eb7fcd789d0f3d58712eb",onSlotchange:this.slotChanged.bind(this)}))}get root(){return o(this)}static get watchers(){return{disabled:["watchDisabled"]}}};c.style=":host{display:inline-flex}";export{c as gux_segmented_control_beta}
@@ -1 +1 @@
1
- import{r as e,h as a,g as n}from"./p-c2a62a18.js";import{t as i}from"./p-84ebc917.js";const g=class{constructor(a){e(this,a)}componentWillLoad(){i(this.root)}render(){return a("div",{key:"6f87842cf585d49bf35bde269d05d2a9b291de68",class:"gux-container",role:"alert","aria-live":"assertive"},a("div",{key:"e6dd8b3cb5ac0693196a4a660edec735a53d4246",class:"gux-progress"},a("slot",{key:"d169e7f1d27877a46b59607c8430607674b9b94c",name:"progress"})),a("div",{key:"52b10f99bf03d5657ca48085e63a4f47a439142c",class:"gux-primary-message"},a("slot",{key:"afe619e24b1ccdfe7bd2f42a75154a4ae023b0c7",name:"primary-message"})),a("div",{key:"1d0559c5eb005a2f3b935a116ac0675aeafe293f",class:"gux-additional-guidance"},a("slot",{key:"b932512e533820dc29acfbea5c856a99423c72fa",name:"additional-guidance"})))}get root(){return n(this)}};g.style=":host {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n container-type: inline-size;\n}\n\n.gux-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n max-inline-size: var(--gse-ui-progressAndLoading-loadingState-large-width);\n color: var(--gse-ui-progressAndLoading-textColor);\n text-align: center;\n}\n\n@container (width > 400px) {\n .gux-container .gux-primary-message {\n margin-block-start: var(--gse-ui-progressAndLoading-large-gap);\n font-family: var(--gse-ui-progressAndLoading-loadingState-large-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-large-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-large-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-large-header-lineHeight);\n }\n .gux-container .gux-additional-guidance {\n margin-block-start: var(--gse-ui-progressAndLoading-large-gapText);\n font-family: var(--gse-ui-progressAndLoading-loadingState-large-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-large-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-large-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-large-subheader-lineHeight);\n }\n}\n@container (width > 200px) and (width <=400px) {\n .gux-container .gux-primary-message {\n margin-block-start: var(--gse-ui-progressAndLoading-medium-gap);\n font-family: var(--gse-ui-progressAndLoading-loadingState-medium-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-medium-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-medium-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-medium-header-lineHeight);\n }\n .gux-container .gux-additional-guidance {\n margin-block-start: var(--gse-ui-progressAndLoading-medium-gapText);\n font-family: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-lineHeight);\n }\n}\n@container (width <=200px) {\n .gux-container .gux-primary-message {\n margin-block-start: var(--gse-ui-progressAndLoading-small-gap);\n font-family: var(--gse-ui-progressAndLoading-loadingState-small-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-small-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-small-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-small-header-lineHeight);\n }\n .gux-container .gux-additional-guidance {\n margin-block-start: var(--gse-ui-progressAndLoading-small-gapText);\n font-family: var(--gse-ui-progressAndLoading-loadingState-small-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-small-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-small-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-small-subheader-lineHeight);\n }\n}";export{g as gux_loading_message}
1
+ import{r as e,h as a,g as n}from"./p-c2a62a18.js";import{t as i}from"./p-f15a6eca.js";const g=class{constructor(a){e(this,a)}componentWillLoad(){i(this.root)}render(){return a("div",{key:"6f87842cf585d49bf35bde269d05d2a9b291de68",class:"gux-container",role:"alert","aria-live":"assertive"},a("div",{key:"e6dd8b3cb5ac0693196a4a660edec735a53d4246",class:"gux-progress"},a("slot",{key:"d169e7f1d27877a46b59607c8430607674b9b94c",name:"progress"})),a("div",{key:"52b10f99bf03d5657ca48085e63a4f47a439142c",class:"gux-primary-message"},a("slot",{key:"afe619e24b1ccdfe7bd2f42a75154a4ae023b0c7",name:"primary-message"})),a("div",{key:"1d0559c5eb005a2f3b935a116ac0675aeafe293f",class:"gux-additional-guidance"},a("slot",{key:"b932512e533820dc29acfbea5c856a99423c72fa",name:"additional-guidance"})))}get root(){return n(this)}};g.style=":host {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n container-type: inline-size;\n}\n\n.gux-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n max-inline-size: var(--gse-ui-progressAndLoading-loadingState-large-width);\n color: var(--gse-ui-progressAndLoading-textColor);\n text-align: center;\n}\n\n@container (width > 400px) {\n .gux-container .gux-primary-message {\n margin-block-start: var(--gse-ui-progressAndLoading-large-gap);\n font-family: var(--gse-ui-progressAndLoading-loadingState-large-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-large-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-large-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-large-header-lineHeight);\n }\n .gux-container .gux-additional-guidance {\n margin-block-start: var(--gse-ui-progressAndLoading-large-gapText);\n font-family: var(--gse-ui-progressAndLoading-loadingState-large-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-large-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-large-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-large-subheader-lineHeight);\n }\n}\n@container (width > 200px) and (width <=400px) {\n .gux-container .gux-primary-message {\n margin-block-start: var(--gse-ui-progressAndLoading-medium-gap);\n font-family: var(--gse-ui-progressAndLoading-loadingState-medium-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-medium-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-medium-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-medium-header-lineHeight);\n }\n .gux-container .gux-additional-guidance {\n margin-block-start: var(--gse-ui-progressAndLoading-medium-gapText);\n font-family: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-lineHeight);\n }\n}\n@container (width <=200px) {\n .gux-container .gux-primary-message {\n margin-block-start: var(--gse-ui-progressAndLoading-small-gap);\n font-family: var(--gse-ui-progressAndLoading-loadingState-small-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-small-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-small-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-small-header-lineHeight);\n }\n .gux-container .gux-additional-guidance {\n margin-block-start: var(--gse-ui-progressAndLoading-small-gapText);\n font-family: var(--gse-ui-progressAndLoading-loadingState-small-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-small-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-small-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-small-subheader-lineHeight);\n }\n}";export{g as gux_loading_message}
@@ -1 +1 @@
1
- import{r as a,c as e,h as o,g as t}from"./p-c2a62a18.js";import{r as i}from"./p-0934300e.js";import{t as n}from"./p-84ebc917.js";const d=class{constructor(o){a(this,o),this.guxdismiss=e(this,"guxdismiss",7),this.size="dynamic",this.trapFocus=!0,this.initialFocus=void 0}handleKeyEvent(a){"Escape"===a.key&&this.onDismissHandler(a)}connectedCallback(){this.triggerElement=document.activeElement}componentWillLoad(){n(this.root,{variant:`${this.size}-${this.trapFocus?"trapfocuson":"trapfocusoff"}`})}componentDidLoad(){var a,e,o;const t=this.getInitialFocusElement();t?null===(a=t.focus)||void 0===a||a.call(t):this.dismissButton&&(null===(o=(e=this.dismissButton).focus)||void 0===o||o.call(e))}render(){const a=this.hasModalTitleSlot(),e=this.hasFooterButtons(),t=i();return o("div",{key:"cbb7033a32fc4731d29fd53c5fbdda9841eb62bd",class:"gux-modal",role:"dialog","aria-modal":"true","aria-labelledby":a?t:null},o("div",{key:"a04bb4a942a82d5510d80e19c0f0bbcbda3a2e4a",class:`gux-modal-container gux-${this.size}`},this.renderModalTrapFocusEl(),a&&o("h1",{key:"7187978e04360410ce75cb03992344e8608078c5",class:"gux-modal-header",id:t},o("slot",{key:"62807294a0c5e6a87921768b6e8ba37c1e745902",name:"title"})),o("gux-dismiss-button",{key:"4f9ef794e1eab16baf2ed2d24e83c2b24dbb7e7f",onClick:this.onDismissHandler.bind(this),ref:a=>this.dismissButton=a}),o("div",{key:"d533e1e8919ce49002e241e6c412061e8a0e9816",class:{"gux-modal-content":!0,"gux-no-buttons":!e}},o("p",{key:"aba93cee1b1827c8931efa8fcef277343ee943b9"},o("slot",{key:"74f8e6920f16eba66ffd2d7030893207410e02b0",name:"content"}))),e&&o("div",{key:"8afe0581fa777708dd8daa1576797c4bc79db659",class:"gux-button-footer"},o("div",{key:"3997fa6457bce071b70e2a3869c5dd1d2f616afd",class:"gux-left-align-buttons"},o("slot",{key:"c2796e0fe34c961aec79139c315f08733ccd7c79",name:"left-align-buttons"})),o("div",{key:"0d4f0e75cfe8c06f6bc81d077902de7b7d78b3c1",class:"gux-right-align-buttons"},o("slot",{key:"82f39a85ce86c9b60931429e056b09940e11a998",name:"right-align-buttons"}))),this.renderModalTrapFocusEl()))}renderModalTrapFocusEl(){if(this.trapFocus)return o("span",{onFocus:()=>this.dismissButton.focus(),tabindex:"0"})}getInitialFocusElement(){return this.initialFocus?this.root.querySelector(this.initialFocus):void 0}hasModalTitleSlot(){return Boolean(this.root.querySelector('[slot="title"]'))}hasFooterButtons(){return Boolean(this.root.querySelector('[slot="left-align-buttons"]'))||Boolean(this.root.querySelector('[slot="right-align-buttons"]'))}onDismissHandler(a){var e;a.stopPropagation(),this.guxdismiss.emit().defaultPrevented||(this.root.remove(),null===(e=this.triggerElement)||void 0===e||e.focus())}get root(){return t(this)}};d.style="::slotted(button:active:enabled){color:var(--gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}slot[name=left-align-buttons]::slotted(:not(button,gux-button)){display:flex;flex-direction:row;gap:var(--gse-ui-modal-buttonBar-gap);align-content:flex-start;align-items:center}:host .gux-modal{position:fixed;inset:0;z-index:var(--gse-semantic-zIndex-modal);display:flex;align-items:center;justify-content:center;color:#2e394c;background:var(--gse-ui-modal-shroudColor)}:host .gux-modal .gux-modal-container{position:relative;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;padding:var(--gse-ui-modal-padding) 0;background:var(--gse-ui-modal-backgroundColor);border:1px solid #b4bccb;border-radius:var(--gse-ui-modal-borderRadius);box-shadow:var(--gse-ui-modal-boxShadow)}:host .gux-modal .gux-modal-container.gux-small{width:var(--gse-ui-modal-small-width);max-height:min(368px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-medium{width:var(--gse-ui-modal-medium-width);max-height:min(640px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-large{width:var(--gse-ui-modal-large-width);max-height:min(640px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-dynamic{max-width:calc(100vw - 48px);max-height:calc(100vh - 48px)}:host .gux-modal .gux-modal-container.gux-dynamic .gux-modal-content{max-height:none}:host .gux-modal .gux-modal-container .gux-modal-header{padding:0 var(--gse-ui-modal-padding);margin:0;font-family:var(--gse-ui-modal-heading-fontFamily);font-size:var(--gse-ui-modal-heading-fontSize);font-weight:var(--gse-ui-modal-heading-fontWeight);line-height:var(--gse-ui-modal-heading-fontFamily);color:var(--gse-ui-modal-headerColor);font-family:var(--gse-semantic-heading-xl-bold-fontFamily), var(--gse-semantic-theme-fontFamily-headings), sans-serif;font-size:var(--gse-semantic-heading-xl-bold-fontSize);line-height:var(--gse-semantic-heading-xl-bold-lineHeight);font-weight:var(--gse-semantic-heading-xl-bold-fontWeight)}:host .gux-modal .gux-modal-container .gux-modal-content{max-height:432px;padding:0 var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap);margin-bottom:var(--gse-ui-modal-gap);overflow-y:auto}:host .gux-modal .gux-modal-container .gux-modal-content.gux-no-buttons{margin-bottom:0}:host .gux-modal .gux-modal-container .gux-button-footer{display:flex;justify-content:space-between;padding:0 var(--gse-ui-modal-padding)}@media (max-width: 416px){:host .gux-modal .gux-modal-container.gux-small,:host .gux-modal .gux-modal-container.gux-medium,:host .gux-modal .gux-modal-container.gux-large{width:100%;height:100%}}";export{d as gux_modal_legacy}
1
+ import{r as a,c as e,h as o,g as t}from"./p-c2a62a18.js";import{r as i}from"./p-0934300e.js";import{t as n}from"./p-f15a6eca.js";const d=class{constructor(o){a(this,o),this.guxdismiss=e(this,"guxdismiss",7),this.size="dynamic",this.trapFocus=!0,this.initialFocus=void 0}handleKeyEvent(a){"Escape"===a.key&&this.onDismissHandler(a)}connectedCallback(){this.triggerElement=document.activeElement}componentWillLoad(){n(this.root,{variant:`${this.size}-${this.trapFocus?"trapfocuson":"trapfocusoff"}`})}componentDidLoad(){var a,e,o;const t=this.getInitialFocusElement();t?null===(a=t.focus)||void 0===a||a.call(t):this.dismissButton&&(null===(o=(e=this.dismissButton).focus)||void 0===o||o.call(e))}render(){const a=this.hasModalTitleSlot(),e=this.hasFooterButtons(),t=i();return o("div",{key:"cbb7033a32fc4731d29fd53c5fbdda9841eb62bd",class:"gux-modal",role:"dialog","aria-modal":"true","aria-labelledby":a?t:null},o("div",{key:"a04bb4a942a82d5510d80e19c0f0bbcbda3a2e4a",class:`gux-modal-container gux-${this.size}`},this.renderModalTrapFocusEl(),a&&o("h1",{key:"7187978e04360410ce75cb03992344e8608078c5",class:"gux-modal-header",id:t},o("slot",{key:"62807294a0c5e6a87921768b6e8ba37c1e745902",name:"title"})),o("gux-dismiss-button",{key:"4f9ef794e1eab16baf2ed2d24e83c2b24dbb7e7f",onClick:this.onDismissHandler.bind(this),ref:a=>this.dismissButton=a}),o("div",{key:"d533e1e8919ce49002e241e6c412061e8a0e9816",class:{"gux-modal-content":!0,"gux-no-buttons":!e}},o("p",{key:"aba93cee1b1827c8931efa8fcef277343ee943b9"},o("slot",{key:"74f8e6920f16eba66ffd2d7030893207410e02b0",name:"content"}))),e&&o("div",{key:"8afe0581fa777708dd8daa1576797c4bc79db659",class:"gux-button-footer"},o("div",{key:"3997fa6457bce071b70e2a3869c5dd1d2f616afd",class:"gux-left-align-buttons"},o("slot",{key:"c2796e0fe34c961aec79139c315f08733ccd7c79",name:"left-align-buttons"})),o("div",{key:"0d4f0e75cfe8c06f6bc81d077902de7b7d78b3c1",class:"gux-right-align-buttons"},o("slot",{key:"82f39a85ce86c9b60931429e056b09940e11a998",name:"right-align-buttons"}))),this.renderModalTrapFocusEl()))}renderModalTrapFocusEl(){if(this.trapFocus)return o("span",{onFocus:()=>this.dismissButton.focus(),tabindex:"0"})}getInitialFocusElement(){return this.initialFocus?this.root.querySelector(this.initialFocus):void 0}hasModalTitleSlot(){return Boolean(this.root.querySelector('[slot="title"]'))}hasFooterButtons(){return Boolean(this.root.querySelector('[slot="left-align-buttons"]'))||Boolean(this.root.querySelector('[slot="right-align-buttons"]'))}onDismissHandler(a){var e;a.stopPropagation(),this.guxdismiss.emit().defaultPrevented||(this.root.remove(),null===(e=this.triggerElement)||void 0===e||e.focus())}get root(){return t(this)}};d.style="::slotted(button:active:enabled){color:var(--gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}slot[name=left-align-buttons]::slotted(:not(button,gux-button)){display:flex;flex-direction:row;gap:var(--gse-ui-modal-buttonBar-gap);align-content:flex-start;align-items:center}:host .gux-modal{position:fixed;inset:0;z-index:var(--gse-semantic-zIndex-modal);display:flex;align-items:center;justify-content:center;color:#2e394c;background:var(--gse-ui-modal-shroudColor)}:host .gux-modal .gux-modal-container{position:relative;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;padding:var(--gse-ui-modal-padding) 0;background:var(--gse-ui-modal-backgroundColor);border:1px solid #b4bccb;border-radius:var(--gse-ui-modal-borderRadius);box-shadow:var(--gse-ui-modal-boxShadow)}:host .gux-modal .gux-modal-container.gux-small{width:var(--gse-ui-modal-small-width);max-height:min(368px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-medium{width:var(--gse-ui-modal-medium-width);max-height:min(640px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-large{width:var(--gse-ui-modal-large-width);max-height:min(640px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-dynamic{max-width:calc(100vw - 48px);max-height:calc(100vh - 48px)}:host .gux-modal .gux-modal-container.gux-dynamic .gux-modal-content{max-height:none}:host .gux-modal .gux-modal-container .gux-modal-header{padding:0 var(--gse-ui-modal-padding);margin:0;font-family:var(--gse-ui-modal-heading-fontFamily);font-size:var(--gse-ui-modal-heading-fontSize);font-weight:var(--gse-ui-modal-heading-fontWeight);line-height:var(--gse-ui-modal-heading-fontFamily);color:var(--gse-ui-modal-headerColor);font-family:var(--gse-semantic-heading-xl-bold-fontFamily), var(--gse-semantic-theme-fontFamily-headings), sans-serif;font-size:var(--gse-semantic-heading-xl-bold-fontSize);line-height:var(--gse-semantic-heading-xl-bold-lineHeight);font-weight:var(--gse-semantic-heading-xl-bold-fontWeight)}:host .gux-modal .gux-modal-container .gux-modal-content{max-height:432px;padding:0 var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap);margin-bottom:var(--gse-ui-modal-gap);overflow-y:auto}:host .gux-modal .gux-modal-container .gux-modal-content.gux-no-buttons{margin-bottom:0}:host .gux-modal .gux-modal-container .gux-button-footer{display:flex;justify-content:space-between;padding:0 var(--gse-ui-modal-padding)}@media (max-width: 416px){:host .gux-modal .gux-modal-container.gux-small,:host .gux-modal .gux-modal-container.gux-medium,:host .gux-modal .gux-modal-container.gux-large{width:100%;height:100%}}";export{d as gux_modal_legacy}
@@ -1 +1 @@
1
- import{r as t,c as e,h as s,g as a}from"./p-c2a62a18.js";import{b as i}from"./p-16feb2a1.js";import{t as n}from"./p-84ebc917.js";import{g as r}from"./p-4202e9f2.js";import{o}from"./p-0f60c7b5.js";import{t as c}from"./p-408d5857.js";const d=class{constructor(s){t(this,s),this.guxsortchanged=e(this,"guxsortchanged",7),this.includeUnsorted=!1,this.headerContent=void 0,this.active=!1,this.sort="none",this.isLeftAlignIcon=!1}async componentWillLoad(){n(this.root),this.i18n=await i(this.root,c,"gux-table"),this.tableHeader=r("th",this.root),this.thObserver=o(this.tableHeader,(()=>{this.setState()}),{attributes:!0,childList:!1,subtree:!1}),this.setState()}disconnectedCallback(){this.thObserver&&this.thObserver.disconnect()}onClick(){this.guxsortchanged.emit({columnName:this.tableHeader.dataset.columnName,sortDirection:this.getNextSort(this.sort)})}setState(){this.headerContent=this.tableHeader.textContent,this.isLeftAlignIcon=this.tableHeader.hasAttribute("data-cell-numeric")||this.tableHeader.hasAttribute("data-cell-action");const t=this.tableHeader.getAttribute("aria-sort");switch(t){case"ascending":case"descending":this.active=!0,this.sort=t;break;default:this.active=!1,this.sort="none"}}getIconName(t){return"descending"===t?"fa/caret-down-solid":"fa/caret-up-solid"}getNextSort(t){switch(t){case"none":return"ascending";case"ascending":return"descending";default:return this.includeUnsorted?"none":"ascending"}}getSRText(t){switch(t){case"ascending":return this.i18n("ascendingColumnSort",{headerContent:this.headerContent});case"descending":return this.i18n(this.includeUnsorted?"descendingColumnSortIncludeUnsorted":"descendingColumnSort",{headerContent:this.headerContent});default:return this.i18n("noColumnSort",{headerContent:this.headerContent})}}render(){return s("div",{key:"0fc80e7717e41731a7c1e48a722feab47ccd8136",class:"gux-container"},s("button",{key:"db18b59e742e419c6504549a739045e0cd1c2d1d",class:{"gux-sort-button":!0,"gux-active":this.active},type:"button",onClick:()=>this.onClick(),"aria-label":this.getSRText(this.sort)},s("gux-icon",{key:"34546d8e5bb8a988e6dd67ac7dfab515a9dcbccf",class:{"gux-sort-icon":!0,"gux-left":this.isLeftAlignIcon},size:"small","icon-name":this.getIconName(this.sort),decorative:!0})),s("div",{key:"2a462f46723a61a7b679ed771c61f1eff9e1cdb0",class:"gux-resize-spacer"}))}static get delegatesFocus(){return!0}get root(){return a(this)}};d.style=".gux-container{position:absolute;inset:0;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:flex-start flex-start;align-items:center;border-block-start:var(--gse-ui-dataTableItems-header-selectedBar-height) solid transparent;border-block-end:var(--gse-ui-dataTableItems-header-selectedBar-height) solid transparent}.gux-container:focus-within{border-block-end-color:var(--gse-ui-dataTableItems-header-selectedIndicatorColor)}.gux-container .gux-sort-button{all:unset;flex:1 1 auto;align-self:stretch;order:0;cursor:pointer}.gux-container .gux-sort-button .gux-sort-icon{float:inline-end;margin-block:0;margin-inline:var(--gse-ui-dataTableItems-header-gap);color:var(--gse-ui-dataTableItems-header-sort-foregroundColor)}.gux-container .gux-sort-button .gux-sort-icon.gux-left{float:inline-start;margin-inline-start:calc(2px + var(--gse-ui-dataTableItems-header-gap))}.gux-container .gux-resize-spacer{flex:0 1 auto;align-self:stretch;order:0;inline-size:2px}";export{d as gux_sort_control}
1
+ import{r as t,c as e,h as s,g as a}from"./p-c2a62a18.js";import{b as i}from"./p-16feb2a1.js";import{t as n}from"./p-f15a6eca.js";import{g as r}from"./p-4202e9f2.js";import{o}from"./p-0f60c7b5.js";import{t as c}from"./p-408d5857.js";const d=class{constructor(s){t(this,s),this.guxsortchanged=e(this,"guxsortchanged",7),this.includeUnsorted=!1,this.headerContent=void 0,this.active=!1,this.sort="none",this.isLeftAlignIcon=!1}async componentWillLoad(){n(this.root),this.i18n=await i(this.root,c,"gux-table"),this.tableHeader=r("th",this.root),this.thObserver=o(this.tableHeader,(()=>{this.setState()}),{attributes:!0,childList:!1,subtree:!1}),this.setState()}disconnectedCallback(){this.thObserver&&this.thObserver.disconnect()}onClick(){this.guxsortchanged.emit({columnName:this.tableHeader.dataset.columnName,sortDirection:this.getNextSort(this.sort)})}setState(){this.headerContent=this.tableHeader.textContent,this.isLeftAlignIcon=this.tableHeader.hasAttribute("data-cell-numeric")||this.tableHeader.hasAttribute("data-cell-action");const t=this.tableHeader.getAttribute("aria-sort");switch(t){case"ascending":case"descending":this.active=!0,this.sort=t;break;default:this.active=!1,this.sort="none"}}getIconName(t){return"descending"===t?"fa/caret-down-solid":"fa/caret-up-solid"}getNextSort(t){switch(t){case"none":return"ascending";case"ascending":return"descending";default:return this.includeUnsorted?"none":"ascending"}}getSRText(t){switch(t){case"ascending":return this.i18n("ascendingColumnSort",{headerContent:this.headerContent});case"descending":return this.i18n(this.includeUnsorted?"descendingColumnSortIncludeUnsorted":"descendingColumnSort",{headerContent:this.headerContent});default:return this.i18n("noColumnSort",{headerContent:this.headerContent})}}render(){return s("div",{key:"0fc80e7717e41731a7c1e48a722feab47ccd8136",class:"gux-container"},s("button",{key:"db18b59e742e419c6504549a739045e0cd1c2d1d",class:{"gux-sort-button":!0,"gux-active":this.active},type:"button",onClick:()=>this.onClick(),"aria-label":this.getSRText(this.sort)},s("gux-icon",{key:"34546d8e5bb8a988e6dd67ac7dfab515a9dcbccf",class:{"gux-sort-icon":!0,"gux-left":this.isLeftAlignIcon},size:"small","icon-name":this.getIconName(this.sort),decorative:!0})),s("div",{key:"2a462f46723a61a7b679ed771c61f1eff9e1cdb0",class:"gux-resize-spacer"}))}static get delegatesFocus(){return!0}get root(){return a(this)}};d.style=".gux-container{position:absolute;inset:0;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:flex-start flex-start;align-items:center;border-block-start:var(--gse-ui-dataTableItems-header-selectedBar-height) solid transparent;border-block-end:var(--gse-ui-dataTableItems-header-selectedBar-height) solid transparent}.gux-container:focus-within{border-block-end-color:var(--gse-ui-dataTableItems-header-selectedIndicatorColor)}.gux-container .gux-sort-button{all:unset;flex:1 1 auto;align-self:stretch;order:0;cursor:pointer}.gux-container .gux-sort-button .gux-sort-icon{float:inline-end;margin-block:0;margin-inline:var(--gse-ui-dataTableItems-header-gap);color:var(--gse-ui-dataTableItems-header-sort-foregroundColor)}.gux-container .gux-sort-button .gux-sort-icon.gux-left{float:inline-start;margin-inline-start:calc(2px + var(--gse-ui-dataTableItems-header-gap))}.gux-container .gux-resize-spacer{flex:0 1 auto;align-self:stretch;order:0;inline-size:2px}";export{d as gux_sort_control}
@@ -1 +1 @@
1
- import{r as e,h as o,g as r}from"./p-c2a62a18.js";import{O as t}from"./p-9df4dd07.js";import{h as i}from"./p-6d8b4027.js";import{b as l}from"./p-16feb2a1.js";import{G as a,a as s}from"./p-546eb56a.js";import{G as f,a as n,b as d}from"./p-2c779f86.js";import{g as u}from"./p-0268a3e8.js";import{t as h}from"./p-84ebc917.js";import"./p-4202e9f2.js";const 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=i(this.root,"group-error"),this.hasGroupHelp=i(this.root,"group-help")}handleKeyup(e){var o,r;"Tab"===e.key?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)):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=i(this.root,"group-error"),this.hasGroupHelp=i(this.root,"group-help"),this.hasGroupLabelInfo=i(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:"7e50ad9e03f8daa4d4948d3ac57271dd309eb7b0",labelPosition:"above",disabled:this.disabled},o(n,{key:"5cbd6303d0bd85e160d9bc12039dc8391b3f2e84"},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:"d56f0b2f60489258d4c080c2497a6fc2f96da392",position:"above",required:this.required},o("slot",{key:"965db1425f0019661dad213a378287587de98354",name:"group-label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"bb33d495d3e13c42bb6e9946e4dae4bfd8190769",variant:this.indicatorMark,required:this.required}),o("slot",{key:"349b17a1832d31951ac5eb308766da74664715c6",name:"group-label-info"})),o("slot",{key:"c610888099a640750848677b85dbddf86431701b"}),o(s,{key:"c75fa80a5af97fc9a95bde0cfd0a757b8ce0016c",show:this.hasGroupError},o("slot",{key:"8fc449fe09bf4c731953374bf4266f209314ce85",name:"group-error"})),o(a,{key:"a4ca02ce2425a1353cf25c1da9d1da607dce7e36",show:!this.hasGroupError&&this.hasGroupHelp},o("slot",{key:"040f8e24394398513a694404b61c3d5c88d34ff0",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,t){var i,l=arguments.length,a=l<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,r,t);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(l<3?i(a):l>3?i(o,r,a):i(o,r))||a);l>3&&a&&Object.defineProperty(o,r,a)})([t({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 1 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 1 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(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,g as r}from"./p-c2a62a18.js";import{O as t}from"./p-9df4dd07.js";import{h as i}from"./p-6d8b4027.js";import{b as l}from"./p-16feb2a1.js";import{G as a,a as s}from"./p-546eb56a.js";import{G as f,a as n,b as d}from"./p-2c779f86.js";import{g as u}from"./p-0268a3e8.js";import{t as h}from"./p-f15a6eca.js";import"./p-4202e9f2.js";const 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=i(this.root,"group-error"),this.hasGroupHelp=i(this.root,"group-help")}handleKeyup(e){var o,r;"Tab"===e.key?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)):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=i(this.root,"group-error"),this.hasGroupHelp=i(this.root,"group-help"),this.hasGroupLabelInfo=i(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:"7e50ad9e03f8daa4d4948d3ac57271dd309eb7b0",labelPosition:"above",disabled:this.disabled},o(n,{key:"5cbd6303d0bd85e160d9bc12039dc8391b3f2e84"},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:"d56f0b2f60489258d4c080c2497a6fc2f96da392",position:"above",required:this.required},o("slot",{key:"965db1425f0019661dad213a378287587de98354",name:"group-label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"bb33d495d3e13c42bb6e9946e4dae4bfd8190769",variant:this.indicatorMark,required:this.required}),o("slot",{key:"349b17a1832d31951ac5eb308766da74664715c6",name:"group-label-info"})),o("slot",{key:"c610888099a640750848677b85dbddf86431701b"}),o(s,{key:"c75fa80a5af97fc9a95bde0cfd0a757b8ce0016c",show:this.hasGroupError},o("slot",{key:"8fc449fe09bf4c731953374bf4266f209314ce85",name:"group-error"})),o(a,{key:"a4ca02ce2425a1353cf25c1da9d1da607dce7e36",show:!this.hasGroupError&&this.hasGroupHelp},o("slot",{key:"040f8e24394398513a694404b61c3d5c88d34ff0",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,t){var i,l=arguments.length,a=l<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,r,t);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(l<3?i(a):l>3?i(o,r,a):i(o,r))||a);l>3&&a&&Object.defineProperty(o,r,a)})([t({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 1 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 1 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(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,h as d,g as e}from"./p-c2a62a18.js";import{t as a}from"./p-84ebc917.js";const o=class{constructor(d){r(this,d),this.accent="bordered"}componentWillLoad(){a(this.root,{variant:this.accent})}render(){return d("div",{key:"1a85dcf2fa992904b3e187d0bd6f3f6d5219db0b",class:{"gux-card":!0,[`gux-${this.accent}`]:!0}},d("slot",{key:"1675843012bddd80e09c7e5adcc636609fb7465a"}))}get root(){return e(this)}};o.style=":host{display:block;inline-size:fit-content}.gux-card{box-sizing:border-box;padding:var(--gse-ui-card-padding);background-color:var(--gse-ui-card-backgroundColor);border:var(--gse-ui-card-default-border-width) var(--gse-ui-card-default-border-style) var(--gse-ui-card-default-border-color);border-radius:var(--gse-ui-card-borderRadius)}.gux-card.gux-bordered{border:var(--gse-ui-card-default-border-width) var(--gse-ui-card-default-border-style) var(--gse-ui-card-default-border-color)}.gux-card.gux-raised{border:var(--gse-ui-card-raised-border-width) var(--gse-ui-card-raised-border-style) var(--gse-ui-card-raised-border-color);box-shadow:var(--gse-ui-card-raised-boxShadow)}.gux-card.gux-borderless{border:var(--gse-ui-card-borderless-border-width) var(--gse-ui-card-borderless-border-style) var(--gse-ui-card-borderless-border-color)}";export{o as gux_card}
1
+ import{r,h as d,g as e}from"./p-c2a62a18.js";import{t as a}from"./p-f15a6eca.js";const o=class{constructor(d){r(this,d),this.accent="bordered"}componentWillLoad(){a(this.root,{variant:this.accent})}render(){return d("div",{key:"1a85dcf2fa992904b3e187d0bd6f3f6d5219db0b",class:{"gux-card":!0,[`gux-${this.accent}`]:!0}},d("slot",{key:"1675843012bddd80e09c7e5adcc636609fb7465a"}))}get root(){return e(this)}};o.style=":host{display:block;inline-size:fit-content}.gux-card{box-sizing:border-box;padding:var(--gse-ui-card-padding);background-color:var(--gse-ui-card-backgroundColor);border:var(--gse-ui-card-default-border-width) var(--gse-ui-card-default-border-style) var(--gse-ui-card-default-border-color);border-radius:var(--gse-ui-card-borderRadius)}.gux-card.gux-bordered{border:var(--gse-ui-card-default-border-width) var(--gse-ui-card-default-border-style) var(--gse-ui-card-default-border-color)}.gux-card.gux-raised{border:var(--gse-ui-card-raised-border-width) var(--gse-ui-card-raised-border-style) var(--gse-ui-card-raised-border-color);box-shadow:var(--gse-ui-card-raised-boxShadow)}.gux-card.gux-borderless{border:var(--gse-ui-card-borderless-border-width) var(--gse-ui-card-borderless-border-style) var(--gse-ui-card-borderless-border-color)}";export{o as gux_card}
@@ -1 +1 @@
1
- import{r as t,f as e,d as i,h as a,H as o,g as n}from"./p-c2a62a18.js";import{O as s}from"./p-26772091.js";import{O as r}from"./p-9df4dd07.js";import{t as l}from"./p-84ebc917.js";import{g as c}from"./p-89657908.js";import{a as d}from"./p-cf0e7d3b.js";function u(t,e){[].concat(t).forEach((t=>{null!=t&&(t.accent=e)}))}function h(t,...e){e.flat().filter((t=>null!=t&&!(null==t?void 0:t.hasAttribute("icon-only")))).forEach((e=>e.iconOnly=t))}var b=function(t,e,i,a){var o,n=arguments.length,s=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,a);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const p=class{constructor(e){t(this,e),this.minimumSizes={full:0,iconOnly:0,condensed:0},this.displayedLayout="full",this.hasContextDivider=!1}onMutation(){this.hasContextDivider=this.needsContextDivider(),e(this.root)}recordLayoutMinSize(){i((()=>{var t,e,i;const a=0|(null===(t=this.searchAndFilterContainer)||void 0===t?void 0:t.clientWidth),o=0|(null===(e=this.actionsContainer)||void 0===e?void 0:e.clientWidth),n=0|(null===(i=this.minControlSize)||void 0===i?void 0:i.clientWidth);this.minimumSizes[this.displayedLayout]=a+o+n}))}get minControlSize(){return this.root.shadowRoot.querySelector(".section-spacing")}get actionsContainer(){return this.root.shadowRoot.querySelector(".gux-contextual-permanent-primary")}get searchAndFilterContainer(){return this.root.shadowRoot.querySelector(".search-filter-container")}get filterSlot(){return c(this.root,"search-and-filter")}get menuActionSlot(){return c(this.root,"menu-actions")}get permanentSlot(){return c(this.root,"permanent-actions")}get contextualSlot(){return c(this.root,"contextual-actions")}get primaryAction(){var t;return null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-table-toolbar-custom-action[slot]")}get permanentActions(){var t,e;return(null===(t=this.permanentSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.permanentSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get menuActionsItems(){var t,e;if(null===(t=this.menuActionSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(e=this.menuActionSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get contextualActions(){var t,e;return(null===(t=this.contextualSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.contextualSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get filterActions(){var t,e;return(null===(t=this.filterSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.filterSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get allFilterContextual(){var t;return null===(t=this.filterActions)||void 0===t?void 0:t.concat(this.contextualActions)}needsContextDivider(){var t;return(null===(t=this.contextualActions)||void 0===t?void 0:t.length)&&this.contextualSlot!==this.root.lastElementChild}renderMenu(){var t;return Boolean((null===(t=this.menuActionsItems)||void 0===t?void 0:t.length)||"condensed"==this.displayedLayout)}renderFullLayout(){this.displayedLayout="full",h(!1,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}renderIconOnlyLayoutScaleDown(){this.displayedLayout="iconOnly",h(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}renderIconOnlyLayoutScaleUp(){var t,e;this.displayedLayout="iconOnly",u(this.permanentActions,"secondary"),u(this.primaryAction,"primary"),h(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions),this.permanentActions&&(null===(t=this.root)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(e=this.root)||void 0===e||e.appendChild(this.primaryAction))}renderCondensedLayout(){var t,e;this.displayedLayout="condensed",this.permanentActions&&(null===(t=this.menuActionSlot)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(e=this.menuActionSlot)||void 0===e||e.appendChild(this.primaryAction)),h(!0,...this.allFilterContextual),h(!1,...this.permanentActions),h(!1,this.primaryAction),u(this.menuActionsItems,"ghost")}componentWillRender(){l(this.root),this.hasContextDivider=this.needsContextDivider()}componentDidLoad(){d((()=>{this.recordLayoutMinSize(),this.checkResponsiveLayout()})),u(this.menuActionsItems,"ghost")}componentDidUpdate(){this.recordLayoutMinSize(),this.checkResponsiveLayout()}checkResponsiveLayout(){i((()=>{const t=this.root.clientWidth;t<=this.minimumSizes.iconOnly?"iconOnly"==this.displayedLayout&&this.renderCondensedLayout():t<=this.minimumSizes.full?"full"==this.displayedLayout?this.renderIconOnlyLayoutScaleDown():"condensed"==this.displayedLayout&&this.renderIconOnlyLayoutScaleUp():this.minimumSizes.iconOnly>this.minimumSizes.full?this.renderIconOnlyLayoutScaleUp():this.renderFullLayout()}))}render(){return a(o,{key:"4ba93ae62482bb978d9776edbe8d9f978302ae5c",role:"toolbar","aria-orientation":"horizontal","gs-layout":this.displayedLayout},a("div",{key:"6fcf5332795a7e0d4fbef81e799f2f5b8164ab9f",class:"search-filter-container"},a("slot",{key:"506f064a7af49214cd48b9c7e98362463a97c36a",name:"search-and-filter"})),a("div",{key:"183ca5b70e726a572274fbe660b9c5567bf78ec4",class:"section-spacing"}),a("div",{key:"44680a6c7b9d79336805ec7b85b7c351db8971e5",class:"gux-contextual-permanent-primary"},a("div",{key:"ccae49b84c7f058d7aa304d5b70ec07bc59c5076",class:{"gux-contextual-wrapper":this.hasContextDivider}},a("slot",{key:"e90361848c27139a2c73d9ddba85d39af41802c6",name:"contextual-actions"})),a("div",{key:"c5a8e83b7070ccf10587d514646d64fe9ed253c1",class:"gux-permanent-menu-primary-wrapper"},a("slot",{key:"1954010d1ee7255f2ccdb62771bac36b8ad61593",name:"permanent-actions"}),a("gux-table-toolbar-menu-button",{key:"f446481d5246b345ad6fbaeffa377c0013ea57f9","show-menu":this.renderMenu()},a("slot",{key:"4bfbb22bbc459dbef7139cc2a2f87490d38971d7",name:"menu-actions"})),a("slot",{key:"0651446a613fc4d2d4d49a285bdf89b6fc624931",name:"primary-action"}))))}get root(){return n(this)}};b([r({childList:!0,subtree:!0})],p.prototype,"onMutation",null),b([s()],p.prototype,"checkResponsiveLayout",null),p.style=":host{display:flex;flex-direction:row;align-items:center;justify-content:space-between;inline-size:100%;max-block-size:var(--gse-ui-dataTableItems-tableToolbar-height);visibility:hidden;transition:visibility 0s 0.5s;}@keyframes show-toolbar{to{visibility:visible}}:host .search-filter-container{min-inline-size:260px;padding-inline-end:var(--gse-ui-dataTableItems-tableToolbar-gap)}:host slot[name=search-and-filter]::slotted(*){display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);align-content:flex-start;align-items:center}:host .section-spacing{display:flex;flex-direction:row;min-inline-size:72px}:host .gux-contextual-permanent-primary{display:flex;flex-direction:row;justify-content:space-between;padding-inline-start:var(--gse-ui-dataTableItems-tableToolbar-gap)}:host .gux-contextual-permanent-primary slot[name=permanent-actions]::slotted(*),:host .gux-contextual-permanent-primary slot[name=contextual-actions]::slotted(*){display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);align-content:flex-end;align-items:center}:host .gux-contextual-permanent-primary .gux-contextual-wrapper{padding-inline-end:var(--gse-ui-dataTableItems-tableToolbar-gap);border-inline-end:var(--gse-ui-dataTableItems-tableToolbar-divider-width) solid var(--gse-ui-dataTableItems-tableToolbar-dividerColor)}:host .gux-contextual-permanent-primary .gux-permanent-menu-primary-wrapper{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);margin-inline-start:var(--gse-ui-dataTableItems-tableToolbar-gap)}";export{p as gux_table_toolbar}
1
+ import{r as t,f as e,d as i,h as a,H as o,g as n}from"./p-c2a62a18.js";import{O as s}from"./p-26772091.js";import{O as r}from"./p-9df4dd07.js";import{t as l}from"./p-f15a6eca.js";import{g as c}from"./p-89657908.js";import{a as d}from"./p-cf0e7d3b.js";function u(t,e){[].concat(t).forEach((t=>{null!=t&&(t.accent=e)}))}function h(t,...e){e.flat().filter((t=>null!=t&&!(null==t?void 0:t.hasAttribute("icon-only")))).forEach((e=>e.iconOnly=t))}var b=function(t,e,i,a){var o,n=arguments.length,s=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,a);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const p=class{constructor(e){t(this,e),this.minimumSizes={full:0,iconOnly:0,condensed:0},this.displayedLayout="full",this.hasContextDivider=!1}onMutation(){this.hasContextDivider=this.needsContextDivider(),e(this.root)}recordLayoutMinSize(){i((()=>{var t,e,i;const a=0|(null===(t=this.searchAndFilterContainer)||void 0===t?void 0:t.clientWidth),o=0|(null===(e=this.actionsContainer)||void 0===e?void 0:e.clientWidth),n=0|(null===(i=this.minControlSize)||void 0===i?void 0:i.clientWidth);this.minimumSizes[this.displayedLayout]=a+o+n}))}get minControlSize(){return this.root.shadowRoot.querySelector(".section-spacing")}get actionsContainer(){return this.root.shadowRoot.querySelector(".gux-contextual-permanent-primary")}get searchAndFilterContainer(){return this.root.shadowRoot.querySelector(".search-filter-container")}get filterSlot(){return c(this.root,"search-and-filter")}get menuActionSlot(){return c(this.root,"menu-actions")}get permanentSlot(){return c(this.root,"permanent-actions")}get contextualSlot(){return c(this.root,"contextual-actions")}get primaryAction(){var t;return null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-table-toolbar-custom-action[slot]")}get permanentActions(){var t,e;return(null===(t=this.permanentSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.permanentSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get menuActionsItems(){var t,e;if(null===(t=this.menuActionSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(e=this.menuActionSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get contextualActions(){var t,e;return(null===(t=this.contextualSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.contextualSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get filterActions(){var t,e;return(null===(t=this.filterSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.filterSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get allFilterContextual(){var t;return null===(t=this.filterActions)||void 0===t?void 0:t.concat(this.contextualActions)}needsContextDivider(){var t;return(null===(t=this.contextualActions)||void 0===t?void 0:t.length)&&this.contextualSlot!==this.root.lastElementChild}renderMenu(){var t;return Boolean((null===(t=this.menuActionsItems)||void 0===t?void 0:t.length)||"condensed"==this.displayedLayout)}renderFullLayout(){this.displayedLayout="full",h(!1,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}renderIconOnlyLayoutScaleDown(){this.displayedLayout="iconOnly",h(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}renderIconOnlyLayoutScaleUp(){var t,e;this.displayedLayout="iconOnly",u(this.permanentActions,"secondary"),u(this.primaryAction,"primary"),h(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions),this.permanentActions&&(null===(t=this.root)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(e=this.root)||void 0===e||e.appendChild(this.primaryAction))}renderCondensedLayout(){var t,e;this.displayedLayout="condensed",this.permanentActions&&(null===(t=this.menuActionSlot)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(e=this.menuActionSlot)||void 0===e||e.appendChild(this.primaryAction)),h(!0,...this.allFilterContextual),h(!1,...this.permanentActions),h(!1,this.primaryAction),u(this.menuActionsItems,"ghost")}componentWillRender(){l(this.root),this.hasContextDivider=this.needsContextDivider()}componentDidLoad(){d((()=>{this.recordLayoutMinSize(),this.checkResponsiveLayout()})),u(this.menuActionsItems,"ghost")}componentDidUpdate(){this.recordLayoutMinSize(),this.checkResponsiveLayout()}checkResponsiveLayout(){i((()=>{const t=this.root.clientWidth;t<=this.minimumSizes.iconOnly?"iconOnly"==this.displayedLayout&&this.renderCondensedLayout():t<=this.minimumSizes.full?"full"==this.displayedLayout?this.renderIconOnlyLayoutScaleDown():"condensed"==this.displayedLayout&&this.renderIconOnlyLayoutScaleUp():this.minimumSizes.iconOnly>this.minimumSizes.full?this.renderIconOnlyLayoutScaleUp():this.renderFullLayout()}))}render(){return a(o,{key:"4ba93ae62482bb978d9776edbe8d9f978302ae5c",role:"toolbar","aria-orientation":"horizontal","gs-layout":this.displayedLayout},a("div",{key:"6fcf5332795a7e0d4fbef81e799f2f5b8164ab9f",class:"search-filter-container"},a("slot",{key:"506f064a7af49214cd48b9c7e98362463a97c36a",name:"search-and-filter"})),a("div",{key:"183ca5b70e726a572274fbe660b9c5567bf78ec4",class:"section-spacing"}),a("div",{key:"44680a6c7b9d79336805ec7b85b7c351db8971e5",class:"gux-contextual-permanent-primary"},a("div",{key:"ccae49b84c7f058d7aa304d5b70ec07bc59c5076",class:{"gux-contextual-wrapper":this.hasContextDivider}},a("slot",{key:"e90361848c27139a2c73d9ddba85d39af41802c6",name:"contextual-actions"})),a("div",{key:"c5a8e83b7070ccf10587d514646d64fe9ed253c1",class:"gux-permanent-menu-primary-wrapper"},a("slot",{key:"1954010d1ee7255f2ccdb62771bac36b8ad61593",name:"permanent-actions"}),a("gux-table-toolbar-menu-button",{key:"f446481d5246b345ad6fbaeffa377c0013ea57f9","show-menu":this.renderMenu()},a("slot",{key:"4bfbb22bbc459dbef7139cc2a2f87490d38971d7",name:"menu-actions"})),a("slot",{key:"0651446a613fc4d2d4d49a285bdf89b6fc624931",name:"primary-action"}))))}get root(){return n(this)}};b([r({childList:!0,subtree:!0})],p.prototype,"onMutation",null),b([s()],p.prototype,"checkResponsiveLayout",null),p.style=":host{display:flex;flex-direction:row;align-items:center;justify-content:space-between;inline-size:100%;max-block-size:var(--gse-ui-dataTableItems-tableToolbar-height);visibility:hidden;transition:visibility 0s 0.5s;}@keyframes show-toolbar{to{visibility:visible}}:host .search-filter-container{min-inline-size:260px;padding-inline-end:var(--gse-ui-dataTableItems-tableToolbar-gap)}:host slot[name=search-and-filter]::slotted(*){display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);align-content:flex-start;align-items:center}:host .section-spacing{display:flex;flex-direction:row;min-inline-size:72px}:host .gux-contextual-permanent-primary{display:flex;flex-direction:row;justify-content:space-between;padding-inline-start:var(--gse-ui-dataTableItems-tableToolbar-gap)}:host .gux-contextual-permanent-primary slot[name=permanent-actions]::slotted(*),:host .gux-contextual-permanent-primary slot[name=contextual-actions]::slotted(*){display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);align-content:flex-end;align-items:center}:host .gux-contextual-permanent-primary .gux-contextual-wrapper{padding-inline-end:var(--gse-ui-dataTableItems-tableToolbar-gap);border-inline-end:var(--gse-ui-dataTableItems-tableToolbar-divider-width) solid var(--gse-ui-dataTableItems-tableToolbar-dividerColor)}:host .gux-contextual-permanent-primary .gux-permanent-menu-primary-wrapper{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);margin-inline-start:var(--gse-ui-dataTableItems-tableToolbar-gap)}";export{p as gux_table_toolbar}
@@ -1 +1 @@
1
- import{r as e,h as i,g as t}from"./p-c2a62a18.js";import{b as o}from"./p-16feb2a1.js";import{O as r}from"./p-9df4dd07.js";import{a as l,o as a}from"./p-6b12dd16.js";import{h as s}from"./p-6d8b4027.js";import{g as n}from"./p-0268a3e8.js";import{a as f,G as h}from"./p-546eb56a.js";import{G as d,a as u,b as c}from"./p-2c779f86.js";import{v as p,a as m}from"./p-4aaf349e.js";import{t as g}from"./p-84ebc917.js";import"./p-4202e9f2.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const b={required:"Required"};const x=class{constructor(i){e(this,i),this.labelPosition=void 0,this.indicatorMark="required",this.computedLabelPosition="above",this.disabled=void 0,this.required=void 0,this.hasError=!1,this.hasHelp=!1,this.hasLabelInfo=!1}watchValue(e){const i=this.root.querySelector("gux-time-zone-picker-beta");i&&(i.hasError=e)}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help")}handleKeyup(e){var i,t;"Tab"===e.key?this.input.matches(":focus-within")&&(null===(i=this.labelInfo)||void 0===i||i.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-within")&&(null===(t=this.labelInfo)||void 0===t||t.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}async componentWillLoad(){this.getI18nValue=await o(this.root,b),this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help"),this.hasLabelInfo=s(this.root,"label-info"),g(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){var e;return i(c,{key:"a32ace89878f056a017d7f896b4efa7956bfb615",labelPosition:this.computedLabelPosition},i(u,{key:"c0e1296f08bc3c01aaea069f8af8f722801d87f4"},null===(e=this.label)||void 0===e?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(n(this.root,"error"),this.hasError),this.renderText(n(this.root,"label-info"),this.hasLabelInfo)),i(d,{key:"01ec5c95d5a08305a4117bdae008be7232cd29e7",position:this.computedLabelPosition,required:this.required},i("slot",{key:"4aca39b857f7496f1a7ba5f7941e3aa6609163ab",name:"label",onSlotchange:()=>this.setLabel()}),i("gux-form-field-label-indicator",{key:"a2cb93dba985f12a474bd1063e4216a2b67e4e5b",variant:this.indicatorMark,required:this.required}),i("slot",{key:"b0d12e52fc1dba8d92819600397236bdd709cfbc",name:"label-info"})),i("slot",{key:"ec6cc2ebfa00a9c9573e30830134dd4dd8447cb2",name:"label-info"}),i("div",{key:"31a25b49fb35a0a367a0741ecc170b09bf5e3810",class:"gux-input-and-error-container"},i("div",{key:"3c7d3ccf799089e6889a0f85f33c34eb73f73288",class:{"gux-input":!0,"gux-input-error":this.hasError,"gux-time-zone-picker-container":!0,"gux-disabled":this.disabled}},i("slot",{key:"19fe425dfc37baaeca7350605aac45dff3c9c404"})),i(f,{key:"31128ee35a1e4bbc23de1a736d8f1367ff4d8f98",show:this.hasError},i("slot",{key:"97c8792da4951f134e335761048d9a4fbb5ec032",name:"error"})),i(h,{key:"e7f4e97964c77b7c71a1d722b1006530faed0377",show:!this.hasError&&this.hasHelp},i("slot",{key:"5cb09d619fc7ad1438fd29bcc748f92f189887e8",name:"help"}))))}renderText(e,i=!1){if(i)return" "+e}get variant(){return`timeZonePicker-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}setInput(){this.input=this.root.querySelector("gux-time-zone-picker-beta"),this.disabled=this.input.disabled,this.required=this.input.required,this.disabledObserver=l(this.input,(e=>{this.disabled=e})),this.requiredObserver=a(this.input,(e=>{this.required=e})),p(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=m(this.label,this.labelPosition)}get root(){return t(this)}static get watchers(){return{hasError:["watchValue"]}}};(function(e,i,t,o){var r,l=arguments.length,a=l<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,i,t,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(l<3?r(a):l>3?r(i,t,a):r(i,t))||a);l>3&&a&&Object.defineProperty(i,t,a)})([r({childList:!0,subtree:!0})],x.prototype,"onMutation",null),x.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 1 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(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}::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)}.gux-input-and-error-container{flex-grow:1}";export{x as gux_form_field_time_zone_picker}
1
+ import{r as e,h as i,g as t}from"./p-c2a62a18.js";import{b as o}from"./p-16feb2a1.js";import{O as r}from"./p-9df4dd07.js";import{a as l,o as a}from"./p-6b12dd16.js";import{h as s}from"./p-6d8b4027.js";import{g as n}from"./p-0268a3e8.js";import{a as f,G as h}from"./p-546eb56a.js";import{G as d,a as u,b as c}from"./p-2c779f86.js";import{v as p,a as m}from"./p-4aaf349e.js";import{t as g}from"./p-f15a6eca.js";import"./p-4202e9f2.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const b={required:"Required"};const x=class{constructor(i){e(this,i),this.labelPosition=void 0,this.indicatorMark="required",this.computedLabelPosition="above",this.disabled=void 0,this.required=void 0,this.hasError=!1,this.hasHelp=!1,this.hasLabelInfo=!1}watchValue(e){const i=this.root.querySelector("gux-time-zone-picker-beta");i&&(i.hasError=e)}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help")}handleKeyup(e){var i,t;"Tab"===e.key?this.input.matches(":focus-within")&&(null===(i=this.labelInfo)||void 0===i||i.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-within")&&(null===(t=this.labelInfo)||void 0===t||t.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}async componentWillLoad(){this.getI18nValue=await o(this.root,b),this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help"),this.hasLabelInfo=s(this.root,"label-info"),g(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){var e;return i(c,{key:"a32ace89878f056a017d7f896b4efa7956bfb615",labelPosition:this.computedLabelPosition},i(u,{key:"c0e1296f08bc3c01aaea069f8af8f722801d87f4"},null===(e=this.label)||void 0===e?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(n(this.root,"error"),this.hasError),this.renderText(n(this.root,"label-info"),this.hasLabelInfo)),i(d,{key:"01ec5c95d5a08305a4117bdae008be7232cd29e7",position:this.computedLabelPosition,required:this.required},i("slot",{key:"4aca39b857f7496f1a7ba5f7941e3aa6609163ab",name:"label",onSlotchange:()=>this.setLabel()}),i("gux-form-field-label-indicator",{key:"a2cb93dba985f12a474bd1063e4216a2b67e4e5b",variant:this.indicatorMark,required:this.required}),i("slot",{key:"b0d12e52fc1dba8d92819600397236bdd709cfbc",name:"label-info"})),i("slot",{key:"ec6cc2ebfa00a9c9573e30830134dd4dd8447cb2",name:"label-info"}),i("div",{key:"31a25b49fb35a0a367a0741ecc170b09bf5e3810",class:"gux-input-and-error-container"},i("div",{key:"3c7d3ccf799089e6889a0f85f33c34eb73f73288",class:{"gux-input":!0,"gux-input-error":this.hasError,"gux-time-zone-picker-container":!0,"gux-disabled":this.disabled}},i("slot",{key:"19fe425dfc37baaeca7350605aac45dff3c9c404"})),i(f,{key:"31128ee35a1e4bbc23de1a736d8f1367ff4d8f98",show:this.hasError},i("slot",{key:"97c8792da4951f134e335761048d9a4fbb5ec032",name:"error"})),i(h,{key:"e7f4e97964c77b7c71a1d722b1006530faed0377",show:!this.hasError&&this.hasHelp},i("slot",{key:"5cb09d619fc7ad1438fd29bcc748f92f189887e8",name:"help"}))))}renderText(e,i=!1){if(i)return" "+e}get variant(){return`timeZonePicker-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}setInput(){this.input=this.root.querySelector("gux-time-zone-picker-beta"),this.disabled=this.input.disabled,this.required=this.input.required,this.disabledObserver=l(this.input,(e=>{this.disabled=e})),this.requiredObserver=a(this.input,(e=>{this.required=e})),p(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=m(this.label,this.labelPosition)}get root(){return t(this)}static get watchers(){return{hasError:["watchValue"]}}};(function(e,i,t,o){var r,l=arguments.length,a=l<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,i,t,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(l<3?r(a):l>3?r(i,t,a):r(i,t))||a);l>3&&a&&Object.defineProperty(i,t,a)})([r({childList:!0,subtree:!0})],x.prototype,"onMutation",null),x.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 1 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(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}::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)}.gux-input-and-error-container{flex-grow:1}";export{x as gux_form_field_time_zone_picker}
@@ -1 +1 @@
1
- import{r as e,h as n,g as a}from"./p-c2a62a18.js";import{t}from"./p-84ebc917.js";import{O as i}from"./p-9df4dd07.js";import{h as o}from"./p-6d8b4027.js";const s=class{constructor(n){e(this,n),this.hasCallToAction=!1,this.hasGuidance=!1}onMutation(){this.hasCallToAction=o(this.root,"call-to-action"),this.hasGuidance=o(this.root,"additional-guidance")}renderCallToActionSlot(){if(this.hasCallToAction)return n("gux-button-slot",{accent:"primary"},n("slot",{name:"call-to-action"}))}renderGuidanceSlot(){if(this.hasGuidance)return n("div",{class:"gux-guidance"},n("slot",{name:"additional-guidance"}))}componentWillLoad(){t(this.root),this.hasCallToAction=o(this.root,"call-to-action"),this.hasGuidance=o(this.root,"additional-guidance")}render(){return n("div",{key:"761e3d38781b7f10c444b52f16feefcaef7591a9",class:"gux-container"},n("div",{key:"9e166ea09c11c2c59193da15521d63a3461651e5",class:"gux-image"},n("slot",{key:"0c5762d1375451f2c8528721a04f319fee03cc81",name:"image"})),n("div",{key:"f1060ef6636b673d0e55d105b2a425f4ccc49987",class:"gux-message"},n("slot",{key:"f377b70b59ff6520667d9efa4c70196187931fc2",name:"primary-message"})),this.renderGuidanceSlot(),this.renderCallToActionSlot())}get root(){return a(this)}};(function(e,n,a,t){var i,o=arguments.length,s=o<3?n:null===t?t=Object.getOwnPropertyDescriptor(n,a):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,n,a,t);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(s=(o<3?i(s):o>3?i(n,a,s):i(n,a))||s);o>3&&s&&Object.defineProperty(n,a,s)})([i({childList:!0,subtree:!0})],s.prototype,"onMutation",null),s.style=":host {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n container-type: inline-size;\n}\n\n.gux-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: var(--gse-ui-blankState-padding);\n color: var(--gse-ui-blankState-foregroundColor);\n}\n.gux-container .gux-image {\n padding-block-end: var(--gse-ui-blankState-gapMain);\n}\n.gux-container .gux-message {\n padding-block-end: var(--gse-ui-blankState-gapMessage);\n}\n.gux-container .gux-guidance {\n padding-block-end: var(--gse-ui-blankState-gapContent);\n}\n.gux-container ::slotted(gux-icon) {\n inline-size: var(--gse-ui-blankState-icon-size-lg);\n block-size: var(--gse-ui-blankState-icon-size-lg);\n color: var(--gse-ui-blankState-iconColor);\n}\n.gux-container slot[name=primary-message] {\n font-family: var(--gse-ui-progressAndLoading-blankState-large-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-large-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-large-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-large-header-lineHeight);\n color: var(--gse-ui-blankState-foregroundColor);\n text-align: center;\n}\n.gux-container slot[name=additional-guidance] {\n font-family: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-large-subheader-lineHeight);\n color: var(--gse-ui-blankState-foregroundColor);\n text-align: center;\n}\n\n@container (width < 570px) {\n .gux-container ::slotted(gux-icon) {\n inline-size: var(--gse-ui-blankState-icon-size-sm);\n block-size: var(--gse-ui-blankState-icon-size-sm);\n }\n .gux-container slot[name=primary-message] {\n font-family: var(--gse-ui-progressAndLoading-blankState-small-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-small-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-small-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-small-header-lineHeight);\n }\n .gux-container slot[name=additional-guidance] {\n font-family: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-small-subheader-lineHeight);\n }\n}";export{s as gux_blank_state}
1
+ import{r as e,h as n,g as a}from"./p-c2a62a18.js";import{t}from"./p-f15a6eca.js";import{O as i}from"./p-9df4dd07.js";import{h as o}from"./p-6d8b4027.js";const s=class{constructor(n){e(this,n),this.hasCallToAction=!1,this.hasGuidance=!1}onMutation(){this.hasCallToAction=o(this.root,"call-to-action"),this.hasGuidance=o(this.root,"additional-guidance")}renderCallToActionSlot(){if(this.hasCallToAction)return n("gux-button-slot",{accent:"primary"},n("slot",{name:"call-to-action"}))}renderGuidanceSlot(){if(this.hasGuidance)return n("div",{class:"gux-guidance"},n("slot",{name:"additional-guidance"}))}componentWillLoad(){t(this.root),this.hasCallToAction=o(this.root,"call-to-action"),this.hasGuidance=o(this.root,"additional-guidance")}render(){return n("div",{key:"761e3d38781b7f10c444b52f16feefcaef7591a9",class:"gux-container"},n("div",{key:"9e166ea09c11c2c59193da15521d63a3461651e5",class:"gux-image"},n("slot",{key:"0c5762d1375451f2c8528721a04f319fee03cc81",name:"image"})),n("div",{key:"f1060ef6636b673d0e55d105b2a425f4ccc49987",class:"gux-message"},n("slot",{key:"f377b70b59ff6520667d9efa4c70196187931fc2",name:"primary-message"})),this.renderGuidanceSlot(),this.renderCallToActionSlot())}get root(){return a(this)}};(function(e,n,a,t){var i,o=arguments.length,s=o<3?n:null===t?t=Object.getOwnPropertyDescriptor(n,a):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,n,a,t);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(s=(o<3?i(s):o>3?i(n,a,s):i(n,a))||s);o>3&&s&&Object.defineProperty(n,a,s)})([i({childList:!0,subtree:!0})],s.prototype,"onMutation",null),s.style=":host {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n container-type: inline-size;\n}\n\n.gux-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: var(--gse-ui-blankState-padding);\n color: var(--gse-ui-blankState-foregroundColor);\n}\n.gux-container .gux-image {\n padding-block-end: var(--gse-ui-blankState-gapMain);\n}\n.gux-container .gux-message {\n padding-block-end: var(--gse-ui-blankState-gapMessage);\n}\n.gux-container .gux-guidance {\n padding-block-end: var(--gse-ui-blankState-gapContent);\n}\n.gux-container ::slotted(gux-icon) {\n inline-size: var(--gse-ui-blankState-icon-size-lg);\n block-size: var(--gse-ui-blankState-icon-size-lg);\n color: var(--gse-ui-blankState-iconColor);\n}\n.gux-container slot[name=primary-message] {\n font-family: var(--gse-ui-progressAndLoading-blankState-large-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-large-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-large-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-large-header-lineHeight);\n color: var(--gse-ui-blankState-foregroundColor);\n text-align: center;\n}\n.gux-container slot[name=additional-guidance] {\n font-family: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-large-subheader-lineHeight);\n color: var(--gse-ui-blankState-foregroundColor);\n text-align: center;\n}\n\n@container (width < 570px) {\n .gux-container ::slotted(gux-icon) {\n inline-size: var(--gse-ui-blankState-icon-size-sm);\n block-size: var(--gse-ui-blankState-icon-size-sm);\n }\n .gux-container slot[name=primary-message] {\n font-family: var(--gse-ui-progressAndLoading-blankState-small-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-small-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-small-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-small-header-lineHeight);\n }\n .gux-container slot[name=additional-guidance] {\n font-family: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-small-subheader-lineHeight);\n }\n}";export{s as gux_blank_state}
@@ -1 +1 @@
1
- import{r as t,c as e,f as i,h as o,g as r}from"./p-c2a62a18.js";import{O as n}from"./p-6a2b1013.js";import{b as s}from"./p-16feb2a1.js";import{s as l}from"./p-2c25e2f2.js";import{b as u}from"./p-cf0e7d3b.js";import{o as a}from"./p-f4751a15.js";import{t as d}from"./p-84ebc917.js";import{c,s as h,g,a as f}from"./p-379254a5.js";import{O as p}from"./p-9df4dd07.js";import"./p-4202e9f2.js";const x={textInputResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown",numberSelected:"{numberSelected} selected",pressEnterToCreate:"Press Enter to create new option, {textInputValue}"};var b=function(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const v=class{constructor(i){t(this,i),this.guxcreateoption=e(this,"guxcreateoption",7),this.guxexpanded=e(this,"guxexpanded",7),this.guxcollapsed=e(this,"guxcollapsed",7),this.guxfilter=e(this,"guxfilter",7),this.value=void 0,this.disabled=!1,this.required=!1,this.loading=!1,this.placeholder=void 0,this.filterType="none",this.hasError=!1,this.exceedTargetWidth=!1,this.hasCreate=!1,this.expanded=!1,this.textInput=""}onMutation(){var t;this.listboxElement||(this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.applyListboxEventListeners())}onInternalExpanded(t){t.stopPropagation(),this.guxexpanded.emit()}onInternalCollapsed(t){t.stopPropagation(),this.guxcollapsed.emit()}focusSelectedItemAfterRender(t){t&&this.listboxElement&&u((()=>{this.hasTextInput()?this.textInputElement.focus():this.listboxElement.focus()})),t||(this.textInput="")}watchDisabled(t){t&&(this.expanded=!1)}watchValue(t){this.validateValue(t,this.listboxElement)}handleFilter(t){this.guxfilter.emit(t)}getSelectedValues(){return Promise.resolve(c(this.value))}onKeydown(t){switch(t.key){case"Escape":return this.hasTextInput()&&document.activeElement===this.listboxElement?this.textInputElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.textInputElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("focusFieldButton")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0,h(this.listboxElement)));case"Enter":this.canCreateNewOption()&&this.isActiveElement()&&this.emitCreateOption()}}onInternallistboxoptionsupdated(t){t.stopPropagation(),requestAnimationFrame((()=>{requestAnimationFrame((()=>i(this.root)))}))}onClearselected(t){t.stopPropagation(),this.updateValue(void 0),this.listboxElement&&(this.listboxElement.value=void 0),this.validateValue(this.value,this.listboxElement),this.fieldButtonElement.focus()}onCreatenewoption(t){t.stopPropagation(),this.emitCreateOption()}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t)}onClickOutside(){this.collapseListbox("noFocusChange")}connectedCallback(){var t;this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.hasCreate=!!this.root.querySelector("gux-create-option"))}async componentWillLoad(){d(this.root),this.i18n=await s(this.root,x),a(this.root,(()=>{i(this.root)}))}componentDidLoad(){this.applyListboxEventListeners()}componentWillRender(){this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.listboxElement.loading=this.loading,this.listboxElement.filterType=this.filterType,this.listboxElement.textInput=this.textInput)}validateValue(t,e){void 0!==t?this.getOptionElementByValue(t)?e.value=t:this.value=void 0:e&&(e.value=t)}hasTextInput(){return this.isFilterable()||this.hasCreate}applyListboxEventListeners(){var t,e;null===(t=this.listboxElement)||void 0===t||t.addEventListener("input",(t=>{t.stopPropagation(),this.updateValue(t.target.value)})),null===(e=this.listboxElement)||void 0===e||e.addEventListener("change",(t=>{t.stopPropagation()}))}isFilterable(){return"custom"===this.filterType||"starts-with"===this.filterType}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}getOptionElementByValue(t){const e=Array.from(this.root.querySelectorAll("gux-option-multi")),i=c(t);return e.filter((t=>i.includes(t.value)))}fieldButtonClick(){this.expanded=!this.expanded}fieldButtonInputClick(){this.expanded||(this.expanded=!this.expanded)}filterInput(t){t.stopPropagation(),this.textInput=this.textInputElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.hasTextInput()&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.hasTextInput()&&document.activeElement===this.listboxElement}emitCreateOption(){this.guxcreateoption.emit(this.textInput),this.textInput="",this.textInputElement.value=""}canCreateNewOption(){return this.hasCreate&&this.textInput&&!this.listboxElement.hasExactMatch}isActiveElement(){return document.activeElement===this.root}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){if("ArrowDown"===t.key)return t.stopImmediatePropagation(),t.preventDefault(),this.listboxElement.focus(),void h(this.listboxElement)}filterKeyup(t){" "!==t.key||t.preventDefault()}collapseListbox(t){this.expanded&&(this.expanded=!1),"focusFieldButton"===t&&this.fieldButtonElement.focus()}updateValue(t){this.value!==t&&(this.value=t,l(this.root,"input"),l(this.root,"change"))}getTypeaheadText(t){var e;const i=t.length;if(i>0&&!this.loading){const o=g(this.listboxElement,t);if(o&&"custom"!==this.filterType){const t=null===(e=f(o))||void 0===e?void 0:e.textContent.trim();return null==t?void 0:t.substring(i)}return""}}renderTargetDisplay(){return o("div",{class:"gux-placeholder"},this.getSrSelectedText(),this.getSelectedOptionText()||this.placeholder||this.i18n("noSelection"))}getSelectedOptionText(){const t=this.getSelectedOptionValueString();return!!t&&[t,o("div",{class:"gux-sr-only"},this.placeholder)]}getSelectedOptionValueString(){return this.getOptionElementByValue(this.value).map((t=>{var e;return null===(e=f(t))||void 0===e?void 0:e.textContent.trim()})).join(", ")}getSrSelectedText(){const t=this.getOptionElementByValue(this.value);if(t.length)return o("span",{class:"gux-sr-only"},this.i18n("numberSelected",{numberSelected:t.length.toString()}))}getInputAriaLabel(){return this.canCreateNewOption()&&this.isActiveElement()?this.i18n("pressEnterToCreate",{textInputValue:this.textInput}):this.i18n("textInputResults")}renderTag(){const t=c(this.value);if(t.length)return o("gux-dropdown-multi-tag",{disabled:this.disabled,"number-selected":t.length})}renderFilterInputField(){if(this.expanded&&this.hasTextInput())return o("div",{class:"gux-field gux-input-field"},o("div",{class:"gux-field-content"},o("div",{class:"gux-filter"},o("div",{class:"gux-filter-display"},o("span",{class:"gux-filter-text"},this.textInput),o("span",{class:"gux-filter-suggestion"},this.getTypeaheadText(this.textInput))),o("div",{class:"input-and-dropdown-button"},o("input",{onClick:this.fieldButtonInputClick.bind(this),placeholder:this.getSelectedOptionValueString()||this.placeholder||this.i18n("noSelection"),class:"gux-filter-input",type:"text","aria-label":this.getInputAriaLabel(),ref:t=>this.textInputElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this),disabled:this.disabled})))))}renderPopup(){return o("div",{slot:"popup",class:"gux-listbox-container"},o("slot",null))}renderTarget(){return o("div",{class:{"gux-target-container":!0,"gux-target-container-expanded":this.expanded&&this.hasTextInput(),"gux-target-container-collapsed":!(this.expanded&&this.hasTextInput()),"gux-error":this.hasError,"gux-disabled":this.disabled},slot:"target"},this.renderFilterInputField(),o("button",{type:"button",class:"gux-field gux-field-button",disabled:this.disabled,onClick:this.fieldButtonClick.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},this.renderTargetContent(),this.renderTag(),this.renderRadialLoading(),o("gux-icon",{class:{"gux-expand-icon":!0},size:"small","screenreader-text":this.i18n("dropdown"),iconName:"custom/chevron-down-small-regular"})))}renderTargetContent(){if(!this.expanded||!this.hasTextInput())return o("div",{class:"gux-field-content"},this.renderTargetDisplay())}renderRadialLoading(){if(this.loading&&!this.expanded)return o("gux-radial-loading",{context:"input"})}render(){return[o("div",{key:"938c8a5253936b73d57e4c3ebf6509485ed7c775",class:"gux-dropdown-container"},o("gux-popup",{key:"770f4fc2bc9a62ae940889dd2e0689eb37a30b0f",expanded:this.expanded&&(!this.loading||this.isFilterable()),disabled:this.disabled||this.loading&&!this.isFilterable(),exceedTargetWidth:this.exceedTargetWidth},this.renderTarget(),this.renderPopup()))]}static get delegatesFocus(){return!0}get root(){return r(this)}static get watchers(){return{expanded:["focusSelectedItemAfterRender"],disabled:["watchDisabled"],value:["watchValue"],textInput:["handleFilter"]}}};b([p({childList:!0,subtree:!0})],v.prototype,"onMutation",null),b([n({triggerEvents:"mousedown"})],v.prototype,"onClickOutside",null),v.style=":host{box-sizing:border-box;color:var(--gse-ui-formControl-input-populatedColor)}.gux-dropdown-container{position:relative}.gux-error.gux-target-container-collapsed .gux-field-button,.gux-error.gux-target-container-expanded{border:var(--gse-ui-formControl-input-error-border-width) var(--gse-ui-formControl-input-error-border-style) var(--gse-ui-formControl-input-error-border-color)}.gux-disabled.gux-target-container-collapsed .gux-field-button,.gux-disabled.gux-target-container-expanded{user-select:none;border:var(--gse-ui-formControl-input-disabled-border-width) var(--gse-ui-formControl-input-disabled-border-style) var(--gse-ui-formControl-input-disabled-border-color)}.gux-field,.gux-target-container-expanded{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center;inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);cursor:pointer;background-color:var(--gse-ui-formControl-input-backgroundColor)}.gux-target-container-expanded,.gux-target-container-collapsed .gux-field{padding:var(--gse-ui-formControl-input-padding)}.gux-target-container-collapsed .gux-field-button:hover,.gux-target-container-expanded:hover{border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-field.gux-input-field{block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content{position:relative;display:flex;flex:1 1 0;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;min-inline-size:0;block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content .gux-filter,.gux-field .gux-field-content .gux-selected-option,.gux-field .gux-field-content .gux-placeholder{flex:1 1 auto;align-self:auto;order:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter .gux-sr-only:not(:focus):not(:active),.gux-field .gux-field-content .gux-selected-option .gux-sr-only:not(:focus):not(:active),.gux-field .gux-field-content .gux-placeholder .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}.gux-field .gux-field-content .gux-filter{position:relative;block-size:100%;padding-inline-start:0}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;inline-size:100%;color:transparent;caret-color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-input:placeholder-shown{text-overflow:ellipsis}.gux-field .gux-field-content .gux-filter .gux-filter-display{white-space:pre}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{color:var(--gse-ui-formControl-input-suggestionColor)}.gux-field .gux-field-content .gux-filter .gux-filter-input,.gux-field .gux-field-content .gux-filter .gux-filter-display{position:absolute}.gux-field .gux-field-content .gux-placeholder{color:var(--gse-ui-formControl-input-placeholderColor)}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;padding-inline-start:var(--gse-ui-dropdown-gap);color:var(--gse-ui-formControl-input-inputIcon-iconEndColor)}.gux-target-container-expanded{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-expanded:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-expanded:focus-within:has(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-expanded .gux-filter-input{background-color:inherit;border:none}.gux-target-container-expanded .gux-filter-input:focus{outline:none;border:none}.gux-target-container-expanded .gux-field-button{inline-size:auto;block-size:var(--gse-ui-formControl-input-contentText-lineHeight);margin:0;outline:none;background:inherit;border:none;box-shadow:none}.gux-target-container-expanded .gux-field-button:focus{outline:none}.gux-target-container-collapsed .gux-field-button{border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-collapsed .gux-field-button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-collapsed .gux-field-button:focus-within:has(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-listbox-container{box-sizing:border-box;margin:0}";export{v as gux_dropdown_multi}
1
+ import{r as t,c as e,f as i,h as o,g as r}from"./p-c2a62a18.js";import{O as n}from"./p-6a2b1013.js";import{b as s}from"./p-16feb2a1.js";import{s as l}from"./p-2c25e2f2.js";import{b as u}from"./p-cf0e7d3b.js";import{o as a}from"./p-f4751a15.js";import{t as d}from"./p-f15a6eca.js";import{c,s as h,g,a as f}from"./p-379254a5.js";import{O as p}from"./p-9df4dd07.js";import"./p-4202e9f2.js";const x={textInputResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown",numberSelected:"{numberSelected} selected",pressEnterToCreate:"Press Enter to create new option, {textInputValue}"};var b=function(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const v=class{constructor(i){t(this,i),this.guxcreateoption=e(this,"guxcreateoption",7),this.guxexpanded=e(this,"guxexpanded",7),this.guxcollapsed=e(this,"guxcollapsed",7),this.guxfilter=e(this,"guxfilter",7),this.value=void 0,this.disabled=!1,this.required=!1,this.loading=!1,this.placeholder=void 0,this.filterType="none",this.hasError=!1,this.exceedTargetWidth=!1,this.hasCreate=!1,this.expanded=!1,this.textInput=""}onMutation(){var t;this.listboxElement||(this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.applyListboxEventListeners())}onInternalExpanded(t){t.stopPropagation(),this.guxexpanded.emit()}onInternalCollapsed(t){t.stopPropagation(),this.guxcollapsed.emit()}focusSelectedItemAfterRender(t){t&&this.listboxElement&&u((()=>{this.hasTextInput()?this.textInputElement.focus():this.listboxElement.focus()})),t||(this.textInput="")}watchDisabled(t){t&&(this.expanded=!1)}watchValue(t){this.validateValue(t,this.listboxElement)}handleFilter(t){this.guxfilter.emit(t)}getSelectedValues(){return Promise.resolve(c(this.value))}onKeydown(t){switch(t.key){case"Escape":return this.hasTextInput()&&document.activeElement===this.listboxElement?this.textInputElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.textInputElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("focusFieldButton")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0,h(this.listboxElement)));case"Enter":this.canCreateNewOption()&&this.isActiveElement()&&this.emitCreateOption()}}onInternallistboxoptionsupdated(t){t.stopPropagation(),requestAnimationFrame((()=>{requestAnimationFrame((()=>i(this.root)))}))}onClearselected(t){t.stopPropagation(),this.updateValue(void 0),this.listboxElement&&(this.listboxElement.value=void 0),this.validateValue(this.value,this.listboxElement),this.fieldButtonElement.focus()}onCreatenewoption(t){t.stopPropagation(),this.emitCreateOption()}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t)}onClickOutside(){this.collapseListbox("noFocusChange")}connectedCallback(){var t;this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.hasCreate=!!this.root.querySelector("gux-create-option"))}async componentWillLoad(){d(this.root),this.i18n=await s(this.root,x),a(this.root,(()=>{i(this.root)}))}componentDidLoad(){this.applyListboxEventListeners()}componentWillRender(){this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.listboxElement.loading=this.loading,this.listboxElement.filterType=this.filterType,this.listboxElement.textInput=this.textInput)}validateValue(t,e){void 0!==t?this.getOptionElementByValue(t)?e.value=t:this.value=void 0:e&&(e.value=t)}hasTextInput(){return this.isFilterable()||this.hasCreate}applyListboxEventListeners(){var t,e;null===(t=this.listboxElement)||void 0===t||t.addEventListener("input",(t=>{t.stopPropagation(),this.updateValue(t.target.value)})),null===(e=this.listboxElement)||void 0===e||e.addEventListener("change",(t=>{t.stopPropagation()}))}isFilterable(){return"custom"===this.filterType||"starts-with"===this.filterType}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}getOptionElementByValue(t){const e=Array.from(this.root.querySelectorAll("gux-option-multi")),i=c(t);return e.filter((t=>i.includes(t.value)))}fieldButtonClick(){this.expanded=!this.expanded}fieldButtonInputClick(){this.expanded||(this.expanded=!this.expanded)}filterInput(t){t.stopPropagation(),this.textInput=this.textInputElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.hasTextInput()&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.hasTextInput()&&document.activeElement===this.listboxElement}emitCreateOption(){this.guxcreateoption.emit(this.textInput),this.textInput="",this.textInputElement.value=""}canCreateNewOption(){return this.hasCreate&&this.textInput&&!this.listboxElement.hasExactMatch}isActiveElement(){return document.activeElement===this.root}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){if("ArrowDown"===t.key)return t.stopImmediatePropagation(),t.preventDefault(),this.listboxElement.focus(),void h(this.listboxElement)}filterKeyup(t){" "!==t.key||t.preventDefault()}collapseListbox(t){this.expanded&&(this.expanded=!1),"focusFieldButton"===t&&this.fieldButtonElement.focus()}updateValue(t){this.value!==t&&(this.value=t,l(this.root,"input"),l(this.root,"change"))}getTypeaheadText(t){var e;const i=t.length;if(i>0&&!this.loading){const o=g(this.listboxElement,t);if(o&&"custom"!==this.filterType){const t=null===(e=f(o))||void 0===e?void 0:e.textContent.trim();return null==t?void 0:t.substring(i)}return""}}renderTargetDisplay(){return o("div",{class:"gux-placeholder"},this.getSrSelectedText(),this.getSelectedOptionText()||this.placeholder||this.i18n("noSelection"))}getSelectedOptionText(){const t=this.getSelectedOptionValueString();return!!t&&[t,o("div",{class:"gux-sr-only"},this.placeholder)]}getSelectedOptionValueString(){return this.getOptionElementByValue(this.value).map((t=>{var e;return null===(e=f(t))||void 0===e?void 0:e.textContent.trim()})).join(", ")}getSrSelectedText(){const t=this.getOptionElementByValue(this.value);if(t.length)return o("span",{class:"gux-sr-only"},this.i18n("numberSelected",{numberSelected:t.length.toString()}))}getInputAriaLabel(){return this.canCreateNewOption()&&this.isActiveElement()?this.i18n("pressEnterToCreate",{textInputValue:this.textInput}):this.i18n("textInputResults")}renderTag(){const t=c(this.value);if(t.length)return o("gux-dropdown-multi-tag",{disabled:this.disabled,"number-selected":t.length})}renderFilterInputField(){if(this.expanded&&this.hasTextInput())return o("div",{class:"gux-field gux-input-field"},o("div",{class:"gux-field-content"},o("div",{class:"gux-filter"},o("div",{class:"gux-filter-display"},o("span",{class:"gux-filter-text"},this.textInput),o("span",{class:"gux-filter-suggestion"},this.getTypeaheadText(this.textInput))),o("div",{class:"input-and-dropdown-button"},o("input",{onClick:this.fieldButtonInputClick.bind(this),placeholder:this.getSelectedOptionValueString()||this.placeholder||this.i18n("noSelection"),class:"gux-filter-input",type:"text","aria-label":this.getInputAriaLabel(),ref:t=>this.textInputElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this),disabled:this.disabled})))))}renderPopup(){return o("div",{slot:"popup",class:"gux-listbox-container"},o("slot",null))}renderTarget(){return o("div",{class:{"gux-target-container":!0,"gux-target-container-expanded":this.expanded&&this.hasTextInput(),"gux-target-container-collapsed":!(this.expanded&&this.hasTextInput()),"gux-error":this.hasError,"gux-disabled":this.disabled},slot:"target"},this.renderFilterInputField(),o("button",{type:"button",class:"gux-field gux-field-button",disabled:this.disabled,onClick:this.fieldButtonClick.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},this.renderTargetContent(),this.renderTag(),this.renderRadialLoading(),o("gux-icon",{class:{"gux-expand-icon":!0},size:"small","screenreader-text":this.i18n("dropdown"),iconName:"custom/chevron-down-small-regular"})))}renderTargetContent(){if(!this.expanded||!this.hasTextInput())return o("div",{class:"gux-field-content"},this.renderTargetDisplay())}renderRadialLoading(){if(this.loading&&!this.expanded)return o("gux-radial-loading",{context:"input"})}render(){return[o("div",{key:"938c8a5253936b73d57e4c3ebf6509485ed7c775",class:"gux-dropdown-container"},o("gux-popup",{key:"770f4fc2bc9a62ae940889dd2e0689eb37a30b0f",expanded:this.expanded&&(!this.loading||this.isFilterable()),disabled:this.disabled||this.loading&&!this.isFilterable(),exceedTargetWidth:this.exceedTargetWidth},this.renderTarget(),this.renderPopup()))]}static get delegatesFocus(){return!0}get root(){return r(this)}static get watchers(){return{expanded:["focusSelectedItemAfterRender"],disabled:["watchDisabled"],value:["watchValue"],textInput:["handleFilter"]}}};b([p({childList:!0,subtree:!0})],v.prototype,"onMutation",null),b([n({triggerEvents:"mousedown"})],v.prototype,"onClickOutside",null),v.style=":host{box-sizing:border-box;color:var(--gse-ui-formControl-input-populatedColor)}.gux-dropdown-container{position:relative}.gux-error.gux-target-container-collapsed .gux-field-button,.gux-error.gux-target-container-expanded{border:var(--gse-ui-formControl-input-error-border-width) var(--gse-ui-formControl-input-error-border-style) var(--gse-ui-formControl-input-error-border-color)}.gux-disabled.gux-target-container-collapsed .gux-field-button,.gux-disabled.gux-target-container-expanded{user-select:none;border:var(--gse-ui-formControl-input-disabled-border-width) var(--gse-ui-formControl-input-disabled-border-style) var(--gse-ui-formControl-input-disabled-border-color)}.gux-field,.gux-target-container-expanded{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center;inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);cursor:pointer;background-color:var(--gse-ui-formControl-input-backgroundColor)}.gux-target-container-expanded,.gux-target-container-collapsed .gux-field{padding:var(--gse-ui-formControl-input-padding)}.gux-target-container-collapsed .gux-field-button:hover,.gux-target-container-expanded:hover{border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-field.gux-input-field{block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content{position:relative;display:flex;flex:1 1 0;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;min-inline-size:0;block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content .gux-filter,.gux-field .gux-field-content .gux-selected-option,.gux-field .gux-field-content .gux-placeholder{flex:1 1 auto;align-self:auto;order:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter .gux-sr-only:not(:focus):not(:active),.gux-field .gux-field-content .gux-selected-option .gux-sr-only:not(:focus):not(:active),.gux-field .gux-field-content .gux-placeholder .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}.gux-field .gux-field-content .gux-filter{position:relative;block-size:100%;padding-inline-start:0}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;inline-size:100%;color:transparent;caret-color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-input:placeholder-shown{text-overflow:ellipsis}.gux-field .gux-field-content .gux-filter .gux-filter-display{white-space:pre}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{color:var(--gse-ui-formControl-input-suggestionColor)}.gux-field .gux-field-content .gux-filter .gux-filter-input,.gux-field .gux-field-content .gux-filter .gux-filter-display{position:absolute}.gux-field .gux-field-content .gux-placeholder{color:var(--gse-ui-formControl-input-placeholderColor)}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;padding-inline-start:var(--gse-ui-dropdown-gap);color:var(--gse-ui-formControl-input-inputIcon-iconEndColor)}.gux-target-container-expanded{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-expanded:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-expanded:focus-within:has(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-expanded .gux-filter-input{background-color:inherit;border:none}.gux-target-container-expanded .gux-filter-input:focus{outline:none;border:none}.gux-target-container-expanded .gux-field-button{inline-size:auto;block-size:var(--gse-ui-formControl-input-contentText-lineHeight);margin:0;outline:none;background:inherit;border:none;box-shadow:none}.gux-target-container-expanded .gux-field-button:focus{outline:none}.gux-target-container-collapsed .gux-field-button{border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-collapsed .gux-field-button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-collapsed .gux-field-button:focus-within:has(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-listbox-container{box-sizing:border-box;margin:0}";export{v as gux_dropdown_multi}