genesys-spark-components 4.81.1 → 4.81.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/dist/cjs/{get-valid-timezone-52eac7fa.js → get-valid-timezone-c248443a.js} +1 -1
  2. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-action-button.cjs.entry.js +5 -4
  4. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +2 -2
  6. package/dist/cjs/gux-all-row-select.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-avatar-beta.cjs.entry.js +2 -2
  9. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +2 -2
  10. package/dist/cjs/gux-badge.cjs.entry.js +2 -2
  11. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +2 -2
  13. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-button.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-calendar-beta.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-calendar.cjs.entry.js +2 -2
  18. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-column-manager-item.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-column-manager.cjs.entry.js +2 -2
  21. package/dist/cjs/gux-content-search.cjs.entry.js +2 -2
  22. package/dist/cjs/gux-context-menu.cjs.entry.js +2 -2
  23. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +2 -2
  24. package/dist/cjs/gux-create-option.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-date-beta.cjs.entry.js +3 -3
  26. package/dist/cjs/gux-date-time-beta.cjs.entry.js +3 -3
  27. package/dist/cjs/gux-datepicker.cjs.entry.js +2 -2
  28. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +2 -2
  29. package/dist/cjs/gux-dismiss-button.cjs.entry.js +2 -2
  30. package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +2 -2
  32. package/dist/cjs/gux-dropdown_3.cjs.entry.js +2 -2
  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 +2 -2
  36. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +2 -2
  37. package/dist/cjs/gux-form-field-color.cjs.entry.js +2 -2
  38. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +3 -3
  39. package/dist/cjs/gux-form-field-file.cjs.entry.js +2 -2
  40. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +2 -2
  41. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +2 -2
  42. package/dist/cjs/gux-form-field-number_3.cjs.entry.js +3 -3
  43. package/dist/cjs/gux-form-field-phone.cjs.entry.js +3 -3
  44. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +2 -2
  45. package/dist/cjs/gux-form-field-radio.cjs.entry.js +2 -2
  46. package/dist/cjs/gux-form-field-range.cjs.entry.js +2 -2
  47. package/dist/cjs/gux-form-field-search.cjs.entry.js +2 -2
  48. package/dist/cjs/gux-form-field-select.cjs.entry.js +2 -2
  49. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +2 -2
  50. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +2 -2
  51. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +3 -3
  52. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +3 -3
  53. package/dist/cjs/{gux-form-field.service-57a00684.js → gux-form-field.service-42c9f800.js} +8 -4
  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 +2 -2
  58. package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-listbox-multi.cjs.entry.js +3 -3
  61. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-month-calendar.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +2 -2
  66. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-option-multi.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-pagination-buttons-legacy_3.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-pagination-buttons_2.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +2 -2
  72. package/dist/cjs/gux-pagination-items-per-page.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +6 -6
  76. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-popup.cjs.entry.js +9 -6
  78. package/dist/cjs/gux-radial-loading.cjs.entry.js +2 -2
  79. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-row-select.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-screen-reader-beta_2.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +2 -2
  85. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +2 -2
  88. package/dist/cjs/gux-sort-control.cjs.entry.js +2 -2
  89. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +2 -2
  91. package/dist/cjs/gux-tab-advanced.cjs.entry.js +1 -1
  92. package/dist/cjs/gux-tab-list.cjs.entry.js +28 -12
  93. package/dist/cjs/gux-table-select-menu.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +2 -2
  95. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  96. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +2 -2
  97. package/dist/cjs/gux-table-toolbar.cjs.entry.js +15 -8
  98. package/dist/cjs/gux-table.cjs.entry.js +2 -2
  99. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  100. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  101. package/dist/cjs/gux-tag.cjs.entry.js +2 -2
  102. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  103. package/dist/cjs/gux-time-beta.cjs.entry.js +3 -3
  104. package/dist/cjs/gux-time-picker.cjs.entry.js +2 -2
  105. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +2 -2
  106. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +2 -2
  107. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  108. package/dist/cjs/gux-toggle.cjs.entry.js +2 -2
  109. package/dist/cjs/gux-tooltip-base-beta.cjs.entry.js +1 -1
  110. package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
  111. package/dist/cjs/{index-a1a48d79.js → index-71d01472.js} +1 -1
  112. package/dist/cjs/{usage-8579e08d.js → usage-4cfc282a.js} +19 -19
  113. package/dist/collection/components/beta/gux-phone-input/gux-phone-input.js +4 -4
  114. package/dist/collection/components/stable/gux-action-button/gux-action-button.js +3 -2
  115. package/dist/collection/components/stable/gux-content-search/tests/gux-content-search.e2e.js +10 -0
  116. package/dist/collection/components/stable/gux-copy-to-clipboard/tests/gux-copy-to-clipboard.spec.js +3 -1
  117. package/dist/collection/components/stable/gux-form-field/gux-form-field.service.js +8 -4
  118. package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.css +1 -1
  119. package/dist/collection/components/stable/gux-popup/gux-popup.js +9 -6
  120. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar.js +14 -7
  121. package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.css +1 -1
  122. package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.js +26 -10
  123. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.css +1 -1
  124. package/dist/collection/i18n/index.js +1 -1
  125. package/dist/esm/{get-valid-timezone-daff1c0b.js → get-valid-timezone-5077e4ad.js} +1 -1
  126. package/dist/esm/gux-accordion.entry.js +1 -1
  127. package/dist/esm/gux-action-button.entry.js +5 -4
  128. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  129. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +2 -2
  130. package/dist/esm/gux-all-row-select.entry.js +1 -1
  131. package/dist/esm/gux-announce-beta.entry.js +1 -1
  132. package/dist/esm/gux-avatar-beta.entry.js +2 -2
  133. package/dist/esm/gux-avatar-change-photo-beta.entry.js +2 -2
  134. package/dist/esm/gux-badge.entry.js +2 -2
  135. package/dist/esm/gux-blank-state.entry.js +1 -1
  136. package/dist/esm/gux-breadcrumbs.entry.js +2 -2
  137. package/dist/esm/gux-button-multi.entry.js +1 -1
  138. package/dist/esm/gux-button-slot.entry.js +1 -1
  139. package/dist/esm/gux-button.entry.js +1 -1
  140. package/dist/esm/gux-calendar-beta.entry.js +1 -1
  141. package/dist/esm/gux-calendar.entry.js +2 -2
  142. package/dist/esm/gux-card.entry.js +1 -1
  143. package/dist/esm/gux-column-manager-item.entry.js +1 -1
  144. package/dist/esm/gux-column-manager.entry.js +2 -2
  145. package/dist/esm/gux-content-search.entry.js +2 -2
  146. package/dist/esm/gux-context-menu.entry.js +2 -2
  147. package/dist/esm/gux-copy-to-clipboard.entry.js +2 -2
  148. package/dist/esm/gux-create-option.entry.js +1 -1
  149. package/dist/esm/gux-date-beta.entry.js +3 -3
  150. package/dist/esm/gux-date-time-beta.entry.js +3 -3
  151. package/dist/esm/gux-datepicker.entry.js +2 -2
  152. package/dist/esm/gux-disclosure-button-legacy.entry.js +2 -2
  153. package/dist/esm/gux-dismiss-button.entry.js +2 -2
  154. package/dist/esm/gux-dropdown-multi-tag.entry.js +1 -1
  155. package/dist/esm/gux-dropdown-multi.entry.js +2 -2
  156. package/dist/esm/gux-dropdown_3.entry.js +2 -2
  157. package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
  158. package/dist/esm/gux-flyout-menu.entry.js +1 -1
  159. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +2 -2
  160. package/dist/esm/gux-form-field-checkbox.entry.js +2 -2
  161. package/dist/esm/gux-form-field-color.entry.js +2 -2
  162. package/dist/esm/gux-form-field-dropdown.entry.js +3 -3
  163. package/dist/esm/gux-form-field-file.entry.js +2 -2
  164. package/dist/esm/gux-form-field-input-clear-button.entry.js +2 -2
  165. package/dist/esm/gux-form-field-label-indicator.entry.js +2 -2
  166. package/dist/esm/gux-form-field-number_3.entry.js +3 -3
  167. package/dist/esm/gux-form-field-phone.entry.js +3 -3
  168. package/dist/esm/gux-form-field-radio-group-beta.entry.js +2 -2
  169. package/dist/esm/gux-form-field-radio.entry.js +2 -2
  170. package/dist/esm/gux-form-field-range.entry.js +2 -2
  171. package/dist/esm/gux-form-field-search.entry.js +2 -2
  172. package/dist/esm/gux-form-field-select.entry.js +2 -2
  173. package/dist/esm/gux-form-field-text-like.entry.js +2 -2
  174. package/dist/esm/gux-form-field-textarea.entry.js +2 -2
  175. package/dist/esm/gux-form-field-time-picker.entry.js +3 -3
  176. package/dist/esm/gux-form-field-time-zone-picker.entry.js +3 -3
  177. package/dist/esm/{gux-form-field.service-46fea82d.js → gux-form-field.service-986d3f3f.js} +8 -4
  178. package/dist/esm/gux-form-footer.entry.js +1 -1
  179. package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
  180. package/dist/esm/gux-icon.entry.js +1 -1
  181. package/dist/esm/gux-inline-alert.entry.js +2 -2
  182. package/dist/esm/gux-label-info-beta.entry.js +1 -1
  183. package/dist/esm/gux-list.entry.js +1 -1
  184. package/dist/esm/gux-listbox-multi.entry.js +3 -3
  185. package/dist/esm/gux-loading-message.entry.js +1 -1
  186. package/dist/esm/gux-modal-legacy.entry.js +1 -1
  187. package/dist/esm/gux-modal.entry.js +1 -1
  188. package/dist/esm/gux-month-calendar.entry.js +1 -1
  189. package/dist/esm/gux-month-picker-beta.entry.js +2 -2
  190. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  191. package/dist/esm/gux-option-multi.entry.js +1 -1
  192. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  193. package/dist/esm/gux-pagination-buttons-legacy_3.entry.js +1 -1
  194. package/dist/esm/gux-pagination-buttons_2.entry.js +1 -1
  195. package/dist/esm/gux-pagination-cursor.entry.js +2 -2
  196. package/dist/esm/gux-pagination-items-per-page.entry.js +1 -1
  197. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  198. package/dist/esm/gux-pagination.entry.js +1 -1
  199. package/dist/esm/gux-phone-input-beta.entry.js +6 -6
  200. package/dist/esm/gux-popover-list.entry.js +1 -1
  201. package/dist/esm/gux-popup.entry.js +9 -6
  202. package/dist/esm/gux-radial-loading.entry.js +2 -2
  203. package/dist/esm/gux-radial-progress.entry.js +1 -1
  204. package/dist/esm/gux-rating.entry.js +1 -1
  205. package/dist/esm/gux-row-select.entry.js +1 -1
  206. package/dist/esm/gux-screen-reader-beta_2.entry.js +1 -1
  207. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  208. package/dist/esm/gux-selector-card-beta.entry.js +2 -2
  209. package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
  210. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  211. package/dist/esm/gux-skip-navigation-list.entry.js +2 -2
  212. package/dist/esm/gux-sort-control.entry.js +2 -2
  213. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  214. package/dist/esm/gux-tab-advanced-list.entry.js +2 -2
  215. package/dist/esm/gux-tab-advanced.entry.js +1 -1
  216. package/dist/esm/gux-tab-list.entry.js +28 -12
  217. package/dist/esm/gux-table-select-menu.entry.js +1 -1
  218. package/dist/esm/gux-table-toolbar-action.entry.js +2 -2
  219. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  220. package/dist/esm/gux-table-toolbar-menu-button.entry.js +2 -2
  221. package/dist/esm/gux-table-toolbar.entry.js +15 -8
  222. package/dist/esm/gux-table.entry.js +2 -2
  223. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  224. package/dist/esm/gux-tabs.entry.js +1 -1
  225. package/dist/esm/gux-tag.entry.js +2 -2
  226. package/dist/esm/gux-text-highlight.entry.js +1 -1
  227. package/dist/esm/gux-time-beta.entry.js +3 -3
  228. package/dist/esm/gux-time-picker.entry.js +2 -2
  229. package/dist/esm/gux-time-zone-beta.entry.js +2 -2
  230. package/dist/esm/gux-time-zone-picker-beta.entry.js +2 -2
  231. package/dist/esm/gux-toast.entry.js +1 -1
  232. package/dist/esm/gux-toggle.entry.js +2 -2
  233. package/dist/esm/gux-tooltip-base-beta.entry.js +1 -1
  234. package/dist/esm/gux-tooltip.entry.js +1 -1
  235. package/dist/esm/{index-3f1e5ba8.js → index-358e497c.js} +1 -1
  236. package/dist/esm/{usage-95b15889.js → usage-e180b322.js} +19 -19
  237. package/dist/genesys-webcomponents/genesys-webcomponents-flare.css +1 -1
  238. package/dist/genesys-webcomponents/genesys-webcomponents-legacy.css +1 -1
  239. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  240. package/dist/genesys-webcomponents/{p-30bc467f.entry.js → p-014b9680.entry.js} +1 -1
  241. package/dist/genesys-webcomponents/{p-8d8c54ee.entry.js → p-0175ade4.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/{p-c38aebad.entry.js → p-06a98a79.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/{p-76df7717.js → p-073ffec4.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-5a217448.entry.js → p-07f9e5df.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/{p-b85ac0c2.entry.js → p-07fa33ef.entry.js} +1 -1
  246. package/dist/genesys-webcomponents/{p-588e526c.entry.js → p-08391d25.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-812fa8d1.entry.js → p-0a0e44be.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/p-0fa60ba5.entry.js +1 -0
  249. package/dist/genesys-webcomponents/{p-6c7ba3b5.entry.js → p-119193e7.entry.js} +1 -1
  250. package/dist/genesys-webcomponents/{p-45bc3165.entry.js → p-11bbb373.entry.js} +1 -1
  251. package/dist/genesys-webcomponents/{p-2b8f5e98.entry.js → p-16859e54.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-749a7117.entry.js → p-193dbd3e.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-0cc1fcf7.entry.js → p-19ea4065.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-8c4b4b52.entry.js → p-1b623add.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-68c084ac.js → p-1b65c00a.js} +1 -1
  256. package/dist/genesys-webcomponents/{p-f644c56d.entry.js → p-1c2998c8.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/{p-527906ad.entry.js → p-1c720d4b.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/{p-53ed5d56.entry.js → p-1c975af6.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/{p-889c1553.entry.js → p-1c9d2c6f.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-3a6d3737.entry.js → p-21633e34.entry.js} +2 -2
  261. package/dist/genesys-webcomponents/{p-366f79e8.entry.js → p-222cde6d.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/{p-739266be.entry.js → p-23a4d13a.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/{p-7c96d18f.entry.js → p-24f1aabe.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/{p-20e83fce.entry.js → p-26f38677.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-d7800d27.entry.js → p-27bded21.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-a0d16297.entry.js → p-29ba3ea8.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-3b5f8cb2.entry.js → p-305f3b73.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-0613ddc4.entry.js → p-30a4bad0.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-b4aba2cc.entry.js → p-3827ab88.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-446ce83b.entry.js → p-3934c7f5.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-7d0a0efe.entry.js → p-3b886d81.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-ac228801.entry.js → p-44a4a76f.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-16309ab7.entry.js → p-4a8c8636.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-8f9fd7c7.entry.js → p-4c6938d3.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-7371d80c.entry.js → p-4d53d971.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-3dfa630d.entry.js → p-4e10a628.entry.js} +1 -1
  277. package/dist/genesys-webcomponents/{p-355021f1.entry.js → p-4ecab147.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-045d5f00.entry.js → p-521f4d98.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/{p-3f29ae12.entry.js → p-563b1d0e.entry.js} +1 -1
  280. package/dist/genesys-webcomponents/{p-3306b14f.entry.js → p-564b0eea.entry.js} +1 -1
  281. package/dist/genesys-webcomponents/{p-7f04f58e.entry.js → p-59b31bfe.entry.js} +1 -1
  282. package/dist/genesys-webcomponents/{p-569b2050.entry.js → p-5ca3cd6b.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-21c90d22.entry.js → p-5e8ba528.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/{p-820546af.entry.js → p-6009225d.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/{p-e1371806.entry.js → p-624eac6e.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-ce3ba002.entry.js → p-666b2819.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-377c8e26.entry.js → p-69f06cd9.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-f66109b6.entry.js → p-6db5ec5f.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-c692140e.entry.js → p-6f155878.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/{p-6f2b0083.entry.js → p-72bebdcc.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/{p-f945e395.entry.js → p-76d6dd09.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-7d499f89.entry.js → p-7a0412e4.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-3e82e2f0.entry.js → p-7b07ab33.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-9e71f353.entry.js → p-7b1efdee.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-452b58c4.entry.js → p-7e892d53.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-07c346aa.entry.js → p-7fa83ccf.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-fd22b7bc.entry.js → p-82cb4bfd.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-5fdd2e0a.entry.js → p-84776d85.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-fa64b06a.entry.js → p-8585ee3a.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-e84597f3.entry.js → p-8795a7f4.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/{p-cc704ba5.entry.js → p-8d45ee3f.entry.js} +1 -1
  302. package/dist/genesys-webcomponents/{p-2f2e2697.entry.js → p-91b08c05.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-9e576119.entry.js → p-954a08e7.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-3567b951.entry.js → p-96182c46.entry.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-f9e6a6e9.entry.js → p-9722e4ba.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-9595f5ba.entry.js → p-97784ec9.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/{p-23d2e6f1.entry.js → p-99d5babe.entry.js} +1 -1
  308. package/dist/genesys-webcomponents/{p-40d65a75.entry.js → p-9be1bb5b.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-92b43304.entry.js → p-9e3f7770.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-61bbdf15.entry.js → p-9f745e91.entry.js} +1 -1
  311. package/dist/genesys-webcomponents/{p-d9d3c45c.entry.js → p-a0e7435b.entry.js} +1 -1
  312. package/dist/genesys-webcomponents/{p-1473963d.entry.js → p-a10979d2.entry.js} +1 -1
  313. package/dist/genesys-webcomponents/{p-783974aa.entry.js → p-a24673f4.entry.js} +1 -1
  314. package/dist/genesys-webcomponents/{p-e54d9c83.entry.js → p-a4eecc73.entry.js} +1 -1
  315. package/dist/genesys-webcomponents/{p-7735947e.entry.js → p-a93450b8.entry.js} +1 -1
  316. package/dist/genesys-webcomponents/{p-be01a004.entry.js → p-b8267d43.entry.js} +1 -1
  317. package/dist/genesys-webcomponents/{p-f16cdf36.entry.js → p-b9bfb3bd.entry.js} +1 -1
  318. package/dist/genesys-webcomponents/{p-e35e6338.entry.js → p-be1fc410.entry.js} +1 -1
  319. package/dist/genesys-webcomponents/{p-520ef8c1.entry.js → p-bf33eed9.entry.js} +1 -1
  320. package/dist/genesys-webcomponents/{p-d077d632.entry.js → p-c1b7878b.entry.js} +1 -1
  321. package/dist/genesys-webcomponents/{p-5cf6d73b.entry.js → p-c3434425.entry.js} +1 -1
  322. package/dist/genesys-webcomponents/{p-46ec7dc7.entry.js → p-c53a3d91.entry.js} +1 -1
  323. package/dist/genesys-webcomponents/p-c603eee2.entry.js +1 -0
  324. package/dist/genesys-webcomponents/{p-0ed731b4.entry.js → p-caede189.entry.js} +1 -1
  325. package/dist/genesys-webcomponents/{p-6a5b85eb.entry.js → p-cbf0102a.entry.js} +1 -1
  326. package/dist/genesys-webcomponents/{p-dc32c9d7.entry.js → p-cdaf320c.entry.js} +1 -1
  327. package/dist/genesys-webcomponents/{p-11ff03c8.entry.js → p-cfaaec41.entry.js} +1 -1
  328. package/dist/genesys-webcomponents/{p-4be156f8.entry.js → p-d7e14e98.entry.js} +1 -1
  329. package/dist/genesys-webcomponents/{p-48c600d4.entry.js → p-d8b4c30a.entry.js} +1 -1
  330. package/dist/genesys-webcomponents/{p-47666559.entry.js → p-da4319d6.entry.js} +1 -1
  331. package/dist/genesys-webcomponents/{p-62ce2ea7.entry.js → p-dcd64bc8.entry.js} +1 -1
  332. package/dist/genesys-webcomponents/{p-1c0fef43.entry.js → p-de884813.entry.js} +1 -1
  333. package/dist/genesys-webcomponents/{p-532ca75c.entry.js → p-e10c6e26.entry.js} +1 -1
  334. package/dist/genesys-webcomponents/{p-202d8e02.entry.js → p-e312dbe7.entry.js} +1 -1
  335. package/dist/genesys-webcomponents/{p-b8478c39.entry.js → p-e41c1fc6.entry.js} +1 -1
  336. package/dist/genesys-webcomponents/{p-e4f44be4.entry.js → p-e4a44f8b.entry.js} +1 -1
  337. package/dist/genesys-webcomponents/{p-e2ecfa45.entry.js → p-e4c10700.entry.js} +1 -1
  338. package/dist/genesys-webcomponents/{p-3d1d79b2.entry.js → p-e94f50a2.entry.js} +1 -1
  339. package/dist/genesys-webcomponents/{p-c211d6e2.entry.js → p-e9ccd15f.entry.js} +1 -1
  340. package/dist/genesys-webcomponents/{p-8007ea72.entry.js → p-ea93863d.entry.js} +1 -1
  341. package/dist/genesys-webcomponents/{p-e073818a.entry.js → p-ec954b4e.entry.js} +1 -1
  342. package/dist/genesys-webcomponents/{p-98b516fd.entry.js → p-eceb4a6d.entry.js} +1 -1
  343. package/dist/genesys-webcomponents/{p-a44a24b1.entry.js → p-f0c27afd.entry.js} +1 -1
  344. package/dist/genesys-webcomponents/{p-cab707a8.entry.js → p-f5559bc4.entry.js} +1 -1
  345. package/dist/genesys-webcomponents/{p-d6f69212.entry.js → p-f74ab29a.entry.js} +1 -1
  346. package/dist/genesys-webcomponents/{p-63209794.entry.js → p-f94f0fff.entry.js} +1 -1
  347. package/dist/genesys-webcomponents/{p-750a995d.entry.js → p-fc693843.entry.js} +1 -1
  348. package/dist/genesys-webcomponents/{p-42ce3da1.entry.js → p-fe02d353.entry.js} +1 -1
  349. package/dist/genesys-webcomponents/{p-dfa26287.entry.js → p-ff40422e.entry.js} +1 -1
  350. package/dist/stencil-wrapper.js +1 -1
  351. package/dist/types/components/stable/gux-form-field/functional-components/gux-form-field-screenreader-label/gux-form-field-screenreader-label.d.ts +1 -4
  352. package/dist/types/stencil-wrapper.d.ts +1 -1
  353. package/package.json +19 -19
  354. package/dist/genesys-webcomponents/p-66a8e167.entry.js +0 -1
  355. package/dist/genesys-webcomponents/p-73d81c3f.entry.js +0 -1
  356. /package/dist/genesys-webcomponents/{p-66246239.js → p-42f2e889.js} +0 -0
  357. /package/dist/genesys-webcomponents/{p-0367930a.js → p-909c2a19.js} +0 -0
@@ -1 +1 @@
1
- import{h as a,r as e,g as t}from"./p-2e827df1.js";import{t as i}from"./p-68c084ac.js";import{a as r}from"./p-8eaf8caf.js";import{b as g}from"./p-0367930a.js";import"./p-4202e9f2.js";const o={notifications:"Notifications"},n=class{constructor(a){e(this,a),this.size="large",this.name=void 0,this.accent="default",this.presence="none",this.label=void 0,this.ring=!1,this.badge=!1,this.notifications=!1,this.ucIntegration="none"}generateInitials(){var a,e,t,i;const r=null!==(e=null===(a=this.name)||void 0===a?void 0:a.split(" "))&&void 0!==e?e:[];return r.length>1?r[0].charAt(0)+r[r.length-1].charAt(0):(null===(t=r[0])||void 0===t?void 0:t.charAt(0))+(null===(i=r[0])||void 0===i?void 0:i.charAt(1))}getAccent(){return"auto"!==this.accent?this.accent:(this.name.split("").reduce(((a,e)=>a+e.charCodeAt(0)),0)%12).toString()}validatingInputs(){const a=this.root.querySelector("img");this.name||r(this.root,"Name prop is required for accessibility"),a&&!a.getAttribute("alt")&&r(this.root,"Alt attribute is required for slotted image."),"none"!==this.ucIntegration&&"large"!==this.size&&r(this.root,"UC Integration app logo can only be shown on large avatar")}renderBadge(){return this.notifications?this.renderNotificationsBadge():this.badge&&!["idle","none"].includes(this.presence)?a("div",{class:{"gux-avatar-badge":!0,[`gux-${this.presence}`]:!0,[`gux-${this.size}`]:!0}},a("gux-icon",{"icon-name":this.getPresenceIcon(this.presence),decorative:!0})):void 0}renderNotificationsBadge(){return a("div",{class:{"gux-avatar-badge gux-notifications":!0,[`gux-${this.size}`]:!0}},a("gux-icon",{"icon-name":"fa/bell-regular",decorative:!0}))}getPresenceIcon(a){switch(a){case"available":return"fa/circle-check-solid";case"busy":case"meeting":return"fa/ban-outline";case"away":case"break":case"meal":case"training":return"fa/clock-outline";case"on-queue":return"fa/headset-solid";case"offline":default:return"fa/circle-xmark-regular";case"out-of-office":return"fa/subtract-circle"}}renderUcIntegrationsIcon(e){switch(e){case"teams":return a("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("g",{"clip-path":"url(#clip0_17811_243865)"},a("path",{d:"M22.3205 12.0769H30.5862C31.3671 12.0769 32.0002 12.7051 32.0002 13.48V20.951C32.0002 23.799 29.6735 26.1077 26.8035 26.1077H26.7789C23.9089 26.1081 21.582 23.7997 21.5815 20.9517C21.5815 20.9515 21.5815 20.9512 21.5815 20.951V12.8102C21.5816 12.4052 21.9124 12.0769 22.3205 12.0769Z",fill:"#5059C9"}),a("path",{d:"M27.9069 10.6C29.7565 10.6 31.2558 9.11222 31.2558 7.27694C31.2558 5.44165 29.7565 3.95386 27.9069 3.95386C26.0574 3.95386 24.5581 5.44165 24.5581 7.27694C24.5581 9.11222 26.0574 10.6 27.9069 10.6Z",fill:"#5059C9"}),a("path",{d:"M17.4886 10.6C20.1601 10.6 22.3258 8.45098 22.3258 5.80001C22.3258 3.14904 20.1601 1 17.4886 1C14.8171 1 12.6514 3.14904 12.6514 5.80001C12.6514 8.45098 14.8171 10.6 17.4886 10.6Z",fill:"#7B83EB"}),a("path",{d:"M23.9381 12.0769H10.2941C9.52253 12.0959 8.91215 12.7313 8.93005 13.497V22.0181C8.8223 26.613 12.4857 30.426 17.1161 30.5385C21.7465 30.426 25.4099 26.613 25.3022 22.0181V13.497C25.32 12.7313 24.7097 12.0959 23.9381 12.0769Z",fill:"#7B83EB"}),a("path",{opacity:"0.1",d:"M17.8603 12.0769V24.0178C17.8566 24.5654 17.5222 25.0573 17.0119 25.2658C16.8495 25.334 16.6749 25.3692 16.4985 25.3692H9.58496C9.48822 25.1255 9.39892 24.8818 9.32449 24.6308C9.064 23.7834 8.93108 22.9025 8.93007 22.0166V13.4948C8.91218 12.7303 9.52156 12.0959 10.2919 12.0769H17.8603Z",fill:"black"}),a("path",{opacity:"0.2",d:"M17.1161 12.0769V24.7563C17.1161 24.9313 17.0807 25.1046 17.0119 25.2658C16.8018 25.7722 16.3061 26.104 15.7543 26.1077H9.93474C9.80822 25.864 9.68915 25.6203 9.58496 25.3692C9.48077 25.1181 9.39892 24.8818 9.32449 24.6308C9.064 23.7834 8.93108 22.9025 8.93007 22.0166V13.4948C8.91218 12.7303 9.52156 12.0959 10.2919 12.0769H17.1161Z",fill:"black"}),a("path",{opacity:"0.2",d:"M17.1161 12.0769V23.2794C17.1105 24.0234 16.504 24.6251 15.7543 24.6308H9.32449C9.064 23.7834 8.93108 22.9025 8.93007 22.0166V13.4948C8.91218 12.7303 9.52156 12.0959 10.2919 12.0769H17.1161Z",fill:"black"}),a("path",{opacity:"0.2",d:"M16.3719 12.0769V23.2794C16.3663 24.0234 15.7598 24.6251 15.0101 24.6308H9.32449C9.064 23.7834 8.93108 22.9025 8.93007 22.0166V13.4948C8.91218 12.7303 9.52156 12.0959 10.2919 12.0769H16.3719Z",fill:"black"}),a("path",{opacity:"0.1",d:"M17.8605 8.25909V10.5852C17.734 10.5926 17.6149 10.6 17.4884 10.6C17.3619 10.6 17.2428 10.5926 17.1163 10.5852C16.8651 10.5687 16.616 10.5291 16.3721 10.4671C14.8652 10.113 13.6201 9.06422 13.0233 7.64617C12.9206 7.40804 12.8409 7.16077 12.7852 6.90771H16.4986C17.2496 6.91054 17.8577 7.5139 17.8605 8.25909Z",fill:"black"}),a("path",{opacity:"0.2",d:"M17.1165 8.99749V10.5852C16.8653 10.5686 16.6161 10.5291 16.3723 10.467C14.8653 10.1129 13.6203 9.06416 13.0234 7.64612H15.7546C16.5055 7.64894 17.1136 8.25232 17.1165 8.99749Z",fill:"black"}),a("path",{opacity:"0.2",d:"M17.1165 8.99749V10.5852C16.8653 10.5686 16.6161 10.5291 16.3723 10.467C14.8653 10.1129 13.6203 9.06416 13.0234 7.64612H15.7546C16.5055 7.64894 17.1136 8.25232 17.1165 8.99749Z",fill:"black"}),a("path",{opacity:"0.2",d:"M16.3723 8.9975V10.467C14.8653 10.1129 13.6203 9.06416 13.0234 7.64612H15.0104C15.7614 7.64895 16.3694 8.25234 16.3723 8.9975Z",fill:"black"}),a("path",{d:"M1.36409 7.64612H15.008C15.7614 7.64612 16.3721 8.25215 16.3721 8.99971V22.5387C16.3721 23.2862 15.7613 23.8923 15.008 23.8923H1.36409C0.610716 23.8923 0 23.2862 0 22.5387V8.99971C0 8.25215 0.61073 7.64612 1.36409 7.64612Z",fill:"url(#paint0_linear_17811_243865)"}),a("path",{d:"M11.7761 12.7992H9.04865V20.169H7.31098V12.7992H4.59619V11.3695H11.7761V12.7992Z",fill:"white"})),a("defs",null,a("linearGradient",{id:"paint0_linear_17811_243865",x1:"2.84416",y1:"6.58844",x2:"13.4047",y2:"25.0206",gradientUnits:"userSpaceOnUse"},a("stop",{"stop-color":"#5A62C3"}),a("stop",{offset:"0.5","stop-color":"#4D55BD"}),a("stop",{offset:"1","stop-color":"#3940AB"})),a("clipPath",{id:"clip0_17811_243865"},a("rect",{width:"32",height:"29.5385",fill:"white",transform:"translate(0 1)"}))));case"zoom":return a("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M0 14C0 6.26801 6.26801 0 14 0H18C25.732 0 32 6.26801 32 14V18C32 25.732 25.732 32 18 32H14C6.26801 32 0 25.732 0 18V14Z",fill:"url(#paint0_linear_17811_243867)"}),a("path",{d:"M9.03495 17.9231H4.76573C4.48252 17.9231 4.22028 17.7885 4.08392 17.5577C3.93706 17.2885 3.98951 16.9712 4.22028 16.7692L7.1888 14.0481H5.05944C4.47203 14.0481 4 13.6058 4 13.0769H7.93355C8.21677 13.0769 8.479 13.2115 8.61537 13.4423C8.76222 13.7115 8.70977 14.0288 8.479 14.2308L5.51048 16.9519H7.97551C8.56292 16.9519 9.03495 17.3942 9.03495 17.9231ZM25.944 13C25.3356 13 24.7796 13.2404 24.402 13.6346C24.0244 13.25 23.4685 13 22.8601 13C21.7272 13 20.7936 13.8846 20.7936 14.9231V17.9231C21.3811 17.9231 21.8531 17.4904 21.8531 16.9519V14.9135C21.8531 14.4135 22.2727 13.9904 22.8181 13.9712C23.395 13.9519 23.8671 14.375 23.8671 14.8942V16.9519C23.8671 17.4904 24.3391 17.9231 24.9265 17.9231V14.9135C24.9265 14.4135 25.3461 13.9904 25.8915 13.9712C26.4684 13.9519 26.9405 14.375 26.9405 14.8942V16.9519C26.9405 17.4904 27.4125 17.9231 27.9999 17.9231V14.9231C28.0104 13.8846 27.0768 13 25.944 13ZM14.3846 15.5C14.3846 16.875 13.1573 18 11.6573 18C10.1468 18 8.93005 16.875 8.93005 15.5C8.93005 14.125 10.1573 13 11.6573 13C13.1573 13 14.3846 14.125 14.3846 15.5ZM13.3251 15.5C13.3251 14.6538 12.5804 13.9712 11.6573 13.9712C10.7342 13.9712 9.98949 14.6538 9.98949 15.5C9.98949 16.3462 10.7342 17.0288 11.6573 17.0288C12.5804 17.0288 13.3251 16.3462 13.3251 15.5ZM20.2692 15.5C20.2692 16.875 19.0419 18 17.5419 18C16.0314 18 14.8146 16.875 14.8146 15.5C14.8146 14.125 16.0419 13 17.5419 13C19.0419 13 20.2692 14.125 20.2692 15.5ZM19.2097 15.5C19.2097 14.6538 18.465 13.9712 17.5419 13.9712C16.6188 13.9712 15.8741 14.6538 15.8741 15.5C15.8741 16.3462 16.6188 17.0288 17.5419 17.0288C18.465 17.0288 19.2097 16.3462 19.2097 15.5Z",fill:"white"}),a("defs",null,a("linearGradient",{id:"paint0_linear_17811_243867",x1:"6",y1:"29",x2:"26",y2:"2.5",gradientUnits:"userSpaceOnUse"},a("stop",{"stop-color":"#084ACD"}),a("stop",{offset:"0.505","stop-color":"#0B5CFF"}),a("stop",{offset:"1","stop-color":"#236EF9"}))));case"8x8":return a("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("rect",{width:"32",height:"32",fill:"#CB2233"}),a("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4298 14.2388H16.8341L16.2371 15.4154C16.1751 15.5507 16.1037 15.6811 16.0236 15.8055H15.9988C15.9988 15.8055 15.8808 15.5988 15.7841 15.4154L15.1965 14.2302H12.6127L14.6479 17.5052L12.621 20.7815H15.1611L15.8454 19.4129C15.9061 19.2937 15.9589 19.1704 16.0035 19.0437H16.0283C16.0283 19.0437 16.1227 19.2898 16.1864 19.4129L16.886 20.7815H19.4298L17.4028 17.5052L19.4298 14.2388ZM7.95949 19.1225C7.79341 19.1261 7.62828 19.0954 7.47357 19.0323C7.31886 18.9692 7.17761 18.8748 7.05792 18.7547C6.93823 18.6345 6.84245 18.4909 6.77608 18.332C6.7097 18.1732 6.67404 18.0022 6.67112 17.8289C6.68897 17.3197 6.89037 16.8362 7.23508 16.4751C8.28512 16.9674 9.24078 17.3465 9.24078 17.9852C9.24668 18.7163 8.75352 19.1225 7.95949 19.1225ZM8.03028 12.3975C8.72992 12.3975 9.15112 12.8037 9.15112 13.4252C9.14236 13.9074 9.0139 14.3789 8.77829 14.7938C7.83443 14.3705 7.06047 13.9975 7.06047 13.2677C7.05575 12.7877 7.3625 12.3975 8.03028 12.3975ZM10.6613 15.7625C10.7651 15.6308 11.7113 14.4283 11.7113 13.2258C11.7113 11.152 10.082 10 8.09399 10C5.59748 10 4.5085 11.5914 4.5085 13.2086C4.5085 14.1625 4.91436 14.8258 5.47832 15.3403C5.15269 15.6148 4 16.624 4 18.0615C4 19.8363 5.35916 21.52 7.95949 21.52C10.6058 21.52 11.9178 19.8191 11.9178 18.1194C11.9178 16.9994 11.3774 16.2782 10.6613 15.7625ZM24.0452 19.1225C23.8792 19.1259 23.7142 19.0951 23.5597 19.0319C23.4051 18.9688 23.264 18.8744 23.1444 18.7542C23.0249 18.6341 22.9292 18.4905 22.8629 18.3317C22.7966 18.1729 22.761 18.0021 22.758 17.8289C22.7759 17.3197 22.9773 16.8362 23.322 16.4751C24.372 16.9674 25.3277 17.3465 25.3277 17.9852C25.3277 18.7237 24.8345 19.1286 24.0476 19.1286L24.0452 19.1225ZM24.1172 12.3975C24.8168 12.3975 25.238 12.8037 25.238 13.4252C25.2296 13.9076 25.1007 14.3794 24.864 14.7938C23.9202 14.3705 23.1474 13.9975 23.1474 13.2677C23.1474 12.7877 23.4494 12.3975 24.1172 12.3975ZM26.7435 15.7625C26.8473 15.6222 27.7935 14.4197 27.7935 13.2258C27.7935 11.152 26.163 10 24.1762 10C21.6797 10 20.5907 11.5914 20.5907 13.2086C20.5907 14.1625 20.9966 14.8258 21.5605 15.3403C21.2349 15.6049 20.0822 16.6166 20.0822 18.048C20.0822 19.8228 21.4414 21.5065 24.0405 21.5065C26.688 21.5065 28 19.8068 28 18.1058C28 16.9994 27.4596 16.2782 26.7435 15.7625Z",fill:"white"}));default:return null}}getUcIntegrationText(a){switch(a){case"teams":return"Microsoft Teams";case"zoom":return"Zoom";case"8x8":return"8 by 8";default:return null}}renderUcIntegrationBadge(){if(["zoom","teams","8x8"].includes(this.ucIntegration)&&"large"===this.size)return a("div",{class:"gux-avatar-integration-badge"},this.renderUcIntegrationsIcon(this.ucIntegration),a("gux-screen-reader-beta",null,this.getUcIntegrationText(this.ucIntegration)))}getDescriptionText(){return this.notifications?`${this.name} (${this.i18n("notifications")})`:this.label&&"none"!==this.presence?`${this.name} (${this.label})`:`${this.name}`}async componentWillLoad(){i(this.root,{variant:this.size}),this.i18n=await g(this.root,o)}componentDidLoad(){this.validatingInputs()}render(){return[a("div",{key:"bd679be542a7a195708a3ec5fc2b6295d86fa60d",class:{"gux-avatar":!0,[`gux-${this.presence}`]:this.ring||this.badge,[`gux-${this.size}`]:!0,"gux-ring":this.ring,[`gux-accent-${this.getAccent()}`]:!0}},a("div",{key:"accb7c6bff6cbca9fdd7dcc1019b9777341e1e9e",class:"gux-content"},a("slot",{key:"6cae7ac1a87342b2287def093cc98c8d74e9e47e",name:"image"},a("abbr",{key:"74e34625648351b3a9cb39bb445d162259c62003","aria-label":this.getDescriptionText()},this.generateInitials())))),this.renderBadge(),this.renderUcIntegrationBadge()]}get root(){return t(this)}};n.style=":host{position:relative;display:inline-block}:host abbr{text-decoration:none}::slotted(img){width:100%;height:100%;object-fit:cover}.gux-avatar{position:relative;width:var(--gse-ui-avatar-large-size);height:var(--gse-ui-avatar-large-size);overflow:hidden;border-radius:50%}.gux-avatar .gux-content{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:calc(100% - var(--gse-ui-avatar-large-presenceRing-width) * 2);height:calc(100% - var(--gse-ui-avatar-large-presenceRing-width) * 2);margin:var(--gse-ui-avatar-large-presenceRing-width);overflow:hidden;font-family:var(--gse-ui-avatar-large-initials-fontFamily);font-size:var(--gse-ui-avatar-large-initials-fontSize);font-weight:var(--gse-ui-avatar-large-initials-fontWeight);line-height:var(--gse-core-lineHeight-matchFontSize);color:var(--gse-ui-avatar-media-initialsForeground-inverse);text-transform:uppercase;background-color:var(--gse-ui-avatar-media-initialsBackground-default);border:var(--gse-ui-avatar-content-large-border-width) var(--gse-ui-avatar-content-default-border-style) var(--gse-ui-avatar-content-default-border-color);border-radius:50%}.gux-avatar.gux-medium{width:var(--gse-ui-avatar-medium-size);height:var(--gse-ui-avatar-medium-size)}.gux-avatar.gux-medium .gux-content{width:calc(100% - var(--gse-ui-avatar-medium-presenceRing-width) * 2);height:calc(100% - var(--gse-ui-avatar-medium-presenceRing-width) * 2);margin:var(--gse-ui-avatar-medium-presenceRing-width);font-size:var(--gse-ui-avatar-medium-initials-fontSize);font-weight:var(--gse-ui-avatar-medium-initials-fontWeight)}.gux-avatar.gux-medium .gux-content,.gux-avatar.gux-small .gux-content,.gux-avatar.gux-xsmall .gux-content{border-width:var(--gse-ui-avatar-content-default-border-width)}.gux-avatar.gux-small{width:var(--gse-ui-avatar-small-size);height:var(--gse-ui-avatar-small-size)}.gux-avatar.gux-small .gux-content{width:calc(100% - var(--gse-ui-avatar-small-presenceRing-width) * 2);height:calc(100% - var(--gse-ui-avatar-small-presenceRing-width) * 2);margin:var(--gse-ui-avatar-small-presenceRing-width);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight)}.gux-avatar.gux-xsmall{width:var(--gse-ui-avatar-xsmall-size);height:var(--gse-ui-avatar-xsmall-size)}.gux-avatar.gux-xsmall .gux-content{width:calc(100% - var(--gse-ui-avatar-xsmall-presenceRing-width) * 2);height:calc(100% - var(--gse-ui-avatar-xsmall-presenceRing-width) * 2);margin:var(--gse-ui-avatar-xsmall-presenceRing-width);font-size:var(--gse-ui-avatar-xsmall-initials-fontSize);font-weight:var(--gse-ui-avatar-xsmall-initials-fontWeight)}.gux-avatar.gux-accent-1 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent1)}.gux-avatar.gux-accent-2 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent2)}.gux-avatar.gux-accent-3 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent3)}.gux-avatar.gux-accent-4 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent4)}.gux-avatar.gux-accent-5 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent5)}.gux-avatar.gux-accent-6 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent6)}.gux-avatar.gux-accent-7 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent7)}.gux-avatar.gux-accent-8 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent8)}.gux-avatar.gux-accent-9 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent9)}.gux-avatar.gux-accent-10 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent10)}.gux-avatar.gux-accent-11 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent11)}.gux-avatar.gux-accent-12 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent12)}.gux-avatar.gux-accent-inherit .gux-content{color:inherit;background-color:inherit}.gux-avatar.gux-ring.gux-available{background:var(--gse-ui-avatar-presenceRing-available)}.gux-avatar.gux-ring.gux-away,.gux-avatar.gux-ring.gux-break,.gux-avatar.gux-ring.gux-meal,.gux-avatar.gux-ring.gux-training{background:var(--gse-ui-avatar-presenceRing-away)}.gux-avatar.gux-ring.gux-busy,.gux-avatar.gux-ring.gux-meeting{background:var(--gse-ui-avatar-presenceRing-busy)}.gux-avatar.gux-ring.gux-notifications{background:var(--gse-ui-avatar-presenceRing-notifications)}.gux-avatar.gux-ring.gux-offline{background:var(--gse-ui-avatar-presenceRing-offline)}.gux-avatar.gux-ring.gux-out-of-office{background:var(--gse-ui-avatar-presenceRing-outOfOffice)}.gux-avatar.gux-ring.gux-on-queue{background:var(--gse-ui-avatar-presenceRing-onQueue)}.gux-avatar-integration-badge{position:absolute;inset-block-end:0;inset-inline-end:0;z-index:var(--gse-semantic-zIndex-showFocus);display:flex;align-items:center;justify-content:center}.gux-avatar-badge{position:absolute;top:calc(var(--gse-ui-avatar-content-large-border-width) * -1);right:calc(var(--gse-ui-avatar-content-large-border-width) * -1);z-index:var(--gse-semantic-zIndex-showFocus);display:flex;align-items:center;justify-content:center;width:var(--gse-ui-avatar-large-badge-size);height:var(--gse-ui-avatar-large-badge-size);border-color:var(--gse-ui-avatar-content-default-border-color);border-style:var(--gse-ui-avatar-content-default-border-style);border-width:var(--gse-ui-avatar-content-large-border-width);border-radius:50%}.gux-avatar-badge.gux-medium{top:calc(var(--gse-ui-avatar-content-default-border-width) * -1);right:calc(var(--gse-ui-avatar-content-default-border-width) * -1);width:var(--gse-ui-avatar-medium-badge-size);height:var(--gse-ui-avatar-medium-badge-size);border-width:var(--gse-ui-avatar-content-default-border-width)}.gux-avatar-badge.gux-small,.gux-avatar-badge.gux-xsmall{top:calc(var(--gse-ui-avatar-content-default-border-width) * -1);right:calc(var(--gse-ui-avatar-content-default-border-width) * -1);width:var(--gse-ui-avatar-small-badge-size);height:var(--gse-ui-avatar-small-badge-size);border-width:var(--gse-ui-avatar-content-default-border-width)}.gux-avatar-badge.gux-small gux-icon,.gux-avatar-badge.gux-xsmall gux-icon{display:none}.gux-avatar-badge.gux-available{background-color:var(--gse-ui-avatar-badge-foregroundDefault-color)}.gux-avatar-badge.gux-available.gux-small,.gux-avatar-badge.gux-available.gux-xsmall{background-color:var(--gse-ui-avatar-badge-available-color)}.gux-avatar-badge.gux-available gux-icon{color:var(--gse-ui-avatar-badge-available-color)}.gux-avatar-badge.gux-away,.gux-avatar-badge.gux-break,.gux-avatar-badge.gux-meal,.gux-avatar-badge.gux-training{background-color:var(--gse-ui-avatar-badge-away)}.gux-avatar-badge.gux-away gux-icon,.gux-avatar-badge.gux-break gux-icon,.gux-avatar-badge.gux-meal gux-icon,.gux-avatar-badge.gux-training gux-icon{margin:var(--gse-ui-avatar-badge-away-icon-margin);color:var(--gse-ui-avatar-badge-foregroundDark-color)}.gux-avatar-badge.gux-busy,.gux-avatar-badge.gux-meeting{background-color:var(--gse-ui-avatar-badge-busy-color)}.gux-avatar-badge.gux-busy gux-icon,.gux-avatar-badge.gux-meeting gux-icon{margin:var(--gse-ui-avatar-badge-busy-icon-margin);color:var(--gse-ui-avatar-badge-foregroundDefault-color)}.gux-avatar-badge.gux-notifications{background-color:var(--gse-ui-avatar-badge-notification-color)}.gux-avatar-badge.gux-notifications gux-icon{margin:var(--gse-ui-avatar-badge-notifications-icon-margin);color:var(--gse-ui-avatar-badge-foregroundDefault-color)}.gux-avatar-badge.gux-offline{background-color:var(--gse-ui-avatar-badge-foregroundDefault-color)}.gux-avatar-badge.gux-offline.gux-small,.gux-avatar-badge.gux-offline.gux-xsmall{background-color:var(--gse-ui-avatar-badge-offline-color)}.gux-avatar-badge.gux-offline gux-icon{color:var(--gse-ui-avatar-badge-offline-color)}.gux-avatar-badge.gux-out-of-office{background-color:var(--gse-ui-avatar-badge-foregroundDefault-color)}.gux-avatar-badge.gux-out-of-office.gux-small,.gux-avatar-badge.gux-out-of-office.gux-xsmall{background-color:var(--gse-ui-avatar-badge-outOfOffice)}.gux-avatar-badge.gux-out-of-office gux-icon{color:var(--gse-ui-avatar-badge-outOfOffice)}.gux-avatar-badge.gux-on-queue{background-color:var(--gse-ui-avatar-badge-onQueue-color)}.gux-avatar-badge.gux-on-queue gux-icon{margin:var(--gse-ui-avatar-badge-queue-icon-margin);color:var(--gse-ui-avatar-badge-foregroundDefault-color)}.gux-avatar-badge gux-icon{width:100%;height:100%}";export{n as gux_avatar_beta}
1
+ import{h as a,r as e,g as t}from"./p-2e827df1.js";import{t as i}from"./p-1b65c00a.js";import{a as r}from"./p-8eaf8caf.js";import{b as g}from"./p-909c2a19.js";import"./p-4202e9f2.js";const o={notifications:"Notifications"},n=class{constructor(a){e(this,a),this.size="large",this.name=void 0,this.accent="default",this.presence="none",this.label=void 0,this.ring=!1,this.badge=!1,this.notifications=!1,this.ucIntegration="none"}generateInitials(){var a,e,t,i;const r=null!==(e=null===(a=this.name)||void 0===a?void 0:a.split(" "))&&void 0!==e?e:[];return r.length>1?r[0].charAt(0)+r[r.length-1].charAt(0):(null===(t=r[0])||void 0===t?void 0:t.charAt(0))+(null===(i=r[0])||void 0===i?void 0:i.charAt(1))}getAccent(){return"auto"!==this.accent?this.accent:(this.name.split("").reduce(((a,e)=>a+e.charCodeAt(0)),0)%12).toString()}validatingInputs(){const a=this.root.querySelector("img");this.name||r(this.root,"Name prop is required for accessibility"),a&&!a.getAttribute("alt")&&r(this.root,"Alt attribute is required for slotted image."),"none"!==this.ucIntegration&&"large"!==this.size&&r(this.root,"UC Integration app logo can only be shown on large avatar")}renderBadge(){return this.notifications?this.renderNotificationsBadge():this.badge&&!["idle","none"].includes(this.presence)?a("div",{class:{"gux-avatar-badge":!0,[`gux-${this.presence}`]:!0,[`gux-${this.size}`]:!0}},a("gux-icon",{"icon-name":this.getPresenceIcon(this.presence),decorative:!0})):void 0}renderNotificationsBadge(){return a("div",{class:{"gux-avatar-badge gux-notifications":!0,[`gux-${this.size}`]:!0}},a("gux-icon",{"icon-name":"fa/bell-regular",decorative:!0}))}getPresenceIcon(a){switch(a){case"available":return"fa/circle-check-solid";case"busy":case"meeting":return"fa/ban-outline";case"away":case"break":case"meal":case"training":return"fa/clock-outline";case"on-queue":return"fa/headset-solid";case"offline":default:return"fa/circle-xmark-regular";case"out-of-office":return"fa/subtract-circle"}}renderUcIntegrationsIcon(e){switch(e){case"teams":return a("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("g",{"clip-path":"url(#clip0_17811_243865)"},a("path",{d:"M22.3205 12.0769H30.5862C31.3671 12.0769 32.0002 12.7051 32.0002 13.48V20.951C32.0002 23.799 29.6735 26.1077 26.8035 26.1077H26.7789C23.9089 26.1081 21.582 23.7997 21.5815 20.9517C21.5815 20.9515 21.5815 20.9512 21.5815 20.951V12.8102C21.5816 12.4052 21.9124 12.0769 22.3205 12.0769Z",fill:"#5059C9"}),a("path",{d:"M27.9069 10.6C29.7565 10.6 31.2558 9.11222 31.2558 7.27694C31.2558 5.44165 29.7565 3.95386 27.9069 3.95386C26.0574 3.95386 24.5581 5.44165 24.5581 7.27694C24.5581 9.11222 26.0574 10.6 27.9069 10.6Z",fill:"#5059C9"}),a("path",{d:"M17.4886 10.6C20.1601 10.6 22.3258 8.45098 22.3258 5.80001C22.3258 3.14904 20.1601 1 17.4886 1C14.8171 1 12.6514 3.14904 12.6514 5.80001C12.6514 8.45098 14.8171 10.6 17.4886 10.6Z",fill:"#7B83EB"}),a("path",{d:"M23.9381 12.0769H10.2941C9.52253 12.0959 8.91215 12.7313 8.93005 13.497V22.0181C8.8223 26.613 12.4857 30.426 17.1161 30.5385C21.7465 30.426 25.4099 26.613 25.3022 22.0181V13.497C25.32 12.7313 24.7097 12.0959 23.9381 12.0769Z",fill:"#7B83EB"}),a("path",{opacity:"0.1",d:"M17.8603 12.0769V24.0178C17.8566 24.5654 17.5222 25.0573 17.0119 25.2658C16.8495 25.334 16.6749 25.3692 16.4985 25.3692H9.58496C9.48822 25.1255 9.39892 24.8818 9.32449 24.6308C9.064 23.7834 8.93108 22.9025 8.93007 22.0166V13.4948C8.91218 12.7303 9.52156 12.0959 10.2919 12.0769H17.8603Z",fill:"black"}),a("path",{opacity:"0.2",d:"M17.1161 12.0769V24.7563C17.1161 24.9313 17.0807 25.1046 17.0119 25.2658C16.8018 25.7722 16.3061 26.104 15.7543 26.1077H9.93474C9.80822 25.864 9.68915 25.6203 9.58496 25.3692C9.48077 25.1181 9.39892 24.8818 9.32449 24.6308C9.064 23.7834 8.93108 22.9025 8.93007 22.0166V13.4948C8.91218 12.7303 9.52156 12.0959 10.2919 12.0769H17.1161Z",fill:"black"}),a("path",{opacity:"0.2",d:"M17.1161 12.0769V23.2794C17.1105 24.0234 16.504 24.6251 15.7543 24.6308H9.32449C9.064 23.7834 8.93108 22.9025 8.93007 22.0166V13.4948C8.91218 12.7303 9.52156 12.0959 10.2919 12.0769H17.1161Z",fill:"black"}),a("path",{opacity:"0.2",d:"M16.3719 12.0769V23.2794C16.3663 24.0234 15.7598 24.6251 15.0101 24.6308H9.32449C9.064 23.7834 8.93108 22.9025 8.93007 22.0166V13.4948C8.91218 12.7303 9.52156 12.0959 10.2919 12.0769H16.3719Z",fill:"black"}),a("path",{opacity:"0.1",d:"M17.8605 8.25909V10.5852C17.734 10.5926 17.6149 10.6 17.4884 10.6C17.3619 10.6 17.2428 10.5926 17.1163 10.5852C16.8651 10.5687 16.616 10.5291 16.3721 10.4671C14.8652 10.113 13.6201 9.06422 13.0233 7.64617C12.9206 7.40804 12.8409 7.16077 12.7852 6.90771H16.4986C17.2496 6.91054 17.8577 7.5139 17.8605 8.25909Z",fill:"black"}),a("path",{opacity:"0.2",d:"M17.1165 8.99749V10.5852C16.8653 10.5686 16.6161 10.5291 16.3723 10.467C14.8653 10.1129 13.6203 9.06416 13.0234 7.64612H15.7546C16.5055 7.64894 17.1136 8.25232 17.1165 8.99749Z",fill:"black"}),a("path",{opacity:"0.2",d:"M17.1165 8.99749V10.5852C16.8653 10.5686 16.6161 10.5291 16.3723 10.467C14.8653 10.1129 13.6203 9.06416 13.0234 7.64612H15.7546C16.5055 7.64894 17.1136 8.25232 17.1165 8.99749Z",fill:"black"}),a("path",{opacity:"0.2",d:"M16.3723 8.9975V10.467C14.8653 10.1129 13.6203 9.06416 13.0234 7.64612H15.0104C15.7614 7.64895 16.3694 8.25234 16.3723 8.9975Z",fill:"black"}),a("path",{d:"M1.36409 7.64612H15.008C15.7614 7.64612 16.3721 8.25215 16.3721 8.99971V22.5387C16.3721 23.2862 15.7613 23.8923 15.008 23.8923H1.36409C0.610716 23.8923 0 23.2862 0 22.5387V8.99971C0 8.25215 0.61073 7.64612 1.36409 7.64612Z",fill:"url(#paint0_linear_17811_243865)"}),a("path",{d:"M11.7761 12.7992H9.04865V20.169H7.31098V12.7992H4.59619V11.3695H11.7761V12.7992Z",fill:"white"})),a("defs",null,a("linearGradient",{id:"paint0_linear_17811_243865",x1:"2.84416",y1:"6.58844",x2:"13.4047",y2:"25.0206",gradientUnits:"userSpaceOnUse"},a("stop",{"stop-color":"#5A62C3"}),a("stop",{offset:"0.5","stop-color":"#4D55BD"}),a("stop",{offset:"1","stop-color":"#3940AB"})),a("clipPath",{id:"clip0_17811_243865"},a("rect",{width:"32",height:"29.5385",fill:"white",transform:"translate(0 1)"}))));case"zoom":return a("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M0 14C0 6.26801 6.26801 0 14 0H18C25.732 0 32 6.26801 32 14V18C32 25.732 25.732 32 18 32H14C6.26801 32 0 25.732 0 18V14Z",fill:"url(#paint0_linear_17811_243867)"}),a("path",{d:"M9.03495 17.9231H4.76573C4.48252 17.9231 4.22028 17.7885 4.08392 17.5577C3.93706 17.2885 3.98951 16.9712 4.22028 16.7692L7.1888 14.0481H5.05944C4.47203 14.0481 4 13.6058 4 13.0769H7.93355C8.21677 13.0769 8.479 13.2115 8.61537 13.4423C8.76222 13.7115 8.70977 14.0288 8.479 14.2308L5.51048 16.9519H7.97551C8.56292 16.9519 9.03495 17.3942 9.03495 17.9231ZM25.944 13C25.3356 13 24.7796 13.2404 24.402 13.6346C24.0244 13.25 23.4685 13 22.8601 13C21.7272 13 20.7936 13.8846 20.7936 14.9231V17.9231C21.3811 17.9231 21.8531 17.4904 21.8531 16.9519V14.9135C21.8531 14.4135 22.2727 13.9904 22.8181 13.9712C23.395 13.9519 23.8671 14.375 23.8671 14.8942V16.9519C23.8671 17.4904 24.3391 17.9231 24.9265 17.9231V14.9135C24.9265 14.4135 25.3461 13.9904 25.8915 13.9712C26.4684 13.9519 26.9405 14.375 26.9405 14.8942V16.9519C26.9405 17.4904 27.4125 17.9231 27.9999 17.9231V14.9231C28.0104 13.8846 27.0768 13 25.944 13ZM14.3846 15.5C14.3846 16.875 13.1573 18 11.6573 18C10.1468 18 8.93005 16.875 8.93005 15.5C8.93005 14.125 10.1573 13 11.6573 13C13.1573 13 14.3846 14.125 14.3846 15.5ZM13.3251 15.5C13.3251 14.6538 12.5804 13.9712 11.6573 13.9712C10.7342 13.9712 9.98949 14.6538 9.98949 15.5C9.98949 16.3462 10.7342 17.0288 11.6573 17.0288C12.5804 17.0288 13.3251 16.3462 13.3251 15.5ZM20.2692 15.5C20.2692 16.875 19.0419 18 17.5419 18C16.0314 18 14.8146 16.875 14.8146 15.5C14.8146 14.125 16.0419 13 17.5419 13C19.0419 13 20.2692 14.125 20.2692 15.5ZM19.2097 15.5C19.2097 14.6538 18.465 13.9712 17.5419 13.9712C16.6188 13.9712 15.8741 14.6538 15.8741 15.5C15.8741 16.3462 16.6188 17.0288 17.5419 17.0288C18.465 17.0288 19.2097 16.3462 19.2097 15.5Z",fill:"white"}),a("defs",null,a("linearGradient",{id:"paint0_linear_17811_243867",x1:"6",y1:"29",x2:"26",y2:"2.5",gradientUnits:"userSpaceOnUse"},a("stop",{"stop-color":"#084ACD"}),a("stop",{offset:"0.505","stop-color":"#0B5CFF"}),a("stop",{offset:"1","stop-color":"#236EF9"}))));case"8x8":return a("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("rect",{width:"32",height:"32",fill:"#CB2233"}),a("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4298 14.2388H16.8341L16.2371 15.4154C16.1751 15.5507 16.1037 15.6811 16.0236 15.8055H15.9988C15.9988 15.8055 15.8808 15.5988 15.7841 15.4154L15.1965 14.2302H12.6127L14.6479 17.5052L12.621 20.7815H15.1611L15.8454 19.4129C15.9061 19.2937 15.9589 19.1704 16.0035 19.0437H16.0283C16.0283 19.0437 16.1227 19.2898 16.1864 19.4129L16.886 20.7815H19.4298L17.4028 17.5052L19.4298 14.2388ZM7.95949 19.1225C7.79341 19.1261 7.62828 19.0954 7.47357 19.0323C7.31886 18.9692 7.17761 18.8748 7.05792 18.7547C6.93823 18.6345 6.84245 18.4909 6.77608 18.332C6.7097 18.1732 6.67404 18.0022 6.67112 17.8289C6.68897 17.3197 6.89037 16.8362 7.23508 16.4751C8.28512 16.9674 9.24078 17.3465 9.24078 17.9852C9.24668 18.7163 8.75352 19.1225 7.95949 19.1225ZM8.03028 12.3975C8.72992 12.3975 9.15112 12.8037 9.15112 13.4252C9.14236 13.9074 9.0139 14.3789 8.77829 14.7938C7.83443 14.3705 7.06047 13.9975 7.06047 13.2677C7.05575 12.7877 7.3625 12.3975 8.03028 12.3975ZM10.6613 15.7625C10.7651 15.6308 11.7113 14.4283 11.7113 13.2258C11.7113 11.152 10.082 10 8.09399 10C5.59748 10 4.5085 11.5914 4.5085 13.2086C4.5085 14.1625 4.91436 14.8258 5.47832 15.3403C5.15269 15.6148 4 16.624 4 18.0615C4 19.8363 5.35916 21.52 7.95949 21.52C10.6058 21.52 11.9178 19.8191 11.9178 18.1194C11.9178 16.9994 11.3774 16.2782 10.6613 15.7625ZM24.0452 19.1225C23.8792 19.1259 23.7142 19.0951 23.5597 19.0319C23.4051 18.9688 23.264 18.8744 23.1444 18.7542C23.0249 18.6341 22.9292 18.4905 22.8629 18.3317C22.7966 18.1729 22.761 18.0021 22.758 17.8289C22.7759 17.3197 22.9773 16.8362 23.322 16.4751C24.372 16.9674 25.3277 17.3465 25.3277 17.9852C25.3277 18.7237 24.8345 19.1286 24.0476 19.1286L24.0452 19.1225ZM24.1172 12.3975C24.8168 12.3975 25.238 12.8037 25.238 13.4252C25.2296 13.9076 25.1007 14.3794 24.864 14.7938C23.9202 14.3705 23.1474 13.9975 23.1474 13.2677C23.1474 12.7877 23.4494 12.3975 24.1172 12.3975ZM26.7435 15.7625C26.8473 15.6222 27.7935 14.4197 27.7935 13.2258C27.7935 11.152 26.163 10 24.1762 10C21.6797 10 20.5907 11.5914 20.5907 13.2086C20.5907 14.1625 20.9966 14.8258 21.5605 15.3403C21.2349 15.6049 20.0822 16.6166 20.0822 18.048C20.0822 19.8228 21.4414 21.5065 24.0405 21.5065C26.688 21.5065 28 19.8068 28 18.1058C28 16.9994 27.4596 16.2782 26.7435 15.7625Z",fill:"white"}));default:return null}}getUcIntegrationText(a){switch(a){case"teams":return"Microsoft Teams";case"zoom":return"Zoom";case"8x8":return"8 by 8";default:return null}}renderUcIntegrationBadge(){if(["zoom","teams","8x8"].includes(this.ucIntegration)&&"large"===this.size)return a("div",{class:"gux-avatar-integration-badge"},this.renderUcIntegrationsIcon(this.ucIntegration),a("gux-screen-reader-beta",null,this.getUcIntegrationText(this.ucIntegration)))}getDescriptionText(){return this.notifications?`${this.name} (${this.i18n("notifications")})`:this.label&&"none"!==this.presence?`${this.name} (${this.label})`:`${this.name}`}async componentWillLoad(){i(this.root,{variant:this.size}),this.i18n=await g(this.root,o)}componentDidLoad(){this.validatingInputs()}render(){return[a("div",{key:"bd679be542a7a195708a3ec5fc2b6295d86fa60d",class:{"gux-avatar":!0,[`gux-${this.presence}`]:this.ring||this.badge,[`gux-${this.size}`]:!0,"gux-ring":this.ring,[`gux-accent-${this.getAccent()}`]:!0}},a("div",{key:"accb7c6bff6cbca9fdd7dcc1019b9777341e1e9e",class:"gux-content"},a("slot",{key:"6cae7ac1a87342b2287def093cc98c8d74e9e47e",name:"image"},a("abbr",{key:"74e34625648351b3a9cb39bb445d162259c62003","aria-label":this.getDescriptionText()},this.generateInitials())))),this.renderBadge(),this.renderUcIntegrationBadge()]}get root(){return t(this)}};n.style=":host{position:relative;display:inline-block}:host abbr{text-decoration:none}::slotted(img){width:100%;height:100%;object-fit:cover}.gux-avatar{position:relative;width:var(--gse-ui-avatar-large-size);height:var(--gse-ui-avatar-large-size);overflow:hidden;border-radius:50%}.gux-avatar .gux-content{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:calc(100% - var(--gse-ui-avatar-large-presenceRing-width) * 2);height:calc(100% - var(--gse-ui-avatar-large-presenceRing-width) * 2);margin:var(--gse-ui-avatar-large-presenceRing-width);overflow:hidden;font-family:var(--gse-ui-avatar-large-initials-fontFamily);font-size:var(--gse-ui-avatar-large-initials-fontSize);font-weight:var(--gse-ui-avatar-large-initials-fontWeight);line-height:var(--gse-core-lineHeight-matchFontSize);color:var(--gse-ui-avatar-media-initialsForeground-inverse);text-transform:uppercase;background-color:var(--gse-ui-avatar-media-initialsBackground-default);border:var(--gse-ui-avatar-content-large-border-width) var(--gse-ui-avatar-content-default-border-style) var(--gse-ui-avatar-content-default-border-color);border-radius:50%}.gux-avatar.gux-medium{width:var(--gse-ui-avatar-medium-size);height:var(--gse-ui-avatar-medium-size)}.gux-avatar.gux-medium .gux-content{width:calc(100% - var(--gse-ui-avatar-medium-presenceRing-width) * 2);height:calc(100% - var(--gse-ui-avatar-medium-presenceRing-width) * 2);margin:var(--gse-ui-avatar-medium-presenceRing-width);font-size:var(--gse-ui-avatar-medium-initials-fontSize);font-weight:var(--gse-ui-avatar-medium-initials-fontWeight)}.gux-avatar.gux-medium .gux-content,.gux-avatar.gux-small .gux-content,.gux-avatar.gux-xsmall .gux-content{border-width:var(--gse-ui-avatar-content-default-border-width)}.gux-avatar.gux-small{width:var(--gse-ui-avatar-small-size);height:var(--gse-ui-avatar-small-size)}.gux-avatar.gux-small .gux-content{width:calc(100% - var(--gse-ui-avatar-small-presenceRing-width) * 2);height:calc(100% - var(--gse-ui-avatar-small-presenceRing-width) * 2);margin:var(--gse-ui-avatar-small-presenceRing-width);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight)}.gux-avatar.gux-xsmall{width:var(--gse-ui-avatar-xsmall-size);height:var(--gse-ui-avatar-xsmall-size)}.gux-avatar.gux-xsmall .gux-content{width:calc(100% - var(--gse-ui-avatar-xsmall-presenceRing-width) * 2);height:calc(100% - var(--gse-ui-avatar-xsmall-presenceRing-width) * 2);margin:var(--gse-ui-avatar-xsmall-presenceRing-width);font-size:var(--gse-ui-avatar-xsmall-initials-fontSize);font-weight:var(--gse-ui-avatar-xsmall-initials-fontWeight)}.gux-avatar.gux-accent-1 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent1)}.gux-avatar.gux-accent-2 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent2)}.gux-avatar.gux-accent-3 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent3)}.gux-avatar.gux-accent-4 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent4)}.gux-avatar.gux-accent-5 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent5)}.gux-avatar.gux-accent-6 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent6)}.gux-avatar.gux-accent-7 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent7)}.gux-avatar.gux-accent-8 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent8)}.gux-avatar.gux-accent-9 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent9)}.gux-avatar.gux-accent-10 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent10)}.gux-avatar.gux-accent-11 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent11)}.gux-avatar.gux-accent-12 .gux-content{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent12)}.gux-avatar.gux-accent-inherit .gux-content{color:inherit;background-color:inherit}.gux-avatar.gux-ring.gux-available{background:var(--gse-ui-avatar-presenceRing-available)}.gux-avatar.gux-ring.gux-away,.gux-avatar.gux-ring.gux-break,.gux-avatar.gux-ring.gux-meal,.gux-avatar.gux-ring.gux-training{background:var(--gse-ui-avatar-presenceRing-away)}.gux-avatar.gux-ring.gux-busy,.gux-avatar.gux-ring.gux-meeting{background:var(--gse-ui-avatar-presenceRing-busy)}.gux-avatar.gux-ring.gux-notifications{background:var(--gse-ui-avatar-presenceRing-notifications)}.gux-avatar.gux-ring.gux-offline{background:var(--gse-ui-avatar-presenceRing-offline)}.gux-avatar.gux-ring.gux-out-of-office{background:var(--gse-ui-avatar-presenceRing-outOfOffice)}.gux-avatar.gux-ring.gux-on-queue{background:var(--gse-ui-avatar-presenceRing-onQueue)}.gux-avatar-integration-badge{position:absolute;inset-block-end:0;inset-inline-end:0;z-index:var(--gse-semantic-zIndex-showFocus);display:flex;align-items:center;justify-content:center}.gux-avatar-badge{position:absolute;top:calc(var(--gse-ui-avatar-content-large-border-width) * -1);right:calc(var(--gse-ui-avatar-content-large-border-width) * -1);z-index:var(--gse-semantic-zIndex-showFocus);display:flex;align-items:center;justify-content:center;width:var(--gse-ui-avatar-large-badge-size);height:var(--gse-ui-avatar-large-badge-size);border-color:var(--gse-ui-avatar-content-default-border-color);border-style:var(--gse-ui-avatar-content-default-border-style);border-width:var(--gse-ui-avatar-content-large-border-width);border-radius:50%}.gux-avatar-badge.gux-medium{top:calc(var(--gse-ui-avatar-content-default-border-width) * -1);right:calc(var(--gse-ui-avatar-content-default-border-width) * -1);width:var(--gse-ui-avatar-medium-badge-size);height:var(--gse-ui-avatar-medium-badge-size);border-width:var(--gse-ui-avatar-content-default-border-width)}.gux-avatar-badge.gux-small,.gux-avatar-badge.gux-xsmall{top:calc(var(--gse-ui-avatar-content-default-border-width) * -1);right:calc(var(--gse-ui-avatar-content-default-border-width) * -1);width:var(--gse-ui-avatar-small-badge-size);height:var(--gse-ui-avatar-small-badge-size);border-width:var(--gse-ui-avatar-content-default-border-width)}.gux-avatar-badge.gux-small gux-icon,.gux-avatar-badge.gux-xsmall gux-icon{display:none}.gux-avatar-badge.gux-available{background-color:var(--gse-ui-avatar-badge-foregroundDefault-color)}.gux-avatar-badge.gux-available.gux-small,.gux-avatar-badge.gux-available.gux-xsmall{background-color:var(--gse-ui-avatar-badge-available-color)}.gux-avatar-badge.gux-available gux-icon{color:var(--gse-ui-avatar-badge-available-color)}.gux-avatar-badge.gux-away,.gux-avatar-badge.gux-break,.gux-avatar-badge.gux-meal,.gux-avatar-badge.gux-training{background-color:var(--gse-ui-avatar-badge-away)}.gux-avatar-badge.gux-away gux-icon,.gux-avatar-badge.gux-break gux-icon,.gux-avatar-badge.gux-meal gux-icon,.gux-avatar-badge.gux-training gux-icon{margin:var(--gse-ui-avatar-badge-away-icon-margin);color:var(--gse-ui-avatar-badge-foregroundDark-color)}.gux-avatar-badge.gux-busy,.gux-avatar-badge.gux-meeting{background-color:var(--gse-ui-avatar-badge-busy-color)}.gux-avatar-badge.gux-busy gux-icon,.gux-avatar-badge.gux-meeting gux-icon{margin:var(--gse-ui-avatar-badge-busy-icon-margin);color:var(--gse-ui-avatar-badge-foregroundDefault-color)}.gux-avatar-badge.gux-notifications{background-color:var(--gse-ui-avatar-badge-notification-color)}.gux-avatar-badge.gux-notifications gux-icon{margin:var(--gse-ui-avatar-badge-notifications-icon-margin);color:var(--gse-ui-avatar-badge-foregroundDefault-color)}.gux-avatar-badge.gux-offline{background-color:var(--gse-ui-avatar-badge-foregroundDefault-color)}.gux-avatar-badge.gux-offline.gux-small,.gux-avatar-badge.gux-offline.gux-xsmall{background-color:var(--gse-ui-avatar-badge-offline-color)}.gux-avatar-badge.gux-offline gux-icon{color:var(--gse-ui-avatar-badge-offline-color)}.gux-avatar-badge.gux-out-of-office{background-color:var(--gse-ui-avatar-badge-foregroundDefault-color)}.gux-avatar-badge.gux-out-of-office.gux-small,.gux-avatar-badge.gux-out-of-office.gux-xsmall{background-color:var(--gse-ui-avatar-badge-outOfOffice)}.gux-avatar-badge.gux-out-of-office gux-icon{color:var(--gse-ui-avatar-badge-outOfOffice)}.gux-avatar-badge.gux-on-queue{background-color:var(--gse-ui-avatar-badge-onQueue-color)}.gux-avatar-badge.gux-on-queue gux-icon{margin:var(--gse-ui-avatar-badge-queue-icon-margin);color:var(--gse-ui-avatar-badge-foregroundDefault-color)}.gux-avatar-badge gux-icon{width:100%;height:100%}";export{n as gux_avatar_beta}
@@ -1 +1 @@
1
- import{r as t,h as i,g as e}from"./p-2e827df1.js";import{t as o}from"./p-68c084ac.js";import{b as s}from"./p-0367930a.js";import"./p-4202e9f2.js";const a={dismiss:"Dismiss"},n=class{constructor(i){t(this,i),this.position="absolute"}async componentWillLoad(){o(this.root,{variant:this.position}),this.i18n=await s(this.root,a)}render(){return i("gux-button-slot",{key:"83378466334b72279df60b88cfe410a74f11ca02",accent:"ghost",class:"inherit"==this.position?"gux-inherit":void 0},i("button",{key:"02546ece8f67f304eff7b5855491c8e0ffe6a905",type:"button",title:this.i18n("dismiss")},i("div",{key:"f9829ff48e74cbae901e06770430bf9683b2069a",class:"gux-icon-container"},i("gux-icon",{key:"7018c674a3e0a9f225930e748e31239ed601b1c2","icon-name":"fa/xmark-large-regular",decorative:!0}))))}static get delegatesFocus(){return!0}get root(){return e(this)}};n.style="gux-button-slot{position:absolute;top:var(--gse-ui-modal-dismissButton-paddingTop);right:var(--gse-ui-modal-dismissButton-paddingRight)}gux-button-slot.gux-inherit{position:inherit}gux-button-slot .gux-icon-container{display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center;width:8px}gux-button-slot .gux-icon-container gux-icon{flex:0 0 auto;align-self:auto;order:0;width:16px;height:16px;color:var(--gse-ui-dismissButton-foregroundColor)}";export{n as gux_dismiss_button}
1
+ import{r as t,h as i,g as e}from"./p-2e827df1.js";import{t as o}from"./p-1b65c00a.js";import{b as s}from"./p-909c2a19.js";import"./p-4202e9f2.js";const a={dismiss:"Dismiss"},n=class{constructor(i){t(this,i),this.position="absolute"}async componentWillLoad(){o(this.root,{variant:this.position}),this.i18n=await s(this.root,a)}render(){return i("gux-button-slot",{key:"83378466334b72279df60b88cfe410a74f11ca02",accent:"ghost",class:"inherit"==this.position?"gux-inherit":void 0},i("button",{key:"02546ece8f67f304eff7b5855491c8e0ffe6a905",type:"button",title:this.i18n("dismiss")},i("div",{key:"f9829ff48e74cbae901e06770430bf9683b2069a",class:"gux-icon-container"},i("gux-icon",{key:"7018c674a3e0a9f225930e748e31239ed601b1c2","icon-name":"fa/xmark-large-regular",decorative:!0}))))}static get delegatesFocus(){return!0}get root(){return e(this)}};n.style="gux-button-slot{position:absolute;top:var(--gse-ui-modal-dismissButton-paddingTop);right:var(--gse-ui-modal-dismissButton-paddingRight)}gux-button-slot.gux-inherit{position:inherit}gux-button-slot .gux-icon-container{display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center;width:8px}gux-button-slot .gux-icon-container gux-icon{flex:0 0 auto;align-self:auto;order:0;width:16px;height:16px;color:var(--gse-ui-dismissButton-foregroundColor)}";export{n as gux_dismiss_button}
@@ -1 +1 @@
1
- import{r as t,c as s,h as a,H as i,g as c}from"./p-2e827df1.js";import{t as h}from"./p-68c084ac.js";const e=class{constructor(a){t(this,a),this.guxactivetabchange=s(this,"guxactivetabchange",7),this.tabList=void 0,this.tabPanels=[],this.activeTab=void 0}watchActiveTab(t){this.activateTab(t,this.tabList,this.tabPanels),this.guxactivetabchange.emit(t)}onInternalActivateTabPanel(t){t.stopPropagation(),this.activateTab(t.detail,this.tabList,this.tabPanels)}async guxActivate(t){this.activateTab(t,this.tabList,this.tabPanels)}onSlotchange(){const[t,s]=Array.from(this.root.shadowRoot.querySelectorAll("slot"));this.tabList=t.assignedElements()[0],this.tabPanels=s.assignedElements(),this.activateTab(this.activeTab,this.tabList,this.tabPanels)}activateTab(t,s,a){var i;this.activeTab=t||(null===(i=null==s?void 0:s.querySelector("gux-tab-advanced"))||void 0===i?void 0:i.getAttribute("tab-id")),s.guxSetActive(this.activeTab),a.forEach((t=>{t.guxSetActive(t.tabId===this.activeTab)}))}componentWillLoad(){h(this.root)}render(){return a(i,{key:"390f7a0aa1860b7483b6c915a8bcc5191e5cf2ae"},a("slot",{key:"623f01cb6f6c11d0b98f0389348c801c8e2aa89b",name:"tab-list"}),a("slot",{key:"55efbdf2091d5245fc711039c65f81a462690e1e",onSlotchange:this.onSlotchange.bind(this)}))}get root(){return c(this)}static get watchers(){return{activeTab:["watchActiveTab"]}}};export{e as gux_tabs_advanced}
1
+ import{r as t,c as s,h as a,H as i,g as h}from"./p-2e827df1.js";import{t as c}from"./p-1b65c00a.js";const e=class{constructor(a){t(this,a),this.guxactivetabchange=s(this,"guxactivetabchange",7),this.tabList=void 0,this.tabPanels=[],this.activeTab=void 0}watchActiveTab(t){this.activateTab(t,this.tabList,this.tabPanels),this.guxactivetabchange.emit(t)}onInternalActivateTabPanel(t){t.stopPropagation(),this.activateTab(t.detail,this.tabList,this.tabPanels)}async guxActivate(t){this.activateTab(t,this.tabList,this.tabPanels)}onSlotchange(){const[t,s]=Array.from(this.root.shadowRoot.querySelectorAll("slot"));this.tabList=t.assignedElements()[0],this.tabPanels=s.assignedElements(),this.activateTab(this.activeTab,this.tabList,this.tabPanels)}activateTab(t,s,a){var i;this.activeTab=t||(null===(i=null==s?void 0:s.querySelector("gux-tab-advanced"))||void 0===i?void 0:i.getAttribute("tab-id")),s.guxSetActive(this.activeTab),a.forEach((t=>{t.guxSetActive(t.tabId===this.activeTab)}))}componentWillLoad(){c(this.root)}render(){return a(i,{key:"390f7a0aa1860b7483b6c915a8bcc5191e5cf2ae"},a("slot",{key:"623f01cb6f6c11d0b98f0389348c801c8e2aa89b",name:"tab-list"}),a("slot",{key:"55efbdf2091d5245fc711039c65f81a462690e1e",onSlotchange:this.onSlotchange.bind(this)}))}get root(){return h(this)}static get watchers(){return{activeTab:["watchActiveTab"]}}};export{e as gux_tabs_advanced}
@@ -1 +1 @@
1
- import{r as t,c as e,f as s,d as i,h as a,H as h,g as o}from"./p-2e827df1.js";import{b as r}from"./p-0367930a.js";import{w as n}from"./p-e97879b4.js";import{r as l}from"./p-0934300e.js";import{t as c}from"./p-68c084ac.js";import{t as d}from"./p-408d5857.js";import"./p-4202e9f2.js";const g=class{constructor(i){t(this,i),this.guxselectionchanged=e(this,"guxselectionchanged",7),this.guxsortchanged=e(this,"guxsortchanged",7),this.slotObserver=new MutationObserver((()=>s(this))),this.tableId=l("gux-table"),this.columnsWidths={},this.isVerticalScroll=!1,this.columnResizeHover=!1,this.compact=!1,this.objectTable=!1,this.emptyMessage=void 0,this.resizableColumns=void 0}async componentWillLoad(){c(this.root),this.i18n=await r(this.root,d)}componentDidLoad(){this.resizableColumns&&this.prepareResizableColumns(),this.prepareSelectableRows(),this.checkVerticalScroll(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{i((()=>{this.checkVerticalScroll()}))}))),this.resizeObserver&&(this.resizeObserver.observe(this.tableContainer),this.resizeObserver.observe(this.slottedTable)),this.slotObserver.observe(this.slottedTable,{subtree:!0,childList:!0})}checkVerticalScroll(){const t=this.tableContainer;this.isVerticalScroll=t.scrollHeight>t.clientHeight}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.unobserve(this.tableContainer),this.resizeObserver.unobserve(this.slottedTable)),this.resizableColumns&&document.getElementById(`${this.tableId}-resizable-styles`).remove()}onInternalAllRowSelectChange(t){t.stopPropagation(),this.handleSelectAllRows(t.detail)}onInternalRowSelectChange(t){t.stopPropagation();const e=t.target;e.selected=t.detail,this.handleRowSelection(e)}onMouseMove(t){this.resizableColumns&&this.updateResizeState(t)}onMouseDown(t){this.resizableColumns&&this.maybeStartResizing(t)}onMouseUp(){this.resizableColumns&&this.stopResizing()}get tableContainer(){return this.root.shadowRoot.querySelector(".gux-table-container")}get slottedTable(){return this.root.querySelector('table[slot="data"]')}get tableRows(){return Array.from(this.slottedTable.querySelectorAll("tbody tr"))}get tableColumns(){return Array.from(this.slottedTable.querySelectorAll("thead th"))}get rowCheckboxes(){return Array.from(this.slottedTable.querySelectorAll("tbody tr td gux-row-select"))}get selectAllCheckbox(){return this.slottedTable.querySelector("thead tr th gux-all-row-select")}async getSelected(){return this.getSelectedInternal()}getSelectedInternal(){return{selectedRowIds:Array.from(this.rowCheckboxes).filter((t=>t.selected)).map((t=>t.closest("tr").getAttribute("data-row-id")))}}prepareSelectableRows(){this.rowCheckboxes.forEach((t=>{this.updateRowSelection(t)})),this.updateSelectAllBoxState()}updateSelectAllBoxState(){const t=this.selectAllCheckbox;if(t){const e=this.rowCheckboxes,s=e.filter((t=>!t.disabled)),i=s.filter((t=>t.selected)),a=Boolean(e.length),h=i.length===s.length,o=0===i.length;t.selected=a&&h,t.setIndeterminate(a&&!h&&!o)}}handleSelectAllRows(t){const e=this.selectAllCheckbox;this.rowCheckboxes.forEach((s=>{e.selected=t,s.disabled||(s.selected=t,this.updateRowSelection(s))})),this.emitSelectionEvent()}handleRowSelection(t){this.updateRowSelection(t),this.updateSelectAllBoxState(),this.emitSelectionEvent()}emitSelectionEvent(){this.guxselectionchanged.emit(this.getSelectedInternal())}updateRowSelection(t){const e=t.closest("tr");t.selected?e.setAttribute("data-selected-row",""):e.removeAttribute("data-selected-row")}prepareResizableColumns(){const t=document.createElement("style");t.id=`${this.tableId}-resizable-styles`,document.querySelector("head").appendChild(t),this.calculateColumnWidths(this.tableColumns).slice(0,-1).forEach((t=>this.columnsWidths[t.name]=t.width)),this.setResizableColumnsStyles()}updateResizeState(t){if(this.columnResizeState){const e=this.columnResizeState.resizableColumn.dataset.columnName,s=Math.max(this.columnResizeState.resizableColumnInitialWidth+(t.pageX-this.columnResizeState.columnResizeMouseStartX),1),i=this.calculateColumnWidths(this.tableColumns).map((t=>t.name===e?Object.assign(Object.assign({},t),{width:s}):t));this.columnsWidths[e]=i.find((t=>t.name===e)).width,this.setResizableColumnsStyles()}else this.columnResizeHover=!1,n("th",t,(e=>{this.tableColumns.length-1!==e.cellIndex&&this.isInResizeZone(t,e)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){n("th",t,(e=>{this.isInResizeZone(t,e)&&(this.columnResizeState={resizableColumn:e,columnResizeMouseStartX:t.pageX,resizableColumnInitialWidth:e.clientWidth})}))}stopResizing(){this.columnResizeState&&(this.columnResizeState=null)}isInResizeZone(t,e){return e.getBoundingClientRect().right-t.clientX<3}calculateColumnWidths(t){return t.map((t=>({name:t.dataset.columnName,width:t.clientWidth})))}setResizableColumnsStyles(){const t=document.getElementById(`${this.tableId}-resizable-styles`);let e="";Object.keys(this.columnsWidths).forEach((t=>{e+=`[gs-table-id=${this.tableId}] th[data-column-name="${t}"]{\n width:${String(this.columnsWidths[t])}px;\n min-width:${String(this.columnsWidths[t])}px;\n }`})),t.innerHTML=e}get isTableEmpty(){return!this.root.children[0]||this.tableRows.length<1}get tableContainerClasses(){return{"gux-table-container":!0,"gux-column-resizing":Boolean(this.columnResizeState),"gux-column-resizing-hover":this.columnResizeHover}}render(){return a(h,{key:"14c6b8d3ee32c01c508dadae57832a77ac48cb0e","gs-table-id":this.tableId,"gs-obj-table":this.objectTable,"gs-compact":this.compact},a("div",{key:"676eeba57f40d6e811ede3913cced70a251ccacb",class:"gux-table"},a("div",{key:"c2fe6603f2251008c375a7eef56c9afd058c130c",tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},a("slot",{key:"84c34799fe2acf9f018995aa0b38e238c4e80458",name:"data"})),this.isTableEmpty&&a("div",{class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return o(this)}};g.style=":host{position:relative;z-index:var(--gse-semantic-zIndex-sticky);display:block}:host .gux-table{position:relative;height:inherit}:host .gux-table .gux-table-container{max-height:100%;overflow:auto;scrollbar-color:var(--gse-ui-dataTableItems-scrollbar-foregroundColor);scrollbar-width:thin}:host .gux-table .gux-table-container.gux-column-resizing-hover,:host .gux-table .gux-table-container.gux-column-resizing{cursor:col-resize}:host .gux-empty-table{display:flex;align-items:center;justify-content:center;height:calc(100% - var(--gse-ui-dataTableItems-header-default-height));color:#596373;background:#fdfdfd;font-family:var(--gse-core-typography-heading-lg-fontFamily), var(--gse-core-fontFamily-heading), sans-serif;font-size:var(--gse-core-typography-heading-lg-fontSize);line-height:var(--gse-core-typography-heading-lg-lineHeight);font-weight:var(--gse-core-fontWeight-bold)}";export{g as gux_table}
1
+ import{r as t,c as e,f as s,d as i,h as a,H as h,g as o}from"./p-2e827df1.js";import{b as r}from"./p-909c2a19.js";import{w as n}from"./p-e97879b4.js";import{r as l}from"./p-0934300e.js";import{t as c}from"./p-1b65c00a.js";import{t as d}from"./p-408d5857.js";import"./p-4202e9f2.js";const g=class{constructor(i){t(this,i),this.guxselectionchanged=e(this,"guxselectionchanged",7),this.guxsortchanged=e(this,"guxsortchanged",7),this.slotObserver=new MutationObserver((()=>s(this))),this.tableId=l("gux-table"),this.columnsWidths={},this.isVerticalScroll=!1,this.columnResizeHover=!1,this.compact=!1,this.objectTable=!1,this.emptyMessage=void 0,this.resizableColumns=void 0}async componentWillLoad(){c(this.root),this.i18n=await r(this.root,d)}componentDidLoad(){this.resizableColumns&&this.prepareResizableColumns(),this.prepareSelectableRows(),this.checkVerticalScroll(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{i((()=>{this.checkVerticalScroll()}))}))),this.resizeObserver&&(this.resizeObserver.observe(this.tableContainer),this.resizeObserver.observe(this.slottedTable)),this.slotObserver.observe(this.slottedTable,{subtree:!0,childList:!0})}checkVerticalScroll(){const t=this.tableContainer;this.isVerticalScroll=t.scrollHeight>t.clientHeight}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.unobserve(this.tableContainer),this.resizeObserver.unobserve(this.slottedTable)),this.resizableColumns&&document.getElementById(`${this.tableId}-resizable-styles`).remove()}onInternalAllRowSelectChange(t){t.stopPropagation(),this.handleSelectAllRows(t.detail)}onInternalRowSelectChange(t){t.stopPropagation();const e=t.target;e.selected=t.detail,this.handleRowSelection(e)}onMouseMove(t){this.resizableColumns&&this.updateResizeState(t)}onMouseDown(t){this.resizableColumns&&this.maybeStartResizing(t)}onMouseUp(){this.resizableColumns&&this.stopResizing()}get tableContainer(){return this.root.shadowRoot.querySelector(".gux-table-container")}get slottedTable(){return this.root.querySelector('table[slot="data"]')}get tableRows(){return Array.from(this.slottedTable.querySelectorAll("tbody tr"))}get tableColumns(){return Array.from(this.slottedTable.querySelectorAll("thead th"))}get rowCheckboxes(){return Array.from(this.slottedTable.querySelectorAll("tbody tr td gux-row-select"))}get selectAllCheckbox(){return this.slottedTable.querySelector("thead tr th gux-all-row-select")}async getSelected(){return this.getSelectedInternal()}getSelectedInternal(){return{selectedRowIds:Array.from(this.rowCheckboxes).filter((t=>t.selected)).map((t=>t.closest("tr").getAttribute("data-row-id")))}}prepareSelectableRows(){this.rowCheckboxes.forEach((t=>{this.updateRowSelection(t)})),this.updateSelectAllBoxState()}updateSelectAllBoxState(){const t=this.selectAllCheckbox;if(t){const e=this.rowCheckboxes,s=e.filter((t=>!t.disabled)),i=s.filter((t=>t.selected)),a=Boolean(e.length),h=i.length===s.length,o=0===i.length;t.selected=a&&h,t.setIndeterminate(a&&!h&&!o)}}handleSelectAllRows(t){const e=this.selectAllCheckbox;this.rowCheckboxes.forEach((s=>{e.selected=t,s.disabled||(s.selected=t,this.updateRowSelection(s))})),this.emitSelectionEvent()}handleRowSelection(t){this.updateRowSelection(t),this.updateSelectAllBoxState(),this.emitSelectionEvent()}emitSelectionEvent(){this.guxselectionchanged.emit(this.getSelectedInternal())}updateRowSelection(t){const e=t.closest("tr");t.selected?e.setAttribute("data-selected-row",""):e.removeAttribute("data-selected-row")}prepareResizableColumns(){const t=document.createElement("style");t.id=`${this.tableId}-resizable-styles`,document.querySelector("head").appendChild(t),this.calculateColumnWidths(this.tableColumns).slice(0,-1).forEach((t=>this.columnsWidths[t.name]=t.width)),this.setResizableColumnsStyles()}updateResizeState(t){if(this.columnResizeState){const e=this.columnResizeState.resizableColumn.dataset.columnName,s=Math.max(this.columnResizeState.resizableColumnInitialWidth+(t.pageX-this.columnResizeState.columnResizeMouseStartX),1),i=this.calculateColumnWidths(this.tableColumns).map((t=>t.name===e?Object.assign(Object.assign({},t),{width:s}):t));this.columnsWidths[e]=i.find((t=>t.name===e)).width,this.setResizableColumnsStyles()}else this.columnResizeHover=!1,n("th",t,(e=>{this.tableColumns.length-1!==e.cellIndex&&this.isInResizeZone(t,e)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){n("th",t,(e=>{this.isInResizeZone(t,e)&&(this.columnResizeState={resizableColumn:e,columnResizeMouseStartX:t.pageX,resizableColumnInitialWidth:e.clientWidth})}))}stopResizing(){this.columnResizeState&&(this.columnResizeState=null)}isInResizeZone(t,e){return e.getBoundingClientRect().right-t.clientX<3}calculateColumnWidths(t){return t.map((t=>({name:t.dataset.columnName,width:t.clientWidth})))}setResizableColumnsStyles(){const t=document.getElementById(`${this.tableId}-resizable-styles`);let e="";Object.keys(this.columnsWidths).forEach((t=>{e+=`[gs-table-id=${this.tableId}] th[data-column-name="${t}"]{\n width:${String(this.columnsWidths[t])}px;\n min-width:${String(this.columnsWidths[t])}px;\n }`})),t.innerHTML=e}get isTableEmpty(){return!this.root.children[0]||this.tableRows.length<1}get tableContainerClasses(){return{"gux-table-container":!0,"gux-column-resizing":Boolean(this.columnResizeState),"gux-column-resizing-hover":this.columnResizeHover}}render(){return a(h,{key:"14c6b8d3ee32c01c508dadae57832a77ac48cb0e","gs-table-id":this.tableId,"gs-obj-table":this.objectTable,"gs-compact":this.compact},a("div",{key:"676eeba57f40d6e811ede3913cced70a251ccacb",class:"gux-table"},a("div",{key:"c2fe6603f2251008c375a7eef56c9afd058c130c",tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},a("slot",{key:"84c34799fe2acf9f018995aa0b38e238c4e80458",name:"data"})),this.isTableEmpty&&a("div",{class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return o(this)}};g.style=":host{position:relative;z-index:var(--gse-semantic-zIndex-sticky);display:block}:host .gux-table{position:relative;height:inherit}:host .gux-table .gux-table-container{max-height:100%;overflow:auto;scrollbar-color:var(--gse-ui-dataTableItems-scrollbar-foregroundColor);scrollbar-width:thin}:host .gux-table .gux-table-container.gux-column-resizing-hover,:host .gux-table .gux-table-container.gux-column-resizing{cursor:col-resize}:host .gux-empty-table{display:flex;align-items:center;justify-content:center;height:calc(100% - var(--gse-ui-dataTableItems-header-default-height));color:#596373;background:#fdfdfd;font-family:var(--gse-core-typography-heading-lg-fontFamily), var(--gse-core-fontFamily-heading), sans-serif;font-size:var(--gse-core-typography-heading-lg-fontSize);line-height:var(--gse-core-typography-heading-lg-lineHeight);font-weight:var(--gse-core-fontWeight-bold)}";export{g as gux_table}
@@ -1 +1 @@
1
- import{r as e,c as t,f as n,h as a,g as s}from"./p-2e827df1.js";import{b as o}from"./p-0367930a.js";import{t as c}from"./p-68c084ac.js";import{g as r,s as i,a as h,b as d,c as l,d as u,e as m,f as p,h as b}from"./p-db201bbc.js";import"./p-4202e9f2.js";import"./p-a43079c8.js";import"./p-2c25e2f2.js";const g={search:"Search",searchResults:"search results",selectedColumnCount:"{count} / {total} Columns Selected",selectAllColumnsScreenReader:"{count} of {total} columns selected: check checkbox to select all {total} columns",unselectAllColumnsScreenReader:"{count} of {total} columns selected: uncheck checkbox to unselect all {total} columns",movePositionPrompt:"Press space or enter to move the {columnName} column to position {newPositionNumber} from position {oldPositionNumber}.",reorderingModeActive:"Reordering mode active. Reposition the {columnName} column using the up arrow key, the down arrow key, the home key and the end key. Press Escape to deactivate reordering mode."},f=class{constructor(n){e(this,n),this.guxorderchange=t(this,"guxorderchange",7),this.highlightResults={matchCount:0,currentMatch:0},this.keyboardOrderChange=r()}watchKeyboardOrderChange(){i(this.root,this.keyboardOrderChange)}async componentWillLoad(){c(this.root),this.i18n=await o(this.root,g)}componentDidLoad(){h(this.root,this.mainCheckboxElement)}handleInternalorderchange(e){e.stopPropagation(),this.emitOrderChange(e.detail)}emitOrderChange(e){const{oldIndex:t,newIndex:n}=e;if(t!==n){const t=d(this.root,e);this.guxorderchange.emit(t)}}handleInternalkeyboardorderstart(e){e.stopPropagation();const t=e.detail,n=l(e.target);this.keyboardOrderChange={oldIndex:n,newIndex:n},this.announceElement.guxAnnounce(this.i18n("reorderingModeActive",{columnName:t}))}handleInternalkeyboardreordermove(e){e.stopPropagation();const{delta:t,column:n}=e.detail;this.keyboardOrderChange=u(this.root,this.keyboardOrderChange,t),this.announceElement.guxAnnounce(this.i18n("movePositionPrompt",{columnName:n,newPositionNumber:this.keyboardOrderChange.newIndex+1,oldPositionNumber:this.keyboardOrderChange.oldIndex+1}))}handleInternalkeyboarddoreorder(e){e.stopPropagation(),this.emitOrderChange(this.keyboardOrderChange),e.target.guxFocus()}handleInternalkeyboardorderfinish(e){e.stopPropagation(),this.keyboardOrderChange=r()}onSearchInput(){this.highlightResults=m(this.root,this.searchElement)}onGuxCurrentMatchChanged(e){this.highlightResults=m(this.root,this.searchElement,e.detail)}onMainCheckboxChange(){p(this.root,this.mainCheckboxElement.checked),n(this.root)}onListChange(){h(this.root,this.mainCheckboxElement),n(this.root)}onSlotChange(){this.onListChange()}renderSelectedColumnCount(){const{count:e,total:t}=b(this.root);return a("div",null,a("span",{"aria-hidden":"true"},this.i18n("selectedColumnCount",{count:e,total:t})),a("span",{class:"gux-sr-only"},a("span",null,": ",this.i18n(e===t?"unselectAllColumnsScreenReader":"selectAllColumnsScreenReader",{count:e,total:t}))))}render(){return a("div",{key:"a79f94223dfd05de4086c68a9e95a089597a23b8",class:"gux-container"},a("div",{key:"8a5e5e45a677ee290644ab4fece23a70ee47513c",class:"gux-sr-only","aria-live":"polite"},`${this.highlightResults.matchCount} ${this.i18n("searchResults")}`),a("div",{key:"faa3b45bb92e71068bd7036be071a75461caf81d",class:"gux-search"},a("gux-content-search",{key:"2638adad20f101d380e140b0b9c09489cb93168f","match-count":this.highlightResults.matchCount,"current-match":this.highlightResults.currentMatch,onGuxcurrentmatchchanged:e=>this.onGuxCurrentMatchChanged(e)},a("input",{key:"b34328155244f85924d2f488a481b4f01607b1f9",type:"search",placeholder:this.i18n("search"),onInput:()=>this.onSearchInput(),ref:e=>this.searchElement=e}))),a("div",{key:"afbf7d485a17fd173f5d85024fcbae79c1095361",class:"gux-select"},a("gux-form-field-checkbox",{key:"2909936c012cdb2372cbc4c2a3373d19549bf82e"},a("input",{key:"e5043db01ee15496864fb661134c7e77c77fa0ef",slot:"input",type:"checkbox",ref:e=>this.mainCheckboxElement=e,onChange:()=>this.onMainCheckboxChange()}),a("label",{key:"d2e3287f9b845184783af6f51b4d70f814334627",slot:"label"},this.renderSelectedColumnCount()))),a("div",{key:"322428c1b9df9e375e757174b0993a607e9f45a2",class:"gux-list",onChange:()=>this.onListChange()},a("slot",{key:"5c6091ca95e652757781382bb371c44781406f06",onSlotchange:()=>this.onSlotChange()})),a("gux-announce-beta",{key:"3c851aa820d225f72edd28103d65b923ae19b50a",ref:e=>this.announceElement=e}))}get root(){return s(this)}static get watchers(){return{keyboardOrderChange:["watchKeyboardOrderChange"]}}};f.style=".gux-container{width:320px;min-width:320px;padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding)}.gux-container .gux-search gux-content-search{width:100%}.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-decoration,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-cancel-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-decoration{display:none;-webkit-appearance:none}.gux-container .gux-select{padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding);margin-left:24px}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}";export{f as gux_column_manager}
1
+ import{r as e,c as t,f as n,h as a,g as s}from"./p-2e827df1.js";import{b as o}from"./p-909c2a19.js";import{t as c}from"./p-1b65c00a.js";import{g as r,s as i,a as h,b as d,c as l,d as u,e as m,f as b,h as p}from"./p-db201bbc.js";import"./p-4202e9f2.js";import"./p-a43079c8.js";import"./p-2c25e2f2.js";const g={search:"Search",searchResults:"search results",selectedColumnCount:"{count} / {total} Columns Selected",selectAllColumnsScreenReader:"{count} of {total} columns selected: check checkbox to select all {total} columns",unselectAllColumnsScreenReader:"{count} of {total} columns selected: uncheck checkbox to unselect all {total} columns",movePositionPrompt:"Press space or enter to move the {columnName} column to position {newPositionNumber} from position {oldPositionNumber}.",reorderingModeActive:"Reordering mode active. Reposition the {columnName} column using the up arrow key, the down arrow key, the home key and the end key. Press Escape to deactivate reordering mode."},f=class{constructor(n){e(this,n),this.guxorderchange=t(this,"guxorderchange",7),this.highlightResults={matchCount:0,currentMatch:0},this.keyboardOrderChange=r()}watchKeyboardOrderChange(){i(this.root,this.keyboardOrderChange)}async componentWillLoad(){c(this.root),this.i18n=await o(this.root,g)}componentDidLoad(){h(this.root,this.mainCheckboxElement)}handleInternalorderchange(e){e.stopPropagation(),this.emitOrderChange(e.detail)}emitOrderChange(e){const{oldIndex:t,newIndex:n}=e;if(t!==n){const t=d(this.root,e);this.guxorderchange.emit(t)}}handleInternalkeyboardorderstart(e){e.stopPropagation();const t=e.detail,n=l(e.target);this.keyboardOrderChange={oldIndex:n,newIndex:n},this.announceElement.guxAnnounce(this.i18n("reorderingModeActive",{columnName:t}))}handleInternalkeyboardreordermove(e){e.stopPropagation();const{delta:t,column:n}=e.detail;this.keyboardOrderChange=u(this.root,this.keyboardOrderChange,t),this.announceElement.guxAnnounce(this.i18n("movePositionPrompt",{columnName:n,newPositionNumber:this.keyboardOrderChange.newIndex+1,oldPositionNumber:this.keyboardOrderChange.oldIndex+1}))}handleInternalkeyboarddoreorder(e){e.stopPropagation(),this.emitOrderChange(this.keyboardOrderChange),e.target.guxFocus()}handleInternalkeyboardorderfinish(e){e.stopPropagation(),this.keyboardOrderChange=r()}onSearchInput(){this.highlightResults=m(this.root,this.searchElement)}onGuxCurrentMatchChanged(e){this.highlightResults=m(this.root,this.searchElement,e.detail)}onMainCheckboxChange(){b(this.root,this.mainCheckboxElement.checked),n(this.root)}onListChange(){h(this.root,this.mainCheckboxElement),n(this.root)}onSlotChange(){this.onListChange()}renderSelectedColumnCount(){const{count:e,total:t}=p(this.root);return a("div",null,a("span",{"aria-hidden":"true"},this.i18n("selectedColumnCount",{count:e,total:t})),a("span",{class:"gux-sr-only"},a("span",null,": ",this.i18n(e===t?"unselectAllColumnsScreenReader":"selectAllColumnsScreenReader",{count:e,total:t}))))}render(){return a("div",{key:"a79f94223dfd05de4086c68a9e95a089597a23b8",class:"gux-container"},a("div",{key:"8a5e5e45a677ee290644ab4fece23a70ee47513c",class:"gux-sr-only","aria-live":"polite"},`${this.highlightResults.matchCount} ${this.i18n("searchResults")}`),a("div",{key:"faa3b45bb92e71068bd7036be071a75461caf81d",class:"gux-search"},a("gux-content-search",{key:"2638adad20f101d380e140b0b9c09489cb93168f","match-count":this.highlightResults.matchCount,"current-match":this.highlightResults.currentMatch,onGuxcurrentmatchchanged:e=>this.onGuxCurrentMatchChanged(e)},a("input",{key:"b34328155244f85924d2f488a481b4f01607b1f9",type:"search",placeholder:this.i18n("search"),onInput:()=>this.onSearchInput(),ref:e=>this.searchElement=e}))),a("div",{key:"afbf7d485a17fd173f5d85024fcbae79c1095361",class:"gux-select"},a("gux-form-field-checkbox",{key:"2909936c012cdb2372cbc4c2a3373d19549bf82e"},a("input",{key:"e5043db01ee15496864fb661134c7e77c77fa0ef",slot:"input",type:"checkbox",ref:e=>this.mainCheckboxElement=e,onChange:()=>this.onMainCheckboxChange()}),a("label",{key:"d2e3287f9b845184783af6f51b4d70f814334627",slot:"label"},this.renderSelectedColumnCount()))),a("div",{key:"322428c1b9df9e375e757174b0993a607e9f45a2",class:"gux-list",onChange:()=>this.onListChange()},a("slot",{key:"5c6091ca95e652757781382bb371c44781406f06",onSlotchange:()=>this.onSlotChange()})),a("gux-announce-beta",{key:"3c851aa820d225f72edd28103d65b923ae19b50a",ref:e=>this.announceElement=e}))}get root(){return s(this)}static get watchers(){return{keyboardOrderChange:["watchKeyboardOrderChange"]}}};f.style=".gux-container{width:320px;min-width:320px;padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding)}.gux-container .gux-search gux-content-search{width:100%}.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-decoration,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-cancel-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-decoration{display:none;-webkit-appearance:none}.gux-container .gux-select{padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding);margin-left:24px}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}";export{f as gux_column_manager}
@@ -1 +1 @@
1
- import{r as e,c as t,h as g,H as l,g as i}from"./p-2e827df1.js";import{t as o}from"./p-68c084ac.js";import{r as a}from"./p-0934300e.js";import{b as r}from"./p-0367930a.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.checkedLabel=void 0,this.uncheckedLabel=void 0,this.labelPosition="right",this.errorMessage=void 0,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.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(){if(this.uncheckedLabel&&this.checkedLabel)return 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))))}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-regular",decorative:!0}),g("div",{class:"gux-toggle-error-message"},this.errorMessage)))}render(){return g(l,{key:"c7b26844b74e990cfc505fd325274fd505e8b3d4",class:{"gux-display-inline":this.displayInline}},g("div",{key:"0edd817f894b681125c9bd1783db81e2da5021f2",class:{"gux-toggle-container":!0,"gux-toggle-label-left":"left"===this.labelPosition,"gux-disabled":this.disabled||this.loading}},g("div",{key:"287a318f399706632947109b6ff34b42355cdf9e",class:"gux-toggle-input",onClick:this.toggle.bind(this)},g("gux-toggle-slider",{key:"31504ec9bde46ee43fc25736b162e458083975e8",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:"366ce2962e1033ddde37449c1fb40b7061bbd283",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;margin:2px;color:#2e394c;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:right}.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:flex-start;width: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: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);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;align-items:flex-start;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-size:var(--gse-ui-toggle-label-fontSize);color:var(--gse-ui-formControl-helper-errorColor)}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container gux-icon{flex:0 1 auto;align-self:auto;order:0;width:var(--gse-ui-button-icon-size);height:var(--gse-ui-button-icon-size);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-2e827df1.js";import{t as o}from"./p-1b65c00a.js";import{r as a}from"./p-0934300e.js";import{b as r}from"./p-909c2a19.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.checkedLabel=void 0,this.uncheckedLabel=void 0,this.labelPosition="right",this.errorMessage=void 0,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.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(){if(this.uncheckedLabel&&this.checkedLabel)return 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))))}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-regular",decorative:!0}),g("div",{class:"gux-toggle-error-message"},this.errorMessage)))}render(){return g(l,{key:"c7b26844b74e990cfc505fd325274fd505e8b3d4",class:{"gux-display-inline":this.displayInline}},g("div",{key:"0edd817f894b681125c9bd1783db81e2da5021f2",class:{"gux-toggle-container":!0,"gux-toggle-label-left":"left"===this.labelPosition,"gux-disabled":this.disabled||this.loading}},g("div",{key:"287a318f399706632947109b6ff34b42355cdf9e",class:"gux-toggle-input",onClick:this.toggle.bind(this)},g("gux-toggle-slider",{key:"31504ec9bde46ee43fc25736b162e458083975e8",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:"366ce2962e1033ddde37449c1fb40b7061bbd283",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;margin:2px;color:#2e394c;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:right}.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:flex-start;width: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: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);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;align-items:flex-start;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-size:var(--gse-ui-toggle-label-fontSize);color:var(--gse-ui-formControl-helper-errorColor)}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container gux-icon{flex:0 1 auto;align-self:auto;order:0;width:var(--gse-ui-button-icon-size);height:var(--gse-ui-button-icon-size);color:var(--gse-ui-formControl-helper-errorColor)}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container .gux-toggle-error-message{flex:0 1 auto;align-self:auto;order:0}';export{n as gux_toggle}
@@ -1 +1 @@
1
- import{r as o,h as i,g as e}from"./p-2e827df1.js";import{t as r}from"./p-68c084ac.js";import{b as c}from"./p-0367930a.js";import"./p-4202e9f2.js";const t={clickToCopy:"Click to Copy",enterToCopy:"Press Enter to Copy",copySuccess:"Copied to Clipboard",copyFailure:"Error. Please Try Again."},a=class{constructor(i){o(this,i),this.tooltipContent="clickToCopy"}onMouseleave(){this.resetTooltip()}onFocusout(){this.resetTooltip()}onFocus(){this.copyButton.matches(":focus-visible")&&(this.tooltipContent="enterToCopy")}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,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 c(this.root,t)}render(){return i("button",{key:"0f359f58cd0ea98ff17daa26467b5d34431674f3",class:"gux-copy-to-clipboard-wrapper",ref:o=>this.copyButton=o,onClick:this.onCopyToClipboard.bind(this)},i("div",{key:"36af97357f9da1c29c4f5abcbb28d98e8ed36eb6",class:"gux-copy-content"},i("slot",{key:"000d41e39725975e82e94495c7646e973d171480",name:"content"}),i("gux-icon",{key:"c99f7cbec96cf644b36cfe08609765b79a61fb15","icon-name":"fa/copy-regular",decorative:!0})),this.renderTooltip())}get root(){return e(this)}};a.style='button{all:unset}.gux-copy-to-clipboard-wrapper{display:inline-flex;align-items:center;max-width:100%}.gux-copy-to-clipboard-wrapper .gux-copy-content{display:inherit;gap:var(--gse-ui-copyToClipboard-contentContainer-gap);align-items:inherit;max-width: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"]{flex-shrink:0;width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);padding:var(--gse-ui-copyToClipboard-iconContainer-padding);visibility:hidden;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-copy-to-clipboard-wrapper gux-tooltip{display:inline-flex;align-items:center}.gux-copy-to-clipboard-wrapper gux-tooltip .gux-tooltip-content>*{vertical-align:middle}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon{width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);padding:var(--gse-ui-copyToClipboard-iconContainer-padding)}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon[icon-name="fa/circle-check-solid"]{color:var(--gse-ui-copyToClipboard-tooltipIcon-success-foregroundColor)}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon[icon-name="fa/circle-xmark-solid"]{color:var(--gse-ui-copyToClipboard-tooltipIcon-error-foregroundColor)}';export{a as gux_copy_to_clipboard}
1
+ import{r as o,h as i,g as e}from"./p-2e827df1.js";import{t as r}from"./p-1b65c00a.js";import{b as c}from"./p-909c2a19.js";import"./p-4202e9f2.js";const t={clickToCopy:"Click to Copy",enterToCopy:"Press Enter to Copy",copySuccess:"Copied to Clipboard",copyFailure:"Error. Please Try Again."},a=class{constructor(i){o(this,i),this.tooltipContent="clickToCopy"}onMouseleave(){this.resetTooltip()}onFocusout(){this.resetTooltip()}onFocus(){this.copyButton.matches(":focus-visible")&&(this.tooltipContent="enterToCopy")}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,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 c(this.root,t)}render(){return i("button",{key:"0f359f58cd0ea98ff17daa26467b5d34431674f3",class:"gux-copy-to-clipboard-wrapper",ref:o=>this.copyButton=o,onClick:this.onCopyToClipboard.bind(this)},i("div",{key:"36af97357f9da1c29c4f5abcbb28d98e8ed36eb6",class:"gux-copy-content"},i("slot",{key:"000d41e39725975e82e94495c7646e973d171480",name:"content"}),i("gux-icon",{key:"c99f7cbec96cf644b36cfe08609765b79a61fb15","icon-name":"fa/copy-regular",decorative:!0})),this.renderTooltip())}get root(){return e(this)}};a.style='button{all:unset}.gux-copy-to-clipboard-wrapper{display:inline-flex;align-items:center;max-width:100%}.gux-copy-to-clipboard-wrapper .gux-copy-content{display:inherit;gap:var(--gse-ui-copyToClipboard-contentContainer-gap);align-items:inherit;max-width: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"]{flex-shrink:0;width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);padding:var(--gse-ui-copyToClipboard-iconContainer-padding);visibility:hidden;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-copy-to-clipboard-wrapper gux-tooltip{display:inline-flex;align-items:center}.gux-copy-to-clipboard-wrapper gux-tooltip .gux-tooltip-content>*{vertical-align:middle}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon{width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);padding:var(--gse-ui-copyToClipboard-iconContainer-padding)}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon[icon-name="fa/circle-check-solid"]{color:var(--gse-ui-copyToClipboard-tooltipIcon-success-foregroundColor)}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon[icon-name="fa/circle-xmark-solid"]{color:var(--gse-ui-copyToClipboard-tooltipIcon-error-foregroundColor)}';export{a as gux_copy_to_clipboard}
@@ -1 +1 @@
1
- import{r as a,c as o,h as t,g as i}from"./p-2e827df1.js";import{r as e}from"./p-0934300e.js";import{t as d}from"./p-68c084ac.js";const n=class{constructor(t){a(this,t),this.guxdismiss=o(this,"guxdismiss",7),this.size="dynamic",this.open=!1}syncOpenState(){this.open?this.dialogElement.showModal():this.dialogElement.close()}async showModal(){this.open=!0}async close(){this.open=!1}onKeydown(a){if("Escape"===a.key)return a.preventDefault(),void this.onDismissHandler()}componentWillLoad(){d(this.root,{variant:`${this.size}`})}componentDidLoad(){this.syncOpenState()}hasModalTitleSlot(){return Boolean(this.root.querySelector('[slot="title"]'))}hasFooterButtons(){var a,o;const t=this.root.querySelector('[slot="start-align-buttons"]'),i=this.root.querySelector('[slot="end-align-buttons"]');return Boolean(null===(a=null==t?void 0:t.textContent)||void 0===a?void 0:a.trim())||Boolean(null===(o=null==i?void 0:i.textContent)||void 0===o?void 0:o.trim())}render(){const a=this.hasModalTitleSlot(),o=e();return t("dialog",{key:"e6053f042065f32a73aa833b684a5963ee9d15f0",onClose:this.onCloseHandler.bind(this),ref:a=>this.dialogElement=a,"aria-labelledby":a?o:null},t("div",{key:"bd3dda03b733d751dd03f021a3851809c68e8552",class:`gux-modal-container gux-${this.size}`},t("gux-dismiss-button",{key:"bc41ba8e49d2cd8de1be12e2392967c0a3b092f1",onClick:this.onDismissHandler.bind(this)}),a&&this.renderTitle(o),t("div",{key:"a63862b65648ce1607b419f8865c51072c945e92",class:"gux-modal-content"},t("p",{key:"7255b0a005ad374f49d1c54c3f113238856ba8fd"},t("slot",{key:"2553c414b2589cc10f5cebaff5b31f50910ba994",name:"content"}))),this.renderButtonFooter()))}renderTitle(a){return t("h1",{class:"gux-modal-header",id:a},t("slot",{name:"title"}))}renderButtonFooter(){const a=this.hasFooterButtons();return t("div",{class:{"gux-button-footer":!0,"gux-no-buttons":!a}},t("div",{class:"gux-start-align-buttons"},t("slot",{name:"start-align-buttons"})),t("div",{class:"gux-end-align-buttons"},t("slot",{name:"end-align-buttons"})))}onCloseHandler(){this.guxdismiss.emit()}onDismissHandler(){this.open=!1}static get delegatesFocus(){return!0}get root(){return i(this)}static get watchers(){return{open:["syncOpenState"]}}};n.style="::slotted(button:active:enabled){color:var(--gse-ui-link-active-foregroundColor);text-decoration:underline;background:none}slot[name=start-align-buttons]::slotted(:not(button,gux-button-slot)){display:flex;flex-direction:row;gap:var(--gse-ui-modal-buttonBar-gap);align-content:flex-start;align-items:center}:host dialog{box-sizing:border-box;justify-content:space-between;padding:0;overflow:hidden;border:none;border-radius:var(--gse-ui-modal-borderRadius);box-shadow:var(--gse-ui-modal-boxShadow-x) var(--gse-ui-modal-boxShadow-y) var(--gse-ui-modal-boxShadow-blur) var(--gse-ui-modal-boxShadow-spread) var(--gse-ui-modal-boxShadow-color)}:host dialog::backdrop{background:rgba(77, 97, 130, 0.8)}:host dialog .gux-modal-container{display:flex;flex-direction:column}:host dialog .gux-modal-container.gux-small{width:var(--gse-ui-modal-small-width);max-height:min(368px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-medium{width:var(--gse-ui-modal-medium-width);max-height:min(640px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-large{width:var(--gse-ui-modal-large-width);max-height:min(640px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-dynamic{max-width:calc(100vw - 48px);max-height:calc(100vh - 48px)}:host dialog .gux-modal-container.gux-dynamic .gux-modal-content{max-height:none}:host dialog .gux-modal-container .gux-modal-header{padding-top:var(--gse-ui-modal-padding);padding-right:var(--gse-ui-modal-padding);padding-left:var(--gse-ui-modal-padding);margin:0;font-family:var(--gse-ui-modal-heading-fontFamily);font-size:var(--gse-ui-modal-heading-fontSize);font-weight:var(--gse-ui-modal-heading-fontWeight);line-height:var(--gse-ui-modal-heading-lineHeight);color:var(--gse-ui-modal-headerColor);letter-spacing:var(--gse-ui-modal-heading-letterSpacing)}:host dialog .gux-modal-container .gux-modal-content{max-height:432px;padding-right:var(--gse-ui-modal-padding);padding-left:var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap);overflow-y:auto}:host dialog .gux-modal-container .gux-button-footer{display:flex;justify-content:space-between;padding-right:var(--gse-ui-modal-padding);padding-bottom:var(--gse-ui-modal-padding);padding-left:var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap)}:host dialog .gux-modal-container .gux-button-footer.gux-no-buttons{display:none}@media (max-width: 416px){:host dialog .gux-modal-container.gux-small,:host dialog .gux-modal-container.gux-medium,:host dialog .gux-modal-container.gux-large{width:100%;height:100%}}";export{n as gux_modal}
1
+ import{r as a,c as o,h as t,g as i}from"./p-2e827df1.js";import{r as e}from"./p-0934300e.js";import{t as d}from"./p-1b65c00a.js";const n=class{constructor(t){a(this,t),this.guxdismiss=o(this,"guxdismiss",7),this.size="dynamic",this.open=!1}syncOpenState(){this.open?this.dialogElement.showModal():this.dialogElement.close()}async showModal(){this.open=!0}async close(){this.open=!1}onKeydown(a){if("Escape"===a.key)return a.preventDefault(),void this.onDismissHandler()}componentWillLoad(){d(this.root,{variant:`${this.size}`})}componentDidLoad(){this.syncOpenState()}hasModalTitleSlot(){return Boolean(this.root.querySelector('[slot="title"]'))}hasFooterButtons(){var a,o;const t=this.root.querySelector('[slot="start-align-buttons"]'),i=this.root.querySelector('[slot="end-align-buttons"]');return Boolean(null===(a=null==t?void 0:t.textContent)||void 0===a?void 0:a.trim())||Boolean(null===(o=null==i?void 0:i.textContent)||void 0===o?void 0:o.trim())}render(){const a=this.hasModalTitleSlot(),o=e();return t("dialog",{key:"e6053f042065f32a73aa833b684a5963ee9d15f0",onClose:this.onCloseHandler.bind(this),ref:a=>this.dialogElement=a,"aria-labelledby":a?o:null},t("div",{key:"bd3dda03b733d751dd03f021a3851809c68e8552",class:`gux-modal-container gux-${this.size}`},t("gux-dismiss-button",{key:"bc41ba8e49d2cd8de1be12e2392967c0a3b092f1",onClick:this.onDismissHandler.bind(this)}),a&&this.renderTitle(o),t("div",{key:"a63862b65648ce1607b419f8865c51072c945e92",class:"gux-modal-content"},t("p",{key:"7255b0a005ad374f49d1c54c3f113238856ba8fd"},t("slot",{key:"2553c414b2589cc10f5cebaff5b31f50910ba994",name:"content"}))),this.renderButtonFooter()))}renderTitle(a){return t("h1",{class:"gux-modal-header",id:a},t("slot",{name:"title"}))}renderButtonFooter(){const a=this.hasFooterButtons();return t("div",{class:{"gux-button-footer":!0,"gux-no-buttons":!a}},t("div",{class:"gux-start-align-buttons"},t("slot",{name:"start-align-buttons"})),t("div",{class:"gux-end-align-buttons"},t("slot",{name:"end-align-buttons"})))}onCloseHandler(){this.guxdismiss.emit()}onDismissHandler(){this.open=!1}static get delegatesFocus(){return!0}get root(){return i(this)}static get watchers(){return{open:["syncOpenState"]}}};n.style="::slotted(button:active:enabled){color:var(--gse-ui-link-active-foregroundColor);text-decoration:underline;background:none}slot[name=start-align-buttons]::slotted(:not(button,gux-button-slot)){display:flex;flex-direction:row;gap:var(--gse-ui-modal-buttonBar-gap);align-content:flex-start;align-items:center}:host dialog{box-sizing:border-box;justify-content:space-between;padding:0;overflow:hidden;border:none;border-radius:var(--gse-ui-modal-borderRadius);box-shadow:var(--gse-ui-modal-boxShadow-x) var(--gse-ui-modal-boxShadow-y) var(--gse-ui-modal-boxShadow-blur) var(--gse-ui-modal-boxShadow-spread) var(--gse-ui-modal-boxShadow-color)}:host dialog::backdrop{background:rgba(77, 97, 130, 0.8)}:host dialog .gux-modal-container{display:flex;flex-direction:column}:host dialog .gux-modal-container.gux-small{width:var(--gse-ui-modal-small-width);max-height:min(368px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-medium{width:var(--gse-ui-modal-medium-width);max-height:min(640px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-large{width:var(--gse-ui-modal-large-width);max-height:min(640px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-dynamic{max-width:calc(100vw - 48px);max-height:calc(100vh - 48px)}:host dialog .gux-modal-container.gux-dynamic .gux-modal-content{max-height:none}:host dialog .gux-modal-container .gux-modal-header{padding-top:var(--gse-ui-modal-padding);padding-right:var(--gse-ui-modal-padding);padding-left:var(--gse-ui-modal-padding);margin:0;font-family:var(--gse-ui-modal-heading-fontFamily);font-size:var(--gse-ui-modal-heading-fontSize);font-weight:var(--gse-ui-modal-heading-fontWeight);line-height:var(--gse-ui-modal-heading-lineHeight);color:var(--gse-ui-modal-headerColor);letter-spacing:var(--gse-ui-modal-heading-letterSpacing)}:host dialog .gux-modal-container .gux-modal-content{max-height:432px;padding-right:var(--gse-ui-modal-padding);padding-left:var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap);overflow-y:auto}:host dialog .gux-modal-container .gux-button-footer{display:flex;justify-content:space-between;padding-right:var(--gse-ui-modal-padding);padding-bottom:var(--gse-ui-modal-padding);padding-left:var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap)}:host dialog .gux-modal-container .gux-button-footer.gux-no-buttons{display:none}@media (max-width: 416px){:host dialog .gux-modal-container.gux-small,:host dialog .gux-modal-container.gux-medium,:host dialog .gux-modal-container.gux-large{width:100%;height:100%}}";export{n as gux_modal}
@@ -1 +1 @@
1
- import{r as o,h as r,g as t}from"./p-2e827df1.js";import{t as e}from"./p-68c084ac.js";const n=class{constructor(r){o(this,r),this.type="button",this.guxTitle=void 0,this.disabled=!1,this.accent="secondary",this.iconOnly=void 0}connectedCallback(){this.slotChanged()}componentWillLoad(){e(this.root,{variant:this.accent})}render(){return r("button",{key:"3022bc5ad8034a69266e8fccbac8a0415574cdba",type:this.type,title:this.guxTitle,disabled:this.disabled,class:{[`gux-${this.accent}`]:!0,"gux-icon-only":this.iconOnly}},r("slot",{key:"02525623e91c00c0a57c3261e5f01854e4f4ecb5",onSlotchange:this.slotChanged.bind(this)}))}stopEventIfDisabled(o){this.disabled&&(o.stopImmediatePropagation(),o.stopPropagation(),o.preventDefault())}makeSlotContentDisableable(){this.root.shadowRoot.addEventListener("click",(o=>this.stopEventIfDisabled(o))),Array.from(this.root.children).forEach((o=>{o.addEventListener("click",(o=>this.stopEventIfDisabled(o)))}))}hasIconOnly(){const o=Array.from(this.root.children);return 1===o.length&&"GUX-ICON"===o[0].tagName}slotChanged(){this.makeSlotContentDisableable(),this.iconOnly=this.hasIconOnly()}static get delegatesFocus(){return!0}get root(){return t(this)}};n.style=":host{display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none}:host(:focus){outline:none}:host(:focus) button{outline:none}::slotted(gux-icon){inline-size:var(--gse-ui-button-icon-size);block-size:var(--gse-ui-button-icon-size)}::slotted(*){padding-inline-start:var(--gse-core-spacing-3xs);vertical-align:middle}::slotted(*:first-child){padding:0}button{font-family:var(--gse-ui-button-text-fontFamily);font-size:var(--gse-ui-button-text-fontSize);font-weight:var(--gse-ui-button-text-fontWeight);line-height:var(--gse-ui-button-text-lineHeight);inline-size:100%;min-inline-size:var(--gse-ui-button-icon-only-width);block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-padding);overflow:hidden;color:var(--gse-ui-button-secondary-default-foregroundColor);text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:var(--gse-ui-button-secondary-default-backgroundColor);border:none;border-radius:var(--gse-ui-button-borderRadius)}button.gux-icon-only{display:inline-flex;padding:var(--gse-ui-button-default-paddingIconOnly)}button[disabled]{cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}button:hover:enabled{color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}button:active:enabled{color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}button:focus-visible:enabled{outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset);border-radius:var(--gse-semantic-focusRing-cornerRadius)}button.gux-primary{color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}button.gux-primary:hover:enabled{color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}button.gux-primary:active:enabled{color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}button.gux-tertiary{color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-color:var(--gse-ui-button-tertiary-default-border-color);border-style:var(--gse-ui-button-tertiary-default-border-style);border-width:var(--gse-ui-button-tertiary-default-border-width)}button.gux-tertiary.gux-icon-only{padding:calc(var(--gse-ui-button-default-paddingIconOnly) - var(--gse-ui-button-tertiary-default-border-width))}button.gux-tertiary:hover:enabled{color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}button.gux-tertiary:active:enabled{color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}button.gux-ghost{color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}button.gux-ghost:hover:enabled{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}button.gux-ghost:active:enabled{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}button.gux-danger{color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}button.gux-danger:hover:enabled{color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}button.gux-danger:active:enabled{color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}button.gux-inline{min-inline-size:initial;block-size:initial;padding:0;color:var(--gse-ui-link-default-foregroundColor);background:none;border:none;border-radius:0}button.gux-inline[disabled]{color:var(--gse-ui-link-disabled-foregroundColor)}button.gux-inline:hover:enabled{color:var(--gse-ui-link-hover-foregroundColor);text-decoration:underline;background:none}button.gux-inline:active:enabled{color:var(--gse-ui-link-active-foregroundColor);text-decoration:underline;background:none}";export{n as gux_button}
1
+ import{r as o,h as r,g as t}from"./p-2e827df1.js";import{t as e}from"./p-1b65c00a.js";const n=class{constructor(r){o(this,r),this.type="button",this.guxTitle=void 0,this.disabled=!1,this.accent="secondary",this.iconOnly=void 0}connectedCallback(){this.slotChanged()}componentWillLoad(){e(this.root,{variant:this.accent})}render(){return r("button",{key:"3022bc5ad8034a69266e8fccbac8a0415574cdba",type:this.type,title:this.guxTitle,disabled:this.disabled,class:{[`gux-${this.accent}`]:!0,"gux-icon-only":this.iconOnly}},r("slot",{key:"02525623e91c00c0a57c3261e5f01854e4f4ecb5",onSlotchange:this.slotChanged.bind(this)}))}stopEventIfDisabled(o){this.disabled&&(o.stopImmediatePropagation(),o.stopPropagation(),o.preventDefault())}makeSlotContentDisableable(){this.root.shadowRoot.addEventListener("click",(o=>this.stopEventIfDisabled(o))),Array.from(this.root.children).forEach((o=>{o.addEventListener("click",(o=>this.stopEventIfDisabled(o)))}))}hasIconOnly(){const o=Array.from(this.root.children);return 1===o.length&&"GUX-ICON"===o[0].tagName}slotChanged(){this.makeSlotContentDisableable(),this.iconOnly=this.hasIconOnly()}static get delegatesFocus(){return!0}get root(){return t(this)}};n.style=":host{display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none}:host(:focus){outline:none}:host(:focus) button{outline:none}::slotted(gux-icon){inline-size:var(--gse-ui-button-icon-size);block-size:var(--gse-ui-button-icon-size)}::slotted(*){padding-inline-start:var(--gse-core-spacing-3xs);vertical-align:middle}::slotted(*:first-child){padding:0}button{font-family:var(--gse-ui-button-text-fontFamily);font-size:var(--gse-ui-button-text-fontSize);font-weight:var(--gse-ui-button-text-fontWeight);line-height:var(--gse-ui-button-text-lineHeight);inline-size:100%;min-inline-size:var(--gse-ui-button-icon-only-width);block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-padding);overflow:hidden;color:var(--gse-ui-button-secondary-default-foregroundColor);text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:var(--gse-ui-button-secondary-default-backgroundColor);border:none;border-radius:var(--gse-ui-button-borderRadius)}button.gux-icon-only{display:inline-flex;padding:var(--gse-ui-button-default-paddingIconOnly)}button[disabled]{cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}button:hover:enabled{color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}button:active:enabled{color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}button:focus-visible:enabled{outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset);border-radius:var(--gse-semantic-focusRing-cornerRadius)}button.gux-primary{color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}button.gux-primary:hover:enabled{color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}button.gux-primary:active:enabled{color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}button.gux-tertiary{color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-color:var(--gse-ui-button-tertiary-default-border-color);border-style:var(--gse-ui-button-tertiary-default-border-style);border-width:var(--gse-ui-button-tertiary-default-border-width)}button.gux-tertiary.gux-icon-only{padding:calc(var(--gse-ui-button-default-paddingIconOnly) - var(--gse-ui-button-tertiary-default-border-width))}button.gux-tertiary:hover:enabled{color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}button.gux-tertiary:active:enabled{color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}button.gux-ghost{color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}button.gux-ghost:hover:enabled{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}button.gux-ghost:active:enabled{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}button.gux-danger{color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}button.gux-danger:hover:enabled{color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}button.gux-danger:active:enabled{color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}button.gux-inline{min-inline-size:initial;block-size:initial;padding:0;color:var(--gse-ui-link-default-foregroundColor);background:none;border:none;border-radius:0}button.gux-inline[disabled]{color:var(--gse-ui-link-disabled-foregroundColor)}button.gux-inline:hover:enabled{color:var(--gse-ui-link-hover-foregroundColor);text-decoration:underline;background:none}button.gux-inline:active:enabled{color:var(--gse-ui-link-active-foregroundColor);text-decoration:underline;background:none}";export{n as gux_button}
@@ -1 +1 @@
1
- import{r as a,f as e,h as t,g as r}from"./p-2e827df1.js";import{b as s}from"./p-0367930a.js";import{t as c}from"./p-68c084ac.js";import"./p-4202e9f2.js";const i={breadcrumbs:"Breadcrumbs"},o=class{constructor(e){a(this,e),this.accent="primary"}componentWillLoad(){c(this.root,{variant:this.accent})}async componentWillRender(){this.i18n=await s(this.root,i)}onSlotChange(){Array.from(this.root.children).forEach((a=>e(a)))}render(){return t("nav",{key:"cd80398b510699e4106c23d9ff371d6cb1ccd7cc","aria-label":this.i18n("breadcrumbs")},t("ol",{key:"fc9defd6e0b44c64c2d42646a01f5e6a8ab0f2c5"},t("slot",{key:"f7c68255a50ce75964be0e7ad9b3ff79f655a606",onSlotchange:this.onSlotChange.bind(this)})))}get root(){return r(this)}};o.style="ol{display:flex;flex-direction:row;flex-wrap:wrap;place-content:flex-start flex-start;align-items:center;padding:0;margin:0;list-style:none}";export{o as gux_breadcrumbs}
1
+ import{r as a,f as e,h as t,g as r}from"./p-2e827df1.js";import{b as s}from"./p-909c2a19.js";import{t as c}from"./p-1b65c00a.js";import"./p-4202e9f2.js";const i={breadcrumbs:"Breadcrumbs"},o=class{constructor(e){a(this,e),this.accent="primary"}componentWillLoad(){c(this.root,{variant:this.accent})}async componentWillRender(){this.i18n=await s(this.root,i)}onSlotChange(){Array.from(this.root.children).forEach((a=>e(a)))}render(){return t("nav",{key:"cd80398b510699e4106c23d9ff371d6cb1ccd7cc","aria-label":this.i18n("breadcrumbs")},t("ol",{key:"fc9defd6e0b44c64c2d42646a01f5e6a8ab0f2c5"},t("slot",{key:"f7c68255a50ce75964be0e7ad9b3ff79f655a606",onSlotchange:this.onSlotChange.bind(this)})))}get root(){return r(this)}};o.style="ol{display:flex;flex-direction:row;flex-wrap:wrap;place-content:flex-start flex-start;align-items:center;padding:0;margin:0;list-style:none}";export{o as gux_breadcrumbs}
@@ -1 +1 @@
1
- import{r as e,h as t,g as a}from"./p-2e827df1.js";import{f as n,a as r}from"./p-9349b5e4.js";import{c as o}from"./p-267e2aed.js";import{g as i,a as s,b as d}from"./p-0367930a.js";import{a as u}from"./p-cf0e7d3b.js";import{l as c}from"./p-8eaf8caf.js";import{s as l}from"./p-2c25e2f2.js";import"./p-4202e9f2.js";function g(e,t){return o(e.toLocaleDateString(t,{year:"numeric",month:"long"}))}const h={previousMonth:"Previous month: {localizedPreviousMonthAndYear}",nextMonth:"Next month: {localizedNextMonthAndYear}"},x=class{constructor(t){e(this,t),this.locale="en",this.MONTH_DATE_COUNT=42,this.focusedValue=void 0,this.minValue=void 0,this.maxValue=void 0}get slottedInput(){return this.root.querySelector('input[type="date"]')}async componentWillLoad(){this.slottedInput||c(this.root,'You must slot a date input element like so: input[type="date"].'),this.locale=i(this.root);const e=this.slottedInput.getAttribute("start-day-of-week");(null==e?void 0:e.length)&&(this.startDayOfWeek=parseInt(e,10)),this.startDayOfWeek=this.startDayOfWeek||s(this.locale),this.i18n=await d(this.root,h),this.slottedInput.value&&(this.focusedValue=n(this.slottedInput.value)),this.slottedInput.min&&(this.minValue=new Date(this.slottedInput.min),this.minValue.setHours(0,0,0,0)),this.slottedInput.max&&(this.maxValue=new Date(this.slottedInput.max),this.maxValue.setHours(0,0,0,0))}onDateClick(e){this.isInvalidDate(e)||(this.focusedValue=new Date(e.getTime()),this.slottedInput.value=r(e),l(this.root,"input"))}setDateAfterArrowKeyPress(e,t){e.preventDefault(),this.focusedValue=new Date(this.getFocusedValue().getFullYear(),this.getFocusedValue().getMonth(),this.getFocusedValue().getDate()+t,0,0,0),u((()=>{this.focusDate()}))}focusDate(){const e=this.root.shadowRoot.querySelector(`.gux-content-date[data-date="${this.focusedValue.getTime()}"]`);e&&e.focus()}onKeyDown(e){switch(e.key){case" ":break;case"Enter":e.preventDefault(),this.onDateClick(this.getFocusedValue()),u((()=>{this.focusDate()}));break;case"ArrowDown":this.setDateAfterArrowKeyPress(e,7);break;case"ArrowUp":this.setDateAfterArrowKeyPress(e,-7);break;case"ArrowLeft":this.setDateAfterArrowKeyPress(e,-1);break;case"ArrowRight":this.setDateAfterArrowKeyPress(e,1);break;case"PageUp":e.preventDefault(),this.setNewFocusedMonth(1),u((()=>{this.focusDate()}));break;case"PageDown":e.preventDefault(),this.setNewFocusedMonth(-1),u((()=>{this.focusDate()}))}}isInvalidDate(e){return this.minValue&&e.getTime()<=this.minValue.getTime()||this.maxValue&&e.getTime()>this.maxValue.getTime()}getMonthDays(){var e,t;const a=(n=this.getFocusedValue(),new Date(n.getFullYear(),n.getMonth(),1,0,0,0));var n;const r=[];let o={dates:[]},i=0;const s=a.getMonth(),d=this.getSelectedValue(),u=function(e,t,a){const n=new Date(t,e,1,0,0,0,0),r=-1*(a-n.getDay()-7)%7,o=new Date(n.getTime()-864e5*r);return o.setHours(0,0,0,0),o}(s,new Date(a.getTime()).getFullYear(),this.startDayOfWeek);for(let a=0;a<this.MONTH_DATE_COUNT+1;a+=1){const a=d.getTime()===u.getTime()&&void 0!==this.focusedValue;i>0&&i%7==0&&(r.push(o),o={dates:[]});const n=this.isInvalidDate(u),c=(null===(e=this.getFocusedValue())||void 0===e?void 0:e.getTime())===u.getTime()&&(null===(t=this.getFocusedValue())||void 0===t?void 0:t.getTime())!==d.getTime(),l=new Date;o.dates.push({date:new Date(u),disabled:n,inCurrentMonth:s===u.getMonth()&&!n,selected:a&&d,focused:c,isCurrentDate:u.getDate()===l.getDate()&&u.getMonth()===l.getMonth()&&u.getFullYear()===l.getFullYear()}),i+=1,u.setDate(u.getDate()+1)}return r}getFocusedValue(){return this.focusedValue?this.focusedValue:this.getSelectedValue()}changeMonth(e){return new Date(this.getFocusedValue().getFullYear(),this.getFocusedValue().getMonth()+e,1,0,0,0)}setNewFocusedMonth(e){this.focusedValue=this.changeMonth(e)}getSelectedValue(){if(this.slottedInput.value)return n(this.slottedInput.value);const e=new Date;return e.setHours(0,0,0,0),e}renderHeader(){return t("div",{class:"gux-header"},t("button",{type:"button",class:"gux-left","aria-label":this.i18n("previousMonth",{localizedPreviousMonthAndYear:g(this.changeMonth(-1),this.locale)}),onClick:()=>this.setNewFocusedMonth(-1)},t("gux-icon",{decorative:!0,"icon-name":"custom/chevron-left-small-regular"})),t("span",{class:"gux-header-month-and-year"},g(this.getFocusedValue(),this.locale)),t("button",{type:"button",class:"gux-right","aria-label":this.i18n("nextMonth",{localizedNextMonthAndYear:g(this.changeMonth(1),this.locale)}),onClick:()=>this.setNewFocusedMonth(1)},t("gux-icon",{decorative:!0,"icon-name":"custom/chevron-right-small-regular"})))}renderContent(){return t("div",null,t("div",{class:"gux-week-days"},function(e,t){const a=[],n=new Date(1970,0,4);for(let t=0;t<7;t++){const t=n.toLocaleString(e,{weekday:"narrow"});a.push(t),n.setDate(n.getDate()+1)}return(r=a).concat(r.splice(0,t%r.length));var r}(this.locale,this.startDayOfWeek).map((e=>t("div",{class:"gux-week-day"},e)))),t("div",{class:"gux-content"},this.getMonthDays().map((e=>t("div",{class:"gux-content-week"},e.dates.map((e=>t("div",{"data-date":e.date.getTime(),onClick:()=>this.onDateClick(e.date),role:"button","aria-current":e.selected?"true":"false",tabindex:e.selected||e.focused?"0":"-1",onKeyDown:e=>{this.onKeyDown(e)},"aria-disabled":e.disabled?"true":"false",class:{"gux-content-date":!0,"gux-disabled":e.disabled,"gux-current-month":e.inCurrentMonth,"gux-selected":e.selected,"gux-current-date":e.isCurrentDate}},t("span",{class:"gux-non-sr","aria-hidden":"true"},e.date.getDate()),t("span",{class:"gux-sr-only"},t("gux-date-beta",{datetime:e.date.toISOString(),format:"long"}))))))))))}render(){return t("div",{key:"e2f9a107ee91621f919e080a6c10341ded7389be",class:"gux-calendar-beta"},t("slot",{key:"f773c2600908c44ff26b2e89e61e1d9afedf4337"}),this.renderHeader(),this.renderContent())}get root(){return a(this)}};x.style=".gux-calendar-beta{box-sizing:border-box;display:inline-flex;flex-direction:column;font-family:var(--gse-ui-calendarMenu-month-defaultText-fontFamily);font-size:var(--gse-ui-calendarMenu-month-defaultText-fontSize);background:var(--gse-ui-calendarMenu-date-selected-foregroundColor);border-radius:var(--gse-ui-calendarMenu-single-body-borderRadius);box-shadow:rgba(34, 37, 41, 0.24) 0 2px 4px}.gux-calendar-beta .gux-header{display:flex;align-items:center;justify-content:space-between;height:var(--gse-ui-calendarMenu-month-single-header-height);padding:var(--gse-ui-calendarMenu-header-padding);font-style:normal;font-weight:var(--gse-ui-calendarMenu-month-currentText-fontWeight);color:var(--gse-ui-calendarMenu-header-foregroundColor);text-align:center;background-color:var(--gse-ui-calendarMenu-header-backgroundColor);border-radius:var(--gse-ui-calendarMenu-single-header-borderRadius)}.gux-calendar-beta .gux-header .gux-header-month-and-year{width:var(--gse-ui-calendarMenu-month-single-header-textWidth);font-family:var(--gse-ui-calendarMenu-month-headerText-fontFamily);font-size:var(--gse-ui-calendarMenu-month-headerText-fontSize);line-height:var(--gse-ui-calendarMenu-month-headerText-lineHeight);color:var(--gse-ui-calendarMenu-month-selected-foregroundColor)}.gux-calendar-beta .gux-header .gux-left,.gux-calendar-beta .gux-header .gux-right{color:var(--gse-ui-calendarMenu-month-monthHeader-foregroundColor);cursor:pointer;background:none;border:none;outline:none}.gux-calendar-beta .gux-header .gux-left:focus-visible,.gux-calendar-beta .gux-header .gux-right:focus-visible{outline:2px solid #aac9ff;outline-offset:1px}.gux-calendar-beta .gux-header .gux-left gux-icon,.gux-calendar-beta .gux-header .gux-right gux-icon{width:16px;height:16px}.gux-calendar-beta .gux-week-days{padding-top:24px;padding-right:24px;padding-left:24px;font-family:var(--gse-ui-calendarMenu-day-headerText-fontFamily);font-size:var(--gse-ui-calendarMenu-day-headerText-fontSize);font-weight:var(--gse-ui-calendarMenu-day-headerText-fontWeight);color:var(--gse-ui-calendarMenu-day-dayHeader-foregroundColor);text-align:center}.gux-calendar-beta .gux-week-days .gux-week-day{display:inline-block;width:var(--gse-ui-calendarMenu-day-date-size);height:16px;font-weight:var(--gse-ui-calendarMenu-day-header-fontWeight)}.gux-calendar-beta .gux-content{padding:var(--gse-ui-calendarMenu-dateBody-padding);color:var(--gse-core-color-cornflower-900);background-color:var(--gse-ui-calendarMenu-backgroundColor);border-radius:var(--gse-ui-calendarMenu-single-body-borderRadius)}.gux-calendar-beta .gux-content-week .gux-content-date{display:inline-block;width:var(--gse-ui-calendarMenu-day-date-size);height:var(--gse-ui-calendarMenu-day-input-height);font-family:var(--gse-ui-calendarMenu-date-currentText-fontFamily);font-size:var(--gse-ui-calendarMenu-date-defaultText-fontSize);font-style:normal;font-weight:var(--gse-ui-calendarMenu-date-defaultText-fontWeight);line-height:32px;color:var(--gse-core-color-cornflower-600);text-align:center;vertical-align:middle;border:none;outline:none;opacity:var(--gse-ui-calendarMenu-disabled-opacity)}.gux-calendar-beta .gux-content-week .gux-content-date.gux-current-month{color:var(--gse-ui-calendarMenu-month-default-foregroundColor);opacity:1}.gux-calendar-beta .gux-content-week .gux-content-date.gux-hidden{display:none}.gux-calendar-beta .gux-content-week .gux-content-date.gux-disabled{pointer-events:none}.gux-calendar-beta .gux-content-week .gux-content-date.gux-selected{color:var(--gse-ui-calendarMenu-date-selected-foregroundColor);background-color:var(--gse-ui-calendarMenu-date-selected-backgroundColor);border:none;border-radius:var(--gse-ui-calendarMenu-month-borderRadius);outline:none}.gux-calendar-beta .gux-content-week .gux-content-date.gux-selected:hover{background-color:var(--gse-ui-calendarMenu-date-selected-hoverBackgroundColor)}.gux-calendar-beta .gux-content-week .gux-content-date:hover{cursor:pointer;background-color:var(--gse-ui-calendarMenu-date-hover-backgroundColor);border-radius:var(--gse-ui-calendarMenu-month-borderRadius)}.gux-calendar-beta .gux-content-week .gux-content-date:focus-visible{border-radius:var(--gse-ui-calendarMenu-month-focusBorderRadius);outline:var(--gse-semantic-focusRing-default-border-width) solid var(--gse-semantic-focusRing-default-border-color)}.gux-calendar-beta .gux-content-week .gux-content-date .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-calendar-beta .gux-content-week .gux-content-date.gux-current-date{font-family:var(--gse-ui-calendarMenu-month-currentText-fontFamily);font-size:var(--gse-ui-calendarMenu-date-currentText-fontSize);font-weight:var(--gse-ui-calendarMenu-date-currentText-fontWeight)}";export{x as gux_calendar_beta}
1
+ import{r as e,h as t,g as a}from"./p-2e827df1.js";import{f as n,a as r}from"./p-9349b5e4.js";import{c as o}from"./p-267e2aed.js";import{g as i,a as s,b as d}from"./p-909c2a19.js";import{a as u}from"./p-cf0e7d3b.js";import{l as c}from"./p-8eaf8caf.js";import{s as l}from"./p-2c25e2f2.js";import"./p-4202e9f2.js";function g(e,t){return o(e.toLocaleDateString(t,{year:"numeric",month:"long"}))}const h={previousMonth:"Previous month: {localizedPreviousMonthAndYear}",nextMonth:"Next month: {localizedNextMonthAndYear}"},x=class{constructor(t){e(this,t),this.locale="en",this.MONTH_DATE_COUNT=42,this.focusedValue=void 0,this.minValue=void 0,this.maxValue=void 0}get slottedInput(){return this.root.querySelector('input[type="date"]')}async componentWillLoad(){this.slottedInput||c(this.root,'You must slot a date input element like so: input[type="date"].'),this.locale=i(this.root);const e=this.slottedInput.getAttribute("start-day-of-week");(null==e?void 0:e.length)&&(this.startDayOfWeek=parseInt(e,10)),this.startDayOfWeek=this.startDayOfWeek||s(this.locale),this.i18n=await d(this.root,h),this.slottedInput.value&&(this.focusedValue=n(this.slottedInput.value)),this.slottedInput.min&&(this.minValue=new Date(this.slottedInput.min),this.minValue.setHours(0,0,0,0)),this.slottedInput.max&&(this.maxValue=new Date(this.slottedInput.max),this.maxValue.setHours(0,0,0,0))}onDateClick(e){this.isInvalidDate(e)||(this.focusedValue=new Date(e.getTime()),this.slottedInput.value=r(e),l(this.root,"input"))}setDateAfterArrowKeyPress(e,t){e.preventDefault(),this.focusedValue=new Date(this.getFocusedValue().getFullYear(),this.getFocusedValue().getMonth(),this.getFocusedValue().getDate()+t,0,0,0),u((()=>{this.focusDate()}))}focusDate(){const e=this.root.shadowRoot.querySelector(`.gux-content-date[data-date="${this.focusedValue.getTime()}"]`);e&&e.focus()}onKeyDown(e){switch(e.key){case" ":break;case"Enter":e.preventDefault(),this.onDateClick(this.getFocusedValue()),u((()=>{this.focusDate()}));break;case"ArrowDown":this.setDateAfterArrowKeyPress(e,7);break;case"ArrowUp":this.setDateAfterArrowKeyPress(e,-7);break;case"ArrowLeft":this.setDateAfterArrowKeyPress(e,-1);break;case"ArrowRight":this.setDateAfterArrowKeyPress(e,1);break;case"PageUp":e.preventDefault(),this.setNewFocusedMonth(1),u((()=>{this.focusDate()}));break;case"PageDown":e.preventDefault(),this.setNewFocusedMonth(-1),u((()=>{this.focusDate()}))}}isInvalidDate(e){return this.minValue&&e.getTime()<=this.minValue.getTime()||this.maxValue&&e.getTime()>this.maxValue.getTime()}getMonthDays(){var e,t;const a=(n=this.getFocusedValue(),new Date(n.getFullYear(),n.getMonth(),1,0,0,0));var n;const r=[];let o={dates:[]},i=0;const s=a.getMonth(),d=this.getSelectedValue(),u=function(e,t,a){const n=new Date(t,e,1,0,0,0,0),r=-1*(a-n.getDay()-7)%7,o=new Date(n.getTime()-864e5*r);return o.setHours(0,0,0,0),o}(s,new Date(a.getTime()).getFullYear(),this.startDayOfWeek);for(let a=0;a<this.MONTH_DATE_COUNT+1;a+=1){const a=d.getTime()===u.getTime()&&void 0!==this.focusedValue;i>0&&i%7==0&&(r.push(o),o={dates:[]});const n=this.isInvalidDate(u),c=(null===(e=this.getFocusedValue())||void 0===e?void 0:e.getTime())===u.getTime()&&(null===(t=this.getFocusedValue())||void 0===t?void 0:t.getTime())!==d.getTime(),l=new Date;o.dates.push({date:new Date(u),disabled:n,inCurrentMonth:s===u.getMonth()&&!n,selected:a&&d,focused:c,isCurrentDate:u.getDate()===l.getDate()&&u.getMonth()===l.getMonth()&&u.getFullYear()===l.getFullYear()}),i+=1,u.setDate(u.getDate()+1)}return r}getFocusedValue(){return this.focusedValue?this.focusedValue:this.getSelectedValue()}changeMonth(e){return new Date(this.getFocusedValue().getFullYear(),this.getFocusedValue().getMonth()+e,1,0,0,0)}setNewFocusedMonth(e){this.focusedValue=this.changeMonth(e)}getSelectedValue(){if(this.slottedInput.value)return n(this.slottedInput.value);const e=new Date;return e.setHours(0,0,0,0),e}renderHeader(){return t("div",{class:"gux-header"},t("button",{type:"button",class:"gux-left","aria-label":this.i18n("previousMonth",{localizedPreviousMonthAndYear:g(this.changeMonth(-1),this.locale)}),onClick:()=>this.setNewFocusedMonth(-1)},t("gux-icon",{decorative:!0,"icon-name":"custom/chevron-left-small-regular"})),t("span",{class:"gux-header-month-and-year"},g(this.getFocusedValue(),this.locale)),t("button",{type:"button",class:"gux-right","aria-label":this.i18n("nextMonth",{localizedNextMonthAndYear:g(this.changeMonth(1),this.locale)}),onClick:()=>this.setNewFocusedMonth(1)},t("gux-icon",{decorative:!0,"icon-name":"custom/chevron-right-small-regular"})))}renderContent(){return t("div",null,t("div",{class:"gux-week-days"},function(e,t){const a=[],n=new Date(1970,0,4);for(let t=0;t<7;t++){const t=n.toLocaleString(e,{weekday:"narrow"});a.push(t),n.setDate(n.getDate()+1)}return(r=a).concat(r.splice(0,t%r.length));var r}(this.locale,this.startDayOfWeek).map((e=>t("div",{class:"gux-week-day"},e)))),t("div",{class:"gux-content"},this.getMonthDays().map((e=>t("div",{class:"gux-content-week"},e.dates.map((e=>t("div",{"data-date":e.date.getTime(),onClick:()=>this.onDateClick(e.date),role:"button","aria-current":e.selected?"true":"false",tabindex:e.selected||e.focused?"0":"-1",onKeyDown:e=>{this.onKeyDown(e)},"aria-disabled":e.disabled?"true":"false",class:{"gux-content-date":!0,"gux-disabled":e.disabled,"gux-current-month":e.inCurrentMonth,"gux-selected":e.selected,"gux-current-date":e.isCurrentDate}},t("span",{class:"gux-non-sr","aria-hidden":"true"},e.date.getDate()),t("span",{class:"gux-sr-only"},t("gux-date-beta",{datetime:e.date.toISOString(),format:"long"}))))))))))}render(){return t("div",{key:"e2f9a107ee91621f919e080a6c10341ded7389be",class:"gux-calendar-beta"},t("slot",{key:"f773c2600908c44ff26b2e89e61e1d9afedf4337"}),this.renderHeader(),this.renderContent())}get root(){return a(this)}};x.style=".gux-calendar-beta{box-sizing:border-box;display:inline-flex;flex-direction:column;font-family:var(--gse-ui-calendarMenu-month-defaultText-fontFamily);font-size:var(--gse-ui-calendarMenu-month-defaultText-fontSize);background:var(--gse-ui-calendarMenu-date-selected-foregroundColor);border-radius:var(--gse-ui-calendarMenu-single-body-borderRadius);box-shadow:rgba(34, 37, 41, 0.24) 0 2px 4px}.gux-calendar-beta .gux-header{display:flex;align-items:center;justify-content:space-between;height:var(--gse-ui-calendarMenu-month-single-header-height);padding:var(--gse-ui-calendarMenu-header-padding);font-style:normal;font-weight:var(--gse-ui-calendarMenu-month-currentText-fontWeight);color:var(--gse-ui-calendarMenu-header-foregroundColor);text-align:center;background-color:var(--gse-ui-calendarMenu-header-backgroundColor);border-radius:var(--gse-ui-calendarMenu-single-header-borderRadius)}.gux-calendar-beta .gux-header .gux-header-month-and-year{width:var(--gse-ui-calendarMenu-month-single-header-textWidth);font-family:var(--gse-ui-calendarMenu-month-headerText-fontFamily);font-size:var(--gse-ui-calendarMenu-month-headerText-fontSize);line-height:var(--gse-ui-calendarMenu-month-headerText-lineHeight);color:var(--gse-ui-calendarMenu-month-selected-foregroundColor)}.gux-calendar-beta .gux-header .gux-left,.gux-calendar-beta .gux-header .gux-right{color:var(--gse-ui-calendarMenu-month-monthHeader-foregroundColor);cursor:pointer;background:none;border:none;outline:none}.gux-calendar-beta .gux-header .gux-left:focus-visible,.gux-calendar-beta .gux-header .gux-right:focus-visible{outline:2px solid #aac9ff;outline-offset:1px}.gux-calendar-beta .gux-header .gux-left gux-icon,.gux-calendar-beta .gux-header .gux-right gux-icon{width:16px;height:16px}.gux-calendar-beta .gux-week-days{padding-top:24px;padding-right:24px;padding-left:24px;font-family:var(--gse-ui-calendarMenu-day-headerText-fontFamily);font-size:var(--gse-ui-calendarMenu-day-headerText-fontSize);font-weight:var(--gse-ui-calendarMenu-day-headerText-fontWeight);color:var(--gse-ui-calendarMenu-day-dayHeader-foregroundColor);text-align:center}.gux-calendar-beta .gux-week-days .gux-week-day{display:inline-block;width:var(--gse-ui-calendarMenu-day-date-size);height:16px;font-weight:var(--gse-ui-calendarMenu-day-header-fontWeight)}.gux-calendar-beta .gux-content{padding:var(--gse-ui-calendarMenu-dateBody-padding);color:var(--gse-core-color-cornflower-900);background-color:var(--gse-ui-calendarMenu-backgroundColor);border-radius:var(--gse-ui-calendarMenu-single-body-borderRadius)}.gux-calendar-beta .gux-content-week .gux-content-date{display:inline-block;width:var(--gse-ui-calendarMenu-day-date-size);height:var(--gse-ui-calendarMenu-day-input-height);font-family:var(--gse-ui-calendarMenu-date-currentText-fontFamily);font-size:var(--gse-ui-calendarMenu-date-defaultText-fontSize);font-style:normal;font-weight:var(--gse-ui-calendarMenu-date-defaultText-fontWeight);line-height:32px;color:var(--gse-core-color-cornflower-600);text-align:center;vertical-align:middle;border:none;outline:none;opacity:var(--gse-ui-calendarMenu-disabled-opacity)}.gux-calendar-beta .gux-content-week .gux-content-date.gux-current-month{color:var(--gse-ui-calendarMenu-month-default-foregroundColor);opacity:1}.gux-calendar-beta .gux-content-week .gux-content-date.gux-hidden{display:none}.gux-calendar-beta .gux-content-week .gux-content-date.gux-disabled{pointer-events:none}.gux-calendar-beta .gux-content-week .gux-content-date.gux-selected{color:var(--gse-ui-calendarMenu-date-selected-foregroundColor);background-color:var(--gse-ui-calendarMenu-date-selected-backgroundColor);border:none;border-radius:var(--gse-ui-calendarMenu-month-borderRadius);outline:none}.gux-calendar-beta .gux-content-week .gux-content-date.gux-selected:hover{background-color:var(--gse-ui-calendarMenu-date-selected-hoverBackgroundColor)}.gux-calendar-beta .gux-content-week .gux-content-date:hover{cursor:pointer;background-color:var(--gse-ui-calendarMenu-date-hover-backgroundColor);border-radius:var(--gse-ui-calendarMenu-month-borderRadius)}.gux-calendar-beta .gux-content-week .gux-content-date:focus-visible{border-radius:var(--gse-ui-calendarMenu-month-focusBorderRadius);outline:var(--gse-semantic-focusRing-default-border-width) solid var(--gse-semantic-focusRing-default-border-color)}.gux-calendar-beta .gux-content-week .gux-content-date .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-calendar-beta .gux-content-week .gux-content-date.gux-current-date{font-family:var(--gse-ui-calendarMenu-month-currentText-fontFamily);font-size:var(--gse-ui-calendarMenu-date-currentText-fontSize);font-weight:var(--gse-ui-calendarMenu-date-currentText-fontWeight)}";export{x as gux_calendar_beta}
@@ -1 +1 @@
1
- import{r as e,h as t,H as s,g as o}from"./p-2e827df1.js";import{a as i}from"./p-cf0e7d3b.js";import{e as n}from"./p-ea5e1b2f.js";import{r as a}from"./p-0934300e.js";import{b as r}from"./p-0367930a.js";import{t as u}from"./p-408d5857.js";import"./p-4202e9f2.js";const l=class{constructor(t){e(this,t),this.dropdownOptionsButtonId=a("gux-table-select-menu"),this.hasSelectMenuOptions=!1,this.dropdownDisabled=!1,this.popoverHidden=!0}focusFirstItemInPopupList(){const e=this.root.querySelector("gux-list");i((()=>{null==e||e.guxFocusFirstItem()}))}async componentWillLoad(){this.hasSelectMenuOptions=!!this.root.querySelector('[slot="select-menu-options"]'),this.i18n=await r(this.root,u,"gux-table")}onKeydown(e){var t;switch(e.key){case"ArrowDown":n(".gux-select-menu-button",e)&&(this.toggleOptions(),this.focusFirstItemInPopupList());break;case"Enter":n(".gux-select-menu-button",e)&&this.focusFirstItemInPopupList();break;case"Escape":n("gux-list",e)&&(e.stopPropagation(),this.popoverHidden=!0,null===(t=this.tableSelectMenuButtonElement)||void 0===t||t.focus());break;case"Tab":this.popoverHidden=!0}}onKeyup(e){" "===e.key&&n(".gux-select-menu-button",e)&&this.focusFirstItemInPopupList()}toggleOptions(){this.popoverHidden=!this.popoverHidden}renderSelectDropdown(){if(this.hasSelectMenuOptions)return[t("button",{id:this.dropdownOptionsButtonId,"aria-haspopup":"listbox","aria-expanded":(!this.popoverHidden).toString(),type:"button",class:"gux-select-menu-button",ref:e=>this.tableSelectMenuButtonElement=e,onClick:()=>this.toggleOptions(),disabled:this.dropdownDisabled},t("gux-icon",{"icon-name":"custom/chevron-down-small-regular","screenreader-text":this.i18n("tableOptions")})),t("gux-popover-list",{for:this.dropdownOptionsButtonId,isOpen:!this.popoverHidden,closeOnClickOutside:!0,onGuxdismiss:()=>this.popoverHidden=!0},t("div",null,t("slot",{name:"select-menu-options"})))]}render(){return t(s,{key:"9107fadb474226270828c79c83a375b9215c7416"},t("slot",{key:"590fd03a638af10cf7224a2c1e35d07e1efcad45"}),this.renderSelectDropdown())}get root(){return o(this)}};l.style="gux-table-select-menu{display:inline-flex;font-family:var(--gse-ui-popover-body-text-fontFamily);font-size:var(--gse-ui-popover-body-text-fontSize);font-weight:var(--gse-ui-popover-body-text-fontWeight);line-height:var(--gse-ui-popover-body-text-lineHeight)}gux-table-select-menu .gux-select-menu-button{padding:0;margin-left:var(--gse-ui-dataTableItems-header-gap);color:var(--gse-ui-dataTableItems-cell-chevron-foregroundColor);background-color:inherit;border:none;outline:none}gux-table-select-menu .gux-select-menu-button:focus-visible{outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset);border-radius:4px}gux-table-select-menu .gux-select-menu-button gux-icon{width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm)}";export{l as gux_table_select_menu}
1
+ import{r as e,h as t,H as s,g as o}from"./p-2e827df1.js";import{a as i}from"./p-cf0e7d3b.js";import{e as n}from"./p-ea5e1b2f.js";import{r as a}from"./p-0934300e.js";import{b as r}from"./p-909c2a19.js";import{t as u}from"./p-408d5857.js";import"./p-4202e9f2.js";const l=class{constructor(t){e(this,t),this.dropdownOptionsButtonId=a("gux-table-select-menu"),this.hasSelectMenuOptions=!1,this.dropdownDisabled=!1,this.popoverHidden=!0}focusFirstItemInPopupList(){const e=this.root.querySelector("gux-list");i((()=>{null==e||e.guxFocusFirstItem()}))}async componentWillLoad(){this.hasSelectMenuOptions=!!this.root.querySelector('[slot="select-menu-options"]'),this.i18n=await r(this.root,u,"gux-table")}onKeydown(e){var t;switch(e.key){case"ArrowDown":n(".gux-select-menu-button",e)&&(this.toggleOptions(),this.focusFirstItemInPopupList());break;case"Enter":n(".gux-select-menu-button",e)&&this.focusFirstItemInPopupList();break;case"Escape":n("gux-list",e)&&(e.stopPropagation(),this.popoverHidden=!0,null===(t=this.tableSelectMenuButtonElement)||void 0===t||t.focus());break;case"Tab":this.popoverHidden=!0}}onKeyup(e){" "===e.key&&n(".gux-select-menu-button",e)&&this.focusFirstItemInPopupList()}toggleOptions(){this.popoverHidden=!this.popoverHidden}renderSelectDropdown(){if(this.hasSelectMenuOptions)return[t("button",{id:this.dropdownOptionsButtonId,"aria-haspopup":"listbox","aria-expanded":(!this.popoverHidden).toString(),type:"button",class:"gux-select-menu-button",ref:e=>this.tableSelectMenuButtonElement=e,onClick:()=>this.toggleOptions(),disabled:this.dropdownDisabled},t("gux-icon",{"icon-name":"custom/chevron-down-small-regular","screenreader-text":this.i18n("tableOptions")})),t("gux-popover-list",{for:this.dropdownOptionsButtonId,isOpen:!this.popoverHidden,closeOnClickOutside:!0,onGuxdismiss:()=>this.popoverHidden=!0},t("div",null,t("slot",{name:"select-menu-options"})))]}render(){return t(s,{key:"9107fadb474226270828c79c83a375b9215c7416"},t("slot",{key:"590fd03a638af10cf7224a2c1e35d07e1efcad45"}),this.renderSelectDropdown())}get root(){return o(this)}};l.style="gux-table-select-menu{display:inline-flex;font-family:var(--gse-ui-popover-body-text-fontFamily);font-size:var(--gse-ui-popover-body-text-fontSize);font-weight:var(--gse-ui-popover-body-text-fontWeight);line-height:var(--gse-ui-popover-body-text-lineHeight)}gux-table-select-menu .gux-select-menu-button{padding:0;margin-left:var(--gse-ui-dataTableItems-header-gap);color:var(--gse-ui-dataTableItems-cell-chevron-foregroundColor);background-color:inherit;border:none;outline:none}gux-table-select-menu .gux-select-menu-button:focus-visible{outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset);border-radius:4px}gux-table-select-menu .gux-select-menu-button gux-icon{width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm)}";export{l as gux_table_select_menu}
@@ -1 +1 @@
1
- import{r as s,h as e,H as t,g as a}from"./p-2e827df1.js";import{l as r,n as o,f as c,p as i,b as n,c as d}from"./p-8d73b418.js";import{t as u}from"./p-68c084ac.js";const l=["gux-list-item"],p=class{constructor(e){s(this,e)}componentWillLoad(){u(this.root)}onKeyDown(s){switch(s.key){case"ArrowUp":s.preventDefault(),i(this.root,l);break;case"Home":s.preventDefault(),c(this.root,l);break;case"ArrowDown":s.preventDefault(),o(this.root,l);break;case"End":s.preventDefault(),r(this.root,l)}}async guxFocusFirstItem(){c(this.root,l)}async guxFocusItemById(s){n(this.root,l,s)}async guxFocusItemByClosestId(s){d(this.root,l,s)}async guxFocusLastItem(){r(this.root,l)}renderFocusTarget(){return e("span",{tabindex:"-1","aria-hidden":"true"})}render(){return e(t,{key:"275ba18ca6a67097ce38d16e6b12ae7c2b19d5fb",role:"list"},this.renderFocusTarget(),e("slot",{key:"324346580a4007be1eee22b0603bc5e31ac5d2a7"}))}static get delegatesFocus(){return!0}get root(){return a(this)}};p.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{p as gux_list}
1
+ import{r as s,h as e,H as t,g as a}from"./p-2e827df1.js";import{l as r,n as o,f as i,p as c,b as n,c as d}from"./p-8d73b418.js";import{t as u}from"./p-1b65c00a.js";const l=["gux-list-item"],p=class{constructor(e){s(this,e)}componentWillLoad(){u(this.root)}onKeyDown(s){switch(s.key){case"ArrowUp":s.preventDefault(),c(this.root,l);break;case"Home":s.preventDefault(),i(this.root,l);break;case"ArrowDown":s.preventDefault(),o(this.root,l);break;case"End":s.preventDefault(),r(this.root,l)}}async guxFocusFirstItem(){i(this.root,l)}async guxFocusItemById(s){n(this.root,l,s)}async guxFocusItemByClosestId(s){d(this.root,l,s)}async guxFocusLastItem(){r(this.root,l)}renderFocusTarget(){return e("span",{tabindex:"-1","aria-hidden":"true"})}render(){return e(t,{key:"275ba18ca6a67097ce38d16e6b12ae7c2b19d5fb",role:"list"},this.renderFocusTarget(),e("slot",{key:"324346580a4007be1eee22b0603bc5e31ac5d2a7"}))}static get delegatesFocus(){return!0}get root(){return a(this)}};p.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{p as gux_list}
@@ -1 +1 @@
1
- import{r as e,c as t,h as s,g as i}from"./p-2e827df1.js";import{b as a}from"./p-0367930a.js";import{r as o}from"./p-0934300e.js";import{t as r}from"./p-408d5857.js";import"./p-4202e9f2.js";const c=class{constructor(s){e(this,s),this.internalrowselectchange=t(this,"internalrowselectchange",7),this.id=o("gux-row-select"),this.selected=!1,this.disabled=void 0}onCheck(e){e.stopPropagation(),this.selected=this.inputElement.checked,this.internalrowselectchange.emit(this.inputElement.checked)}async componentWillLoad(){this.i18n=await a(this.root,r,"gux-table")}render(){return s("gux-form-field-checkbox",{key:"65c6a79ee4638fd2e28e1d417670a73f230a5fae","label-position":"screenreader"},s("input",{key:"6f7d1e0f2aa0552116a2534601f0ee95dad20c18",ref:e=>this.inputElement=e,slot:"input",id:this.id,type:"checkbox",checked:this.selected,disabled:this.disabled}),s("label",{key:"68491ed913f7d702d03f12496c3fd1c3193e2a7a",slot:"label",htmlFor:this.id},"​",s("span",{key:"83612c1f216d48b1545570e0c4a0a73c32fee528"},this.i18n("selectTableRow"))))}get root(){return i(this)}};c.style=":host{display:flex;flex-direction:row;justify-content:center}";export{c as gux_row_select}
1
+ import{r as e,c as t,h as s,g as i}from"./p-2e827df1.js";import{b as a}from"./p-909c2a19.js";import{r as o}from"./p-0934300e.js";import{t as r}from"./p-408d5857.js";import"./p-4202e9f2.js";const c=class{constructor(s){e(this,s),this.internalrowselectchange=t(this,"internalrowselectchange",7),this.id=o("gux-row-select"),this.selected=!1,this.disabled=void 0}onCheck(e){e.stopPropagation(),this.selected=this.inputElement.checked,this.internalrowselectchange.emit(this.inputElement.checked)}async componentWillLoad(){this.i18n=await a(this.root,r,"gux-table")}render(){return s("gux-form-field-checkbox",{key:"65c6a79ee4638fd2e28e1d417670a73f230a5fae","label-position":"screenreader"},s("input",{key:"6f7d1e0f2aa0552116a2534601f0ee95dad20c18",ref:e=>this.inputElement=e,slot:"input",id:this.id,type:"checkbox",checked:this.selected,disabled:this.disabled}),s("label",{key:"68491ed913f7d702d03f12496c3fd1c3193e2a7a",slot:"label",htmlFor:this.id},"​",s("span",{key:"83612c1f216d48b1545570e0c4a0a73c32fee528"},this.i18n("selectTableRow"))))}get root(){return i(this)}};c.style=":host{display:flex;flex-direction:row;justify-content:center}";export{c as gux_row_select}
@@ -1 +1 @@
1
- import{r as e,h as t,H as o,g as s}from"./p-2e827df1.js";import{a as i,c as r,o as a,f as n,s as d,b as c}from"./p-b43ee47b.js";import{a as h}from"./p-cf0e7d3b.js";import{t as u}from"./p-68c084ac.js";import{h as l}from"./p-67d20704.js";const p=class{constructor(t){e(this,t),this.isShown=!1}onKeydown(e){if(e.stopPropagation(),this.isShown)switch(e.key){case"Escape":case"ArrowLeft":case"ArrowUp":return void this.root.focus();case"ArrowDown":return e.preventDefault(),void this.focusOnMenu();case"Enter":return void(this.hideDelayTimeout=h((()=>{this.focusOnMenu()})))}}onKeyup(e){e.stopPropagation()," "!==e.key||(this.root===e.target?this.focusOnMenu():this.hideDelayTimeout=h((()=>{this.root.focus()})))}onmouseenter(){this.show()}onMouseleave(){this.hide()}onClick(e){0!==e.detail&&this.hide(),this.root.focus()}onFocusin(){this.show()}onFocusout(){this.hide()}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0}hide(){this.isShown&&(this.hideDelayTimeout=setTimeout((()=>{this.isShown=!1}),l))}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=i(this.targetElement,this.menuContentElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.root&&r(this.targetElement,this.menuContentElement,{placement:"bottom-start",strategy:"fixed",middleware:[a(16),n(),d(),c({element:this.arrowElement,padding:16})]}).then((({x:e,y:t,middlewareData:o,placement:s})=>{var i;Object.assign(this.menuContentElement.style,{left:`${e}px`,top:`${t}px`});const r=s.split("-")[0],a={top:"bottom",right:"left",bottom:"top",left:"right"}[r],n={top:0,right:90,bottom:180,left:-90}[r];if(o.arrow){const{x:e,y:t}=o.arrow;Object.assign(null===(i=this.arrowElement)||void 0===i?void 0:i.style,{left:null!=e?`${e}px`:"",top:null!=t?`${t}px`:"",right:"",bottom:"",[a]:"-13px",transform:`rotate(${n}deg)`})}}))}focusOnMenu(){if(this.menuContentElement.contains(document.activeElement))return;const e=this.root.querySelector("gux-menu");Array.from(e.children)[0].guxFocus()}componentWillLoad(){u(this.root)}componentDidLoad(){this.isShown&&this.runUpdatePosition()}componentDidUpdate(){this.isShown?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return t(o,{key:"96edfa3ebf5be5afe504e370c2a14cfd2daef2e8",tabIndex:0,"aria-haspopup":"true"},t("span",{key:"e0d36d479bef1cbc9da0e256b99d2548ed333809",ref:e=>this.targetElement=e},t("slot",{key:"b824bb2babaf66719c69ab878a9562ba17e59ac1",name:"target"})),t("div",{key:"bf772250442e633fdd2334bb90beafcdf8269563",class:{"gux-flyout-menu-content":!0,"gux-shown":this.isShown},ref:e=>this.menuContentElement=e},t("div",{key:"c2cd14ed5b78d0a1632851cc113ffdc50528716b",ref:e=>this.arrowElement=e,class:"gux-arrow"},t("div",{key:"adfe1a13efbd5e7eaa58e5382dad50a7d00c99c6",class:"gux-arrow-caret"})),t("slot",{key:"1e90344b959b1bcfc73a4a74c7c61e50a65d4a53",name:"menu"})))}get root(){return s(this)}};p.style=":host{z-index:var(--gse-semantic-zIndex-popover);color:var(--gse-ui-menu-option-label-foregroundColor);cursor:default}:host(:focus){outline:none}:host(:focus-visible){outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-flyout-menu-content{position:fixed;display:none;border:none;border-radius:var(--gse-ui-menu-borderRadius)}.gux-flyout-menu-content.gux-shown{display:flex}.gux-flyout-menu-content .gux-arrow{position:absolute;width:var(--gse-ui-popover-anchor-width);height:var(--gse-ui-popover-anchor-height);padding-bottom:4px;overflow:hidden}.gux-flyout-menu-content .gux-arrow-caret{width:0;height:0;filter:drop-shadow(var(--gse-ui-popover-boxShadow-x) var(--gse-ui-popover-boxShadow-y) calc(var(--gse-ui-popover-boxShadow-blur) / 2) var(--gse-ui-tooltip-boxShadow-color));border-top:calc(var(--gse-ui-popover-anchor-width) / 2) solid var(--gse-ui-popover-backgroundColor);border-right:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;border-left:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent}";export{p as gux_flyout_menu}
1
+ import{r as e,h as t,H as o,g as s}from"./p-2e827df1.js";import{a as i,c as r,o as a,f as n,s as d,b as c}from"./p-b43ee47b.js";import{a as h}from"./p-cf0e7d3b.js";import{t as u}from"./p-1b65c00a.js";import{h as l}from"./p-67d20704.js";const p=class{constructor(t){e(this,t),this.isShown=!1}onKeydown(e){if(e.stopPropagation(),this.isShown)switch(e.key){case"Escape":case"ArrowLeft":case"ArrowUp":return void this.root.focus();case"ArrowDown":return e.preventDefault(),void this.focusOnMenu();case"Enter":return void(this.hideDelayTimeout=h((()=>{this.focusOnMenu()})))}}onKeyup(e){e.stopPropagation()," "!==e.key||(this.root===e.target?this.focusOnMenu():this.hideDelayTimeout=h((()=>{this.root.focus()})))}onmouseenter(){this.show()}onMouseleave(){this.hide()}onClick(e){0!==e.detail&&this.hide(),this.root.focus()}onFocusin(){this.show()}onFocusout(){this.hide()}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0}hide(){this.isShown&&(this.hideDelayTimeout=setTimeout((()=>{this.isShown=!1}),l))}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=i(this.targetElement,this.menuContentElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.root&&r(this.targetElement,this.menuContentElement,{placement:"bottom-start",strategy:"fixed",middleware:[a(16),n(),d(),c({element:this.arrowElement,padding:16})]}).then((({x:e,y:t,middlewareData:o,placement:s})=>{var i;Object.assign(this.menuContentElement.style,{left:`${e}px`,top:`${t}px`});const r=s.split("-")[0],a={top:"bottom",right:"left",bottom:"top",left:"right"}[r],n={top:0,right:90,bottom:180,left:-90}[r];if(o.arrow){const{x:e,y:t}=o.arrow;Object.assign(null===(i=this.arrowElement)||void 0===i?void 0:i.style,{left:null!=e?`${e}px`:"",top:null!=t?`${t}px`:"",right:"",bottom:"",[a]:"-13px",transform:`rotate(${n}deg)`})}}))}focusOnMenu(){if(this.menuContentElement.contains(document.activeElement))return;const e=this.root.querySelector("gux-menu");Array.from(e.children)[0].guxFocus()}componentWillLoad(){u(this.root)}componentDidLoad(){this.isShown&&this.runUpdatePosition()}componentDidUpdate(){this.isShown?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return t(o,{key:"96edfa3ebf5be5afe504e370c2a14cfd2daef2e8",tabIndex:0,"aria-haspopup":"true"},t("span",{key:"e0d36d479bef1cbc9da0e256b99d2548ed333809",ref:e=>this.targetElement=e},t("slot",{key:"b824bb2babaf66719c69ab878a9562ba17e59ac1",name:"target"})),t("div",{key:"bf772250442e633fdd2334bb90beafcdf8269563",class:{"gux-flyout-menu-content":!0,"gux-shown":this.isShown},ref:e=>this.menuContentElement=e},t("div",{key:"c2cd14ed5b78d0a1632851cc113ffdc50528716b",ref:e=>this.arrowElement=e,class:"gux-arrow"},t("div",{key:"adfe1a13efbd5e7eaa58e5382dad50a7d00c99c6",class:"gux-arrow-caret"})),t("slot",{key:"1e90344b959b1bcfc73a4a74c7c61e50a65d4a53",name:"menu"})))}get root(){return s(this)}};p.style=":host{z-index:var(--gse-semantic-zIndex-popover);color:var(--gse-ui-menu-option-label-foregroundColor);cursor:default}:host(:focus){outline:none}:host(:focus-visible){outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-flyout-menu-content{position:fixed;display:none;border:none;border-radius:var(--gse-ui-menu-borderRadius)}.gux-flyout-menu-content.gux-shown{display:flex}.gux-flyout-menu-content .gux-arrow{position:absolute;width:var(--gse-ui-popover-anchor-width);height:var(--gse-ui-popover-anchor-height);padding-bottom:4px;overflow:hidden}.gux-flyout-menu-content .gux-arrow-caret{width:0;height:0;filter:drop-shadow(var(--gse-ui-popover-boxShadow-x) var(--gse-ui-popover-boxShadow-y) calc(var(--gse-ui-popover-boxShadow-blur) / 2) var(--gse-ui-tooltip-boxShadow-color));border-top:calc(var(--gse-ui-popover-anchor-width) / 2) solid var(--gse-ui-popover-backgroundColor);border-right:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;border-left:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent}";export{p as gux_flyout_menu}
@@ -1 +1 @@
1
- import{r as e,c as t,h as o,H as i,g as s}from"./p-2e827df1.js";import{r as n}from"./p-0934300e.js";import{b as a}from"./p-0367930a.js";import"./p-4202e9f2.js";const r={createCustomOptionInstructions:", select to create a new custom option",createOption:'Add "{optionValue}"'},u=class{constructor(o){e(this,o),this.internalcreatenewoption=t(this,"internalcreatenewoption",7),this.value=void 0,this.active=!1,this.hidden=!0,this.filtered=!0,this.hovered=!1}onmouseenter(){this.hovered=!0}onMouseleave(){this.hovered=!1}async guxEmitInternalCreateNewOption(){this.internalcreatenewoption.emit()}handleClick(){this.internalcreatenewoption.emit(this.value)}async componentWillLoad(){this.i18n=await a(this.root,r),this.root.id=this.root.id||n("gux-option-multi")}renderCustomOptionInstructions(){return o("span",{class:"gux-screenreader"},this.i18n("createCustomOptionInstructions"))}render(){return o(i,{key:"0dcbc012615babc051ac2f898c055428a16d9eff",role:"option","aria-selected":!1,class:{"gux-active":this.active,"gux-hovered":this.hovered,"gux-filtered":this.filtered}},o("div",{key:"4fa9b0e2fd24f366c8b443e0bacce9a45d76213c",class:"gux-option"},o("gux-icon",{key:"7c02200aa0207ac3848e92497b87e412da63a9f0",decorative:!0,"icon-name":"fa/plus-regular"}),o("div",{key:"b2e4084e125e3f6fff832f0177334b69b2b53d49",class:"gux-create-text"},this.i18n("createOption",{optionValue:this.value})),this.renderCustomOptionInstructions()))}get root(){return s(this)}};u.style=":host{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;min-height: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}:host:host(.gux-disabled){pointer-events:none;cursor:default;opacity:var(--gse-ui-menu-option-disabled-opacity)}:host:host(.gux-active){border-radius:var(--gse-semantic-focusRing-cornerRadius);outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);outline-offset:-2px}:host:host(.gux-hovered:not([disabled])){background:var(--gse-ui-menu-option-hover-backgroundColor)}:host:host(.gux-filtered){display:none}:host gux-icon{width:var(--gse-ui-menu-option-startIcon-width);height:var(--gse-ui-menu-option-startIcon-height);padding-right:var(--gse-ui-menu-option-gap)}:host .gux-option{display:inline-flex}:host .gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{u as gux_create_option}
1
+ import{r as e,c as t,h as o,H as i,g as s}from"./p-2e827df1.js";import{r as n}from"./p-0934300e.js";import{b as a}from"./p-909c2a19.js";import"./p-4202e9f2.js";const r={createCustomOptionInstructions:", select to create a new custom option",createOption:'Add "{optionValue}"'},u=class{constructor(o){e(this,o),this.internalcreatenewoption=t(this,"internalcreatenewoption",7),this.value=void 0,this.active=!1,this.hidden=!0,this.filtered=!0,this.hovered=!1}onmouseenter(){this.hovered=!0}onMouseleave(){this.hovered=!1}async guxEmitInternalCreateNewOption(){this.internalcreatenewoption.emit()}handleClick(){this.internalcreatenewoption.emit(this.value)}async componentWillLoad(){this.i18n=await a(this.root,r),this.root.id=this.root.id||n("gux-option-multi")}renderCustomOptionInstructions(){return o("span",{class:"gux-screenreader"},this.i18n("createCustomOptionInstructions"))}render(){return o(i,{key:"0dcbc012615babc051ac2f898c055428a16d9eff",role:"option","aria-selected":!1,class:{"gux-active":this.active,"gux-hovered":this.hovered,"gux-filtered":this.filtered}},o("div",{key:"4fa9b0e2fd24f366c8b443e0bacce9a45d76213c",class:"gux-option"},o("gux-icon",{key:"7c02200aa0207ac3848e92497b87e412da63a9f0",decorative:!0,"icon-name":"fa/plus-regular"}),o("div",{key:"b2e4084e125e3f6fff832f0177334b69b2b53d49",class:"gux-create-text"},this.i18n("createOption",{optionValue:this.value})),this.renderCustomOptionInstructions()))}get root(){return s(this)}};u.style=":host{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;min-height: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}:host:host(.gux-disabled){pointer-events:none;cursor:default;opacity:var(--gse-ui-menu-option-disabled-opacity)}:host:host(.gux-active){border-radius:var(--gse-semantic-focusRing-cornerRadius);outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);outline-offset:-2px}:host:host(.gux-hovered:not([disabled])){background:var(--gse-ui-menu-option-hover-backgroundColor)}:host:host(.gux-filtered){display:none}:host gux-icon{width:var(--gse-ui-menu-option-startIcon-width);height:var(--gse-ui-menu-option-startIcon-height);padding-right:var(--gse-ui-menu-option-gap)}:host .gux-option{display:inline-flex}:host .gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{u as gux_create_option}
@@ -1 +1 @@
1
- import{r as t,h as o,H as e,g as n}from"./p-2e827df1.js";import{t as r}from"./p-68c084ac.js";import{l as a}from"./p-8eaf8caf.js";const i=class{constructor(o){t(this,o),this.accent="secondary",this.iconOnly=void 0}validateSlotContent(){let t=this.root.children[0],o=t.tagName;if("SLOT"===o&&(t=t.assignedNodes()[0],o=t.tagName),"BUTTON"!==o){if("INPUT"===o){const o=t.getAttribute("type");if("button"===o||"submit"===o)return}a(this.root,'You must slot a button, input[type="button"] or input[type="submit"] element.')}}componentWillLoad(){r(this.root),this.validateSlotContent()}render(){return o(e,{key:"15befd891876930e277175d8194d081ea3982e92",accent:this.accent,"icon-only":this.iconOnly},o("slot",{key:"6731523f4cd52fce0da588d7558ba2e100993032"}))}get root(){return n(this)}};i.style=":host{display:inline-block;pointer-events:none}::slotted(input[type=button]),::slotted(input[type=submit]),::slotted(button){font-family:var(--gse-ui-button-text-fontFamily);font-size:var(--gse-ui-button-text-fontSize);font-weight:var(--gse-ui-button-text-fontWeight);line-height:var(--gse-ui-button-text-lineHeight);inline-size:100%;min-inline-size:var(--gse-ui-button-icon-only-width);block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-padding);overflow:hidden;color:var(--gse-ui-button-secondary-default-foregroundColor);text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:var(--gse-ui-button-secondary-default-backgroundColor);border:none;border-radius:var(--gse-ui-button-borderRadius)}:host([icon-only]) ::slotted(input[type=button]),:host([icon-only]) ::slotted(input[type=submit]),:host([icon-only]) ::slotted(button){padding:var(--gse-ui-button-default-paddingIconOnly)}::slotted(input[type=button][disabled]),::slotted(input[type=submit][disabled]),::slotted(button[disabled]){cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}::slotted(input[type=button]:focus),::slotted(input[type=submit]:focus),::slotted(button:focus){outline:none}::slotted(input[type=button]:focus-visible:enabled),::slotted(input[type=submit]:focus-visible:enabled),::slotted(button:focus-visible:enabled){outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset)}::slotted(input[type=button]:hover:enabled),::slotted(input[type=submit]:hover:enabled),::slotted(button:hover:enabled){color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}::slotted(input[type=button]:active:enabled),::slotted(input[type=submit]:active:enabled),::slotted(button:active:enabled){color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]),:host([accent=primary]) ::slotted(input[type=submit]),:host([accent=primary]) ::slotted(button){color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]:hover:enabled),:host([accent=primary]) ::slotted(input[type=submit]:hover:enabled),:host([accent=primary]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]:active:enabled),:host([accent=primary]) ::slotted(input[type=submit]:active:enabled),:host([accent=primary]) ::slotted(button:active:enabled){color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}:host([accent=tertiary]) ::slotted(input[type=button]),:host([accent=tertiary]) ::slotted(input[type=submit]),:host([accent=tertiary]) ::slotted(button){color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-color:var(--gse-ui-button-tertiary-default-border-color);border-style:var(--gse-ui-button-tertiary-default-border-style);border-width:var(--gse-ui-button-tertiary-default-border-width)}:host([accent=tertiary]) ::slotted(input[type=button]:hover:enabled),:host([accent=tertiary]) ::slotted(input[type=submit]:hover:enabled),:host([accent=tertiary]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}:host([accent=tertiary]) ::slotted(input[type=button]:active:enabled),:host([accent=tertiary]) ::slotted(input[type=submit]:active:enabled),:host([accent=tertiary]) ::slotted(button:active:enabled){color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]),:host([accent=ghost]) ::slotted(input[type=submit]),:host([accent=ghost]) ::slotted(button){color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]:hover:enabled),:host([accent=ghost]) ::slotted(input[type=submit]:hover:enabled),:host([accent=ghost]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]:active:enabled),:host([accent=ghost]) ::slotted(input[type=submit]:active:enabled),:host([accent=ghost]) ::slotted(button:active:enabled){color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]),:host([accent=danger]) ::slotted(input[type=submit]),:host([accent=danger]) ::slotted(button){color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]:hover:enabled),:host([accent=danger]) ::slotted(input[type=submit]:hover:enabled),:host([accent=danger]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]:active:enabled),:host([accent=danger]) ::slotted(input[type=submit]:active:enabled),:host([accent=danger]) ::slotted(button:active:enabled){color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}:host([accent=inline]){min-inline-size:initial}:host([accent=inline]) ::slotted(input[type=button]),:host([accent=inline]) ::slotted(input[type=submit]),:host([accent=inline]) ::slotted(button){block-size:initial;padding:0;color:var(--gse-ui-link-default-foregroundColor);background:none;border:none}:host([accent=inline]) ::slotted(input[type=button][disabled]),:host([accent=inline]) ::slotted(input[type=submit][disabled]),:host([accent=inline]) ::slotted(button[disabled]){color:var(--gse-ui-link-disabled-foregroundColor)}:host([accent=inline]) ::slotted(input[type=button]:hover:enabled),:host([accent=inline]) ::slotted(input[type=submit]:hover:enabled),:host([accent=inline]) ::slotted(button:hover:enabled){color:var(--gse-ui-link-hover-foregroundColor);text-decoration:underline;background:none}:host([accent=inline]) ::slotted(input[type=button]:active:enabled),:host([accent=inline]) ::slotted(input[type=submit]:active:enabled),:host([accent=inline]) ::slotted(button:active:enabled){color:var(--gse-ui-link-active-foregroundColor);text-decoration:underline;background:none}";export{i as gux_button_slot}
1
+ import{r as t,h as o,H as e,g as n}from"./p-2e827df1.js";import{t as r}from"./p-1b65c00a.js";import{l as a}from"./p-8eaf8caf.js";const i=class{constructor(o){t(this,o),this.accent="secondary",this.iconOnly=void 0}validateSlotContent(){let t=this.root.children[0],o=t.tagName;if("SLOT"===o&&(t=t.assignedNodes()[0],o=t.tagName),"BUTTON"!==o){if("INPUT"===o){const o=t.getAttribute("type");if("button"===o||"submit"===o)return}a(this.root,'You must slot a button, input[type="button"] or input[type="submit"] element.')}}componentWillLoad(){r(this.root),this.validateSlotContent()}render(){return o(e,{key:"15befd891876930e277175d8194d081ea3982e92",accent:this.accent,"icon-only":this.iconOnly},o("slot",{key:"6731523f4cd52fce0da588d7558ba2e100993032"}))}get root(){return n(this)}};i.style=":host{display:inline-block;pointer-events:none}::slotted(input[type=button]),::slotted(input[type=submit]),::slotted(button){font-family:var(--gse-ui-button-text-fontFamily);font-size:var(--gse-ui-button-text-fontSize);font-weight:var(--gse-ui-button-text-fontWeight);line-height:var(--gse-ui-button-text-lineHeight);inline-size:100%;min-inline-size:var(--gse-ui-button-icon-only-width);block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-padding);overflow:hidden;color:var(--gse-ui-button-secondary-default-foregroundColor);text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:var(--gse-ui-button-secondary-default-backgroundColor);border:none;border-radius:var(--gse-ui-button-borderRadius)}:host([icon-only]) ::slotted(input[type=button]),:host([icon-only]) ::slotted(input[type=submit]),:host([icon-only]) ::slotted(button){padding:var(--gse-ui-button-default-paddingIconOnly)}::slotted(input[type=button][disabled]),::slotted(input[type=submit][disabled]),::slotted(button[disabled]){cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}::slotted(input[type=button]:focus),::slotted(input[type=submit]:focus),::slotted(button:focus){outline:none}::slotted(input[type=button]:focus-visible:enabled),::slotted(input[type=submit]:focus-visible:enabled),::slotted(button:focus-visible:enabled){outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset)}::slotted(input[type=button]:hover:enabled),::slotted(input[type=submit]:hover:enabled),::slotted(button:hover:enabled){color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}::slotted(input[type=button]:active:enabled),::slotted(input[type=submit]:active:enabled),::slotted(button:active:enabled){color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]),:host([accent=primary]) ::slotted(input[type=submit]),:host([accent=primary]) ::slotted(button){color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]:hover:enabled),:host([accent=primary]) ::slotted(input[type=submit]:hover:enabled),:host([accent=primary]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]:active:enabled),:host([accent=primary]) ::slotted(input[type=submit]:active:enabled),:host([accent=primary]) ::slotted(button:active:enabled){color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}:host([accent=tertiary]) ::slotted(input[type=button]),:host([accent=tertiary]) ::slotted(input[type=submit]),:host([accent=tertiary]) ::slotted(button){color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-color:var(--gse-ui-button-tertiary-default-border-color);border-style:var(--gse-ui-button-tertiary-default-border-style);border-width:var(--gse-ui-button-tertiary-default-border-width)}:host([accent=tertiary]) ::slotted(input[type=button]:hover:enabled),:host([accent=tertiary]) ::slotted(input[type=submit]:hover:enabled),:host([accent=tertiary]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}:host([accent=tertiary]) ::slotted(input[type=button]:active:enabled),:host([accent=tertiary]) ::slotted(input[type=submit]:active:enabled),:host([accent=tertiary]) ::slotted(button:active:enabled){color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]),:host([accent=ghost]) ::slotted(input[type=submit]),:host([accent=ghost]) ::slotted(button){color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]:hover:enabled),:host([accent=ghost]) ::slotted(input[type=submit]:hover:enabled),:host([accent=ghost]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]:active:enabled),:host([accent=ghost]) ::slotted(input[type=submit]:active:enabled),:host([accent=ghost]) ::slotted(button:active:enabled){color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]),:host([accent=danger]) ::slotted(input[type=submit]),:host([accent=danger]) ::slotted(button){color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]:hover:enabled),:host([accent=danger]) ::slotted(input[type=submit]:hover:enabled),:host([accent=danger]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]:active:enabled),:host([accent=danger]) ::slotted(input[type=submit]:active:enabled),:host([accent=danger]) ::slotted(button:active:enabled){color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}:host([accent=inline]){min-inline-size:initial}:host([accent=inline]) ::slotted(input[type=button]),:host([accent=inline]) ::slotted(input[type=submit]),:host([accent=inline]) ::slotted(button){block-size:initial;padding:0;color:var(--gse-ui-link-default-foregroundColor);background:none;border:none}:host([accent=inline]) ::slotted(input[type=button][disabled]),:host([accent=inline]) ::slotted(input[type=submit][disabled]),:host([accent=inline]) ::slotted(button[disabled]){color:var(--gse-ui-link-disabled-foregroundColor)}:host([accent=inline]) ::slotted(input[type=button]:hover:enabled),:host([accent=inline]) ::slotted(input[type=submit]:hover:enabled),:host([accent=inline]) ::slotted(button:hover:enabled){color:var(--gse-ui-link-hover-foregroundColor);text-decoration:underline;background:none}:host([accent=inline]) ::slotted(input[type=button]:active:enabled),:host([accent=inline]) ::slotted(input[type=submit]:active:enabled),:host([accent=inline]) ::slotted(button:active:enabled){color:var(--gse-ui-link-active-foregroundColor);text-decoration:underline;background:none}";export{i as gux_button_slot}
@@ -1 +1 @@
1
- import{r as t,h as e,H as o,g as i}from"./p-2e827df1.js";import{r as s}from"./p-0934300e.js";import{t as a}from"./p-68c084ac.js";import{b as r}from"./p-0367930a.js";import{O as c}from"./p-e080422d.js";import{b as n}from"./p-cf0e7d3b.js";import{w as u}from"./p-e97879b4.js";import"./p-4202e9f2.js";const d={contextMenuScreenreaderText:"Context menu"};const h=class{constructor(e){t(this,e),this.buttonId=s(),this.compact=!1,this.disabled=!1,this.screenreaderText="",this.isOpen=!1}onClickOutside(){this.isOpen=!1}handleKeyDown(t){const e=t.composedPath().includes(this.listElement),o=t.composedPath().includes(this.button);switch(t.key){case"Escape":e&&(t.preventDefault(),this.isOpen=!1,this.button.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":o&&!this.isOpen&&(t.preventDefault(),this.isOpen=!0,this.focusFirstListItem());break;case"ArrowUp":o&&!this.isOpen&&(t.preventDefault(),this.isOpen=!0,this.focusLastListItem())}}handleKeyup(t){" "===t.key&&t.composedPath().includes(this.button)&&(t.preventDefault(),this.isOpen=!0,this.focusFirstListItem())}focusFirstListItem(){n((()=>{this.listElement.guxFocusFirstItem()}))}focusLastListItem(){n((()=>{this.listElement.guxFocusLastItem()}))}onButtonClick(){this.isOpen=!this.isOpen,this.isOpen&&this.focusFirstListItem()}onListClick(t){u("gux-list-item",t,(()=>{this.isOpen=!1,this.button.focus()}))}async componentWillLoad(){a(this.root),this.i18n=await r(this.root,d)}render(){return e(o,{key:"7bd4676ce89563db9af6381d86dbb99d7a3c7203"},e("gux-popup",{key:"10b26375517aaa0c565b6ee3f0eaf6bf0f9d620c",expanded:this.isOpen,offset:4,"exceed-target-width":!0},e("div",{key:"42afaf086475d662a5b51827900706de0d7a6f60",slot:"target",class:"gux-button-container"},e("gux-button-slot",{key:"3c1b34e246856987ec2b686d6cdd169010adccc2",accent:"ghost"},e("button",{key:"677ecfb4b3ae5a55330c3c6483e8c9594f4eb1dc",type:"button",onClick:()=>this.onButtonClick(),id:this.buttonId,class:{"gux-compact":this.compact},ref:t=>this.button=t,"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),disabled:this.disabled},e("gux-icon",{key:"6df382d6fd22e732c9846205a1579b08f6fd3573","icon-name":"fa/ellipsis-vertical-regular","screenreader-text":this.screenreaderText||this.i18n("contextMenuScreenreaderText")})))),e("div",{key:"51d4ad61c218d8622f2f8c5f7599004153b7b2f0",slot:"popup",class:"gux-list-container"},e("gux-list",{key:"76a8bfa5a52a7c5316a576f13cd4e13d1dcff3a6",onClick:t=>this.onListClick(t),ref:t=>this.listElement=t},e("slot",{key:"dc1b4c42a238ce71dc9048efafb6b22e4eafe657"})))))}static get delegatesFocus(){return!0}get root(){return i(this)}};(function(t,e,o,i){var s,a=arguments.length,r=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(r=(a<3?s(r):a>3?s(e,o,r):s(e,o))||r);a>3&&r&&Object.defineProperty(e,o,r)})([c({triggerEvents:"click"})],h.prototype,"onClickOutside",null),h.style=":host{display:block;max-width:fit-content;white-space:normal}gux-icon{width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);color:var(--gse-ui-button-ghost-default-foregroundColor)}button{height:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-paddingIconOnly);border-radius:var(--gse-ui-button-borderRadius)}button.gux-compact{height:var(--gse-ui-button-compact-height);padding:var(--gse-ui-button-compact-paddingIconOnly)}button:hover:enabled{background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}button:hover:enabled gux-icon{color:var(--gse-ui-button-ghost-hover-foregroundColor)}button:active:enabled{background-color:var(--gse-ui-button-ghost-active-backgroundColor)}button:active:enabled gux-icon{color:var(--gse-ui-button-ghost-active-foregroundColor)}button[disabled]{opacity:var(--gse-ui-button-disabled-opacity)}.gux-list-container{width:var(--gse-ui-contextMenu-menu-width);max-height:var(--gse-ui-contextMenu-menu-maxHeight);margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow-x) var(--gse-ui-menu-boxShadow-y) var(--gse-ui-menu-boxShadow-blur) var(--gse-ui-menu-boxShadow-spread) var(--gse-ui-menu-boxShadow-color)}";export{h as gux_context_menu}
1
+ import{r as t,h as e,H as o,g as i}from"./p-2e827df1.js";import{r as s}from"./p-0934300e.js";import{t as a}from"./p-1b65c00a.js";import{b as r}from"./p-909c2a19.js";import{O as c}from"./p-e080422d.js";import{b as n}from"./p-cf0e7d3b.js";import{w as u}from"./p-e97879b4.js";import"./p-4202e9f2.js";const d={contextMenuScreenreaderText:"Context menu"};const h=class{constructor(e){t(this,e),this.buttonId=s(),this.compact=!1,this.disabled=!1,this.screenreaderText="",this.isOpen=!1}onClickOutside(){this.isOpen=!1}handleKeyDown(t){const e=t.composedPath().includes(this.listElement),o=t.composedPath().includes(this.button);switch(t.key){case"Escape":e&&(t.preventDefault(),this.isOpen=!1,this.button.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":o&&!this.isOpen&&(t.preventDefault(),this.isOpen=!0,this.focusFirstListItem());break;case"ArrowUp":o&&!this.isOpen&&(t.preventDefault(),this.isOpen=!0,this.focusLastListItem())}}handleKeyup(t){" "===t.key&&t.composedPath().includes(this.button)&&(t.preventDefault(),this.isOpen=!0,this.focusFirstListItem())}focusFirstListItem(){n((()=>{this.listElement.guxFocusFirstItem()}))}focusLastListItem(){n((()=>{this.listElement.guxFocusLastItem()}))}onButtonClick(){this.isOpen=!this.isOpen,this.isOpen&&this.focusFirstListItem()}onListClick(t){u("gux-list-item",t,(()=>{this.isOpen=!1,this.button.focus()}))}async componentWillLoad(){a(this.root),this.i18n=await r(this.root,d)}render(){return e(o,{key:"7bd4676ce89563db9af6381d86dbb99d7a3c7203"},e("gux-popup",{key:"10b26375517aaa0c565b6ee3f0eaf6bf0f9d620c",expanded:this.isOpen,offset:4,"exceed-target-width":!0},e("div",{key:"42afaf086475d662a5b51827900706de0d7a6f60",slot:"target",class:"gux-button-container"},e("gux-button-slot",{key:"3c1b34e246856987ec2b686d6cdd169010adccc2",accent:"ghost"},e("button",{key:"677ecfb4b3ae5a55330c3c6483e8c9594f4eb1dc",type:"button",onClick:()=>this.onButtonClick(),id:this.buttonId,class:{"gux-compact":this.compact},ref:t=>this.button=t,"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),disabled:this.disabled},e("gux-icon",{key:"6df382d6fd22e732c9846205a1579b08f6fd3573","icon-name":"fa/ellipsis-vertical-regular","screenreader-text":this.screenreaderText||this.i18n("contextMenuScreenreaderText")})))),e("div",{key:"51d4ad61c218d8622f2f8c5f7599004153b7b2f0",slot:"popup",class:"gux-list-container"},e("gux-list",{key:"76a8bfa5a52a7c5316a576f13cd4e13d1dcff3a6",onClick:t=>this.onListClick(t),ref:t=>this.listElement=t},e("slot",{key:"dc1b4c42a238ce71dc9048efafb6b22e4eafe657"})))))}static get delegatesFocus(){return!0}get root(){return i(this)}};(function(t,e,o,i){var s,a=arguments.length,r=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(r=(a<3?s(r):a>3?s(e,o,r):s(e,o))||r);a>3&&r&&Object.defineProperty(e,o,r)})([c({triggerEvents:"click"})],h.prototype,"onClickOutside",null),h.style=":host{display:block;max-width:fit-content;white-space:normal}gux-icon{width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);color:var(--gse-ui-button-ghost-default-foregroundColor)}button{height:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-paddingIconOnly);border-radius:var(--gse-ui-button-borderRadius)}button.gux-compact{height:var(--gse-ui-button-compact-height);padding:var(--gse-ui-button-compact-paddingIconOnly)}button:hover:enabled{background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}button:hover:enabled gux-icon{color:var(--gse-ui-button-ghost-hover-foregroundColor)}button:active:enabled{background-color:var(--gse-ui-button-ghost-active-backgroundColor)}button:active:enabled gux-icon{color:var(--gse-ui-button-ghost-active-foregroundColor)}button[disabled]{opacity:var(--gse-ui-button-disabled-opacity)}.gux-list-container{width:var(--gse-ui-contextMenu-menu-width);max-height:var(--gse-ui-contextMenu-menu-maxHeight);margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow-x) var(--gse-ui-menu-boxShadow-y) var(--gse-ui-menu-boxShadow-blur) var(--gse-ui-menu-boxShadow-spread) var(--gse-ui-menu-boxShadow-color)}";export{h as gux_context_menu}
@@ -1 +1 @@
1
- import{r as e,h as t,H as a,g as o}from"./p-2e827df1.js";import{t as r}from"./p-68c084ac.js";const i=class{constructor(t){e(this,t)}componentWillLoad(){r(this.root)}render(){return t(a,{key:"af136a9885999cccdbdc8690c7c02b797ca5dcd4"},t("div",{key:"9c7299137339a879a0554755c8dc6d6b68bb221d",class:"gux-header"},t("div",{key:"9b5b6bb50e40351bc501c9c51cc3b85f3e3d9710",class:"gux-icon"},t("slot",{key:"efe924bd541c04b47229797f4a2ae473dcb9309e",name:"icon"})),t("div",{key:"b61a8cf1bf34249e2923dbd0f76526fc65cbdd45",class:"gux-title"},t("slot",{key:"d06a69056f2ef93fc5fae29f6029b671334db287",name:"title"}))),t("div",{key:"2e3a6ffc37a21eafe2f1b2c1bdc07150a5f88404",class:"gux-message"},t("slot",{key:"2ccdc460690d19b5f6cba599e263cb492beab9a4",name:"message"})),t("div",{key:"f0c9f0279cb97b0e275e055dc519396cf0d8f4e3",class:"gux-action-buttons"},t("div",{key:"7c0c0fe61ce1326b504e51e53ef2adb117bb2bd3",class:"gux-positive-button"},t("slot",{key:"854221d761125bb2ec95ab790da675c82901b99f",name:"positive-button"})),t("div",{key:"a26a8e9733ebc110ce8474247deae91c9f8e855b",class:"gux-negative-button"},t("slot",{key:"74198f3fa2448029ee7da523c3ae247a731cbe4d",name:"negative-button"}))))}get root(){return o(this)}};i.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:stretch;width:270px;padding:20px 24px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-header{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:center;align-self:auto;order:0;font-family:var(--gse-core-typography-heading-lg-fontFamily), var(--gse-core-fontFamily-heading), sans-serif;font-size:var(--gse-core-typography-heading-lg-fontSize);line-height:var(--gse-core-typography-heading-lg-lineHeight);font-weight:var(--gse-core-fontWeight-bold)}.gux-header .gux-icon{flex:0 1 auto;align-self:auto;order:0;color:#1da8b3}.gux-header .gux-icon ::slotted(gux-icon){width:32px !important;height:32px !important}.gux-header .gux-title{flex:1 1 auto;align-self:auto;order:0;margin:0 0 0 8px}.gux-message{flex:0 1 auto;align-self:auto;order:0;margin:16px 0;font-family:var(--gse-core-typography-body-sm-fontFamily), var(--gse-core-fontFamily-body), sans-serif;font-size:var(--gse-core-typography-body-sm-fontSize);line-height:var(--gse-core-typography-body-sm-lineHeight);font-weight:var(--gse-core-fontWeight-regular)}.gux-message ::slotted(dl){display:flex;flex-direction:row;flex-wrap:wrap;place-content:stretch flex-start;align-items:flex-start;margin:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;align-self:auto;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;align-self:auto;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}";export{i as gux_action_toast_legacy}
1
+ import{r as e,h as t,H as a,g as o}from"./p-2e827df1.js";import{t as r}from"./p-1b65c00a.js";const i=class{constructor(t){e(this,t)}componentWillLoad(){r(this.root)}render(){return t(a,{key:"af136a9885999cccdbdc8690c7c02b797ca5dcd4"},t("div",{key:"9c7299137339a879a0554755c8dc6d6b68bb221d",class:"gux-header"},t("div",{key:"9b5b6bb50e40351bc501c9c51cc3b85f3e3d9710",class:"gux-icon"},t("slot",{key:"efe924bd541c04b47229797f4a2ae473dcb9309e",name:"icon"})),t("div",{key:"b61a8cf1bf34249e2923dbd0f76526fc65cbdd45",class:"gux-title"},t("slot",{key:"d06a69056f2ef93fc5fae29f6029b671334db287",name:"title"}))),t("div",{key:"2e3a6ffc37a21eafe2f1b2c1bdc07150a5f88404",class:"gux-message"},t("slot",{key:"2ccdc460690d19b5f6cba599e263cb492beab9a4",name:"message"})),t("div",{key:"f0c9f0279cb97b0e275e055dc519396cf0d8f4e3",class:"gux-action-buttons"},t("div",{key:"7c0c0fe61ce1326b504e51e53ef2adb117bb2bd3",class:"gux-positive-button"},t("slot",{key:"854221d761125bb2ec95ab790da675c82901b99f",name:"positive-button"})),t("div",{key:"a26a8e9733ebc110ce8474247deae91c9f8e855b",class:"gux-negative-button"},t("slot",{key:"74198f3fa2448029ee7da523c3ae247a731cbe4d",name:"negative-button"}))))}get root(){return o(this)}};i.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:stretch;width:270px;padding:20px 24px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-header{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:center;align-self:auto;order:0;font-family:var(--gse-core-typography-heading-lg-fontFamily), var(--gse-core-fontFamily-heading), sans-serif;font-size:var(--gse-core-typography-heading-lg-fontSize);line-height:var(--gse-core-typography-heading-lg-lineHeight);font-weight:var(--gse-core-fontWeight-bold)}.gux-header .gux-icon{flex:0 1 auto;align-self:auto;order:0;color:#1da8b3}.gux-header .gux-icon ::slotted(gux-icon){width:32px !important;height:32px !important}.gux-header .gux-title{flex:1 1 auto;align-self:auto;order:0;margin:0 0 0 8px}.gux-message{flex:0 1 auto;align-self:auto;order:0;margin:16px 0;font-family:var(--gse-core-typography-body-sm-fontFamily), var(--gse-core-fontFamily-body), sans-serif;font-size:var(--gse-core-typography-body-sm-fontSize);line-height:var(--gse-core-typography-body-sm-lineHeight);font-weight:var(--gse-core-fontWeight-regular)}.gux-message ::slotted(dl){display:flex;flex-direction:row;flex-wrap:wrap;place-content:stretch flex-start;align-items:flex-start;margin:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;align-self:auto;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;align-self:auto;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}";export{i as gux_action_toast_legacy}
@@ -1 +1 @@
1
- import{r as i,h as o,g as r}from"./p-2e827df1.js";import{t}from"./p-68c084ac.js";import{b as a}from"./p-0367930a.js";import"./p-4202e9f2.js";const e={optional:"optional"},l=class{constructor(o){i(this,o),this.variant="required",this.required=!1}async componentWillLoad(){t(this.root,{variant:this.variant}),this.i18n=await a(this.root,e)}render(){return"optional"!==this.variant||this.required?"required"===this.variant&&this.required?o("span",{class:"gux-form-field-label-indicator-required","aria-hidden":"true"},"*"):null:o("span",{class:"gux-form-field-label-indicator-optional"},"(",this.i18n("optional"),")")}get root(){return r(this)}};l.style=".gux-form-field-label-indicator-required{padding-inline-start:var(--gse-ui-formControl-formField-gap);color:var(--gse-ui-formControl-label-indicator-requiredColor)}.gux-form-field-label-indicator-optional{margin-inline-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-label-indicator-text-fontFamily);font-size:var(--gse-ui-formControl-label-indicator-text-fontSize);font-weight:var(--gse-ui-formControl-label-indicator-text-fontWeight);line-height:var(--gse-ui-formControl-label-indicator-text-lineHeight);color:var(--gse-ui-formControl-label-indicator-optionalColor)}";export{l as gux_form_field_label_indicator}
1
+ import{r as i,h as o,g as r}from"./p-2e827df1.js";import{t}from"./p-1b65c00a.js";import{b as a}from"./p-909c2a19.js";import"./p-4202e9f2.js";const e={optional:"optional"},l=class{constructor(o){i(this,o),this.variant="required",this.required=!1}async componentWillLoad(){t(this.root,{variant:this.variant}),this.i18n=await a(this.root,e)}render(){return"optional"!==this.variant||this.required?"required"===this.variant&&this.required?o("span",{class:"gux-form-field-label-indicator-required","aria-hidden":"true"},"*"):null:o("span",{class:"gux-form-field-label-indicator-optional"},"(",this.i18n("optional"),")")}get root(){return r(this)}};l.style=".gux-form-field-label-indicator-required{padding-inline-start:var(--gse-ui-formControl-formField-gap);color:var(--gse-ui-formControl-label-indicator-requiredColor)}.gux-form-field-label-indicator-optional{margin-inline-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-label-indicator-text-fontFamily);font-size:var(--gse-ui-formControl-label-indicator-text-fontSize);font-weight:var(--gse-ui-formControl-label-indicator-text-fontWeight);line-height:var(--gse-ui-formControl-label-indicator-text-lineHeight);color:var(--gse-ui-formControl-label-indicator-optionalColor)}";export{l as gux_form_field_label_indicator}