genesys-spark-components 4.188.1 → 4.188.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 (430) hide show
  1. package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
  2. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-actionable-inline-alert-beta.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-avatar-beta.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-avatar-group-add-item-beta_3.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-avatar-group-item-beta.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-blank-state-beta.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-button_2.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-cloud-logo-beta.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-cloud-logomark-beta.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  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 +1 -1
  31. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-file-list-item.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-file-beta.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-file.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-number_2.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-illustration-beta.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-inline-dropdown-beta.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-link-beta.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-logo-beta.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-logomark-beta.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-popover-beta.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-popover-list-beta.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-prompt-input-beta.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-rich-highlight-list-item.cjs.entry.js +1 -1
  88. package/dist/cjs/gux-rich-style-list-item_3.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +15 -3
  90. package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +1 -1
  91. package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +16 -4
  92. package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +22 -3
  93. package/dist/cjs/gux-rich-text-editor-beta.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +1 -1
  95. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  96. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  97. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
  98. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
  99. package/dist/cjs/gux-side-panel-beta.cjs.entry.js +1 -1
  100. package/dist/cjs/gux-side-panel-header.cjs.entry.js +1 -1
  101. package/dist/cjs/gux-side-panel-heading.cjs.entry.js +1 -1
  102. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  103. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  104. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  105. package/dist/cjs/gux-status-indicator-beta.cjs.entry.js +1 -1
  106. package/dist/cjs/gux-step-title.cjs.entry.js +1 -1
  107. package/dist/cjs/gux-step.cjs.entry.js +1 -1
  108. package/dist/cjs/gux-stepper-beta.cjs.entry.js +1 -1
  109. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  110. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  111. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  112. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  113. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  114. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  115. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  116. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  117. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  118. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  119. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  120. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  121. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
  122. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  123. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  124. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  125. package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +1 -1
  126. package/dist/cjs/gux-tooltip-pointer-beta.cjs.entry.js +1 -1
  127. package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
  128. package/dist/cjs/gux-tree-beta.cjs.entry.js +1 -1
  129. package/dist/cjs/gux-tree-multi-beta.cjs.entry.js +1 -1
  130. package/dist/cjs/loader.cjs.js +1 -1
  131. package/dist/cjs/{usage-sB4wE0Xu.js → usage-BJgNelfU.js} +1 -1
  132. package/dist/collection/components/beta/gux-icon-tooltip/gux-icon-tooltip.js +1 -1
  133. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action-link/gux-rich-text-editor-action-link.js +43 -5
  134. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action-text-highlight/gux-rich-text-editor-action-text-highlight.js +44 -6
  135. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action.js +50 -5
  136. package/dist/collection/components/stable/gux-icon/gux-icon.js +1 -1
  137. package/dist/collection/components/stable/gux-icon/icons/custom/glassdoor.svg +1 -0
  138. package/dist/collection/components/stable/gux-icon/icons/custom/kakaotalk.svg +1 -0
  139. package/dist/collection/components/stable/gux-icon/icons/custom/servicenow.svg +1 -0
  140. package/dist/collection/components/stable/gux-icon/icons/custom/trustpilot.svg +1 -0
  141. package/dist/collection/components/stable/gux-icon/icons/custom/zendesk.svg +1 -0
  142. package/dist/collection/components/stable/gux-icon/icons/fa/greater-than-regular.svg +1 -1
  143. package/dist/collection/components/stable/gux-icon/icons/fa/weibo.svg +1 -0
  144. package/dist/esm/genesys-webcomponents.js +1 -1
  145. package/dist/esm/gux-accordion.entry.js +1 -1
  146. package/dist/esm/gux-action-button.entry.js +1 -1
  147. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  148. package/dist/esm/gux-actionable-inline-alert-beta.entry.js +1 -1
  149. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  150. package/dist/esm/gux-announce-beta.entry.js +1 -1
  151. package/dist/esm/gux-avatar-beta.entry.js +1 -1
  152. package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
  153. package/dist/esm/gux-avatar-group-add-item-beta_3.entry.js +1 -1
  154. package/dist/esm/gux-avatar-group-beta.entry.js +1 -1
  155. package/dist/esm/gux-avatar-group-item-beta.entry.js +1 -1
  156. package/dist/esm/gux-badge.entry.js +1 -1
  157. package/dist/esm/gux-blank-state-beta.entry.js +1 -1
  158. package/dist/esm/gux-blank-state.entry.js +1 -1
  159. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  160. package/dist/esm/gux-button-multi.entry.js +1 -1
  161. package/dist/esm/gux-button-slot.entry.js +1 -1
  162. package/dist/esm/gux-button_2.entry.js +1 -1
  163. package/dist/esm/gux-calendar.entry.js +1 -1
  164. package/dist/esm/gux-card.entry.js +1 -1
  165. package/dist/esm/gux-cloud-logo-beta.entry.js +1 -1
  166. package/dist/esm/gux-cloud-logomark-beta.entry.js +1 -1
  167. package/dist/esm/gux-column-manager.entry.js +1 -1
  168. package/dist/esm/gux-content-search.entry.js +1 -1
  169. package/dist/esm/gux-context-menu.entry.js +1 -1
  170. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  171. package/dist/esm/gux-date-beta.entry.js +1 -1
  172. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  173. package/dist/esm/gux-datepicker.entry.js +1 -1
  174. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  175. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  176. package/dist/esm/gux-dropdown-multi.entry.js +1 -1
  177. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  178. package/dist/esm/gux-file-list-item.entry.js +1 -1
  179. package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
  180. package/dist/esm/gux-flyout-menu.entry.js +1 -1
  181. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +1 -1
  182. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  183. package/dist/esm/gux-form-field-color.entry.js +1 -1
  184. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  185. package/dist/esm/gux-form-field-file-beta.entry.js +1 -1
  186. package/dist/esm/gux-form-field-file.entry.js +1 -1
  187. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  188. package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
  189. package/dist/esm/gux-form-field-number_2.entry.js +1 -1
  190. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  191. package/dist/esm/gux-form-field-radio-group-beta.entry.js +1 -1
  192. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  193. package/dist/esm/gux-form-field-range.entry.js +1 -1
  194. package/dist/esm/gux-form-field-search.entry.js +1 -1
  195. package/dist/esm/gux-form-field-select.entry.js +1 -1
  196. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  197. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  198. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  199. package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
  200. package/dist/esm/gux-form-footer.entry.js +1 -1
  201. package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
  202. package/dist/esm/gux-icon.entry.js +1 -1
  203. package/dist/esm/gux-illustration-beta.entry.js +1 -1
  204. package/dist/esm/gux-inline-alert.entry.js +1 -1
  205. package/dist/esm/gux-inline-dropdown-beta.entry.js +1 -1
  206. package/dist/esm/gux-label-info-beta.entry.js +1 -1
  207. package/dist/esm/gux-link-beta.entry.js +1 -1
  208. package/dist/esm/gux-list.entry.js +1 -1
  209. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  210. package/dist/esm/gux-loading-message.entry.js +1 -1
  211. package/dist/esm/gux-logo-beta.entry.js +1 -1
  212. package/dist/esm/gux-logomark-beta.entry.js +1 -1
  213. package/dist/esm/gux-modal-legacy.entry.js +1 -1
  214. package/dist/esm/gux-modal-side-panel-beta.entry.js +1 -1
  215. package/dist/esm/gux-modal.entry.js +1 -1
  216. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  217. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  218. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  219. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  220. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  221. package/dist/esm/gux-pagination.entry.js +1 -1
  222. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  223. package/dist/esm/gux-popover-beta.entry.js +1 -1
  224. package/dist/esm/gux-popover-list-beta.entry.js +1 -1
  225. package/dist/esm/gux-popover-list.entry.js +1 -1
  226. package/dist/esm/gux-prompt-input-beta.entry.js +1 -1
  227. package/dist/esm/gux-radial-loading.entry.js +1 -1
  228. package/dist/esm/gux-radial-progress.entry.js +1 -1
  229. package/dist/esm/gux-rating.entry.js +1 -1
  230. package/dist/esm/gux-rich-highlight-list-item.entry.js +1 -1
  231. package/dist/esm/gux-rich-style-list-item_3.entry.js +1 -1
  232. package/dist/esm/gux-rich-text-editor-action-link.entry.js +15 -3
  233. package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +1 -1
  234. package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +16 -4
  235. package/dist/esm/gux-rich-text-editor-action.entry.js +22 -3
  236. package/dist/esm/gux-rich-text-editor-beta.entry.js +1 -1
  237. package/dist/esm/gux-rich-text-editor-list.entry.js +1 -1
  238. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  239. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  240. package/dist/esm/gux-selector-card-beta.entry.js +1 -1
  241. package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
  242. package/dist/esm/gux-side-panel-beta.entry.js +1 -1
  243. package/dist/esm/gux-side-panel-header.entry.js +1 -1
  244. package/dist/esm/gux-side-panel-heading.entry.js +1 -1
  245. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  246. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  247. package/dist/esm/gux-sort-control.entry.js +1 -1
  248. package/dist/esm/gux-status-indicator-beta.entry.js +1 -1
  249. package/dist/esm/gux-step-title.entry.js +1 -1
  250. package/dist/esm/gux-step.entry.js +1 -1
  251. package/dist/esm/gux-stepper-beta.entry.js +1 -1
  252. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  253. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  254. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  255. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  256. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  257. package/dist/esm/gux-table.entry.js +1 -1
  258. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  259. package/dist/esm/gux-tabs.entry.js +1 -1
  260. package/dist/esm/gux-tag.entry.js +1 -1
  261. package/dist/esm/gux-text-highlight.entry.js +1 -1
  262. package/dist/esm/gux-time-beta.entry.js +1 -1
  263. package/dist/esm/gux-time-picker.entry.js +1 -1
  264. package/dist/esm/gux-time-zone-beta.entry.js +1 -1
  265. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  266. package/dist/esm/gux-toast.entry.js +1 -1
  267. package/dist/esm/gux-toggle.entry.js +1 -1
  268. package/dist/esm/gux-tooltip-base-beta_2.entry.js +1 -1
  269. package/dist/esm/gux-tooltip-pointer-beta.entry.js +1 -1
  270. package/dist/esm/gux-tooltip_2.entry.js +1 -1
  271. package/dist/esm/gux-tree-beta.entry.js +1 -1
  272. package/dist/esm/gux-tree-multi-beta.entry.js +1 -1
  273. package/dist/esm/loader.js +1 -1
  274. package/dist/esm/{usage-B6h1eXrW.js → usage-CyMJvvXZ.js} +1 -1
  275. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  276. package/dist/genesys-webcomponents/icons/custom/glassdoor.svg +1 -0
  277. package/dist/genesys-webcomponents/icons/custom/kakaotalk.svg +1 -0
  278. package/dist/genesys-webcomponents/icons/custom/servicenow.svg +1 -0
  279. package/dist/genesys-webcomponents/icons/custom/trustpilot.svg +1 -0
  280. package/dist/genesys-webcomponents/icons/custom/zendesk.svg +1 -0
  281. package/dist/genesys-webcomponents/icons/fa/greater-than-regular.svg +1 -1
  282. package/dist/genesys-webcomponents/icons/fa/weibo.svg +1 -0
  283. package/dist/genesys-webcomponents/{p-85546f7b.entry.js → p-0176180e.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/p-017a352b.entry.js +1 -0
  285. package/dist/genesys-webcomponents/{p-d294c8ec.entry.js → p-02b7d6fa.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-44ee63db.entry.js → p-03ad79ad.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-5148f891.entry.js → p-04306f05.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-a6f07953.entry.js → p-0693ec26.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-5622da88.entry.js → p-081b8e7d.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/{p-ab56c5a3.entry.js → p-0d1ff8d5.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/{p-6f40c523.entry.js → p-0e89d5c0.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-1687884f.entry.js → p-10d99921.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-8108bda2.entry.js → p-13a947e5.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-c366d66b.entry.js → p-142e2ade.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-9a973106.entry.js → p-15091f57.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-96d5bf32.entry.js → p-15f8246f.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/p-1621bc97.entry.js +1 -0
  298. package/dist/genesys-webcomponents/{p-8eab6c7e.entry.js → p-164fbaed.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-5c57de61.entry.js → p-17ce50d3.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-1695394a.entry.js → p-18c052ed.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/p-18fb0250.entry.js +1 -0
  302. package/dist/genesys-webcomponents/{p-41577f70.entry.js → p-1b97282d.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-07372e52.entry.js → p-1e8b3457.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-9561ec21.entry.js → p-2422d553.entry.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-4827fa85.entry.js → p-279d91f7.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-99d7e93e.entry.js → p-29b0ce5c.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/{p-026b9834.entry.js → p-29ff7cda.entry.js} +1 -1
  308. package/dist/genesys-webcomponents/{p-b7ebc161.entry.js → p-2c46e8b5.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-83c99eb7.entry.js → p-2cd35cd3.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-43a5a349.entry.js → p-31314c33.entry.js} +1 -1
  311. package/dist/genesys-webcomponents/{p-7ed0ad2a.entry.js → p-32f0dca5.entry.js} +1 -1
  312. package/dist/genesys-webcomponents/{p-10005b05.entry.js → p-332aecfe.entry.js} +1 -1
  313. package/dist/genesys-webcomponents/{p-50741c53.entry.js → p-33e05442.entry.js} +1 -1
  314. package/dist/genesys-webcomponents/{p-c39c2e09.entry.js → p-3404ac41.entry.js} +1 -1
  315. package/dist/genesys-webcomponents/{p-af192665.entry.js → p-359f0807.entry.js} +1 -1
  316. package/dist/genesys-webcomponents/{p-6c4f7f1b.entry.js → p-38bbac31.entry.js} +1 -1
  317. package/dist/genesys-webcomponents/p-3c15ca0d.entry.js +1 -0
  318. package/dist/genesys-webcomponents/{p-9f133169.entry.js → p-3c57b576.entry.js} +1 -1
  319. package/dist/genesys-webcomponents/{p-8006d315.entry.js → p-3e80711f.entry.js} +1 -1
  320. package/dist/genesys-webcomponents/{p-a4f41025.entry.js → p-41366673.entry.js} +1 -1
  321. package/dist/genesys-webcomponents/{p-c62c2e2c.entry.js → p-4330bb8d.entry.js} +1 -1
  322. package/dist/genesys-webcomponents/{p-7f0495e3.entry.js → p-4361b612.entry.js} +1 -1
  323. package/dist/genesys-webcomponents/{p-d99db562.entry.js → p-440d9e4c.entry.js} +1 -1
  324. package/dist/genesys-webcomponents/{p-75a276b4.entry.js → p-44bedb7c.entry.js} +1 -1
  325. package/dist/genesys-webcomponents/{p-0a13e985.entry.js → p-458bf41b.entry.js} +1 -1
  326. package/dist/genesys-webcomponents/{p-5ba624d5.entry.js → p-473bafec.entry.js} +1 -1
  327. package/dist/genesys-webcomponents/{p-d4373510.entry.js → p-4942fff1.entry.js} +1 -1
  328. package/dist/genesys-webcomponents/{p-96d5b1bf.entry.js → p-495883fc.entry.js} +1 -1
  329. package/dist/genesys-webcomponents/{p-ea7e0c91.entry.js → p-532cc6bc.entry.js} +1 -1
  330. package/dist/genesys-webcomponents/{p-a359e4da.entry.js → p-5376699a.entry.js} +1 -1
  331. package/dist/genesys-webcomponents/{p-f928754d.entry.js → p-546b39f9.entry.js} +1 -1
  332. package/dist/genesys-webcomponents/{p-49b9817b.entry.js → p-54d38c9f.entry.js} +1 -1
  333. package/dist/genesys-webcomponents/{p-77cb31a4.entry.js → p-56e6235a.entry.js} +1 -1
  334. package/dist/genesys-webcomponents/{p-f5d7a04e.entry.js → p-5e53e0ca.entry.js} +1 -1
  335. package/dist/genesys-webcomponents/{p-dfa33656.entry.js → p-615fa50c.entry.js} +1 -1
  336. package/dist/genesys-webcomponents/{p-c26b24f9.entry.js → p-6647082b.entry.js} +1 -1
  337. package/dist/genesys-webcomponents/{p-7a5ad8ae.entry.js → p-69ec8603.entry.js} +1 -1
  338. package/dist/genesys-webcomponents/{p-78d92139.entry.js → p-70439ac2.entry.js} +1 -1
  339. package/dist/genesys-webcomponents/{p-1ceab2bf.entry.js → p-7c749d36.entry.js} +1 -1
  340. package/dist/genesys-webcomponents/{p-4315cd6b.entry.js → p-7de8ae97.entry.js} +1 -1
  341. package/dist/genesys-webcomponents/{p-f1c4d29d.entry.js → p-8056877a.entry.js} +1 -1
  342. package/dist/genesys-webcomponents/{p-713c8d1b.entry.js → p-810a79c5.entry.js} +1 -1
  343. package/dist/genesys-webcomponents/p-82c72554.entry.js +1 -0
  344. package/dist/genesys-webcomponents/{p-67d1b365.entry.js → p-82d7b51c.entry.js} +1 -1
  345. package/dist/genesys-webcomponents/{p-f8ef5895.entry.js → p-836e38d0.entry.js} +1 -1
  346. package/dist/genesys-webcomponents/p-85ba6a46.entry.js +1 -0
  347. package/dist/genesys-webcomponents/{p-ef202b5f.entry.js → p-8687b616.entry.js} +1 -1
  348. package/dist/genesys-webcomponents/{p-22ed9a7d.entry.js → p-87572456.entry.js} +1 -1
  349. package/dist/genesys-webcomponents/{p-5a6df8ad.entry.js → p-88631676.entry.js} +1 -1
  350. package/dist/genesys-webcomponents/{p-5de2444c.entry.js → p-8b4e9262.entry.js} +1 -1
  351. package/dist/genesys-webcomponents/{p-4ea10f94.entry.js → p-8bb6c091.entry.js} +1 -1
  352. package/dist/genesys-webcomponents/{p-2ef87d07.entry.js → p-8bcd54d4.entry.js} +1 -1
  353. package/dist/genesys-webcomponents/{p-c9cc9783.entry.js → p-8d14f6dd.entry.js} +1 -1
  354. package/dist/genesys-webcomponents/{p-3953c668.entry.js → p-8eb3936e.entry.js} +1 -1
  355. package/dist/genesys-webcomponents/{p-25c8dea4.entry.js → p-8ee8a328.entry.js} +1 -1
  356. package/dist/genesys-webcomponents/{p-fd39807a.entry.js → p-9056483a.entry.js} +1 -1
  357. package/dist/genesys-webcomponents/{p-015617e9.entry.js → p-90e415a0.entry.js} +1 -1
  358. package/dist/genesys-webcomponents/{p-00766124.entry.js → p-94dd3891.entry.js} +1 -1
  359. package/dist/genesys-webcomponents/{p-925f6f1b.entry.js → p-94df9949.entry.js} +1 -1
  360. package/dist/genesys-webcomponents/{p-2701831d.entry.js → p-96e1edf9.entry.js} +1 -1
  361. package/dist/genesys-webcomponents/{p-92eaff46.entry.js → p-99db1012.entry.js} +1 -1
  362. package/dist/genesys-webcomponents/{p-0453c00e.entry.js → p-99e8ceac.entry.js} +1 -1
  363. package/dist/genesys-webcomponents/{p-127778a4.entry.js → p-9b33572a.entry.js} +1 -1
  364. package/dist/genesys-webcomponents/{p-0e7ac2ed.entry.js → p-9d212482.entry.js} +1 -1
  365. package/dist/genesys-webcomponents/{p-66663066.entry.js → p-9d74752b.entry.js} +1 -1
  366. package/dist/genesys-webcomponents/p-9ec88984.entry.js +1 -0
  367. package/dist/genesys-webcomponents/{p-c7add5b0.entry.js → p-9f8f2fde.entry.js} +1 -1
  368. package/dist/genesys-webcomponents/{p-B6h1eXrW.js → p-CyMJvvXZ.js} +1 -1
  369. package/dist/genesys-webcomponents/{p-70bc2301.entry.js → p-a0aab805.entry.js} +1 -1
  370. package/dist/genesys-webcomponents/{p-63769174.entry.js → p-a30fd4d1.entry.js} +1 -1
  371. package/dist/genesys-webcomponents/{p-5411edc5.entry.js → p-a590e831.entry.js} +1 -1
  372. package/dist/genesys-webcomponents/{p-538eed2f.entry.js → p-a933c2a7.entry.js} +1 -1
  373. package/dist/genesys-webcomponents/{p-346a5b78.entry.js → p-ac9bf07f.entry.js} +1 -1
  374. package/dist/genesys-webcomponents/{p-b6971ca1.entry.js → p-b250f711.entry.js} +1 -1
  375. package/dist/genesys-webcomponents/{p-a7d7cc18.entry.js → p-b28c37e3.entry.js} +1 -1
  376. package/dist/genesys-webcomponents/{p-64575c8f.entry.js → p-b3babc0d.entry.js} +1 -1
  377. package/dist/genesys-webcomponents/{p-2904e896.entry.js → p-b3c3bf98.entry.js} +1 -1
  378. package/dist/genesys-webcomponents/p-b40c5571.entry.js +1 -0
  379. package/dist/genesys-webcomponents/{p-1d53a2a3.entry.js → p-b5cac19b.entry.js} +1 -1
  380. package/dist/genesys-webcomponents/p-b6e4090a.entry.js +1 -0
  381. package/dist/genesys-webcomponents/{p-5b22714c.entry.js → p-b83d5895.entry.js} +1 -1
  382. package/dist/genesys-webcomponents/{p-345239d6.entry.js → p-bce5dac9.entry.js} +1 -1
  383. package/dist/genesys-webcomponents/{p-77b653f2.entry.js → p-be8bd652.entry.js} +1 -1
  384. package/dist/genesys-webcomponents/{p-f9adc076.entry.js → p-bf65206c.entry.js} +1 -1
  385. package/dist/genesys-webcomponents/{p-4409c7fc.entry.js → p-c11f8385.entry.js} +1 -1
  386. package/dist/genesys-webcomponents/{p-8d9cc87b.entry.js → p-c7e2b6fc.entry.js} +1 -1
  387. package/dist/genesys-webcomponents/{p-3150ad33.entry.js → p-c82016c8.entry.js} +1 -1
  388. package/dist/genesys-webcomponents/{p-004aee53.entry.js → p-c827df74.entry.js} +1 -1
  389. package/dist/genesys-webcomponents/{p-64bc09ce.entry.js → p-caf2e77d.entry.js} +1 -1
  390. package/dist/genesys-webcomponents/{p-ba57dfae.entry.js → p-cd6ee212.entry.js} +1 -1
  391. package/dist/genesys-webcomponents/{p-cc37b3d5.entry.js → p-cf84a50f.entry.js} +1 -1
  392. package/dist/genesys-webcomponents/{p-6b94d745.entry.js → p-cfad0362.entry.js} +1 -1
  393. package/dist/genesys-webcomponents/{p-a8a5f644.entry.js → p-d7376bde.entry.js} +1 -1
  394. package/dist/genesys-webcomponents/{p-9a74205e.entry.js → p-d9b18255.entry.js} +1 -1
  395. package/dist/genesys-webcomponents/p-d9f3699e.entry.js +1 -0
  396. package/dist/genesys-webcomponents/{p-ec1cb91d.entry.js → p-dbb83b90.entry.js} +1 -1
  397. package/dist/genesys-webcomponents/{p-3e108263.entry.js → p-de02b19a.entry.js} +1 -1
  398. package/dist/genesys-webcomponents/{p-d2beb3b2.entry.js → p-e1d8dc07.entry.js} +1 -1
  399. package/dist/genesys-webcomponents/{p-3fd1a55e.entry.js → p-e94eaef7.entry.js} +1 -1
  400. package/dist/genesys-webcomponents/{p-140fbae9.entry.js → p-ea8cb29e.entry.js} +1 -1
  401. package/dist/genesys-webcomponents/{p-eaf56162.entry.js → p-ebae6208.entry.js} +1 -1
  402. package/dist/genesys-webcomponents/{p-939c80f9.entry.js → p-ef11dec4.entry.js} +1 -1
  403. package/dist/genesys-webcomponents/{p-700fd593.entry.js → p-f083a149.entry.js} +1 -1
  404. package/dist/genesys-webcomponents/{p-62ba27e4.entry.js → p-f194cd6c.entry.js} +1 -1
  405. package/dist/genesys-webcomponents/{p-77d60ed3.entry.js → p-f239128e.entry.js} +1 -1
  406. package/dist/genesys-webcomponents/{p-5495bd0b.entry.js → p-f60983c6.entry.js} +1 -1
  407. package/dist/genesys-webcomponents/{p-6a92146a.entry.js → p-f688ce8d.entry.js} +1 -1
  408. package/dist/genesys-webcomponents/{p-9faa698d.entry.js → p-f7064d44.entry.js} +1 -1
  409. package/dist/genesys-webcomponents/p-f74a20b7.entry.js +1 -0
  410. package/dist/genesys-webcomponents/{p-c70756c3.entry.js → p-f7a90a68.entry.js} +1 -1
  411. package/dist/genesys-webcomponents/{p-8bede258.entry.js → p-f9035e5e.entry.js} +1 -1
  412. package/dist/stencil-wrapper.js +1 -1
  413. package/dist/types/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action-link/gux-rich-text-editor-action-link.d.ts +7 -1
  414. package/dist/types/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action-text-highlight/gux-rich-text-editor-action-text-highlight.d.ts +7 -1
  415. package/dist/types/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action.d.ts +8 -1
  416. package/dist/types/components/stable/gux-icon/gux-icon.types.d.ts +1 -1
  417. package/dist/types/components.d.ts +36 -0
  418. package/dist/types/stencil-wrapper.d.ts +1 -1
  419. package/package.json +1 -1
  420. package/dist/genesys-webcomponents/p-02069f7f.entry.js +0 -1
  421. package/dist/genesys-webcomponents/p-2860c165.entry.js +0 -1
  422. package/dist/genesys-webcomponents/p-3584993f.entry.js +0 -1
  423. package/dist/genesys-webcomponents/p-3da28db9.entry.js +0 -1
  424. package/dist/genesys-webcomponents/p-3ebcd9be.entry.js +0 -1
  425. package/dist/genesys-webcomponents/p-415c4843.entry.js +0 -1
  426. package/dist/genesys-webcomponents/p-6730939b.entry.js +0 -1
  427. package/dist/genesys-webcomponents/p-951cde88.entry.js +0 -1
  428. package/dist/genesys-webcomponents/p-9fcdd9b4.entry.js +0 -1
  429. package/dist/genesys-webcomponents/p-bd7bfefc.entry.js +0 -1
  430. package/dist/genesys-webcomponents/p-e21d0219.entry.js +0 -1
@@ -1 +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-B6h1eXrW.js";import{c as h,s as c,g,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,c(this.listboxElement)));case"Enter":return this.canCreateNewOption()&&this.isActiveElement()&&this.emitCreateOption(),void(this.expanded||this.isFilterable()||c(this.listboxElement));case" ":return void(this.expanded||this.isFilterable()||c(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()&&!this.root.contains(null==t?void 0:t.relatedTarget)&&(this.textInputElement.focus(),this.expanded=!0)}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 c(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=g(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),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),onMouseDown:t=>t.preventDefault(),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:"f5ca87adabe2ec8c38a542715a05b5ca321cf355",class:"gux-dropdown-container"},r("gux-popup",{key:"82e9617130869c5c16d90a932be883a48684cb44",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
+ 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-CyMJvvXZ.js";import{c as h,s as c,g,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,c(this.listboxElement)));case"Enter":return this.canCreateNewOption()&&this.isActiveElement()&&this.emitCreateOption(),void(this.expanded||this.isFilterable()||c(this.listboxElement));case" ":return void(this.expanded||this.isFilterable()||c(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()&&!this.root.contains(null==t?void 0:t.relatedTarget)&&(this.textInputElement.focus(),this.expanded=!0)}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 c(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=g(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),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),onMouseDown:t=>t.preventDefault(),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:"f5ca87adabe2ec8c38a542715a05b5ca321cf355",class:"gux-dropdown-container"},r("gux-popup",{key:"82e9617130869c5c16d90a932be883a48684cb44",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 e,h as n,a}from"./p-mm833MRp.js";import{t}from"./p-B6h1eXrW.js";import{O as i}from"./p-1mmdDpx8.js";import{h as o}from"./p-qzV3vtOw.js";const s=class{constructor(n){e(this,n),this.hasCallToAction=!1,this.hasGuidance=!1}onMutation(){this.hasCallToAction=o(this.root,"call-to-action"),this.hasGuidance=o(this.root,"additional-guidance")}renderCallToActionSlot(){if(this.hasCallToAction)return n("gux-button-slot",{accent:"primary"},n("slot",{name:"call-to-action"}))}renderGuidanceSlot(){if(this.hasGuidance)return n("div",{class:"gux-guidance"},n("slot",{name:"additional-guidance"}))}componentWillLoad(){t(this.root),this.hasCallToAction=o(this.root,"call-to-action"),this.hasGuidance=o(this.root,"additional-guidance")}render(){return n("div",{key:"683a0c3934e93944a33c99970a4fa7318fed26c0",class:"gux-container"},n("div",{key:"bb343ca67e3944d32fb329feedaf81796740c099",class:"gux-image"},n("slot",{key:"45b9078d202038b7b7ebb06950c1616ab10e6b21",name:"image"})),n("div",{key:"b294647eac6f7d2a8cff4b5223a4f3ef85963ffc",class:"gux-message"},n("slot",{key:"8fa259f3fb3aa7b9ab2407082e40197a63b4024a",name:"primary-message"})),this.renderGuidanceSlot(),this.renderCallToActionSlot())}get root(){return a(this)}};(function(e,n,a,t){var i,o=arguments.length,s=o<3?n:null===t?t=Object.getOwnPropertyDescriptor(n,a):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,n,a,t);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(s=(o<3?i(s):o>3?i(n,a,s):i(n,a))||s);o>3&&s&&Object.defineProperty(n,a,s)})([i({childList:!0,subtree:!0})],s.prototype,"onMutation",null),s.style=":host {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n container-type: inline-size;\n}\n\n.gux-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: var(--gse-ui-blankState-padding);\n color: var(--gse-ui-blankState-foregroundColor);\n}\n.gux-container .gux-image {\n padding-block-end: var(--gse-ui-blankState-gapMain);\n}\n.gux-container .gux-message {\n padding-block-end: var(--gse-ui-blankState-gapMessage);\n}\n.gux-container .gux-guidance {\n padding-block-end: var(--gse-ui-blankState-gapContent);\n}\n.gux-container ::slotted(gux-icon) {\n inline-size: var(--gse-ui-blankState-icon-size-lg);\n block-size: var(--gse-ui-blankState-icon-size-lg);\n color: var(--gse-ui-blankState-iconColor);\n}\n.gux-container slot[name=primary-message] {\n font-family: var(--gse-ui-progressAndLoading-blankState-large-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-large-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-large-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-large-header-lineHeight);\n color: var(--gse-ui-blankState-foregroundColor);\n text-align: center;\n}\n.gux-container slot[name=additional-guidance] {\n font-family: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-large-subheader-lineHeight);\n color: var(--gse-ui-blankState-foregroundColor);\n text-align: center;\n}\n\n@container (width < 570px) {\n .gux-container ::slotted(gux-icon) {\n inline-size: var(--gse-ui-blankState-icon-size-sm);\n block-size: var(--gse-ui-blankState-icon-size-sm);\n }\n .gux-container slot[name=primary-message] {\n font-family: var(--gse-ui-progressAndLoading-blankState-small-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-small-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-small-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-small-header-lineHeight);\n }\n .gux-container slot[name=additional-guidance] {\n font-family: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-small-subheader-lineHeight);\n }\n}";export{s as gux_blank_state}
1
+ import{r as e,h as n,a}from"./p-mm833MRp.js";import{t}from"./p-CyMJvvXZ.js";import{O as i}from"./p-1mmdDpx8.js";import{h as o}from"./p-qzV3vtOw.js";const s=class{constructor(n){e(this,n),this.hasCallToAction=!1,this.hasGuidance=!1}onMutation(){this.hasCallToAction=o(this.root,"call-to-action"),this.hasGuidance=o(this.root,"additional-guidance")}renderCallToActionSlot(){if(this.hasCallToAction)return n("gux-button-slot",{accent:"primary"},n("slot",{name:"call-to-action"}))}renderGuidanceSlot(){if(this.hasGuidance)return n("div",{class:"gux-guidance"},n("slot",{name:"additional-guidance"}))}componentWillLoad(){t(this.root),this.hasCallToAction=o(this.root,"call-to-action"),this.hasGuidance=o(this.root,"additional-guidance")}render(){return n("div",{key:"683a0c3934e93944a33c99970a4fa7318fed26c0",class:"gux-container"},n("div",{key:"bb343ca67e3944d32fb329feedaf81796740c099",class:"gux-image"},n("slot",{key:"45b9078d202038b7b7ebb06950c1616ab10e6b21",name:"image"})),n("div",{key:"b294647eac6f7d2a8cff4b5223a4f3ef85963ffc",class:"gux-message"},n("slot",{key:"8fa259f3fb3aa7b9ab2407082e40197a63b4024a",name:"primary-message"})),this.renderGuidanceSlot(),this.renderCallToActionSlot())}get root(){return a(this)}};(function(e,n,a,t){var i,o=arguments.length,s=o<3?n:null===t?t=Object.getOwnPropertyDescriptor(n,a):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,n,a,t);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(s=(o<3?i(s):o>3?i(n,a,s):i(n,a))||s);o>3&&s&&Object.defineProperty(n,a,s)})([i({childList:!0,subtree:!0})],s.prototype,"onMutation",null),s.style=":host {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n container-type: inline-size;\n}\n\n.gux-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: var(--gse-ui-blankState-padding);\n color: var(--gse-ui-blankState-foregroundColor);\n}\n.gux-container .gux-image {\n padding-block-end: var(--gse-ui-blankState-gapMain);\n}\n.gux-container .gux-message {\n padding-block-end: var(--gse-ui-blankState-gapMessage);\n}\n.gux-container .gux-guidance {\n padding-block-end: var(--gse-ui-blankState-gapContent);\n}\n.gux-container ::slotted(gux-icon) {\n inline-size: var(--gse-ui-blankState-icon-size-lg);\n block-size: var(--gse-ui-blankState-icon-size-lg);\n color: var(--gse-ui-blankState-iconColor);\n}\n.gux-container slot[name=primary-message] {\n font-family: var(--gse-ui-progressAndLoading-blankState-large-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-large-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-large-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-large-header-lineHeight);\n color: var(--gse-ui-blankState-foregroundColor);\n text-align: center;\n}\n.gux-container slot[name=additional-guidance] {\n font-family: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-large-subheader-lineHeight);\n color: var(--gse-ui-blankState-foregroundColor);\n text-align: center;\n}\n\n@container (width < 570px) {\n .gux-container ::slotted(gux-icon) {\n inline-size: var(--gse-ui-blankState-icon-size-sm);\n block-size: var(--gse-ui-blankState-icon-size-sm);\n }\n .gux-container slot[name=primary-message] {\n font-family: var(--gse-ui-progressAndLoading-blankState-small-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-small-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-small-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-small-header-lineHeight);\n }\n .gux-container slot[name=additional-guidance] {\n font-family: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-small-subheader-lineHeight);\n }\n}";export{s as gux_blank_state}
@@ -1 +1 @@
1
- import{r as t,h as e,H as o,a as s}from"./p-mm833MRp.js";import{a as i,c as a,o as r,f as n,s as u,b as d}from"./p-C8aV-TzO.js";import{a as h}from"./p-Bg4q97BS.js";import{t as c}from"./p-B6h1eXrW.js";import{h as f}from"./p-QGDBFOq1.js";import{b as l}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var m={onMenuFocus:"Use the right arrow to enter the submenu, and the left arrow to return to the previous menu",onTargetFocus:"A popup has appeared. Press the down arrow to enter the menu"};const p=class{constructor(e){t(this,e),this.isShown=!1}onKeydown(t){if(t.stopPropagation(),this.isShown)switch(t.key){case"Escape":case"ArrowLeft":case"ArrowUp":return void this.root.focus();case"ArrowDown":return t.preventDefault(),void this.focusOnMenu();case"Enter":return void(this.hideDelayTimeout=h((()=>{this.focusOnMenu()})))}}onKeyup(t){t.stopPropagation()," "!==t.key||(this.root===t.target?this.focusOnMenu():this.hideDelayTimeout=h((()=>{this.root.focus()})))}onmouseenter(){this.show()}onMouseleave(){this.hide()}onClick(t){0!==t.detail&&this.hide(),this.root.focus()}onFocusin(){this.isShown||this.announceElement.guxAnnounce(this.i18n("onTargetFocus")),this.show()}onFocusout(){this.hide()}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0}hide(){this.isShown&&(this.hideDelayTimeout=setTimeout((()=>{this.isShown=!1}),f))}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.root.isConnected?this.cleanupUpdatePosition=i(this.targetElement,this.menuContentElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.root&&a(this.targetElement,this.menuContentElement,{placement:"bottom-start",strategy:"fixed",middleware:[r(16),n(),u(),d({element:this.arrowElement,padding:16})]}).then((({x:t,y:e,middlewareData:o,placement:s})=>{var i;Object.assign(this.menuContentElement.style,{left:`${t}px`,top:`${e}px`});const a=s.split("-")[0],r={top:"bottom",right:"left",bottom:"top",left:"right"}[a],n={top:0,right:90,bottom:180,left:-90}[a];if(o.arrow){const{x:t,y:e}=o.arrow;Object.assign(null===(i=this.arrowElement)||void 0===i?void 0:i.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:"",right:"",bottom:"",[r]:"-12px",transform:`rotate(${n}deg)`})}}))}focusOnMenu(){if(this.menuContentElement.contains(document.activeElement))return;this.hideDelayTimeout=h((()=>{this.announceElement.guxAnnounce(this.i18n("onMenuFocus"))}));const t=this.root.querySelector("gux-menu");Array.from(t.children)[0].guxFocus()}async componentWillLoad(){c(this.root),this.i18n=await l(this.root,m)}componentDidLoad(){this.isShown&&this.runUpdatePosition()}componentDidUpdate(){this.isShown?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return e(o,{key:"976af61e41e04fa4991059a2cff61f2333aa009a",tabIndex:0,"aria-haspopup":"true"},e("gux-announce-beta",{key:"deccb510fcf0dcb5c2910e2741681a5cac689468",ref:t=>this.announceElement=t}),e("span",{key:"ef5b926ab0c1ebb68ecf8df32f456a0503651bf3",ref:t=>this.targetElement=t},e("slot",{key:"bf3905fd588df60fee5e1aace7fe1df0c13ab659",name:"target"})),e("div",{key:"32b3b2bedd306db986e467309bd907d34fd85a0f",class:{"gux-flyout-menu-content":!0,"gux-shown":this.isShown},ref:t=>this.menuContentElement=t},e("div",{key:"2dcf06347bd9d3cc0b8fc57c5656902d1935ddc3",ref:t=>this.arrowElement=t,class:"gux-arrow"},e("div",{key:"8b9d3a515368fb529f454474b8cfed25394b25d4",class:"gux-arrow-caret"})),e("slot",{key:"6f3425cbe68e0bf79e954f2f845a920ca8da9bc6",name:"menu"})))}get root(){return s(this)}};p.style=":host{z-index:var(--gse-semantic-zIndex-popover);color:var(--gse-ui-menu-option-label-foregroundColor);cursor:default}:host(:focus){outline:none}:host(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-flyout-menu-content{position:fixed;display:none;border:none;border-radius:var(--gse-ui-flyoutMenu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow);opacity:0}.gux-flyout-menu-content.gux-shown{display:flex;animation-name:fade-in;animation-duration:100ms;animation-delay:350ms;animation-fill-mode:forwards}.gux-flyout-menu-content .gux-arrow{position:absolute;inline-size:var(--gse-ui-flyoutMenu-anchor-width);block-size:var(--gse-ui-flyoutMenu-anchor-height);padding-block-end:4px;overflow:hidden}.gux-flyout-menu-content .gux-arrow-caret{inline-size:0;block-size:0;border-block-start:var(--gse-ui-flyoutMenu-anchor-borderWidth) solid var(--gse-ui-flyoutMenu-backgroundColor);border-inline-start:var(--gse-ui-flyoutMenu-anchor-borderWidth) solid transparent;border-inline-end:var(--gse-ui-flyoutMenu-anchor-borderWidth) solid transparent;filter:drop-shadow(0 0 4px var(--gse-ui-flyoutMenu-anchor-shadowColor))}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}";export{p as gux_flyout_menu}
1
+ import{r as t,h as e,H as o,a as s}from"./p-mm833MRp.js";import{a as i,c as a,o as r,f as n,s as u,b as d}from"./p-C8aV-TzO.js";import{a as h}from"./p-Bg4q97BS.js";import{t as c}from"./p-CyMJvvXZ.js";import{h as f}from"./p-QGDBFOq1.js";import{b as l}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var m={onMenuFocus:"Use the right arrow to enter the submenu, and the left arrow to return to the previous menu",onTargetFocus:"A popup has appeared. Press the down arrow to enter the menu"};const p=class{constructor(e){t(this,e),this.isShown=!1}onKeydown(t){if(t.stopPropagation(),this.isShown)switch(t.key){case"Escape":case"ArrowLeft":case"ArrowUp":return void this.root.focus();case"ArrowDown":return t.preventDefault(),void this.focusOnMenu();case"Enter":return void(this.hideDelayTimeout=h((()=>{this.focusOnMenu()})))}}onKeyup(t){t.stopPropagation()," "!==t.key||(this.root===t.target?this.focusOnMenu():this.hideDelayTimeout=h((()=>{this.root.focus()})))}onmouseenter(){this.show()}onMouseleave(){this.hide()}onClick(t){0!==t.detail&&this.hide(),this.root.focus()}onFocusin(){this.isShown||this.announceElement.guxAnnounce(this.i18n("onTargetFocus")),this.show()}onFocusout(){this.hide()}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0}hide(){this.isShown&&(this.hideDelayTimeout=setTimeout((()=>{this.isShown=!1}),f))}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.root.isConnected?this.cleanupUpdatePosition=i(this.targetElement,this.menuContentElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.root&&a(this.targetElement,this.menuContentElement,{placement:"bottom-start",strategy:"fixed",middleware:[r(16),n(),u(),d({element:this.arrowElement,padding:16})]}).then((({x:t,y:e,middlewareData:o,placement:s})=>{var i;Object.assign(this.menuContentElement.style,{left:`${t}px`,top:`${e}px`});const a=s.split("-")[0],r={top:"bottom",right:"left",bottom:"top",left:"right"}[a],n={top:0,right:90,bottom:180,left:-90}[a];if(o.arrow){const{x:t,y:e}=o.arrow;Object.assign(null===(i=this.arrowElement)||void 0===i?void 0:i.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:"",right:"",bottom:"",[r]:"-12px",transform:`rotate(${n}deg)`})}}))}focusOnMenu(){if(this.menuContentElement.contains(document.activeElement))return;this.hideDelayTimeout=h((()=>{this.announceElement.guxAnnounce(this.i18n("onMenuFocus"))}));const t=this.root.querySelector("gux-menu");Array.from(t.children)[0].guxFocus()}async componentWillLoad(){c(this.root),this.i18n=await l(this.root,m)}componentDidLoad(){this.isShown&&this.runUpdatePosition()}componentDidUpdate(){this.isShown?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return e(o,{key:"976af61e41e04fa4991059a2cff61f2333aa009a",tabIndex:0,"aria-haspopup":"true"},e("gux-announce-beta",{key:"deccb510fcf0dcb5c2910e2741681a5cac689468",ref:t=>this.announceElement=t}),e("span",{key:"ef5b926ab0c1ebb68ecf8df32f456a0503651bf3",ref:t=>this.targetElement=t},e("slot",{key:"bf3905fd588df60fee5e1aace7fe1df0c13ab659",name:"target"})),e("div",{key:"32b3b2bedd306db986e467309bd907d34fd85a0f",class:{"gux-flyout-menu-content":!0,"gux-shown":this.isShown},ref:t=>this.menuContentElement=t},e("div",{key:"2dcf06347bd9d3cc0b8fc57c5656902d1935ddc3",ref:t=>this.arrowElement=t,class:"gux-arrow"},e("div",{key:"8b9d3a515368fb529f454474b8cfed25394b25d4",class:"gux-arrow-caret"})),e("slot",{key:"6f3425cbe68e0bf79e954f2f845a920ca8da9bc6",name:"menu"})))}get root(){return s(this)}};p.style=":host{z-index:var(--gse-semantic-zIndex-popover);color:var(--gse-ui-menu-option-label-foregroundColor);cursor:default}:host(:focus){outline:none}:host(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-flyout-menu-content{position:fixed;display:none;border:none;border-radius:var(--gse-ui-flyoutMenu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow);opacity:0}.gux-flyout-menu-content.gux-shown{display:flex;animation-name:fade-in;animation-duration:100ms;animation-delay:350ms;animation-fill-mode:forwards}.gux-flyout-menu-content .gux-arrow{position:absolute;inline-size:var(--gse-ui-flyoutMenu-anchor-width);block-size:var(--gse-ui-flyoutMenu-anchor-height);padding-block-end:4px;overflow:hidden}.gux-flyout-menu-content .gux-arrow-caret{inline-size:0;block-size:0;border-block-start:var(--gse-ui-flyoutMenu-anchor-borderWidth) solid var(--gse-ui-flyoutMenu-backgroundColor);border-inline-start:var(--gse-ui-flyoutMenu-anchor-borderWidth) solid transparent;border-inline-end:var(--gse-ui-flyoutMenu-anchor-borderWidth) solid transparent;filter:drop-shadow(0 0 4px var(--gse-ui-flyoutMenu-anchor-shadowColor))}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}";export{p as gux_flyout_menu}
@@ -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-B6h1eXrW.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 u=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:"5ddf7bb8a89c5c9d65b93038bdd27a127027ed24"},n("div",{key:"276e073fc4438a9052023b879d11b862407db1df",class:"gux-input-container"},n("div",{key:"921b301276b9750c426f59b4038e6c8ac1f7fd8f",class:"gux-grow-wrap"},n("textarea",{key:"9a1f569919f4f3bb996f537c153f5e064e9b19ef",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:"e39163921a105baa25b2b8d43d93c5e0aa7588d9",class:"caution-message"},n("slot",{key:"43c2c32a885b77620a5874f2439bdc77bad13a9b",name:"caution-message"})))}static get delegatesFocus(){return!0}get root(){return a(this)}};u.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{u 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-CyMJvvXZ.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 u=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:"5ddf7bb8a89c5c9d65b93038bdd27a127027ed24"},n("div",{key:"276e073fc4438a9052023b879d11b862407db1df",class:"gux-input-container"},n("div",{key:"921b301276b9750c426f59b4038e6c8ac1f7fd8f",class:"gux-grow-wrap"},n("textarea",{key:"9a1f569919f4f3bb996f537c153f5e064e9b19ef",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:"e39163921a105baa25b2b8d43d93c5e0aa7588d9",class:"caution-message"},n("slot",{key:"43c2c32a885b77620a5874f2439bdc77bad13a9b",name:"caution-message"})))}static get delegatesFocus(){return!0}get root(){return a(this)}};u.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{u as gux_prompt_input_beta}
@@ -1 +1 @@
1
- import{r as t,h as s,H as e,a as r}from"./p-mm833MRp.js";import{t as i}from"./p-B6h1eXrW.js";import{D as o,g as a}from"./p-D7iHtfrY.js";import{d as h,a as m}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(){i(this.root),p()?this.hasRegionalDatesCookie=!0:this.formatter=new o(n(this.root))}renderDate(){return this.hasRegionalDatesCookie?h(m(this.root),{dateStyle:this.format,timeZone:a(this.timeZone)}).format(new Date(this.datetime)):this.formatter.formatDate(new Date(this.datetime),this.format,{timeZone:a(this.timeZone)})}render(){return s(e,{key:"60543e01ce98e205668be5d959e30ed138a47cc7"},this.renderDate())}get root(){return r(this)}};export{c as gux_date_beta}
1
+ import{r as t,h as s,H as e,a as i}from"./p-mm833MRp.js";import{t as r}from"./p-CyMJvvXZ.js";import{D as o,g as a}from"./p-D7iHtfrY.js";import{d as h,a as m}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(){r(this.root),p()?this.hasRegionalDatesCookie=!0:this.formatter=new o(n(this.root))}renderDate(){return this.hasRegionalDatesCookie?h(m(this.root),{dateStyle:this.format,timeZone:a(this.timeZone)}).format(new Date(this.datetime)):this.formatter.formatDate(new Date(this.datetime),this.format,{timeZone:a(this.timeZone)})}render(){return s(e,{key:"60543e01ce98e205668be5d959e30ed138a47cc7"},this.renderDate())}get root(){return i(this)}};export{c as gux_date_beta}
@@ -1 +1 @@
1
- import{r as t,c as e,f as i,h as o,a as r,H as s}from"./p-mm833MRp.js";import{O as n}from"./p-CuMZPTZF.js";import{b as l}from"./p-D_8CR3cJ.js";import{s as a}from"./p-BMRf5pjV.js";import{o as u,c as d}from"./p-Cb3FOYGS.js";import{b as g}from"./p-Bg4q97BS.js";import{t as c}from"./p-B6h1eXrW.js";import{O as h}from"./p-1mmdDpx8.js";import{s as f,b as p,g as x,a as b,d as v,h as m,e as w,f as C,i as y,j as k,k as z,l as F,m as j,n as O,o as T,c as S,p as E}from"./p-zrBw_m7x.js";import{h as L}from"./p-qzV3vtOw.js";import{w as R}from"./p-kLXvN2m9.js";import{g as D}from"./p-Cd4R0amv.js";import{b as W}from"./p-CK42c8Uy.js";import{r as B}from"./p-D9jKBqIb.js";import{g as H}from"./p-MAoEg4ig.js";import"./p-DjLdmWVU.js";var I={filterResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown"},A=function(t,e,i,o){var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const M=class{constructor(i){t(this,i),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.expanded=!1,this.filter=""}watchExpanded(t){!t&&this.filterElement&&(this.filter="",this.filterElement.value="")}watchValue(t){this.validateValue(t,this.listboxElement)}handleFilter(t){this.guxfilter.emit(t)}watchDisabled(t){t&&(this.expanded=!1)}onKeydown(t){switch(t.key){case"Escape":return this.isFilterable()&&document.activeElement===this.listboxElement?this.filterElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.filterElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("noFocusChange")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0,f(this.listboxElement)));case"Enter":case" ":return void(this.expanded||this.isFilterable()||f(this.listboxElement))}}onInternallistboxoptionsupdated(t){t.stopPropagation(),i(this.root)}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t),this.isFilterable()&&!this.root.contains(null==t?void 0:t.relatedTarget)&&this.filterElement.focus()}onClickOutside(){this.collapseListbox("noFocusChange")}onMutation(){var t;this.listboxElement||(this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox"),this.applyListboxEventListeners())}onInternalExpanded(t){t.stopPropagation(),this.guxexpanded.emit(),this.listboxElement&&g((()=>{this.listboxElement.focus(),this.isFilterable()&&this.filterElement&&this.filterElement.focus()}))}onInternalCollapsed(t){t.stopPropagation(),this.guxcollapsed.emit()}connectedCallback(){var t;this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox"),this.listboxElement&&this.validateValue(this.value,this.listboxElement)}async componentWillLoad(){c(this.root),this.i18n=await l(this.root,I),u(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.filter=this.filter)}showTooltip(){var t;null===(t=this.truncateElement)||void 0===t||t.setShowTooltip()}hideTooltip(){var t;null===(t=this.truncateElement)||void 0===t||t.setHideTooltip()}validateValue(t,e){void 0!==t?this.getOptionElementByValue(t)&&(e.value=t):e&&(e.value=t)}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()}))}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}isFilterable(){return"starts-with"===this.filterType||"custom"===this.filterType}get optionElements(){return p(this.listboxElement)}getOptionElementByValue(t){return this.optionElements.find((e=>e.value===t))}fieldButtonClick(){this.expanded=!this.expanded}filterInput(t){t.stopPropagation(),this.filter=this.filterElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.isFilterable()&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.isFilterable()&&document.activeElement===this.listboxElement}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){switch(t.key){case"ArrowDown":return t.stopImmediatePropagation(),t.preventDefault(),this.listboxElement.focus(),void f(this.listboxElement);case"Enter":return this.listboxElement.guxSelectActive(),void t.preventDefault()}}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,a(this.root,"input"),a(this.root,"change")),this.collapseListbox("focusFieldButton")}getTypeaheadText(t){const e=t.length;if(e>0&&!this.loading){const i=x(this.listboxElement,t);if(i&&"custom"!==this.filterType){const t=b(i);return null==t?void 0:t.substring(e)}}return""}renderTargetDisplay(){const t=this.getOptionElementByValue(this.value);return t?o("div",{class:"gux-selected-option"},this.renderSelectedItem(t)):o("div",{class:"gux-placeholder"},this.placeholder||this.i18n("noSelection"))}renderSelectedItem(t){const e=t.tagName.toLowerCase();switch(e){case"gux-option":return this.renderOption(t);case"gux-option-icon":case"gux-option-status-beta":return this.renderIconOption(t);default:return e}}getOptionDefaultText(t){return b(t)}renderOption(t){return o("gux-truncate",{ref:t=>this.truncateElement=t,dir:"auto"},this.getOptionDefaultText(t))}renderIconOption(t){let e=null,i=t.textContent;return null!==t.iconColor&&(e={color:t.iconColor}),L(t,"subtext")&&(i=this.getOptionDefaultText(t)),o("span",{class:{"gux-selected-icon":!0,"gux-icon-position-end":"end"===t.iconPosition}},o("gux-icon",{"icon-name":t.iconName,style:e,decorative:!0,size:"small"}),o("gux-truncate",{ref:t=>this.truncateElement=t},i))}renderFilterInputField(){if(this.isFilterable())return o("div",{class:"gux-field gux-input-field",dir:"auto"},o("div",{class:"gux-field-content"},o("div",{class:"gux-filter"},o("div",{class:"gux-filter-display"},o("span",{class:"gux-filter-text"},this.filter),o("span",{class:"gux-filter-suggestion"},this.getTypeaheadText(this.filter))),o("div",{class:"input-and-dropdown-button"},o("input",{class:"gux-filter-input",type:"text","aria-label":this.i18n("filterResults"),ref:t=>this.filterElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this),onFocus:()=>this.expanded=!0,disabled:this.disabled}),this.renderTargetContent()))))}renderPopup(){return o("slot",{slot:"popup"})}renderTarget(){return o("div",{class:{"gux-target-container-filterable":this.isFilterable(),"gux-target-container-filterable-active":this.expanded&&this.isFilterable(),"gux-target-container-not-filterable":!this.isFilterable(),"gux-error":this.hasError,"gux-disabled":this.disabled},slot:"target"},this.renderFilterInputField(),o("button",{type:"button",class:"gux-field gux-field-button",disabled:d(this.root),onClick:this.fieldButtonClick.bind(this),onFocusin:this.showTooltip.bind(this),onFocusout:this.hideTooltip.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},!this.isFilterable()&&this.renderTargetContent(),this.renderRadialLoading(),o("gux-icon",{class:{"gux-expand-icon":!0},"screenreader-text":this.i18n("dropdown"),size:"small",iconName:this.expanded?"custom/chevron-up-small-regular":"custom/chevron-down-small-regular"})))}renderTargetContent(){if(!this.expanded||!this.isFilterable())return o("div",{class:"gux-field-content"},this.renderTargetDisplay())}renderRadialLoading(){if(this.loading&&!this.expanded)return o("gux-radial-loading",{context:"input"})}render(){return o("gux-popup",{key:"1132809cbe653cbcc917a87ce921448e6e135bdc",expanded:this.expanded&&(!this.loading||this.isFilterable()),disabled:this.disabled||this.loading&&!this.isFilterable(),exceedTargetWidth:this.exceedTargetWidth},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return r(this)}static get watchers(){return{expanded:["watchExpanded"],value:["watchValue"],filter:["handleFilter"],disabled:["watchDisabled"]}}};A([n({triggerEvents:"mousedown"})],M.prototype,"onClickOutside",null),A([h({childList:!0,subtree:!0})],M.prototype,"onMutation",null),M.style=":host{box-sizing:border-box;color:var(--gse-ui-formControl-input-populatedColor)}.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-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-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{--gux-zindex-tooltip:3;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;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter{position:relative;block-size:100%}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;inline-size:100%;color:transparent;caret-color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-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.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:focus-visible{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)}.gux-target-container-filterable:focus-within:has(:focus-visible){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)}.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-filter-input::selection{color:inherit;background:transparent;}.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-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)}.gux-target-container-not-filterable .gux-field-button:focus-within:has(:focus-visible){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)}::slotted(gux-listbox){outline:none;box-shadow:var(--gse-ui-menu-boxShadow)}.gux-selected-icon{display:flex;flex-direction:row;align-items:center}.gux-selected-icon.gux-icon-position-end{flex-direction:row-reverse}.gux-selected-icon gux-icon{padding-inline-end:var(--gse-ui-dropdown-gap)}";const K=["gux-option","gux-option-icon","gux-option-status-beta"].join(",");var V={noMatches:"No matches",loading:"Loading..."};const _=class{constructor(i){t(this,i),this.internallistboxoptionsupdated=e(this,"internallistboxoptionsupdated",7),this.loading=!1,this.filter="",this.filterType="none",this.disabled=!1,this.selectedValues=[],this.listboxOptions=[]}onBlur(){v(this.root)}onKeydown(t){if(!m(this.root))return t.preventDefault(),void f(this.root);switch(t.key){case"Enter":return t.preventDefault(),void j(this.root,(t=>this.updateValue(t)));case"ArrowDown":return t.preventDefault(),void(z(this.root)?(t.stopPropagation(),F(this.root)):C(this.root));case"ArrowUp":return t.preventDefault(),void(y(this.root)?(t.stopPropagation(),k(this.root)):w(this.root));case"Home":return t.preventDefault(),void C(this.root);case"End":return t.preventDefault(),void w(this.root);case" ":return void t.preventDefault()}1!==t.key.length||O(this.root,t.key)}onKeyup(t){" "!==t.key||j(this.root,(t=>this.updateValue(t)))}onMousemove(){v(this.root)}onClick(t){R(K,t,(t=>{T(t,(t=>this.updateValue(t)))}))}async guxSelectActive(){j(this.root,(t=>this.updateValue(t)))}setListboxOptions(){this.selectedValues=S(this.value),this.listboxOptions=p(this.root),this.internallistboxoptionsupdated.emit()}updateValue(t){this.value!==t&&(this.value=t),a(this.root,"input"),a(this.root,"change")}async componentWillLoad(){c(this.root),this.i18n=await l(this.root,V),this.setListboxOptions()}componentWillRender(){this.listboxOptions.forEach((t=>{t.selected=t.value===this.value,"custom"!==this.filterType&&"none"!==this.filterType&&(t.filtered=!E(t,this.filter))})),this.allListboxOptionsFiltered=0===this.listboxOptions.filter((t=>!t.filtered)).length}renderHiddenSlot(){return o("div",{hidden:!0},o("slot",{onSlotchange:()=>this.setListboxOptions()}))}renderLoading(){return[o("div",{class:"gux-message-container"},o("gux-radial-loading",{context:"modal"}),o("span",null,this.i18n("loading"))),this.renderHiddenSlot()]}renderAllListboxOptionsFiltered(){return[o("div",{class:"gux-message-container"},o("div",{class:"gux-no-matches"},this.emptyMessage||this.i18n("noMatches"))),this.renderHiddenSlot()]}render(){return this.loading?this.renderLoading():this.allListboxOptionsFiltered?this.renderAllListboxOptionsFiltered():o(s,{role:"listbox",tabindex:0},o("slot",{onSlotchange:()=>this.setListboxOptions()}))}get root(){return r(this)}};_.style=":host{scrollbar-color:var(--gse-ui-menu-border-color) transparent;scrollbar-width:thin;box-sizing:border-box;display:block;max-block-size:var(--gse-ui-menu-maxHeight);padding:var(--gse-ui-menu-padding);margin:0;overflow:visible auto;outline:none;background:var(--gse-ui-menu-backgroundColor);border:var(--gse-ui-menu-border-width) var(--gse-ui-menu-border-style) var(--gse-ui-menu-border-color);border-radius:var(--gse-ui-menu-borderRadius)}:host(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-ui-color-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-message-container{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch center;align-items:center;text-align:center}.gux-message-container .gux-no-matches{box-sizing:border-box;block-size:var(--gse-ui-menu-option-height);padding-block:var(--gse-ui-dropdown-gap);font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor)}";const N=class{constructor(e){t(this,e),this.active=!1,this.selected=!1,this.disabled=!1,this.filtered=!1,this.hasSubtext=!1}handleActive(t){var e,i;t?null===(e=this.truncateElement)||void 0===e||e.setShowTooltip():null===(i=this.truncateElement)||void 0===i||i.setHideTooltip()}componentWillLoad(){this.root.id=this.root.id||B("gux-option"),this.onSubtextChange()}onSubtextChange(){const t=H(this.root,"subtext");this.hasSubtext=!!(null==t?void 0:t.trim())}getAriaSelected(){return!this.disabled&&(this.selected?"true":"false")}hasDisabledParent(){const t=D("gux-listbox",this.root);return null==t?void 0:t.disabled}render(){return o(s,{key:"3b32039f09c90fe88bdafcb3597943337ae79ff4",role:"option",class:{"gux-active":this.active,"gux-disabled":this.disabled||this.hasDisabledParent(),"gux-filtered":this.filtered,"gux-selected":this.selected,"gux-show-subtext":this.hasSubtext},"aria-selected":this.getAriaSelected(),"aria-disabled":W(this.disabled||this.hasDisabledParent())},o("div",{key:"e12ee238fe0bf8b88ea2ff9c422ff7a53a4f92cc",class:"gux-option-wrapper"},o("gux-truncate",{key:"07bf888b0cb355764fe8aa4343f84395389ac32a","tooltip-placement":"right",ref:t=>this.truncateElement=t},o("slot",{key:"632f29668ec685018e381967833e9ac0e22e6991"})),o("slot",{key:"3f6c9039cbcccc0002d21913ce2f253fd149b70a",onSlotchange:()=>this.onSubtextChange(),name:"subtext"})))}get root(){return r(this)}static get watchers(){return{active:["handleActive"]}}};N.style=":host{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-menu-option-gap);place-content:stretch center;align-items:center;block-size:var(--gse-ui-menu-option-height);min-block-size:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);font-family:var(--gse-ui-menu-option-label-default-text-fontFamily);font-size:var(--gse-ui-menu-option-label-default-text-fontSize);font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);overflow-wrap:break-word;cursor:pointer}:host .gux-option-wrapper{inline-size:100%;user-select:none}:host .gux-slot-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.gux-disabled){pointer-events:none;cursor:default;opacity:var(--gse-ui-menu-option-disabled-opacity)}:host(.gux-selected){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);background:var(--gse-ui-menu-option-selected-backgroundColor)}:host(:active:not(:disabled)){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight)}:host(.gux-active){outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);outline-offset:-2px;border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}:host(.gux-show-subtext){align-items:flex-start;block-size:auto;padding:var(--gse-ui-menu-option-subtext-padding)}:host(.gux-show-subtext) .gux-option-wrapper{display:flex;flex-direction:column}:host(.gux-show-subtext) slot[name=subtext]::slotted(*){font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);color:var(--gse-ui-menu-groupedMenu-subtext-foregroundColor)}:host(:hover:not(:disabled)){background:var(--gse-ui-menu-option-hover-backgroundColor)}:host(.gux-filtered){display:none}";export{M as gux_dropdown,_ as gux_listbox,N as gux_option}
1
+ import{r as t,c as e,f as i,h as o,a as r,H as s}from"./p-mm833MRp.js";import{O as n}from"./p-CuMZPTZF.js";import{b as l}from"./p-D_8CR3cJ.js";import{s as a}from"./p-BMRf5pjV.js";import{o as u,c as d}from"./p-Cb3FOYGS.js";import{b as g}from"./p-Bg4q97BS.js";import{t as c}from"./p-CyMJvvXZ.js";import{O as h}from"./p-1mmdDpx8.js";import{s as f,b as p,g as x,a as b,d as v,h as m,e as w,f as C,i as y,j as k,k as z,l as F,m as j,n as O,o as T,c as S,p as E}from"./p-zrBw_m7x.js";import{h as L}from"./p-qzV3vtOw.js";import{w as R}from"./p-kLXvN2m9.js";import{g as D}from"./p-Cd4R0amv.js";import{b as W}from"./p-CK42c8Uy.js";import{r as B}from"./p-D9jKBqIb.js";import{g as H}from"./p-MAoEg4ig.js";import"./p-DjLdmWVU.js";var I={filterResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown"},M=function(t,e,i,o){var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const A=class{constructor(i){t(this,i),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.expanded=!1,this.filter=""}watchExpanded(t){!t&&this.filterElement&&(this.filter="",this.filterElement.value="")}watchValue(t){this.validateValue(t,this.listboxElement)}handleFilter(t){this.guxfilter.emit(t)}watchDisabled(t){t&&(this.expanded=!1)}onKeydown(t){switch(t.key){case"Escape":return this.isFilterable()&&document.activeElement===this.listboxElement?this.filterElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.filterElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("noFocusChange")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0,f(this.listboxElement)));case"Enter":case" ":return void(this.expanded||this.isFilterable()||f(this.listboxElement))}}onInternallistboxoptionsupdated(t){t.stopPropagation(),i(this.root)}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t),this.isFilterable()&&!this.root.contains(null==t?void 0:t.relatedTarget)&&this.filterElement.focus()}onClickOutside(){this.collapseListbox("noFocusChange")}onMutation(){var t;this.listboxElement||(this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox"),this.applyListboxEventListeners())}onInternalExpanded(t){t.stopPropagation(),this.guxexpanded.emit(),this.listboxElement&&g((()=>{this.listboxElement.focus(),this.isFilterable()&&this.filterElement&&this.filterElement.focus()}))}onInternalCollapsed(t){t.stopPropagation(),this.guxcollapsed.emit()}connectedCallback(){var t;this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox"),this.listboxElement&&this.validateValue(this.value,this.listboxElement)}async componentWillLoad(){c(this.root),this.i18n=await l(this.root,I),u(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.filter=this.filter)}showTooltip(){var t;null===(t=this.truncateElement)||void 0===t||t.setShowTooltip()}hideTooltip(){var t;null===(t=this.truncateElement)||void 0===t||t.setHideTooltip()}validateValue(t,e){void 0!==t?this.getOptionElementByValue(t)&&(e.value=t):e&&(e.value=t)}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()}))}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}isFilterable(){return"starts-with"===this.filterType||"custom"===this.filterType}get optionElements(){return p(this.listboxElement)}getOptionElementByValue(t){return this.optionElements.find((e=>e.value===t))}fieldButtonClick(){this.expanded=!this.expanded}filterInput(t){t.stopPropagation(),this.filter=this.filterElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.isFilterable()&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.isFilterable()&&document.activeElement===this.listboxElement}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){switch(t.key){case"ArrowDown":return t.stopImmediatePropagation(),t.preventDefault(),this.listboxElement.focus(),void f(this.listboxElement);case"Enter":return this.listboxElement.guxSelectActive(),void t.preventDefault()}}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,a(this.root,"input"),a(this.root,"change")),this.collapseListbox("focusFieldButton")}getTypeaheadText(t){const e=t.length;if(e>0&&!this.loading){const i=x(this.listboxElement,t);if(i&&"custom"!==this.filterType){const t=b(i);return null==t?void 0:t.substring(e)}}return""}renderTargetDisplay(){const t=this.getOptionElementByValue(this.value);return t?o("div",{class:"gux-selected-option"},this.renderSelectedItem(t)):o("div",{class:"gux-placeholder"},this.placeholder||this.i18n("noSelection"))}renderSelectedItem(t){const e=t.tagName.toLowerCase();switch(e){case"gux-option":return this.renderOption(t);case"gux-option-icon":case"gux-option-status-beta":return this.renderIconOption(t);default:return e}}getOptionDefaultText(t){return b(t)}renderOption(t){return o("gux-truncate",{ref:t=>this.truncateElement=t,dir:"auto"},this.getOptionDefaultText(t))}renderIconOption(t){let e=null,i=t.textContent;return null!==t.iconColor&&(e={color:t.iconColor}),L(t,"subtext")&&(i=this.getOptionDefaultText(t)),o("span",{class:{"gux-selected-icon":!0,"gux-icon-position-end":"end"===t.iconPosition}},o("gux-icon",{"icon-name":t.iconName,style:e,decorative:!0,size:"small"}),o("gux-truncate",{ref:t=>this.truncateElement=t},i))}renderFilterInputField(){if(this.isFilterable())return o("div",{class:"gux-field gux-input-field",dir:"auto"},o("div",{class:"gux-field-content"},o("div",{class:"gux-filter"},o("div",{class:"gux-filter-display"},o("span",{class:"gux-filter-text"},this.filter),o("span",{class:"gux-filter-suggestion"},this.getTypeaheadText(this.filter))),o("div",{class:"input-and-dropdown-button"},o("input",{class:"gux-filter-input",type:"text","aria-label":this.i18n("filterResults"),ref:t=>this.filterElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this),onFocus:()=>this.expanded=!0,disabled:this.disabled}),this.renderTargetContent()))))}renderPopup(){return o("slot",{slot:"popup"})}renderTarget(){return o("div",{class:{"gux-target-container-filterable":this.isFilterable(),"gux-target-container-filterable-active":this.expanded&&this.isFilterable(),"gux-target-container-not-filterable":!this.isFilterable(),"gux-error":this.hasError,"gux-disabled":this.disabled},slot:"target"},this.renderFilterInputField(),o("button",{type:"button",class:"gux-field gux-field-button",disabled:d(this.root),onClick:this.fieldButtonClick.bind(this),onFocusin:this.showTooltip.bind(this),onFocusout:this.hideTooltip.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},!this.isFilterable()&&this.renderTargetContent(),this.renderRadialLoading(),o("gux-icon",{class:{"gux-expand-icon":!0},"screenreader-text":this.i18n("dropdown"),size:"small",iconName:this.expanded?"custom/chevron-up-small-regular":"custom/chevron-down-small-regular"})))}renderTargetContent(){if(!this.expanded||!this.isFilterable())return o("div",{class:"gux-field-content"},this.renderTargetDisplay())}renderRadialLoading(){if(this.loading&&!this.expanded)return o("gux-radial-loading",{context:"input"})}render(){return o("gux-popup",{key:"1132809cbe653cbcc917a87ce921448e6e135bdc",expanded:this.expanded&&(!this.loading||this.isFilterable()),disabled:this.disabled||this.loading&&!this.isFilterable(),exceedTargetWidth:this.exceedTargetWidth},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return r(this)}static get watchers(){return{expanded:["watchExpanded"],value:["watchValue"],filter:["handleFilter"],disabled:["watchDisabled"]}}};M([n({triggerEvents:"mousedown"})],A.prototype,"onClickOutside",null),M([h({childList:!0,subtree:!0})],A.prototype,"onMutation",null),A.style=":host{box-sizing:border-box;color:var(--gse-ui-formControl-input-populatedColor)}.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-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-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{--gux-zindex-tooltip:3;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;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter{position:relative;block-size:100%}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;inline-size:100%;color:transparent;caret-color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-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.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:focus-visible{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)}.gux-target-container-filterable:focus-within:has(:focus-visible){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)}.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-filter-input::selection{color:inherit;background:transparent;}.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-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)}.gux-target-container-not-filterable .gux-field-button:focus-within:has(:focus-visible){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)}::slotted(gux-listbox){outline:none;box-shadow:var(--gse-ui-menu-boxShadow)}.gux-selected-icon{display:flex;flex-direction:row;align-items:center}.gux-selected-icon.gux-icon-position-end{flex-direction:row-reverse}.gux-selected-icon gux-icon{padding-inline-end:var(--gse-ui-dropdown-gap)}";const K=["gux-option","gux-option-icon","gux-option-status-beta"].join(",");var V={noMatches:"No matches",loading:"Loading..."};const _=class{constructor(i){t(this,i),this.internallistboxoptionsupdated=e(this,"internallistboxoptionsupdated",7),this.loading=!1,this.filter="",this.filterType="none",this.disabled=!1,this.selectedValues=[],this.listboxOptions=[]}onBlur(){v(this.root)}onKeydown(t){if(!m(this.root))return t.preventDefault(),void f(this.root);switch(t.key){case"Enter":return t.preventDefault(),void j(this.root,(t=>this.updateValue(t)));case"ArrowDown":return t.preventDefault(),void(z(this.root)?(t.stopPropagation(),F(this.root)):C(this.root));case"ArrowUp":return t.preventDefault(),void(y(this.root)?(t.stopPropagation(),k(this.root)):w(this.root));case"Home":return t.preventDefault(),void C(this.root);case"End":return t.preventDefault(),void w(this.root);case" ":return void t.preventDefault()}1!==t.key.length||O(this.root,t.key)}onKeyup(t){" "!==t.key||j(this.root,(t=>this.updateValue(t)))}onMousemove(){v(this.root)}onClick(t){R(K,t,(t=>{T(t,(t=>this.updateValue(t)))}))}async guxSelectActive(){j(this.root,(t=>this.updateValue(t)))}setListboxOptions(){this.selectedValues=S(this.value),this.listboxOptions=p(this.root),this.internallistboxoptionsupdated.emit()}updateValue(t){this.value!==t&&(this.value=t),a(this.root,"input"),a(this.root,"change")}async componentWillLoad(){c(this.root),this.i18n=await l(this.root,V),this.setListboxOptions()}componentWillRender(){this.listboxOptions.forEach((t=>{t.selected=t.value===this.value,"custom"!==this.filterType&&"none"!==this.filterType&&(t.filtered=!E(t,this.filter))})),this.allListboxOptionsFiltered=0===this.listboxOptions.filter((t=>!t.filtered)).length}renderHiddenSlot(){return o("div",{hidden:!0},o("slot",{onSlotchange:()=>this.setListboxOptions()}))}renderLoading(){return[o("div",{class:"gux-message-container"},o("gux-radial-loading",{context:"modal"}),o("span",null,this.i18n("loading"))),this.renderHiddenSlot()]}renderAllListboxOptionsFiltered(){return[o("div",{class:"gux-message-container"},o("div",{class:"gux-no-matches"},this.emptyMessage||this.i18n("noMatches"))),this.renderHiddenSlot()]}render(){return this.loading?this.renderLoading():this.allListboxOptionsFiltered?this.renderAllListboxOptionsFiltered():o(s,{role:"listbox",tabindex:0},o("slot",{onSlotchange:()=>this.setListboxOptions()}))}get root(){return r(this)}};_.style=":host{scrollbar-color:var(--gse-ui-menu-border-color) transparent;scrollbar-width:thin;box-sizing:border-box;display:block;max-block-size:var(--gse-ui-menu-maxHeight);padding:var(--gse-ui-menu-padding);margin:0;overflow:visible auto;outline:none;background:var(--gse-ui-menu-backgroundColor);border:var(--gse-ui-menu-border-width) var(--gse-ui-menu-border-style) var(--gse-ui-menu-border-color);border-radius:var(--gse-ui-menu-borderRadius)}:host(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-ui-color-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-message-container{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch center;align-items:center;text-align:center}.gux-message-container .gux-no-matches{box-sizing:border-box;block-size:var(--gse-ui-menu-option-height);padding-block:var(--gse-ui-dropdown-gap);font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor)}";const N=class{constructor(e){t(this,e),this.active=!1,this.selected=!1,this.disabled=!1,this.filtered=!1,this.hasSubtext=!1}handleActive(t){var e,i;t?null===(e=this.truncateElement)||void 0===e||e.setShowTooltip():null===(i=this.truncateElement)||void 0===i||i.setHideTooltip()}componentWillLoad(){this.root.id=this.root.id||B("gux-option"),this.onSubtextChange()}onSubtextChange(){const t=H(this.root,"subtext");this.hasSubtext=!!(null==t?void 0:t.trim())}getAriaSelected(){return!this.disabled&&(this.selected?"true":"false")}hasDisabledParent(){const t=D("gux-listbox",this.root);return null==t?void 0:t.disabled}render(){return o(s,{key:"3b32039f09c90fe88bdafcb3597943337ae79ff4",role:"option",class:{"gux-active":this.active,"gux-disabled":this.disabled||this.hasDisabledParent(),"gux-filtered":this.filtered,"gux-selected":this.selected,"gux-show-subtext":this.hasSubtext},"aria-selected":this.getAriaSelected(),"aria-disabled":W(this.disabled||this.hasDisabledParent())},o("div",{key:"e12ee238fe0bf8b88ea2ff9c422ff7a53a4f92cc",class:"gux-option-wrapper"},o("gux-truncate",{key:"07bf888b0cb355764fe8aa4343f84395389ac32a","tooltip-placement":"right",ref:t=>this.truncateElement=t},o("slot",{key:"632f29668ec685018e381967833e9ac0e22e6991"})),o("slot",{key:"3f6c9039cbcccc0002d21913ce2f253fd149b70a",onSlotchange:()=>this.onSubtextChange(),name:"subtext"})))}get root(){return r(this)}static get watchers(){return{active:["handleActive"]}}};N.style=":host{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-menu-option-gap);place-content:stretch center;align-items:center;block-size:var(--gse-ui-menu-option-height);min-block-size:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);font-family:var(--gse-ui-menu-option-label-default-text-fontFamily);font-size:var(--gse-ui-menu-option-label-default-text-fontSize);font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);overflow-wrap:break-word;cursor:pointer}:host .gux-option-wrapper{inline-size:100%;user-select:none}:host .gux-slot-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.gux-disabled){pointer-events:none;cursor:default;opacity:var(--gse-ui-menu-option-disabled-opacity)}:host(.gux-selected){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);background:var(--gse-ui-menu-option-selected-backgroundColor)}:host(:active:not(:disabled)){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight)}:host(.gux-active){outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);outline-offset:-2px;border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}:host(.gux-show-subtext){align-items:flex-start;block-size:auto;padding:var(--gse-ui-menu-option-subtext-padding)}:host(.gux-show-subtext) .gux-option-wrapper{display:flex;flex-direction:column}:host(.gux-show-subtext) slot[name=subtext]::slotted(*){font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);color:var(--gse-ui-menu-groupedMenu-subtext-foregroundColor)}:host(:hover:not(:disabled)){background:var(--gse-ui-menu-option-hover-backgroundColor)}:host(.gux-filtered){display:none}";export{A as gux_dropdown,_ as gux_listbox,N as gux_option}
@@ -1 +1 @@
1
- import{r as e,c as t,h as s,a as r}from"./p-mm833MRp.js";import{t as o}from"./p-B6h1eXrW.js";const i=class{constructor(s){e(this,s),this.internalactivestepchange=t(this,"internalactivestepchange",7)}onClick(){this.stepDisabledState||this.internalactivestepchange.emit()}get stepDisabledState(){var e;return null===(e=this.root.closest("gux-step"))||void 0===e?void 0:e.disabled}componentWillLoad(){o(this.root)}render(){return s("button",{key:"e29a88d6550c357e4db2d8de5345cfef5d6f2d2f",type:"button",disabled:this.stepDisabledState},s("gux-truncate",{key:"fec8fa65f7ea9f5c8689b2f38e1141d28f86734c",maxLines:2},s("slot",{key:"645b255c3b0b107045c74001f567f7d48d5a995e"})))}get root(){return r(this)}};i.style="button{all:unset;font-family:var(--gse-ui-stepper-default-text-fontFamily);font-size:var(--gse-ui-stepper-default-text-fontSize);font-weight:var(--gse-ui-stepper-default-text-fontWeight);line-height:var(--gse-ui-stepper-default-text-lineHeight);color:var(--gse-ui-stepper-title-default);cursor:pointer}button[disabled]{pointer-events:none;user-select:none}button:hover:not([disabled]){font-family:var(--gse-ui-stepper-hover-text-fontFamily);font-size:var(--gse-ui-stepper-hover-text-fontSize);font-weight:var(--gse-ui-stepper-hover-text-fontWeight);line-height:var(--gse-ui-stepper-hover-text-lineHeight);color:var(--gse-ui-stepper-title-hover);text-decoration:var(--gse-ui-stepper-hover-text-textDecoration)}button:focus-visible{outline:var(--gse-ui-stepper-step-focus-border-width) var(--gse-ui-stepper-step-focus-border-style) var(--gse-ui-stepper-step-focus-border-color);outline-offset:var(--gse-ui-stepper-focus-offset);border-radius:var(--gse-ui-stepper-step-focus-borderRadius)}";export{i as gux_step_title}
1
+ import{r as e,c as t,h as s,a as r}from"./p-mm833MRp.js";import{t as o}from"./p-CyMJvvXZ.js";const i=class{constructor(s){e(this,s),this.internalactivestepchange=t(this,"internalactivestepchange",7)}onClick(){this.stepDisabledState||this.internalactivestepchange.emit()}get stepDisabledState(){var e;return null===(e=this.root.closest("gux-step"))||void 0===e?void 0:e.disabled}componentWillLoad(){o(this.root)}render(){return s("button",{key:"e29a88d6550c357e4db2d8de5345cfef5d6f2d2f",type:"button",disabled:this.stepDisabledState},s("gux-truncate",{key:"fec8fa65f7ea9f5c8689b2f38e1141d28f86734c",maxLines:2},s("slot",{key:"645b255c3b0b107045c74001f567f7d48d5a995e"})))}get root(){return r(this)}};i.style="button{all:unset;font-family:var(--gse-ui-stepper-default-text-fontFamily);font-size:var(--gse-ui-stepper-default-text-fontSize);font-weight:var(--gse-ui-stepper-default-text-fontWeight);line-height:var(--gse-ui-stepper-default-text-lineHeight);color:var(--gse-ui-stepper-title-default);cursor:pointer}button[disabled]{pointer-events:none;user-select:none}button:hover:not([disabled]){font-family:var(--gse-ui-stepper-hover-text-fontFamily);font-size:var(--gse-ui-stepper-hover-text-fontSize);font-weight:var(--gse-ui-stepper-hover-text-fontWeight);line-height:var(--gse-ui-stepper-hover-text-lineHeight);color:var(--gse-ui-stepper-title-hover);text-decoration:var(--gse-ui-stepper-hover-text-textDecoration)}button:focus-visible{outline:var(--gse-ui-stepper-step-focus-border-width) var(--gse-ui-stepper-step-focus-border-style) var(--gse-ui-stepper-step-focus-border-color);outline-offset:var(--gse-ui-stepper-focus-offset);border-radius:var(--gse-ui-stepper-step-focus-borderRadius)}";export{i as gux_step_title}
@@ -1 +1 @@
1
- import{r as i,h as o,a as r}from"./p-mm833MRp.js";import{t}from"./p-B6h1eXrW.js";import{b as a}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var l={optional:"optional"};const e=class{constructor(o){i(this,o),this.variant="required",this.required=!1}async componentWillLoad(){t(this.root,{variant:this.variant}),this.i18n=await a(this.root,l)}render(){return"optional"!==this.variant||this.required?"required"===this.variant&&this.required?o("span",{class:"gux-form-field-label-indicator-required","aria-hidden":"true"},"*"):null:o("span",{class:"gux-form-field-label-indicator-optional"},"(",this.i18n("optional"),")")}get root(){return r(this)}};e.style=".gux-form-field-label-indicator-required{padding-inline-start:var(--gse-ui-formControl-formField-gap);color:var(--gse-ui-formControl-label-indicator-requiredColor)}.gux-form-field-label-indicator-optional{margin-inline-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-label-indicator-text-fontFamily);font-size:var(--gse-ui-formControl-label-indicator-text-fontSize);font-weight:var(--gse-ui-formControl-label-indicator-text-fontWeight);line-height:var(--gse-ui-formControl-label-indicator-text-lineHeight);color:var(--gse-ui-formControl-label-indicator-optionalColor)}";export{e as gux_form_field_label_indicator}
1
+ import{r as i,h as o,a as r}from"./p-mm833MRp.js";import{t}from"./p-CyMJvvXZ.js";import{b as a}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var l={optional:"optional"};const e=class{constructor(o){i(this,o),this.variant="required",this.required=!1}async componentWillLoad(){t(this.root,{variant:this.variant}),this.i18n=await a(this.root,l)}render(){return"optional"!==this.variant||this.required?"required"===this.variant&&this.required?o("span",{class:"gux-form-field-label-indicator-required","aria-hidden":"true"},"*"):null:o("span",{class:"gux-form-field-label-indicator-optional"},"(",this.i18n("optional"),")")}get root(){return r(this)}};e.style=".gux-form-field-label-indicator-required{padding-inline-start:var(--gse-ui-formControl-formField-gap);color:var(--gse-ui-formControl-label-indicator-requiredColor)}.gux-form-field-label-indicator-optional{margin-inline-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-label-indicator-text-fontFamily);font-size:var(--gse-ui-formControl-label-indicator-text-fontSize);font-weight:var(--gse-ui-formControl-label-indicator-text-fontWeight);line-height:var(--gse-ui-formControl-label-indicator-text-lineHeight);color:var(--gse-ui-formControl-label-indicator-optionalColor)}";export{e as gux_form_field_label_indicator}
@@ -1 +1 @@
1
- import{r as t,c as e,h as i,a as s}from"./p-mm833MRp.js";import{O as a}from"./p-CuMZPTZF.js";import{w as o}from"./p-kLXvN2m9.js";import{a as n}from"./p-Bg4q97BS.js";import{t as c}from"./p-B6h1eXrW.js";import{b as r}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var d={moreOptions:"More options"};const u=["primary","secondary","tertiary","danger"];function b(t){return u.find((e=>e===t))?t:"secondary"}const l=class{constructor(i){t(this,i),this.open=e(this,"open",7),this.close=e(this,"close",7),this.actionClick=e(this,"actionClick",7),this.type="button",this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(t){const e=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,e.includes(this.listElement)&&(t.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":e.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,this.focusFirstItemInPopupList());break;case"ArrowUp":e.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,this.focusLastItemInPopupList())}}handleKeyup(t){if(" "===t.key)t.composedPath().includes(this.dropdownButton)&&(this.isOpen=!0,this.focusFirstItemInPopupList())}watchDisabled(t){t&&(this.isOpen=!1)}watchValue(t){t?this.open.emit():(this.listElement.blur(),this.close.emit())}onClickOutside(t){null===t.relatedTarget&&(this.isOpen=!1)}toggle(){this.disabled||(this.isOpen=!this.isOpen,this.isOpen&&this.focusPopupList())}focusPopupList(){n((()=>{var t;null===(t=this.listElement)||void 0===t||t.focus()}))}focusFirstItemInPopupList(){n((()=>{this.listElement.guxFocusFirstItem()}))}focusLastItemInPopupList(){n((()=>{this.listElement.guxFocusLastItem()}))}onActionClick(){this.disabled||(this.isOpen=!1,this.actionClick.emit())}onListClick(t){o("gux-list-item",t,(()=>{this.isOpen=!1,this.dropdownButton.focus()}))}async componentWillLoad(){c(this.root,{variant:this.type}),this.i18n=await r(this.root,d)}render(){return i("div",{key:"e3e1f58714572a4cbf8f13c532498a7b3c331e2b",class:"gux-action-button-container"},i("gux-popup",{key:"7d0aad36c614d5e16adeae24840a5c1904b4b43f",expanded:this.isOpen,disabled:this.disabled,placement:"bottom-end","exceed-target-width":!0},i("div",{key:"b46a80b6cb8526333dd9b344416ee6e1c003a64b",slot:"target",class:"gux-action-button-container"},i("gux-button-slot",{key:"1d57c027889d717d47884b33e77ef2faddb61838",class:"gux-action-button",accent:b(this.accent)},i("button",{key:"446c05f5640fbba081eee9eca781a4d0443a4e8b",type:this.type,disabled:this.disabled,onClick:()=>this.onActionClick(),"data-testid":"action-button"},i("slot",{key:"47c67c1a5c4ec59776cce559bed2d91831951774",name:"title"}))),i("gux-button-slot",{key:"e4e60c315e37b46a0aff461183a50f7d42d241b2",class:"gux-dropdown-button",accent:b(this.accent)},i("button",{key:"47d94aa4fea744c41917d6c384957735ca07853a",type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),"aria-label":this.i18n("moreOptions"),"data-testid":"dropdown-button"},i("gux-icon",{key:"efb58a73e063cc28144851d806246d9a08ab177e",decorative:!0,"icon-name":"custom/chevron-down-small-regular",size:"small"})))),i("div",{key:"e0daccc34af424e95b49fddd3d193c70c52babc7",class:"gux-list-container",slot:"popup"},i("gux-list",{key:"c25ca540d02426cedd6577de0e1dea043c4c1584",onClick:t=>this.onListClick(t),ref:t=>this.listElement=t},i("slot",{key:"642210713ee3359616804bc99dfb786c80d5d643"})))))}static get delegatesFocus(){return!0}get root(){return s(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(t,e,i,s){var a,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);o>3&&n&&Object.defineProperty(e,i,n)})([a({triggerEvents:"click"})],l.prototype,"onClickOutside",null),l.style=":host{display:block;-webkit-user-select:none;user-select:none}.gux-action-button-container{min-inline-size:128px}.gux-action-button-container>*{vertical-align:middle}.gux-action-button-container .gux-action-button{inline-size:calc(100% - 33px);margin-inline-end:1px}.gux-action-button-container .gux-action-button button{inline-size:100%;max-inline-size:none;text-align:center;border-start-end-radius:0;border-end-end-radius:0}.gux-action-button-container .gux-action-button button:focus-visible:enabled{position:relative}.gux-action-button-container .gux-dropdown-button button{display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-button-iconOnly-width);padding:0;border-start-start-radius:0;border-end-start-radius:0}.gux-action-button-container .gux-list-container{max-inline-size:220px;max-block-size:var(--gse-ui-menu-maxHeight);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{l as gux_action_button}
1
+ import{r as t,c as e,h as i,a as s}from"./p-mm833MRp.js";import{O as a}from"./p-CuMZPTZF.js";import{w as o}from"./p-kLXvN2m9.js";import{a as n}from"./p-Bg4q97BS.js";import{t as c}from"./p-CyMJvvXZ.js";import{b as r}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var d={moreOptions:"More options"};const u=["primary","secondary","tertiary","danger"];function b(t){return u.find((e=>e===t))?t:"secondary"}const l=class{constructor(i){t(this,i),this.open=e(this,"open",7),this.close=e(this,"close",7),this.actionClick=e(this,"actionClick",7),this.type="button",this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(t){const e=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,e.includes(this.listElement)&&(t.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":e.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,this.focusFirstItemInPopupList());break;case"ArrowUp":e.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,this.focusLastItemInPopupList())}}handleKeyup(t){if(" "===t.key)t.composedPath().includes(this.dropdownButton)&&(this.isOpen=!0,this.focusFirstItemInPopupList())}watchDisabled(t){t&&(this.isOpen=!1)}watchValue(t){t?this.open.emit():(this.listElement.blur(),this.close.emit())}onClickOutside(t){null===t.relatedTarget&&(this.isOpen=!1)}toggle(){this.disabled||(this.isOpen=!this.isOpen,this.isOpen&&this.focusPopupList())}focusPopupList(){n((()=>{var t;null===(t=this.listElement)||void 0===t||t.focus()}))}focusFirstItemInPopupList(){n((()=>{this.listElement.guxFocusFirstItem()}))}focusLastItemInPopupList(){n((()=>{this.listElement.guxFocusLastItem()}))}onActionClick(){this.disabled||(this.isOpen=!1,this.actionClick.emit())}onListClick(t){o("gux-list-item",t,(()=>{this.isOpen=!1,this.dropdownButton.focus()}))}async componentWillLoad(){c(this.root,{variant:this.type}),this.i18n=await r(this.root,d)}render(){return i("div",{key:"e3e1f58714572a4cbf8f13c532498a7b3c331e2b",class:"gux-action-button-container"},i("gux-popup",{key:"7d0aad36c614d5e16adeae24840a5c1904b4b43f",expanded:this.isOpen,disabled:this.disabled,placement:"bottom-end","exceed-target-width":!0},i("div",{key:"b46a80b6cb8526333dd9b344416ee6e1c003a64b",slot:"target",class:"gux-action-button-container"},i("gux-button-slot",{key:"1d57c027889d717d47884b33e77ef2faddb61838",class:"gux-action-button",accent:b(this.accent)},i("button",{key:"446c05f5640fbba081eee9eca781a4d0443a4e8b",type:this.type,disabled:this.disabled,onClick:()=>this.onActionClick(),"data-testid":"action-button"},i("slot",{key:"47c67c1a5c4ec59776cce559bed2d91831951774",name:"title"}))),i("gux-button-slot",{key:"e4e60c315e37b46a0aff461183a50f7d42d241b2",class:"gux-dropdown-button",accent:b(this.accent)},i("button",{key:"47d94aa4fea744c41917d6c384957735ca07853a",type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),"aria-label":this.i18n("moreOptions"),"data-testid":"dropdown-button"},i("gux-icon",{key:"efb58a73e063cc28144851d806246d9a08ab177e",decorative:!0,"icon-name":"custom/chevron-down-small-regular",size:"small"})))),i("div",{key:"e0daccc34af424e95b49fddd3d193c70c52babc7",class:"gux-list-container",slot:"popup"},i("gux-list",{key:"c25ca540d02426cedd6577de0e1dea043c4c1584",onClick:t=>this.onListClick(t),ref:t=>this.listElement=t},i("slot",{key:"642210713ee3359616804bc99dfb786c80d5d643"})))))}static get delegatesFocus(){return!0}get root(){return s(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(t,e,i,s){var a,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);o>3&&n&&Object.defineProperty(e,i,n)})([a({triggerEvents:"click"})],l.prototype,"onClickOutside",null),l.style=":host{display:block;-webkit-user-select:none;user-select:none}.gux-action-button-container{min-inline-size:128px}.gux-action-button-container>*{vertical-align:middle}.gux-action-button-container .gux-action-button{inline-size:calc(100% - 33px);margin-inline-end:1px}.gux-action-button-container .gux-action-button button{inline-size:100%;max-inline-size:none;text-align:center;border-start-end-radius:0;border-end-end-radius:0}.gux-action-button-container .gux-action-button button:focus-visible:enabled{position:relative}.gux-action-button-container .gux-dropdown-button button{display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-button-iconOnly-width);padding:0;border-start-start-radius:0;border-end-start-radius:0}.gux-action-button-container .gux-list-container{max-inline-size:220px;max-block-size:var(--gse-ui-menu-maxHeight);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{l as gux_action_button}
@@ -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 c}from"./p-Bg4q97BS.js";import{t as n}from"./p-B6h1eXrW.js";import{b as r}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(){n(this.root),this.i18n=await r(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:"9e537b87fa50a8e0852e6c7a81e988394961d432",expanded:this.opened,disabled:this.disabled},s("div",{key:"b9e78a1bb5fc5b17f57b966848930d2e0476adb4",slot:"target",class:"gux-select-field",onMouseDown:()=>this.inputMouseDown()},s("a",{key:"8b30e0b88fa01f47b97205682f79f28c6b478a3f",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:"75dbf5dfedc143855d72e39a6cdc228c84dcbf01",class:"gux-select-placeholder",title:this.placeholder},this.placeholder),this.value&&s("span",{key:"cb9c1007a7799677e7fc4bba39b8eded7cff3c5c",class:"gux-select-value",title:this.value},this.value)),s("div",{key:"a9fbd8d978d7a9358471234c636bbcc92d39afdd",class:"gux-icon-wrapper"},s("gux-icon",{key:"9346c46125bcc28ef46233b09cfb34e84f9eadb7",decorative:!0,"icon-name":"custom/chevron-down-small-regular"}))),s("div",{key:"53ec8d5ee5ad8f48caa8dd83eb04e1d54b1a1975",slot:"popup",class:"gux-advanced-dropdown-menu"},s("div",{key:"f774aab70724270cb26ae01e489b8c38077066ba",class:"gux-dropdown-menu-container"},s("gux-form-field-search",{key:"5145f76b57e7b037a87a1d5e77efc529995634b2","label-position":"screenreader"},s("label",{key:"983169f2a3ef6a24509c63c1a0754cc479cb6f41",slot:"label"},this.i18n("searchAria")),s("input",{key:"78bc8dd62fd445bf279121bf71cf7f4c9b3cd1fc",slot:"input",type:"search",onInput:e=>{this.handleSearchInput(e)},ref:e=>this.searchInput=e})),s("div",{key:"b2295503d9b527c1cba6ba2a7e1ed921eb36b776",class:"gux-dropdown-options",style:{maxHeight:this.dropdownHeight},onKeyDown:e=>this.optionsKeyDown(e)},s("slot",{key:"7aad1432692efb3ae42033464b985d3367cb919b"})))))}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(){c((()=>{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,c=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,s,i);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(c=(a<3?o(c):a>3?o(t,s,c):o(t,s))||c);a>3&&c&&Object.defineProperty(t,s,c)})([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 c}from"./p-Bg4q97BS.js";import{t as n}from"./p-CyMJvvXZ.js";import{b as r}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(){n(this.root),this.i18n=await r(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:"9e537b87fa50a8e0852e6c7a81e988394961d432",expanded:this.opened,disabled:this.disabled},s("div",{key:"b9e78a1bb5fc5b17f57b966848930d2e0476adb4",slot:"target",class:"gux-select-field",onMouseDown:()=>this.inputMouseDown()},s("a",{key:"8b30e0b88fa01f47b97205682f79f28c6b478a3f",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:"75dbf5dfedc143855d72e39a6cdc228c84dcbf01",class:"gux-select-placeholder",title:this.placeholder},this.placeholder),this.value&&s("span",{key:"cb9c1007a7799677e7fc4bba39b8eded7cff3c5c",class:"gux-select-value",title:this.value},this.value)),s("div",{key:"a9fbd8d978d7a9358471234c636bbcc92d39afdd",class:"gux-icon-wrapper"},s("gux-icon",{key:"9346c46125bcc28ef46233b09cfb34e84f9eadb7",decorative:!0,"icon-name":"custom/chevron-down-small-regular"}))),s("div",{key:"53ec8d5ee5ad8f48caa8dd83eb04e1d54b1a1975",slot:"popup",class:"gux-advanced-dropdown-menu"},s("div",{key:"f774aab70724270cb26ae01e489b8c38077066ba",class:"gux-dropdown-menu-container"},s("gux-form-field-search",{key:"5145f76b57e7b037a87a1d5e77efc529995634b2","label-position":"screenreader"},s("label",{key:"983169f2a3ef6a24509c63c1a0754cc479cb6f41",slot:"label"},this.i18n("searchAria")),s("input",{key:"78bc8dd62fd445bf279121bf71cf7f4c9b3cd1fc",slot:"input",type:"search",onInput:e=>{this.handleSearchInput(e)},ref:e=>this.searchInput=e})),s("div",{key:"b2295503d9b527c1cba6ba2a7e1ed921eb36b776",class:"gux-dropdown-options",style:{maxHeight:this.dropdownHeight},onKeyDown:e=>this.optionsKeyDown(e)},s("slot",{key:"7aad1432692efb3ae42033464b985d3367cb919b"})))))}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(){c((()=>{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,c=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,s,i);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(c=(a<3?o(c):a>3?o(t,s,c):o(t,s))||c);a>3&&c&&Object.defineProperty(t,s,c)})([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 n,h as e,a}from"./p-mm833MRp.js";import{t}from"./p-B6h1eXrW.js";import{O as i}from"./p-1mmdDpx8.js";import{h as s}from"./p-qzV3vtOw.js";const o=class{constructor(e){n(this,e),this.hasCallToAction=!1,this.hasSecondaryCallToAction=!1,this.hasGuidance=!1,this.alignment="center",this.noPadding=!1}onMutation(){this.hasCallToAction=s(this.root,"call-to-action"),this.hasGuidance=s(this.root,"additional-guidance"),this.hasSecondaryCallToAction=s(this.root,"secondary-call-to-action")}renderImageSlot(){return e("slot",{name:"image"})}renderCallToActions(){if(this.hasCallToAction)return e("div",{class:"gux-call-to-actions"},this.hasCallToAction&&e("gux-button-slot",{accent:"primary"},e("slot",{name:"call-to-action"})),this.hasSecondaryCallToAction&&e("gux-button-slot",{accent:"ghost"},e("slot",{name:"secondary-call-to-action"})))}renderGuidanceSlot(){if(this.hasGuidance)return e("div",{class:"gux-guidance"},e("gux-truncate",{maxLines:3},e("slot",{name:"additional-guidance"})))}componentWillLoad(){t(this.root),this.hasCallToAction=s(this.root,"call-to-action"),this.hasGuidance=s(this.root,"additional-guidance"),this.hasSecondaryCallToAction=s(this.root,"secondary-call-to-action")}render(){return e("div",{key:"7dd2552d2d684980a064806c89588ce4cf889442",class:{"gux-container":!0,"gux-no-padding":this.noPadding,"gux-alignment-left":"left"===this.alignment}},e("div",{key:"a5e3d28c009cad10240c1694ed75b2625a05a788",class:"gux-image"},this.renderImageSlot()),e("div",{key:"2b38509836292be6015fe819043b2e2a583a1b10",class:"gux-message"},e("slot",{key:"288c4c78d1aeeb01387386d1d042aa153da8d2bc",name:"primary-message"})),this.renderGuidanceSlot(),this.renderCallToActions())}get root(){return a(this)}};(function(n,e,a,t){var i,s=arguments.length,o=s<3?e:null===t?t=Object.getOwnPropertyDescriptor(e,a):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,e,a,t);else for(var r=n.length-1;r>=0;r--)(i=n[r])&&(o=(s<3?i(o):s>3?i(e,a,o):i(e,a))||o);s>3&&o&&Object.defineProperty(e,a,o)})([i({childList:!0,subtree:!0})],o.prototype,"onMutation",null),o.style=":host {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n container-type: inline-size;\n}\n\n.gux-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: var(--gse-ui-blankState-padding);\n color: var(--gse-ui-blankState-foregroundColor);\n}\n.gux-container.gux-no-padding {\n padding: 0;\n}\n.gux-container .gux-call-to-actions {\n display: flex;\n flex-direction: column;\n gap: var(--gse-ui-blankState-gapCtaGroup);\n padding-block-start: var(--gse-ui-blankState-gapContent);\n}\n.gux-container .gux-image {\n padding-block-end: var(--gse-ui-blankState-gapMain);\n}\n.gux-container .gux-message {\n padding-block-end: var(--gse-ui-blankState-gapMessage);\n}\n.gux-container .gux-guidance {\n text-align: center;\n}\n.gux-container ::slotted(gux-icon) {\n inline-size: var(--gse-ui-blankState-icon-size-lg);\n block-size: var(--gse-ui-blankState-icon-size-lg);\n color: var(--gse-ui-blankState-iconColor);\n}\n.gux-container slot[name=primary-message] {\n font-family: var(--gse-ui-progressAndLoading-blankState-large-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-large-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-large-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-large-header-lineHeight);\n color: var(--gse-ui-blankState-foregroundColor);\n text-align: center;\n}\n.gux-container slot[name=additional-guidance] {\n font-family: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-large-subheader-lineHeight);\n color: var(--gse-ui-blankState-foregroundColor);\n text-align: center;\n}\n.gux-container.gux-alignment-left {\n align-items: flex-start;\n}\n.gux-container.gux-alignment-left slot[name=primary-message],\n.gux-container.gux-alignment-left slot[name=additional-guidance] {\n text-align: start;\n}\n.gux-container.gux-alignment-left .gux-guidance {\n text-align: start;\n}\n\n@container (width < 570px) {\n .gux-container ::slotted(gux-icon) {\n inline-size: var(--gse-ui-blankState-icon-size-sm);\n block-size: var(--gse-ui-blankState-icon-size-sm);\n }\n .gux-container slot[name=primary-message] {\n font-family: var(--gse-ui-progressAndLoading-blankState-small-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-small-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-small-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-small-header-lineHeight);\n }\n .gux-container slot[name=additional-guidance] {\n font-family: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-small-subheader-lineHeight);\n }\n}";export{o as gux_blank_state_beta}
1
+ import{r as n,h as e,a}from"./p-mm833MRp.js";import{t}from"./p-CyMJvvXZ.js";import{O as i}from"./p-1mmdDpx8.js";import{h as s}from"./p-qzV3vtOw.js";const o=class{constructor(e){n(this,e),this.hasCallToAction=!1,this.hasSecondaryCallToAction=!1,this.hasGuidance=!1,this.alignment="center",this.noPadding=!1}onMutation(){this.hasCallToAction=s(this.root,"call-to-action"),this.hasGuidance=s(this.root,"additional-guidance"),this.hasSecondaryCallToAction=s(this.root,"secondary-call-to-action")}renderImageSlot(){return e("slot",{name:"image"})}renderCallToActions(){if(this.hasCallToAction)return e("div",{class:"gux-call-to-actions"},this.hasCallToAction&&e("gux-button-slot",{accent:"primary"},e("slot",{name:"call-to-action"})),this.hasSecondaryCallToAction&&e("gux-button-slot",{accent:"ghost"},e("slot",{name:"secondary-call-to-action"})))}renderGuidanceSlot(){if(this.hasGuidance)return e("div",{class:"gux-guidance"},e("gux-truncate",{maxLines:3},e("slot",{name:"additional-guidance"})))}componentWillLoad(){t(this.root),this.hasCallToAction=s(this.root,"call-to-action"),this.hasGuidance=s(this.root,"additional-guidance"),this.hasSecondaryCallToAction=s(this.root,"secondary-call-to-action")}render(){return e("div",{key:"7dd2552d2d684980a064806c89588ce4cf889442",class:{"gux-container":!0,"gux-no-padding":this.noPadding,"gux-alignment-left":"left"===this.alignment}},e("div",{key:"a5e3d28c009cad10240c1694ed75b2625a05a788",class:"gux-image"},this.renderImageSlot()),e("div",{key:"2b38509836292be6015fe819043b2e2a583a1b10",class:"gux-message"},e("slot",{key:"288c4c78d1aeeb01387386d1d042aa153da8d2bc",name:"primary-message"})),this.renderGuidanceSlot(),this.renderCallToActions())}get root(){return a(this)}};(function(n,e,a,t){var i,s=arguments.length,o=s<3?e:null===t?t=Object.getOwnPropertyDescriptor(e,a):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,e,a,t);else for(var r=n.length-1;r>=0;r--)(i=n[r])&&(o=(s<3?i(o):s>3?i(e,a,o):i(e,a))||o);s>3&&o&&Object.defineProperty(e,a,o)})([i({childList:!0,subtree:!0})],o.prototype,"onMutation",null),o.style=":host {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n container-type: inline-size;\n}\n\n.gux-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: var(--gse-ui-blankState-padding);\n color: var(--gse-ui-blankState-foregroundColor);\n}\n.gux-container.gux-no-padding {\n padding: 0;\n}\n.gux-container .gux-call-to-actions {\n display: flex;\n flex-direction: column;\n gap: var(--gse-ui-blankState-gapCtaGroup);\n padding-block-start: var(--gse-ui-blankState-gapContent);\n}\n.gux-container .gux-image {\n padding-block-end: var(--gse-ui-blankState-gapMain);\n}\n.gux-container .gux-message {\n padding-block-end: var(--gse-ui-blankState-gapMessage);\n}\n.gux-container .gux-guidance {\n text-align: center;\n}\n.gux-container ::slotted(gux-icon) {\n inline-size: var(--gse-ui-blankState-icon-size-lg);\n block-size: var(--gse-ui-blankState-icon-size-lg);\n color: var(--gse-ui-blankState-iconColor);\n}\n.gux-container slot[name=primary-message] {\n font-family: var(--gse-ui-progressAndLoading-blankState-large-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-large-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-large-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-large-header-lineHeight);\n color: var(--gse-ui-blankState-foregroundColor);\n text-align: center;\n}\n.gux-container slot[name=additional-guidance] {\n font-family: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-large-subheader-lineHeight);\n color: var(--gse-ui-blankState-foregroundColor);\n text-align: center;\n}\n.gux-container.gux-alignment-left {\n align-items: flex-start;\n}\n.gux-container.gux-alignment-left slot[name=primary-message],\n.gux-container.gux-alignment-left slot[name=additional-guidance] {\n text-align: start;\n}\n.gux-container.gux-alignment-left .gux-guidance {\n text-align: start;\n}\n\n@container (width < 570px) {\n .gux-container ::slotted(gux-icon) {\n inline-size: var(--gse-ui-blankState-icon-size-sm);\n block-size: var(--gse-ui-blankState-icon-size-sm);\n }\n .gux-container slot[name=primary-message] {\n font-family: var(--gse-ui-progressAndLoading-blankState-small-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-small-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-small-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-small-header-lineHeight);\n }\n .gux-container slot[name=additional-guidance] {\n font-family: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-small-subheader-lineHeight);\n }\n}";export{o as gux_blank_state_beta}
@@ -1 +1 @@
1
- import{r as t,f as e,d as i,h as a,H as o,a as n}from"./p-mm833MRp.js";import{O as s}from"./p-0tG-lFhH.js";import{O as r}from"./p-1mmdDpx8.js";import{t as l}from"./p-B6h1eXrW.js";import{g as c}from"./p-BBpQG81s.js";import{a as d}from"./p-Bg4q97BS.js";import{l as u}from"./p-DxtJDeL9.js";function h(t,e){[].concat(t).forEach((t=>{null!=t&&(t.accent=e)}))}function b(t,...e){e.flat().filter((t=>null!=t&&!(null==t?void 0:t.hasAttribute("icon-only")))).forEach((e=>e.iconOnly=t))}var p=function(t,e,i,a){var o,n=arguments.length,s=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,a);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const m=class{constructor(e){t(this,e),this.displayedLayout="full",this.hasContextDivider=!1,this.minimumSizes={full:0,iconOnly:0,condensed:0}}onMutation(){this.hasContextDivider=this.needsContextDivider(),e(this.root)}recordLayoutMinSize(){i((()=>{var t,e,i;const a=0|(null===(t=this.searchAndFilterContainer)||void 0===t?void 0:t.clientWidth),o=0|(null===(e=this.actionsContainer)||void 0===e?void 0:e.clientWidth),n=0|(null===(i=this.minControlSize)||void 0===i?void 0:i.clientWidth);this.minimumSizes[this.displayedLayout]=a+o+n}))}get minControlSize(){return this.root.shadowRoot.querySelector(".section-spacing")}get actionsContainer(){return this.root.shadowRoot.querySelector(".gux-contextual-permanent-primary")}get searchAndFilterContainer(){return this.root.shadowRoot.querySelector(".search-filter-container")}get filterSlot(){return c(this.root,"search-and-filter")}get menuActionSlot(){return c(this.root,"menu-actions")}get permanentSlot(){return c(this.root,"permanent-actions")||this.menuActionSlot&&c(this.menuActionSlot,"permanent-actions")}get contextualSlot(){return c(this.root,"contextual-actions")}get primaryAction(){var t;return null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-table-toolbar-custom-action[slot]")}get permanentActions(){var t,e;return(null===(t=this.permanentSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.permanentSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get menuActionsItems(){var t,e;if(null===(t=this.menuActionSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(e=this.menuActionSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get contextualActions(){var t,e;return(null===(t=this.contextualSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.contextualSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get filterActions(){var t,e;return(null===(t=this.filterSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.filterSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get allFilterContextual(){var t;return null===(t=this.filterActions)||void 0===t?void 0:t.concat(this.contextualActions)}needsContextDivider(){var t;return(null===(t=this.contextualActions)||void 0===t?void 0:t.length)&&this.contextualSlot!==this.root.lastElementChild}renderMenu(){var t;return Boolean((null===(t=this.menuActionsItems)||void 0===t?void 0:t.length)||"condensed"==this.displayedLayout)}renderFullLayout(){this.displayedLayout="full",b(!1,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}renderIconOnlyLayoutScaleDown(){this.displayedLayout="iconOnly",b(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}renderIconOnlyLayoutScaleUp(){var t,e;this.displayedLayout="iconOnly",h(this.permanentActions,"secondary"),h(this.primaryAction,"primary"),b(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions),this.permanentActions&&(null===(t=this.root)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(e=this.root)||void 0===e||e.appendChild(this.primaryAction))}renderCondensedLayout(){var t,e;this.displayedLayout="condensed",this.permanentActions&&(null===(t=this.menuActionSlot)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(e=this.menuActionSlot)||void 0===e||e.appendChild(this.primaryAction)),b(!0,...this.allFilterContextual),b(!1,...this.permanentActions),b(!1,this.primaryAction),h(this.menuActionsItems,"ghost")}validateSlot(t){this.root.querySelector(`[slot=${t}]`)||u(this.root,`gux-table-toolbar requires a ${t} slot`)}componentWillRender(){l(this.root),this.hasContextDivider=this.needsContextDivider()}componentWillLoad(){this.validateSlot("menu-actions")}componentDidLoad(){d((()=>{this.recordLayoutMinSize(),this.checkResponsiveLayout()})),h(this.menuActionsItems,"ghost")}componentDidUpdate(){this.recordLayoutMinSize(),this.checkResponsiveLayout()}checkResponsiveLayout(){i((()=>{const t=this.root.clientWidth;t<=this.minimumSizes.iconOnly?"iconOnly"==this.displayedLayout&&this.renderCondensedLayout():t<=this.minimumSizes.full?"full"==this.displayedLayout?this.renderIconOnlyLayoutScaleDown():"condensed"==this.displayedLayout&&this.renderIconOnlyLayoutScaleUp():this.minimumSizes.iconOnly>this.minimumSizes.full?this.renderIconOnlyLayoutScaleUp():this.renderFullLayout()}))}render(){return a(o,{key:"970e02d2183557aac8393211f929aa472f6bc4e3",role:"toolbar","aria-orientation":"horizontal","gs-layout":this.displayedLayout},a("div",{key:"d97d78a7cf5c655b1a54ebfb1afcf29a65f69c84",class:"search-filter-container"},a("slot",{key:"90b3eb888bcb5f66abb185a9b2273aafcfdf4020",name:"search-and-filter"})),a("div",{key:"e4b4f69f82e302bc60ea50e24129b64e23890fde",class:"section-spacing"}),a("div",{key:"6d20e17d0af963e61c1ea8a5ba17996aa88f8936",class:"gux-contextual-permanent-primary"},a("div",{key:"b36c94e862908a5b0c2e09913e1dac6ee6136d81",class:{"gux-contextual-wrapper":this.hasContextDivider}},a("slot",{key:"f2e5f8f7d03f278b4b8c5857b5f1a1f8589a53af",name:"contextual-actions"})),a("div",{key:"f554ef52e5f9c45b805e441a78ff647cd03e8f1d",class:"gux-permanent-menu-primary-wrapper"},a("slot",{key:"1e4825a0bea7fc0e584563ce8c23e055c4e2a742",name:"permanent-actions"}),a("gux-table-toolbar-menu-button",{key:"3ae96fed10bb3607cc9146cf214dae08ed147316","show-menu":this.renderMenu()},a("slot",{key:"df1d9bebb849ad0fbb7cb2e0bd380fb3b94089ce",name:"menu-actions"})),a("slot",{key:"d29847c2f0c3d1e1088ea88ef0099c5c63b97a5c",name:"primary-action"}))))}get root(){return n(this)}};p([r({childList:!0,subtree:!0})],m.prototype,"onMutation",null),p([s()],m.prototype,"checkResponsiveLayout",null),m.style=":host{display:flex;flex-direction:row;align-items:center;justify-content:space-between;inline-size:100%;max-block-size:var(--gse-ui-dataTableItems-tableToolbar-height);visibility:hidden;transition:visibility 0s 0.5s;}@keyframes show-toolbar{to{visibility:visible}}:host .search-filter-container{min-inline-size:260px;padding-inline-end:var(--gse-ui-dataTableItems-tableToolbar-gap)}:host slot[name=search-and-filter]::slotted(*){display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);align-content:flex-start;align-items:center}:host .section-spacing{display:flex;flex-direction:row;min-inline-size:72px}:host .gux-contextual-permanent-primary{display:flex;flex-direction:row;justify-content:space-between;padding-inline-start:var(--gse-ui-dataTableItems-tableToolbar-gap)}:host .gux-contextual-permanent-primary slot[name=permanent-actions]::slotted(*),:host .gux-contextual-permanent-primary slot[name=contextual-actions]::slotted(*){display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);align-content:flex-end;align-items:center}:host .gux-contextual-permanent-primary .gux-contextual-wrapper{padding-inline-end:var(--gse-ui-dataTableItems-tableToolbar-gap);border-inline-end:var(--gse-ui-dataTableItems-tableToolbar-divider-width) solid var(--gse-ui-dataTableItems-tableToolbar-dividerColor)}:host .gux-contextual-permanent-primary .gux-permanent-menu-primary-wrapper{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);margin-inline-start:var(--gse-ui-dataTableItems-tableToolbar-gap)}";export{m as gux_table_toolbar}
1
+ import{r as t,f as e,d as i,h as a,H as o,a as n}from"./p-mm833MRp.js";import{O as s}from"./p-0tG-lFhH.js";import{O as l}from"./p-1mmdDpx8.js";import{t as r}from"./p-CyMJvvXZ.js";import{g as c}from"./p-BBpQG81s.js";import{a as d}from"./p-Bg4q97BS.js";import{l as u}from"./p-DxtJDeL9.js";function h(t,e){[].concat(t).forEach((t=>{null!=t&&(t.accent=e)}))}function b(t,...e){e.flat().filter((t=>null!=t&&!(null==t?void 0:t.hasAttribute("icon-only")))).forEach((e=>e.iconOnly=t))}var p=function(t,e,i,a){var o,n=arguments.length,s=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,a);else for(var 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(e){t(this,e),this.displayedLayout="full",this.hasContextDivider=!1,this.minimumSizes={full:0,iconOnly:0,condensed:0}}onMutation(){this.hasContextDivider=this.needsContextDivider(),e(this.root)}recordLayoutMinSize(){i((()=>{var t,e,i;const a=0|(null===(t=this.searchAndFilterContainer)||void 0===t?void 0:t.clientWidth),o=0|(null===(e=this.actionsContainer)||void 0===e?void 0:e.clientWidth),n=0|(null===(i=this.minControlSize)||void 0===i?void 0:i.clientWidth);this.minimumSizes[this.displayedLayout]=a+o+n}))}get minControlSize(){return this.root.shadowRoot.querySelector(".section-spacing")}get actionsContainer(){return this.root.shadowRoot.querySelector(".gux-contextual-permanent-primary")}get searchAndFilterContainer(){return this.root.shadowRoot.querySelector(".search-filter-container")}get filterSlot(){return c(this.root,"search-and-filter")}get menuActionSlot(){return c(this.root,"menu-actions")}get permanentSlot(){return c(this.root,"permanent-actions")||this.menuActionSlot&&c(this.menuActionSlot,"permanent-actions")}get contextualSlot(){return c(this.root,"contextual-actions")}get primaryAction(){var t;return null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-table-toolbar-custom-action[slot]")}get permanentActions(){var t,e;return(null===(t=this.permanentSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.permanentSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get menuActionsItems(){var t,e;if(null===(t=this.menuActionSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(e=this.menuActionSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get contextualActions(){var t,e;return(null===(t=this.contextualSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.contextualSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get filterActions(){var t,e;return(null===(t=this.filterSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.filterSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get allFilterContextual(){var t;return null===(t=this.filterActions)||void 0===t?void 0:t.concat(this.contextualActions)}needsContextDivider(){var t;return(null===(t=this.contextualActions)||void 0===t?void 0:t.length)&&this.contextualSlot!==this.root.lastElementChild}renderMenu(){var t;return Boolean((null===(t=this.menuActionsItems)||void 0===t?void 0:t.length)||"condensed"==this.displayedLayout)}renderFullLayout(){this.displayedLayout="full",b(!1,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}renderIconOnlyLayoutScaleDown(){this.displayedLayout="iconOnly",b(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}renderIconOnlyLayoutScaleUp(){var t,e;this.displayedLayout="iconOnly",h(this.permanentActions,"secondary"),h(this.primaryAction,"primary"),b(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions),this.permanentActions&&(null===(t=this.root)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(e=this.root)||void 0===e||e.appendChild(this.primaryAction))}renderCondensedLayout(){var t,e;this.displayedLayout="condensed",this.permanentActions&&(null===(t=this.menuActionSlot)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(e=this.menuActionSlot)||void 0===e||e.appendChild(this.primaryAction)),b(!0,...this.allFilterContextual),b(!1,...this.permanentActions),b(!1,this.primaryAction),h(this.menuActionsItems,"ghost")}validateSlot(t){this.root.querySelector(`[slot=${t}]`)||u(this.root,`gux-table-toolbar requires a ${t} slot`)}componentWillRender(){r(this.root),this.hasContextDivider=this.needsContextDivider()}componentWillLoad(){this.validateSlot("menu-actions")}componentDidLoad(){d((()=>{this.recordLayoutMinSize(),this.checkResponsiveLayout()})),h(this.menuActionsItems,"ghost")}componentDidUpdate(){this.recordLayoutMinSize(),this.checkResponsiveLayout()}checkResponsiveLayout(){i((()=>{const t=this.root.clientWidth;t<=this.minimumSizes.iconOnly?"iconOnly"==this.displayedLayout&&this.renderCondensedLayout():t<=this.minimumSizes.full?"full"==this.displayedLayout?this.renderIconOnlyLayoutScaleDown():"condensed"==this.displayedLayout&&this.renderIconOnlyLayoutScaleUp():this.minimumSizes.iconOnly>this.minimumSizes.full?this.renderIconOnlyLayoutScaleUp():this.renderFullLayout()}))}render(){return a(o,{key:"970e02d2183557aac8393211f929aa472f6bc4e3",role:"toolbar","aria-orientation":"horizontal","gs-layout":this.displayedLayout},a("div",{key:"d97d78a7cf5c655b1a54ebfb1afcf29a65f69c84",class:"search-filter-container"},a("slot",{key:"90b3eb888bcb5f66abb185a9b2273aafcfdf4020",name:"search-and-filter"})),a("div",{key:"e4b4f69f82e302bc60ea50e24129b64e23890fde",class:"section-spacing"}),a("div",{key:"6d20e17d0af963e61c1ea8a5ba17996aa88f8936",class:"gux-contextual-permanent-primary"},a("div",{key:"b36c94e862908a5b0c2e09913e1dac6ee6136d81",class:{"gux-contextual-wrapper":this.hasContextDivider}},a("slot",{key:"f2e5f8f7d03f278b4b8c5857b5f1a1f8589a53af",name:"contextual-actions"})),a("div",{key:"f554ef52e5f9c45b805e441a78ff647cd03e8f1d",class:"gux-permanent-menu-primary-wrapper"},a("slot",{key:"1e4825a0bea7fc0e584563ce8c23e055c4e2a742",name:"permanent-actions"}),a("gux-table-toolbar-menu-button",{key:"3ae96fed10bb3607cc9146cf214dae08ed147316","show-menu":this.renderMenu()},a("slot",{key:"df1d9bebb849ad0fbb7cb2e0bd380fb3b94089ce",name:"menu-actions"})),a("slot",{key:"d29847c2f0c3d1e1088ea88ef0099c5c63b97a5c",name:"primary-action"}))))}get root(){return n(this)}};p([l({childList:!0,subtree:!0})],m.prototype,"onMutation",null),p([s()],m.prototype,"checkResponsiveLayout",null),m.style=":host{display:flex;flex-direction:row;align-items:center;justify-content:space-between;inline-size:100%;max-block-size:var(--gse-ui-dataTableItems-tableToolbar-height);visibility:hidden;transition:visibility 0s 0.5s;}@keyframes show-toolbar{to{visibility:visible}}:host .search-filter-container{min-inline-size:260px;padding-inline-end:var(--gse-ui-dataTableItems-tableToolbar-gap)}:host slot[name=search-and-filter]::slotted(*){display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);align-content:flex-start;align-items:center}:host .section-spacing{display:flex;flex-direction:row;min-inline-size:72px}:host .gux-contextual-permanent-primary{display:flex;flex-direction:row;justify-content:space-between;padding-inline-start:var(--gse-ui-dataTableItems-tableToolbar-gap)}:host .gux-contextual-permanent-primary slot[name=permanent-actions]::slotted(*),:host .gux-contextual-permanent-primary slot[name=contextual-actions]::slotted(*){display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);align-content:flex-end;align-items:center}:host .gux-contextual-permanent-primary .gux-contextual-wrapper{padding-inline-end:var(--gse-ui-dataTableItems-tableToolbar-gap);border-inline-end:var(--gse-ui-dataTableItems-tableToolbar-divider-width) solid var(--gse-ui-dataTableItems-tableToolbar-dividerColor)}:host .gux-contextual-permanent-primary .gux-permanent-menu-primary-wrapper{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);margin-inline-start:var(--gse-ui-dataTableItems-tableToolbar-gap)}";export{m as gux_table_toolbar}
@@ -1 +1 @@
1
- import{r as t,c as o,h as a,a as s}from"./p-mm833MRp.js";import{t as i}from"./p-B6h1eXrW.js";import{h as e}from"./p-qzV3vtOw.js";import{l as r}from"./p-DxtJDeL9.js";const n=class{constructor(a){t(this,a),this.guxdismiss=o(this,"guxdismiss",7),this.toastType="success",this.hasLink=!1,this.hasPrimaryButton=!1,this.hasSecondaryButton=!1}componentWillLoad(){i(this.root,{variant:this.toastType}),this.hasPrimaryButton=e(this.root,"primary-button"),this.hasSecondaryButton=e(this.root,"secondary-button"),this.hasLink=e(this.root,"link")}componentDidLoad(){this.checkAriaLive()}checkAriaLive(){let t=this.root.parentElement;for(;t;){if(t.hasAttribute("aria-live"))return;t=t.parentElement}r(this.root,"gux-toast must have a parent element with an `aria-live` attribute")}renderToastIcon(){switch(this.toastType){case"success":return a("gux-icon",{"icon-name":"fa/circle-check-solid",decorative:!0});case"warning":return a("gux-icon",{"icon-name":"fa/triangle-exclamation-solid",decorative:!0});case"error":return a("gux-icon",{"icon-name":"fa/hexagon-exclamation-solid",decorative:!0});case"info":return a("gux-icon",{"icon-name":"fa/circle-info-solid",decorative:!0});case"action":return a("slot",{name:"icon"})}}renderLink(){return a("div",{class:"gux-buttons-bar"},a("gux-link-beta",{standalone:!0},a("slot",{name:"link"})))}renderActions(){return a("gux-cta-group",{class:"gux-buttons-bar",align:"end"},this.hasSecondaryButton&&a("gux-button-slot",{slot:"secondary"},a("slot",{name:"secondary-button"})),a("gux-button-slot",{slot:"primary"},a("slot",{name:"primary-button"})))}render(){return a("div",{key:"61eba4695f91b811a83ae809c8e4b1083b1602b0",class:`gux-toast gux-toast-${this.toastType}`},a("div",{key:"e90cacbd6295240eb2abdadd72e8d7966eccceba",class:`gux-icon gux-icon-${this.toastType}`},this.renderToastIcon()),a("div",{key:"3b0f290ec66a1d68724ad0109695b6f357460450",class:"gux-content"},a("div",{key:"89e3890b411f89c50a8fe3a416492b4225b1acf4",class:"gux-message"},a("gux-truncate",{key:"dd184fc1e87ed9b813c28e8d8706ba09297f35bc",class:"gux-message-title","max-lines":1},a("slot",{key:"d06d672a1c384ce76acb2810c1d14d5df2099b12",name:"title"})),a("gux-truncate",{key:"740a5673b80c3aa363a3d38756aa080a32a78a97",class:"gux-message-body","max-lines":2},a("slot",{key:"0f33c259937a350a6e52614735499d2902ebd5f4",name:"message"}))),"action"!==this.toastType&&this.hasLink&&this.renderLink(),"action"===this.toastType&&this.hasPrimaryButton&&this.renderActions()),a("gux-dismiss-button",{key:"be72fa20f4b1dc6d374a8d89db5c7272bd3a92ca",position:"inherit",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(t){t.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return s(this)}};n.style=".gux-toast{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toast-gap);place-content:stretch flex-start;align-items:flex-start;inline-size:var(--gse-ui-toast-wrappingWidth);padding:var(--gse-ui-toast-margin);margin-block-end:var(--gse-ui-toast-stacking-gap);border-radius:var(--gse-ui-toast-borderRadius);box-shadow:var(--gse-ui-toast-boxShadow)}.gux-toast .gux-icon ::slotted(gux-icon){inline-size:var(--gse-ui-toast-icon) !important;block-size:var(--gse-ui-toast-icon) !important}.gux-toast .gux-icon gux-icon{inline-size:var(--gse-ui-toast-icon) !important;block-size:var(--gse-ui-toast-icon) !important}.gux-toast .gux-icon.gux-icon-error{color:var(--gse-ui-toast-error-iconColor)}.gux-toast .gux-icon.gux-icon-warning{color:var(--gse-ui-toast-warning-iconColor)}.gux-toast .gux-icon.gux-icon-success{color:var(--gse-ui-toast-success-iconColor)}.gux-toast .gux-icon.gux-icon-info{color:var(--gse-ui-toast-info-iconColor)}.gux-toast .gux-icon.gux-icon-action{color:var(--gse-ui-toast-action-iconColor)}.gux-toast .gux-content{display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;gap:var(--gse-ui-toast-gapButton);place-content:stretch flex-start;align-items:flex-start;align-self:auto;order:0}.gux-toast .gux-content .gux-message{display:flex;flex-direction:column;gap:var(--gse-ui-toast-gapText)}.gux-toast .gux-content .gux-message .gux-message-title{font-family:var(--gse-ui-toast-heading-fontFamily);font-size:var(--gse-ui-toast-heading-fontSize);font-weight:var(--gse-ui-toast-heading-fontWeight);line-height:var(--gse-ui-toast-heading-lineHeight)}.gux-toast .gux-content .gux-message .gux-message-body{font-family:var(--gse-ui-toast-text-fontFamily);font-size:var(--gse-ui-toast-text-fontSize);line-height:var(--gse-ui-toast-text-lineHeight);overflow-wrap:anywhere}.gux-toast .gux-content .gux-buttons-bar{inline-size:100%}.gux-toast.gux-toast-success{background-color:var(--gse-ui-toast-success-backgroundColor)}.gux-toast.gux-toast-success .gux-message{color:var(--gse-ui-toast-success-foregroundColor)}.gux-toast.gux-toast-warning{background-color:var(--gse-ui-toast-warning-backgroundColor)}.gux-toast.gux-toast-warning .gux-message{color:var(--gse-ui-toast-warning-foregroundColor)}.gux-toast.gux-toast-error{background-color:var(--gse-ui-toast-error-backgroundColor)}.gux-toast.gux-toast-error .gux-message{color:var(--gse-ui-toast-error-foregroundColor)}.gux-toast.gux-toast-info{background-color:var(--gse-ui-toast-info-backgroundColor)}.gux-toast.gux-toast-info .gux-message{color:var(--gse-ui-toast-info-foregroundColor)}.gux-toast.gux-toast-action{display:grid;grid-template-rows:1fr;grid-template-columns:var(--gse-ui-icon-medium-size) 1fr var(--gse-ui-button-dismiss-medium-width);background-color:var(--gse-ui-toast-action-backgroundColor)}.gux-toast.gux-toast-action .gux-content{grid-row:1/2;grid-column:2/4}.gux-toast.gux-toast-action .gux-icon{grid-row:1/2;grid-column:1/2}.gux-toast.gux-toast-action gux-dismiss-button{grid-row:1/2;grid-column:3/4}.gux-toast.gux-toast-action .gux-message{inline-size:var(--gse-ui-toast-messageWidth);color:var(--gse-ui-toast-action-foregroundColor)}";export{n as gux_toast}
1
+ import{r as t,c as o,h as a,a as s}from"./p-mm833MRp.js";import{t as i}from"./p-CyMJvvXZ.js";import{h as e}from"./p-qzV3vtOw.js";import{l as r}from"./p-DxtJDeL9.js";const n=class{constructor(a){t(this,a),this.guxdismiss=o(this,"guxdismiss",7),this.toastType="success",this.hasLink=!1,this.hasPrimaryButton=!1,this.hasSecondaryButton=!1}componentWillLoad(){i(this.root,{variant:this.toastType}),this.hasPrimaryButton=e(this.root,"primary-button"),this.hasSecondaryButton=e(this.root,"secondary-button"),this.hasLink=e(this.root,"link")}componentDidLoad(){this.checkAriaLive()}checkAriaLive(){let t=this.root.parentElement;for(;t;){if(t.hasAttribute("aria-live"))return;t=t.parentElement}r(this.root,"gux-toast must have a parent element with an `aria-live` attribute")}renderToastIcon(){switch(this.toastType){case"success":return a("gux-icon",{"icon-name":"fa/circle-check-solid",decorative:!0});case"warning":return a("gux-icon",{"icon-name":"fa/triangle-exclamation-solid",decorative:!0});case"error":return a("gux-icon",{"icon-name":"fa/hexagon-exclamation-solid",decorative:!0});case"info":return a("gux-icon",{"icon-name":"fa/circle-info-solid",decorative:!0});case"action":return a("slot",{name:"icon"})}}renderLink(){return a("div",{class:"gux-buttons-bar"},a("gux-link-beta",{standalone:!0},a("slot",{name:"link"})))}renderActions(){return a("gux-cta-group",{class:"gux-buttons-bar",align:"end"},this.hasSecondaryButton&&a("gux-button-slot",{slot:"secondary"},a("slot",{name:"secondary-button"})),a("gux-button-slot",{slot:"primary"},a("slot",{name:"primary-button"})))}render(){return a("div",{key:"61eba4695f91b811a83ae809c8e4b1083b1602b0",class:`gux-toast gux-toast-${this.toastType}`},a("div",{key:"e90cacbd6295240eb2abdadd72e8d7966eccceba",class:`gux-icon gux-icon-${this.toastType}`},this.renderToastIcon()),a("div",{key:"3b0f290ec66a1d68724ad0109695b6f357460450",class:"gux-content"},a("div",{key:"89e3890b411f89c50a8fe3a416492b4225b1acf4",class:"gux-message"},a("gux-truncate",{key:"dd184fc1e87ed9b813c28e8d8706ba09297f35bc",class:"gux-message-title","max-lines":1},a("slot",{key:"d06d672a1c384ce76acb2810c1d14d5df2099b12",name:"title"})),a("gux-truncate",{key:"740a5673b80c3aa363a3d38756aa080a32a78a97",class:"gux-message-body","max-lines":2},a("slot",{key:"0f33c259937a350a6e52614735499d2902ebd5f4",name:"message"}))),"action"!==this.toastType&&this.hasLink&&this.renderLink(),"action"===this.toastType&&this.hasPrimaryButton&&this.renderActions()),a("gux-dismiss-button",{key:"be72fa20f4b1dc6d374a8d89db5c7272bd3a92ca",position:"inherit",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(t){t.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return s(this)}};n.style=".gux-toast{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toast-gap);place-content:stretch flex-start;align-items:flex-start;inline-size:var(--gse-ui-toast-wrappingWidth);padding:var(--gse-ui-toast-margin);margin-block-end:var(--gse-ui-toast-stacking-gap);border-radius:var(--gse-ui-toast-borderRadius);box-shadow:var(--gse-ui-toast-boxShadow)}.gux-toast .gux-icon ::slotted(gux-icon){inline-size:var(--gse-ui-toast-icon) !important;block-size:var(--gse-ui-toast-icon) !important}.gux-toast .gux-icon gux-icon{inline-size:var(--gse-ui-toast-icon) !important;block-size:var(--gse-ui-toast-icon) !important}.gux-toast .gux-icon.gux-icon-error{color:var(--gse-ui-toast-error-iconColor)}.gux-toast .gux-icon.gux-icon-warning{color:var(--gse-ui-toast-warning-iconColor)}.gux-toast .gux-icon.gux-icon-success{color:var(--gse-ui-toast-success-iconColor)}.gux-toast .gux-icon.gux-icon-info{color:var(--gse-ui-toast-info-iconColor)}.gux-toast .gux-icon.gux-icon-action{color:var(--gse-ui-toast-action-iconColor)}.gux-toast .gux-content{display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;gap:var(--gse-ui-toast-gapButton);place-content:stretch flex-start;align-items:flex-start;align-self:auto;order:0}.gux-toast .gux-content .gux-message{display:flex;flex-direction:column;gap:var(--gse-ui-toast-gapText)}.gux-toast .gux-content .gux-message .gux-message-title{font-family:var(--gse-ui-toast-heading-fontFamily);font-size:var(--gse-ui-toast-heading-fontSize);font-weight:var(--gse-ui-toast-heading-fontWeight);line-height:var(--gse-ui-toast-heading-lineHeight)}.gux-toast .gux-content .gux-message .gux-message-body{font-family:var(--gse-ui-toast-text-fontFamily);font-size:var(--gse-ui-toast-text-fontSize);line-height:var(--gse-ui-toast-text-lineHeight);overflow-wrap:anywhere}.gux-toast .gux-content .gux-buttons-bar{inline-size:100%}.gux-toast.gux-toast-success{background-color:var(--gse-ui-toast-success-backgroundColor)}.gux-toast.gux-toast-success .gux-message{color:var(--gse-ui-toast-success-foregroundColor)}.gux-toast.gux-toast-warning{background-color:var(--gse-ui-toast-warning-backgroundColor)}.gux-toast.gux-toast-warning .gux-message{color:var(--gse-ui-toast-warning-foregroundColor)}.gux-toast.gux-toast-error{background-color:var(--gse-ui-toast-error-backgroundColor)}.gux-toast.gux-toast-error .gux-message{color:var(--gse-ui-toast-error-foregroundColor)}.gux-toast.gux-toast-info{background-color:var(--gse-ui-toast-info-backgroundColor)}.gux-toast.gux-toast-info .gux-message{color:var(--gse-ui-toast-info-foregroundColor)}.gux-toast.gux-toast-action{display:grid;grid-template-rows:1fr;grid-template-columns:var(--gse-ui-icon-medium-size) 1fr var(--gse-ui-button-dismiss-medium-width);background-color:var(--gse-ui-toast-action-backgroundColor)}.gux-toast.gux-toast-action .gux-content{grid-row:1/2;grid-column:2/4}.gux-toast.gux-toast-action .gux-icon{grid-row:1/2;grid-column:1/2}.gux-toast.gux-toast-action gux-dismiss-button{grid-row:1/2;grid-column:3/4}.gux-toast.gux-toast-action .gux-message{inline-size:var(--gse-ui-toast-messageWidth);color:var(--gse-ui-toast-action-foregroundColor)}";export{n as gux_toast}
@@ -1 +1 @@
1
- import{r as o,h as t,a as e,c as r}from"./p-mm833MRp.js";import{t as i}from"./p-B6h1eXrW.js";import{r as a}from"./p-D9jKBqIb.js";import{a as n,c as s,o as u,f as l,s as d,b as c}from"./p-C8aV-TzO.js";import{O as g}from"./p-CuMZPTZF.js";import{g as b}from"./p-BBpQG81s.js";import{f as p}from"./p-Cr5bTKWF.js";const v=class{constructor(t){o(this,t),this.buttonId=a("button"),this.type="button",this.disabled=!1,this.accent="secondary",this.autofocus=!1}connectedCallback(){this.slotChanged()}componentWillLoad(){i(this.root,{variant:this.accent})}render(){return[t("button",{key:"a20c8073f7148b0c626153e8e16470e9d6d69131",id:this.buttonId,type:this.type,disabled:this.disabled,class:{[`gux-${this.accent}`]:!0,"gux-icon-only":this.iconOnly},"aria-label":this.guxTitle,autofocus:this.autofocus},t("slot",{key:"88dd609637beec3f7eb1008dde3876e63d26f64a",onSlotchange:this.slotChanged.bind(this)})),this.renderTooltip()]}renderTooltip(){return this.guxTitle?t("gux-tooltip-beta",{for:this.buttonId,visualOnly:!0},t("div",{slot:"content"},this.guxTitle)):""}stopEventIfDisabled(o){this.disabled&&(o.stopImmediatePropagation(),o.stopPropagation(),o.preventDefault())}makeSlotContentDisableable(){this.root.shadowRoot.addEventListener("click",(o=>this.stopEventIfDisabled(o))),Array.from(this.root.children).forEach((o=>{o.addEventListener("click",(o=>this.stopEventIfDisabled(o)))}))}hasIconOnly(){const o=Array.from(this.root.children);if(1===o.length){if("GUX-ICON"===o[0].tagName)return!0}else if(2===o.length&&"GUX-ICON"===o[0].tagName&&["GUX-TOOLTIP","GUX-TOOLTIP-BETA"].includes(o[1].tagName))return!0;return!1}slotChanged(){this.makeSlotContentDisableable(),this.iconOnly=this.hasIconOnly()}static get delegatesFocus(){return!0}get root(){return e(this)}};v.style=":host{display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none}:host(:focus){outline:none}:host(:focus) button{outline:none}::slotted(gux-icon){inline-size:var(--gse-ui-button-icon-size);block-size:var(--gse-ui-button-icon-size)}::slotted(*){padding-inline-start:var(--gse-ui-button-gap);vertical-align:middle}::slotted(gux-tooltip),::slotted(gux-tooltip-beta){padding-inline-start:0}::slotted(*:first-child){padding:0}button{font-family:var(--gse-ui-button-text-fontFamily);font-size:var(--gse-ui-button-text-fontSize);font-weight:var(--gse-ui-button-text-fontWeight);line-height:var(--gse-ui-button-text-lineHeight);inline-size:100%;min-inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-padding);overflow:hidden;text-overflow:ellipsis;color:var(--gse-ui-button-secondary-default-foregroundColor);white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:var(--gse-ui-button-secondary-default-backgroundColor);border:none;border-radius:var(--gse-ui-button-borderRadius)}button.gux-icon-only{display:inline-flex;padding:var(--gse-ui-button-default-paddingIconOnly)}button[disabled]{pointer-events:none;cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}button:hover:enabled{color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}button:active:enabled{color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}button:focus-visible:enabled{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}button.gux-primary{color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}button.gux-primary:hover:enabled{color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}button.gux-primary:active:enabled{color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}button.gux-tertiary{color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-color:var(--gse-ui-button-tertiary-default-border-color);border-style:var(--gse-ui-button-tertiary-default-border-style);border-width:var(--gse-ui-button-tertiary-default-border-width);}button.gux-tertiary.gux-icon-only{padding:calc(var(--gse-ui-button-default-paddingIconOnly) - var(--gse-ui-button-tertiary-default-border-width))}button.gux-tertiary:hover:enabled{color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}button.gux-tertiary:active:enabled{color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}button.gux-ghost{color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}button.gux-ghost:hover:enabled{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}button.gux-ghost:active:enabled{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}button.gux-danger{color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}button.gux-danger:hover:enabled{color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}button.gux-danger:active:enabled{color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}button.gux-inline{min-inline-size:initial;block-size:initial;padding:0;color:var(--gse-ui-links-default-foregroundColor);background:none;border:none;border-radius:0}button.gux-inline[disabled]{color:var(--gse-ui-links-disabled-foregroundColor)}button.gux-inline:hover:enabled{color:var(--gse-ui-links-hover-foregroundColor);text-decoration:underline;background:none}button.gux-inline:active:enabled{color:var(--gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}button.gux-copilot{color:var(--gse-ui-button-primary-default-foregroundColor);background:linear-gradient(64deg, var(--gse-ui-copilotButton-default-backgroundColor-bottomLeft) 5.51%, var(--gse-ui-copilotButton-default-backgroundColor-middle) 48.28%, var(--gse-ui-copilotButton-default-backgroundColor-topRight) 88.65%);box-shadow:var(--gse-ui-copilotButton-glow-default)}button.gux-copilot:hover:enabled{color:var(--gse-ui-button-primary-hover-foregroundColor);background:linear-gradient(54deg, var(--gse-ui-copilotButton-hover-backgroundColor-bottomLeft) 7.09%, var(--gse-ui-copilotButton-hover-backgroundColor-middle) 47.64%, var(--gse-ui-copilotButton-hover-backgroundColor-topRight) 103.51%);box-shadow:var(--gse-ui-copilotButton-glow-hover)}button.gux-copilot:active:enabled{color:var(--gse-ui-button-primary-active-foregroundColor);background:linear-gradient(54deg, var(--gse-ui-copilotButton-active-backgroundColor-bottomLeft) 7.17%, var(--gse-ui-copilotButton-active-backgroundColor-middle) 46.7%, var(--gse-ui-copilotButton-active-backgroundColor-topRight) 83.3%);box-shadow:var(--gse-ui-copilotButton-glow-active)}";var h=function(o,t,e,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(o,t,e,r);else for(var s=o.length-1;s>=0;s--)(i=o[s])&&(n=(a<3?i(n):a>3?i(t,e,n):i(t,e))||n);return a>3&&n&&Object.defineProperty(t,e,n),n};const f=class{constructor(t){o(this,t),this.guxdismiss=r(this,"guxdismiss",7),this.position="bottom",this.displayDismissButton=!1,this.closeOnClickOutside=!1,this.isOpen=!1}onKeyDown(o){"Escape"===o.key&&this.dismiss()}onFocusout(o){!this.closeOnClickOutside&&this.displayDismissButton||o.relatedTarget&&!this.root.contains(o.relatedTarget)&&this.dismiss()}checkForClickOutside(o){const t=o.composedPath(),e=p(this.root,this.for),r=t.includes(e);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||r||this.dismiss()}get titleSlot(){return b(this.root,"title")}get footerSlot(){return b(this.root,"footer")}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.root.isConnected?this.cleanupUpdatePosition=n(p(this.root,this.for),this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const o=p(this.root,this.for);this.popupElement&&o&&s(o,this.popupElement,{placement:this.position,middleware:[u(7),l(),d(),c({element:this.arrowElement,padding:16})]}).then((({x:o,y:t,middlewareData:e,placement:r})=>{Object.assign(this.popupElement.style,{left:`${o}px`,top:`${t}px`});const i=r.split("-")[0],a={top:"bottom",right:"left",bottom:"top",left:"right"}[i],n={top:0,right:90,bottom:180,left:-90}[i],s="left"===i||"right"===i?15:12;if(e.arrow){let o=e.arrow.x;const t=e.arrow.y;"left"!==i&&"right"!==i||(o+=4),this.popupElement.setAttribute("data-placement",r),Object.assign(this.arrowElement.style,{left:null!=o?`${o}px`:"",top:null!=t?`${t}px`:"",right:"",bottom:"",[a]:-s+"px",transform:`rotate(${n}deg)`})}}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1)}connectedCallback(){i(this.root,{variant:this.position})}componentDidLoad(){this.isOpen&&this.runUpdatePosition()}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return t("div",{key:"ee79a5f977f663378a53835e2eab1c7b76cc6adf",ref:o=>this.popupElement=o,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0},t("div",{key:"c1517105ebc5fa838448897ed17ea424cfa3ce62",ref:o=>this.arrowElement=o,class:"gux-arrow"},t("div",{key:"4e21b190182f4670537c26f552f630d1103570c6",class:"gux-arrow-caret"})),this.displayDismissButton&&t("gux-dismiss-button",{key:"89d5caa0b37bfbc335262e9d256d3cdcf5e9083c",onClick:this.dismiss.bind(this)}),t("div",{key:"7ed52f4bcba59d629f95a7a1e545b98c758701a5",class:{"gux-popover-header":Boolean(this.titleSlot)}},t("slot",{key:"3e279a48d4cc94698e607382be0317afd240348e",name:"title"})),t("div",{key:"a1065a031834315f097ac4a13f210248eb21879a",class:"gux-popover-content"},t("slot",{key:"544bbb7943261e84766b241bd6c33a2df09e971d"})),t("div",{key:"ab485c77165e4231bd5b636f674f2b5d239e650b",class:{"gux-popover-footer":Boolean(this.footerSlot)}},t("slot",{key:"a1ed812ec311e6f358ccfc7315a0155d77cbc4d2",name:"footer"})))}get root(){return e(this)}};h([g({triggerEvents:"mousedown"})],f.prototype,"checkForClickOutside",null),h([function(){let o=!1,t=null;return(e,r,i)=>{const a=i.value;i.value=function(...e){o||(a.apply(this,e),o=!0,clearTimeout(t),t=setTimeout((()=>{o=!1}),100))}}}()],f.prototype,"dismiss",null),f.style=".gux-popover-wrapper{position:absolute;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;padding:var(--gse-ui-popover-padding);background-color:var(--gse-ui-popover-backgroundColor);border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow)}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-height);padding-block-end:4px;overflow:hidden}.gux-popover-wrapper .gux-arrow-caret{inline-size:0;block-size:0;border-block-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid var(--gse-ui-popover-backgroundColor);border-inline-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;border-inline-end:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;filter:drop-shadow(0 0 4px var(--gse-semantic-effects-boxShadow))}.gux-popover-wrapper .gux-popover-header{display:flex;flex-direction:row;place-content:center space-between;align-items:center;padding-block-end:var(--gse-ui-popover-gap);font-family:var(--gse-ui-popover-title-text-fontFamily);font-size:var(--gse-ui-popover-title-text-fontSize);font-weight:var(--gse-ui-popover-title-text-fontWeight);line-height:var(--gse-ui-popover-title-text-lineHeight);color:var(--gse-ui-popover-headerColor)}.gux-popover-wrapper .gux-popover-footer{padding-block-start:var(--gse-ui-popover-gap)}";export{v as gux_button,f as gux_popover}
1
+ import{r as o,h as t,a as e,c as r}from"./p-mm833MRp.js";import{t as i}from"./p-CyMJvvXZ.js";import{r as a}from"./p-D9jKBqIb.js";import{a as n,c as s,o as u,f as l,s as d,b as c}from"./p-C8aV-TzO.js";import{O as g}from"./p-CuMZPTZF.js";import{g as b}from"./p-BBpQG81s.js";import{f as p}from"./p-Cr5bTKWF.js";const v=class{constructor(t){o(this,t),this.buttonId=a("button"),this.type="button",this.disabled=!1,this.accent="secondary",this.autofocus=!1}connectedCallback(){this.slotChanged()}componentWillLoad(){i(this.root,{variant:this.accent})}render(){return[t("button",{key:"a20c8073f7148b0c626153e8e16470e9d6d69131",id:this.buttonId,type:this.type,disabled:this.disabled,class:{[`gux-${this.accent}`]:!0,"gux-icon-only":this.iconOnly},"aria-label":this.guxTitle,autofocus:this.autofocus},t("slot",{key:"88dd609637beec3f7eb1008dde3876e63d26f64a",onSlotchange:this.slotChanged.bind(this)})),this.renderTooltip()]}renderTooltip(){return this.guxTitle?t("gux-tooltip-beta",{for:this.buttonId,visualOnly:!0},t("div",{slot:"content"},this.guxTitle)):""}stopEventIfDisabled(o){this.disabled&&(o.stopImmediatePropagation(),o.stopPropagation(),o.preventDefault())}makeSlotContentDisableable(){this.root.shadowRoot.addEventListener("click",(o=>this.stopEventIfDisabled(o))),Array.from(this.root.children).forEach((o=>{o.addEventListener("click",(o=>this.stopEventIfDisabled(o)))}))}hasIconOnly(){const o=Array.from(this.root.children);if(1===o.length){if("GUX-ICON"===o[0].tagName)return!0}else if(2===o.length&&"GUX-ICON"===o[0].tagName&&["GUX-TOOLTIP","GUX-TOOLTIP-BETA"].includes(o[1].tagName))return!0;return!1}slotChanged(){this.makeSlotContentDisableable(),this.iconOnly=this.hasIconOnly()}static get delegatesFocus(){return!0}get root(){return e(this)}};v.style=":host{display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none}:host(:focus){outline:none}:host(:focus) button{outline:none}::slotted(gux-icon){inline-size:var(--gse-ui-button-icon-size);block-size:var(--gse-ui-button-icon-size)}::slotted(*){padding-inline-start:var(--gse-ui-button-gap);vertical-align:middle}::slotted(gux-tooltip),::slotted(gux-tooltip-beta){padding-inline-start:0}::slotted(*:first-child){padding:0}button{font-family:var(--gse-ui-button-text-fontFamily);font-size:var(--gse-ui-button-text-fontSize);font-weight:var(--gse-ui-button-text-fontWeight);line-height:var(--gse-ui-button-text-lineHeight);inline-size:100%;min-inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-padding);overflow:hidden;text-overflow:ellipsis;color:var(--gse-ui-button-secondary-default-foregroundColor);white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:var(--gse-ui-button-secondary-default-backgroundColor);border:none;border-radius:var(--gse-ui-button-borderRadius)}button.gux-icon-only{display:inline-flex;padding:var(--gse-ui-button-default-paddingIconOnly)}button[disabled]{pointer-events:none;cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}button:hover:enabled{color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}button:active:enabled{color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}button:focus-visible:enabled{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}button.gux-primary{color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}button.gux-primary:hover:enabled{color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}button.gux-primary:active:enabled{color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}button.gux-tertiary{color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-color:var(--gse-ui-button-tertiary-default-border-color);border-style:var(--gse-ui-button-tertiary-default-border-style);border-width:var(--gse-ui-button-tertiary-default-border-width);}button.gux-tertiary.gux-icon-only{padding:calc(var(--gse-ui-button-default-paddingIconOnly) - var(--gse-ui-button-tertiary-default-border-width))}button.gux-tertiary:hover:enabled{color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}button.gux-tertiary:active:enabled{color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}button.gux-ghost{color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}button.gux-ghost:hover:enabled{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}button.gux-ghost:active:enabled{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}button.gux-danger{color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}button.gux-danger:hover:enabled{color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}button.gux-danger:active:enabled{color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}button.gux-inline{min-inline-size:initial;block-size:initial;padding:0;color:var(--gse-ui-links-default-foregroundColor);background:none;border:none;border-radius:0}button.gux-inline[disabled]{color:var(--gse-ui-links-disabled-foregroundColor)}button.gux-inline:hover:enabled{color:var(--gse-ui-links-hover-foregroundColor);text-decoration:underline;background:none}button.gux-inline:active:enabled{color:var(--gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}button.gux-copilot{color:var(--gse-ui-button-primary-default-foregroundColor);background:linear-gradient(64deg, var(--gse-ui-copilotButton-default-backgroundColor-bottomLeft) 5.51%, var(--gse-ui-copilotButton-default-backgroundColor-middle) 48.28%, var(--gse-ui-copilotButton-default-backgroundColor-topRight) 88.65%);box-shadow:var(--gse-ui-copilotButton-glow-default)}button.gux-copilot:hover:enabled{color:var(--gse-ui-button-primary-hover-foregroundColor);background:linear-gradient(54deg, var(--gse-ui-copilotButton-hover-backgroundColor-bottomLeft) 7.09%, var(--gse-ui-copilotButton-hover-backgroundColor-middle) 47.64%, var(--gse-ui-copilotButton-hover-backgroundColor-topRight) 103.51%);box-shadow:var(--gse-ui-copilotButton-glow-hover)}button.gux-copilot:active:enabled{color:var(--gse-ui-button-primary-active-foregroundColor);background:linear-gradient(54deg, var(--gse-ui-copilotButton-active-backgroundColor-bottomLeft) 7.17%, var(--gse-ui-copilotButton-active-backgroundColor-middle) 46.7%, var(--gse-ui-copilotButton-active-backgroundColor-topRight) 83.3%);box-shadow:var(--gse-ui-copilotButton-glow-active)}";var h=function(o,t,e,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(o,t,e,r);else for(var s=o.length-1;s>=0;s--)(i=o[s])&&(n=(a<3?i(n):a>3?i(t,e,n):i(t,e))||n);return a>3&&n&&Object.defineProperty(t,e,n),n};const f=class{constructor(t){o(this,t),this.guxdismiss=r(this,"guxdismiss",7),this.position="bottom",this.displayDismissButton=!1,this.closeOnClickOutside=!1,this.isOpen=!1}onKeyDown(o){"Escape"===o.key&&this.dismiss()}onFocusout(o){!this.closeOnClickOutside&&this.displayDismissButton||o.relatedTarget&&!this.root.contains(o.relatedTarget)&&this.dismiss()}checkForClickOutside(o){const t=o.composedPath(),e=p(this.root,this.for),r=t.includes(e);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||r||this.dismiss()}get titleSlot(){return b(this.root,"title")}get footerSlot(){return b(this.root,"footer")}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.root.isConnected?this.cleanupUpdatePosition=n(p(this.root,this.for),this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const o=p(this.root,this.for);this.popupElement&&o&&s(o,this.popupElement,{placement:this.position,middleware:[u(7),l(),d(),c({element:this.arrowElement,padding:16})]}).then((({x:o,y:t,middlewareData:e,placement:r})=>{Object.assign(this.popupElement.style,{left:`${o}px`,top:`${t}px`});const i=r.split("-")[0],a={top:"bottom",right:"left",bottom:"top",left:"right"}[i],n={top:0,right:90,bottom:180,left:-90}[i],s="left"===i||"right"===i?15:12;if(e.arrow){let o=e.arrow.x;const t=e.arrow.y;"left"!==i&&"right"!==i||(o+=4),this.popupElement.setAttribute("data-placement",r),Object.assign(this.arrowElement.style,{left:null!=o?`${o}px`:"",top:null!=t?`${t}px`:"",right:"",bottom:"",[a]:-s+"px",transform:`rotate(${n}deg)`})}}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1)}connectedCallback(){i(this.root,{variant:this.position})}componentDidLoad(){this.isOpen&&this.runUpdatePosition()}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return t("div",{key:"ee79a5f977f663378a53835e2eab1c7b76cc6adf",ref:o=>this.popupElement=o,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0},t("div",{key:"c1517105ebc5fa838448897ed17ea424cfa3ce62",ref:o=>this.arrowElement=o,class:"gux-arrow"},t("div",{key:"4e21b190182f4670537c26f552f630d1103570c6",class:"gux-arrow-caret"})),this.displayDismissButton&&t("gux-dismiss-button",{key:"89d5caa0b37bfbc335262e9d256d3cdcf5e9083c",onClick:this.dismiss.bind(this)}),t("div",{key:"7ed52f4bcba59d629f95a7a1e545b98c758701a5",class:{"gux-popover-header":Boolean(this.titleSlot)}},t("slot",{key:"3e279a48d4cc94698e607382be0317afd240348e",name:"title"})),t("div",{key:"a1065a031834315f097ac4a13f210248eb21879a",class:"gux-popover-content"},t("slot",{key:"544bbb7943261e84766b241bd6c33a2df09e971d"})),t("div",{key:"ab485c77165e4231bd5b636f674f2b5d239e650b",class:{"gux-popover-footer":Boolean(this.footerSlot)}},t("slot",{key:"a1ed812ec311e6f358ccfc7315a0155d77cbc4d2",name:"footer"})))}get root(){return e(this)}};h([g({triggerEvents:"mousedown"})],f.prototype,"checkForClickOutside",null),h([function(){let o=!1,t=null;return(e,r,i)=>{const a=i.value;i.value=function(...e){o||(a.apply(this,e),o=!0,clearTimeout(t),t=setTimeout((()=>{o=!1}),100))}}}()],f.prototype,"dismiss",null),f.style=".gux-popover-wrapper{position:absolute;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;padding:var(--gse-ui-popover-padding);background-color:var(--gse-ui-popover-backgroundColor);border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow)}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-height);padding-block-end:4px;overflow:hidden}.gux-popover-wrapper .gux-arrow-caret{inline-size:0;block-size:0;border-block-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid var(--gse-ui-popover-backgroundColor);border-inline-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;border-inline-end:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;filter:drop-shadow(0 0 4px var(--gse-semantic-effects-boxShadow))}.gux-popover-wrapper .gux-popover-header{display:flex;flex-direction:row;place-content:center space-between;align-items:center;padding-block-end:var(--gse-ui-popover-gap);font-family:var(--gse-ui-popover-title-text-fontFamily);font-size:var(--gse-ui-popover-title-text-fontSize);font-weight:var(--gse-ui-popover-title-text-fontWeight);line-height:var(--gse-ui-popover-title-text-lineHeight);color:var(--gse-ui-popover-headerColor)}.gux-popover-wrapper .gux-popover-footer{padding-block-start:var(--gse-ui-popover-gap)}";export{v as gux_button,f as gux_popover}