genesys-spark-components 4.188.1 → 4.188.3

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 (437) hide show
  1. package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
  2. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-actionable-inline-alert-beta.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-avatar-beta.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-avatar-group-add-item-beta_3.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-avatar-group-item-beta.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-blank-state-beta.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-button_2.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-cloud-logo-beta.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-cloud-logomark-beta.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-file-list-item.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-file-beta.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-file.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-number_2.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-illustration-beta.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-inline-dropdown-beta.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-link-beta.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-logo-beta.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-logomark-beta.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-popover-beta.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-popover-list-beta.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-prompt-input-beta.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-rich-highlight-list-item.cjs.entry.js +1 -1
  88. package/dist/cjs/gux-rich-style-list-item_3.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +15 -3
  90. package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +1 -1
  91. package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +16 -4
  92. package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +22 -3
  93. package/dist/cjs/gux-rich-text-editor-beta.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +1 -1
  95. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  96. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  97. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
  98. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
  99. package/dist/cjs/gux-side-panel-beta.cjs.entry.js +1 -1
  100. package/dist/cjs/gux-side-panel-header.cjs.entry.js +1 -1
  101. package/dist/cjs/gux-side-panel-heading.cjs.entry.js +1 -1
  102. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  103. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  104. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  105. package/dist/cjs/gux-status-indicator-beta.cjs.entry.js +1 -1
  106. package/dist/cjs/gux-step-title.cjs.entry.js +1 -1
  107. package/dist/cjs/gux-step.cjs.entry.js +1 -1
  108. package/dist/cjs/gux-stepper-beta.cjs.entry.js +1 -1
  109. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  110. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  111. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  112. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  113. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  114. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  115. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  116. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  117. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  118. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  119. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  120. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  121. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +2 -2
  122. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +2 -2
  123. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  124. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  125. package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +1 -1
  126. package/dist/cjs/gux-tooltip-pointer-beta.cjs.entry.js +1 -1
  127. package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
  128. package/dist/cjs/gux-tree-beta.cjs.entry.js +1 -1
  129. package/dist/cjs/gux-tree-multi-beta.cjs.entry.js +1 -1
  130. package/dist/cjs/loader.cjs.js +1 -1
  131. package/dist/cjs/{time-zone-D68Aoee2.js → time-zone-CaD5iGrP.js} +13 -11
  132. package/dist/cjs/{usage-sB4wE0Xu.js → usage-CrEgAjiD.js} +1 -1
  133. package/dist/collection/components/beta/gux-icon-tooltip/gux-icon-tooltip.js +1 -1
  134. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action-link/gux-rich-text-editor-action-link.js +43 -5
  135. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action-text-highlight/gux-rich-text-editor-action-text-highlight.js +44 -6
  136. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action.js +50 -5
  137. package/dist/collection/components/stable/gux-icon/gux-icon.js +1 -1
  138. package/dist/collection/components/stable/gux-icon/icons/custom/glassdoor.svg +1 -0
  139. package/dist/collection/components/stable/gux-icon/icons/custom/kakaotalk.svg +1 -0
  140. package/dist/collection/components/stable/gux-icon/icons/custom/servicenow.svg +1 -0
  141. package/dist/collection/components/stable/gux-icon/icons/custom/trustpilot.svg +1 -0
  142. package/dist/collection/components/stable/gux-icon/icons/custom/zendesk.svg +1 -0
  143. package/dist/collection/components/stable/gux-icon/icons/fa/greater-than-regular.svg +1 -1
  144. package/dist/collection/components/stable/gux-icon/icons/fa/weibo.svg +1 -0
  145. package/dist/esm/genesys-webcomponents.js +1 -1
  146. package/dist/esm/gux-accordion.entry.js +1 -1
  147. package/dist/esm/gux-action-button.entry.js +1 -1
  148. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  149. package/dist/esm/gux-actionable-inline-alert-beta.entry.js +1 -1
  150. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  151. package/dist/esm/gux-announce-beta.entry.js +1 -1
  152. package/dist/esm/gux-avatar-beta.entry.js +1 -1
  153. package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
  154. package/dist/esm/gux-avatar-group-add-item-beta_3.entry.js +1 -1
  155. package/dist/esm/gux-avatar-group-beta.entry.js +1 -1
  156. package/dist/esm/gux-avatar-group-item-beta.entry.js +1 -1
  157. package/dist/esm/gux-badge.entry.js +1 -1
  158. package/dist/esm/gux-blank-state-beta.entry.js +1 -1
  159. package/dist/esm/gux-blank-state.entry.js +1 -1
  160. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  161. package/dist/esm/gux-button-multi.entry.js +1 -1
  162. package/dist/esm/gux-button-slot.entry.js +1 -1
  163. package/dist/esm/gux-button_2.entry.js +1 -1
  164. package/dist/esm/gux-calendar.entry.js +1 -1
  165. package/dist/esm/gux-card.entry.js +1 -1
  166. package/dist/esm/gux-cloud-logo-beta.entry.js +1 -1
  167. package/dist/esm/gux-cloud-logomark-beta.entry.js +1 -1
  168. package/dist/esm/gux-column-manager.entry.js +1 -1
  169. package/dist/esm/gux-content-search.entry.js +1 -1
  170. package/dist/esm/gux-context-menu.entry.js +1 -1
  171. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  172. package/dist/esm/gux-date-beta.entry.js +1 -1
  173. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  174. package/dist/esm/gux-datepicker.entry.js +1 -1
  175. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  176. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  177. package/dist/esm/gux-dropdown-multi.entry.js +1 -1
  178. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  179. package/dist/esm/gux-file-list-item.entry.js +1 -1
  180. package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
  181. package/dist/esm/gux-flyout-menu.entry.js +1 -1
  182. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +1 -1
  183. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  184. package/dist/esm/gux-form-field-color.entry.js +1 -1
  185. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  186. package/dist/esm/gux-form-field-file-beta.entry.js +1 -1
  187. package/dist/esm/gux-form-field-file.entry.js +1 -1
  188. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  189. package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
  190. package/dist/esm/gux-form-field-number_2.entry.js +1 -1
  191. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  192. package/dist/esm/gux-form-field-radio-group-beta.entry.js +1 -1
  193. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  194. package/dist/esm/gux-form-field-range.entry.js +1 -1
  195. package/dist/esm/gux-form-field-search.entry.js +1 -1
  196. package/dist/esm/gux-form-field-select.entry.js +1 -1
  197. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  198. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  199. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  200. package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
  201. package/dist/esm/gux-form-footer.entry.js +1 -1
  202. package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
  203. package/dist/esm/gux-icon.entry.js +1 -1
  204. package/dist/esm/gux-illustration-beta.entry.js +1 -1
  205. package/dist/esm/gux-inline-alert.entry.js +1 -1
  206. package/dist/esm/gux-inline-dropdown-beta.entry.js +1 -1
  207. package/dist/esm/gux-label-info-beta.entry.js +1 -1
  208. package/dist/esm/gux-link-beta.entry.js +1 -1
  209. package/dist/esm/gux-list.entry.js +1 -1
  210. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  211. package/dist/esm/gux-loading-message.entry.js +1 -1
  212. package/dist/esm/gux-logo-beta.entry.js +1 -1
  213. package/dist/esm/gux-logomark-beta.entry.js +1 -1
  214. package/dist/esm/gux-modal-legacy.entry.js +1 -1
  215. package/dist/esm/gux-modal-side-panel-beta.entry.js +1 -1
  216. package/dist/esm/gux-modal.entry.js +1 -1
  217. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  218. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  219. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  220. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  221. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  222. package/dist/esm/gux-pagination.entry.js +1 -1
  223. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  224. package/dist/esm/gux-popover-beta.entry.js +1 -1
  225. package/dist/esm/gux-popover-list-beta.entry.js +1 -1
  226. package/dist/esm/gux-popover-list.entry.js +1 -1
  227. package/dist/esm/gux-prompt-input-beta.entry.js +1 -1
  228. package/dist/esm/gux-radial-loading.entry.js +1 -1
  229. package/dist/esm/gux-radial-progress.entry.js +1 -1
  230. package/dist/esm/gux-rating.entry.js +1 -1
  231. package/dist/esm/gux-rich-highlight-list-item.entry.js +1 -1
  232. package/dist/esm/gux-rich-style-list-item_3.entry.js +1 -1
  233. package/dist/esm/gux-rich-text-editor-action-link.entry.js +15 -3
  234. package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +1 -1
  235. package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +16 -4
  236. package/dist/esm/gux-rich-text-editor-action.entry.js +22 -3
  237. package/dist/esm/gux-rich-text-editor-beta.entry.js +1 -1
  238. package/dist/esm/gux-rich-text-editor-list.entry.js +1 -1
  239. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  240. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  241. package/dist/esm/gux-selector-card-beta.entry.js +1 -1
  242. package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
  243. package/dist/esm/gux-side-panel-beta.entry.js +1 -1
  244. package/dist/esm/gux-side-panel-header.entry.js +1 -1
  245. package/dist/esm/gux-side-panel-heading.entry.js +1 -1
  246. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  247. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  248. package/dist/esm/gux-sort-control.entry.js +1 -1
  249. package/dist/esm/gux-status-indicator-beta.entry.js +1 -1
  250. package/dist/esm/gux-step-title.entry.js +1 -1
  251. package/dist/esm/gux-step.entry.js +1 -1
  252. package/dist/esm/gux-stepper-beta.entry.js +1 -1
  253. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  254. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  255. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  256. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  257. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  258. package/dist/esm/gux-table.entry.js +1 -1
  259. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  260. package/dist/esm/gux-tabs.entry.js +1 -1
  261. package/dist/esm/gux-tag.entry.js +1 -1
  262. package/dist/esm/gux-text-highlight.entry.js +1 -1
  263. package/dist/esm/gux-time-beta.entry.js +1 -1
  264. package/dist/esm/gux-time-picker.entry.js +1 -1
  265. package/dist/esm/gux-time-zone-beta.entry.js +2 -2
  266. package/dist/esm/gux-time-zone-picker-beta.entry.js +2 -2
  267. package/dist/esm/gux-toast.entry.js +1 -1
  268. package/dist/esm/gux-toggle.entry.js +1 -1
  269. package/dist/esm/gux-tooltip-base-beta_2.entry.js +1 -1
  270. package/dist/esm/gux-tooltip-pointer-beta.entry.js +1 -1
  271. package/dist/esm/gux-tooltip_2.entry.js +1 -1
  272. package/dist/esm/gux-tree-beta.entry.js +1 -1
  273. package/dist/esm/gux-tree-multi-beta.entry.js +1 -1
  274. package/dist/esm/loader.js +1 -1
  275. package/dist/esm/{time-zone-CdIcJKB7.js → time-zone-BhYYSWuN.js} +13 -11
  276. package/dist/esm/{usage-B6h1eXrW.js → usage-CngQjjYl.js} +1 -1
  277. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  278. package/dist/genesys-webcomponents/icons/custom/glassdoor.svg +1 -0
  279. package/dist/genesys-webcomponents/icons/custom/kakaotalk.svg +1 -0
  280. package/dist/genesys-webcomponents/icons/custom/servicenow.svg +1 -0
  281. package/dist/genesys-webcomponents/icons/custom/trustpilot.svg +1 -0
  282. package/dist/genesys-webcomponents/icons/custom/zendesk.svg +1 -0
  283. package/dist/genesys-webcomponents/icons/fa/greater-than-regular.svg +1 -1
  284. package/dist/genesys-webcomponents/icons/fa/weibo.svg +1 -0
  285. package/dist/genesys-webcomponents/{p-ea7e0c91.entry.js → p-01ae2ab5.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-43a5a349.entry.js → p-0278d8bd.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-10005b05.entry.js → p-0298535c.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-dfa33656.entry.js → p-0327c8b1.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/p-045e55e2.entry.js +1 -0
  290. package/dist/genesys-webcomponents/{p-96d5b1bf.entry.js → p-046e17c6.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/{p-f928754d.entry.js → p-05a216f1.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-140fbae9.entry.js → p-075bdad4.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-f1c4d29d.entry.js → p-087768bf.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-5a6df8ad.entry.js → p-120c1e04.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-3e108263.entry.js → p-12d2bdc3.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-af192665.entry.js → p-12e649f6.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-1d53a2a3.entry.js → p-16779cc1.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-ba57dfae.entry.js → p-18652e97.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/p-1a2bb6d4.entry.js +1 -0
  300. package/dist/genesys-webcomponents/{p-8d9cc87b.entry.js → p-1a4b398b.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/{p-026b9834.entry.js → p-1efc5db1.entry.js} +1 -1
  302. package/dist/genesys-webcomponents/{p-92eaff46.entry.js → p-20b269db.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-75a276b4.entry.js → p-24d51d92.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-6b94d745.entry.js → p-27ecacc6.entry.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-004aee53.entry.js → p-293515f4.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-77d60ed3.entry.js → p-2b007f85.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/{p-538eed2f.entry.js → p-2c28ea8a.entry.js} +1 -1
  308. package/dist/genesys-webcomponents/{p-346a5b78.entry.js → p-2c826266.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-4ea10f94.entry.js → p-2d68fcf6.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-b7ebc161.entry.js → p-318cad16.entry.js} +1 -1
  311. package/dist/genesys-webcomponents/{p-2ef87d07.entry.js → p-323880ab.entry.js} +1 -1
  312. package/dist/genesys-webcomponents/{p-c62c2e2c.entry.js → p-3306e9a6.entry.js} +1 -1
  313. package/dist/genesys-webcomponents/p-34eeecc9.entry.js +1 -0
  314. package/dist/genesys-webcomponents/{p-5622da88.entry.js → p-35541ef4.entry.js} +1 -1
  315. package/dist/genesys-webcomponents/{p-c7add5b0.entry.js → p-36a4b786.entry.js} +1 -1
  316. package/dist/genesys-webcomponents/{p-700fd593.entry.js → p-3924c4ed.entry.js} +1 -1
  317. package/dist/genesys-webcomponents/{p-49b9817b.entry.js → p-39352f6f.entry.js} +1 -1
  318. package/dist/genesys-webcomponents/{p-70bc2301.entry.js → p-3a15d238.entry.js} +1 -1
  319. package/dist/genesys-webcomponents/{p-5495bd0b.entry.js → p-3e8a00b9.entry.js} +1 -1
  320. package/dist/genesys-webcomponents/{p-c70756c3.entry.js → p-3f0d988e.entry.js} +1 -1
  321. package/dist/genesys-webcomponents/p-418713e1.entry.js +1 -0
  322. package/dist/genesys-webcomponents/{p-8eab6c7e.entry.js → p-4606e3c5.entry.js} +1 -1
  323. package/dist/genesys-webcomponents/{p-1695394a.entry.js → p-47077661.entry.js} +1 -1
  324. package/dist/genesys-webcomponents/{p-0e7ac2ed.entry.js → p-4767cf84.entry.js} +1 -1
  325. package/dist/genesys-webcomponents/{p-a6f07953.entry.js → p-494a8628.entry.js} +1 -1
  326. package/dist/genesys-webcomponents/{p-d294c8ec.entry.js → p-4c950694.entry.js} +1 -1
  327. package/dist/genesys-webcomponents/{p-8108bda2.entry.js → p-4cf963d8.entry.js} +1 -1
  328. package/dist/genesys-webcomponents/{p-015617e9.entry.js → p-4e160038.entry.js} +1 -1
  329. package/dist/genesys-webcomponents/{p-713c8d1b.entry.js → p-50f6ddd2.entry.js} +1 -1
  330. package/dist/genesys-webcomponents/{p-cc37b3d5.entry.js → p-55a2bcaf.entry.js} +1 -1
  331. package/dist/genesys-webcomponents/{p-25c8dea4.entry.js → p-5631b275.entry.js} +1 -1
  332. package/dist/genesys-webcomponents/{p-4315cd6b.entry.js → p-57bb901c.entry.js} +1 -1
  333. package/dist/genesys-webcomponents/{p-ab56c5a3.entry.js → p-57f546cc.entry.js} +1 -1
  334. package/dist/genesys-webcomponents/{p-5b22714c.entry.js → p-5826a4ca.entry.js} +1 -1
  335. package/dist/genesys-webcomponents/{p-63769174.entry.js → p-585ac69e.entry.js} +1 -1
  336. package/dist/genesys-webcomponents/{p-4827fa85.entry.js → p-5f02b835.entry.js} +1 -1
  337. package/dist/genesys-webcomponents/{p-9a74205e.entry.js → p-63c9a9fc.entry.js} +1 -1
  338. package/dist/genesys-webcomponents/{p-9561ec21.entry.js → p-65a61087.entry.js} +1 -1
  339. package/dist/genesys-webcomponents/{p-a7d7cc18.entry.js → p-71d70889.entry.js} +1 -1
  340. package/dist/genesys-webcomponents/{p-925f6f1b.entry.js → p-71e6f42d.entry.js} +1 -1
  341. package/dist/genesys-webcomponents/{p-77b653f2.entry.js → p-71e8caef.entry.js} +1 -1
  342. package/dist/genesys-webcomponents/p-76bef427.entry.js +1 -0
  343. package/dist/genesys-webcomponents/{p-ec1cb91d.entry.js → p-797f06ba.entry.js} +1 -1
  344. package/dist/genesys-webcomponents/{p-345239d6.entry.js → p-79ab7ac3.entry.js} +1 -1
  345. package/dist/genesys-webcomponents/{p-8006d315.entry.js → p-7a56f8a6.entry.js} +1 -1
  346. package/dist/genesys-webcomponents/{p-8bede258.entry.js → p-7d3961a0.entry.js} +1 -1
  347. package/dist/genesys-webcomponents/{p-127778a4.entry.js → p-80207c46.entry.js} +1 -1
  348. package/dist/genesys-webcomponents/p-81b7c4ea.entry.js +1 -0
  349. package/dist/genesys-webcomponents/{p-3150ad33.entry.js → p-825f858d.entry.js} +1 -1
  350. package/dist/genesys-webcomponents/p-85e0ee42.entry.js +1 -0
  351. package/dist/genesys-webcomponents/{p-00766124.entry.js → p-85e54395.entry.js} +1 -1
  352. package/dist/genesys-webcomponents/{p-44ee63db.entry.js → p-8ac14cb5.entry.js} +1 -1
  353. package/dist/genesys-webcomponents/{p-1687884f.entry.js → p-8d5f2816.entry.js} +1 -1
  354. package/dist/genesys-webcomponents/{p-62ba27e4.entry.js → p-9001c439.entry.js} +1 -1
  355. package/dist/genesys-webcomponents/{p-07372e52.entry.js → p-92797136.entry.js} +1 -1
  356. package/dist/genesys-webcomponents/p-92f69b14.entry.js +1 -0
  357. package/dist/genesys-webcomponents/p-9871cce1.entry.js +1 -0
  358. package/dist/genesys-webcomponents/{p-6c4f7f1b.entry.js → p-9aa41c30.entry.js} +1 -1
  359. package/dist/genesys-webcomponents/{p-d4373510.entry.js → p-9adda251.entry.js} +1 -1
  360. package/dist/genesys-webcomponents/{p-67d1b365.entry.js → p-9f595790.entry.js} +1 -1
  361. package/dist/genesys-webcomponents/{p-3fd1a55e.entry.js → p-9f5a6df1.entry.js} +1 -1
  362. package/dist/genesys-webcomponents/p-BhYYSWuN.js +1 -0
  363. package/dist/genesys-webcomponents/{p-B6h1eXrW.js → p-CngQjjYl.js} +1 -1
  364. package/dist/genesys-webcomponents/{p-5de2444c.entry.js → p-a084c31f.entry.js} +1 -1
  365. package/dist/genesys-webcomponents/{p-d99db562.entry.js → p-a209225d.entry.js} +1 -1
  366. package/dist/genesys-webcomponents/{p-c39c2e09.entry.js → p-a50643d6.entry.js} +1 -1
  367. package/dist/genesys-webcomponents/{p-77cb31a4.entry.js → p-a6848bce.entry.js} +1 -1
  368. package/dist/genesys-webcomponents/{p-7ed0ad2a.entry.js → p-a883e0c6.entry.js} +1 -1
  369. package/dist/genesys-webcomponents/{p-96d5bf32.entry.js → p-a928917c.entry.js} +1 -1
  370. package/dist/genesys-webcomponents/{p-7a5ad8ae.entry.js → p-a9529f3c.entry.js} +1 -1
  371. package/dist/genesys-webcomponents/{p-0453c00e.entry.js → p-aa07ab77.entry.js} +1 -1
  372. package/dist/genesys-webcomponents/{p-a8a5f644.entry.js → p-ad2fa6ad.entry.js} +1 -1
  373. package/dist/genesys-webcomponents/{p-5c57de61.entry.js → p-af31d8cc.entry.js} +1 -1
  374. package/dist/genesys-webcomponents/{p-99d7e93e.entry.js → p-b229a1ad.entry.js} +1 -1
  375. package/dist/genesys-webcomponents/{p-f8ef5895.entry.js → p-b455c697.entry.js} +1 -1
  376. package/dist/genesys-webcomponents/{p-2904e896.entry.js → p-b8fa4d46.entry.js} +1 -1
  377. package/dist/genesys-webcomponents/{p-83c99eb7.entry.js → p-bade5a95.entry.js} +1 -1
  378. package/dist/genesys-webcomponents/{p-3953c668.entry.js → p-bd90d7df.entry.js} +1 -1
  379. package/dist/genesys-webcomponents/{p-eaf56162.entry.js → p-bf929b1b.entry.js} +1 -1
  380. package/dist/genesys-webcomponents/{p-a359e4da.entry.js → p-bffafc68.entry.js} +1 -1
  381. package/dist/genesys-webcomponents/{p-7f0495e3.entry.js → p-c74d3044.entry.js} +1 -1
  382. package/dist/genesys-webcomponents/{p-2701831d.entry.js → p-ca1df915.entry.js} +1 -1
  383. package/dist/genesys-webcomponents/{p-50741c53.entry.js → p-cb59c3ca.entry.js} +1 -1
  384. package/dist/genesys-webcomponents/{p-41577f70.entry.js → p-cb794d21.entry.js} +1 -1
  385. package/dist/genesys-webcomponents/{p-66663066.entry.js → p-cbf1e814.entry.js} +1 -1
  386. package/dist/genesys-webcomponents/{p-0a13e985.entry.js → p-cc29f5ae.entry.js} +1 -1
  387. package/dist/genesys-webcomponents/p-cc9209fc.entry.js +1 -0
  388. package/dist/genesys-webcomponents/p-cef0d727.entry.js +1 -0
  389. package/dist/genesys-webcomponents/{p-9a973106.entry.js → p-cf3ce8a7.entry.js} +1 -1
  390. package/dist/genesys-webcomponents/{p-6a92146a.entry.js → p-cf654490.entry.js} +1 -1
  391. package/dist/genesys-webcomponents/{p-c9cc9783.entry.js → p-d003f8d7.entry.js} +1 -1
  392. package/dist/genesys-webcomponents/{p-22ed9a7d.entry.js → p-d0a1a3d6.entry.js} +1 -1
  393. package/dist/genesys-webcomponents/{p-fd39807a.entry.js → p-d16119f7.entry.js} +1 -1
  394. package/dist/genesys-webcomponents/{p-5148f891.entry.js → p-d23b1fcc.entry.js} +1 -1
  395. package/dist/genesys-webcomponents/{p-1ceab2bf.entry.js → p-d38db3d0.entry.js} +1 -1
  396. package/dist/genesys-webcomponents/{p-85546f7b.entry.js → p-d4c51c72.entry.js} +1 -1
  397. package/dist/genesys-webcomponents/{p-5411edc5.entry.js → p-d5aa8fa2.entry.js} +1 -1
  398. package/dist/genesys-webcomponents/p-d69e0676.entry.js +1 -0
  399. package/dist/genesys-webcomponents/{p-78d92139.entry.js → p-d70731b9.entry.js} +1 -1
  400. package/dist/genesys-webcomponents/{p-c26b24f9.entry.js → p-db8a0e12.entry.js} +1 -1
  401. package/dist/genesys-webcomponents/{p-5ba624d5.entry.js → p-de08807a.entry.js} +1 -1
  402. package/dist/genesys-webcomponents/{p-d2beb3b2.entry.js → p-df290254.entry.js} +1 -1
  403. package/dist/genesys-webcomponents/{p-f9adc076.entry.js → p-e56a0439.entry.js} +1 -1
  404. package/dist/genesys-webcomponents/{p-b6971ca1.entry.js → p-e8c35b57.entry.js} +1 -1
  405. package/dist/genesys-webcomponents/{p-9f133169.entry.js → p-eab9d1e2.entry.js} +1 -1
  406. package/dist/genesys-webcomponents/{p-a4f41025.entry.js → p-ed3bfb2d.entry.js} +1 -1
  407. package/dist/genesys-webcomponents/{p-f5d7a04e.entry.js → p-f3fb9693.entry.js} +1 -1
  408. package/dist/genesys-webcomponents/{p-6f40c523.entry.js → p-f501f4e6.entry.js} +1 -1
  409. package/dist/genesys-webcomponents/p-f5b4ef0c.entry.js +1 -0
  410. package/dist/genesys-webcomponents/{p-4409c7fc.entry.js → p-f5b77350.entry.js} +1 -1
  411. package/dist/genesys-webcomponents/{p-c366d66b.entry.js → p-fc5b7bfa.entry.js} +1 -1
  412. package/dist/genesys-webcomponents/{p-939c80f9.entry.js → p-fd4c292f.entry.js} +1 -1
  413. package/dist/genesys-webcomponents/{p-64bc09ce.entry.js → p-fdd91d49.entry.js} +1 -1
  414. package/dist/genesys-webcomponents/p-ff1bb9ae.entry.js +1 -0
  415. package/dist/stencil-wrapper.js +1 -1
  416. package/dist/types/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action-link/gux-rich-text-editor-action-link.d.ts +7 -1
  417. package/dist/types/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action-text-highlight/gux-rich-text-editor-action-text-highlight.d.ts +7 -1
  418. package/dist/types/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action.d.ts +8 -1
  419. package/dist/types/components/stable/gux-icon/gux-icon.types.d.ts +1 -1
  420. package/dist/types/components.d.ts +36 -0
  421. package/dist/types/stencil-wrapper.d.ts +1 -1
  422. package/package.json +5 -5
  423. package/dist/genesys-webcomponents/p-02069f7f.entry.js +0 -1
  424. package/dist/genesys-webcomponents/p-2860c165.entry.js +0 -1
  425. package/dist/genesys-webcomponents/p-3584993f.entry.js +0 -1
  426. package/dist/genesys-webcomponents/p-3da28db9.entry.js +0 -1
  427. package/dist/genesys-webcomponents/p-3ebcd9be.entry.js +0 -1
  428. package/dist/genesys-webcomponents/p-415c4843.entry.js +0 -1
  429. package/dist/genesys-webcomponents/p-64575c8f.entry.js +0 -1
  430. package/dist/genesys-webcomponents/p-6730939b.entry.js +0 -1
  431. package/dist/genesys-webcomponents/p-951cde88.entry.js +0 -1
  432. package/dist/genesys-webcomponents/p-9faa698d.entry.js +0 -1
  433. package/dist/genesys-webcomponents/p-9fcdd9b4.entry.js +0 -1
  434. package/dist/genesys-webcomponents/p-CdIcJKB7.js +0 -1
  435. package/dist/genesys-webcomponents/p-bd7bfefc.entry.js +0 -1
  436. package/dist/genesys-webcomponents/p-e21d0219.entry.js +0 -1
  437. package/dist/genesys-webcomponents/p-ef202b5f.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,c as e,f as i,h as o,a as r,H as s}from"./p-mm833MRp.js";import{O as n}from"./p-CuMZPTZF.js";import{b as l}from"./p-D_8CR3cJ.js";import{s as a}from"./p-BMRf5pjV.js";import{o as u,c as d}from"./p-Cb3FOYGS.js";import{b as g}from"./p-Bg4q97BS.js";import{t as c}from"./p-B6h1eXrW.js";import{O as h}from"./p-1mmdDpx8.js";import{s as f,b as p,g as x,a as b,d as v,h as m,e as w,f as C,i as y,j as k,k as z,l as F,m as j,n as O,o as T,c as S,p as E}from"./p-zrBw_m7x.js";import{h as L}from"./p-qzV3vtOw.js";import{w as R}from"./p-kLXvN2m9.js";import{g as D}from"./p-Cd4R0amv.js";import{b as W}from"./p-CK42c8Uy.js";import{r as B}from"./p-D9jKBqIb.js";import{g as H}from"./p-MAoEg4ig.js";import"./p-DjLdmWVU.js";var I={filterResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown"},A=function(t,e,i,o){var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const M=class{constructor(i){t(this,i),this.guxexpanded=e(this,"guxexpanded",7),this.guxcollapsed=e(this,"guxcollapsed",7),this.guxfilter=e(this,"guxfilter",7),this.disabled=!1,this.required=!1,this.loading=!1,this.filterType="none",this.hasError=!1,this.exceedTargetWidth=!1,this.expanded=!1,this.filter=""}watchExpanded(t){!t&&this.filterElement&&(this.filter="",this.filterElement.value="")}watchValue(t){this.validateValue(t,this.listboxElement)}handleFilter(t){this.guxfilter.emit(t)}watchDisabled(t){t&&(this.expanded=!1)}onKeydown(t){switch(t.key){case"Escape":return this.isFilterable()&&document.activeElement===this.listboxElement?this.filterElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.filterElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("noFocusChange")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0,f(this.listboxElement)));case"Enter":case" ":return void(this.expanded||this.isFilterable()||f(this.listboxElement))}}onInternallistboxoptionsupdated(t){t.stopPropagation(),i(this.root)}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t),this.isFilterable()&&!this.root.contains(null==t?void 0:t.relatedTarget)&&this.filterElement.focus()}onClickOutside(){this.collapseListbox("noFocusChange")}onMutation(){var t;this.listboxElement||(this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox"),this.applyListboxEventListeners())}onInternalExpanded(t){t.stopPropagation(),this.guxexpanded.emit(),this.listboxElement&&g((()=>{this.listboxElement.focus(),this.isFilterable()&&this.filterElement&&this.filterElement.focus()}))}onInternalCollapsed(t){t.stopPropagation(),this.guxcollapsed.emit()}connectedCallback(){var t;this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox"),this.listboxElement&&this.validateValue(this.value,this.listboxElement)}async componentWillLoad(){c(this.root),this.i18n=await l(this.root,I),u(this.root,(()=>{i(this.root)}))}componentDidLoad(){this.applyListboxEventListeners()}componentWillRender(){this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.listboxElement.loading=this.loading,this.listboxElement.filterType=this.filterType,this.listboxElement.filter=this.filter)}showTooltip(){var t;null===(t=this.truncateElement)||void 0===t||t.setShowTooltip()}hideTooltip(){var t;null===(t=this.truncateElement)||void 0===t||t.setHideTooltip()}validateValue(t,e){void 0!==t?this.getOptionElementByValue(t)&&(e.value=t):e&&(e.value=t)}applyListboxEventListeners(){var t,e;null===(t=this.listboxElement)||void 0===t||t.addEventListener("input",(t=>{t.stopPropagation(),this.updateValue(t.target.value)})),null===(e=this.listboxElement)||void 0===e||e.addEventListener("change",(t=>{t.stopPropagation()}))}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}isFilterable(){return"starts-with"===this.filterType||"custom"===this.filterType}get optionElements(){return p(this.listboxElement)}getOptionElementByValue(t){return this.optionElements.find((e=>e.value===t))}fieldButtonClick(){this.expanded=!this.expanded}filterInput(t){t.stopPropagation(),this.filter=this.filterElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.isFilterable()&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.isFilterable()&&document.activeElement===this.listboxElement}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){switch(t.key){case"ArrowDown":return t.stopImmediatePropagation(),t.preventDefault(),this.listboxElement.focus(),void f(this.listboxElement);case"Enter":return this.listboxElement.guxSelectActive(),void t.preventDefault()}}filterKeyup(t){" "!==t.key||t.preventDefault()}collapseListbox(t){this.expanded&&(this.expanded=!1),"focusFieldButton"===t&&this.fieldButtonElement.focus()}updateValue(t){this.value!==t&&(this.value=t,a(this.root,"input"),a(this.root,"change")),this.collapseListbox("focusFieldButton")}getTypeaheadText(t){const e=t.length;if(e>0&&!this.loading){const i=x(this.listboxElement,t);if(i&&"custom"!==this.filterType){const t=b(i);return null==t?void 0:t.substring(e)}}return""}renderTargetDisplay(){const t=this.getOptionElementByValue(this.value);return t?o("div",{class:"gux-selected-option"},this.renderSelectedItem(t)):o("div",{class:"gux-placeholder"},this.placeholder||this.i18n("noSelection"))}renderSelectedItem(t){const e=t.tagName.toLowerCase();switch(e){case"gux-option":return this.renderOption(t);case"gux-option-icon":case"gux-option-status-beta":return this.renderIconOption(t);default:return e}}getOptionDefaultText(t){return b(t)}renderOption(t){return o("gux-truncate",{ref:t=>this.truncateElement=t,dir:"auto"},this.getOptionDefaultText(t))}renderIconOption(t){let e=null,i=t.textContent;return null!==t.iconColor&&(e={color:t.iconColor}),L(t,"subtext")&&(i=this.getOptionDefaultText(t)),o("span",{class:{"gux-selected-icon":!0,"gux-icon-position-end":"end"===t.iconPosition}},o("gux-icon",{"icon-name":t.iconName,style:e,decorative:!0,size:"small"}),o("gux-truncate",{ref:t=>this.truncateElement=t},i))}renderFilterInputField(){if(this.isFilterable())return o("div",{class:"gux-field gux-input-field",dir:"auto"},o("div",{class:"gux-field-content"},o("div",{class:"gux-filter"},o("div",{class:"gux-filter-display"},o("span",{class:"gux-filter-text"},this.filter),o("span",{class:"gux-filter-suggestion"},this.getTypeaheadText(this.filter))),o("div",{class:"input-and-dropdown-button"},o("input",{class:"gux-filter-input",type:"text","aria-label":this.i18n("filterResults"),ref:t=>this.filterElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this),onFocus:()=>this.expanded=!0,disabled:this.disabled}),this.renderTargetContent()))))}renderPopup(){return o("slot",{slot:"popup"})}renderTarget(){return o("div",{class:{"gux-target-container-filterable":this.isFilterable(),"gux-target-container-filterable-active":this.expanded&&this.isFilterable(),"gux-target-container-not-filterable":!this.isFilterable(),"gux-error":this.hasError,"gux-disabled":this.disabled},slot:"target"},this.renderFilterInputField(),o("button",{type:"button",class:"gux-field gux-field-button",disabled:d(this.root),onClick:this.fieldButtonClick.bind(this),onFocusin:this.showTooltip.bind(this),onFocusout:this.hideTooltip.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},!this.isFilterable()&&this.renderTargetContent(),this.renderRadialLoading(),o("gux-icon",{class:{"gux-expand-icon":!0},"screenreader-text":this.i18n("dropdown"),size:"small",iconName:this.expanded?"custom/chevron-up-small-regular":"custom/chevron-down-small-regular"})))}renderTargetContent(){if(!this.expanded||!this.isFilterable())return o("div",{class:"gux-field-content"},this.renderTargetDisplay())}renderRadialLoading(){if(this.loading&&!this.expanded)return o("gux-radial-loading",{context:"input"})}render(){return o("gux-popup",{key:"1132809cbe653cbcc917a87ce921448e6e135bdc",expanded:this.expanded&&(!this.loading||this.isFilterable()),disabled:this.disabled||this.loading&&!this.isFilterable(),exceedTargetWidth:this.exceedTargetWidth},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return r(this)}static get watchers(){return{expanded:["watchExpanded"],value:["watchValue"],filter:["handleFilter"],disabled:["watchDisabled"]}}};A([n({triggerEvents:"mousedown"})],M.prototype,"onClickOutside",null),A([h({childList:!0,subtree:!0})],M.prototype,"onMutation",null),M.style=":host{box-sizing:border-box;color:var(--gse-ui-formControl-input-populatedColor)}.gux-field,.gux-target-container-filterable{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center;inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);cursor:pointer;background-color:var(--gse-ui-formControl-input-backgroundColor)}.gux-target-container-filterable,.gux-target-container-not-filterable .gux-field{padding:var(--gse-ui-formControl-input-padding)}.gux-error.gux-target-container-not-filterable .gux-field-button,.gux-error.gux-target-container-filterable{border:var(--gse-ui-formControl-input-error-border-width) var(--gse-ui-formControl-input-error-border-style) var(--gse-ui-formControl-input-error-border-color)}.gux-disabled.gux-target-container-not-filterable .gux-field-button,.gux-disabled.gux-target-container-filterable{user-select:none;border:var(--gse-ui-formControl-input-disabled-border-width) var(--gse-ui-formControl-input-disabled-border-style) var(--gse-ui-formControl-input-disabled-border-color)}.gux-target-container-not-filterable .gux-field-button:hover,.gux-target-container-filterable:hover{border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-field.gux-input-field{block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content{--gux-zindex-tooltip:3;display:flex;flex:1 1 0;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;min-inline-size:0;block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content .gux-filter,.gux-field .gux-field-content .gux-selected-option,.gux-field .gux-field-content .gux-placeholder{flex:1 1 auto;align-self:auto;order:0;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter{position:relative;block-size:100%}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;inline-size:100%;color:transparent;caret-color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-display{white-space:pre}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{color:var(--gse-ui-formControl-input-suggestionColor)}.gux-field .gux-field-content .gux-filter .gux-filter-input,.gux-field .gux-field-content .gux-filter .gux-filter-display{position:absolute}.gux-field .gux-field-content .gux-placeholder{color:var(--gse-ui-formControl-input-placeholderColor)}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;padding-inline-start:var(--gse-ui-dropdown-gap);color:var(--gse-ui-formControl-input-inputIcon-iconEndColor)}.gux-target-container-filterable{border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-filterable.gux-target-container-filterable-active{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-filterable:focus-visible{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-filterable:focus-within:has(:focus-visible){outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-filterable .gux-filter-input{background-color:inherit;border:none}.gux-target-container-filterable .gux-filter-input:focus{outline:none;border:none}.gux-target-container-filterable .gux-filter-input::selection{color:inherit;background:transparent;}.gux-target-container-filterable .gux-field-button{inline-size:auto;block-size:var(--gse-ui-formControl-input-contentText-lineHeight);margin:0;outline:none;background:inherit;border:none;box-shadow:none}.gux-target-container-filterable .gux-field-button:focus{outline:none}.gux-target-container-not-filterable .gux-field-button{border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-not-filterable .gux-field-button:focus-visible{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-not-filterable .gux-field-button:focus-within:has(:focus-visible){outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}::slotted(gux-listbox){outline:none;box-shadow:var(--gse-ui-menu-boxShadow)}.gux-selected-icon{display:flex;flex-direction:row;align-items:center}.gux-selected-icon.gux-icon-position-end{flex-direction:row-reverse}.gux-selected-icon gux-icon{padding-inline-end:var(--gse-ui-dropdown-gap)}";const K=["gux-option","gux-option-icon","gux-option-status-beta"].join(",");var V={noMatches:"No matches",loading:"Loading..."};const _=class{constructor(i){t(this,i),this.internallistboxoptionsupdated=e(this,"internallistboxoptionsupdated",7),this.loading=!1,this.filter="",this.filterType="none",this.disabled=!1,this.selectedValues=[],this.listboxOptions=[]}onBlur(){v(this.root)}onKeydown(t){if(!m(this.root))return t.preventDefault(),void f(this.root);switch(t.key){case"Enter":return t.preventDefault(),void j(this.root,(t=>this.updateValue(t)));case"ArrowDown":return t.preventDefault(),void(z(this.root)?(t.stopPropagation(),F(this.root)):C(this.root));case"ArrowUp":return t.preventDefault(),void(y(this.root)?(t.stopPropagation(),k(this.root)):w(this.root));case"Home":return t.preventDefault(),void C(this.root);case"End":return t.preventDefault(),void w(this.root);case" ":return void t.preventDefault()}1!==t.key.length||O(this.root,t.key)}onKeyup(t){" "!==t.key||j(this.root,(t=>this.updateValue(t)))}onMousemove(){v(this.root)}onClick(t){R(K,t,(t=>{T(t,(t=>this.updateValue(t)))}))}async guxSelectActive(){j(this.root,(t=>this.updateValue(t)))}setListboxOptions(){this.selectedValues=S(this.value),this.listboxOptions=p(this.root),this.internallistboxoptionsupdated.emit()}updateValue(t){this.value!==t&&(this.value=t),a(this.root,"input"),a(this.root,"change")}async componentWillLoad(){c(this.root),this.i18n=await l(this.root,V),this.setListboxOptions()}componentWillRender(){this.listboxOptions.forEach((t=>{t.selected=t.value===this.value,"custom"!==this.filterType&&"none"!==this.filterType&&(t.filtered=!E(t,this.filter))})),this.allListboxOptionsFiltered=0===this.listboxOptions.filter((t=>!t.filtered)).length}renderHiddenSlot(){return o("div",{hidden:!0},o("slot",{onSlotchange:()=>this.setListboxOptions()}))}renderLoading(){return[o("div",{class:"gux-message-container"},o("gux-radial-loading",{context:"modal"}),o("span",null,this.i18n("loading"))),this.renderHiddenSlot()]}renderAllListboxOptionsFiltered(){return[o("div",{class:"gux-message-container"},o("div",{class:"gux-no-matches"},this.emptyMessage||this.i18n("noMatches"))),this.renderHiddenSlot()]}render(){return this.loading?this.renderLoading():this.allListboxOptionsFiltered?this.renderAllListboxOptionsFiltered():o(s,{role:"listbox",tabindex:0},o("slot",{onSlotchange:()=>this.setListboxOptions()}))}get root(){return r(this)}};_.style=":host{scrollbar-color:var(--gse-ui-menu-border-color) transparent;scrollbar-width:thin;box-sizing:border-box;display:block;max-block-size:var(--gse-ui-menu-maxHeight);padding:var(--gse-ui-menu-padding);margin:0;overflow:visible auto;outline:none;background:var(--gse-ui-menu-backgroundColor);border:var(--gse-ui-menu-border-width) var(--gse-ui-menu-border-style) var(--gse-ui-menu-border-color);border-radius:var(--gse-ui-menu-borderRadius)}:host(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-ui-color-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-message-container{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch center;align-items:center;text-align:center}.gux-message-container .gux-no-matches{box-sizing:border-box;block-size:var(--gse-ui-menu-option-height);padding-block:var(--gse-ui-dropdown-gap);font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor)}";const N=class{constructor(e){t(this,e),this.active=!1,this.selected=!1,this.disabled=!1,this.filtered=!1,this.hasSubtext=!1}handleActive(t){var e,i;t?null===(e=this.truncateElement)||void 0===e||e.setShowTooltip():null===(i=this.truncateElement)||void 0===i||i.setHideTooltip()}componentWillLoad(){this.root.id=this.root.id||B("gux-option"),this.onSubtextChange()}onSubtextChange(){const t=H(this.root,"subtext");this.hasSubtext=!!(null==t?void 0:t.trim())}getAriaSelected(){return!this.disabled&&(this.selected?"true":"false")}hasDisabledParent(){const t=D("gux-listbox",this.root);return null==t?void 0:t.disabled}render(){return o(s,{key:"3b32039f09c90fe88bdafcb3597943337ae79ff4",role:"option",class:{"gux-active":this.active,"gux-disabled":this.disabled||this.hasDisabledParent(),"gux-filtered":this.filtered,"gux-selected":this.selected,"gux-show-subtext":this.hasSubtext},"aria-selected":this.getAriaSelected(),"aria-disabled":W(this.disabled||this.hasDisabledParent())},o("div",{key:"e12ee238fe0bf8b88ea2ff9c422ff7a53a4f92cc",class:"gux-option-wrapper"},o("gux-truncate",{key:"07bf888b0cb355764fe8aa4343f84395389ac32a","tooltip-placement":"right",ref:t=>this.truncateElement=t},o("slot",{key:"632f29668ec685018e381967833e9ac0e22e6991"})),o("slot",{key:"3f6c9039cbcccc0002d21913ce2f253fd149b70a",onSlotchange:()=>this.onSubtextChange(),name:"subtext"})))}get root(){return r(this)}static get watchers(){return{active:["handleActive"]}}};N.style=":host{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-menu-option-gap);place-content:stretch center;align-items:center;block-size:var(--gse-ui-menu-option-height);min-block-size:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);font-family:var(--gse-ui-menu-option-label-default-text-fontFamily);font-size:var(--gse-ui-menu-option-label-default-text-fontSize);font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);overflow-wrap:break-word;cursor:pointer}:host .gux-option-wrapper{inline-size:100%;user-select:none}:host .gux-slot-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.gux-disabled){pointer-events:none;cursor:default;opacity:var(--gse-ui-menu-option-disabled-opacity)}:host(.gux-selected){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);background:var(--gse-ui-menu-option-selected-backgroundColor)}:host(:active:not(:disabled)){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight)}:host(.gux-active){outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);outline-offset:-2px;border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}:host(.gux-show-subtext){align-items:flex-start;block-size:auto;padding:var(--gse-ui-menu-option-subtext-padding)}:host(.gux-show-subtext) .gux-option-wrapper{display:flex;flex-direction:column}:host(.gux-show-subtext) slot[name=subtext]::slotted(*){font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);color:var(--gse-ui-menu-groupedMenu-subtext-foregroundColor)}:host(:hover:not(:disabled)){background:var(--gse-ui-menu-option-hover-backgroundColor)}:host(.gux-filtered){display:none}";export{M as gux_dropdown,_ as gux_listbox,N as gux_option}
1
+ import{r as t,c as e,f as i,h as o,a as r,H as s}from"./p-mm833MRp.js";import{O as n}from"./p-CuMZPTZF.js";import{b as l}from"./p-D_8CR3cJ.js";import{s as a}from"./p-BMRf5pjV.js";import{o as u,c as d}from"./p-Cb3FOYGS.js";import{b as g}from"./p-Bg4q97BS.js";import{t as c}from"./p-CngQjjYl.js";import{O as h}from"./p-1mmdDpx8.js";import{s as f,b as p,g as x,a as b,d as v,h as m,e as w,f as C,i as y,j as k,k as z,l as F,m as j,n as O,o as T,c as S,p as E}from"./p-zrBw_m7x.js";import{h as L}from"./p-qzV3vtOw.js";import{w as R}from"./p-kLXvN2m9.js";import{g as D}from"./p-Cd4R0amv.js";import{b as W}from"./p-CK42c8Uy.js";import{r as B}from"./p-D9jKBqIb.js";import{g as H}from"./p-MAoEg4ig.js";import"./p-DjLdmWVU.js";var I={filterResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown"},A=function(t,e,i,o){var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const M=class{constructor(i){t(this,i),this.guxexpanded=e(this,"guxexpanded",7),this.guxcollapsed=e(this,"guxcollapsed",7),this.guxfilter=e(this,"guxfilter",7),this.disabled=!1,this.required=!1,this.loading=!1,this.filterType="none",this.hasError=!1,this.exceedTargetWidth=!1,this.expanded=!1,this.filter=""}watchExpanded(t){!t&&this.filterElement&&(this.filter="",this.filterElement.value="")}watchValue(t){this.validateValue(t,this.listboxElement)}handleFilter(t){this.guxfilter.emit(t)}watchDisabled(t){t&&(this.expanded=!1)}onKeydown(t){switch(t.key){case"Escape":return this.isFilterable()&&document.activeElement===this.listboxElement?this.filterElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.filterElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("noFocusChange")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0,f(this.listboxElement)));case"Enter":case" ":return void(this.expanded||this.isFilterable()||f(this.listboxElement))}}onInternallistboxoptionsupdated(t){t.stopPropagation(),i(this.root)}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t),this.isFilterable()&&!this.root.contains(null==t?void 0:t.relatedTarget)&&this.filterElement.focus()}onClickOutside(){this.collapseListbox("noFocusChange")}onMutation(){var t;this.listboxElement||(this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox"),this.applyListboxEventListeners())}onInternalExpanded(t){t.stopPropagation(),this.guxexpanded.emit(),this.listboxElement&&g((()=>{this.listboxElement.focus(),this.isFilterable()&&this.filterElement&&this.filterElement.focus()}))}onInternalCollapsed(t){t.stopPropagation(),this.guxcollapsed.emit()}connectedCallback(){var t;this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox"),this.listboxElement&&this.validateValue(this.value,this.listboxElement)}async componentWillLoad(){c(this.root),this.i18n=await l(this.root,I),u(this.root,(()=>{i(this.root)}))}componentDidLoad(){this.applyListboxEventListeners()}componentWillRender(){this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.listboxElement.loading=this.loading,this.listboxElement.filterType=this.filterType,this.listboxElement.filter=this.filter)}showTooltip(){var t;null===(t=this.truncateElement)||void 0===t||t.setShowTooltip()}hideTooltip(){var t;null===(t=this.truncateElement)||void 0===t||t.setHideTooltip()}validateValue(t,e){void 0!==t?this.getOptionElementByValue(t)&&(e.value=t):e&&(e.value=t)}applyListboxEventListeners(){var t,e;null===(t=this.listboxElement)||void 0===t||t.addEventListener("input",(t=>{t.stopPropagation(),this.updateValue(t.target.value)})),null===(e=this.listboxElement)||void 0===e||e.addEventListener("change",(t=>{t.stopPropagation()}))}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}isFilterable(){return"starts-with"===this.filterType||"custom"===this.filterType}get optionElements(){return p(this.listboxElement)}getOptionElementByValue(t){return this.optionElements.find((e=>e.value===t))}fieldButtonClick(){this.expanded=!this.expanded}filterInput(t){t.stopPropagation(),this.filter=this.filterElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.isFilterable()&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.isFilterable()&&document.activeElement===this.listboxElement}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){switch(t.key){case"ArrowDown":return t.stopImmediatePropagation(),t.preventDefault(),this.listboxElement.focus(),void f(this.listboxElement);case"Enter":return this.listboxElement.guxSelectActive(),void t.preventDefault()}}filterKeyup(t){" "!==t.key||t.preventDefault()}collapseListbox(t){this.expanded&&(this.expanded=!1),"focusFieldButton"===t&&this.fieldButtonElement.focus()}updateValue(t){this.value!==t&&(this.value=t,a(this.root,"input"),a(this.root,"change")),this.collapseListbox("focusFieldButton")}getTypeaheadText(t){const e=t.length;if(e>0&&!this.loading){const i=x(this.listboxElement,t);if(i&&"custom"!==this.filterType){const t=b(i);return null==t?void 0:t.substring(e)}}return""}renderTargetDisplay(){const t=this.getOptionElementByValue(this.value);return t?o("div",{class:"gux-selected-option"},this.renderSelectedItem(t)):o("div",{class:"gux-placeholder"},this.placeholder||this.i18n("noSelection"))}renderSelectedItem(t){const e=t.tagName.toLowerCase();switch(e){case"gux-option":return this.renderOption(t);case"gux-option-icon":case"gux-option-status-beta":return this.renderIconOption(t);default:return e}}getOptionDefaultText(t){return b(t)}renderOption(t){return o("gux-truncate",{ref:t=>this.truncateElement=t,dir:"auto"},this.getOptionDefaultText(t))}renderIconOption(t){let e=null,i=t.textContent;return null!==t.iconColor&&(e={color:t.iconColor}),L(t,"subtext")&&(i=this.getOptionDefaultText(t)),o("span",{class:{"gux-selected-icon":!0,"gux-icon-position-end":"end"===t.iconPosition}},o("gux-icon",{"icon-name":t.iconName,style:e,decorative:!0,size:"small"}),o("gux-truncate",{ref:t=>this.truncateElement=t},i))}renderFilterInputField(){if(this.isFilterable())return o("div",{class:"gux-field gux-input-field",dir:"auto"},o("div",{class:"gux-field-content"},o("div",{class:"gux-filter"},o("div",{class:"gux-filter-display"},o("span",{class:"gux-filter-text"},this.filter),o("span",{class:"gux-filter-suggestion"},this.getTypeaheadText(this.filter))),o("div",{class:"input-and-dropdown-button"},o("input",{class:"gux-filter-input",type:"text","aria-label":this.i18n("filterResults"),ref:t=>this.filterElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this),onFocus:()=>this.expanded=!0,disabled:this.disabled}),this.renderTargetContent()))))}renderPopup(){return o("slot",{slot:"popup"})}renderTarget(){return o("div",{class:{"gux-target-container-filterable":this.isFilterable(),"gux-target-container-filterable-active":this.expanded&&this.isFilterable(),"gux-target-container-not-filterable":!this.isFilterable(),"gux-error":this.hasError,"gux-disabled":this.disabled},slot:"target"},this.renderFilterInputField(),o("button",{type:"button",class:"gux-field gux-field-button",disabled:d(this.root),onClick:this.fieldButtonClick.bind(this),onFocusin:this.showTooltip.bind(this),onFocusout:this.hideTooltip.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},!this.isFilterable()&&this.renderTargetContent(),this.renderRadialLoading(),o("gux-icon",{class:{"gux-expand-icon":!0},"screenreader-text":this.i18n("dropdown"),size:"small",iconName:this.expanded?"custom/chevron-up-small-regular":"custom/chevron-down-small-regular"})))}renderTargetContent(){if(!this.expanded||!this.isFilterable())return o("div",{class:"gux-field-content"},this.renderTargetDisplay())}renderRadialLoading(){if(this.loading&&!this.expanded)return o("gux-radial-loading",{context:"input"})}render(){return o("gux-popup",{key:"1132809cbe653cbcc917a87ce921448e6e135bdc",expanded:this.expanded&&(!this.loading||this.isFilterable()),disabled:this.disabled||this.loading&&!this.isFilterable(),exceedTargetWidth:this.exceedTargetWidth},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return r(this)}static get watchers(){return{expanded:["watchExpanded"],value:["watchValue"],filter:["handleFilter"],disabled:["watchDisabled"]}}};A([n({triggerEvents:"mousedown"})],M.prototype,"onClickOutside",null),A([h({childList:!0,subtree:!0})],M.prototype,"onMutation",null),M.style=":host{box-sizing:border-box;color:var(--gse-ui-formControl-input-populatedColor)}.gux-field,.gux-target-container-filterable{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center;inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);cursor:pointer;background-color:var(--gse-ui-formControl-input-backgroundColor)}.gux-target-container-filterable,.gux-target-container-not-filterable .gux-field{padding:var(--gse-ui-formControl-input-padding)}.gux-error.gux-target-container-not-filterable .gux-field-button,.gux-error.gux-target-container-filterable{border:var(--gse-ui-formControl-input-error-border-width) var(--gse-ui-formControl-input-error-border-style) var(--gse-ui-formControl-input-error-border-color)}.gux-disabled.gux-target-container-not-filterable .gux-field-button,.gux-disabled.gux-target-container-filterable{user-select:none;border:var(--gse-ui-formControl-input-disabled-border-width) var(--gse-ui-formControl-input-disabled-border-style) var(--gse-ui-formControl-input-disabled-border-color)}.gux-target-container-not-filterable .gux-field-button:hover,.gux-target-container-filterable:hover{border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-field.gux-input-field{block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content{--gux-zindex-tooltip:3;display:flex;flex:1 1 0;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;min-inline-size:0;block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content .gux-filter,.gux-field .gux-field-content .gux-selected-option,.gux-field .gux-field-content .gux-placeholder{flex:1 1 auto;align-self:auto;order:0;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter{position:relative;block-size:100%}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;inline-size:100%;color:transparent;caret-color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-display{white-space:pre}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{color:var(--gse-ui-formControl-input-suggestionColor)}.gux-field .gux-field-content .gux-filter .gux-filter-input,.gux-field .gux-field-content .gux-filter .gux-filter-display{position:absolute}.gux-field .gux-field-content .gux-placeholder{color:var(--gse-ui-formControl-input-placeholderColor)}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;padding-inline-start:var(--gse-ui-dropdown-gap);color:var(--gse-ui-formControl-input-inputIcon-iconEndColor)}.gux-target-container-filterable{border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-filterable.gux-target-container-filterable-active{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-filterable:focus-visible{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-filterable:focus-within:has(:focus-visible){outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-filterable .gux-filter-input{background-color:inherit;border:none}.gux-target-container-filterable .gux-filter-input:focus{outline:none;border:none}.gux-target-container-filterable .gux-filter-input::selection{color:inherit;background:transparent;}.gux-target-container-filterable .gux-field-button{inline-size:auto;block-size:var(--gse-ui-formControl-input-contentText-lineHeight);margin:0;outline:none;background:inherit;border:none;box-shadow:none}.gux-target-container-filterable .gux-field-button:focus{outline:none}.gux-target-container-not-filterable .gux-field-button{border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-not-filterable .gux-field-button:focus-visible{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-not-filterable .gux-field-button:focus-within:has(:focus-visible){outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}::slotted(gux-listbox){outline:none;box-shadow:var(--gse-ui-menu-boxShadow)}.gux-selected-icon{display:flex;flex-direction:row;align-items:center}.gux-selected-icon.gux-icon-position-end{flex-direction:row-reverse}.gux-selected-icon gux-icon{padding-inline-end:var(--gse-ui-dropdown-gap)}";const K=["gux-option","gux-option-icon","gux-option-status-beta"].join(",");var V={noMatches:"No matches",loading:"Loading..."};const _=class{constructor(i){t(this,i),this.internallistboxoptionsupdated=e(this,"internallistboxoptionsupdated",7),this.loading=!1,this.filter="",this.filterType="none",this.disabled=!1,this.selectedValues=[],this.listboxOptions=[]}onBlur(){v(this.root)}onKeydown(t){if(!m(this.root))return t.preventDefault(),void f(this.root);switch(t.key){case"Enter":return t.preventDefault(),void j(this.root,(t=>this.updateValue(t)));case"ArrowDown":return t.preventDefault(),void(z(this.root)?(t.stopPropagation(),F(this.root)):C(this.root));case"ArrowUp":return t.preventDefault(),void(y(this.root)?(t.stopPropagation(),k(this.root)):w(this.root));case"Home":return t.preventDefault(),void C(this.root);case"End":return t.preventDefault(),void w(this.root);case" ":return void t.preventDefault()}1!==t.key.length||O(this.root,t.key)}onKeyup(t){" "!==t.key||j(this.root,(t=>this.updateValue(t)))}onMousemove(){v(this.root)}onClick(t){R(K,t,(t=>{T(t,(t=>this.updateValue(t)))}))}async guxSelectActive(){j(this.root,(t=>this.updateValue(t)))}setListboxOptions(){this.selectedValues=S(this.value),this.listboxOptions=p(this.root),this.internallistboxoptionsupdated.emit()}updateValue(t){this.value!==t&&(this.value=t),a(this.root,"input"),a(this.root,"change")}async componentWillLoad(){c(this.root),this.i18n=await l(this.root,V),this.setListboxOptions()}componentWillRender(){this.listboxOptions.forEach((t=>{t.selected=t.value===this.value,"custom"!==this.filterType&&"none"!==this.filterType&&(t.filtered=!E(t,this.filter))})),this.allListboxOptionsFiltered=0===this.listboxOptions.filter((t=>!t.filtered)).length}renderHiddenSlot(){return o("div",{hidden:!0},o("slot",{onSlotchange:()=>this.setListboxOptions()}))}renderLoading(){return[o("div",{class:"gux-message-container"},o("gux-radial-loading",{context:"modal"}),o("span",null,this.i18n("loading"))),this.renderHiddenSlot()]}renderAllListboxOptionsFiltered(){return[o("div",{class:"gux-message-container"},o("div",{class:"gux-no-matches"},this.emptyMessage||this.i18n("noMatches"))),this.renderHiddenSlot()]}render(){return this.loading?this.renderLoading():this.allListboxOptionsFiltered?this.renderAllListboxOptionsFiltered():o(s,{role:"listbox",tabindex:0},o("slot",{onSlotchange:()=>this.setListboxOptions()}))}get root(){return r(this)}};_.style=":host{scrollbar-color:var(--gse-ui-menu-border-color) transparent;scrollbar-width:thin;box-sizing:border-box;display:block;max-block-size:var(--gse-ui-menu-maxHeight);padding:var(--gse-ui-menu-padding);margin:0;overflow:visible auto;outline:none;background:var(--gse-ui-menu-backgroundColor);border:var(--gse-ui-menu-border-width) var(--gse-ui-menu-border-style) var(--gse-ui-menu-border-color);border-radius:var(--gse-ui-menu-borderRadius)}:host(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-ui-color-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-message-container{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch center;align-items:center;text-align:center}.gux-message-container .gux-no-matches{box-sizing:border-box;block-size:var(--gse-ui-menu-option-height);padding-block:var(--gse-ui-dropdown-gap);font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor)}";const N=class{constructor(e){t(this,e),this.active=!1,this.selected=!1,this.disabled=!1,this.filtered=!1,this.hasSubtext=!1}handleActive(t){var e,i;t?null===(e=this.truncateElement)||void 0===e||e.setShowTooltip():null===(i=this.truncateElement)||void 0===i||i.setHideTooltip()}componentWillLoad(){this.root.id=this.root.id||B("gux-option"),this.onSubtextChange()}onSubtextChange(){const t=H(this.root,"subtext");this.hasSubtext=!!(null==t?void 0:t.trim())}getAriaSelected(){return!this.disabled&&(this.selected?"true":"false")}hasDisabledParent(){const t=D("gux-listbox",this.root);return null==t?void 0:t.disabled}render(){return o(s,{key:"3b32039f09c90fe88bdafcb3597943337ae79ff4",role:"option",class:{"gux-active":this.active,"gux-disabled":this.disabled||this.hasDisabledParent(),"gux-filtered":this.filtered,"gux-selected":this.selected,"gux-show-subtext":this.hasSubtext},"aria-selected":this.getAriaSelected(),"aria-disabled":W(this.disabled||this.hasDisabledParent())},o("div",{key:"e12ee238fe0bf8b88ea2ff9c422ff7a53a4f92cc",class:"gux-option-wrapper"},o("gux-truncate",{key:"07bf888b0cb355764fe8aa4343f84395389ac32a","tooltip-placement":"right",ref:t=>this.truncateElement=t},o("slot",{key:"632f29668ec685018e381967833e9ac0e22e6991"})),o("slot",{key:"3f6c9039cbcccc0002d21913ce2f253fd149b70a",onSlotchange:()=>this.onSubtextChange(),name:"subtext"})))}get root(){return r(this)}static get watchers(){return{active:["handleActive"]}}};N.style=":host{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-menu-option-gap);place-content:stretch center;align-items:center;block-size:var(--gse-ui-menu-option-height);min-block-size:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);font-family:var(--gse-ui-menu-option-label-default-text-fontFamily);font-size:var(--gse-ui-menu-option-label-default-text-fontSize);font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);overflow-wrap:break-word;cursor:pointer}:host .gux-option-wrapper{inline-size:100%;user-select:none}:host .gux-slot-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.gux-disabled){pointer-events:none;cursor:default;opacity:var(--gse-ui-menu-option-disabled-opacity)}:host(.gux-selected){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);background:var(--gse-ui-menu-option-selected-backgroundColor)}:host(:active:not(:disabled)){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight)}:host(.gux-active){outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);outline-offset:-2px;border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}:host(.gux-show-subtext){align-items:flex-start;block-size:auto;padding:var(--gse-ui-menu-option-subtext-padding)}:host(.gux-show-subtext) .gux-option-wrapper{display:flex;flex-direction:column}:host(.gux-show-subtext) slot[name=subtext]::slotted(*){font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);color:var(--gse-ui-menu-groupedMenu-subtext-foregroundColor)}:host(:hover:not(:disabled)){background:var(--gse-ui-menu-option-hover-backgroundColor)}:host(.gux-filtered){display:none}";export{M as gux_dropdown,_ as gux_listbox,N as gux_option}
@@ -1 +1 @@
1
- import{r as t,f as s,h as e,H as a,a as i}from"./p-mm833MRp.js";import{t as r}from"./p-B6h1eXrW.js";import{s as h}from"./p-BMRf5pjV.js";import{h as o,s as c,f as n,c as l,d,e as f,i as m,j as p,k as u,l as b,m as g,t as k,n as w,o as v}from"./p-KbW44rlb.js";import"./p-kLXvN2m9.js";const x=class{constructor(s){t(this,s),s.$hostElement$["s-ei"]?this.internals=s.$hostElement$["s-ei"]:(this.internals=s.$hostElement$.attachInternals(),s.$hostElement$["s-ei"]=this.internals),this.value="",this._disabled=!1,this.size="comfy",this.alignment="start"}get disabled(){return this._disabled||o(this.root)}set disabled(t){this._disabled=t}handleValueChange(t,s){var e;(null===(e=this.internals)||void 0===e?void 0:e.setFormValue)&&this.internals.setFormValue(t),c(this.root,this.value),h(this.root,"input"),s!==t&&h(this.root,"change"),n(this.root)}handleDisabledChange(){this.disabled?l(this.root):d(this.root),n(this.root)}onClick(t){this.disabled||f({event:t,onLeaf:s=>{this.isSelectionClick(t)&&k(this.root,s)},onBranch:s=>{this.isSelectionClick(t)?k(this.root,s):s.expanded=!s.expanded}})}handleKeydown(t){if(!this.disabled)switch(t.key){case"ArrowDown":t.preventDefault(),b(this.root);break;case"ArrowUp":t.preventDefault(),u(this.root);break;case"Home":t.preventDefault(),p(this.root);break;case"End":t.preventDefault(),m(this.root);break;case"ArrowLeft":case"ArrowRight":case"Enter":case" ":f({event:t,onLeaf:s=>{switch(t.key){case"ArrowLeft":t.preventDefault(),w(this.root);break;case"Enter":case" ":t.preventDefault(),k(this.root,s)}},onBranch:s=>{switch(t.key){case"ArrowRight":t.preventDefault(),s.expanded?v(this.root):s.expanded=!0;break;case"ArrowLeft":t.preventDefault(),s.expanded?s.expanded=!1:w(this.root);break;case"Enter":case" ":t.preventDefault(),k(this.root,s)}}});break;default:return}}formAssociatedCallback(t){console.info("Form associated:",t)}formDisabledCallback(){n(this.root)}formResetCallback(){this.value=""}formStateRestoreCallback(t){this.value=t}componentWillLoad(){var t;r(this.root),this.internals.role="tree",this.root.setAttribute("role","tree"),this.internals.ariaMultiSelectable="true",this.root.setAttribute("aria-multiselectable","true"),(null===(t=this.internals)||void 0===t?void 0:t.setFormValue)&&this.internals.setFormValue(this.value),g(this.root,this.value),d(this.root)}componentDidLoad(){this.handleDisabledChange()}onDefaultSlotchange(){s(this.root)}isSelectionClick(t){const s=t.composedPath(),e=["gux-selection-target"];return s.some((t=>{const s=t;return s.classList&&e.some((t=>s.classList.contains(t)))}))}render(){return e(a,{key:"5edaf56dfa82d2d0f6f0fe0b1e250a9954f66ceb",class:{"gux-compact":"compact"===this.size,"gux-end":"end"===this.alignment},"aria-disabled":this.disabled?"true":"false"},e("slot",{key:"b2f6ad72b2b3caa953625e95de1b3c7b7cb35819",onSlotchange:()=>this.onDefaultSlotchange()}))}static get formAssociated(){return!0}get root(){return i(this)}static get watchers(){return{value:["handleValueChange"],disabled:["handleDisabledChange"]}}};x.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;gap:var(--gse-ui-treeView-item-internalGap);place-content:stretch flex-start;align-items:stretch;padding:var(--gse-ui-treeView-group-comfy-padding)}:host(.gux-compact){padding:var(--gse-ui-treeView-group-compact-padding)}";export{x as gux_tree_multi_beta}
1
+ import{r as t,f as s,h as e,H as a,a as i}from"./p-mm833MRp.js";import{t as r}from"./p-CngQjjYl.js";import{s as h}from"./p-BMRf5pjV.js";import{h as o,s as c,f as n,c as l,d,e as f,i as m,j as p,k as u,l as b,m as g,t as k,n as w,o as v}from"./p-KbW44rlb.js";import"./p-kLXvN2m9.js";const C=class{constructor(s){t(this,s),s.$hostElement$["s-ei"]?this.internals=s.$hostElement$["s-ei"]:(this.internals=s.$hostElement$.attachInternals(),s.$hostElement$["s-ei"]=this.internals),this.value="",this._disabled=!1,this.size="comfy",this.alignment="start"}get disabled(){return this._disabled||o(this.root)}set disabled(t){this._disabled=t}handleValueChange(t,s){var e;(null===(e=this.internals)||void 0===e?void 0:e.setFormValue)&&this.internals.setFormValue(t),c(this.root,this.value),h(this.root,"input"),s!==t&&h(this.root,"change"),n(this.root)}handleDisabledChange(){this.disabled?l(this.root):d(this.root),n(this.root)}onClick(t){this.disabled||f({event:t,onLeaf:s=>{this.isSelectionClick(t)&&k(this.root,s)},onBranch:s=>{this.isSelectionClick(t)?k(this.root,s):s.expanded=!s.expanded}})}handleKeydown(t){if(!this.disabled)switch(t.key){case"ArrowDown":t.preventDefault(),b(this.root);break;case"ArrowUp":t.preventDefault(),u(this.root);break;case"Home":t.preventDefault(),p(this.root);break;case"End":t.preventDefault(),m(this.root);break;case"ArrowLeft":case"ArrowRight":case"Enter":case" ":f({event:t,onLeaf:s=>{switch(t.key){case"ArrowLeft":t.preventDefault(),w(this.root);break;case"Enter":case" ":t.preventDefault(),k(this.root,s)}},onBranch:s=>{switch(t.key){case"ArrowRight":t.preventDefault(),s.expanded?v(this.root):s.expanded=!0;break;case"ArrowLeft":t.preventDefault(),s.expanded?s.expanded=!1:w(this.root);break;case"Enter":case" ":t.preventDefault(),k(this.root,s)}}});break;default:return}}formAssociatedCallback(t){console.info("Form associated:",t)}formDisabledCallback(){n(this.root)}formResetCallback(){this.value=""}formStateRestoreCallback(t){this.value=t}componentWillLoad(){var t;r(this.root),this.internals.role="tree",this.root.setAttribute("role","tree"),this.internals.ariaMultiSelectable="true",this.root.setAttribute("aria-multiselectable","true"),(null===(t=this.internals)||void 0===t?void 0:t.setFormValue)&&this.internals.setFormValue(this.value),g(this.root,this.value),d(this.root)}componentDidLoad(){this.handleDisabledChange()}onDefaultSlotchange(){s(this.root)}isSelectionClick(t){const s=t.composedPath(),e=["gux-selection-target"];return s.some((t=>{const s=t;return s.classList&&e.some((t=>s.classList.contains(t)))}))}render(){return e(a,{key:"5edaf56dfa82d2d0f6f0fe0b1e250a9954f66ceb",class:{"gux-compact":"compact"===this.size,"gux-end":"end"===this.alignment},"aria-disabled":this.disabled?"true":"false"},e("slot",{key:"b2f6ad72b2b3caa953625e95de1b3c7b7cb35819",onSlotchange:()=>this.onDefaultSlotchange()}))}static get formAssociated(){return!0}get root(){return i(this)}static get watchers(){return{value:["handleValueChange"],disabled:["handleDisabledChange"]}}};C.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;gap:var(--gse-ui-treeView-item-internalGap);place-content:stretch flex-start;align-items:stretch;padding:var(--gse-ui-treeView-group-comfy-padding)}:host(.gux-compact){padding:var(--gse-ui-treeView-group-compact-padding)}";export{C as gux_tree_multi_beta}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,H as s,a as o}from"./p-mm833MRp.js";import{O as a}from"./p-CuMZPTZF.js";import{t as c}from"./p-CngQjjYl.js";import{b as r}from"./p-D_8CR3cJ.js";import{t as n}from"./p-DN3YAdAX.js";import{b as l}from"./p-Bg4q97BS.js";import{h as p}from"./p-wqCHc7t7.js";import"./p-Cd4R0amv.js";import"./p-DCZG2J0G.js";const d=class{constructor(i){t(this,i),this.linkOptions=e(this,"linkOptions",7),this.disabled=!1,this.active=!1,this.isOpen=!1}get isActive(){return this.active}set isActive(t){this.active=t}onClickOutside(){this.isOpen=!1}onFocusOut(t){this.root.contains(t.relatedTarget)||(this.isOpen=!1)}handleKeydown(t){const e=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,this.actionButton.focus();break;case"ArrowDown":case"Enter":e.includes(this.actionButton)&&(t.preventDefault(),this.isOpen=!0,this.focusTextToDisplayInputElement())}}async componentWillLoad(){c(this.root),this.i18n=await r(this.root,n)}emitLinkOptions(){this.linkOptions.emit({textToDisplay:this.textToDisplayInputElement.value,href:this.linkAddressInputElement.value}),this.textToDisplayInputElement.value=null,this.linkAddressInputElement.value=null,this.isOpen=!1}togglePopover(){this.isOpen=!this.isOpen,this.isOpen?this.focusTextToDisplayInputElement():this.actionButton.focus()}focusTextToDisplayInputElement(){l((()=>{this.textToDisplayInputElement.focus()}))}renderTooltip(){if(!this.disabled)return i("gux-tooltip-beta",null,i("div",{slot:"content"},this.i18n("link")))}render(){return i(s,{key:"1e5b94b4d57cae50d786574bf56eec88ed4db6cf"},i("gux-button-slot",{key:"63d88fc4d76474ee8be7cab46dc081e3d32c137a",accent:"ghost","icon-only":!0},i("button",{key:"e42b452ea2c524cb263393d4542a1b245c1a382e",id:"popover-target",class:{"gux-is-pressed":this.active||this.isOpen},onClick:()=>this.togglePopover(),ref:t=>this.actionButton=t,type:"button",disabled:this.disabled||p(this.root),"aria-label":this.i18n("link"),"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},i("gux-icon",{key:"edccf9e69945858b7909882e9309a83cd971a8cb",size:"small","icon-name":"fa/link-simple-regular",decorative:!0})),this.renderTooltip()),i("gux-popover",{key:"3153a1a74b23c6bafeec903e07881639f88cc8ea","is-open":this.isOpen,for:"popover-target"},i("div",{key:"df5a08cce4a6b80671e9c3515077c4fc55a3459b",class:"gux-popover-content-wrapper"},i("gux-form-field-text-like",{key:"ea053819c998520e7b1899237481d8e84c2c4830"},i("input",{key:"e83805d97d26ec8408cb54aa818414b2aa2da5df",id:"textToDisplay",ref:t=>this.textToDisplayInputElement=t,slot:"input",type:"text"}),i("label",{key:"3b8c97ebbdee20210268449e2ff02fd4401e3cdb",slot:"label"},this.i18n("textToDisplay"))),i("gux-form-field-text-like",{key:"1941c72a280817af58b102474a23e0f88936f617"},i("input",{key:"9bc0dd0a2ee3e43dfe8df4b4fccf3c4bd2096617",ref:t=>this.linkAddressInputElement=t,slot:"input",type:"text"}),i("label",{key:"4bba2b5fdc2602b7e552096f187521050aa88be1",slot:"label"},this.i18n("linkAddress"))),i("gux-cta-group",{key:"2596983cf1e3bf9c5166ca8ae8c7726fc0515048",align:"end"},i("gux-button",{key:"d3c32a81fa3933a4b2a5d496f308cf626c0946e2",onClick:()=>this.emitLinkOptions(),slot:"primary"},this.i18n("insert")),i("gux-button",{key:"e9d5173676139beec960ec4d7205435ee4972480",onClick:()=>this.togglePopover(),slot:"dismiss"},this.i18n("cancel"))))))}get root(){return o(this)}};(function(t,e,i,s){var o,a=arguments.length,c=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(c=(a<3?o(c):a>3?o(e,i,c):o(e,i))||c);a>3&&c&&Object.defineProperty(e,i,c)})([a({triggerEvents:"mousedown"})],d.prototype,"onClickOutside",null),d.style=":host{display:block}gux-popover div.gux-popover-content-wrapper{display:flex;flex-direction:column;gap:var(--gse-ui-popover-gap)}gux-button-slot{inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height)}gux-button-slot button.gux-is-pressed{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}";export{d as gux_rich_text_editor_action_link}
@@ -1 +1 @@
1
- import{r as t,c as i,d as e,h as r,a as o}from"./p-mm833MRp.js";import{O as n}from"./p-0tG-lFhH.js";import{h as s}from"./p-qzV3vtOw.js";import{t as a}from"./p-B6h1eXrW.js";import{g as h}from"./p-wqCHc7t7.js";import{b as d}from"./p-D_8CR3cJ.js";import{t as c}from"./p-DN3YAdAX.js";import{a as l}from"./p-Bg4q97BS.js";import{O as u}from"./p-1mmdDpx8.js";import"./p-DCZG2J0G.js";import"./p-Cd4R0amv.js";var g=function(t,i,e,r){var o,n=arguments.length,s=n<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(i,e,s):o(i,e))||s);return n>3&&s&&Object.defineProperty(i,e,s),s};const x=class{constructor(e){t(this,e),this.guxToggleAction=i(this,"guxToggleAction",7),this.disabled=!1,this.typographicalEmphasisActions=[],this.textStylingActions=[],this.listsAndIndentationActions=[],this.insertingActions=[],this.hasToolbar=!1}checkResponsiveLayout(){e((()=>{this.handleOverflow(),this.getHiddenActions()}))}onMutation(){this.hasToolbar=this.hasToolbarChildren()}async componentWillLoad(){a(this.root),this.i18n=await d(this.root,c),this.hasToolbar=this.hasToolbarChildren()}componentDidLoad(){l((()=>{this.checkResponsiveLayout()}))}componentDidUpdate(){this.handleOverflow()}isOverFlowing(){var t;const i=null===(t=this.root)||void 0===t?void 0:t.shadowRoot.querySelector(".gux-rich-text-editor-toolbar-container");return Array.from(i.children).filter((t=>!t.classList.contains("gux-hidden"))).reduce(((t,i)=>t+i.clientWidth),0)>i.clientWidth}handleOverflow(){const t=Array.from(this.root.querySelectorAll("gux-rich-text-editor-action-group"));for(;this.isOverFlowing();){let i=!1;for(let e=t.length-1;e>=0;e--)if(!t[e].classList.contains("gux-hidden")){t[e].classList.add("gux-hidden"),i=!0;break}if(!i)break}for(const i of t)if(i.classList.contains("gux-hidden")&&(i.classList.remove("gux-hidden"),this.isOverFlowing())){i.classList.add("gux-hidden");break}}getHiddenActions(){this.typographicalEmphasisActions=h(this.root,'gux-rich-text-editor-action-group[slot="typographical-emphasis"]',"gux-hidden"),this.listsAndIndentationActions=h(this.root,'gux-rich-text-editor-action-group[slot="lists-indentation"]',"gux-hidden"),this.textStylingActions=h(this.root,'gux-rich-text-editor-action-group[slot="text-styling"]',"gux-hidden"),this.insertingActions=h(this.root,'gux-rich-text-editor-action-group[slot="inserting"]',"gux-hidden")}getAllActions(){return[...this.textStylingActions,...this.typographicalEmphasisActions,...this.listsAndIndentationActions,...this.insertingActions]}categorizeActions(t){const i=[],e=[],r=[];return t.forEach((t=>{t.startsWith("rich-style-")?i.push(t.slice(11)):t.startsWith("highlight-")?e.push(t.slice(10)):r.push(t)})),{richStyleActions:i,highlightActions:e,filteredActions:r}}renderListItems(t,i=!1){return t.map(((t,e)=>{const o=t.replace(/<\/?[^>]+(>|$)/g,"");return r("gux-rich-style-list-item",Object.assign({onClick:()=>this.guxToggleAction.emit(o),key:e,value:o},i?{innerHTML:t}:{}),!i&&(this.i18n(o)||o))}))}renderSubList(t,i,e=!1){if(i.length>0)return r("gux-rich-text-editor-sub-list",{label:this.i18n(t)},this.renderListItems(i,e))}renderHighlightSubList(t){if(t.length>0)return r("gux-rich-text-editor-sub-list",{label:this.i18n("textHighlight")},this.renderListItems(t),r("gux-rich-style-list-item",{onClick:()=>this.guxToggleAction.emit("noHighlightAction"),value:"noHighlight"},r("gux-truncate",{"max-lines":1},this.i18n("noHighlight"))))}renderTextEditorMenu(){const t=this.getAllActions();if(t.length>0){const{richStyleActions:i,highlightActions:e,filteredActions:o}=this.categorizeActions(t);return r("gux-rich-text-editor-menu",null,this.renderListItems(o),this.renderSubList("richStyle",i,!0),this.renderHighlightSubList(e))}}renderSlot(t,i){return s(this.root,t)?r("div",{class:i},r("slot",{name:t})):null}renderTypographicalEmphasis(){return this.renderSlot("typographical-emphasis","gux-typographical-emphasis-container")}renderTextStyling(){return this.renderSlot("text-styling","gux-text-styling-container")}renderListsIndentation(){return this.renderSlot("lists-indentation","gux-lists-indentation-container")}renderInserting(){return this.renderSlot("inserting","gux-inserting-container")}renderGlobalAction(){return this.renderSlot("global-action","gux-global-action-container")}hasToolbarChildren(){return[this.renderTypographicalEmphasis(),this.renderTextStyling(),this.renderListsIndentation(),this.renderInserting(),this.renderTextEditorMenu(),this.renderGlobalAction()].some((t=>null!=t))}render(){return r("div",{key:"4b84d427af30a657596e8f8342b356e3be1afde7",class:{"gux-rich-text-editor-container":!0,"gux-disabled":this.disabled,"gux-toolbar-hidden":!this.hasToolbar}},r("div",{key:"7baff9615a4a1293f5d4b3f2357d423db89edea2",class:"gux-rich-text-editor-toolbar-container"},this.renderTypographicalEmphasis(),this.renderTextStyling(),this.renderListsIndentation(),this.renderInserting(),this.renderTextEditorMenu(),this.renderGlobalAction()),r("slot",{key:"138fe0e66fd20f947a69c2b7cc8cd22dc532c3d1",name:"editor"}))}get root(){return o(this)}};g([n()],x.prototype,"checkResponsiveLayout",null),g([u({childList:!0,subtree:!0})],x.prototype,"onMutation",null),x.style=":host{display:block}:host([style*=resize]){overflow:auto;resize:inherit}.gux-rich-text-editor-container{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--gse-ui-rte-innerContainer-gap);inline-size:100%;max-inline-size:100%;block-size:100%;max-block-size:100%;padding:var(--gse-ui-rte-padding);overflow:hidden scroll;background-color:var(--gse-ui-formControl-input-backgroundColor);border:var(--gse-ui-rte-mainContainer-default-border-width) var(--gse-ui-rte-mainContainer-default-border-color) var(--gse-ui-rte-mainContainer-default-border-style);border-radius:var(--gse-ui-rte-container-borderRadius)}.gux-rich-text-editor-container.gux-toolbar-hidden{gap:0}.gux-rich-text-editor-container .gux-rich-text-editor-toolbar-container{display:flex;flex-direction:row;justify-content:flex-start}.gux-rich-text-editor-container .gux-rich-text-editor-toolbar-container .gux-global-action-container{margin-inline-start:auto}.gux-rich-text-editor-container.gux-disabled{pointer-events:none;cursor:default;user-select:none;border:var(--gse-ui-rte-mainContainer-disabled-border-width) var(--gse-ui-rte-mainContainer-disabled-border-color) var(--gse-ui-rte-mainContainer-disabled-border-style);opacity:0.5}.gux-rich-text-editor-container:active:enabled{border:var(--gse-ui-rte-mainContainer-active-border-width) var(--gse-ui-rte-mainContainer-active-border-color) var(--gse-ui-rte-mainContainer-active-border-style)}.gux-rich-text-editor-container:focus-within:not(.gux-disabled),.gux-rich-text-editor-container:hover:not(.gux-disabled){border:var(--gse-ui-rte-mainContainer-hover-border-width) var(--gse-ui-rte-mainContainer-hover-border-color) var(--gse-ui-rte-mainContainer-hover-border-style)}.gux-rich-text-editor-container:focus-within:not(.gux-disabled){outline:var(--gse-ui-rte-mainContainer-focus-border-width) var(--gse-ui-rte-mainContainer-focus-border-color) var(--gse-ui-rte-mainContainer-focus-border-style)}";export{x as gux_rich_text_editor_beta}
1
+ import{r as t,c as i,d as e,h as r,a as o}from"./p-mm833MRp.js";import{O as n}from"./p-0tG-lFhH.js";import{h as s}from"./p-qzV3vtOw.js";import{t as a}from"./p-CngQjjYl.js";import{g as h}from"./p-wqCHc7t7.js";import{b as d}from"./p-D_8CR3cJ.js";import{t as c}from"./p-DN3YAdAX.js";import{a as l}from"./p-Bg4q97BS.js";import{O as u}from"./p-1mmdDpx8.js";import"./p-DCZG2J0G.js";import"./p-Cd4R0amv.js";var g=function(t,i,e,r){var o,n=arguments.length,s=n<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(i,e,s):o(i,e))||s);return n>3&&s&&Object.defineProperty(i,e,s),s};const x=class{constructor(e){t(this,e),this.guxToggleAction=i(this,"guxToggleAction",7),this.disabled=!1,this.typographicalEmphasisActions=[],this.textStylingActions=[],this.listsAndIndentationActions=[],this.insertingActions=[],this.hasToolbar=!1}checkResponsiveLayout(){e((()=>{this.handleOverflow(),this.getHiddenActions()}))}onMutation(){this.hasToolbar=this.hasToolbarChildren()}async componentWillLoad(){a(this.root),this.i18n=await d(this.root,c),this.hasToolbar=this.hasToolbarChildren()}componentDidLoad(){l((()=>{this.checkResponsiveLayout()}))}componentDidUpdate(){this.handleOverflow()}isOverFlowing(){var t;const i=null===(t=this.root)||void 0===t?void 0:t.shadowRoot.querySelector(".gux-rich-text-editor-toolbar-container");return Array.from(i.children).filter((t=>!t.classList.contains("gux-hidden"))).reduce(((t,i)=>t+i.clientWidth),0)>i.clientWidth}handleOverflow(){const t=Array.from(this.root.querySelectorAll("gux-rich-text-editor-action-group"));for(;this.isOverFlowing();){let i=!1;for(let e=t.length-1;e>=0;e--)if(!t[e].classList.contains("gux-hidden")){t[e].classList.add("gux-hidden"),i=!0;break}if(!i)break}for(const i of t)if(i.classList.contains("gux-hidden")&&(i.classList.remove("gux-hidden"),this.isOverFlowing())){i.classList.add("gux-hidden");break}}getHiddenActions(){this.typographicalEmphasisActions=h(this.root,'gux-rich-text-editor-action-group[slot="typographical-emphasis"]',"gux-hidden"),this.listsAndIndentationActions=h(this.root,'gux-rich-text-editor-action-group[slot="lists-indentation"]',"gux-hidden"),this.textStylingActions=h(this.root,'gux-rich-text-editor-action-group[slot="text-styling"]',"gux-hidden"),this.insertingActions=h(this.root,'gux-rich-text-editor-action-group[slot="inserting"]',"gux-hidden")}getAllActions(){return[...this.textStylingActions,...this.typographicalEmphasisActions,...this.listsAndIndentationActions,...this.insertingActions]}categorizeActions(t){const i=[],e=[],r=[];return t.forEach((t=>{t.startsWith("rich-style-")?i.push(t.slice(11)):t.startsWith("highlight-")?e.push(t.slice(10)):r.push(t)})),{richStyleActions:i,highlightActions:e,filteredActions:r}}renderListItems(t,i=!1){return t.map(((t,e)=>{const o=t.replace(/<\/?[^>]+(>|$)/g,"");return r("gux-rich-style-list-item",Object.assign({onClick:()=>this.guxToggleAction.emit(o),key:e,value:o},i?{innerHTML:t}:{}),!i&&(this.i18n(o)||o))}))}renderSubList(t,i,e=!1){if(i.length>0)return r("gux-rich-text-editor-sub-list",{label:this.i18n(t)},this.renderListItems(i,e))}renderHighlightSubList(t){if(t.length>0)return r("gux-rich-text-editor-sub-list",{label:this.i18n("textHighlight")},this.renderListItems(t),r("gux-rich-style-list-item",{onClick:()=>this.guxToggleAction.emit("noHighlightAction"),value:"noHighlight"},r("gux-truncate",{"max-lines":1},this.i18n("noHighlight"))))}renderTextEditorMenu(){const t=this.getAllActions();if(t.length>0){const{richStyleActions:i,highlightActions:e,filteredActions:o}=this.categorizeActions(t);return r("gux-rich-text-editor-menu",null,this.renderListItems(o),this.renderSubList("richStyle",i,!0),this.renderHighlightSubList(e))}}renderSlot(t,i){return s(this.root,t)?r("div",{class:i},r("slot",{name:t})):null}renderTypographicalEmphasis(){return this.renderSlot("typographical-emphasis","gux-typographical-emphasis-container")}renderTextStyling(){return this.renderSlot("text-styling","gux-text-styling-container")}renderListsIndentation(){return this.renderSlot("lists-indentation","gux-lists-indentation-container")}renderInserting(){return this.renderSlot("inserting","gux-inserting-container")}renderGlobalAction(){return this.renderSlot("global-action","gux-global-action-container")}hasToolbarChildren(){return[this.renderTypographicalEmphasis(),this.renderTextStyling(),this.renderListsIndentation(),this.renderInserting(),this.renderTextEditorMenu(),this.renderGlobalAction()].some((t=>null!=t))}render(){return r("div",{key:"4b84d427af30a657596e8f8342b356e3be1afde7",class:{"gux-rich-text-editor-container":!0,"gux-disabled":this.disabled,"gux-toolbar-hidden":!this.hasToolbar}},r("div",{key:"7baff9615a4a1293f5d4b3f2357d423db89edea2",class:"gux-rich-text-editor-toolbar-container"},this.renderTypographicalEmphasis(),this.renderTextStyling(),this.renderListsIndentation(),this.renderInserting(),this.renderTextEditorMenu(),this.renderGlobalAction()),r("slot",{key:"138fe0e66fd20f947a69c2b7cc8cd22dc532c3d1",name:"editor"}))}get root(){return o(this)}};g([n()],x.prototype,"checkResponsiveLayout",null),g([u({childList:!0,subtree:!0})],x.prototype,"onMutation",null),x.style=":host{display:block}:host([style*=resize]){overflow:auto;resize:inherit}.gux-rich-text-editor-container{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--gse-ui-rte-innerContainer-gap);inline-size:100%;max-inline-size:100%;block-size:100%;max-block-size:100%;padding:var(--gse-ui-rte-padding);overflow:hidden scroll;background-color:var(--gse-ui-formControl-input-backgroundColor);border:var(--gse-ui-rte-mainContainer-default-border-width) var(--gse-ui-rte-mainContainer-default-border-color) var(--gse-ui-rte-mainContainer-default-border-style);border-radius:var(--gse-ui-rte-container-borderRadius)}.gux-rich-text-editor-container.gux-toolbar-hidden{gap:0}.gux-rich-text-editor-container .gux-rich-text-editor-toolbar-container{display:flex;flex-direction:row;justify-content:flex-start}.gux-rich-text-editor-container .gux-rich-text-editor-toolbar-container .gux-global-action-container{margin-inline-start:auto}.gux-rich-text-editor-container.gux-disabled{pointer-events:none;cursor:default;user-select:none;border:var(--gse-ui-rte-mainContainer-disabled-border-width) var(--gse-ui-rte-mainContainer-disabled-border-color) var(--gse-ui-rte-mainContainer-disabled-border-style);opacity:0.5}.gux-rich-text-editor-container:active:enabled{border:var(--gse-ui-rte-mainContainer-active-border-width) var(--gse-ui-rte-mainContainer-active-border-color) var(--gse-ui-rte-mainContainer-active-border-style)}.gux-rich-text-editor-container:focus-within:not(.gux-disabled),.gux-rich-text-editor-container:hover:not(.gux-disabled){border:var(--gse-ui-rte-mainContainer-hover-border-width) var(--gse-ui-rte-mainContainer-hover-border-color) var(--gse-ui-rte-mainContainer-hover-border-style)}.gux-rich-text-editor-container:focus-within:not(.gux-disabled){outline:var(--gse-ui-rte-mainContainer-focus-border-width) var(--gse-ui-rte-mainContainer-focus-border-color) var(--gse-ui-rte-mainContainer-focus-border-style)}";export{x as gux_rich_text_editor_beta}
@@ -1 +1 @@
1
- import{r,h as e,a}from"./p-mm833MRp.js";import{b as o}from"./p-D_8CR3cJ.js";import{t as i}from"./p-B6h1eXrW.js";import"./p-Cd4R0amv.js";var t={info:"Information alert with message",success:"Success alert with message",warning:"Warning alert with message",error:"Error alert with message"};const l=class{constructor(e){r(this,e),this.accent="info"}getIcon(r){switch(r){case"info":default:return"fa/circle-info-solid";case"success":return"fa/circle-check-solid";case"warning":return"fa/triangle-exclamation-solid";case"error":return"fa/hexagon-exclamation-solid"}}async componentWillLoad(){i(this.root,{variant:this.accent}),this.i18n=await o(this.root,t)}render(){return e("div",{key:"0cc56669d4391255b4ab87778692902d125f9dc5",role:"alert",class:{"gux-inline-alert":!0,[`gux-${this.accent}`]:!0}},e("div",{key:"012b260d9f1a98288646e1160bed5a845f42b3b5",class:"gux-message-wrapper"},e("gux-icon",{key:"372a76f372efc221936de7ed79ba410877621f11","icon-name":this.getIcon(this.accent),decorative:!0,size:"small"}),e("gux-screen-reader-beta",{key:"c4da670c1421a824d4f895b3c3d63a75b41aeb49"},this.i18n(this.accent)),e("div",{key:"947363b18e34685adcc1668261dd695a2b3e852d",class:"gux-content"},e("slot",{key:"80cd34a7b53ec01b57ad4c61482099a0acb4af17",name:"content"},e("slot",{key:"af09ac4f9428e935698143d185ead50ccf032e2a"})))))}get root(){return a(this)}};l.style=":host{display:flex;inline-size:fit-content}.gux-inline-alert{display:inline-flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;padding:var(--gse-ui-alert-padding);border:1px solid;border-radius:var(--gse-ui-alert-borderRadius)}.gux-inline-alert gux-icon{flex-shrink:0;align-self:flex-start;margin-block-start:1px}.gux-inline-alert gux-tooltip-title{white-space:nowrap}.gux-inline-alert .gux-message-wrapper{display:flex;gap:var(--gse-ui-alert-gap);font-family:var(--gse-ui-alert-text-fontFamily);font-size:var(--gse-ui-alert-text-fontSize);font-weight:var(--gse-ui-alert-text-fontWeight);line-height:var(--gse-ui-alert-text-lineHeight)}.gux-inline-alert .gux-content{flex:1 1 auto}.gux-inline-alert.gux-info{color:var(--gse-ui-alert-info-foregroundColor);background-color:var(--gse-ui-alert-info-backgroundColor);border:var(--gse-ui-alert-info-border-width) var(--gse-ui-alert-info-border-style) var(--gse-ui-alert-info-border-color)}.gux-inline-alert.gux-info gux-icon{color:var(--gse-ui-alert-info-iconColor)}.gux-inline-alert.gux-error{color:var(--gse-ui-alert-error-foregroundColor);background-color:var(--gse-ui-alert-error-backgroundColor);border:var(--gse-ui-alert-error-border-width) var(--gse-ui-alert-error-border-style) var(--gse-ui-alert-error-border-color)}.gux-inline-alert.gux-error gux-icon{color:var(--gse-ui-alert-error-iconColor)}.gux-inline-alert.gux-warning{color:var(--gse-ui-alert-warning-foregroundColor);background-color:var(--gse-ui-alert-warning-backgroundColor);border:var(--gse-ui-alert-warning-border-width) var(--gse-ui-alert-warning-border-style) var(--gse-ui-alert-warning-border-color)}.gux-inline-alert.gux-warning gux-icon{color:var(--gse-ui-alert-warning-iconColor)}.gux-inline-alert.gux-success{color:var(--gse-ui-alert-success-foregroundColor);background-color:var(--gse-ui-alert-success-backgroundColor);border:var(--gse-ui-alert-success-border-width) var(--gse-ui-alert-success-border-style) var(--gse-ui-alert-success-border-color)}.gux-inline-alert.gux-success gux-icon{color:var(--gse-ui-alert-success-iconColor)}";export{l as gux_inline_alert}
1
+ import{r,h as e,a}from"./p-mm833MRp.js";import{b as o}from"./p-D_8CR3cJ.js";import{t as i}from"./p-CngQjjYl.js";import"./p-Cd4R0amv.js";var t={info:"Information alert with message",success:"Success alert with message",warning:"Warning alert with message",error:"Error alert with message"};const l=class{constructor(e){r(this,e),this.accent="info"}getIcon(r){switch(r){case"info":default:return"fa/circle-info-solid";case"success":return"fa/circle-check-solid";case"warning":return"fa/triangle-exclamation-solid";case"error":return"fa/hexagon-exclamation-solid"}}async componentWillLoad(){i(this.root,{variant:this.accent}),this.i18n=await o(this.root,t)}render(){return e("div",{key:"0cc56669d4391255b4ab87778692902d125f9dc5",role:"alert",class:{"gux-inline-alert":!0,[`gux-${this.accent}`]:!0}},e("div",{key:"012b260d9f1a98288646e1160bed5a845f42b3b5",class:"gux-message-wrapper"},e("gux-icon",{key:"372a76f372efc221936de7ed79ba410877621f11","icon-name":this.getIcon(this.accent),decorative:!0,size:"small"}),e("gux-screen-reader-beta",{key:"c4da670c1421a824d4f895b3c3d63a75b41aeb49"},this.i18n(this.accent)),e("div",{key:"947363b18e34685adcc1668261dd695a2b3e852d",class:"gux-content"},e("slot",{key:"80cd34a7b53ec01b57ad4c61482099a0acb4af17",name:"content"},e("slot",{key:"af09ac4f9428e935698143d185ead50ccf032e2a"})))))}get root(){return a(this)}};l.style=":host{display:flex;inline-size:fit-content}.gux-inline-alert{display:inline-flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;padding:var(--gse-ui-alert-padding);border:1px solid;border-radius:var(--gse-ui-alert-borderRadius)}.gux-inline-alert gux-icon{flex-shrink:0;align-self:flex-start;margin-block-start:1px}.gux-inline-alert gux-tooltip-title{white-space:nowrap}.gux-inline-alert .gux-message-wrapper{display:flex;gap:var(--gse-ui-alert-gap);font-family:var(--gse-ui-alert-text-fontFamily);font-size:var(--gse-ui-alert-text-fontSize);font-weight:var(--gse-ui-alert-text-fontWeight);line-height:var(--gse-ui-alert-text-lineHeight)}.gux-inline-alert .gux-content{flex:1 1 auto}.gux-inline-alert.gux-info{color:var(--gse-ui-alert-info-foregroundColor);background-color:var(--gse-ui-alert-info-backgroundColor);border:var(--gse-ui-alert-info-border-width) var(--gse-ui-alert-info-border-style) var(--gse-ui-alert-info-border-color)}.gux-inline-alert.gux-info gux-icon{color:var(--gse-ui-alert-info-iconColor)}.gux-inline-alert.gux-error{color:var(--gse-ui-alert-error-foregroundColor);background-color:var(--gse-ui-alert-error-backgroundColor);border:var(--gse-ui-alert-error-border-width) var(--gse-ui-alert-error-border-style) var(--gse-ui-alert-error-border-color)}.gux-inline-alert.gux-error gux-icon{color:var(--gse-ui-alert-error-iconColor)}.gux-inline-alert.gux-warning{color:var(--gse-ui-alert-warning-foregroundColor);background-color:var(--gse-ui-alert-warning-backgroundColor);border:var(--gse-ui-alert-warning-border-width) var(--gse-ui-alert-warning-border-style) var(--gse-ui-alert-warning-border-color)}.gux-inline-alert.gux-warning gux-icon{color:var(--gse-ui-alert-warning-iconColor)}.gux-inline-alert.gux-success{color:var(--gse-ui-alert-success-foregroundColor);background-color:var(--gse-ui-alert-success-backgroundColor);border:var(--gse-ui-alert-success-border-width) var(--gse-ui-alert-success-border-style) var(--gse-ui-alert-success-border-color)}.gux-inline-alert.gux-success gux-icon{color:var(--gse-ui-alert-success-iconColor)}";export{l as gux_inline_alert}
@@ -1 +1 @@
1
- import{r as e,c as s,h as t,a}from"./p-mm833MRp.js";import{r as i}from"./p-D9jKBqIb.js";import{t as o}from"./p-B6h1eXrW.js";const d=class{constructor(t){e(this,t),this.modalSidePanelDismiss=s(this,"modalSidePanelDismiss",7),this.open=!1,this.size="medium",this.dialogElement=null}syncOpenState(){this.open?this.dialogElement.showModal():(this.dialogElement.close(),this.modalSidePanelDismiss.emit())}sidepaneldismissHandler(){this.open=!1}onKeydown(e){if("Escape"===e.key)return e.preventDefault(),void(this.open=!1)}async showModal(){this.open=!0}async close(){this.open=!1}componentWillLoad(){o(this.root,{variant:this.size})}componentDidLoad(){this.open&&this.dialogElement.showModal()}render(){const e=i();return t("dialog",{key:"31a9427be666b9726a34d5cfa56cc273e471bcd9",ref:e=>this.dialogElement=e,"aria-labelledby":e,class:{"gux-open":this.open}},t("gux-side-panel-beta",{key:"f4b5efc109a334c41de0c225a9883c2893b9c656",size:this.size},t("div",{key:"1f057ec4560b8778511eccffff587207c4e4f1f0",slot:"header",id:e},t("slot",{key:"b158d4672d7490356c80be7884fc544ce35189a7",name:"header"})),t("div",{key:"436cf84e5268e6a43314de695f9862c9756a7900",slot:"content"},t("slot",{key:"d336c0518132476b0660d3c90ba222698cb09b99",name:"content"})),t("div",{key:"29e1b9c7df89c76d460c8e744b0679aabbbbf4dc",slot:"footer"},t("slot",{key:"831e3ce9c7099bdcd3d6b8c6ae00dbd47d3389f8",name:"footer"}))))}get root(){return a(this)}static get watchers(){return{open:["syncOpenState"]}}};d.style="dialog{inset-inline-start:auto;block-size:100%;min-block-size:100%;padding:0;margin:unset;border:none;transform:translateX(100%);transition:transform 0.2s ease-in-out}dialog.gux-open{transform:translateX(0%)}dialog::backdrop{background:var(--gse-ui-sidePanel-shroudColor);opacity:var(--gse-ui-sidePanel-shroud-opacity)}::slotted(footer){flex:0 0 auto;padding:var(--gse-ui-sidePanel-footer-padding);border-block-start:var(--gse-ui-sidePanel-divider-width) var(--gse-ui-sidePanel-divider-style) var(--gse-ui-sidePanel-divider-color)}::slotted(gux-side-panel-header){border-block-end:none}";export{d as gux_modal_side_panel_beta}
1
+ import{r as e,c as s,h as t,a}from"./p-mm833MRp.js";import{r as i}from"./p-D9jKBqIb.js";import{t as o}from"./p-CngQjjYl.js";const d=class{constructor(t){e(this,t),this.modalSidePanelDismiss=s(this,"modalSidePanelDismiss",7),this.open=!1,this.size="medium",this.dialogElement=null}syncOpenState(){this.open?this.dialogElement.showModal():(this.dialogElement.close(),this.modalSidePanelDismiss.emit())}sidepaneldismissHandler(){this.open=!1}onKeydown(e){if("Escape"===e.key)return e.preventDefault(),void(this.open=!1)}async showModal(){this.open=!0}async close(){this.open=!1}componentWillLoad(){o(this.root,{variant:this.size})}componentDidLoad(){this.open&&this.dialogElement.showModal()}render(){const e=i();return t("dialog",{key:"31a9427be666b9726a34d5cfa56cc273e471bcd9",ref:e=>this.dialogElement=e,"aria-labelledby":e,class:{"gux-open":this.open}},t("gux-side-panel-beta",{key:"f4b5efc109a334c41de0c225a9883c2893b9c656",size:this.size},t("div",{key:"1f057ec4560b8778511eccffff587207c4e4f1f0",slot:"header",id:e},t("slot",{key:"b158d4672d7490356c80be7884fc544ce35189a7",name:"header"})),t("div",{key:"436cf84e5268e6a43314de695f9862c9756a7900",slot:"content"},t("slot",{key:"d336c0518132476b0660d3c90ba222698cb09b99",name:"content"})),t("div",{key:"29e1b9c7df89c76d460c8e744b0679aabbbbf4dc",slot:"footer"},t("slot",{key:"831e3ce9c7099bdcd3d6b8c6ae00dbd47d3389f8",name:"footer"}))))}get root(){return a(this)}static get watchers(){return{open:["syncOpenState"]}}};d.style="dialog{inset-inline-start:auto;block-size:100%;min-block-size:100%;padding:0;margin:unset;border:none;transform:translateX(100%);transition:transform 0.2s ease-in-out}dialog.gux-open{transform:translateX(0%)}dialog::backdrop{background:var(--gse-ui-sidePanel-shroudColor);opacity:var(--gse-ui-sidePanel-shroud-opacity)}::slotted(footer){flex:0 0 auto;padding:var(--gse-ui-sidePanel-footer-padding);border-block-start:var(--gse-ui-sidePanel-divider-width) var(--gse-ui-sidePanel-divider-style) var(--gse-ui-sidePanel-divider-color)}::slotted(gux-side-panel-header){border-block-end:none}";export{d as gux_modal_side_panel_beta}
@@ -1 +1 @@
1
- import{r as e,c as a,h as o,a as t}from"./p-mm833MRp.js";import{l as r}from"./p-DxtJDeL9.js";import{b as s}from"./p-D_8CR3cJ.js";import{t as i}from"./p-B6h1eXrW.js";import"./p-Cd4R0amv.js";var n={changePhoto:"Change profile photo"};const c=class{constructor(o){e(this,o),this.guxchangephoto=a(this,"guxchangephoto",7)}async componentWillLoad(){this.validateSlot(),i(this.root),this.i18n=await s(this.root,n)}validateSlot(){this.root.querySelector("gux-avatar-beta")||r(this.root,"Slotted element must be gux-avatar-beta")}render(){return o("button",{key:"dec302c7257b7f65e30dda1e73d4afc21e177d85",class:"gux-change-photo",onClick:()=>this.guxchangephoto.emit(),"aria-label":this.i18n("changePhoto")},o("gux-icon",{key:"6a4fbc311edca6154ae720151a2e08644b0a010c",class:"gux-change-photo-icon","icon-name":"fa/camera-solid",size:"small",decorative:!0}),o("slot",{key:"51bb354aa0429befde939af04bce35842cea10e8",name:"avatar"}),o("gux-tooltip-beta",{key:"62e9a86eebc9e2912e60e7075e96cef9df26247a",placement:"top",visualOnly:!0},o("div",{key:"6fb667fbf7d6357d1d7175af5bf9540649bc0859",slot:"content"},this.i18n("changePhoto"))))}static get delegatesFocus(){return!0}get root(){return t(this)}};c.style=':host{display:inline-block}.gux-change-photo{position:relative;padding:0;margin:0;line-height:0px;cursor:pointer;background:none;border:none;border-radius:50%}.gux-change-photo .gux-change-photo-icon{display:none}.gux-change-photo:hover,.gux-change-photo:focus-visible{cursor:pointer}.gux-change-photo:hover .gux-change-photo-icon,.gux-change-photo:focus-visible .gux-change-photo-icon{position:absolute;inset-block-start:50%;inset-inline-start:50%;z-index:var(--gse-semantic-zIndex-showFocus);display:inline-block;color:var(--gse-ui-avatar-hoverModal-foregroundColor);transform:translate(-50%, -50%)}.gux-change-photo:hover::after,.gux-change-photo:focus-visible::after{position:absolute;inset-block-start:var(--gse-ui-avatar-large-presenceRing-width);inset-inline-start:var(--gse-ui-avatar-large-presenceRing-width);inline-size:var(--gse-ui-avatar-addChangeImage-hoverModal-shroudSize);block-size:var(--gse-ui-avatar-addChangeImage-hoverModal-shroudSize);content:"";background-color:var(--gse-ui-avatar-hoverModal-shroudColor);border:var(--gse-ui-avatar-content-large-border-width) var(--gse-ui-avatar-content-default-border-style) var(--gse-ui-avatar-content-default-border-color);border-radius:50%;opacity:var(--gse-ui-avatar-hoverModal-opacity);transition:background-color 0.5s ease}.gux-change-photo:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}';export{c as gux_avatar_change_photo_beta}
1
+ import{r as e,c as a,h as o,a as t}from"./p-mm833MRp.js";import{l as r}from"./p-DxtJDeL9.js";import{b as s}from"./p-D_8CR3cJ.js";import{t as i}from"./p-CngQjjYl.js";import"./p-Cd4R0amv.js";var n={changePhoto:"Change profile photo"};const c=class{constructor(o){e(this,o),this.guxchangephoto=a(this,"guxchangephoto",7)}async componentWillLoad(){this.validateSlot(),i(this.root),this.i18n=await s(this.root,n)}validateSlot(){this.root.querySelector("gux-avatar-beta")||r(this.root,"Slotted element must be gux-avatar-beta")}render(){return o("button",{key:"dec302c7257b7f65e30dda1e73d4afc21e177d85",class:"gux-change-photo",onClick:()=>this.guxchangephoto.emit(),"aria-label":this.i18n("changePhoto")},o("gux-icon",{key:"6a4fbc311edca6154ae720151a2e08644b0a010c",class:"gux-change-photo-icon","icon-name":"fa/camera-solid",size:"small",decorative:!0}),o("slot",{key:"51bb354aa0429befde939af04bce35842cea10e8",name:"avatar"}),o("gux-tooltip-beta",{key:"62e9a86eebc9e2912e60e7075e96cef9df26247a",placement:"top",visualOnly:!0},o("div",{key:"6fb667fbf7d6357d1d7175af5bf9540649bc0859",slot:"content"},this.i18n("changePhoto"))))}static get delegatesFocus(){return!0}get root(){return t(this)}};c.style=':host{display:inline-block}.gux-change-photo{position:relative;padding:0;margin:0;line-height:0px;cursor:pointer;background:none;border:none;border-radius:50%}.gux-change-photo .gux-change-photo-icon{display:none}.gux-change-photo:hover,.gux-change-photo:focus-visible{cursor:pointer}.gux-change-photo:hover .gux-change-photo-icon,.gux-change-photo:focus-visible .gux-change-photo-icon{position:absolute;inset-block-start:50%;inset-inline-start:50%;z-index:var(--gse-semantic-zIndex-showFocus);display:inline-block;color:var(--gse-ui-avatar-hoverModal-foregroundColor);transform:translate(-50%, -50%)}.gux-change-photo:hover::after,.gux-change-photo:focus-visible::after{position:absolute;inset-block-start:var(--gse-ui-avatar-large-presenceRing-width);inset-inline-start:var(--gse-ui-avatar-large-presenceRing-width);inline-size:var(--gse-ui-avatar-addChangeImage-hoverModal-shroudSize);block-size:var(--gse-ui-avatar-addChangeImage-hoverModal-shroudSize);content:"";background-color:var(--gse-ui-avatar-hoverModal-shroudColor);border:var(--gse-ui-avatar-content-large-border-width) var(--gse-ui-avatar-content-default-border-style) var(--gse-ui-avatar-content-default-border-color);border-radius:50%;opacity:var(--gse-ui-avatar-hoverModal-opacity);transition:background-color 0.5s ease}.gux-change-photo:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}';export{c as gux_avatar_change_photo_beta}
@@ -1 +1 @@
1
- import{r as s,h as t,H as e,a}from"./p-mm833MRp.js";import{l as r,n as o,f as i,p as c,b as n,a as l}from"./p-BebXX5IS.js";import{t as m}from"./p-B6h1eXrW.js";const p=["gux-list-item"],u=class{constructor(t){s(this,t)}componentWillLoad(){m(this.root)}onKeyDown(s){switch(s.key){case"ArrowUp":s.preventDefault(),c(this.root,p);break;case"Home":s.preventDefault(),i(this.root,p);break;case"ArrowDown":s.preventDefault(),o(this.root,p);break;case"End":s.preventDefault(),r(this.root,p)}}async guxFocusFirstItem(){i(this.root,p)}async guxFocusItemById(s){n(this.root,p,s)}async guxFocusItemByClosestId(s){l(this.root,p,s)}async guxFocusLastItem(){r(this.root,p)}render(){return t(e,{key:"83e17b06638c42f03e85dfd27ef96869aa61ec83",tabindex:"-1",role:"list"},t("slot",{key:"2634eed100b5f167b8c5e552acbf3f5048789bb1"}))}get root(){return a(this)}};u.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;padding:var(--gse-ui-menu-padding)}";export{u as gux_list}
1
+ import{r as s,h as t,H as e,a}from"./p-mm833MRp.js";import{l as o,n as r,f as i,p as c,b as n,a as l}from"./p-BebXX5IS.js";import{t as m}from"./p-CngQjjYl.js";const p=["gux-list-item"],u=class{constructor(t){s(this,t)}componentWillLoad(){m(this.root)}onKeyDown(s){switch(s.key){case"ArrowUp":s.preventDefault(),c(this.root,p);break;case"Home":s.preventDefault(),i(this.root,p);break;case"ArrowDown":s.preventDefault(),r(this.root,p);break;case"End":s.preventDefault(),o(this.root,p)}}async guxFocusFirstItem(){i(this.root,p)}async guxFocusItemById(s){n(this.root,p,s)}async guxFocusItemByClosestId(s){l(this.root,p,s)}async guxFocusLastItem(){o(this.root,p)}render(){return t(e,{key:"83e17b06638c42f03e85dfd27ef96869aa61ec83",tabindex:"-1",role:"list"},t("slot",{key:"2634eed100b5f167b8c5e552acbf3f5048789bb1"}))}get root(){return a(this)}};u.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;padding:var(--gse-ui-menu-padding)}";export{u as gux_list}
@@ -1 +1 @@
1
- import{r as e,c as i,h as s,a}from"./p-mm833MRp.js";import{t as n}from"./p-B6h1eXrW.js";import{h as t}from"./p-qzV3vtOw.js";const d=class{constructor(s){e(this,s),this.sidePanelDismiss=i(this,"sidePanelDismiss",7),this.size="small"}onDismissHandler(){this.sidePanelDismiss.emit()}componentWillLoad(){n(this.root,{variant:this.size})}componentDidRender(){this.validateDescriptionSlotUsage()}validateDescriptionSlotUsage(){const e=this.root.querySelectorAll('[slot="description"]');Array.from(e).some((e=>e.parentElement===this.root))&&console.warn('gux-side-panel-beta: The description slot has been moved to gux-side-panel-header component. Please move your description content inside the header slot like this: <gux-side-panel-header slot="header"><div slot="description">Your description</div></gux-side-panel-header>')}renderHeader(){return t(this.root,"header")?s("slot",{name:"header"}):null}renderTabs(){return t(this.root,"tabs")?s("div",{class:"gux-side-panel-tabs"},s("slot",{name:"tabs"})):null}renderContent(){return t(this.root,"content")?s("div",{class:"gux-side-panel-content"},s("slot",{name:"content"})):null}renderFooter(){return t(this.root,"footer")?s("slot",{name:"footer"}):null}render(){return s("section",{key:"702c3c5880d4e25a87d51b977c14d51170ddff1b",class:{"gux-side-panel":!0,[`gux-side-panel-${this.size}`]:!0}},this.renderHeader(),s("gux-dismiss-button",{key:"90237cbc7c473f35acb23776eac8e614a3922e3b",onClick:this.onDismissHandler.bind(this)}),s("div",{key:"566600dd2685c05554af422b91f575a17f2142bf",class:"gux-side-panel-content-wrapper"},this.renderTabs(),this.renderContent()),this.renderFooter())}get root(){return a(this)}};d.style=":host{display:block;inline-size:fit-content;block-size:100%}:host([size=large]){max-inline-size:50%}.gux-side-panel{position:relative;display:flex;flex-direction:column;inline-size:calc(100vw - var(--gse-ui-sidePanel-shoud-minWidth));block-size:inherit;background-color:var(--gse-ui-sidePanel-backgroundColor);box-shadow:var(--gse-ui-sidePanel-boxShadow)}.gux-side-panel.gux-side-panel-small{max-inline-size:var(--gse-ui-sidePanel-widthSize-sm)}.gux-side-panel.gux-side-panel-medium{max-inline-size:var(--gse-ui-sidePanel-widthSize-md)}.gux-side-panel.gux-side-panel-large{max-inline-size:var(--gse-ui-sidePanel-widthSize-lg)}.gux-side-panel .gux-side-panel-content-wrapper{flex:1 1 100%;overflow-y:auto}.gux-side-panel .gux-side-panel-content{padding:var(--gse-ui-sidePanel-body-padding);border-block-start:var(--gse-ui-sidePanel-divider-width) var(--gse-ui-sidePanel-divider-style) var(--gse-ui-sidePanel-divider-color)}::slotted(footer){flex:0 0 auto;padding:var(--gse-ui-sidePanel-footer-padding);border-block-start:var(--gse-ui-sidePanel-divider-width) var(--gse-ui-sidePanel-divider-style) var(--gse-ui-sidePanel-divider-color)}";export{d as gux_side_panel_beta}
1
+ import{r as e,c as i,h as s,a}from"./p-mm833MRp.js";import{t as n}from"./p-CngQjjYl.js";import{h as t}from"./p-qzV3vtOw.js";const d=class{constructor(s){e(this,s),this.sidePanelDismiss=i(this,"sidePanelDismiss",7),this.size="small"}onDismissHandler(){this.sidePanelDismiss.emit()}componentWillLoad(){n(this.root,{variant:this.size})}componentDidRender(){this.validateDescriptionSlotUsage()}validateDescriptionSlotUsage(){const e=this.root.querySelectorAll('[slot="description"]');Array.from(e).some((e=>e.parentElement===this.root))&&console.warn('gux-side-panel-beta: The description slot has been moved to gux-side-panel-header component. Please move your description content inside the header slot like this: <gux-side-panel-header slot="header"><div slot="description">Your description</div></gux-side-panel-header>')}renderHeader(){return t(this.root,"header")?s("slot",{name:"header"}):null}renderTabs(){return t(this.root,"tabs")?s("div",{class:"gux-side-panel-tabs"},s("slot",{name:"tabs"})):null}renderContent(){return t(this.root,"content")?s("div",{class:"gux-side-panel-content"},s("slot",{name:"content"})):null}renderFooter(){return t(this.root,"footer")?s("slot",{name:"footer"}):null}render(){return s("section",{key:"702c3c5880d4e25a87d51b977c14d51170ddff1b",class:{"gux-side-panel":!0,[`gux-side-panel-${this.size}`]:!0}},this.renderHeader(),s("gux-dismiss-button",{key:"90237cbc7c473f35acb23776eac8e614a3922e3b",onClick:this.onDismissHandler.bind(this)}),s("div",{key:"566600dd2685c05554af422b91f575a17f2142bf",class:"gux-side-panel-content-wrapper"},this.renderTabs(),this.renderContent()),this.renderFooter())}get root(){return a(this)}};d.style=":host{display:block;inline-size:fit-content;block-size:100%}:host([size=large]){max-inline-size:50%}.gux-side-panel{position:relative;display:flex;flex-direction:column;inline-size:calc(100vw - var(--gse-ui-sidePanel-shoud-minWidth));block-size:inherit;background-color:var(--gse-ui-sidePanel-backgroundColor);box-shadow:var(--gse-ui-sidePanel-boxShadow)}.gux-side-panel.gux-side-panel-small{max-inline-size:var(--gse-ui-sidePanel-widthSize-sm)}.gux-side-panel.gux-side-panel-medium{max-inline-size:var(--gse-ui-sidePanel-widthSize-md)}.gux-side-panel.gux-side-panel-large{max-inline-size:var(--gse-ui-sidePanel-widthSize-lg)}.gux-side-panel .gux-side-panel-content-wrapper{flex:1 1 100%;overflow-y:auto}.gux-side-panel .gux-side-panel-content{padding:var(--gse-ui-sidePanel-body-padding);border-block-start:var(--gse-ui-sidePanel-divider-width) var(--gse-ui-sidePanel-divider-style) var(--gse-ui-sidePanel-divider-color)}::slotted(footer){flex:0 0 auto;padding:var(--gse-ui-sidePanel-footer-padding);border-block-start:var(--gse-ui-sidePanel-divider-width) var(--gse-ui-sidePanel-divider-style) var(--gse-ui-sidePanel-divider-color)}";export{d as gux_side_panel_beta}
@@ -1 +1 @@
1
- import{r as e,h as t,H as s,a as o}from"./p-mm833MRp.js";import{t as a}from"./p-B6h1eXrW.js";import{O as i}from"./p-CuMZPTZF.js";import{b as r}from"./p-D_8CR3cJ.js";import{b as n}from"./p-Bg4q97BS.js";import"./p-Cd4R0amv.js";var c={additionalActions:"Additional Actions"};const u=class{constructor(t){e(this,t),this.expanded=!1}handleKeyDown(e){const t=e.composedPath();switch(e.key){case"Escape":this.expanded=!1,t.includes(this.listElement)&&(e.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.expanded=!1;break;case"ArrowDown":case"Enter":t.includes(this.dropdownButton)&&(e.preventDefault(),this.expanded=!0,this.focusFirstItemInPopupList())}}handleKeyup(e){if(" "===e.key)e.composedPath().includes(this.dropdownButton)&&(this.expanded=!0,this.focusFirstItemInPopupList())}toggle(){this.expanded=!this.expanded,this.expanded&&this.focusPopupList()}onClickOutside(){this.expanded=!1}focusPopupList(){n((()=>{this.listElement.focus()}))}focusFirstItemInPopupList(){n((()=>{this.listElement.guxFocusFirstItem()}))}renderTooltip(){if(!this.expanded)return t("gux-tooltip-beta",null,t("div",{slot:"content"},this.i18n("additionalActions")))}async componentWillLoad(){this.i18n=await r(this.root,c),a(this.root)}render(){return t(s,{key:"12861791318251f71861d2a7f7665847802997f4",class:{"gux-show-menu":this.showMenu}},t("gux-popup",{key:"b476cde8e861d869b55d380019fc893a8d5e6e84",expanded:this.expanded,"exceed-target-width":!0},t("div",{key:"d781c931d7781ffe773ac9097a784c8efc02991a",slot:"target",class:"gux-toolbar-menu-container"},t("gux-button-slot",{key:"1074238be4f136d82a85bd87641335eaad8b0775",accent:"secondary"},t("button",{key:"133dc0fc88709a184ac7212270bbd20c77346406",class:"gux-menu-button",type:"button",ref:e=>this.dropdownButton=e,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.expanded.toString()},t("gux-icon",{key:"dbc033778cf901d980efe318be80cd0708dda8f2","icon-name":"fa/ellipsis-regular",size:"small",decorative:!0}),t("gux-screen-reader-beta",{key:"5afbacb800da33077be077bb6481537ec2dc4a0f"},this.i18n("additionalActions"))),this.renderTooltip())),t("div",{key:"44d64461b2dc6ca9b8f0a8448ba0a41548fea0a4",class:"gux-list-container",slot:"popup"},t("gux-list",{key:"ce74f7ea28ab01e4ad8c1a35d74fbbf2b783f9f0",ref:e=>this.listElement=e},t("slot",{key:"90587f596c875f6968eecbc15dc5c9b2d8a9babf"})))))}static get delegatesFocus(){return!0}get root(){return o(this)}};(function(e,t,s,o){var a,i=arguments.length,r=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,o);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(r=(i<3?a(r):i>3?a(t,s,r):a(t,s))||r);i>3&&r&&Object.defineProperty(t,s,r)})([i({triggerEvents:"mousedown"})],u.prototype,"onClickOutside",null),u.style=":host{display:none;-webkit-user-select:none;user-select:none}:host(.gux-show-menu){display:block}.gux-menu-button{display:flex;color:var(--gse-ui-button-secondary-default-foregroundColor);cursor:pointer;border:none}.gux-menu-button gux-icon{align-self:center}.gux-list-container{inline-size:min-content;margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}";export{u as gux_table_toolbar_menu_button}
1
+ import{r as e,h as t,H as s,a as o}from"./p-mm833MRp.js";import{t as a}from"./p-CngQjjYl.js";import{O as i}from"./p-CuMZPTZF.js";import{b as r}from"./p-D_8CR3cJ.js";import{b as n}from"./p-Bg4q97BS.js";import"./p-Cd4R0amv.js";var c={additionalActions:"Additional Actions"};const u=class{constructor(t){e(this,t),this.expanded=!1}handleKeyDown(e){const t=e.composedPath();switch(e.key){case"Escape":this.expanded=!1,t.includes(this.listElement)&&(e.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.expanded=!1;break;case"ArrowDown":case"Enter":t.includes(this.dropdownButton)&&(e.preventDefault(),this.expanded=!0,this.focusFirstItemInPopupList())}}handleKeyup(e){if(" "===e.key)e.composedPath().includes(this.dropdownButton)&&(this.expanded=!0,this.focusFirstItemInPopupList())}toggle(){this.expanded=!this.expanded,this.expanded&&this.focusPopupList()}onClickOutside(){this.expanded=!1}focusPopupList(){n((()=>{this.listElement.focus()}))}focusFirstItemInPopupList(){n((()=>{this.listElement.guxFocusFirstItem()}))}renderTooltip(){if(!this.expanded)return t("gux-tooltip-beta",null,t("div",{slot:"content"},this.i18n("additionalActions")))}async componentWillLoad(){this.i18n=await r(this.root,c),a(this.root)}render(){return t(s,{key:"12861791318251f71861d2a7f7665847802997f4",class:{"gux-show-menu":this.showMenu}},t("gux-popup",{key:"b476cde8e861d869b55d380019fc893a8d5e6e84",expanded:this.expanded,"exceed-target-width":!0},t("div",{key:"d781c931d7781ffe773ac9097a784c8efc02991a",slot:"target",class:"gux-toolbar-menu-container"},t("gux-button-slot",{key:"1074238be4f136d82a85bd87641335eaad8b0775",accent:"secondary"},t("button",{key:"133dc0fc88709a184ac7212270bbd20c77346406",class:"gux-menu-button",type:"button",ref:e=>this.dropdownButton=e,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.expanded.toString()},t("gux-icon",{key:"dbc033778cf901d980efe318be80cd0708dda8f2","icon-name":"fa/ellipsis-regular",size:"small",decorative:!0}),t("gux-screen-reader-beta",{key:"5afbacb800da33077be077bb6481537ec2dc4a0f"},this.i18n("additionalActions"))),this.renderTooltip())),t("div",{key:"44d64461b2dc6ca9b8f0a8448ba0a41548fea0a4",class:"gux-list-container",slot:"popup"},t("gux-list",{key:"ce74f7ea28ab01e4ad8c1a35d74fbbf2b783f9f0",ref:e=>this.listElement=e},t("slot",{key:"90587f596c875f6968eecbc15dc5c9b2d8a9babf"})))))}static get delegatesFocus(){return!0}get root(){return o(this)}};(function(e,t,s,o){var a,i=arguments.length,r=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,o);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(r=(i<3?a(r):i>3?a(t,s,r):a(t,s))||r);i>3&&r&&Object.defineProperty(t,s,r)})([i({triggerEvents:"mousedown"})],u.prototype,"onClickOutside",null),u.style=":host{display:none;-webkit-user-select:none;user-select:none}:host(.gux-show-menu){display:block}.gux-menu-button{display:flex;color:var(--gse-ui-button-secondary-default-foregroundColor);cursor:pointer;border:none}.gux-menu-button gux-icon{align-self:center}.gux-list-container{inline-size:min-content;margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}";export{u as gux_table_toolbar_menu_button}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as e,a as s}from"./p-mm833MRp.js";import{O as o}from"./p-CuMZPTZF.js";import{t as r}from"./p-CngQjjYl.js";import{b as h}from"./p-D_8CR3cJ.js";import{t as a}from"./p-DN3YAdAX.js";import{h as n}from"./p-wqCHc7t7.js";import{w as l}from"./p-kLXvN2m9.js";import{b as u}from"./p-Bg4q97BS.js";import{e as g}from"./p-C6ZfOd6U.js";import"./p-Cd4R0amv.js";import"./p-DCZG2J0G.js";const c=class{constructor(e){t(this,e),this.noHighlightAction=i(this,"noHighlightAction",7),this.disabled=!1,this.active=!1,this.expanded=!1}get isActive(){return this.active}set isActive(t){this.active=t}onClickOutside(){this.expanded=!1}watchDisabled(t){t&&(this.expanded=!1)}handleKeydown(t){const i=g("gux-rich-highlight-list-item",t),e=t.composedPath();switch(t.key){case"Escape":this.expanded=!1,this.actionButton.focus();break;case"ArrowDown":case"Enter":e.includes(this.actionButton)&&(t.preventDefault(),this.expanded=!0,this.focusNoHighlightActionButton());break;case"Tab":if(t.shiftKey)return;i&&(this.expanded=!1)}}async componentWillLoad(){r(this.root),this.i18n=await h(this.root,a)}togglePopup(){this.expanded=!this.expanded,this.expanded?this.focusNoHighlightActionButton():this.actionButton.focus()}focusNoHighlightActionButton(){u((()=>{this.noHighlightActionButton.focus()}))}renderTooltip(){if(!this.disabled&&!this.expanded)return e("gux-tooltip-beta",null,e("div",{slot:"content"},this.i18n("textHighlight")))}renderPopup(){return e("div",{class:"gux-text-highlight-popup",slot:"popup"},this.renderNoHighlightAction(),this.renderTextHighlightColors())}renderNoHighlightAction(){return e("gux-button-slot",{accent:"tertiary"},e("button",{type:"button",ref:t=>this.noHighlightActionButton=t,onClick:()=>this.emitNoHighlightAction()},e("gux-truncate",{"max-lines":1},this.i18n("noHighlight"))))}onListClick(t){l("gux-rich-highlight-list-item",t,(()=>{this.expanded=!1,this.actionButton.focus()}))}renderTextHighlightColors(){return e("gux-rich-text-editor-list",{onClick:t=>this.onListClick(t)},e("slot",null))}emitNoHighlightAction(){this.noHighlightAction.emit(),this.expanded=!1,this.actionButton.focus()}renderTarget(){return e("gux-button-slot",{accent:"ghost","icon-only":!0,slot:"target"},e("button",{type:"button",ref:t=>this.actionButton=t,onClick:()=>this.togglePopup(),disabled:this.disabled||n(this.root),class:{"gux-is-pressed":this.active||this.expanded},"aria-haspopup":"true","aria-expanded":this.expanded.toString()},e("gux-icon",{size:"small","icon-name":"fa/highlighter-line-regular",decorative:!0}),e("gux-screen-reader-beta",null,this.i18n("textHighlight"))),this.renderTooltip())}render(){return e("gux-popup",{key:"e6276fd00611864df01b2f40b4131334a1a717ab",disabled:this.disabled,expanded:this.expanded,exceedTargetWidth:!0,placement:"bottom-start"},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return s(this)}static get watchers(){return{disabled:["watchDisabled"]}}};(function(t,i,e,s){var o,r=arguments.length,h=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,e,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(h=(r<3?o(h):r>3?o(i,e,h):o(i,e))||h);r>3&&h&&Object.defineProperty(i,e,h)})([o({triggerEvents:"mousedown"})],c.prototype,"onClickOutside",null),c.style=":host{display:block}.gux-text-highlight-popup{display:flex;flex-direction:column;gap:var(--gse-ui-rte-colorPalette-gap);inline-size:104px;padding:12px;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)}.gux-text-highlight-popup gux-rich-text-editor-list{display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--gse-ui-rte-colorPalette-gap);align-items:flex-start;justify-content:flex-start;padding:0}.gux-text-highlight-popup gux-button-slot{align-self:center;block-size:var(--gse-ui-rte-menuButton-height)}.gux-text-highlight-popup gux-button-slot button{block-size:var(--gse-ui-rte-menuButton-height)}gux-button-slot button.gux-is-pressed{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}";export{c as gux_rich_text_editor_action_text_highlight}
@@ -1 +1 @@
1
- import{r as t,h as r,a as e}from"./p-mm833MRp.js";import{c as a}from"./p-Cf6_BoFM.js";import{t as o}from"./p-B6h1eXrW.js";import{b as s}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var i={actionRefresh:"Refresh",actionDelete:"Delete",actionExport:"Export",actionImport:"Import",actionRevert:"Revert",actionAdd:"Add"};const n=class{constructor(r){t(this,r),this.accent="secondary",this.iconOnly=!1,this.disabled=!1}handleClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}returnActionLocale(t){return this.i18n(`action${a(t)}`)}returnActionTypeIcon(t){switch(t){case"refresh":return"fa/arrows-rotate-regular";case"delete":return"fa/trash-regular";case"export":return"fa/arrow-up-from-line-regular";case"import":return"fa/file-import-regular";case"revert":return"fa/arrow-rotate-left-regular";case"add":return"fa/plus-regular";default:return"fa/square-x-regular"}}async componentWillLoad(){o(this.root,{variant:this.action}),this.i18n=await s(this.root,i)}render(){return r("gux-table-toolbar-custom-action",{key:"7fab26fae7524f7813cd9e4faaa4fc076a6b027c","icon-only":this.iconOnly,accent:this.accent,disabled:this.disabled},r("span",{key:"70b9c59097b7d48f85aa3e3bf3c2a73a4f11095f",slot:"text"},this.returnActionLocale(this.action)),r("gux-icon",{key:"d2862b451a1e423229c7a3777a3f7f5dc4c7aba2",slot:"icon","icon-name":this.returnActionTypeIcon(this.action),decorative:!0}))}get root(){return e(this)}};n.style=":host{display:inline-block;inline-size:100%}:host[disabled]{pointer-events:none}";export{n as gux_table_toolbar_action}
1
+ import{r as t,h as r,a as e}from"./p-mm833MRp.js";import{c as a}from"./p-Cf6_BoFM.js";import{t as o}from"./p-CngQjjYl.js";import{b as s}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var i={actionRefresh:"Refresh",actionDelete:"Delete",actionExport:"Export",actionImport:"Import",actionRevert:"Revert",actionAdd:"Add"};const n=class{constructor(r){t(this,r),this.accent="secondary",this.iconOnly=!1,this.disabled=!1}handleClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}returnActionLocale(t){return this.i18n(`action${a(t)}`)}returnActionTypeIcon(t){switch(t){case"refresh":return"fa/arrows-rotate-regular";case"delete":return"fa/trash-regular";case"export":return"fa/arrow-up-from-line-regular";case"import":return"fa/file-import-regular";case"revert":return"fa/arrow-rotate-left-regular";case"add":return"fa/plus-regular";default:return"fa/square-x-regular"}}async componentWillLoad(){o(this.root,{variant:this.action}),this.i18n=await s(this.root,i)}render(){return r("gux-table-toolbar-custom-action",{key:"7fab26fae7524f7813cd9e4faaa4fc076a6b027c","icon-only":this.iconOnly,accent:this.accent,disabled:this.disabled},r("span",{key:"70b9c59097b7d48f85aa3e3bf3c2a73a4f11095f",slot:"text"},this.returnActionLocale(this.action)),r("gux-icon",{key:"d2862b451a1e423229c7a3777a3f7f5dc4c7aba2",slot:"icon","icon-name":this.returnActionTypeIcon(this.action),decorative:!0}))}get root(){return e(this)}};n.style=":host{display:inline-block;inline-size:100%}:host[disabled]{pointer-events:none}";export{n as gux_table_toolbar_action}
@@ -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-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
+ 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-CngQjjYl.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 e,h as o,a as r}from"./p-mm833MRp.js";import{O as i}from"./p-1mmdDpx8.js";import{h as t}from"./p-qzV3vtOw.js";import{b as l}from"./p-D_8CR3cJ.js";import{a,G as s}from"./p-BkM3RdTO.js";import{G as f,a as n,b as d}from"./p-DR1RHELj.js";import{g as u}from"./p-MAoEg4ig.js";import{t as h}from"./p-B6h1eXrW.js";import"./p-Cd4R0amv.js";var g={required:"Required"};const p=class{constructor(o){e(this,o),this.required=!1,this.indicatorMark="required",this.hasGroupError=!1,this.hasGroupHelp=!1,this.hasGroupLabelInfo=!1,this.disabled=!1}watchGroupError(e){const o=this.root.querySelectorAll("gux-form-field-radio");o&&o.forEach((o=>{o.hasGroupError=e}))}watchDisabled(){this.setDisabledRadio()}onMutation(){this.groupLabelInfo=this.root.querySelector("[slot=group-label-info]"),this.hasGroupError=t(this.root,"group-error"),this.hasGroupHelp=t(this.root,"group-help")}handleKeyup(e){var o,r;switch(e.key){case"Tab":this.root.matches(":focus-within")&&(null===(o=this.groupLabelInfo)||void 0===o||o.showTooltip(),this.hideTooltipTimeout=setTimeout((()=>{var e;null===(e=this.groupLabelInfo)||void 0===e||e.hideTooltip()}),6e3));break;case"Shift":break;default:this.root.matches(":focus-within")&&(null===(r=this.groupLabelInfo)||void 0===r||r.hideTooltip(),clearTimeout(this.hideTooltipTimeout))}}onFocusout(){var e;null===(e=this.groupLabelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideTooltipTimeout)}async componentWillLoad(){this.getI18nValue=await l(this.root,g),this.groupLabelInfo=this.root.querySelector("[slot=group-label-info]"),this.hasGroupError=t(this.root,"group-error"),this.hasGroupHelp=t(this.root,"group-help"),this.hasGroupLabelInfo=t(this.root,"group-label-info"),this.setLabel(),this.setDisabledRadio(),h(this.root)}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}setDisabledRadio(){const e=this.root.querySelectorAll("gux-form-field-radio");e&&e.forEach((e=>{e.hasGroupDisabled=this.disabled}))}renderText(e,o=!1){if(o)return" "+e}render(){var e;return o(d,{key:"acfba046d414d134764bb8d63c0d944ae190ef0b",labelPosition:"above",disabled:this.disabled},o(n,{key:"fc6c07690055a4422007cf2976e7c15cfc1e2b32"},null===(e=this.label)||void 0===e?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(u(this.root,"group-error"),this.hasGroupError),this.renderText(u(this.root,"group-help"),this.hasGroupHelp),this.renderText(u(this.root,"group-label-info"),this.hasGroupLabelInfo)),o(f,{key:"b910b0eab97d6aaff27123f8f3b7388f987e3153",position:"above",required:this.required},o("slot",{key:"e5b77b04269f5fdce492a3c42cf48fcf569cfe38",name:"group-label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"0bb67f0d56898360c3388e9e188c7c1b523844c1",variant:this.indicatorMark,required:this.required}),o("slot",{key:"6a7b260dc69e954062eb7d262ff1dd709a1d3fa0",name:"group-label-info"})),o("slot",{key:"324bdaa5590740c1fa0c86490c0ffc6fd50d0258"}),o(s,{key:"bf9c69816c159a8a180f71ad1654476ee28b8ca2",show:this.hasGroupError},o("slot",{key:"7c6500b5062b211d57b7aab257d8a43ad4d7d193",name:"group-error"})),o(a,{key:"7eced387d0ac6e21de3c5ba2b6a9561a910a701d",show:!this.hasGroupError&&this.hasGroupHelp},o("slot",{key:"cc323eb191b6d5139ee85b1a8e9b22c750d624e3",name:"group-help"})))}setLabel(){this.label=this.root.querySelector('label[slot="group-label"]')}get root(){return r(this)}static get watchers(){return{hasGroupError:["watchGroupError"],disabled:["watchDisabled"]}}};(function(e,o,r,i){var t,l=arguments.length,a=l<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,r,i);else for(var s=e.length-1;s>=0;s--)(t=e[s])&&(a=(l<3?t(a):l>3?t(o,r,a):t(o,r))||a);l>3&&a&&Object.defineProperty(o,r,a)})([i({childList:!0,subtree:!0})],p.prototype,"onMutation",null),p.style=".gux-form-field-fieldset-container{display:flex;min-inline-size:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-visual-label{display:inline-flex;flex:1 0 auto}.gux-form-field-visual-label ::slotted(label){min-inline-size:0}.gux-form-field-visual-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-visual-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-screenreader{display:none}.gux-form-field-screenreader-label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block}::slotted(gux-form-field-radio){padding-block-start:var(--gse-ui-formControl-group-gapItems)}::slotted(gux-form-field-radio:first-of-type){padding-block-start:0}:host([disabled]) ::slotted(label){opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}";export{p as gux_form_field_radio_group_beta}
1
+ import{r as e,h as o,a as r}from"./p-mm833MRp.js";import{O as i}from"./p-1mmdDpx8.js";import{h as t}from"./p-qzV3vtOw.js";import{b as l}from"./p-D_8CR3cJ.js";import{a,G as s}from"./p-BkM3RdTO.js";import{G as f,a as n,b as d}from"./p-DR1RHELj.js";import{g as u}from"./p-MAoEg4ig.js";import{t as h}from"./p-CngQjjYl.js";import"./p-Cd4R0amv.js";var g={required:"Required"};const p=class{constructor(o){e(this,o),this.required=!1,this.indicatorMark="required",this.hasGroupError=!1,this.hasGroupHelp=!1,this.hasGroupLabelInfo=!1,this.disabled=!1}watchGroupError(e){const o=this.root.querySelectorAll("gux-form-field-radio");o&&o.forEach((o=>{o.hasGroupError=e}))}watchDisabled(){this.setDisabledRadio()}onMutation(){this.groupLabelInfo=this.root.querySelector("[slot=group-label-info]"),this.hasGroupError=t(this.root,"group-error"),this.hasGroupHelp=t(this.root,"group-help")}handleKeyup(e){var o,r;switch(e.key){case"Tab":this.root.matches(":focus-within")&&(null===(o=this.groupLabelInfo)||void 0===o||o.showTooltip(),this.hideTooltipTimeout=setTimeout((()=>{var e;null===(e=this.groupLabelInfo)||void 0===e||e.hideTooltip()}),6e3));break;case"Shift":break;default:this.root.matches(":focus-within")&&(null===(r=this.groupLabelInfo)||void 0===r||r.hideTooltip(),clearTimeout(this.hideTooltipTimeout))}}onFocusout(){var e;null===(e=this.groupLabelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideTooltipTimeout)}async componentWillLoad(){this.getI18nValue=await l(this.root,g),this.groupLabelInfo=this.root.querySelector("[slot=group-label-info]"),this.hasGroupError=t(this.root,"group-error"),this.hasGroupHelp=t(this.root,"group-help"),this.hasGroupLabelInfo=t(this.root,"group-label-info"),this.setLabel(),this.setDisabledRadio(),h(this.root)}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}setDisabledRadio(){const e=this.root.querySelectorAll("gux-form-field-radio");e&&e.forEach((e=>{e.hasGroupDisabled=this.disabled}))}renderText(e,o=!1){if(o)return" "+e}render(){var e;return o(d,{key:"acfba046d414d134764bb8d63c0d944ae190ef0b",labelPosition:"above",disabled:this.disabled},o(n,{key:"fc6c07690055a4422007cf2976e7c15cfc1e2b32"},null===(e=this.label)||void 0===e?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(u(this.root,"group-error"),this.hasGroupError),this.renderText(u(this.root,"group-help"),this.hasGroupHelp),this.renderText(u(this.root,"group-label-info"),this.hasGroupLabelInfo)),o(f,{key:"b910b0eab97d6aaff27123f8f3b7388f987e3153",position:"above",required:this.required},o("slot",{key:"e5b77b04269f5fdce492a3c42cf48fcf569cfe38",name:"group-label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"0bb67f0d56898360c3388e9e188c7c1b523844c1",variant:this.indicatorMark,required:this.required}),o("slot",{key:"6a7b260dc69e954062eb7d262ff1dd709a1d3fa0",name:"group-label-info"})),o("slot",{key:"324bdaa5590740c1fa0c86490c0ffc6fd50d0258"}),o(s,{key:"bf9c69816c159a8a180f71ad1654476ee28b8ca2",show:this.hasGroupError},o("slot",{key:"7c6500b5062b211d57b7aab257d8a43ad4d7d193",name:"group-error"})),o(a,{key:"7eced387d0ac6e21de3c5ba2b6a9561a910a701d",show:!this.hasGroupError&&this.hasGroupHelp},o("slot",{key:"cc323eb191b6d5139ee85b1a8e9b22c750d624e3",name:"group-help"})))}setLabel(){this.label=this.root.querySelector('label[slot="group-label"]')}get root(){return r(this)}static get watchers(){return{hasGroupError:["watchGroupError"],disabled:["watchDisabled"]}}};(function(e,o,r,i){var t,l=arguments.length,a=l<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,r,i);else for(var s=e.length-1;s>=0;s--)(t=e[s])&&(a=(l<3?t(a):l>3?t(o,r,a):t(o,r))||a);l>3&&a&&Object.defineProperty(o,r,a)})([i({childList:!0,subtree:!0})],p.prototype,"onMutation",null),p.style=".gux-form-field-fieldset-container{display:flex;min-inline-size:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-visual-label{display:inline-flex;flex:1 0 auto}.gux-form-field-visual-label ::slotted(label){min-inline-size:0}.gux-form-field-visual-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-visual-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-screenreader{display:none}.gux-form-field-screenreader-label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block}::slotted(gux-form-field-radio){padding-block-start:var(--gse-ui-formControl-group-gapItems)}::slotted(gux-form-field-radio:first-of-type){padding-block-start:0}:host([disabled]) ::slotted(label){opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}";export{p as gux_form_field_radio_group_beta}
@@ -1 +1 @@
1
- import{r as e,c as t,f as n,h as a,a as s}from"./p-mm833MRp.js";import{b as o}from"./p-D_8CR3cJ.js";import{t as c}from"./p-B6h1eXrW.js";import{g as i,s as r,a as h,b as l,c as d,d as u,e as m,f,h as p}from"./p-ygfGN0jf.js";import"./p-Cd4R0amv.js";import"./p-CcCycvZh.js";import"./p-BMRf5pjV.js";var g={search:"Search",searchResults:"search results",selectedColumnCount:"{count} / {total} Columns Selected",selectAllColumnsScreenReader:"{count} of {total} columns selected: check checkbox to select all {total} columns",unselectAllColumnsScreenReader:"{count} of {total} columns selected: uncheck checkbox to unselect all {total} columns",movePositionPrompt:"Press space or enter to move the {columnName} column to position {newPositionNumber} from position {oldPositionNumber}.",reorderingModeActive:"Reordering mode active. Reposition the {columnName} column using the up arrow key, the down arrow key, the home key and the end key. Press Escape to deactivate reordering mode."};const b=class{constructor(n){e(this,n),this.guxorderchange=t(this,"guxorderchange",7),this.highlightResults={matchCount:0,currentMatch:0},this.keyboardOrderChange=i()}watchKeyboardOrderChange(){r(this.root,this.keyboardOrderChange)}async componentWillLoad(){c(this.root),this.i18n=await o(this.root,g)}componentDidLoad(){h(this.root,this.mainCheckboxElement)}handleInternalorderchange(e){e.stopPropagation(),this.emitOrderChange(e.detail)}emitOrderChange(e){const{oldIndex:t,newIndex:n}=e;if(t!==n){const t=l(this.root,e);this.guxorderchange.emit(t)}}handleInternalkeyboardorderstart(e){e.stopPropagation();const t=e.detail,n=d(e.target);this.keyboardOrderChange={oldIndex:n,newIndex:n},this.announceElement.guxAnnounce(this.i18n("reorderingModeActive",{columnName:t}))}handleInternalkeyboardreordermove(e){e.stopPropagation();const{delta:t,column:n}=e.detail;this.keyboardOrderChange=u(this.root,this.keyboardOrderChange,t),this.announceElement.guxAnnounce(this.i18n("movePositionPrompt",{columnName:n,newPositionNumber:this.keyboardOrderChange.newIndex+1,oldPositionNumber:this.keyboardOrderChange.oldIndex+1}))}handleInternalkeyboarddoreorder(e){e.stopPropagation(),this.emitOrderChange(this.keyboardOrderChange),e.target.guxFocus()}handleInternalkeyboardorderfinish(e){e.stopPropagation(),this.keyboardOrderChange=i()}onSearchInput(){this.highlightResults=m(this.root,this.searchElement)}onGuxCurrentMatchChanged(e){this.highlightResults=m(this.root,this.searchElement,e.detail)}onMainCheckboxChange(){f(this.root,this.mainCheckboxElement.checked),n(this.root)}onListChange(){h(this.root,this.mainCheckboxElement),n(this.root)}onSlotChange(){this.onListChange()}renderSelectedColumnCount(){const{count:e,total:t}=p(this.root);return a("div",null,a("span",{"aria-hidden":"true"},this.i18n("selectedColumnCount",{count:e,total:t})),a("span",{class:"gux-sr-only"},a("span",null,": ",this.i18n(e===t?"unselectAllColumnsScreenReader":"selectAllColumnsScreenReader",{count:e,total:t}))))}render(){return a("div",{key:"745ad6b0f7c7183994d85c187d938563112fcd49",class:"gux-container"},a("div",{key:"92ef46ad4ce5b1eff3f5d2e417e06fbca4f7f072",class:"gux-sr-only","aria-live":"polite"},`${this.highlightResults.matchCount} ${this.i18n("searchResults")}`),a("div",{key:"835b3fe8ef95b3ab924821452cde75c6f46cd208",class:"gux-search"},a("gux-content-search",{key:"8378e7af68f3958120b1b35e4029845870a38faf","match-count":this.highlightResults.matchCount,"current-match":this.highlightResults.currentMatch,onGuxcurrentmatchchanged:e=>this.onGuxCurrentMatchChanged(e)},a("input",{key:"ef2f3805bc855786a4f8cfbcc911f8664f61533d",type:"search",placeholder:this.i18n("search"),onInput:()=>this.onSearchInput(),ref:e=>this.searchElement=e}))),a("div",{key:"551a3c2f477e8cdb976994d30c0f2cc47ee7c537",class:"gux-select"},a("gux-form-field-checkbox",{key:"5faff47522f0b775bf1d12aa7376424a7f3d3f13"},a("input",{key:"a72e514759b10d454ddf22e377601d08197a1575",slot:"input",type:"checkbox",ref:e=>this.mainCheckboxElement=e,onChange:()=>this.onMainCheckboxChange()}),a("label",{key:"76ad520746c69e2ab377a124785fefaddcb4aa94",slot:"label"},this.renderSelectedColumnCount()))),a("div",{key:"75b6348fa3c03a2b8533ff0a6e907d1faca40eb8",class:"gux-list",onChange:()=>this.onListChange()},a("slot",{key:"079e2e2cefac3290c9de4705e230ce0ae74a19f2",onSlotchange:()=>this.onSlotChange()})),a("gux-announce-beta",{key:"325662b008ef07f58fdc22a6911fb3b3d3a64b52",ref:e=>this.announceElement=e}))}get root(){return s(this)}static get watchers(){return{keyboardOrderChange:["watchKeyboardOrderChange"]}}};b.style=".gux-container{inline-size:320px;min-inline-size:320px;padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding)}.gux-container .gux-search gux-content-search{inline-size:100%}.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-decoration,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-cancel-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-decoration{display:none;-webkit-appearance:none}.gux-container .gux-select{padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding);margin-inline-start:24px}.gux-sr-only{}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip-path:inset(50%)}";export{b as gux_column_manager}
1
+ import{r as e,c as t,f as n,h as a,a as s}from"./p-mm833MRp.js";import{b as o}from"./p-D_8CR3cJ.js";import{t as c}from"./p-CngQjjYl.js";import{g as i,s as r,a as h,b as l,c as d,d as u,e as m,f,h as g}from"./p-ygfGN0jf.js";import"./p-Cd4R0amv.js";import"./p-CcCycvZh.js";import"./p-BMRf5pjV.js";var p={search:"Search",searchResults:"search results",selectedColumnCount:"{count} / {total} Columns Selected",selectAllColumnsScreenReader:"{count} of {total} columns selected: check checkbox to select all {total} columns",unselectAllColumnsScreenReader:"{count} of {total} columns selected: uncheck checkbox to unselect all {total} columns",movePositionPrompt:"Press space or enter to move the {columnName} column to position {newPositionNumber} from position {oldPositionNumber}.",reorderingModeActive:"Reordering mode active. Reposition the {columnName} column using the up arrow key, the down arrow key, the home key and the end key. Press Escape to deactivate reordering mode."};const b=class{constructor(n){e(this,n),this.guxorderchange=t(this,"guxorderchange",7),this.highlightResults={matchCount:0,currentMatch:0},this.keyboardOrderChange=i()}watchKeyboardOrderChange(){r(this.root,this.keyboardOrderChange)}async componentWillLoad(){c(this.root),this.i18n=await o(this.root,p)}componentDidLoad(){h(this.root,this.mainCheckboxElement)}handleInternalorderchange(e){e.stopPropagation(),this.emitOrderChange(e.detail)}emitOrderChange(e){const{oldIndex:t,newIndex:n}=e;if(t!==n){const t=l(this.root,e);this.guxorderchange.emit(t)}}handleInternalkeyboardorderstart(e){e.stopPropagation();const t=e.detail,n=d(e.target);this.keyboardOrderChange={oldIndex:n,newIndex:n},this.announceElement.guxAnnounce(this.i18n("reorderingModeActive",{columnName:t}))}handleInternalkeyboardreordermove(e){e.stopPropagation();const{delta:t,column:n}=e.detail;this.keyboardOrderChange=u(this.root,this.keyboardOrderChange,t),this.announceElement.guxAnnounce(this.i18n("movePositionPrompt",{columnName:n,newPositionNumber:this.keyboardOrderChange.newIndex+1,oldPositionNumber:this.keyboardOrderChange.oldIndex+1}))}handleInternalkeyboarddoreorder(e){e.stopPropagation(),this.emitOrderChange(this.keyboardOrderChange),e.target.guxFocus()}handleInternalkeyboardorderfinish(e){e.stopPropagation(),this.keyboardOrderChange=i()}onSearchInput(){this.highlightResults=m(this.root,this.searchElement)}onGuxCurrentMatchChanged(e){this.highlightResults=m(this.root,this.searchElement,e.detail)}onMainCheckboxChange(){f(this.root,this.mainCheckboxElement.checked),n(this.root)}onListChange(){h(this.root,this.mainCheckboxElement),n(this.root)}onSlotChange(){this.onListChange()}renderSelectedColumnCount(){const{count:e,total:t}=g(this.root);return a("div",null,a("span",{"aria-hidden":"true"},this.i18n("selectedColumnCount",{count:e,total:t})),a("span",{class:"gux-sr-only"},a("span",null,": ",this.i18n(e===t?"unselectAllColumnsScreenReader":"selectAllColumnsScreenReader",{count:e,total:t}))))}render(){return a("div",{key:"745ad6b0f7c7183994d85c187d938563112fcd49",class:"gux-container"},a("div",{key:"92ef46ad4ce5b1eff3f5d2e417e06fbca4f7f072",class:"gux-sr-only","aria-live":"polite"},`${this.highlightResults.matchCount} ${this.i18n("searchResults")}`),a("div",{key:"835b3fe8ef95b3ab924821452cde75c6f46cd208",class:"gux-search"},a("gux-content-search",{key:"8378e7af68f3958120b1b35e4029845870a38faf","match-count":this.highlightResults.matchCount,"current-match":this.highlightResults.currentMatch,onGuxcurrentmatchchanged:e=>this.onGuxCurrentMatchChanged(e)},a("input",{key:"ef2f3805bc855786a4f8cfbcc911f8664f61533d",type:"search",placeholder:this.i18n("search"),onInput:()=>this.onSearchInput(),ref:e=>this.searchElement=e}))),a("div",{key:"551a3c2f477e8cdb976994d30c0f2cc47ee7c537",class:"gux-select"},a("gux-form-field-checkbox",{key:"5faff47522f0b775bf1d12aa7376424a7f3d3f13"},a("input",{key:"a72e514759b10d454ddf22e377601d08197a1575",slot:"input",type:"checkbox",ref:e=>this.mainCheckboxElement=e,onChange:()=>this.onMainCheckboxChange()}),a("label",{key:"76ad520746c69e2ab377a124785fefaddcb4aa94",slot:"label"},this.renderSelectedColumnCount()))),a("div",{key:"75b6348fa3c03a2b8533ff0a6e907d1faca40eb8",class:"gux-list",onChange:()=>this.onListChange()},a("slot",{key:"079e2e2cefac3290c9de4705e230ce0ae74a19f2",onSlotchange:()=>this.onSlotChange()})),a("gux-announce-beta",{key:"325662b008ef07f58fdc22a6911fb3b3d3a64b52",ref:e=>this.announceElement=e}))}get root(){return s(this)}static get watchers(){return{keyboardOrderChange:["watchKeyboardOrderChange"]}}};b.style=".gux-container{inline-size:320px;min-inline-size:320px;padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding)}.gux-container .gux-search gux-content-search{inline-size:100%}.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-decoration,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-cancel-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-decoration{display:none;-webkit-appearance:none}.gux-container .gux-select{padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding);margin-inline-start:24px}.gux-sr-only{}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip-path:inset(50%)}";export{b as gux_column_manager}
@@ -1 +1 @@
1
- import{r as e,h as t,a as o}from"./p-mm833MRp.js";import{O as i}from"./p-1mmdDpx8.js";import{h as r}from"./p-qzV3vtOw.js";import{t as l}from"./p-B6h1eXrW.js";import{G as s,a}from"./p-BkM3RdTO.js";import{G as f,a as n}from"./p-Bxg2lxW0.js";import{a as h,g as d,v as p}from"./p-DHLxhscH.js";import{p as u}from"./p-PYfNAK8p.js";import{o as m}from"./p-De1NnCmO.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";const g=class{constructor(t){e(this,t),this.indicatorMark="required",this.computedLabelPosition="above",this.hasError=!1,this.hasHelp=!1,this.required=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=r(this.root,"error"),this.hasHelp=r(this.root,"help")}handleKeyup(e){var t,o;switch(e.key){case"Tab":this.input.matches(":focus-visible")&&(null===(t=this.labelInfo)||void 0===t||t.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3));break;case"Shift":break;default:this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=r(this.root,"error"),this.hasHelp=r(this.root,"help"),this.labelInfo=this.root.querySelector("[slot=label-info]"),l(this.root,{variant:this.variant})}disconnectedCallback(){this.requiredObserver&&this.requiredObserver.disconnect()}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=h(this.label,this.labelPosition)}setInput(){this.input=d(this.root,'input[type="file"][slot="input"]'),u(this.input),this.required=this.input.required,this.requiredObserver=m(this.input,(e=>{this.required=e})),p(this.root,this.input)}get variant(){return`fileInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}render(){return t(n,{key:"0388360b8ffd364cb113edad7bbd2cd417aa0738",labelPosition:this.computedLabelPosition},t(f,{key:"0eea04bc0700ff76a37dfc1d8c642bb319cc7583",position:this.computedLabelPosition,required:this.required},t("slot",{key:"1fe4e4f8f9e178b4db023452c8fef586c20fd639",name:"label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"850a5ea4ea31aed7ec8a2d24b97833e0c6651d87",variant:this.indicatorMark,required:this.required}),t("slot",{key:"90e0fc3ab8cb27d1b907f41fcfdfe53d73512d68",name:"label-info"})),t("div",{key:"9cbc089ee1182d873a4da96c77a03a8fba01f0fc",class:"gux-input-and-error-container"},t("slot",{key:"2fdaacde8ab249e618b86072e66dd291c4790157",name:"input",onSlotchange:()=>this.setInput()}),t(s,{key:"3f6e546494f001ee6dddef3c3bf65837939e4fc4",show:this.hasError},t("slot",{key:"547e941bb527ef5c23e68170fdbf584307ae107b",name:"error"})),t(a,{key:"49565bfbe9981f787951385891f2aafbbcf55684",show:!this.hasError&&this.hasHelp},t("slot",{key:"9d46b39b1296b7d9a2248f51df19bdc42f036bf3",name:"help"}))))}get root(){return o(this)}};(function(e,t,o,i){var r,l=arguments.length,s=l<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(l<3?r(s):l>3?r(t,o,s):r(t,o))||s);l>3&&s&&Object.defineProperty(t,o,s)})([i({childList:!0,subtree:!0})],g.prototype,"onMutation",null),g.style=".gux-form-field-container{display:flex;flex-direction:column}.gux-form-field-container.gux-beside{flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(label){min-inline-size:0}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1}";export{g as gux_form_field_file}
1
+ import{r as e,h as t,a as o}from"./p-mm833MRp.js";import{O as i}from"./p-1mmdDpx8.js";import{h as r}from"./p-qzV3vtOw.js";import{t as l}from"./p-CngQjjYl.js";import{G as s,a}from"./p-BkM3RdTO.js";import{G as f,a as n}from"./p-Bxg2lxW0.js";import{a as h,g as d,v as p}from"./p-DHLxhscH.js";import{p as u}from"./p-PYfNAK8p.js";import{o as m}from"./p-De1NnCmO.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";const g=class{constructor(t){e(this,t),this.indicatorMark="required",this.computedLabelPosition="above",this.hasError=!1,this.hasHelp=!1,this.required=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=r(this.root,"error"),this.hasHelp=r(this.root,"help")}handleKeyup(e){var t,o;switch(e.key){case"Tab":this.input.matches(":focus-visible")&&(null===(t=this.labelInfo)||void 0===t||t.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3));break;case"Shift":break;default:this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=r(this.root,"error"),this.hasHelp=r(this.root,"help"),this.labelInfo=this.root.querySelector("[slot=label-info]"),l(this.root,{variant:this.variant})}disconnectedCallback(){this.requiredObserver&&this.requiredObserver.disconnect()}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=h(this.label,this.labelPosition)}setInput(){this.input=d(this.root,'input[type="file"][slot="input"]'),u(this.input),this.required=this.input.required,this.requiredObserver=m(this.input,(e=>{this.required=e})),p(this.root,this.input)}get variant(){return`fileInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}render(){return t(n,{key:"0388360b8ffd364cb113edad7bbd2cd417aa0738",labelPosition:this.computedLabelPosition},t(f,{key:"0eea04bc0700ff76a37dfc1d8c642bb319cc7583",position:this.computedLabelPosition,required:this.required},t("slot",{key:"1fe4e4f8f9e178b4db023452c8fef586c20fd639",name:"label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"850a5ea4ea31aed7ec8a2d24b97833e0c6651d87",variant:this.indicatorMark,required:this.required}),t("slot",{key:"90e0fc3ab8cb27d1b907f41fcfdfe53d73512d68",name:"label-info"})),t("div",{key:"9cbc089ee1182d873a4da96c77a03a8fba01f0fc",class:"gux-input-and-error-container"},t("slot",{key:"2fdaacde8ab249e618b86072e66dd291c4790157",name:"input",onSlotchange:()=>this.setInput()}),t(s,{key:"3f6e546494f001ee6dddef3c3bf65837939e4fc4",show:this.hasError},t("slot",{key:"547e941bb527ef5c23e68170fdbf584307ae107b",name:"error"})),t(a,{key:"49565bfbe9981f787951385891f2aafbbcf55684",show:!this.hasError&&this.hasHelp},t("slot",{key:"9d46b39b1296b7d9a2248f51df19bdc42f036bf3",name:"help"}))))}get root(){return o(this)}};(function(e,t,o,i){var r,l=arguments.length,s=l<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(l<3?r(s):l>3?r(t,o,s):r(t,o))||s);l>3&&s&&Object.defineProperty(t,o,s)})([i({childList:!0,subtree:!0})],g.prototype,"onMutation",null),g.style=".gux-form-field-container{display:flex;flex-direction:column}.gux-form-field-container.gux-beside{flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 0 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(label){min-inline-size:0}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1}";export{g as gux_form_field_file}
@@ -1 +1 @@
1
- import{r as e,c as a,h as t,H as o,a as s}from"./p-mm833MRp.js";import{t as i}from"./p-B6h1eXrW.js";const n=class{constructor(t){e(this,t),this.guxdismiss=a(this,"guxdismiss",7),this.accent="neutral"}componentWillLoad(){i(this.root,{variant:this.accent})}render(){return t(o,{key:"a221f52cbdd76900b3d0b842ccaab0b0e0e5e2cb"},t("div",{key:"a5036ca56b766bc8d7e211f7dbe566962dc23531",class:`gux-icon gux-${this.accent}`},t("slot",{key:"6242df94becf0366bcf68735edea9c74765637a7",name:"icon"})),t("div",{key:"69751b6854c89e655042dac0893561a5ded058e6",class:"gux-content"},t("gux-truncate",{key:"fde336b4dbe5ffc5c04c808c72502a7dda278b35",class:"gux-title","max-lines":1},t("slot",{key:"593a538ec9ae40f9f2722e94ae9742e6b1ad47ba",name:"title"})),t("gux-truncate",{key:"0f03a4ea727a8af1dfc0c2668a8e604ceeb4f0be",class:"gux-message","max-lines":2},t("slot",{key:"36b1eb5a8344b9646afaa5d87d30d7e60bda479c",name:"message"}))),t("gux-dismiss-button",{key:"301fbbdebd695ed5d6333ee06abc11d7ce2af3f3",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(e){e.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return s(this)}};n.style=":host{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;width:294px;padding:16px 8px 16px 16px;margin-bottom:4px;color:var(--gse-ui-toast-success-foregroundColor);background:var(--gse-ui-toast-success-backgroundColor);border:1px solid var(--gse-ui-card-default-border-color);border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-icon{flex:0 1 auto;align-self:auto;order:0;margin:4px}.gux-icon ::slotted(gux-icon){width:24px !important;height:24px !important}.gux-icon.gux-alert{color:var(--gse-ui-toast-error-iconColor)}.gux-icon.gux-warning{color:var(--gse-ui-toast-warning-iconColor)}.gux-icon.gux-positive{color:var(--gse-ui-toast-success-iconColor)}.gux-icon.gux-neutral{color:var(--gse-ui-toast-info-iconColor)}.gux-content{display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;align-self:auto;order:0;margin:0 12px 0 8px;color:var(--gse-ui-toast-success-foregroundColor)}.gux-content .gux-title,.gux-content .gux-message{flex:1 1 auto;align-self:auto;order:0}.gux-content .gux-title{font-family:var(--gse-semantic-heading-sm-bold-fontFamily), var(--gse-semantic-theme-fontFamily-headings), sans-serif;font-size:var(--gse-semantic-heading-sm-bold-fontSize);line-height:var(--gse-semantic-heading-sm-bold-lineHeight);font-weight:var(--gse-semantic-heading-sm-bold-fontWeight)}";export{n as gux_notification_toast_legacy}
1
+ import{r as e,c as a,h as t,H as o,a as s}from"./p-mm833MRp.js";import{t as i}from"./p-CngQjjYl.js";const n=class{constructor(t){e(this,t),this.guxdismiss=a(this,"guxdismiss",7),this.accent="neutral"}componentWillLoad(){i(this.root,{variant:this.accent})}render(){return t(o,{key:"a221f52cbdd76900b3d0b842ccaab0b0e0e5e2cb"},t("div",{key:"a5036ca56b766bc8d7e211f7dbe566962dc23531",class:`gux-icon gux-${this.accent}`},t("slot",{key:"6242df94becf0366bcf68735edea9c74765637a7",name:"icon"})),t("div",{key:"69751b6854c89e655042dac0893561a5ded058e6",class:"gux-content"},t("gux-truncate",{key:"fde336b4dbe5ffc5c04c808c72502a7dda278b35",class:"gux-title","max-lines":1},t("slot",{key:"593a538ec9ae40f9f2722e94ae9742e6b1ad47ba",name:"title"})),t("gux-truncate",{key:"0f03a4ea727a8af1dfc0c2668a8e604ceeb4f0be",class:"gux-message","max-lines":2},t("slot",{key:"36b1eb5a8344b9646afaa5d87d30d7e60bda479c",name:"message"}))),t("gux-dismiss-button",{key:"301fbbdebd695ed5d6333ee06abc11d7ce2af3f3",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(e){e.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return s(this)}};n.style=":host{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;width:294px;padding:16px 8px 16px 16px;margin-bottom:4px;color:var(--gse-ui-toast-success-foregroundColor);background:var(--gse-ui-toast-success-backgroundColor);border:1px solid var(--gse-ui-card-default-border-color);border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-icon{flex:0 1 auto;align-self:auto;order:0;margin:4px}.gux-icon ::slotted(gux-icon){width:24px !important;height:24px !important}.gux-icon.gux-alert{color:var(--gse-ui-toast-error-iconColor)}.gux-icon.gux-warning{color:var(--gse-ui-toast-warning-iconColor)}.gux-icon.gux-positive{color:var(--gse-ui-toast-success-iconColor)}.gux-icon.gux-neutral{color:var(--gse-ui-toast-info-iconColor)}.gux-content{display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;align-self:auto;order:0;margin:0 12px 0 8px;color:var(--gse-ui-toast-success-foregroundColor)}.gux-content .gux-title,.gux-content .gux-message{flex:1 1 auto;align-self:auto;order:0}.gux-content .gux-title{font-family:var(--gse-semantic-heading-sm-bold-fontFamily), var(--gse-semantic-theme-fontFamily-headings), sans-serif;font-size:var(--gse-semantic-heading-sm-bold-fontSize);line-height:var(--gse-semantic-heading-sm-bold-lineHeight);font-weight:var(--gse-semantic-heading-sm-bold-fontWeight)}";export{n as gux_notification_toast_legacy}
@@ -1 +1 @@
1
- import{r as n,h as e,a}from"./p-mm833MRp.js";import{t}from"./p-B6h1eXrW.js";import{O as i}from"./p-1mmdDpx8.js";import{h as s}from"./p-qzV3vtOw.js";const o=class{constructor(e){n(this,e),this.hasCallToAction=!1,this.hasSecondaryCallToAction=!1,this.hasGuidance=!1,this.alignment="center",this.noPadding=!1}onMutation(){this.hasCallToAction=s(this.root,"call-to-action"),this.hasGuidance=s(this.root,"additional-guidance"),this.hasSecondaryCallToAction=s(this.root,"secondary-call-to-action")}renderImageSlot(){return e("slot",{name:"image"})}renderCallToActions(){if(this.hasCallToAction)return e("div",{class:"gux-call-to-actions"},this.hasCallToAction&&e("gux-button-slot",{accent:"primary"},e("slot",{name:"call-to-action"})),this.hasSecondaryCallToAction&&e("gux-button-slot",{accent:"ghost"},e("slot",{name:"secondary-call-to-action"})))}renderGuidanceSlot(){if(this.hasGuidance)return e("div",{class:"gux-guidance"},e("gux-truncate",{maxLines:3},e("slot",{name:"additional-guidance"})))}componentWillLoad(){t(this.root),this.hasCallToAction=s(this.root,"call-to-action"),this.hasGuidance=s(this.root,"additional-guidance"),this.hasSecondaryCallToAction=s(this.root,"secondary-call-to-action")}render(){return e("div",{key:"7dd2552d2d684980a064806c89588ce4cf889442",class:{"gux-container":!0,"gux-no-padding":this.noPadding,"gux-alignment-left":"left"===this.alignment}},e("div",{key:"a5e3d28c009cad10240c1694ed75b2625a05a788",class:"gux-image"},this.renderImageSlot()),e("div",{key:"2b38509836292be6015fe819043b2e2a583a1b10",class:"gux-message"},e("slot",{key:"288c4c78d1aeeb01387386d1d042aa153da8d2bc",name:"primary-message"})),this.renderGuidanceSlot(),this.renderCallToActions())}get root(){return a(this)}};(function(n,e,a,t){var i,s=arguments.length,o=s<3?e:null===t?t=Object.getOwnPropertyDescriptor(e,a):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,e,a,t);else for(var r=n.length-1;r>=0;r--)(i=n[r])&&(o=(s<3?i(o):s>3?i(e,a,o):i(e,a))||o);s>3&&o&&Object.defineProperty(e,a,o)})([i({childList:!0,subtree:!0})],o.prototype,"onMutation",null),o.style=":host {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n container-type: inline-size;\n}\n\n.gux-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: var(--gse-ui-blankState-padding);\n color: var(--gse-ui-blankState-foregroundColor);\n}\n.gux-container.gux-no-padding {\n padding: 0;\n}\n.gux-container .gux-call-to-actions {\n display: flex;\n flex-direction: column;\n gap: var(--gse-ui-blankState-gapCtaGroup);\n padding-block-start: var(--gse-ui-blankState-gapContent);\n}\n.gux-container .gux-image {\n padding-block-end: var(--gse-ui-blankState-gapMain);\n}\n.gux-container .gux-message {\n padding-block-end: var(--gse-ui-blankState-gapMessage);\n}\n.gux-container .gux-guidance {\n text-align: center;\n}\n.gux-container ::slotted(gux-icon) {\n inline-size: var(--gse-ui-blankState-icon-size-lg);\n block-size: var(--gse-ui-blankState-icon-size-lg);\n color: var(--gse-ui-blankState-iconColor);\n}\n.gux-container slot[name=primary-message] {\n font-family: var(--gse-ui-progressAndLoading-blankState-large-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-large-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-large-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-large-header-lineHeight);\n color: var(--gse-ui-blankState-foregroundColor);\n text-align: center;\n}\n.gux-container slot[name=additional-guidance] {\n font-family: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-large-subheader-lineHeight);\n color: var(--gse-ui-blankState-foregroundColor);\n text-align: center;\n}\n.gux-container.gux-alignment-left {\n align-items: flex-start;\n}\n.gux-container.gux-alignment-left slot[name=primary-message],\n.gux-container.gux-alignment-left slot[name=additional-guidance] {\n text-align: start;\n}\n.gux-container.gux-alignment-left .gux-guidance {\n text-align: start;\n}\n\n@container (width < 570px) {\n .gux-container ::slotted(gux-icon) {\n inline-size: var(--gse-ui-blankState-icon-size-sm);\n block-size: var(--gse-ui-blankState-icon-size-sm);\n }\n .gux-container slot[name=primary-message] {\n font-family: var(--gse-ui-progressAndLoading-blankState-small-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-small-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-small-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-small-header-lineHeight);\n }\n .gux-container slot[name=additional-guidance] {\n font-family: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-small-subheader-lineHeight);\n }\n}";export{o as gux_blank_state_beta}
1
+ import{r as n,h as e,a}from"./p-mm833MRp.js";import{t}from"./p-CngQjjYl.js";import{O as i}from"./p-1mmdDpx8.js";import{h as s}from"./p-qzV3vtOw.js";const o=class{constructor(e){n(this,e),this.hasCallToAction=!1,this.hasSecondaryCallToAction=!1,this.hasGuidance=!1,this.alignment="center",this.noPadding=!1}onMutation(){this.hasCallToAction=s(this.root,"call-to-action"),this.hasGuidance=s(this.root,"additional-guidance"),this.hasSecondaryCallToAction=s(this.root,"secondary-call-to-action")}renderImageSlot(){return e("slot",{name:"image"})}renderCallToActions(){if(this.hasCallToAction)return e("div",{class:"gux-call-to-actions"},this.hasCallToAction&&e("gux-button-slot",{accent:"primary"},e("slot",{name:"call-to-action"})),this.hasSecondaryCallToAction&&e("gux-button-slot",{accent:"ghost"},e("slot",{name:"secondary-call-to-action"})))}renderGuidanceSlot(){if(this.hasGuidance)return e("div",{class:"gux-guidance"},e("gux-truncate",{maxLines:3},e("slot",{name:"additional-guidance"})))}componentWillLoad(){t(this.root),this.hasCallToAction=s(this.root,"call-to-action"),this.hasGuidance=s(this.root,"additional-guidance"),this.hasSecondaryCallToAction=s(this.root,"secondary-call-to-action")}render(){return e("div",{key:"7dd2552d2d684980a064806c89588ce4cf889442",class:{"gux-container":!0,"gux-no-padding":this.noPadding,"gux-alignment-left":"left"===this.alignment}},e("div",{key:"a5e3d28c009cad10240c1694ed75b2625a05a788",class:"gux-image"},this.renderImageSlot()),e("div",{key:"2b38509836292be6015fe819043b2e2a583a1b10",class:"gux-message"},e("slot",{key:"288c4c78d1aeeb01387386d1d042aa153da8d2bc",name:"primary-message"})),this.renderGuidanceSlot(),this.renderCallToActions())}get root(){return a(this)}};(function(n,e,a,t){var i,s=arguments.length,o=s<3?e:null===t?t=Object.getOwnPropertyDescriptor(e,a):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,e,a,t);else for(var r=n.length-1;r>=0;r--)(i=n[r])&&(o=(s<3?i(o):s>3?i(e,a,o):i(e,a))||o);s>3&&o&&Object.defineProperty(e,a,o)})([i({childList:!0,subtree:!0})],o.prototype,"onMutation",null),o.style=":host {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n container-type: inline-size;\n}\n\n.gux-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: var(--gse-ui-blankState-padding);\n color: var(--gse-ui-blankState-foregroundColor);\n}\n.gux-container.gux-no-padding {\n padding: 0;\n}\n.gux-container .gux-call-to-actions {\n display: flex;\n flex-direction: column;\n gap: var(--gse-ui-blankState-gapCtaGroup);\n padding-block-start: var(--gse-ui-blankState-gapContent);\n}\n.gux-container .gux-image {\n padding-block-end: var(--gse-ui-blankState-gapMain);\n}\n.gux-container .gux-message {\n padding-block-end: var(--gse-ui-blankState-gapMessage);\n}\n.gux-container .gux-guidance {\n text-align: center;\n}\n.gux-container ::slotted(gux-icon) {\n inline-size: var(--gse-ui-blankState-icon-size-lg);\n block-size: var(--gse-ui-blankState-icon-size-lg);\n color: var(--gse-ui-blankState-iconColor);\n}\n.gux-container slot[name=primary-message] {\n font-family: var(--gse-ui-progressAndLoading-blankState-large-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-large-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-large-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-large-header-lineHeight);\n color: var(--gse-ui-blankState-foregroundColor);\n text-align: center;\n}\n.gux-container slot[name=additional-guidance] {\n font-family: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-large-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-large-subheader-lineHeight);\n color: var(--gse-ui-blankState-foregroundColor);\n text-align: center;\n}\n.gux-container.gux-alignment-left {\n align-items: flex-start;\n}\n.gux-container.gux-alignment-left slot[name=primary-message],\n.gux-container.gux-alignment-left slot[name=additional-guidance] {\n text-align: start;\n}\n.gux-container.gux-alignment-left .gux-guidance {\n text-align: start;\n}\n\n@container (width < 570px) {\n .gux-container ::slotted(gux-icon) {\n inline-size: var(--gse-ui-blankState-icon-size-sm);\n block-size: var(--gse-ui-blankState-icon-size-sm);\n }\n .gux-container slot[name=primary-message] {\n font-family: var(--gse-ui-progressAndLoading-blankState-small-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-small-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-small-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-small-header-lineHeight);\n }\n .gux-container slot[name=additional-guidance] {\n font-family: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-blankState-small-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-blankState-small-subheader-lineHeight);\n }\n}";export{o as gux_blank_state_beta}
@@ -1 +1 @@
1
- import{r as e,h as a,a as n}from"./p-mm833MRp.js";import{t as i}from"./p-B6h1eXrW.js";const g=class{constructor(a){e(this,a)}componentWillLoad(){i(this.root)}render(){return a("div",{key:"33aa762a14b4269f0b65db987aca0050ae8fd9eb",class:"gux-container",role:"alert","aria-live":"assertive"},a("div",{key:"7b05aa6383e209326b1b4e9e97ce48d688b9b3ae",class:"gux-progress"},a("slot",{key:"8e40aa68437a1a9df282091f61e64887bf92fa0b",name:"progress"})),a("div",{key:"3868052a6e93f8de73f14e859c0d699d21293bc3",class:"gux-primary-message"},a("slot",{key:"8bb145a728592ebe6e7bd14415c82a94969fe96a",name:"primary-message"})),a("div",{key:"8c061ce88d5b9b14525e4dd4051112af2e7136ca",class:"gux-additional-guidance"},a("slot",{key:"9fbf9cbea4f3cdfbbbd33b2b2f11f670bb6f5f2a",name:"additional-guidance"})))}get root(){return n(this)}};g.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 max-inline-size: var(--gse-ui-progressAndLoading-loadingState-large-width);\n color: var(--gse-ui-progressAndLoading-textColor);\n text-align: center;\n}\n\n@container (width > 400px) {\n .gux-container .gux-primary-message {\n margin-block-start: var(--gse-ui-progressAndLoading-large-gap);\n font-family: var(--gse-ui-progressAndLoading-loadingState-large-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-large-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-large-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-large-header-lineHeight);\n }\n .gux-container .gux-additional-guidance {\n margin-block-start: var(--gse-ui-progressAndLoading-large-gapText);\n font-family: var(--gse-ui-progressAndLoading-loadingState-large-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-large-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-large-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-large-subheader-lineHeight);\n }\n}\n@container (width > 200px) and (width <=400px) {\n .gux-container .gux-primary-message {\n margin-block-start: var(--gse-ui-progressAndLoading-medium-gap);\n font-family: var(--gse-ui-progressAndLoading-loadingState-medium-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-medium-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-medium-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-medium-header-lineHeight);\n }\n .gux-container .gux-additional-guidance {\n margin-block-start: var(--gse-ui-progressAndLoading-medium-gapText);\n font-family: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-lineHeight);\n }\n}\n@container (width <=200px) {\n .gux-container .gux-primary-message {\n margin-block-start: var(--gse-ui-progressAndLoading-small-gap);\n font-family: var(--gse-ui-progressAndLoading-loadingState-small-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-small-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-small-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-small-header-lineHeight);\n }\n .gux-container .gux-additional-guidance {\n margin-block-start: var(--gse-ui-progressAndLoading-small-gapText);\n font-family: var(--gse-ui-progressAndLoading-loadingState-small-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-small-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-small-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-small-subheader-lineHeight);\n }\n}";export{g as gux_loading_message}
1
+ import{r as e,h as a,a as n}from"./p-mm833MRp.js";import{t as i}from"./p-CngQjjYl.js";const g=class{constructor(a){e(this,a)}componentWillLoad(){i(this.root)}render(){return a("div",{key:"33aa762a14b4269f0b65db987aca0050ae8fd9eb",class:"gux-container",role:"alert","aria-live":"assertive"},a("div",{key:"7b05aa6383e209326b1b4e9e97ce48d688b9b3ae",class:"gux-progress"},a("slot",{key:"8e40aa68437a1a9df282091f61e64887bf92fa0b",name:"progress"})),a("div",{key:"3868052a6e93f8de73f14e859c0d699d21293bc3",class:"gux-primary-message"},a("slot",{key:"8bb145a728592ebe6e7bd14415c82a94969fe96a",name:"primary-message"})),a("div",{key:"8c061ce88d5b9b14525e4dd4051112af2e7136ca",class:"gux-additional-guidance"},a("slot",{key:"9fbf9cbea4f3cdfbbbd33b2b2f11f670bb6f5f2a",name:"additional-guidance"})))}get root(){return n(this)}};g.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 max-inline-size: var(--gse-ui-progressAndLoading-loadingState-large-width);\n color: var(--gse-ui-progressAndLoading-textColor);\n text-align: center;\n}\n\n@container (width > 400px) {\n .gux-container .gux-primary-message {\n margin-block-start: var(--gse-ui-progressAndLoading-large-gap);\n font-family: var(--gse-ui-progressAndLoading-loadingState-large-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-large-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-large-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-large-header-lineHeight);\n }\n .gux-container .gux-additional-guidance {\n margin-block-start: var(--gse-ui-progressAndLoading-large-gapText);\n font-family: var(--gse-ui-progressAndLoading-loadingState-large-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-large-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-large-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-large-subheader-lineHeight);\n }\n}\n@container (width > 200px) and (width <=400px) {\n .gux-container .gux-primary-message {\n margin-block-start: var(--gse-ui-progressAndLoading-medium-gap);\n font-family: var(--gse-ui-progressAndLoading-loadingState-medium-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-medium-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-medium-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-medium-header-lineHeight);\n }\n .gux-container .gux-additional-guidance {\n margin-block-start: var(--gse-ui-progressAndLoading-medium-gapText);\n font-family: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-lineHeight);\n }\n}\n@container (width <=200px) {\n .gux-container .gux-primary-message {\n margin-block-start: var(--gse-ui-progressAndLoading-small-gap);\n font-family: var(--gse-ui-progressAndLoading-loadingState-small-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-small-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-small-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-small-header-lineHeight);\n }\n .gux-container .gux-additional-guidance {\n margin-block-start: var(--gse-ui-progressAndLoading-small-gapText);\n font-family: var(--gse-ui-progressAndLoading-loadingState-small-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-small-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-small-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-small-subheader-lineHeight);\n }\n}";export{g as gux_loading_message}