genesys-spark-components 4.90.0 → 4.91.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/dist/cjs/{get-valid-timezone-bf846fb5.js → get-valid-timezone-cbe2b3e3.js} +1 -1
  2. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-action-button.cjs.entry.js +2 -2
  4. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +2 -2
  6. package/dist/cjs/gux-all-row-select.cjs.entry.js +3 -3
  7. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-avatar-beta.cjs.entry.js +2 -2
  9. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +2 -2
  10. package/dist/cjs/gux-badge.cjs.entry.js +2 -2
  11. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +2 -2
  13. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-button_4.cjs.entry.js +2 -2
  16. package/dist/cjs/gux-calendar-beta.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-calendar.cjs.entry.js +2 -2
  18. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-column-manager-item.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-column-manager.cjs.entry.js +2 -2
  21. package/dist/cjs/gux-content-search.cjs.entry.js +3 -3
  22. package/dist/cjs/gux-context-menu.cjs.entry.js +2 -2
  23. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +5 -5
  24. package/dist/cjs/gux-create-option.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-date-beta.cjs.entry.js +3 -3
  26. package/dist/cjs/gux-date-time-beta.cjs.entry.js +3 -3
  27. package/dist/cjs/gux-datepicker.cjs.entry.js +3 -3
  28. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +2 -2
  29. package/dist/cjs/gux-dismiss-button.cjs.entry.js +2 -2
  30. package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +2 -2
  31. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +2 -2
  32. package/dist/cjs/gux-dropdown_3.cjs.entry.js +2 -2
  33. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +2 -2
  36. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +2 -2
  39. package/dist/cjs/gux-form-field-file.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +3 -3
  41. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +2 -2
  42. package/dist/cjs/gux-form-field-phone.cjs.entry.js +2 -2
  43. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +2 -2
  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 +2 -2
  51. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +2 -2
  52. package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-form-heading.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-inline-alert.cjs.entry.js +2 -2
  57. package/dist/cjs/gux-label-info-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 +2 -2
  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.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-month-calendar.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +2 -2
  65. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-option-multi.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-pagination-buttons-legacy_3.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-pagination-buttons_2.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +2 -2
  71. package/dist/cjs/gux-pagination-items-per-page.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +2 -2
  75. package/dist/cjs/gux-popover-list.cjs.entry.js +5 -4
  76. package/dist/cjs/gux-radial-loading.cjs.entry.js +2 -2
  77. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-row-select.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-screen-reader-beta_2.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +2 -2
  86. package/dist/cjs/gux-sort-control.cjs.entry.js +2 -2
  87. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  88. package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-tab-advanced.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-tab-list.cjs.entry.js +1 -1
  91. package/dist/cjs/gux-table-select-menu.cjs.entry.js +1 -1
  92. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +2 -2
  93. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +2 -2
  95. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  96. package/dist/cjs/gux-table.cjs.entry.js +7 -6
  97. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  98. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  99. package/dist/cjs/gux-tag.cjs.entry.js +3 -3
  100. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  101. package/dist/cjs/gux-time-beta.cjs.entry.js +3 -3
  102. package/dist/cjs/gux-time-picker.cjs.entry.js +2 -2
  103. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +3 -3
  104. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +3 -3
  105. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  106. package/dist/cjs/gux-toggle.cjs.entry.js +2 -2
  107. package/dist/cjs/gux-tooltip-base-beta.cjs.entry.js +1 -1
  108. package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
  109. package/dist/cjs/{index-3ea77bd5.js → index-16a4179e.js} +152 -90
  110. package/dist/cjs/{time-zone-f7671cab.js → time-zone-e774c9f7.js} +2 -2
  111. package/dist/cjs/{usage-fe87e943.js → usage-5d46aba1.js} +9 -9
  112. package/dist/collection/components/beta/gux-form/gux-form-heading/gux-form-heading.css +4 -4
  113. package/dist/collection/components/stable/gux-content-search/gux-content-search.css +1 -0
  114. package/dist/collection/components/stable/gux-copy-to-clipboard/gux-copy-to-clipboard.css +8 -11
  115. package/dist/collection/components/stable/gux-copy-to-clipboard/gux-copy-to-clipboard.js +2 -2
  116. package/dist/collection/components/stable/gux-datepicker/gux-datepicker.css +0 -1
  117. package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.css +2 -2
  118. package/dist/collection/components/stable/gux-form-field/helper-components/gux-form-field-input-clear-button/gux-form-field-input-clear-button.css +1 -1
  119. package/dist/collection/components/stable/gux-popover-list/gux-popover-list.css +1 -1
  120. package/dist/collection/components/stable/gux-popover-list/gux-popover-list.js +3 -2
  121. package/dist/collection/components/stable/gux-table/gux-all-row-select/gux-all-row-select.js +2 -2
  122. package/dist/collection/components/stable/gux-table/gux-table.js +5 -4
  123. package/dist/collection/components/stable/gux-tag/gux-tag.css +2 -2
  124. package/dist/collection/test/e2eTestUtils.js +1 -1
  125. package/dist/esm/{get-valid-timezone-e5885411.js → get-valid-timezone-ecb85439.js} +1 -1
  126. package/dist/esm/gux-accordion.entry.js +1 -1
  127. package/dist/esm/gux-action-button.entry.js +2 -2
  128. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  129. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +2 -2
  130. package/dist/esm/gux-all-row-select.entry.js +3 -3
  131. package/dist/esm/gux-announce-beta.entry.js +1 -1
  132. package/dist/esm/gux-avatar-beta.entry.js +2 -2
  133. package/dist/esm/gux-avatar-change-photo-beta.entry.js +2 -2
  134. package/dist/esm/gux-badge.entry.js +2 -2
  135. package/dist/esm/gux-blank-state.entry.js +1 -1
  136. package/dist/esm/gux-breadcrumbs.entry.js +2 -2
  137. package/dist/esm/gux-button-multi.entry.js +1 -1
  138. package/dist/esm/gux-button-slot.entry.js +1 -1
  139. package/dist/esm/gux-button_4.entry.js +2 -2
  140. package/dist/esm/gux-calendar-beta.entry.js +1 -1
  141. package/dist/esm/gux-calendar.entry.js +2 -2
  142. package/dist/esm/gux-card.entry.js +1 -1
  143. package/dist/esm/gux-column-manager-item.entry.js +1 -1
  144. package/dist/esm/gux-column-manager.entry.js +2 -2
  145. package/dist/esm/gux-content-search.entry.js +3 -3
  146. package/dist/esm/gux-context-menu.entry.js +2 -2
  147. package/dist/esm/gux-copy-to-clipboard.entry.js +5 -5
  148. package/dist/esm/gux-create-option.entry.js +1 -1
  149. package/dist/esm/gux-date-beta.entry.js +3 -3
  150. package/dist/esm/gux-date-time-beta.entry.js +3 -3
  151. package/dist/esm/gux-datepicker.entry.js +3 -3
  152. package/dist/esm/gux-disclosure-button-legacy.entry.js +2 -2
  153. package/dist/esm/gux-dismiss-button.entry.js +2 -2
  154. package/dist/esm/gux-dropdown-multi-tag.entry.js +2 -2
  155. package/dist/esm/gux-dropdown-multi.entry.js +2 -2
  156. package/dist/esm/gux-dropdown_3.entry.js +2 -2
  157. package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
  158. package/dist/esm/gux-flyout-menu.entry.js +1 -1
  159. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +2 -2
  160. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  161. package/dist/esm/gux-form-field-color.entry.js +1 -1
  162. package/dist/esm/gux-form-field-dropdown.entry.js +2 -2
  163. package/dist/esm/gux-form-field-file.entry.js +1 -1
  164. package/dist/esm/gux-form-field-input-clear-button.entry.js +3 -3
  165. package/dist/esm/gux-form-field-label-indicator.entry.js +2 -2
  166. package/dist/esm/gux-form-field-phone.entry.js +2 -2
  167. package/dist/esm/gux-form-field-radio-group-beta.entry.js +2 -2
  168. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  169. package/dist/esm/gux-form-field-range.entry.js +1 -1
  170. package/dist/esm/gux-form-field-search.entry.js +1 -1
  171. package/dist/esm/gux-form-field-select.entry.js +1 -1
  172. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  173. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  174. package/dist/esm/gux-form-field-time-picker.entry.js +2 -2
  175. package/dist/esm/gux-form-field-time-zone-picker.entry.js +2 -2
  176. package/dist/esm/gux-form-footer.entry.js +1 -1
  177. package/dist/esm/gux-form-heading.entry.js +1 -1
  178. package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
  179. package/dist/esm/gux-icon.entry.js +1 -1
  180. package/dist/esm/gux-inline-alert.entry.js +2 -2
  181. package/dist/esm/gux-label-info-beta.entry.js +1 -1
  182. package/dist/esm/gux-list.entry.js +1 -1
  183. package/dist/esm/gux-listbox-multi.entry.js +2 -2
  184. package/dist/esm/gux-loading-message.entry.js +1 -1
  185. package/dist/esm/gux-modal-legacy.entry.js +1 -1
  186. package/dist/esm/gux-modal.entry.js +1 -1
  187. package/dist/esm/gux-month-calendar.entry.js +1 -1
  188. package/dist/esm/gux-month-picker-beta.entry.js +2 -2
  189. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  190. package/dist/esm/gux-option-multi.entry.js +1 -1
  191. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  192. package/dist/esm/gux-pagination-buttons-legacy_3.entry.js +1 -1
  193. package/dist/esm/gux-pagination-buttons_2.entry.js +1 -1
  194. package/dist/esm/gux-pagination-cursor.entry.js +2 -2
  195. package/dist/esm/gux-pagination-items-per-page.entry.js +1 -1
  196. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  197. package/dist/esm/gux-pagination.entry.js +1 -1
  198. package/dist/esm/gux-phone-input-beta.entry.js +2 -2
  199. package/dist/esm/gux-popover-list.entry.js +5 -4
  200. package/dist/esm/gux-radial-loading.entry.js +2 -2
  201. package/dist/esm/gux-radial-progress.entry.js +1 -1
  202. package/dist/esm/gux-rating.entry.js +1 -1
  203. package/dist/esm/gux-row-select.entry.js +1 -1
  204. package/dist/esm/gux-screen-reader-beta_2.entry.js +1 -1
  205. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  206. package/dist/esm/gux-selector-card-beta.entry.js +1 -1
  207. package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
  208. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  209. package/dist/esm/gux-skip-navigation-list.entry.js +2 -2
  210. package/dist/esm/gux-sort-control.entry.js +2 -2
  211. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  212. package/dist/esm/gux-tab-advanced-list.entry.js +1 -1
  213. package/dist/esm/gux-tab-advanced.entry.js +1 -1
  214. package/dist/esm/gux-tab-list.entry.js +1 -1
  215. package/dist/esm/gux-table-select-menu.entry.js +1 -1
  216. package/dist/esm/gux-table-toolbar-action.entry.js +2 -2
  217. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  218. package/dist/esm/gux-table-toolbar-menu-button.entry.js +2 -2
  219. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  220. package/dist/esm/gux-table.entry.js +7 -6
  221. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  222. package/dist/esm/gux-tabs.entry.js +1 -1
  223. package/dist/esm/gux-tag.entry.js +3 -3
  224. package/dist/esm/gux-text-highlight.entry.js +1 -1
  225. package/dist/esm/gux-time-beta.entry.js +3 -3
  226. package/dist/esm/gux-time-picker.entry.js +2 -2
  227. package/dist/esm/gux-time-zone-beta.entry.js +3 -3
  228. package/dist/esm/gux-time-zone-picker-beta.entry.js +3 -3
  229. package/dist/esm/gux-toast.entry.js +1 -1
  230. package/dist/esm/gux-toggle.entry.js +2 -2
  231. package/dist/esm/gux-tooltip-base-beta.entry.js +1 -1
  232. package/dist/esm/gux-tooltip.entry.js +1 -1
  233. package/dist/esm/{index-c7832340.js → index-44765751.js} +152 -90
  234. package/dist/esm/{time-zone-fc654baf.js → time-zone-7b554c09.js} +2 -2
  235. package/dist/esm/{usage-711c0bdd.js → usage-b8c7fe6c.js} +9 -9
  236. package/dist/genesys-webcomponents/genesys-webcomponents-flare.css +1 -1
  237. package/dist/genesys-webcomponents/genesys-webcomponents-legacy.css +1 -1
  238. package/dist/genesys-webcomponents/genesys-webcomponents-style.css +1 -1
  239. package/dist/genesys-webcomponents/genesys-webcomponents.css +1 -1
  240. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  241. package/dist/genesys-webcomponents/{p-67f2a0d4.entry.js → p-003fc6bf.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/p-03c1e850.entry.js +1 -0
  243. package/dist/genesys-webcomponents/{p-65f8b40c.entry.js → p-0589ee56.entry.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-5b228f30.entry.js → p-0b89b815.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/{p-c5196dc9.entry.js → p-0ea4fe52.entry.js} +1 -1
  246. package/dist/genesys-webcomponents/{p-143cef3e.entry.js → p-0f536823.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-4815a0e6.entry.js → p-0ffbb25a.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/{p-8754c447.entry.js → p-112657fd.entry.js} +1 -1
  249. package/dist/genesys-webcomponents/{p-5cebf5c7.entry.js → p-142cab12.entry.js} +1 -1
  250. package/dist/genesys-webcomponents/{p-d46f3d1a.entry.js → p-1431b914.entry.js} +1 -1
  251. package/dist/genesys-webcomponents/{p-f6b3cca6.entry.js → p-150b6060.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-f686137f.entry.js → p-16783d60.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-c3d2bf75.entry.js → p-19e38db9.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-27815abd.entry.js → p-1bc7254d.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-766af6c6.entry.js → p-1c0ab817.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/{p-7b37d11e.entry.js → p-1ffc9b24.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/{p-5455f605.entry.js → p-2013141c.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/{p-d7efc1f9.entry.js → p-20f0c52e.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/{p-c858fd2d.entry.js → p-22de3123.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/p-24522e92.entry.js +1 -0
  261. package/dist/genesys-webcomponents/{p-20a3c6e6.entry.js → p-2614cf09.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/{p-f9bcaf19.entry.js → p-2677ba4e.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/p-27880873.entry.js +1 -0
  264. package/dist/genesys-webcomponents/{p-f66108b6.entry.js → p-280e1284.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-8a90214e.entry.js → p-292fea4b.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-18fd97d8.entry.js → p-2e13fa21.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-c2d76f43.entry.js → p-3054081b.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/p-34fd3135.entry.js +1 -0
  269. package/dist/genesys-webcomponents/p-36923b17.js +1 -0
  270. package/dist/genesys-webcomponents/{p-21752d22.entry.js → p-383178ad.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-742bb89f.entry.js → p-3e3b4876.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-62dd6290.entry.js → p-420302c9.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-a2a03eac.entry.js → p-45162f30.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-8bd32c7f.entry.js → p-47637060.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-2b501bc0.entry.js → p-4846033d.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/p-4f2c2fdf.entry.js +1 -0
  277. package/dist/genesys-webcomponents/{p-01d2c96f.entry.js → p-54eda82e.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-70cd89c7.entry.js → p-55628323.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/{p-10e97da3.entry.js → p-56085e50.entry.js} +1 -1
  280. package/dist/genesys-webcomponents/{p-bbff3d6c.entry.js → p-577ac705.entry.js} +1 -1
  281. package/dist/genesys-webcomponents/{p-55cf1b6d.entry.js → p-57ab0f97.entry.js} +1 -1
  282. package/dist/genesys-webcomponents/{p-e58c6b81.entry.js → p-591c7d8c.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-9f9a558d.entry.js → p-5a7d882f.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/{p-baff0641.entry.js → p-5aede1cc.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/{p-ad87c0f2.entry.js → p-5be1b5cf.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-0fdc0139.entry.js → p-5e037650.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-2097d5cf.entry.js → p-5ee1e064.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-435d7de6.entry.js → p-635e2869.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-8da93d4b.entry.js → p-63b530a2.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/{p-3e1c93e3.entry.js → p-6813875a.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/{p-ae8e20f8.entry.js → p-6840bb53.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-44bd4f22.entry.js → p-6e5a6a2c.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-e233c95d.entry.js → p-6eaa8126.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-c0c1269c.entry.js → p-70e9c05c.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-dac00f0e.entry.js → p-70ff3ea5.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-f52e39f4.entry.js → p-744c6551.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-5f0b45c1.entry.js → p-790e59dc.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-f2e2f6bf.entry.js → p-7ca41f9d.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-87af3cde.entry.js → p-7ed4eed3.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-3b00ac05.entry.js → p-805065f8.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/p-815f9d44.entry.js +1 -0
  302. package/dist/genesys-webcomponents/{p-d4197779.entry.js → p-82220b3a.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-f7a730d5.entry.js → p-8243bf26.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-583cf35c.entry.js → p-835eb8d0.entry.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-1715fce6.entry.js → p-84b1c034.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-9d990fa7.entry.js → p-883ea73e.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/{p-01cc535e.entry.js → p-8e0cea04.entry.js} +1 -1
  308. package/dist/genesys-webcomponents/{p-298a4ffd.entry.js → p-9112f7cf.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-98602f2a.entry.js → p-918938b6.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-f2a79d63.entry.js → p-9a26946a.entry.js} +1 -1
  311. package/dist/genesys-webcomponents/p-9ad63bd7.entry.js +1 -0
  312. package/dist/genesys-webcomponents/{p-831f01a1.entry.js → p-9d1d4962.entry.js} +1 -1
  313. package/dist/genesys-webcomponents/{p-82f0e1d9.entry.js → p-9d6dc84a.entry.js} +1 -1
  314. package/dist/genesys-webcomponents/{p-d9969354.entry.js → p-a4564735.entry.js} +1 -1
  315. package/dist/genesys-webcomponents/{p-8320c95d.entry.js → p-a4c79352.entry.js} +1 -1
  316. package/dist/genesys-webcomponents/p-a82e4a04.js +1 -0
  317. package/dist/genesys-webcomponents/p-ac87c66c.entry.js +1 -0
  318. package/dist/genesys-webcomponents/{p-e464e7f4.entry.js → p-af88c9da.entry.js} +1 -1
  319. package/dist/genesys-webcomponents/p-b0358f25.entry.js +1 -0
  320. package/dist/genesys-webcomponents/{p-e3deae7d.js → p-b31470bf.js} +1 -1
  321. package/dist/genesys-webcomponents/p-b3ef9aa0.entry.js +1 -0
  322. package/dist/genesys-webcomponents/{p-8d2be922.entry.js → p-b87a7e9f.entry.js} +1 -1
  323. package/dist/genesys-webcomponents/p-b87ee14d.entry.js +1 -0
  324. package/dist/genesys-webcomponents/{p-a9fe8943.entry.js → p-b950464d.entry.js} +1 -1
  325. package/dist/genesys-webcomponents/{p-f018846c.entry.js → p-bcb09d6f.entry.js} +1 -1
  326. package/dist/genesys-webcomponents/{p-ae975618.entry.js → p-bee607a4.entry.js} +1 -1
  327. package/dist/genesys-webcomponents/{p-23806ad7.entry.js → p-c499179e.entry.js} +1 -1
  328. package/dist/genesys-webcomponents/{p-ae6c8eaf.entry.js → p-c77e0611.entry.js} +1 -1
  329. package/dist/genesys-webcomponents/{p-6c02c2e7.entry.js → p-c9f7a674.entry.js} +1 -1
  330. package/dist/genesys-webcomponents/{p-b99b7d85.entry.js → p-d5e9f45c.entry.js} +1 -1
  331. package/dist/genesys-webcomponents/{p-84367feb.entry.js → p-d8100841.entry.js} +1 -1
  332. package/dist/genesys-webcomponents/{p-75cff56b.entry.js → p-d847482d.entry.js} +1 -1
  333. package/dist/genesys-webcomponents/{p-6c0f1233.entry.js → p-da621e95.entry.js} +1 -1
  334. package/dist/genesys-webcomponents/{p-fa3098ce.entry.js → p-dccabdfa.entry.js} +1 -1
  335. package/dist/genesys-webcomponents/{p-b6e50e79.entry.js → p-dd3388cc.entry.js} +1 -1
  336. package/dist/genesys-webcomponents/{p-f4699687.entry.js → p-dd8fe8b6.entry.js} +1 -1
  337. package/dist/genesys-webcomponents/{p-130d93d1.entry.js → p-e0c65aee.entry.js} +1 -1
  338. package/dist/genesys-webcomponents/{p-76ad482f.entry.js → p-e2fd6c86.entry.js} +1 -1
  339. package/dist/genesys-webcomponents/{p-c74ed732.entry.js → p-e3ada20a.entry.js} +1 -1
  340. package/dist/genesys-webcomponents/{p-476a7d9b.entry.js → p-e595a791.entry.js} +1 -1
  341. package/dist/genesys-webcomponents/{p-cee56f68.entry.js → p-e75e219d.entry.js} +1 -1
  342. package/dist/genesys-webcomponents/{p-78513bd5.entry.js → p-edbc4271.entry.js} +1 -1
  343. package/dist/genesys-webcomponents/{p-33eeb2a1.entry.js → p-ef84dcd6.entry.js} +1 -1
  344. package/dist/genesys-webcomponents/p-efe9bd79.entry.js +1 -0
  345. package/dist/genesys-webcomponents/{p-b1e754d6.entry.js → p-f25a00fa.entry.js} +1 -1
  346. package/dist/genesys-webcomponents/{p-9c0fa614.entry.js → p-f2c59a21.entry.js} +1 -1
  347. package/dist/genesys-webcomponents/{p-d08c99c0.entry.js → p-f4662829.entry.js} +1 -1
  348. package/dist/genesys-webcomponents/{p-7a7f5e3d.entry.js → p-f6fffe6f.entry.js} +1 -1
  349. package/dist/genesys-webcomponents/{p-b4494679.js → p-fad8cf68.js} +1 -1
  350. package/dist/genesys-webcomponents/{p-b00c741a.entry.js → p-fc9438a5.entry.js} +1 -1
  351. package/dist/genesys-webcomponents/{p-165f61df.entry.js → p-fc9b2ba0.entry.js} +1 -1
  352. package/dist/stencil-wrapper.js +1 -1
  353. package/dist/types/stencil-wrapper.d.ts +1 -1
  354. package/package.json +9 -9
  355. package/dist/genesys-webcomponents/p-02d1ff52.entry.js +0 -1
  356. package/dist/genesys-webcomponents/p-18eb7333.js +0 -1
  357. package/dist/genesys-webcomponents/p-23fcd402.entry.js +0 -1
  358. package/dist/genesys-webcomponents/p-311174eb.entry.js +0 -1
  359. package/dist/genesys-webcomponents/p-599d02f2.entry.js +0 -1
  360. package/dist/genesys-webcomponents/p-77ded23d.entry.js +0 -1
  361. package/dist/genesys-webcomponents/p-844c8a56.entry.js +0 -1
  362. package/dist/genesys-webcomponents/p-8d1197ce.js +0 -1
  363. package/dist/genesys-webcomponents/p-95699d52.entry.js +0 -1
  364. package/dist/genesys-webcomponents/p-b9972bde.entry.js +0 -1
  365. package/dist/genesys-webcomponents/p-d1fa8159.entry.js +0 -1
  366. package/dist/genesys-webcomponents/p-d77ea1e9.entry.js +0 -1
  367. package/dist/genesys-webcomponents/p-f88761bb.entry.js +0 -1
  368. package/dist/genesys-webcomponents/p-ff6906ec.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as e,h as o,H as t,g as r}from"./p-6e010355.js";import{c as i,o as a}from"./p-f4751a15.js";import{O as s}from"./p-e720c07a.js";import{p as l}from"./p-a11d5d42.js";import{h as d}from"./p-6d8b4027.js";import{a as n,G as g}from"./p-b8c3ecdc.js";import{g as u,v as C}from"./p-42f2e889.js";import{t as f}from"./p-e3deae7d.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const p=class{constructor(o){e(this,o),this.disabled=void 0,this.hasHelp=!1,this.hasError=!1,this.hasGroupError=!1,this.hasGroupDisabled=!1}onMutation(){this.hasError=d(this.root,"error"),this.hasHelp=d(this.root,"help")}componentWillLoad(){this.setInput(),this.hasError=d(this.root,"error"),this.hasHelp=d(this.root,"help"),f(this.root)}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}render(){return o(t,{key:"1f9058b9cba8e25009df7188a833dc7c77dee10a",class:{"gux-input-error":this.hasError||this.hasGroupError,"gux-disabled":this.disabled}},o("div",{key:"21095dca5c246e05c643ae085742a77c0692456a",class:"gux-form-field-container","aria-disabled":this.disabled?"true":"false"},o("div",{key:"6c17a8f7ca09a54dba861774b94042b8f01cb77b",class:"gux-input-label"},o("div",{key:"13745ab315bd98fd6cfac51b84f8640bfd4c54fa",class:"gux-input"},o("slot",{key:"06f3a11d98078e33f7e52e1420f4926f1d4cccb7",name:"input",onSlotchange:()=>this.setInput()})),o("div",{key:"c097d66257e43c90e1136f0c59fe36c2893cd3fe",class:"gux-label"},o("slot",{key:"bcfe31b19828e0778d9d572bec97f435389142f7",name:"label"}))),o("div",{key:"4f1eeb5be7d495e8f1624dd6036e5cad42726968",class:"error-and-help-text"},o(n,{key:"dcdf2c760f97879c2e8f096e8696ee69be1207e2",show:this.hasError},o("slot",{key:"2fce9a4267950b027dd59e17d3f47903f569db4f",name:"error"})),o(g,{key:"59e804c39c6d66c7a82e17214953e1c1e269910d",show:!this.hasError&&this.hasHelp},o("slot",{key:"1a9acd8b48a6d3b80c64e05375ef3eae8b25f49d",name:"help"})))))}setInput(){this.input=u(this.root,'input[type="radio"][slot="input"]'),this.hasGroupDisabled&&(this.input.disabled=!0),l(this.input),this.disabled=i(this.input),this.disabledObserver=a(this.input,(e=>{this.disabled=e})),C(this.root,this.input)}get root(){return r(this)}};(function(e,o,t,r){var i,a=arguments.length,s=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,o,t,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(a<3?i(s):a>3?i(o,t,s):i(o,t))||s);a>3&&s&&Object.defineProperty(o,t,s)})([s({childList:!0,subtree:!0})],p.prototype,"onMutation",null),p.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;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;min-width:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));min-height:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-top: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;padding-top:4px}:host(.gux-disabled){cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}:host(.gux-input-error) input[type=radio]:checked::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=radio]:not(:checked))::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-error-foregroundColor)}:host(.gux-input-error) .gux-form-field-error{font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);color:var(--gse-ui-radioButton-icon-error-foregroundColor)}.gux-input-label{display:flex;flex-direction:row;gap:var(--gse-ui-radioButton-helper-gap)}.gux-input-label .gux-label{display:flex;flex-direction:column;line-height:var(--gse-ui-radioButton-label-text-lineHeight)}.gux-input-label .gux-input{line-height:16px}::slotted(input[type=radio]){display:inline-grid;width:var(--gse-ui-radioButton-icon-width);height:var(--gse-ui-radioButton-icon-height);margin:0;color:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor);text-align:center;vertical-align:middle;-webkit-appearance:none;appearance:none;cursor:pointer;border:0;outline:none}::slotted(input[type=radio])::before{grid-area:1/1;content:\"\";border-radius:50%}::slotted(input[type=radio]:focus-visible){border-radius:var(--gse-ui-radioButton-focus-borderRadius);outline:var(--gse-ui-radioButton-focus-border-width) var(--gse-ui-radioButton-focus-border-style) var(--gse-ui-radioButton-focus-border-color);outline-offset:var(--gse-semantic-focusRing-offset, var(--gse-semantic-focusOutline-offset))}::slotted(input[type=radio]: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='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor)}::slotted(input[type=radio]:not(:checked):not(:disabled):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='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-hover-foregroundColor)}::slotted(input[type=radio]:checked:not(:disabled):hover)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-hover-foregroundColor)}::slotted(input[type=radio]:checked)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-default-selectedForegroundColor)}::slotted(input[type=radio]:disabled)::before{cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}::slotted(label){display:inline-block;font-family:var(--gse-ui-radioButton-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-radioButton-label-text-fontWeight);line-height:var(--gse-ui-radioButton-label-text-lineHeight);color:var(--gse-ui-radioButton-label-foregroundColor);vertical-align:middle}";export{p as gux_form_field_radio}
1
+ import{r as e,h as o,H as t,g as r}from"./p-6e010355.js";import{c as i,o as a}from"./p-f4751a15.js";import{O as s}from"./p-e720c07a.js";import{p as l}from"./p-a11d5d42.js";import{h as d}from"./p-6d8b4027.js";import{a as n,G as g}from"./p-b8c3ecdc.js";import{g as u,v as C}from"./p-42f2e889.js";import{t as f}from"./p-b31470bf.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const p=class{constructor(o){e(this,o),this.disabled=void 0,this.hasHelp=!1,this.hasError=!1,this.hasGroupError=!1,this.hasGroupDisabled=!1}onMutation(){this.hasError=d(this.root,"error"),this.hasHelp=d(this.root,"help")}componentWillLoad(){this.setInput(),this.hasError=d(this.root,"error"),this.hasHelp=d(this.root,"help"),f(this.root)}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}render(){return o(t,{key:"1f9058b9cba8e25009df7188a833dc7c77dee10a",class:{"gux-input-error":this.hasError||this.hasGroupError,"gux-disabled":this.disabled}},o("div",{key:"21095dca5c246e05c643ae085742a77c0692456a",class:"gux-form-field-container","aria-disabled":this.disabled?"true":"false"},o("div",{key:"6c17a8f7ca09a54dba861774b94042b8f01cb77b",class:"gux-input-label"},o("div",{key:"13745ab315bd98fd6cfac51b84f8640bfd4c54fa",class:"gux-input"},o("slot",{key:"06f3a11d98078e33f7e52e1420f4926f1d4cccb7",name:"input",onSlotchange:()=>this.setInput()})),o("div",{key:"c097d66257e43c90e1136f0c59fe36c2893cd3fe",class:"gux-label"},o("slot",{key:"bcfe31b19828e0778d9d572bec97f435389142f7",name:"label"}))),o("div",{key:"4f1eeb5be7d495e8f1624dd6036e5cad42726968",class:"error-and-help-text"},o(n,{key:"dcdf2c760f97879c2e8f096e8696ee69be1207e2",show:this.hasError},o("slot",{key:"2fce9a4267950b027dd59e17d3f47903f569db4f",name:"error"})),o(g,{key:"59e804c39c6d66c7a82e17214953e1c1e269910d",show:!this.hasError&&this.hasHelp},o("slot",{key:"1a9acd8b48a6d3b80c64e05375ef3eae8b25f49d",name:"help"})))))}setInput(){this.input=u(this.root,'input[type="radio"][slot="input"]'),this.hasGroupDisabled&&(this.input.disabled=!0),l(this.input),this.disabled=i(this.input),this.disabledObserver=a(this.input,(e=>{this.disabled=e})),C(this.root,this.input)}get root(){return r(this)}};(function(e,o,t,r){var i,a=arguments.length,s=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,o,t,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(a<3?i(s):a>3?i(o,t,s):i(o,t))||s);a>3&&s&&Object.defineProperty(o,t,s)})([s({childList:!0,subtree:!0})],p.prototype,"onMutation",null),p.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;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;min-width:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));min-height:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-top: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;padding-top:4px}:host(.gux-disabled){cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}:host(.gux-input-error) input[type=radio]:checked::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=radio]:not(:checked))::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-error-foregroundColor)}:host(.gux-input-error) .gux-form-field-error{font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);color:var(--gse-ui-radioButton-icon-error-foregroundColor)}.gux-input-label{display:flex;flex-direction:row;gap:var(--gse-ui-radioButton-helper-gap)}.gux-input-label .gux-label{display:flex;flex-direction:column;line-height:var(--gse-ui-radioButton-label-text-lineHeight)}.gux-input-label .gux-input{line-height:16px}::slotted(input[type=radio]){display:inline-grid;width:var(--gse-ui-radioButton-icon-width);height:var(--gse-ui-radioButton-icon-height);margin:0;color:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor);text-align:center;vertical-align:middle;-webkit-appearance:none;appearance:none;cursor:pointer;border:0;outline:none}::slotted(input[type=radio])::before{grid-area:1/1;content:\"\";border-radius:50%}::slotted(input[type=radio]:focus-visible){border-radius:var(--gse-ui-radioButton-focus-borderRadius);outline:var(--gse-ui-radioButton-focus-border-width) var(--gse-ui-radioButton-focus-border-style) var(--gse-ui-radioButton-focus-border-color);outline-offset:var(--gse-semantic-focusRing-offset, var(--gse-semantic-focusOutline-offset))}::slotted(input[type=radio]: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='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor)}::slotted(input[type=radio]:not(:checked):not(:disabled):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='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-hover-foregroundColor)}::slotted(input[type=radio]:checked:not(:disabled):hover)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-hover-foregroundColor)}::slotted(input[type=radio]:checked)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-default-selectedForegroundColor)}::slotted(input[type=radio]:disabled)::before{cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}::slotted(label){display:inline-block;font-family:var(--gse-ui-radioButton-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-radioButton-label-text-fontWeight);line-height:var(--gse-ui-radioButton-label-text-lineHeight);color:var(--gse-ui-radioButton-label-foregroundColor);vertical-align:middle}";export{p as gux_form_field_radio}
@@ -1 +1 @@
1
- import{r as t,c as e,h as a,g as i}from"./p-6e010355.js";import{b as n}from"./p-18eb7333.js";import{t as s}from"./p-20fbe34f.js";import{b as r}from"./p-cf0e7d3b.js";import"./p-4202e9f2.js";class o{static displayAllPageButtons(t,e,a){switch(a){case"advanced":return function(t,e){if(e<=7)return[...Array(e).keys()].map((e=>{const a=e+1;return{pageNumber:a,display:String(a),current:a===t}}));if(t<=3)return[...[...Array(5).keys()].map((e=>{const a=e+1;return{pageNumber:a,display:String(a),current:a===t}})),{pageNumber:6,display:"...",current:!1},{pageNumber:e,display:String(e),current:!1}];if(t>e-3){const a=[...Array(5).keys()].map((a=>{const i=a+e-4;return{pageNumber:i,display:String(i),current:i===t}}));return[{pageNumber:1,display:"1",current:!1},{pageNumber:e-6,display:"...",current:!1},...a]}const a=[...Array(3).keys()].map((e=>{const a=e+t-1;return{pageNumber:a,display:String(a),current:a===t}}));return[{pageNumber:1,display:"1",current:!1},{pageNumber:t-3,display:"...",current:!1},...a,{pageNumber:t+3,display:"...",current:!1},{pageNumber:e,display:String(e),current:!1}]}(t,e);case"simple":return function(t,e){return e<=3?[...Array(e).keys()].map((e=>{const a=e+1;return{pageNumber:a,display:String(a),current:a===t}})):e===t?[{pageNumber:1,display:"1",current:!1},{pageNumber:t,display:"...",current:!1},{pageNumber:e,display:String(e),current:!0}]:e>=4?[...[...Array(1).keys()].map((a=>{const i=a+t;return{pageNumber:i,display:String(i),current:i!==e}})),{pageNumber:t,display:"...",current:!1},{pageNumber:e,display:String(e),current:e==t}]:void 0}(t,e)}}}const u=class{constructor(a){t(this,a),this.internalcurrentpagechange=e(this,"internalcurrentpagechange",3),this.currentPage=void 0,this.totalPages=void 0,this.layout="advanced",this.disabled=!1}goToPageHandler(t){this.currentPage=t.detail,this.handlePageChange(this.currentPage),r((()=>{this.currentElement.focus()}))}get onFirstPage(){return this.currentPage<=1}get onLastPage(){return this.currentPage>=this.totalPages}handleClickFirst(){this.internalcurrentpagechange.emit(1)}handleClickPrevious(){this.internalcurrentpagechange.emit(this.currentPage-1)}handleClickNext(){this.internalcurrentpagechange.emit(this.currentPage+1)}handleClickLast(){this.internalcurrentpagechange.emit(this.totalPages)}handlePageChange(t){this.internalcurrentpagechange.emit(t)}getPageListEnteries(t,e,i){return o.displayAllPageButtons(t,e,i).reduce(((t,e)=>t.concat(e.current?a("gux-button-slot",{accent:"ghost"},a("button",{disabled:this.disabled,ref:t=>this.currentElement=t,class:"gux-pagination-buttons-list-current","aria-label":this.i18n("pageSelected",{pageSelected:e.pageNumber})},e.display)):"..."==e.display?a("gux-pagination-ellipsis-button",{disabled:this.disabled,totalPages:this.totalPages}):a("gux-button-slot",{accent:"ghost"},a("button",{disabled:this.disabled,onClick:()=>this.handlePageChange(e.pageNumber),"aria-label":this.i18n("pageNumber",{pageNumber:e.pageNumber})},e.display)))),[])}getPageNavigation(){return a("div",{class:"gux-pagination-buttons-list-container"},this.getPageListEnteries(this.currentPage,this.totalPages,this.layout))}async componentWillLoad(){this.i18n=await n(this.root,s)}render(){return a("div",{key:"8fa54ea4b43269f8168f911fb73c99b557e51126",class:`gux-pagination-buttons-container gux-${this.layout}`},a("div",{key:"1aeeb7265b2209bac0a0637d2b16214abad8b3f7",class:"gux-pagination-buttons-group"},a("gux-button-slot",{key:"bc9a4af3ee4a95d3c779dd011f6fb6851f4fab5d",accent:"ghost","icon-only":!0},a("button",{key:"155a3124f030675afbfb306e749bc00c536240ed",title:this.i18n("firstPage"),disabled:this.onFirstPage||this.disabled,onClick:this.handleClickFirst.bind(this)},a("gux-icon",{key:"b201fa10d509ec29cb81a8be1b68212ad1db023c",size:"small",decorative:!0,"icon-name":"fa/chevrons-left-regular"}))),a("gux-button-slot",{key:"b7889c36d2087525776469ad75817bdea98e4ebf",accent:"ghost","icon-only":!0},a("button",{key:"e61002ec486248b57a924d9b0b6afd2e5189038a",title:this.i18n("previousPage"),disabled:this.onFirstPage||this.disabled,onClick:this.handleClickPrevious.bind(this)},a("gux-icon",{key:"fdb835dbfba0b54f27c6696077d151f38210ae14",size:"small",decorative:!0,"icon-name":"custom/chevron-left-small-regular"})))),this.getPageNavigation(),a("div",{key:"2d87573a8eb3e02b6718e22b634d4010c4d8dcb2",class:"gux-pagination-buttons-group"},a("gux-button-slot",{key:"1b32981e75bc249a1ae88ee697d9c1b7be797c35",accent:"ghost","icon-only":!0},a("button",{key:"2a529494b631c272fa6387ab38ee702401fad808",title:this.i18n("nextPage"),disabled:this.onLastPage||this.disabled,onClick:this.handleClickNext.bind(this)},a("gux-icon",{key:"73a269ebd1fa74cf865eccb4db8cbef11ec46f3b",size:"small",decorative:!0,"icon-name":"custom/chevron-right-small-regular"}))),a("gux-button-slot",{key:"c49b0820a5127b7fae8e55336dcefbddff6964e9",accent:"ghost","icon-only":!0},a("button",{key:"ed36a338828f8ffd1d52c080652a5d633f5fc221",title:this.i18n("lastPage"),disabled:this.onLastPage||this.disabled,onClick:this.handleClickLast.bind(this)},a("gux-icon",{key:"c24d2bc7564240d214cb5bfbec4ce8239de24be9",size:"small",decorative:!0,"icon-name":"fa/chevrons-right-regular"})))))}get root(){return i(this)}};u.style="gux-pagination-buttons .gux-pagination-buttons-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-end;align-items:center;margin-left:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap)}gux-pagination-buttons .gux-pagination-buttons-container>div{flex:0 1 auto;align-self:auto;order:0}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-group{display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);white-space:nowrap}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-list-container{display:flex;flex-shrink:0;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-current{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor);border-radius:var(--gse-ui-button-borderRadius)}";const g={itemCountDisplay:"{firstItem, number} - {lastItem, number}",totalItems:" of {totalItems, number}"},l=class{constructor(e){t(this,e),this.totalItems=0,this.currentPage=0,this.itemsPerPage=25}get firstItem(){return this.totalItems<1?0:(this.currentPage-1)*this.itemsPerPage+1}get lastItem(){return this.totalItems<1?0:Math.min(this.currentPage*this.itemsPerPage,this.totalItems)}async componentWillLoad(){this.i18n=await n(this.root,g)}getPaginationItemCountsRange(){if(this.totalItems)return a("span",null,this.i18n("totalItems",{totalItems:this.totalItems}))}render(){return a("div",{key:"857a63dfc776758edfb75604ca39c11d3b081f27",class:"gux-pagination-item-counts-container"},a("span",{key:"b8f255a7a341685d1eef8fec9644270d8542bab9",class:"gux-pagination-item-counts-range"},this.i18n("itemCountDisplay",{firstItem:this.firstItem,lastItem:this.lastItem})),a("span",{key:"78142978920bccef504da82d326108cd3d0de41e",class:"gux-pagination-item-counts-total"},this.getPaginationItemCountsRange()))}get root(){return i(this)}};l.style="gux-pagination-item-counts .gux-pagination-item-counts-container{display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);white-space:nowrap}gux-pagination-item-counts .gux-pagination-item-counts-total{font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);white-space:nowrap}";export{u as gux_pagination_buttons,l as gux_pagination_item_counts}
1
+ import{r as t,c as e,h as a,g as i}from"./p-6e010355.js";import{b as n}from"./p-a82e4a04.js";import{t as s}from"./p-20fbe34f.js";import{b as r}from"./p-cf0e7d3b.js";import"./p-4202e9f2.js";class o{static displayAllPageButtons(t,e,a){switch(a){case"advanced":return function(t,e){if(e<=7)return[...Array(e).keys()].map((e=>{const a=e+1;return{pageNumber:a,display:String(a),current:a===t}}));if(t<=3)return[...[...Array(5).keys()].map((e=>{const a=e+1;return{pageNumber:a,display:String(a),current:a===t}})),{pageNumber:6,display:"...",current:!1},{pageNumber:e,display:String(e),current:!1}];if(t>e-3){const a=[...Array(5).keys()].map((a=>{const i=a+e-4;return{pageNumber:i,display:String(i),current:i===t}}));return[{pageNumber:1,display:"1",current:!1},{pageNumber:e-6,display:"...",current:!1},...a]}const a=[...Array(3).keys()].map((e=>{const a=e+t-1;return{pageNumber:a,display:String(a),current:a===t}}));return[{pageNumber:1,display:"1",current:!1},{pageNumber:t-3,display:"...",current:!1},...a,{pageNumber:t+3,display:"...",current:!1},{pageNumber:e,display:String(e),current:!1}]}(t,e);case"simple":return function(t,e){return e<=3?[...Array(e).keys()].map((e=>{const a=e+1;return{pageNumber:a,display:String(a),current:a===t}})):e===t?[{pageNumber:1,display:"1",current:!1},{pageNumber:t,display:"...",current:!1},{pageNumber:e,display:String(e),current:!0}]:e>=4?[...[...Array(1).keys()].map((a=>{const i=a+t;return{pageNumber:i,display:String(i),current:i!==e}})),{pageNumber:t,display:"...",current:!1},{pageNumber:e,display:String(e),current:e==t}]:void 0}(t,e)}}}const u=class{constructor(a){t(this,a),this.internalcurrentpagechange=e(this,"internalcurrentpagechange",3),this.currentPage=void 0,this.totalPages=void 0,this.layout="advanced",this.disabled=!1}goToPageHandler(t){this.currentPage=t.detail,this.handlePageChange(this.currentPage),r((()=>{this.currentElement.focus()}))}get onFirstPage(){return this.currentPage<=1}get onLastPage(){return this.currentPage>=this.totalPages}handleClickFirst(){this.internalcurrentpagechange.emit(1)}handleClickPrevious(){this.internalcurrentpagechange.emit(this.currentPage-1)}handleClickNext(){this.internalcurrentpagechange.emit(this.currentPage+1)}handleClickLast(){this.internalcurrentpagechange.emit(this.totalPages)}handlePageChange(t){this.internalcurrentpagechange.emit(t)}getPageListEnteries(t,e,i){return o.displayAllPageButtons(t,e,i).reduce(((t,e)=>t.concat(e.current?a("gux-button-slot",{accent:"ghost"},a("button",{disabled:this.disabled,ref:t=>this.currentElement=t,class:"gux-pagination-buttons-list-current","aria-label":this.i18n("pageSelected",{pageSelected:e.pageNumber})},e.display)):"..."==e.display?a("gux-pagination-ellipsis-button",{disabled:this.disabled,totalPages:this.totalPages}):a("gux-button-slot",{accent:"ghost"},a("button",{disabled:this.disabled,onClick:()=>this.handlePageChange(e.pageNumber),"aria-label":this.i18n("pageNumber",{pageNumber:e.pageNumber})},e.display)))),[])}getPageNavigation(){return a("div",{class:"gux-pagination-buttons-list-container"},this.getPageListEnteries(this.currentPage,this.totalPages,this.layout))}async componentWillLoad(){this.i18n=await n(this.root,s)}render(){return a("div",{key:"8fa54ea4b43269f8168f911fb73c99b557e51126",class:`gux-pagination-buttons-container gux-${this.layout}`},a("div",{key:"1aeeb7265b2209bac0a0637d2b16214abad8b3f7",class:"gux-pagination-buttons-group"},a("gux-button-slot",{key:"bc9a4af3ee4a95d3c779dd011f6fb6851f4fab5d",accent:"ghost","icon-only":!0},a("button",{key:"155a3124f030675afbfb306e749bc00c536240ed",title:this.i18n("firstPage"),disabled:this.onFirstPage||this.disabled,onClick:this.handleClickFirst.bind(this)},a("gux-icon",{key:"b201fa10d509ec29cb81a8be1b68212ad1db023c",size:"small",decorative:!0,"icon-name":"fa/chevrons-left-regular"}))),a("gux-button-slot",{key:"b7889c36d2087525776469ad75817bdea98e4ebf",accent:"ghost","icon-only":!0},a("button",{key:"e61002ec486248b57a924d9b0b6afd2e5189038a",title:this.i18n("previousPage"),disabled:this.onFirstPage||this.disabled,onClick:this.handleClickPrevious.bind(this)},a("gux-icon",{key:"fdb835dbfba0b54f27c6696077d151f38210ae14",size:"small",decorative:!0,"icon-name":"custom/chevron-left-small-regular"})))),this.getPageNavigation(),a("div",{key:"2d87573a8eb3e02b6718e22b634d4010c4d8dcb2",class:"gux-pagination-buttons-group"},a("gux-button-slot",{key:"1b32981e75bc249a1ae88ee697d9c1b7be797c35",accent:"ghost","icon-only":!0},a("button",{key:"2a529494b631c272fa6387ab38ee702401fad808",title:this.i18n("nextPage"),disabled:this.onLastPage||this.disabled,onClick:this.handleClickNext.bind(this)},a("gux-icon",{key:"73a269ebd1fa74cf865eccb4db8cbef11ec46f3b",size:"small",decorative:!0,"icon-name":"custom/chevron-right-small-regular"}))),a("gux-button-slot",{key:"c49b0820a5127b7fae8e55336dcefbddff6964e9",accent:"ghost","icon-only":!0},a("button",{key:"ed36a338828f8ffd1d52c080652a5d633f5fc221",title:this.i18n("lastPage"),disabled:this.onLastPage||this.disabled,onClick:this.handleClickLast.bind(this)},a("gux-icon",{key:"c24d2bc7564240d214cb5bfbec4ce8239de24be9",size:"small",decorative:!0,"icon-name":"fa/chevrons-right-regular"})))))}get root(){return i(this)}};u.style="gux-pagination-buttons .gux-pagination-buttons-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-end;align-items:center;margin-left:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap)}gux-pagination-buttons .gux-pagination-buttons-container>div{flex:0 1 auto;align-self:auto;order:0}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-group{display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);white-space:nowrap}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-list-container{display:flex;flex-shrink:0;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-current{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor);border-radius:var(--gse-ui-button-borderRadius)}";const g={itemCountDisplay:"{firstItem, number} - {lastItem, number}",totalItems:" of {totalItems, number}"},l=class{constructor(e){t(this,e),this.totalItems=0,this.currentPage=0,this.itemsPerPage=25}get firstItem(){return this.totalItems<1?0:(this.currentPage-1)*this.itemsPerPage+1}get lastItem(){return this.totalItems<1?0:Math.min(this.currentPage*this.itemsPerPage,this.totalItems)}async componentWillLoad(){this.i18n=await n(this.root,g)}getPaginationItemCountsRange(){if(this.totalItems)return a("span",null,this.i18n("totalItems",{totalItems:this.totalItems}))}render(){return a("div",{key:"857a63dfc776758edfb75604ca39c11d3b081f27",class:"gux-pagination-item-counts-container"},a("span",{key:"b8f255a7a341685d1eef8fec9644270d8542bab9",class:"gux-pagination-item-counts-range"},this.i18n("itemCountDisplay",{firstItem:this.firstItem,lastItem:this.lastItem})),a("span",{key:"78142978920bccef504da82d326108cd3d0de41e",class:"gux-pagination-item-counts-total"},this.getPaginationItemCountsRange()))}get root(){return i(this)}};l.style="gux-pagination-item-counts .gux-pagination-item-counts-container{display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);white-space:nowrap}gux-pagination-item-counts .gux-pagination-item-counts-total{font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);white-space:nowrap}";export{u as gux_pagination_buttons,l as gux_pagination_item_counts}
@@ -1 +1 @@
1
- import{r as o,h as t,g as s}from"./p-6e010355.js";import{t as e}from"./p-e3deae7d.js";const r=class{constructor(t){o(this,t),this.singleOpenSection=!1}handleGuxopened(o){this.singleOpenSection&&this.getAccordionSections().forEach((t=>{t!==o.target&&this.closeSection(t)}))}componentWillLoad(){this.singleOpenSection&&this.getAccordionSections().reduceRight(((o,t)=>(o&&this.closeSection(t),o||t.open)),!1),e(this.root)}getAccordionSections(){return Array.from(this.root.children)}closeSection(o){o.disabled||(o.open=!1)}render(){return t("slot",{key:"72852efdafc204b706f7efc44b26b7b187eefdf7"})}get root(){return s(this)}};r.style="gux-accordion{-custom-noop:noop}";export{r as gux_accordion}
1
+ import{r as o,h as t,g as s}from"./p-6e010355.js";import{t as r}from"./p-b31470bf.js";const e=class{constructor(t){o(this,t),this.singleOpenSection=!1}handleGuxopened(o){this.singleOpenSection&&this.getAccordionSections().forEach((t=>{t!==o.target&&this.closeSection(t)}))}componentWillLoad(){this.singleOpenSection&&this.getAccordionSections().reduceRight(((o,t)=>(o&&this.closeSection(t),o||t.open)),!1),r(this.root)}getAccordionSections(){return Array.from(this.root.children)}closeSection(o){o.disabled||(o.open=!1)}render(){return t("slot",{key:"72852efdafc204b706f7efc44b26b7b187eefdf7"})}get root(){return s(this)}};e.style="gux-accordion{-custom-noop:noop}";export{e as gux_accordion}
@@ -1 +1 @@
1
- import{r as e,c as t,h as s,g as o}from"./p-6e010355.js";import{O as i}from"./p-b0758688.js";import{w as a}from"./p-e97879b4.js";import{a as r}from"./p-cf0e7d3b.js";import{t as n}from"./p-e3deae7d.js";const d=["primary","secondary","tertiary"];const u=class{constructor(s){e(this,s),this.open=t(this,"open",7),this.close=t(this,"close",7),this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(e){const t=e.composedPath();switch(e.key){case"Escape":this.isOpen=!1,t.includes(this.listElement)&&(e.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":t.includes(this.dropdownButton)&&(e.preventDefault(),this.isOpen=!0,this.focusFirstItemInPopupList())}}handleKeyup(e){if(" "===e.key)e.composedPath().includes(this.dropdownButton)&&(this.isOpen=!0,this.focusFirstItemInPopupList())}watchDisabled(e){e&&(this.isOpen=!1)}watchValue(e){e?this.open.emit():this.close.emit()}onClickOutside(){this.isOpen=!1}toggle(){this.disabled||(this.isOpen=!this.isOpen,this.isOpen&&this.focusPopupList())}focusPopupList(){r((()=>{this.listElement.focus()}))}focusFirstItemInPopupList(){r((()=>{this.listElement.guxFocusFirstItem()}))}onListClick(e){a("gux-list-item",e,(()=>{this.isOpen=!1,this.dropdownButton.focus()}))}componentWillLoad(){n(this.root,{variant:this.accent})}render(){return s("gux-popup",{key:"8e419baad644a9be505b21e035aad20bc12329e0",expanded:this.isOpen,"exceed-target-width":!0,placement:"bottom-end"},s("div",{key:"42661fad38d139edcc9a1047295f4585039a92f0",slot:"target",class:"gux-button-multi-container"},s("gux-button-slot",{key:"075dcab6ce9658ff658e3dbda228af8d4be7467f",class:"gux-dropdown-button",accent:(e=this.accent,d.find((t=>t===e))?e:"secondary")},s("button",{key:"1977e4a4b32038b7865a314146ac62daf56fb928",type:"button",disabled:this.disabled,ref:e=>this.dropdownButton=e,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},s("slot",{key:"d3d2fb4d9234fbee37dc305bb9fc44f95d80b18b",name:"title"}),s("gux-icon",{key:"8375ddf3638ff596d60bdec30b64c74c1234d8de",decorative:!0,"icon-name":"custom/chevron-down-small-regular"})))),s("div",{key:"2e892d919b075cd97e45cdb7c39221b111de29dc",class:"gux-list-container",slot:"popup"},s("gux-list",{key:"347bab5c297ccf54baf433e5a9fa5d882056faf1",onClick:e=>this.onListClick(e),ref:e=>this.listElement=e},s("slot",{key:"fcdabae8844cfcc18a38d100d7a67e87ba7947a3"}))));var e}get root(){return o(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(e,t,s,o){var i,a=arguments.length,r=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,o);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(r=(a<3?i(r):a>3?i(t,s,r):i(t,s))||r);a>3&&r&&Object.defineProperty(t,s,r)})([i({triggerEvents:"mousedown"})],u.prototype,"onClickOutside",null),u.style=":host{display:block;-webkit-user-select:none;user-select:none}.gux-button-multi-container .gux-dropdown-button button{display:inline-flex;align-items:center}.gux-button-multi-container .gux-dropdown-button button gux-icon{width:var(--gse-ui-button-icon-size);height:var(--gse-ui-button-icon-size);margin-left:var(--gse-ui-button-gap)}.gux-list-container{max-width:220px;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-x, var(--gse-ui-menu-boxShadow-offsetX)) var(--gse-ui-menu-boxShadow-y, var(--gse-ui-menu-boxShadow-offsetY)) var(--gse-ui-menu-boxShadow-blur) var(--gse-ui-menu-boxShadow-spread) var(--gse-ui-menu-boxShadow-color)}";export{u as gux_button_multi}
1
+ import{r as e,c as t,h as s,g as o}from"./p-6e010355.js";import{O as i}from"./p-b0758688.js";import{w as a}from"./p-e97879b4.js";import{a as r}from"./p-cf0e7d3b.js";import{t as n}from"./p-b31470bf.js";const u=["primary","secondary","tertiary"];const d=class{constructor(s){e(this,s),this.open=t(this,"open",7),this.close=t(this,"close",7),this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(e){const t=e.composedPath();switch(e.key){case"Escape":this.isOpen=!1,t.includes(this.listElement)&&(e.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":t.includes(this.dropdownButton)&&(e.preventDefault(),this.isOpen=!0,this.focusFirstItemInPopupList())}}handleKeyup(e){if(" "===e.key)e.composedPath().includes(this.dropdownButton)&&(this.isOpen=!0,this.focusFirstItemInPopupList())}watchDisabled(e){e&&(this.isOpen=!1)}watchValue(e){e?this.open.emit():this.close.emit()}onClickOutside(){this.isOpen=!1}toggle(){this.disabled||(this.isOpen=!this.isOpen,this.isOpen&&this.focusPopupList())}focusPopupList(){r((()=>{this.listElement.focus()}))}focusFirstItemInPopupList(){r((()=>{this.listElement.guxFocusFirstItem()}))}onListClick(e){a("gux-list-item",e,(()=>{this.isOpen=!1,this.dropdownButton.focus()}))}componentWillLoad(){n(this.root,{variant:this.accent})}render(){return s("gux-popup",{key:"8e419baad644a9be505b21e035aad20bc12329e0",expanded:this.isOpen,"exceed-target-width":!0,placement:"bottom-end"},s("div",{key:"42661fad38d139edcc9a1047295f4585039a92f0",slot:"target",class:"gux-button-multi-container"},s("gux-button-slot",{key:"075dcab6ce9658ff658e3dbda228af8d4be7467f",class:"gux-dropdown-button",accent:(e=this.accent,u.find((t=>t===e))?e:"secondary")},s("button",{key:"1977e4a4b32038b7865a314146ac62daf56fb928",type:"button",disabled:this.disabled,ref:e=>this.dropdownButton=e,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},s("slot",{key:"d3d2fb4d9234fbee37dc305bb9fc44f95d80b18b",name:"title"}),s("gux-icon",{key:"8375ddf3638ff596d60bdec30b64c74c1234d8de",decorative:!0,"icon-name":"custom/chevron-down-small-regular"})))),s("div",{key:"2e892d919b075cd97e45cdb7c39221b111de29dc",class:"gux-list-container",slot:"popup"},s("gux-list",{key:"347bab5c297ccf54baf433e5a9fa5d882056faf1",onClick:e=>this.onListClick(e),ref:e=>this.listElement=e},s("slot",{key:"fcdabae8844cfcc18a38d100d7a67e87ba7947a3"}))));var e}get root(){return o(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(e,t,s,o){var i,a=arguments.length,r=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,o);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(r=(a<3?i(r):a>3?i(t,s,r):i(t,s))||r);a>3&&r&&Object.defineProperty(t,s,r)})([i({triggerEvents:"mousedown"})],d.prototype,"onClickOutside",null),d.style=":host{display:block;-webkit-user-select:none;user-select:none}.gux-button-multi-container .gux-dropdown-button button{display:inline-flex;align-items:center}.gux-button-multi-container .gux-dropdown-button button gux-icon{width:var(--gse-ui-button-icon-size);height:var(--gse-ui-button-icon-size);margin-left:var(--gse-ui-button-gap)}.gux-list-container{max-width:220px;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-x, var(--gse-ui-menu-boxShadow-offsetX)) var(--gse-ui-menu-boxShadow-y, var(--gse-ui-menu-boxShadow-offsetY)) var(--gse-ui-menu-boxShadow-blur) var(--gse-ui-menu-boxShadow-spread) var(--gse-ui-menu-boxShadow-color)}";export{d as gux_button_multi}
@@ -1 +1 @@
1
- import{r as t,d as s,w as i,h as o,g as e}from"./p-6e010355.js";import{a as r}from"./p-cf0e7d3b.js";import{b as l}from"./p-18eb7333.js";import{O as a}from"./p-e720c07a.js";import"./p-4202e9f2.js";const c={scrollLeft:"Scroll Left",scrollRight:"Scroll Right",scrollUp:"Scroll Up",scrollDown:"Scroll Down"};const n=class{constructor(s){t(this,s),this.currentScrollIndex=0,this.focused=0,this.tabTriggers=void 0,this.hasHorizontalScrollbar=!1,this.hasVerticalScrollbar=!1,this.isScrolledToBeginning=!1,this.isScrolledToEnd=!1}onFocusout(t){this.root.contains(t.relatedTarget)||this.tabTriggers.forEach(((t,s)=>{t.guxGetActive().then((i=>{i?this.focused=s:t.querySelector("button").setAttribute("tabindex","-1")}))}))}onHasVerticalScrollBar(){this.checkDisabledScrollButtons()}onScroll(){this.checkDisabledScrollButtons()}onKeydown(t){switch(t.key){case"ArrowRight":case"ArrowDown":t.preventDefault(),this.handleKeyboardScroll("forward");break;case"ArrowLeft":case"ArrowUp":t.preventDefault(),this.handleKeyboardScroll("backward");break;case"Escape":t.preventDefault(),this.focusTab(this.focused);break;case"Home":t.preventDefault(),this.focusTab(0);break;case"End":t.preventDefault(),this.focusTab(this.tabTriggers.length-1)}}onMutation(){this.setTabTriggers()}async guxSetActive(t){this.tabTriggers.forEach(((s,i)=>{const o=s.tabId===t;s.guxSetActive(o),o&&(this.focused=i)}))}focusTab(t){this.focused=t,this.tabTriggers.forEach(((t,s)=>{t.guxGetActive().then((i=>{this.focused===s||i||t.querySelector("button").setAttribute("tabindex","-1")}))})),this.tabTriggers[this.focused].querySelector("button").setAttribute("tabindex","0"),this.tabTriggers[this.focused].guxFocus()}setTabTriggers(){this.tabTriggers=this.root.querySelectorAll("gux-tab"),this.triggerIds=this.tabTriggers?Array.from(this.tabTriggers).map((t=>`gux-${t.getAttribute("tab-id")}-tab`)).join(" "):""}checkForScrollbarHideOrShow(){s((()=>{const t=this.root.querySelector(".gux-scrollable-section"),s=t.clientWidth<t.scrollWidth,i=t.clientHeight<t.scrollHeight;s!==this.hasHorizontalScrollbar&&(this.hasHorizontalScrollbar=s),i!==this.hasVerticalScrollbar&&(this.hasVerticalScrollbar=i),this.checkDisabledScrollButtons()}))}handleKeyboardScroll(t){const s=this.root.querySelector(".gux-scrollable-section");"forward"===t?this.focused<this.tabTriggers.length-1?(i((()=>{this.hasHorizontalScrollbar?this.scrollRight():this.scrollDown()})),this.focusTab(this.focused+1)):(i((()=>{this.hasHorizontalScrollbar?s.scrollBy(-s.scrollWidth,0):s.scrollBy(0,-s.scrollHeight)})),this.focusTab(0)):"backward"===t&&(this.focused>0?(i((()=>{this.hasHorizontalScrollbar?this.scrollLeft():this.scrollUp()})),this.focusTab(this.focused-1)):(i((()=>{this.hasHorizontalScrollbar?s.scrollBy(s.scrollWidth,0):s.scrollBy(0,s.scrollHeight)})),this.focusTab(this.tabTriggers.length-1)))}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.unobserve(this.root.querySelector(".gux-tab-container")),this.domObserver&&this.domObserver.disconnect()}async componentWillLoad(){this.setTabTriggers(),this.i18n=await l(this.root,c,"gux-tabs")}componentDidLoad(){!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkForScrollbarHideOrShow()))),this.resizeObserver&&this.resizeObserver.observe(this.root.querySelector(".gux-scrollable-section")),!this.domObserver&&window.MutationObserver&&(this.domObserver=new MutationObserver((()=>this.checkForScrollbarHideOrShow()))),this.domObserver&&this.domObserver.observe(this.root,{childList:!0,attributes:!1,subtree:!0}),r((()=>{this.checkForScrollbarHideOrShow()}),500)}checkDisabledScrollButtons(){const t=this.root.querySelector(".gux-scrollable-section");if(this.hasHorizontalScrollbar){const s=t.scrollLeft,i=t.scrollWidth-t.clientWidth;this.isScrolledToBeginning=0===s,this.isScrolledToEnd=i-s==0}else{const s=t.scrollTop,i=t.scrollHeight-t.clientHeight;this.isScrolledToBeginning=0===s,this.isScrolledToEnd=i-s==0}}getTabLength(){var t;return null===(t=this.tabTriggers[this.currentScrollIndex])||void 0===t?void 0:t.scrollWidth}scrollLeft(){i((()=>{this.currentScrollIndex=this.isScrolledToEnd?this.tabTriggers.length-1:this.currentScrollIndex-1,this.root.querySelector(".gux-scrollable-section").scrollBy(-this.getTabLength(),0)}))}scrollRight(){i((()=>{this.isScrolledToBeginning&&(this.currentScrollIndex=0),this.root.querySelector(".gux-scrollable-section").scrollBy(this.getTabLength(),0),this.currentScrollIndex=this.currentScrollIndex+1}))}scrollUp(){i((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(0,-this.tabTriggers[this.focused].clientHeight)}))}scrollDown(){i((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(0,this.tabTriggers[this.focused].clientHeight)}))}render(){return o("div",{key:"391821184788dbb1964fa843c547364510e2186f",class:"gux-tab-container"},this.renderScrollButton(this.hasHorizontalScrollbar?"scrollLeft":"scrollUp"),o("div",{key:"ef3b2c5ca044754a868924ab467dc5cd75be01ff",role:"tablist",class:"gux-scrollable-section","aria-owns":this.triggerIds},o("slot",{key:"5deb71d51924ed68ac64c29e863f957fb46ca9fd"})),this.renderScrollButton(this.hasHorizontalScrollbar?"scrollRight":"scrollDown"))}renderScrollButton(t){return o("div",{class:"gux-scroll-button-container"},this.hasHorizontalScrollbar||this.hasVerticalScrollbar?o("button",{disabled:this.getButtonDisabled(t),tabindex:"-1",title:this.i18n(t),"aria-label":this.i18n(t),class:"gux-scroll-button",onClick:()=>this.getScrollDirection(t)},o("gux-icon",{"icon-name":this.getChevronIconName(t),decorative:!0})):null)}getButtonDisabled(t){switch(t){case"scrollLeft":case"scrollUp":return this.isScrolledToBeginning;case"scrollRight":case"scrollDown":return this.isScrolledToEnd}}getScrollDirection(t){switch(t){case"scrollLeft":this.scrollLeft();break;case"scrollRight":this.scrollRight();break;case"scrollUp":this.scrollUp();break;case"scrollDown":this.scrollDown()}}getChevronIconName(t){switch(t){case"scrollLeft":return"custom/chevron-left-small-regular";case"scrollRight":return"custom/chevron-right-small-regular";case"scrollUp":return"custom/chevron-up-small-regular";case"scrollDown":return"custom/chevron-down-small-regular"}}get root(){return e(this)}};(function(t,s,i,o){var e,r=arguments.length,l=r<3?s:null===o?o=Object.getOwnPropertyDescriptor(s,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,s,i,o);else for(var a=t.length-1;a>=0;a--)(e=t[a])&&(l=(r<3?e(l):r>3?e(s,i,l):e(s,i))||l);r>3&&l&&Object.defineProperty(s,i,l)})([a({childList:!0,subtree:!0})],n.prototype,"onMutation",null),n.style="gux-tabs[orientation=vertical]{height:100%}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container{display:flex;flex-direction:column;width:var(--gse-ui-tabs-set-vertical-width);height:100%;margin-right:var(--gse-ui-tabs-set-vertical-marginRight);border-right:var(--gse-ui-tabs-item-divider-horizontal-height) solid var(--gse-ui-tabs-item-divider-dividerColor)}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container .gux-scroll-button-container{width:100%}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container .gux-scroll-button-container button{width:100%}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container .gux-scrollable-section{flex-direction:column;height:100%;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container .gux-scrollable-section::-webkit-scrollbar{width:0;height:0}gux-tabs:not([orientation=vertical])>gux-tab-list .gux-tab-container{height:var(--gse-ui-tabs-set-horizontal-height);margin-bottom:var(--gse-ui-tabs-set-horizontal-marginBottom);border-bottom:var(--gse-ui-tabs-item-divider-horizontal-height) solid var(--gse-ui-tabs-item-divider-dividerColor)}gux-tabs:not([orientation=vertical])>gux-tab-list .gux-scrollable-section{overflow-x:auto}gux-tabs .gux-tab-container{box-sizing:content-box;display:flex;width:100%;overflow:hidden;background-color:transparent}gux-tabs .gux-scrollable-section{display:flex;flex:1 1 auto;scroll-behavior:smooth;scrollbar-width:none}gux-tabs .gux-scrollable-section::-webkit-scrollbar{height:0}gux-tabs .gux-scroll-button-container{display:flex;border-radius:4px}gux-tabs .gux-scroll-button-container .gux-scroll-button{display:flex;align-items:center;justify-content:center;width:28px;height:40px;color:#202937;cursor:pointer;background-color:#e2e6ee;border:none;border-radius:4px}gux-tabs .gux-scroll-button-container .gux-scroll-button gux-icon{width:16px;height:16px}gux-tabs .gux-scroll-button-container .gux-scroll-button:hover:not(:disabled){background-color:#d7dce5}gux-tabs .gux-scroll-button-container .gux-scroll-button:active:not(:disabled){background-color:#d2d8e5}gux-tabs .gux-scroll-button-container .gux-scroll-button:disabled{cursor:default;opacity:0.5}";export{n as gux_tab_list}
1
+ import{r as t,d as s,w as i,h as o,g as e}from"./p-6e010355.js";import{a as r}from"./p-cf0e7d3b.js";import{b as l}from"./p-a82e4a04.js";import{O as a}from"./p-e720c07a.js";import"./p-4202e9f2.js";const c={scrollLeft:"Scroll Left",scrollRight:"Scroll Right",scrollUp:"Scroll Up",scrollDown:"Scroll Down"};const n=class{constructor(s){t(this,s),this.currentScrollIndex=0,this.focused=0,this.tabTriggers=void 0,this.hasHorizontalScrollbar=!1,this.hasVerticalScrollbar=!1,this.isScrolledToBeginning=!1,this.isScrolledToEnd=!1}onFocusout(t){this.root.contains(t.relatedTarget)||this.tabTriggers.forEach(((t,s)=>{t.guxGetActive().then((i=>{i?this.focused=s:t.querySelector("button").setAttribute("tabindex","-1")}))}))}onHasVerticalScrollBar(){this.checkDisabledScrollButtons()}onScroll(){this.checkDisabledScrollButtons()}onKeydown(t){switch(t.key){case"ArrowRight":case"ArrowDown":t.preventDefault(),this.handleKeyboardScroll("forward");break;case"ArrowLeft":case"ArrowUp":t.preventDefault(),this.handleKeyboardScroll("backward");break;case"Escape":t.preventDefault(),this.focusTab(this.focused);break;case"Home":t.preventDefault(),this.focusTab(0);break;case"End":t.preventDefault(),this.focusTab(this.tabTriggers.length-1)}}onMutation(){this.setTabTriggers()}async guxSetActive(t){this.tabTriggers.forEach(((s,i)=>{const o=s.tabId===t;s.guxSetActive(o),o&&(this.focused=i)}))}focusTab(t){this.focused=t,this.tabTriggers.forEach(((t,s)=>{t.guxGetActive().then((i=>{this.focused===s||i||t.querySelector("button").setAttribute("tabindex","-1")}))})),this.tabTriggers[this.focused].querySelector("button").setAttribute("tabindex","0"),this.tabTriggers[this.focused].guxFocus()}setTabTriggers(){this.tabTriggers=this.root.querySelectorAll("gux-tab"),this.triggerIds=this.tabTriggers?Array.from(this.tabTriggers).map((t=>`gux-${t.getAttribute("tab-id")}-tab`)).join(" "):""}checkForScrollbarHideOrShow(){s((()=>{const t=this.root.querySelector(".gux-scrollable-section"),s=t.clientWidth<t.scrollWidth,i=t.clientHeight<t.scrollHeight;s!==this.hasHorizontalScrollbar&&(this.hasHorizontalScrollbar=s),i!==this.hasVerticalScrollbar&&(this.hasVerticalScrollbar=i),this.checkDisabledScrollButtons()}))}handleKeyboardScroll(t){const s=this.root.querySelector(".gux-scrollable-section");"forward"===t?this.focused<this.tabTriggers.length-1?(i((()=>{this.hasHorizontalScrollbar?this.scrollRight():this.scrollDown()})),this.focusTab(this.focused+1)):(i((()=>{this.hasHorizontalScrollbar?s.scrollBy(-s.scrollWidth,0):s.scrollBy(0,-s.scrollHeight)})),this.focusTab(0)):"backward"===t&&(this.focused>0?(i((()=>{this.hasHorizontalScrollbar?this.scrollLeft():this.scrollUp()})),this.focusTab(this.focused-1)):(i((()=>{this.hasHorizontalScrollbar?s.scrollBy(s.scrollWidth,0):s.scrollBy(0,s.scrollHeight)})),this.focusTab(this.tabTriggers.length-1)))}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.unobserve(this.root.querySelector(".gux-tab-container")),this.domObserver&&this.domObserver.disconnect()}async componentWillLoad(){this.setTabTriggers(),this.i18n=await l(this.root,c,"gux-tabs")}componentDidLoad(){!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkForScrollbarHideOrShow()))),this.resizeObserver&&this.resizeObserver.observe(this.root.querySelector(".gux-scrollable-section")),!this.domObserver&&window.MutationObserver&&(this.domObserver=new MutationObserver((()=>this.checkForScrollbarHideOrShow()))),this.domObserver&&this.domObserver.observe(this.root,{childList:!0,attributes:!1,subtree:!0}),r((()=>{this.checkForScrollbarHideOrShow()}),500)}checkDisabledScrollButtons(){const t=this.root.querySelector(".gux-scrollable-section");if(this.hasHorizontalScrollbar){const s=t.scrollLeft,i=t.scrollWidth-t.clientWidth;this.isScrolledToBeginning=0===s,this.isScrolledToEnd=i-s==0}else{const s=t.scrollTop,i=t.scrollHeight-t.clientHeight;this.isScrolledToBeginning=0===s,this.isScrolledToEnd=i-s==0}}getTabLength(){var t;return null===(t=this.tabTriggers[this.currentScrollIndex])||void 0===t?void 0:t.scrollWidth}scrollLeft(){i((()=>{this.currentScrollIndex=this.isScrolledToEnd?this.tabTriggers.length-1:this.currentScrollIndex-1,this.root.querySelector(".gux-scrollable-section").scrollBy(-this.getTabLength(),0)}))}scrollRight(){i((()=>{this.isScrolledToBeginning&&(this.currentScrollIndex=0),this.root.querySelector(".gux-scrollable-section").scrollBy(this.getTabLength(),0),this.currentScrollIndex=this.currentScrollIndex+1}))}scrollUp(){i((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(0,-this.tabTriggers[this.focused].clientHeight)}))}scrollDown(){i((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(0,this.tabTriggers[this.focused].clientHeight)}))}render(){return o("div",{key:"391821184788dbb1964fa843c547364510e2186f",class:"gux-tab-container"},this.renderScrollButton(this.hasHorizontalScrollbar?"scrollLeft":"scrollUp"),o("div",{key:"ef3b2c5ca044754a868924ab467dc5cd75be01ff",role:"tablist",class:"gux-scrollable-section","aria-owns":this.triggerIds},o("slot",{key:"5deb71d51924ed68ac64c29e863f957fb46ca9fd"})),this.renderScrollButton(this.hasHorizontalScrollbar?"scrollRight":"scrollDown"))}renderScrollButton(t){return o("div",{class:"gux-scroll-button-container"},this.hasHorizontalScrollbar||this.hasVerticalScrollbar?o("button",{disabled:this.getButtonDisabled(t),tabindex:"-1",title:this.i18n(t),"aria-label":this.i18n(t),class:"gux-scroll-button",onClick:()=>this.getScrollDirection(t)},o("gux-icon",{"icon-name":this.getChevronIconName(t),decorative:!0})):null)}getButtonDisabled(t){switch(t){case"scrollLeft":case"scrollUp":return this.isScrolledToBeginning;case"scrollRight":case"scrollDown":return this.isScrolledToEnd}}getScrollDirection(t){switch(t){case"scrollLeft":this.scrollLeft();break;case"scrollRight":this.scrollRight();break;case"scrollUp":this.scrollUp();break;case"scrollDown":this.scrollDown()}}getChevronIconName(t){switch(t){case"scrollLeft":return"custom/chevron-left-small-regular";case"scrollRight":return"custom/chevron-right-small-regular";case"scrollUp":return"custom/chevron-up-small-regular";case"scrollDown":return"custom/chevron-down-small-regular"}}get root(){return e(this)}};(function(t,s,i,o){var e,r=arguments.length,l=r<3?s:null===o?o=Object.getOwnPropertyDescriptor(s,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,s,i,o);else for(var a=t.length-1;a>=0;a--)(e=t[a])&&(l=(r<3?e(l):r>3?e(s,i,l):e(s,i))||l);r>3&&l&&Object.defineProperty(s,i,l)})([a({childList:!0,subtree:!0})],n.prototype,"onMutation",null),n.style="gux-tabs[orientation=vertical]{height:100%}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container{display:flex;flex-direction:column;width:var(--gse-ui-tabs-set-vertical-width);height:100%;margin-right:var(--gse-ui-tabs-set-vertical-marginRight);border-right:var(--gse-ui-tabs-item-divider-horizontal-height) solid var(--gse-ui-tabs-item-divider-dividerColor)}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container .gux-scroll-button-container{width:100%}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container .gux-scroll-button-container button{width:100%}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container .gux-scrollable-section{flex-direction:column;height:100%;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth}gux-tabs[orientation=vertical]>gux-tab-list .gux-tab-container .gux-scrollable-section::-webkit-scrollbar{width:0;height:0}gux-tabs:not([orientation=vertical])>gux-tab-list .gux-tab-container{height:var(--gse-ui-tabs-set-horizontal-height);margin-bottom:var(--gse-ui-tabs-set-horizontal-marginBottom);border-bottom:var(--gse-ui-tabs-item-divider-horizontal-height) solid var(--gse-ui-tabs-item-divider-dividerColor)}gux-tabs:not([orientation=vertical])>gux-tab-list .gux-scrollable-section{overflow-x:auto}gux-tabs .gux-tab-container{box-sizing:content-box;display:flex;width:100%;overflow:hidden;background-color:transparent}gux-tabs .gux-scrollable-section{display:flex;flex:1 1 auto;scroll-behavior:smooth;scrollbar-width:none}gux-tabs .gux-scrollable-section::-webkit-scrollbar{height:0}gux-tabs .gux-scroll-button-container{display:flex;border-radius:4px}gux-tabs .gux-scroll-button-container .gux-scroll-button{display:flex;align-items:center;justify-content:center;width:28px;height:40px;color:#202937;cursor:pointer;background-color:#e2e6ee;border:none;border-radius:4px}gux-tabs .gux-scroll-button-container .gux-scroll-button gux-icon{width:16px;height:16px}gux-tabs .gux-scroll-button-container .gux-scroll-button:hover:not(:disabled){background-color:#d7dce5}gux-tabs .gux-scroll-button-container .gux-scroll-button:active:not(:disabled){background-color:#d2d8e5}gux-tabs .gux-scroll-button-container .gux-scroll-button:disabled{cursor:default;opacity:0.5}";export{n as gux_tab_list}
@@ -1 +1 @@
1
- import{r as a,c as o,h as t,g as i}from"./p-6e010355.js";import{r as e}from"./p-0934300e.js";import{t as d}from"./p-e3deae7d.js";import{h as n}from"./p-6d8b4027.js";const s=class{constructor(t){a(this,t),this.guxdismiss=o(this,"guxdismiss",7),this.size="dynamic",this.open=!1}syncOpenState(){this.open?this.dialogElement.showModal():this.dialogElement.close()}async showModal(){this.open=!0}async close(){this.open=!1}onKeydown(a){if("Escape"===a.key)return a.preventDefault(),void this.onDismissHandler()}componentWillLoad(){d(this.root,{variant:`${this.size}`})}componentDidLoad(){this.syncOpenState()}hasModalTitleSlot(){return Boolean(this.root.querySelector('[slot="title"]'))}hasFooterButtons(){var a,o;const t=this.root.querySelector('[slot="start-align-buttons"]'),i=this.root.querySelector('[slot="end-align-buttons"]');return Boolean(null===(a=null==t?void 0:t.textContent)||void 0===a?void 0:a.trim())||Boolean(null===(o=null==i?void 0:i.textContent)||void 0===o?void 0:o.trim())}renderFooter(){return n(this.root,"footer")?t("footer",null,t("slot",{name:"footer"})):this.renderButtonFooter()}render(){const a=this.hasModalTitleSlot(),o=e();return t("dialog",{key:"e5819c3848348a613bfc233984bb4a2bcbf8f664",onClose:this.onCloseHandler.bind(this),ref:a=>this.dialogElement=a,"aria-labelledby":a?o:null},t("div",{key:"0a938d855247b81ebaed0fb8ac0ecfbc81a23e4f",class:`gux-modal-container gux-${this.size}`},t("gux-dismiss-button",{key:"ff71ff38d822c17a525773a3b282e37757bf7ed7",onClick:this.onDismissHandler.bind(this)}),a&&this.renderTitle(o),t("div",{key:"d9cdff4415ae8d12509fbdbe02a8e5f7ee2f51c7",class:"gux-modal-content"},t("p",{key:"8a6a788b0d2ed0a51bc3c769ef733b61acd58fd3"},t("slot",{key:"d2ca3056fbeef75fdeabffca8ecd2a545fda238b",name:"content"}))),this.renderFooter()))}renderTitle(a){return t("h1",{class:"gux-modal-header",id:a},t("slot",{name:"title"}))}renderButtonFooter(){const a=this.hasFooterButtons();return t("div",{class:{"gux-button-footer":!0,"gux-no-buttons":!a}},t("div",{class:"gux-start-align-buttons"},t("slot",{name:"start-align-buttons"})),t("div",{class:"gux-end-align-buttons"},t("slot",{name:"end-align-buttons"})))}onCloseHandler(){this.guxdismiss.emit()}onDismissHandler(){this.open=!1}static get delegatesFocus(){return!0}get root(){return i(this)}static get watchers(){return{open:["syncOpenState"]}}};s.style="::slotted(button:active:enabled){color:var(--gse-ui-link-active-foregroundColor, var(--gse-ui-links-active-foregroundColor));text-decoration:underline;background:none}slot[name=start-align-buttons]::slotted(:not(button,gux-button-slot)){display:flex;flex-direction:row;gap:var(--gse-ui-modal-buttonBar-gap);align-content:flex-start;align-items:center}:host dialog{box-sizing:border-box;justify-content:space-between;padding:0;overflow:hidden;border:none;border-radius:var(--gse-ui-modal-borderRadius);box-shadow:var(--gse-ui-modal-boxShadow-x, var(--gse-ui-modal-boxShadow-offsetX)) var(--gse-ui-modal-boxShadow-y, var(--gse-ui-modal-boxShadow-offsetY)) var(--gse-ui-modal-boxShadow-blur) var(--gse-ui-modal-boxShadow-spread) var(--gse-ui-modal-boxShadow-color)}:host dialog::backdrop{background:rgba(77, 97, 130, 0.8)}:host dialog .gux-modal-container{display:flex;flex-direction:column}:host dialog .gux-modal-container.gux-small{width:var(--gse-ui-modal-small-width);max-height:min(368px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-medium{width:min(var(--gse-ui-modal-medium-width), 100vw - 48px);max-height:min(640px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-large{width:min(var(--gse-ui-modal-large-width), 100vw - 48px);max-height:min(640px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-dynamic{max-width:calc(100vw - 48px);max-height:calc(100vh - 48px)}:host dialog .gux-modal-container.gux-dynamic .gux-modal-content{max-height:none}:host dialog .gux-modal-container .gux-modal-header{padding-top:var(--gse-ui-modal-padding);padding-right:var(--gse-ui-modal-padding);padding-left: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-lineHeight);color:var(--gse-ui-modal-headerColor)}:host dialog .gux-modal-container .gux-modal-content{max-height:432px;padding-right:var(--gse-ui-modal-padding);padding-left:var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap);overflow-y:auto}:host dialog .gux-modal-container .gux-button-footer{display:flex;justify-content:space-between;padding-right:var(--gse-ui-modal-padding);padding-bottom:var(--gse-ui-modal-padding);padding-left:var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap)}:host dialog .gux-modal-container .gux-button-footer.gux-no-buttons{display:none}:host dialog .gux-modal-container footer{padding-right:var(--gse-ui-modal-padding);padding-bottom:var(--gse-ui-modal-padding);padding-left:var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap)}@media (max-width: 416px){:host dialog .gux-modal-container.gux-small,:host dialog .gux-modal-container.gux-medium,:host dialog .gux-modal-container.gux-large{width:100%;height:100%}}";export{s as gux_modal}
1
+ import{r as a,c as o,h as t,g as i}from"./p-6e010355.js";import{r as e}from"./p-0934300e.js";import{t as d}from"./p-b31470bf.js";import{h as n}from"./p-6d8b4027.js";const s=class{constructor(t){a(this,t),this.guxdismiss=o(this,"guxdismiss",7),this.size="dynamic",this.open=!1}syncOpenState(){this.open?this.dialogElement.showModal():this.dialogElement.close()}async showModal(){this.open=!0}async close(){this.open=!1}onKeydown(a){if("Escape"===a.key)return a.preventDefault(),void this.onDismissHandler()}componentWillLoad(){d(this.root,{variant:`${this.size}`})}componentDidLoad(){this.syncOpenState()}hasModalTitleSlot(){return Boolean(this.root.querySelector('[slot="title"]'))}hasFooterButtons(){var a,o;const t=this.root.querySelector('[slot="start-align-buttons"]'),i=this.root.querySelector('[slot="end-align-buttons"]');return Boolean(null===(a=null==t?void 0:t.textContent)||void 0===a?void 0:a.trim())||Boolean(null===(o=null==i?void 0:i.textContent)||void 0===o?void 0:o.trim())}renderFooter(){return n(this.root,"footer")?t("footer",null,t("slot",{name:"footer"})):this.renderButtonFooter()}render(){const a=this.hasModalTitleSlot(),o=e();return t("dialog",{key:"e5819c3848348a613bfc233984bb4a2bcbf8f664",onClose:this.onCloseHandler.bind(this),ref:a=>this.dialogElement=a,"aria-labelledby":a?o:null},t("div",{key:"0a938d855247b81ebaed0fb8ac0ecfbc81a23e4f",class:`gux-modal-container gux-${this.size}`},t("gux-dismiss-button",{key:"ff71ff38d822c17a525773a3b282e37757bf7ed7",onClick:this.onDismissHandler.bind(this)}),a&&this.renderTitle(o),t("div",{key:"d9cdff4415ae8d12509fbdbe02a8e5f7ee2f51c7",class:"gux-modal-content"},t("p",{key:"8a6a788b0d2ed0a51bc3c769ef733b61acd58fd3"},t("slot",{key:"d2ca3056fbeef75fdeabffca8ecd2a545fda238b",name:"content"}))),this.renderFooter()))}renderTitle(a){return t("h1",{class:"gux-modal-header",id:a},t("slot",{name:"title"}))}renderButtonFooter(){const a=this.hasFooterButtons();return t("div",{class:{"gux-button-footer":!0,"gux-no-buttons":!a}},t("div",{class:"gux-start-align-buttons"},t("slot",{name:"start-align-buttons"})),t("div",{class:"gux-end-align-buttons"},t("slot",{name:"end-align-buttons"})))}onCloseHandler(){this.guxdismiss.emit()}onDismissHandler(){this.open=!1}static get delegatesFocus(){return!0}get root(){return i(this)}static get watchers(){return{open:["syncOpenState"]}}};s.style="::slotted(button:active:enabled){color:var(--gse-ui-link-active-foregroundColor, var(--gse-ui-links-active-foregroundColor));text-decoration:underline;background:none}slot[name=start-align-buttons]::slotted(:not(button,gux-button-slot)){display:flex;flex-direction:row;gap:var(--gse-ui-modal-buttonBar-gap);align-content:flex-start;align-items:center}:host dialog{box-sizing:border-box;justify-content:space-between;padding:0;overflow:hidden;border:none;border-radius:var(--gse-ui-modal-borderRadius);box-shadow:var(--gse-ui-modal-boxShadow-x, var(--gse-ui-modal-boxShadow-offsetX)) var(--gse-ui-modal-boxShadow-y, var(--gse-ui-modal-boxShadow-offsetY)) var(--gse-ui-modal-boxShadow-blur) var(--gse-ui-modal-boxShadow-spread) var(--gse-ui-modal-boxShadow-color)}:host dialog::backdrop{background:rgba(77, 97, 130, 0.8)}:host dialog .gux-modal-container{display:flex;flex-direction:column}:host dialog .gux-modal-container.gux-small{width:var(--gse-ui-modal-small-width);max-height:min(368px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-medium{width:min(var(--gse-ui-modal-medium-width), 100vw - 48px);max-height:min(640px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-large{width:min(var(--gse-ui-modal-large-width), 100vw - 48px);max-height:min(640px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-dynamic{max-width:calc(100vw - 48px);max-height:calc(100vh - 48px)}:host dialog .gux-modal-container.gux-dynamic .gux-modal-content{max-height:none}:host dialog .gux-modal-container .gux-modal-header{padding-top:var(--gse-ui-modal-padding);padding-right:var(--gse-ui-modal-padding);padding-left: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-lineHeight);color:var(--gse-ui-modal-headerColor)}:host dialog .gux-modal-container .gux-modal-content{max-height:432px;padding-right:var(--gse-ui-modal-padding);padding-left:var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap);overflow-y:auto}:host dialog .gux-modal-container .gux-button-footer{display:flex;justify-content:space-between;padding-right:var(--gse-ui-modal-padding);padding-bottom:var(--gse-ui-modal-padding);padding-left:var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap)}:host dialog .gux-modal-container .gux-button-footer.gux-no-buttons{display:none}:host dialog .gux-modal-container footer{padding-right:var(--gse-ui-modal-padding);padding-bottom:var(--gse-ui-modal-padding);padding-left:var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap)}@media (max-width: 416px){:host dialog .gux-modal-container.gux-small,:host dialog .gux-modal-container.gux-medium,:host dialog .gux-modal-container.gux-large{width:100%;height:100%}}";export{s as gux_modal}
@@ -1 +1 @@
1
- import{r as t,h as a,H as i,g as s}from"./p-6e010355.js";import{s as e}from"./p-2c25e2f2.js";import{c as r}from"./p-a43079c8.js";import{t as o}from"./p-e3deae7d.js";import{a as n}from"./p-8eaf8caf.js";const l=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":t.preventDefault(),this.updateRatingValue(this.value+a);break;case"ArrowDown":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})))}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:"a1976577e15e8ab80dfbac88b4911b910347fe95",role:"spinbutton",tabindex:this.getTabIndex(),"aria-readonly":this.readonly.toString(),"aria-valuenow":this.value,"aria-valuemin":"0","aria-valuemax":this.maxValue},a("div",{key:"d562502e1cced11258f30329bcc590143e427a9f",ref:t=>this.starContainer=t,class:{"gux-rating-star-container":!0,"gux-disabled":this.disabled}},this.getRatingStarElements()))}get root(){return s(this)}};l.style=":host{display:inline-block;min-width:fit-content;user-select:none}:host(:host:focus-visible){outline:var(--gse-semantic-focusRing-small-border-color, var(--gse-semantic-border-focus)) var(--gse-semantic-focusRing-small-border-style, solid) var(--gse-semantic-focusRing-small-border-width, var(--gse-semantic-focusOutline-sm-borderWidth));outline-offset:var(--gse-semantic-focusRing-offset, var(--gse-semantic-focusOutline-offset));box-shadow:0 0 0 1px var(--gse-semantic-focusRing-small-border-color)}.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;width:var(--gse-ui-rating-size);height:var(--gse-ui-rating-size);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{l as gux_rating}
1
+ import{r as t,h as a,H as i,g as s}from"./p-6e010355.js";import{s as e}from"./p-2c25e2f2.js";import{c as r}from"./p-a43079c8.js";import{t as o}from"./p-b31470bf.js";import{a as n}from"./p-8eaf8caf.js";const l=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":t.preventDefault(),this.updateRatingValue(this.value+a);break;case"ArrowDown":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})))}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:"a1976577e15e8ab80dfbac88b4911b910347fe95",role:"spinbutton",tabindex:this.getTabIndex(),"aria-readonly":this.readonly.toString(),"aria-valuenow":this.value,"aria-valuemin":"0","aria-valuemax":this.maxValue},a("div",{key:"d562502e1cced11258f30329bcc590143e427a9f",ref:t=>this.starContainer=t,class:{"gux-rating-star-container":!0,"gux-disabled":this.disabled}},this.getRatingStarElements()))}get root(){return s(this)}};l.style=":host{display:inline-block;min-width:fit-content;user-select:none}:host(:host:focus-visible){outline:var(--gse-semantic-focusRing-small-border-color, var(--gse-semantic-border-focus)) var(--gse-semantic-focusRing-small-border-style, solid) var(--gse-semantic-focusRing-small-border-width, var(--gse-semantic-focusOutline-sm-borderWidth));outline-offset:var(--gse-semantic-focusRing-offset, var(--gse-semantic-focusOutline-offset));box-shadow:0 0 0 1px var(--gse-semantic-focusRing-small-border-color)}.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;width:var(--gse-ui-rating-size);height:var(--gse-ui-rating-size);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{l as gux_rating}
@@ -1 +1 @@
1
- import{r as e,f as t,h as o,g as i}from"./p-6e010355.js";import{c as r,o as n}from"./p-f4751a15.js";import{O as s}from"./p-e720c07a.js";import{o as l}from"./p-e5b1cffc.js";import{p as a}from"./p-a11d5d42.js";import{h as f}from"./p-6d8b4027.js";import{a as u,G as d}from"./p-b8c3ecdc.js";import{G as p,a as h}from"./p-7e76ac06.js";import{h as g,b as c,c as m,g as x,v as b,a as v}from"./p-42f2e889.js";import{t as C}from"./p-e3deae7d.js";import{f as y}from"./p-54822e3b.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const w=class{constructor(t){e(this,t),this.clearable=void 0,this.labelPosition=void 0,this.loading=!1,this.indicatorMark="required",this.hasPrefix=void 0,this.hasSuffix=void 0,this.computedLabelPosition="above",this.disabled=void 0,this.required=void 0,this.hasContent=!1,this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=f(this.root,"error"),this.hasHelp=f(this.root,"help")}handleKeyup(e){var t,o;"Tab"===e.key?this.input.matches(":focus-visible")&&(null===(t=this.labelInfo)||void 0===t||t.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}async guxForceUpdate(){this.hasContent=g(this.input),this.hasError=f(this.root,"error"),this.hasHelp=f(this.root,"help"),t(this.root)}renderRadialLoading(){if(this.loading)return o("gux-radial-loading",{context:"input"})}componentWillLoad(){this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=f(this.root,"error"),this.hasHelp=f(this.root,"help"),this.hasPrefix=Boolean(this.root.querySelector('[slot="prefix"]')),this.hasSuffix=Boolean(this.root.querySelector('[slot="suffix"]')),this.hasPrefix&&c(this.root,this.input,"prefix"),this.hasSuffix&&c(this.root,this.input,"suffix"),C(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return o(h,{key:"8542dbf3586a4954e599b474075d2223412a26f3",labelPosition:this.computedLabelPosition},o(p,{key:"0b62b512499c8ef97761e2704f3b737cf06f968d",required:this.required,position:this.computedLabelPosition},o("slot",{key:"5935577524f196d395cf644f49814f7766a09fd6",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"ab1777e7bf925e04e1bf7427aa2c49e2cd0ad5c6",variant:this.indicatorMark,required:this.required}),o("slot",{key:"713b9725d03a6f121397db9bd4f77bb0cfe13c4f",name:"label-info"})),o("div",{key:"85b87e18390636999776496f487ec0c0cf25b0e5",class:"gux-input-and-error-container"},o("div",{key:"dac2fb06f90b9db78f46e632f234a7a41456d6d6",class:{"gux-input":!0,"gux-input-error":this.hasError}},o("div",{key:"3465925d047570189a19f07a93989a60eb8becff",class:{"gux-input-container":!0,"gux-disabled":this.disabled,"gux-has-prefix":this.hasPrefix,"gux-has-suffix":this.hasSuffix},onClick:()=>y(this.input)},o("slot",{key:"252b146258530413117f35e3462e1c468ed1d508",name:"prefix"}),o("slot",{key:"ce315116d279a9a7e2839e3f6ba6a3f973efa8b8",name:"input"}),this.renderRadialLoading(),o("slot",{key:"516b7df929a370f62e91f5918e5828ab268e856b",name:"suffix"}),this.clearable&&this.hasContent&&!this.disabled&&o("gux-form-field-input-clear-button",{key:"22ad01e5c3a63f23ed2cc066a758f704de050222",onClick:()=>m(this.input)}))),o(u,{key:"218838c17bf35f44a04cfd16974e6cb34b298da4",show:this.hasError},o("slot",{key:"4996092e4483018fa7053601b765dfd53ae5af22",name:"error"})),o(d,{key:"2e2f5d71b0f59528c40a79d6411417814358476f",show:!this.hasError&&this.hasHelp},o("slot",{key:"32e2373d4ff0238fd7dbae1c9c113003ad93cb15",name:"help"}))))}get variant(){const e=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.input.getAttribute("type")}-${this.clearable?"clearable":"unclearable"}-${e}`}setInput(){this.input=x(this.root,'input[type="email"][slot="input"], input[type="number"][slot="input"], input[type="password"][slot="input"], input[type="text"][slot="input"]'),this.hasContent=g(this.input),a(this.input),this.input.addEventListener("input",(()=>{this.hasContent=g(this.input)})),this.disabled=r(this.input),this.required=this.input.required,this.disabledObserver=n(this.input,(e=>{this.disabled=e})),this.requiredObserver=l(this.input,(e=>{this.required=e})),b(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=v(this.label,this.labelPosition)}get root(){return i(this)}};(function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)})([s({childList:!0,subtree:!0})],w.prototype,"onMutation",null),w.style=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;min-width:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));min-height:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;top:var(--gse-ui-formControl-input-top);width:fit-content;min-width:var(--gse-ui-formControl-input-textfield-minWidth);max-width:fit-content;margin-right:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-bottom:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-top:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;overflow:hidden;font-size:var(--gse-ui-formControl-input-contentText-fontSize);text-overflow:ellipsis;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none;outline:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}slot[name=prefix],slot[name=suffix]{font-family:var(--gse-ui-formControl-input-prefixSufix-text-fontFamily);font-size:var(--gse-ui-formControl-input-prefixSufix-text-fontSize);line-height:var(--gse-ui-formControl-input-prefixSufix-text-lineHeight);color:var(--gse-ui-formControl-input-prefixSufix-defaultColor);text-align:center;text-decoration:none;white-space:nowrap}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;width:100%;height:var(--gse-ui-formControl-input-textfield-height);padding:var(--gse-ui-formControl-input-padding);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);cursor:text;background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container.gux-has-suffix:not(.gux-input-and-error-container .gux-input .gux-input-container.gux-has-prefix) ::slotted(input){text-align:right}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius);outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusRing-offset, var(--gse-semantic-focusOutline-offset))}.gux-input-and-error-container .gux-input .gux-input-container:hover:not(.gux-disabled){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-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}";export{w as gux_form_field_text_like}
1
+ import{r as e,f as t,h as o,g as i}from"./p-6e010355.js";import{c as r,o as n}from"./p-f4751a15.js";import{O as s}from"./p-e720c07a.js";import{o as l}from"./p-e5b1cffc.js";import{p as a}from"./p-a11d5d42.js";import{h as f}from"./p-6d8b4027.js";import{a as u,G as d}from"./p-b8c3ecdc.js";import{G as p,a as h}from"./p-7e76ac06.js";import{h as g,b as c,c as m,g as x,v as b,a as v}from"./p-42f2e889.js";import{t as C}from"./p-b31470bf.js";import{f as y}from"./p-54822e3b.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const w=class{constructor(t){e(this,t),this.clearable=void 0,this.labelPosition=void 0,this.loading=!1,this.indicatorMark="required",this.hasPrefix=void 0,this.hasSuffix=void 0,this.computedLabelPosition="above",this.disabled=void 0,this.required=void 0,this.hasContent=!1,this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=f(this.root,"error"),this.hasHelp=f(this.root,"help")}handleKeyup(e){var t,o;"Tab"===e.key?this.input.matches(":focus-visible")&&(null===(t=this.labelInfo)||void 0===t||t.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}async guxForceUpdate(){this.hasContent=g(this.input),this.hasError=f(this.root,"error"),this.hasHelp=f(this.root,"help"),t(this.root)}renderRadialLoading(){if(this.loading)return o("gux-radial-loading",{context:"input"})}componentWillLoad(){this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=f(this.root,"error"),this.hasHelp=f(this.root,"help"),this.hasPrefix=Boolean(this.root.querySelector('[slot="prefix"]')),this.hasSuffix=Boolean(this.root.querySelector('[slot="suffix"]')),this.hasPrefix&&c(this.root,this.input,"prefix"),this.hasSuffix&&c(this.root,this.input,"suffix"),C(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return o(h,{key:"8542dbf3586a4954e599b474075d2223412a26f3",labelPosition:this.computedLabelPosition},o(p,{key:"0b62b512499c8ef97761e2704f3b737cf06f968d",required:this.required,position:this.computedLabelPosition},o("slot",{key:"5935577524f196d395cf644f49814f7766a09fd6",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"ab1777e7bf925e04e1bf7427aa2c49e2cd0ad5c6",variant:this.indicatorMark,required:this.required}),o("slot",{key:"713b9725d03a6f121397db9bd4f77bb0cfe13c4f",name:"label-info"})),o("div",{key:"85b87e18390636999776496f487ec0c0cf25b0e5",class:"gux-input-and-error-container"},o("div",{key:"dac2fb06f90b9db78f46e632f234a7a41456d6d6",class:{"gux-input":!0,"gux-input-error":this.hasError}},o("div",{key:"3465925d047570189a19f07a93989a60eb8becff",class:{"gux-input-container":!0,"gux-disabled":this.disabled,"gux-has-prefix":this.hasPrefix,"gux-has-suffix":this.hasSuffix},onClick:()=>y(this.input)},o("slot",{key:"252b146258530413117f35e3462e1c468ed1d508",name:"prefix"}),o("slot",{key:"ce315116d279a9a7e2839e3f6ba6a3f973efa8b8",name:"input"}),this.renderRadialLoading(),o("slot",{key:"516b7df929a370f62e91f5918e5828ab268e856b",name:"suffix"}),this.clearable&&this.hasContent&&!this.disabled&&o("gux-form-field-input-clear-button",{key:"22ad01e5c3a63f23ed2cc066a758f704de050222",onClick:()=>m(this.input)}))),o(u,{key:"218838c17bf35f44a04cfd16974e6cb34b298da4",show:this.hasError},o("slot",{key:"4996092e4483018fa7053601b765dfd53ae5af22",name:"error"})),o(d,{key:"2e2f5d71b0f59528c40a79d6411417814358476f",show:!this.hasError&&this.hasHelp},o("slot",{key:"32e2373d4ff0238fd7dbae1c9c113003ad93cb15",name:"help"}))))}get variant(){const e=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.input.getAttribute("type")}-${this.clearable?"clearable":"unclearable"}-${e}`}setInput(){this.input=x(this.root,'input[type="email"][slot="input"], input[type="number"][slot="input"], input[type="password"][slot="input"], input[type="text"][slot="input"]'),this.hasContent=g(this.input),a(this.input),this.input.addEventListener("input",(()=>{this.hasContent=g(this.input)})),this.disabled=r(this.input),this.required=this.input.required,this.disabledObserver=n(this.input,(e=>{this.disabled=e})),this.requiredObserver=l(this.input,(e=>{this.required=e})),b(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=v(this.label,this.labelPosition)}get root(){return i(this)}};(function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)})([s({childList:!0,subtree:!0})],w.prototype,"onMutation",null),w.style=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;min-width:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));min-height:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;top:var(--gse-ui-formControl-input-top);width:fit-content;min-width:var(--gse-ui-formControl-input-textfield-minWidth);max-width:fit-content;margin-right:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-bottom:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-top:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;overflow:hidden;font-size:var(--gse-ui-formControl-input-contentText-fontSize);text-overflow:ellipsis;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none;outline:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}slot[name=prefix],slot[name=suffix]{font-family:var(--gse-ui-formControl-input-prefixSufix-text-fontFamily);font-size:var(--gse-ui-formControl-input-prefixSufix-text-fontSize);line-height:var(--gse-ui-formControl-input-prefixSufix-text-lineHeight);color:var(--gse-ui-formControl-input-prefixSufix-defaultColor);text-align:center;text-decoration:none;white-space:nowrap}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;width:100%;height:var(--gse-ui-formControl-input-textfield-height);padding:var(--gse-ui-formControl-input-padding);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);cursor:text;background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container.gux-has-suffix:not(.gux-input-and-error-container .gux-input .gux-input-container.gux-has-prefix) ::slotted(input){text-align:right}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius);outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusRing-offset, var(--gse-semantic-focusOutline-offset))}.gux-input-and-error-container .gux-input .gux-input-container:hover:not(.gux-disabled){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-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}";export{w as gux_form_field_text_like}