genesys-spark-components 4.187.1 → 4.187.2

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 (436) 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-advanced-dropdown-legacy.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-avatar-beta.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-avatar-group-add-item-beta_3.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-avatar-group-item-beta.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-badge.cjs.entry.js +4 -4
  13. package/dist/cjs/gux-blank-state-beta.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-button_2.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-calendar.cjs.entry.js +4 -4
  20. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-cloud-logo-beta.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-cloud-logomark-beta.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-create-option.cjs.entry.js +4 -4
  28. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-datepicker.cjs.entry.js +18 -2
  31. package/dist/cjs/gux-day-beta.cjs.entry.js +2 -2
  32. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +5 -5
  35. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-file-list-item.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-file-beta.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-file.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-number_2.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-illustration-beta.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-inline-dropdown-beta.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-link-beta.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-logo-beta.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-logomark-beta.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-option-multi.cjs.entry.js +4 -4
  77. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-popover-beta.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-popover-list-beta.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-prompt-input-beta.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  88. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-rich-highlight-list-item.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-rich-style-list-item_3.cjs.entry.js +1 -1
  91. package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +1 -1
  92. package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +1 -1
  93. package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +1 -1
  95. package/dist/cjs/gux-rich-text-editor-beta.cjs.entry.js +1 -1
  96. package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +1 -1
  97. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +7 -2
  98. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  99. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +5 -5
  100. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
  101. package/dist/cjs/gux-side-panel-beta.cjs.entry.js +1 -1
  102. package/dist/cjs/gux-side-panel-header.cjs.entry.js +1 -1
  103. package/dist/cjs/gux-side-panel-heading.cjs.entry.js +1 -1
  104. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  105. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  106. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  107. package/dist/cjs/gux-status-indicator-beta.cjs.entry.js +1 -1
  108. package/dist/cjs/gux-step-title.cjs.entry.js +1 -1
  109. package/dist/cjs/gux-step.cjs.entry.js +1 -1
  110. package/dist/cjs/gux-stepper-beta.cjs.entry.js +1 -1
  111. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  112. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  113. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  114. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  115. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  116. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  117. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  118. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  119. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  120. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  121. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  122. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  123. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
  124. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  125. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  126. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  127. package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +1 -1
  128. package/dist/cjs/gux-tooltip-pointer-beta.cjs.entry.js +1 -1
  129. package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
  130. package/dist/cjs/gux-tree-beta.cjs.entry.js +1 -1
  131. package/dist/cjs/gux-tree-multi-beta.cjs.entry.js +1 -1
  132. package/dist/cjs/index-DJ9HGtdZ.js +4 -4
  133. package/dist/cjs/loader.cjs.js +1 -1
  134. package/dist/cjs/{usage-Ypiicskt.js → usage-C6iTAhYl.js} +1 -1
  135. package/dist/collection/components/beta/gux-day/gux-day.css +0 -12
  136. package/dist/collection/components/beta/gux-day/gux-day.js +1 -1
  137. package/dist/collection/components/beta/gux-screen-reader/gux-screen-reader.js +32 -1
  138. package/dist/collection/components/beta/gux-screen-reader/tests/gux-screen-reader.common.js +5 -0
  139. package/dist/collection/components/beta/gux-selector-cards/gux-selector-card/gux-selector-card.css +0 -8
  140. package/dist/collection/components/beta/gux-selector-cards/gux-selector-card/gux-selector-card.js +3 -3
  141. package/dist/collection/components/stable/gux-badge/gux-badge.css +0 -11
  142. package/dist/collection/components/stable/gux-badge/gux-badge.js +2 -2
  143. package/dist/collection/components/stable/gux-calendar/gux-calendar.css +0 -9
  144. package/dist/collection/components/stable/gux-calendar/gux-calendar.js +2 -2
  145. package/dist/collection/components/stable/gux-datepicker/gux-datepicker.js +17 -1
  146. package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi.css +0 -15
  147. package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi.js +3 -3
  148. package/dist/collection/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.css +0 -8
  149. package/dist/collection/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.js +3 -3
  150. package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.css +0 -8
  151. package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.js +3 -3
  152. package/dist/esm/genesys-webcomponents.js +1 -1
  153. package/dist/esm/gux-accordion.entry.js +1 -1
  154. package/dist/esm/gux-action-button.entry.js +1 -1
  155. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  156. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  157. package/dist/esm/gux-announce-beta.entry.js +1 -1
  158. package/dist/esm/gux-avatar-beta.entry.js +1 -1
  159. package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
  160. package/dist/esm/gux-avatar-group-add-item-beta_3.entry.js +1 -1
  161. package/dist/esm/gux-avatar-group-beta.entry.js +1 -1
  162. package/dist/esm/gux-avatar-group-item-beta.entry.js +1 -1
  163. package/dist/esm/gux-badge.entry.js +4 -4
  164. package/dist/esm/gux-blank-state-beta.entry.js +1 -1
  165. package/dist/esm/gux-blank-state.entry.js +1 -1
  166. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  167. package/dist/esm/gux-button-multi.entry.js +1 -1
  168. package/dist/esm/gux-button-slot.entry.js +1 -1
  169. package/dist/esm/gux-button_2.entry.js +1 -1
  170. package/dist/esm/gux-calendar.entry.js +4 -4
  171. package/dist/esm/gux-card.entry.js +1 -1
  172. package/dist/esm/gux-cloud-logo-beta.entry.js +1 -1
  173. package/dist/esm/gux-cloud-logomark-beta.entry.js +1 -1
  174. package/dist/esm/gux-column-manager.entry.js +1 -1
  175. package/dist/esm/gux-content-search.entry.js +1 -1
  176. package/dist/esm/gux-context-menu.entry.js +1 -1
  177. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  178. package/dist/esm/gux-create-option.entry.js +4 -4
  179. package/dist/esm/gux-date-beta.entry.js +1 -1
  180. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  181. package/dist/esm/gux-datepicker.entry.js +18 -2
  182. package/dist/esm/gux-day-beta.entry.js +2 -2
  183. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  184. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  185. package/dist/esm/gux-dropdown-multi.entry.js +5 -5
  186. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  187. package/dist/esm/gux-file-list-item.entry.js +1 -1
  188. package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
  189. package/dist/esm/gux-flyout-menu.entry.js +1 -1
  190. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +1 -1
  191. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  192. package/dist/esm/gux-form-field-color.entry.js +1 -1
  193. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  194. package/dist/esm/gux-form-field-file-beta.entry.js +1 -1
  195. package/dist/esm/gux-form-field-file.entry.js +1 -1
  196. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  197. package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
  198. package/dist/esm/gux-form-field-number_2.entry.js +1 -1
  199. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  200. package/dist/esm/gux-form-field-radio-group-beta.entry.js +1 -1
  201. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  202. package/dist/esm/gux-form-field-range.entry.js +1 -1
  203. package/dist/esm/gux-form-field-search.entry.js +1 -1
  204. package/dist/esm/gux-form-field-select.entry.js +1 -1
  205. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  206. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  207. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  208. package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
  209. package/dist/esm/gux-form-footer.entry.js +1 -1
  210. package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
  211. package/dist/esm/gux-icon.entry.js +1 -1
  212. package/dist/esm/gux-illustration-beta.entry.js +1 -1
  213. package/dist/esm/gux-inline-alert.entry.js +1 -1
  214. package/dist/esm/gux-inline-dropdown-beta.entry.js +1 -1
  215. package/dist/esm/gux-label-info-beta.entry.js +1 -1
  216. package/dist/esm/gux-link-beta.entry.js +1 -1
  217. package/dist/esm/gux-list.entry.js +1 -1
  218. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  219. package/dist/esm/gux-loading-message.entry.js +1 -1
  220. package/dist/esm/gux-logo-beta.entry.js +1 -1
  221. package/dist/esm/gux-logomark-beta.entry.js +1 -1
  222. package/dist/esm/gux-modal-legacy.entry.js +1 -1
  223. package/dist/esm/gux-modal-side-panel-beta.entry.js +1 -1
  224. package/dist/esm/gux-modal.entry.js +1 -1
  225. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  226. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  227. package/dist/esm/gux-option-multi.entry.js +4 -4
  228. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  229. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  230. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  231. package/dist/esm/gux-pagination.entry.js +1 -1
  232. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  233. package/dist/esm/gux-popover-beta.entry.js +1 -1
  234. package/dist/esm/gux-popover-list-beta.entry.js +1 -1
  235. package/dist/esm/gux-popover-list.entry.js +1 -1
  236. package/dist/esm/gux-prompt-input-beta.entry.js +1 -1
  237. package/dist/esm/gux-radial-loading.entry.js +1 -1
  238. package/dist/esm/gux-radial-progress.entry.js +1 -1
  239. package/dist/esm/gux-rating.entry.js +1 -1
  240. package/dist/esm/gux-rich-highlight-list-item.entry.js +1 -1
  241. package/dist/esm/gux-rich-style-list-item_3.entry.js +1 -1
  242. package/dist/esm/gux-rich-text-editor-action-link.entry.js +1 -1
  243. package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +1 -1
  244. package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +1 -1
  245. package/dist/esm/gux-rich-text-editor-action.entry.js +1 -1
  246. package/dist/esm/gux-rich-text-editor-beta.entry.js +1 -1
  247. package/dist/esm/gux-rich-text-editor-list.entry.js +1 -1
  248. package/dist/esm/gux-screen-reader-beta.entry.js +7 -2
  249. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  250. package/dist/esm/gux-selector-card-beta.entry.js +5 -5
  251. package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
  252. package/dist/esm/gux-side-panel-beta.entry.js +1 -1
  253. package/dist/esm/gux-side-panel-header.entry.js +1 -1
  254. package/dist/esm/gux-side-panel-heading.entry.js +1 -1
  255. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  256. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  257. package/dist/esm/gux-sort-control.entry.js +1 -1
  258. package/dist/esm/gux-status-indicator-beta.entry.js +1 -1
  259. package/dist/esm/gux-step-title.entry.js +1 -1
  260. package/dist/esm/gux-step.entry.js +1 -1
  261. package/dist/esm/gux-stepper-beta.entry.js +1 -1
  262. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  263. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  264. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  265. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  266. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  267. package/dist/esm/gux-table.entry.js +1 -1
  268. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  269. package/dist/esm/gux-tabs.entry.js +1 -1
  270. package/dist/esm/gux-tag.entry.js +1 -1
  271. package/dist/esm/gux-text-highlight.entry.js +1 -1
  272. package/dist/esm/gux-time-beta.entry.js +1 -1
  273. package/dist/esm/gux-time-picker.entry.js +1 -1
  274. package/dist/esm/gux-time-zone-beta.entry.js +1 -1
  275. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  276. package/dist/esm/gux-toast.entry.js +1 -1
  277. package/dist/esm/gux-toggle.entry.js +1 -1
  278. package/dist/esm/gux-tooltip-base-beta_2.entry.js +1 -1
  279. package/dist/esm/gux-tooltip-pointer-beta.entry.js +1 -1
  280. package/dist/esm/gux-tooltip_2.entry.js +1 -1
  281. package/dist/esm/gux-tree-beta.entry.js +1 -1
  282. package/dist/esm/gux-tree-multi-beta.entry.js +1 -1
  283. package/dist/esm/index-mm833MRp.js +4 -4
  284. package/dist/esm/loader.js +1 -1
  285. package/dist/esm/{usage-Bk9hX_6O.js → usage-B_5U73XW.js} +1 -1
  286. package/dist/genesys-webcomponents/genesys-webcomponents-legacy.css +1 -1
  287. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  288. package/dist/genesys-webcomponents/{p-951e0b12.entry.js → p-00d5cada.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-024c5bd7.entry.js → p-018bf1ab.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/{p-250391fe.entry.js → p-03333fcc.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/{p-f9f43ca9.entry.js → p-0644d23c.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-6111e683.entry.js → p-08dc9e6d.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-686a3f3c.entry.js → p-095d6cce.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-7421a1b7.entry.js → p-09ac47f1.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-d784f87d.entry.js → p-0ab37389.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-aff0c154.entry.js → p-0b010496.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-149c0790.entry.js → p-0be0b061.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-5f4d960f.entry.js → p-0bff7f73.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-d9ba561a.entry.js → p-0f0fe361.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-dc1fee05.entry.js → p-0f6bb470.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/{p-85aa96c9.entry.js → p-0f6d7178.entry.js} +1 -1
  302. package/dist/genesys-webcomponents/{p-15f3a969.entry.js → p-11dc6e8f.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-9840f9d8.entry.js → p-12ce6f7a.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-ede10314.entry.js → p-13154f56.entry.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-b3e3f1ec.entry.js → p-134ddaa6.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-2236e4f5.entry.js → p-1363318d.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/{p-37b38bcc.entry.js → p-14e5c6bd.entry.js} +1 -1
  308. package/dist/genesys-webcomponents/{p-56eefc7c.entry.js → p-1518057f.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-4d7bea11.entry.js → p-152bddd5.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-a6077763.entry.js → p-175abdfc.entry.js} +1 -1
  311. package/dist/genesys-webcomponents/{p-7a1645fa.entry.js → p-1cf4e79f.entry.js} +1 -1
  312. package/dist/genesys-webcomponents/{p-9607d0ae.entry.js → p-1de7a1f2.entry.js} +1 -1
  313. package/dist/genesys-webcomponents/{p-19040d1c.entry.js → p-1ecb422e.entry.js} +1 -1
  314. package/dist/genesys-webcomponents/{p-eb5a48e9.entry.js → p-2067287f.entry.js} +1 -1
  315. package/dist/genesys-webcomponents/{p-73b5d09a.entry.js → p-21c28a3b.entry.js} +1 -1
  316. package/dist/genesys-webcomponents/p-21dd96fd.entry.js +1 -0
  317. package/dist/genesys-webcomponents/{p-e902c696.entry.js → p-26cd1f16.entry.js} +1 -1
  318. package/dist/genesys-webcomponents/{p-5e6a3b79.entry.js → p-27ae3edf.entry.js} +1 -1
  319. package/dist/genesys-webcomponents/{p-bad949b8.entry.js → p-282a09b1.entry.js} +1 -1
  320. package/dist/genesys-webcomponents/{p-5cc0dc7b.entry.js → p-2a0a4599.entry.js} +1 -1
  321. package/dist/genesys-webcomponents/{p-77ddb8e9.entry.js → p-2bad24a0.entry.js} +1 -1
  322. package/dist/genesys-webcomponents/{p-7a3b6441.entry.js → p-311fdf37.entry.js} +1 -1
  323. package/dist/genesys-webcomponents/{p-743e60e7.entry.js → p-321cd88b.entry.js} +1 -1
  324. package/dist/genesys-webcomponents/{p-09146dba.entry.js → p-32aeb326.entry.js} +1 -1
  325. package/dist/genesys-webcomponents/{p-6419f6ef.entry.js → p-33574ddd.entry.js} +1 -1
  326. package/dist/genesys-webcomponents/{p-8ba208a6.entry.js → p-3370b803.entry.js} +1 -1
  327. package/dist/genesys-webcomponents/{p-fb7ec589.entry.js → p-33c720e1.entry.js} +1 -1
  328. package/dist/genesys-webcomponents/{p-4350f7bc.entry.js → p-3495f259.entry.js} +1 -1
  329. package/dist/genesys-webcomponents/{p-ea2ad326.entry.js → p-37bb3fcb.entry.js} +1 -1
  330. package/dist/genesys-webcomponents/{p-09de7dec.entry.js → p-3a671b77.entry.js} +1 -1
  331. package/dist/genesys-webcomponents/{p-99e2e425.entry.js → p-3bec06d0.entry.js} +1 -1
  332. package/dist/genesys-webcomponents/{p-ae3a0ed8.entry.js → p-3c191fde.entry.js} +1 -1
  333. package/dist/genesys-webcomponents/p-3c9277b9.entry.js +1 -0
  334. package/dist/genesys-webcomponents/{p-8a7fe03e.entry.js → p-41b7c02e.entry.js} +1 -1
  335. package/dist/genesys-webcomponents/p-4a435f18.entry.js +1 -0
  336. package/dist/genesys-webcomponents/{p-4d4de998.entry.js → p-4ac3fdc4.entry.js} +1 -1
  337. package/dist/genesys-webcomponents/{p-2501d280.entry.js → p-4aff9800.entry.js} +1 -1
  338. package/dist/genesys-webcomponents/{p-e92c1b8a.entry.js → p-4cf0a191.entry.js} +1 -1
  339. package/dist/genesys-webcomponents/{p-dbe2fed8.entry.js → p-4e526ed6.entry.js} +1 -1
  340. package/dist/genesys-webcomponents/{p-8d6ed0bb.entry.js → p-4efbba61.entry.js} +1 -1
  341. package/dist/genesys-webcomponents/p-599e49fc.entry.js +1 -0
  342. package/dist/genesys-webcomponents/{p-682398bc.entry.js → p-5a8917be.entry.js} +1 -1
  343. package/dist/genesys-webcomponents/{p-d7a2b347.entry.js → p-5a8d483c.entry.js} +1 -1
  344. package/dist/genesys-webcomponents/{p-20c7d0fb.entry.js → p-5dc230b1.entry.js} +1 -1
  345. package/dist/genesys-webcomponents/{p-47ba2493.entry.js → p-60c67e21.entry.js} +1 -1
  346. package/dist/genesys-webcomponents/p-6738c43a.entry.js +1 -0
  347. package/dist/genesys-webcomponents/{p-1ff8c4dc.entry.js → p-674bbdd9.entry.js} +1 -1
  348. package/dist/genesys-webcomponents/{p-77e16378.entry.js → p-68934600.entry.js} +1 -1
  349. package/dist/genesys-webcomponents/{p-18a14293.entry.js → p-6bfe864e.entry.js} +1 -1
  350. package/dist/genesys-webcomponents/{p-36af37ae.entry.js → p-7082e7b2.entry.js} +1 -1
  351. package/dist/genesys-webcomponents/{p-2d2af6d1.entry.js → p-7120b23d.entry.js} +1 -1
  352. package/dist/genesys-webcomponents/{p-68826892.entry.js → p-729875c6.entry.js} +1 -1
  353. package/dist/genesys-webcomponents/{p-780e2bbc.entry.js → p-77c7eed5.entry.js} +1 -1
  354. package/dist/genesys-webcomponents/{p-67ae6c31.entry.js → p-7a01b84f.entry.js} +1 -1
  355. package/dist/genesys-webcomponents/{p-9e7c72ef.entry.js → p-7af238b6.entry.js} +1 -1
  356. package/dist/genesys-webcomponents/{p-ca64f653.entry.js → p-7d236eff.entry.js} +1 -1
  357. package/dist/genesys-webcomponents/p-7d8f32b8.entry.js +1 -0
  358. package/dist/genesys-webcomponents/{p-72be9416.entry.js → p-820ebd57.entry.js} +1 -1
  359. package/dist/genesys-webcomponents/{p-0f3b84f0.entry.js → p-8380c98f.entry.js} +1 -1
  360. package/dist/genesys-webcomponents/{p-f26230e7.entry.js → p-86a1911e.entry.js} +1 -1
  361. package/dist/genesys-webcomponents/{p-1c41349d.entry.js → p-89b6a139.entry.js} +1 -1
  362. package/dist/genesys-webcomponents/{p-6747cb6b.entry.js → p-8b033585.entry.js} +1 -1
  363. package/dist/genesys-webcomponents/{p-abb54abc.entry.js → p-8c91a537.entry.js} +1 -1
  364. package/dist/genesys-webcomponents/{p-ac905094.entry.js → p-903c6506.entry.js} +1 -1
  365. package/dist/genesys-webcomponents/p-90afe444.entry.js +1 -0
  366. package/dist/genesys-webcomponents/{p-777c1a9e.entry.js → p-91c8e086.entry.js} +1 -1
  367. package/dist/genesys-webcomponents/{p-4b5e919b.entry.js → p-936df20f.entry.js} +1 -1
  368. package/dist/genesys-webcomponents/p-95b8da60.entry.js +1 -0
  369. package/dist/genesys-webcomponents/{p-c4dee7b9.entry.js → p-96ed3fae.entry.js} +1 -1
  370. package/dist/genesys-webcomponents/{p-abfec18e.entry.js → p-9d03007f.entry.js} +1 -1
  371. package/dist/genesys-webcomponents/{p-dd9d3bc9.entry.js → p-9fc56556.entry.js} +1 -1
  372. package/dist/genesys-webcomponents/{p-Bk9hX_6O.js → p-B_5U73XW.js} +1 -1
  373. package/dist/genesys-webcomponents/{p-873a4971.entry.js → p-a06f4841.entry.js} +1 -1
  374. package/dist/genesys-webcomponents/{p-0cbff9e9.entry.js → p-a403be28.entry.js} +1 -1
  375. package/dist/genesys-webcomponents/p-a48c397c.entry.js +1 -0
  376. package/dist/genesys-webcomponents/{p-3e50360d.entry.js → p-a8154cbf.entry.js} +1 -1
  377. package/dist/genesys-webcomponents/{p-d219d656.entry.js → p-a9534e06.entry.js} +1 -1
  378. package/dist/genesys-webcomponents/{p-df4ac31b.entry.js → p-aaddc6e3.entry.js} +1 -1
  379. package/dist/genesys-webcomponents/{p-2fcc608f.entry.js → p-aea87a1c.entry.js} +1 -1
  380. package/dist/genesys-webcomponents/{p-869cbfef.entry.js → p-afc8db57.entry.js} +1 -1
  381. package/dist/genesys-webcomponents/{p-e21679ab.entry.js → p-b20927f0.entry.js} +1 -1
  382. package/dist/genesys-webcomponents/{p-4485df35.entry.js → p-b233f48f.entry.js} +1 -1
  383. package/dist/genesys-webcomponents/{p-013e3c33.entry.js → p-b40de893.entry.js} +1 -1
  384. package/dist/genesys-webcomponents/{p-10260c86.entry.js → p-b6ea07cf.entry.js} +1 -1
  385. package/dist/genesys-webcomponents/p-b975d30b.entry.js +1 -0
  386. package/dist/genesys-webcomponents/{p-b2d1ecce.entry.js → p-bada9b52.entry.js} +1 -1
  387. package/dist/genesys-webcomponents/{p-367ea289.entry.js → p-becb24d3.entry.js} +1 -1
  388. package/dist/genesys-webcomponents/{p-791c159e.entry.js → p-c088cacc.entry.js} +1 -1
  389. package/dist/genesys-webcomponents/{p-545bc747.entry.js → p-c0d80c70.entry.js} +1 -1
  390. package/dist/genesys-webcomponents/{p-1bd94bc5.entry.js → p-c0fd4d69.entry.js} +1 -1
  391. package/dist/genesys-webcomponents/p-c3718d82.entry.js +1 -0
  392. package/dist/genesys-webcomponents/{p-9f492956.entry.js → p-c3958e6e.entry.js} +1 -1
  393. package/dist/genesys-webcomponents/{p-f781f503.entry.js → p-c7101d55.entry.js} +1 -1
  394. package/dist/genesys-webcomponents/{p-0dacef46.entry.js → p-c90e75e3.entry.js} +1 -1
  395. package/dist/genesys-webcomponents/{p-189457b6.entry.js → p-ccdcbc66.entry.js} +1 -1
  396. package/dist/genesys-webcomponents/{p-5d8114f4.entry.js → p-d28148fc.entry.js} +1 -1
  397. package/dist/genesys-webcomponents/{p-4e5d7bcb.entry.js → p-d34b3c6b.entry.js} +1 -1
  398. package/dist/genesys-webcomponents/{p-e5eea8aa.entry.js → p-d64815c3.entry.js} +1 -1
  399. package/dist/genesys-webcomponents/{p-c1db307f.entry.js → p-d98c2f60.entry.js} +1 -1
  400. package/dist/genesys-webcomponents/{p-9bfab72c.entry.js → p-da88b370.entry.js} +1 -1
  401. package/dist/genesys-webcomponents/{p-32f17393.entry.js → p-dc299352.entry.js} +1 -1
  402. package/dist/genesys-webcomponents/{p-5cff9d1c.entry.js → p-dcd246c2.entry.js} +1 -1
  403. package/dist/genesys-webcomponents/{p-4c2f1433.entry.js → p-dd50c042.entry.js} +1 -1
  404. package/dist/genesys-webcomponents/{p-04431ed6.entry.js → p-e115772d.entry.js} +1 -1
  405. package/dist/genesys-webcomponents/{p-e3671880.entry.js → p-e1b30c83.entry.js} +1 -1
  406. package/dist/genesys-webcomponents/{p-981cdb0b.entry.js → p-e21a3093.entry.js} +1 -1
  407. package/dist/genesys-webcomponents/{p-3e898719.entry.js → p-e5429730.entry.js} +1 -1
  408. package/dist/genesys-webcomponents/{p-e18193c8.entry.js → p-ec38cf55.entry.js} +1 -1
  409. package/dist/genesys-webcomponents/{p-78e4a090.entry.js → p-f3744aff.entry.js} +1 -1
  410. package/dist/genesys-webcomponents/{p-f26867a3.entry.js → p-f4d0b061.entry.js} +1 -1
  411. package/dist/genesys-webcomponents/{p-9eaaa1c0.entry.js → p-f69d1332.entry.js} +1 -1
  412. package/dist/genesys-webcomponents/{p-ea40f5b2.entry.js → p-f77a2e00.entry.js} +1 -1
  413. package/dist/genesys-webcomponents/{p-71d25073.entry.js → p-f9cf4f93.entry.js} +1 -1
  414. package/dist/genesys-webcomponents/{p-09f33fd5.entry.js → p-fb4b6da3.entry.js} +1 -1
  415. package/dist/genesys-webcomponents/{p-7b4ccc02.entry.js → p-fbf8f8e0.entry.js} +1 -1
  416. package/dist/genesys-webcomponents/{p-f9f5f4b9.entry.js → p-fc3edfaf.entry.js} +1 -1
  417. package/dist/genesys-webcomponents/{p-03897c15.entry.js → p-fc7b349f.entry.js} +1 -1
  418. package/dist/genesys-webcomponents/{p-ee857ca7.entry.js → p-fd437ac9.entry.js} +1 -1
  419. package/dist/stencil-wrapper.js +1 -1
  420. package/dist/types/components/beta/gux-screen-reader/gux-screen-reader.d.ts +4 -0
  421. package/dist/types/components/beta/gux-screen-reader/tests/gux-screen-reader.common.d.ts +1 -0
  422. package/dist/types/components/stable/gux-datepicker/gux-datepicker.d.ts +1 -0
  423. package/dist/types/components.d.ts +10 -0
  424. package/dist/types/stencil-wrapper.d.ts +1 -1
  425. package/package.json +6 -6
  426. package/dist/genesys-webcomponents/p-09649590.entry.js +0 -1
  427. package/dist/genesys-webcomponents/p-38fc0f14.entry.js +0 -1
  428. package/dist/genesys-webcomponents/p-3ecb4060.entry.js +0 -1
  429. package/dist/genesys-webcomponents/p-487b8a7f.entry.js +0 -1
  430. package/dist/genesys-webcomponents/p-53a84f93.entry.js +0 -1
  431. package/dist/genesys-webcomponents/p-9a096d50.entry.js +0 -1
  432. package/dist/genesys-webcomponents/p-a4d41223.entry.js +0 -1
  433. package/dist/genesys-webcomponents/p-b6e80839.entry.js +0 -1
  434. package/dist/genesys-webcomponents/p-d4135044.entry.js +0 -1
  435. package/dist/genesys-webcomponents/p-dbdc447e.entry.js +0 -1
  436. package/dist/genesys-webcomponents/p-ff393e3b.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,c as e,h as o,a as n}from"./p-mm833MRp.js";import{t as i}from"./p-Bk9hX_6O.js";import{b as r}from"./p-D_8CR3cJ.js";import{a}from"./p-De1NnCmO.js";import{f as s}from"./p-JHLuJ8Pb.js";import"./p-Cd4R0amv.js";var u={eraseBtnAria:"Clear search text",navigateNextBtn:"Highlight next match",navigatePreviousBtn:"Highlight previous match",totalMatches:"{currentMatch, number} of {matchCount, number}",clear:"Clear"};const c=class{constructor(o){t(this,o),this.guxcurrentmatchchanged=e(this,"guxcurrentmatchchanged",7),this.matchCount=0,this.currentMatch=0}async clear(){this.disabled||(this.matchCount=0,this.currentMatch=0,this.value="",this.resetInputSlottedElement(),this.emitCurrentMatchChanged(),this.inputSlottedElement.focus())}async componentWillLoad(){i(this.root),this.i18n=await r(this.root,u),this.inputSlottedElement=this.root.querySelector("input"),this.disabled=this.inputSlottedElement.disabled,this.value=this.inputSlottedElement.value,this.disabledObserver=a(this.inputSlottedElement,(t=>{this.disabled=t})),this.inputSlottedElement.addEventListener("input",(t=>this.onInput(t)))}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}render(){return o("div",{key:"73e492c9ba5084ab4a9be67042f9e2e6f9ecd2f0",class:{"gux-content-search":!0,"gux-disabled":this.disabled},onClick:()=>s(this.inputSlottedElement)},o("div",{key:"178f17dd1987bbcd12b610777ea84060de86c0ca",class:"gux-search-icon"},o("gux-icon",{key:"ccdaa14da8cf64122b5c736fc9cd16c7fc0a5a58",size:"small",decorative:!0,"icon-name":"fa/magnifying-glass-regular"})),o("slot",{key:"4d853841ba463423b737f9d9976d61902065a18a"}),this.getNavigationPanel())}getNavigationPanel(){if(this.showNavigationPanel()){const t=this.disableNavigationPanel();return o("div",{class:"gux-content-control-panel"},o("div",{class:{"gux-navigation-panel":!0,"gux-navigation-disabled":t},"aria-disabled":t.toString()},o("span",{class:{"gux-navigation-result":!0,"gux-navigation-result-disabled":t}},this.matchCountResult()),o("div",{class:"gux-navigation-buttons"},o("button",{type:"button",class:"gux-previous-button",title:this.i18n("navigatePreviousBtn"),"aria-label":this.i18n("navigatePreviousBtn"),onClick:()=>this.previousClick(),disabled:t},o("gux-icon",{decorative:!0,"icon-name":"fa/caret-up-solid",size:"small"})),o("button",{type:"button",class:"gux-next-button",title:this.i18n("navigateNextBtn"),"aria-label":this.i18n("navigateNextBtn"),onClick:()=>this.nextClick(),disabled:t},o("gux-icon",{decorative:!0,"icon-name":"fa/caret-down-solid",size:"small"}))),o("div",{class:"gux-navigation-divider"})),o("button",{class:"gux-clear-button",tabIndex:-1,type:"button",title:this.i18n("clear"),onClick:()=>{this.clear()},disabled:t},o("gux-icon",{"icon-name":"fa/xmark-large-regular",decorative:!0,size:"small"})))}return null}matchCountResult(){return this.i18n("totalMatches",{currentMatch:this.getNormalizedCurrentMatch(),matchCount:this.getNormalizedMatchCount()})}showNavigationPanel(){return""!==this.value}disableNavigationPanel(){return this.disabled||this.getNormalizedMatchCount()<=0}getNormalizedMatchCount(){return this.matchCount&&Number.isInteger(this.matchCount)&&this.matchCount>=0?Number(this.matchCount):0}getNormalizedCurrentMatch(){return this.currentMatch&&Number.isInteger(this.currentMatch)&&this.currentMatch>=0&&this.currentMatch<=this.getNormalizedMatchCount()&&this.getNormalizedMatchCount()>0?Number(this.currentMatch):0}resetInputSlottedElement(){this.inputSlottedElement.value="",this.inputSlottedElement.dispatchEvent(new InputEvent("input",{bubbles:!0,cancelable:!0})),this.inputSlottedElement.dispatchEvent(new InputEvent("change",{bubbles:!0}))}nextClick(){this.disableNavigationPanel()||(this.currentMatch=this.getNormalizedCurrentMatch()===this.getNormalizedMatchCount()?1:this.getNormalizedCurrentMatch()+1,this.emitCurrentMatchChanged())}previousClick(){this.disableNavigationPanel()||(this.currentMatch=1===this.getNormalizedCurrentMatch()||0===this.getNormalizedCurrentMatch()?this.getNormalizedMatchCount():this.getNormalizedCurrentMatch()-1,this.emitCurrentMatchChanged())}onInput(t){this.value=t.target.value}emitCurrentMatchChanged(){this.guxcurrentmatchchanged.emit(this.getNormalizedCurrentMatch())}get root(){return n(this)}};c.style=":host{display:inline-block;inline-size:var(--gse-ui-search-width);min-inline-size:var(--gse-ui-search-width)}::slotted(input[disabled]){opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(input){box-sizing:border-box;flex-shrink:1;flex-basis:100%;inline-size:100%;overflow:hidden;text-overflow:ellipsis;font-family:var(--gse-ui-search-counter-text-fontFamily);font-size:var(--gse-ui-search-counter-text-fontSize);font-weight:var(--gse-ui-search-counter-text-fontWeight);line-height:var(--gse-ui-search-counter-text-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);white-space:nowrap;outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:0;border-radius:0}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-populatedColor)}::slotted(input).gux-focused,::slotted(input):focus,::slotted(input):focus-visible{outline:none;border:0;box-shadow:none}.gux-content-search{box-sizing:border-box;display:flex;flex-direction:row;gap:var(--gse-ui-formControl-input-gap);inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);padding:var(--gse-ui-formControl-textarea-padding);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-content-search gux-truncate{display:flex;align-items:center}.gux-content-search.gux-disabled{pointer-events:none;cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-content-search:focus-visible,.gux-content-search: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-content-search:not(:disabled):not(.gux-disabled):hover{border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-content-search .gux-search-icon{display:flex;flex-shrink:0;align-items:center}.gux-content-search .gux-search-icon:disabled{pointer-events:none;cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-content-search .gux-search-icon gux-icon{color:var(--gse-ui-formControl-input-inputIcon-defaultColor)}.gux-content-search .gux-content-control-panel{box-sizing:border-box;display:flex;flex-grow:1;flex-shrink:0;gap:var(--gse-ui-formControl-input-gap);place-content:center flex-end;align-items:center;padding:0}.gux-content-search .gux-content-control-panel button{display:block;align-items:center;block-size:var(--gse-ui-search-counter-icon-height);padding:0;overflow:hidden;color:var(--gse-ui-search-counter-default-foregroundColor);cursor:pointer;outline:none;background:none;border:none;border-radius:var(--gse-ui-button-borderRadius)}.gux-content-search .gux-content-control-panel button:disabled{pointer-events:none;cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-content-search .gux-content-control-panel button:not(:disabled):hover,.gux-content-search .gux-content-control-panel button:not(:disabled):focus-visible{color:var(--gse-ui-search-counter-hover-foregroundColor)}.gux-content-search .gux-content-control-panel button:not(.gux-clear-button):focus-visible:enabled{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-content-search .gux-content-control-panel button.gux-clear-button{flex-shrink:0;align-items:center}.gux-content-search .gux-content-control-panel button.gux-clear-button gux-icon{inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}.gux-content-search .gux-content-control-panel .gux-navigation-disabled{pointer-events:auto;cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-content-search .gux-content-control-panel .gux-navigation-panel{display:flex;gap:var(--gse-ui-search-counter-gap);align-items:center}.gux-content-search .gux-content-control-panel .gux-navigation-panel .gux-navigation-divider{box-sizing:border-box;align-self:center;block-size:var(--gse-ui-search-counter-divider-height);color:var(--gse-ui-search-counter-default-foregroundColor);border:var(--gse-ui-search-counter-divider-border-width) var(--gse-ui-search-counter-divider-border-style) var(--gse-ui-search-counter-divider-border-color)}.gux-content-search .gux-content-control-panel .gux-navigation-panel .gux-navigation-buttons{display:flex;flex-direction:row}.gux-content-search .gux-content-control-panel .gux-navigation-panel .gux-navigation-result{align-items:center;color:var(--gse-ui-search-counter-default-foregroundColor);white-space:nowrap}.gux-content-search .gux-content-control-panel .gux-navigation-panel .gux-previous-button{flex-shrink:0;align-items:center}.gux-content-search .gux-content-control-panel .gux-navigation-panel .gux-next-button{flex-shrink:0;align-items:center}";export{c as gux_content_search}
1
+ import{r as t,c as e,h as o,a as n}from"./p-mm833MRp.js";import{t as i}from"./p-B_5U73XW.js";import{b as r}from"./p-D_8CR3cJ.js";import{a}from"./p-De1NnCmO.js";import{f as s}from"./p-JHLuJ8Pb.js";import"./p-Cd4R0amv.js";var u={eraseBtnAria:"Clear search text",navigateNextBtn:"Highlight next match",navigatePreviousBtn:"Highlight previous match",totalMatches:"{currentMatch, number} of {matchCount, number}",clear:"Clear"};const c=class{constructor(o){t(this,o),this.guxcurrentmatchchanged=e(this,"guxcurrentmatchchanged",7),this.matchCount=0,this.currentMatch=0}async clear(){this.disabled||(this.matchCount=0,this.currentMatch=0,this.value="",this.resetInputSlottedElement(),this.emitCurrentMatchChanged(),this.inputSlottedElement.focus())}async componentWillLoad(){i(this.root),this.i18n=await r(this.root,u),this.inputSlottedElement=this.root.querySelector("input"),this.disabled=this.inputSlottedElement.disabled,this.value=this.inputSlottedElement.value,this.disabledObserver=a(this.inputSlottedElement,(t=>{this.disabled=t})),this.inputSlottedElement.addEventListener("input",(t=>this.onInput(t)))}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}render(){return o("div",{key:"73e492c9ba5084ab4a9be67042f9e2e6f9ecd2f0",class:{"gux-content-search":!0,"gux-disabled":this.disabled},onClick:()=>s(this.inputSlottedElement)},o("div",{key:"178f17dd1987bbcd12b610777ea84060de86c0ca",class:"gux-search-icon"},o("gux-icon",{key:"ccdaa14da8cf64122b5c736fc9cd16c7fc0a5a58",size:"small",decorative:!0,"icon-name":"fa/magnifying-glass-regular"})),o("slot",{key:"4d853841ba463423b737f9d9976d61902065a18a"}),this.getNavigationPanel())}getNavigationPanel(){if(this.showNavigationPanel()){const t=this.disableNavigationPanel();return o("div",{class:"gux-content-control-panel"},o("div",{class:{"gux-navigation-panel":!0,"gux-navigation-disabled":t},"aria-disabled":t.toString()},o("span",{class:{"gux-navigation-result":!0,"gux-navigation-result-disabled":t}},this.matchCountResult()),o("div",{class:"gux-navigation-buttons"},o("button",{type:"button",class:"gux-previous-button",title:this.i18n("navigatePreviousBtn"),"aria-label":this.i18n("navigatePreviousBtn"),onClick:()=>this.previousClick(),disabled:t},o("gux-icon",{decorative:!0,"icon-name":"fa/caret-up-solid",size:"small"})),o("button",{type:"button",class:"gux-next-button",title:this.i18n("navigateNextBtn"),"aria-label":this.i18n("navigateNextBtn"),onClick:()=>this.nextClick(),disabled:t},o("gux-icon",{decorative:!0,"icon-name":"fa/caret-down-solid",size:"small"}))),o("div",{class:"gux-navigation-divider"})),o("button",{class:"gux-clear-button",tabIndex:-1,type:"button",title:this.i18n("clear"),onClick:()=>{this.clear()},disabled:t},o("gux-icon",{"icon-name":"fa/xmark-large-regular",decorative:!0,size:"small"})))}return null}matchCountResult(){return this.i18n("totalMatches",{currentMatch:this.getNormalizedCurrentMatch(),matchCount:this.getNormalizedMatchCount()})}showNavigationPanel(){return""!==this.value}disableNavigationPanel(){return this.disabled||this.getNormalizedMatchCount()<=0}getNormalizedMatchCount(){return this.matchCount&&Number.isInteger(this.matchCount)&&this.matchCount>=0?Number(this.matchCount):0}getNormalizedCurrentMatch(){return this.currentMatch&&Number.isInteger(this.currentMatch)&&this.currentMatch>=0&&this.currentMatch<=this.getNormalizedMatchCount()&&this.getNormalizedMatchCount()>0?Number(this.currentMatch):0}resetInputSlottedElement(){this.inputSlottedElement.value="",this.inputSlottedElement.dispatchEvent(new InputEvent("input",{bubbles:!0,cancelable:!0})),this.inputSlottedElement.dispatchEvent(new InputEvent("change",{bubbles:!0}))}nextClick(){this.disableNavigationPanel()||(this.currentMatch=this.getNormalizedCurrentMatch()===this.getNormalizedMatchCount()?1:this.getNormalizedCurrentMatch()+1,this.emitCurrentMatchChanged())}previousClick(){this.disableNavigationPanel()||(this.currentMatch=1===this.getNormalizedCurrentMatch()||0===this.getNormalizedCurrentMatch()?this.getNormalizedMatchCount():this.getNormalizedCurrentMatch()-1,this.emitCurrentMatchChanged())}onInput(t){this.value=t.target.value}emitCurrentMatchChanged(){this.guxcurrentmatchchanged.emit(this.getNormalizedCurrentMatch())}get root(){return n(this)}};c.style=":host{display:inline-block;inline-size:var(--gse-ui-search-width);min-inline-size:var(--gse-ui-search-width)}::slotted(input[disabled]){opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(input){box-sizing:border-box;flex-shrink:1;flex-basis:100%;inline-size:100%;overflow:hidden;text-overflow:ellipsis;font-family:var(--gse-ui-search-counter-text-fontFamily);font-size:var(--gse-ui-search-counter-text-fontSize);font-weight:var(--gse-ui-search-counter-text-fontWeight);line-height:var(--gse-ui-search-counter-text-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);white-space:nowrap;outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:0;border-radius:0}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-populatedColor)}::slotted(input).gux-focused,::slotted(input):focus,::slotted(input):focus-visible{outline:none;border:0;box-shadow:none}.gux-content-search{box-sizing:border-box;display:flex;flex-direction:row;gap:var(--gse-ui-formControl-input-gap);inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);padding:var(--gse-ui-formControl-textarea-padding);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-content-search gux-truncate{display:flex;align-items:center}.gux-content-search.gux-disabled{pointer-events:none;cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-content-search:focus-visible,.gux-content-search: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-content-search:not(:disabled):not(.gux-disabled):hover{border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-content-search .gux-search-icon{display:flex;flex-shrink:0;align-items:center}.gux-content-search .gux-search-icon:disabled{pointer-events:none;cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-content-search .gux-search-icon gux-icon{color:var(--gse-ui-formControl-input-inputIcon-defaultColor)}.gux-content-search .gux-content-control-panel{box-sizing:border-box;display:flex;flex-grow:1;flex-shrink:0;gap:var(--gse-ui-formControl-input-gap);place-content:center flex-end;align-items:center;padding:0}.gux-content-search .gux-content-control-panel button{display:block;align-items:center;block-size:var(--gse-ui-search-counter-icon-height);padding:0;overflow:hidden;color:var(--gse-ui-search-counter-default-foregroundColor);cursor:pointer;outline:none;background:none;border:none;border-radius:var(--gse-ui-button-borderRadius)}.gux-content-search .gux-content-control-panel button:disabled{pointer-events:none;cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-content-search .gux-content-control-panel button:not(:disabled):hover,.gux-content-search .gux-content-control-panel button:not(:disabled):focus-visible{color:var(--gse-ui-search-counter-hover-foregroundColor)}.gux-content-search .gux-content-control-panel button:not(.gux-clear-button):focus-visible:enabled{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-content-search .gux-content-control-panel button.gux-clear-button{flex-shrink:0;align-items:center}.gux-content-search .gux-content-control-panel button.gux-clear-button gux-icon{inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}.gux-content-search .gux-content-control-panel .gux-navigation-disabled{pointer-events:auto;cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-content-search .gux-content-control-panel .gux-navigation-panel{display:flex;gap:var(--gse-ui-search-counter-gap);align-items:center}.gux-content-search .gux-content-control-panel .gux-navigation-panel .gux-navigation-divider{box-sizing:border-box;align-self:center;block-size:var(--gse-ui-search-counter-divider-height);color:var(--gse-ui-search-counter-default-foregroundColor);border:var(--gse-ui-search-counter-divider-border-width) var(--gse-ui-search-counter-divider-border-style) var(--gse-ui-search-counter-divider-border-color)}.gux-content-search .gux-content-control-panel .gux-navigation-panel .gux-navigation-buttons{display:flex;flex-direction:row}.gux-content-search .gux-content-control-panel .gux-navigation-panel .gux-navigation-result{align-items:center;color:var(--gse-ui-search-counter-default-foregroundColor);white-space:nowrap}.gux-content-search .gux-content-control-panel .gux-navigation-panel .gux-previous-button{flex-shrink:0;align-items:center}.gux-content-search .gux-content-control-panel .gux-navigation-panel .gux-next-button{flex-shrink:0;align-items:center}";export{c as gux_content_search}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,a as r}from"./p-mm833MRp.js";import{a as s,c as o,o as a,f as n}from"./p-C8aV-TzO.js";import{r as u}from"./p-D9jKBqIb.js";import{a as d}from"./p-Bg4q97BS.js";import{f as l,a as c,b as h,c as p}from"./p-aKaDsw_5.js";import{O as g}from"./p-CuMZPTZF.js";import{t as f}from"./p-B_5U73XW.js";import{b as x}from"./p-D_8CR3cJ.js";import{g as b,a as m}from"./p-DvPw3gUX.js";import{u as k}from"./p-BgaA4g76.js";import"./p-Cd4R0amv.js";import"./p-DCZG2J0G.js";var v={start:"Start",end:"End",date:"Date",toggleCalendar:"Toggle calendar view"};function y(t,e){let i=new Date(e.getTime());return i.setDate(i.getDate()+t),t<0?i.getDate()>e.getDate()&&(i=new Date(e.getFullYear(),e.getMonth()+1,0,0,0,0)):i.getDate()<e.getDate()&&i.setMonth(i.getMonth()-1),i}function C(t,e){const i=new Date(e.valueOf()),r=function(t){let e=t;for(;e<0;)e+=12;return e%=12,e}(i.getMonth()+t);return i.setMonth(r),i.setFullYear(e.getFullYear()),i.getMonth()!==r?C(t,y(-1,e)):i}function w(t,e){const i=t[e];return i&&"/"!==i?i:t[e-1]}function D(t){return t.match(/\W/)[0]}function F(t){const e=D(t);return t.split(e).reduce(((t,e)=>t.concat(e[0])),[])}function R(t,e){return{selectionStart:t.indexOf(e),selectionEnd:t.lastIndexOf(e)+1}}const z=class{constructor(i){t(this,i),this.input=e(this,"input",7),this.yearFormat="yyyy",this.isSelectingRangeWithMouse=!1,this.lastYear=(new Date).getFullYear(),this.startInputId=u("gux-datepicker"),this.endInputId=u("gux-datepicker"),this.label="",this.numberOfMonths=1,this.minDate="",this.maxDate="",this.mode="single",this.disabled=!1,this.labelPosition="beside",this.formattedValue="",this.toFormattedValue="",this.active=!1,this.pressedKeys=[]}watchValue(){this.format&&this.updateDate()}watchMinDate(t){this.minDateDate=t?l(t):null}watchMaxDate(t){this.maxDateDate=t?l(t):null}watchFormat(t){t.includes("yyyy")||(this.yearFormat="yy"),this.intervalOrder=F(t),this.lastIntervalRange=this.initialIntervalRange}watchActiveCalendar(t){if(!0===t){const t=l(this.value.split("/")[0]);this.calendarElement.resetCalendarView(t)}}onKeyDown(t){if(this.isInputFieldEvent(t))switch(this.focusedField=this.getInputFieldFromEvent(t),t.key){case"Enter":case"Escape":this.focusedField.blur(),this.active=!1;break;case"Tab":break;case"ArrowDown":t.preventDefault(),this.increment(-1),this.setCursorRange();break;case"ArrowUp":t.preventDefault(),this.increment(1),this.setCursorRange();break;case"ArrowLeft":{t.preventDefault();const e=function(t,e){const i=F(t),r=w(t,e.selectionStart),s=i.indexOf(r);return R(t,i[(s+i.length-1)%i.length])}(this.format,this.intervalRange);this.setIntervalRange(e),this.setCursorRange(),this.pressedKeys.length=0;break}case"ArrowRight":{t.preventDefault();const e=function(t,e){const i=F(t),r=w(t,e.selectionStart),s=i.indexOf(r);return R(t,i[(s+1)%i.length])}(this.format,this.intervalRange);this.setIntervalRange(e),this.setCursorRange(),this.pressedKeys.length=0;break}default:t.preventDefault(),this.isSelectingRangeWithMouse||(this.setIntervalRange({selectionStart:this.focusedField.selectionStart,selectionEnd:this.focusedField.selectionEnd}),this.updateIntervalValue(t),this.setCursorRange())}else switch(t.key){case"Enter":case"Escape":case" ":{this.active=!1;const t=this.root.shadowRoot.querySelector(".gux-calendar-toggle-button");d((()=>{t.focus()}));break}case"Tab":this.active&&(this.active=!1)}}onMouseDown(t){this.isInputFieldEvent(t)&&(this.isSelectingRangeWithMouse=!0);const e=t.composedPath(),i=e.includes(this.datepickerElement);Array.from(this.root.shadowRoot.querySelectorAll(".gux-calendar-toggle-button")).every((t=>!e.includes(t)))&&(this.active=i)}onClickOutside(){this.active=!1,this.pressedKeys.length=0}onInputFocusIn(t){this.focusedField=this.getInputFieldFromEvent(t),this.isSelectingRangeWithMouse||d((()=>this.setRange()))}onInputFocusOut(){this.lastIntervalRange=this.initialIntervalRange}onInputMouseUp(t){t.preventDefault(),this.lastIntervalRange=R(this.format,w(this.format,this.focusedField.selectionStart)),this.setRange(),this.isSelectingRangeWithMouse=!1}isInputFieldEvent(t){const e=t.composedPath();return e.includes(this.inputElement)||e.includes(this.toInputElement)}get initialIntervalRange(){return R(this.format,w(this.format,0))}getInputFieldFromEvent(t){return t.composedPath()[0]}updateIntervalValue(t){this.pressedKeys.push(t.key);const e=parseInt(t.key,10);if(!isNaN(e)){const i=this.focusedField.value.slice(this.focusedField.selectionStart,this.focusedField.selectionEnd);"y"===w(this.format,this.focusedField.selectionStart)&&"yyyy"===this.yearFormat?this.typeYearValue(i,t.key):this.canSetDate(e)&&this.pressedKeys.length>=2?(this.updateSelection(this.focusedField,`${i[1]}${t.key}`),this.setValue()):(this.updateSelection(this.focusedField,`0${t.key}`.replace("00","01")),this.setValue())}}updateSelection(t,e){t.value=t.value.substr(0,this.intervalRange.selectionStart)+e+t.value.substr(this.intervalRange.selectionEnd)}getCalendarLabels(){return function(t,e,i){const r=t.split(",").map((t=>t.trim()));return"range"===e?[r[0]||i[0],r[1]||i[1]]:"range"===e||r[0]?[r[0]]:[i[2]]}(this.label,this.mode,[this.i18n("start"),this.i18n("end"),this.i18n("date")])}stringToDate(t){const e=D(this.format),i=this.format.toLowerCase().split(e),r=t.split(e),s=parseInt(r[i.indexOf(this.yearFormat)],10),o=parseInt(r[i.indexOf("mm")],10)-1,a=parseInt(r[i.indexOf("dd")],10),n=new Date(s,o,a);return"yy"===this.yearFormat&&n.getFullYear()<1970&&this.lastYear>1970&&n.setFullYear(n.getFullYear()+100),n}onCalendarSelect(t){this.value=t.target.value,t.stopPropagation(),this.input.emit(this.value),this.updateDate(),this.inputElement.value=this.formattedValue,"range"===this.mode&&(this.toInputElement.value=this.toFormattedValue),document.activeElement===this.inputElement&&document.activeElement===this.toInputElement||(this.active=!1)}setValue(){if("range"===this.mode){const t=this.stringToDate(this.inputElement.value),e=this.stringToDate(this.toInputElement.value);if(!this.isValidDateFormat(t)||!this.isValidDateFormat(e))return;this.value=c(t,e),this.updateDate(),this.calendarElement.setValue([t,e])}else{const t=this.stringToDate(this.inputElement.value);if(!this.isValidDateFormat(t))return;this.value=h(t),this.updateDate(),this.calendarElement.setValue(t)}this.input.emit(this.value)}setRange(){this.setIntervalRange(this.lastIntervalRange),this.setCursorRange()}typeYearValue(t,e){" "!==t[0]?this.updateSelection(this.focusedField,` ${e}`):(this.updateSelection(this.focusedField,`${t.substr(1)}${e}`),(t.substr(1)+e).includes(" ")||this.setValue())}canSetDate(t){const e=parseInt([this.focusedField.value[this.intervalRange.selectionEnd-1].toString(),t].join(""),10);if(e)switch(w(this.format,this.focusedField.selectionStart)){case"d":{const t=l(this.value);if(e<=new Date(t.getFullYear(),t.getMonth()+1,0).getDate())return!0;break}case"m":if(e<=12)return!0;break;case"y":return!0}return!1}getMapAndRegexFromField(t){const e={dd:`0${t.getDate()}`.slice(-2),mm:`0${t.getMonth()+1}`.slice(-2)};return"yyyy"===this.yearFormat?e.yyyy=t.getFullYear().toString():e.yy=t.getFullYear().toString().slice(-2),{map:e,regexp:new RegExp("yyyy"===this.yearFormat?"dd|mm|yyyy":"dd|mm|yy","gi")}}isValidDateFormat(t){const{map:e}=this.getMapAndRegexFromField(t);return"yyyy"===this.yearFormat?4===e.yyyy.length:2===e.yy.length}updateDate(){if("range"===this.mode){const[t,e]=p(this.value),{map:i,regexp:r}=this.getMapAndRegexFromField(t);this.formattedValue=this.format.replace(r,(t=>i[t]));const{map:s,regexp:o}=this.getMapAndRegexFromField(e);this.toFormattedValue=this.format.replace(o,(t=>s[t]))}else{const t=l(this.value),{map:e,regexp:i}=this.getMapAndRegexFromField(t);this.formattedValue=this.format.replace(i,(t=>e[t]))}}setCursorRange(){this.intervalRange&&(this.focusedField.setSelectionRange(0,100),this.focusedField.setSelectionRange(this.intervalRange.selectionStart,this.intervalRange.selectionEnd))}toggleCalendar(){this.active=!this.active,this.active&&d((()=>{this.calendarElement.focusPreviewDate()}))}setIntervalRange(t){this.intervalRange=t}getCombinedFocusedDateValue(){return"range"===this.mode?this.getRangeFocusedDateValue():this.getFocusedDateValue()}getFocusedDateValue(){return l(this.value)}getRangeFocusedDateValue(){const[t,e]=p(this.value);return this.focusedField===this.inputElement?t:e}increment(t){const e=w(this.format,this.focusedField.selectionStart),i=this.getCombinedFocusedDateValue();let r;switch(e){case"d":r=y(t,i);break;case"m":r=C(t,i);break;case"y":r=function(t,e){const i=new Date(e.valueOf());return i.setFullYear(e.getFullYear()+t),i}(t,i)}var s,o,a;s=r,o=this.minDateDate,((a=this.maxDateDate)&&a<s||o&&o>s)&&(r=i),this.lastYear=r.getFullYear(),this.setIntervalRange({selectionStart:this.focusedField.selectionStart,selectionEnd:this.focusedField.selectionEnd}),this.focusedField.value=function(t,e){const i=D(e),r=e.split(i).map((e=>{switch(e[0]){case"d":return function(t){return`0${t.getDate().toString()}`.slice(-2)}(t);case"m":return function(t){return`0${(t.getMonth()+1).toString()}`.slice(-2)}(t);case"y":return function(t,e){return"yyyy"===e?t.getFullYear().toString():t.getFullYear().toString().slice(-2)}(t,e)}})).join(i);return r}(r,this.format),this.setValue()}async componentWillLoad(){if(f(this.root,{variant:this.mode}),this.i18n=await x(this.root,v),this.format=k()?this.format||b(m(this.root)):this.format||"mm/dd/yyyy",this.watchMinDate(this.minDate),this.watchMaxDate(this.maxDate),this.watchFormat(this.format),!this.value){const t=new Date;t.setHours(0,0,0,0),this.value="range"===this.mode?c(t,t):h(t),"range"===this.mode&&this.numberOfMonths<2&&(this.numberOfMonths=2)}this.updateDate()}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.cleanupUpdatePosition=s(this.datepickerElement,this.calendarElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0})}updatePosition(){o(this.datepickerElement,this.calendarElement,{strategy:"fixed",placement:"bottom-start",middleware:[a({crossAxis:-3}),n({fallbackStrategy:"initialPlacement"})]}).then((({x:t,y:e})=>{Object.assign(this.calendarElement.style,{left:`${t}px`,top:`${e}px`})}))}componentDidUpdate(){this.active?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}renderCalendarToggleButton(){return i("button",{class:"gux-calendar-toggle-button",type:"button",onClick:()=>this.toggleCalendar(),"aria-expanded":this.active.toString(),"aria-label":this.i18n("toggleCalendar"),disabled:this.disabled},i("gux-icon",{decorative:!0,"icon-name":"fa/calendar-regular",size:"small"}))}renderCalendar(){return i("gux-calendar",{tabindex:"-1",ref:t=>this.calendarElement=t,value:this.value,mode:this.mode,onCalendarSelect:t=>this.onCalendarSelect(t),minDate:this.minDate,maxDate:this.maxDate,numberOfMonths:this.numberOfMonths,startDayOfWeek:this.startDayOfWeek})}renderStartDateField(){return i("div",{class:{"gux-datepicker-field":!0,"gux-above":"above"===this.labelPosition}},i("label",{htmlFor:this.startInputId,class:{"gux-datepicker-field-label":!0,"gux-sr-only":"single"===this.mode&&!this.label}},this.getCalendarLabels()[0]),i("div",{class:"gux-datepicker-field-input"},i("div",{class:"gux-datepicker-field-text-input"},i("input",{id:this.startInputId,type:"text",onClick:t=>this.onInputMouseUp(t),onFocusin:t=>this.onInputFocusIn(t),onFocusout:()=>this.onInputFocusOut(),ref:t=>this.inputElement=t,value:this.formattedValue,disabled:this.disabled}),this.renderCalendarToggleButton()),this.renderCalendar()))}renderEndDateField(){return"single"===this.mode?null:i("div",{class:{"gux-datepicker-field":!0,"gux-above":"above"===this.labelPosition}},i("label",{htmlFor:this.endInputId,class:"gux-datepicker-field-label"},this.getCalendarLabels()[1]),i("div",{class:"gux-datepicker-field-input"},i("div",{class:"gux-datepicker-field-text-input"},i("input",{id:this.endInputId,type:"text",ref:t=>this.toInputElement=t,onMouseUp:t=>this.onInputMouseUp(t),onFocusin:t=>this.onInputFocusIn(t),onFocusout:()=>this.onInputFocusOut(),value:this.toFormattedValue,disabled:this.disabled}),this.renderCalendarToggleButton())))}render(){return i("div",{key:"87ba4fb1f5dab50e710194e0a083729097ce5c23",class:{"gux-datepicker":!0,"gux-active":this.active,"gux-disabled":this.disabled},ref:t=>this.datepickerElement=t},this.renderStartDateField(),this.renderEndDateField())}get root(){return r(this)}static get watchers(){return{value:["watchValue"],minDate:["watchMinDate"],maxDate:["watchMaxDate"],format:["watchFormat"],active:["watchActiveCalendar"]}}};(function(t,e,i,r){var s,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)})([g({triggerEvents:"mousedown"})],z.prototype,"onClickOutside",null),z.style=":host{display:block;inline-size:fit-content}.gux-datepicker{display:flex}.gux-datepicker.gux-disabled{pointer-events:none;cursor:default}.gux-datepicker.gux-disabled .gux-datepicker-field .gux-datepicker-field-input{opacity:var(--gse-ui-datePicker-disabled-opacity)}.gux-datepicker .gux-datepicker-field{display:inline-flex;flex-direction:row;flex-wrap:nowrap;place-content:flex-start flex-start;align-items:center;inline-size:100%}.gux-datepicker .gux-datepicker-field~.gux-datepicker-field{margin-inline-start:var(--gse-ui-datePicker-range-gap)}.gux-datepicker .gux-datepicker-field.gux-above{flex-direction:column;align-items:self-start}.gux-datepicker .gux-datepicker-field.gux-above .gux-datepicker-field-input{margin-block-start:0}.gux-datepicker .gux-datepicker-field.gux-above .gux-datepicker-field-label{margin-inline-end:0}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-label{flex:0 1 auto;align-self:auto;order:0;margin-inline-end:var(--gse-ui-formControl-helper-gap);font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);padding:var(--gse-ui-formControl-input-padding);color:var(--gse-ui-formControl-input-populatedColor);white-space:nowrap;background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input:hover{border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input:focus-within{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius)}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input.gux-active{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius)}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input{flex:1 1 auto;align-self:auto;order:0;inline-size:calc(var(--gse-ui-calendarMenu-day-input-width) - var(--gse-ui-icon-small-size));inline-size:100%;padding:0;overflow:hidden;font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-search-cancel-button,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-search-results-button,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button{display:flex;flex:0 1 auto;align-items:center;align-self:auto;justify-content:center;order:0;padding:0;color:var(--gse-ui-formControl-input-inputIcon-iconEndColor);outline:none;background:transparent;border:none;border-radius:var(--gse-ui-actionButton-borderRadius)}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:focus-within{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius);outline-offset:var(--gse-ui-datePicker-focusCalendar-gap);border:none;border-radius:var(--gse-ui-calendarMenu-month-calendarButton-focusBorderRadius)}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):focus-visible,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):hover{color:var(--gse-ui-datePicker-iconHover);cursor:pointer}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input gux-calendar{position:fixed;z-index:var(--gse-semantic-zIndex-popup);display:none}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button{color:var(--gse-ui-formControl-input-inputIcon-iconEndColor)}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):focus-visible,.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):hover{color:var(--gse-ui-formControl-input-inputIcon-iconEndColor)}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input gux-calendar{display:block}.gux-sr-only{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{z as gux_datepicker}
@@ -1 +1 @@
1
- import{r as e,h as t,a as o}from"./p-mm833MRp.js";import{O as i}from"./p-1mmdDpx8.js";import{h as r}from"./p-qzV3vtOw.js";import{t as l}from"./p-Bk9hX_6O.js";import{G as a,a as s}from"./p-BkM3RdTO.js";import{G as f,a as n}from"./p-Bxg2lxW0.js";import{a as h,g as p,v as u}from"./p-DHLxhscH.js";import{p as d}from"./p-PYfNAK8p.js";import{o as m}from"./p-De1NnCmO.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";const g=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=r(this.root,"error"),this.hasHelp=r(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)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=r(this.root,"error"),this.hasHelp=r(this.root,"help"),this.labelInfo=this.root.querySelector("[slot=label-info]"),l(this.root,{variant:this.variant})}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=p(this.root,'input[type="file"][slot="input"]'),d(this.input),this.required=this.input.required,this.requiredObserver=m(this.input,(e=>{this.required=e})),u(this.root,this.input)}get variant(){return`fileInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}render(){return t(n,{key:"87fd01d5f4f842e4a60a3fd8903b1f47a25fa87c",labelPosition:this.computedLabelPosition},t(f,{key:"768146a270b2f9c795818e50eb346e9ef4c0f18e",position:this.computedLabelPosition,required:this.required},t("slot",{key:"41d509f25e61218e8ff44205e0066efc9871c48b",name:"label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"b18a6439eb3e331eadc8befe7d4a6625e5a2fe78",variant:this.indicatorMark,required:this.required}),t("slot",{key:"019080783c0879090b3b20df3c34a82fee01366f",name:"label-info"})),t("div",{key:"09756ffd657327ec2bc2a8ae5e39b2a5cf33ecda",class:"gux-input-and-error-container"},t("slot",{key:"ff1bffdc217f9eff4caead89b0ec19179e9c0669",name:"input",onSlotchange:()=>this.setInput()}),t(a,{key:"7623a79ff314b2286cdcf03c00e964e317627414",show:this.hasError},t("slot",{key:"1b29ff15208bec388a11900e21f81e5b60300211",name:"error"})),t(s,{key:"4fc70bf6a7764f229f4a46bba5cf4ec3e0f5394a",show:!this.hasError&&this.hasHelp},t("slot",{key:"42030254f9c567f2b9aa7aaee0a5458cb08583d7",name:"help"}))))}get root(){return o(this)}};(function(e,t,o,i){var r,l=arguments.length,a=l<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(l<3?r(a):l>3?r(t,o,a):r(t,o))||a);l>3&&a&&Object.defineProperty(t,o,a)})([i({childList:!0,subtree:!0})],g.prototype,"onMutation",null),g.style=".gux-form-field-container{display:flex;flex-direction:column}.gux-form-field-container.gux-beside{flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(label){min-inline-size:0}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1}";export{g as gux_form_field_file}
1
+ import{r as e,h as t,a as o}from"./p-mm833MRp.js";import{O as i}from"./p-1mmdDpx8.js";import{h as r}from"./p-qzV3vtOw.js";import{t as l}from"./p-B_5U73XW.js";import{G as a,a as s}from"./p-BkM3RdTO.js";import{G as f,a as n}from"./p-Bxg2lxW0.js";import{a as h,g as p,v as u}from"./p-DHLxhscH.js";import{p as d}from"./p-PYfNAK8p.js";import{o as m}from"./p-De1NnCmO.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";const g=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=r(this.root,"error"),this.hasHelp=r(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)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=r(this.root,"error"),this.hasHelp=r(this.root,"help"),this.labelInfo=this.root.querySelector("[slot=label-info]"),l(this.root,{variant:this.variant})}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=p(this.root,'input[type="file"][slot="input"]'),d(this.input),this.required=this.input.required,this.requiredObserver=m(this.input,(e=>{this.required=e})),u(this.root,this.input)}get variant(){return`fileInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}render(){return t(n,{key:"87fd01d5f4f842e4a60a3fd8903b1f47a25fa87c",labelPosition:this.computedLabelPosition},t(f,{key:"768146a270b2f9c795818e50eb346e9ef4c0f18e",position:this.computedLabelPosition,required:this.required},t("slot",{key:"41d509f25e61218e8ff44205e0066efc9871c48b",name:"label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"b18a6439eb3e331eadc8befe7d4a6625e5a2fe78",variant:this.indicatorMark,required:this.required}),t("slot",{key:"019080783c0879090b3b20df3c34a82fee01366f",name:"label-info"})),t("div",{key:"09756ffd657327ec2bc2a8ae5e39b2a5cf33ecda",class:"gux-input-and-error-container"},t("slot",{key:"ff1bffdc217f9eff4caead89b0ec19179e9c0669",name:"input",onSlotchange:()=>this.setInput()}),t(a,{key:"7623a79ff314b2286cdcf03c00e964e317627414",show:this.hasError},t("slot",{key:"1b29ff15208bec388a11900e21f81e5b60300211",name:"error"})),t(s,{key:"4fc70bf6a7764f229f4a46bba5cf4ec3e0f5394a",show:!this.hasError&&this.hasHelp},t("slot",{key:"42030254f9c567f2b9aa7aaee0a5458cb08583d7",name:"help"}))))}get root(){return o(this)}};(function(e,t,o,i){var r,l=arguments.length,a=l<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(l<3?r(a):l>3?r(t,o,a):r(t,o))||a);l>3&&a&&Object.defineProperty(t,o,a)})([i({childList:!0,subtree:!0})],g.prototype,"onMutation",null),g.style=".gux-form-field-container{display:flex;flex-direction:column}.gux-form-field-container.gux-beside{flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(label){min-inline-size:0}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1}";export{g as gux_form_field_file}
@@ -1 +1 @@
1
- import{r as o,h as t,a as s}from"./p-mm833MRp.js";import{t as r}from"./p-Bk9hX_6O.js";const c=class{constructor(t){o(this,t),this.singleOpenSection=!1}handleGuxopened(o){this.singleOpenSection&&this.getAccordionSections().forEach((t=>{t!==o.target&&this.closeSection(t)}))}componentWillLoad(){this.singleOpenSection&&this.getAccordionSections().reduceRight(((o,t)=>(o&&this.closeSection(t),o||t.open)),!1),r(this.root)}getAccordionSections(){return Array.from(this.root.children)}closeSection(o){o.disabled||(o.open=!1)}render(){return t("slot",{key:"9724aa3ad7ce254c77444838134c40e1d2ae0cc1"})}get root(){return s(this)}};c.style="gux-accordion{-custom-noop:noop}";export{c as gux_accordion}
1
+ import{r as o,h as t,a as s}from"./p-mm833MRp.js";import{t as r}from"./p-B_5U73XW.js";const c=class{constructor(t){o(this,t),this.singleOpenSection=!1}handleGuxopened(o){this.singleOpenSection&&this.getAccordionSections().forEach((t=>{t!==o.target&&this.closeSection(t)}))}componentWillLoad(){this.singleOpenSection&&this.getAccordionSections().reduceRight(((o,t)=>(o&&this.closeSection(t),o||t.open)),!1),r(this.root)}getAccordionSections(){return Array.from(this.root.children)}closeSection(o){o.disabled||(o.open=!1)}render(){return t("slot",{key:"9724aa3ad7ce254c77444838134c40e1d2ae0cc1"})}get root(){return s(this)}};c.style="gux-accordion{-custom-noop:noop}";export{c as gux_accordion}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as a,a as n}from"./p-mm833MRp.js";import{a as r}from"./p-Bg4q97BS.js";import{a as s,c as i,b as d,f as o}from"./p-aKaDsw_5.js";import{t as u}from"./p-B_5U73XW.js";import{b as l,g as c,c as g}from"./p-D_8CR3cJ.js";import{c as h}from"./p-Cf6_BoFM.js";import{d as x}from"./p-DvPw3gUX.js";import{u as b}from"./p-BgaA4g76.js";import"./p-Cd4R0amv.js";import"./p-DCZG2J0G.js";function f(e,t){v(e,"remove",t)}function v(e=[],t,a){const n=[].concat(e);for(const e of n)e.classList[t](a)}var m={previousMonth:"Go to the previous month",nextMonth:"Go to the next month"};function y(e,t){return b()?h(x(t,{year:"numeric",month:"long"}).format(e)):h(e.toLocaleDateString(t,{calendar:"gregory",year:"numeric",month:"long"}))}const M=class{constructor(a){e(this,a),this.calendarSelect=t(this,"calendarSelect",7),this.value="",this.minDate="",this.maxDate="",this.mode="single",this.numberOfMonths=1,this.previewValue=new Date,this.selectingDate=null,this.locale="en"}emitCalendarSelect(){this.calendarSelect.emit(this.value)}async setValue(e){if("range"===this.mode&&e instanceof Array){const[t,a]=e;this.value=s(t,a),this.previewValue=i(this.value)[0]}else{const t=e;this.value=d(t),this.previewValue=t}}async focusPreviewDate(){const e=this.root.shadowRoot.querySelector(`td[data-date="${this.previewValue.getTime()}"]`);e&&e.focus()}async resetCalendarView(e){this.previewValue=e}incrementPreviewDateByMonth(e){this.previewValue=new Date(this.previewValue.getFullYear(),this.previewValue.getMonth()+e,15,0,0,0)}async setValueAndEmit(e){await this.setValue(e),this.emitCalendarSelect()}outOfBounds(e){return""!==this.maxDate&&o(this.maxDate)<e||""!==this.minDate&&o(this.minDate)>e}generateDatesFrom(e,t,a){const n=[],r=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0);for(let t=0;t<a;t++){const t=new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0),a=[],s=new Date,d=r.getFullYear()===s.getFullYear()&&r.getMonth()===s.getMonth()&&r.getDate()===s.getDate();let u=!1,l=!1;t.getMonth()!==e&&(a.push("gux-not-in-month"),u=!0,"range"===this.mode&&(a.push("gux-hidden"),l=!0)),this.outOfBounds(t)&&(a.push("gux-disabled"),u=!0);let c=!1;if(d&&a.push("gux-current-date"),"range"===this.mode){const[e,n]=i(this.value),r=e.getTime(),s=n.getTime();t.getTime()===r&&t.getTime()===s?(c=!0,a.push("gux-selected")):t.getTime()===r?(c=!0,a.push("gux-selected"),a.push("gux-start-date")):t.getTime()===s&&(c=!0,a.push("gux-selected"),a.push("gux-end-date"))}else{const e=o(this.value).getTime();t.getTime()===e&&(c=!0,a.push("gux-selected"))}n.push({class:a.join(" "),date:t,hidden:l,disabled:u,selected:c,isToday:d}),r.setDate(r.getDate()+1)}return n}create2DArray(e,t){const a=[];for(let n=0;n<t-1;n++){const r=e.slice(n*t,n*t+t);this.weekShouldBeDisplayed(r)&&a.push(r)}return a}isFocusableDate(e){return e.selected||this.previewValue.getTime()===e.date.getTime()}weekShouldBeDisplayed(e){const t=e.find((e=>!e.hidden));return e.length&&!!t}getMonthDays(e){const t=new Date(this.previewValue.getTime());t.setDate(1),t.setMonth(t.getMonth()+e);const a=t.getMonth(),n=function(e,t,a){const n=new Date(t,e,1,1,0,0,0),r=-1*(a-n.getDay()-7)%7;return new Date(n.getTime()-864e5*r)}(a,t.getFullYear(),this.startDayOfWeek),r=this.generateDatesFrom(a,n,42);return this.create2DArray(r,7)}addDays(e,t){const a=new Date(e.valueOf());return a.setDate(a.getDate()+t),a}getAllDatesElements(){const e=this.root.shadowRoot.querySelectorAll("td");return Array.from(e)}getAllSelectableDatesElements(){const e=this.root.shadowRoot.querySelectorAll('td[tabindex="0"]');return Array.from(e)}getRangeDatesElements(e,t){const a=[];let n;n=t<e?this.getRangeDates(t,e):this.getRangeDates(e,t);for(const e of n){const t=this.root.shadowRoot.querySelector(`td[data-date="${e.getTime()}"]:not(.gux-hidden)`);t&&a.push(t)}return a}getRangeDates(e,t){const a=[];let n=e;for(;n<=t;)a.push(new Date(n)),n=this.addDays(n,1);return a}async onDateClick(e){if(!this.outOfBounds(e))if("range"!==this.mode)await this.setValueAndEmit(e);else if(null===this.selectingDate)f(this.getAllDatesElements(),"gux-hovered"),this.selectingDate=new Date(e.valueOf()),this.value=s(e,e);else{const t=this.root.shadowRoot.querySelector(`td[data-date="${e.getTime()}"]`);t&&t.classList.add("gux-selected"),this.updateRangeElements(),await this.setValueAndEmit([this.selectingDate,e]),this.previewValue=e,this.selectingDate=null}}onDateMouseEnter(e){"range"===this.mode&&null!==this.selectingDate&&(this.value=s(e,this.selectingDate),this.updateRangeElements())}updateRangeElements(){if("range"===this.mode){f(this.getAllDatesElements(),"gux-hovered");const[e,t]=i(this.value);v(this.getRangeDatesElements(e,t),"add","gux-hovered")}}async onKeyDown(e){switch(e.key){case" ":case"Enter":e.preventDefault(),await this.onDateClick(this.previewValue);break;case"ArrowDown":e.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()+7)),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"ArrowUp":e.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()-7)),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"ArrowLeft":e.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()-1)),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"ArrowRight":e.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()+1)),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"PageUp":e.preventDefault(),this.incrementPreviewDateByMonth(1),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"PageDown":e.preventDefault(),this.incrementPreviewDateByMonth(-1),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}))}}async componentWillLoad(){if(u(this.root,{variant:this.mode}),this.i18n=await l(this.root,m),this.locale=c(this.root),this.startDayOfWeek=this.startDayOfWeek||g(this.locale),!this.value){const e=new Date;e.setHours(0,0,0,0),this.value="range"===this.mode?s(e,e):d(e)}this.previewValue=o(this.value)}componentDidRender(){this.updateRangeElements()}renderMonthHeader(){return a("div",{class:"gux-month-list"},Array.from(Array(this.numberOfMonths).keys()).map((e=>{const t=function(e,t){const a=new Date(e);return a.setDate(1),a.setMonth(a.getMonth()+t),a}(this.previewValue,e);return a("label",null,y(t,this.locale))})))}renderCalendarTable(e){return a("table",null,a("tr",null,function(e,t){const a=[],n=new Date(1970,0,4);for(let t=0;t<7;t++){const t=n.toLocaleString(e,{weekday:"narrow"});a.push(t),n.setDate(n.getDate()+1)}return(r=a).concat(r.splice(0,(s=t)>r.length?s%r.length:s));var r,s}(this.locale,this.startDayOfWeek).map((e=>a("th",null,e)))),this.getMonthDays(e).map((e=>a("tr",null,e.map((e=>a("td",{tabindex:this.isFocusableDate(e)?"0":"-1",class:e.class,"aria-hidden":e.hidden?"true":"false","aria-disabled":e.disabled?"true":"false","data-date":e.date.getTime(),onClick:()=>{this.onDateClick(e.date)},onMouseEnter:()=>this.onDateMouseEnter(e.date),onKeyDown:e=>{this.onKeyDown(e)}},a("div",{class:"gux-date"},e.date.getDate(),a("gux-screen-reader-beta",null,y(e.date,this.locale))))))))))}render(){return a("div",{key:"032d8f640205190a50accc0e0ec207281837b192",class:"gux-calendar"},a("div",{key:"609ddea253dc5519d475e5f76dd19662fc9a088c",class:"gux-header"},a("button",{key:"5417571dec9cb6807408d0d86ff850026632792c",type:"button",class:"gux-left","aria-label":this.i18n("previousMonth"),onClick:()=>this.incrementPreviewDateByMonth(-1)},a("gux-icon",{key:"c64d3e6fb3778e17bd9519af36a818cbf5ea8456",size:"small",decorative:!0,"icon-name":"custom/chevron-left-small-regular"})),this.renderMonthHeader(),a("button",{key:"fb7339b1279e90a81f1f941ddb99f5b2edc718c4",type:"button",class:"gux-right","aria-label":this.i18n("nextMonth"),onClick:()=>this.incrementPreviewDateByMonth(1)},a("gux-icon",{key:"f3a51e4365bb254f3ef4a0f58ab72115282b231d",size:"small",decorative:!0,"icon-name":"custom/chevron-right-small-regular"}))),a("div",{key:"64769c9c22d6e7bc60efdadc33302d820b95eaad",class:"gux-content"},Array.from(Array(this.numberOfMonths).keys()).map((e=>this.renderCalendarTable(e)))))}get root(){return n(this)}};M.style=":host{display:inline-block}.gux-calendar{margin-block-start:2px;border-radius:8px;box-shadow:var(--gse-ui-calendarMenu-boxShadow)}.gux-calendar .gux-header{display:flex;align-items:center;justify-content:space-between;block-size:var(--gse-ui-calendarMenu-month-single-header-height);padding:var(--gse-ui-calendarMenu-header-padding);font-style:normal;font-weight:var(--gse-ui-calendarMenu-month-currentText-fontWeight);color:var(--gse-ui-calendarMenu-header-foregroundColor);text-align:center;background-color:var(--gse-ui-calendarMenu-header-backgroundColor);border-radius:var(--gse-ui-calendarMenu-single-header-borderRadius)}.gux-calendar .gux-header .gux-header-month-and-year{inline-size:var(--gse-ui-calendarMenu-month-single-header-textWidth);font-family:var(--gse-ui-calendarMenu-month-headerText-fontFamily);font-size:var(--gse-ui-calendarMenu-month-headerText-fontSize);line-height:var(--gse-ui-calendarMenu-month-headerText-lineHeight);color:var(--gse-ui-calendarMenu-month-selected-foregroundColor)}.gux-calendar .gux-header .gux-left,.gux-calendar .gux-header .gux-right{block-size:100%;color:var(--gse-ui-calendarMenu-header-foregroundColor);cursor:pointer;outline:none;background:none;border:none}.gux-calendar .gux-header .gux-left:focus-visible,.gux-calendar .gux-header .gux-right:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-calendar .gux-header .gux-month-list{display:flex;justify-content:space-between;inline-size:100%;font-family:var(--gse-ui-calendarMenu-month-headerText-fontFamily);font-size:var(--gse-ui-calendarMenu-month-headerText-fontSize);line-height:var(--gse-ui-calendarMenu-month-headerText-lineHeight)}.gux-calendar .gux-header .gux-month-list label{inline-size:100%;text-align:center}.gux-calendar .gux-content{display:flex;align-items:flex-start;block-size:var(--gse-ui-calendarMenu-height);padding:var(--gse-ui-calendarMenu-dateBody-padding);color:var(--gse-ui-calendarMenu-month-default-foregroundColor);background-color:var(--gse-ui-calendarMenu-backgroundColor);border-radius:var(--gse-ui-calendarMenu-single-body-borderRadius)}.gux-calendar .gux-content table{inline-size:var(--gse-ui-calendarMenu-day-input-width);text-align:start;-ms-user-select:none;user-select:none;table-layout:fixed;border-spacing:0}.gux-calendar .gux-content table:not(:last-child){padding-inline-end:24px}.gux-calendar .gux-content table tr{block-size:var(--gse-ui-calendarMenu-day-input-height)}.gux-calendar .gux-content table tr:empty{display:none}.gux-calendar .gux-content table tr th,.gux-calendar .gux-content table tr td{inline-size:var(--gse-ui-calendarMenu-day-date-size);block-size:var(--gse-ui-calendarMenu-day-date-size);padding:0;margin:0;text-align:center}.gux-calendar .gux-content table tr th{font-family:var(--gse-ui-calendarMenu-day-headerText-fontFamily);font-size:var(--gse-ui-calendarMenu-day-headerText-fontSize);font-weight:var(--gse-ui-calendarMenu-day-headerText-fontWeight);line-height:var(--gse-ui-calendarMenu-day-headerText-lineHeight)}.gux-calendar .gux-content table tr td{font-family:var(--gse-ui-calendarMenu-date-defaultText-fontFamily);font-size:var(--gse-ui-calendarMenu-date-defaultText-fontSize);font-weight:var(--gse-ui-calendarMenu-date-defaultText-fontWeight);line-height:var(--gse-ui-calendarMenu-date-defaultText-lineHeight);color:var(--gse-ui-calendarMenu-date-default-foregroundColor);cursor:pointer}.gux-calendar .gux-content table tr td.gux-hovered{background-color:var(--gse-ui-calendarMenu-date-range-backgroundColor)}.gux-calendar .gux-content table tr td.gux-selected{color:var(--gse-ui-calendarMenu-date-selected-foregroundColor);background-color:var(--gse-ui-calendarMenu-date-selected-backgroundColor);border-radius:var(--gse-ui-calendarMenu-month-borderRadius)}.gux-calendar .gux-content table tr td.gux-selected:hover:not(.gux-calendar .gux-content table tr td.gux-selected.gux-start-date):not(.gux-calendar .gux-content table tr td.gux-selected.gux-end-date){background-color:var(--gse-ui-calendarMenu-date-selected-hoverBackgroundColor)}.gux-calendar .gux-content table tr td.gux-start-date,.gux-calendar .gux-content table tr td.gux-end-date{background-color:var(--gse-ui-calendarMenu-date-range-backgroundColor)}.gux-calendar .gux-content table tr td.gux-start-date .gux-date,.gux-calendar .gux-content table tr td.gux-end-date .gux-date{display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-calendarMenu-day-date-size);block-size:var(--gse-ui-calendarMenu-day-date-size);background-color:var(--gse-ui-calendarMenu-date-selected-backgroundColor);border-radius:var(--gse-ui-calendarMenu-month-borderRadius)}.gux-calendar .gux-content table tr td.gux-start-date .gux-date:hover,.gux-calendar .gux-content table tr td.gux-end-date .gux-date:hover{background-color:var(--gse-ui-calendarMenu-date-selected-hoverBackgroundColor)}.gux-calendar .gux-content table tr td.gux-start-date{border-radius:var(--gse-ui-calendarMenu-range-date-startDate-borderRadius)}.gux-calendar .gux-content table tr td.gux-end-date{border-radius:var(--gse-ui-calendarMenu-range-date-endDate-borderRadius)}.gux-calendar .gux-content table tr td:hover:not(.gux-calendar .gux-content table tr td.gux-start-date):not(.gux-calendar .gux-content table tr td.gux-end-date):not(.gux-calendar .gux-content table tr td.gux-hovered):not(.gux-calendar .gux-content table tr td.gux-selected){background-color:var(--gse-ui-calendarMenu-date-hover-backgroundColor);border-radius:var(--gse-ui-calendarMenu-month-borderRadius)}.gux-calendar .gux-content table tr td.gux-disabled{pointer-events:none;opacity:var(--gse-ui-calendarMenu-disabled-opacity)}.gux-calendar .gux-content table tr td.gux-not-in-month{opacity:var(--gse-ui-calendarMenu-disabled-opacity)}.gux-calendar .gux-content table tr td.gux-not-in-month:hover{background-color:var(--gse-ui-calendarMenu-date-hover-backgroundColor)}.gux-calendar .gux-content table tr td.gux-not-in-month.gux-hidden{visibility:hidden}.gux-calendar .gux-content table tr td.gux-current-date{font-family:var(--gse-ui-calendarMenu-date-currentText-fontFamily);font-size:var(--gse-ui-calendarMenu-date-currentText-fontSize);font-weight:var(--gse-ui-calendarMenu-date-currentText-fontWeight);line-height:var(--gse-ui-calendarMenu-date-currentText-lineHeight)}.gux-calendar .gux-content table tr td:focus-visible{border-radius:var(--gse-ui-calendarMenu-month-borderRadius);outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}";export{M as gux_calendar}
@@ -1 +1 @@
1
- import{r as t,h as s,H as i,a as r}from"./p-mm833MRp.js";import{t as e}from"./p-Bk9hX_6O.js";import{D as o,g as a}from"./p-D7iHtfrY.js";import{d as m,a as h}from"./p-DvPw3gUX.js";import{u as p}from"./p-BgaA4g76.js";import{g as n}from"./p-D_8CR3cJ.js";import"./p-DCZG2J0G.js";import"./p-Cd4R0amv.js";const c=class{constructor(s){t(this,s),this.hasRegionalDatesCookie=!1,this.datetime=(new Date).toISOString(),this.format="short"}componentWillLoad(){e(this.root),p()?this.hasRegionalDatesCookie=!0:this.formatter=new o(n(this.root))}renderTime(){return this.hasRegionalDatesCookie?m(h(this.root),{timeStyle:this.format,timeZone:a(this.timeZone)}).format(new Date(this.datetime)):this.formatter.formatTime(new Date(this.datetime),this.format,{timeZone:a(this.timeZone)})}render(){return s(i,{key:"a732d366a726b7ca76ddcf465e14efb832ad536c"},this.renderTime())}get root(){return r(this)}};export{c as gux_time_beta}
1
+ import{r as t,h as s,H as i,a as r}from"./p-mm833MRp.js";import{t as e}from"./p-B_5U73XW.js";import{D as o,g as a}from"./p-D7iHtfrY.js";import{d as m,a as h}from"./p-DvPw3gUX.js";import{u as p}from"./p-BgaA4g76.js";import{g as n}from"./p-D_8CR3cJ.js";import"./p-DCZG2J0G.js";import"./p-Cd4R0amv.js";const c=class{constructor(s){t(this,s),this.hasRegionalDatesCookie=!1,this.datetime=(new Date).toISOString(),this.format="short"}componentWillLoad(){e(this.root),p()?this.hasRegionalDatesCookie=!0:this.formatter=new o(n(this.root))}renderTime(){return this.hasRegionalDatesCookie?m(h(this.root),{timeStyle:this.format,timeZone:a(this.timeZone)}).format(new Date(this.datetime)):this.formatter.formatTime(new Date(this.datetime),this.format,{timeZone:a(this.timeZone)})}render(){return s(i,{key:"a732d366a726b7ca76ddcf465e14efb832ad536c"},this.renderTime())}get root(){return r(this)}};export{c as gux_time_beta}
@@ -1 +1 @@
1
- import{r as i,h as s,a as t}from"./p-mm833MRp.js";import{t as e}from"./p-Bk9hX_6O.js";import{b as n}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var o={dismiss:"Dismiss"};const a=class{constructor(s){i(this,s),this.position="absolute",this.size="medium"}async componentWillLoad(){e(this.root,{variant:this.position}),this.i18n=await n(this.root,o)}render(){return s("gux-button-slot",{key:"52a32d2f44a4ea6d98c7978aae6cdcd6e23ddfb7",accent:"ghost",class:{"gux-inherit":"inherit"==this.position,"gux-dismiss-small":"small"==this.size}},s("button",{key:"1a291cbdbee48b4c20bf4651bc30d875c35f9da0",type:"button",title:this.i18n("dismiss")},s("div",{key:"e47fbada9557f20098c5304452fc607f174a9ea3",class:"gux-icon-container"},s("gux-icon",{key:"b3872a8afe53a3c97adfd5071e6657c92fb234ab","icon-name":"fa/xmark-large-regular",decorative:!0,size:"small"}))))}static get delegatesFocus(){return!0}get root(){return t(this)}};a.style="gux-button-slot{position:absolute;inset-block-start:4px;inset-inline-end:4px;inline-size:var(--gse-ui-button-dismiss-medium-width);block-size:var(--gse-ui-button-dismiss-medium-height)}gux-button-slot.gux-dismiss-small{inline-size:var(--gse-ui-button-dismiss-small-width);block-size:var(--gse-ui-button-dismiss-small-height)}gux-button-slot.gux-dismiss-small button{inline-size:var(--gse-ui-button-dismiss-small-width);min-inline-size:var(--gse-ui-button-dismiss-small-width);block-size:var(--gse-ui-button-dismiss-small-height);padding:0}gux-button-slot.gux-inherit{position:inherit;inset-block-start:inherit;inset-inline-end:inherit}gux-button-slot .gux-icon-container{display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center}gux-button-slot .gux-icon-container gux-icon{flex:0 0 auto;align-self:auto;order:0;color:var(--gse-ui-dismissButton-foregroundColor)}";export{a as gux_dismiss_button}
1
+ import{r as i,h as s,a as t}from"./p-mm833MRp.js";import{t as e}from"./p-B_5U73XW.js";import{b as n}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var o={dismiss:"Dismiss"};const a=class{constructor(s){i(this,s),this.position="absolute",this.size="medium"}async componentWillLoad(){e(this.root,{variant:this.position}),this.i18n=await n(this.root,o)}render(){return s("gux-button-slot",{key:"52a32d2f44a4ea6d98c7978aae6cdcd6e23ddfb7",accent:"ghost",class:{"gux-inherit":"inherit"==this.position,"gux-dismiss-small":"small"==this.size}},s("button",{key:"1a291cbdbee48b4c20bf4651bc30d875c35f9da0",type:"button",title:this.i18n("dismiss")},s("div",{key:"e47fbada9557f20098c5304452fc607f174a9ea3",class:"gux-icon-container"},s("gux-icon",{key:"b3872a8afe53a3c97adfd5071e6657c92fb234ab","icon-name":"fa/xmark-large-regular",decorative:!0,size:"small"}))))}static get delegatesFocus(){return!0}get root(){return t(this)}};a.style="gux-button-slot{position:absolute;inset-block-start:4px;inset-inline-end:4px;inline-size:var(--gse-ui-button-dismiss-medium-width);block-size:var(--gse-ui-button-dismiss-medium-height)}gux-button-slot.gux-dismiss-small{inline-size:var(--gse-ui-button-dismiss-small-width);block-size:var(--gse-ui-button-dismiss-small-height)}gux-button-slot.gux-dismiss-small button{inline-size:var(--gse-ui-button-dismiss-small-width);min-inline-size:var(--gse-ui-button-dismiss-small-width);block-size:var(--gse-ui-button-dismiss-small-height);padding:0}gux-button-slot.gux-inherit{position:inherit;inset-block-start:inherit;inset-inline-end:inherit}gux-button-slot .gux-icon-container{display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center}gux-button-slot .gux-icon-container gux-icon{flex:0 0 auto;align-self:auto;order:0;color:var(--gse-ui-dismissButton-foregroundColor)}";export{a as gux_dismiss_button}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,H as e,a as r}from"./p-mm833MRp.js";import{t as a}from"./p-Bk9hX_6O.js";import{n as h,p as o,l as c,f as n}from"./p-BebXX5IS.js";const l=["gux-rich-style-list-item","gux-rich-highlight-list-item","gux-rich-text-editor-sub-list"],g=class{constructor(i){t(this,i),this.internallistitemsupdated=s(this,"internallistitemsupdated",7),this.listItems=[]}get listItemsSlot(){return this.root.querySelector("slot")}get listItemElements(){var t;const s=null===(t=this.listItemsSlot)||void 0===t?void 0:t.assignedElements();return s?Array.from(s):[]}handleHighlighItemsNavigation(){if(this.listItemsSlot){const t=this.listItemsSlot.assignedElements().find((t=>"gux-rich-highlight-list-item"===t.tagName.toLowerCase()));if(t){const s=t.shadowRoot.querySelector("button");s&&(s.tabIndex=0)}}}setListItems(){this.listItems=this.listItemElements,this.internallistitemsupdated.emit()}async componentWillLoad(){a(this.root),this.setListItems(),this.handleHighlighItemsNavigation()}onKeyDown(t){const s=t.target;if(!s)return;const i=s.matches("gux-rich-highlight-list-item");switch(t.key){case"ArrowUp":t.preventDefault(),o(this.root,l);break;case"ArrowDown":t.preventDefault(),h(this.root,l);break;case"Home":t.preventDefault(),n(this.root,l);break;case"End":t.preventDefault(),c(this.root,l);break;case"ArrowLeft":i&&(t.preventDefault(),o(this.root,l));break;case"ArrowRight":i&&(t.preventDefault(),h(this.root,l))}}async guxFocusFirstItem(){n(this.root,l)}async guxFocusLastItem(){c(this.root,l)}render(){return i(e,{key:"a4a3e97b3c87ce3b3a7097c7a615ce3fe2035267",role:"list"},i("slot",{key:"ab4767819665cdc49dfbbc430578a585071cfc96",onSlotchange:()=>this.setListItems()}))}static get delegatesFocus(){return!0}get root(){return r(this)}};g.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;padding:var(--gse-ui-menu-padding)}";export{g as gux_rich_text_editor_list}
1
+ import{r as t,c as s,h as i,H as e,a as r}from"./p-mm833MRp.js";import{t as a}from"./p-B_5U73XW.js";import{n as o,p as h,l as c,f as n}from"./p-BebXX5IS.js";const l=["gux-rich-style-list-item","gux-rich-highlight-list-item","gux-rich-text-editor-sub-list"],g=class{constructor(i){t(this,i),this.internallistitemsupdated=s(this,"internallistitemsupdated",7),this.listItems=[]}get listItemsSlot(){return this.root.querySelector("slot")}get listItemElements(){var t;const s=null===(t=this.listItemsSlot)||void 0===t?void 0:t.assignedElements();return s?Array.from(s):[]}handleHighlighItemsNavigation(){if(this.listItemsSlot){const t=this.listItemsSlot.assignedElements().find((t=>"gux-rich-highlight-list-item"===t.tagName.toLowerCase()));if(t){const s=t.shadowRoot.querySelector("button");s&&(s.tabIndex=0)}}}setListItems(){this.listItems=this.listItemElements,this.internallistitemsupdated.emit()}async componentWillLoad(){a(this.root),this.setListItems(),this.handleHighlighItemsNavigation()}onKeyDown(t){const s=t.target;if(!s)return;const i=s.matches("gux-rich-highlight-list-item");switch(t.key){case"ArrowUp":t.preventDefault(),h(this.root,l);break;case"ArrowDown":t.preventDefault(),o(this.root,l);break;case"Home":t.preventDefault(),n(this.root,l);break;case"End":t.preventDefault(),c(this.root,l);break;case"ArrowLeft":i&&(t.preventDefault(),h(this.root,l));break;case"ArrowRight":i&&(t.preventDefault(),o(this.root,l))}}async guxFocusFirstItem(){n(this.root,l)}async guxFocusLastItem(){c(this.root,l)}render(){return i(e,{key:"a4a3e97b3c87ce3b3a7097c7a615ce3fe2035267",role:"list"},i("slot",{key:"ab4767819665cdc49dfbbc430578a585071cfc96",onSlotchange:()=>this.setListItems()}))}static get delegatesFocus(){return!0}get root(){return r(this)}};g.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;padding:var(--gse-ui-menu-padding)}";export{g as gux_rich_text_editor_list}
@@ -1 +1 @@
1
- var e="4.187.1";const t=[function(e){const[t,n,...o]=e.split(".");return{name:"spark-library",metadata:{fullVersion:`${t}.${n}.${o.join(".")}`,majorVersion:t,minorVersion:`${t}.${n}`}}}(e)];function n(){const e=window.newrelic;if(e){for(let o=0;o<20;o++){if(0==t.length)return void setTimeout(n,3e4);const o=t.shift();e.addPageAction(o.name,Object.assign(Object.assign({},o.metadata),{queueDepth:t.length}))}setTimeout(n,3e4)}}let o=!1;function r(r,i){window.newrelic&&(o||(o=!0,n()),document.contains(r)&&t.push({name:"spark-component",metadata:Object.assign(Object.assign({},i),{component:r.tagName.toLowerCase(),version:e})}))}export{r as t}
1
+ var e="4.187.2";const t=[function(e){const[t,n,...o]=e.split(".");return{name:"spark-library",metadata:{fullVersion:`${t}.${n}.${o.join(".")}`,majorVersion:t,minorVersion:`${t}.${n}`}}}(e)];function n(){const e=window.newrelic;if(e){for(let o=0;o<20;o++){if(0==t.length)return void setTimeout(n,3e4);const o=t.shift();e.addPageAction(o.name,Object.assign(Object.assign({},o.metadata),{queueDepth:t.length}))}setTimeout(n,3e4)}}let o=!1;function r(r,i){window.newrelic&&(o||(o=!0,n()),document.contains(r)&&t.push({name:"spark-component",metadata:Object.assign(Object.assign({},i),{component:r.tagName.toLowerCase(),version:e})}))}export{r as t}
@@ -1 +1 @@
1
- import{r as t,h as e,a as r}from"./p-mm833MRp.js";import{t as i}from"./p-Bk9hX_6O.js";import{O as o}from"./p-CuMZPTZF.js";import{b as s,g as n}from"./p-D_8CR3cJ.js";import{a}from"./p-DvPw3gUX.js";import{u}from"./p-BgaA4g76.js";import{s as l}from"./p-BMRf5pjV.js";import{b as h}from"./p-Bg4q97BS.js";import{g,a as c,b as d}from"./p-Dwrcabgx.js";import"./p-Cd4R0amv.js";import"./p-DCZG2J0G.js";var p={toggleCalendar:"Toggle month calendar view",month:"Month",year:"Year",unset:"Unset"};const f={calendar:"gregory",year:"numeric",month:"long"},m=["ar","he","ja","ko","zh-cn","zh-tw"],b=class{constructor(e){t(this,e),this.disabled=!1,this.expanded=!1}onKeyDown(t){"Escape"===t.key&&(this.expanded=!1,this.calendarToggleButtonElement.focus())}onValueUpdate(t){this.value=this.isOutOfBounds(t)?this.isBeforeMin(t)?this.min:this.max:t,l(this.root,"input"),l(this.root,"change")}onClickOutside(){this.expanded=!1}async componentWillLoad(){i(this.root),this.i18n=await s(this.root,p),this.locale=u()?a(this.root):n(this.root)}onFocusout(t){t.relatedTarget&&!this.root.contains(t.relatedTarget)&&(this.expanded=!1)}isOutOfBounds(t){return this.isBeforeMin(t)||this.isAfterMax(t)}isBeforeMin(t){return this.min&&this.min>t}isAfterMax(t){return this.max&&this.max<t}toggleCalendar(){this.expanded=!this.expanded,this.expanded&&h((()=>{this.monthCalendarElement.guxFocus(this.value)}))}onMonthCalendarInput(){this.value=this.monthCalendarElement.value,this.expanded=!1,this.calendarToggleButtonElement.focus()}incrementMonth(t){if(this.value){const{year:e,month:r}=g(this.value),i=((parseInt(r)+11+t)%12+1).toString().padStart(2,"0");this.value=c(e,i)}else this.value=d()}incrementYear(t){if(this.value){const{year:e,month:r}=g(this.value),i=Math.max(Number(e)+t,0).toString();this.value=c(i,r)}else this.value=d()}onSpinnerKeyDown(t,e,r){switch(t.key){case"ArrowDown":t.preventDefault(),e(-1);break;case"ArrowUp":t.preventDefault(),e(1);break;case"ArrowLeft":case"ArrowRight":t.preventDefault(),r.focus();break;case"Enter":t.preventDefault(),this.expanded=!0,h((()=>{this.monthCalendarElement.guxFocus(this.value)}));break;case" ":t.preventDefault()}}onSpinnerKeyUp(t){t.stopPropagation()," "===t.key&&(t.preventDefault(),this.expanded=!0,h((()=>{this.monthCalendarElement.guxFocus(this.value)})))}onSpinnerClick(){this.expanded=!0}getSpinnerLabel(t){if(this.value){const{year:e,month:r}=g(this.value);return new Date(Number(e),Number(r)-1).toLocaleDateString(this.locale,{calendar:"gregory",[t]:f[t]})}return this.i18n(t)}getSpinnerValueNow(t){return this.value?g(this.value)[t]:"0"}getSpinnerValueText(){if(this.value){const{year:t,month:e}=g(this.value);return new Date(Number(t),Number(e)-1).toLocaleDateString(this.locale,{calendar:"gregory",year:"numeric",month:"long"})}return this.i18n("unset")}renderMonthSpinnerButton(){return e("div",{role:"spinbutton",class:"gux-spinner",tabIndex:this.disabled?-1:0,onKeyDown:t=>this.onSpinnerKeyDown(t,(t=>this.incrementMonth(t)),this.yearSpinnerElement),onKeyUp:t=>this.onSpinnerKeyUp(t),onClick:()=>this.onSpinnerClick(),ref:t=>this.monthSpinnerElement=t,"aria-valuenow":this.getSpinnerValueNow("month"),"aria-valuetext":this.getSpinnerValueText(),"aria-valuemin":"1","aria-valuemax":"12","aria-label":this.i18n("month")},this.getSpinnerLabel("month"))}renderYearSpinnerButton(){return e("div",{role:"spinbutton",class:"gux-spinner",tabIndex:this.disabled?-1:0,onKeyDown:t=>this.onSpinnerKeyDown(t,(t=>this.incrementYear(t)),this.monthSpinnerElement),onKeyUp:t=>this.onSpinnerKeyUp(t),onClick:()=>this.onSpinnerClick(),ref:t=>this.yearSpinnerElement=t,"aria-valuenow":this.getSpinnerValueNow("year"),"aria-valuetext":this.getSpinnerValueText(),"aria-valuemin":"0","aria-label":this.i18n("year")},this.getSpinnerLabel("year"))}renderSpinnerButtons(){return m.includes(this.locale)?e("span",{class:"gux-display"},this.renderYearSpinnerButton(),this.renderMonthSpinnerButton()):e("span",{class:"gux-display"},this.renderMonthSpinnerButton(),this.renderYearSpinnerButton())}renderCalendarToggleButton(){return e("button",{class:{"gux-popup-toggle":!0,"gux-expanded":this.expanded},ref:t=>this.calendarToggleButtonElement=t,type:"button",onClick:()=>this.toggleCalendar(),disabled:this.disabled},e("gux-icon",{"icon-name":"fa/calendar-regular",decorative:!0,size:"small"}),e("gux-screen-reader-beta",null,this.i18n("toggleCalendar")))}renderTarget(){return e("div",{class:"gux-target",slot:"target"},this.renderSpinnerButtons(),this.renderCalendarToggleButton())}renderPopup(){return e("gux-month-calendar",{slot:"popup",ref:t=>this.monthCalendarElement=t,onInput:()=>this.onMonthCalendarInput(),value:this.value,min:this.min,max:this.max})}render(){return e("gux-popup",{key:"b8b7d9cdd5ddf41b5e4d1ec59325be8c7376678f",expanded:this.expanded,disabled:this.disabled,"exceed-target-width":!0},this.renderTarget(),this.renderPopup())}get root(){return r(this)}static get watchers(){return{value:["onValueUpdate"]}}};(function(t,e,r,i){var o,s=arguments.length,n=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);s>3&&n&&Object.defineProperty(e,r,n)})([o({triggerEvents:"mousedown"})],b.prototype,"onClickOutside",null),b.style=":host{display:inline-block}.gux-target{display:inline-flex;gap:var(--gse-ui-formControl-input-gap);padding:var(--gse-ui-formControl-textarea-padding);cursor:pointer;background-color:var(--gse-ui-calendarMenu-backgroundColor);border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target: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-target .gux-display{display:inline-flex;align-items:center;min-inline-size:100px;padding-inline-end:var(--gse-ui-formControl-input-gap);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)}.gux-target .gux-display .gux-spinner{outline:none}.gux-target .gux-display .gux-spinner:not(:first-child){margin-inline-start:4px}.gux-target .gux-display .gux-spinner:focus-visible{background:var(--gse-ui-calendarMenu-month-hover-backgroundColor)}.gux-target .gux-popup-toggle{justify-content:right;color:var(--gse-ui-monthPicker-calendarStates-defaultColor);background:transparent;border:none}.gux-target .gux-popup-toggle:focus-visible{outline:var(--gse-ui-monthPicker-calendarStates-focus-border-width) var(--gse-ui-monthPicker-calendarStates-focus-border-style) var(--gse-ui-monthPicker-calendarStates-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:var(--gse-ui-calendarMenu-month-calendarButton-focusBorderRadius)}.gux-target .gux-popup-toggle:not(:disabled):hover{color:var(--gse-ui-monthPicker-calendarStates-hoverColor);cursor:pointer}.gux-target .gux-popup-toggle:not(:disabled):focus{color:var(--gse-ui-monthPicker-calendarStates-activeColor);cursor:pointer}.gux-target .gux-popup-toggle:disabled{color:var(--gse-ui-monthPicker-calendarStates-disabledColor)}.gux-target .gux-popup-toggle.gux-expanded{color:var(--gse-ui-monthPicker-calendarStates-activeColor)}";export{b as gux_month_picker_beta}
1
+ import{r as t,h as e,a as r}from"./p-mm833MRp.js";import{t as i}from"./p-B_5U73XW.js";import{O as o}from"./p-CuMZPTZF.js";import{b as s,g as n}from"./p-D_8CR3cJ.js";import{a}from"./p-DvPw3gUX.js";import{u}from"./p-BgaA4g76.js";import{s as l}from"./p-BMRf5pjV.js";import{b as h}from"./p-Bg4q97BS.js";import{g,a as c,b as d}from"./p-Dwrcabgx.js";import"./p-Cd4R0amv.js";import"./p-DCZG2J0G.js";var p={toggleCalendar:"Toggle month calendar view",month:"Month",year:"Year",unset:"Unset"};const f={calendar:"gregory",year:"numeric",month:"long"},m=["ar","he","ja","ko","zh-cn","zh-tw"],b=class{constructor(e){t(this,e),this.disabled=!1,this.expanded=!1}onKeyDown(t){"Escape"===t.key&&(this.expanded=!1,this.calendarToggleButtonElement.focus())}onValueUpdate(t){this.value=this.isOutOfBounds(t)?this.isBeforeMin(t)?this.min:this.max:t,l(this.root,"input"),l(this.root,"change")}onClickOutside(){this.expanded=!1}async componentWillLoad(){i(this.root),this.i18n=await s(this.root,p),this.locale=u()?a(this.root):n(this.root)}onFocusout(t){t.relatedTarget&&!this.root.contains(t.relatedTarget)&&(this.expanded=!1)}isOutOfBounds(t){return this.isBeforeMin(t)||this.isAfterMax(t)}isBeforeMin(t){return this.min&&this.min>t}isAfterMax(t){return this.max&&this.max<t}toggleCalendar(){this.expanded=!this.expanded,this.expanded&&h((()=>{this.monthCalendarElement.guxFocus(this.value)}))}onMonthCalendarInput(){this.value=this.monthCalendarElement.value,this.expanded=!1,this.calendarToggleButtonElement.focus()}incrementMonth(t){if(this.value){const{year:e,month:r}=g(this.value),i=((parseInt(r)+11+t)%12+1).toString().padStart(2,"0");this.value=c(e,i)}else this.value=d()}incrementYear(t){if(this.value){const{year:e,month:r}=g(this.value),i=Math.max(Number(e)+t,0).toString();this.value=c(i,r)}else this.value=d()}onSpinnerKeyDown(t,e,r){switch(t.key){case"ArrowDown":t.preventDefault(),e(-1);break;case"ArrowUp":t.preventDefault(),e(1);break;case"ArrowLeft":case"ArrowRight":t.preventDefault(),r.focus();break;case"Enter":t.preventDefault(),this.expanded=!0,h((()=>{this.monthCalendarElement.guxFocus(this.value)}));break;case" ":t.preventDefault()}}onSpinnerKeyUp(t){t.stopPropagation()," "===t.key&&(t.preventDefault(),this.expanded=!0,h((()=>{this.monthCalendarElement.guxFocus(this.value)})))}onSpinnerClick(){this.expanded=!0}getSpinnerLabel(t){if(this.value){const{year:e,month:r}=g(this.value);return new Date(Number(e),Number(r)-1).toLocaleDateString(this.locale,{calendar:"gregory",[t]:f[t]})}return this.i18n(t)}getSpinnerValueNow(t){return this.value?g(this.value)[t]:"0"}getSpinnerValueText(){if(this.value){const{year:t,month:e}=g(this.value);return new Date(Number(t),Number(e)-1).toLocaleDateString(this.locale,{calendar:"gregory",year:"numeric",month:"long"})}return this.i18n("unset")}renderMonthSpinnerButton(){return e("div",{role:"spinbutton",class:"gux-spinner",tabIndex:this.disabled?-1:0,onKeyDown:t=>this.onSpinnerKeyDown(t,(t=>this.incrementMonth(t)),this.yearSpinnerElement),onKeyUp:t=>this.onSpinnerKeyUp(t),onClick:()=>this.onSpinnerClick(),ref:t=>this.monthSpinnerElement=t,"aria-valuenow":this.getSpinnerValueNow("month"),"aria-valuetext":this.getSpinnerValueText(),"aria-valuemin":"1","aria-valuemax":"12","aria-label":this.i18n("month")},this.getSpinnerLabel("month"))}renderYearSpinnerButton(){return e("div",{role:"spinbutton",class:"gux-spinner",tabIndex:this.disabled?-1:0,onKeyDown:t=>this.onSpinnerKeyDown(t,(t=>this.incrementYear(t)),this.monthSpinnerElement),onKeyUp:t=>this.onSpinnerKeyUp(t),onClick:()=>this.onSpinnerClick(),ref:t=>this.yearSpinnerElement=t,"aria-valuenow":this.getSpinnerValueNow("year"),"aria-valuetext":this.getSpinnerValueText(),"aria-valuemin":"0","aria-label":this.i18n("year")},this.getSpinnerLabel("year"))}renderSpinnerButtons(){return m.includes(this.locale)?e("span",{class:"gux-display"},this.renderYearSpinnerButton(),this.renderMonthSpinnerButton()):e("span",{class:"gux-display"},this.renderMonthSpinnerButton(),this.renderYearSpinnerButton())}renderCalendarToggleButton(){return e("button",{class:{"gux-popup-toggle":!0,"gux-expanded":this.expanded},ref:t=>this.calendarToggleButtonElement=t,type:"button",onClick:()=>this.toggleCalendar(),disabled:this.disabled},e("gux-icon",{"icon-name":"fa/calendar-regular",decorative:!0,size:"small"}),e("gux-screen-reader-beta",null,this.i18n("toggleCalendar")))}renderTarget(){return e("div",{class:"gux-target",slot:"target"},this.renderSpinnerButtons(),this.renderCalendarToggleButton())}renderPopup(){return e("gux-month-calendar",{slot:"popup",ref:t=>this.monthCalendarElement=t,onInput:()=>this.onMonthCalendarInput(),value:this.value,min:this.min,max:this.max})}render(){return e("gux-popup",{key:"b8b7d9cdd5ddf41b5e4d1ec59325be8c7376678f",expanded:this.expanded,disabled:this.disabled,"exceed-target-width":!0},this.renderTarget(),this.renderPopup())}get root(){return r(this)}static get watchers(){return{value:["onValueUpdate"]}}};(function(t,e,r,i){var o,s=arguments.length,n=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);s>3&&n&&Object.defineProperty(e,r,n)})([o({triggerEvents:"mousedown"})],b.prototype,"onClickOutside",null),b.style=":host{display:inline-block}.gux-target{display:inline-flex;gap:var(--gse-ui-formControl-input-gap);padding:var(--gse-ui-formControl-textarea-padding);cursor:pointer;background-color:var(--gse-ui-calendarMenu-backgroundColor);border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target: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-target .gux-display{display:inline-flex;align-items:center;min-inline-size:100px;padding-inline-end:var(--gse-ui-formControl-input-gap);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)}.gux-target .gux-display .gux-spinner{outline:none}.gux-target .gux-display .gux-spinner:not(:first-child){margin-inline-start:4px}.gux-target .gux-display .gux-spinner:focus-visible{background:var(--gse-ui-calendarMenu-month-hover-backgroundColor)}.gux-target .gux-popup-toggle{justify-content:right;color:var(--gse-ui-monthPicker-calendarStates-defaultColor);background:transparent;border:none}.gux-target .gux-popup-toggle:focus-visible{outline:var(--gse-ui-monthPicker-calendarStates-focus-border-width) var(--gse-ui-monthPicker-calendarStates-focus-border-style) var(--gse-ui-monthPicker-calendarStates-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:var(--gse-ui-calendarMenu-month-calendarButton-focusBorderRadius)}.gux-target .gux-popup-toggle:not(:disabled):hover{color:var(--gse-ui-monthPicker-calendarStates-hoverColor);cursor:pointer}.gux-target .gux-popup-toggle:not(:disabled):focus{color:var(--gse-ui-monthPicker-calendarStates-activeColor);cursor:pointer}.gux-target .gux-popup-toggle:disabled{color:var(--gse-ui-monthPicker-calendarStates-disabledColor)}.gux-target .gux-popup-toggle.gux-expanded{color:var(--gse-ui-monthPicker-calendarStates-activeColor)}";export{b as gux_month_picker_beta}
@@ -1 +1 @@
1
- import{r as o,h as e,a as r}from"./p-mm833MRp.js";import{t as a}from"./p-Bk9hX_6O.js";import{b as s}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var l={genesysLogomark:"Genesys Logomark"};const g=class{constructor(e){o(this,e),this.variant="primary"}async componentWillLoad(){this.i18n=await s(this.root,l),a(this.root,{variant:this.variant})}render(){return e("svg",{key:"657aeec423b315f427af34c456bf24d643ab5b28",class:`gux-${this.variant}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 50","aria-label":this.i18n("genesysLogomark"),role:"img",focusable:"false"},e("path",{key:"2b608bb332f919f9363d562b85507b2bf63d42ec",class:"gux-foreground-fill",d:"M21.7947 34.7408H16.7148C14.6475 34.7408 12.6648 35.5446 11.203 36.9754C9.74117 38.4061 8.91992 40.3466 8.91992 42.37C8.91992 44.3933 9.74117 46.3338 11.203 47.7645C12.6648 49.1953 14.6475 49.9991 16.7148 49.9991H21.7947C23.862 49.9991 25.8447 49.1953 27.3065 47.7645C28.7683 46.3338 29.5896 44.3933 29.5896 42.37C29.5896 40.3466 28.7683 38.4061 27.3065 36.9754C25.8447 35.5446 23.862 34.7408 21.7947 34.7408Z"}),e("path",{key:"9129d3ef5a2cb1767ddb6178a7bd918570fbb2d1",class:"gux-foreground-fill",d:"M21.3004 15.0225H8.38053C6.15787 15.0225 4.02625 15.8881 2.4546 17.4289C0.882946 18.9697 0 21.0594 0 23.2384C0 25.4174 0.882946 27.5072 2.4546 29.048C4.02625 30.5888 6.15787 31.4544 8.38053 31.4544H21.3004C22.401 31.4544 23.4907 31.2419 24.5075 30.829C25.5243 30.4161 26.4481 29.8109 27.2264 29.048C28.0046 28.2851 28.6219 27.3793 29.043 26.3825C29.4642 25.3857 29.681 24.3174 29.681 23.2384C29.681 22.1595 29.4642 21.0911 29.043 20.0943C28.6219 19.0975 28.0046 18.1918 27.2264 17.4289C26.4481 16.6659 25.5243 16.0608 24.5075 15.6479C23.4907 15.235 22.401 15.0225 21.3004 15.0225Z"}),e("path",{key:"f64536d67b8936a0c86df8e01e8d6340192e5fb2",class:"gux-foreground-fill",d:"M17.8403 5.8683C17.8403 2.62719 20.4678 -0.000244141 23.7089 -0.000244141C26.95 -0.000244141 29.5774 2.62719 29.5774 5.8683C29.5774 9.10941 26.95 11.7368 23.7089 11.7368C20.4678 11.7368 17.8403 9.10941 17.8403 5.8683Z"}),e("path",{key:"39c6edcc4a079e9263d06e33b2c37c8960b34d4a",class:"gux-foreground-outline",d:"M16.7153 35.5144H21.7954C23.6628 35.5145 25.4506 36.2406 26.7661 37.5281C28.0811 38.815 28.8168 40.5572 28.8169 42.3699C28.8169 44.1826 28.081 45.9247 26.7661 47.2117C25.4506 48.4992 23.6628 49.2253 21.7954 49.2253H16.7153C14.8478 49.2253 13.0602 48.4992 11.7446 47.2117C10.4297 45.9247 9.69385 44.1826 9.69385 42.3699C9.6939 40.5572 10.4297 38.815 11.7446 37.5281C13.0602 36.2406 14.8479 35.5144 16.7153 35.5144Z"}),e("path",{key:"bcdc87d089ada034c9567c8f3c6708f489939093",class:"gux-foreground-outline",d:"M8.38086 15.7959H21.3008C22.3017 15.7959 23.2928 15.9891 24.2168 16.3643C25.1408 16.7395 25.9789 17.2897 26.6846 17.9814C27.3902 18.6733 27.949 19.4937 28.3301 20.3955C28.7111 21.2973 28.9072 22.2631 28.9072 23.2383C28.9072 24.2134 28.7111 25.1793 28.3301 26.0811C27.949 26.9829 27.3902 27.8043 26.6846 28.4961C25.979 29.1877 25.1406 29.7371 24.2168 30.1123C23.2928 30.4875 22.3017 30.6806 21.3008 30.6807H8.38086C6.35857 30.6807 4.42154 29.8934 2.99609 28.4961C1.57115 27.0991 0.773438 25.2071 0.773438 23.2383C0.773476 21.2695 1.57126 19.3784 2.99609 17.9814C4.42156 16.584 6.35846 15.7959 8.38086 15.7959Z"}),e("path",{key:"077c3c093e0ea6e245dec38f7cd751900513e2df",class:"gux-foreground-outline",d:"M23.7085 0.773193C26.5223 0.773193 28.804 3.05419 28.8042 5.86792C28.8042 8.68182 26.5224 10.9636 23.7085 10.9636C20.8948 10.9634 18.6138 8.68169 18.6138 5.86792C18.614 3.05432 20.8949 0.773399 23.7085 0.773193Z"}))}get root(){return r(this)}};g.style=":host{display:inline-block}svg{inline-size:100%;block-size:100%;fill:var(--gse-core-color-transparent)}svg .gux-foreground-fill{fill:var(--gse-ui-logo-brand-logomark-primary)}svg.gux-neutral .gux-foreground-fill{fill:var(--gse-ui-logo-brand-logomark-neutral)}svg.gux-outlined .gux-foreground-fill{fill:var(--gse-core-color-transparent)}svg.gux-outlined .gux-foreground-outline{stroke:var(--gse-ui-logo-brand-logomark-outlined);stroke-width:1.5}";export{g as gux_logomark_beta}
1
+ import{r as o,h as e,a as r}from"./p-mm833MRp.js";import{t as a}from"./p-B_5U73XW.js";import{b as s}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var l={genesysLogomark:"Genesys Logomark"};const g=class{constructor(e){o(this,e),this.variant="primary"}async componentWillLoad(){this.i18n=await s(this.root,l),a(this.root,{variant:this.variant})}render(){return e("svg",{key:"657aeec423b315f427af34c456bf24d643ab5b28",class:`gux-${this.variant}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 50","aria-label":this.i18n("genesysLogomark"),role:"img",focusable:"false"},e("path",{key:"2b608bb332f919f9363d562b85507b2bf63d42ec",class:"gux-foreground-fill",d:"M21.7947 34.7408H16.7148C14.6475 34.7408 12.6648 35.5446 11.203 36.9754C9.74117 38.4061 8.91992 40.3466 8.91992 42.37C8.91992 44.3933 9.74117 46.3338 11.203 47.7645C12.6648 49.1953 14.6475 49.9991 16.7148 49.9991H21.7947C23.862 49.9991 25.8447 49.1953 27.3065 47.7645C28.7683 46.3338 29.5896 44.3933 29.5896 42.37C29.5896 40.3466 28.7683 38.4061 27.3065 36.9754C25.8447 35.5446 23.862 34.7408 21.7947 34.7408Z"}),e("path",{key:"9129d3ef5a2cb1767ddb6178a7bd918570fbb2d1",class:"gux-foreground-fill",d:"M21.3004 15.0225H8.38053C6.15787 15.0225 4.02625 15.8881 2.4546 17.4289C0.882946 18.9697 0 21.0594 0 23.2384C0 25.4174 0.882946 27.5072 2.4546 29.048C4.02625 30.5888 6.15787 31.4544 8.38053 31.4544H21.3004C22.401 31.4544 23.4907 31.2419 24.5075 30.829C25.5243 30.4161 26.4481 29.8109 27.2264 29.048C28.0046 28.2851 28.6219 27.3793 29.043 26.3825C29.4642 25.3857 29.681 24.3174 29.681 23.2384C29.681 22.1595 29.4642 21.0911 29.043 20.0943C28.6219 19.0975 28.0046 18.1918 27.2264 17.4289C26.4481 16.6659 25.5243 16.0608 24.5075 15.6479C23.4907 15.235 22.401 15.0225 21.3004 15.0225Z"}),e("path",{key:"f64536d67b8936a0c86df8e01e8d6340192e5fb2",class:"gux-foreground-fill",d:"M17.8403 5.8683C17.8403 2.62719 20.4678 -0.000244141 23.7089 -0.000244141C26.95 -0.000244141 29.5774 2.62719 29.5774 5.8683C29.5774 9.10941 26.95 11.7368 23.7089 11.7368C20.4678 11.7368 17.8403 9.10941 17.8403 5.8683Z"}),e("path",{key:"39c6edcc4a079e9263d06e33b2c37c8960b34d4a",class:"gux-foreground-outline",d:"M16.7153 35.5144H21.7954C23.6628 35.5145 25.4506 36.2406 26.7661 37.5281C28.0811 38.815 28.8168 40.5572 28.8169 42.3699C28.8169 44.1826 28.081 45.9247 26.7661 47.2117C25.4506 48.4992 23.6628 49.2253 21.7954 49.2253H16.7153C14.8478 49.2253 13.0602 48.4992 11.7446 47.2117C10.4297 45.9247 9.69385 44.1826 9.69385 42.3699C9.6939 40.5572 10.4297 38.815 11.7446 37.5281C13.0602 36.2406 14.8479 35.5144 16.7153 35.5144Z"}),e("path",{key:"bcdc87d089ada034c9567c8f3c6708f489939093",class:"gux-foreground-outline",d:"M8.38086 15.7959H21.3008C22.3017 15.7959 23.2928 15.9891 24.2168 16.3643C25.1408 16.7395 25.9789 17.2897 26.6846 17.9814C27.3902 18.6733 27.949 19.4937 28.3301 20.3955C28.7111 21.2973 28.9072 22.2631 28.9072 23.2383C28.9072 24.2134 28.7111 25.1793 28.3301 26.0811C27.949 26.9829 27.3902 27.8043 26.6846 28.4961C25.979 29.1877 25.1406 29.7371 24.2168 30.1123C23.2928 30.4875 22.3017 30.6806 21.3008 30.6807H8.38086C6.35857 30.6807 4.42154 29.8934 2.99609 28.4961C1.57115 27.0991 0.773438 25.2071 0.773438 23.2383C0.773476 21.2695 1.57126 19.3784 2.99609 17.9814C4.42156 16.584 6.35846 15.7959 8.38086 15.7959Z"}),e("path",{key:"077c3c093e0ea6e245dec38f7cd751900513e2df",class:"gux-foreground-outline",d:"M23.7085 0.773193C26.5223 0.773193 28.804 3.05419 28.8042 5.86792C28.8042 8.68182 26.5224 10.9636 23.7085 10.9636C20.8948 10.9634 18.6138 8.68169 18.6138 5.86792C18.614 3.05432 20.8949 0.773399 23.7085 0.773193Z"}))}get root(){return r(this)}};g.style=":host{display:inline-block}svg{inline-size:100%;block-size:100%;fill:var(--gse-core-color-transparent)}svg .gux-foreground-fill{fill:var(--gse-ui-logo-brand-logomark-primary)}svg.gux-neutral .gux-foreground-fill{fill:var(--gse-ui-logo-brand-logomark-neutral)}svg.gux-outlined .gux-foreground-fill{fill:var(--gse-core-color-transparent)}svg.gux-outlined .gux-foreground-outline{stroke:var(--gse-ui-logo-brand-logomark-outlined);stroke-width:1.5}";export{g as gux_logomark_beta}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,f as i,h as r,a as o}from"./p-mm833MRp.js";import{O as n}from"./p-CuMZPTZF.js";import{b as s}from"./p-D_8CR3cJ.js";import{s as l}from"./p-BMRf5pjV.js";import{b as u}from"./p-Bg4q97BS.js";import{o as a}from"./p-Cb3FOYGS.js";import{t as d}from"./p-B_5U73XW.js";import{c as h,s as g,g as c,a as f}from"./p-zrBw_m7x.js";import{O as p}from"./p-1mmdDpx8.js";import"./p-Cd4R0amv.js";import"./p-DjLdmWVU.js";var x={textInputResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown",numberSelected:"{numberSelected} selected",pressEnterToCreate:"Press Enter to create new option, {textInputValue}"},b=function(t,e,i,r){var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const m=class{constructor(i){t(this,i),this.guxcreateoption=e(this,"guxcreateoption",7),this.guxexpanded=e(this,"guxexpanded",7),this.guxcollapsed=e(this,"guxcollapsed",7),this.guxfilter=e(this,"guxfilter",7),this.disabled=!1,this.required=!1,this.loading=!1,this.filterType="none",this.hasError=!1,this.exceedTargetWidth=!1,this.hasCreate=!1,this.expanded=!1,this.textInput=""}onMutation(){var t;this.listboxElement||(this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.applyListboxEventListeners())}onInternalExpanded(t){t.stopPropagation(),this.guxexpanded.emit()}onInternalCollapsed(t){t.stopPropagation(),this.guxcollapsed.emit()}focusSelectedItemAfterRender(t){t&&this.listboxElement&&u((()=>{this.hasTextInput()?this.textInputElement.focus():this.listboxElement.focus()})),!t&&this.textInputElement&&(this.textInput="",this.textInputElement.value="")}watchDisabled(t){t&&(this.expanded=!1)}watchValue(t){this.validateValue(t,this.listboxElement)}handleFilter(t){this.guxfilter.emit(t)}getSelectedValues(){return Promise.resolve(h(this.value))}onKeydown(t){switch(t.key){case"Escape":return this.hasTextInput()&&document.activeElement===this.listboxElement?this.textInputElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.textInputElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("noFocusChange")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0,g(this.listboxElement)));case"Enter":return this.canCreateNewOption()&&this.isActiveElement()&&this.emitCreateOption(),void(this.expanded||this.isFilterable()||g(this.listboxElement));case" ":return void(this.expanded||this.isFilterable()||g(this.listboxElement))}}onInternallistboxoptionsupdated(t){t.stopPropagation(),requestAnimationFrame((()=>{requestAnimationFrame((()=>i(this.root)))}))}onClearselected(t){t.stopPropagation(),this.updateValue(void 0),this.listboxElement&&(this.listboxElement.value=void 0),this.validateValue(this.value,this.listboxElement),this.fieldButtonElement.focus()}onCreatenewoption(t){t.stopPropagation(),this.emitCreateOption()}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t),this.isFilterable()&&(null==t?void 0:t.relatedTarget)&&!this.root.contains(null==t?void 0:t.relatedTarget)&&this.textInputElement.focus()}onClickOutside(){this.collapseListbox("noFocusChange")}connectedCallback(){var t;this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.hasCreate=!!this.root.querySelector("gux-create-option"))}async componentWillLoad(){d(this.root),this.i18n=await s(this.root,x),a(this.root,(()=>{i(this.root)}))}componentDidLoad(){this.applyListboxEventListeners()}componentWillRender(){this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.listboxElement.loading=this.loading,this.listboxElement.filterType=this.filterType,this.listboxElement.textInput=this.textInput)}validateValue(t,e){void 0!==t?this.getOptionElementByValue(t)?e.value=t:this.value=void 0:e&&(e.value=t)}hasTextInput(){return this.isFilterable()||this.hasCreate}applyListboxEventListeners(){var t,e;null===(t=this.listboxElement)||void 0===t||t.addEventListener("input",(t=>{t.stopPropagation(),this.updateValue(t.target.value)})),null===(e=this.listboxElement)||void 0===e||e.addEventListener("change",(t=>{t.stopPropagation()}))}isFilterable(){return"custom"===this.filterType||"starts-with"===this.filterType}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}getOptionElementByValue(t){const e=Array.from(this.root.querySelectorAll("gux-option-multi")),i=h(t);return e.filter((t=>i.includes(t.value)))}fieldButtonClick(){this.expanded=!this.expanded}fieldButtonInputClick(){this.expanded||(this.expanded=!this.expanded)}filterInput(t){t.stopPropagation(),this.textInput=this.textInputElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.hasTextInput()&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.hasTextInput()&&document.activeElement===this.listboxElement}emitCreateOption(){this.guxcreateoption.emit(this.textInput),this.textInput="",this.textInputElement.value=""}canCreateNewOption(){return this.hasCreate&&this.textInput&&!this.listboxElement.hasExactMatch}isActiveElement(){return document.activeElement===this.root}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){if("ArrowDown"===t.key)return t.stopImmediatePropagation(),t.preventDefault(),this.listboxElement.focus(),void g(this.listboxElement)}filterKeyup(t){" "!==t.key||t.preventDefault()}collapseListbox(t){this.expanded&&(this.expanded=!1),"focusFieldButton"===t&&this.fieldButtonElement.focus()}updateValue(t){this.value!==t&&(this.value=t,l(this.root,"input"),l(this.root,"change"))}getTypeaheadText(t){const e=t.length;if(e>0&&!this.loading){const i=c(this.listboxElement,t);if(i&&"custom"!==this.filterType){const t=f(i);return null==t?void 0:t.substring(e)}return""}}renderTargetDisplay(){return r("span",{class:"gux-placeholder"},this.getSrSelectedText(),this.getSelectedOptionText()||this.placeholder||this.i18n("noSelection"))}getSelectedOptionText(){const t=this.getSelectedOptionValueString();return!!t&&[t,r("gux-screen-reader-beta",null,this.placeholder)]}getSelectedOptionValueString(){return this.getOptionElementByValue(this.value).map((t=>f(t))).join(", ")}getSrSelectedText(){const t=this.getOptionElementByValue(this.value);if(t.length)return r("gux-screen-reader-beta",null,this.i18n("numberSelected",{numberSelected:t.length.toString()}))}getInputAriaLabel(){return this.canCreateNewOption()&&this.isActiveElement()?this.i18n("pressEnterToCreate",{textInputValue:this.textInput}):this.i18n("textInputResults")}selectAllPresent(){var t;return this.expanded&&!!(null===(t=this.listboxElement)||void 0===t?void 0:t.querySelector("gux-select-all"))}renderTag(){const t=h(this.value);if(t.length&&!this.selectAllPresent())return r("gux-dropdown-multi-tag",{disabled:this.disabled,"number-selected":t.length})}renderFilterInputField(){if(this.hasTextInput())return r("div",{class:"gux-field gux-input-field"},r("div",{class:"gux-field-content"},r("div",{class:"gux-filter"},r("div",{class:"gux-filter-display"},r("span",{class:"gux-filter-text"},this.textInput),r("span",{class:"gux-filter-suggestion"},this.getTypeaheadText(this.textInput))),r("div",{class:"input-and-dropdown-button"},r("input",{onClick:this.fieldButtonInputClick.bind(this),placeholder:this.getSelectedOptionValueString()||this.placeholder||this.i18n("noSelection"),class:"gux-filter-input",type:"text","aria-label":this.getInputAriaLabel(),ref:t=>this.textInputElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this),onFocus:()=>this.expanded=!0,disabled:this.disabled})))))}renderPopup(){return r("div",{slot:"popup",class:"gux-listbox-container"},r("slot",null))}renderTarget(){return r("div",{class:{"gux-target-container":!0,"gux-target-container-filterable":this.hasTextInput(),"gux-target-container-filterable-active":this.expanded&&this.hasTextInput(),"gux-target-container-not-filterable":!this.hasTextInput(),"gux-error":this.hasError,"gux-disabled":this.disabled},slot:"target"},this.renderFilterInputField(),r("button",{type:"button",class:"gux-field gux-field-button",disabled:this.disabled,onClick:this.fieldButtonClick.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},this.renderTargetContent(),this.renderTag(),this.renderRadialLoading(),r("gux-icon",{class:{"gux-expand-icon":!0},size:"small","screenreader-text":this.i18n("dropdown"),iconName:"custom/chevron-down-small-regular"})))}renderTargetContent(){if(!this.hasTextInput())return r("span",{class:"gux-field-content"},this.renderTargetDisplay())}renderRadialLoading(){if(this.loading&&!this.expanded)return r("gux-radial-loading",{context:"input"})}render(){return[r("div",{key:"3d7e026e163c18fe00c3222e3a62284523f65427",class:"gux-dropdown-container"},r("gux-popup",{key:"d66ea9ce9cce8447d86e146067b268f06f64c090",expanded:this.expanded&&(!this.loading||this.isFilterable()),disabled:this.disabled||this.loading&&!this.isFilterable(),exceedTargetWidth:this.exceedTargetWidth},this.renderTarget(),this.renderPopup()))]}static get delegatesFocus(){return!0}get root(){return o(this)}static get watchers(){return{expanded:["focusSelectedItemAfterRender"],disabled:["watchDisabled"],value:["watchValue"],textInput:["handleFilter"]}}};b([p({childList:!0,subtree:!0})],m.prototype,"onMutation",null),b([n({triggerEvents:"mousedown"})],m.prototype,"onClickOutside",null),m.style=":host{box-sizing:border-box;color:var(--gse-ui-formControl-input-populatedColor)}.gux-dropdown-container{position:relative}.gux-error.gux-target-container-not-filterable .gux-field-button,.gux-error.gux-target-container-filterable{border:var(--gse-ui-formControl-input-error-border-width) var(--gse-ui-formControl-input-error-border-style) var(--gse-ui-formControl-input-error-border-color)}.gux-disabled.gux-target-container-not-filterable .gux-field-button,.gux-disabled.gux-target-container-filterable{user-select:none;border:var(--gse-ui-formControl-input-disabled-border-width) var(--gse-ui-formControl-input-disabled-border-style) var(--gse-ui-formControl-input-disabled-border-color)}.gux-field,.gux-target-container-filterable{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center;inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);cursor:pointer;background-color:var(--gse-ui-formControl-input-backgroundColor)}.gux-target-container-filterable,.gux-target-container-not-filterable .gux-field{padding:var(--gse-ui-formControl-input-padding)}.gux-target-container-not-filterable .gux-field-button:hover,.gux-target-container-filterable:hover{border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-field.gux-input-field{block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content{position:relative;display:flex;flex:1 1 0;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;min-inline-size:0;block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content .gux-filter,.gux-field .gux-field-content .gux-selected-option,.gux-field .gux-field-content .gux-placeholder{flex:1 1 auto;align-self:auto;order:0;overflow:hidden;text-overflow:ellipsis}.gux-field .gux-field-content .gux-filter{position:relative;block-size:100%;padding-inline-start:0}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;inline-size:100%;caret-color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-input:placeholder-shown{text-overflow:ellipsis}.gux-field .gux-field-content .gux-filter .gux-filter-input::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-field .gux-field-content .gux-filter .gux-filter-display{white-space:pre}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{color:var(--gse-ui-formControl-input-suggestionColor)}.gux-field .gux-field-content .gux-filter .gux-filter-input,.gux-field .gux-field-content .gux-filter .gux-filter-display{position:absolute}.gux-field .gux-field-content .gux-placeholder{color:var(--gse-ui-formControl-input-placeholderColor)}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;padding-inline-start:var(--gse-ui-dropdown-gap);color:var(--gse-ui-formControl-input-inputIcon-iconEndColor)}.gux-target-container-filterable{border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-filterable:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-filterable:focus-within:has(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-filterable.gux-target-container-filterable-active{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-filterable .gux-filter-input{background-color:inherit;border:none}.gux-target-container-filterable .gux-filter-input:focus{outline:none;border:none}.gux-target-container-filterable .gux-field-button{inline-size:auto;block-size:var(--gse-ui-formControl-input-contentText-lineHeight);margin:0;outline:none;background:inherit;border:none;box-shadow:none}.gux-target-container-filterable .gux-field-button:focus{outline:none}.gux-target-container-not-filterable .gux-field-button{border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-not-filterable .gux-field-button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-not-filterable .gux-field-button:focus-within:has(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-not-filterable .gux-field-content .gux-placeholder{white-space:pre}.gux-listbox-container{box-sizing:border-box;margin:0}";export{m as gux_dropdown_multi}
@@ -1 +1 @@
1
- import{r as a,f as r,h as t,a as e}from"./p-mm833MRp.js";import{b as s}from"./p-D_8CR3cJ.js";import{t as c}from"./p-Bk9hX_6O.js";import"./p-Cd4R0amv.js";var i={breadcrumbs:"Breadcrumbs"};const o=class{constructor(r){a(this,r),this.accent="primary"}componentWillLoad(){c(this.root,{variant:this.accent})}async componentWillRender(){this.i18n=await s(this.root,i)}onSlotChange(){Array.from(this.root.children).forEach((a=>r(a)))}render(){return t("nav",{key:"ea6b93a54c1c8cfcf21365dacb4fc8bceaefff9b","aria-label":this.i18n("breadcrumbs")},t("ol",{key:"c1a44ca6cbd884ea4713d06135d31643821522a5"},t("slot",{key:"8adc5d5a7a336c40548fe5ae7975953eac36fa33",onSlotchange:this.onSlotChange.bind(this)})))}get root(){return e(this)}};o.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{o as gux_breadcrumbs}
1
+ import{r as a,f as r,h as t,a as e}from"./p-mm833MRp.js";import{b as s}from"./p-D_8CR3cJ.js";import{t as c}from"./p-B_5U73XW.js";import"./p-Cd4R0amv.js";var i={breadcrumbs:"Breadcrumbs"};const o=class{constructor(r){a(this,r),this.accent="primary"}componentWillLoad(){c(this.root,{variant:this.accent})}async componentWillRender(){this.i18n=await s(this.root,i)}onSlotChange(){Array.from(this.root.children).forEach((a=>r(a)))}render(){return t("nav",{key:"ea6b93a54c1c8cfcf21365dacb4fc8bceaefff9b","aria-label":this.i18n("breadcrumbs")},t("ol",{key:"c1a44ca6cbd884ea4713d06135d31643821522a5"},t("slot",{key:"8adc5d5a7a336c40548fe5ae7975953eac36fa33",onSlotchange:this.onSlotChange.bind(this)})))}get root(){return e(this)}};o.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{o as gux_breadcrumbs}
@@ -1 +1 @@
1
- import{r as e,c as a,h as s,a as t}from"./p-mm833MRp.js";import{r as i}from"./p-D9jKBqIb.js";import{t as o}from"./p-Bk9hX_6O.js";const d=class{constructor(s){e(this,s),this.modalSidePanelDismiss=a(this,"modalSidePanelDismiss",7),this.open=!1,this.size="medium",this.dialogElement=null}syncOpenState(){this.open?this.dialogElement.showModal():(this.dialogElement.close(),this.modalSidePanelDismiss.emit())}sidepaneldismissHandler(){this.open=!1}onKeydown(e){if("Escape"===e.key)return e.preventDefault(),void(this.open=!1)}async showModal(){this.open=!0}async close(){this.open=!1}componentWillLoad(){o(this.root,{variant:this.size})}componentDidLoad(){this.open&&this.dialogElement.showModal()}render(){const e=i();return s("dialog",{key:"095e5b8decec78894747a17279092f518c343e05",ref:e=>this.dialogElement=e,"aria-labelledby":e,class:{"gux-open":this.open}},s("gux-side-panel-beta",{key:"713617fd7471fe072ce387b9960540e72c9ec8f9",size:this.size},s("div",{key:"e8944cfbc525af66f4c48d4d39efac5e9d0095ab",slot:"header",id:e},s("slot",{key:"dc84bde8fcec8b902a82971f6c6dba9b75d3213d",name:"header"})),s("div",{key:"bbc3d8206df640277d3157ef3a854167a474cb56",slot:"content"},s("slot",{key:"b0af309b0a42632775e87e3eb239f6888ab269b1",name:"content"})),s("div",{key:"07d5a3e90572c0f51c5e739e6a2b68a6d7b7438d",slot:"footer"},s("slot",{key:"a04f6dfee20d647aadf13cc8a2b5beef23699fca",name:"footer"}))))}get root(){return t(this)}static get watchers(){return{open:["syncOpenState"]}}};d.style="dialog{inset-inline-start:auto;block-size:100%;min-block-size:100%;padding:0;margin:unset;border:none;transform:translateX(100%);transition:transform 0.2s ease-in-out}dialog.gux-open{transform:translateX(0%)}dialog::backdrop{background:var(--gse-ui-sidePanel-shroudColor);opacity:var(--gse-ui-sidePanel-shroud-opacity)}::slotted(footer){flex:0 0 auto;padding:var(--gse-ui-sidePanel-footer-padding);border-block-start:var(--gse-ui-sidePanel-divider-width) var(--gse-ui-sidePanel-divider-style) var(--gse-ui-sidePanel-divider-color)}::slotted(gux-side-panel-header){border-block-end:none}";export{d as gux_modal_side_panel_beta}
1
+ import{r as e,c as a,h as s,a as t}from"./p-mm833MRp.js";import{r as i}from"./p-D9jKBqIb.js";import{t as o}from"./p-B_5U73XW.js";const d=class{constructor(s){e(this,s),this.modalSidePanelDismiss=a(this,"modalSidePanelDismiss",7),this.open=!1,this.size="medium",this.dialogElement=null}syncOpenState(){this.open?this.dialogElement.showModal():(this.dialogElement.close(),this.modalSidePanelDismiss.emit())}sidepaneldismissHandler(){this.open=!1}onKeydown(e){if("Escape"===e.key)return e.preventDefault(),void(this.open=!1)}async showModal(){this.open=!0}async close(){this.open=!1}componentWillLoad(){o(this.root,{variant:this.size})}componentDidLoad(){this.open&&this.dialogElement.showModal()}render(){const e=i();return s("dialog",{key:"095e5b8decec78894747a17279092f518c343e05",ref:e=>this.dialogElement=e,"aria-labelledby":e,class:{"gux-open":this.open}},s("gux-side-panel-beta",{key:"713617fd7471fe072ce387b9960540e72c9ec8f9",size:this.size},s("div",{key:"e8944cfbc525af66f4c48d4d39efac5e9d0095ab",slot:"header",id:e},s("slot",{key:"dc84bde8fcec8b902a82971f6c6dba9b75d3213d",name:"header"})),s("div",{key:"bbc3d8206df640277d3157ef3a854167a474cb56",slot:"content"},s("slot",{key:"b0af309b0a42632775e87e3eb239f6888ab269b1",name:"content"})),s("div",{key:"07d5a3e90572c0f51c5e739e6a2b68a6d7b7438d",slot:"footer"},s("slot",{key:"a04f6dfee20d647aadf13cc8a2b5beef23699fca",name:"footer"}))))}get root(){return t(this)}static get watchers(){return{open:["syncOpenState"]}}};d.style="dialog{inset-inline-start:auto;block-size:100%;min-block-size:100%;padding:0;margin:unset;border:none;transform:translateX(100%);transition:transform 0.2s ease-in-out}dialog.gux-open{transform:translateX(0%)}dialog::backdrop{background:var(--gse-ui-sidePanel-shroudColor);opacity:var(--gse-ui-sidePanel-shroud-opacity)}::slotted(footer){flex:0 0 auto;padding:var(--gse-ui-sidePanel-footer-padding);border-block-start:var(--gse-ui-sidePanel-divider-width) var(--gse-ui-sidePanel-divider-style) var(--gse-ui-sidePanel-divider-color)}::slotted(gux-side-panel-header){border-block-end:none}";export{d as gux_modal_side_panel_beta}
@@ -1 +1 @@
1
- import{r as e,c as t,h as n,H as i,a}from"./p-mm833MRp.js";import{t as r}from"./p-Bk9hX_6O.js";import{b as o}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var s={inputPlaceholder:"Ask Genesys AI",generateGenesysAIText:"Generate Genesys AI text"};const d=class{constructor(n){e(this,n),this.onpromptinputgenerate=t(this,"onpromptinputgenerate",7),this.isGenerating=!1,this.hasInputText=!1}onKeyDown(e){this.inputElement.value&&"Enter"===e.key&&this.submit()}async componentWillLoad(){r(this.root),this.i18n=await o(this.root,s)}submit(){this.onpromptinputgenerate.emit({inputText:this.inputElement.value,isGenerating:!0}),this.isGenerating=!0}stopGeneration(){this.onpromptinputgenerate.emit({inputText:this.inputElement.value,isGenerating:!1}),this.isGenerating=!1}handleInput(){var e;this.hasInputText=(null===(e=this.inputElement.value)||void 0===e?void 0:e.length)>0,this.inputElement.parentElement.dataset.replicatedValue=this.inputElement.value}renderSubmitButton(){return n("gux-button-slot",{accent:"primary"},n("button",{type:"button",class:"gux-generate"+(this.hasInputText?"-active":""),onClick:()=>this.submit(),disabled:!this.hasInputText,title:this.i18n("generateGenesysAIText"),"data-testid":"generate-button"},n("gux-icon",{"icon-name":"fa/arrow-up-regular",size:"small",decorative:!0})))}renderStopButton(){return n("gux-button-slot",{accent:"danger"},n("button",{type:"button",class:"gux-generate-cancel",onClick:()=>this.stopGeneration(),"data-testid":"stop-generation"},n("gux-icon",{"icon-name":"fa/square-regular",size:"small",decorative:!0})))}render(){return n(i,{key:"2b44fed4349f39b8ba53c2c754ad096fd8255529"},n("div",{key:"fdaa19cb535c864044b7dec3d25bdfbf4be61710",class:"gux-input-container"},n("div",{key:"b3369ca4d8b857fbea207dd9a4f5b84f517a57ad",class:"gux-grow-wrap"},n("textarea",{key:"2969a22b5b9df0cce92ee8ba70d170c985a9e7bb",rows:1,class:"gux-input",ref:e=>this.inputElement=e,placeholder:this.placeholder||this.i18n("inputPlaceholder"),onInput:this.handleInput.bind(this),"data-testid":"prompt-input"})),this.isGenerating?this.renderStopButton():this.renderSubmitButton()),n("div",{key:"5058ebf7ca4cd6f11c4662ea0b6a6be285edab82",class:"caution-message"},n("slot",{key:"2bbe3da2d8147d11f1c28a5db7232f133a782d5d",name:"caution-message"})))}static get delegatesFocus(){return!0}get root(){return a(this)}};d.style='.gux-input-container{display:flex;flex-shrink:0;gap:var(--gse-ui-rte-innerContainer-gap);align-items:center;inline-size:400px;padding-block:12px;padding-inline:16px;background:var(--gse-ui-formControl-input-backgroundColor);border:var(--gse-semantic-container-edges-borderWidth) solid var(--gse-semantic-border-container-edges-dataTable-default);border-radius:var(--gse-ui-rte-container-borderRadius)}.gux-input-container:focus-within{border:var(--gse-semantic-container-edges-borderWidth) solid var(--gse-semantic-foreground-interactive-secondary-active)}.gux-input-container gux-button-slot{align-self:flex-end}.gux-input-container .gux-grow-wrap{display:grid;inline-size:100%;min-block-size:0;max-block-size:var(--gse-ui-promptInput-simple-label-maxHeight);padding:var(--gse-ui-promptInput-complex-labelContainer-scrollEnabled-padding);overflow:hidden auto}.gux-input-container .gux-grow-wrap::after{visibility:hidden;grid-area:1/1/2/2;padding:0;margin:0;font-family:var(--gse-semantic-theme-fontFamily-body);font-size:var(--gse-core-fontSize-sm);font-weight:var(--gse-core-fontWeight-regular);line-height:var(--gse-core-lineHeight-sm);color:var(--gse-semantic-foreground-formControl-textInput-placeholder);word-break:normal;overflow-wrap:anywhere;white-space:pre-wrap;content:attr(data-replicated-value) " ";border:0}.gux-input-container .gux-grow-wrap>textarea{grid-area:1/1/2/2;overflow:hidden;word-break:normal;overflow-wrap:anywhere;resize:none}.gux-input-container .gux-input{inline-size:100%;font-family:var(--gse-semantic-theme-fontFamily-body);font-size:var(--gse-core-fontSize-sm);font-style:normal;font-weight:var(--gse-core-fontWeight-regular);line-height:var(--gse-core-lineHeight-sm);color:var(--gse-semantic-foreground-formControl-textInput-placeholder);outline:none;border:none}.gux-input-container .gux-generate{display:flex;flex-shrink:0;align-items:center;justify-content:center;inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height);padding-block:0;padding-inline:var(--gse-ui-button-default-paddingIconOnly);background:var(--gse-ui-button-primary-default-backgroundColor);border-radius:var(--gse-ui-button-borderRadius);opacity:var(--gse-ui-button-disabled-opacity)}.gux-input-container .gux-generate-active{display:flex;flex-shrink:0;align-items:center;justify-content:center;inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height);padding-block:0;padding-inline:var(--gse-ui-button-default-paddingIconOnly);background:var(--gse-ui-button-primary-default-backgroundColor);border-radius:var(--gse-ui-button-borderRadius)}.gux-input-container .gux-generate-cancel{display:flex;gap:var(--gse-ui-segmentedControl-button-padding);align-items:center;justify-content:center;inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height);padding-block:0;padding-inline:8px}.gux-input-container .gux-generate-cancel gux-icon{background:var(--gse-ui-formControl-input-backgroundColor)}.caution-message{align-items:center;inline-size:400px;padding-block:12px;padding-inline:16px;font-family:var(--gse-semantic-theme-fontFamily-body);font-size:var(--gse-core-fontSize-2xs);font-style:normal;font-weight:var(--gse-core-fontWeight-regular);line-height:var(--gse-core-lineHeight-3xs);color:var(--gse-semantic-foreground-container-midEmphasis);text-decoration-thickness:auto;text-decoration-style:solid;text-decoration-skip-ink:auto;text-underline-position:from-font;text-underline-offset:auto}';export{d as gux_prompt_input_beta}
1
+ import{r as e,c as t,h as n,H as i,a}from"./p-mm833MRp.js";import{t as r}from"./p-B_5U73XW.js";import{b as o}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var s={inputPlaceholder:"Ask Genesys AI",generateGenesysAIText:"Generate Genesys AI text"};const d=class{constructor(n){e(this,n),this.onpromptinputgenerate=t(this,"onpromptinputgenerate",7),this.isGenerating=!1,this.hasInputText=!1}onKeyDown(e){this.inputElement.value&&"Enter"===e.key&&this.submit()}async componentWillLoad(){r(this.root),this.i18n=await o(this.root,s)}submit(){this.onpromptinputgenerate.emit({inputText:this.inputElement.value,isGenerating:!0}),this.isGenerating=!0}stopGeneration(){this.onpromptinputgenerate.emit({inputText:this.inputElement.value,isGenerating:!1}),this.isGenerating=!1}handleInput(){var e;this.hasInputText=(null===(e=this.inputElement.value)||void 0===e?void 0:e.length)>0,this.inputElement.parentElement.dataset.replicatedValue=this.inputElement.value}renderSubmitButton(){return n("gux-button-slot",{accent:"primary"},n("button",{type:"button",class:"gux-generate"+(this.hasInputText?"-active":""),onClick:()=>this.submit(),disabled:!this.hasInputText,title:this.i18n("generateGenesysAIText"),"data-testid":"generate-button"},n("gux-icon",{"icon-name":"fa/arrow-up-regular",size:"small",decorative:!0})))}renderStopButton(){return n("gux-button-slot",{accent:"danger"},n("button",{type:"button",class:"gux-generate-cancel",onClick:()=>this.stopGeneration(),"data-testid":"stop-generation"},n("gux-icon",{"icon-name":"fa/square-regular",size:"small",decorative:!0})))}render(){return n(i,{key:"2b44fed4349f39b8ba53c2c754ad096fd8255529"},n("div",{key:"fdaa19cb535c864044b7dec3d25bdfbf4be61710",class:"gux-input-container"},n("div",{key:"b3369ca4d8b857fbea207dd9a4f5b84f517a57ad",class:"gux-grow-wrap"},n("textarea",{key:"2969a22b5b9df0cce92ee8ba70d170c985a9e7bb",rows:1,class:"gux-input",ref:e=>this.inputElement=e,placeholder:this.placeholder||this.i18n("inputPlaceholder"),onInput:this.handleInput.bind(this),"data-testid":"prompt-input"})),this.isGenerating?this.renderStopButton():this.renderSubmitButton()),n("div",{key:"5058ebf7ca4cd6f11c4662ea0b6a6be285edab82",class:"caution-message"},n("slot",{key:"2bbe3da2d8147d11f1c28a5db7232f133a782d5d",name:"caution-message"})))}static get delegatesFocus(){return!0}get root(){return a(this)}};d.style='.gux-input-container{display:flex;flex-shrink:0;gap:var(--gse-ui-rte-innerContainer-gap);align-items:center;inline-size:400px;padding-block:12px;padding-inline:16px;background:var(--gse-ui-formControl-input-backgroundColor);border:var(--gse-semantic-container-edges-borderWidth) solid var(--gse-semantic-border-container-edges-dataTable-default);border-radius:var(--gse-ui-rte-container-borderRadius)}.gux-input-container:focus-within{border:var(--gse-semantic-container-edges-borderWidth) solid var(--gse-semantic-foreground-interactive-secondary-active)}.gux-input-container gux-button-slot{align-self:flex-end}.gux-input-container .gux-grow-wrap{display:grid;inline-size:100%;min-block-size:0;max-block-size:var(--gse-ui-promptInput-simple-label-maxHeight);padding:var(--gse-ui-promptInput-complex-labelContainer-scrollEnabled-padding);overflow:hidden auto}.gux-input-container .gux-grow-wrap::after{visibility:hidden;grid-area:1/1/2/2;padding:0;margin:0;font-family:var(--gse-semantic-theme-fontFamily-body);font-size:var(--gse-core-fontSize-sm);font-weight:var(--gse-core-fontWeight-regular);line-height:var(--gse-core-lineHeight-sm);color:var(--gse-semantic-foreground-formControl-textInput-placeholder);word-break:normal;overflow-wrap:anywhere;white-space:pre-wrap;content:attr(data-replicated-value) " ";border:0}.gux-input-container .gux-grow-wrap>textarea{grid-area:1/1/2/2;overflow:hidden;word-break:normal;overflow-wrap:anywhere;resize:none}.gux-input-container .gux-input{inline-size:100%;font-family:var(--gse-semantic-theme-fontFamily-body);font-size:var(--gse-core-fontSize-sm);font-style:normal;font-weight:var(--gse-core-fontWeight-regular);line-height:var(--gse-core-lineHeight-sm);color:var(--gse-semantic-foreground-formControl-textInput-placeholder);outline:none;border:none}.gux-input-container .gux-generate{display:flex;flex-shrink:0;align-items:center;justify-content:center;inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height);padding-block:0;padding-inline:var(--gse-ui-button-default-paddingIconOnly);background:var(--gse-ui-button-primary-default-backgroundColor);border-radius:var(--gse-ui-button-borderRadius);opacity:var(--gse-ui-button-disabled-opacity)}.gux-input-container .gux-generate-active{display:flex;flex-shrink:0;align-items:center;justify-content:center;inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height);padding-block:0;padding-inline:var(--gse-ui-button-default-paddingIconOnly);background:var(--gse-ui-button-primary-default-backgroundColor);border-radius:var(--gse-ui-button-borderRadius)}.gux-input-container .gux-generate-cancel{display:flex;gap:var(--gse-ui-segmentedControl-button-padding);align-items:center;justify-content:center;inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height);padding-block:0;padding-inline:8px}.gux-input-container .gux-generate-cancel gux-icon{background:var(--gse-ui-formControl-input-backgroundColor)}.caution-message{align-items:center;inline-size:400px;padding-block:12px;padding-inline:16px;font-family:var(--gse-semantic-theme-fontFamily-body);font-size:var(--gse-core-fontSize-2xs);font-style:normal;font-weight:var(--gse-core-fontWeight-regular);line-height:var(--gse-core-lineHeight-3xs);color:var(--gse-semantic-foreground-container-midEmphasis);text-decoration-thickness:auto;text-decoration-style:solid;text-decoration-skip-ink:auto;text-underline-position:from-font;text-underline-offset:auto}';export{d as gux_prompt_input_beta}
@@ -1 +1 @@
1
- import{r as e,h as t,a as o}from"./p-mm833MRp.js";import{t as i}from"./p-Bk9hX_6O.js";import{g as a}from"./p-MAoEg4ig.js";const r=class{constructor(t){e(this,t),this.variant="info",this.placement="right"}componentWillLoad(){i(this.root,{variant:this.variant})}getVariantIcon(e){return"question"===e?"fa/circle-question-regular":"fa/circle-info-regular"}async showTooltip(){return await this.tooltipElement.showTooltip()}async hideTooltip(){return await this.tooltipElement.hideTooltip()}render(){return t("div",{key:"f7937e5406f6742132d30055afc791b13c94d96c",class:"gux-label-info"},t("gux-screen-reader-beta",{key:"5532218feb7a9cde93bb5472b4750b9b43dae10d"},a(this.root,"content")),t("gux-icon",{key:"2ec2f0b0e9e176f458186c2340f07392f64ea12a","icon-name":this.getVariantIcon(this.variant),size:"small",decorative:!0}),t("gux-tooltip-beta",{key:"4301704aca8f39bdde35a743c5ca4889ff07c70a",placement:this.placement,ref:e=>this.tooltipElement=e},t("slot",{key:"08628050a3099e1512332f33b48f3915d8994f7e",name:"content"})))}get root(){return o(this)}};r.style=".gux-label-info{inline-size:fit-content;padding:0;line-height:0;background-color:transparent;border:none;border-radius:var(--gse-ui-formControl-label-tooltipTrigger-borderRadius)}.gux-label-info gux-tooltip{padding-inline-start:0}.gux-label-info gux-icon{vertical-align:bottom;color:var(--gse-ui-formControl-label-tooltipTrigger-color)}";export{r as gux_label_info_beta}
1
+ import{r as e,h as t,a as o}from"./p-mm833MRp.js";import{t as i}from"./p-B_5U73XW.js";import{g as a}from"./p-MAoEg4ig.js";const r=class{constructor(t){e(this,t),this.variant="info",this.placement="right"}componentWillLoad(){i(this.root,{variant:this.variant})}getVariantIcon(e){return"question"===e?"fa/circle-question-regular":"fa/circle-info-regular"}async showTooltip(){return await this.tooltipElement.showTooltip()}async hideTooltip(){return await this.tooltipElement.hideTooltip()}render(){return t("div",{key:"f7937e5406f6742132d30055afc791b13c94d96c",class:"gux-label-info"},t("gux-screen-reader-beta",{key:"5532218feb7a9cde93bb5472b4750b9b43dae10d"},a(this.root,"content")),t("gux-icon",{key:"2ec2f0b0e9e176f458186c2340f07392f64ea12a","icon-name":this.getVariantIcon(this.variant),size:"small",decorative:!0}),t("gux-tooltip-beta",{key:"4301704aca8f39bdde35a743c5ca4889ff07c70a",placement:this.placement,ref:e=>this.tooltipElement=e},t("slot",{key:"08628050a3099e1512332f33b48f3915d8994f7e",name:"content"})))}get root(){return o(this)}};r.style=".gux-label-info{inline-size:fit-content;padding:0;line-height:0;background-color:transparent;border:none;border-radius:var(--gse-ui-formControl-label-tooltipTrigger-borderRadius)}.gux-label-info gux-tooltip{padding-inline-start:0}.gux-label-info gux-icon{vertical-align:bottom;color:var(--gse-ui-formControl-label-tooltipTrigger-color)}";export{r as gux_label_info_beta}
@@ -1 +1 @@
1
- import{r as e,c as t,h as s,a as i}from"./p-mm833MRp.js";import{o}from"./p-CF55kYjc.js";import{O as a}from"./p-CuMZPTZF.js";import{a as n}from"./p-Bg4q97BS.js";import{t as r}from"./p-Bk9hX_6O.js";import{b as c}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var d={searchAria:"Search"};const p=class{constructor(s){e(this,s),this.input=t(this,"input",7),this.filter=t(this,"filter",7),this.disabled=!1,this.noFilter=!1,this.filterDebounceTimeout=500,this.dropdownHeight="320px"}watchValue(e){this.opened&&e&&this.closeDropdown(!1)}get value(){var e;return null===(e=this.currentlySelectedOption)||void 0===e?void 0:e.text}getSelectedValues(){return Promise.resolve([this.value])}async setLabeledBy(e){this.srLabelledby=e}onClickOutside(){this.closeDropdown(!1)}async componentWillLoad(){r(this.root),this.i18n=await c(this.root,d),this.handleSelectionChange=this.handleSelectionChange.bind(this),this.updateSelectionState(),this.addOptionListener(),this.slotObserver=o(this.root,(()=>this.updateSelectionState()))}disconnectedCallback(){this.slotObserver&&this.slotObserver.disconnect()}render(){return s("gux-popup",{key:"cd5396732f01957e55faa308412846b7289bde60",expanded:this.opened,disabled:this.disabled},s("div",{key:"8c6656fb47908266bbc26faf2f404eabac93dabc",slot:"target",class:"gux-select-field",onMouseDown:()=>this.inputMouseDown()},s("a",{key:"bd392c0aa7731c2ca9b2f25c8cbc24d31301665e",ref:e=>this.inputBox=e,class:"gux-select-input","aria-labelledby":this.srLabelledby,tabindex:"0",onKeyDown:e=>this.inputKeyDown(e)},this.placeholder&&!this.value&&s("span",{key:"391b17a90d213d3bb8d07231b1b010a67e9bce4a",class:"gux-select-placeholder",title:this.placeholder},this.placeholder),this.value&&s("span",{key:"4ee4fdee1a0221bafefa466b82ff80e6829b3ba4",class:"gux-select-value",title:this.value},this.value)),s("div",{key:"071ac2333aa5b5fba6c0e2b3496678ba24083850",class:"gux-icon-wrapper"},s("gux-icon",{key:"492041ba667e92fc8800e157873230b2a1f72ede",decorative:!0,"icon-name":"custom/chevron-down-small-regular"}))),s("div",{key:"f716ab1605d773aea6b530aae98d51796882135f",slot:"popup",class:"gux-advanced-dropdown-menu"},s("div",{key:"bfe8b85ed1ea8af9d80ddc5eee6737917dfcdff9",class:"gux-dropdown-menu-container"},s("gux-form-field-search",{key:"3b70d81787b4bb03475a057b0d1cd09f662b069d","label-position":"screenreader"},s("label",{key:"ad7fd81d730f8736006e49255d7eaf483fea4549",slot:"label"},this.i18n("searchAria")),s("input",{key:"a817985baa7fd6457fb55d8c5aa3a3a02019d624",slot:"input",type:"search",onInput:e=>{this.handleSearchInput(e)},ref:e=>this.searchInput=e})),s("div",{key:"2d597c591245023d023dc546dc0081cb38a36c54",class:"gux-dropdown-options",style:{maxHeight:this.dropdownHeight},onKeyDown:e=>this.optionsKeyDown(e)},s("slot",{key:"fca9b5e96fa920ed3e731023fade5ff4ca2a776c"})))))}updateSelectionState(){this.selectionOptions=this.getSelectionOptions(),this.currentlySelectedOption=this.selectionOptions.find((e=>e.selected))}addOptionListener(){this.root.addEventListener("selectedChanged",(e=>this.handleSelectionChange(e)))}handleSelectionChange({target:e}){const t=e;this.closeDropdown(!0),this.currentlySelectedOption!==t&&(this.currentlySelectedOption&&(this.currentlySelectedOption.selected=!1),this.currentlySelectedOption=t,this.input.emit(t.value))}getSelectionOptions(){const e=this.root.querySelectorAll("gux-dropdown-option");return Array.from(e)}inputMouseDown(){this.disabled||(this.opened?this.closeDropdown(!0):this.openDropdown(!1))}getFocusIndex(){return this.selectionOptions.findIndex((e=>e.matches(":focus")))}optionsKeyDown(e){switch(e.key){case"ArrowUp":{e.preventDefault();const t=this.getFocusIndex();t>0&&this.selectionOptions[t-1].focus();break}case"ArrowDown":{e.preventDefault();const t=this.getFocusIndex();t<this.selectionOptions.length-1&&this.selectionOptions[t+1].focus();break}case"Home":if(!this.selectionOptions.length)return;this.selectionOptions[0].focus();break;case"End":if(!this.selectionOptions.length)return;this.selectionOptions[this.selectionOptions.length-1].focus()}}inputKeyDown(e){switch(e.key){case"ArrowUp":case"ArrowDown":case" ":this.openDropdown(!0)}}handleSearchInput(e){e.stopPropagation(),clearTimeout(this.filterDebounceTimer),this.filterDebounceTimer=setTimeout((()=>this.searchRequested()),this.filterDebounceTimeout)}searchRequested(){this.filter.emit(this.searchInput.value),this.setFilteredOptions()}setFilteredOptions(){const e=this.searchInput.value;if(!this.noFilter)for(const t of this.selectionOptions)t.shouldFilter(e).then((e=>{t.filtered=e}))}changeFocusToSearch(){n((()=>{this.searchInput.focus()}))}openDropdown(e){this.opened=!0,e&&this.changeFocusToSearch()}closeDropdown(e){this.opened=!1,this.searchInput.value="",this.setFilteredOptions(),e&&this.inputBox.focus()}get root(){return i(this)}static get watchers(){return{disabled:["watchValue"]}}};(function(e,t,s,i){var o,a=arguments.length,n=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,i);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(n=(a<3?o(n):a>3?o(t,s,n):o(t,s))||n);a>3&&n&&Object.defineProperty(t,s,n)})([a({triggerEvents:"mousedown"})],p.prototype,"onClickOutside",null),p.style=":host{color:#2e394c}gux-popup{display:block;margin:4px 0}gux-popup .gux-select-field{position:relative;width:100%;height:32px}gux-popup .gux-select-field a.gux-select-input{position:absolute;inset:0;padding:6px 24px 6px 12px;overflow:hidden;text-overflow:ellipsis;color:#2e394c;white-space:nowrap;text-decoration:none;cursor:pointer;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}gux-popup .gux-select-field a.gux-select-input .gux-select-placeholder,gux-popup .gux-select-field a.gux-select-input .gux-select-value{line-height:20px}gux-popup .gux-select-field a.gux-select-input .gux-select-placeholder{color:#596373}gux-popup .gux-select-field a.gux-select-input:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}gux-popup .gux-select-field .gux-icon-wrapper gux-icon{width:16px;height:16px;color:#596373}gux-popup .gux-select-field .gux-icon-wrapper{position:absolute;top:1px;right:8px;bottom:0;display:flex;align-items:center;overflow:hidden;cursor:pointer}gux-popup .gux-select-field:hover .gux-icon-wrapper gux-icon{color:#2e394c}gux-popup .gux-advanced-dropdown-menu{background:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 0 2px 0 rgba(32, 41, 55, 0.24)}gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search{margin:8px 16px}gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search input::-webkit-search-cancel-button,gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search input::-webkit-search-results-button,gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search input::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}gux-popup .gux-dropdown-options{padding:8px 0;margin:0;overflow-y:auto;color:#2e394c;background:#fdfdfd;border-radius:4px;box-shadow:none}";export{p as gux_advanced_dropdown_legacy}
1
+ import{r as e,c as t,h as s,a as i}from"./p-mm833MRp.js";import{o}from"./p-CF55kYjc.js";import{O as a}from"./p-CuMZPTZF.js";import{a as n}from"./p-Bg4q97BS.js";import{t as r}from"./p-B_5U73XW.js";import{b as c}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var d={searchAria:"Search"};const p=class{constructor(s){e(this,s),this.input=t(this,"input",7),this.filter=t(this,"filter",7),this.disabled=!1,this.noFilter=!1,this.filterDebounceTimeout=500,this.dropdownHeight="320px"}watchValue(e){this.opened&&e&&this.closeDropdown(!1)}get value(){var e;return null===(e=this.currentlySelectedOption)||void 0===e?void 0:e.text}getSelectedValues(){return Promise.resolve([this.value])}async setLabeledBy(e){this.srLabelledby=e}onClickOutside(){this.closeDropdown(!1)}async componentWillLoad(){r(this.root),this.i18n=await c(this.root,d),this.handleSelectionChange=this.handleSelectionChange.bind(this),this.updateSelectionState(),this.addOptionListener(),this.slotObserver=o(this.root,(()=>this.updateSelectionState()))}disconnectedCallback(){this.slotObserver&&this.slotObserver.disconnect()}render(){return s("gux-popup",{key:"cd5396732f01957e55faa308412846b7289bde60",expanded:this.opened,disabled:this.disabled},s("div",{key:"8c6656fb47908266bbc26faf2f404eabac93dabc",slot:"target",class:"gux-select-field",onMouseDown:()=>this.inputMouseDown()},s("a",{key:"bd392c0aa7731c2ca9b2f25c8cbc24d31301665e",ref:e=>this.inputBox=e,class:"gux-select-input","aria-labelledby":this.srLabelledby,tabindex:"0",onKeyDown:e=>this.inputKeyDown(e)},this.placeholder&&!this.value&&s("span",{key:"391b17a90d213d3bb8d07231b1b010a67e9bce4a",class:"gux-select-placeholder",title:this.placeholder},this.placeholder),this.value&&s("span",{key:"4ee4fdee1a0221bafefa466b82ff80e6829b3ba4",class:"gux-select-value",title:this.value},this.value)),s("div",{key:"071ac2333aa5b5fba6c0e2b3496678ba24083850",class:"gux-icon-wrapper"},s("gux-icon",{key:"492041ba667e92fc8800e157873230b2a1f72ede",decorative:!0,"icon-name":"custom/chevron-down-small-regular"}))),s("div",{key:"f716ab1605d773aea6b530aae98d51796882135f",slot:"popup",class:"gux-advanced-dropdown-menu"},s("div",{key:"bfe8b85ed1ea8af9d80ddc5eee6737917dfcdff9",class:"gux-dropdown-menu-container"},s("gux-form-field-search",{key:"3b70d81787b4bb03475a057b0d1cd09f662b069d","label-position":"screenreader"},s("label",{key:"ad7fd81d730f8736006e49255d7eaf483fea4549",slot:"label"},this.i18n("searchAria")),s("input",{key:"a817985baa7fd6457fb55d8c5aa3a3a02019d624",slot:"input",type:"search",onInput:e=>{this.handleSearchInput(e)},ref:e=>this.searchInput=e})),s("div",{key:"2d597c591245023d023dc546dc0081cb38a36c54",class:"gux-dropdown-options",style:{maxHeight:this.dropdownHeight},onKeyDown:e=>this.optionsKeyDown(e)},s("slot",{key:"fca9b5e96fa920ed3e731023fade5ff4ca2a776c"})))))}updateSelectionState(){this.selectionOptions=this.getSelectionOptions(),this.currentlySelectedOption=this.selectionOptions.find((e=>e.selected))}addOptionListener(){this.root.addEventListener("selectedChanged",(e=>this.handleSelectionChange(e)))}handleSelectionChange({target:e}){const t=e;this.closeDropdown(!0),this.currentlySelectedOption!==t&&(this.currentlySelectedOption&&(this.currentlySelectedOption.selected=!1),this.currentlySelectedOption=t,this.input.emit(t.value))}getSelectionOptions(){const e=this.root.querySelectorAll("gux-dropdown-option");return Array.from(e)}inputMouseDown(){this.disabled||(this.opened?this.closeDropdown(!0):this.openDropdown(!1))}getFocusIndex(){return this.selectionOptions.findIndex((e=>e.matches(":focus")))}optionsKeyDown(e){switch(e.key){case"ArrowUp":{e.preventDefault();const t=this.getFocusIndex();t>0&&this.selectionOptions[t-1].focus();break}case"ArrowDown":{e.preventDefault();const t=this.getFocusIndex();t<this.selectionOptions.length-1&&this.selectionOptions[t+1].focus();break}case"Home":if(!this.selectionOptions.length)return;this.selectionOptions[0].focus();break;case"End":if(!this.selectionOptions.length)return;this.selectionOptions[this.selectionOptions.length-1].focus()}}inputKeyDown(e){switch(e.key){case"ArrowUp":case"ArrowDown":case" ":this.openDropdown(!0)}}handleSearchInput(e){e.stopPropagation(),clearTimeout(this.filterDebounceTimer),this.filterDebounceTimer=setTimeout((()=>this.searchRequested()),this.filterDebounceTimeout)}searchRequested(){this.filter.emit(this.searchInput.value),this.setFilteredOptions()}setFilteredOptions(){const e=this.searchInput.value;if(!this.noFilter)for(const t of this.selectionOptions)t.shouldFilter(e).then((e=>{t.filtered=e}))}changeFocusToSearch(){n((()=>{this.searchInput.focus()}))}openDropdown(e){this.opened=!0,e&&this.changeFocusToSearch()}closeDropdown(e){this.opened=!1,this.searchInput.value="",this.setFilteredOptions(),e&&this.inputBox.focus()}get root(){return i(this)}static get watchers(){return{disabled:["watchValue"]}}};(function(e,t,s,i){var o,a=arguments.length,n=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,i);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(n=(a<3?o(n):a>3?o(t,s,n):o(t,s))||n);a>3&&n&&Object.defineProperty(t,s,n)})([a({triggerEvents:"mousedown"})],p.prototype,"onClickOutside",null),p.style=":host{color:#2e394c}gux-popup{display:block;margin:4px 0}gux-popup .gux-select-field{position:relative;width:100%;height:32px}gux-popup .gux-select-field a.gux-select-input{position:absolute;inset:0;padding:6px 24px 6px 12px;overflow:hidden;text-overflow:ellipsis;color:#2e394c;white-space:nowrap;text-decoration:none;cursor:pointer;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}gux-popup .gux-select-field a.gux-select-input .gux-select-placeholder,gux-popup .gux-select-field a.gux-select-input .gux-select-value{line-height:20px}gux-popup .gux-select-field a.gux-select-input .gux-select-placeholder{color:#596373}gux-popup .gux-select-field a.gux-select-input:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}gux-popup .gux-select-field .gux-icon-wrapper gux-icon{width:16px;height:16px;color:#596373}gux-popup .gux-select-field .gux-icon-wrapper{position:absolute;top:1px;right:8px;bottom:0;display:flex;align-items:center;overflow:hidden;cursor:pointer}gux-popup .gux-select-field:hover .gux-icon-wrapper gux-icon{color:#2e394c}gux-popup .gux-advanced-dropdown-menu{background:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 0 2px 0 rgba(32, 41, 55, 0.24)}gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search{margin:8px 16px}gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search input::-webkit-search-cancel-button,gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search input::-webkit-search-results-button,gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search input::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}gux-popup .gux-dropdown-options{padding:8px 0;margin:0;overflow-y:auto;color:#2e394c;background:#fdfdfd;border-radius:4px;box-shadow:none}";export{p as gux_advanced_dropdown_legacy}
@@ -1 +1 @@
1
- import{r as e,c as t,h as g,H as l,a as i}from"./p-mm833MRp.js";import{t as o}from"./p-Bk9hX_6O.js";import{r as a}from"./p-D9jKBqIb.js";import{b as r}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var s={defaultAriaLabel:"Toggle Switch",toggleIsLoading:"Toggle is loading",toggleIsFinishedLoading:"Toggle is finished loading"};const n=class{constructor(g){e(this,g),this.check=t(this,"check",7),this.labelId=a("gux-toggle-label"),this.errorId=a("gux-toggle-error"),this.checked=!1,this.disabled=!1,this.loading=!1,this.labelPosition="right",this.displayInline=!1}handleLoading(e){this.announceElement.guxAnnounce(this.i18n(e?"toggleIsLoading":"toggleIsFinishedLoading"))}onKeydown(e){" "===e.key&&(e.preventDefault(),this.toggle())}toggle(){this.disabled||this.loading||this.check.emit(!this.checked).defaultPrevented||(this.checked=!this.checked)}getAriaLabel(){return this.root.getAttribute("aria-label")||this.label||this.checkedLabel||this.root.title||this.i18n("defaultAriaLabel")}async componentWillLoad(){this.i18n=await r(this.root,s),o(this.root,{variant:this.checkedLabel||this.uncheckedLabel?"labled":"unlabled"})}renderLoading(){if(this.loading)return g("div",{class:"gux-toggle-label-loading"},g("gux-radial-loading",{context:"input"}))}renderLabel(){return this.label?g("div",{class:"gux-toggle-label-and-error"},g("div",{class:"gux-toggle-label"},g("div",{class:"gux-toggle-label-text"},g("span",{class:"gux-toggle-label-text-inner"},g("span",{id:this.labelId},this.label),this.renderLoading())))):this.uncheckedLabel&&this.checkedLabel?g("div",{class:"gux-toggle-label-and-error"},g("div",{class:"gux-toggle-label"},g("div",{class:"gux-toggle-label-text"},g("span",{class:"gux-toggle-label-text-inner"},g("span",{id:this.labelId},this.checked?this.checkedLabel:this.uncheckedLabel),this.renderLoading()),g("span",{class:"gux-toggle-label-text-inner gux-hidden"},this.checkedLabel),g("span",{class:"gux-toggle-label-text-inner gux-hidden"},this.uncheckedLabel)))):void 0}renderError(){if(this.errorMessage)return g("div",{role:"alert",id:this.errorId,class:"gux-toggle-error"},g("div",{class:"gux-toggle-error-container"},g("gux-icon",{"icon-name":"fa/hexagon-exclamation-solid",decorative:!0,size:"small"}),g("div",{class:"gux-toggle-error-message"},this.errorMessage)))}render(){return g(l,{key:"f6643cc6ba0a7eae827d516f962a7f742786c4f4",class:{"gux-display-inline":this.displayInline}},g("div",{key:"e339a331941dd661bb092294c500a95f26d9942e",class:{"gux-toggle-container":!0,"gux-toggle-label-left":"left"===this.labelPosition,"gux-disabled":this.disabled||this.loading},"aria-disabled":this.disabled||this.loading?"true":"false"},g("div",{key:"88da62d623bd1b0602015da4ce0cf93c7de98079",class:"gux-toggle-input",onClick:this.toggle.bind(this)},g("gux-toggle-slider",{key:"e215b0eb939e7d5fab98118156d46a6eab716909",checked:this.checked,disabled:this.disabled||this.loading,guxAriaLabel:this.getAriaLabel(),labelId:this.checkedLabel&&this.uncheckedLabel?this.labelId:"",onKeyDown:this.onKeydown.bind(this),errorId:this.errorMessage?this.errorId:""}),this.renderLabel()),this.renderError()),g("gux-announce-beta",{key:"b5702e9059b714be2acf69cb40338dc29d58c200",ref:e=>this.announceElement=e}))}static get delegatesFocus(){return!0}get root(){return i(this)}static get watchers(){return{loading:["handleLoading"]}}};n.style=':host{display:block;font-family:initial;font-size:initial;font-weight:initial;line-height:initial;outline:none}:host(.gux-display-inline){display:inline-block}.gux-toggle-container.gux-disabled{pointer-events:none;cursor:default}.gux-toggle-container.gux-disabled .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{opacity:var(--gse-ui-toggle-disabled-opacity)}.gux-toggle-container.gux-toggle-label-left .gux-toggle-input{flex-direction:row-reverse}.gux-toggle-container.gux-toggle-label-left .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{place-items:end}.gux-toggle-container.gux-toggle-label-left .gux-toggle-error{float:inline-end}.gux-toggle-container .gux-toggle-input{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toggle-gap);place-content:stretch flex-start;align-items:center;inline-size:fit-content;cursor:pointer}.gux-toggle-container .gux-toggle-input .gux-toggle-label{position:relative;display:inline-block}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{display:grid;grid-template-areas:"inner-div";place-items:center start}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text .gux-toggle-label-text-inner{position:relative;grid-area:inner-div;font-family:var(--gse-ui-toggle-label-fontFamily);font-size:var(--gse-ui-toggle-label-fontSize);font-weight:var(--gse-ui-toggle-label-fontWeight);line-height:var(--gse-ui-toggle-label-lineHeight);color:var(--gse-ui-formControl-label-labelColor);overflow-wrap:break-word}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text .gux-toggle-label-text-inner.gux-hidden{visibility:hidden}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-loading{position:absolute;inset:0;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toggle-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-toggle-label-fontFamily);font-size:var(--gse-ui-toggle-label-fontSize);font-weight:var(--gse-ui-toggle-label-fontWeight);line-height:var(--gse-ui-toggle-label-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container .gux-toggle-error-message{flex:0 1 auto;align-self:auto;order:0}';export{n as gux_toggle}
1
+ import{r as e,c as t,h as g,H as l,a as i}from"./p-mm833MRp.js";import{t as o}from"./p-B_5U73XW.js";import{r as a}from"./p-D9jKBqIb.js";import{b as r}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var s={defaultAriaLabel:"Toggle Switch",toggleIsLoading:"Toggle is loading",toggleIsFinishedLoading:"Toggle is finished loading"};const n=class{constructor(g){e(this,g),this.check=t(this,"check",7),this.labelId=a("gux-toggle-label"),this.errorId=a("gux-toggle-error"),this.checked=!1,this.disabled=!1,this.loading=!1,this.labelPosition="right",this.displayInline=!1}handleLoading(e){this.announceElement.guxAnnounce(this.i18n(e?"toggleIsLoading":"toggleIsFinishedLoading"))}onKeydown(e){" "===e.key&&(e.preventDefault(),this.toggle())}toggle(){this.disabled||this.loading||this.check.emit(!this.checked).defaultPrevented||(this.checked=!this.checked)}getAriaLabel(){return this.root.getAttribute("aria-label")||this.label||this.checkedLabel||this.root.title||this.i18n("defaultAriaLabel")}async componentWillLoad(){this.i18n=await r(this.root,s),o(this.root,{variant:this.checkedLabel||this.uncheckedLabel?"labled":"unlabled"})}renderLoading(){if(this.loading)return g("div",{class:"gux-toggle-label-loading"},g("gux-radial-loading",{context:"input"}))}renderLabel(){return this.label?g("div",{class:"gux-toggle-label-and-error"},g("div",{class:"gux-toggle-label"},g("div",{class:"gux-toggle-label-text"},g("span",{class:"gux-toggle-label-text-inner"},g("span",{id:this.labelId},this.label),this.renderLoading())))):this.uncheckedLabel&&this.checkedLabel?g("div",{class:"gux-toggle-label-and-error"},g("div",{class:"gux-toggle-label"},g("div",{class:"gux-toggle-label-text"},g("span",{class:"gux-toggle-label-text-inner"},g("span",{id:this.labelId},this.checked?this.checkedLabel:this.uncheckedLabel),this.renderLoading()),g("span",{class:"gux-toggle-label-text-inner gux-hidden"},this.checkedLabel),g("span",{class:"gux-toggle-label-text-inner gux-hidden"},this.uncheckedLabel)))):void 0}renderError(){if(this.errorMessage)return g("div",{role:"alert",id:this.errorId,class:"gux-toggle-error"},g("div",{class:"gux-toggle-error-container"},g("gux-icon",{"icon-name":"fa/hexagon-exclamation-solid",decorative:!0,size:"small"}),g("div",{class:"gux-toggle-error-message"},this.errorMessage)))}render(){return g(l,{key:"f6643cc6ba0a7eae827d516f962a7f742786c4f4",class:{"gux-display-inline":this.displayInline}},g("div",{key:"e339a331941dd661bb092294c500a95f26d9942e",class:{"gux-toggle-container":!0,"gux-toggle-label-left":"left"===this.labelPosition,"gux-disabled":this.disabled||this.loading},"aria-disabled":this.disabled||this.loading?"true":"false"},g("div",{key:"88da62d623bd1b0602015da4ce0cf93c7de98079",class:"gux-toggle-input",onClick:this.toggle.bind(this)},g("gux-toggle-slider",{key:"e215b0eb939e7d5fab98118156d46a6eab716909",checked:this.checked,disabled:this.disabled||this.loading,guxAriaLabel:this.getAriaLabel(),labelId:this.checkedLabel&&this.uncheckedLabel?this.labelId:"",onKeyDown:this.onKeydown.bind(this),errorId:this.errorMessage?this.errorId:""}),this.renderLabel()),this.renderError()),g("gux-announce-beta",{key:"b5702e9059b714be2acf69cb40338dc29d58c200",ref:e=>this.announceElement=e}))}static get delegatesFocus(){return!0}get root(){return i(this)}static get watchers(){return{loading:["handleLoading"]}}};n.style=':host{display:block;font-family:initial;font-size:initial;font-weight:initial;line-height:initial;outline:none}:host(.gux-display-inline){display:inline-block}.gux-toggle-container.gux-disabled{pointer-events:none;cursor:default}.gux-toggle-container.gux-disabled .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{opacity:var(--gse-ui-toggle-disabled-opacity)}.gux-toggle-container.gux-toggle-label-left .gux-toggle-input{flex-direction:row-reverse}.gux-toggle-container.gux-toggle-label-left .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{place-items:end}.gux-toggle-container.gux-toggle-label-left .gux-toggle-error{float:inline-end}.gux-toggle-container .gux-toggle-input{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toggle-gap);place-content:stretch flex-start;align-items:center;inline-size:fit-content;cursor:pointer}.gux-toggle-container .gux-toggle-input .gux-toggle-label{position:relative;display:inline-block}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{display:grid;grid-template-areas:"inner-div";place-items:center start}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text .gux-toggle-label-text-inner{position:relative;grid-area:inner-div;font-family:var(--gse-ui-toggle-label-fontFamily);font-size:var(--gse-ui-toggle-label-fontSize);font-weight:var(--gse-ui-toggle-label-fontWeight);line-height:var(--gse-ui-toggle-label-lineHeight);color:var(--gse-ui-formControl-label-labelColor);overflow-wrap:break-word}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text .gux-toggle-label-text-inner.gux-hidden{visibility:hidden}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-loading{position:absolute;inset:0;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toggle-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-toggle-label-fontFamily);font-size:var(--gse-ui-toggle-label-fontSize);font-weight:var(--gse-ui-toggle-label-fontWeight);line-height:var(--gse-ui-toggle-label-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container .gux-toggle-error-message{flex:0 1 auto;align-self:auto;order:0}';export{n as gux_toggle}
@@ -1 +1 @@
1
- import{r as e,h as t,H as s,a as o}from"./p-mm833MRp.js";import{t as a}from"./p-Bk9hX_6O.js";import{O as i}from"./p-CuMZPTZF.js";import{b as r}from"./p-D_8CR3cJ.js";import{b as n}from"./p-Bg4q97BS.js";import"./p-Cd4R0amv.js";var u={additionalActions:"Additional Actions"};const c=class{constructor(t){e(this,t),this.expanded=!1}handleKeyDown(e){const t=e.composedPath();switch(e.key){case"Escape":this.expanded=!1,t.includes(this.listElement)&&(e.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.expanded=!1;break;case"ArrowDown":case"Enter":t.includes(this.dropdownButton)&&(e.preventDefault(),this.expanded=!0,this.focusFirstItemInPopupList())}}handleKeyup(e){if(" "===e.key)e.composedPath().includes(this.dropdownButton)&&(this.expanded=!0,this.focusFirstItemInPopupList())}toggle(){this.expanded=!this.expanded,this.expanded&&this.focusPopupList()}onClickOutside(){this.expanded=!1}focusPopupList(){n((()=>{this.listElement.focus()}))}focusFirstItemInPopupList(){n((()=>{this.listElement.guxFocusFirstItem()}))}renderTooltip(){if(!this.expanded)return t("gux-tooltip-beta",null,t("div",{slot:"content"},this.i18n("additionalActions")))}async componentWillLoad(){this.i18n=await r(this.root,u),a(this.root)}render(){return t(s,{key:"1f531b92cfe8061635f37962415e8fb5f6eb7188",class:{"gux-show-menu":this.showMenu}},t("gux-popup",{key:"8d33e6d474cf41328861b67fdef1868f06af94c6",expanded:this.expanded,"exceed-target-width":!0},t("div",{key:"3488baf88e5ad086c1005f0091cb69a9e6ade272",slot:"target",class:"gux-toolbar-menu-container"},t("gux-button-slot",{key:"7fe9b369c913ac04e9b95c1604fb50b4560e34d8",accent:"secondary"},t("button",{key:"fbea9a44436d15926ac0747f55417b0fe8a6b682",class:"gux-menu-button",type:"button",ref:e=>this.dropdownButton=e,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.expanded.toString()},t("gux-icon",{key:"6e0af94d70df74190b7ae3dc623d852184d8a9e8","icon-name":"fa/ellipsis-regular",size:"small",decorative:!0}),t("gux-screen-reader-beta",{key:"d126b16281ea188704724d4c1de66c8bc273e69a"},this.i18n("additionalActions"))),this.renderTooltip())),t("div",{key:"f96ddd5a33a88900cda4f97e5f835284bc361ed8",class:"gux-list-container",slot:"popup"},t("gux-list",{key:"2dc4ea6f3f7418318903e211fae8c3fa9c97ebf2",ref:e=>this.listElement=e},t("slot",{key:"3e59e56437a551b50e6fe364df917af1f3e76a91"})))))}static get delegatesFocus(){return!0}get root(){return o(this)}};(function(e,t,s,o){var a,i=arguments.length,r=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,o);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(r=(i<3?a(r):i>3?a(t,s,r):a(t,s))||r);i>3&&r&&Object.defineProperty(t,s,r)})([i({triggerEvents:"mousedown"})],c.prototype,"onClickOutside",null),c.style=":host{display:none;-webkit-user-select:none;user-select:none}:host(.gux-show-menu){display:block}.gux-menu-button{display:flex;color:var(--gse-ui-button-secondary-default-foregroundColor);cursor:pointer;border:none}.gux-menu-button gux-icon{align-self:center}.gux-list-container{inline-size:min-content;margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}";export{c as gux_table_toolbar_menu_button}
1
+ import{r as e,h as t,H as s,a as o}from"./p-mm833MRp.js";import{t as a}from"./p-B_5U73XW.js";import{O as i}from"./p-CuMZPTZF.js";import{b as r}from"./p-D_8CR3cJ.js";import{b as n}from"./p-Bg4q97BS.js";import"./p-Cd4R0amv.js";var u={additionalActions:"Additional Actions"};const c=class{constructor(t){e(this,t),this.expanded=!1}handleKeyDown(e){const t=e.composedPath();switch(e.key){case"Escape":this.expanded=!1,t.includes(this.listElement)&&(e.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.expanded=!1;break;case"ArrowDown":case"Enter":t.includes(this.dropdownButton)&&(e.preventDefault(),this.expanded=!0,this.focusFirstItemInPopupList())}}handleKeyup(e){if(" "===e.key)e.composedPath().includes(this.dropdownButton)&&(this.expanded=!0,this.focusFirstItemInPopupList())}toggle(){this.expanded=!this.expanded,this.expanded&&this.focusPopupList()}onClickOutside(){this.expanded=!1}focusPopupList(){n((()=>{this.listElement.focus()}))}focusFirstItemInPopupList(){n((()=>{this.listElement.guxFocusFirstItem()}))}renderTooltip(){if(!this.expanded)return t("gux-tooltip-beta",null,t("div",{slot:"content"},this.i18n("additionalActions")))}async componentWillLoad(){this.i18n=await r(this.root,u),a(this.root)}render(){return t(s,{key:"1f531b92cfe8061635f37962415e8fb5f6eb7188",class:{"gux-show-menu":this.showMenu}},t("gux-popup",{key:"8d33e6d474cf41328861b67fdef1868f06af94c6",expanded:this.expanded,"exceed-target-width":!0},t("div",{key:"3488baf88e5ad086c1005f0091cb69a9e6ade272",slot:"target",class:"gux-toolbar-menu-container"},t("gux-button-slot",{key:"7fe9b369c913ac04e9b95c1604fb50b4560e34d8",accent:"secondary"},t("button",{key:"fbea9a44436d15926ac0747f55417b0fe8a6b682",class:"gux-menu-button",type:"button",ref:e=>this.dropdownButton=e,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.expanded.toString()},t("gux-icon",{key:"6e0af94d70df74190b7ae3dc623d852184d8a9e8","icon-name":"fa/ellipsis-regular",size:"small",decorative:!0}),t("gux-screen-reader-beta",{key:"d126b16281ea188704724d4c1de66c8bc273e69a"},this.i18n("additionalActions"))),this.renderTooltip())),t("div",{key:"f96ddd5a33a88900cda4f97e5f835284bc361ed8",class:"gux-list-container",slot:"popup"},t("gux-list",{key:"2dc4ea6f3f7418318903e211fae8c3fa9c97ebf2",ref:e=>this.listElement=e},t("slot",{key:"3e59e56437a551b50e6fe364df917af1f3e76a91"})))))}static get delegatesFocus(){return!0}get root(){return o(this)}};(function(e,t,s,o){var a,i=arguments.length,r=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,o);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(r=(i<3?a(r):i>3?a(t,s,r):a(t,s))||r);i>3&&r&&Object.defineProperty(t,s,r)})([i({triggerEvents:"mousedown"})],c.prototype,"onClickOutside",null),c.style=":host{display:none;-webkit-user-select:none;user-select:none}:host(.gux-show-menu){display:block}.gux-menu-button{display:flex;color:var(--gse-ui-button-secondary-default-foregroundColor);cursor:pointer;border:none}.gux-menu-button gux-icon{align-self:center}.gux-list-container{inline-size:min-content;margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}";export{c as gux_table_toolbar_menu_button}
@@ -1 +1 @@
1
- import{r as t,h as e,a as s}from"./p-mm833MRp.js";import{g as o}from"./p-DCZG2J0G.js";import{t as i}from"./p-Bk9hX_6O.js";import{g as n}from"./p-MAoEg4ig.js";const a=class{constructor(e){t(this,e),this.iconOnly=!1,this.accent="secondary",this.disabled=!1}handleClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}hideText(){const t=o(this.root,"gux-table-toolbar"),e="condensed"!==(null==t?void 0:t.getAttribute("gs-layout"));return this.iconOnly&&e}renderTooltip(){if(this.hideText())return e("gux-tooltip",null,e("div",{slot:"content"},n(this.root,"text")))}componentWillLoad(){i(this.root)}render(){return e("gux-button-slot",{key:"fbced18066f8a1542b8f7d492e208105ca802cb3",accent:this.accent},e("button",{key:"3f598fc72d4b0399f1800cfa0c1746a244187e04",disabled:this.disabled,type:"button",class:"gux-action-title"},e("slot",{key:"2aea6a09051f77311398068583809d132d2cdb26",name:"icon"}),e("span",{key:"0bb857822f66df87e9ecfa330c95408a859e60bd",class:{"gux-sr-only":this.hideText()}},e("slot",{key:"54569190b4401af09bf16d8935005ebc4951c2b8",name:"text"}))),this.renderTooltip())}static get delegatesFocus(){return!0}get root(){return s(this)}};a.style=":host([disabled]),button[disabled]{pointer-events:none;user-select:none}.gux-sr-only{display:flex;}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip-path:inset(50%)}gux-button-slot{inline-size:100%}.gux-action-title{display:flex;flex-direction:row;gap:var(--gse-ui-button-gap);align-items:center}.gux-action-title slot[name=icon]::slotted(gux-icon){inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}";export{a as gux_table_toolbar_custom_action}
1
+ import{r as t,h as e,a as s}from"./p-mm833MRp.js";import{g as o}from"./p-DCZG2J0G.js";import{t as i}from"./p-B_5U73XW.js";import{g as n}from"./p-MAoEg4ig.js";const a=class{constructor(e){t(this,e),this.iconOnly=!1,this.accent="secondary",this.disabled=!1}handleClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}hideText(){const t=o(this.root,"gux-table-toolbar"),e="condensed"!==(null==t?void 0:t.getAttribute("gs-layout"));return this.iconOnly&&e}renderTooltip(){if(this.hideText())return e("gux-tooltip",null,e("div",{slot:"content"},n(this.root,"text")))}componentWillLoad(){i(this.root)}render(){return e("gux-button-slot",{key:"fbced18066f8a1542b8f7d492e208105ca802cb3",accent:this.accent},e("button",{key:"3f598fc72d4b0399f1800cfa0c1746a244187e04",disabled:this.disabled,type:"button",class:"gux-action-title"},e("slot",{key:"2aea6a09051f77311398068583809d132d2cdb26",name:"icon"}),e("span",{key:"0bb857822f66df87e9ecfa330c95408a859e60bd",class:{"gux-sr-only":this.hideText()}},e("slot",{key:"54569190b4401af09bf16d8935005ebc4951c2b8",name:"text"}))),this.renderTooltip())}static get delegatesFocus(){return!0}get root(){return s(this)}};a.style=":host([disabled]),button[disabled]{pointer-events:none;user-select:none}.gux-sr-only{display:flex;}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip-path:inset(50%)}gux-button-slot{inline-size:100%}.gux-action-title{display:flex;flex-direction:row;gap:var(--gse-ui-button-gap);align-items:center}.gux-action-title slot[name=icon]::slotted(gux-icon){inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}";export{a as gux_table_toolbar_custom_action}
@@ -1 +1 @@
1
- import{r as e,h as i,a as t}from"./p-mm833MRp.js";import{b as o}from"./p-D_8CR3cJ.js";import{O as r}from"./p-1mmdDpx8.js";import{a as l,o as a}from"./p-De1NnCmO.js";import{t as s}from"./p-Bk9hX_6O.js";import{G as n,a as f}from"./p-BkM3RdTO.js";import{G as h,a as d,b as u}from"./p-DR1RHELj.js";import{h as p}from"./p-qzV3vtOw.js";import{g as c}from"./p-MAoEg4ig.js";import{v as m,a as g}from"./p-DHLxhscH.js";import"./p-Cd4R0amv.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";var b={required:"Required"};const x=class{constructor(i){e(this,i),this.indicatorMark="required",this.computedLabelPosition="above",this.required=!1,this.hasError=!1,this.hasHelp=!1,this.hasLabelInfo=!1}watchValue(e){const i=this.root.querySelector("gux-phone-input-beta");i&&(i.hasError=e)}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=p(this.root,"error"),this.hasHelp=p(this.root,"help"),this.hasLabelInfo=p(this.root,"label-info")}handleKeyup(e){var i,t;switch(e.key){case"Tab":this.input.matches(":focus-within")&&(null===(i=this.labelInfo)||void 0===i||i.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3));break;case"Shift":break;default:this.input.matches(":focus-within")&&(null===(t=this.labelInfo)||void 0===t||t.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}async componentWillLoad(){this.getI18nValue=await o(this.root,b),this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=p(this.root,"error"),this.hasHelp=p(this.root,"help"),this.hasLabelInfo=p(this.root,"label-info"),s(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){var e;return i(u,{key:"6ea123b795f941d395a7c1d7e8248c8184635f9d",labelPosition:this.computedLabelPosition},i(d,{key:"e35180713387b8b87a982794b63cf5197749b05f"},null===(e=this.label)||void 0===e?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(c(this.root,"error"),this.hasError),this.renderText(c(this.root,"label-info"),this.hasLabelInfo)),i(h,{key:"0128e7171270e19de005c0a96111aeac91c87a87",position:this.computedLabelPosition,required:this.required},i("slot",{key:"e2e1ed9d712606fe4346ea71b1deb5156afc9362",name:"label",onSlotchange:()=>this.setLabel()}),i("gux-form-field-label-indicator",{key:"400be36b93fcc6631d8daa566e7ba5cc60da27b4",variant:this.indicatorMark,required:this.required}),i("slot",{key:"b2141b31fea069c1bb53e09f6e94c7fcac247248",name:"label-info"})),i("div",{key:"0368025904483b8dd6e1d8eb9ed09b90c2fcc585",class:"gux-input-and-error-container"},i("div",{key:"65f23143dcafc6e43a7f015cd17a129c5cbeaf9b",class:{"gux-input":!0,"gux-input-error":this.hasError}},i("div",{key:"dc607e41a5778de6e0d13b6a68234d3cd62d3c76",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},i("slot",{key:"b72d8f134d6ad1ae8f385bf5463975682dfcf2cb"}))),i(n,{key:"47a516a955b5ea38ac3958bf7ec088819ae6a627",show:this.hasError},i("slot",{key:"f010fbaca29bdb66305ef43898b0166c75dc1b31",name:"error"})),i(f,{key:"69d4e91c95728faa37a37305688d3cda67baa9d2",show:!this.hasError&&this.hasHelp},i("slot",{key:"42b6207240a081af47c1be54b0d9e9a46fbe6c1b",name:"help"}))))}renderText(e,i=!1){if(i)return" "+e}get variant(){return`phoneInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}setInput(){this.input=this.root.querySelector("gux-phone-input-beta"),this.disabled=this.input.disabled,this.required=this.input.required,this.disabledObserver=l(this.input,(e=>{this.disabled=e})),this.requiredObserver=a(this.input,(e=>{this.required=e})),m(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=g(this.label,this.labelPosition)}get root(){return t(this)}static get watchers(){return{hasError:["watchValue"]}}};(function(e,i,t,o){var r,l=arguments.length,a=l<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,i,t,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(l<3?r(a):l>3?r(i,t,a):r(i,t))||a);l>3&&a&&Object.defineProperty(i,t,a)})([r({childList:!0,subtree:!0})],x.prototype,"onMutation",null),x.style=".gux-form-field-fieldset-container{display:flex;min-inline-size:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 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}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1}";export{x as gux_form_field_phone}
1
+ import{r as e,h as i,a as t}from"./p-mm833MRp.js";import{b as o}from"./p-D_8CR3cJ.js";import{O as r}from"./p-1mmdDpx8.js";import{a as l,o as a}from"./p-De1NnCmO.js";import{t as s}from"./p-B_5U73XW.js";import{G as n,a as f}from"./p-BkM3RdTO.js";import{G as h,a as d,b as u}from"./p-DR1RHELj.js";import{h as p}from"./p-qzV3vtOw.js";import{g as c}from"./p-MAoEg4ig.js";import{v as m,a as g}from"./p-DHLxhscH.js";import"./p-Cd4R0amv.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";var b={required:"Required"};const x=class{constructor(i){e(this,i),this.indicatorMark="required",this.computedLabelPosition="above",this.required=!1,this.hasError=!1,this.hasHelp=!1,this.hasLabelInfo=!1}watchValue(e){const i=this.root.querySelector("gux-phone-input-beta");i&&(i.hasError=e)}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=p(this.root,"error"),this.hasHelp=p(this.root,"help"),this.hasLabelInfo=p(this.root,"label-info")}handleKeyup(e){var i,t;switch(e.key){case"Tab":this.input.matches(":focus-within")&&(null===(i=this.labelInfo)||void 0===i||i.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3));break;case"Shift":break;default:this.input.matches(":focus-within")&&(null===(t=this.labelInfo)||void 0===t||t.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}async componentWillLoad(){this.getI18nValue=await o(this.root,b),this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=p(this.root,"error"),this.hasHelp=p(this.root,"help"),this.hasLabelInfo=p(this.root,"label-info"),s(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){var e;return i(u,{key:"6ea123b795f941d395a7c1d7e8248c8184635f9d",labelPosition:this.computedLabelPosition},i(d,{key:"e35180713387b8b87a982794b63cf5197749b05f"},null===(e=this.label)||void 0===e?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(c(this.root,"error"),this.hasError),this.renderText(c(this.root,"label-info"),this.hasLabelInfo)),i(h,{key:"0128e7171270e19de005c0a96111aeac91c87a87",position:this.computedLabelPosition,required:this.required},i("slot",{key:"e2e1ed9d712606fe4346ea71b1deb5156afc9362",name:"label",onSlotchange:()=>this.setLabel()}),i("gux-form-field-label-indicator",{key:"400be36b93fcc6631d8daa566e7ba5cc60da27b4",variant:this.indicatorMark,required:this.required}),i("slot",{key:"b2141b31fea069c1bb53e09f6e94c7fcac247248",name:"label-info"})),i("div",{key:"0368025904483b8dd6e1d8eb9ed09b90c2fcc585",class:"gux-input-and-error-container"},i("div",{key:"65f23143dcafc6e43a7f015cd17a129c5cbeaf9b",class:{"gux-input":!0,"gux-input-error":this.hasError}},i("div",{key:"dc607e41a5778de6e0d13b6a68234d3cd62d3c76",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},i("slot",{key:"b72d8f134d6ad1ae8f385bf5463975682dfcf2cb"}))),i(n,{key:"47a516a955b5ea38ac3958bf7ec088819ae6a627",show:this.hasError},i("slot",{key:"f010fbaca29bdb66305ef43898b0166c75dc1b31",name:"error"})),i(f,{key:"69d4e91c95728faa37a37305688d3cda67baa9d2",show:!this.hasError&&this.hasHelp},i("slot",{key:"42b6207240a081af47c1be54b0d9e9a46fbe6c1b",name:"help"}))))}renderText(e,i=!1){if(i)return" "+e}get variant(){return`phoneInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}setInput(){this.input=this.root.querySelector("gux-phone-input-beta"),this.disabled=this.input.disabled,this.required=this.input.required,this.disabledObserver=l(this.input,(e=>{this.disabled=e})),this.requiredObserver=a(this.input,(e=>{this.required=e})),m(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=g(this.label,this.labelPosition)}get root(){return t(this)}static get watchers(){return{hasError:["watchValue"]}}};(function(e,i,t,o){var r,l=arguments.length,a=l<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,i,t,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(l<3?r(a):l>3?r(i,t,a):r(i,t))||a);l>3&&a&&Object.defineProperty(i,t,a)})([r({childList:!0,subtree:!0})],x.prototype,"onMutation",null),x.style=".gux-form-field-fieldset-container{display:flex;min-inline-size:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 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}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1}";export{x as gux_form_field_phone}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as o,H as i,a as n}from"./p-mm833MRp.js";import{r as s}from"./p-D9jKBqIb.js";import{b as a}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var r={createCustomOptionInstructions:", select to create a new custom option",createOption:'Add "{optionValue}"'};const u=class{constructor(o){e(this,o),this.internalcreatenewoption=t(this,"internalcreatenewoption",7),this.active=!1,this.hidden=!0,this.filtered=!0,this.hovered=!1}onmouseenter(){this.hovered=!0}onMouseleave(){this.hovered=!1}async guxEmitInternalCreateNewOption(){this.internalcreatenewoption.emit()}handleClick(){this.internalcreatenewoption.emit(this.value)}async componentWillLoad(){this.i18n=await a(this.root,r),this.root.id=this.root.id||s("gux-option-multi")}async componentWillRender(){}renderCustomOptionInstructions(){return o("gux-screen-reader-beta",null,this.i18n("createCustomOptionInstructions"))}render(){return o(i,{key:"61a93e06bff2a61ad5609969e65894136913dc96",role:"option","aria-selected":!1,class:{"gux-active":this.active,"gux-hovered":this.hovered,"gux-filtered":this.filtered}},o("div",{key:"f09b6c50ebb109d49875b079329230c23c21f6cd",class:"gux-option"},o("gux-icon",{key:"5073724a016f254ea5abd4f4fa87fd969eed664b",decorative:!0,"icon-name":"fa/plus-regular",size:"small"}),o("div",{key:"70192141244d7ce1568821b2ca0470db2b4ee8a4",class:"gux-create-text"},this.i18n("createOption",{optionValue:this.value})),this.renderCustomOptionInstructions()))}get root(){return n(this)}};u.style=":host{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;min-block-size:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);font-family:var(--gse-ui-menu-option-label-default-text-fontFamily);font-size:var(--gse-ui-menu-option-label-default-text-fontSize);font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);overflow-wrap:break-word;cursor:pointer}:host:host(.gux-disabled){pointer-events:none;cursor:default;opacity:var(--gse-ui-menu-option-disabled-opacity)}:host:host(.gux-active){outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);outline-offset:-2px;border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}:host:host(.gux-hovered:not([disabled])){background:var(--gse-ui-menu-option-hover-backgroundColor)}:host:host(.gux-filtered){display:none}:host gux-icon{padding-inline-end:var(--gse-ui-menu-option-gap)}:host .gux-option{display:inline-flex}";export{u as gux_create_option}