genesys-spark-components 4.154.5 → 4.154.6

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 (400) hide show
  1. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  2. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-avatar-beta.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-avatar-group-add-item-beta_3.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-avatar-group-item-beta.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-button_2.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-calendar-beta.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-day-beta.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-file-list-item.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-file-beta.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-file.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-number_2.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-inline-dropdown-beta.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-link-beta.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-popover-beta.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-popover-list-beta.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-rich-highlight-list-item.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-rich-style-list-item_3.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-rich-text-editor-beta.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +1 -1
  88. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
  91. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
  92. package/dist/cjs/gux-side-panel-beta.cjs.entry.js +1 -1
  93. package/dist/cjs/gux-side-panel-heading.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  95. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  96. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  97. package/dist/cjs/gux-status-indicator-beta.cjs.entry.js +1 -1
  98. package/dist/cjs/gux-step-title.cjs.entry.js +1 -1
  99. package/dist/cjs/gux-step.cjs.entry.js +1 -1
  100. package/dist/cjs/gux-stepper-beta.cjs.entry.js +1 -1
  101. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  102. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  103. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  104. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  105. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  106. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  107. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  108. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  109. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  110. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  111. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  112. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  113. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
  114. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  115. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  116. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  117. package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +1 -1
  118. package/dist/cjs/gux-tooltip-pointer-beta.cjs.entry.js +1 -1
  119. package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
  120. package/dist/cjs/{usage-4a70e9e3.js → usage-1cc3f37c.js} +1 -1
  121. package/dist/collection/components/beta/gux-icon-tooltip/gux-icon-tooltip.js +1 -1
  122. package/dist/collection/components/beta/gux-side-panel/components/gux-side-panel-heading/gux-side-panel-heading.js +1 -1
  123. package/dist/collection/components/stable/gux-calendar/tests/gux-calendar.common.js +18 -0
  124. package/dist/collection/components/stable/gux-icon/gux-icon.js +1 -1
  125. package/dist/collection/components/stable/gux-icon/icons/custom/panel-extra-large-regular.svg +1 -0
  126. package/dist/collection/components/stable/gux-icon/icons/fa/circle-dashed-regular.svg +1 -1
  127. package/dist/collection/components/stable/gux-icon/icons/fa/circle-half-stroke-regular.svg +1 -1
  128. package/dist/collection/components/stable/gux-icon/icons/fa/compress-regular.svg +1 -0
  129. package/dist/collection/components/stable/gux-icon/icons/fa/download-regular.svg +1 -1
  130. package/dist/collection/components/stable/gux-icon/icons/fa/expand-regular.svg +1 -0
  131. package/dist/collection/components/stable/gux-icon/icons/fa/keyboard-brightness-solid.svg +1 -1
  132. package/dist/collection/components/stable/gux-icon/icons/fa/print-regular.svg +1 -1
  133. package/dist/collection/components/stable/gux-icon/icons/fa/rectangle-history-circle-plus-regular.svg +1 -1
  134. package/dist/collection/components/stable/gux-icon/icons/fa/rectangle-history-regular.svg +1 -1
  135. package/dist/collection/components/stable/gux-table-toolbar/tests/gux-table-toolbar.common.js +1 -1
  136. package/dist/esm/gux-accordion.entry.js +1 -1
  137. package/dist/esm/gux-action-button.entry.js +1 -1
  138. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  139. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  140. package/dist/esm/gux-announce-beta.entry.js +1 -1
  141. package/dist/esm/gux-avatar-beta.entry.js +1 -1
  142. package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
  143. package/dist/esm/gux-avatar-group-add-item-beta_3.entry.js +1 -1
  144. package/dist/esm/gux-avatar-group-beta.entry.js +1 -1
  145. package/dist/esm/gux-avatar-group-item-beta.entry.js +1 -1
  146. package/dist/esm/gux-badge.entry.js +1 -1
  147. package/dist/esm/gux-blank-state.entry.js +1 -1
  148. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  149. package/dist/esm/gux-button-multi.entry.js +1 -1
  150. package/dist/esm/gux-button-slot.entry.js +1 -1
  151. package/dist/esm/gux-button_2.entry.js +1 -1
  152. package/dist/esm/gux-calendar-beta.entry.js +1 -1
  153. package/dist/esm/gux-calendar.entry.js +1 -1
  154. package/dist/esm/gux-card.entry.js +1 -1
  155. package/dist/esm/gux-column-manager.entry.js +1 -1
  156. package/dist/esm/gux-content-search.entry.js +1 -1
  157. package/dist/esm/gux-context-menu.entry.js +1 -1
  158. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  159. package/dist/esm/gux-date-beta.entry.js +1 -1
  160. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  161. package/dist/esm/gux-datepicker.entry.js +1 -1
  162. package/dist/esm/gux-day-beta.entry.js +1 -1
  163. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  164. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  165. package/dist/esm/gux-dropdown-multi.entry.js +1 -1
  166. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  167. package/dist/esm/gux-file-list-item.entry.js +1 -1
  168. package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
  169. package/dist/esm/gux-flyout-menu.entry.js +1 -1
  170. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +1 -1
  171. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  172. package/dist/esm/gux-form-field-color.entry.js +1 -1
  173. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  174. package/dist/esm/gux-form-field-file-beta.entry.js +1 -1
  175. package/dist/esm/gux-form-field-file.entry.js +1 -1
  176. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  177. package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
  178. package/dist/esm/gux-form-field-number_2.entry.js +1 -1
  179. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  180. package/dist/esm/gux-form-field-radio-group-beta.entry.js +1 -1
  181. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  182. package/dist/esm/gux-form-field-range.entry.js +1 -1
  183. package/dist/esm/gux-form-field-search.entry.js +1 -1
  184. package/dist/esm/gux-form-field-select.entry.js +1 -1
  185. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  186. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  187. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  188. package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
  189. package/dist/esm/gux-form-footer.entry.js +1 -1
  190. package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
  191. package/dist/esm/gux-icon.entry.js +1 -1
  192. package/dist/esm/gux-inline-alert.entry.js +1 -1
  193. package/dist/esm/gux-inline-dropdown-beta.entry.js +1 -1
  194. package/dist/esm/gux-label-info-beta.entry.js +1 -1
  195. package/dist/esm/gux-link-beta.entry.js +1 -1
  196. package/dist/esm/gux-list.entry.js +1 -1
  197. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  198. package/dist/esm/gux-loading-message.entry.js +1 -1
  199. package/dist/esm/gux-modal-legacy.entry.js +1 -1
  200. package/dist/esm/gux-modal-side-panel-beta.entry.js +1 -1
  201. package/dist/esm/gux-modal.entry.js +1 -1
  202. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  203. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  204. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  205. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  206. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  207. package/dist/esm/gux-pagination.entry.js +1 -1
  208. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  209. package/dist/esm/gux-popover-beta.entry.js +1 -1
  210. package/dist/esm/gux-popover-list-beta.entry.js +1 -1
  211. package/dist/esm/gux-popover-list.entry.js +1 -1
  212. package/dist/esm/gux-radial-loading.entry.js +1 -1
  213. package/dist/esm/gux-radial-progress.entry.js +1 -1
  214. package/dist/esm/gux-rating.entry.js +1 -1
  215. package/dist/esm/gux-rich-highlight-list-item.entry.js +1 -1
  216. package/dist/esm/gux-rich-style-list-item_3.entry.js +1 -1
  217. package/dist/esm/gux-rich-text-editor-action-link.entry.js +1 -1
  218. package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +1 -1
  219. package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +1 -1
  220. package/dist/esm/gux-rich-text-editor-action.entry.js +1 -1
  221. package/dist/esm/gux-rich-text-editor-beta.entry.js +1 -1
  222. package/dist/esm/gux-rich-text-editor-list.entry.js +1 -1
  223. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  224. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  225. package/dist/esm/gux-selector-card-beta.entry.js +1 -1
  226. package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
  227. package/dist/esm/gux-side-panel-beta.entry.js +1 -1
  228. package/dist/esm/gux-side-panel-heading.entry.js +1 -1
  229. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  230. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  231. package/dist/esm/gux-sort-control.entry.js +1 -1
  232. package/dist/esm/gux-status-indicator-beta.entry.js +1 -1
  233. package/dist/esm/gux-step-title.entry.js +1 -1
  234. package/dist/esm/gux-step.entry.js +1 -1
  235. package/dist/esm/gux-stepper-beta.entry.js +1 -1
  236. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  237. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  238. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  239. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  240. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  241. package/dist/esm/gux-table.entry.js +1 -1
  242. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  243. package/dist/esm/gux-tabs.entry.js +1 -1
  244. package/dist/esm/gux-tag.entry.js +1 -1
  245. package/dist/esm/gux-text-highlight.entry.js +1 -1
  246. package/dist/esm/gux-time-beta.entry.js +1 -1
  247. package/dist/esm/gux-time-picker.entry.js +1 -1
  248. package/dist/esm/gux-time-zone-beta.entry.js +1 -1
  249. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  250. package/dist/esm/gux-toast.entry.js +1 -1
  251. package/dist/esm/gux-toggle.entry.js +1 -1
  252. package/dist/esm/gux-tooltip-base-beta_2.entry.js +1 -1
  253. package/dist/esm/gux-tooltip-pointer-beta.entry.js +1 -1
  254. package/dist/esm/gux-tooltip_2.entry.js +1 -1
  255. package/dist/esm/{usage-336f9256.js → usage-b40a5ce2.js} +1 -1
  256. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  257. package/dist/genesys-webcomponents/icons/custom/panel-extra-large-regular.svg +1 -0
  258. package/dist/genesys-webcomponents/icons/fa/circle-dashed-regular.svg +1 -1
  259. package/dist/genesys-webcomponents/icons/fa/circle-half-stroke-regular.svg +1 -1
  260. package/dist/genesys-webcomponents/icons/fa/compress-regular.svg +1 -0
  261. package/dist/genesys-webcomponents/icons/fa/download-regular.svg +1 -1
  262. package/dist/genesys-webcomponents/icons/fa/expand-regular.svg +1 -0
  263. package/dist/genesys-webcomponents/icons/fa/keyboard-brightness-solid.svg +1 -1
  264. package/dist/genesys-webcomponents/icons/fa/print-regular.svg +1 -1
  265. package/dist/genesys-webcomponents/icons/fa/rectangle-history-circle-plus-regular.svg +1 -1
  266. package/dist/genesys-webcomponents/icons/fa/rectangle-history-regular.svg +1 -1
  267. package/dist/genesys-webcomponents/{p-8592146d.entry.js → p-0117591d.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-9e0c8e78.entry.js → p-082ed703.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-fb7e0c6d.entry.js → p-0a041ae0.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-0d20dccb.entry.js → p-0aa0d1e0.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-7e1cead5.entry.js → p-0c2763a7.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-d60e0050.entry.js → p-10da2337.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-c19cdfca.entry.js → p-11a1d826.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-8e83bad8.entry.js → p-120cae91.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-71369b32.entry.js → p-1cc4bfe8.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-a6b12794.entry.js → p-1ee6564e.entry.js} +1 -1
  277. package/dist/genesys-webcomponents/{p-3b15add0.entry.js → p-1f01408c.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-2bd2ea17.entry.js → p-25c0bb1b.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/{p-e7351eb0.entry.js → p-25f34f16.entry.js} +1 -1
  280. package/dist/genesys-webcomponents/{p-3ba839e4.entry.js → p-28b6a488.entry.js} +1 -1
  281. package/dist/genesys-webcomponents/{p-26292963.entry.js → p-28e6ab94.entry.js} +1 -1
  282. package/dist/genesys-webcomponents/{p-0a6a1d40.entry.js → p-2deae83a.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-dab188bc.entry.js → p-2e37c074.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/{p-4bd05274.entry.js → p-2e4ee5a7.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/{p-30ecf4bc.entry.js → p-305f8259.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-e5c2c14d.entry.js → p-370e5eaf.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-479efefb.entry.js → p-3e5ab57f.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-57a894b0.entry.js → p-3fcda53f.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-99fd4543.entry.js → p-41b068dd.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/p-41bb6496.entry.js +1 -0
  291. package/dist/genesys-webcomponents/{p-3706f5a5.entry.js → p-433d9171.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-6903a7a0.entry.js → p-43c190fb.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-5e70d836.entry.js → p-4a548454.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-bf2cb7bc.entry.js → p-4c6b9794.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-fbc24fd4.entry.js → p-510e591f.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-b9b3a5a4.entry.js → p-557c3e62.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-485e5649.entry.js → p-567954c5.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-651f5799.entry.js → p-5731cc5f.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-93cd22be.entry.js → p-5741f361.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-ac0aaf37.entry.js → p-58e748cf.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/{p-b572438f.entry.js → p-5a5f7e99.entry.js} +1 -1
  302. package/dist/genesys-webcomponents/{p-1d7f5917.entry.js → p-60896e89.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-fe1714c0.entry.js → p-646eaa03.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-7d3df01d.entry.js → p-65342506.entry.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-fe59a170.entry.js → p-65f5e668.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-b85eb3da.entry.js → p-69483740.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/{p-7d6fc89e.entry.js → p-6af79374.entry.js} +1 -1
  308. package/dist/genesys-webcomponents/{p-f9768619.entry.js → p-6d214a2a.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-20784afd.entry.js → p-6feecc53.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-3b4d7070.entry.js → p-724fbfc1.entry.js} +1 -1
  311. package/dist/genesys-webcomponents/{p-59cc0280.entry.js → p-7273fd52.entry.js} +1 -1
  312. package/dist/genesys-webcomponents/{p-b52ee4ac.entry.js → p-765faf29.entry.js} +1 -1
  313. package/dist/genesys-webcomponents/{p-b68d79d2.entry.js → p-7674bd92.entry.js} +1 -1
  314. package/dist/genesys-webcomponents/{p-e5341f4e.entry.js → p-76a86917.entry.js} +1 -1
  315. package/dist/genesys-webcomponents/{p-ecdaf31d.entry.js → p-78327b1b.entry.js} +1 -1
  316. package/dist/genesys-webcomponents/{p-44af1eac.entry.js → p-794559b9.entry.js} +1 -1
  317. package/dist/genesys-webcomponents/{p-10b393fc.entry.js → p-7984e009.entry.js} +1 -1
  318. package/dist/genesys-webcomponents/{p-93050a09.entry.js → p-79ddd5e6.entry.js} +1 -1
  319. package/dist/genesys-webcomponents/{p-ad584581.entry.js → p-79f6404c.entry.js} +1 -1
  320. package/dist/genesys-webcomponents/{p-d1fb906d.entry.js → p-7b310b54.entry.js} +1 -1
  321. package/dist/genesys-webcomponents/p-7d1ae2bd.entry.js +1 -0
  322. package/dist/genesys-webcomponents/{p-06a0291e.entry.js → p-7fa9a1a7.entry.js} +1 -1
  323. package/dist/genesys-webcomponents/{p-1baaebdc.entry.js → p-818d9ede.entry.js} +1 -1
  324. package/dist/genesys-webcomponents/{p-d2808041.entry.js → p-896781c6.entry.js} +1 -1
  325. package/dist/genesys-webcomponents/{p-ee39d6d6.entry.js → p-8b165cea.entry.js} +1 -1
  326. package/dist/genesys-webcomponents/{p-21ca768f.entry.js → p-95243649.entry.js} +1 -1
  327. package/dist/genesys-webcomponents/{p-e417d9c6.entry.js → p-95a6efb2.entry.js} +1 -1
  328. package/dist/genesys-webcomponents/{p-b26e6a50.entry.js → p-96306dad.entry.js} +1 -1
  329. package/dist/genesys-webcomponents/{p-d1f8ab1b.entry.js → p-9860992f.entry.js} +1 -1
  330. package/dist/genesys-webcomponents/p-9ab9b09b.entry.js +1 -0
  331. package/dist/genesys-webcomponents/{p-cf7942d3.entry.js → p-9c61429c.entry.js} +1 -1
  332. package/dist/genesys-webcomponents/{p-988c9edc.entry.js → p-9e8ce8bd.entry.js} +1 -1
  333. package/dist/genesys-webcomponents/{p-eb0e5ad7.entry.js → p-a1c05f13.entry.js} +1 -1
  334. package/dist/genesys-webcomponents/{p-87d621e0.entry.js → p-a1d79a3e.entry.js} +1 -1
  335. package/dist/genesys-webcomponents/{p-d71676b8.entry.js → p-a213ad14.entry.js} +1 -1
  336. package/dist/genesys-webcomponents/{p-b88cd272.entry.js → p-a3363202.entry.js} +1 -1
  337. package/dist/genesys-webcomponents/{p-a9247895.entry.js → p-a370795b.entry.js} +1 -1
  338. package/dist/genesys-webcomponents/{p-934d83cb.entry.js → p-a376d546.entry.js} +1 -1
  339. package/dist/genesys-webcomponents/{p-ab0b7ca7.entry.js → p-a67faf1b.entry.js} +1 -1
  340. package/dist/genesys-webcomponents/{p-e7544692.entry.js → p-a972afa4.entry.js} +1 -1
  341. package/dist/genesys-webcomponents/{p-f5f24c49.entry.js → p-aa5a5d80.entry.js} +1 -1
  342. package/dist/genesys-webcomponents/{p-4b9ecc81.entry.js → p-ac47a12d.entry.js} +1 -1
  343. package/dist/genesys-webcomponents/{p-975f0d33.entry.js → p-b10ba8c1.entry.js} +1 -1
  344. package/dist/genesys-webcomponents/{p-98c85ab4.entry.js → p-b3771446.entry.js} +1 -1
  345. package/dist/genesys-webcomponents/{p-7ed3421c.entry.js → p-b3e5fe7a.entry.js} +1 -1
  346. package/dist/genesys-webcomponents/{p-9f618d68.entry.js → p-b480e802.entry.js} +1 -1
  347. package/dist/genesys-webcomponents/p-b637957c.entry.js +1 -0
  348. package/dist/genesys-webcomponents/{p-4174f658.entry.js → p-b6699f54.entry.js} +1 -1
  349. package/dist/genesys-webcomponents/{p-cea982b2.entry.js → p-b7b65079.entry.js} +1 -1
  350. package/dist/genesys-webcomponents/{p-9123cb52.entry.js → p-baf50bbe.entry.js} +1 -1
  351. package/dist/genesys-webcomponents/{p-d1aea7f0.entry.js → p-bd9f8025.entry.js} +1 -1
  352. package/dist/genesys-webcomponents/{p-bb41579f.entry.js → p-bebdca62.entry.js} +1 -1
  353. package/dist/genesys-webcomponents/{p-de8f77f7.entry.js → p-c18dfe1b.entry.js} +1 -1
  354. package/dist/genesys-webcomponents/{p-fcf2a975.entry.js → p-c1b17e7a.entry.js} +1 -1
  355. package/dist/genesys-webcomponents/{p-5656eb08.entry.js → p-c33302a9.entry.js} +1 -1
  356. package/dist/genesys-webcomponents/{p-83ee0863.entry.js → p-c6ca443d.entry.js} +1 -1
  357. package/dist/genesys-webcomponents/{p-d103e267.entry.js → p-c7d6523f.entry.js} +1 -1
  358. package/dist/genesys-webcomponents/{p-6eea0f76.entry.js → p-c8bf3910.entry.js} +1 -1
  359. package/dist/genesys-webcomponents/{p-60acfa6d.entry.js → p-ca3f58b7.entry.js} +1 -1
  360. package/dist/genesys-webcomponents/{p-61af6910.entry.js → p-caf9d334.entry.js} +1 -1
  361. package/dist/genesys-webcomponents/{p-b5b03666.entry.js → p-cd886516.entry.js} +1 -1
  362. package/dist/genesys-webcomponents/{p-cd177c9b.entry.js → p-ce82e394.entry.js} +1 -1
  363. package/dist/genesys-webcomponents/{p-43d8e302.entry.js → p-cf041f4b.entry.js} +1 -1
  364. package/dist/genesys-webcomponents/{p-06db406c.entry.js → p-d06250ae.entry.js} +1 -1
  365. package/dist/genesys-webcomponents/p-d1e06e65.entry.js +1 -0
  366. package/dist/genesys-webcomponents/{p-18797302.entry.js → p-d4ea968c.entry.js} +1 -1
  367. package/dist/genesys-webcomponents/{p-7164f14e.entry.js → p-da7871eb.entry.js} +1 -1
  368. package/dist/genesys-webcomponents/{p-037ad1a6.entry.js → p-de1fca25.entry.js} +1 -1
  369. package/dist/genesys-webcomponents/{p-4196c251.entry.js → p-df2bf3b1.entry.js} +1 -1
  370. package/dist/genesys-webcomponents/{p-b4c148d5.entry.js → p-df67e0a0.entry.js} +1 -1
  371. package/dist/genesys-webcomponents/{p-3ef08423.entry.js → p-e1140ad7.entry.js} +1 -1
  372. package/dist/genesys-webcomponents/{p-7eb7776c.entry.js → p-e234afde.entry.js} +1 -1
  373. package/dist/genesys-webcomponents/{p-a27d6bb8.entry.js → p-e2775836.entry.js} +1 -1
  374. package/dist/genesys-webcomponents/{p-202257ea.entry.js → p-e775c55c.entry.js} +1 -1
  375. package/dist/genesys-webcomponents/{p-6a121237.entry.js → p-ee7ddf28.entry.js} +1 -1
  376. package/dist/genesys-webcomponents/{p-6ba9858c.entry.js → p-f06bd9a0.entry.js} +1 -1
  377. package/dist/genesys-webcomponents/{p-14539d11.entry.js → p-f172e2aa.entry.js} +1 -1
  378. package/dist/genesys-webcomponents/{p-c52c96ee.entry.js → p-f2f48bdb.entry.js} +1 -1
  379. package/dist/genesys-webcomponents/{p-ea47448f.entry.js → p-f3ca6491.entry.js} +1 -1
  380. package/dist/genesys-webcomponents/p-f62e0338.entry.js +1 -0
  381. package/dist/genesys-webcomponents/{p-68fecbc6.entry.js → p-f99b7a11.entry.js} +1 -1
  382. package/dist/genesys-webcomponents/{p-b68a44c8.entry.js → p-fbfcce82.entry.js} +1 -1
  383. package/dist/genesys-webcomponents/{p-63297dd3.entry.js → p-fc8e2f2a.entry.js} +1 -1
  384. package/dist/genesys-webcomponents/{p-14333ed8.js → p-fcdad94f.js} +1 -1
  385. package/dist/genesys-webcomponents/{p-af1a99b1.entry.js → p-fd5b6781.entry.js} +1 -1
  386. package/dist/genesys-webcomponents/{p-0c82d6a1.entry.js → p-ff96048b.entry.js} +1 -1
  387. package/dist/stencil-wrapper.js +1 -1
  388. package/dist/types/components/stable/gux-calendar/tests/gux-calendar.common.d.ts +4 -0
  389. package/dist/types/components/stable/gux-icon/gux-icon.types.d.ts +1 -1
  390. package/dist/types/stencil-wrapper.d.ts +1 -1
  391. package/package.json +1 -1
  392. package/dist/genesys-webcomponents/p-15003b2c.entry.js +0 -1
  393. package/dist/genesys-webcomponents/p-3fb9459a.entry.js +0 -1
  394. package/dist/genesys-webcomponents/p-84452845.entry.js +0 -1
  395. package/dist/genesys-webcomponents/p-92cb0a16.entry.js +0 -1
  396. package/dist/genesys-webcomponents/p-9ccf6a2c.entry.js +0 -1
  397. package/dist/genesys-webcomponents/p-e21dc9ba.entry.js +0 -1
  398. /package/dist/cjs/{index.umd-1b3084ed.js → index.umd-debc04ba.js} +0 -0
  399. /package/dist/esm/{index.umd-4fa3c748.js → index.umd-64d8c536.js} +0 -0
  400. /package/dist/genesys-webcomponents/{p-c3c1cdc3.js → p-5e1571a8.js} +0 -0
@@ -1 +1 @@
1
- import{r as s,c as o,h as e,H as i,g as a}from"./p-cf74fd3d.js";import{t as r}from"./p-14333ed8.js";const t=class{constructor(e){s(this,e),this.guxdismiss=o(this,"guxdismiss",7),this.accent="neutral"}componentWillLoad(){r(this.root,{variant:this.accent})}render(){return e(i,{key:"370cbfe91752486a47623dcad3cb690383c9be20"},e("div",{key:"9ee2b7c1de15d6cd522396d30890fb5273668e76",class:`gux-icon gux-${this.accent}`},e("slot",{key:"c07d623d41fbf26feba320240c89d44dc2b2ea70",name:"icon"})),e("gux-truncate",{key:"dca0b0fb9b1a20ef990ad89140418412f48224a9",class:"gux-message","max-lines":2},e("slot",{key:"bab604744d2170b0bf01d5a6f572c3aa05bc2f69",name:"message"})),e("gux-dismiss-button",{key:"f21ee0c87e36d92e9d0c6289da860112b2d94ddf",class:"gux-dismiss",position:"inherit",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(s){s.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return a(this)}};t.style=":host{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;width:286px;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;padding:8px 12px 8px 16px;margin:2px 0}.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-icon ::slotted(gux-icon){width:16px;height:16px}.gux-message{flex:1 1 auto;align-self:center;order:0;margin:8px 0}.gux-dismiss{margin:4px 0}";export{t as gux_simple_toast_legacy}
1
+ import{r as s,c as o,h as e,H as a,g as i}from"./p-cf74fd3d.js";import{t as r}from"./p-fcdad94f.js";const t=class{constructor(e){s(this,e),this.guxdismiss=o(this,"guxdismiss",7),this.accent="neutral"}componentWillLoad(){r(this.root,{variant:this.accent})}render(){return e(a,{key:"370cbfe91752486a47623dcad3cb690383c9be20"},e("div",{key:"9ee2b7c1de15d6cd522396d30890fb5273668e76",class:`gux-icon gux-${this.accent}`},e("slot",{key:"c07d623d41fbf26feba320240c89d44dc2b2ea70",name:"icon"})),e("gux-truncate",{key:"dca0b0fb9b1a20ef990ad89140418412f48224a9",class:"gux-message","max-lines":2},e("slot",{key:"bab604744d2170b0bf01d5a6f572c3aa05bc2f69",name:"message"})),e("gux-dismiss-button",{key:"f21ee0c87e36d92e9d0c6289da860112b2d94ddf",class:"gux-dismiss",position:"inherit",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(s){s.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return i(this)}};t.style=":host{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;width:286px;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;padding:8px 12px 8px 16px;margin:2px 0}.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-icon ::slotted(gux-icon){width:16px;height:16px}.gux-message{flex:1 1 auto;align-self:center;order:0;margin:8px 0}.gux-dismiss{margin:4px 0}";export{t as gux_simple_toast_legacy}
@@ -1 +1 @@
1
- import{r as t,h as e,g as r}from"./p-cf74fd3d.js";import{c as a}from"./p-267e2aed.js";import{t as o}from"./p-14333ed8.js";import{b as s}from"./p-e5e644b3.js";import"./p-4202e9f2.js";const i={actionRefresh:"Refresh",actionDelete:"Delete",actionExport:"Export",actionImport:"Import",actionRevert:"Revert",actionAdd:"Add"},c=class{constructor(e){t(this,e),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 e("gux-table-toolbar-custom-action",{key:"da8e9c8e79fb2f4c224f00da780438f35c2330af","icon-only":this.iconOnly,accent:this.accent,disabled:this.disabled},e("span",{key:"4abb79967fa91d433d04b75956e908546f5ec09c",slot:"text"},this.returnActionLocale(this.action)),e("gux-icon",{key:"b943047bbf5378ac386f7b015c715c2e7221d1a0",slot:"icon","icon-name":this.returnActionTypeIcon(this.action),decorative:!0}))}get root(){return r(this)}};c.style=":host([disabled]){pointer-events:none}";export{c as gux_table_toolbar_action}
1
+ import{r as t,h as e,g as r}from"./p-cf74fd3d.js";import{c as a}from"./p-267e2aed.js";import{t as o}from"./p-fcdad94f.js";import{b as s}from"./p-e5e644b3.js";import"./p-4202e9f2.js";const i={actionRefresh:"Refresh",actionDelete:"Delete",actionExport:"Export",actionImport:"Import",actionRevert:"Revert",actionAdd:"Add"},c=class{constructor(e){t(this,e),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 e("gux-table-toolbar-custom-action",{key:"da8e9c8e79fb2f4c224f00da780438f35c2330af","icon-only":this.iconOnly,accent:this.accent,disabled:this.disabled},e("span",{key:"4abb79967fa91d433d04b75956e908546f5ec09c",slot:"text"},this.returnActionLocale(this.action)),e("gux-icon",{key:"b943047bbf5378ac386f7b015c715c2e7221d1a0",slot:"icon","icon-name":this.returnActionTypeIcon(this.action),decorative:!0}))}get root(){return r(this)}};c.style=":host([disabled]){pointer-events:none}";export{c as gux_table_toolbar_action}
@@ -1 +1 @@
1
- import{r as a,h as i,H as t,g as e}from"./p-cf74fd3d.js";import{t as r}from"./p-14333ed8.js";import{a as o}from"./p-8eaf8caf.js";import{g as n}from"./p-cc3c3c56.js";import{a as s,g as c}from"./p-5fcdcbfd.js";import"./p-4202e9f2.js";const u=class{constructor(i){a(this,i),this.accent="auto"}async componentWillLoad(){r(this.root)}componentDidLoad(){this.validatingInputs()}async hideTooltip(){return await this.tooltip.hideTooltip()}onKeydown(a){n(a,this.root)}isLastItemInGroup(){const a=Array.from(this.root.parentElement.children);return a.findIndex((a=>a===this.root))===a.length-1}validatingInputs(){const a=this.root.querySelector("img");this.name||o(this.root,"Name prop is required for accessibility"),a&&!a.getAttribute("alt")&&o(this.root,"Alt attribute is required for slotted image.")}render(){return i(t,{key:"cf25df58536d49968c106c3fe2e6e4d21f3fe370",role:"menuitem"},i("button",{key:"504a212c665a293077800e0041fa2573f68e2e04",type:"button","aria-label":this.name,tabIndex:-1,class:{"gux-avatar":!0,[s(this.accent,this.name)]:!0,"gux-last-item":this.isLastItemInGroup()}},i("slot",{key:"0349e238b0662b93322fcbaa27854eb091b18ed9",name:"image"},i("span",{key:"15751a75f778d2454c5b15b10db3ca62b82134eb",class:"gux-avatar-initials","aria-hidden":"true"},c(this.name))),i("gux-tooltip-beta",{key:"1ba8508d77ec25a50ec091f24ae380ae4bda9c4f","aria-hidden":"true","visual-only":!0,placement:"top",ref:a=>this.tooltip=a},i("div",{key:"7d0d6ad2237d95bc4be7482420d0f1169e4d0314",slot:"content"},this.name))))}static get delegatesFocus(){return!0}get root(){return e(this)}};u.style="::slotted(img){inline-size:100%;block-size:100%;object-fit:cover}button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-small-content-size);block-size:var(--gse-ui-avatar-small-content-size);padding:0;margin:0;margin-inline-end:var(--gse-ui-avatar-groupSet-gap);overflow:hidden;color:var(--gse-ui-avatar-media-initialsForeground-inverse);cursor:pointer;background:none;background-color:var(--gse-ui-avatar-media-initialsBackground-default);border:none;border-radius:50%;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 26 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 13c0-2.6.7-5 1.8-7.2C21.5 2.3 17.5 0 13 0 5.8 0 0 5.8 0 13s5.8 13 13 13c4.5 0 8.5-2.3 10.8-5.8C22.7 18 22 15.6 22 13z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 26 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 13c0-2.6.7-5 1.8-7.2C21.5 2.3 17.5 0 13 0 5.8 0 0 5.8 0 13s5.8 13 13 13c4.5 0 8.5-2.3 10.8-5.8C22.7 18 22 15.6 22 13z' /%3E%3C/svg%3E\")}button:focus-visible,button:hover{position:relative;z-index:var(--gse-semantic-zIndex-showFocus);mask:none}button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}button.gux-last-item{mask:none}button .gux-avatar-initials{font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight);line-height:var(--gse-ui-avatar-small-initials-lineHeight);text-transform:uppercase}button.gux-accent-1{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent1)}button.gux-accent-2{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent2)}button.gux-accent-3{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent3)}button.gux-accent-4{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent4)}button.gux-accent-5{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent5)}button.gux-accent-6{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent6)}button.gux-accent-7{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent7)}button.gux-accent-8{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent8)}button.gux-accent-9{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent9)}button.gux-accent-10{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent10)}button.gux-accent-11{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent11)}button.gux-accent-12{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent12)}button.gux-accent-inherit{color:inherit;background-color:inherit}";export{u as gux_avatar_group_item_beta}
1
+ import{r as a,h as i,H as t,g as e}from"./p-cf74fd3d.js";import{t as r}from"./p-fcdad94f.js";import{a as o}from"./p-8eaf8caf.js";import{g as n}from"./p-cc3c3c56.js";import{a as s,g as c}from"./p-5fcdcbfd.js";import"./p-4202e9f2.js";const u=class{constructor(i){a(this,i),this.accent="auto"}async componentWillLoad(){r(this.root)}componentDidLoad(){this.validatingInputs()}async hideTooltip(){return await this.tooltip.hideTooltip()}onKeydown(a){n(a,this.root)}isLastItemInGroup(){const a=Array.from(this.root.parentElement.children);return a.findIndex((a=>a===this.root))===a.length-1}validatingInputs(){const a=this.root.querySelector("img");this.name||o(this.root,"Name prop is required for accessibility"),a&&!a.getAttribute("alt")&&o(this.root,"Alt attribute is required for slotted image.")}render(){return i(t,{key:"cf25df58536d49968c106c3fe2e6e4d21f3fe370",role:"menuitem"},i("button",{key:"504a212c665a293077800e0041fa2573f68e2e04",type:"button","aria-label":this.name,tabIndex:-1,class:{"gux-avatar":!0,[s(this.accent,this.name)]:!0,"gux-last-item":this.isLastItemInGroup()}},i("slot",{key:"0349e238b0662b93322fcbaa27854eb091b18ed9",name:"image"},i("span",{key:"15751a75f778d2454c5b15b10db3ca62b82134eb",class:"gux-avatar-initials","aria-hidden":"true"},c(this.name))),i("gux-tooltip-beta",{key:"1ba8508d77ec25a50ec091f24ae380ae4bda9c4f","aria-hidden":"true","visual-only":!0,placement:"top",ref:a=>this.tooltip=a},i("div",{key:"7d0d6ad2237d95bc4be7482420d0f1169e4d0314",slot:"content"},this.name))))}static get delegatesFocus(){return!0}get root(){return e(this)}};u.style="::slotted(img){inline-size:100%;block-size:100%;object-fit:cover}button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-small-content-size);block-size:var(--gse-ui-avatar-small-content-size);padding:0;margin:0;margin-inline-end:var(--gse-ui-avatar-groupSet-gap);overflow:hidden;color:var(--gse-ui-avatar-media-initialsForeground-inverse);cursor:pointer;background:none;background-color:var(--gse-ui-avatar-media-initialsBackground-default);border:none;border-radius:50%;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 26 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 13c0-2.6.7-5 1.8-7.2C21.5 2.3 17.5 0 13 0 5.8 0 0 5.8 0 13s5.8 13 13 13c4.5 0 8.5-2.3 10.8-5.8C22.7 18 22 15.6 22 13z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 26 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 13c0-2.6.7-5 1.8-7.2C21.5 2.3 17.5 0 13 0 5.8 0 0 5.8 0 13s5.8 13 13 13c4.5 0 8.5-2.3 10.8-5.8C22.7 18 22 15.6 22 13z' /%3E%3C/svg%3E\")}button:focus-visible,button:hover{position:relative;z-index:var(--gse-semantic-zIndex-showFocus);mask:none}button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}button.gux-last-item{mask:none}button .gux-avatar-initials{font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight);line-height:var(--gse-ui-avatar-small-initials-lineHeight);text-transform:uppercase}button.gux-accent-1{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent1)}button.gux-accent-2{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent2)}button.gux-accent-3{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent3)}button.gux-accent-4{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent4)}button.gux-accent-5{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent5)}button.gux-accent-6{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent6)}button.gux-accent-7{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent7)}button.gux-accent-8{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent8)}button.gux-accent-9{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent9)}button.gux-accent-10{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent10)}button.gux-accent-11{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent11)}button.gux-accent-12{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent12)}button.gux-accent-inherit{color:inherit;background-color:inherit}";export{u as gux_avatar_group_item_beta}
@@ -1 +1 @@
1
- import{r as o,h as i,g as e}from"./p-cf74fd3d.js";import{t as r}from"./p-14333ed8.js";import{b as t}from"./p-e5e644b3.js";import"./p-4202e9f2.js";const a={clickToCopy:"Click to Copy",copySuccess:"Copied to Clipboard",copyFailure:"Error. Please Try Again."},c=class{constructor(i){o(this,i),this.tooltipContent="clickToCopy"}onMouseleave(){this.resetTooltip()}onFocusout(){this.resetTooltip()}resetTooltip(){this.tooltipContent="clickToCopy"}async onCopyToClipboard(){return navigator.clipboard.writeText(this.root.innerText).then((()=>{this.tooltipContent="copySuccess"})).catch((()=>{this.tooltipContent="copyFailure"}))}getIconName(o){switch(o){case"copyFailure":return"fa/circle-xmark-solid";case"copySuccess":return"fa/circle-check-solid"}}renderTooltipIcon(){const o=this.getIconName(this.tooltipContent);if(o)return i("gux-icon",{"icon-name":o,size:"small",decorative:!0})}renderTooltip(){return i("gux-tooltip",{placement:"bottom-end"},i("div",{slot:"content",class:"gux-tooltip-content"},this.renderTooltipIcon(),i("span",null,this.i18n(this.tooltipContent))))}async componentWillLoad(){r(this.root),this.i18n=await t(this.root,a)}render(){return i("button",{key:"30088ac8e910bb4519c3a3e8a89a10395164cd94",class:"gux-copy-to-clipboard-wrapper",onClick:this.onCopyToClipboard.bind(this)},i("div",{key:"a70cfe959192d8296676adad6283f5a9073630a7",class:"gux-copy-content"},i("slot",{key:"13894c275336cb6209c27d47454a7d039f00eb5c",name:"content"}),i("gux-icon",{key:"6e0fc0b658e29fae6a64c9ea0e400a6d8d10c8dc","icon-name":"fa/copy-regular",size:"small",decorative:!0})),this.renderTooltip())}get root(){return e(this)}};c.style='button{all:unset}.gux-copy-to-clipboard-wrapper{display:inline-flex;align-items:center;max-inline-size:100%}.gux-copy-to-clipboard-wrapper .gux-copy-content{display:inherit;gap:var(--gse-ui-copyToClipboard-contentContainer-gap);align-items:inherit;max-inline-size:100%;cursor:pointer}.gux-copy-to-clipboard-wrapper .gux-copy-content ::slotted(*){padding:var(--gse-ui-copyToClipboard-label-padding);font-family:var(--gse-ui-copyToClipboard-label-text-fontFamily);font-size:var(--gse-ui-copyToClipboard-label-text-fontSize);font-weight:var(--gse-ui-copyToClipboard-label-text-fontWeight);line-height:var(--gse-ui-copyToClipboard-label-text-lineHeight);color:var(--gse-ui-copyToClipboard-label-foregroundColor);text-decoration:var(--gse-ui-copyToClipboard-label-text-textDecoration);border-radius:var(--gse-ui-copyToClipboard-label-borderRadius)}.gux-copy-to-clipboard-wrapper .gux-copy-content:hover ::slotted(*){background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor)}.gux-copy-to-clipboard-wrapper .gux-copy-content:hover gux-icon[icon-name="fa/copy-regular"]{visibility:visible}.gux-copy-to-clipboard-wrapper .gux-copy-content gux-icon[icon-name="fa/copy-regular"]{visibility:hidden;flex-shrink:0;padding:var(--gse-ui-copyToClipboard-iconContainer-padding);background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor);border-radius:var(--gse-ui-copyToClipboard-label-borderRadius)}.gux-copy-to-clipboard-wrapper:focus-visible{outline:none}.gux-copy-to-clipboard-wrapper:focus-visible ::slotted(*){background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor)}.gux-copy-to-clipboard-wrapper:focus-visible gux-icon[icon-name="fa/copy-regular"]{visibility:visible}gux-tooltip.gux-show{display:inline-flex;align-items:center}gux-tooltip.gux-show .gux-tooltip-content{display:contents}gux-tooltip.gux-show .gux-tooltip-content>*{vertical-align:middle}gux-tooltip.gux-show gux-icon[icon-name="fa/circle-check-solid"]{color:var(--gse-ui-copyToClipboard-tooltipIcon-success-foregroundColor)}gux-tooltip.gux-show gux-icon[icon-name="fa/circle-xmark-solid"]{color:var(--gse-ui-copyToClipboard-tooltipIcon-error-foregroundColor)}';export{c as gux_copy_to_clipboard}
1
+ import{r as o,h as i,g as e}from"./p-cf74fd3d.js";import{t as r}from"./p-fcdad94f.js";import{b as a}from"./p-e5e644b3.js";import"./p-4202e9f2.js";const t={clickToCopy:"Click to Copy",copySuccess:"Copied to Clipboard",copyFailure:"Error. Please Try Again."},c=class{constructor(i){o(this,i),this.tooltipContent="clickToCopy"}onMouseleave(){this.resetTooltip()}onFocusout(){this.resetTooltip()}resetTooltip(){this.tooltipContent="clickToCopy"}async onCopyToClipboard(){return navigator.clipboard.writeText(this.root.innerText).then((()=>{this.tooltipContent="copySuccess"})).catch((()=>{this.tooltipContent="copyFailure"}))}getIconName(o){switch(o){case"copyFailure":return"fa/circle-xmark-solid";case"copySuccess":return"fa/circle-check-solid"}}renderTooltipIcon(){const o=this.getIconName(this.tooltipContent);if(o)return i("gux-icon",{"icon-name":o,size:"small",decorative:!0})}renderTooltip(){return i("gux-tooltip",{placement:"bottom-end"},i("div",{slot:"content",class:"gux-tooltip-content"},this.renderTooltipIcon(),i("span",null,this.i18n(this.tooltipContent))))}async componentWillLoad(){r(this.root),this.i18n=await a(this.root,t)}render(){return i("button",{key:"30088ac8e910bb4519c3a3e8a89a10395164cd94",class:"gux-copy-to-clipboard-wrapper",onClick:this.onCopyToClipboard.bind(this)},i("div",{key:"a70cfe959192d8296676adad6283f5a9073630a7",class:"gux-copy-content"},i("slot",{key:"13894c275336cb6209c27d47454a7d039f00eb5c",name:"content"}),i("gux-icon",{key:"6e0fc0b658e29fae6a64c9ea0e400a6d8d10c8dc","icon-name":"fa/copy-regular",size:"small",decorative:!0})),this.renderTooltip())}get root(){return e(this)}};c.style='button{all:unset}.gux-copy-to-clipboard-wrapper{display:inline-flex;align-items:center;max-inline-size:100%}.gux-copy-to-clipboard-wrapper .gux-copy-content{display:inherit;gap:var(--gse-ui-copyToClipboard-contentContainer-gap);align-items:inherit;max-inline-size:100%;cursor:pointer}.gux-copy-to-clipboard-wrapper .gux-copy-content ::slotted(*){padding:var(--gse-ui-copyToClipboard-label-padding);font-family:var(--gse-ui-copyToClipboard-label-text-fontFamily);font-size:var(--gse-ui-copyToClipboard-label-text-fontSize);font-weight:var(--gse-ui-copyToClipboard-label-text-fontWeight);line-height:var(--gse-ui-copyToClipboard-label-text-lineHeight);color:var(--gse-ui-copyToClipboard-label-foregroundColor);text-decoration:var(--gse-ui-copyToClipboard-label-text-textDecoration);border-radius:var(--gse-ui-copyToClipboard-label-borderRadius)}.gux-copy-to-clipboard-wrapper .gux-copy-content:hover ::slotted(*){background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor)}.gux-copy-to-clipboard-wrapper .gux-copy-content:hover gux-icon[icon-name="fa/copy-regular"]{visibility:visible}.gux-copy-to-clipboard-wrapper .gux-copy-content gux-icon[icon-name="fa/copy-regular"]{visibility:hidden;flex-shrink:0;padding:var(--gse-ui-copyToClipboard-iconContainer-padding);background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor);border-radius:var(--gse-ui-copyToClipboard-label-borderRadius)}.gux-copy-to-clipboard-wrapper:focus-visible{outline:none}.gux-copy-to-clipboard-wrapper:focus-visible ::slotted(*){background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor)}.gux-copy-to-clipboard-wrapper:focus-visible gux-icon[icon-name="fa/copy-regular"]{visibility:visible}gux-tooltip.gux-show{display:inline-flex;align-items:center}gux-tooltip.gux-show .gux-tooltip-content{display:contents}gux-tooltip.gux-show .gux-tooltip-content>*{vertical-align:middle}gux-tooltip.gux-show gux-icon[icon-name="fa/circle-check-solid"]{color:var(--gse-ui-copyToClipboard-tooltipIcon-success-foregroundColor)}gux-tooltip.gux-show gux-icon[icon-name="fa/circle-xmark-solid"]{color:var(--gse-ui-copyToClipboard-tooltipIcon-error-foregroundColor)}';export{c as gux_copy_to_clipboard}
@@ -1 +1 @@
1
- import{r as e,h as o,H as t,g as r}from"./p-cf74fd3d.js";import{c as i,o as a}from"./p-f4751a15.js";import{O as l}from"./p-946c70b7.js";import{p as s}from"./p-a11d5d42.js";import{h as d}from"./p-6d8b4027.js";import{a as n,G as g}from"./p-56b18d28.js";import{g as u,v as C}from"./p-4aaf349e.js";import{t as f}from"./p-14333ed8.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const p=class{constructor(o){e(this,o),this.hasHelp=!1,this.hasError=!1,this.hasGroupError=!1,this.hasGroupDisabled=!1}onMutation(){this.hasError=d(this.root,"error"),this.hasHelp=d(this.root,"help")}componentWillLoad(){this.setInput(),this.hasError=d(this.root,"error"),this.hasHelp=d(this.root,"help"),f(this.root)}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}render(){return o(t,{key:"027a65529baac39c48426634b16e216de228e935",class:{"gux-input-error":this.hasError||this.hasGroupError,"gux-disabled":this.disabled}},o("div",{key:"a368d94400ded63f97a91961c04c68e2b5458c36",class:"gux-form-field-container","aria-disabled":this.disabled?"true":"false"},o("div",{key:"54ffe9d74bd5b5f2763008ceb774d71b4cad744b",class:"gux-input-label"},o("div",{key:"4d32d3a82fa16d0ed6461b20779b76c8c6ee8692",class:"gux-input"},o("slot",{key:"2cc9b7db733a5845f2bd758ae25eea223cdd184d",name:"input",onSlotchange:()=>this.setInput()})),o("div",{key:"d2e351035f0737fab0eab622148baa0e14bcdca7",class:"gux-label"},o("slot",{key:"1bcdee07bdd20ce7cb7c2f6905e82ed56611735d",name:"label"}))),o("div",{key:"662f53fba77fda4fd7067a5c255d9ecc6d66ebd7",class:"error-and-help-text"},o(n,{key:"1a2b4f3cdd0ef55638941da8a5f80b109aeea2b9",show:this.hasError},o("slot",{key:"ec9fab4a338961d884bf90ad30c61b50fbd1b866",name:"error"})),o(g,{key:"41e1975a1824c49330654cb7693d314cd765bb45",show:!this.hasError&&this.hasHelp},o("slot",{key:"47fbf0b55fea3fcbff967fec03a134b3dad95384",name:"help"})))))}setInput(){this.input=u(this.root,'input[type="radio"][slot="input"]'),this.hasGroupDisabled&&(this.input.disabled=!0),s(this.input),this.disabled=i(this.input),this.disabledObserver=a(this.input,(e=>{this.disabled=e})),C(this.root,this.input)}get root(){return r(this)}};(function(e,o,t,r){var i,a=arguments.length,l=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,o,t,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a<3?i(l):a>3?i(o,t,l):i(o,t))||l);a>3&&l&&Object.defineProperty(o,t,l)})([l({childList:!0,subtree:!0})],p.prototype,"onMutation",null),p.style=".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 1 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}:host{display:block;padding-block-start:4px}:host(.gux-disabled){cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}:host(.gux-input-error) input[type=radio]:checked::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=radio]:not(:checked))::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-error-foregroundColor)}:host(.gux-input-error) .gux-form-field-error{font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);color:var(--gse-ui-radioButton-icon-error-foregroundColor)}.gux-input-label{display:flex;flex-direction:row;gap:var(--gse-ui-radioButton-helper-gap)}.gux-input-label .gux-label{display:flex;flex-direction:column;line-height:var(--gse-ui-radioButton-label-text-lineHeight)}.gux-input-label .gux-input{line-height:16px}::slotted(input[type=radio]){display:inline-grid;inline-size:var(--gse-ui-radioButton-icon-width);block-size:var(--gse-ui-radioButton-icon-height);margin:0;vertical-align:middle;color:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor);text-align:center;-webkit-appearance:none;appearance:none;cursor:pointer;outline:none;border:0}::slotted(input[type=radio])::before{grid-area:1/1;content:\"\";border-radius:50%}::slotted(input[type=radio]:focus-visible){outline:var(--gse-ui-radioButton-focus-border-width) var(--gse-ui-radioButton-focus-border-style) var(--gse-ui-radioButton-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:var(--gse-ui-radioButton-focus-borderRadius)}::slotted(input[type=radio]:not(:checked))::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor)}::slotted(input[type=radio]:not(:checked):not(:disabled):hover)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-hover-foregroundColor)}::slotted(input[type=radio]:checked:not(:disabled):hover)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-hover-foregroundColor)}::slotted(input[type=radio]:checked)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-default-selectedForegroundColor)}::slotted(input[type=radio]:disabled)::before{cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}::slotted(label){display:inline-block;font-family:var(--gse-ui-radioButton-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-radioButton-label-text-fontWeight);line-height:var(--gse-ui-radioButton-label-text-lineHeight);vertical-align:middle;color:var(--gse-ui-radioButton-label-foregroundColor)}";export{p as gux_form_field_radio}
1
+ import{r as e,h as o,H as t,g as r}from"./p-cf74fd3d.js";import{c as i,o as a}from"./p-f4751a15.js";import{O as l}from"./p-946c70b7.js";import{p as s}from"./p-a11d5d42.js";import{h as d}from"./p-6d8b4027.js";import{a as n,G as g}from"./p-56b18d28.js";import{g as u,v as C}from"./p-4aaf349e.js";import{t as f}from"./p-fcdad94f.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const p=class{constructor(o){e(this,o),this.hasHelp=!1,this.hasError=!1,this.hasGroupError=!1,this.hasGroupDisabled=!1}onMutation(){this.hasError=d(this.root,"error"),this.hasHelp=d(this.root,"help")}componentWillLoad(){this.setInput(),this.hasError=d(this.root,"error"),this.hasHelp=d(this.root,"help"),f(this.root)}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}render(){return o(t,{key:"027a65529baac39c48426634b16e216de228e935",class:{"gux-input-error":this.hasError||this.hasGroupError,"gux-disabled":this.disabled}},o("div",{key:"a368d94400ded63f97a91961c04c68e2b5458c36",class:"gux-form-field-container","aria-disabled":this.disabled?"true":"false"},o("div",{key:"54ffe9d74bd5b5f2763008ceb774d71b4cad744b",class:"gux-input-label"},o("div",{key:"4d32d3a82fa16d0ed6461b20779b76c8c6ee8692",class:"gux-input"},o("slot",{key:"2cc9b7db733a5845f2bd758ae25eea223cdd184d",name:"input",onSlotchange:()=>this.setInput()})),o("div",{key:"d2e351035f0737fab0eab622148baa0e14bcdca7",class:"gux-label"},o("slot",{key:"1bcdee07bdd20ce7cb7c2f6905e82ed56611735d",name:"label"}))),o("div",{key:"662f53fba77fda4fd7067a5c255d9ecc6d66ebd7",class:"error-and-help-text"},o(n,{key:"1a2b4f3cdd0ef55638941da8a5f80b109aeea2b9",show:this.hasError},o("slot",{key:"ec9fab4a338961d884bf90ad30c61b50fbd1b866",name:"error"})),o(g,{key:"41e1975a1824c49330654cb7693d314cd765bb45",show:!this.hasError&&this.hasHelp},o("slot",{key:"47fbf0b55fea3fcbff967fec03a134b3dad95384",name:"help"})))))}setInput(){this.input=u(this.root,'input[type="radio"][slot="input"]'),this.hasGroupDisabled&&(this.input.disabled=!0),s(this.input),this.disabled=i(this.input),this.disabledObserver=a(this.input,(e=>{this.disabled=e})),C(this.root,this.input)}get root(){return r(this)}};(function(e,o,t,r){var i,a=arguments.length,l=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,o,t,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a<3?i(l):a>3?i(o,t,l):i(o,t))||l);a>3&&l&&Object.defineProperty(o,t,l)})([l({childList:!0,subtree:!0})],p.prototype,"onMutation",null),p.style=".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 1 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}:host{display:block;padding-block-start:4px}:host(.gux-disabled){cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}:host(.gux-input-error) input[type=radio]:checked::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=radio]:not(:checked))::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-error-foregroundColor)}:host(.gux-input-error) .gux-form-field-error{font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);color:var(--gse-ui-radioButton-icon-error-foregroundColor)}.gux-input-label{display:flex;flex-direction:row;gap:var(--gse-ui-radioButton-helper-gap)}.gux-input-label .gux-label{display:flex;flex-direction:column;line-height:var(--gse-ui-radioButton-label-text-lineHeight)}.gux-input-label .gux-input{line-height:16px}::slotted(input[type=radio]){display:inline-grid;inline-size:var(--gse-ui-radioButton-icon-width);block-size:var(--gse-ui-radioButton-icon-height);margin:0;vertical-align:middle;color:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor);text-align:center;-webkit-appearance:none;appearance:none;cursor:pointer;outline:none;border:0}::slotted(input[type=radio])::before{grid-area:1/1;content:\"\";border-radius:50%}::slotted(input[type=radio]:focus-visible){outline:var(--gse-ui-radioButton-focus-border-width) var(--gse-ui-radioButton-focus-border-style) var(--gse-ui-radioButton-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:var(--gse-ui-radioButton-focus-borderRadius)}::slotted(input[type=radio]:not(:checked))::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor)}::slotted(input[type=radio]:not(:checked):not(:disabled):hover)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-hover-foregroundColor)}::slotted(input[type=radio]:checked:not(:disabled):hover)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-hover-foregroundColor)}::slotted(input[type=radio]:checked)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-default-selectedForegroundColor)}::slotted(input[type=radio]:disabled)::before{cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}::slotted(label){display:inline-block;font-family:var(--gse-ui-radioButton-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-radioButton-label-text-fontWeight);line-height:var(--gse-ui-radioButton-label-text-lineHeight);vertical-align:middle;color:var(--gse-ui-radioButton-label-foregroundColor)}";export{p as gux_form_field_radio}
@@ -1 +1 @@
1
- import{r as e,c as t,h as g,H as l,g as i}from"./p-cf74fd3d.js";import{t as o}from"./p-14333ed8.js";import{r as a}from"./p-0934300e.js";import{b as r}from"./p-e5e644b3.js";import"./p-4202e9f2.js";const s={defaultAriaLabel:"Toggle Switch",toggleIsLoading:"Toggle is loading",toggleIsFinishedLoading:"Toggle is finished loading"},n=class{constructor(g){e(this,g),this.check=t(this,"check",7),this.labelId=a("gux-toggle-label"),this.errorId=a("gux-toggle-error"),this.checked=!1,this.disabled=!1,this.loading=!1,this.labelPosition="right",this.displayInline=!1}handleLoading(e){this.announceElement.guxAnnounce(this.i18n(e?"toggleIsLoading":"toggleIsFinishedLoading"))}onKeydown(e){" "===e.key&&(e.preventDefault(),this.toggle())}toggle(){this.disabled||this.loading||this.check.emit(!this.checked).defaultPrevented||(this.checked=!this.checked)}getAriaLabel(){return this.root.getAttribute("aria-label")||this.label||this.checkedLabel||this.root.title||this.i18n("defaultAriaLabel")}async componentWillLoad(){this.i18n=await r(this.root,s),o(this.root,{variant:this.checkedLabel||this.uncheckedLabel?"labled":"unlabled"})}renderLoading(){if(this.loading)return g("div",{class:"gux-toggle-label-loading"},g("gux-radial-loading",{context:"input"}))}renderLabel(){return this.label?g("div",{class:"gux-toggle-label-and-error"},g("div",{class:"gux-toggle-label"},g("div",{class:"gux-toggle-label-text"},g("span",{class:"gux-toggle-label-text-inner"},g("span",{id:this.labelId},this.label),this.renderLoading())))):this.uncheckedLabel&&this.checkedLabel?g("div",{class:"gux-toggle-label-and-error"},g("div",{class:"gux-toggle-label"},g("div",{class:"gux-toggle-label-text"},g("span",{class:"gux-toggle-label-text-inner"},g("span",{id:this.labelId},this.checked?this.checkedLabel:this.uncheckedLabel),this.renderLoading()),g("span",{class:"gux-toggle-label-text-inner gux-hidden"},this.checkedLabel),g("span",{class:"gux-toggle-label-text-inner gux-hidden"},this.uncheckedLabel)))):void 0}renderError(){if(this.errorMessage)return g("div",{id:this.errorId,class:"gux-toggle-error"},g("div",{class:"gux-toggle-error-container"},g("gux-icon",{"icon-name":"fa/hexagon-exclamation-solid",decorative:!0,size:"small"}),g("div",{class:"gux-toggle-error-message"},this.errorMessage)))}render(){return g(l,{key:"3ab834f79acb7477c896c214e0e9a7cccf1ff72d",class:{"gux-display-inline":this.displayInline}},g("div",{key:"5f70e3c1117985a0e39d0c4cab2d0415e3e9bf07",class:{"gux-toggle-container":!0,"gux-toggle-label-left":"left"===this.labelPosition,"gux-disabled":this.disabled||this.loading}},g("div",{key:"682dff4990e148b32667aa3f0acab265ef24dd20",class:"gux-toggle-input",onClick:this.toggle.bind(this)},g("gux-toggle-slider",{key:"8199ab8d292afc57b6874780077a6f4bf8122f43",checked:this.checked,disabled:this.disabled||this.loading,guxAriaLabel:this.getAriaLabel(),labelId:this.checkedLabel&&this.uncheckedLabel?this.labelId:"",onKeyDown:this.onKeydown.bind(this),errorId:this.errorMessage?this.errorId:""}),this.renderLabel()),this.renderError()),g("gux-announce-beta",{key:"63209dc17c8feb56de9571ef47311ddc6adceeea",ref:e=>this.announceElement=e}))}static get delegatesFocus(){return!0}get root(){return i(this)}static get watchers(){return{loading:["handleLoading"]}}};n.style=':host{display:block;outline:none}:host(.gux-display-inline){display:inline-block}.gux-toggle-container.gux-disabled{pointer-events:none;cursor:default}.gux-toggle-container.gux-disabled .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{opacity:var(--gse-ui-toggle-disabled-opacity)}.gux-toggle-container.gux-toggle-label-left .gux-toggle-input{flex-direction:row-reverse}.gux-toggle-container.gux-toggle-label-left .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{place-items:end}.gux-toggle-container.gux-toggle-label-left .gux-toggle-error{float:inline-end}.gux-toggle-container .gux-toggle-input{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toggle-gap);place-content:stretch flex-start;align-items:center;inline-size:fit-content;cursor:pointer}.gux-toggle-container .gux-toggle-input .gux-toggle-label{position:relative;display:inline-block}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{display:grid;grid-template-areas:"inner-div";place-items:center start}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text .gux-toggle-label-text-inner{position:relative;grid-area:inner-div;font-family:var(--gse-ui-toggle-label-fontFamily);font-size:var(--gse-ui-toggle-label-fontSize);font-weight:var(--gse-ui-toggle-label-fontWeight);line-height:var(--gse-ui-toggle-label-lineHeight);color:var(--gse-ui-formControl-label-labelColor);word-wrap:break-word}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text .gux-toggle-label-text-inner.gux-hidden{visibility:hidden}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-loading{position:absolute;inset:0;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toggle-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-toggle-label-fontFamily);font-size:var(--gse-ui-toggle-label-fontSize);font-weight:var(--gse-ui-toggle-label-fontWeight);line-height:var(--gse-ui-toggle-label-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container .gux-toggle-error-message{flex:0 1 auto;align-self:auto;order:0}';export{n as gux_toggle}
1
+ import{r as e,c as t,h as g,H as l,g as i}from"./p-cf74fd3d.js";import{t as o}from"./p-fcdad94f.js";import{r as a}from"./p-0934300e.js";import{b as r}from"./p-e5e644b3.js";import"./p-4202e9f2.js";const s={defaultAriaLabel:"Toggle Switch",toggleIsLoading:"Toggle is loading",toggleIsFinishedLoading:"Toggle is finished loading"},n=class{constructor(g){e(this,g),this.check=t(this,"check",7),this.labelId=a("gux-toggle-label"),this.errorId=a("gux-toggle-error"),this.checked=!1,this.disabled=!1,this.loading=!1,this.labelPosition="right",this.displayInline=!1}handleLoading(e){this.announceElement.guxAnnounce(this.i18n(e?"toggleIsLoading":"toggleIsFinishedLoading"))}onKeydown(e){" "===e.key&&(e.preventDefault(),this.toggle())}toggle(){this.disabled||this.loading||this.check.emit(!this.checked).defaultPrevented||(this.checked=!this.checked)}getAriaLabel(){return this.root.getAttribute("aria-label")||this.label||this.checkedLabel||this.root.title||this.i18n("defaultAriaLabel")}async componentWillLoad(){this.i18n=await r(this.root,s),o(this.root,{variant:this.checkedLabel||this.uncheckedLabel?"labled":"unlabled"})}renderLoading(){if(this.loading)return g("div",{class:"gux-toggle-label-loading"},g("gux-radial-loading",{context:"input"}))}renderLabel(){return this.label?g("div",{class:"gux-toggle-label-and-error"},g("div",{class:"gux-toggle-label"},g("div",{class:"gux-toggle-label-text"},g("span",{class:"gux-toggle-label-text-inner"},g("span",{id:this.labelId},this.label),this.renderLoading())))):this.uncheckedLabel&&this.checkedLabel?g("div",{class:"gux-toggle-label-and-error"},g("div",{class:"gux-toggle-label"},g("div",{class:"gux-toggle-label-text"},g("span",{class:"gux-toggle-label-text-inner"},g("span",{id:this.labelId},this.checked?this.checkedLabel:this.uncheckedLabel),this.renderLoading()),g("span",{class:"gux-toggle-label-text-inner gux-hidden"},this.checkedLabel),g("span",{class:"gux-toggle-label-text-inner gux-hidden"},this.uncheckedLabel)))):void 0}renderError(){if(this.errorMessage)return g("div",{id:this.errorId,class:"gux-toggle-error"},g("div",{class:"gux-toggle-error-container"},g("gux-icon",{"icon-name":"fa/hexagon-exclamation-solid",decorative:!0,size:"small"}),g("div",{class:"gux-toggle-error-message"},this.errorMessage)))}render(){return g(l,{key:"3ab834f79acb7477c896c214e0e9a7cccf1ff72d",class:{"gux-display-inline":this.displayInline}},g("div",{key:"5f70e3c1117985a0e39d0c4cab2d0415e3e9bf07",class:{"gux-toggle-container":!0,"gux-toggle-label-left":"left"===this.labelPosition,"gux-disabled":this.disabled||this.loading}},g("div",{key:"682dff4990e148b32667aa3f0acab265ef24dd20",class:"gux-toggle-input",onClick:this.toggle.bind(this)},g("gux-toggle-slider",{key:"8199ab8d292afc57b6874780077a6f4bf8122f43",checked:this.checked,disabled:this.disabled||this.loading,guxAriaLabel:this.getAriaLabel(),labelId:this.checkedLabel&&this.uncheckedLabel?this.labelId:"",onKeyDown:this.onKeydown.bind(this),errorId:this.errorMessage?this.errorId:""}),this.renderLabel()),this.renderError()),g("gux-announce-beta",{key:"63209dc17c8feb56de9571ef47311ddc6adceeea",ref:e=>this.announceElement=e}))}static get delegatesFocus(){return!0}get root(){return i(this)}static get watchers(){return{loading:["handleLoading"]}}};n.style=':host{display:block;outline:none}:host(.gux-display-inline){display:inline-block}.gux-toggle-container.gux-disabled{pointer-events:none;cursor:default}.gux-toggle-container.gux-disabled .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{opacity:var(--gse-ui-toggle-disabled-opacity)}.gux-toggle-container.gux-toggle-label-left .gux-toggle-input{flex-direction:row-reverse}.gux-toggle-container.gux-toggle-label-left .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{place-items:end}.gux-toggle-container.gux-toggle-label-left .gux-toggle-error{float:inline-end}.gux-toggle-container .gux-toggle-input{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toggle-gap);place-content:stretch flex-start;align-items:center;inline-size:fit-content;cursor:pointer}.gux-toggle-container .gux-toggle-input .gux-toggle-label{position:relative;display:inline-block}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{display:grid;grid-template-areas:"inner-div";place-items:center start}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text .gux-toggle-label-text-inner{position:relative;grid-area:inner-div;font-family:var(--gse-ui-toggle-label-fontFamily);font-size:var(--gse-ui-toggle-label-fontSize);font-weight:var(--gse-ui-toggle-label-fontWeight);line-height:var(--gse-ui-toggle-label-lineHeight);color:var(--gse-ui-formControl-label-labelColor);word-wrap:break-word}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text .gux-toggle-label-text-inner.gux-hidden{visibility:hidden}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-loading{position:absolute;inset:0;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toggle-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-toggle-label-fontFamily);font-size:var(--gse-ui-toggle-label-fontSize);font-weight:var(--gse-ui-toggle-label-fontWeight);line-height:var(--gse-ui-toggle-label-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container .gux-toggle-error-message{flex:0 1 auto;align-self:auto;order:0}';export{n as gux_toggle}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i,H as e,g as r}from"./p-cf74fd3d.js";import{t as o}from"./p-fcdad94f.js";import{p as h,n as c,f as n,l as a}from"./p-8d73b418.js";const l=["gux-rich-style-list-item","gux-rich-highlight-list-item","gux-rich-text-editor-sub-list"],g=class{constructor(i){t(this,i),this.internallistitemsupdated=s(this,"internallistitemsupdated",7),this.listItems=[]}get listItemsSlot(){return this.root.querySelector("slot")}get listItemElements(){var t;const s=null===(t=this.listItemsSlot)||void 0===t?void 0:t.assignedElements();return s?Array.from(s):[]}handleHighlighItemsNavigation(){if(this.listItemsSlot){const t=this.listItemsSlot.assignedElements().find((t=>"gux-rich-highlight-list-item"===t.tagName.toLowerCase()));t&&(t.shadowRoot.querySelector("button").tabIndex=0)}}setListItems(){this.listItems=this.listItemElements,this.internallistitemsupdated.emit()}async componentWillLoad(){o(this.root),this.setListItems(),this.handleHighlighItemsNavigation()}onKeyDown(t){const s=t.target;if(!s)return;const i={ArrowUp:()=>h(this.root,l),ArrowDown:()=>c(this.root,l),Home:()=>n(this.root,l),End:()=>a(this.root,l)};s.matches("gux-rich-highlight-list-item")&&Object.assign(i,{ArrowLeft:()=>h(this.root,l),ArrowRight:()=>c(this.root,l)});const e=i[t.key];e&&(t.preventDefault(),e())}async guxFocusFirstItem(){n(this.root,l)}async guxFocusLastItem(){a(this.root,l)}render(){return i(e,{key:"dcaebbf922cf039c160624d3302df8072c263886",role:"list"},i("slot",{key:"54d82523fe3ac04394f7d2a7718015acec745c4c",onSlotchange:()=>this.setListItems()}))}static get delegatesFocus(){return!0}get root(){return r(this)}};g.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;padding:var(--gse-ui-menu-padding)}";export{g as gux_rich_text_editor_list}
@@ -1 +1 @@
1
- import{r as e,h as o,g as t}from"./p-cf74fd3d.js";import{O as i}from"./p-946c70b7.js";import{h as r}from"./p-6d8b4027.js";import{t as l}from"./p-14333ed8.js";import{a,G as s}from"./p-56b18d28.js";import{G as f,a as n}from"./p-bd1d4fac.js";import{a as h,g as d,v as p}from"./p-4aaf349e.js";import{p as u}from"./p-a11d5d42.js";import{o as c}from"./p-6b12dd16.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const m=class{constructor(o){e(this,o),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 o,t;"Tab"===e.key?this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(t=this.labelInfo)||void 0===t||t.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}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=c(this.input,(e=>{this.required=e})),p(this.root,this.input)}get variant(){return`fileInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}render(){return o(n,{key:"08511bf60b590f9a13ba6a7fb3561769eb0d3aa1",labelPosition:this.computedLabelPosition},o(f,{key:"04a5dfc249109bbe7fa2989d764a9ae58bc952b4",position:this.computedLabelPosition,required:this.required},o("slot",{key:"6953fc2d625acbf6e3b33da32647cb534c1864d1",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"51ec4246ee2079232ef350e6decf7dbf1dc91b04",variant:this.indicatorMark,required:this.required}),o("slot",{key:"b2f6397e827292e196516614dc72774bb9a80020",name:"label-info"})),o("div",{key:"4a1a487771bc384f433278cfe3ba63c23141fa8b",class:"gux-input-and-error-container"},o("slot",{key:"47d0d93b1ff6902dbb6fb17233455a6209f15698",name:"input",onSlotchange:()=>this.setInput()}),o(a,{key:"96b0f4cf4ccc15e6f42856c03ce0e109a30c7d72",show:this.hasError},o("slot",{key:"ae24a6c6a1ffbe31d576a946dd7e8d8c4574fb39",name:"error"})),o(s,{key:"2702e229e642c9e700b203f7fc20a15bc7c0fdc0",show:!this.hasError&&this.hasHelp},o("slot",{key:"da73bd0d3b3207bffdff1d0cbc6506c301cf8792",name:"help"}))))}get root(){return t(this)}};(function(e,o,t,i){var r,l=arguments.length,a=l<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,t,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(l<3?r(a):l>3?r(o,t,a):r(o,t))||a);l>3&&a&&Object.defineProperty(o,t,a)})([i({childList:!0,subtree:!0})],m.prototype,"onMutation",null),m.style=".gux-form-field-container.gux-beside{display:flex;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 1 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(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1}";export{m as gux_form_field_file}
1
+ import{r as e,h as o,g as t}from"./p-cf74fd3d.js";import{O as i}from"./p-946c70b7.js";import{h as r}from"./p-6d8b4027.js";import{t as l}from"./p-fcdad94f.js";import{a,G as s}from"./p-56b18d28.js";import{G as f,a as n}from"./p-bd1d4fac.js";import{a as h,g as d,v as p}from"./p-4aaf349e.js";import{p as u}from"./p-a11d5d42.js";import{o as c}from"./p-6b12dd16.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const m=class{constructor(o){e(this,o),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 o,t;"Tab"===e.key?this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(t=this.labelInfo)||void 0===t||t.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}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=c(this.input,(e=>{this.required=e})),p(this.root,this.input)}get variant(){return`fileInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}render(){return o(n,{key:"08511bf60b590f9a13ba6a7fb3561769eb0d3aa1",labelPosition:this.computedLabelPosition},o(f,{key:"04a5dfc249109bbe7fa2989d764a9ae58bc952b4",position:this.computedLabelPosition,required:this.required},o("slot",{key:"6953fc2d625acbf6e3b33da32647cb534c1864d1",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"51ec4246ee2079232ef350e6decf7dbf1dc91b04",variant:this.indicatorMark,required:this.required}),o("slot",{key:"b2f6397e827292e196516614dc72774bb9a80020",name:"label-info"})),o("div",{key:"4a1a487771bc384f433278cfe3ba63c23141fa8b",class:"gux-input-and-error-container"},o("slot",{key:"47d0d93b1ff6902dbb6fb17233455a6209f15698",name:"input",onSlotchange:()=>this.setInput()}),o(a,{key:"96b0f4cf4ccc15e6f42856c03ce0e109a30c7d72",show:this.hasError},o("slot",{key:"ae24a6c6a1ffbe31d576a946dd7e8d8c4574fb39",name:"error"})),o(s,{key:"2702e229e642c9e700b203f7fc20a15bc7c0fdc0",show:!this.hasError&&this.hasHelp},o("slot",{key:"da73bd0d3b3207bffdff1d0cbc6506c301cf8792",name:"help"}))))}get root(){return t(this)}};(function(e,o,t,i){var r,l=arguments.length,a=l<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,t,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(l<3?r(a):l>3?r(o,t,a):r(o,t))||a);l>3&&a&&Object.defineProperty(o,t,a)})([i({childList:!0,subtree:!0})],m.prototype,"onMutation",null),m.style=".gux-form-field-container.gux-beside{display:flex;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 1 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(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1}";export{m as gux_form_field_file}
@@ -1 +1 @@
1
- import{r as e,h as o,f as i,g as r}from"./p-cf74fd3d.js";import{b as t}from"./p-e5e644b3.js";import{O as l}from"./p-946c70b7.js";import{h as a}from"./p-6d8b4027.js";import{t as s}from"./p-14333ed8.js";import{G as n,a as d}from"./p-56b18d28.js";import{G as f,a as p}from"./p-bd1d4fac.js";import{g as u,v as g}from"./p-4aaf349e.js";import{p as h}from"./p-a11d5d42.js";import{a as c,o as x,b}from"./p-6b12dd16.js";import{s as m}from"./p-2c25e2f2.js";import"./p-4202e9f2.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";const v={uploadFile:"Upload file",uploadFiles:"Upload files",changeFile:"Change file",changeFiles:"Change files",clickToUpload:"Click to upload",dragAndDropFileInstructions:"Drag and drop a file here or",dragAndDropFilesInstructions:"Drag and drop files here or"};const y=class{constructor(o){e(this,o),this.indicatorMark="required",this.dragAndDrop=!1,this.disabled=!1,this.hasError=!1,this.hasHelp=!1,this.required=!1,this.multiple=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help")}handleKeyup(e){var o,i;"Tab"===e.key?this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(i=this.labelInfo)||void 0===i||i.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}onGuxRemoveFile(e){this.removeFile(e.detail)}async componentWillLoad(){this.getI18nValue=await t(this.root,v),this.setInput(),this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help"),this.labelInfo=this.root.querySelector("[slot=label-info]"),s(this.root)}disconnectedCallback(){var e,o,i;null===(e=this.disabledObserver)||void 0===e||e.disconnect(),null===(o=this.requiredObserver)||void 0===o||o.disconnect(),null===(i=this.multipleObserver)||void 0===i||i.disconnect()}render(){return o(p,{key:"d6cd4823100ca775ddd66079da9825e9dcf6c41c",labelPosition:"above"},o(f,{key:"c35ca22f59ce27c225b92d14002418fbe600fd69",position:"above",required:this.required},o("slot",{key:"b19f3e2baacb6d03212926d9f3383c2dd6e75060",name:"label"}),o("gux-form-field-label-indicator",{key:"baf3c024b9dc7bba0a2ad8ef697a9d0928efdca5",variant:this.indicatorMark,required:this.required}),o("slot",{key:"0cb36f65dc3460538daac6bbf62f0edf99e39bd9",name:"label-info"})),o("div",{key:"8f68e0239d124e802752800c054d867508175181",class:"gux-input-and-error-container"},o(n,{key:"3f512ba19d68ec08e72b3f1ab994c0246f15b762",show:this.hasHelp},o("slot",{key:"3e663f6a7094935eb03ee6a69410190bb0d50a63",name:"help"})),this.renderInputSlot(),o(d,{key:"4d9dd6596e57c32a4e2f86da8684c59b6a72ef69",show:this.hasError},o("slot",{key:"dbdbac3f00d3764d9b0bdf70394ba96e4d79cdbe",name:"error"})),this.renderFileList()))}setInput(){this.input=u(this.root,'input[type="file"][slot="input"]'),this.input.addEventListener("input",(()=>{i(this.root)})),h(this.input),this.disabled=this.input.disabled,this.required=this.input.required,this.multiple=this.input.multiple,this.disabledObserver=c(this.input,(e=>{this.disabled=e})),this.requiredObserver=x(this.input,(e=>{this.required=e})),this.multipleObserver=b(this.input,(e=>{this.multiple=e})),g(this.root,this.input)}getDropZoneText(){return this.getI18nValue(this.multiple?"dragAndDropFilesInstructions":"dragAndDropFileInstructions")}getProxyButtonText(){return this.getI18nValue(this.dragAndDrop?"clickToUpload":this.multiple?this.input.files.length>0?"changeFiles":"uploadFiles":this.input.files.length>0?"changeFile":"uploadFile")}removeFile(e){const o=this.input.files,i=new DataTransfer;for(let r=0;r<o.length;r++)e!==r&&i.items.add(o[r]);this.modifyInputFiles(i.files)}modifyInputFiles(e){this.input.files=e,m(this.root,"input"),m(this.root,"change"),i(this.root)}onProxyFileButtonClick(e){e.preventDefault(),e.stopImmediatePropagation(),this.input.focus(),this.input.click()}onDrop(e){if(e.preventDefault(),e.stopPropagation(),this.disabled)return;const o=this.input.files,i=e.dataTransfer.items,r=new DataTransfer;if(this.multiple)for(let e=0;e<o.length;e++)r.items.add(o[e]);for(let e=0;e<i.length;e++){const o=i[e];if("file"===o.kind&&o.webkitGetAsEntry().isFile&&(r.items.add(o.getAsFile()),!this.multiple))break}this.dropContainer.classList.remove("gux-drag-over"),this.modifyInputFiles(r.files)}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.disabled||this.dropContainer.classList.add("gux-drag-over")}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.dropContainer.classList.remove("gux-drag-over")}renderFileList(){const e=Array.from(this.input.files||(new DataTransfer).files);return 0===e.length?null:o("div",{class:"gux-file-list"},e.map(((e,i)=>o("slot",{name:`file-${i}`},o("gux-file-list-item",{name:e.name,index:i,disabled:this.disabled})))))}renderInputSlot(){return o("div",{ref:e=>this.dropContainer=e,class:{"gux-drop-container":!0,"gux-drop-zone":this.dragAndDrop,"gux-disabled":this.disabled},onDrop:e=>this.onDrop(e),onDragOver:e=>this.onDragOver(e),onDragEnter:e=>this.onDragOver(e),onDragLeave:e=>this.onDragLeave(e)},this.dragAndDrop&&o("div",{class:"gux-drag-and-drop-text"},this.getDropZoneText()),o("div",{class:"gux-proxy-button"},o("gux-button-slot",{accent:"tertiary"},o("button",{tabIndex:-1,type:"button",disabled:this.disabled,onClick:e=>this.onProxyFileButtonClick(e)},o("div",null,this.getProxyButtonText()))),o("div",{class:"gux-offscreen"},o("slot",{name:"input",onSlotchange:()=>this.setInput()}))))}get root(){return r(this)}};(function(e,o,i,r){var t,l=arguments.length,a=l<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,i,r);else for(var s=e.length-1;s>=0;s--)(t=e[s])&&(a=(l<3?t(a):l>3?t(o,i,a):t(o,i))||a);l>3&&a&&Object.defineProperty(o,i,a)})([l({childList:!0,subtree:!0})],y.prototype,"onMutation",null),y.style=".gux-form-field-container.gux-beside{display:flex;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 1 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(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{display:flex;flex-grow:1;flex-direction:column;gap:var(--gse-ui-fileUpload-mainContainer-gap)}.gux-drop-container{box-sizing:border-box;display:flex;flex-direction:column;flex-wrap:nowrap;gap:var(--gse-ui-fileUpload-dragDrop-btnText-gap);margin-inline:0;font-family:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontFamily);font-size:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontSize);font-weight:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontWeight);line-height:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-lineHeight);color:var(--gse-ui-fileUpload-dragAndDrop-dropZoneText-color)}.gux-drop-container.gux-drop-zone{place-content:stretch center;align-items:center;min-block-size:var(--gse-ui-fileUpload-dragAndDrop-dropZone-minHeight);padding:20px;border:var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-width) var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-style) var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-color);border-radius:var(--gse-ui-fileUpload-dropZone-borderRadius)}.gux-drop-container.gux-drop-zone.gux-drag-over:not(.gux-disabled){background-color:var(--gse-ui-fileUpload-dragAndDrop-dropZone-background-active);border:var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-width) var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-style) var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-color)}.gux-drop-container.gux-drop-zone.gux-disabled{border-color:rgba(0, 0, 64, 0.2509803922)}.gux-drop-container.gux-drop-zone.gux-disabled .gux-drag-and-drop-text{opacity:0.5}.gux-offscreen{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-proxy-button{inline-size:fit-content;border-radius:var(--gse-ui-button-borderRadius)}.gux-proxy-button:focus-within{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-file-list{display:flex;flex-direction:column;gap:var(--gse-ui-fileUpload-fileCard-cardGroup-gap);inline-size:100%}";export{y as gux_form_field_file_beta}
1
+ import{r as e,h as o,f as i,g as r}from"./p-cf74fd3d.js";import{b as t}from"./p-e5e644b3.js";import{O as l}from"./p-946c70b7.js";import{h as a}from"./p-6d8b4027.js";import{t as s}from"./p-fcdad94f.js";import{G as n,a as d}from"./p-56b18d28.js";import{G as f,a as p}from"./p-bd1d4fac.js";import{g as u,v as g}from"./p-4aaf349e.js";import{p as h}from"./p-a11d5d42.js";import{a as c,o as x,b}from"./p-6b12dd16.js";import{s as m}from"./p-2c25e2f2.js";import"./p-4202e9f2.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";const v={uploadFile:"Upload file",uploadFiles:"Upload files",changeFile:"Change file",changeFiles:"Change files",clickToUpload:"Click to upload",dragAndDropFileInstructions:"Drag and drop a file here or",dragAndDropFilesInstructions:"Drag and drop files here or"};const y=class{constructor(o){e(this,o),this.indicatorMark="required",this.dragAndDrop=!1,this.disabled=!1,this.hasError=!1,this.hasHelp=!1,this.required=!1,this.multiple=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help")}handleKeyup(e){var o,i;"Tab"===e.key?this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(i=this.labelInfo)||void 0===i||i.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}onGuxRemoveFile(e){this.removeFile(e.detail)}async componentWillLoad(){this.getI18nValue=await t(this.root,v),this.setInput(),this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help"),this.labelInfo=this.root.querySelector("[slot=label-info]"),s(this.root)}disconnectedCallback(){var e,o,i;null===(e=this.disabledObserver)||void 0===e||e.disconnect(),null===(o=this.requiredObserver)||void 0===o||o.disconnect(),null===(i=this.multipleObserver)||void 0===i||i.disconnect()}render(){return o(p,{key:"d6cd4823100ca775ddd66079da9825e9dcf6c41c",labelPosition:"above"},o(f,{key:"c35ca22f59ce27c225b92d14002418fbe600fd69",position:"above",required:this.required},o("slot",{key:"b19f3e2baacb6d03212926d9f3383c2dd6e75060",name:"label"}),o("gux-form-field-label-indicator",{key:"baf3c024b9dc7bba0a2ad8ef697a9d0928efdca5",variant:this.indicatorMark,required:this.required}),o("slot",{key:"0cb36f65dc3460538daac6bbf62f0edf99e39bd9",name:"label-info"})),o("div",{key:"8f68e0239d124e802752800c054d867508175181",class:"gux-input-and-error-container"},o(n,{key:"3f512ba19d68ec08e72b3f1ab994c0246f15b762",show:this.hasHelp},o("slot",{key:"3e663f6a7094935eb03ee6a69410190bb0d50a63",name:"help"})),this.renderInputSlot(),o(d,{key:"4d9dd6596e57c32a4e2f86da8684c59b6a72ef69",show:this.hasError},o("slot",{key:"dbdbac3f00d3764d9b0bdf70394ba96e4d79cdbe",name:"error"})),this.renderFileList()))}setInput(){this.input=u(this.root,'input[type="file"][slot="input"]'),this.input.addEventListener("input",(()=>{i(this.root)})),h(this.input),this.disabled=this.input.disabled,this.required=this.input.required,this.multiple=this.input.multiple,this.disabledObserver=c(this.input,(e=>{this.disabled=e})),this.requiredObserver=x(this.input,(e=>{this.required=e})),this.multipleObserver=b(this.input,(e=>{this.multiple=e})),g(this.root,this.input)}getDropZoneText(){return this.getI18nValue(this.multiple?"dragAndDropFilesInstructions":"dragAndDropFileInstructions")}getProxyButtonText(){return this.getI18nValue(this.dragAndDrop?"clickToUpload":this.multiple?this.input.files.length>0?"changeFiles":"uploadFiles":this.input.files.length>0?"changeFile":"uploadFile")}removeFile(e){const o=this.input.files,i=new DataTransfer;for(let r=0;r<o.length;r++)e!==r&&i.items.add(o[r]);this.modifyInputFiles(i.files)}modifyInputFiles(e){this.input.files=e,m(this.root,"input"),m(this.root,"change"),i(this.root)}onProxyFileButtonClick(e){e.preventDefault(),e.stopImmediatePropagation(),this.input.focus(),this.input.click()}onDrop(e){if(e.preventDefault(),e.stopPropagation(),this.disabled)return;const o=this.input.files,i=e.dataTransfer.items,r=new DataTransfer;if(this.multiple)for(let e=0;e<o.length;e++)r.items.add(o[e]);for(let e=0;e<i.length;e++){const o=i[e];if("file"===o.kind&&o.webkitGetAsEntry().isFile&&(r.items.add(o.getAsFile()),!this.multiple))break}this.dropContainer.classList.remove("gux-drag-over"),this.modifyInputFiles(r.files)}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.disabled||this.dropContainer.classList.add("gux-drag-over")}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.dropContainer.classList.remove("gux-drag-over")}renderFileList(){const e=Array.from(this.input.files||(new DataTransfer).files);return 0===e.length?null:o("div",{class:"gux-file-list"},e.map(((e,i)=>o("slot",{name:`file-${i}`},o("gux-file-list-item",{name:e.name,index:i,disabled:this.disabled})))))}renderInputSlot(){return o("div",{ref:e=>this.dropContainer=e,class:{"gux-drop-container":!0,"gux-drop-zone":this.dragAndDrop,"gux-disabled":this.disabled},onDrop:e=>this.onDrop(e),onDragOver:e=>this.onDragOver(e),onDragEnter:e=>this.onDragOver(e),onDragLeave:e=>this.onDragLeave(e)},this.dragAndDrop&&o("div",{class:"gux-drag-and-drop-text"},this.getDropZoneText()),o("div",{class:"gux-proxy-button"},o("gux-button-slot",{accent:"tertiary"},o("button",{tabIndex:-1,type:"button",disabled:this.disabled,onClick:e=>this.onProxyFileButtonClick(e)},o("div",null,this.getProxyButtonText()))),o("div",{class:"gux-offscreen"},o("slot",{name:"input",onSlotchange:()=>this.setInput()}))))}get root(){return r(this)}};(function(e,o,i,r){var t,l=arguments.length,a=l<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,i,r);else for(var s=e.length-1;s>=0;s--)(t=e[s])&&(a=(l<3?t(a):l>3?t(o,i,a):t(o,i))||a);l>3&&a&&Object.defineProperty(o,i,a)})([l({childList:!0,subtree:!0})],y.prototype,"onMutation",null),y.style=".gux-form-field-container.gux-beside{display:flex;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 1 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(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{display:flex;flex-grow:1;flex-direction:column;gap:var(--gse-ui-fileUpload-mainContainer-gap)}.gux-drop-container{box-sizing:border-box;display:flex;flex-direction:column;flex-wrap:nowrap;gap:var(--gse-ui-fileUpload-dragDrop-btnText-gap);margin-inline:0;font-family:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontFamily);font-size:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontSize);font-weight:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontWeight);line-height:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-lineHeight);color:var(--gse-ui-fileUpload-dragAndDrop-dropZoneText-color)}.gux-drop-container.gux-drop-zone{place-content:stretch center;align-items:center;min-block-size:var(--gse-ui-fileUpload-dragAndDrop-dropZone-minHeight);padding:20px;border:var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-width) var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-style) var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-color);border-radius:var(--gse-ui-fileUpload-dropZone-borderRadius)}.gux-drop-container.gux-drop-zone.gux-drag-over:not(.gux-disabled){background-color:var(--gse-ui-fileUpload-dragAndDrop-dropZone-background-active);border:var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-width) var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-style) var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-color)}.gux-drop-container.gux-drop-zone.gux-disabled{border-color:rgba(0, 0, 64, 0.2509803922)}.gux-drop-container.gux-drop-zone.gux-disabled .gux-drag-and-drop-text{opacity:0.5}.gux-offscreen{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-proxy-button{inline-size:fit-content;border-radius:var(--gse-ui-button-borderRadius)}.gux-proxy-button:focus-within{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-file-list{display:flex;flex-direction:column;gap:var(--gse-ui-fileUpload-fileCard-cardGroup-gap);inline-size:100%}";export{y as gux_form_field_file_beta}
@@ -1 +1 @@
1
- import{r as a,h as e,H as t,g as i}from"./p-cf74fd3d.js";import{t as o}from"./p-14333ed8.js";import{g as r}from"./p-cc3c3c56.js";import{b as n}from"./p-e5e644b3.js";import{a as s,c as u,o as c}from"./p-04c85b3b.js";import{O as l}from"./p-f3d844c7.js";import{a as d}from"./p-8eaf8caf.js";import{a as g}from"./p-cf0e7d3b.js";import{a as v,g as b}from"./p-5fcdcbfd.js";import"./p-4202e9f2.js";const f={addToGroup:"Add more items to group"},m=class{constructor(e){a(this,e)}async componentWillLoad(){o(this.root),this.i18n=await n(this.root,f)}async hideTooltip(){return await this.tooltip.hideTooltip()}onKeydown(a){r(a,this.root)}render(){return e(t,{key:"c2208087a0df24f9930d65f5cc0b4e33e9365f3d",role:"menuitem"},e("button",{key:"c84beab4ccbf57c154859e7bd16ba4de69705ffa",type:"button","aria-label":this.i18n("addToGroup"),tabIndex:-1,class:"gux-avatar"},e("span",{key:"de3cafb76d43b51a17d80d825a1902662e55585c","aria-hidden":"true"},"+"),e("gux-tooltip-beta",{key:"02843211a8a4cedfbaafa6b650ddc29d77802a7d","aria-hidden":"true","visual-only":!0,placement:"top",ref:a=>this.tooltip=a},e("div",{key:"a5c8e606aa2cbb12517bf295d26520ca5358aeff",slot:"content"},this.i18n("addToGroup")))))}static get delegatesFocus(){return!0}get root(){return i(this)}};m.style="button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-small-content-size);block-size:var(--gse-ui-avatar-small-content-size);padding:0;margin:0;overflow:hidden;font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight);line-height:var(--gse-ui-avatar-small-initials-lineHeight);color:var(--gse-ui-avatar-media-initialsForeground-add);cursor:pointer;background:none;background-color:var(--gse-ui-avatar-media-initialsBackground-add);border:none;border-radius:50%}button:focus-visible,button:hover{position:relative;z-index:var(--gse-semantic-zIndex-showFocus)}button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}";const h=class{constructor(e){a(this,e),this.delayTime=250,this.count=0,this.expanded=!1}async componentWillLoad(){o(this.root)}componentDidLoad(){this.expanded&&this.runUpdatePosition()}componentDidUpdate(){this.expanded?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){clearTimeout(this.focusDelayTimeout),clearTimeout(this.hideDelayTimeout),this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}onClickOutside(){this.expanded=!1}onKeydown(a){switch(r(a,this.root),a.key){case"Escape":this.hide(),"GUX-AVATAR-OVERFLOW-ITEM-BETA"===a.target.tagName&&(this.focusDelayTimeout=g((()=>{var a;null===(a=this.overflowButtonElement)||void 0===a||a.focus()})));break;case"Tab":this.hide()}}onClick(a){a.stopPropagation(),"GUX-AVATAR-OVERFLOW-ITEM-BETA"===a.target.tagName&&(this.menuElement.scrollTop=0,this.expanded=!1)}async guxClose(){this.hide()}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=s(this.overflowButtonElement,this.menuElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.root&&u(this.overflowButtonElement,this.menuElement,{placement:"bottom-start",strategy:"fixed",middleware:[c({mainAxis:4,crossAxis:4})]}).then((({x:a,y:e})=>{Object.assign(this.menuElement.style,{left:`${a}px`,top:`${e}px`})}))}getCount(){const a=Array.from(this.root.children);if(a.some((a=>"GUX-AVATAR-OVERFLOW-ITEM-BETA"!==a.tagName))&&d(this.root,"Only gux-avatar-overflow-item-beta elements are allowed as children."),a)return a.length}toggleOverflowMenu(){this.expanded?this.hide():this.show()}show(){clearTimeout(this.hideDelayTimeout),this.expanded=!0,this.hideDelayTimeout=g((()=>{this.focusOnMenu()}))}hide(){this.expanded&&(this.hideDelayTimeout=setTimeout((()=>{this.expanded=!1}),this.delayTime))}focusOnMenu(){Array.from(this.root.children)[0].focus()}render(){return e(t,{key:"56dc6348cc414fa170fa0ee06fe064f3450882bc",role:"menuitem"},e("button",{key:"5b73425d77f78fce9d87b33487cea1abef6cb0a3",class:"gux-avatar-overflow",ref:a=>this.overflowButtonElement=a,onClick:()=>this.toggleOverflowMenu(),tabIndex:-1,"aria-haspopup":"true","aria-expanded":this.expanded.toString()},e("span",{key:"a23023d03fb1b759e35f06dea6be0114ba5873db",class:"gux-avatar-overflow-wrapper"},e("span",{key:"ae083e3bbf584b59f5a00eac3585b79fa916a712",class:"gux-avatar-overflow-content"}," +",this.getCount()))),e("div",{key:"cab97c98d994f16c09b24f8545b8cd7200388892",class:{"gux-menu-wrapper":!0,"gux-shown":this.expanded},ref:a=>this.menuElement=a},e("div",{key:"715af9beb5866644e7524b641ce2206b6b1b86d3",role:"menu",class:"gux-menu-content"},e("slot",{key:"fd5723c2b0f9bb1039e043d505ff7dff3ba70a18"}))))}static get delegatesFocus(){return!0}get root(){return i(this)}};function p(a){const e=function(a){let e=a;for(;null!==e.previousElementSibling;)e=e.previousElementSibling;return e}(a);e&&e.focus()}function x(a){const e=function(a){let e=a;for(;null!==e.nextElementSibling;)e=e.nextElementSibling;return e}(a);e&&e.focus()}(function(a,e,t,i){var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(a,e,t,i);else for(var s=a.length-1;s>=0;s--)(o=a[s])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);r>3&&n&&Object.defineProperty(e,t,n)})([l({triggerEvents:"mousedown"})],h.prototype,"onClickOutside",null),h.style=":host{display:block;margin-inline-end:var(--gse-ui-avatar-groupSet-gap)}.gux-avatar-overflow{position:relative;box-sizing:border-box;inline-size:100%;padding:0;margin:0;line-height:0px;cursor:pointer;background:none;border:none;border-radius:50%}.gux-avatar-overflow:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-avatar-overflow:hover,.gux-avatar-overflow:focus{z-index:var(--gse-semantic-zIndex-showFocus)}.gux-avatar-overflow .gux-avatar-overflow-wrapper{position:relative;display:flex}.gux-avatar-overflow .gux-avatar-overflow-wrapper .gux-avatar-overflow-content{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-small-content-size);block-size:var(--gse-ui-avatar-small-content-size);overflow:hidden;font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight);line-height:var(--gse-core-lineHeight-matchFontSize);color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-overflowCount);border-radius:50%}.gux-menu-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popup);visibility:hidden;flex-direction:column;max-block-size:var(--gse-ui-menu-maxHeight);padding:var(--gse-ui-menu-padding);margin:0;overflow-y:auto;background-color:var(--gse-ui-menu-backgroundColor);border:none;border:var(--gse-semantic-container-edges-borderWidth) solid var(--gse-semantic-border-container-edges-default);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}.gux-menu-wrapper.gux-shown{visibility:visible}";const k=class{constructor(e){a(this,e),this.accent="auto"}async componentWillLoad(){o(this.root)}componentDidLoad(){this.validatingInputs()}onKeydown(a){!function(a,e){switch(a.key){case"ArrowUp":case"ArrowLeft":a.stopPropagation(),a.preventDefault(),function(a){const e=a.previousElementSibling;e?e.focus():x(a)}(e);break;case"ArrowDown":case"ArrowRight":a.stopPropagation(),a.preventDefault(),function(a){const e=a.nextElementSibling;e?e.focus():p(a)}(e);break;case"Home":a.stopPropagation(),a.preventDefault(),p(e);break;case"End":a.stopPropagation(),a.preventDefault(),x(e)}}(a,this.root)}validatingInputs(){const a=this.root.querySelector("img");this.name||d(this.root,"Name prop is required"),a&&!a.getAttribute("alt")&&d(this.root,"Alt attribute is required for slotted image.")}render(){return e(t,{key:"34b0e018d662b7536da4a91d6ccc055c8cc730d7",role:"menuitem"},e("button",{key:"c59be9f70bc25dce8bc62dfc8739f93d6006e68e",type:"button","aria-label":this.name,tabIndex:-1},e("span",{key:"024aae64707578c490f8fb2d2c2aa809e65ffefe",class:{"gux-avatar":!0,[v(this.accent,this.name)]:!0}},e("slot",{key:"1e657ac3badc1a73c283d82f0e0b6381033e179e",name:"image"},e("span",{key:"b63a8cce36637908e4c07f532fdf27e97831e019",class:"gux-avatar-initials","aria-hidden":"true"},b(this.name)))),e("span",{key:"67247e6254beaa1b31374653ace95300a8e029a4"},this.name)))}static get delegatesFocus(){return!0}get root(){return i(this)}};k.style="::slotted(img){inline-size:100%;block-size:100%;object-fit:cover}button{all:unset;box-sizing:border-box;display:flex;gap:var(--gse-ui-menu-option-gap);align-items:center;inline-size:100%;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);word-wrap:break-word;cursor:pointer;outline:none;outline-offset:calc(var(--gse-ui-menu-option-focus-border-width) * -1);background-color:var(--gse-ui-menu-option-default-backgroundColor);border:none}button:focus-visible{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);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}button:hover{background:var(--gse-ui-menu-option-hover-backgroundColor)}button:active{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)}button .gux-avatar{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-xsmall-content-size);block-size:var(--gse-ui-avatar-xsmall-content-size);padding:0;margin:0;overflow:hidden;color:var(--gse-ui-avatar-media-initialsForeground-inverse);cursor:pointer;background:none;background-color:var(--gse-ui-avatar-media-initialsBackground-default);border:none;border-radius:50%}button .gux-avatar .gux-avatar-initials{font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-xsmall-initials-fontSize);font-weight:var(--gse-ui-avatar-xsmall-initials-fontWeight);line-height:var(--gse-ui-avatar-small-initials-lineHeight);text-transform:uppercase}button .gux-avatar.gux-accent-1{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent1)}button .gux-avatar.gux-accent-2{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent2)}button .gux-avatar.gux-accent-3{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent3)}button .gux-avatar.gux-accent-4{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent4)}button .gux-avatar.gux-accent-5{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent5)}button .gux-avatar.gux-accent-6{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent6)}button .gux-avatar.gux-accent-7{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent7)}button .gux-avatar.gux-accent-8{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent8)}button .gux-avatar.gux-accent-9{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent9)}button .gux-avatar.gux-accent-10{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent10)}button .gux-avatar.gux-accent-11{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent11)}button .gux-avatar.gux-accent-12{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent12)}button .gux-avatar.gux-accent-inherit{color:inherit;background-color:inherit}";export{m as gux_avatar_group_add_item_beta,h as gux_avatar_overflow_beta,k as gux_avatar_overflow_item_beta}
1
+ import{r as a,h as e,H as t,g as i}from"./p-cf74fd3d.js";import{t as o}from"./p-fcdad94f.js";import{g as r}from"./p-cc3c3c56.js";import{b as n}from"./p-e5e644b3.js";import{a as s,c as u,o as c}from"./p-04c85b3b.js";import{O as l}from"./p-f3d844c7.js";import{a as d}from"./p-8eaf8caf.js";import{a as g}from"./p-cf0e7d3b.js";import{a as v,g as f}from"./p-5fcdcbfd.js";import"./p-4202e9f2.js";const b={addToGroup:"Add more items to group"},m=class{constructor(e){a(this,e)}async componentWillLoad(){o(this.root),this.i18n=await n(this.root,b)}async hideTooltip(){return await this.tooltip.hideTooltip()}onKeydown(a){r(a,this.root)}render(){return e(t,{key:"c2208087a0df24f9930d65f5cc0b4e33e9365f3d",role:"menuitem"},e("button",{key:"c84beab4ccbf57c154859e7bd16ba4de69705ffa",type:"button","aria-label":this.i18n("addToGroup"),tabIndex:-1,class:"gux-avatar"},e("span",{key:"de3cafb76d43b51a17d80d825a1902662e55585c","aria-hidden":"true"},"+"),e("gux-tooltip-beta",{key:"02843211a8a4cedfbaafa6b650ddc29d77802a7d","aria-hidden":"true","visual-only":!0,placement:"top",ref:a=>this.tooltip=a},e("div",{key:"a5c8e606aa2cbb12517bf295d26520ca5358aeff",slot:"content"},this.i18n("addToGroup")))))}static get delegatesFocus(){return!0}get root(){return i(this)}};m.style="button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-small-content-size);block-size:var(--gse-ui-avatar-small-content-size);padding:0;margin:0;overflow:hidden;font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight);line-height:var(--gse-ui-avatar-small-initials-lineHeight);color:var(--gse-ui-avatar-media-initialsForeground-add);cursor:pointer;background:none;background-color:var(--gse-ui-avatar-media-initialsBackground-add);border:none;border-radius:50%}button:focus-visible,button:hover{position:relative;z-index:var(--gse-semantic-zIndex-showFocus)}button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}";const h=class{constructor(e){a(this,e),this.delayTime=250,this.count=0,this.expanded=!1}async componentWillLoad(){o(this.root)}componentDidLoad(){this.expanded&&this.runUpdatePosition()}componentDidUpdate(){this.expanded?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){clearTimeout(this.focusDelayTimeout),clearTimeout(this.hideDelayTimeout),this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}onClickOutside(){this.expanded=!1}onKeydown(a){switch(r(a,this.root),a.key){case"Escape":this.hide(),"GUX-AVATAR-OVERFLOW-ITEM-BETA"===a.target.tagName&&(this.focusDelayTimeout=g((()=>{var a;null===(a=this.overflowButtonElement)||void 0===a||a.focus()})));break;case"Tab":this.hide()}}onClick(a){a.stopPropagation(),"GUX-AVATAR-OVERFLOW-ITEM-BETA"===a.target.tagName&&(this.menuElement.scrollTop=0,this.expanded=!1)}async guxClose(){this.hide()}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=s(this.overflowButtonElement,this.menuElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.root&&u(this.overflowButtonElement,this.menuElement,{placement:"bottom-start",strategy:"fixed",middleware:[c({mainAxis:4,crossAxis:4})]}).then((({x:a,y:e})=>{Object.assign(this.menuElement.style,{left:`${a}px`,top:`${e}px`})}))}getCount(){const a=Array.from(this.root.children);if(a.some((a=>"GUX-AVATAR-OVERFLOW-ITEM-BETA"!==a.tagName))&&d(this.root,"Only gux-avatar-overflow-item-beta elements are allowed as children."),a)return a.length}toggleOverflowMenu(){this.expanded?this.hide():this.show()}show(){clearTimeout(this.hideDelayTimeout),this.expanded=!0,this.hideDelayTimeout=g((()=>{this.focusOnMenu()}))}hide(){this.expanded&&(this.hideDelayTimeout=setTimeout((()=>{this.expanded=!1}),this.delayTime))}focusOnMenu(){Array.from(this.root.children)[0].focus()}render(){return e(t,{key:"56dc6348cc414fa170fa0ee06fe064f3450882bc",role:"menuitem"},e("button",{key:"5b73425d77f78fce9d87b33487cea1abef6cb0a3",class:"gux-avatar-overflow",ref:a=>this.overflowButtonElement=a,onClick:()=>this.toggleOverflowMenu(),tabIndex:-1,"aria-haspopup":"true","aria-expanded":this.expanded.toString()},e("span",{key:"a23023d03fb1b759e35f06dea6be0114ba5873db",class:"gux-avatar-overflow-wrapper"},e("span",{key:"ae083e3bbf584b59f5a00eac3585b79fa916a712",class:"gux-avatar-overflow-content"}," +",this.getCount()))),e("div",{key:"cab97c98d994f16c09b24f8545b8cd7200388892",class:{"gux-menu-wrapper":!0,"gux-shown":this.expanded},ref:a=>this.menuElement=a},e("div",{key:"715af9beb5866644e7524b641ce2206b6b1b86d3",role:"menu",class:"gux-menu-content"},e("slot",{key:"fd5723c2b0f9bb1039e043d505ff7dff3ba70a18"}))))}static get delegatesFocus(){return!0}get root(){return i(this)}};function p(a){const e=function(a){let e=a;for(;null!==e.previousElementSibling;)e=e.previousElementSibling;return e}(a);e&&e.focus()}function x(a){const e=function(a){let e=a;for(;null!==e.nextElementSibling;)e=e.nextElementSibling;return e}(a);e&&e.focus()}(function(a,e,t,i){var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(a,e,t,i);else for(var s=a.length-1;s>=0;s--)(o=a[s])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);r>3&&n&&Object.defineProperty(e,t,n)})([l({triggerEvents:"mousedown"})],h.prototype,"onClickOutside",null),h.style=":host{display:block;margin-inline-end:var(--gse-ui-avatar-groupSet-gap)}.gux-avatar-overflow{position:relative;box-sizing:border-box;inline-size:100%;padding:0;margin:0;line-height:0px;cursor:pointer;background:none;border:none;border-radius:50%}.gux-avatar-overflow:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-avatar-overflow:hover,.gux-avatar-overflow:focus{z-index:var(--gse-semantic-zIndex-showFocus)}.gux-avatar-overflow .gux-avatar-overflow-wrapper{position:relative;display:flex}.gux-avatar-overflow .gux-avatar-overflow-wrapper .gux-avatar-overflow-content{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-small-content-size);block-size:var(--gse-ui-avatar-small-content-size);overflow:hidden;font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight);line-height:var(--gse-core-lineHeight-matchFontSize);color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-overflowCount);border-radius:50%}.gux-menu-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popup);visibility:hidden;flex-direction:column;max-block-size:var(--gse-ui-menu-maxHeight);padding:var(--gse-ui-menu-padding);margin:0;overflow-y:auto;background-color:var(--gse-ui-menu-backgroundColor);border:none;border:var(--gse-semantic-container-edges-borderWidth) solid var(--gse-semantic-border-container-edges-default);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}.gux-menu-wrapper.gux-shown{visibility:visible}";const k=class{constructor(e){a(this,e),this.accent="auto"}async componentWillLoad(){o(this.root)}componentDidLoad(){this.validatingInputs()}onKeydown(a){!function(a,e){switch(a.key){case"ArrowUp":case"ArrowLeft":a.stopPropagation(),a.preventDefault(),function(a){const e=a.previousElementSibling;e?e.focus():x(a)}(e);break;case"ArrowDown":case"ArrowRight":a.stopPropagation(),a.preventDefault(),function(a){const e=a.nextElementSibling;e?e.focus():p(a)}(e);break;case"Home":a.stopPropagation(),a.preventDefault(),p(e);break;case"End":a.stopPropagation(),a.preventDefault(),x(e)}}(a,this.root)}validatingInputs(){const a=this.root.querySelector("img");this.name||d(this.root,"Name prop is required"),a&&!a.getAttribute("alt")&&d(this.root,"Alt attribute is required for slotted image.")}render(){return e(t,{key:"34b0e018d662b7536da4a91d6ccc055c8cc730d7",role:"menuitem"},e("button",{key:"c59be9f70bc25dce8bc62dfc8739f93d6006e68e",type:"button","aria-label":this.name,tabIndex:-1},e("span",{key:"024aae64707578c490f8fb2d2c2aa809e65ffefe",class:{"gux-avatar":!0,[v(this.accent,this.name)]:!0}},e("slot",{key:"1e657ac3badc1a73c283d82f0e0b6381033e179e",name:"image"},e("span",{key:"b63a8cce36637908e4c07f532fdf27e97831e019",class:"gux-avatar-initials","aria-hidden":"true"},f(this.name)))),e("span",{key:"67247e6254beaa1b31374653ace95300a8e029a4"},this.name)))}static get delegatesFocus(){return!0}get root(){return i(this)}};k.style="::slotted(img){inline-size:100%;block-size:100%;object-fit:cover}button{all:unset;box-sizing:border-box;display:flex;gap:var(--gse-ui-menu-option-gap);align-items:center;inline-size:100%;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);word-wrap:break-word;cursor:pointer;outline:none;outline-offset:calc(var(--gse-ui-menu-option-focus-border-width) * -1);background-color:var(--gse-ui-menu-option-default-backgroundColor);border:none}button:focus-visible{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);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}button:hover{background:var(--gse-ui-menu-option-hover-backgroundColor)}button:active{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)}button .gux-avatar{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-xsmall-content-size);block-size:var(--gse-ui-avatar-xsmall-content-size);padding:0;margin:0;overflow:hidden;color:var(--gse-ui-avatar-media-initialsForeground-inverse);cursor:pointer;background:none;background-color:var(--gse-ui-avatar-media-initialsBackground-default);border:none;border-radius:50%}button .gux-avatar .gux-avatar-initials{font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-xsmall-initials-fontSize);font-weight:var(--gse-ui-avatar-xsmall-initials-fontWeight);line-height:var(--gse-ui-avatar-small-initials-lineHeight);text-transform:uppercase}button .gux-avatar.gux-accent-1{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent1)}button .gux-avatar.gux-accent-2{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent2)}button .gux-avatar.gux-accent-3{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent3)}button .gux-avatar.gux-accent-4{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent4)}button .gux-avatar.gux-accent-5{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent5)}button .gux-avatar.gux-accent-6{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent6)}button .gux-avatar.gux-accent-7{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent7)}button .gux-avatar.gux-accent-8{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent8)}button .gux-avatar.gux-accent-9{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent9)}button .gux-avatar.gux-accent-10{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent10)}button .gux-avatar.gux-accent-11{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent11)}button .gux-avatar.gux-accent-12{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent12)}button .gux-avatar.gux-accent-inherit{color:inherit;background-color:inherit}";export{m as gux_avatar_group_add_item_beta,h as gux_avatar_overflow_beta,k as gux_avatar_overflow_item_beta}