genesys-spark-components 4.149.1 → 4.151.0

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 (394) hide show
  1. package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
  2. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-avatar-beta.cjs.entry.js +20 -12
  8. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +2 -2
  9. package/dist/cjs/gux-avatar-group-add-item-beta_3.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-avatar-group-item-beta.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-button_2.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-calendar-beta.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-calendar.cjs.entry.js +11 -3
  20. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-day-beta.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-file-list-item.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-file-beta.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-file.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-number_2.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-form-field-range.cjs.entry.js +2 -2
  49. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-inline-dropdown-beta.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-link-beta.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +171 -168
  75. package/dist/cjs/gux-popover-beta.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-popover-list-beta.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  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-rich-highlight-list-item.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-rich-style-list-item_3.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-rich-text-editor-beta.cjs.entry.js +2 -2
  88. package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  91. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
  92. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
  93. package/dist/cjs/gux-side-panel-beta.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-side-panel-heading.cjs.entry.js +1 -1
  95. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  96. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  97. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  98. package/dist/cjs/gux-status-indicator-beta.cjs.entry.js +1 -1
  99. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  100. package/dist/cjs/gux-tab-list.cjs.entry.js +7 -3
  101. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  102. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  103. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  104. package/dist/cjs/gux-table-toolbar.cjs.entry.js +2 -2
  105. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  106. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  107. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  108. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  109. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  110. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  111. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  112. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
  113. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  114. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  115. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  116. package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +1 -1
  117. package/dist/cjs/gux-tooltip-pointer-beta.cjs.entry.js +1 -1
  118. package/dist/cjs/gux-tooltip-title.cjs.entry.js +1 -1
  119. package/dist/cjs/gux-tooltip_2.cjs.entry.js +2 -2
  120. package/dist/cjs/loader.cjs.js +1 -1
  121. package/dist/cjs/{on-resize-b2cc6e7f.js → on-resize-6374cacf.js} +5 -1
  122. package/dist/cjs/{usage-61e05be7.js → usage-35064d43.js} +4 -4
  123. package/dist/collection/components/beta/gux-avatar/gux-avatar-change-photo/gux-avatar-change-photo.js +1 -1
  124. package/dist/collection/components/beta/gux-avatar/gux-avatar.js +19 -11
  125. package/dist/collection/components/beta/gux-date-time/tests/gux-date-time.common.js +9 -0
  126. package/dist/collection/components/beta/gux-flag-icon/tests/gux-flag-icon.common.js +260 -0
  127. package/dist/collection/components/stable/gux-calendar/gux-calendar.js +5 -3
  128. package/dist/collection/components/stable/gux-tabs/gux-tab/tests/gux-tab.common.js +10 -0
  129. package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.js +7 -3
  130. package/dist/collection/test/playwrightTestUtils.js +8 -6
  131. package/dist/collection/utils/decorator/on-resize.js +5 -1
  132. package/dist/esm/genesys-webcomponents.js +1 -1
  133. package/dist/esm/gux-accordion.entry.js +1 -1
  134. package/dist/esm/gux-action-button.entry.js +1 -1
  135. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  136. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  137. package/dist/esm/gux-announce-beta.entry.js +1 -1
  138. package/dist/esm/gux-avatar-beta.entry.js +20 -12
  139. package/dist/esm/gux-avatar-change-photo-beta.entry.js +2 -2
  140. package/dist/esm/gux-avatar-group-add-item-beta_3.entry.js +1 -1
  141. package/dist/esm/gux-avatar-group-beta.entry.js +1 -1
  142. package/dist/esm/gux-avatar-group-item-beta.entry.js +1 -1
  143. package/dist/esm/gux-badge.entry.js +1 -1
  144. package/dist/esm/gux-blank-state.entry.js +1 -1
  145. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  146. package/dist/esm/gux-button-multi.entry.js +1 -1
  147. package/dist/esm/gux-button-slot.entry.js +1 -1
  148. package/dist/esm/gux-button_2.entry.js +1 -1
  149. package/dist/esm/gux-calendar-beta.entry.js +1 -1
  150. package/dist/esm/gux-calendar.entry.js +12 -4
  151. package/dist/esm/gux-card.entry.js +1 -1
  152. package/dist/esm/gux-column-manager.entry.js +1 -1
  153. package/dist/esm/gux-content-search.entry.js +1 -1
  154. package/dist/esm/gux-context-menu.entry.js +1 -1
  155. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  156. package/dist/esm/gux-date-beta.entry.js +1 -1
  157. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  158. package/dist/esm/gux-datepicker.entry.js +1 -1
  159. package/dist/esm/gux-day-beta.entry.js +1 -1
  160. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  161. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  162. package/dist/esm/gux-dropdown-multi.entry.js +1 -1
  163. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  164. package/dist/esm/gux-file-list-item.entry.js +1 -1
  165. package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
  166. package/dist/esm/gux-flyout-menu.entry.js +1 -1
  167. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +1 -1
  168. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  169. package/dist/esm/gux-form-field-color.entry.js +1 -1
  170. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  171. package/dist/esm/gux-form-field-file-beta.entry.js +1 -1
  172. package/dist/esm/gux-form-field-file.entry.js +1 -1
  173. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  174. package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
  175. package/dist/esm/gux-form-field-number_2.entry.js +1 -1
  176. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  177. package/dist/esm/gux-form-field-radio-group-beta.entry.js +1 -1
  178. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  179. package/dist/esm/gux-form-field-range.entry.js +2 -2
  180. package/dist/esm/gux-form-field-search.entry.js +1 -1
  181. package/dist/esm/gux-form-field-select.entry.js +1 -1
  182. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  183. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  184. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  185. package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
  186. package/dist/esm/gux-form-footer.entry.js +1 -1
  187. package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
  188. package/dist/esm/gux-icon.entry.js +1 -1
  189. package/dist/esm/gux-inline-alert.entry.js +1 -1
  190. package/dist/esm/gux-inline-dropdown-beta.entry.js +1 -1
  191. package/dist/esm/gux-label-info-beta.entry.js +1 -1
  192. package/dist/esm/gux-link-beta.entry.js +1 -1
  193. package/dist/esm/gux-list.entry.js +1 -1
  194. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  195. package/dist/esm/gux-loading-message.entry.js +1 -1
  196. package/dist/esm/gux-modal-legacy.entry.js +1 -1
  197. package/dist/esm/gux-modal-side-panel-beta.entry.js +1 -1
  198. package/dist/esm/gux-modal.entry.js +1 -1
  199. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  200. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  201. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  202. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  203. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  204. package/dist/esm/gux-pagination.entry.js +1 -1
  205. package/dist/esm/gux-phone-input-beta.entry.js +171 -168
  206. package/dist/esm/gux-popover-beta.entry.js +1 -1
  207. package/dist/esm/gux-popover-list-beta.entry.js +1 -1
  208. package/dist/esm/gux-popover-list.entry.js +1 -1
  209. package/dist/esm/gux-radial-loading.entry.js +1 -1
  210. package/dist/esm/gux-radial-progress.entry.js +1 -1
  211. package/dist/esm/gux-rating.entry.js +1 -1
  212. package/dist/esm/gux-rich-highlight-list-item.entry.js +1 -1
  213. package/dist/esm/gux-rich-style-list-item_3.entry.js +1 -1
  214. package/dist/esm/gux-rich-text-editor-action-link.entry.js +1 -1
  215. package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +1 -1
  216. package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +1 -1
  217. package/dist/esm/gux-rich-text-editor-action.entry.js +1 -1
  218. package/dist/esm/gux-rich-text-editor-beta.entry.js +2 -2
  219. package/dist/esm/gux-rich-text-editor-list.entry.js +1 -1
  220. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  221. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  222. package/dist/esm/gux-selector-card-beta.entry.js +1 -1
  223. package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
  224. package/dist/esm/gux-side-panel-beta.entry.js +1 -1
  225. package/dist/esm/gux-side-panel-heading.entry.js +1 -1
  226. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  227. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  228. package/dist/esm/gux-sort-control.entry.js +1 -1
  229. package/dist/esm/gux-status-indicator-beta.entry.js +1 -1
  230. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  231. package/dist/esm/gux-tab-list.entry.js +7 -3
  232. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  233. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  234. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  235. package/dist/esm/gux-table-toolbar.entry.js +2 -2
  236. package/dist/esm/gux-table.entry.js +1 -1
  237. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  238. package/dist/esm/gux-tabs.entry.js +1 -1
  239. package/dist/esm/gux-tag.entry.js +1 -1
  240. package/dist/esm/gux-text-highlight.entry.js +1 -1
  241. package/dist/esm/gux-time-beta.entry.js +1 -1
  242. package/dist/esm/gux-time-picker.entry.js +1 -1
  243. package/dist/esm/gux-time-zone-beta.entry.js +1 -1
  244. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  245. package/dist/esm/gux-toast.entry.js +1 -1
  246. package/dist/esm/gux-toggle.entry.js +1 -1
  247. package/dist/esm/gux-tooltip-base-beta_2.entry.js +1 -1
  248. package/dist/esm/gux-tooltip-pointer-beta.entry.js +1 -1
  249. package/dist/esm/gux-tooltip-title.entry.js +1 -1
  250. package/dist/esm/gux-tooltip_2.entry.js +2 -2
  251. package/dist/esm/loader.js +1 -1
  252. package/dist/esm/{on-resize-c9d0d33c.js → on-resize-47eb1cef.js} +5 -1
  253. package/dist/esm/{usage-1c4df161.js → usage-904e7cb6.js} +4 -4
  254. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  255. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
  256. package/dist/genesys-webcomponents/{p-2432b03e.entry.js → p-01a4f95e.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/{p-2ba82c14.entry.js → p-01cfebdd.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/{p-d2d91a3c.entry.js → p-020deffc.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/{p-2ee1e180.entry.js → p-023fa3ac.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-89cb42c6.entry.js → p-068533ef.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/{p-b05606d0.entry.js → p-06e117d1.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/p-079294ad.entry.js +1 -0
  263. package/dist/genesys-webcomponents/{p-1294a1cf.entry.js → p-0c01558c.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/{p-3b520b9f.entry.js → p-0c65a6f7.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-d0dbd67e.entry.js → p-0ccd32e3.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-ac42d079.entry.js → p-12c4ebf9.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-0203d5ed.entry.js → p-150f1604.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-66949f74.entry.js → p-16eb5729.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-24feefe4.entry.js → p-176c0909.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-656935cc.entry.js → p-18703181.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-6619dc55.entry.js → p-19fd4a47.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-70ce0f17.entry.js → p-1ac25e89.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-b96756e7.entry.js → p-1b146622.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-d3efdb92.entry.js → p-1babd4a8.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-a491db2f.entry.js → p-1ee7cd5a.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-73ddc340.entry.js → p-1f49618a.entry.js} +1 -1
  277. package/dist/genesys-webcomponents/{p-95f863ff.entry.js → p-1f594e99.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-f2b3759f.entry.js → p-289fe52b.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/{p-0cb23b5f.entry.js → p-2e542f67.entry.js} +1 -1
  280. package/dist/genesys-webcomponents/{p-ff6fd2bb.entry.js → p-34cf61c4.entry.js} +1 -1
  281. package/dist/genesys-webcomponents/{p-48c24671.entry.js → p-3652c571.entry.js} +1 -1
  282. package/dist/genesys-webcomponents/{p-b0496e11.entry.js → p-3a3970ff.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-3d43d3e1.entry.js → p-3f484937.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/{p-77f47e24.entry.js → p-3fc337da.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/{p-ca642b50.entry.js → p-3fcdb483.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-7494aeb5.entry.js → p-40e3da2e.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-52853f52.entry.js → p-48764f97.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-d4f0cfb6.entry.js → p-49a0ed0e.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-1bc44598.entry.js → p-4c7c4696.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/{p-ebf75b52.entry.js → p-4fa5e3ea.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/{p-33547f78.entry.js → p-4feb5888.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-a0ac557d.entry.js → p-5214e418.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/p-52e5fb32.entry.js +1 -0
  294. package/dist/genesys-webcomponents/{p-2152f958.entry.js → p-5398f1fc.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-3e6cfe0a.entry.js → p-55e871c1.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-73d0e477.entry.js → p-5632bb86.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-bac769fe.entry.js → p-5aa58416.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-6ed53325.entry.js → p-5b2438c6.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-b01eef1c.entry.js → p-600a52e5.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-ef0425bd.entry.js → p-6344b4e6.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/{p-e2c1d3db.entry.js → p-63d1032f.entry.js} +1 -1
  302. package/dist/genesys-webcomponents/{p-19f6f3b6.entry.js → p-653efb6c.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-1f0b0556.entry.js → p-6565ac1b.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-44eba830.entry.js → p-68358a3c.entry.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-65ade5df.entry.js → p-6c7fcc2d.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-29779dc1.entry.js → p-716d04ac.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/{p-1c008e48.entry.js → p-72405dec.entry.js} +1 -1
  308. package/dist/genesys-webcomponents/{p-7aece572.entry.js → p-7335f3b3.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-522586fc.entry.js → p-773d1315.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-bba34d27.entry.js → p-775ac832.entry.js} +1 -1
  311. package/dist/genesys-webcomponents/{p-2d502946.entry.js → p-7a9e6287.entry.js} +1 -1
  312. package/dist/genesys-webcomponents/{p-e67305fe.entry.js → p-7f047114.entry.js} +1 -1
  313. package/dist/genesys-webcomponents/{p-96dc4537.entry.js → p-842cc7ba.entry.js} +1 -1
  314. package/dist/genesys-webcomponents/{p-b462b544.entry.js → p-8737f826.entry.js} +1 -1
  315. package/dist/genesys-webcomponents/{p-75baf204.entry.js → p-880c3e57.entry.js} +1 -1
  316. package/dist/genesys-webcomponents/{p-d7c7ea8e.entry.js → p-88c383dc.entry.js} +1 -1
  317. package/dist/genesys-webcomponents/{p-9ef40d4d.entry.js → p-8b2eace5.entry.js} +1 -1
  318. package/dist/genesys-webcomponents/{p-611bf11e.entry.js → p-8c156f3e.entry.js} +1 -1
  319. package/dist/genesys-webcomponents/{p-45a5598f.entry.js → p-8f6c3b75.entry.js} +1 -1
  320. package/dist/genesys-webcomponents/{p-4a67cd75.entry.js → p-90b81f49.entry.js} +1 -1
  321. package/dist/genesys-webcomponents/{p-ea237c1f.entry.js → p-9129ca93.entry.js} +1 -1
  322. package/dist/genesys-webcomponents/{p-c2a581cb.entry.js → p-918c6c19.entry.js} +1 -1
  323. package/dist/genesys-webcomponents/{p-ae1454a2.entry.js → p-9259d9ec.entry.js} +1 -1
  324. package/dist/genesys-webcomponents/{p-5b3a156a.entry.js → p-93cd8032.entry.js} +1 -1
  325. package/dist/genesys-webcomponents/{p-13cebb13.entry.js → p-94c66ce9.entry.js} +1 -1
  326. package/dist/genesys-webcomponents/{p-84af9a85.entry.js → p-958bf4a7.entry.js} +1 -1
  327. package/dist/genesys-webcomponents/{p-487eca78.entry.js → p-9bc4b7f9.entry.js} +1 -1
  328. package/dist/genesys-webcomponents/{p-f66904d2.entry.js → p-a2904722.entry.js} +1 -1
  329. package/dist/genesys-webcomponents/{p-b328534b.entry.js → p-a5238344.entry.js} +1 -1
  330. package/dist/genesys-webcomponents/{p-66fcb73b.entry.js → p-ac44d7e5.entry.js} +1 -1
  331. package/dist/genesys-webcomponents/{p-cdce1939.entry.js → p-b2449a28.entry.js} +1 -1
  332. package/dist/genesys-webcomponents/{p-b0cce5c5.entry.js → p-b7245e10.entry.js} +1 -1
  333. package/dist/genesys-webcomponents/{p-5d652817.entry.js → p-b7263825.entry.js} +1 -1
  334. package/dist/genesys-webcomponents/{p-764becc4.entry.js → p-ba16f7d6.entry.js} +1 -1
  335. package/dist/genesys-webcomponents/{p-b035f5fb.entry.js → p-bb6534d1.entry.js} +1 -1
  336. package/dist/genesys-webcomponents/{p-afc507f3.entry.js → p-bc6b3e64.entry.js} +1 -1
  337. package/dist/genesys-webcomponents/{p-1eee2ebc.entry.js → p-bd3e9877.entry.js} +1 -1
  338. package/dist/genesys-webcomponents/{p-87dfa6cc.entry.js → p-bda3dee1.entry.js} +1 -1
  339. package/dist/genesys-webcomponents/{p-1af339cb.entry.js → p-bdc7fdf7.entry.js} +1 -1
  340. package/dist/genesys-webcomponents/p-c285ca69.entry.js +1 -0
  341. package/dist/genesys-webcomponents/{p-e79482cf.js → p-c35a9bb6.js} +1 -1
  342. package/dist/genesys-webcomponents/{p-c9d79122.entry.js → p-c363a938.entry.js} +1 -1
  343. package/dist/genesys-webcomponents/{p-57a21964.entry.js → p-c58cb6b0.entry.js} +1 -1
  344. package/dist/genesys-webcomponents/{p-f4631342.entry.js → p-c7dca446.entry.js} +1 -1
  345. package/dist/genesys-webcomponents/{p-ec821356.entry.js → p-c7ecdeba.entry.js} +1 -1
  346. package/dist/genesys-webcomponents/{p-73a1d96d.entry.js → p-cb3acc8b.entry.js} +1 -1
  347. package/dist/genesys-webcomponents/p-cde01f6c.entry.js +1 -0
  348. package/dist/genesys-webcomponents/{p-3d483f22.entry.js → p-cde7e3bc.entry.js} +1 -1
  349. package/dist/genesys-webcomponents/{p-8c2ea407.entry.js → p-ce7ad842.entry.js} +1 -1
  350. package/dist/genesys-webcomponents/{p-a24e35e6.entry.js → p-d4c54839.entry.js} +1 -1
  351. package/dist/genesys-webcomponents/{p-50f7d9a4.entry.js → p-d64fe323.entry.js} +1 -1
  352. package/dist/genesys-webcomponents/{p-51fcb060.entry.js → p-d80a4fdd.entry.js} +1 -1
  353. package/dist/genesys-webcomponents/{p-0c037b7b.entry.js → p-dd55a750.entry.js} +1 -1
  354. package/dist/genesys-webcomponents/{p-930b375a.entry.js → p-de170942.entry.js} +1 -1
  355. package/dist/genesys-webcomponents/{p-be74d638.entry.js → p-de8bfccb.entry.js} +1 -1
  356. package/dist/genesys-webcomponents/{p-9a0f3762.entry.js → p-dea8c1f3.entry.js} +1 -1
  357. package/dist/genesys-webcomponents/p-dfc8bde5.entry.js +1 -0
  358. package/dist/genesys-webcomponents/{p-f914190e.entry.js → p-dfce2c42.entry.js} +1 -1
  359. package/dist/genesys-webcomponents/{p-5c0e6d8b.entry.js → p-e49ca372.entry.js} +1 -1
  360. package/dist/genesys-webcomponents/{p-9f6fb97e.entry.js → p-e7bf1221.entry.js} +1 -1
  361. package/dist/genesys-webcomponents/{p-be2fe10b.entry.js → p-e8f9c5b1.entry.js} +1 -1
  362. package/dist/genesys-webcomponents/{p-9496fdb1.entry.js → p-eaea4ef2.entry.js} +1 -1
  363. package/dist/genesys-webcomponents/{p-34d4e93a.entry.js → p-ebf26170.entry.js} +1 -1
  364. package/dist/genesys-webcomponents/{p-4eee1a2a.entry.js → p-f031e733.entry.js} +1 -1
  365. package/dist/genesys-webcomponents/{p-bc07e611.entry.js → p-f1fa87e7.entry.js} +1 -1
  366. package/dist/genesys-webcomponents/{p-d1e2e7bd.entry.js → p-f260e992.entry.js} +1 -1
  367. package/dist/genesys-webcomponents/{p-0833150f.entry.js → p-f27d19b4.entry.js} +1 -1
  368. package/dist/genesys-webcomponents/{p-08b6b57a.entry.js → p-f2ad6e73.entry.js} +1 -1
  369. package/dist/genesys-webcomponents/{p-bad6bb75.entry.js → p-f56b28be.entry.js} +1 -1
  370. package/dist/genesys-webcomponents/{p-b00139c0.entry.js → p-f5a48a63.entry.js} +1 -1
  371. package/dist/genesys-webcomponents/p-f69da993.entry.js +1 -0
  372. package/dist/genesys-webcomponents/p-f7112041.js +1 -0
  373. package/dist/genesys-webcomponents/{p-e33979d6.entry.js → p-f8e2fc52.entry.js} +1 -1
  374. package/dist/genesys-webcomponents/{p-26bffc14.entry.js → p-fd6f8d8f.entry.js} +1 -1
  375. package/dist/genesys-webcomponents/{p-63ef5e07.entry.js → p-ffc29e51.entry.js} +1 -1
  376. package/dist/stencil-wrapper.js +1 -1
  377. package/dist/types/components/beta/gux-avatar/gux-avatar.d.ts +1 -0
  378. package/dist/types/components/beta/gux-date-time/tests/gux-date-time.common.d.ts +8 -0
  379. package/dist/types/components/beta/gux-flag-icon/tests/gux-flag-icon.common.d.ts +11 -0
  380. package/dist/types/components/stable/gux-calendar/gux-calendar.d.ts +2 -1
  381. package/dist/types/components/stable/gux-tabs/gux-tab/tests/gux-tab.common.d.ts +4 -0
  382. package/dist/types/stencil-wrapper.d.ts +1 -1
  383. package/dist/types/test/playwrightTestUtils.d.ts +9 -3
  384. package/package.json +4 -4
  385. package/dist/genesys-webcomponents/p-2208f2a7.entry.js +0 -1
  386. package/dist/genesys-webcomponents/p-6d19f0e4.entry.js +0 -1
  387. package/dist/genesys-webcomponents/p-821ae45f.entry.js +0 -1
  388. package/dist/genesys-webcomponents/p-832c080d.js +0 -1
  389. package/dist/genesys-webcomponents/p-84ec78b2.entry.js +0 -1
  390. package/dist/genesys-webcomponents/p-94109c21.entry.js +0 -1
  391. package/dist/genesys-webcomponents/p-db5a0b17.entry.js +0 -1
  392. /package/dist/cjs/{index.umd-d862fbdc.js → index.umd-f284f091.js} +0 -0
  393. /package/dist/esm/{index.umd-75d0cca4.js → index.umd-360609c4.js} +0 -0
  394. /package/dist/genesys-webcomponents/{p-983dda6b.js → p-f2e3b12a.js} +0 -0
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as a,g as n}from"./p-cf74fd3d.js";import{a as r}from"./p-cf0e7d3b.js";import{a as s,c as i,b as d,f as o}from"./p-e33e87ef.js";import{t as u}from"./p-c35a9bb6.js";import{b as l,g as c,c as g}from"./p-e5e644b3.js";import{c as h}from"./p-267e2aed.js";import{d as x}from"./p-13d8a42a.js";import{u as b}from"./p-c36d332b.js";import"./p-4202e9f2.js";import"./p-43af726d.js";function f(e,t){v(e,"remove",t)}function v(e=[],t,a){const n=[].concat(e);for(const e of n)e.classList[t](a)}const m={previousMonth:"Go to the previous month",nextMonth:"Go to the next month"};function y(e,t){return b()?h(x(t,{year:"numeric",month:"long"}).format(e)):h(e.toLocaleDateString(t,{year:"numeric",month:"long"}))}const p=class{constructor(a){e(this,a),this.calendarSelect=t(this,"calendarSelect",7),this.value="",this.minDate="",this.maxDate="",this.mode="single",this.numberOfMonths=1,this.previewValue=new Date,this.selectingDate=null,this.locale="en"}emitCalendarSelect(){this.calendarSelect.emit(this.value)}async setValue(e){if("range"===this.mode&&e instanceof Array){const[t,a]=e;this.value=s(t,a),this.previewValue=i(this.value)[0]}else{const t=e;this.value=d(t),this.previewValue=t}}async focusPreviewDate(){const e=this.root.shadowRoot.querySelector(`td[data-date="${this.previewValue.getTime()}"]`);e&&e.focus()}async resetCalendarView(e){this.previewValue=e}incrementPreviewDateByMonth(e){this.previewValue=new Date(this.previewValue.getFullYear(),this.previewValue.getMonth()+e,15,0,0,0)}async setValueAndEmit(e){await this.setValue(e),this.emitCalendarSelect()}outOfBounds(e){return""!==this.maxDate&&o(this.maxDate)<e||""!==this.minDate&&o(this.minDate)>e}generateDatesFrom(e,t,a){const n=[],r=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0);for(let t=0;t<a;t++){const t=new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0),a=[],s=new Date,d=r.getFullYear()===s.getFullYear()&&r.getMonth()===s.getMonth()&&r.getDate()===s.getDate();let u=!1,l=!1;t.getMonth()!==e&&(a.push("gux-not-in-month"),u=!0,"range"===this.mode&&(a.push("gux-hidden"),l=!0)),this.outOfBounds(t)&&(a.push("gux-disabled"),u=!0);let c=!1;if(d&&a.push("gux-current-date"),"range"===this.mode){const[e,n]=i(this.value),r=e.getTime(),s=n.getTime();t.getTime()===r&&t.getTime()===s?(c=!0,a.push("gux-selected")):t.getTime()===r?(c=!0,a.push("gux-selected"),a.push("gux-start-date")):t.getTime()===s&&(c=!0,a.push("gux-selected"),a.push("gux-end-date"))}else{const e=o(this.value).getTime();t.getTime()===e&&(c=!0,a.push("gux-selected"))}n.push({class:a.join(" "),date:t,hidden:l,disabled:u,selected:c,isToday:d}),r.setDate(r.getDate()+1)}return n}create2DArray(e,t){const a=[];for(let n=0;n<t-1;n++){const r=e.slice(n*t,n*t+t);this.weekShouldBeDisplayed(r)&&a.push(r)}return a}isFocusableDate(e){return e.selected||this.previewValue.getTime()===e.date.getTime()}weekShouldBeDisplayed(e){const t=e.find((e=>!e.hidden));return e.length&&!!t}getMonthDays(e){const t=new Date(this.previewValue.getTime());t.setDate(1),t.setMonth(t.getMonth()+e);const a=t.getMonth(),n=function(e,t,a){const n=new Date(t,e,1,1,0,0,0),r=-1*(a-n.getDay()-7)%7;return new Date(n.getTime()-864e5*r)}(a,t.getFullYear(),this.startDayOfWeek),r=this.generateDatesFrom(a,n,42);return this.create2DArray(r,7)}addDays(e,t){const a=new Date(e.valueOf());return a.setDate(a.getDate()+t),a}getAllDatesElements(){const e=this.root.shadowRoot.querySelectorAll("td");return Array.from(e)}getAllSelectableDatesElements(){const e=this.root.shadowRoot.querySelectorAll('td[tabindex="0"]');return Array.from(e)}getRangeDatesElements(e,t){const a=[];let n;n=t<e?this.getRangeDates(t,e):this.getRangeDates(e,t);for(const e of n){const t=this.root.shadowRoot.querySelector(`td[data-date="${e.getTime()}"]:not(.gux-hidden)`);t&&a.push(t)}return a}getRangeDates(e,t){const a=[];let n=e;for(;n<=t;)a.push(new Date(n)),n=this.addDays(n,1);return a}async onDateClick(e){if(!this.outOfBounds(e))if("range"!==this.mode)await this.setValueAndEmit(e);else if(null===this.selectingDate)f(this.getAllDatesElements(),"gux-hovered"),this.selectingDate=new Date(e.valueOf()),this.value=s(e,e);else{const t=this.root.shadowRoot.querySelector(`td[data-date="${e.getTime()}"]`);t&&t.classList.add("gux-selected"),this.updateRangeElements(),await this.setValueAndEmit([this.selectingDate,e]),this.previewValue=e,this.selectingDate=null}}onDateMouseEnter(e){"range"===this.mode&&null!==this.selectingDate&&(this.value=s(e,this.selectingDate),this.updateRangeElements())}updateRangeElements(){if("range"===this.mode){f(this.getAllDatesElements(),"gux-hovered");const[e,t]=i(this.value);v(this.getRangeDatesElements(e,t),"add","gux-hovered")}}async onKeyDown(e){switch(e.key){case" ":case"Enter":e.preventDefault(),await this.onDateClick(this.previewValue);break;case"ArrowDown":e.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()+7)),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"ArrowUp":e.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()-7)),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"ArrowLeft":e.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()-1)),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"ArrowRight":e.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()+1)),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"PageUp":e.preventDefault(),this.incrementPreviewDateByMonth(1),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"PageDown":e.preventDefault(),this.incrementPreviewDateByMonth(-1),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}))}}async componentWillLoad(){if(u(this.root,{variant:this.mode}),this.i18n=await l(this.root,m),this.locale=c(this.root),this.startDayOfWeek=this.startDayOfWeek||g(this.locale),!this.value){const e=new Date;e.setHours(0,0,0,0),this.value="range"===this.mode?s(e,e):d(e)}this.previewValue=o(this.value)}componentDidRender(){this.updateRangeElements()}renderMonthHeader(){return a("div",{class:"gux-month-list"},Array.from(Array(this.numberOfMonths).keys()).map((e=>{const t=function(e,t){const a=new Date(e);return a.setDate(1),a.setMonth(a.getMonth()+t),a}(this.previewValue,e);return a("label",null,y(t,this.locale))})))}renderCalendarTable(e){return a("table",null,a("tr",null,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,(s=t)>r.length?s%r.length:s));var r,s}(this.locale,this.startDayOfWeek).map((e=>a("th",null,e)))),this.getMonthDays(e).map((e=>a("tr",null,e.map((e=>a("td",{tabindex:this.isFocusableDate(e)?"0":"-1",class:e.class,"aria-hidden":e.hidden?"true":"false","aria-disabled":e.disabled?"true":"false","data-date":e.date.getTime(),onClick:()=>{this.onDateClick(e.date)},onMouseEnter:()=>this.onDateMouseEnter(e.date),onKeyDown:e=>{this.onKeyDown(e)}},a("div",{class:"gux-date"},e.date.getDate(),a("span",{class:"gux-sr-only"},y(e.date,this.locale))))))))))}render(){return a("div",{key:"a1028eb71c81ad286bc176eabf97c8363cbaa1b8",class:"gux-calendar"},a("div",{key:"a966ea2739a91060df32ec4f2fa1ccc359e9725f",class:"gux-header"},a("button",{key:"97b1fb6481b5665b9e8e67a0e4e7091b23a89519",type:"button",class:"gux-left","aria-label":this.i18n("previousMonth"),onClick:()=>this.incrementPreviewDateByMonth(-1)},a("gux-icon",{key:"0d86f27b1c30f4b0ac292f856f856bba3ccb3999",size:"small",decorative:!0,"icon-name":"custom/chevron-left-small-regular"})),this.renderMonthHeader(),a("button",{key:"83488973a35e42d78392b0424772750eee259075",type:"button",class:"gux-right","aria-label":this.i18n("nextMonth"),onClick:()=>this.incrementPreviewDateByMonth(1)},a("gux-icon",{key:"d403e9d9da4b4bc4a5e23f4eb38003dc2ccbb948",size:"small",decorative:!0,"icon-name":"custom/chevron-right-small-regular"}))),a("div",{key:"398544681200579049d65e2b8d96a65e098b9e0d",class:"gux-content"},Array.from(Array(this.numberOfMonths).keys()).map((e=>this.renderCalendarTable(e)))))}get root(){return n(this)}};p.style=":host{display:inline-block}.gux-calendar{margin-block-start:2px;border-radius:8px;box-shadow:var(--gse-ui-calendarMenu-boxShadow)}.gux-calendar .gux-header{display:flex;align-items:center;justify-content:space-between;block-size: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 .gux-header .gux-header-month-and-year{inline-size: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 .gux-header .gux-left,.gux-calendar .gux-header .gux-right{block-size:100%;color:var(--gse-ui-calendarMenu-header-foregroundColor);cursor:pointer;outline:none;background:none;border:none}.gux-calendar .gux-header .gux-left:focus-visible,.gux-calendar .gux-header .gux-right:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-calendar .gux-header .gux-month-list{display:flex;justify-content:space-between;inline-size:100%;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)}.gux-calendar .gux-header .gux-month-list label{inline-size:100%;text-align:center}.gux-calendar .gux-content{display:flex;align-items:flex-start;block-size:var(--gse-ui-calendarMenu-height);padding:var(--gse-ui-calendarMenu-dateBody-padding);color:var(--gse-ui-calendarMenu-month-default-foregroundColor);background-color:var(--gse-ui-calendarMenu-backgroundColor);border-radius:var(--gse-ui-calendarMenu-single-body-borderRadius)}.gux-calendar .gux-content table{inline-size:var(--gse-ui-calendarMenu-day-input-width);text-align:start;-ms-user-select:none;user-select:none;table-layout:fixed;border-spacing:0}.gux-calendar .gux-content table:not(:last-child){padding-inline-end:24px}.gux-calendar .gux-content table tr{block-size:var(--gse-ui-calendarMenu-day-input-height)}.gux-calendar .gux-content table tr:empty{display:none}.gux-calendar .gux-content table tr th,.gux-calendar .gux-content table tr td{inline-size:var(--gse-ui-calendarMenu-day-date-size);block-size:var(--gse-ui-calendarMenu-day-date-size);padding:0;margin:0;text-align:center}.gux-calendar .gux-content table tr th{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);line-height:var(--gse-ui-calendarMenu-day-headerText-lineHeight)}.gux-calendar .gux-content table tr td{font-family:var(--gse-ui-calendarMenu-date-defaultText-fontFamily);font-size:var(--gse-ui-calendarMenu-date-defaultText-fontSize);font-weight:var(--gse-ui-calendarMenu-date-defaultText-fontWeight);line-height:var(--gse-ui-calendarMenu-date-defaultText-lineHeight);color:var(--gse-ui-calendarMenu-date-default-foregroundColor);cursor:pointer}.gux-calendar .gux-content table tr td.gux-hovered{background-color:var(--gse-ui-calendarMenu-date-range-backgroundColor)}.gux-calendar .gux-content table tr td.gux-selected{color:var(--gse-ui-calendarMenu-date-selected-foregroundColor);background-color:var(--gse-ui-calendarMenu-date-selected-backgroundColor);border-radius:var(--gse-ui-calendarMenu-month-borderRadius)}.gux-calendar .gux-content table tr td.gux-selected:hover:not(.gux-calendar .gux-content table tr td.gux-selected.gux-start-date):not(.gux-calendar .gux-content table tr td.gux-selected.gux-end-date){background-color:var(--gse-ui-calendarMenu-date-selected-hoverBackgroundColor)}.gux-calendar .gux-content table tr td.gux-start-date,.gux-calendar .gux-content table tr td.gux-end-date{background-color:var(--gse-ui-calendarMenu-date-range-backgroundColor)}.gux-calendar .gux-content table tr td.gux-start-date .gux-date,.gux-calendar .gux-content table tr td.gux-end-date .gux-date{display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-calendarMenu-day-date-size);block-size:var(--gse-ui-calendarMenu-day-date-size);background-color:var(--gse-ui-calendarMenu-date-selected-backgroundColor);border-radius:var(--gse-ui-calendarMenu-month-borderRadius)}.gux-calendar .gux-content table tr td.gux-start-date .gux-date:hover,.gux-calendar .gux-content table tr td.gux-end-date .gux-date:hover{background-color:var(--gse-ui-calendarMenu-date-selected-hoverBackgroundColor)}.gux-calendar .gux-content table tr td.gux-start-date{border-radius:var(--gse-ui-calendarMenu-range-date-startDate-borderRadius)}.gux-calendar .gux-content table tr td.gux-end-date{border-radius:var(--gse-ui-calendarMenu-range-date-endDate-borderRadius)}.gux-calendar .gux-content table tr td:hover:not(.gux-calendar .gux-content table tr td.gux-start-date):not(.gux-calendar .gux-content table tr td.gux-end-date):not(.gux-calendar .gux-content table tr td.gux-hovered):not(.gux-calendar .gux-content table tr td.gux-selected){background-color:var(--gse-ui-calendarMenu-date-hover-backgroundColor);border-radius:var(--gse-ui-calendarMenu-month-borderRadius)}.gux-calendar .gux-content table tr td.gux-disabled{pointer-events:none;opacity:var(--gse-ui-calendarMenu-disabled-opacity)}.gux-calendar .gux-content table tr td.gux-not-in-month{opacity:var(--gse-ui-calendarMenu-disabled-opacity)}.gux-calendar .gux-content table tr td.gux-not-in-month:hover{background-color:var(--gse-ui-calendarMenu-date-hover-backgroundColor)}.gux-calendar .gux-content table tr td.gux-not-in-month.gux-hidden{visibility:hidden}.gux-calendar .gux-content table tr td.gux-current-date{font-family:var(--gse-ui-calendarMenu-date-currentText-fontFamily);font-size:var(--gse-ui-calendarMenu-date-currentText-fontSize);font-weight:var(--gse-ui-calendarMenu-date-currentText-fontWeight);line-height:var(--gse-ui-calendarMenu-date-currentText-lineHeight)}.gux-calendar .gux-content table tr td:focus-visible{border-radius:var(--gse-ui-calendarMenu-month-focusBorderRadius);outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-sr-only{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{p as gux_calendar}
@@ -1 +1 @@
1
- import{r as e,c as t,f as n,h as a,g as s}from"./p-cf74fd3d.js";import{b as o}from"./p-e5e644b3.js";import{t as c}from"./p-e79482cf.js";import{g as i,s as r,a as h,b as d,c as l,d as u,e as b,f as m,h as p}from"./p-db201bbc.js";import"./p-4202e9f2.js";import"./p-a43079c8.js";import"./p-2c25e2f2.js";const f={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."},g=class{constructor(n){e(this,n),this.guxorderchange=t(this,"guxorderchange",7),this.highlightResults={matchCount:0,currentMatch:0},this.keyboardOrderChange=i()}watchKeyboardOrderChange(){r(this.root,this.keyboardOrderChange)}async componentWillLoad(){c(this.root),this.i18n=await o(this.root,f)}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=i()}onSearchInput(){this.highlightResults=b(this.root,this.searchElement)}onGuxCurrentMatchChanged(e){this.highlightResults=b(this.root,this.searchElement,e.detail)}onMainCheckboxChange(){m(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:"81fe37471e58f95f0809ec4a6a0b933a670d6cb2",class:"gux-container"},a("div",{key:"bae92afab70a60c9cdf5790ba271d8e197dc013d",class:"gux-sr-only","aria-live":"polite"},`${this.highlightResults.matchCount} ${this.i18n("searchResults")}`),a("div",{key:"c93b40f05f50a4b0b6ed2fae9c19132b6bf57337",class:"gux-search"},a("gux-content-search",{key:"5e7d395332b0eeaf4aa6d6923e491ed1d17f4faf","match-count":this.highlightResults.matchCount,"current-match":this.highlightResults.currentMatch,onGuxcurrentmatchchanged:e=>this.onGuxCurrentMatchChanged(e)},a("input",{key:"a121cae684113f5a3b026ecb9fd4c07554872c70",type:"search",placeholder:this.i18n("search"),onInput:()=>this.onSearchInput(),ref:e=>this.searchElement=e}))),a("div",{key:"2aed161d7becbb19f63a396fbce78719e2abbb70",class:"gux-select"},a("gux-form-field-checkbox",{key:"b63bd6c7c8bb1b8ed6bf3df631d279f15f4e6301"},a("input",{key:"9c535f3adca8d2a6827409b0249386133d2798b5",slot:"input",type:"checkbox",ref:e=>this.mainCheckboxElement=e,onChange:()=>this.onMainCheckboxChange()}),a("label",{key:"c4a236267fa01675112f39f7f1e5432d5c7d7f66",slot:"label"},this.renderSelectedColumnCount()))),a("div",{key:"804df7d8cf8547ffea63a953fe5723f8afc50ea3",class:"gux-list",onChange:()=>this.onListChange()},a("slot",{key:"1da7cab436cde218ba01950ca7f3f54579be9070",onSlotchange:()=>this.onSlotChange()})),a("gux-announce-beta",{key:"80f8be4a2874139096573df84b4200f160eca91d",ref:e=>this.announceElement=e}))}get root(){return s(this)}static get watchers(){return{keyboardOrderChange:["watchKeyboardOrderChange"]}}};g.style=".gux-container{inline-size:320px;min-inline-size:320px;padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding)}.gux-container .gux-search gux-content-search{inline-size:100%}.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-decoration,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-cancel-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-decoration{display:none;-webkit-appearance:none}.gux-container .gux-select{padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding);margin-inline-start:24px}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}";export{g as gux_column_manager}
1
+ import{r as e,c as t,f as n,h as a,g as s}from"./p-cf74fd3d.js";import{b as o}from"./p-e5e644b3.js";import{t as c}from"./p-c35a9bb6.js";import{g as i,s as r,a as h,b as d,c as l,d as u,e as b,f as m,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=i()}watchKeyboardOrderChange(){r(this.root,this.keyboardOrderChange)}async componentWillLoad(){c(this.root),this.i18n=await o(this.root,g)}componentDidLoad(){h(this.root,this.mainCheckboxElement)}handleInternalorderchange(e){e.stopPropagation(),this.emitOrderChange(e.detail)}emitOrderChange(e){const{oldIndex:t,newIndex:n}=e;if(t!==n){const t=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=i()}onSearchInput(){this.highlightResults=b(this.root,this.searchElement)}onGuxCurrentMatchChanged(e){this.highlightResults=b(this.root,this.searchElement,e.detail)}onMainCheckboxChange(){m(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:"81fe37471e58f95f0809ec4a6a0b933a670d6cb2",class:"gux-container"},a("div",{key:"bae92afab70a60c9cdf5790ba271d8e197dc013d",class:"gux-sr-only","aria-live":"polite"},`${this.highlightResults.matchCount} ${this.i18n("searchResults")}`),a("div",{key:"c93b40f05f50a4b0b6ed2fae9c19132b6bf57337",class:"gux-search"},a("gux-content-search",{key:"5e7d395332b0eeaf4aa6d6923e491ed1d17f4faf","match-count":this.highlightResults.matchCount,"current-match":this.highlightResults.currentMatch,onGuxcurrentmatchchanged:e=>this.onGuxCurrentMatchChanged(e)},a("input",{key:"a121cae684113f5a3b026ecb9fd4c07554872c70",type:"search",placeholder:this.i18n("search"),onInput:()=>this.onSearchInput(),ref:e=>this.searchElement=e}))),a("div",{key:"2aed161d7becbb19f63a396fbce78719e2abbb70",class:"gux-select"},a("gux-form-field-checkbox",{key:"b63bd6c7c8bb1b8ed6bf3df631d279f15f4e6301"},a("input",{key:"9c535f3adca8d2a6827409b0249386133d2798b5",slot:"input",type:"checkbox",ref:e=>this.mainCheckboxElement=e,onChange:()=>this.onMainCheckboxChange()}),a("label",{key:"c4a236267fa01675112f39f7f1e5432d5c7d7f66",slot:"label"},this.renderSelectedColumnCount()))),a("div",{key:"804df7d8cf8547ffea63a953fe5723f8afc50ea3",class:"gux-list",onChange:()=>this.onListChange()},a("slot",{key:"1da7cab436cde218ba01950ca7f3f54579be9070",onSlotchange:()=>this.onSlotChange()})),a("gux-announce-beta",{key:"80f8be4a2874139096573df84b4200f160eca91d",ref:e=>this.announceElement=e}))}get root(){return s(this)}static get watchers(){return{keyboardOrderChange:["watchKeyboardOrderChange"]}}};f.style=".gux-container{inline-size:320px;min-inline-size:320px;padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding)}.gux-container .gux-search gux-content-search{inline-size:100%}.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-decoration,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-cancel-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-decoration{display:none;-webkit-appearance:none}.gux-container .gux-select{padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding);margin-inline-start:24px}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}";export{f as gux_column_manager}
@@ -1 +1 @@
1
- import{r as t,c as e,h as s,g as a}from"./p-cf74fd3d.js";import{b as i}from"./p-e5e644b3.js";import{t as n}from"./p-e79482cf.js";import{g as r}from"./p-4202e9f2.js";import{o}from"./p-0f60c7b5.js";import{t as c}from"./p-408d5857.js";const d=class{constructor(s){t(this,s),this.guxsortchanged=e(this,"guxsortchanged",7),this.includeUnsorted=!1,this.active=!1,this.sort="none",this.isLeftAlignIcon=!1}async componentWillLoad(){n(this.root),this.i18n=await i(this.root,c,"gux-table"),this.tableHeader=r("th",this.root),this.thObserver=o(this.tableHeader,(()=>{this.setState()}),{attributes:!0,childList:!1,subtree:!1}),this.setState()}disconnectedCallback(){this.thObserver&&this.thObserver.disconnect()}onClick(){this.guxsortchanged.emit({columnName:this.tableHeader.dataset.columnName,sortDirection:this.getNextSort(this.sort)})}setState(){this.headerContent=this.tableHeader.textContent,this.isLeftAlignIcon=this.tableHeader.hasAttribute("data-cell-numeric")||this.tableHeader.hasAttribute("data-cell-action");const t=this.tableHeader.getAttribute("aria-sort");switch(t){case"ascending":case"descending":this.active=!0,this.sort=t;break;default:this.active=!1,this.sort="none"}}getIconName(t){return"descending"===t?"fa/caret-down-solid":"fa/caret-up-solid"}getNextSort(t){switch(t){case"none":return"ascending";case"ascending":return"descending";default:return this.includeUnsorted?"none":"ascending"}}getSRText(t){switch(t){case"ascending":return this.i18n("ascendingColumnSort",{headerContent:this.headerContent});case"descending":return this.i18n(this.includeUnsorted?"descendingColumnSortIncludeUnsorted":"descendingColumnSort",{headerContent:this.headerContent});default:return this.i18n("noColumnSort",{headerContent:this.headerContent})}}render(){return s("div",{key:"35dd837e0e7bf4651e67b34682cc700bd0cea867",class:"gux-container"},s("button",{key:"d2c2d42607ecdbb15986c63deccaa9b279662f6b",class:{"gux-sort-button":!0,"gux-active":this.active},type:"button",onClick:()=>this.onClick(),"aria-label":this.getSRText(this.sort)},s("gux-icon",{key:"cdf25dd3dbc12ee33aa15e9987bfb1c35bfa58df",class:{"gux-sort-icon":!0,"gux-left":this.isLeftAlignIcon},size:"small","icon-name":this.getIconName(this.sort),decorative:!0})),s("div",{key:"0e3dd89d4aa6b278d8b6cd0c8d3eef686d01b29a",class:"gux-resize-spacer"}))}static get delegatesFocus(){return!0}get root(){return a(this)}};d.style=".gux-container{position:absolute;inset:0;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:flex-start flex-start;align-items:center;border-block-start:var(--gse-ui-dataTableItems-header-selectedBar-height) solid transparent;border-block-end:var(--gse-ui-dataTableItems-header-selectedBar-height) solid transparent}.gux-container:focus-within{border-block-end-color:var(--gse-ui-dataTableItems-header-selectedIndicatorColor)}.gux-container .gux-sort-button{all:unset;flex:1 1 auto;align-self:stretch;order:0;cursor:pointer}.gux-container .gux-sort-button .gux-sort-icon{float:inline-end;margin-block:0;margin-inline:var(--gse-ui-dataTableItems-header-gap);color:var(--gse-ui-dataTableItems-header-sort-foregroundColor)}.gux-container .gux-sort-button .gux-sort-icon.gux-left{float:inline-start;margin-inline-start:calc(2px + var(--gse-ui-dataTableItems-header-gap))}.gux-container .gux-resize-spacer{flex:0 1 auto;align-self:stretch;order:0;inline-size:2px}";export{d as gux_sort_control}
1
+ import{r as t,c as e,h as s,g as a}from"./p-cf74fd3d.js";import{b as i}from"./p-e5e644b3.js";import{t as n}from"./p-c35a9bb6.js";import{g as r}from"./p-4202e9f2.js";import{o}from"./p-0f60c7b5.js";import{t as c}from"./p-408d5857.js";const d=class{constructor(s){t(this,s),this.guxsortchanged=e(this,"guxsortchanged",7),this.includeUnsorted=!1,this.active=!1,this.sort="none",this.isLeftAlignIcon=!1}async componentWillLoad(){n(this.root),this.i18n=await i(this.root,c,"gux-table"),this.tableHeader=r("th",this.root),this.thObserver=o(this.tableHeader,(()=>{this.setState()}),{attributes:!0,childList:!1,subtree:!1}),this.setState()}disconnectedCallback(){this.thObserver&&this.thObserver.disconnect()}onClick(){this.guxsortchanged.emit({columnName:this.tableHeader.dataset.columnName,sortDirection:this.getNextSort(this.sort)})}setState(){this.headerContent=this.tableHeader.textContent,this.isLeftAlignIcon=this.tableHeader.hasAttribute("data-cell-numeric")||this.tableHeader.hasAttribute("data-cell-action");const t=this.tableHeader.getAttribute("aria-sort");switch(t){case"ascending":case"descending":this.active=!0,this.sort=t;break;default:this.active=!1,this.sort="none"}}getIconName(t){return"descending"===t?"fa/caret-down-solid":"fa/caret-up-solid"}getNextSort(t){switch(t){case"none":return"ascending";case"ascending":return"descending";default:return this.includeUnsorted?"none":"ascending"}}getSRText(t){switch(t){case"ascending":return this.i18n("ascendingColumnSort",{headerContent:this.headerContent});case"descending":return this.i18n(this.includeUnsorted?"descendingColumnSortIncludeUnsorted":"descendingColumnSort",{headerContent:this.headerContent});default:return this.i18n("noColumnSort",{headerContent:this.headerContent})}}render(){return s("div",{key:"35dd837e0e7bf4651e67b34682cc700bd0cea867",class:"gux-container"},s("button",{key:"d2c2d42607ecdbb15986c63deccaa9b279662f6b",class:{"gux-sort-button":!0,"gux-active":this.active},type:"button",onClick:()=>this.onClick(),"aria-label":this.getSRText(this.sort)},s("gux-icon",{key:"cdf25dd3dbc12ee33aa15e9987bfb1c35bfa58df",class:{"gux-sort-icon":!0,"gux-left":this.isLeftAlignIcon},size:"small","icon-name":this.getIconName(this.sort),decorative:!0})),s("div",{key:"0e3dd89d4aa6b278d8b6cd0c8d3eef686d01b29a",class:"gux-resize-spacer"}))}static get delegatesFocus(){return!0}get root(){return a(this)}};d.style=".gux-container{position:absolute;inset:0;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:flex-start flex-start;align-items:center;border-block-start:var(--gse-ui-dataTableItems-header-selectedBar-height) solid transparent;border-block-end:var(--gse-ui-dataTableItems-header-selectedBar-height) solid transparent}.gux-container:focus-within{border-block-end-color:var(--gse-ui-dataTableItems-header-selectedIndicatorColor)}.gux-container .gux-sort-button{all:unset;flex:1 1 auto;align-self:stretch;order:0;cursor:pointer}.gux-container .gux-sort-button .gux-sort-icon{float:inline-end;margin-block:0;margin-inline:var(--gse-ui-dataTableItems-header-gap);color:var(--gse-ui-dataTableItems-header-sort-foregroundColor)}.gux-container .gux-sort-button .gux-sort-icon.gux-left{float:inline-start;margin-inline-start:calc(2px + var(--gse-ui-dataTableItems-header-gap))}.gux-container .gux-resize-spacer{flex:0 1 auto;align-self:stretch;order:0;inline-size:2px}";export{d as gux_sort_control}
@@ -1 +1 @@
1
- import{r as t,h as e,g as o}from"./p-cf74fd3d.js";import{t as s}from"./p-e79482cf.js";const r=class{constructor(e){t(this,e)}componentWillLoad(){s(this.root)}render(){return e("span",{key:"415336aabbf842386fdaf43d88d019bc4c46e561",class:"gux-sr-only"},e("slot",{key:"930fb469c19e12f408376bf0f6c96358e00b481d"}))}get root(){return o(this)}};r.style=":host{position:relative}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}";export{r as gux_screen_reader_beta}
1
+ import{r as t,h as e,g as o}from"./p-cf74fd3d.js";import{t as s}from"./p-c35a9bb6.js";const r=class{constructor(e){t(this,e)}componentWillLoad(){s(this.root)}render(){return e("span",{key:"415336aabbf842386fdaf43d88d019bc4c46e561",class:"gux-sr-only"},e("slot",{key:"930fb469c19e12f408376bf0f6c96358e00b481d"}))}get root(){return o(this)}};r.style=":host{position:relative}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}";export{r as gux_screen_reader_beta}
@@ -1 +1 @@
1
- import{r as t,c as e,f as i,h as o,g as r}from"./p-cf74fd3d.js";import{O as n}from"./p-f3d844c7.js";import{b as s}from"./p-e5e644b3.js";import{s as l}from"./p-2c25e2f2.js";import{b as u}from"./p-cf0e7d3b.js";import{o as a}from"./p-f4751a15.js";import{t as d}from"./p-e79482cf.js";import{c,s as h,g,a as f}from"./p-01ff7495.js";import{O as p}from"./p-946c70b7.js";import"./p-4202e9f2.js";const x={textInputResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown",numberSelected:"{numberSelected} selected",pressEnterToCreate:"Press Enter to create new option, {textInputValue}"};var b=function(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const v=class{constructor(i){t(this,i),this.guxcreateoption=e(this,"guxcreateoption",7),this.guxexpanded=e(this,"guxexpanded",7),this.guxcollapsed=e(this,"guxcollapsed",7),this.guxfilter=e(this,"guxfilter",7),this.disabled=!1,this.required=!1,this.loading=!1,this.filterType="none",this.hasError=!1,this.exceedTargetWidth=!1,this.hasCreate=!1,this.expanded=!1,this.textInput=""}onMutation(){var t;this.listboxElement||(this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.applyListboxEventListeners())}onInternalExpanded(t){t.stopPropagation(),this.guxexpanded.emit()}onInternalCollapsed(t){t.stopPropagation(),this.guxcollapsed.emit()}focusSelectedItemAfterRender(t){t&&this.listboxElement&&u((()=>{this.hasTextInput()?this.textInputElement.focus():this.listboxElement.focus()})),t||(this.textInput="")}watchDisabled(t){t&&(this.expanded=!1)}watchValue(t){this.validateValue(t,this.listboxElement)}handleFilter(t){this.guxfilter.emit(t)}getSelectedValues(){return Promise.resolve(c(this.value))}onKeydown(t){switch(t.key){case"Escape":return this.hasTextInput()&&document.activeElement===this.listboxElement?this.textInputElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.textInputElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("focusFieldButton")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0,h(this.listboxElement)));case"Enter":return this.canCreateNewOption()&&this.isActiveElement()&&this.emitCreateOption(),void(this.expanded||this.isFilterable()||h(this.listboxElement));case" ":return void(this.expanded||this.isFilterable()||h(this.listboxElement))}}onInternallistboxoptionsupdated(t){t.stopPropagation(),requestAnimationFrame((()=>{requestAnimationFrame((()=>i(this.root)))}))}onClearselected(t){t.stopPropagation(),this.updateValue(void 0),this.listboxElement&&(this.listboxElement.value=void 0),this.validateValue(this.value,this.listboxElement),this.fieldButtonElement.focus()}onCreatenewoption(t){t.stopPropagation(),this.emitCreateOption()}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t)}onClickOutside(){this.collapseListbox("noFocusChange")}connectedCallback(){var t;this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.hasCreate=!!this.root.querySelector("gux-create-option"))}async componentWillLoad(){d(this.root),this.i18n=await s(this.root,x),a(this.root,(()=>{i(this.root)}))}componentDidLoad(){this.applyListboxEventListeners()}componentWillRender(){this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.listboxElement.loading=this.loading,this.listboxElement.filterType=this.filterType,this.listboxElement.textInput=this.textInput)}validateValue(t,e){void 0!==t?this.getOptionElementByValue(t)?e.value=t:this.value=void 0:e&&(e.value=t)}hasTextInput(){return this.isFilterable()||this.hasCreate}applyListboxEventListeners(){var t,e;null===(t=this.listboxElement)||void 0===t||t.addEventListener("input",(t=>{t.stopPropagation(),this.updateValue(t.target.value)})),null===(e=this.listboxElement)||void 0===e||e.addEventListener("change",(t=>{t.stopPropagation()}))}isFilterable(){return"custom"===this.filterType||"starts-with"===this.filterType}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}getOptionElementByValue(t){const e=Array.from(this.root.querySelectorAll("gux-option-multi")),i=c(t);return e.filter((t=>i.includes(t.value)))}fieldButtonClick(){this.expanded=!this.expanded}fieldButtonInputClick(){this.expanded||(this.expanded=!this.expanded)}filterInput(t){t.stopPropagation(),this.textInput=this.textInputElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.hasTextInput()&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.hasTextInput()&&document.activeElement===this.listboxElement}emitCreateOption(){this.guxcreateoption.emit(this.textInput),this.textInput="",this.textInputElement.value=""}canCreateNewOption(){return this.hasCreate&&this.textInput&&!this.listboxElement.hasExactMatch}isActiveElement(){return document.activeElement===this.root}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){if("ArrowDown"===t.key)return t.stopImmediatePropagation(),t.preventDefault(),this.listboxElement.focus(),void h(this.listboxElement)}filterKeyup(t){" "!==t.key||t.preventDefault()}collapseListbox(t){this.expanded&&(this.expanded=!1),"focusFieldButton"===t&&this.fieldButtonElement.focus()}updateValue(t){this.value!==t&&(this.value=t,l(this.root,"input"),l(this.root,"change"))}getTypeaheadText(t){var e;const i=t.length;if(i>0&&!this.loading){const o=g(this.listboxElement,t);if(o&&"custom"!==this.filterType){const t=null===(e=f(o))||void 0===e?void 0:e.textContent.trim();return null==t?void 0:t.substring(i)}return""}}renderTargetDisplay(){return o("div",{class:"gux-placeholder"},this.getSrSelectedText(),this.getSelectedOptionText()||this.placeholder||this.i18n("noSelection"))}getSelectedOptionText(){const t=this.getSelectedOptionValueString();return!!t&&[t,o("div",{class:"gux-sr-only"},this.placeholder)]}getSelectedOptionValueString(){return this.getOptionElementByValue(this.value).map((t=>{var e;return null===(e=f(t))||void 0===e?void 0:e.textContent.trim()})).join(", ")}getSrSelectedText(){const t=this.getOptionElementByValue(this.value);if(t.length)return o("span",{class:"gux-sr-only"},this.i18n("numberSelected",{numberSelected:t.length.toString()}))}getInputAriaLabel(){return this.canCreateNewOption()&&this.isActiveElement()?this.i18n("pressEnterToCreate",{textInputValue:this.textInput}):this.i18n("textInputResults")}renderTag(){const t=c(this.value);if(t.length)return o("gux-dropdown-multi-tag",{disabled:this.disabled,"number-selected":t.length})}renderFilterInputField(){if(this.expanded&&this.hasTextInput())return o("div",{class:"gux-field gux-input-field"},o("div",{class:"gux-field-content"},o("div",{class:"gux-filter"},o("div",{class:"gux-filter-display"},o("span",{class:"gux-filter-text"},this.textInput),o("span",{class:"gux-filter-suggestion"},this.getTypeaheadText(this.textInput))),o("div",{class:"input-and-dropdown-button"},o("input",{onClick:this.fieldButtonInputClick.bind(this),placeholder:this.getSelectedOptionValueString()||this.placeholder||this.i18n("noSelection"),class:"gux-filter-input",type:"text","aria-label":this.getInputAriaLabel(),ref:t=>this.textInputElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this),disabled:this.disabled})))))}renderPopup(){return o("div",{slot:"popup",class:"gux-listbox-container"},o("slot",null))}renderTarget(){return o("div",{class:{"gux-target-container":!0,"gux-target-container-expanded":this.expanded&&this.hasTextInput(),"gux-target-container-collapsed":!(this.expanded&&this.hasTextInput()),"gux-error":this.hasError,"gux-disabled":this.disabled},slot:"target"},this.renderFilterInputField(),o("button",{type:"button",class:"gux-field gux-field-button",disabled:this.disabled,onClick:this.fieldButtonClick.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},this.renderTargetContent(),this.renderTag(),this.renderRadialLoading(),o("gux-icon",{class:{"gux-expand-icon":!0},size:"small","screenreader-text":this.i18n("dropdown"),iconName:"custom/chevron-down-small-regular"})))}renderTargetContent(){if(!this.expanded||!this.hasTextInput())return o("div",{class:"gux-field-content"},this.renderTargetDisplay())}renderRadialLoading(){if(this.loading&&!this.expanded)return o("gux-radial-loading",{context:"input"})}render(){return[o("div",{key:"6927f71083cd8f0700374d948be0aa25cb3db639",class:"gux-dropdown-container"},o("gux-popup",{key:"f7ed293f36f193c6e03d245656ec1d8b09d44f7b",expanded:this.expanded&&(!this.loading||this.isFilterable()),disabled:this.disabled||this.loading&&!this.isFilterable(),exceedTargetWidth:this.exceedTargetWidth},this.renderTarget(),this.renderPopup()))]}static get delegatesFocus(){return!0}get root(){return r(this)}static get watchers(){return{expanded:["focusSelectedItemAfterRender"],disabled:["watchDisabled"],value:["watchValue"],textInput:["handleFilter"]}}};b([p({childList:!0,subtree:!0})],v.prototype,"onMutation",null),b([n({triggerEvents:"mousedown"})],v.prototype,"onClickOutside",null),v.style=":host{box-sizing:border-box;color:var(--gse-ui-formControl-input-populatedColor)}.gux-dropdown-container{position:relative}.gux-error.gux-target-container-collapsed .gux-field-button,.gux-error.gux-target-container-expanded{border:var(--gse-ui-formControl-input-error-border-width) var(--gse-ui-formControl-input-error-border-style) var(--gse-ui-formControl-input-error-border-color)}.gux-disabled.gux-target-container-collapsed .gux-field-button,.gux-disabled.gux-target-container-expanded{user-select:none;border:var(--gse-ui-formControl-input-disabled-border-width) var(--gse-ui-formControl-input-disabled-border-style) var(--gse-ui-formControl-input-disabled-border-color)}.gux-field,.gux-target-container-expanded{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center;inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);cursor:pointer;background-color:var(--gse-ui-formControl-input-backgroundColor)}.gux-target-container-expanded,.gux-target-container-collapsed .gux-field{padding:var(--gse-ui-formControl-input-padding)}.gux-target-container-collapsed .gux-field-button:hover,.gux-target-container-expanded:hover{border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-field.gux-input-field{block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content{position:relative;display:flex;flex:1 1 0;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;min-inline-size:0;block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content .gux-filter,.gux-field .gux-field-content .gux-selected-option,.gux-field .gux-field-content .gux-placeholder{flex:1 1 auto;align-self:auto;order:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter .gux-sr-only:not(:focus):not(:active),.gux-field .gux-field-content .gux-selected-option .gux-sr-only:not(:focus):not(:active),.gux-field .gux-field-content .gux-placeholder .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}.gux-field .gux-field-content .gux-filter{position:relative;block-size:100%;padding-inline-start:0}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;inline-size:100%;color:transparent;caret-color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-input:placeholder-shown{text-overflow:ellipsis}.gux-field .gux-field-content .gux-filter .gux-filter-display{white-space:pre}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{color:var(--gse-ui-formControl-input-suggestionColor)}.gux-field .gux-field-content .gux-filter .gux-filter-input,.gux-field .gux-field-content .gux-filter .gux-filter-display{position:absolute}.gux-field .gux-field-content .gux-placeholder{color:var(--gse-ui-formControl-input-placeholderColor)}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;padding-inline-start:var(--gse-ui-dropdown-gap);color:var(--gse-ui-formControl-input-inputIcon-iconEndColor)}.gux-target-container-expanded{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-expanded:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-expanded:focus-within:has(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-expanded .gux-filter-input{background-color:inherit;border:none}.gux-target-container-expanded .gux-filter-input:focus{outline:none;border:none}.gux-target-container-expanded .gux-field-button{inline-size:auto;block-size:var(--gse-ui-formControl-input-contentText-lineHeight);margin:0;outline:none;background:inherit;border:none;box-shadow:none}.gux-target-container-expanded .gux-field-button:focus{outline:none}.gux-target-container-collapsed .gux-field-button{border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-collapsed .gux-field-button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-collapsed .gux-field-button:focus-within:has(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-listbox-container{box-sizing:border-box;margin:0}";export{v as gux_dropdown_multi}
1
+ import{r as t,c as e,f as i,h as o,g as r}from"./p-cf74fd3d.js";import{O as n}from"./p-f3d844c7.js";import{b as s}from"./p-e5e644b3.js";import{s as l}from"./p-2c25e2f2.js";import{b as u}from"./p-cf0e7d3b.js";import{o as a}from"./p-f4751a15.js";import{t as d}from"./p-c35a9bb6.js";import{c,s as h,g,a as f}from"./p-01ff7495.js";import{O as p}from"./p-946c70b7.js";import"./p-4202e9f2.js";const x={textInputResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown",numberSelected:"{numberSelected} selected",pressEnterToCreate:"Press Enter to create new option, {textInputValue}"};var b=function(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const v=class{constructor(i){t(this,i),this.guxcreateoption=e(this,"guxcreateoption",7),this.guxexpanded=e(this,"guxexpanded",7),this.guxcollapsed=e(this,"guxcollapsed",7),this.guxfilter=e(this,"guxfilter",7),this.disabled=!1,this.required=!1,this.loading=!1,this.filterType="none",this.hasError=!1,this.exceedTargetWidth=!1,this.hasCreate=!1,this.expanded=!1,this.textInput=""}onMutation(){var t;this.listboxElement||(this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.applyListboxEventListeners())}onInternalExpanded(t){t.stopPropagation(),this.guxexpanded.emit()}onInternalCollapsed(t){t.stopPropagation(),this.guxcollapsed.emit()}focusSelectedItemAfterRender(t){t&&this.listboxElement&&u((()=>{this.hasTextInput()?this.textInputElement.focus():this.listboxElement.focus()})),t||(this.textInput="")}watchDisabled(t){t&&(this.expanded=!1)}watchValue(t){this.validateValue(t,this.listboxElement)}handleFilter(t){this.guxfilter.emit(t)}getSelectedValues(){return Promise.resolve(c(this.value))}onKeydown(t){switch(t.key){case"Escape":return this.hasTextInput()&&document.activeElement===this.listboxElement?this.textInputElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.textInputElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("focusFieldButton")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0,h(this.listboxElement)));case"Enter":return this.canCreateNewOption()&&this.isActiveElement()&&this.emitCreateOption(),void(this.expanded||this.isFilterable()||h(this.listboxElement));case" ":return void(this.expanded||this.isFilterable()||h(this.listboxElement))}}onInternallistboxoptionsupdated(t){t.stopPropagation(),requestAnimationFrame((()=>{requestAnimationFrame((()=>i(this.root)))}))}onClearselected(t){t.stopPropagation(),this.updateValue(void 0),this.listboxElement&&(this.listboxElement.value=void 0),this.validateValue(this.value,this.listboxElement),this.fieldButtonElement.focus()}onCreatenewoption(t){t.stopPropagation(),this.emitCreateOption()}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t)}onClickOutside(){this.collapseListbox("noFocusChange")}connectedCallback(){var t;this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.hasCreate=!!this.root.querySelector("gux-create-option"))}async componentWillLoad(){d(this.root),this.i18n=await s(this.root,x),a(this.root,(()=>{i(this.root)}))}componentDidLoad(){this.applyListboxEventListeners()}componentWillRender(){this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.listboxElement.loading=this.loading,this.listboxElement.filterType=this.filterType,this.listboxElement.textInput=this.textInput)}validateValue(t,e){void 0!==t?this.getOptionElementByValue(t)?e.value=t:this.value=void 0:e&&(e.value=t)}hasTextInput(){return this.isFilterable()||this.hasCreate}applyListboxEventListeners(){var t,e;null===(t=this.listboxElement)||void 0===t||t.addEventListener("input",(t=>{t.stopPropagation(),this.updateValue(t.target.value)})),null===(e=this.listboxElement)||void 0===e||e.addEventListener("change",(t=>{t.stopPropagation()}))}isFilterable(){return"custom"===this.filterType||"starts-with"===this.filterType}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}getOptionElementByValue(t){const e=Array.from(this.root.querySelectorAll("gux-option-multi")),i=c(t);return e.filter((t=>i.includes(t.value)))}fieldButtonClick(){this.expanded=!this.expanded}fieldButtonInputClick(){this.expanded||(this.expanded=!this.expanded)}filterInput(t){t.stopPropagation(),this.textInput=this.textInputElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.hasTextInput()&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.hasTextInput()&&document.activeElement===this.listboxElement}emitCreateOption(){this.guxcreateoption.emit(this.textInput),this.textInput="",this.textInputElement.value=""}canCreateNewOption(){return this.hasCreate&&this.textInput&&!this.listboxElement.hasExactMatch}isActiveElement(){return document.activeElement===this.root}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){if("ArrowDown"===t.key)return t.stopImmediatePropagation(),t.preventDefault(),this.listboxElement.focus(),void h(this.listboxElement)}filterKeyup(t){" "!==t.key||t.preventDefault()}collapseListbox(t){this.expanded&&(this.expanded=!1),"focusFieldButton"===t&&this.fieldButtonElement.focus()}updateValue(t){this.value!==t&&(this.value=t,l(this.root,"input"),l(this.root,"change"))}getTypeaheadText(t){var e;const i=t.length;if(i>0&&!this.loading){const o=g(this.listboxElement,t);if(o&&"custom"!==this.filterType){const t=null===(e=f(o))||void 0===e?void 0:e.textContent.trim();return null==t?void 0:t.substring(i)}return""}}renderTargetDisplay(){return o("div",{class:"gux-placeholder"},this.getSrSelectedText(),this.getSelectedOptionText()||this.placeholder||this.i18n("noSelection"))}getSelectedOptionText(){const t=this.getSelectedOptionValueString();return!!t&&[t,o("div",{class:"gux-sr-only"},this.placeholder)]}getSelectedOptionValueString(){return this.getOptionElementByValue(this.value).map((t=>{var e;return null===(e=f(t))||void 0===e?void 0:e.textContent.trim()})).join(", ")}getSrSelectedText(){const t=this.getOptionElementByValue(this.value);if(t.length)return o("span",{class:"gux-sr-only"},this.i18n("numberSelected",{numberSelected:t.length.toString()}))}getInputAriaLabel(){return this.canCreateNewOption()&&this.isActiveElement()?this.i18n("pressEnterToCreate",{textInputValue:this.textInput}):this.i18n("textInputResults")}renderTag(){const t=c(this.value);if(t.length)return o("gux-dropdown-multi-tag",{disabled:this.disabled,"number-selected":t.length})}renderFilterInputField(){if(this.expanded&&this.hasTextInput())return o("div",{class:"gux-field gux-input-field"},o("div",{class:"gux-field-content"},o("div",{class:"gux-filter"},o("div",{class:"gux-filter-display"},o("span",{class:"gux-filter-text"},this.textInput),o("span",{class:"gux-filter-suggestion"},this.getTypeaheadText(this.textInput))),o("div",{class:"input-and-dropdown-button"},o("input",{onClick:this.fieldButtonInputClick.bind(this),placeholder:this.getSelectedOptionValueString()||this.placeholder||this.i18n("noSelection"),class:"gux-filter-input",type:"text","aria-label":this.getInputAriaLabel(),ref:t=>this.textInputElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this),disabled:this.disabled})))))}renderPopup(){return o("div",{slot:"popup",class:"gux-listbox-container"},o("slot",null))}renderTarget(){return o("div",{class:{"gux-target-container":!0,"gux-target-container-expanded":this.expanded&&this.hasTextInput(),"gux-target-container-collapsed":!(this.expanded&&this.hasTextInput()),"gux-error":this.hasError,"gux-disabled":this.disabled},slot:"target"},this.renderFilterInputField(),o("button",{type:"button",class:"gux-field gux-field-button",disabled:this.disabled,onClick:this.fieldButtonClick.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},this.renderTargetContent(),this.renderTag(),this.renderRadialLoading(),o("gux-icon",{class:{"gux-expand-icon":!0},size:"small","screenreader-text":this.i18n("dropdown"),iconName:"custom/chevron-down-small-regular"})))}renderTargetContent(){if(!this.expanded||!this.hasTextInput())return o("div",{class:"gux-field-content"},this.renderTargetDisplay())}renderRadialLoading(){if(this.loading&&!this.expanded)return o("gux-radial-loading",{context:"input"})}render(){return[o("div",{key:"6927f71083cd8f0700374d948be0aa25cb3db639",class:"gux-dropdown-container"},o("gux-popup",{key:"f7ed293f36f193c6e03d245656ec1d8b09d44f7b",expanded:this.expanded&&(!this.loading||this.isFilterable()),disabled:this.disabled||this.loading&&!this.isFilterable(),exceedTargetWidth:this.exceedTargetWidth},this.renderTarget(),this.renderPopup()))]}static get delegatesFocus(){return!0}get root(){return r(this)}static get watchers(){return{expanded:["focusSelectedItemAfterRender"],disabled:["watchDisabled"],value:["watchValue"],textInput:["handleFilter"]}}};b([p({childList:!0,subtree:!0})],v.prototype,"onMutation",null),b([n({triggerEvents:"mousedown"})],v.prototype,"onClickOutside",null),v.style=":host{box-sizing:border-box;color:var(--gse-ui-formControl-input-populatedColor)}.gux-dropdown-container{position:relative}.gux-error.gux-target-container-collapsed .gux-field-button,.gux-error.gux-target-container-expanded{border:var(--gse-ui-formControl-input-error-border-width) var(--gse-ui-formControl-input-error-border-style) var(--gse-ui-formControl-input-error-border-color)}.gux-disabled.gux-target-container-collapsed .gux-field-button,.gux-disabled.gux-target-container-expanded{user-select:none;border:var(--gse-ui-formControl-input-disabled-border-width) var(--gse-ui-formControl-input-disabled-border-style) var(--gse-ui-formControl-input-disabled-border-color)}.gux-field,.gux-target-container-expanded{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center;inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);cursor:pointer;background-color:var(--gse-ui-formControl-input-backgroundColor)}.gux-target-container-expanded,.gux-target-container-collapsed .gux-field{padding:var(--gse-ui-formControl-input-padding)}.gux-target-container-collapsed .gux-field-button:hover,.gux-target-container-expanded:hover{border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-field.gux-input-field{block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content{position:relative;display:flex;flex:1 1 0;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;min-inline-size:0;block-size:var(--gse-ui-formControl-input-contentText-lineHeight)}.gux-field .gux-field-content .gux-filter,.gux-field .gux-field-content .gux-selected-option,.gux-field .gux-field-content .gux-placeholder{flex:1 1 auto;align-self:auto;order:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter .gux-sr-only:not(:focus):not(:active),.gux-field .gux-field-content .gux-selected-option .gux-sr-only:not(:focus):not(:active),.gux-field .gux-field-content .gux-placeholder .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}.gux-field .gux-field-content .gux-filter{position:relative;block-size:100%;padding-inline-start:0}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;inline-size:100%;color:transparent;caret-color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-input:placeholder-shown{text-overflow:ellipsis}.gux-field .gux-field-content .gux-filter .gux-filter-display{white-space:pre}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{color:var(--gse-ui-formControl-input-suggestionColor)}.gux-field .gux-field-content .gux-filter .gux-filter-input,.gux-field .gux-field-content .gux-filter .gux-filter-display{position:absolute}.gux-field .gux-field-content .gux-placeholder{color:var(--gse-ui-formControl-input-placeholderColor)}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;padding-inline-start:var(--gse-ui-dropdown-gap);color:var(--gse-ui-formControl-input-inputIcon-iconEndColor)}.gux-target-container-expanded{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-expanded:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-expanded:focus-within:has(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-expanded .gux-filter-input{background-color:inherit;border:none}.gux-target-container-expanded .gux-filter-input:focus{outline:none;border:none}.gux-target-container-expanded .gux-field-button{inline-size:auto;block-size:var(--gse-ui-formControl-input-contentText-lineHeight);margin:0;outline:none;background:inherit;border:none;box-shadow:none}.gux-target-container-expanded .gux-field-button:focus{outline:none}.gux-target-container-collapsed .gux-field-button{border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-collapsed .gux-field-button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target-container-collapsed .gux-field-button:focus-within:has(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-listbox-container{box-sizing:border-box;margin:0}";export{v as gux_dropdown_multi}
@@ -1 +1 @@
1
- import{r as e,h as t,H as o,g as s}from"./p-cf74fd3d.js";import{a as i,c as r,o as a,f as n,s as d,b as c}from"./p-04c85b3b.js";import{a as h}from"./p-cf0e7d3b.js";import{t as u}from"./p-e79482cf.js";import{h as l}from"./p-67d20704.js";const f=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:"705dd7369dba4352645c1705db33b9f3f7cfd390",tabIndex:0,"aria-haspopup":"true"},t("span",{key:"542a46d2915e83b30dcecf8d515efdd67b112785",ref:e=>this.targetElement=e},t("slot",{key:"346efd2bd19496efdd0cee720ddc235cab3573e9",name:"target"})),t("div",{key:"1297adc021208c5f844efe52f22d792d88211efe",class:{"gux-flyout-menu-content":!0,"gux-shown":this.isShown},ref:e=>this.menuContentElement=e},t("div",{key:"436470738e7679f2b332fc66501aa9c5bda3afb9",ref:e=>this.arrowElement=e,class:"gux-arrow"},t("div",{key:"3d66c9b20b677b840da6f76b6c0a61044f4837dd",class:"gux-arrow-caret"})),t("slot",{key:"757f4a157457bbd62cbf239985a00612e40ce80d",name:"menu"})))}get root(){return s(this)}};f.style=":host{z-index:var(--gse-semantic-zIndex-popover);color:var(--gse-ui-menu-option-label-foregroundColor);cursor:default}:host(:focus){outline:none}:host(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-flyout-menu-content{position:fixed;display:none;border:none;border-radius:var(--gse-ui-menu-borderRadius)}.gux-flyout-menu-content.gux-shown{display:flex}.gux-flyout-menu-content .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-height);padding-block-end:4px;overflow:hidden}.gux-flyout-menu-content .gux-arrow-caret{inline-size:0;block-size:0;border-block-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid var(--gse-ui-popover-backgroundColor);border-inline-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;border-inline-end:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;filter:drop-shadow(0 0 4px var(--gse-semantic-effects-boxShadow))}";export{f as gux_flyout_menu}
1
+ import{r as e,h as t,H as o,g as s}from"./p-cf74fd3d.js";import{a as i,c as r,o as a,f as n,s as d,b as c}from"./p-04c85b3b.js";import{a as h}from"./p-cf0e7d3b.js";import{t as u}from"./p-c35a9bb6.js";import{h as l}from"./p-67d20704.js";const f=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:"705dd7369dba4352645c1705db33b9f3f7cfd390",tabIndex:0,"aria-haspopup":"true"},t("span",{key:"542a46d2915e83b30dcecf8d515efdd67b112785",ref:e=>this.targetElement=e},t("slot",{key:"346efd2bd19496efdd0cee720ddc235cab3573e9",name:"target"})),t("div",{key:"1297adc021208c5f844efe52f22d792d88211efe",class:{"gux-flyout-menu-content":!0,"gux-shown":this.isShown},ref:e=>this.menuContentElement=e},t("div",{key:"436470738e7679f2b332fc66501aa9c5bda3afb9",ref:e=>this.arrowElement=e,class:"gux-arrow"},t("div",{key:"3d66c9b20b677b840da6f76b6c0a61044f4837dd",class:"gux-arrow-caret"})),t("slot",{key:"757f4a157457bbd62cbf239985a00612e40ce80d",name:"menu"})))}get root(){return s(this)}};f.style=":host{z-index:var(--gse-semantic-zIndex-popover);color:var(--gse-ui-menu-option-label-foregroundColor);cursor:default}:host(:focus){outline:none}:host(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-flyout-menu-content{position:fixed;display:none;border:none;border-radius:var(--gse-ui-menu-borderRadius)}.gux-flyout-menu-content.gux-shown{display:flex}.gux-flyout-menu-content .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-height);padding-block-end:4px;overflow:hidden}.gux-flyout-menu-content .gux-arrow-caret{inline-size:0;block-size:0;border-block-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid var(--gse-ui-popover-backgroundColor);border-inline-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;border-inline-end:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;filter:drop-shadow(0 0 4px var(--gse-semantic-effects-boxShadow))}";export{f as gux_flyout_menu}
@@ -1 +1 @@
1
- import{r as e,h as r,g as s}from"./p-cf74fd3d.js";import{t}from"./p-e79482cf.js";const a=class{constructor(r){e(this,r)}componentWillLoad(){t(this.root)}render(){return r("gux-radial-loading",{key:"4ee189150f20e750923b74f5c21b0fa66cfa8000",class:"gux-spinner","screenreader-text":this.screenreaderText,context:"full-page"})}get root(){return s(this)}};a.style=":host{display:flex}.gux-spinner{margin:auto}";export{a as gux_page_loading_spinner}
1
+ import{r as e,h as r,g as s}from"./p-cf74fd3d.js";import{t}from"./p-c35a9bb6.js";const a=class{constructor(r){e(this,r)}componentWillLoad(){t(this.root)}render(){return r("gux-radial-loading",{key:"4ee189150f20e750923b74f5c21b0fa66cfa8000",class:"gux-spinner","screenreader-text":this.screenreaderText,context:"full-page"})}get root(){return s(this)}};a.style=":host{display:flex}.gux-spinner{margin:auto}";export{a as gux_page_loading_spinner}