genesys-spark-components 4.232.0 → 4.232.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 (428) hide show
  1. package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
  2. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-actionable-inline-alert-beta.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-ai-indicator-beta.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-ai-powered-badge-beta.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-ai-spinner-loader-beta.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-avatar-beta.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-avatar-group-add-item-beta_3.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-avatar-group-item-beta.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-blank-state-beta.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-button_2.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-cloud-logo-beta.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-cloud-logomark-beta.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-file-list-item.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-file-beta.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-file.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-form-field-number_2.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-illustration-beta.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-inline-dropdown-beta.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-link-beta.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-logo-beta.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-logomark-beta.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-notification-indicator-beta.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-popover-beta.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-popover-list-beta.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-prompt-input-beta.cjs.entry.js +1 -1
  88. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  91. package/dist/cjs/gux-rich-highlight-list-item.cjs.entry.js +1 -1
  92. package/dist/cjs/gux-rich-style-list-item_3.cjs.entry.js +1 -1
  93. package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +1 -1
  95. package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +1 -1
  96. package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +1 -1
  97. package/dist/cjs/gux-rich-text-editor-beta.cjs.entry.js +1 -1
  98. package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +1 -1
  99. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  100. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  101. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
  102. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
  103. package/dist/cjs/gux-side-panel-beta.cjs.entry.js +1 -1
  104. package/dist/cjs/gux-side-panel-header-mini.cjs.entry.js +1 -1
  105. package/dist/cjs/gux-side-panel-header.cjs.entry.js +1 -1
  106. package/dist/cjs/gux-side-panel-heading.cjs.entry.js +1 -1
  107. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  108. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  109. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  110. package/dist/cjs/gux-status-indicator-beta.cjs.entry.js +1 -1
  111. package/dist/cjs/gux-step-title.cjs.entry.js +1 -1
  112. package/dist/cjs/gux-step.cjs.entry.js +1 -1
  113. package/dist/cjs/gux-stepper-beta.cjs.entry.js +1 -1
  114. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  115. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  116. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  117. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  118. package/dist/cjs/gux-table-toolbar.cjs.entry.js +112 -20
  119. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  120. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  121. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  122. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  123. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  124. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  125. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  126. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
  127. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  128. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  129. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  130. package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +1 -1
  131. package/dist/cjs/gux-tooltip-pointer-beta.cjs.entry.js +1 -1
  132. package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
  133. package/dist/cjs/gux-tree-beta.cjs.entry.js +1 -1
  134. package/dist/cjs/gux-tree-multi-beta.cjs.entry.js +1 -1
  135. package/dist/cjs/index-npRUdf7N.js +4 -4
  136. package/dist/cjs/loader.cjs.js +1 -1
  137. package/dist/cjs/{usage-CXG6kbqB.js → usage-DmL6VX-Z.js} +1 -1
  138. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination.js +1 -1
  139. package/dist/collection/components/stable/gux-pagination/gux-pagination.js +1 -1
  140. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar.js +43 -19
  141. package/dist/collection/utils/dom/slot-cache.js +82 -0
  142. package/dist/collection/utils/function/debounce.js +23 -0
  143. package/dist/esm/genesys-webcomponents.js +1 -1
  144. package/dist/esm/gux-accordion.entry.js +1 -1
  145. package/dist/esm/gux-action-button.entry.js +1 -1
  146. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  147. package/dist/esm/gux-actionable-inline-alert-beta.entry.js +1 -1
  148. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  149. package/dist/esm/gux-ai-indicator-beta.entry.js +1 -1
  150. package/dist/esm/gux-ai-powered-badge-beta.entry.js +1 -1
  151. package/dist/esm/gux-ai-spinner-loader-beta.entry.js +1 -1
  152. package/dist/esm/gux-announce-beta.entry.js +1 -1
  153. package/dist/esm/gux-avatar-beta.entry.js +1 -1
  154. package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
  155. package/dist/esm/gux-avatar-group-add-item-beta_3.entry.js +1 -1
  156. package/dist/esm/gux-avatar-group-beta.entry.js +1 -1
  157. package/dist/esm/gux-avatar-group-item-beta.entry.js +1 -1
  158. package/dist/esm/gux-badge.entry.js +1 -1
  159. package/dist/esm/gux-blank-state-beta.entry.js +1 -1
  160. package/dist/esm/gux-blank-state.entry.js +1 -1
  161. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  162. package/dist/esm/gux-button-multi.entry.js +1 -1
  163. package/dist/esm/gux-button-slot.entry.js +1 -1
  164. package/dist/esm/gux-button_2.entry.js +1 -1
  165. package/dist/esm/gux-calendar.entry.js +1 -1
  166. package/dist/esm/gux-card.entry.js +1 -1
  167. package/dist/esm/gux-cloud-logo-beta.entry.js +1 -1
  168. package/dist/esm/gux-cloud-logomark-beta.entry.js +1 -1
  169. package/dist/esm/gux-column-manager.entry.js +1 -1
  170. package/dist/esm/gux-content-search.entry.js +1 -1
  171. package/dist/esm/gux-context-menu.entry.js +1 -1
  172. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  173. package/dist/esm/gux-date-beta.entry.js +1 -1
  174. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  175. package/dist/esm/gux-datepicker.entry.js +1 -1
  176. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  177. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  178. package/dist/esm/gux-dropdown-multi.entry.js +1 -1
  179. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  180. package/dist/esm/gux-file-list-item.entry.js +1 -1
  181. package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
  182. package/dist/esm/gux-flyout-menu.entry.js +1 -1
  183. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +1 -1
  184. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  185. package/dist/esm/gux-form-field-color.entry.js +1 -1
  186. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  187. package/dist/esm/gux-form-field-file-beta.entry.js +1 -1
  188. package/dist/esm/gux-form-field-file.entry.js +1 -1
  189. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  190. package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
  191. package/dist/esm/gux-form-field-number_2.entry.js +1 -1
  192. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  193. package/dist/esm/gux-form-field-radio-group-beta.entry.js +1 -1
  194. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  195. package/dist/esm/gux-form-field-range.entry.js +1 -1
  196. package/dist/esm/gux-form-field-search.entry.js +1 -1
  197. package/dist/esm/gux-form-field-select.entry.js +1 -1
  198. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  199. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  200. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  201. package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
  202. package/dist/esm/gux-form-footer.entry.js +1 -1
  203. package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
  204. package/dist/esm/gux-icon.entry.js +1 -1
  205. package/dist/esm/gux-illustration-beta.entry.js +1 -1
  206. package/dist/esm/gux-inline-alert.entry.js +1 -1
  207. package/dist/esm/gux-inline-dropdown-beta.entry.js +1 -1
  208. package/dist/esm/gux-label-info-beta.entry.js +1 -1
  209. package/dist/esm/gux-link-beta.entry.js +1 -1
  210. package/dist/esm/gux-list.entry.js +1 -1
  211. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  212. package/dist/esm/gux-loading-message.entry.js +1 -1
  213. package/dist/esm/gux-logo-beta.entry.js +1 -1
  214. package/dist/esm/gux-logomark-beta.entry.js +1 -1
  215. package/dist/esm/gux-modal-legacy.entry.js +1 -1
  216. package/dist/esm/gux-modal-side-panel-beta.entry.js +1 -1
  217. package/dist/esm/gux-modal.entry.js +1 -1
  218. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  219. package/dist/esm/gux-notification-indicator-beta.entry.js +1 -1
  220. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  221. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  222. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  223. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  224. package/dist/esm/gux-pagination.entry.js +1 -1
  225. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  226. package/dist/esm/gux-popover-beta.entry.js +1 -1
  227. package/dist/esm/gux-popover-list-beta.entry.js +1 -1
  228. package/dist/esm/gux-popover-list.entry.js +1 -1
  229. package/dist/esm/gux-prompt-input-beta.entry.js +1 -1
  230. package/dist/esm/gux-radial-loading.entry.js +1 -1
  231. package/dist/esm/gux-radial-progress.entry.js +1 -1
  232. package/dist/esm/gux-rating.entry.js +1 -1
  233. package/dist/esm/gux-rich-highlight-list-item.entry.js +1 -1
  234. package/dist/esm/gux-rich-style-list-item_3.entry.js +1 -1
  235. package/dist/esm/gux-rich-text-editor-action-link.entry.js +1 -1
  236. package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +1 -1
  237. package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +1 -1
  238. package/dist/esm/gux-rich-text-editor-action.entry.js +1 -1
  239. package/dist/esm/gux-rich-text-editor-beta.entry.js +1 -1
  240. package/dist/esm/gux-rich-text-editor-list.entry.js +1 -1
  241. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  242. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  243. package/dist/esm/gux-selector-card-beta.entry.js +1 -1
  244. package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
  245. package/dist/esm/gux-side-panel-beta.entry.js +1 -1
  246. package/dist/esm/gux-side-panel-header-mini.entry.js +1 -1
  247. package/dist/esm/gux-side-panel-header.entry.js +1 -1
  248. package/dist/esm/gux-side-panel-heading.entry.js +1 -1
  249. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  250. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  251. package/dist/esm/gux-sort-control.entry.js +1 -1
  252. package/dist/esm/gux-status-indicator-beta.entry.js +1 -1
  253. package/dist/esm/gux-step-title.entry.js +1 -1
  254. package/dist/esm/gux-step.entry.js +1 -1
  255. package/dist/esm/gux-stepper-beta.entry.js +1 -1
  256. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  257. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  258. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  259. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  260. package/dist/esm/gux-table-toolbar.entry.js +113 -21
  261. package/dist/esm/gux-table.entry.js +1 -1
  262. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  263. package/dist/esm/gux-tabs.entry.js +1 -1
  264. package/dist/esm/gux-tag.entry.js +1 -1
  265. package/dist/esm/gux-text-highlight.entry.js +1 -1
  266. package/dist/esm/gux-time-beta.entry.js +1 -1
  267. package/dist/esm/gux-time-picker.entry.js +1 -1
  268. package/dist/esm/gux-time-zone-beta.entry.js +1 -1
  269. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  270. package/dist/esm/gux-toast.entry.js +1 -1
  271. package/dist/esm/gux-toggle.entry.js +1 -1
  272. package/dist/esm/gux-tooltip-base-beta_2.entry.js +1 -1
  273. package/dist/esm/gux-tooltip-pointer-beta.entry.js +1 -1
  274. package/dist/esm/gux-tooltip_2.entry.js +1 -1
  275. package/dist/esm/gux-tree-beta.entry.js +1 -1
  276. package/dist/esm/gux-tree-multi-beta.entry.js +1 -1
  277. package/dist/esm/index-CW7z6RPd.js +4 -4
  278. package/dist/esm/loader.js +1 -1
  279. package/dist/esm/{usage-B4kgQ9Nr.js → usage-DJF3J0o5.js} +1 -1
  280. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  281. package/dist/genesys-webcomponents/{p-8cab8762.entry.js → p-01f98190.entry.js} +1 -1
  282. package/dist/genesys-webcomponents/{p-0e5b18cf.entry.js → p-029991ef.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-6c88d192.entry.js → p-075ae898.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/{p-c80d33e6.entry.js → p-0d656a4a.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/{p-b169623a.entry.js → p-0d788313.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-1b5a6c37.entry.js → p-0d7ff126.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-4d378b2a.entry.js → p-0d91c408.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-731b06b9.entry.js → p-0f67c827.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-72befa32.entry.js → p-106c244e.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/{p-43a2d828.entry.js → p-16670266.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/{p-1fcc029e.entry.js → p-1b0ea6db.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-f3c00d67.entry.js → p-1e4e1dbe.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-aa4f3b97.entry.js → p-1ffe5ce8.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-7258d410.entry.js → p-25bdf930.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-9c472429.entry.js → p-2642c41b.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-6267b6c1.entry.js → p-27d8c83a.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-497644b2.entry.js → p-286d0db1.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-eea80538.entry.js → p-2c3b6935.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-30e54d02.entry.js → p-36fd77ac.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-432ad8da.entry.js → p-37cba21e.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/{p-767996c0.entry.js → p-39c520ad.entry.js} +1 -1
  302. package/dist/genesys-webcomponents/{p-8ed20b4a.entry.js → p-3d817d8c.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-1c63f28f.entry.js → p-3edea9a5.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-cde048fc.entry.js → p-400a35b8.entry.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-44d4c8bc.entry.js → p-41f99975.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-ceca5062.entry.js → p-4208fd7b.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/p-4411aab6.entry.js +1 -0
  308. package/dist/genesys-webcomponents/{p-cc8a145e.entry.js → p-4524116b.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-15d4db8f.entry.js → p-45485bb7.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-16364161.entry.js → p-4584e55c.entry.js} +1 -1
  311. package/dist/genesys-webcomponents/{p-0bd22052.entry.js → p-4690a96a.entry.js} +1 -1
  312. package/dist/genesys-webcomponents/{p-a8c7589f.entry.js → p-48037bcf.entry.js} +1 -1
  313. package/dist/genesys-webcomponents/{p-ce7a79cd.entry.js → p-496d9e79.entry.js} +1 -1
  314. package/dist/genesys-webcomponents/p-4bf1d492.entry.js +1 -0
  315. package/dist/genesys-webcomponents/{p-cd4213cb.entry.js → p-4c053a50.entry.js} +1 -1
  316. package/dist/genesys-webcomponents/{p-78353cd1.entry.js → p-4e4e77c1.entry.js} +1 -1
  317. package/dist/genesys-webcomponents/{p-f1062b33.entry.js → p-4fb8d5ed.entry.js} +1 -1
  318. package/dist/genesys-webcomponents/{p-be4b0fdc.entry.js → p-51109833.entry.js} +1 -1
  319. package/dist/genesys-webcomponents/{p-0e1a6ae6.entry.js → p-53ee28c2.entry.js} +1 -1
  320. package/dist/genesys-webcomponents/{p-2aba3194.entry.js → p-54afd51e.entry.js} +1 -1
  321. package/dist/genesys-webcomponents/{p-237c096d.entry.js → p-5a13a136.entry.js} +1 -1
  322. package/dist/genesys-webcomponents/{p-46d50848.entry.js → p-5a8507d7.entry.js} +1 -1
  323. package/dist/genesys-webcomponents/{p-5b204003.entry.js → p-5b4dfbe7.entry.js} +1 -1
  324. package/dist/genesys-webcomponents/{p-0da9dc6b.entry.js → p-5eda5c95.entry.js} +1 -1
  325. package/dist/genesys-webcomponents/{p-133109cb.entry.js → p-6040abe1.entry.js} +1 -1
  326. package/dist/genesys-webcomponents/{p-be97e36b.entry.js → p-6556b850.entry.js} +1 -1
  327. package/dist/genesys-webcomponents/{p-99796439.entry.js → p-6645986a.entry.js} +1 -1
  328. package/dist/genesys-webcomponents/{p-33353044.entry.js → p-67b9d863.entry.js} +1 -1
  329. package/dist/genesys-webcomponents/{p-89f16217.entry.js → p-6945d8c3.entry.js} +1 -1
  330. package/dist/genesys-webcomponents/{p-9c1d6c35.entry.js → p-6a0315df.entry.js} +1 -1
  331. package/dist/genesys-webcomponents/{p-d41e8d7b.entry.js → p-6afe497d.entry.js} +1 -1
  332. package/dist/genesys-webcomponents/{p-890bb42c.entry.js → p-6ccebdf8.entry.js} +1 -1
  333. package/dist/genesys-webcomponents/{p-f1d66773.entry.js → p-6d3dd715.entry.js} +1 -1
  334. package/dist/genesys-webcomponents/p-6fd48b45.entry.js +1 -0
  335. package/dist/genesys-webcomponents/{p-1c4fc0a3.entry.js → p-725c31e1.entry.js} +1 -1
  336. package/dist/genesys-webcomponents/{p-ace1b87f.entry.js → p-75ad3fc5.entry.js} +1 -1
  337. package/dist/genesys-webcomponents/{p-7e0b44f5.entry.js → p-7630c024.entry.js} +1 -1
  338. package/dist/genesys-webcomponents/{p-15f8ac18.entry.js → p-7762cd54.entry.js} +1 -1
  339. package/dist/genesys-webcomponents/{p-b20fa7d8.entry.js → p-77a06243.entry.js} +1 -1
  340. package/dist/genesys-webcomponents/{p-a0203136.entry.js → p-78ff1663.entry.js} +1 -1
  341. package/dist/genesys-webcomponents/{p-4f383dbd.entry.js → p-7b0d5f09.entry.js} +1 -1
  342. package/dist/genesys-webcomponents/{p-bba9b9a7.entry.js → p-7ce0e0e3.entry.js} +1 -1
  343. package/dist/genesys-webcomponents/{p-84ce02a6.entry.js → p-7dad57ed.entry.js} +1 -1
  344. package/dist/genesys-webcomponents/p-7eed5ea6.entry.js +1 -0
  345. package/dist/genesys-webcomponents/{p-4e7909f6.entry.js → p-7f8e1d2e.entry.js} +1 -1
  346. package/dist/genesys-webcomponents/{p-5002dafa.entry.js → p-81287577.entry.js} +1 -1
  347. package/dist/genesys-webcomponents/{p-787e72bb.entry.js → p-83cc0500.entry.js} +1 -1
  348. package/dist/genesys-webcomponents/{p-728e1246.entry.js → p-8417ccac.entry.js} +1 -1
  349. package/dist/genesys-webcomponents/{p-897b8b5e.entry.js → p-841c6bf2.entry.js} +1 -1
  350. package/dist/genesys-webcomponents/{p-8447936b.entry.js → p-856e8213.entry.js} +1 -1
  351. package/dist/genesys-webcomponents/{p-83c6041e.entry.js → p-85e9ada1.entry.js} +1 -1
  352. package/dist/genesys-webcomponents/{p-1c209c07.entry.js → p-86a6bd80.entry.js} +1 -1
  353. package/dist/genesys-webcomponents/p-8abd4979.entry.js +1 -0
  354. package/dist/genesys-webcomponents/{p-7d82ab6a.entry.js → p-8e2d53c8.entry.js} +1 -1
  355. package/dist/genesys-webcomponents/{p-0e100e54.entry.js → p-91b69e9e.entry.js} +1 -1
  356. package/dist/genesys-webcomponents/{p-88e52f01.entry.js → p-92408ec1.entry.js} +1 -1
  357. package/dist/genesys-webcomponents/{p-9fd5598e.entry.js → p-94a45dd4.entry.js} +1 -1
  358. package/dist/genesys-webcomponents/{p-2132db27.entry.js → p-9862fdd0.entry.js} +1 -1
  359. package/dist/genesys-webcomponents/{p-7ef7ceca.entry.js → p-99a7a75b.entry.js} +1 -1
  360. package/dist/genesys-webcomponents/{p-aa81a9d4.entry.js → p-9a8b2e87.entry.js} +1 -1
  361. package/dist/genesys-webcomponents/{p-2555790c.entry.js → p-9ab6145e.entry.js} +1 -1
  362. package/dist/genesys-webcomponents/{p-B4kgQ9Nr.js → p-DJF3J0o5.js} +1 -1
  363. package/dist/genesys-webcomponents/{p-37ecee7d.entry.js → p-a2586e0c.entry.js} +1 -1
  364. package/dist/genesys-webcomponents/{p-b9d26ed8.entry.js → p-a4ecc44a.entry.js} +1 -1
  365. package/dist/genesys-webcomponents/{p-0af5c94f.entry.js → p-a52c9379.entry.js} +1 -1
  366. package/dist/genesys-webcomponents/{p-a59ed3bc.entry.js → p-a965cad6.entry.js} +1 -1
  367. package/dist/genesys-webcomponents/{p-120de1fa.entry.js → p-aa8a7125.entry.js} +1 -1
  368. package/dist/genesys-webcomponents/{p-ffa6ceb8.entry.js → p-ab783b85.entry.js} +1 -1
  369. package/dist/genesys-webcomponents/{p-abcedd46.entry.js → p-ad6473e9.entry.js} +1 -1
  370. package/dist/genesys-webcomponents/{p-1334a301.entry.js → p-af7932c7.entry.js} +1 -1
  371. package/dist/genesys-webcomponents/{p-1d24b125.entry.js → p-b214f2dd.entry.js} +1 -1
  372. package/dist/genesys-webcomponents/{p-a11fe2f9.entry.js → p-b250e52b.entry.js} +1 -1
  373. package/dist/genesys-webcomponents/{p-e306e8d6.entry.js → p-b365228d.entry.js} +1 -1
  374. package/dist/genesys-webcomponents/{p-9bdb890c.entry.js → p-b5fbeed6.entry.js} +1 -1
  375. package/dist/genesys-webcomponents/{p-b9d337d1.entry.js → p-b7bae5a8.entry.js} +1 -1
  376. package/dist/genesys-webcomponents/{p-4f0a3e20.entry.js → p-ba6c1a01.entry.js} +1 -1
  377. package/dist/genesys-webcomponents/{p-9bca1c25.entry.js → p-bafed36d.entry.js} +1 -1
  378. package/dist/genesys-webcomponents/{p-942e06ca.entry.js → p-c03e2363.entry.js} +1 -1
  379. package/dist/genesys-webcomponents/{p-e334fd38.entry.js → p-c28eebe8.entry.js} +1 -1
  380. package/dist/genesys-webcomponents/{p-c971fedc.entry.js → p-c6cad9a7.entry.js} +1 -1
  381. package/dist/genesys-webcomponents/{p-dfe400b8.entry.js → p-c6dc7c7a.entry.js} +1 -1
  382. package/dist/genesys-webcomponents/{p-73876840.entry.js → p-c763ad2f.entry.js} +1 -1
  383. package/dist/genesys-webcomponents/{p-ca8ba231.entry.js → p-c85554e7.entry.js} +1 -1
  384. package/dist/genesys-webcomponents/{p-1382b36b.entry.js → p-c902f718.entry.js} +1 -1
  385. package/dist/genesys-webcomponents/{p-50b4ec1d.entry.js → p-cc099c88.entry.js} +1 -1
  386. package/dist/genesys-webcomponents/{p-ea19089e.entry.js → p-ce63dfa7.entry.js} +1 -1
  387. package/dist/genesys-webcomponents/{p-f193f0cb.entry.js → p-cefa3c3d.entry.js} +1 -1
  388. package/dist/genesys-webcomponents/{p-9551c1d9.entry.js → p-cf85f4f0.entry.js} +1 -1
  389. package/dist/genesys-webcomponents/{p-bf7be283.entry.js → p-cff06e47.entry.js} +1 -1
  390. package/dist/genesys-webcomponents/{p-27d61bb5.entry.js → p-d3986f32.entry.js} +1 -1
  391. package/dist/genesys-webcomponents/p-da9461bd.entry.js +1 -0
  392. package/dist/genesys-webcomponents/{p-4bd52c8b.entry.js → p-db55c972.entry.js} +1 -1
  393. package/dist/genesys-webcomponents/{p-027018b5.entry.js → p-db88a3f9.entry.js} +1 -1
  394. package/dist/genesys-webcomponents/{p-82bff41c.entry.js → p-dcfc7553.entry.js} +1 -1
  395. package/dist/genesys-webcomponents/{p-f6eb264d.entry.js → p-deb38c3f.entry.js} +1 -1
  396. package/dist/genesys-webcomponents/{p-5f8d5c66.entry.js → p-df2c159f.entry.js} +1 -1
  397. package/dist/genesys-webcomponents/{p-ab2ee890.entry.js → p-e050f688.entry.js} +1 -1
  398. package/dist/genesys-webcomponents/{p-b1fd2bb0.entry.js → p-e05aa050.entry.js} +1 -1
  399. package/dist/genesys-webcomponents/{p-86521b6e.entry.js → p-e1ebbb4f.entry.js} +1 -1
  400. package/dist/genesys-webcomponents/{p-e990737d.entry.js → p-eab4291b.entry.js} +1 -1
  401. package/dist/genesys-webcomponents/{p-e23be193.entry.js → p-eca4b4f2.entry.js} +1 -1
  402. package/dist/genesys-webcomponents/{p-89f4846c.entry.js → p-efca97d3.entry.js} +1 -1
  403. package/dist/genesys-webcomponents/{p-4b82bc96.entry.js → p-f0d4249d.entry.js} +1 -1
  404. package/dist/genesys-webcomponents/{p-a07cd048.entry.js → p-f11d9759.entry.js} +1 -1
  405. package/dist/genesys-webcomponents/{p-57082186.entry.js → p-f3a79ccf.entry.js} +1 -1
  406. package/dist/genesys-webcomponents/{p-f4733950.entry.js → p-f49bc29a.entry.js} +1 -1
  407. package/dist/genesys-webcomponents/{p-10d1efc7.entry.js → p-f7268a23.entry.js} +1 -1
  408. package/dist/genesys-webcomponents/{p-d6484b1d.entry.js → p-f7c11cc6.entry.js} +1 -1
  409. package/dist/genesys-webcomponents/{p-0c407b5f.entry.js → p-f7d46264.entry.js} +1 -1
  410. package/dist/genesys-webcomponents/{p-c7365387.entry.js → p-f9cb0e1a.entry.js} +1 -1
  411. package/dist/genesys-webcomponents/{p-2c09c9a9.entry.js → p-fa515d94.entry.js} +1 -1
  412. package/dist/genesys-webcomponents/{p-b4fc09b1.entry.js → p-fea69e85.entry.js} +1 -1
  413. package/dist/genesys-webcomponents/{p-5d42f638.entry.js → p-ff374fc5.entry.js} +1 -1
  414. package/dist/genesys-webcomponents/{p-7cdf3bf3.entry.js → p-ffaaf6b7.entry.js} +1 -1
  415. package/dist/stencil-wrapper.js +1 -1
  416. package/dist/types/components/legacy/gux-pagination-legacy/gux-pagination.types.d.ts +1 -1
  417. package/dist/types/components/stable/gux-pagination/gux-pagination.types.d.ts +1 -1
  418. package/dist/types/components/stable/gux-table-toolbar/gux-table-toolbar.d.ts +4 -5
  419. package/dist/types/stencil-wrapper.d.ts +1 -1
  420. package/dist/types/utils/dom/slot-cache.d.ts +105 -0
  421. package/dist/types/utils/function/debounce.d.ts +45 -0
  422. package/package.json +1 -1
  423. package/dist/genesys-webcomponents/p-1f0ba607.entry.js +0 -1
  424. package/dist/genesys-webcomponents/p-62d2a2ea.entry.js +0 -1
  425. package/dist/genesys-webcomponents/p-6cbaceab.entry.js +0 -1
  426. package/dist/genesys-webcomponents/p-91104ad6.entry.js +0 -1
  427. package/dist/genesys-webcomponents/p-9d424f64.entry.js +0 -1
  428. package/dist/genesys-webcomponents/p-c24e181a.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as e,h as t,a as r}from"./p-CW7z6RPd.js";import{O as o}from"./p-QDdMA8yS.js";import{h as i}from"./p-qzV3vtOw.js";import{t as l}from"./p-B4kgQ9Nr.js";import{G as a,a as s}from"./p-PyAf0Vv-.js";import{G as n,a as f}from"./p-BmJEQySK.js";import{g as h,a as d,v as u}from"./p-7Jfa0k54.js";import{p as c}from"./p-PYfNAK8p.js";import{o as g}from"./p-De1NnCmO.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";const m=class{constructor(t){e(this,t),this.indicatorMark="required",this.computedLabelPosition="above",this.hasError=!1,this.hasHelp=!1,this.required=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=i(this.root,"error"),this.hasHelp=i(this.root,"help")}handleKeyup(e){var t,r;switch(e.key){case"Tab":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));break;case"Shift":break;default:this.input.matches(":focus-visible")&&(null===(r=this.labelInfo)||void 0===r||r.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=i(this.root,"error"),this.hasHelp=i(this.root,"help"),this.labelInfo=this.root.querySelector("[slot=label-info]"),l(this.root,{variant:this.variant})}connectedCallback(){this.hasError=i(this.root,"error"),this.hasHelp=i(this.root,"help")}disconnectedCallback(){this.requiredObserver&&this.requiredObserver.disconnect()}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=h(this.label,this.labelPosition)}setInput(){this.input=d(this.root,'input[type="file"][slot="input"]'),c(this.input),this.required=this.input.required,this.requiredObserver=g(this.input,(e=>{this.required=e})),u(this.root,this.input)}get variant(){return`fileInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}render(){return t(f,{key:"946ca3ed713bc301e03b3f697b2d10ff9ec8d29d",labelPosition:this.computedLabelPosition},t(n,{key:"3121543962f5d5a9cd9eb4064a1278832a315479",position:this.computedLabelPosition,required:this.required},t("slot",{key:"4e108ee2dc0a2797a26093f97a94f1104ef28855",name:"label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"a803956c31eb0668a36c2d1ab439b4488cfa10ea",variant:this.indicatorMark,required:this.required}),t("slot",{key:"600042e3437bb2bd24daa44b2ec11b79d7a9e6aa",name:"label-info"})),t("div",{key:"ce797d4dbb627eeac298d4df19bffdafb738f27a",class:"gux-input-and-error-container"},t("slot",{key:"776c62619f8e8efb38219e6bc41e328338c1c850",name:"input",onSlotchange:()=>this.setInput()}),t(a,{key:"01eef6540004541b3afc6d536fd02a8384246846",show:this.hasError},t("slot",{key:"e68ea6a90e777ff43f519c83f520020318fe76e0",name:"error"})),t(s,{key:"b712e097abf6c7ab98fc7a2794bdfa1a0ba1dfb5",show:!this.hasError&&this.hasHelp},t("slot",{key:"98cd41b98056f9c9d04d29e33af0c810ebd4e9fd",name:"help"}))))}get root(){return r(this)}};(function(e,t,r,o){var i,l=arguments.length,a=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(l<3?i(a):l>3?i(t,r,a):i(t,r))||a);l>3&&a&&Object.defineProperty(t,r,a)})([o({childList:!0,subtree:!0})],m.prototype,"onMutation",null),m.style=".gux-form-field-container{display:flex;flex-direction:column}.gux-form-field-container.gux-beside{flex-direction:row}.gux-character-counter{display:grid;grid-template-rows:auto auto auto;grid-template-columns:1fr 1fr}.gux-character-counter :nth-child(1){grid-row:1/2;grid-column:2/3}.gux-character-counter :nth-child(2){grid-row:1/2;grid-column:1/2}.gux-character-counter :nth-child(3){grid-row:2/3;grid-column:1/-1}.gux-character-counter :nth-child(4){grid-row:3/4;grid-column:1/-1}.gux-character-counter.gux-beside{grid-template-columns:min-content 1fr}.gux-character-counter.gux-beside :nth-child(1){grid-row:1/2;grid-column:1/-1}.gux-character-counter.gux-beside :nth-child(2){grid-row:2/3;grid-column:1/2}.gux-character-counter.gux-beside :nth-child(3){grid-row:2/3;grid-column:2/3}.gux-character-counter.gux-beside :nth-child(4){grid-row:3/4;grid-column:1/-1}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(label){min-inline-size:0}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1}";export{m as gux_form_field_file}
1
+ import{r as e,h as t,a as r}from"./p-CW7z6RPd.js";import{O as o}from"./p-QDdMA8yS.js";import{h as i}from"./p-qzV3vtOw.js";import{t as l}from"./p-DJF3J0o5.js";import{G as a,a as s}from"./p-PyAf0Vv-.js";import{G as n,a as f}from"./p-BmJEQySK.js";import{g as h,a as d,v as u}from"./p-7Jfa0k54.js";import{p as c}from"./p-PYfNAK8p.js";import{o as g}from"./p-De1NnCmO.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";const m=class{constructor(t){e(this,t),this.indicatorMark="required",this.computedLabelPosition="above",this.hasError=!1,this.hasHelp=!1,this.required=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=i(this.root,"error"),this.hasHelp=i(this.root,"help")}handleKeyup(e){var t,r;switch(e.key){case"Tab":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));break;case"Shift":break;default:this.input.matches(":focus-visible")&&(null===(r=this.labelInfo)||void 0===r||r.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=i(this.root,"error"),this.hasHelp=i(this.root,"help"),this.labelInfo=this.root.querySelector("[slot=label-info]"),l(this.root,{variant:this.variant})}connectedCallback(){this.hasError=i(this.root,"error"),this.hasHelp=i(this.root,"help")}disconnectedCallback(){this.requiredObserver&&this.requiredObserver.disconnect()}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=h(this.label,this.labelPosition)}setInput(){this.input=d(this.root,'input[type="file"][slot="input"]'),c(this.input),this.required=this.input.required,this.requiredObserver=g(this.input,(e=>{this.required=e})),u(this.root,this.input)}get variant(){return`fileInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}render(){return t(f,{key:"946ca3ed713bc301e03b3f697b2d10ff9ec8d29d",labelPosition:this.computedLabelPosition},t(n,{key:"3121543962f5d5a9cd9eb4064a1278832a315479",position:this.computedLabelPosition,required:this.required},t("slot",{key:"4e108ee2dc0a2797a26093f97a94f1104ef28855",name:"label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"a803956c31eb0668a36c2d1ab439b4488cfa10ea",variant:this.indicatorMark,required:this.required}),t("slot",{key:"600042e3437bb2bd24daa44b2ec11b79d7a9e6aa",name:"label-info"})),t("div",{key:"ce797d4dbb627eeac298d4df19bffdafb738f27a",class:"gux-input-and-error-container"},t("slot",{key:"776c62619f8e8efb38219e6bc41e328338c1c850",name:"input",onSlotchange:()=>this.setInput()}),t(a,{key:"01eef6540004541b3afc6d536fd02a8384246846",show:this.hasError},t("slot",{key:"e68ea6a90e777ff43f519c83f520020318fe76e0",name:"error"})),t(s,{key:"b712e097abf6c7ab98fc7a2794bdfa1a0ba1dfb5",show:!this.hasError&&this.hasHelp},t("slot",{key:"98cd41b98056f9c9d04d29e33af0c810ebd4e9fd",name:"help"}))))}get root(){return r(this)}};(function(e,t,r,o){var i,l=arguments.length,a=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(l<3?i(a):l>3?i(t,r,a):i(t,r))||a);l>3&&a&&Object.defineProperty(t,r,a)})([o({childList:!0,subtree:!0})],m.prototype,"onMutation",null),m.style=".gux-form-field-container{display:flex;flex-direction:column}.gux-form-field-container.gux-beside{flex-direction:row}.gux-character-counter{display:grid;grid-template-rows:auto auto auto;grid-template-columns:1fr 1fr}.gux-character-counter :nth-child(1){grid-row:1/2;grid-column:2/3}.gux-character-counter :nth-child(2){grid-row:1/2;grid-column:1/2}.gux-character-counter :nth-child(3){grid-row:2/3;grid-column:1/-1}.gux-character-counter :nth-child(4){grid-row:3/4;grid-column:1/-1}.gux-character-counter.gux-beside{grid-template-columns:min-content 1fr}.gux-character-counter.gux-beside :nth-child(1){grid-row:1/2;grid-column:1/-1}.gux-character-counter.gux-beside :nth-child(2){grid-row:2/3;grid-column:1/2}.gux-character-counter.gux-beside :nth-child(3){grid-row:2/3;grid-column:2/3}.gux-character-counter.gux-beside :nth-child(4){grid-row:3/4;grid-column:1/-1}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(label){min-inline-size:0}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1}";export{m as gux_form_field_file}
@@ -1 +1 @@
1
- import{r as t,c as i,d as e,h as r,a as n}from"./p-CW7z6RPd.js";import{O as o}from"./p-AdM1Un4y.js";import{h as s}from"./p-qzV3vtOw.js";import{t as a}from"./p-B4kgQ9Nr.js";import{t as d,g as h}from"./p-ddfteogt.js";import{b as l}from"./p-DYtJNWnZ.js";import{a as c}from"./p-Bg4q97BS.js";import{O as u}from"./p-QDdMA8yS.js";import"./p-DCZG2J0G.js";import"./p-Cd4R0amv.js";var g=function(t,i,e,r){var n,o=arguments.length,s=o<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(i,e,s):n(i,e))||s);return o>3&&s&&Object.defineProperty(i,e,s),s};const x=class{constructor(e){t(this,e),this.guxToggleAction=i(this,"guxToggleAction",7),this.disabled=!1,this.typographicalEmphasisActions=[],this.textStylingActions=[],this.listsAndIndentationActions=[],this.insertingActions=[],this.hasToolbar=!1}checkResponsiveLayout(){e((()=>{this.handleOverflow(),this.getHiddenActions()}))}onMutation(){this.hasToolbar=this.hasToolbarChildren()}async componentWillLoad(){a(this.root),this.i18n=await l(this.root,d),this.hasToolbar=this.hasToolbarChildren()}componentDidLoad(){c((()=>{this.checkResponsiveLayout()}))}componentDidUpdate(){this.handleOverflow()}isOverFlowing(){var t;const i=null===(t=this.root)||void 0===t?void 0:t.shadowRoot.querySelector(".gux-rich-text-editor-toolbar-container");return Array.from(i.children).filter((t=>!t.classList.contains("gux-hidden"))).reduce(((t,i)=>t+i.clientWidth),0)>i.clientWidth}handleOverflow(){const t=Array.from(this.root.querySelectorAll("gux-rich-text-editor-action-group"));for(;this.isOverFlowing();){let i=!1;for(let e=t.length-1;e>=0;e--)if(!t[e].classList.contains("gux-hidden")){t[e].classList.add("gux-hidden"),i=!0;break}if(!i)break}for(const i of t)if(i.classList.contains("gux-hidden")&&(i.classList.remove("gux-hidden"),this.isOverFlowing())){i.classList.add("gux-hidden");break}}getHiddenActions(){this.typographicalEmphasisActions=h(this.root,'gux-rich-text-editor-action-group[slot="typographical-emphasis"]',"gux-hidden"),this.listsAndIndentationActions=h(this.root,'gux-rich-text-editor-action-group[slot="lists-indentation"]',"gux-hidden"),this.textStylingActions=h(this.root,'gux-rich-text-editor-action-group[slot="text-styling"]',"gux-hidden"),this.insertingActions=h(this.root,'gux-rich-text-editor-action-group[slot="inserting"]',"gux-hidden")}getAllActions(){return[...this.typographicalEmphasisActions,...this.textStylingActions,...this.listsAndIndentationActions,...this.insertingActions]}categorizeActions(){const t=[],i={richStyle:[],highlight:[],other:[]},e=[],r=[];return this.typographicalEmphasisActions.forEach((i=>t.push(i))),this.textStylingActions.forEach((t=>{t.action.startsWith("rich-style-")?i.richStyle.push({action:t.action.slice(11),disabled:t.disabled}):t.action.startsWith("highlight-")?i.highlight.push({action:t.action.slice(10),disabled:t.disabled}):i.other.push(t)})),this.listsAndIndentationActions.forEach((t=>e.push(t))),this.insertingActions.forEach((t=>r.push(t))),{typographicalEmphasis:t,textStyling:i,listsAndIndentation:e,insertingActions:r}}renderListItems(t,i=!1){return t.map(((t,e)=>{const n=t.action.replace(/<\/?[^>]+(>|$)/g,"");return r("gux-rich-style-list-item",Object.assign({onClick:()=>this.guxToggleAction.emit(n),key:e,value:n,disabled:t.disabled},i?{innerHTML:t.action}:{}),!i&&(this.i18n(n)||n))}))}renderSubList(t,i,e=!1){if(i.length>0){const n=i.every((t=>t.disabled));return r("gux-rich-text-editor-sub-list",{label:this.i18n(t),disabled:n},this.renderListItems(i,e))}}renderHighlightSubList(t){if(t.length>0){const i=t.every((t=>t.disabled));return r("gux-rich-text-editor-sub-list",{label:this.i18n("textHighlight"),disabled:i},this.renderListItems(t),r("gux-rich-style-list-item",{onClick:()=>this.guxToggleAction.emit("noHighlightAction"),value:"noHighlight",disabled:i},r("gux-truncate",{"max-lines":1},this.i18n("noHighlight"))))}}renderTextEditorMenu(){if(this.getAllActions().length>0){const{typographicalEmphasis:t,textStyling:i,listsAndIndentation:e,insertingActions:n}=this.categorizeActions();return r("gux-rich-text-editor-menu",null,this.renderListItems(t),this.renderSubList("richStyle",i.richStyle,!0),this.renderHighlightSubList(i.highlight),this.renderListItems(i.other),this.renderListItems(e),this.renderListItems(n))}}renderSlot(t,i){return s(this.root,t)?r("div",{class:i},r("slot",{name:t})):null}renderTypographicalEmphasis(){return this.renderSlot("typographical-emphasis","gux-typographical-emphasis-container")}renderTextStyling(){return this.renderSlot("text-styling","gux-text-styling-container")}renderListsIndentation(){return this.renderSlot("lists-indentation","gux-lists-indentation-container")}renderInserting(){return this.renderSlot("inserting","gux-inserting-container")}renderGlobalAction(){return this.renderSlot("global-action","gux-global-action-container")}hasToolbarChildren(){return[this.renderTypographicalEmphasis(),this.renderTextStyling(),this.renderListsIndentation(),this.renderInserting(),this.renderTextEditorMenu(),this.renderGlobalAction()].some((t=>null!=t))}render(){return r("div",{key:"f896d455cc3fb5e09d352f8fd39cb2876a5c7343",class:{"gux-rich-text-editor-container":!0,"gux-disabled":this.disabled,"gux-toolbar-hidden":!this.hasToolbar}},r("div",{key:"c9c993a59651466347834e377a6c8eff23f3ea49",class:"gux-rich-text-editor-toolbar-container"},this.renderTypographicalEmphasis(),this.renderTextStyling(),this.renderListsIndentation(),this.renderInserting(),this.renderTextEditorMenu(),this.renderGlobalAction()),r("slot",{key:"626046400b40a647905802ec207e06c6874eeb78",name:"editor"}))}get root(){return n(this)}};g([o()],x.prototype,"checkResponsiveLayout",null),g([u({childList:!0,subtree:!0})],x.prototype,"onMutation",null),x.style=":host{display:block}:host([style*=resize]){overflow:auto;resize:inherit}.gux-rich-text-editor-container{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--gse-ui-rte-innerContainer-gap);inline-size:100%;max-inline-size:100%;block-size:100%;max-block-size:100%;padding:var(--gse-ui-rte-padding);overflow:hidden scroll;background-color:var(--gse-ui-formControl-input-backgroundColor);border:var(--gse-ui-rte-mainContainer-default-border-width) var(--gse-ui-rte-mainContainer-default-border-color) var(--gse-ui-rte-mainContainer-default-border-style);border-radius:var(--gse-ui-rte-container-borderRadius)}.gux-rich-text-editor-container.gux-toolbar-hidden{gap:0}.gux-rich-text-editor-container .gux-rich-text-editor-toolbar-container{display:flex;flex-direction:row;justify-content:flex-start}.gux-rich-text-editor-container .gux-rich-text-editor-toolbar-container .gux-global-action-container{margin-inline-start:auto}.gux-rich-text-editor-container.gux-disabled{pointer-events:none;cursor:default;user-select:none;border:var(--gse-ui-rte-mainContainer-disabled-border-width) var(--gse-ui-rte-mainContainer-disabled-border-color) var(--gse-ui-rte-mainContainer-disabled-border-style);opacity:0.5}.gux-rich-text-editor-container:active:enabled{border:var(--gse-ui-rte-mainContainer-active-border-width) var(--gse-ui-rte-mainContainer-active-border-color) var(--gse-ui-rte-mainContainer-active-border-style)}.gux-rich-text-editor-container:focus-within:not(.gux-disabled),.gux-rich-text-editor-container:hover:not(.gux-disabled){border:var(--gse-ui-rte-mainContainer-hover-border-width) var(--gse-ui-rte-mainContainer-hover-border-color) var(--gse-ui-rte-mainContainer-hover-border-style)}.gux-rich-text-editor-container:focus-within:not(.gux-disabled){outline:var(--gse-ui-rte-mainContainer-focus-border-width) var(--gse-ui-rte-mainContainer-focus-border-color) var(--gse-ui-rte-mainContainer-focus-border-style)}";export{x as gux_rich_text_editor_beta}
1
+ import{r as t,c as i,d as e,h as r,a as n}from"./p-CW7z6RPd.js";import{O as o}from"./p-AdM1Un4y.js";import{h as s}from"./p-qzV3vtOw.js";import{t as a}from"./p-DJF3J0o5.js";import{t as d,g as h}from"./p-ddfteogt.js";import{b as l}from"./p-DYtJNWnZ.js";import{a as c}from"./p-Bg4q97BS.js";import{O as u}from"./p-QDdMA8yS.js";import"./p-DCZG2J0G.js";import"./p-Cd4R0amv.js";var g=function(t,i,e,r){var n,o=arguments.length,s=o<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(i,e,s):n(i,e))||s);return o>3&&s&&Object.defineProperty(i,e,s),s};const x=class{constructor(e){t(this,e),this.guxToggleAction=i(this,"guxToggleAction",7),this.disabled=!1,this.typographicalEmphasisActions=[],this.textStylingActions=[],this.listsAndIndentationActions=[],this.insertingActions=[],this.hasToolbar=!1}checkResponsiveLayout(){e((()=>{this.handleOverflow(),this.getHiddenActions()}))}onMutation(){this.hasToolbar=this.hasToolbarChildren()}async componentWillLoad(){a(this.root),this.i18n=await l(this.root,d),this.hasToolbar=this.hasToolbarChildren()}componentDidLoad(){c((()=>{this.checkResponsiveLayout()}))}componentDidUpdate(){this.handleOverflow()}isOverFlowing(){var t;const i=null===(t=this.root)||void 0===t?void 0:t.shadowRoot.querySelector(".gux-rich-text-editor-toolbar-container");return Array.from(i.children).filter((t=>!t.classList.contains("gux-hidden"))).reduce(((t,i)=>t+i.clientWidth),0)>i.clientWidth}handleOverflow(){const t=Array.from(this.root.querySelectorAll("gux-rich-text-editor-action-group"));for(;this.isOverFlowing();){let i=!1;for(let e=t.length-1;e>=0;e--)if(!t[e].classList.contains("gux-hidden")){t[e].classList.add("gux-hidden"),i=!0;break}if(!i)break}for(const i of t)if(i.classList.contains("gux-hidden")&&(i.classList.remove("gux-hidden"),this.isOverFlowing())){i.classList.add("gux-hidden");break}}getHiddenActions(){this.typographicalEmphasisActions=h(this.root,'gux-rich-text-editor-action-group[slot="typographical-emphasis"]',"gux-hidden"),this.listsAndIndentationActions=h(this.root,'gux-rich-text-editor-action-group[slot="lists-indentation"]',"gux-hidden"),this.textStylingActions=h(this.root,'gux-rich-text-editor-action-group[slot="text-styling"]',"gux-hidden"),this.insertingActions=h(this.root,'gux-rich-text-editor-action-group[slot="inserting"]',"gux-hidden")}getAllActions(){return[...this.typographicalEmphasisActions,...this.textStylingActions,...this.listsAndIndentationActions,...this.insertingActions]}categorizeActions(){const t=[],i={richStyle:[],highlight:[],other:[]},e=[],r=[];return this.typographicalEmphasisActions.forEach((i=>t.push(i))),this.textStylingActions.forEach((t=>{t.action.startsWith("rich-style-")?i.richStyle.push({action:t.action.slice(11),disabled:t.disabled}):t.action.startsWith("highlight-")?i.highlight.push({action:t.action.slice(10),disabled:t.disabled}):i.other.push(t)})),this.listsAndIndentationActions.forEach((t=>e.push(t))),this.insertingActions.forEach((t=>r.push(t))),{typographicalEmphasis:t,textStyling:i,listsAndIndentation:e,insertingActions:r}}renderListItems(t,i=!1){return t.map(((t,e)=>{const n=t.action.replace(/<\/?[^>]+(>|$)/g,"");return r("gux-rich-style-list-item",Object.assign({onClick:()=>this.guxToggleAction.emit(n),key:e,value:n,disabled:t.disabled},i?{innerHTML:t.action}:{}),!i&&(this.i18n(n)||n))}))}renderSubList(t,i,e=!1){if(i.length>0){const n=i.every((t=>t.disabled));return r("gux-rich-text-editor-sub-list",{label:this.i18n(t),disabled:n},this.renderListItems(i,e))}}renderHighlightSubList(t){if(t.length>0){const i=t.every((t=>t.disabled));return r("gux-rich-text-editor-sub-list",{label:this.i18n("textHighlight"),disabled:i},this.renderListItems(t),r("gux-rich-style-list-item",{onClick:()=>this.guxToggleAction.emit("noHighlightAction"),value:"noHighlight",disabled:i},r("gux-truncate",{"max-lines":1},this.i18n("noHighlight"))))}}renderTextEditorMenu(){if(this.getAllActions().length>0){const{typographicalEmphasis:t,textStyling:i,listsAndIndentation:e,insertingActions:n}=this.categorizeActions();return r("gux-rich-text-editor-menu",null,this.renderListItems(t),this.renderSubList("richStyle",i.richStyle,!0),this.renderHighlightSubList(i.highlight),this.renderListItems(i.other),this.renderListItems(e),this.renderListItems(n))}}renderSlot(t,i){return s(this.root,t)?r("div",{class:i},r("slot",{name:t})):null}renderTypographicalEmphasis(){return this.renderSlot("typographical-emphasis","gux-typographical-emphasis-container")}renderTextStyling(){return this.renderSlot("text-styling","gux-text-styling-container")}renderListsIndentation(){return this.renderSlot("lists-indentation","gux-lists-indentation-container")}renderInserting(){return this.renderSlot("inserting","gux-inserting-container")}renderGlobalAction(){return this.renderSlot("global-action","gux-global-action-container")}hasToolbarChildren(){return[this.renderTypographicalEmphasis(),this.renderTextStyling(),this.renderListsIndentation(),this.renderInserting(),this.renderTextEditorMenu(),this.renderGlobalAction()].some((t=>null!=t))}render(){return r("div",{key:"f896d455cc3fb5e09d352f8fd39cb2876a5c7343",class:{"gux-rich-text-editor-container":!0,"gux-disabled":this.disabled,"gux-toolbar-hidden":!this.hasToolbar}},r("div",{key:"c9c993a59651466347834e377a6c8eff23f3ea49",class:"gux-rich-text-editor-toolbar-container"},this.renderTypographicalEmphasis(),this.renderTextStyling(),this.renderListsIndentation(),this.renderInserting(),this.renderTextEditorMenu(),this.renderGlobalAction()),r("slot",{key:"626046400b40a647905802ec207e06c6874eeb78",name:"editor"}))}get root(){return n(this)}};g([o()],x.prototype,"checkResponsiveLayout",null),g([u({childList:!0,subtree:!0})],x.prototype,"onMutation",null),x.style=":host{display:block}:host([style*=resize]){overflow:auto;resize:inherit}.gux-rich-text-editor-container{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--gse-ui-rte-innerContainer-gap);inline-size:100%;max-inline-size:100%;block-size:100%;max-block-size:100%;padding:var(--gse-ui-rte-padding);overflow:hidden scroll;background-color:var(--gse-ui-formControl-input-backgroundColor);border:var(--gse-ui-rte-mainContainer-default-border-width) var(--gse-ui-rte-mainContainer-default-border-color) var(--gse-ui-rte-mainContainer-default-border-style);border-radius:var(--gse-ui-rte-container-borderRadius)}.gux-rich-text-editor-container.gux-toolbar-hidden{gap:0}.gux-rich-text-editor-container .gux-rich-text-editor-toolbar-container{display:flex;flex-direction:row;justify-content:flex-start}.gux-rich-text-editor-container .gux-rich-text-editor-toolbar-container .gux-global-action-container{margin-inline-start:auto}.gux-rich-text-editor-container.gux-disabled{pointer-events:none;cursor:default;user-select:none;border:var(--gse-ui-rte-mainContainer-disabled-border-width) var(--gse-ui-rte-mainContainer-disabled-border-color) var(--gse-ui-rte-mainContainer-disabled-border-style);opacity:0.5}.gux-rich-text-editor-container:active:enabled{border:var(--gse-ui-rte-mainContainer-active-border-width) var(--gse-ui-rte-mainContainer-active-border-color) var(--gse-ui-rte-mainContainer-active-border-style)}.gux-rich-text-editor-container:focus-within:not(.gux-disabled),.gux-rich-text-editor-container:hover:not(.gux-disabled){border:var(--gse-ui-rte-mainContainer-hover-border-width) var(--gse-ui-rte-mainContainer-hover-border-color) var(--gse-ui-rte-mainContainer-hover-border-style)}.gux-rich-text-editor-container:focus-within:not(.gux-disabled){outline:var(--gse-ui-rte-mainContainer-focus-border-width) var(--gse-ui-rte-mainContainer-focus-border-color) var(--gse-ui-rte-mainContainer-focus-border-style)}";export{x as gux_rich_text_editor_beta}
@@ -1 +1 @@
1
- import{r as t,h as i,H as e,a as o,f as s}from"./p-CW7z6RPd.js";import{a,c as r,o as n,f as l,s as c,h}from"./p-8w8ltg_h.js";import{r as d}from"./p-D9jKBqIb.js";import{t as u}from"./p-B4kgQ9Nr.js";import{f as p}from"./p-Cr5bTKWF.js";import{b as g}from"./p-Bg4q97BS.js";import{o as f}from"./p-Dc4kLPnc.js";import{O as m}from"./p-QDdMA8yS.js";import{O as b}from"./p-AdM1Un4y.js";import{g as v}from"./p-qCeLer2f.js";const x=class{constructor(i){t(this,i),this.pointerenterHandler=()=>this.show(),this.pointerleaveHandler=()=>this.hide(),this.focusinHandler=()=>this.show(),this.focusoutHandler=()=>this.hide(),this.forElementListeners=new Map([["pointerenter",this.pointerenterHandler],["pointerleave",this.pointerleaveHandler],["focusin",this.focusinHandler],["focusout",this.focusoutHandler]]),this.id=d("gux-tooltip"),this.placement="bottom-start",this.accent="light",this.contrast="default",this.isShown=!1}handleKeyDown(t){"Escape"===t.key&&this.isShown&&this.hide()}handlePointerenter(){this.show()}handlePointerleave(){this.hide()}handleClick(t){t.stopPropagation(),t.preventDefault()}async showTooltip(){this.show()}async hideTooltip(){this.hide()}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.cleanupUpdatePosition=a(this.forElement,this.root,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!1,ancestorResize:!0})}updatePosition(){const t=[n(12),l({fallbackAxisSideDirection:"start",crossAxis:!1}),c(),h(),f()];r(this.forElement,this.root,{placement:this.placement,strategy:"fixed",middleware:t}).then((({x:t,y:i,middlewareData:e})=>{var o;Object.assign(this.root.style,{left:`${t}px`,top:`${i}px`,visibility:(null===(o=e.hide)||void 0===o?void 0:o.referenceHidden)?"hidden":"visible"}),this.root.setAttribute("data-placement",this.placement)}))}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0,g((()=>{this.runUpdatePosition()}))}hide(){this.hideDelayTimeout=setTimeout((()=>{this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.isShown=!1}),350)}getForElement(){return this.for?p(this.root,this.for):this.root.parentElement}logForAttributeError(){this.root.isConnected&&console.error(`gux-tooltip: invalid element supplied to 'for': "${this.for}"`)}setForElement(){this.forElement=this.getForElement(),this.forElement?(this.forElement.setAttribute("aria-describedby",this.id),this.forElementListeners.forEach(((t,i)=>this.forElement.addEventListener(i,t)))):this.logForAttributeError()}disconnectForElement(){this.forElement&&(this.forElement.removeAttribute("aria-describedby"),this.forElementListeners.forEach(((t,i)=>this.forElement.removeEventListener(i,t))))}updateForElement(){this.disconnectForElement(),this.setForElement()}connectedCallback(){this.setForElement()}componentWillLoad(){u(this.root,{variant:this.placement})}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.disconnectForElement()}render(){return i(e,{key:"248f65ae8787d288dced87ca14d348f16018fdeb",id:this.id,class:{"gux-show":this.isShown},role:"tooltip"},i("div",{key:"c32861baa2b4bd436b126be7193a7182b4273741",class:{"gux-container":!0,[`gux-${this.accent}`]:!0,[`gux-contrast-${this.contrast}`]:!0},"data-placement":this.placement},i("slot",{key:"3e00b3cc6147854cd0cecdd02ecea059c406ce4b",name:"content"},i("slot",{key:"d5aa237d6d32f9efd496c110cc554099fa5b344d"}))))}get root(){return o(this)}static get watchers(){return{for:[{updateForElement:0}]}}};x.style=":host{position:fixed;z-index:var(--gse-semantic-zIndex-tooltip);display:none;inline-size:max-content;max-inline-size:var(--gse-ui-tooltip-maxWidth);border-radius:var(--gse-ui-tooltip-borderRadius);box-shadow:var(--gse-ui-tooltip-boxShadow);opacity:0}:host(.gux-show){display:block;animation-name:fade-in;animation-duration:250ms;animation-delay:350ms;animation-fill-mode:forwards}.gux-container{box-sizing:border-box;display:flex;flex-direction:row;gap:var(--gse-ui-tooltip-gap);place-content:center flex-start;padding:var(--gse-ui-tooltip-padding);font-family:var(--gse-ui-tooltip-text-fontFamily);font-size:var(--gse-ui-tooltip-text-fontSize);font-weight:var(--gse-ui-tooltip-text-fontWeight);line-height:var(--gse-ui-tooltip-text-lineHeight);color:var(--gse-ui-tooltip-light-foregroundColor);pointer-events:none;background-color:var(--gse-ui-tooltip-light-backgroundColor);border:var(--gse-ui-tooltip-light-border-width) var(--gse-ui-tooltip-light-border-style) var(--gse-ui-tooltip-light-border-color);border-radius:var(--gse-ui-tooltip-borderRadius)}.gux-container ::slotted(gux-icon){align-self:center;inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size);color:var(--gse-ui-tooltip-light-foregroundColor)}.gux-container ::slotted(*){inline-size:100%;overflow-wrap:break-word;white-space:normal}.gux-container.gux-contrast-high,.gux-container.gux-dark{color:var(--gse-ui-tooltip-dark-foregroundColor);background-color:var(--gse-ui-tooltip-dark-backgroundColor);border:var(--gse-ui-tooltip-dark-border-width) var(--gse-ui-tooltip-dark-border-style) var(--gse-ui-tooltip-dark-border-color)}.gux-container.gux-contrast-high ::slotted(gux-icon),.gux-container.gux-dark ::slotted(gux-icon){align-self:center;inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size);color:var(--gse-ui-tooltip-dark-iconColor)}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}";var w=function(t,i,e,o){var s,a=arguments.length,r=a<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,e,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(r=(a<3?s(r):a>3?s(i,e,r):s(i,e))||r);return a>3&&r&&Object.defineProperty(i,e,r),r};const y=class{constructor(i){t(this,i),this.parentFocusinHandler=()=>{var t;null===(t=this.tooltipElement)||void 0===t||t.showTooltip()},this.parentFocusoutHandler=()=>{var t;null===(t=this.tooltipElement)||void 0===t||t.hideTooltip()},this.tooltipPlacement="bottom-start",this.tooltipAccent="light",this.tooltipContrast="default"}async setShowTooltip(){var t;await(null===(t=this.tooltipElement)||void 0===t?void 0:t.showTooltip())}async setHideTooltip(){var t;await(null===(t=this.tooltipElement)||void 0===t?void 0:t.hideTooltip())}connectedCallback(){const t=this.root.parentElement;t&&(t.addEventListener("focusin",this.parentFocusinHandler),t.addEventListener("focusout",this.parentFocusoutHandler))}componentWillLoad(){u(this.root)}disconnectedCallback(){const t=this.root.parentElement;t&&(t.removeEventListener("focusin",this.parentFocusinHandler),t.removeEventListener("focusout",this.parentFocusoutHandler))}onMutation(){s(this.root)}onResize(){s(this.root)}getTooltipContent(){return v(Array.from(this.root.childNodes))||""}needsTruncation(){const t=this.root.shadowRoot.querySelector(".gux-truncate-slot-container");return(null==t?void 0:t.scrollWidth)>(null==t?void 0:t.offsetWidth)||(null==t?void 0:t.scrollHeight)>(null==t?void 0:t.offsetHeight)}renderTooltip(){return this.needsTruncation()?i("gux-tooltip",{accent:this.tooltipAccent,contrast:this.tooltipContrast,placement:this.tooltipPlacement,"aria-hidden":"true",ref:t=>this.tooltipElement=t},i("div",{slot:"content"},this.getTooltipContent())):null}render(){var t;return i("div",{key:"9ea9ec72510900d0486c14cd9902c421676861bf",class:{"gux-truncate-multi-line":Boolean(this.maxLines)}},i("span",{key:"28f06b5e99cbf2a478664a89adc4bee270ee0394",class:{"gux-overflow-hidden":this.needsTruncation(),"gux-truncate-slot-container":!0},style:{webkitLineClamp:null===(t=this.maxLines)||void 0===t?void 0:t.toString()}},i("slot",{key:"05a282c789ece309661e2e7d913da3221f647b29"})),this.renderTooltip())}get root(){return o(this)}};w([m({childList:!0,subtree:!0,characterData:!0})],y.prototype,"onMutation",null),w([b()],y.prototype,"onResize",null),y.style=":host{display:inline-block;inline-size:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:inherit}::slotted(*){display:inline}.gux-truncate-multi-line{white-space:normal}.gux-truncate-multi-line .gux-truncate-slot-container{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1}gux-tooltip{font-weight:normal;line-height:normal;text-align:start;overflow-wrap:break-word;white-space:normal}.gux-truncate-slot-container>*{display:inline}.gux-truncate-slot-container{display:block;text-overflow:ellipsis}.gux-overflow-hidden{overflow:hidden}";export{x as gux_tooltip,y as gux_truncate}
1
+ import{r as t,h as i,H as e,a as o,f as s}from"./p-CW7z6RPd.js";import{a,c as r,o as n,f as l,s as c,h}from"./p-8w8ltg_h.js";import{r as d}from"./p-D9jKBqIb.js";import{t as u}from"./p-DJF3J0o5.js";import{f as p}from"./p-Cr5bTKWF.js";import{b as g}from"./p-Bg4q97BS.js";import{o as f}from"./p-Dc4kLPnc.js";import{O as m}from"./p-QDdMA8yS.js";import{O as b}from"./p-AdM1Un4y.js";import{g as v}from"./p-qCeLer2f.js";const x=class{constructor(i){t(this,i),this.pointerenterHandler=()=>this.show(),this.pointerleaveHandler=()=>this.hide(),this.focusinHandler=()=>this.show(),this.focusoutHandler=()=>this.hide(),this.forElementListeners=new Map([["pointerenter",this.pointerenterHandler],["pointerleave",this.pointerleaveHandler],["focusin",this.focusinHandler],["focusout",this.focusoutHandler]]),this.id=d("gux-tooltip"),this.placement="bottom-start",this.accent="light",this.contrast="default",this.isShown=!1}handleKeyDown(t){"Escape"===t.key&&this.isShown&&this.hide()}handlePointerenter(){this.show()}handlePointerleave(){this.hide()}handleClick(t){t.stopPropagation(),t.preventDefault()}async showTooltip(){this.show()}async hideTooltip(){this.hide()}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.cleanupUpdatePosition=a(this.forElement,this.root,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!1,ancestorResize:!0})}updatePosition(){const t=[n(12),l({fallbackAxisSideDirection:"start",crossAxis:!1}),c(),h(),f()];r(this.forElement,this.root,{placement:this.placement,strategy:"fixed",middleware:t}).then((({x:t,y:i,middlewareData:e})=>{var o;Object.assign(this.root.style,{left:`${t}px`,top:`${i}px`,visibility:(null===(o=e.hide)||void 0===o?void 0:o.referenceHidden)?"hidden":"visible"}),this.root.setAttribute("data-placement",this.placement)}))}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0,g((()=>{this.runUpdatePosition()}))}hide(){this.hideDelayTimeout=setTimeout((()=>{this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.isShown=!1}),350)}getForElement(){return this.for?p(this.root,this.for):this.root.parentElement}logForAttributeError(){this.root.isConnected&&console.error(`gux-tooltip: invalid element supplied to 'for': "${this.for}"`)}setForElement(){this.forElement=this.getForElement(),this.forElement?(this.forElement.setAttribute("aria-describedby",this.id),this.forElementListeners.forEach(((t,i)=>this.forElement.addEventListener(i,t)))):this.logForAttributeError()}disconnectForElement(){this.forElement&&(this.forElement.removeAttribute("aria-describedby"),this.forElementListeners.forEach(((t,i)=>this.forElement.removeEventListener(i,t))))}updateForElement(){this.disconnectForElement(),this.setForElement()}connectedCallback(){this.setForElement()}componentWillLoad(){u(this.root,{variant:this.placement})}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.disconnectForElement()}render(){return i(e,{key:"248f65ae8787d288dced87ca14d348f16018fdeb",id:this.id,class:{"gux-show":this.isShown},role:"tooltip"},i("div",{key:"c32861baa2b4bd436b126be7193a7182b4273741",class:{"gux-container":!0,[`gux-${this.accent}`]:!0,[`gux-contrast-${this.contrast}`]:!0},"data-placement":this.placement},i("slot",{key:"3e00b3cc6147854cd0cecdd02ecea059c406ce4b",name:"content"},i("slot",{key:"d5aa237d6d32f9efd496c110cc554099fa5b344d"}))))}get root(){return o(this)}static get watchers(){return{for:[{updateForElement:0}]}}};x.style=":host{position:fixed;z-index:var(--gse-semantic-zIndex-tooltip);display:none;inline-size:max-content;max-inline-size:var(--gse-ui-tooltip-maxWidth);border-radius:var(--gse-ui-tooltip-borderRadius);box-shadow:var(--gse-ui-tooltip-boxShadow);opacity:0}:host(.gux-show){display:block;animation-name:fade-in;animation-duration:250ms;animation-delay:350ms;animation-fill-mode:forwards}.gux-container{box-sizing:border-box;display:flex;flex-direction:row;gap:var(--gse-ui-tooltip-gap);place-content:center flex-start;padding:var(--gse-ui-tooltip-padding);font-family:var(--gse-ui-tooltip-text-fontFamily);font-size:var(--gse-ui-tooltip-text-fontSize);font-weight:var(--gse-ui-tooltip-text-fontWeight);line-height:var(--gse-ui-tooltip-text-lineHeight);color:var(--gse-ui-tooltip-light-foregroundColor);pointer-events:none;background-color:var(--gse-ui-tooltip-light-backgroundColor);border:var(--gse-ui-tooltip-light-border-width) var(--gse-ui-tooltip-light-border-style) var(--gse-ui-tooltip-light-border-color);border-radius:var(--gse-ui-tooltip-borderRadius)}.gux-container ::slotted(gux-icon){align-self:center;inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size);color:var(--gse-ui-tooltip-light-foregroundColor)}.gux-container ::slotted(*){inline-size:100%;overflow-wrap:break-word;white-space:normal}.gux-container.gux-contrast-high,.gux-container.gux-dark{color:var(--gse-ui-tooltip-dark-foregroundColor);background-color:var(--gse-ui-tooltip-dark-backgroundColor);border:var(--gse-ui-tooltip-dark-border-width) var(--gse-ui-tooltip-dark-border-style) var(--gse-ui-tooltip-dark-border-color)}.gux-container.gux-contrast-high ::slotted(gux-icon),.gux-container.gux-dark ::slotted(gux-icon){align-self:center;inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size);color:var(--gse-ui-tooltip-dark-iconColor)}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}";var w=function(t,i,e,o){var s,a=arguments.length,r=a<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,e,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(r=(a<3?s(r):a>3?s(i,e,r):s(i,e))||r);return a>3&&r&&Object.defineProperty(i,e,r),r};const y=class{constructor(i){t(this,i),this.parentFocusinHandler=()=>{var t;null===(t=this.tooltipElement)||void 0===t||t.showTooltip()},this.parentFocusoutHandler=()=>{var t;null===(t=this.tooltipElement)||void 0===t||t.hideTooltip()},this.tooltipPlacement="bottom-start",this.tooltipAccent="light",this.tooltipContrast="default"}async setShowTooltip(){var t;await(null===(t=this.tooltipElement)||void 0===t?void 0:t.showTooltip())}async setHideTooltip(){var t;await(null===(t=this.tooltipElement)||void 0===t?void 0:t.hideTooltip())}connectedCallback(){const t=this.root.parentElement;t&&(t.addEventListener("focusin",this.parentFocusinHandler),t.addEventListener("focusout",this.parentFocusoutHandler))}componentWillLoad(){u(this.root)}disconnectedCallback(){const t=this.root.parentElement;t&&(t.removeEventListener("focusin",this.parentFocusinHandler),t.removeEventListener("focusout",this.parentFocusoutHandler))}onMutation(){s(this.root)}onResize(){s(this.root)}getTooltipContent(){return v(Array.from(this.root.childNodes))||""}needsTruncation(){const t=this.root.shadowRoot.querySelector(".gux-truncate-slot-container");return(null==t?void 0:t.scrollWidth)>(null==t?void 0:t.offsetWidth)||(null==t?void 0:t.scrollHeight)>(null==t?void 0:t.offsetHeight)}renderTooltip(){return this.needsTruncation()?i("gux-tooltip",{accent:this.tooltipAccent,contrast:this.tooltipContrast,placement:this.tooltipPlacement,"aria-hidden":"true",ref:t=>this.tooltipElement=t},i("div",{slot:"content"},this.getTooltipContent())):null}render(){var t;return i("div",{key:"9ea9ec72510900d0486c14cd9902c421676861bf",class:{"gux-truncate-multi-line":Boolean(this.maxLines)}},i("span",{key:"28f06b5e99cbf2a478664a89adc4bee270ee0394",class:{"gux-overflow-hidden":this.needsTruncation(),"gux-truncate-slot-container":!0},style:{webkitLineClamp:null===(t=this.maxLines)||void 0===t?void 0:t.toString()}},i("slot",{key:"05a282c789ece309661e2e7d913da3221f647b29"})),this.renderTooltip())}get root(){return o(this)}};w([m({childList:!0,subtree:!0,characterData:!0})],y.prototype,"onMutation",null),w([b()],y.prototype,"onResize",null),y.style=":host{display:inline-block;inline-size:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:inherit}::slotted(*){display:inline}.gux-truncate-multi-line{white-space:normal}.gux-truncate-multi-line .gux-truncate-slot-container{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1}gux-tooltip{font-weight:normal;line-height:normal;text-align:start;overflow-wrap:break-word;white-space:normal}.gux-truncate-slot-container>*{display:inline}.gux-truncate-slot-container{display:block;text-overflow:ellipsis}.gux-overflow-hidden{overflow:hidden}";export{x as gux_tooltip,y as gux_truncate}
@@ -1 +1 @@
1
- import{r as e,h as t,H as i,a as n}from"./p-CW7z6RPd.js";import{t as s}from"./p-B4kgQ9Nr.js";import{g as a}from"./p-Cd4R0amv.js";const o=class{constructor(t){e(this,t),this.size="medium",this.standalone=!1}componentWillLoad(){s(this.root,{variant:this.size+(this.standalone?"-standalone":"")})}checkBreadcrumbParent(){return!!a(".gux-breadcrumb-generation",this.root)}render(){return t(i,{key:"b023ef06cb99c9b9634992e37b201dbbb49057ee",size:this.size,standalone:this.standalone,class:{"gux-breadcrumb-link":this.checkBreadcrumbParent()}},t("slot",{key:"b814998055d82f0b4d07d4fd32a65bf2120cadb3"}))}get root(){return n(this)}};o.style=":host{padding-block:var(--gse-ui-links-inLine-padding)}:host ::slotted(a){inline-size:fit-content;font-family:var(--gse-ui-links-inLine-medium-text-fontFamily), var(--gse-semantic-theme-fontFamily-body), sans-serif;font-size:var(--gse-ui-links-inLine-medium-text-fontSize);font-weight:var(--gse-ui-links-inLine-medium-text-fontWeight);line-height:var(--gse-ui-links-inLine-medium-text-lineHeight);color:var(--gse-ui-links-default-foregroundColor) !important;border-radius:var(--gse-ui-links-focusOutline-borderRadius) !important}:host ::slotted(a:hover){color:var(--gse-ui-links-hover-foregroundColor) !important}:host ::slotted(a:active){color:var(--gse-ui-links-active-foregroundColor) !important}:host ::slotted(a:visited){color:var(--gse-ui-links-visited-foregroundColor) !important}:host ::slotted(a:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}:host([size=small]) ::slotted(a){font-family:var(--gse-ui-links-inLine-small-text-fontFamily), var(--gse-semantic-theme-fontFamily-body), sans-serif;font-size:var(--gse-ui-links-inLine-small-text-fontSize);font-weight:var(--gse-ui-links-inLine-small-text-fontWeight);line-height:var(--gse-ui-links-inLine-small-text-lineHeight)}:host([standalone]){display:block;padding-block:var(--gse-ui-links-standalone-padding)}:host([standalone]) ::slotted(a){display:flex;gap:var(--gse-ui-links-standalone-gap);align-items:center;inline-size:fit-content;font-family:var(--gse-ui-links-standalone-medium-text-fontFamily), var(--gse-semantic-theme-fontFamily-body), sans-serif;font-size:var(--gse-ui-links-standalone-medium-text-fontSize);font-weight:var(--gse-ui-links-standalone-medium-text-fontWeight);line-height:var(--gse-ui-links-standalone-medium-text-lineHeight);text-decoration:none !important}:host([standalone]) ::slotted(a:hover){font-family:var(--gse-ui-links-standalone-medium-underlinedText-fontFamily), var(--gse-semantic-theme-fontFamily-body), sans-serif;font-size:var(--gse-ui-links-standalone-medium-underlinedText-fontSize);font-weight:var(--gse-ui-links-standalone-medium-underlinedText-fontWeight);line-height:var(--gse-ui-links-standalone-medium-underlinedText-lineHeight);text-decoration:var(--gse-ui-links-standalone-medium-underlinedText-textDecoration) !important}:host([standalone]) ::slotted(a:active){text-decoration:none !important}:host([size=small][standalone]) ::slotted(a){font-family:var(--gse-ui-links-standalone-small-text-fontFamily), var(--gse-semantic-theme-fontFamily-body), sans-serif;font-size:var(--gse-ui-links-standalone-small-text-fontSize);font-weight:var(--gse-ui-links-standalone-small-text-fontWeight);line-height:var(--gse-ui-links-standalone-small-text-lineHeight)}:host([size=small][standalone]) ::slotted(a:hover){font-family:var(--gse-ui-links-standalone-small-underlinedText-fontFamily), var(--gse-semantic-theme-fontFamily-body), sans-serif;font-size:var(--gse-ui-links-standalone-small-underlinedText-fontSize);font-weight:var(--gse-ui-links-standalone-small-underlinedText-fontWeight);line-height:var(--gse-ui-links-standalone-small-underlinedText-lineHeight);text-decoration:var(--gse-ui-links-standalone-small-underlinedText-textDecoration) !important}:host([standalone][class=gux-breadcrumb-link]){padding:0}";export{o as gux_link_beta}
1
+ import{r as e,h as t,H as i,a as n}from"./p-CW7z6RPd.js";import{t as s}from"./p-DJF3J0o5.js";import{g as a}from"./p-Cd4R0amv.js";const o=class{constructor(t){e(this,t),this.size="medium",this.standalone=!1}componentWillLoad(){s(this.root,{variant:this.size+(this.standalone?"-standalone":"")})}checkBreadcrumbParent(){return!!a(".gux-breadcrumb-generation",this.root)}render(){return t(i,{key:"b023ef06cb99c9b9634992e37b201dbbb49057ee",size:this.size,standalone:this.standalone,class:{"gux-breadcrumb-link":this.checkBreadcrumbParent()}},t("slot",{key:"b814998055d82f0b4d07d4fd32a65bf2120cadb3"}))}get root(){return n(this)}};o.style=":host{padding-block:var(--gse-ui-links-inLine-padding)}:host ::slotted(a){inline-size:fit-content;font-family:var(--gse-ui-links-inLine-medium-text-fontFamily), var(--gse-semantic-theme-fontFamily-body), sans-serif;font-size:var(--gse-ui-links-inLine-medium-text-fontSize);font-weight:var(--gse-ui-links-inLine-medium-text-fontWeight);line-height:var(--gse-ui-links-inLine-medium-text-lineHeight);color:var(--gse-ui-links-default-foregroundColor) !important;border-radius:var(--gse-ui-links-focusOutline-borderRadius) !important}:host ::slotted(a:hover){color:var(--gse-ui-links-hover-foregroundColor) !important}:host ::slotted(a:active){color:var(--gse-ui-links-active-foregroundColor) !important}:host ::slotted(a:visited){color:var(--gse-ui-links-visited-foregroundColor) !important}:host ::slotted(a:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}:host([size=small]) ::slotted(a){font-family:var(--gse-ui-links-inLine-small-text-fontFamily), var(--gse-semantic-theme-fontFamily-body), sans-serif;font-size:var(--gse-ui-links-inLine-small-text-fontSize);font-weight:var(--gse-ui-links-inLine-small-text-fontWeight);line-height:var(--gse-ui-links-inLine-small-text-lineHeight)}:host([standalone]){display:block;padding-block:var(--gse-ui-links-standalone-padding)}:host([standalone]) ::slotted(a){display:flex;gap:var(--gse-ui-links-standalone-gap);align-items:center;inline-size:fit-content;font-family:var(--gse-ui-links-standalone-medium-text-fontFamily), var(--gse-semantic-theme-fontFamily-body), sans-serif;font-size:var(--gse-ui-links-standalone-medium-text-fontSize);font-weight:var(--gse-ui-links-standalone-medium-text-fontWeight);line-height:var(--gse-ui-links-standalone-medium-text-lineHeight);text-decoration:none !important}:host([standalone]) ::slotted(a:hover){font-family:var(--gse-ui-links-standalone-medium-underlinedText-fontFamily), var(--gse-semantic-theme-fontFamily-body), sans-serif;font-size:var(--gse-ui-links-standalone-medium-underlinedText-fontSize);font-weight:var(--gse-ui-links-standalone-medium-underlinedText-fontWeight);line-height:var(--gse-ui-links-standalone-medium-underlinedText-lineHeight);text-decoration:var(--gse-ui-links-standalone-medium-underlinedText-textDecoration) !important}:host([standalone]) ::slotted(a:active){text-decoration:none !important}:host([size=small][standalone]) ::slotted(a){font-family:var(--gse-ui-links-standalone-small-text-fontFamily), var(--gse-semantic-theme-fontFamily-body), sans-serif;font-size:var(--gse-ui-links-standalone-small-text-fontSize);font-weight:var(--gse-ui-links-standalone-small-text-fontWeight);line-height:var(--gse-ui-links-standalone-small-text-lineHeight)}:host([size=small][standalone]) ::slotted(a:hover){font-family:var(--gse-ui-links-standalone-small-underlinedText-fontFamily), var(--gse-semantic-theme-fontFamily-body), sans-serif;font-size:var(--gse-ui-links-standalone-small-underlinedText-fontSize);font-weight:var(--gse-ui-links-standalone-small-underlinedText-fontWeight);line-height:var(--gse-ui-links-standalone-small-underlinedText-lineHeight);text-decoration:var(--gse-ui-links-standalone-small-underlinedText-textDecoration) !important}:host([standalone][class=gux-breadcrumb-link]){padding:0}";export{o as gux_link_beta}
@@ -1 +1 @@
1
- import{r as t,h as s,a as i}from"./p-CW7z6RPd.js";import{s as r}from"./p-D8NvUiBF.js";import{t as n}from"./p-B4kgQ9Nr.js";const e=/[ +]/g,a=new Map,h=new Map;function o(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&#x2F;")}const u=class{constructor(s){t(this,s),this.strategy="start",this.dimmed=!1}componentWillLoad(){n(this.root)}render(){if(this.highlight&&this.text)switch(this.strategy){case"start":return this.renderStartsWith();case"contains":return this.renderContains();case"fuzzy":return this.renderFuzzy()}return s("span",{class:{"gux-dimmed":this.dimmed}},this.text)}renderStartsWith(){if(this.text.toLowerCase().startsWith(this.highlight.toLowerCase())){const t=this.text.substring(0,this.highlight.length),i=this.text.substring(this.highlight.length);return s("span",{class:{"gux-dimmed":this.dimmed}},s("mark",null,t),i)}return s("span",{class:{"gux-dimmed":this.dimmed}},this.text)}renderContains(){const t={highlighted:"",remaining:this.text};for(;t.remaining.toLowerCase().includes(this.highlight.toLowerCase());){const s=t.remaining.toLowerCase().indexOf(this.highlight.toLowerCase()),i=t.remaining.substring(0,s),r=t.remaining.substring(s,s+this.highlight.length);t.highlighted+=o(i)+`<mark>${o(r)}</mark>`,t.remaining=t.remaining.substring(s+r.length)}return s("span",{class:{"gux-dimmed":this.dimmed},innerHTML:t.highlighted+o(t.remaining)})}renderFuzzy(){if(function(t,s){let i=a.get(t);return i||(i=function(t){const s=t.split(e).map(r);return 0===s.length?/(?!)/:1===s.length?new RegExp(s[0],"i"):new RegExp("("+s.join(").*?(")+").*?$","i")}(t),a.set(t,i)),i.test(s)}(this.highlight,this.text)){const i=(t=this.highlight,t.split(e).map(r).map((t=>{let s=h.get(t);return s||(s=new RegExp(t,"i"),h.set(t,s)),s}))).reduce(((t,s)=>{const{0:i,index:r,input:n}=t.remaining.match(s),e=n.substring(0,r);return{highlighted:`${t.highlighted+o(e)}<mark>${o(i)}</mark>`,remaining:n.substring(r+i.length)}}),{highlighted:"",remaining:this.text});return s("span",{class:{"gux-dimmed":this.dimmed},innerHTML:i.highlighted+o(i.remaining)})}var t;return s("span",{class:{"gux-dimmed":this.dimmed}},this.text)}get root(){return i(this)}};u.style="span mark{background-color:var(--gse-ui-search-match-firstLevel-backgroundColor)}.gux-dimmed mark{background-color:var(--gse-ui-search-match-subsequentLevel-backgroundColor)}";export{u as gux_text_highlight}
1
+ import{r as t,h as s,a as i}from"./p-CW7z6RPd.js";import{s as r}from"./p-D8NvUiBF.js";import{t as n}from"./p-DJF3J0o5.js";const e=/[ +]/g,a=new Map,h=new Map;function o(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&#x2F;")}const u=class{constructor(s){t(this,s),this.strategy="start",this.dimmed=!1}componentWillLoad(){n(this.root)}render(){if(this.highlight&&this.text)switch(this.strategy){case"start":return this.renderStartsWith();case"contains":return this.renderContains();case"fuzzy":return this.renderFuzzy()}return s("span",{class:{"gux-dimmed":this.dimmed}},this.text)}renderStartsWith(){if(this.text.toLowerCase().startsWith(this.highlight.toLowerCase())){const t=this.text.substring(0,this.highlight.length),i=this.text.substring(this.highlight.length);return s("span",{class:{"gux-dimmed":this.dimmed}},s("mark",null,t),i)}return s("span",{class:{"gux-dimmed":this.dimmed}},this.text)}renderContains(){const t={highlighted:"",remaining:this.text};for(;t.remaining.toLowerCase().includes(this.highlight.toLowerCase());){const s=t.remaining.toLowerCase().indexOf(this.highlight.toLowerCase()),i=t.remaining.substring(0,s),r=t.remaining.substring(s,s+this.highlight.length);t.highlighted+=o(i)+`<mark>${o(r)}</mark>`,t.remaining=t.remaining.substring(s+r.length)}return s("span",{class:{"gux-dimmed":this.dimmed},innerHTML:t.highlighted+o(t.remaining)})}renderFuzzy(){if(function(t,s){let i=a.get(t);return i||(i=function(t){const s=t.split(e).map(r);return 0===s.length?/(?!)/:1===s.length?new RegExp(s[0],"i"):new RegExp("("+s.join(").*?(")+").*?$","i")}(t),a.set(t,i)),i.test(s)}(this.highlight,this.text)){const i=(t=this.highlight,t.split(e).map(r).map((t=>{let s=h.get(t);return s||(s=new RegExp(t,"i"),h.set(t,s)),s}))).reduce(((t,s)=>{const{0:i,index:r,input:n}=t.remaining.match(s),e=n.substring(0,r);return{highlighted:`${t.highlighted+o(e)}<mark>${o(i)}</mark>`,remaining:n.substring(r+i.length)}}),{highlighted:"",remaining:this.text});return s("span",{class:{"gux-dimmed":this.dimmed},innerHTML:i.highlighted+o(i.remaining)})}var t;return s("span",{class:{"gux-dimmed":this.dimmed}},this.text)}get root(){return i(this)}};u.style="span mark{background-color:var(--gse-ui-search-match-firstLevel-backgroundColor)}.gux-dimmed mark{background-color:var(--gse-ui-search-match-subsequentLevel-backgroundColor)}";export{u as gux_text_highlight}
@@ -1 +1 @@
1
- import{r as e,h as a,a as i}from"./p-CW7z6RPd.js";import{t as r}from"./p-B4kgQ9Nr.js";import{b as t}from"./p-DYtJNWnZ.js";import"./p-Cd4R0amv.js";var o={aiPowered:"AI Powered"};const d=class{constructor(a){e(this,a)}async componentWillLoad(){r(this.root),this.i18n=await t(this.root,o)}render(){return a("div",{key:"307468640e4c76a3aa0523ce954d59eaee39113c",class:"gux-container"},a("gux-icon",{key:"6e7092ebfed33775eac8dce222e6e280344202b1","icon-name":"restricted/custom/sparkles-solid",decorative:!0}),a("div",{key:"332ee3772abfd9e424cc76f2d0805e0a77b026c0",class:"gux-label"},this.i18n("aiPowered")))}get root(){return i(this)}};d.style=":host{display:inline-block;block-size:fit-content;border-radius:var(--gse-ui-aiBadge-borderRadius);box-shadow:var(--gse-ui-aiBadge-glow)}.gux-container{display:flex;flex-direction:row;gap:var(--gse-ui-aiBadge-gap);align-items:center;justify-content:center;block-size:var(--gse-ui-aiBadge-height);padding:var(--gse-ui-aiBadge-padding);font-family:var(--gse-ui-aiBadge-text-fontFamily);font-size:var(--gse-ui-aiBadge-text-fontSize);font-weight:var(--gse-ui-aiBadge-text-fontWeight);line-height:var(--gse-ui-aiBadge-text-lineHeight);color:var(--gse-ui-aiBadge-foregroundColor);background:linear-gradient(92deg, var(--gse-ui-aiBadge-backgroundColor-leftSide) 67.31%, var(--gse-ui-aiBadge-backgroundColor-rightSide) 98.45%);border-radius:var(--gse-ui-aiBadge-borderRadius)}";export{d as gux_ai_powered_badge_beta}
1
+ import{r as e,h as a,a as i}from"./p-CW7z6RPd.js";import{t as r}from"./p-DJF3J0o5.js";import{b as o}from"./p-DYtJNWnZ.js";import"./p-Cd4R0amv.js";var t={aiPowered:"AI Powered"};const d=class{constructor(a){e(this,a)}async componentWillLoad(){r(this.root),this.i18n=await o(this.root,t)}render(){return a("div",{key:"307468640e4c76a3aa0523ce954d59eaee39113c",class:"gux-container"},a("gux-icon",{key:"6e7092ebfed33775eac8dce222e6e280344202b1","icon-name":"restricted/custom/sparkles-solid",decorative:!0}),a("div",{key:"332ee3772abfd9e424cc76f2d0805e0a77b026c0",class:"gux-label"},this.i18n("aiPowered")))}get root(){return i(this)}};d.style=":host{display:inline-block;block-size:fit-content;border-radius:var(--gse-ui-aiBadge-borderRadius);box-shadow:var(--gse-ui-aiBadge-glow)}.gux-container{display:flex;flex-direction:row;gap:var(--gse-ui-aiBadge-gap);align-items:center;justify-content:center;block-size:var(--gse-ui-aiBadge-height);padding:var(--gse-ui-aiBadge-padding);font-family:var(--gse-ui-aiBadge-text-fontFamily);font-size:var(--gse-ui-aiBadge-text-fontSize);font-weight:var(--gse-ui-aiBadge-text-fontWeight);line-height:var(--gse-ui-aiBadge-text-lineHeight);color:var(--gse-ui-aiBadge-foregroundColor);background:linear-gradient(92deg, var(--gse-ui-aiBadge-backgroundColor-leftSide) 67.31%, var(--gse-ui-aiBadge-backgroundColor-rightSide) 98.45%);border-radius:var(--gse-ui-aiBadge-borderRadius)}";export{d as gux_ai_powered_badge_beta}
@@ -1 +1 @@
1
- import{r as t,h as s,H as e,a as i}from"./p-CW7z6RPd.js";import{t as r}from"./p-B4kgQ9Nr.js";import{D as o,g as a}from"./p-D_4wz9ez.js";import{d as h,a as m}from"./p-BqBSg6zr.js";import{u as p}from"./p-BgaA4g76.js";import{g as n}from"./p-DYtJNWnZ.js";import"./p-DCZG2J0G.js";import"./p-Cd4R0amv.js";const d=class{constructor(s){t(this,s),this.hasRegionalDatesCookie=!1,this.datetime=(new Date).toISOString(),this.format="short"}componentWillLoad(){r(this.root),p()?this.hasRegionalDatesCookie=!0:this.formatter=new o(n(this.root))}renderDateTime(){return this.hasRegionalDatesCookie?h(m(this.root),{dateStyle:this.format,timeStyle:this.format,timeZone:a(this.timeZone)}).format(new Date(this.datetime)):this.formatter.formatDateTime(new Date(this.datetime),this.format,{timeZone:a(this.timeZone)})}render(){return s(e,{key:"9eb788900ebe3f0c7ffd7158c06e05bed2091b99"},this.renderDateTime())}get root(){return i(this)}};export{d as gux_date_time_beta}
1
+ import{r as t,h as s,H as e,a as i}from"./p-CW7z6RPd.js";import{t as r}from"./p-DJF3J0o5.js";import{D as o,g as a}from"./p-D_4wz9ez.js";import{d as h,a as m}from"./p-BqBSg6zr.js";import{u as p}from"./p-BgaA4g76.js";import{g as n}from"./p-DYtJNWnZ.js";import"./p-DCZG2J0G.js";import"./p-Cd4R0amv.js";const d=class{constructor(s){t(this,s),this.hasRegionalDatesCookie=!1,this.datetime=(new Date).toISOString(),this.format="short"}componentWillLoad(){r(this.root),p()?this.hasRegionalDatesCookie=!0:this.formatter=new o(n(this.root))}renderDateTime(){return this.hasRegionalDatesCookie?h(m(this.root),{dateStyle:this.format,timeStyle:this.format,timeZone:a(this.timeZone)}).format(new Date(this.datetime)):this.formatter.formatDateTime(new Date(this.datetime),this.format,{timeZone:a(this.timeZone)})}render(){return s(e,{key:"9eb788900ebe3f0c7ffd7158c06e05bed2091b99"},this.renderDateTime())}get root(){return i(this)}};export{d as gux_date_time_beta}
@@ -1 +1 @@
1
- import{r as e,f as t,h as o,a as r,c as i}from"./p-CW7z6RPd.js";import{b as n}from"./p-DYtJNWnZ.js";import{c as a,o as s}from"./p-Cb3FOYGS.js";import{O as l}from"./p-QDdMA8yS.js";import{o as u}from"./p-De1NnCmO.js";import{p as c}from"./p-PYfNAK8p.js";import{h as d,c as f,a as p,v as g,g as h,e as b}from"./p-7Jfa0k54.js";import{s as m}from"./p-BMRf5pjV.js";import{h as x}from"./p-qzV3vtOw.js";import{G as v,a as C}from"./p-PyAf0Vv-.js";import{G as y,a as w}from"./p-BmJEQySK.js";import{t as k}from"./p-B4kgQ9Nr.js";import{f as j}from"./p-JHLuJ8Pb.js";import{t as z}from"./p-BFMPPR7N.js";import{O as T}from"./p-uAcnLSYY.js";import{b as D}from"./p-Bg4q97BS.js";import"./p-Cd4R0amv.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";var S={increment:"Increment",decrement:"Decrement"};const B=class{constructor(t){e(this,t),this.indicatorMark="required",this.textAlign="end",this.computedLabelPosition="above",this.hasContent=!1,this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=x(this.root,"error"),this.hasHelp=x(this.root,"help")}handleKeyup(e){var t,o;switch(e.key){case"Tab":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));break;case"Shift":break;default: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=d(this.input),this.hasError=x(this.root,"error"),this.hasHelp=x(this.root,"help"),t(this.root)}async componentWillLoad(){this.getI18nValue=await n(this.root,S),this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=x(this.root,"error"),this.hasHelp=x(this.root,"help"),k(this.root,{variant:this.variant})}connectedCallback(){this.hasError=x(this.root,"error"),this.hasHelp=x(this.root,"help")}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){const e=this.clearable&&this.hasContent&&!this.disabled;return o(w,{key:"de06df74a05d0f1dd916a45cf94597e4e531231f",labelPosition:this.computedLabelPosition},o(y,{key:"1e82b7f19353a96a9a0a1595ddc6eddafee57832",required:this.required,position:this.computedLabelPosition},o("slot",{key:"b13110e6304132d8f29be5b2444e7ae40f4749d8",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"061479ca8ed2f61755ca234dfa6724fb25cf4aed",variant:this.indicatorMark,required:this.required}),o("slot",{key:"2d4e7febeecb9f1183677363f4013bbc23ff96c0",name:"label-info"})),o("div",{key:"0728e03f72cf25d6bfa00b96ee4bdbfc8a5471e1",class:"gux-input-and-error-container"},o("div",{key:"0be14868fcaab85c38411fe0de914301734c82b1",class:{"gux-input":!0,"gux-input-error":this.hasError},part:"input-section"},o("div",{key:"2f9960e8390b7aba362a7851c20c6c3f8fe5015b",class:{"gux-input-container":!0,"gux-disabled":this.disabled,"gux-clear":e},style:{"--gux-text-align":this.textAlign},onClick:()=>j(this.input)},o("slot",{key:"ea33dcffd3ad17f3f97611cb028e2313cb2d5084",name:"input",onSlotchange:()=>this.setInput()}),e&&o("gux-form-field-input-clear-button",{key:"4180f0abd151eb69d120779e31e94d0aa3a4cfbe",onClick:()=>f(this.input)})),this.renderStepButtons(this.input,this.getI18nValue,this.disabled)),o(v,{key:"469c97891693319a1b59916eec0de5559a514035",show:this.hasError},o("slot",{key:"7be997b3817cdb8218be272ed5aaa585ad7dcc0b",name:"error"})),o(C,{key:"8dc8513b09e102190352ae1173e82e8dd2f612ab",show:!this.hasError&&this.hasHelp},o("slot",{key:"20c8f48560b1e06849c4fea650878fb886b4184a",name:"help"}))))}get variant(){const e=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.clearable?"clearable":"unclearable"}-${e}`}setInput(){this.input=p(this.root,'input[type="number"][slot="input"]'),this.hasContent=d(this.input),c(this.input),this.input.addEventListener("input",(()=>{this.hasContent=d(this.input)})),this.disabled=a(this.input),this.required=this.input.required,this.disabledObserver=s(this.input,(e=>{this.disabled=e})),this.requiredObserver=u(this.input,(e=>{this.required=e})),g(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=h(this.label,this.labelPosition)}renderStepButtons(e,t,r){return o("div",{class:"gux-step-buttons-container"},o("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:t("increment"),disabled:r,onClick:()=>this.stepUp(e)},o("gux-icon",{"icon-name":"custom/chevron-up-small-regular",decorative:!0})),o("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:t("decrement"),disabled:r,onClick:()=>this.stepDown(e)},o("gux-icon",{"icon-name":"custom/chevron-down-small-regular",decorative:!0})))}stepDown(e){""===e.value?b(e,e.min||"0",!1):(e.stepDown(),this.simulateNativeInputAndChangeEvents(e))}stepUp(e){""===e.value?b(e,e.min||"0",!1):(e.stepUp(),this.simulateNativeInputAndChangeEvents(e))}simulateNativeInputAndChangeEvents(e){m(e,"input"),m(e,"change")}static get delegatesFocus(){return!0}get root(){return r(this)}};(function(e,t,o,r){var i,n=arguments.length,a=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,o,a):i(t,o))||a);n>3&&a&&Object.defineProperty(t,o,a)})([l({childList:!0,subtree:!0})],B.prototype,"onMutation",null),B.style=".gux-form-field-container{display:flex;flex-direction:column}.gux-form-field-container.gux-beside{flex-direction:row}.gux-character-counter{display:grid;grid-template-rows:auto auto auto;grid-template-columns:1fr 1fr}.gux-character-counter :nth-child(1){grid-row:1/2;grid-column:2/3}.gux-character-counter :nth-child(2){grid-row:1/2;grid-column:1/2}.gux-character-counter :nth-child(3){grid-row:2/3;grid-column:1/-1}.gux-character-counter :nth-child(4){grid-row:3/4;grid-column:1/-1}.gux-character-counter.gux-beside{grid-template-columns:min-content 1fr}.gux-character-counter.gux-beside :nth-child(1){grid-row:1/2;grid-column:1/-1}.gux-character-counter.gux-beside :nth-child(2){grid-row:2/3;grid-column:1/2}.gux-character-counter.gux-beside :nth-child(3){grid-row:2/3;grid-column:2/3}.gux-character-counter.gux-beside :nth-child(4){grid-row:3/4;grid-column:1/-1}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(label){min-inline-size:0}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:1 1 auto;align-self:auto;order:0;inline-size:100%;padding-block-end:0;overflow:hidden;text-overflow:ellipsis;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);text-align:var(--gux-text-align, end);outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;inline-size:100%}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;align-self:auto;order:0;inline-size:100%;block-size: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);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-disabled{cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius)}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}.gux-step-buttons-container{flex:0 1 14px;align-self:auto;order:0;margin-inline-start:var(--gse-ui-formControl-spinButton-gap)}.gux-step-buttons-container .gux-step-button{display:flex;flex:0 1 auto;align-items:center;align-self:auto;justify-content:center;order:0;padding:0;color:var(--gse-ui-formControl-input-inputIcon-defaultColor);background:transparent;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) transparent}.gux-step-buttons-container .gux-step-button:not(:disabled):focus-visible,.gux-step-buttons-container .gux-step-button:not(:disabled):hover{cursor:pointer;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-step-buttons-container .gux-step-button:disabled{opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-step-buttons-container .gux-step-button gux-icon{flex:0 0 auto;inline-size:14px;block-size:14px}";const F=class{constructor(t){e(this,t),this.goToPage=i(this,"goToPage",7),this.isOpen=!1,this.disabled=!1,this.tooltipContrast="default"}handleKeyDown(e){const t=e.composedPath();switch(e.key){case"Escape":this.isOpen=!1,this.ellipsisButton.focus();break;case"Tab":this.isOpen=!1;break;case"ArrowDown":t.includes(this.ellipsisButton)&&(e.preventDefault(),this.isOpen=!0,this.focusInputElement())}}watchIsDisabled(e){e&&(this.isOpen=!1)}toggle(){this.isOpen=!this.isOpen,this.isOpen&&this.focusInputElement()}onClickOutside(){this.isOpen=!1}focusInputElement(){D((()=>{this.inputElement.focus()}))}applyInputListener(){var e;null===(e=this.inputElement)||void 0===e||e.addEventListener("keydown",(e=>{const t=e.target.value.trim();"Enter"!=e.key&&" "!=e.key||(""==t?e.preventDefault():(e.preventDefault(),this.goToPage.emit(e.target.value),this.isOpen=!1))}))}async componentWillLoad(){this.i18n=await n(this.root,z,"gux-pagination-buttons"),k(this.root)}componentDidLoad(){this.applyInputListener()}render(){return[o("gux-button",{key:"ff6dcd0bae24038f98cc27378ba1bef960e60e05",accent:"ghost",id:"popover-target",type:"button",disabled:this.disabled,ref:e=>this.ellipsisButton=e,onClick:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},o("gux-icon",{key:"055829d5888c36475f37059908094f22af6a25c4",screenreaderText:this.i18n("goToPage"),"icon-name":"fa/ellipsis-regular",size:"small"})),o("gux-tooltip",{key:"5f1df57f1cff0666f733dccc8130535cf4fd40ce",for:"popover-target",contrast:this.tooltipContrast},o("div",{key:"f4ed00cb8451c0146ba5d9d7be341e7c93f671e6",slot:"content"},this.i18n("goToPage"))),o("gux-popover",{key:"ed915ce2be82fd556b386a95f88b20fb54a34ea0","is-open":this.isOpen,for:"popover-target"},o("span",{key:"30db7911d089beaaabdfb0b07b52bdd771ed1afd",slot:"title"},this.i18n("goToPage")),o("gux-form-field-number",{key:"cc22605c48e7d5c6cde99b3a3143b64cc2eac5d8"},o("input",{key:"dc268d752b9e60bc394785b689fb8a3c04f59b50",slot:"input",type:"number",ref:e=>this.inputElement=e,min:"1",max:this.totalPages,value:"1",onKeyDown:e=>["e","E","+","-","."].includes(e.key)&&e.preventDefault()}),o("label",{key:"27f5a09573883f22a8ecdb689dd7964aeb0923f9",slot:"label"})))]}get root(){return r(this)}static get watchers(){return{disabled:[{watchIsDisabled:0}]}}};(function(e,t,o,r){var i,n=arguments.length,a=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,o,a):i(t,o))||a);n>3&&a&&Object.defineProperty(t,o,a)})([T()],F.prototype,"onClickOutside",null),F.style="gux-button gux-icon{padding-block-start:4px}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield}";export{B as gux_form_field_number,F as gux_pagination_ellipsis_button}
1
+ import{r as e,f as t,h as o,a as r,c as i}from"./p-CW7z6RPd.js";import{b as n}from"./p-DYtJNWnZ.js";import{c as a,o as s}from"./p-Cb3FOYGS.js";import{O as l}from"./p-QDdMA8yS.js";import{o as u}from"./p-De1NnCmO.js";import{p as c}from"./p-PYfNAK8p.js";import{h as d,c as f,a as p,v as g,g as h,e as b}from"./p-7Jfa0k54.js";import{s as m}from"./p-BMRf5pjV.js";import{h as x}from"./p-qzV3vtOw.js";import{G as v,a as C}from"./p-PyAf0Vv-.js";import{G as y,a as w}from"./p-BmJEQySK.js";import{t as k}from"./p-DJF3J0o5.js";import{f as j}from"./p-JHLuJ8Pb.js";import{t as z}from"./p-BFMPPR7N.js";import{O as T}from"./p-uAcnLSYY.js";import{b as D}from"./p-Bg4q97BS.js";import"./p-Cd4R0amv.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";var F={increment:"Increment",decrement:"Decrement"};const S=class{constructor(t){e(this,t),this.indicatorMark="required",this.textAlign="end",this.computedLabelPosition="above",this.hasContent=!1,this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=x(this.root,"error"),this.hasHelp=x(this.root,"help")}handleKeyup(e){var t,o;switch(e.key){case"Tab":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));break;case"Shift":break;default: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=d(this.input),this.hasError=x(this.root,"error"),this.hasHelp=x(this.root,"help"),t(this.root)}async componentWillLoad(){this.getI18nValue=await n(this.root,F),this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=x(this.root,"error"),this.hasHelp=x(this.root,"help"),k(this.root,{variant:this.variant})}connectedCallback(){this.hasError=x(this.root,"error"),this.hasHelp=x(this.root,"help")}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){const e=this.clearable&&this.hasContent&&!this.disabled;return o(w,{key:"de06df74a05d0f1dd916a45cf94597e4e531231f",labelPosition:this.computedLabelPosition},o(y,{key:"1e82b7f19353a96a9a0a1595ddc6eddafee57832",required:this.required,position:this.computedLabelPosition},o("slot",{key:"b13110e6304132d8f29be5b2444e7ae40f4749d8",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"061479ca8ed2f61755ca234dfa6724fb25cf4aed",variant:this.indicatorMark,required:this.required}),o("slot",{key:"2d4e7febeecb9f1183677363f4013bbc23ff96c0",name:"label-info"})),o("div",{key:"0728e03f72cf25d6bfa00b96ee4bdbfc8a5471e1",class:"gux-input-and-error-container"},o("div",{key:"0be14868fcaab85c38411fe0de914301734c82b1",class:{"gux-input":!0,"gux-input-error":this.hasError},part:"input-section"},o("div",{key:"2f9960e8390b7aba362a7851c20c6c3f8fe5015b",class:{"gux-input-container":!0,"gux-disabled":this.disabled,"gux-clear":e},style:{"--gux-text-align":this.textAlign},onClick:()=>j(this.input)},o("slot",{key:"ea33dcffd3ad17f3f97611cb028e2313cb2d5084",name:"input",onSlotchange:()=>this.setInput()}),e&&o("gux-form-field-input-clear-button",{key:"4180f0abd151eb69d120779e31e94d0aa3a4cfbe",onClick:()=>f(this.input)})),this.renderStepButtons(this.input,this.getI18nValue,this.disabled)),o(v,{key:"469c97891693319a1b59916eec0de5559a514035",show:this.hasError},o("slot",{key:"7be997b3817cdb8218be272ed5aaa585ad7dcc0b",name:"error"})),o(C,{key:"8dc8513b09e102190352ae1173e82e8dd2f612ab",show:!this.hasError&&this.hasHelp},o("slot",{key:"20c8f48560b1e06849c4fea650878fb886b4184a",name:"help"}))))}get variant(){const e=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.clearable?"clearable":"unclearable"}-${e}`}setInput(){this.input=p(this.root,'input[type="number"][slot="input"]'),this.hasContent=d(this.input),c(this.input),this.input.addEventListener("input",(()=>{this.hasContent=d(this.input)})),this.disabled=a(this.input),this.required=this.input.required,this.disabledObserver=s(this.input,(e=>{this.disabled=e})),this.requiredObserver=u(this.input,(e=>{this.required=e})),g(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=h(this.label,this.labelPosition)}renderStepButtons(e,t,r){return o("div",{class:"gux-step-buttons-container"},o("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:t("increment"),disabled:r,onClick:()=>this.stepUp(e)},o("gux-icon",{"icon-name":"custom/chevron-up-small-regular",decorative:!0})),o("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:t("decrement"),disabled:r,onClick:()=>this.stepDown(e)},o("gux-icon",{"icon-name":"custom/chevron-down-small-regular",decorative:!0})))}stepDown(e){""===e.value?b(e,e.min||"0",!1):(e.stepDown(),this.simulateNativeInputAndChangeEvents(e))}stepUp(e){""===e.value?b(e,e.min||"0",!1):(e.stepUp(),this.simulateNativeInputAndChangeEvents(e))}simulateNativeInputAndChangeEvents(e){m(e,"input"),m(e,"change")}static get delegatesFocus(){return!0}get root(){return r(this)}};(function(e,t,o,r){var i,n=arguments.length,a=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,o,a):i(t,o))||a);n>3&&a&&Object.defineProperty(t,o,a)})([l({childList:!0,subtree:!0})],S.prototype,"onMutation",null),S.style=".gux-form-field-container{display:flex;flex-direction:column}.gux-form-field-container.gux-beside{flex-direction:row}.gux-character-counter{display:grid;grid-template-rows:auto auto auto;grid-template-columns:1fr 1fr}.gux-character-counter :nth-child(1){grid-row:1/2;grid-column:2/3}.gux-character-counter :nth-child(2){grid-row:1/2;grid-column:1/2}.gux-character-counter :nth-child(3){grid-row:2/3;grid-column:1/-1}.gux-character-counter :nth-child(4){grid-row:3/4;grid-column:1/-1}.gux-character-counter.gux-beside{grid-template-columns:min-content 1fr}.gux-character-counter.gux-beside :nth-child(1){grid-row:1/2;grid-column:1/-1}.gux-character-counter.gux-beside :nth-child(2){grid-row:2/3;grid-column:1/2}.gux-character-counter.gux-beside :nth-child(3){grid-row:2/3;grid-column:2/3}.gux-character-counter.gux-beside :nth-child(4){grid-row:3/4;grid-column:1/-1}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(label){min-inline-size:0}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:1 1 auto;align-self:auto;order:0;inline-size:100%;padding-block-end:0;overflow:hidden;text-overflow:ellipsis;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);text-align:var(--gux-text-align, end);outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;inline-size:100%}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;align-self:auto;order:0;inline-size:100%;block-size: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);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-disabled{cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius)}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}.gux-step-buttons-container{flex:0 1 14px;align-self:auto;order:0;margin-inline-start:var(--gse-ui-formControl-spinButton-gap)}.gux-step-buttons-container .gux-step-button{display:flex;flex:0 1 auto;align-items:center;align-self:auto;justify-content:center;order:0;padding:0;color:var(--gse-ui-formControl-input-inputIcon-defaultColor);background:transparent;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) transparent}.gux-step-buttons-container .gux-step-button:not(:disabled):focus-visible,.gux-step-buttons-container .gux-step-button:not(:disabled):hover{cursor:pointer;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-step-buttons-container .gux-step-button:disabled{opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-step-buttons-container .gux-step-button gux-icon{flex:0 0 auto;inline-size:14px;block-size:14px}";const R=class{constructor(t){e(this,t),this.goToPage=i(this,"goToPage",7),this.isOpen=!1,this.disabled=!1,this.tooltipContrast="default"}handleKeyDown(e){const t=e.composedPath();switch(e.key){case"Escape":this.isOpen=!1,this.ellipsisButton.focus();break;case"Tab":this.isOpen=!1;break;case"ArrowDown":t.includes(this.ellipsisButton)&&(e.preventDefault(),this.isOpen=!0,this.focusInputElement())}}watchIsDisabled(e){e&&(this.isOpen=!1)}toggle(){this.isOpen=!this.isOpen,this.isOpen&&this.focusInputElement()}onClickOutside(){this.isOpen=!1}focusInputElement(){D((()=>{this.inputElement.focus()}))}applyInputListener(){var e;null===(e=this.inputElement)||void 0===e||e.addEventListener("keydown",(e=>{const t=e.target.value.trim();"Enter"!=e.key&&" "!=e.key||(""==t?e.preventDefault():(e.preventDefault(),this.goToPage.emit(e.target.value),this.isOpen=!1))}))}async componentWillLoad(){this.i18n=await n(this.root,z,"gux-pagination-buttons"),k(this.root)}componentDidLoad(){this.applyInputListener()}render(){return[o("gux-button",{key:"ff6dcd0bae24038f98cc27378ba1bef960e60e05",accent:"ghost",id:"popover-target",type:"button",disabled:this.disabled,ref:e=>this.ellipsisButton=e,onClick:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},o("gux-icon",{key:"055829d5888c36475f37059908094f22af6a25c4",screenreaderText:this.i18n("goToPage"),"icon-name":"fa/ellipsis-regular",size:"small"})),o("gux-tooltip",{key:"5f1df57f1cff0666f733dccc8130535cf4fd40ce",for:"popover-target",contrast:this.tooltipContrast},o("div",{key:"f4ed00cb8451c0146ba5d9d7be341e7c93f671e6",slot:"content"},this.i18n("goToPage"))),o("gux-popover",{key:"ed915ce2be82fd556b386a95f88b20fb54a34ea0","is-open":this.isOpen,for:"popover-target"},o("span",{key:"30db7911d089beaaabdfb0b07b52bdd771ed1afd",slot:"title"},this.i18n("goToPage")),o("gux-form-field-number",{key:"cc22605c48e7d5c6cde99b3a3143b64cc2eac5d8"},o("input",{key:"dc268d752b9e60bc394785b689fb8a3c04f59b50",slot:"input",type:"number",ref:e=>this.inputElement=e,min:"1",max:this.totalPages,value:"1",onKeyDown:e=>["e","E","+","-","."].includes(e.key)&&e.preventDefault()}),o("label",{key:"27f5a09573883f22a8ecdb689dd7964aeb0923f9",slot:"label"})))]}get root(){return r(this)}static get watchers(){return{disabled:[{watchIsDisabled:0}]}}};(function(e,t,o,r){var i,n=arguments.length,a=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,o,a):i(t,o))||a);n>3&&a&&Object.defineProperty(t,o,a)})([T()],R.prototype,"onClickOutside",null),R.style="gux-button gux-icon{padding-block-start:4px}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield}";export{S as gux_form_field_number,R as gux_pagination_ellipsis_button}
@@ -0,0 +1 @@
1
+ import{r as a,f as t,h as r,a as e}from"./p-CW7z6RPd.js";import{b as s}from"./p-DYtJNWnZ.js";import{t as o}from"./p-DJF3J0o5.js";import"./p-Cd4R0amv.js";var i={breadcrumbs:"Breadcrumbs"};const n=class{constructor(t){a(this,t),this.accent="primary"}componentWillLoad(){o(this.root,{variant:this.accent})}async componentWillRender(){this.i18n=await s(this.root,i)}onSlotChange(){Array.from(this.root.children).forEach((a=>t(a)))}render(){return r("nav",{key:"f8b76af928b5e484edf7f1623a8f51b88a9a74de","aria-label":this.i18n("breadcrumbs")},r("ol",{key:"c2fe8da7d9fcb21a7a698d11a15fec78df48214e"},r("slot",{key:"f0f14fffe605963db80742bd561c77bbf53fb1eb",onSlotchange:this.onSlotChange.bind(this)})))}get root(){return e(this)}};n.style="ol{display:flex;flex-direction:row;flex-wrap:wrap;place-content:flex-start flex-start;align-items:center;padding:0;margin:0;list-style:none}";export{n as gux_breadcrumbs}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,a as e}from"./p-CW7z6RPd.js";import{a as o,c as h,o as a,f as r,s as n,h as p,b as c}from"./p-8w8ltg_h.js";import{a as d}from"./p-Bg4q97BS.js";import{O as l}from"./p-uAcnLSYY.js";import{t as u}from"./p-B4kgQ9Nr.js";import{f}from"./p-Cr5bTKWF.js";const g=class{constructor(i){t(this,i),this.guxdismiss=s(this,"guxdismiss",7),this.position="bottom",this.closeOnClickOutside=!1,this.isOpen=!1,this.disconnect=void 0}handleForChange(){this.setupForElement()}handleIsOpenChange(t){this.popupElement&&(t?(this.popupElement.showPopover(),this.runUpdatePosition()):(this.popupElement.hidePopover(),this.cleanupUpdatePosition&&this.cleanupUpdatePosition()))}onKeyDown(t){switch(t.key){case"Tab":this.dismiss();break;case"Escape":this.dismiss(),this.forElement&&this.forElement.focus()}}checkForClickOutside(t){const s=t.composedPath(),i=f(this.root,this.for),e=s.includes(i);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||e||this.dismiss()}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition();const t=f(this.root,this.for);t&&this.popupElement&&(this.root.isConnected?this.cleanupUpdatePosition=o(t,this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback())}updatePosition(){const t=f(this.root,this.for);this.popupElement&&t&&h(t,this.popupElement,{strategy:"fixed",placement:this.position,middleware:[a(2),r(),n(),p(),c({element:this.arrowElement,padding:16})]}).then((({x:t,y:s,middlewareData:i,placement:e})=>{Object.assign(this.popupElement.style,{left:`${t}px`,top:`${s}px`});const o={top:"bottom",right:"left",bottom:"top",left:"right"}[e.split("-")[0]];if(i.arrow){const{x:t,y:s}=i.arrow;this.popupElement.setAttribute("data-placement",e),Object.assign(this.arrowElement.style,{left:null!=t?`${t}px`:"",top:null!=s?`${s}px`:"",right:"",bottom:"",[o]:"-6.5px",transform:"rotate(45deg)"})}i.hide&&Object.assign(this.popupElement.style,{visibility:i.hide.referenceHidden?"hidden":"visible"})}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1,this.popupElement.hidePopover())}focusFirstItemInPopupList(){d((()=>{this.listElement.guxFocusFirstItem()}))}onKeydown(t){switch(t.key){case"Enter":case" ":this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition(),this.focusFirstItemInPopupList()}}onMouseup(){this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition()}setupForElement(){if(this.disconnect&&(this.disconnect(),this.disconnect=void 0),this.forElement=f(this.root,this.for),!this.forElement)return;this.forElement.setAttribute("aria-haspopup","true");const t=this.onKeydown.bind(this);this.forElement.addEventListener("keydown",t);const s=this.onMouseup.bind(this);this.forElement.addEventListener("mouseup",s),this.disconnect=()=>{this.forElement.removeEventListener("keydown",t),this.forElement.removeEventListener("mouseup",s)}}connectedCallback(){u(this.root,{variant:this.position}),this.listElement=this.root.querySelector("gux-list"),this.setupForElement()}componentDidLoad(){this.handleIsOpenChange(this.isOpen)}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.disconnect&&this.disconnect()}render(){return i("div",{key:"75b8d2555dd5fff64e2b2fd3539239eecc8d7cc0",ref:t=>this.popupElement=t,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0,popover:"manual"},i("div",{key:"14515d5831ecf18aebf76924cc00c01c4a373faf",ref:t=>this.arrowElement=t,class:"gux-arrow"}),this.displayDismissButton&&i("gux-dismiss-button",{key:"02aeae7c415c7718efe31ebe72e8132e83343908",onClick:this.dismiss.bind(this)}),i("div",{key:"620f089c80dd03488417e1cad4d2ee4bebd692c5",class:"gux-popover-content"},i("slot",{key:"e018c38dcfcd7790ef40356fc90773e85ef21dca"})))}get root(){return e(this)}static get watchers(){return{for:[{handleForChange:0}],isOpen:[{handleIsOpenChange:0}]}}};(function(t,s,i,e){var o,h=arguments.length,a=h<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,e);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(h<3?o(a):h>3?o(s,i,a):o(s,i))||a);h>3&&a&&Object.defineProperty(s,i,a)})([l()],g.prototype,"checkForClickOutside",null),g.style=":popover-open{position:absolute;inset:unset}.gux-popover-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;padding-block:8px;padding-inline:0;overflow-y:hidden;background-color:var(--gse-ui-popover-backgroundColor);border:none;border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow)}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper{}.gux-popover-wrapper .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-width);background:var(--gse-ui-popover-backgroundColor)}";export{g as gux_popover_list_beta}
1
+ import{r as t,c as s,h as i,a as e}from"./p-CW7z6RPd.js";import{a as o,c as h,o as a,f as r,s as n,h as p,b as c}from"./p-8w8ltg_h.js";import{a as d}from"./p-Bg4q97BS.js";import{O as l}from"./p-uAcnLSYY.js";import{t as u}from"./p-DJF3J0o5.js";import{f}from"./p-Cr5bTKWF.js";const b=class{constructor(i){t(this,i),this.guxdismiss=s(this,"guxdismiss",7),this.position="bottom",this.closeOnClickOutside=!1,this.isOpen=!1,this.disconnect=void 0}handleForChange(){this.setupForElement()}handleIsOpenChange(t){this.popupElement&&(t?(this.popupElement.showPopover(),this.runUpdatePosition()):(this.popupElement.hidePopover(),this.cleanupUpdatePosition&&this.cleanupUpdatePosition()))}onKeyDown(t){switch(t.key){case"Tab":this.dismiss();break;case"Escape":this.dismiss(),this.forElement&&this.forElement.focus()}}checkForClickOutside(t){const s=t.composedPath(),i=f(this.root,this.for),e=s.includes(i);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||e||this.dismiss()}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition();const t=f(this.root,this.for);t&&this.popupElement&&(this.root.isConnected?this.cleanupUpdatePosition=o(t,this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback())}updatePosition(){const t=f(this.root,this.for);this.popupElement&&t&&h(t,this.popupElement,{strategy:"fixed",placement:this.position,middleware:[a(2),r(),n(),p(),c({element:this.arrowElement,padding:16})]}).then((({x:t,y:s,middlewareData:i,placement:e})=>{Object.assign(this.popupElement.style,{left:`${t}px`,top:`${s}px`});const o={top:"bottom",right:"left",bottom:"top",left:"right"}[e.split("-")[0]];if(i.arrow){const{x:t,y:s}=i.arrow;this.popupElement.setAttribute("data-placement",e),Object.assign(this.arrowElement.style,{left:null!=t?`${t}px`:"",top:null!=s?`${s}px`:"",right:"",bottom:"",[o]:"-6.5px",transform:"rotate(45deg)"})}i.hide&&Object.assign(this.popupElement.style,{visibility:i.hide.referenceHidden?"hidden":"visible"})}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1,this.popupElement.hidePopover())}focusFirstItemInPopupList(){d((()=>{this.listElement.guxFocusFirstItem()}))}onKeydown(t){switch(t.key){case"Enter":case" ":this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition(),this.focusFirstItemInPopupList()}}onMouseup(){this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition()}setupForElement(){if(this.disconnect&&(this.disconnect(),this.disconnect=void 0),this.forElement=f(this.root,this.for),!this.forElement)return;this.forElement.setAttribute("aria-haspopup","true");const t=this.onKeydown.bind(this);this.forElement.addEventListener("keydown",t);const s=this.onMouseup.bind(this);this.forElement.addEventListener("mouseup",s),this.disconnect=()=>{this.forElement.removeEventListener("keydown",t),this.forElement.removeEventListener("mouseup",s)}}connectedCallback(){u(this.root,{variant:this.position}),this.listElement=this.root.querySelector("gux-list"),this.setupForElement()}componentDidLoad(){this.handleIsOpenChange(this.isOpen)}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.disconnect&&this.disconnect()}render(){return i("div",{key:"75b8d2555dd5fff64e2b2fd3539239eecc8d7cc0",ref:t=>this.popupElement=t,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0,popover:"manual"},i("div",{key:"14515d5831ecf18aebf76924cc00c01c4a373faf",ref:t=>this.arrowElement=t,class:"gux-arrow"}),this.displayDismissButton&&i("gux-dismiss-button",{key:"02aeae7c415c7718efe31ebe72e8132e83343908",onClick:this.dismiss.bind(this)}),i("div",{key:"620f089c80dd03488417e1cad4d2ee4bebd692c5",class:"gux-popover-content"},i("slot",{key:"e018c38dcfcd7790ef40356fc90773e85ef21dca"})))}get root(){return e(this)}static get watchers(){return{for:[{handleForChange:0}],isOpen:[{handleIsOpenChange:0}]}}};(function(t,s,i,e){var o,h=arguments.length,a=h<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,e);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(h<3?o(a):h>3?o(s,i,a):o(s,i))||a);h>3&&a&&Object.defineProperty(s,i,a)})([l()],b.prototype,"checkForClickOutside",null),b.style=":popover-open{position:absolute;inset:unset}.gux-popover-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;padding-block:8px;padding-inline:0;overflow-y:hidden;background-color:var(--gse-ui-popover-backgroundColor);border:none;border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow)}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper{}.gux-popover-wrapper .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-width);background:var(--gse-ui-popover-backgroundColor)}";export{b as gux_popover_list_beta}
@@ -1 +1 @@
1
- import{r as e,f as o,h as r,a as t}from"./p-CW7z6RPd.js";import{O as i}from"./p-QDdMA8yS.js";import{h as l}from"./p-qzV3vtOw.js";import{l as a}from"./p-DxtJDeL9.js";import{b as s}from"./p-DYtJNWnZ.js";import{s as n}from"./p-BMRf5pjV.js";import{a as f,G as h}from"./p-PyAf0Vv-.js";import{G as u,a as g,b as c}from"./p-B00vXHqr.js";import{g as d}from"./p-MAoEg4ig.js";import{t as p}from"./p-B4kgQ9Nr.js";import"./p-Cd4R0amv.js";function x(e,o){if(o){const{checkedCheckboxes:r,totalCheckboxes:t}=function(e){const o=m(e).length,r=function(e){return m(e).filter((e=>e.checked))}(e).length;return{checkedCheckboxes:r,totalCheckboxes:o}}(e);0===r?(o.indeterminate=!1,o.checked=!1):r===t?(o.indeterminate=!1,o.checked=!0):o.indeterminate=!0}}function m(e){return Array.from(e.querySelectorAll('gux-form-field-checkbox input:not(gux-form-field-checkbox[slot="group-checkbox"] input'))}var b={required:"Required"};const v=class{constructor(o){e(this,o),this.indicatorMark="required",this.required=!1,this.hasGroupError=!1,this.hasGroupHelp=!1,this.hasGroupLabelInfo=!1,this.disabled=!1}watchGroupError(e){const o=this.root.querySelectorAll("gux-form-field-checkbox");o&&o.forEach((o=>{o.hasGroupError=e}))}watchDisabled(){this.setDisabledCheckboxes()}onMutation(){this.hasGroupError=l(this.root,"group-error"),this.hasGroupHelp=l(this.root,"group-help"),this.hasGroupLabelInfo=l(this.root,"group-label-info")}async componentWillLoad(){this.getI18nValue=await s(this.root,b),this.hasGroupError=l(this.root,"group-error"),this.hasGroupHelp=l(this.root,"group-help"),this.hasGroupLabelInfo=l(this.root,"group-label-info"),this.setLabel(),this.setDisabledCheckboxes(),p(this.root)}componentDidLoad(){x(this.root,this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input'))}connectedCallback(){this.hasGroupError=l(this.root,"group-error"),this.hasGroupHelp=l(this.root,"group-help")}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}getGroupCheckboxElement(){return this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input')}setDisabledCheckboxes(){const e=this.root.querySelectorAll("gux-form-field-checkbox");e&&e.forEach((e=>{e.hasGroupDisabled=this.disabled}))}onMainCheckboxChange(){const e=this.getGroupCheckboxElement();var r;r=e.checked,m(this.root).forEach((e=>{e.checked===r||e.disabled||(e.checked=r,n(e,"input"),n(e,"change"))})),o(this.root)}setupNestedCheckboxes(){this.warnMultipleGroupCheckbox(),this.warnGroupCheckboxNameAttr();const e=this.getGroupCheckboxElement();e?this.root.classList.add("gux-group-checkbox"):this.root.classList.remove("gux-group-checkbox"),null==e||e.addEventListener("change",(()=>{this.onMainCheckboxChange()})),this.initialSetNestedCheckboxes(null==e?void 0:e.checked)}initialSetNestedCheckboxes(e){const o=Array.from(this.root.querySelectorAll('gux-form-field-checkbox input:not(gux-form-field-checkbox[slot="group-checkbox"] input)'));(null==o?void 0:o.length)&&o.forEach((o=>{o.addEventListener("change",(()=>{this.updateMainCheckbox()})),e&&!o.disabled&&(o.checked=!0)}))}warnMultipleGroupCheckbox(){const e=this.root.querySelectorAll('gux-form-field-checkbox[slot="group-checkbox"] input');(null==e?void 0:e.length)>1&&a(this.root,"Can only have one group checkbox")}warnGroupCheckboxNameAttr(){const e=this.getGroupCheckboxElement();(null==e?void 0:e.hasAttribute("name"))&&a(this.root,"Group checkbox should not have a name attribute")}updateMainCheckbox(){x(this.root,this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input')),o(this.root)}renderText(e,o=!1){if(o)return" "+e}render(){var e;return r(c,{key:"60f18cfe8373a9414a78715a4a906c04ff1c4915",labelPosition:"above"},r(g,{key:"8c98698b3f4041fa1d64cfa0bef2f44e769c0f07"},null===(e=this.label)||void 0===e?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(d(this.root,"group-error"),this.hasGroupError),this.renderText(d(this.root,"group-help"),this.hasGroupHelp),this.renderText(d(this.root,"group-label-info"),this.hasGroupLabelInfo)),r(u,{key:"89fe73ff9c4d41ce42a4ae5f3c0e526f4bd63b74",position:"above",required:this.required},r("slot",{key:"818e93d883540f758169f9345163d9593fa12613",name:"group-label",onSlotchange:()=>this.setLabel()}),r("gux-form-field-label-indicator",{key:"9cec2969a3b901a6c9a6b89810667a07912f091c",variant:this.indicatorMark,required:this.required}),r("slot",{key:"ba7b81204b7ef2c0b8273cd95e6949a1cc46ecf5",name:"group-label-info"})),r("slot",{key:"d14a2781f4fa7b7cba10d40ecaa7aaa2110a36fe",onSlotchange:()=>this.setupNestedCheckboxes(),name:"group-checkbox"}),r("slot",{key:"f32b310d6ee22de2c404ffa99919c075a6461bf0",onSlotchange:()=>this.updateMainCheckbox()}),r(h,{key:"3c9f8d6533a03a2a476f83f01668f66dc4397afa",show:this.hasGroupError},r("slot",{key:"8cb29288a2163deef3d4d76bd07784bf7fe35bb8",name:"group-error"})),r(f,{key:"aef3c9a01bfc98e02229c734b40e9458430530af",show:!this.hasGroupError&&this.hasGroupHelp},r("slot",{key:"a7b0d7876bf79720384a8c30d742e6c2d37116ed",name:"group-help"})))}setLabel(){this.label=this.root.querySelector('label[slot="group-label"]')}get root(){return t(this)}static get watchers(){return{hasGroupError:[{watchGroupError:0}],disabled:[{watchDisabled:0}]}}};(function(e,o,r,t){var i,l=arguments.length,a=l<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,r,t);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(l<3?i(a):l>3?i(o,r,a):i(o,r))||a);l>3&&a&&Object.defineProperty(o,r,a)})([i({childList:!0,subtree:!0})],v.prototype,"onMutation",null),v.style=".gux-form-field-fieldset-container{display:flex;min-inline-size:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-visual-label{display:inline-flex;flex:1 0 auto}.gux-form-field-visual-label ::slotted(label){min-inline-size:0}.gux-form-field-visual-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-visual-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-screenreader{display:none}.gux-form-field-screenreader-label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block}:host([disabled]) .gux-form-field-legend-label{opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(gux-form-field-checkbox){padding-block-start:var(--gse-ui-formControl-group-gapItems)}::slotted(gux-form-field-checkbox:first-of-type){padding-block-start:0}:host(.gux-group-checkbox) ::slotted(gux-form-field-checkbox){padding-inline-start:var(--gse-ui-checkbox-group-paddingLeft)}:host(.gux-group-checkbox) slot[name=group-checkbox]::slotted(gux-form-field-checkbox){padding-inline-start:0}.gux-form-field-legend-label{font-family:var(--gse-ui-formControl-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-formControl-label-text-fontWeight);line-height:var(--gse-ui-formControl-label-text-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}:host([disabled]) ::slotted(label){opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}";export{v as gux_form_field_checkbox_group_beta}
1
+ import{r as e,f as o,h as r,a as t}from"./p-CW7z6RPd.js";import{O as i}from"./p-QDdMA8yS.js";import{h as l}from"./p-qzV3vtOw.js";import{l as a}from"./p-DxtJDeL9.js";import{b as s}from"./p-DYtJNWnZ.js";import{s as n}from"./p-BMRf5pjV.js";import{a as f,G as h}from"./p-PyAf0Vv-.js";import{G as u,a as g,b as c}from"./p-B00vXHqr.js";import{g as d}from"./p-MAoEg4ig.js";import{t as p}from"./p-DJF3J0o5.js";import"./p-Cd4R0amv.js";function x(e,o){if(o){const{checkedCheckboxes:r,totalCheckboxes:t}=function(e){const o=m(e).length,r=function(e){return m(e).filter((e=>e.checked))}(e).length;return{checkedCheckboxes:r,totalCheckboxes:o}}(e);0===r?(o.indeterminate=!1,o.checked=!1):r===t?(o.indeterminate=!1,o.checked=!0):o.indeterminate=!0}}function m(e){return Array.from(e.querySelectorAll('gux-form-field-checkbox input:not(gux-form-field-checkbox[slot="group-checkbox"] input'))}var b={required:"Required"};const v=class{constructor(o){e(this,o),this.indicatorMark="required",this.required=!1,this.hasGroupError=!1,this.hasGroupHelp=!1,this.hasGroupLabelInfo=!1,this.disabled=!1}watchGroupError(e){const o=this.root.querySelectorAll("gux-form-field-checkbox");o&&o.forEach((o=>{o.hasGroupError=e}))}watchDisabled(){this.setDisabledCheckboxes()}onMutation(){this.hasGroupError=l(this.root,"group-error"),this.hasGroupHelp=l(this.root,"group-help"),this.hasGroupLabelInfo=l(this.root,"group-label-info")}async componentWillLoad(){this.getI18nValue=await s(this.root,b),this.hasGroupError=l(this.root,"group-error"),this.hasGroupHelp=l(this.root,"group-help"),this.hasGroupLabelInfo=l(this.root,"group-label-info"),this.setLabel(),this.setDisabledCheckboxes(),p(this.root)}componentDidLoad(){x(this.root,this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input'))}connectedCallback(){this.hasGroupError=l(this.root,"group-error"),this.hasGroupHelp=l(this.root,"group-help")}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}getGroupCheckboxElement(){return this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input')}setDisabledCheckboxes(){const e=this.root.querySelectorAll("gux-form-field-checkbox");e&&e.forEach((e=>{e.hasGroupDisabled=this.disabled}))}onMainCheckboxChange(){const e=this.getGroupCheckboxElement();var r;r=e.checked,m(this.root).forEach((e=>{e.checked===r||e.disabled||(e.checked=r,n(e,"input"),n(e,"change"))})),o(this.root)}setupNestedCheckboxes(){this.warnMultipleGroupCheckbox(),this.warnGroupCheckboxNameAttr();const e=this.getGroupCheckboxElement();e?this.root.classList.add("gux-group-checkbox"):this.root.classList.remove("gux-group-checkbox"),null==e||e.addEventListener("change",(()=>{this.onMainCheckboxChange()})),this.initialSetNestedCheckboxes(null==e?void 0:e.checked)}initialSetNestedCheckboxes(e){const o=Array.from(this.root.querySelectorAll('gux-form-field-checkbox input:not(gux-form-field-checkbox[slot="group-checkbox"] input)'));(null==o?void 0:o.length)&&o.forEach((o=>{o.addEventListener("change",(()=>{this.updateMainCheckbox()})),e&&!o.disabled&&(o.checked=!0)}))}warnMultipleGroupCheckbox(){const e=this.root.querySelectorAll('gux-form-field-checkbox[slot="group-checkbox"] input');(null==e?void 0:e.length)>1&&a(this.root,"Can only have one group checkbox")}warnGroupCheckboxNameAttr(){const e=this.getGroupCheckboxElement();(null==e?void 0:e.hasAttribute("name"))&&a(this.root,"Group checkbox should not have a name attribute")}updateMainCheckbox(){x(this.root,this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input')),o(this.root)}renderText(e,o=!1){if(o)return" "+e}render(){var e;return r(c,{key:"60f18cfe8373a9414a78715a4a906c04ff1c4915",labelPosition:"above"},r(g,{key:"8c98698b3f4041fa1d64cfa0bef2f44e769c0f07"},null===(e=this.label)||void 0===e?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(d(this.root,"group-error"),this.hasGroupError),this.renderText(d(this.root,"group-help"),this.hasGroupHelp),this.renderText(d(this.root,"group-label-info"),this.hasGroupLabelInfo)),r(u,{key:"89fe73ff9c4d41ce42a4ae5f3c0e526f4bd63b74",position:"above",required:this.required},r("slot",{key:"818e93d883540f758169f9345163d9593fa12613",name:"group-label",onSlotchange:()=>this.setLabel()}),r("gux-form-field-label-indicator",{key:"9cec2969a3b901a6c9a6b89810667a07912f091c",variant:this.indicatorMark,required:this.required}),r("slot",{key:"ba7b81204b7ef2c0b8273cd95e6949a1cc46ecf5",name:"group-label-info"})),r("slot",{key:"d14a2781f4fa7b7cba10d40ecaa7aaa2110a36fe",onSlotchange:()=>this.setupNestedCheckboxes(),name:"group-checkbox"}),r("slot",{key:"f32b310d6ee22de2c404ffa99919c075a6461bf0",onSlotchange:()=>this.updateMainCheckbox()}),r(h,{key:"3c9f8d6533a03a2a476f83f01668f66dc4397afa",show:this.hasGroupError},r("slot",{key:"8cb29288a2163deef3d4d76bd07784bf7fe35bb8",name:"group-error"})),r(f,{key:"aef3c9a01bfc98e02229c734b40e9458430530af",show:!this.hasGroupError&&this.hasGroupHelp},r("slot",{key:"a7b0d7876bf79720384a8c30d742e6c2d37116ed",name:"group-help"})))}setLabel(){this.label=this.root.querySelector('label[slot="group-label"]')}get root(){return t(this)}static get watchers(){return{hasGroupError:[{watchGroupError:0}],disabled:[{watchDisabled:0}]}}};(function(e,o,r,t){var i,l=arguments.length,a=l<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,r,t);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(l<3?i(a):l>3?i(o,r,a):i(o,r))||a);l>3&&a&&Object.defineProperty(o,r,a)})([i({childList:!0,subtree:!0})],v.prototype,"onMutation",null),v.style=".gux-form-field-fieldset-container{display:flex;min-inline-size:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-visual-label{display:inline-flex;flex:1 0 auto}.gux-form-field-visual-label ::slotted(label){min-inline-size:0}.gux-form-field-visual-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-visual-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-screenreader{display:none}.gux-form-field-screenreader-label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block}:host([disabled]) .gux-form-field-legend-label{opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(gux-form-field-checkbox){padding-block-start:var(--gse-ui-formControl-group-gapItems)}::slotted(gux-form-field-checkbox:first-of-type){padding-block-start:0}:host(.gux-group-checkbox) ::slotted(gux-form-field-checkbox){padding-inline-start:var(--gse-ui-checkbox-group-paddingLeft)}:host(.gux-group-checkbox) slot[name=group-checkbox]::slotted(gux-form-field-checkbox){padding-inline-start:0}.gux-form-field-legend-label{font-family:var(--gse-ui-formControl-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-formControl-label-text-fontWeight);line-height:var(--gse-ui-formControl-label-text-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}:host([disabled]) ::slotted(label){opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}";export{v as gux_form_field_checkbox_group_beta}
@@ -1 +1 @@
1
- import{r as t,h as s,H as i,a}from"./p-CW7z6RPd.js";import{s as e}from"./p-BMRf5pjV.js";import{t as o}from"./p-B4kgQ9Nr.js";const r=class{constructor(s){t(this,s),this.layout="default",this.switchItems=[]}onClick(t){t.stopPropagation();const s=t.target.closest("gux-switch-item");s&&this.value!==s.value&&(this.value=s.value,e(this.root,"input"),e(this.root,"change"))}slotChanged(){this.switchItems=Array.from(this.root.children)}componentWillLoad(){o(this.root,{variant:this.layout})}componentWillRender(){this.switchItems.forEach((t=>{t.selected=t.value===this.value}))}render(){return s(i,{key:"fe36d8a622c73799224a3c3dd572ad3c0a7c940a",role:"group",class:`gux-${this.layout}`},s("slot",{key:"d53ecae01a9cc7f07f9ff9812b503802783a7d17",onSlotchange:this.slotChanged.bind(this)}))}get root(){return a(this)}};r.style=":host{display:flex;align-items:flex-end}";export{r as gux_switch_legacy}
1
+ import{r as t,h as s,H as i,a}from"./p-CW7z6RPd.js";import{s as o}from"./p-BMRf5pjV.js";import{t as e}from"./p-DJF3J0o5.js";const h=class{constructor(s){t(this,s),this.layout="default",this.switchItems=[]}onClick(t){t.stopPropagation();const s=t.target.closest("gux-switch-item");s&&this.value!==s.value&&(this.value=s.value,o(this.root,"input"),o(this.root,"change"))}slotChanged(){this.switchItems=Array.from(this.root.children)}componentWillLoad(){e(this.root,{variant:this.layout})}componentWillRender(){this.switchItems.forEach((t=>{t.selected=t.value===this.value}))}render(){return s(i,{key:"fe36d8a622c73799224a3c3dd572ad3c0a7c940a",role:"group",class:`gux-${this.layout}`},s("slot",{key:"d53ecae01a9cc7f07f9ff9812b503802783a7d17",onSlotchange:this.slotChanged.bind(this)}))}get root(){return a(this)}};h.style=":host{display:flex;align-items:flex-end}";export{h as gux_switch_legacy}