genesys-spark-components 4.188.0 → 4.188.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (407) hide show
  1. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  2. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-actionable-inline-alert-beta.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-avatar-beta.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-avatar-group-add-item-beta_3.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-avatar-group-item-beta.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-blank-state-beta.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-button_2.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-cloud-logo-beta.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-cloud-logomark-beta.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +5 -5
  33. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-file-list-item.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-file-beta.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-file.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-number_2.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-form-field-select.cjs.entry.js +2 -2
  52. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-illustration-beta.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-inline-dropdown-beta.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-link-beta.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-logo-beta.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-logomark-beta.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-popover-beta.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-popover-list-beta.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-prompt-input-beta.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-rich-highlight-list-item.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-rich-style-list-item_3.cjs.entry.js +1 -1
  88. package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +1 -1
  91. package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +1 -1
  92. package/dist/cjs/gux-rich-text-editor-beta.cjs.entry.js +1 -1
  93. package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  95. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  96. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
  97. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
  98. package/dist/cjs/gux-side-panel-beta.cjs.entry.js +1 -1
  99. package/dist/cjs/gux-side-panel-header.cjs.entry.js +1 -1
  100. package/dist/cjs/gux-side-panel-heading.cjs.entry.js +1 -1
  101. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  102. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  103. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  104. package/dist/cjs/gux-status-indicator-beta.cjs.entry.js +1 -1
  105. package/dist/cjs/gux-step-title.cjs.entry.js +1 -1
  106. package/dist/cjs/gux-step.cjs.entry.js +1 -1
  107. package/dist/cjs/gux-stepper-beta.cjs.entry.js +1 -1
  108. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  109. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  110. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  111. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  112. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  113. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  114. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  115. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  116. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  117. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  118. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  119. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  120. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
  121. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  122. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  123. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  124. package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +1 -1
  125. package/dist/cjs/gux-tooltip-pointer-beta.cjs.entry.js +1 -1
  126. package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
  127. package/dist/cjs/gux-tree-beta.cjs.entry.js +1 -1
  128. package/dist/cjs/gux-tree-multi-beta.cjs.entry.js +1 -1
  129. package/dist/cjs/{usage-BrcJ30Q_.js → usage-sB4wE0Xu.js} +1 -1
  130. package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi.js +4 -4
  131. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.css +4 -1
  132. package/dist/esm/gux-accordion.entry.js +1 -1
  133. package/dist/esm/gux-action-button.entry.js +1 -1
  134. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  135. package/dist/esm/gux-actionable-inline-alert-beta.entry.js +1 -1
  136. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  137. package/dist/esm/gux-announce-beta.entry.js +1 -1
  138. package/dist/esm/gux-avatar-beta.entry.js +1 -1
  139. package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
  140. package/dist/esm/gux-avatar-group-add-item-beta_3.entry.js +1 -1
  141. package/dist/esm/gux-avatar-group-beta.entry.js +1 -1
  142. package/dist/esm/gux-avatar-group-item-beta.entry.js +1 -1
  143. package/dist/esm/gux-badge.entry.js +1 -1
  144. package/dist/esm/gux-blank-state-beta.entry.js +1 -1
  145. package/dist/esm/gux-blank-state.entry.js +1 -1
  146. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  147. package/dist/esm/gux-button-multi.entry.js +1 -1
  148. package/dist/esm/gux-button-slot.entry.js +1 -1
  149. package/dist/esm/gux-button_2.entry.js +1 -1
  150. package/dist/esm/gux-calendar.entry.js +1 -1
  151. package/dist/esm/gux-card.entry.js +1 -1
  152. package/dist/esm/gux-cloud-logo-beta.entry.js +1 -1
  153. package/dist/esm/gux-cloud-logomark-beta.entry.js +1 -1
  154. package/dist/esm/gux-column-manager.entry.js +1 -1
  155. package/dist/esm/gux-content-search.entry.js +1 -1
  156. package/dist/esm/gux-context-menu.entry.js +1 -1
  157. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  158. package/dist/esm/gux-date-beta.entry.js +1 -1
  159. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  160. package/dist/esm/gux-datepicker.entry.js +1 -1
  161. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  162. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  163. package/dist/esm/gux-dropdown-multi.entry.js +5 -5
  164. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  165. package/dist/esm/gux-file-list-item.entry.js +1 -1
  166. package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
  167. package/dist/esm/gux-flyout-menu.entry.js +1 -1
  168. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +1 -1
  169. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  170. package/dist/esm/gux-form-field-color.entry.js +1 -1
  171. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  172. package/dist/esm/gux-form-field-file-beta.entry.js +1 -1
  173. package/dist/esm/gux-form-field-file.entry.js +1 -1
  174. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  175. package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
  176. package/dist/esm/gux-form-field-number_2.entry.js +1 -1
  177. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  178. package/dist/esm/gux-form-field-radio-group-beta.entry.js +1 -1
  179. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  180. package/dist/esm/gux-form-field-range.entry.js +1 -1
  181. package/dist/esm/gux-form-field-search.entry.js +1 -1
  182. package/dist/esm/gux-form-field-select.entry.js +2 -2
  183. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  184. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  185. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  186. package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
  187. package/dist/esm/gux-form-footer.entry.js +1 -1
  188. package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
  189. package/dist/esm/gux-icon.entry.js +1 -1
  190. package/dist/esm/gux-illustration-beta.entry.js +1 -1
  191. package/dist/esm/gux-inline-alert.entry.js +1 -1
  192. package/dist/esm/gux-inline-dropdown-beta.entry.js +1 -1
  193. package/dist/esm/gux-label-info-beta.entry.js +1 -1
  194. package/dist/esm/gux-link-beta.entry.js +1 -1
  195. package/dist/esm/gux-list.entry.js +1 -1
  196. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  197. package/dist/esm/gux-loading-message.entry.js +1 -1
  198. package/dist/esm/gux-logo-beta.entry.js +1 -1
  199. package/dist/esm/gux-logomark-beta.entry.js +1 -1
  200. package/dist/esm/gux-modal-legacy.entry.js +1 -1
  201. package/dist/esm/gux-modal-side-panel-beta.entry.js +1 -1
  202. package/dist/esm/gux-modal.entry.js +1 -1
  203. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  204. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  205. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  206. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  207. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  208. package/dist/esm/gux-pagination.entry.js +1 -1
  209. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  210. package/dist/esm/gux-popover-beta.entry.js +1 -1
  211. package/dist/esm/gux-popover-list-beta.entry.js +1 -1
  212. package/dist/esm/gux-popover-list.entry.js +1 -1
  213. package/dist/esm/gux-prompt-input-beta.entry.js +1 -1
  214. package/dist/esm/gux-radial-loading.entry.js +1 -1
  215. package/dist/esm/gux-radial-progress.entry.js +1 -1
  216. package/dist/esm/gux-rating.entry.js +1 -1
  217. package/dist/esm/gux-rich-highlight-list-item.entry.js +1 -1
  218. package/dist/esm/gux-rich-style-list-item_3.entry.js +1 -1
  219. package/dist/esm/gux-rich-text-editor-action-link.entry.js +1 -1
  220. package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +1 -1
  221. package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +1 -1
  222. package/dist/esm/gux-rich-text-editor-action.entry.js +1 -1
  223. package/dist/esm/gux-rich-text-editor-beta.entry.js +1 -1
  224. package/dist/esm/gux-rich-text-editor-list.entry.js +1 -1
  225. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  226. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  227. package/dist/esm/gux-selector-card-beta.entry.js +1 -1
  228. package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
  229. package/dist/esm/gux-side-panel-beta.entry.js +1 -1
  230. package/dist/esm/gux-side-panel-header.entry.js +1 -1
  231. package/dist/esm/gux-side-panel-heading.entry.js +1 -1
  232. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  233. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  234. package/dist/esm/gux-sort-control.entry.js +1 -1
  235. package/dist/esm/gux-status-indicator-beta.entry.js +1 -1
  236. package/dist/esm/gux-step-title.entry.js +1 -1
  237. package/dist/esm/gux-step.entry.js +1 -1
  238. package/dist/esm/gux-stepper-beta.entry.js +1 -1
  239. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  240. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  241. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  242. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  243. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  244. package/dist/esm/gux-table.entry.js +1 -1
  245. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  246. package/dist/esm/gux-tabs.entry.js +1 -1
  247. package/dist/esm/gux-tag.entry.js +1 -1
  248. package/dist/esm/gux-text-highlight.entry.js +1 -1
  249. package/dist/esm/gux-time-beta.entry.js +1 -1
  250. package/dist/esm/gux-time-picker.entry.js +1 -1
  251. package/dist/esm/gux-time-zone-beta.entry.js +1 -1
  252. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  253. package/dist/esm/gux-toast.entry.js +1 -1
  254. package/dist/esm/gux-toggle.entry.js +1 -1
  255. package/dist/esm/gux-tooltip-base-beta_2.entry.js +1 -1
  256. package/dist/esm/gux-tooltip-pointer-beta.entry.js +1 -1
  257. package/dist/esm/gux-tooltip_2.entry.js +1 -1
  258. package/dist/esm/gux-tree-beta.entry.js +1 -1
  259. package/dist/esm/gux-tree-multi-beta.entry.js +1 -1
  260. package/dist/esm/{usage-DoCK5APt.js → usage-B6h1eXrW.js} +1 -1
  261. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  262. package/dist/genesys-webcomponents/{p-3e72a6b5.entry.js → p-004aee53.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/{p-0a95be21.entry.js → p-00766124.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/{p-8377adb8.entry.js → p-015617e9.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-b503ca1e.entry.js → p-02069f7f.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-c5605e6b.entry.js → p-026b9834.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-1879c288.entry.js → p-0453c00e.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-b1ffcd01.entry.js → p-07372e52.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-416295ef.entry.js → p-0a13e985.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-a3568265.entry.js → p-0e7ac2ed.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-65508ddc.entry.js → p-10005b05.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-d5bd41cb.entry.js → p-127778a4.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-01be2067.entry.js → p-140fbae9.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-813113d7.entry.js → p-1687884f.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-bda59bbc.entry.js → p-1695394a.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-ab6e7cf5.entry.js → p-1ceab2bf.entry.js} +1 -1
  277. package/dist/genesys-webcomponents/{p-08709d24.entry.js → p-1d53a2a3.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-9042c661.entry.js → p-22ed9a7d.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/{p-63e24ee5.entry.js → p-25c8dea4.entry.js} +1 -1
  280. package/dist/genesys-webcomponents/{p-0a98af46.entry.js → p-2701831d.entry.js} +1 -1
  281. package/dist/genesys-webcomponents/p-2860c165.entry.js +1 -0
  282. package/dist/genesys-webcomponents/{p-819c8ccb.entry.js → p-2904e896.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-93ef8e35.entry.js → p-2ef87d07.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/{p-00a3713d.entry.js → p-3150ad33.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/{p-27689070.entry.js → p-345239d6.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-f2bb6551.entry.js → p-346a5b78.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/p-3584993f.entry.js +1 -0
  288. package/dist/genesys-webcomponents/{p-08b446fb.entry.js → p-3953c668.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/p-3da28db9.entry.js +1 -0
  290. package/dist/genesys-webcomponents/{p-656a2bf9.entry.js → p-3e108263.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/p-3ebcd9be.entry.js +1 -0
  292. package/dist/genesys-webcomponents/{p-3458117d.entry.js → p-3fd1a55e.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-00b6211d.entry.js → p-41577f70.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/p-415c4843.entry.js +1 -0
  295. package/dist/genesys-webcomponents/{p-fca63003.entry.js → p-4315cd6b.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-e9b66742.entry.js → p-43a5a349.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-442ec2a2.entry.js → p-4409c7fc.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-4c347281.entry.js → p-44ee63db.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-2eda67c9.entry.js → p-4827fa85.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-a6622db5.entry.js → p-49b9817b.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/{p-5099bb27.entry.js → p-4ea10f94.entry.js} +1 -1
  302. package/dist/genesys-webcomponents/{p-6d8db6e9.entry.js → p-50741c53.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-32544537.entry.js → p-5148f891.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-3fbb6346.entry.js → p-538eed2f.entry.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-1e6372f3.entry.js → p-5411edc5.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-f9b2523b.entry.js → p-5495bd0b.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/{p-0941fc32.entry.js → p-5622da88.entry.js} +1 -1
  308. package/dist/genesys-webcomponents/{p-a2e4d2e6.entry.js → p-5a6df8ad.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-536aa705.entry.js → p-5b22714c.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-6b7ac088.entry.js → p-5ba624d5.entry.js} +1 -1
  311. package/dist/genesys-webcomponents/{p-e8299630.entry.js → p-5c57de61.entry.js} +1 -1
  312. package/dist/genesys-webcomponents/{p-280df72c.entry.js → p-5de2444c.entry.js} +1 -1
  313. package/dist/genesys-webcomponents/{p-247cc10a.entry.js → p-62ba27e4.entry.js} +1 -1
  314. package/dist/genesys-webcomponents/{p-d7878724.entry.js → p-63769174.entry.js} +1 -1
  315. package/dist/genesys-webcomponents/{p-cb572067.entry.js → p-64575c8f.entry.js} +1 -1
  316. package/dist/genesys-webcomponents/p-64bc09ce.entry.js +1 -0
  317. package/dist/genesys-webcomponents/{p-fe8dd26d.entry.js → p-66663066.entry.js} +1 -1
  318. package/dist/genesys-webcomponents/p-6730939b.entry.js +1 -0
  319. package/dist/genesys-webcomponents/{p-4f0ebdc2.entry.js → p-67d1b365.entry.js} +1 -1
  320. package/dist/genesys-webcomponents/{p-ccd4f67b.entry.js → p-6a92146a.entry.js} +1 -1
  321. package/dist/genesys-webcomponents/{p-73fdaf15.entry.js → p-6b94d745.entry.js} +1 -1
  322. package/dist/genesys-webcomponents/{p-b48586c7.entry.js → p-6c4f7f1b.entry.js} +1 -1
  323. package/dist/genesys-webcomponents/{p-5b04716a.entry.js → p-6f40c523.entry.js} +1 -1
  324. package/dist/genesys-webcomponents/{p-4eb5e018.entry.js → p-700fd593.entry.js} +1 -1
  325. package/dist/genesys-webcomponents/{p-13cebbf5.entry.js → p-70bc2301.entry.js} +1 -1
  326. package/dist/genesys-webcomponents/{p-6685bc71.entry.js → p-713c8d1b.entry.js} +1 -1
  327. package/dist/genesys-webcomponents/{p-2db158bc.entry.js → p-75a276b4.entry.js} +1 -1
  328. package/dist/genesys-webcomponents/{p-7757e81b.entry.js → p-77b653f2.entry.js} +1 -1
  329. package/dist/genesys-webcomponents/{p-cf0ea57d.entry.js → p-77cb31a4.entry.js} +1 -1
  330. package/dist/genesys-webcomponents/{p-4c00012c.entry.js → p-77d60ed3.entry.js} +1 -1
  331. package/dist/genesys-webcomponents/{p-b5934643.entry.js → p-78d92139.entry.js} +1 -1
  332. package/dist/genesys-webcomponents/{p-d70de704.entry.js → p-7a5ad8ae.entry.js} +1 -1
  333. package/dist/genesys-webcomponents/p-7ed0ad2a.entry.js +1 -0
  334. package/dist/genesys-webcomponents/{p-6708ec2f.entry.js → p-7f0495e3.entry.js} +1 -1
  335. package/dist/genesys-webcomponents/p-8006d315.entry.js +1 -0
  336. package/dist/genesys-webcomponents/{p-17f39292.entry.js → p-8108bda2.entry.js} +1 -1
  337. package/dist/genesys-webcomponents/{p-0588dda8.entry.js → p-83c99eb7.entry.js} +1 -1
  338. package/dist/genesys-webcomponents/{p-25ffb673.entry.js → p-85546f7b.entry.js} +1 -1
  339. package/dist/genesys-webcomponents/{p-be34795b.entry.js → p-8bede258.entry.js} +1 -1
  340. package/dist/genesys-webcomponents/{p-99a500a5.entry.js → p-8d9cc87b.entry.js} +1 -1
  341. package/dist/genesys-webcomponents/{p-c230db58.entry.js → p-8eab6c7e.entry.js} +1 -1
  342. package/dist/genesys-webcomponents/{p-0a2812fb.entry.js → p-925f6f1b.entry.js} +1 -1
  343. package/dist/genesys-webcomponents/{p-930ad3f9.entry.js → p-92eaff46.entry.js} +1 -1
  344. package/dist/genesys-webcomponents/{p-ac896846.entry.js → p-939c80f9.entry.js} +1 -1
  345. package/dist/genesys-webcomponents/p-951cde88.entry.js +1 -0
  346. package/dist/genesys-webcomponents/{p-9649fd54.entry.js → p-9561ec21.entry.js} +1 -1
  347. package/dist/genesys-webcomponents/{p-ec8e68fe.entry.js → p-96d5b1bf.entry.js} +1 -1
  348. package/dist/genesys-webcomponents/p-96d5bf32.entry.js +1 -0
  349. package/dist/genesys-webcomponents/{p-91bc8433.entry.js → p-99d7e93e.entry.js} +1 -1
  350. package/dist/genesys-webcomponents/{p-b4989afd.entry.js → p-9a74205e.entry.js} +1 -1
  351. package/dist/genesys-webcomponents/{p-e871ffca.entry.js → p-9a973106.entry.js} +1 -1
  352. package/dist/genesys-webcomponents/{p-08211e4a.entry.js → p-9f133169.entry.js} +1 -1
  353. package/dist/genesys-webcomponents/{p-4c171fbc.entry.js → p-9faa698d.entry.js} +1 -1
  354. package/dist/genesys-webcomponents/{p-c5257704.entry.js → p-9fcdd9b4.entry.js} +1 -1
  355. package/dist/genesys-webcomponents/{p-DoCK5APt.js → p-B6h1eXrW.js} +1 -1
  356. package/dist/genesys-webcomponents/{p-c2344d58.entry.js → p-a359e4da.entry.js} +1 -1
  357. package/dist/genesys-webcomponents/{p-444573d8.entry.js → p-a4f41025.entry.js} +1 -1
  358. package/dist/genesys-webcomponents/{p-d54b5116.entry.js → p-a6f07953.entry.js} +1 -1
  359. package/dist/genesys-webcomponents/{p-983ce4c3.entry.js → p-a7d7cc18.entry.js} +1 -1
  360. package/dist/genesys-webcomponents/{p-ffe028eb.entry.js → p-a8a5f644.entry.js} +1 -1
  361. package/dist/genesys-webcomponents/{p-07e5b6e9.entry.js → p-ab56c5a3.entry.js} +1 -1
  362. package/dist/genesys-webcomponents/{p-941b1040.entry.js → p-af192665.entry.js} +1 -1
  363. package/dist/genesys-webcomponents/{p-fcc0564c.entry.js → p-b6971ca1.entry.js} +1 -1
  364. package/dist/genesys-webcomponents/{p-6d2b8301.entry.js → p-b7ebc161.entry.js} +1 -1
  365. package/dist/genesys-webcomponents/{p-1b4086ce.entry.js → p-ba57dfae.entry.js} +1 -1
  366. package/dist/genesys-webcomponents/{p-79852d37.entry.js → p-bd7bfefc.entry.js} +1 -1
  367. package/dist/genesys-webcomponents/{p-e8c7873d.entry.js → p-c26b24f9.entry.js} +1 -1
  368. package/dist/genesys-webcomponents/p-c366d66b.entry.js +1 -0
  369. package/dist/genesys-webcomponents/{p-5debd4e9.entry.js → p-c39c2e09.entry.js} +1 -1
  370. package/dist/genesys-webcomponents/{p-00dfd1ab.entry.js → p-c62c2e2c.entry.js} +1 -1
  371. package/dist/genesys-webcomponents/{p-5cbc47ac.entry.js → p-c70756c3.entry.js} +1 -1
  372. package/dist/genesys-webcomponents/{p-b6ea9a52.entry.js → p-c7add5b0.entry.js} +1 -1
  373. package/dist/genesys-webcomponents/{p-88401bc4.entry.js → p-c9cc9783.entry.js} +1 -1
  374. package/dist/genesys-webcomponents/{p-00b2a3ba.entry.js → p-cc37b3d5.entry.js} +1 -1
  375. package/dist/genesys-webcomponents/{p-8f58d51c.entry.js → p-d294c8ec.entry.js} +1 -1
  376. package/dist/genesys-webcomponents/{p-0ad56303.entry.js → p-d2beb3b2.entry.js} +1 -1
  377. package/dist/genesys-webcomponents/{p-77875b92.entry.js → p-d4373510.entry.js} +1 -1
  378. package/dist/genesys-webcomponents/{p-85cb1418.entry.js → p-d99db562.entry.js} +1 -1
  379. package/dist/genesys-webcomponents/{p-80684a11.entry.js → p-dfa33656.entry.js} +1 -1
  380. package/dist/genesys-webcomponents/p-e21d0219.entry.js +1 -0
  381. package/dist/genesys-webcomponents/{p-977f984c.entry.js → p-ea7e0c91.entry.js} +1 -1
  382. package/dist/genesys-webcomponents/{p-6fddc0f6.entry.js → p-eaf56162.entry.js} +1 -1
  383. package/dist/genesys-webcomponents/{p-a48b88f2.entry.js → p-ec1cb91d.entry.js} +1 -1
  384. package/dist/genesys-webcomponents/p-ef202b5f.entry.js +1 -0
  385. package/dist/genesys-webcomponents/{p-f3fa4beb.entry.js → p-f1c4d29d.entry.js} +1 -1
  386. package/dist/genesys-webcomponents/{p-8a3672d4.entry.js → p-f5d7a04e.entry.js} +1 -1
  387. package/dist/genesys-webcomponents/{p-fd7a2c16.entry.js → p-f8ef5895.entry.js} +1 -1
  388. package/dist/genesys-webcomponents/{p-8d9f0567.entry.js → p-f928754d.entry.js} +1 -1
  389. package/dist/genesys-webcomponents/{p-b4bb68f6.entry.js → p-f9adc076.entry.js} +1 -1
  390. package/dist/genesys-webcomponents/{p-4d3d0336.entry.js → p-fd39807a.entry.js} +1 -1
  391. package/dist/stencil-wrapper.js +1 -1
  392. package/dist/types/stencil-wrapper.d.ts +1 -1
  393. package/package.json +1 -1
  394. package/dist/genesys-webcomponents/p-04fdea31.entry.js +0 -1
  395. package/dist/genesys-webcomponents/p-12934524.entry.js +0 -1
  396. package/dist/genesys-webcomponents/p-1fe4acbf.entry.js +0 -1
  397. package/dist/genesys-webcomponents/p-24c86f19.entry.js +0 -1
  398. package/dist/genesys-webcomponents/p-36b84025.entry.js +0 -1
  399. package/dist/genesys-webcomponents/p-37ab9e8b.entry.js +0 -1
  400. package/dist/genesys-webcomponents/p-4ef946d8.entry.js +0 -1
  401. package/dist/genesys-webcomponents/p-5af34eb8.entry.js +0 -1
  402. package/dist/genesys-webcomponents/p-6334fb93.entry.js +0 -1
  403. package/dist/genesys-webcomponents/p-89ce9bb2.entry.js +0 -1
  404. package/dist/genesys-webcomponents/p-c7935611.entry.js +0 -1
  405. package/dist/genesys-webcomponents/p-d93fcf1a.entry.js +0 -1
  406. package/dist/genesys-webcomponents/p-e631ad3f.entry.js +0 -1
  407. package/dist/genesys-webcomponents/p-fa2eb679.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as e,h as o,a as r}from"./p-mm833MRp.js";import{c as t,o as i}from"./p-Cb3FOYGS.js";import{O as n}from"./p-1mmdDpx8.js";import{o as l}from"./p-De1NnCmO.js";import{p as a}from"./p-PYfNAK8p.js";import{h as s}from"./p-qzV3vtOw.js";import{G as u,a as f}from"./p-BkM3RdTO.js";import{G as d,a as p}from"./p-Bxg2lxW0.js";import{g as c,v as g,a as h}from"./p-DHLxhscH.js";import{t as m}from"./p-DoCK5APt.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";const x=class{constructor(o){e(this,o),this.indicatorMark="required",this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help")}handleKeyup(e){var o,r;switch(e.key){case"Tab":this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3));break;case"Shift":break;default:this.input.matches(":focus-visible")&&(null===(r=this.labelInfo)||void 0===r||r.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help"),m(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return o(p,{key:"ad5e3507b19363da0013dec594572db85875e92c",labelPosition:this.computedLabelPosition},o(d,{key:"fa6da12edc56db3ac2712630135c1e3760ab5760",required:this.required,position:this.computedLabelPosition},o("slot",{key:"ebdf3ac3cefeb5b917601564fbf1bd004b045f9e",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"227f23f679f9f263a909afb47114f27d85fa7455",variant:this.indicatorMark,required:this.required}),o("slot",{key:"e86b485705cfe0593ef907cf924efb083716f702",name:"label-info"})),o("div",{key:"744e7c8e61469efcaed3551339bcfeea5112aa9e",class:"gux-input-and-error-container"},o("div",{key:"3d29474352a8110976c82499b913a85868255cb6",class:{"gux-input":!0,"gux-input-error":this.hasError}},o("div",{key:"42d5c9b830926af6b5a9774b225d984fd44e16d6",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},o("slot",{key:"3e66617a006fc577dfa7d36b9ac11cd9d91775e6",name:"input",onSlotchange:()=>this.setInput()}))),o(u,{key:"237a375286d99b1cfb1c097672f36508f42d80ec",show:this.hasError},o("slot",{key:"a5f54be3d51be6cc967ca6af6671546183b44ce1",name:"error"})),o(f,{key:"a389ea72e7f7af73d0a8c614e584211a4b20c4b1",show:!this.hasError&&this.hasHelp},o("slot",{key:"f9a6298f22871598ca89d317fa76162b3a6eed5a",name:"help"}))))}get variant(){return this.labelPosition?this.labelPosition.toLowerCase():"none"}setInput(){this.input=c(this.root,'input[type="color"][slot="input"]'),a(this.input),this.disabled=t(this.input),this.required=this.input.required,this.disabledObserver=i(this.input,(e=>{this.disabled=e})),this.requiredObserver=l(this.input,(e=>{this.required=e})),g(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=h(this.label,this.labelPosition)}get root(){return r(this)}};(function(e,o,r,t){var i,n=arguments.length,l=n<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,o,r,t);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(l=(n<3?i(l):n>3?i(o,r,l):i(o,r))||l);n>3&&l&&Object.defineProperty(o,r,l)})([n({childList:!0,subtree:!0})],x.prototype,"onMutation",null),x.style=".gux-form-field-container{display:flex;flex-direction:column}.gux-form-field-container.gux-beside{flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(label){min-inline-size:0}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:0 1 auto;align-self:auto;order:0;inline-size:var(--gse-ui-colorPicker-input-swatchSizing);min-inline-size:var(--gse-ui-colorPicker-input-swatchSizing);block-size:var(--gse-ui-colorPicker-input-swatchSizing);padding:0;overflow:hidden;text-overflow:ellipsis;font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);text-align:end;outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;align-self:auto;order:0;inline-size:var(--gse-ui-formControl-input-colorPicker-size);block-size:var(--gse-ui-formControl-input-colorPicker-size);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container:hover{cursor:pointer;border-color:var(--gse-ui-formControl-input-hover-border-color)}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}";export{x as gux_form_field_color}
1
+ import{r as e,h as o,a as r}from"./p-mm833MRp.js";import{c as t,o as i}from"./p-Cb3FOYGS.js";import{O as n}from"./p-1mmdDpx8.js";import{o as l}from"./p-De1NnCmO.js";import{p as a}from"./p-PYfNAK8p.js";import{h as s}from"./p-qzV3vtOw.js";import{G as u,a as f}from"./p-BkM3RdTO.js";import{G as d,a as p}from"./p-Bxg2lxW0.js";import{g as c,v as g,a as h}from"./p-DHLxhscH.js";import{t as m}from"./p-B6h1eXrW.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";const x=class{constructor(o){e(this,o),this.indicatorMark="required",this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help")}handleKeyup(e){var o,r;switch(e.key){case"Tab":this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3));break;case"Shift":break;default:this.input.matches(":focus-visible")&&(null===(r=this.labelInfo)||void 0===r||r.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help"),m(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return o(p,{key:"ad5e3507b19363da0013dec594572db85875e92c",labelPosition:this.computedLabelPosition},o(d,{key:"fa6da12edc56db3ac2712630135c1e3760ab5760",required:this.required,position:this.computedLabelPosition},o("slot",{key:"ebdf3ac3cefeb5b917601564fbf1bd004b045f9e",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"227f23f679f9f263a909afb47114f27d85fa7455",variant:this.indicatorMark,required:this.required}),o("slot",{key:"e86b485705cfe0593ef907cf924efb083716f702",name:"label-info"})),o("div",{key:"744e7c8e61469efcaed3551339bcfeea5112aa9e",class:"gux-input-and-error-container"},o("div",{key:"3d29474352a8110976c82499b913a85868255cb6",class:{"gux-input":!0,"gux-input-error":this.hasError}},o("div",{key:"42d5c9b830926af6b5a9774b225d984fd44e16d6",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},o("slot",{key:"3e66617a006fc577dfa7d36b9ac11cd9d91775e6",name:"input",onSlotchange:()=>this.setInput()}))),o(u,{key:"237a375286d99b1cfb1c097672f36508f42d80ec",show:this.hasError},o("slot",{key:"a5f54be3d51be6cc967ca6af6671546183b44ce1",name:"error"})),o(f,{key:"a389ea72e7f7af73d0a8c614e584211a4b20c4b1",show:!this.hasError&&this.hasHelp},o("slot",{key:"f9a6298f22871598ca89d317fa76162b3a6eed5a",name:"help"}))))}get variant(){return this.labelPosition?this.labelPosition.toLowerCase():"none"}setInput(){this.input=c(this.root,'input[type="color"][slot="input"]'),a(this.input),this.disabled=t(this.input),this.required=this.input.required,this.disabledObserver=i(this.input,(e=>{this.disabled=e})),this.requiredObserver=l(this.input,(e=>{this.required=e})),g(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=h(this.label,this.labelPosition)}get root(){return r(this)}};(function(e,o,r,t){var i,n=arguments.length,l=n<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,o,r,t);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(l=(n<3?i(l):n>3?i(o,r,l):i(o,r))||l);n>3&&l&&Object.defineProperty(o,r,l)})([n({childList:!0,subtree:!0})],x.prototype,"onMutation",null),x.style=".gux-form-field-container{display:flex;flex-direction:column}.gux-form-field-container.gux-beside{flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(label){min-inline-size:0}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:0 1 auto;align-self:auto;order:0;inline-size:var(--gse-ui-colorPicker-input-swatchSizing);min-inline-size:var(--gse-ui-colorPicker-input-swatchSizing);block-size:var(--gse-ui-colorPicker-input-swatchSizing);padding:0;overflow:hidden;text-overflow:ellipsis;font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);text-align:end;outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;align-self:auto;order:0;inline-size:var(--gse-ui-formControl-input-colorPicker-size);block-size:var(--gse-ui-formControl-input-colorPicker-size);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container:hover{cursor:pointer;border-color:var(--gse-ui-formControl-input-hover-border-color)}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}";export{x as gux_form_field_color}
@@ -1 +1 @@
1
- import{e as t,r as a,h as s,a as i}from"./p-mm833MRp.js";import{t as l}from"./p-DoCK5APt.js";const n=new Map;async function r(a,s){const i=function(t,a){return`${a}-${t}`}(a,s);if(n.has(i))return n.get(i);const l=async function(a,s){const i=await fetch(t(function(t,a){return"background-shapes"===a?`./illustrations/${a}/${t.includes("narrow")?"narrow":"wide"}.svg`:`./illustrations/${a}/${t}.svg`}(a,s)));if(200===i.status)return i.text();throw new Error(`[gux-illustration] fetching failed for illustration "${a}" with status "${i.statusText} (${i.status})".`)}(a,s).then((t=>t)).catch((t=>(setTimeout((()=>{throw t}),0),r({variants:"add",status:"success","background-shapes":"solid-wide"}[s],s))));return n.set(i,l),l}const u=class{constructor(t){a(this,t),this.backgroundShape="solid-wide"}async prepVariant(t){t&&(this.variantSvgHtml=await r(t,"variants"),this.variantHtml=this.variantSvgHtml)}async prepStatus(t){t&&(this.statusSvgHtml=await r(t,"status"),this.statusHtml=this.statusSvgHtml)}async prepBackgroundShape(t){t&&(this.backgroundShapeSvgHtml=await r(t,"background-shapes"),this.backgroundShapeHtml=this.backgroundShapeSvgHtml)}async componentWillLoad(){l(this.root,{variant:this.variant}),await Promise.all([this.prepVariant(this.variant),this.prepStatus(this.status),this.prepBackgroundShape(this.backgroundShape)])}render(){return s("div",{key:"cfaa332255722b58769c0408127059846ba915b2",class:"gux-illustration"},this.backgroundShapeHtml&&s("div",{key:"f87994eda35ec34fc440bff789229fadddfd194d",class:{"gux-background-shape":!0,[`gux-background-shape-${this.backgroundShape}`]:!0},innerHTML:this.backgroundShapeHtml}),this.variantHtml&&s("div",{key:"a79320612864946568e9781ca388ed12f5d06ce4",class:"gux-illustration-variant",innerHTML:this.variantHtml}),this.statusHtml&&s("div",{key:"cac2fa1133509442928112b71a9620647b406d3b",class:{"gux-illustration-status":!0,[`gux-illustration-status-${this.status}`]:!0},innerHTML:this.statusHtml}))}static get assetsDirs(){return["illustrations"]}get root(){return i(this)}static get watchers(){return{variant:["prepVariant"],status:["prepStatus"],backgroundShape:["prepBackgroundShape"]}}};u.style='.gux-illustration{position:relative;display:grid;place-items:center;inline-size:var(--gse-ui-blankState-mainIllustration-width);block-size:var(--gse-ui-blankState-mainIllustration-height)}.gux-background-shape{grid-area:1/1;inline-size:var(--gse-ui-blankState-mainIllustration-background-width);block-size:var(--gse-ui-blankState-mainIllustration-background-height)}.gux-background-shape.gux-background-shape-solid-wide,.gux-background-shape.gux-background-shape-solid-narrow,.gux-background-shape svg{fill:var(--gse-ui-blankState-mainIllustration-background-solidColor)}.gux-background-shape.gux-background-shape-gradient-wide svg,.gux-background-shape.gux-background-shape-gradient-narrow svg{fill:url("#gux-background-gradient");--gradient-start:#ffffff0d;--gradient-end:#bfc6d933}.gux-illustration-variant{display:flex;grid-area:1/1;place-items:center}.gux-illustration-variant svg{inline-size:var(--gse-ui-blankState-mainIllustration-illustration-height);block-size:var(--gse-ui-blankState-mainIllustration-illustration-height);fill:var(--gse-ui-blankState-mainIllustration-illustrationColor)}.gux-illustration-status{position:absolute;inset-block-start:var(--gse-ui-blankState-mainIllustration-smallIcon-position-left);inset-inline-start:var(--gse-ui-blankState-mainIllustration-smallIcon-position-top)}.gux-illustration-status svg{inline-size:var(--gse-ui-icon-large-size);block-size:var(--gse-ui-icon-large-size)}.gux-illustration-status.gux-illustration-status-success svg path:first-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-successBaseColor)}.gux-illustration-status.gux-illustration-status-success svg path:last-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-successSymbolColor)}.gux-illustration-status.gux-illustration-status-error svg path:first-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-errorBaseColor)}.gux-illustration-status.gux-illustration-status-error svg path:last-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-errorSymbolColor)}.gux-illustration-status.gux-illustration-status-info svg path:first-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-infoBaseColor)}.gux-illustration-status.gux-illustration-status-info svg path:last-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-infoSymbolColor)}.gux-illustration-status.gux-illustration-status-add svg path:first-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-operationBaseColor)}.gux-illustration-status.gux-illustration-status-add svg path:last-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-operationSymbolColor)}.gux-illustration-status.gux-illustration-status-warning svg path:first-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-warningBaseColor)}.gux-illustration-status.gux-illustration-status-warning svg path:last-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-warningSymbolColor)}';export{u as gux_illustration_beta}
1
+ import{e as t,r as a,h as s,a as i}from"./p-mm833MRp.js";import{t as l}from"./p-B6h1eXrW.js";const n=new Map;async function r(a,s){const i=function(t,a){return`${a}-${t}`}(a,s);if(n.has(i))return n.get(i);const l=async function(a,s){const i=await fetch(t(function(t,a){return"background-shapes"===a?`./illustrations/${a}/${t.includes("narrow")?"narrow":"wide"}.svg`:`./illustrations/${a}/${t}.svg`}(a,s)));if(200===i.status)return i.text();throw new Error(`[gux-illustration] fetching failed for illustration "${a}" with status "${i.statusText} (${i.status})".`)}(a,s).then((t=>t)).catch((t=>(setTimeout((()=>{throw t}),0),r({variants:"add",status:"success","background-shapes":"solid-wide"}[s],s))));return n.set(i,l),l}const u=class{constructor(t){a(this,t),this.backgroundShape="solid-wide"}async prepVariant(t){t&&(this.variantSvgHtml=await r(t,"variants"),this.variantHtml=this.variantSvgHtml)}async prepStatus(t){t&&(this.statusSvgHtml=await r(t,"status"),this.statusHtml=this.statusSvgHtml)}async prepBackgroundShape(t){t&&(this.backgroundShapeSvgHtml=await r(t,"background-shapes"),this.backgroundShapeHtml=this.backgroundShapeSvgHtml)}async componentWillLoad(){l(this.root,{variant:this.variant}),await Promise.all([this.prepVariant(this.variant),this.prepStatus(this.status),this.prepBackgroundShape(this.backgroundShape)])}render(){return s("div",{key:"cfaa332255722b58769c0408127059846ba915b2",class:"gux-illustration"},this.backgroundShapeHtml&&s("div",{key:"f87994eda35ec34fc440bff789229fadddfd194d",class:{"gux-background-shape":!0,[`gux-background-shape-${this.backgroundShape}`]:!0},innerHTML:this.backgroundShapeHtml}),this.variantHtml&&s("div",{key:"a79320612864946568e9781ca388ed12f5d06ce4",class:"gux-illustration-variant",innerHTML:this.variantHtml}),this.statusHtml&&s("div",{key:"cac2fa1133509442928112b71a9620647b406d3b",class:{"gux-illustration-status":!0,[`gux-illustration-status-${this.status}`]:!0},innerHTML:this.statusHtml}))}static get assetsDirs(){return["illustrations"]}get root(){return i(this)}static get watchers(){return{variant:["prepVariant"],status:["prepStatus"],backgroundShape:["prepBackgroundShape"]}}};u.style='.gux-illustration{position:relative;display:grid;place-items:center;inline-size:var(--gse-ui-blankState-mainIllustration-width);block-size:var(--gse-ui-blankState-mainIllustration-height)}.gux-background-shape{grid-area:1/1;inline-size:var(--gse-ui-blankState-mainIllustration-background-width);block-size:var(--gse-ui-blankState-mainIllustration-background-height)}.gux-background-shape.gux-background-shape-solid-wide,.gux-background-shape.gux-background-shape-solid-narrow,.gux-background-shape svg{fill:var(--gse-ui-blankState-mainIllustration-background-solidColor)}.gux-background-shape.gux-background-shape-gradient-wide svg,.gux-background-shape.gux-background-shape-gradient-narrow svg{fill:url("#gux-background-gradient");--gradient-start:#ffffff0d;--gradient-end:#bfc6d933}.gux-illustration-variant{display:flex;grid-area:1/1;place-items:center}.gux-illustration-variant svg{inline-size:var(--gse-ui-blankState-mainIllustration-illustration-height);block-size:var(--gse-ui-blankState-mainIllustration-illustration-height);fill:var(--gse-ui-blankState-mainIllustration-illustrationColor)}.gux-illustration-status{position:absolute;inset-block-start:var(--gse-ui-blankState-mainIllustration-smallIcon-position-left);inset-inline-start:var(--gse-ui-blankState-mainIllustration-smallIcon-position-top)}.gux-illustration-status svg{inline-size:var(--gse-ui-icon-large-size);block-size:var(--gse-ui-icon-large-size)}.gux-illustration-status.gux-illustration-status-success svg path:first-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-successBaseColor)}.gux-illustration-status.gux-illustration-status-success svg path:last-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-successSymbolColor)}.gux-illustration-status.gux-illustration-status-error svg path:first-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-errorBaseColor)}.gux-illustration-status.gux-illustration-status-error svg path:last-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-errorSymbolColor)}.gux-illustration-status.gux-illustration-status-info svg path:first-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-infoBaseColor)}.gux-illustration-status.gux-illustration-status-info svg path:last-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-infoSymbolColor)}.gux-illustration-status.gux-illustration-status-add svg path:first-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-operationBaseColor)}.gux-illustration-status.gux-illustration-status-add svg path:last-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-operationSymbolColor)}.gux-illustration-status.gux-illustration-status-warning svg path:first-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-warningBaseColor)}.gux-illustration-status.gux-illustration-status-warning svg path:last-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-warningSymbolColor)}';export{u as gux_illustration_beta}
@@ -1 +1 @@
1
- import{r as t,h as r,a as i}from"./p-mm833MRp.js";import{t as o}from"./p-DoCK5APt.js";import{b as e}from"./p-D_8CR3cJ.js";import{t as a}from"./p-DN3YAdAX.js";import{g as s}from"./p-Cd4R0amv.js";const u=class{constructor(r){t(this,r),this.disabled=!1,this.highlight="orange"}onMouseUp(){this.focusParentList()}onMouseOver(){this.focusParentList()}focusParentList(){const t=s("gux-rich-text-editor-list",this.root);t&&null===t.shadowRoot.activeElement&&(this.root.blur(),t.focus({preventScroll:!0}))}async componentWillLoad(){o(this.root,{variant:this.highlight}),this.i18n=await e(this.root,a)}renderTooltip(){if(!this.disabled&&"inherit"!==this.highlight)return r("gux-tooltip-beta",null,r("div",{slot:"content"},this.i18n(`${this.highlight}`)))}render(){return r("div",{key:"c972a9696643f56cf036f8ac024dfdd90b9fd723",class:{"gux-highlight":!0,[`gux-${this.highlight}`]:!0},role:"listitem"},r("button",{key:"f32018a039459c3eb376442cdfe3e1e9baab0272",type:"button","aria-label":this.i18n(`${this.highlight}`),tabIndex:-1,disabled:this.disabled}),this.renderTooltip())}static get delegatesFocus(){return!0}get root(){return i(this)}};u.style=":host{display:block;border-radius:var(--gse-ui-button-borderRadius)}.gux-highlight{inline-size:var(--gse-ui-rte-colorSwatch-width);block-size:var(--gse-ui-rte-colorSwatch-height);border-radius:var(--gse-ui-button-borderRadius)}.gux-highlight button{all:unset;inline-size:100%;block-size:100%;cursor:pointer}.gux-highlight button:focus-visible{outline:var(--gse-semantic-focusOutline-sm-borderWidth) solid var(--gse-semantic-border-focus);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}.gux-highlight.gux-orange{background-color:var(--gse-ui-rte-colorSwatch-orange-default)}.gux-highlight.gux-coral{background-color:var(--gse-ui-rte-colorSwatch-coral-default)}.gux-highlight.gux-pear{background-color:var(--gse-ui-rte-colorSwatch-pear-default)}.gux-highlight.gux-raspberry{background-color:var(--gse-ui-rte-colorSwatch-raspberry-default)}.gux-highlight.gux-mango{background-color:var(--gse-ui-rte-colorSwatch-mango-default)}.gux-highlight.gux-blue{background-color:var(--gse-ui-rte-colorSwatch-azure-default)}.gux-highlight.gux-mineral{background-color:var(--gse-ui-rte-colorSwatch-mineral-default)}.gux-highlight.gux-island{background-color:var(--gse-ui-rte-colorSwatch-island-default)}.gux-highlight.gux-inherit{color:inherit;background-color:inherit}";export{u as gux_rich_highlight_list_item}
1
+ import{r as t,h as r,a as i}from"./p-mm833MRp.js";import{t as o}from"./p-B6h1eXrW.js";import{b as e}from"./p-D_8CR3cJ.js";import{t as a}from"./p-DN3YAdAX.js";import{g as s}from"./p-Cd4R0amv.js";const u=class{constructor(r){t(this,r),this.disabled=!1,this.highlight="orange"}onMouseUp(){this.focusParentList()}onMouseOver(){this.focusParentList()}focusParentList(){const t=s("gux-rich-text-editor-list",this.root);t&&null===t.shadowRoot.activeElement&&(this.root.blur(),t.focus({preventScroll:!0}))}async componentWillLoad(){o(this.root,{variant:this.highlight}),this.i18n=await e(this.root,a)}renderTooltip(){if(!this.disabled&&"inherit"!==this.highlight)return r("gux-tooltip-beta",null,r("div",{slot:"content"},this.i18n(`${this.highlight}`)))}render(){return r("div",{key:"c972a9696643f56cf036f8ac024dfdd90b9fd723",class:{"gux-highlight":!0,[`gux-${this.highlight}`]:!0},role:"listitem"},r("button",{key:"f32018a039459c3eb376442cdfe3e1e9baab0272",type:"button","aria-label":this.i18n(`${this.highlight}`),tabIndex:-1,disabled:this.disabled}),this.renderTooltip())}static get delegatesFocus(){return!0}get root(){return i(this)}};u.style=":host{display:block;border-radius:var(--gse-ui-button-borderRadius)}.gux-highlight{inline-size:var(--gse-ui-rte-colorSwatch-width);block-size:var(--gse-ui-rte-colorSwatch-height);border-radius:var(--gse-ui-button-borderRadius)}.gux-highlight button{all:unset;inline-size:100%;block-size:100%;cursor:pointer}.gux-highlight button:focus-visible{outline:var(--gse-semantic-focusOutline-sm-borderWidth) solid var(--gse-semantic-border-focus);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}.gux-highlight.gux-orange{background-color:var(--gse-ui-rte-colorSwatch-orange-default)}.gux-highlight.gux-coral{background-color:var(--gse-ui-rte-colorSwatch-coral-default)}.gux-highlight.gux-pear{background-color:var(--gse-ui-rte-colorSwatch-pear-default)}.gux-highlight.gux-raspberry{background-color:var(--gse-ui-rte-colorSwatch-raspberry-default)}.gux-highlight.gux-mango{background-color:var(--gse-ui-rte-colorSwatch-mango-default)}.gux-highlight.gux-blue{background-color:var(--gse-ui-rte-colorSwatch-azure-default)}.gux-highlight.gux-mineral{background-color:var(--gse-ui-rte-colorSwatch-mineral-default)}.gux-highlight.gux-island{background-color:var(--gse-ui-rte-colorSwatch-island-default)}.gux-highlight.gux-inherit{color:inherit;background-color:inherit}";export{u as gux_rich_highlight_list_item}
@@ -1 +1 @@
1
- import{r as o,c as t,h as a,a as e}from"./p-mm833MRp.js";import{b as g}from"./p-D_8CR3cJ.js";import{t as r}from"./p-DoCK5APt.js";import{O as u}from"./p-1mmdDpx8.js";import"./p-Cd4R0amv.js";var c={tag:"tag with label: {label}","tag-disabled":"disabled tag with label: {label}","remove-tag":"Remove tag with label: {label}"};const l=class{constructor(a){o(this,a),this.guxdelete=t(this,"guxdelete",7),this.accent="default",this.disabled=!1,this.removable=!1,this.size="small",this.emphasis="bold"}onKeyDown(o){switch(o.key){case"Backspace":case"Delete":this.removeTag()}}removeTag(){!this.disabled&&this.removable&&this.guxdelete.emit()}onMutation(){const o=this.root.textContent.trim();this.label!==o&&(this.label=o)}onSlotChange(o){const t=o.composedPath()[0].assignedNodes();this.label=t.map((o=>o.textContent.trim())).join("")}renderTagTitle(){return a("gux-tooltip-title",null,a("span",null,a("slot",{"aria-hidden":"true",onSlotchange:this.onSlotChange.bind(this)})))}renderSrText(){return a("gux-screen-reader-beta",null,this.i18n(this.disabled?"tag-disabled":"tag",{label:this.label}))}renderRemoveButton(){if(this.removable)return a("button",{class:"gux-tag-remove-button",onClick:this.removeTag.bind(this),type:"button",disabled:this.disabled},a("gux-icon",{class:"gux-tag-remove-icon","icon-name":"fa/xmark-large-regular",decorative:!0}),a("gux-screen-reader-beta",null,this.i18n("remove-tag",{label:this.label})))}componentWillLoad(){r(this.root,{variant:this.removable?"removable":"permenant"})}async componentWillRender(){this.i18n=await g(this.root,c)}render(){return a("div",{key:"66403472d44e9aa714671647a017af4d9578e80f",class:{"gux-tag":!0,[`gux-accent-${this.accent}`]:!0,"gux-disabled":this.disabled,[`gux-size-${this.size}`]:!0,[`gux-emphasis-${this.emphasis}`]:!0},"aria-disabled":this.disabled.toString()},this.renderTagTitle(),this.renderSrText(),this.renderRemoveButton())}get root(){return e(this)}};(function(o,t,a,e){var g,r=arguments.length,u=r<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(o,t,a,e);else for(var c=o.length-1;c>=0;c--)(g=o[c])&&(u=(r<3?g(u):r>3?g(t,a,u):g(t,a))||u);r>3&&u&&Object.defineProperty(t,a,u)})([u({childList:!0,subtree:!0,characterData:!0})],l.prototype,"onMutation",null),l.style=":host{display:inline-block;border-radius:var(--gse-ui-tag-borderRadius)}.gux-tag{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-tag-removable-gap);place-content:stretch flex-start;align-items:center;block-size:var(--gse-ui-tag-small-height);padding:var(--gse-ui-tag-padding);font-family:var(--gse-ui-tag-textSmall-fontFamily);font-size:var(--gse-ui-tag-textSmall-fontSize);font-weight:var(--gse-ui-tag-textSmall-fontWeight);line-height:var(--gse-ui-tag-textSmall-lineHeight);color:var(--gse-ui-tag-default-bold-foregroundColor);background-color:var(--gse-ui-tag-default-bold-backgroundColor);border-radius:var(--gse-ui-tag-borderRadius)}.gux-tag.gux-size-large{block-size:var(--gse-ui-tag-large-height);font-family:var(--gse-ui-tag-textLarge-fontFamily);font-size:var(--gse-ui-tag-textLarge-fontSize);font-weight:var(--gse-ui-tag-textLarge-fontWeight);line-height:var(--gse-ui-tag-textLarge-lineHeight)}.gux-tag.gux-size-large .gux-tag-remove-button:focus-within .gux-tag-remove-icon{outline-offset:10px}.gux-tag.gux-disabled{position:relative;user-select:none;opacity:var(--gse-ui-tag-disabled-opacity)}.gux-tag gux-tooltip-title{white-space:nowrap;cursor:default}.gux-tag gux-tooltip-title ::slotted(gux-icon){font-size:var(--gse-ui-tag-button-size)}.gux-tag .gux-tag-remove-button{all:unset;display:flex;place-content:center center;align-items:center}.gux-tag .gux-tag-remove-button:not(:disabled):hover{cursor:pointer}.gux-tag .gux-tag-remove-button .gux-tag-remove-icon{inline-size:var(--gse-ui-tag-button-size);block-size:var(--gse-ui-tag-button-size);margin-inline-end:-4px}.gux-tag .gux-tag-remove-button:focus-within .gux-tag-remove-icon{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-ui-color-focus);outline-offset:5px;border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}.gux-tag.gux-accent-default{color:var(--gse-ui-tag-default-bold-foregroundColor);background-color:var(--gse-ui-tag-default-bold-backgroundColor)}.gux-tag.gux-accent-default.gux-emphasis-subtle{color:var(--gse-ui-tag-default-subtle-foregroundColor);background-color:var(--gse-ui-tag-default-subtle-backgroundColor)}.gux-tag.gux-accent-1{color:var(--gse-ui-tag-accent1-bold-foregroundColor);background-color:var(--gse-ui-tag-accent1-bold-backgroundColor)}.gux-tag.gux-accent-1.gux-emphasis-subtle{color:var(--gse-ui-tag-accent1-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent1-subtle-backgroundColor)}.gux-tag.gux-accent-2{color:var(--gse-ui-tag-accent2-bold-foregroundColor);background-color:var(--gse-ui-tag-accent2-bold-backgroundColor)}.gux-tag.gux-accent-2.gux-emphasis-subtle{color:var(--gse-ui-tag-accent2-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent2-subtle-backgroundColor)}.gux-tag.gux-accent-3{color:var(--gse-ui-tag-accent3-bold-foregroundColor);background-color:var(--gse-ui-tag-accent3-bold-backgroundColor)}.gux-tag.gux-accent-3.gux-emphasis-subtle{color:var(--gse-ui-tag-accent3-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent3-subtle-backgroundColor)}.gux-tag.gux-accent-4{color:var(--gse-ui-tag-accent4-bold-foregroundColor);background-color:var(--gse-ui-tag-accent4-bold-backgroundColor)}.gux-tag.gux-accent-4.gux-emphasis-subtle{color:var(--gse-ui-tag-accent4-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent4-subtle-backgroundColor)}.gux-tag.gux-accent-5{color:var(--gse-ui-tag-accent5-bold-foregroundColor);background-color:var(--gse-ui-tag-accent5-bold-backgroundColor)}.gux-tag.gux-accent-5.gux-emphasis-subtle{color:var(--gse-ui-tag-accent5-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent5-subtle-backgroundColor)}.gux-tag.gux-accent-6{color:var(--gse-ui-tag-accent6-bold-foregroundColor);background-color:var(--gse-ui-tag-accent6-bold-backgroundColor)}.gux-tag.gux-accent-6.gux-emphasis-subtle{color:var(--gse-ui-tag-accent6-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent6-subtle-backgroundColor)}.gux-tag.gux-accent-7{color:var(--gse-ui-tag-accent7-bold-foregroundColor);background-color:var(--gse-ui-tag-accent7-bold-backgroundColor)}.gux-tag.gux-accent-7.gux-emphasis-subtle{color:var(--gse-ui-tag-accent7-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent7-subtle-backgroundColor)}.gux-tag.gux-accent-8{color:var(--gse-ui-tag-accent8-bold-foregroundColor);background-color:var(--gse-ui-tag-accent8-bold-backgroundColor)}.gux-tag.gux-accent-8.gux-emphasis-subtle{color:var(--gse-ui-tag-accent8-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent8-subtle-backgroundColor)}.gux-tag.gux-accent-9{color:var(--gse-ui-tag-accent9-bold-foregroundColor);background-color:var(--gse-ui-tag-accent9-bold-backgroundColor)}.gux-tag.gux-accent-9.gux-emphasis-subtle{color:var(--gse-ui-tag-accent9-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent9-subtle-backgroundColor)}.gux-tag.gux-accent-10{color:var(--gse-ui-tag-accent10-bold-foregroundColor);background-color:var(--gse-ui-tag-accent10-bold-backgroundColor)}.gux-tag.gux-accent-10.gux-emphasis-subtle{color:var(--gse-ui-tag-accent10-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent10-subtle-backgroundColor)}.gux-tag.gux-accent-inherit{color:inherit;background-color:inherit}";export{l as gux_tag}
1
+ import{r as o,c as t,h as a,a as e}from"./p-mm833MRp.js";import{b as g}from"./p-D_8CR3cJ.js";import{t as r}from"./p-B6h1eXrW.js";import{O as u}from"./p-1mmdDpx8.js";import"./p-Cd4R0amv.js";var c={tag:"tag with label: {label}","tag-disabled":"disabled tag with label: {label}","remove-tag":"Remove tag with label: {label}"};const l=class{constructor(a){o(this,a),this.guxdelete=t(this,"guxdelete",7),this.accent="default",this.disabled=!1,this.removable=!1,this.size="small",this.emphasis="bold"}onKeyDown(o){switch(o.key){case"Backspace":case"Delete":this.removeTag()}}removeTag(){!this.disabled&&this.removable&&this.guxdelete.emit()}onMutation(){const o=this.root.textContent.trim();this.label!==o&&(this.label=o)}onSlotChange(o){const t=o.composedPath()[0].assignedNodes();this.label=t.map((o=>o.textContent.trim())).join("")}renderTagTitle(){return a("gux-tooltip-title",null,a("span",null,a("slot",{"aria-hidden":"true",onSlotchange:this.onSlotChange.bind(this)})))}renderSrText(){return a("gux-screen-reader-beta",null,this.i18n(this.disabled?"tag-disabled":"tag",{label:this.label}))}renderRemoveButton(){if(this.removable)return a("button",{class:"gux-tag-remove-button",onClick:this.removeTag.bind(this),type:"button",disabled:this.disabled},a("gux-icon",{class:"gux-tag-remove-icon","icon-name":"fa/xmark-large-regular",decorative:!0}),a("gux-screen-reader-beta",null,this.i18n("remove-tag",{label:this.label})))}componentWillLoad(){r(this.root,{variant:this.removable?"removable":"permenant"})}async componentWillRender(){this.i18n=await g(this.root,c)}render(){return a("div",{key:"66403472d44e9aa714671647a017af4d9578e80f",class:{"gux-tag":!0,[`gux-accent-${this.accent}`]:!0,"gux-disabled":this.disabled,[`gux-size-${this.size}`]:!0,[`gux-emphasis-${this.emphasis}`]:!0},"aria-disabled":this.disabled.toString()},this.renderTagTitle(),this.renderSrText(),this.renderRemoveButton())}get root(){return e(this)}};(function(o,t,a,e){var g,r=arguments.length,u=r<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(o,t,a,e);else for(var c=o.length-1;c>=0;c--)(g=o[c])&&(u=(r<3?g(u):r>3?g(t,a,u):g(t,a))||u);r>3&&u&&Object.defineProperty(t,a,u)})([u({childList:!0,subtree:!0,characterData:!0})],l.prototype,"onMutation",null),l.style=":host{display:inline-block;border-radius:var(--gse-ui-tag-borderRadius)}.gux-tag{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-tag-removable-gap);place-content:stretch flex-start;align-items:center;block-size:var(--gse-ui-tag-small-height);padding:var(--gse-ui-tag-padding);font-family:var(--gse-ui-tag-textSmall-fontFamily);font-size:var(--gse-ui-tag-textSmall-fontSize);font-weight:var(--gse-ui-tag-textSmall-fontWeight);line-height:var(--gse-ui-tag-textSmall-lineHeight);color:var(--gse-ui-tag-default-bold-foregroundColor);background-color:var(--gse-ui-tag-default-bold-backgroundColor);border-radius:var(--gse-ui-tag-borderRadius)}.gux-tag.gux-size-large{block-size:var(--gse-ui-tag-large-height);font-family:var(--gse-ui-tag-textLarge-fontFamily);font-size:var(--gse-ui-tag-textLarge-fontSize);font-weight:var(--gse-ui-tag-textLarge-fontWeight);line-height:var(--gse-ui-tag-textLarge-lineHeight)}.gux-tag.gux-size-large .gux-tag-remove-button:focus-within .gux-tag-remove-icon{outline-offset:10px}.gux-tag.gux-disabled{position:relative;user-select:none;opacity:var(--gse-ui-tag-disabled-opacity)}.gux-tag gux-tooltip-title{white-space:nowrap;cursor:default}.gux-tag gux-tooltip-title ::slotted(gux-icon){font-size:var(--gse-ui-tag-button-size)}.gux-tag .gux-tag-remove-button{all:unset;display:flex;place-content:center center;align-items:center}.gux-tag .gux-tag-remove-button:not(:disabled):hover{cursor:pointer}.gux-tag .gux-tag-remove-button .gux-tag-remove-icon{inline-size:var(--gse-ui-tag-button-size);block-size:var(--gse-ui-tag-button-size);margin-inline-end:-4px}.gux-tag .gux-tag-remove-button:focus-within .gux-tag-remove-icon{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-ui-color-focus);outline-offset:5px;border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}.gux-tag.gux-accent-default{color:var(--gse-ui-tag-default-bold-foregroundColor);background-color:var(--gse-ui-tag-default-bold-backgroundColor)}.gux-tag.gux-accent-default.gux-emphasis-subtle{color:var(--gse-ui-tag-default-subtle-foregroundColor);background-color:var(--gse-ui-tag-default-subtle-backgroundColor)}.gux-tag.gux-accent-1{color:var(--gse-ui-tag-accent1-bold-foregroundColor);background-color:var(--gse-ui-tag-accent1-bold-backgroundColor)}.gux-tag.gux-accent-1.gux-emphasis-subtle{color:var(--gse-ui-tag-accent1-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent1-subtle-backgroundColor)}.gux-tag.gux-accent-2{color:var(--gse-ui-tag-accent2-bold-foregroundColor);background-color:var(--gse-ui-tag-accent2-bold-backgroundColor)}.gux-tag.gux-accent-2.gux-emphasis-subtle{color:var(--gse-ui-tag-accent2-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent2-subtle-backgroundColor)}.gux-tag.gux-accent-3{color:var(--gse-ui-tag-accent3-bold-foregroundColor);background-color:var(--gse-ui-tag-accent3-bold-backgroundColor)}.gux-tag.gux-accent-3.gux-emphasis-subtle{color:var(--gse-ui-tag-accent3-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent3-subtle-backgroundColor)}.gux-tag.gux-accent-4{color:var(--gse-ui-tag-accent4-bold-foregroundColor);background-color:var(--gse-ui-tag-accent4-bold-backgroundColor)}.gux-tag.gux-accent-4.gux-emphasis-subtle{color:var(--gse-ui-tag-accent4-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent4-subtle-backgroundColor)}.gux-tag.gux-accent-5{color:var(--gse-ui-tag-accent5-bold-foregroundColor);background-color:var(--gse-ui-tag-accent5-bold-backgroundColor)}.gux-tag.gux-accent-5.gux-emphasis-subtle{color:var(--gse-ui-tag-accent5-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent5-subtle-backgroundColor)}.gux-tag.gux-accent-6{color:var(--gse-ui-tag-accent6-bold-foregroundColor);background-color:var(--gse-ui-tag-accent6-bold-backgroundColor)}.gux-tag.gux-accent-6.gux-emphasis-subtle{color:var(--gse-ui-tag-accent6-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent6-subtle-backgroundColor)}.gux-tag.gux-accent-7{color:var(--gse-ui-tag-accent7-bold-foregroundColor);background-color:var(--gse-ui-tag-accent7-bold-backgroundColor)}.gux-tag.gux-accent-7.gux-emphasis-subtle{color:var(--gse-ui-tag-accent7-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent7-subtle-backgroundColor)}.gux-tag.gux-accent-8{color:var(--gse-ui-tag-accent8-bold-foregroundColor);background-color:var(--gse-ui-tag-accent8-bold-backgroundColor)}.gux-tag.gux-accent-8.gux-emphasis-subtle{color:var(--gse-ui-tag-accent8-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent8-subtle-backgroundColor)}.gux-tag.gux-accent-9{color:var(--gse-ui-tag-accent9-bold-foregroundColor);background-color:var(--gse-ui-tag-accent9-bold-backgroundColor)}.gux-tag.gux-accent-9.gux-emphasis-subtle{color:var(--gse-ui-tag-accent9-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent9-subtle-backgroundColor)}.gux-tag.gux-accent-10{color:var(--gse-ui-tag-accent10-bold-foregroundColor);background-color:var(--gse-ui-tag-accent10-bold-backgroundColor)}.gux-tag.gux-accent-10.gux-emphasis-subtle{color:var(--gse-ui-tag-accent10-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent10-subtle-backgroundColor)}.gux-tag.gux-accent-inherit{color:inherit;background-color:inherit}";export{l as gux_tag}
@@ -1 +1 @@
1
- import{r as a,h as i,H as t,a as e}from"./p-mm833MRp.js";import{t as r}from"./p-DoCK5APt.js";import{l as o}from"./p-DxtJDeL9.js";import{g as n}from"./p-vciQk5kR.js";import{g as s,a as c}from"./p-BV03_Ljp.js";import"./p-Cd4R0amv.js";const u=class{constructor(i){a(this,i),this.accent="auto"}async componentWillLoad(){r(this.root)}componentDidLoad(){this.validatingInputs()}async hideTooltip(){return await this.tooltip.hideTooltip()}onKeydown(a){n(a,this.root)}isLastItemInGroup(){const a=Array.from(this.root.parentElement.children);return a.findIndex((a=>a===this.root))===a.length-1}validatingInputs(){const a=this.root.querySelector("img");this.name||o(this.root,"Name prop is required for accessibility"),a&&!a.getAttribute("alt")&&o(this.root,"Alt attribute is required for slotted image.")}render(){return i(t,{key:"5ce1682a7e8d089ba342cef16c95f516026e1b3c",role:"menuitem"},i("button",{key:"7b1a5d261fae1cb7b8b184506747581816d9294b",type:"button","aria-label":this.name,tabIndex:-1,class:{"gux-avatar":!0,[s(this.accent,this.name)]:!0,"gux-last-item":this.isLastItemInGroup()}},i("slot",{key:"a94180e9025e61f8451712c4a3414f9a3f9b52ec",name:"image"},i("span",{key:"64c5cf8e8c808fca7641c516959bb4c82d03878c",class:"gux-avatar-initials","aria-hidden":"true"},c(this.name))),i("gux-tooltip-beta",{key:"9e00b028d10e6cb7164b7fbf1e1b7c3a89550bb7","aria-hidden":"true","visual-only":!0,placement:"top",ref:a=>this.tooltip=a},i("div",{key:"9775ff9e94b96dc311a704edf5df449f71a8b511",slot:"content"},this.name))))}static get delegatesFocus(){return!0}get root(){return e(this)}};u.style="::slotted(img){inline-size:100%;block-size:100%;object-fit:cover}button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-small-content-size);block-size:var(--gse-ui-avatar-small-content-size);padding:0;margin:0;margin-inline-end:var(--gse-ui-avatar-groupSet-gap);overflow:hidden;color:var(--gse-ui-avatar-media-initialsForeground-inverse);cursor:pointer;background:none;background-color:var(--gse-ui-avatar-media-initialsBackground-default);border:none;border-radius:50%;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 26 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 13c0-2.6.7-5 1.8-7.2C21.5 2.3 17.5 0 13 0 5.8 0 0 5.8 0 13s5.8 13 13 13c4.5 0 8.5-2.3 10.8-5.8C22.7 18 22 15.6 22 13z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 26 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 13c0-2.6.7-5 1.8-7.2C21.5 2.3 17.5 0 13 0 5.8 0 0 5.8 0 13s5.8 13 13 13c4.5 0 8.5-2.3 10.8-5.8C22.7 18 22 15.6 22 13z' /%3E%3C/svg%3E\")}button:focus-visible,button:hover{position:relative;z-index:var(--gse-semantic-zIndex-showFocus);mask:none}button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}button.gux-last-item{mask:none}button .gux-avatar-initials{font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight);line-height:var(--gse-ui-avatar-small-initials-lineHeight);text-transform:uppercase}button.gux-accent-1{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent1)}button.gux-accent-2{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent2)}button.gux-accent-3{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent3)}button.gux-accent-4{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent4)}button.gux-accent-5{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent5)}button.gux-accent-6{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent6)}button.gux-accent-7{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent7)}button.gux-accent-8{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent8)}button.gux-accent-9{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent9)}button.gux-accent-10{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent10)}button.gux-accent-11{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent11)}button.gux-accent-12{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent12)}button.gux-accent-inherit{color:inherit;background-color:inherit}";export{u as gux_avatar_group_item_beta}
1
+ import{r as a,h as i,H as t,a as e}from"./p-mm833MRp.js";import{t as r}from"./p-B6h1eXrW.js";import{l as o}from"./p-DxtJDeL9.js";import{g as n}from"./p-vciQk5kR.js";import{g as s,a as c}from"./p-BV03_Ljp.js";import"./p-Cd4R0amv.js";const u=class{constructor(i){a(this,i),this.accent="auto"}async componentWillLoad(){r(this.root)}componentDidLoad(){this.validatingInputs()}async hideTooltip(){return await this.tooltip.hideTooltip()}onKeydown(a){n(a,this.root)}isLastItemInGroup(){const a=Array.from(this.root.parentElement.children);return a.findIndex((a=>a===this.root))===a.length-1}validatingInputs(){const a=this.root.querySelector("img");this.name||o(this.root,"Name prop is required for accessibility"),a&&!a.getAttribute("alt")&&o(this.root,"Alt attribute is required for slotted image.")}render(){return i(t,{key:"5ce1682a7e8d089ba342cef16c95f516026e1b3c",role:"menuitem"},i("button",{key:"7b1a5d261fae1cb7b8b184506747581816d9294b",type:"button","aria-label":this.name,tabIndex:-1,class:{"gux-avatar":!0,[s(this.accent,this.name)]:!0,"gux-last-item":this.isLastItemInGroup()}},i("slot",{key:"a94180e9025e61f8451712c4a3414f9a3f9b52ec",name:"image"},i("span",{key:"64c5cf8e8c808fca7641c516959bb4c82d03878c",class:"gux-avatar-initials","aria-hidden":"true"},c(this.name))),i("gux-tooltip-beta",{key:"9e00b028d10e6cb7164b7fbf1e1b7c3a89550bb7","aria-hidden":"true","visual-only":!0,placement:"top",ref:a=>this.tooltip=a},i("div",{key:"9775ff9e94b96dc311a704edf5df449f71a8b511",slot:"content"},this.name))))}static get delegatesFocus(){return!0}get root(){return e(this)}};u.style="::slotted(img){inline-size:100%;block-size:100%;object-fit:cover}button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-small-content-size);block-size:var(--gse-ui-avatar-small-content-size);padding:0;margin:0;margin-inline-end:var(--gse-ui-avatar-groupSet-gap);overflow:hidden;color:var(--gse-ui-avatar-media-initialsForeground-inverse);cursor:pointer;background:none;background-color:var(--gse-ui-avatar-media-initialsBackground-default);border:none;border-radius:50%;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 26 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 13c0-2.6.7-5 1.8-7.2C21.5 2.3 17.5 0 13 0 5.8 0 0 5.8 0 13s5.8 13 13 13c4.5 0 8.5-2.3 10.8-5.8C22.7 18 22 15.6 22 13z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 26 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 13c0-2.6.7-5 1.8-7.2C21.5 2.3 17.5 0 13 0 5.8 0 0 5.8 0 13s5.8 13 13 13c4.5 0 8.5-2.3 10.8-5.8C22.7 18 22 15.6 22 13z' /%3E%3C/svg%3E\")}button:focus-visible,button:hover{position:relative;z-index:var(--gse-semantic-zIndex-showFocus);mask:none}button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}button.gux-last-item{mask:none}button .gux-avatar-initials{font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight);line-height:var(--gse-ui-avatar-small-initials-lineHeight);text-transform:uppercase}button.gux-accent-1{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent1)}button.gux-accent-2{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent2)}button.gux-accent-3{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent3)}button.gux-accent-4{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent4)}button.gux-accent-5{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent5)}button.gux-accent-6{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent6)}button.gux-accent-7{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent7)}button.gux-accent-8{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent8)}button.gux-accent-9{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent9)}button.gux-accent-10{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent10)}button.gux-accent-11{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent11)}button.gux-accent-12{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent12)}button.gux-accent-inherit{color:inherit;background-color:inherit}";export{u as gux_avatar_group_item_beta}
@@ -1 +1 @@
1
- import{r as e,h as o,a as r}from"./p-mm833MRp.js";import{c as t,o as i}from"./p-Cb3FOYGS.js";import{O as n}from"./p-1mmdDpx8.js";import{o as l}from"./p-De1NnCmO.js";import{p as a}from"./p-PYfNAK8p.js";import{h as s}from"./p-qzV3vtOw.js";import{G as u,a as f}from"./p-BkM3RdTO.js";import{G as d,a as p}from"./p-Bxg2lxW0.js";import{v as c,a as g}from"./p-DHLxhscH.js";import{t as h}from"./p-DoCK5APt.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";const m=class{constructor(o){e(this,o),this.indicatorMark="required",this.computedLabelPosition="above",this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help")}handleKeyup(e){var o,r;switch(e.key){case"Tab":this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3));break;case"Shift":break;default:this.input.matches(":focus-visible")&&(null===(r=this.labelInfo)||void 0===r||r.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help"),h(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return o(p,{key:"36d80cb0c83b9c7e683a21a3b1ee8b319cf4bd73",labelPosition:this.computedLabelPosition},o(d,{key:"d7ab019e29ff3b6fcea76250ceea22038c17e4e0",required:this.required,position:this.computedLabelPosition},o("slot",{key:"f374ef61481fa4d2f6c2e53908886ee151e8660a",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"114211228486a8f146e41127c1acd56280b4b1aa",variant:this.indicatorMark,required:this.required}),o("slot",{key:"2d50de846e94d63aa6dd9cca126d3febe1845121",name:"label-info"})),o("div",{key:"5c83a9e15b35464eb8880f609dd01cec4494e895",class:"gux-input-and-error-container"},o("div",{key:"ede183b4ff75a8915cbceca9a5fce9f73fdfee1d",class:{"gux-input":!0,"gux-input-error":this.hasError}},o("div",{key:"3ffa5170a267850f556fbcfd9ec18078087dbee6",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},o("slot",{key:"4e4881a00101024bb2a0940d7b517e4f52892451",name:"input"}),o("gux-icon",{key:"a700cd27972bbcd45a985b98e62f0a9fad62c34e","icon-name":"custom/chevron-down-small-regular",decorative:!0,size:"small"}))),o(u,{key:"1d3132a1292256096f8ec2fda877fb1d808b4466",show:this.hasError},o("slot",{key:"5c6ce7083f67f2488ebdab5877cae6ce3e034df1",name:"error"})),o(f,{key:"b836165487d038ba425ca14de727d0f8d0391b9f",show:!this.hasError&&this.hasHelp},o("slot",{key:"eeb6aed6c059152d2507c110befb5d47491be583",name:"help"}))))}get variant(){const e=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.input.getAttribute("type")}-${e}`}setInput(){this.input=this.root.querySelector('select[slot="input"]'),a(this.input),this.disabled=t(this.input),this.required=this.input.required,this.disabledObserver=i(this.input,(e=>{this.disabled=e})),this.requiredObserver=l(this.input,(e=>{this.required=e})),c(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=g(this.label,this.labelPosition)}get root(){return r(this)}};(function(e,o,r,t){var i,n=arguments.length,l=n<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,o,r,t);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(l=(n<3?i(l):n>3?i(o,r,l):i(o,r))||l);n>3&&l&&Object.defineProperty(o,r,l)})([n({childList:!0,subtree:!0})],m.prototype,"onMutation",null),m.style=".gux-form-field-container{display:flex;flex-direction:column}.gux-form-field-container.gux-beside{flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(label){min-inline-size:0}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(select){flex:1 1 auto;align-self:auto;order:0;inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);padding-inline-start:var(--gse-ui-formControl-input-gap);color:var(--gse-ui-formControl-input-populatedColor);-moz-appearance:none;-webkit-appearance:none;appearance:none;outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none;border-radius:var(--gse-ui-formControl-input-borderRadius)}::slotted(select)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input .gux-input-container{position:relative;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;inline-size:100%;font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{pointer-events:none;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:hover gux-icon{color:var(--gse-ui-formControl-input-inputIcon-iconEndColor)}.gux-input-and-error-container .gux-input .gux-input-container gux-icon{position:absolute;inset-block-start:0;inset-inline-end:0;margin:var(--gse-ui-formControl-input-padding);pointer-events:none}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius)}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}";export{m as gux_form_field_select}
1
+ import{r as e,h as o,a as r}from"./p-mm833MRp.js";import{c as t,o as i}from"./p-Cb3FOYGS.js";import{O as n}from"./p-1mmdDpx8.js";import{o as l}from"./p-De1NnCmO.js";import{p as a}from"./p-PYfNAK8p.js";import{h as s}from"./p-qzV3vtOw.js";import{G as u,a as f}from"./p-BkM3RdTO.js";import{G as d,a as p}from"./p-Bxg2lxW0.js";import{v as c,a as g}from"./p-DHLxhscH.js";import{t as h}from"./p-B6h1eXrW.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";const m=class{constructor(o){e(this,o),this.indicatorMark="required",this.computedLabelPosition="above",this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help")}handleKeyup(e){var o,r;switch(e.key){case"Tab":this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3));break;case"Shift":break;default:this.input.matches(":focus-visible")&&(null===(r=this.labelInfo)||void 0===r||r.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help"),h(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return o(p,{key:"36d80cb0c83b9c7e683a21a3b1ee8b319cf4bd73",labelPosition:this.computedLabelPosition},o(d,{key:"d7ab019e29ff3b6fcea76250ceea22038c17e4e0",required:this.required,position:this.computedLabelPosition},o("slot",{key:"f374ef61481fa4d2f6c2e53908886ee151e8660a",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"114211228486a8f146e41127c1acd56280b4b1aa",variant:this.indicatorMark,required:this.required}),o("slot",{key:"2d50de846e94d63aa6dd9cca126d3febe1845121",name:"label-info"})),o("div",{key:"5c83a9e15b35464eb8880f609dd01cec4494e895",class:"gux-input-and-error-container"},o("div",{key:"ede183b4ff75a8915cbceca9a5fce9f73fdfee1d",class:{"gux-input":!0,"gux-input-error":this.hasError}},o("div",{key:"3ffa5170a267850f556fbcfd9ec18078087dbee6",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},o("slot",{key:"4e4881a00101024bb2a0940d7b517e4f52892451",name:"input"}),o("gux-icon",{key:"a700cd27972bbcd45a985b98e62f0a9fad62c34e","icon-name":"custom/chevron-down-small-regular",decorative:!0,size:"small"}))),o(u,{key:"1d3132a1292256096f8ec2fda877fb1d808b4466",show:this.hasError},o("slot",{key:"5c6ce7083f67f2488ebdab5877cae6ce3e034df1",name:"error"})),o(f,{key:"b836165487d038ba425ca14de727d0f8d0391b9f",show:!this.hasError&&this.hasHelp},o("slot",{key:"eeb6aed6c059152d2507c110befb5d47491be583",name:"help"}))))}get variant(){const e=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.input.getAttribute("type")}-${e}`}setInput(){this.input=this.root.querySelector('select[slot="input"]'),a(this.input),this.disabled=t(this.input),this.required=this.input.required,this.disabledObserver=i(this.input,(e=>{this.disabled=e})),this.requiredObserver=l(this.input,(e=>{this.required=e})),c(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=g(this.label,this.labelPosition)}get root(){return r(this)}};(function(e,o,r,t){var i,n=arguments.length,l=n<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,o,r,t);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(l=(n<3?i(l):n>3?i(o,r,l):i(o,r))||l);n>3&&l&&Object.defineProperty(o,r,l)})([n({childList:!0,subtree:!0})],m.prototype,"onMutation",null),m.style=".gux-form-field-container{display:flex;flex-direction:column}.gux-form-field-container.gux-beside{flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(label){min-inline-size:0}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(select){flex:1 1 auto;align-self:auto;order:0;inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);padding-inline:var(--gse-ui-formControl-input-gap) calc(var(--gse-ui-formControl-input-gap) * 2 + var(--gse-ui-formControl-input-inputIcon-size));overflow:hidden;text-overflow:ellipsis;color:var(--gse-ui-formControl-input-populatedColor);white-space:nowrap;-moz-appearance:none;-webkit-appearance:none;appearance:none;outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none;border-radius:var(--gse-ui-formControl-input-borderRadius)}::slotted(select)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input .gux-input-container{position:relative;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;inline-size:100%;font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{pointer-events:none;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:hover gux-icon{color:var(--gse-ui-formControl-input-inputIcon-iconEndColor)}.gux-input-and-error-container .gux-input .gux-input-container gux-icon{position:absolute;inset-block-start:0;inset-inline-end:0;margin:var(--gse-ui-formControl-input-padding);pointer-events:none}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius)}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}";export{m as gux_form_field_select}
@@ -1 +1 @@
1
- import{r as e,h as n,a}from"./p-mm833MRp.js";import{t}from"./p-DoCK5APt.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-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 +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-DoCK5APt.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-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 +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-DoCK5APt.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-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}
@@ -0,0 +1 @@
1
+ import{r as t,h as s,H as r,a as i}from"./p-mm833MRp.js";import{t as o}from"./p-B6h1eXrW.js";import{b as e}from"./p-D_8CR3cJ.js";import{g as n,f as a,t as p}from"./p-CdIcJKB7.js";import"./p-Cd4R0amv.js";const c=class{constructor(s){t(this,s)}renderZoneDisplay(){let t=this.i18n(this.timeZoneId);this.shorten&&(t=function(t){const s=t.split("/");return(null==s?void 0:s.pop())||t}(t));let r=t;if(this.offset){const s=function(t,s){const r=n().find((t=>t.name===s));return`${t}${a(null==r?void 0:r.currentTimeOffsetInMinutes)}`}(this.i18n("UTC"),this.timeZoneId);r=`${t} ${s}`,this.surroundOffset&&(r=`${t} (${s})`)}return s("span",null,r)}async componentWillLoad(){o(this.root),this.i18n=await e(this.root,p,"gux-time-zone-picker")}render(){return s(r,{key:"8d487502512ef0f5bdaed7670f8afcb7386afbea"},this.renderZoneDisplay())}get root(){return i(this)}};export{c as gux_time_zone_beta}
@@ -1 +1 @@
1
- import{r as t,h as s,a as i}from"./p-mm833MRp.js";import{s as r}from"./p-D8NvUiBF.js";import{t as n}from"./p-DoCK5APt.js";const e=/[ +]/g,a=new Map,h=new Map;function o(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&#x2F;")}const u=class{constructor(s){t(this,s),this.strategy="start",this.dimmed=!1}componentWillLoad(){n(this.root)}render(){if(this.highlight&&this.text)switch(this.strategy){case"start":return this.renderStartsWith();case"contains":return this.renderContains();case"fuzzy":return this.renderFuzzy()}return s("span",{class:{"gux-dimmed":this.dimmed}},this.text)}renderStartsWith(){if(this.text.toLowerCase().startsWith(this.highlight.toLowerCase())){const t=this.text.substring(0,this.highlight.length),i=this.text.substring(this.highlight.length);return s("span",{class:{"gux-dimmed":this.dimmed}},s("mark",null,t),i)}return s("span",{class:{"gux-dimmed":this.dimmed}},this.text)}renderContains(){const t={highlighted:"",remaining:this.text};for(;t.remaining.toLowerCase().includes(this.highlight.toLowerCase());){const s=t.remaining.toLowerCase().indexOf(this.highlight.toLowerCase()),i=t.remaining.substring(0,s),r=t.remaining.substring(s,s+this.highlight.length);t.highlighted+=o(i)+`<mark>${o(r)}</mark>`,t.remaining=t.remaining.substring(s+r.length)}return s("span",{class:{"gux-dimmed":this.dimmed},innerHTML:t.highlighted+o(t.remaining)})}renderFuzzy(){if(function(t,s){let i=a.get(t);return i||(i=function(t){const s=t.split(e).map(r);return 0===s.length?/(?!)/:1===s.length?new RegExp(s[0],"i"):new RegExp("("+s.join(").*?(")+").*?$","i")}(t),a.set(t,i)),i.test(s)}(this.highlight,this.text)){const i=(t=this.highlight,t.split(e).map(r).map((t=>{let s=h.get(t);return s||(s=new RegExp(t,"i"),h.set(t,s)),s}))).reduce(((t,s)=>{const{0:i,index:r,input:n}=t.remaining.match(s),e=n.substring(0,r);return{highlighted:`${t.highlighted+o(e)}<mark>${o(i)}</mark>`,remaining:n.substring(r+i.length)}}),{highlighted:"",remaining:this.text});return s("span",{class:{"gux-dimmed":this.dimmed},innerHTML:i.highlighted+o(i.remaining)})}var t;return s("span",{class:{"gux-dimmed":this.dimmed}},this.text)}get root(){return i(this)}};u.style="span mark{background-color:var(--gse-ui-search-match-firstLevel-backgroundColor)}.gux-dimmed mark{background-color:var(--gse-ui-search-match-subsequentLevel-backgroundColor)}";export{u as gux_text_highlight}
1
+ import{r as t,h as s,a as i}from"./p-mm833MRp.js";import{s as r}from"./p-D8NvUiBF.js";import{t as n}from"./p-B6h1eXrW.js";const e=/[ +]/g,a=new Map,h=new Map;function o(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&#x2F;")}const u=class{constructor(s){t(this,s),this.strategy="start",this.dimmed=!1}componentWillLoad(){n(this.root)}render(){if(this.highlight&&this.text)switch(this.strategy){case"start":return this.renderStartsWith();case"contains":return this.renderContains();case"fuzzy":return this.renderFuzzy()}return s("span",{class:{"gux-dimmed":this.dimmed}},this.text)}renderStartsWith(){if(this.text.toLowerCase().startsWith(this.highlight.toLowerCase())){const t=this.text.substring(0,this.highlight.length),i=this.text.substring(this.highlight.length);return s("span",{class:{"gux-dimmed":this.dimmed}},s("mark",null,t),i)}return s("span",{class:{"gux-dimmed":this.dimmed}},this.text)}renderContains(){const t={highlighted:"",remaining:this.text};for(;t.remaining.toLowerCase().includes(this.highlight.toLowerCase());){const s=t.remaining.toLowerCase().indexOf(this.highlight.toLowerCase()),i=t.remaining.substring(0,s),r=t.remaining.substring(s,s+this.highlight.length);t.highlighted+=o(i)+`<mark>${o(r)}</mark>`,t.remaining=t.remaining.substring(s+r.length)}return s("span",{class:{"gux-dimmed":this.dimmed},innerHTML:t.highlighted+o(t.remaining)})}renderFuzzy(){if(function(t,s){let i=a.get(t);return i||(i=function(t){const s=t.split(e).map(r);return 0===s.length?/(?!)/:1===s.length?new RegExp(s[0],"i"):new RegExp("("+s.join(").*?(")+").*?$","i")}(t),a.set(t,i)),i.test(s)}(this.highlight,this.text)){const i=(t=this.highlight,t.split(e).map(r).map((t=>{let s=h.get(t);return s||(s=new RegExp(t,"i"),h.set(t,s)),s}))).reduce(((t,s)=>{const{0:i,index:r,input:n}=t.remaining.match(s),e=n.substring(0,r);return{highlighted:`${t.highlighted+o(e)}<mark>${o(i)}</mark>`,remaining:n.substring(r+i.length)}}),{highlighted:"",remaining:this.text});return s("span",{class:{"gux-dimmed":this.dimmed},innerHTML:i.highlighted+o(i.remaining)})}var t;return s("span",{class:{"gux-dimmed":this.dimmed}},this.text)}get root(){return i(this)}};u.style="span mark{background-color:var(--gse-ui-search-match-firstLevel-backgroundColor)}.gux-dimmed mark{background-color:var(--gse-ui-search-match-subsequentLevel-backgroundColor)}";export{u as gux_text_highlight}
@@ -1 +1 @@
1
- import{r as 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-DoCK5APt.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 K=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"})],K.prototype,"onClickOutside",null),A([h({childList:!0,subtree:!0})],K.prototype,"onMutation",null),K.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 M=["gux-option","gux-option-icon","gux-option-status-beta"].join(",");var V={noMatches:"No matches",loading:"Loading..."};const P=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(M,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)}};P.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 _=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"]}}};_.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{K as gux_dropdown,P as gux_listbox,_ 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-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}