genesys-spark-components 4.41.0 → 4.43.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 (284) 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 +68 -5
  8. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-button.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-form-field-number_3.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-tooltip-base-beta.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-tooltip-beta.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
  85. package/dist/cjs/loader.cjs.js +1 -1
  86. package/dist/cjs/{usage-eeb5ac34.js → usage-a814956f.js} +1 -1
  87. package/dist/collection/components/beta/gux-avatar/gux-avatar.css +10 -0
  88. package/dist/collection/components/beta/gux-avatar/gux-avatar.js +50 -3
  89. package/dist/collection/components/beta/gux-avatar/svg-utils.js +10 -0
  90. package/dist/collection/components/beta/gux-avatar/tests/gux-avatar.e2e.js +7 -0
  91. package/dist/collection/components/beta/gux-avatar/tests/gux-avatar.spec.js +15 -2
  92. package/dist/esm/genesys-webcomponents.js +1 -1
  93. package/dist/esm/gux-accordion.entry.js +1 -1
  94. package/dist/esm/gux-action-button.entry.js +1 -1
  95. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  96. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  97. package/dist/esm/gux-announce-beta.entry.js +1 -1
  98. package/dist/esm/gux-avatar-beta.entry.js +69 -6
  99. package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
  100. package/dist/esm/gux-badge.entry.js +1 -1
  101. package/dist/esm/gux-blank-state.entry.js +1 -1
  102. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  103. package/dist/esm/gux-button-multi.entry.js +1 -1
  104. package/dist/esm/gux-button-slot.entry.js +1 -1
  105. package/dist/esm/gux-button.entry.js +1 -1
  106. package/dist/esm/gux-calendar.entry.js +1 -1
  107. package/dist/esm/gux-card.entry.js +1 -1
  108. package/dist/esm/gux-column-manager.entry.js +1 -1
  109. package/dist/esm/gux-content-search.entry.js +1 -1
  110. package/dist/esm/gux-context-menu.entry.js +1 -1
  111. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  112. package/dist/esm/gux-date-beta.entry.js +1 -1
  113. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  114. package/dist/esm/gux-datepicker.entry.js +1 -1
  115. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  116. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  117. package/dist/esm/gux-dropdown-multi.entry.js +1 -1
  118. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  119. package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
  120. package/dist/esm/gux-flyout-menu.entry.js +1 -1
  121. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  122. package/dist/esm/gux-form-field-color.entry.js +1 -1
  123. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  124. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  125. package/dist/esm/gux-form-field-number_3.entry.js +1 -1
  126. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  127. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  128. package/dist/esm/gux-form-field-range.entry.js +1 -1
  129. package/dist/esm/gux-form-field-search.entry.js +1 -1
  130. package/dist/esm/gux-form-field-select.entry.js +1 -1
  131. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  132. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  133. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  134. package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
  135. package/dist/esm/gux-icon.entry.js +1 -1
  136. package/dist/esm/gux-inline-alert.entry.js +1 -1
  137. package/dist/esm/gux-list.entry.js +1 -1
  138. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  139. package/dist/esm/gux-loading-message.entry.js +1 -1
  140. package/dist/esm/gux-modal-legacy.entry.js +1 -1
  141. package/dist/esm/gux-modal.entry.js +1 -1
  142. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  143. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  144. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  145. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  146. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  147. package/dist/esm/gux-pagination.entry.js +1 -1
  148. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  149. package/dist/esm/gux-popover-list.entry.js +1 -1
  150. package/dist/esm/gux-radial-loading.entry.js +1 -1
  151. package/dist/esm/gux-radial-progress.entry.js +1 -1
  152. package/dist/esm/gux-rating.entry.js +1 -1
  153. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  154. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  155. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  156. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  157. package/dist/esm/gux-sort-control.entry.js +1 -1
  158. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  159. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  160. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  161. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  162. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  163. package/dist/esm/gux-table.entry.js +1 -1
  164. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  165. package/dist/esm/gux-tabs.entry.js +1 -1
  166. package/dist/esm/gux-tag.entry.js +1 -1
  167. package/dist/esm/gux-text-highlight.entry.js +1 -1
  168. package/dist/esm/gux-time-beta.entry.js +1 -1
  169. package/dist/esm/gux-time-picker.entry.js +1 -1
  170. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  171. package/dist/esm/gux-toast.entry.js +1 -1
  172. package/dist/esm/gux-toggle.entry.js +1 -1
  173. package/dist/esm/gux-tooltip-base-beta.entry.js +1 -1
  174. package/dist/esm/gux-tooltip-beta.entry.js +1 -1
  175. package/dist/esm/gux-tooltip.entry.js +1 -1
  176. package/dist/esm/loader.js +1 -1
  177. package/dist/esm/{usage-8c4d4226.js → usage-67b42b7f.js} +1 -1
  178. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  179. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.cs.json +1 -1
  180. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.de.json +1 -1
  181. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fi.json +1 -1
  182. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ja.json +1 -1
  183. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ko.json +1 -1
  184. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.nl.json +1 -1
  185. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.no.json +1 -1
  186. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pl.json +1 -1
  187. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ru.json +1 -1
  188. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.th.json +1 -1
  189. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.tr.json +1 -1
  190. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.uk.json +1 -1
  191. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-cn.json +1 -1
  192. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-tw.json +1 -1
  193. package/dist/genesys-webcomponents/{p-8c2ff6f9.entry.js → p-00731df5.entry.js} +1 -1
  194. package/dist/genesys-webcomponents/{p-9069b550.entry.js → p-021b78b0.entry.js} +1 -1
  195. package/dist/genesys-webcomponents/{p-a2203753.entry.js → p-076f410d.entry.js} +1 -1
  196. package/dist/genesys-webcomponents/{p-9bf3599e.entry.js → p-086b813b.entry.js} +1 -1
  197. package/dist/genesys-webcomponents/{p-92b2991d.entry.js → p-0965763c.entry.js} +1 -1
  198. package/dist/genesys-webcomponents/{p-19867294.entry.js → p-0db2d388.entry.js} +1 -1
  199. package/dist/genesys-webcomponents/{p-3654dcb8.entry.js → p-136cf874.entry.js} +1 -1
  200. package/dist/genesys-webcomponents/{p-189f8a2e.entry.js → p-14d5aac7.entry.js} +1 -1
  201. package/dist/genesys-webcomponents/{p-40f3c620.entry.js → p-1c966eee.entry.js} +1 -1
  202. package/dist/genesys-webcomponents/{p-bf8d3b65.entry.js → p-1caacfa8.entry.js} +1 -1
  203. package/dist/genesys-webcomponents/{p-1c6e334d.entry.js → p-1d6a708e.entry.js} +1 -1
  204. package/dist/genesys-webcomponents/{p-0e934fdf.entry.js → p-1e115a58.entry.js} +1 -1
  205. package/dist/genesys-webcomponents/{p-a9803085.entry.js → p-22b0e411.entry.js} +1 -1
  206. package/dist/genesys-webcomponents/{p-dadfcb9b.entry.js → p-235c4063.entry.js} +1 -1
  207. package/dist/genesys-webcomponents/{p-4177a0ac.entry.js → p-23b17be3.entry.js} +1 -1
  208. package/dist/genesys-webcomponents/{p-02b9db9f.entry.js → p-285188ab.entry.js} +1 -1
  209. package/dist/genesys-webcomponents/{p-b35e8054.entry.js → p-2853b099.entry.js} +1 -1
  210. package/dist/genesys-webcomponents/{p-12a26976.entry.js → p-2d1f3495.entry.js} +1 -1
  211. package/dist/genesys-webcomponents/{p-5aad257f.entry.js → p-303ee0b7.entry.js} +1 -1
  212. package/dist/genesys-webcomponents/{p-00ab5307.entry.js → p-30d63508.entry.js} +1 -1
  213. package/dist/genesys-webcomponents/{p-621c043c.entry.js → p-31a15390.entry.js} +1 -1
  214. package/dist/genesys-webcomponents/{p-29d83663.entry.js → p-36651ddf.entry.js} +1 -1
  215. package/dist/genesys-webcomponents/{p-523caea0.entry.js → p-382647f1.entry.js} +1 -1
  216. package/dist/genesys-webcomponents/{p-aa19d1b7.entry.js → p-3d0cc444.entry.js} +1 -1
  217. package/dist/genesys-webcomponents/{p-c5c367c7.entry.js → p-3d41d0f6.entry.js} +1 -1
  218. package/dist/genesys-webcomponents/{p-0c3905e2.entry.js → p-3e76eeed.entry.js} +1 -1
  219. package/dist/genesys-webcomponents/{p-cb66a7cb.entry.js → p-42131a2c.entry.js} +1 -1
  220. package/dist/genesys-webcomponents/{p-98fc81c7.entry.js → p-471d8799.entry.js} +1 -1
  221. package/dist/genesys-webcomponents/{p-970f4e9d.entry.js → p-4cd054d1.entry.js} +1 -1
  222. package/dist/genesys-webcomponents/{p-5ac2cbc7.entry.js → p-4d7e98fb.entry.js} +1 -1
  223. package/dist/genesys-webcomponents/{p-cf4281c4.entry.js → p-4d8314e6.entry.js} +1 -1
  224. package/dist/genesys-webcomponents/{p-5172f4d9.entry.js → p-4ff47b60.entry.js} +1 -1
  225. package/dist/genesys-webcomponents/{p-5c44cde2.entry.js → p-54cf60cd.entry.js} +1 -1
  226. package/dist/genesys-webcomponents/{p-31b42460.entry.js → p-5a47899a.entry.js} +1 -1
  227. package/dist/genesys-webcomponents/{p-2e3d16aa.entry.js → p-5b7e6089.entry.js} +1 -1
  228. package/dist/genesys-webcomponents/{p-d7160874.js → p-60b9f5d4.js} +1 -1
  229. package/dist/genesys-webcomponents/{p-8a85dc7a.entry.js → p-60e7a5a1.entry.js} +1 -1
  230. package/dist/genesys-webcomponents/{p-926eb99d.entry.js → p-68d18993.entry.js} +1 -1
  231. package/dist/genesys-webcomponents/{p-aa26aaac.entry.js → p-6c07be2b.entry.js} +1 -1
  232. package/dist/genesys-webcomponents/{p-9b344f8f.entry.js → p-72c8c237.entry.js} +1 -1
  233. package/dist/genesys-webcomponents/{p-7d6747ee.entry.js → p-72da4238.entry.js} +1 -1
  234. package/dist/genesys-webcomponents/{p-4519aecb.entry.js → p-73a69ec9.entry.js} +1 -1
  235. package/dist/genesys-webcomponents/{p-50f8b8db.entry.js → p-7a38af53.entry.js} +1 -1
  236. package/dist/genesys-webcomponents/{p-d76e928c.entry.js → p-7d461bff.entry.js} +1 -1
  237. package/dist/genesys-webcomponents/{p-aac8d814.entry.js → p-7fb8fbee.entry.js} +1 -1
  238. package/dist/genesys-webcomponents/{p-6eccfb10.entry.js → p-800cf7de.entry.js} +1 -1
  239. package/dist/genesys-webcomponents/{p-747bcfbb.entry.js → p-80b8c3c3.entry.js} +1 -1
  240. package/dist/genesys-webcomponents/{p-e23385c5.entry.js → p-84984eee.entry.js} +1 -1
  241. package/dist/genesys-webcomponents/{p-6c1d284d.entry.js → p-85c3f83f.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/{p-d9057d06.entry.js → p-8986508d.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/{p-628b2877.entry.js → p-8f902567.entry.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-55bc5125.entry.js → p-91a68d2d.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/{p-f24fa0a1.entry.js → p-92077d60.entry.js} +1 -1
  246. package/dist/genesys-webcomponents/{p-e060af7f.entry.js → p-9c844d8f.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-615c4b8b.entry.js → p-9ecbcd16.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/{p-00aafef2.entry.js → p-9febab83.entry.js} +1 -1
  249. package/dist/genesys-webcomponents/{p-2367f051.entry.js → p-a823b224.entry.js} +1 -1
  250. package/dist/genesys-webcomponents/{p-15036f44.entry.js → p-ad377935.entry.js} +1 -1
  251. package/dist/genesys-webcomponents/{p-d99e567f.entry.js → p-b217f0ec.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-680be5ae.entry.js → p-b6ab7293.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-5bd475fb.entry.js → p-b7cde205.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-3103e564.entry.js → p-b9e1cf57.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-d61073cf.entry.js → p-bdf275af.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/{p-98d883a7.entry.js → p-c073cbba.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/{p-4bdeec66.entry.js → p-c228435d.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/{p-d7b5bd1f.entry.js → p-c9f6b931.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/{p-979e49e5.entry.js → p-d0df4fec.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-a1c3d43a.entry.js → p-da7099f1.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/{p-94b748af.entry.js → p-daa7bb98.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/{p-822aa88b.entry.js → p-df1314bc.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/{p-1ee6d6eb.entry.js → p-e1eab96d.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/{p-c7d908db.entry.js → p-e808492e.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-960451cb.entry.js → p-e872d976.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/p-e8866cb5.entry.js +1 -0
  267. package/dist/genesys-webcomponents/{p-f001b6e9.entry.js → p-e95ff355.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-3d151dac.entry.js → p-e9dccf8b.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-bfa60031.entry.js → p-eb7df8d3.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-6426feeb.entry.js → p-ef2a0355.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-c1808de4.entry.js → p-f1fd63da.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-6655fb37.entry.js → p-f28aee01.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-a860b342.entry.js → p-f5db5a3d.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-1dd6c2ad.entry.js → p-faaa3d3c.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-49f00c3b.entry.js → p-fc768462.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-c8ac345a.entry.js → p-fd679e52.entry.js} +1 -1
  277. package/dist/stencil-wrapper.js +1 -1
  278. package/dist/types/components/beta/gux-avatar/gux-avatar.d.ts +7 -1
  279. package/dist/types/components/beta/gux-avatar/gux-avatar.types.d.ts +1 -0
  280. package/dist/types/components/beta/gux-avatar/svg-utils.d.ts +4 -0
  281. package/dist/types/components.d.ts +10 -2
  282. package/dist/types/stencil-wrapper.d.ts +1 -1
  283. package/package.json +1 -1
  284. package/dist/genesys-webcomponents/p-97d878b2.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as o,c as a,h as e,g as t}from"./p-2e827df1.js";import{a as r}from"./p-8eaf8caf.js";import{b as s}from"./p-0367930a.js";import{t as i}from"./p-d7160874.js";import"./p-4202e9f2.js";const n={changePhoto:"Change profile photo"},g=class{constructor(e){o(this,e),this.guxchangephoto=a(this,"guxchangephoto",7)}async componentWillLoad(){this.validateSlot(),i(this.root),this.i18n=await s(this.root,n)}validateSlot(){this.root.querySelector("gux-avatar-beta")||r(this.root,"Slotted element must be gux-avatar-beta")}render(){return e("button",{key:"c65d1b4a17529e34905b3d92cd09360f051355b6",class:"gux-change-photo",onClick:()=>this.guxchangephoto.emit(),"aria-describedby":"gux-change-photo-icon"},e("gux-icon",{key:"a238548e311792690e9e80353d6158c1e03d4d01",id:"gux-change-photo-icon",class:"gux-change-photo-icon","icon-name":"fa/camera-solid",size:"small",screenreaderText:this.i18n("changePhoto")}),e("slot",{key:"6050422d4d3f42fc62d5480912040480d85165e7",name:"avatar"}))}get root(){return t(this)}};g.style='.gux-change-photo{position:relative;padding:0;margin:0;line-height:0px;cursor:pointer;background:none;border:none;border-radius:50%}.gux-change-photo .gux-change-photo-icon{display:none}.gux-change-photo:hover,.gux-change-photo:focus-visible{cursor:pointer}.gux-change-photo:hover .gux-change-photo-icon,.gux-change-photo:focus-visible .gux-change-photo-icon{position:absolute;top:50%;left:50%;z-index:var(--gse-semantic-zIndex-showFocus);display:inline-block;color:var(--gse-ui-avatar-hoverModal-foregroundColor);transform:translate(-50%, -50%)}.gux-change-photo:hover::after,.gux-change-photo:focus-visible::after{position:absolute;top:var(--gse-ui-avatar-large-presenceRing-width);left:var(--gse-ui-avatar-large-presenceRing-width);width:var(--gse-ui-avatar-addChangeImage-hoverModal-shroudSize);height:var(--gse-ui-avatar-addChangeImage-hoverModal-shroudSize);content:"";background-color:var(--gse-ui-avatar-hoverModal-shroudColor);border:var(--gse-ui-avatar-content-large-border-width) var(--gse-ui-avatar-content-default-border-style) var(--gse-ui-avatar-content-default-border-color);border-radius:50%;opacity:var(--gse-ui-avatar-hoverModal-opacity);transition:background-color 0.5s ease}.gux-change-photo:focus-visible{outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset)}';export{g as gux_avatar_change_photo_beta}
1
+ import{r as o,c as a,h as e,g as t}from"./p-2e827df1.js";import{a as r}from"./p-8eaf8caf.js";import{b as s}from"./p-0367930a.js";import{t as i}from"./p-60b9f5d4.js";import"./p-4202e9f2.js";const n={changePhoto:"Change profile photo"},g=class{constructor(e){o(this,e),this.guxchangephoto=a(this,"guxchangephoto",7)}async componentWillLoad(){this.validateSlot(),i(this.root),this.i18n=await s(this.root,n)}validateSlot(){this.root.querySelector("gux-avatar-beta")||r(this.root,"Slotted element must be gux-avatar-beta")}render(){return e("button",{key:"c65d1b4a17529e34905b3d92cd09360f051355b6",class:"gux-change-photo",onClick:()=>this.guxchangephoto.emit(),"aria-describedby":"gux-change-photo-icon"},e("gux-icon",{key:"a238548e311792690e9e80353d6158c1e03d4d01",id:"gux-change-photo-icon",class:"gux-change-photo-icon","icon-name":"fa/camera-solid",size:"small",screenreaderText:this.i18n("changePhoto")}),e("slot",{key:"6050422d4d3f42fc62d5480912040480d85165e7",name:"avatar"}))}get root(){return t(this)}};g.style='.gux-change-photo{position:relative;padding:0;margin:0;line-height:0px;cursor:pointer;background:none;border:none;border-radius:50%}.gux-change-photo .gux-change-photo-icon{display:none}.gux-change-photo:hover,.gux-change-photo:focus-visible{cursor:pointer}.gux-change-photo:hover .gux-change-photo-icon,.gux-change-photo:focus-visible .gux-change-photo-icon{position:absolute;top:50%;left:50%;z-index:var(--gse-semantic-zIndex-showFocus);display:inline-block;color:var(--gse-ui-avatar-hoverModal-foregroundColor);transform:translate(-50%, -50%)}.gux-change-photo:hover::after,.gux-change-photo:focus-visible::after{position:absolute;top:var(--gse-ui-avatar-large-presenceRing-width);left:var(--gse-ui-avatar-large-presenceRing-width);width:var(--gse-ui-avatar-addChangeImage-hoverModal-shroudSize);height:var(--gse-ui-avatar-addChangeImage-hoverModal-shroudSize);content:"";background-color:var(--gse-ui-avatar-hoverModal-shroudColor);border:var(--gse-ui-avatar-content-large-border-width) var(--gse-ui-avatar-content-default-border-style) var(--gse-ui-avatar-content-default-border-color);border-radius:50%;opacity:var(--gse-ui-avatar-hoverModal-opacity);transition:background-color 0.5s ease}.gux-change-photo:focus-visible{outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset)}';export{g as gux_avatar_change_photo_beta}
@@ -1 +1 @@
1
- import{r as o,f as e,h as r,g as t}from"./p-2e827df1.js";import{c as i,o as n}from"./p-f4751a15.js";import{O as a}from"./p-01471ba0.js";import{o as l}from"./p-e5b1cffc.js";import{p as s}from"./p-a11d5d42.js";import{h as u}from"./p-6d8b4027.js";import{h as f,d,G as g,a as p,g as c,v as h,b as m}from"./p-770270f8.js";import{G as x,a as b}from"./p-9773c4fe.js";import{t as v}from"./p-d7160874.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const C=class{constructor(e){o(this,e),this.labelPosition=void 0,this.computedLabelPosition="above",this.clearable=!0,this.disabled=void 0,this.required=void 0,this.hasContent=!1,this.hasError=!1,this.hasHelp=!1}onMutation(){this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help")}async guxForceUpdate(){this.hasContent=f(this.input),this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help"),e(this.root)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help"),v(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return r(b,{key:"58c06b70fa0c0914647cdc867d863b666b893ed3",labelPosition:this.computedLabelPosition},r(x,{key:"80e35b2e1029815f0e13ae7d9a8b46c53fbf018c",position:this.computedLabelPosition,required:this.required},r("slot",{key:"96a2707dfc53b46950076154c77e2b7cb9ec3bea",name:"label",onSlotchange:()=>this.setLabel()})),r("div",{key:"55cfc1f52cb60b46a1852f2db6709c28f37ac2d1",class:"gux-input-and-error-container"},r("div",{key:"416a6683857cfa850c531f631b71a915839dae4d",class:{"gux-input":!0,"gux-input-error":this.hasError}},r("div",{key:"b76bcc1d3dd8c4004f05f4d6777a0766dc0d2389",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},r("gux-icon",{key:"fb9a66805ffde4ba97e14c2d396d098d4380b0f0","icon-name":"fa/magnifying-glass-regular",decorative:!0}),r("slot",{key:"08f781d16f8c0988a88c5dbdc9ed3be3aeee194e",name:"input"}),this.clearable&&this.hasContent&&!this.disabled&&r("gux-form-field-input-clear-button",{onClick:()=>d(this.input)}))),r(g,{key:"0a418826020e8ff21b8545492c7d5eebd31692c5",show:this.hasError},r("slot",{key:"75c35edcc3ca3efdd0016714457171b354cf1b86",name:"error"})),r(p,{key:"305d8def2a97282b6069b7a976be25e28c9deca4",show:!this.hasError&&this.hasHelp},r("slot",{key:"494163366813a80c117639bb6a2c030ba192e5ca",name:"help"}))))}get variant(){const o=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.input.getAttribute("type")}-${o}`}setInput(){this.input=c(this.root,'input[type="search"][slot="input"]'),this.hasContent=f(this.input),s(this.input),this.input.addEventListener("input",(()=>{this.hasContent=f(this.input)})),this.disabled=i(this.input),this.required=this.input.required,this.disabledObserver=n(this.input,(o=>{this.disabled=o})),this.requiredObserver=l(this.input,(o=>{this.required=o})),h(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=m(this.label,this.labelPosition)}get root(){return t(this)}};(function(o,e,r,t){var i,n=arguments.length,a=n<3?e:null===t?t=Object.getOwnPropertyDescriptor(e,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,r,t);else for(var l=o.length-1;l>=0;l--)(i=o[l])&&(a=(n<3?i(a):n>3?i(e,r,a):i(e,r))||a);n>3&&a&&Object.defineProperty(e,r,a)})([a({childList:!0,subtree:!0})],C.prototype,"onMutation",null),C.style='.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;min-width:var(--gse-ui-icon-size-sm);min-height:var(--gse-ui-icon-size-sm);margin-right:var(--gse-ui-formControl-helper-gap);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{color:var(--gse-ui-formControl-label-indicator-requiredColor);content:" *"}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:var(--gse-ui-formControl-label-gap)}.gux-form-field-label.gux-above{padding:var(--gse-ui-formControl-label-padding)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding:var(--gse-ui-formControl-helper-paddingSmall);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-formControl-label-text-fontWeight);line-height:var(--gse-ui-formControl-label-text-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;overflow:hidden;font-size:var(--gse-ui-formControl-input-contentText-fontSize);color:var(--gse-ui-formControl-input-populatedColor);text-overflow:ellipsis;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none;outline:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;align-self:auto;order:0;width:100%;height:var(--gse-ui-formControl-input-textfield-height);padding:var(--gse-ui-formControl-input-padding);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container gux-icon[icon-name=search]{flex:0 0 auto;align-self:auto;order:0;width:var(--gse-ui-formControl-input-inputIcon-size);height:var(--gse-ui-formControl-input-inputIcon-size);color:var(--gse-ui-formControl-input-inputIcon-defaultColor)}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius);outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-input-and-error-container .gux-input .gux-input-container:hover:not(.gux-disabled){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-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}';export{C as gux_form_field_search}
1
+ import{r as o,f as e,h as r,g as t}from"./p-2e827df1.js";import{c as i,o as n}from"./p-f4751a15.js";import{O as a}from"./p-01471ba0.js";import{o as l}from"./p-e5b1cffc.js";import{p as s}from"./p-a11d5d42.js";import{h as u}from"./p-6d8b4027.js";import{h as f,d,G as g,a as p,g as c,v as h,b as m}from"./p-770270f8.js";import{G as x,a as b}from"./p-9773c4fe.js";import{t as v}from"./p-60b9f5d4.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const C=class{constructor(e){o(this,e),this.labelPosition=void 0,this.computedLabelPosition="above",this.clearable=!0,this.disabled=void 0,this.required=void 0,this.hasContent=!1,this.hasError=!1,this.hasHelp=!1}onMutation(){this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help")}async guxForceUpdate(){this.hasContent=f(this.input),this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help"),e(this.root)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help"),v(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return r(b,{key:"58c06b70fa0c0914647cdc867d863b666b893ed3",labelPosition:this.computedLabelPosition},r(x,{key:"80e35b2e1029815f0e13ae7d9a8b46c53fbf018c",position:this.computedLabelPosition,required:this.required},r("slot",{key:"96a2707dfc53b46950076154c77e2b7cb9ec3bea",name:"label",onSlotchange:()=>this.setLabel()})),r("div",{key:"55cfc1f52cb60b46a1852f2db6709c28f37ac2d1",class:"gux-input-and-error-container"},r("div",{key:"416a6683857cfa850c531f631b71a915839dae4d",class:{"gux-input":!0,"gux-input-error":this.hasError}},r("div",{key:"b76bcc1d3dd8c4004f05f4d6777a0766dc0d2389",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},r("gux-icon",{key:"fb9a66805ffde4ba97e14c2d396d098d4380b0f0","icon-name":"fa/magnifying-glass-regular",decorative:!0}),r("slot",{key:"08f781d16f8c0988a88c5dbdc9ed3be3aeee194e",name:"input"}),this.clearable&&this.hasContent&&!this.disabled&&r("gux-form-field-input-clear-button",{onClick:()=>d(this.input)}))),r(g,{key:"0a418826020e8ff21b8545492c7d5eebd31692c5",show:this.hasError},r("slot",{key:"75c35edcc3ca3efdd0016714457171b354cf1b86",name:"error"})),r(p,{key:"305d8def2a97282b6069b7a976be25e28c9deca4",show:!this.hasError&&this.hasHelp},r("slot",{key:"494163366813a80c117639bb6a2c030ba192e5ca",name:"help"}))))}get variant(){const o=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.input.getAttribute("type")}-${o}`}setInput(){this.input=c(this.root,'input[type="search"][slot="input"]'),this.hasContent=f(this.input),s(this.input),this.input.addEventListener("input",(()=>{this.hasContent=f(this.input)})),this.disabled=i(this.input),this.required=this.input.required,this.disabledObserver=n(this.input,(o=>{this.disabled=o})),this.requiredObserver=l(this.input,(o=>{this.required=o})),h(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=m(this.label,this.labelPosition)}get root(){return t(this)}};(function(o,e,r,t){var i,n=arguments.length,a=n<3?e:null===t?t=Object.getOwnPropertyDescriptor(e,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,r,t);else for(var l=o.length-1;l>=0;l--)(i=o[l])&&(a=(n<3?i(a):n>3?i(e,r,a):i(e,r))||a);n>3&&a&&Object.defineProperty(e,r,a)})([a({childList:!0,subtree:!0})],C.prototype,"onMutation",null),C.style='.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;min-width:var(--gse-ui-icon-size-sm);min-height:var(--gse-ui-icon-size-sm);margin-right:var(--gse-ui-formControl-helper-gap);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{color:var(--gse-ui-formControl-label-indicator-requiredColor);content:" *"}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:var(--gse-ui-formControl-label-gap)}.gux-form-field-label.gux-above{padding:var(--gse-ui-formControl-label-padding)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding:var(--gse-ui-formControl-helper-paddingSmall);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-formControl-label-text-fontWeight);line-height:var(--gse-ui-formControl-label-text-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;overflow:hidden;font-size:var(--gse-ui-formControl-input-contentText-fontSize);color:var(--gse-ui-formControl-input-populatedColor);text-overflow:ellipsis;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none;outline:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;align-self:auto;order:0;width:100%;height:var(--gse-ui-formControl-input-textfield-height);padding:var(--gse-ui-formControl-input-padding);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container gux-icon[icon-name=search]{flex:0 0 auto;align-self:auto;order:0;width:var(--gse-ui-formControl-input-inputIcon-size);height:var(--gse-ui-formControl-input-inputIcon-size);color:var(--gse-ui-formControl-input-inputIcon-defaultColor)}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius);outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-input-and-error-container .gux-input .gux-input-container:hover:not(.gux-disabled){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-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}';export{C as gux_form_field_search}
@@ -1 +1 @@
1
- import{r as t,c as e,f as s,d as i,h,H as a,g as o}from"./p-2e827df1.js";import{b as r}from"./p-0367930a.js";import{w as l}from"./p-e97879b4.js";import{r as n}from"./p-0934300e.js";import{t as c}from"./p-d7160874.js";import{t as d}from"./p-408d5857.js";import"./p-4202e9f2.js";const g=class{constructor(i){t(this,i),this.guxselectionchanged=e(this,"guxselectionchanged",7),this.guxsortchanged=e(this,"guxsortchanged",7),this.slotObserver=new MutationObserver((()=>s(this))),this.tableId=n("gux-table"),this.columnsWidths={},this.isVerticalScroll=!1,this.columnResizeHover=!1,this.compact=!1,this.objectTable=!1,this.emptyMessage=void 0,this.resizableColumns=void 0}async componentWillLoad(){c(this.root),this.i18n=await r(this.root,d)}componentDidLoad(){this.resizableColumns&&this.prepareResizableColumns(),this.prepareSelectableRows(),this.checkVerticalScroll(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{i((()=>{this.checkVerticalScroll()}))}))),this.resizeObserver&&(this.resizeObserver.observe(this.tableContainer),this.resizeObserver.observe(this.slottedTable)),this.slotObserver.observe(this.slottedTable,{subtree:!0,childList:!0})}checkVerticalScroll(){const t=this.tableContainer;this.isVerticalScroll=t.scrollHeight>t.clientHeight}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.unobserve(this.tableContainer),this.resizeObserver.unobserve(this.slottedTable)),this.resizableColumns&&document.getElementById(`${this.tableId}-resizable-styles`).remove()}onInternalAllRowSelectChange(t){t.stopPropagation(),this.handleSelectAllRows(t.detail)}onInternalRowSelectChange(t){t.stopPropagation();const e=t.target;e.selected=t.detail,this.handleRowSelection(e)}onMouseMove(t){this.resizableColumns&&this.updateResizeState(t)}onMouseDown(t){this.resizableColumns&&this.maybeStartResizing(t)}onMouseUp(){this.resizableColumns&&this.stopResizing()}get tableContainer(){return this.root.shadowRoot.querySelector(".gux-table-container")}get slottedTable(){return this.root.querySelector('table[slot="data"]')}get tableRows(){return Array.from(this.slottedTable.querySelectorAll("tbody tr"))}get tableColumns(){return Array.from(this.slottedTable.querySelectorAll("thead th"))}get rowCheckboxes(){return Array.from(this.slottedTable.querySelectorAll("tbody tr td gux-row-select"))}get selectAllCheckbox(){return this.slottedTable.querySelector("thead tr th gux-all-row-select")}async getSelected(){return this.getSelectedInternal()}getSelectedInternal(){return{selectedRowIds:Array.from(this.rowCheckboxes).filter((t=>t.selected)).map((t=>t.closest("tr").getAttribute("data-row-id")))}}prepareSelectableRows(){this.rowCheckboxes.forEach((t=>{this.updateRowSelection(t)})),this.updateSelectAllBoxState()}updateSelectAllBoxState(){const t=this.selectAllCheckbox;if(t){const e=this.rowCheckboxes,s=e.filter((t=>!t.hasAttribute("disabled"))),i=s.filter((t=>t.selected)),h=Boolean(e.length),a=i.length===s.length,o=0===i.length;t.selected=h&&a,t.setIndeterminate(h&&!a&&!o)}}handleSelectAllRows(t){const e=this.selectAllCheckbox;this.rowCheckboxes.forEach((s=>{e.selected=t,s.hasAttribute("disabled")||(s.selected=t,this.updateRowSelection(s))})),this.emitSelectionEvent()}handleRowSelection(t){this.updateRowSelection(t),this.updateSelectAllBoxState(),this.emitSelectionEvent()}emitSelectionEvent(){this.guxselectionchanged.emit(this.getSelectedInternal())}updateRowSelection(t){const e=t.closest("tr");t.selected?e.setAttribute("data-selected-row",""):e.removeAttribute("data-selected-row")}prepareResizableColumns(){const t=document.createElement("style");t.id=`${this.tableId}-resizable-styles`,document.querySelector("head").appendChild(t),this.calculateColumnWidths(this.tableColumns).slice(0,-1).forEach((t=>this.columnsWidths[t.name]=t.width)),this.setResizableColumnsStyles()}updateResizeState(t){if(this.columnResizeState){const e=this.columnResizeState.resizableColumn.dataset.columnName,s=Math.max(this.columnResizeState.resizableColumnInitialWidth+(t.pageX-this.columnResizeState.columnResizeMouseStartX),1),i=this.calculateColumnWidths(this.tableColumns).map((t=>t.name===e?Object.assign(Object.assign({},t),{width:s}):t));this.columnsWidths[e]=i.find((t=>t.name===e)).width,this.setResizableColumnsStyles()}else this.columnResizeHover=!1,l("th",t,(e=>{this.tableColumns.length-1!==e.cellIndex&&this.isInResizeZone(t,e)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){l("th",t,(e=>{this.isInResizeZone(t,e)&&(this.columnResizeState={resizableColumn:e,columnResizeMouseStartX:t.pageX,resizableColumnInitialWidth:e.clientWidth})}))}stopResizing(){this.columnResizeState&&(this.columnResizeState=null)}isInResizeZone(t,e){return e.getBoundingClientRect().right-t.clientX<3}calculateColumnWidths(t){return t.map((t=>({name:t.dataset.columnName,width:t.clientWidth})))}setResizableColumnsStyles(){const t=document.getElementById(`${this.tableId}-resizable-styles`);let e="";Object.keys(this.columnsWidths).forEach((t=>{e+=`[gs-table-id=${this.tableId}] th[data-column-name="${t}"]{\n width:${String(this.columnsWidths[t])}px;\n min-width:${String(this.columnsWidths[t])}px;\n }`})),t.innerHTML=e}get isTableEmpty(){return!this.root.children[0]||this.tableRows.length<1}get tableContainerClasses(){return{"gux-table-container":!0,"gux-column-resizing":Boolean(this.columnResizeState),"gux-column-resizing-hover":this.columnResizeHover}}render(){return h(a,{key:"0983c36b6839d5505879074a27e9561167bf1c05","gs-table-id":this.tableId,"gs-obj-table":this.objectTable,"gs-compact":this.compact},h("div",{key:"e18a45195167ba6c6a1fca243a9c83714f578483",class:"gux-table"},h("div",{key:"bd26a12441cf00b542d279966613504ce375e74a",tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},h("slot",{key:"933ef8477e474dd834ff7fb05b625482903b3889",name:"data"})),this.isTableEmpty&&h("div",{class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return o(this)}};g.style=":host{display:block;isolation:isolate}:host .gux-table{position:relative;height:inherit}:host .gux-table .gux-table-container{max-height:100%;overflow:auto;scrollbar-color:var(--gse-ui-dataTableItems-scrollbar-foregroundColor);scrollbar-width:thin}:host .gux-table .gux-table-container.gux-column-resizing-hover,:host .gux-table .gux-table-container.gux-column-resizing{cursor:col-resize}:host .gux-empty-table{display:flex;align-items:center;justify-content:center;height:calc(100% - var(--gse-ui-dataTableItems-header-default-height));color:#596373;background:#fdfdfd;font-family:var(--gse-core-typography-heading-lg-fontFamily), var(--gse-core-fontFamily-heading), sans-serif;font-size:var(--gse-core-typography-heading-lg-fontSize);line-height:var(--gse-core-typography-heading-lg-lineHeight);font-weight:var(--gse-core-fontWeight-bold)}";export{g as gux_table}
1
+ import{r as t,c as e,f as s,d as i,h,H as a,g as o}from"./p-2e827df1.js";import{b as r}from"./p-0367930a.js";import{w as l}from"./p-e97879b4.js";import{r as n}from"./p-0934300e.js";import{t as c}from"./p-60b9f5d4.js";import{t as d}from"./p-408d5857.js";import"./p-4202e9f2.js";const g=class{constructor(i){t(this,i),this.guxselectionchanged=e(this,"guxselectionchanged",7),this.guxsortchanged=e(this,"guxsortchanged",7),this.slotObserver=new MutationObserver((()=>s(this))),this.tableId=n("gux-table"),this.columnsWidths={},this.isVerticalScroll=!1,this.columnResizeHover=!1,this.compact=!1,this.objectTable=!1,this.emptyMessage=void 0,this.resizableColumns=void 0}async componentWillLoad(){c(this.root),this.i18n=await r(this.root,d)}componentDidLoad(){this.resizableColumns&&this.prepareResizableColumns(),this.prepareSelectableRows(),this.checkVerticalScroll(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{i((()=>{this.checkVerticalScroll()}))}))),this.resizeObserver&&(this.resizeObserver.observe(this.tableContainer),this.resizeObserver.observe(this.slottedTable)),this.slotObserver.observe(this.slottedTable,{subtree:!0,childList:!0})}checkVerticalScroll(){const t=this.tableContainer;this.isVerticalScroll=t.scrollHeight>t.clientHeight}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.unobserve(this.tableContainer),this.resizeObserver.unobserve(this.slottedTable)),this.resizableColumns&&document.getElementById(`${this.tableId}-resizable-styles`).remove()}onInternalAllRowSelectChange(t){t.stopPropagation(),this.handleSelectAllRows(t.detail)}onInternalRowSelectChange(t){t.stopPropagation();const e=t.target;e.selected=t.detail,this.handleRowSelection(e)}onMouseMove(t){this.resizableColumns&&this.updateResizeState(t)}onMouseDown(t){this.resizableColumns&&this.maybeStartResizing(t)}onMouseUp(){this.resizableColumns&&this.stopResizing()}get tableContainer(){return this.root.shadowRoot.querySelector(".gux-table-container")}get slottedTable(){return this.root.querySelector('table[slot="data"]')}get tableRows(){return Array.from(this.slottedTable.querySelectorAll("tbody tr"))}get tableColumns(){return Array.from(this.slottedTable.querySelectorAll("thead th"))}get rowCheckboxes(){return Array.from(this.slottedTable.querySelectorAll("tbody tr td gux-row-select"))}get selectAllCheckbox(){return this.slottedTable.querySelector("thead tr th gux-all-row-select")}async getSelected(){return this.getSelectedInternal()}getSelectedInternal(){return{selectedRowIds:Array.from(this.rowCheckboxes).filter((t=>t.selected)).map((t=>t.closest("tr").getAttribute("data-row-id")))}}prepareSelectableRows(){this.rowCheckboxes.forEach((t=>{this.updateRowSelection(t)})),this.updateSelectAllBoxState()}updateSelectAllBoxState(){const t=this.selectAllCheckbox;if(t){const e=this.rowCheckboxes,s=e.filter((t=>!t.hasAttribute("disabled"))),i=s.filter((t=>t.selected)),h=Boolean(e.length),a=i.length===s.length,o=0===i.length;t.selected=h&&a,t.setIndeterminate(h&&!a&&!o)}}handleSelectAllRows(t){const e=this.selectAllCheckbox;this.rowCheckboxes.forEach((s=>{e.selected=t,s.hasAttribute("disabled")||(s.selected=t,this.updateRowSelection(s))})),this.emitSelectionEvent()}handleRowSelection(t){this.updateRowSelection(t),this.updateSelectAllBoxState(),this.emitSelectionEvent()}emitSelectionEvent(){this.guxselectionchanged.emit(this.getSelectedInternal())}updateRowSelection(t){const e=t.closest("tr");t.selected?e.setAttribute("data-selected-row",""):e.removeAttribute("data-selected-row")}prepareResizableColumns(){const t=document.createElement("style");t.id=`${this.tableId}-resizable-styles`,document.querySelector("head").appendChild(t),this.calculateColumnWidths(this.tableColumns).slice(0,-1).forEach((t=>this.columnsWidths[t.name]=t.width)),this.setResizableColumnsStyles()}updateResizeState(t){if(this.columnResizeState){const e=this.columnResizeState.resizableColumn.dataset.columnName,s=Math.max(this.columnResizeState.resizableColumnInitialWidth+(t.pageX-this.columnResizeState.columnResizeMouseStartX),1),i=this.calculateColumnWidths(this.tableColumns).map((t=>t.name===e?Object.assign(Object.assign({},t),{width:s}):t));this.columnsWidths[e]=i.find((t=>t.name===e)).width,this.setResizableColumnsStyles()}else this.columnResizeHover=!1,l("th",t,(e=>{this.tableColumns.length-1!==e.cellIndex&&this.isInResizeZone(t,e)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){l("th",t,(e=>{this.isInResizeZone(t,e)&&(this.columnResizeState={resizableColumn:e,columnResizeMouseStartX:t.pageX,resizableColumnInitialWidth:e.clientWidth})}))}stopResizing(){this.columnResizeState&&(this.columnResizeState=null)}isInResizeZone(t,e){return e.getBoundingClientRect().right-t.clientX<3}calculateColumnWidths(t){return t.map((t=>({name:t.dataset.columnName,width:t.clientWidth})))}setResizableColumnsStyles(){const t=document.getElementById(`${this.tableId}-resizable-styles`);let e="";Object.keys(this.columnsWidths).forEach((t=>{e+=`[gs-table-id=${this.tableId}] th[data-column-name="${t}"]{\n width:${String(this.columnsWidths[t])}px;\n min-width:${String(this.columnsWidths[t])}px;\n }`})),t.innerHTML=e}get isTableEmpty(){return!this.root.children[0]||this.tableRows.length<1}get tableContainerClasses(){return{"gux-table-container":!0,"gux-column-resizing":Boolean(this.columnResizeState),"gux-column-resizing-hover":this.columnResizeHover}}render(){return h(a,{key:"0983c36b6839d5505879074a27e9561167bf1c05","gs-table-id":this.tableId,"gs-obj-table":this.objectTable,"gs-compact":this.compact},h("div",{key:"e18a45195167ba6c6a1fca243a9c83714f578483",class:"gux-table"},h("div",{key:"bd26a12441cf00b542d279966613504ce375e74a",tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},h("slot",{key:"933ef8477e474dd834ff7fb05b625482903b3889",name:"data"})),this.isTableEmpty&&h("div",{class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return o(this)}};g.style=":host{display:block;isolation:isolate}:host .gux-table{position:relative;height:inherit}:host .gux-table .gux-table-container{max-height:100%;overflow:auto;scrollbar-color:var(--gse-ui-dataTableItems-scrollbar-foregroundColor);scrollbar-width:thin}:host .gux-table .gux-table-container.gux-column-resizing-hover,:host .gux-table .gux-table-container.gux-column-resizing{cursor:col-resize}:host .gux-empty-table{display:flex;align-items:center;justify-content:center;height:calc(100% - var(--gse-ui-dataTableItems-header-default-height));color:#596373;background:#fdfdfd;font-family:var(--gse-core-typography-heading-lg-fontFamily), var(--gse-core-fontFamily-heading), sans-serif;font-size:var(--gse-core-typography-heading-lg-fontSize);line-height:var(--gse-core-typography-heading-lg-lineHeight);font-weight:var(--gse-core-fontWeight-bold)}";export{g as gux_table}
@@ -1 +1 @@
1
- import{r as e,h as a,H as t,g as o}from"./p-2e827df1.js";import{t as r}from"./p-d7160874.js";const i=class{constructor(a){e(this,a)}componentWillLoad(){r(this.root)}render(){return a(t,{key:"a174566ba055ee1a9d9b78e763b6b06e9969a60a"},a("div",{key:"5ada262f36fcab588d06a954fde2f8926b66a901",class:"gux-header"},a("div",{key:"56ae7f1ed180599a5655d2bfd7e1e42a2843e7c0",class:"gux-icon"},a("slot",{key:"2ad150eeada92c501898487ce4d320b717799560",name:"icon"})),a("div",{key:"1c3f335b0ec042a17115d5ceb379b73caf1bc9d8",class:"gux-title"},a("slot",{key:"adad891b1b70a7ac1f056ecb52cc5957ff735f53",name:"title"}))),a("div",{key:"479c3623cc2fc2d5a914d72e3d2a3d511f01149b",class:"gux-message"},a("slot",{key:"6fcb16bcb4fb5dbd81473f038864274dde5d08ce",name:"message"})),a("div",{key:"1f58facaef96c00990cd631e5fa5b0393eec7548",class:"gux-action-buttons"},a("div",{key:"8c4e4243c52aab3ad65fdef3c825c82b83934c07",class:"gux-positive-button"},a("slot",{key:"1275ad8ad9e1aeccd04f824d7fe49c67adcfa749",name:"positive-button"})),a("div",{key:"0301dc845039a65671c414b6ce3083967f24c98c",class:"gux-negative-button"},a("slot",{key:"1c7737948eb6645a473158cb2175e23fb1ea4d16",name:"negative-button"}))))}get root(){return o(this)}};i.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:stretch;width:270px;padding:20px 24px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-header{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:center;align-self:auto;order:0;font-family:var(--gse-core-typography-heading-lg-fontFamily), var(--gse-core-fontFamily-heading), sans-serif;font-size:var(--gse-core-typography-heading-lg-fontSize);line-height:var(--gse-core-typography-heading-lg-lineHeight);font-weight:var(--gse-core-fontWeight-bold)}.gux-header .gux-icon{flex:0 1 auto;align-self:auto;order:0;color:#1da8b3}.gux-header .gux-icon ::slotted(gux-icon){width:32px !important;height:32px !important}.gux-header .gux-title{flex:1 1 auto;align-self:auto;order:0;margin:0 0 0 8px}.gux-message{flex:0 1 auto;align-self:auto;order:0;margin:16px 0;font-family:var(--gse-core-typography-body-sm-fontFamily), var(--gse-core-fontFamily-body), sans-serif;font-size:var(--gse-core-typography-body-sm-fontSize);line-height:var(--gse-core-typography-body-sm-lineHeight);font-weight:var(--gse-core-fontWeight-regular)}.gux-message ::slotted(dl){display:flex;flex-direction:row;flex-wrap:wrap;place-content:stretch flex-start;align-items:flex-start;margin:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;align-self:auto;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;align-self:auto;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}";export{i as gux_action_toast_legacy}
1
+ import{r as e,h as a,H as t,g as o}from"./p-2e827df1.js";import{t as r}from"./p-60b9f5d4.js";const i=class{constructor(a){e(this,a)}componentWillLoad(){r(this.root)}render(){return a(t,{key:"a174566ba055ee1a9d9b78e763b6b06e9969a60a"},a("div",{key:"5ada262f36fcab588d06a954fde2f8926b66a901",class:"gux-header"},a("div",{key:"56ae7f1ed180599a5655d2bfd7e1e42a2843e7c0",class:"gux-icon"},a("slot",{key:"2ad150eeada92c501898487ce4d320b717799560",name:"icon"})),a("div",{key:"1c3f335b0ec042a17115d5ceb379b73caf1bc9d8",class:"gux-title"},a("slot",{key:"adad891b1b70a7ac1f056ecb52cc5957ff735f53",name:"title"}))),a("div",{key:"479c3623cc2fc2d5a914d72e3d2a3d511f01149b",class:"gux-message"},a("slot",{key:"6fcb16bcb4fb5dbd81473f038864274dde5d08ce",name:"message"})),a("div",{key:"1f58facaef96c00990cd631e5fa5b0393eec7548",class:"gux-action-buttons"},a("div",{key:"8c4e4243c52aab3ad65fdef3c825c82b83934c07",class:"gux-positive-button"},a("slot",{key:"1275ad8ad9e1aeccd04f824d7fe49c67adcfa749",name:"positive-button"})),a("div",{key:"0301dc845039a65671c414b6ce3083967f24c98c",class:"gux-negative-button"},a("slot",{key:"1c7737948eb6645a473158cb2175e23fb1ea4d16",name:"negative-button"}))))}get root(){return o(this)}};i.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:stretch;width:270px;padding:20px 24px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-header{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:center;align-self:auto;order:0;font-family:var(--gse-core-typography-heading-lg-fontFamily), var(--gse-core-fontFamily-heading), sans-serif;font-size:var(--gse-core-typography-heading-lg-fontSize);line-height:var(--gse-core-typography-heading-lg-lineHeight);font-weight:var(--gse-core-fontWeight-bold)}.gux-header .gux-icon{flex:0 1 auto;align-self:auto;order:0;color:#1da8b3}.gux-header .gux-icon ::slotted(gux-icon){width:32px !important;height:32px !important}.gux-header .gux-title{flex:1 1 auto;align-self:auto;order:0;margin:0 0 0 8px}.gux-message{flex:0 1 auto;align-self:auto;order:0;margin:16px 0;font-family:var(--gse-core-typography-body-sm-fontFamily), var(--gse-core-fontFamily-body), sans-serif;font-size:var(--gse-core-typography-body-sm-fontSize);line-height:var(--gse-core-typography-body-sm-lineHeight);font-weight:var(--gse-core-fontWeight-regular)}.gux-message ::slotted(dl){display:flex;flex-direction:row;flex-wrap:wrap;place-content:stretch flex-start;align-items:flex-start;margin:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;align-self:auto;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;align-self:auto;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}";export{i as gux_action_toast_legacy}
@@ -1 +1 @@
1
- import{r as e,c as t,h as g,H as l,g as i}from"./p-2e827df1.js";import{t as o}from"./p-d7160874.js";import{r as a}from"./p-0934300e.js";import{b as r}from"./p-0367930a.js";import"./p-4202e9f2.js";const s={defaultAriaLabel:"Toggle Switch",toggleIsLoading:"Toggle is loading",toggleIsFinishedLoading:"Toggle is finished loading"},n=class{constructor(g){e(this,g),this.check=t(this,"check",7),this.labelId=a("gux-toggle-label"),this.errorId=a("gux-toggle-error"),this.checked=!1,this.disabled=!1,this.loading=!1,this.checkedLabel=void 0,this.uncheckedLabel=void 0,this.labelPosition="right",this.errorMessage=void 0,this.displayInline=!1}handleLoading(e){this.announceElement.guxAnnounce(this.i18n(e?"toggleIsLoading":"toggleIsFinishedLoading"))}onKeydown(e){" "===e.key&&(e.preventDefault(),this.toggle())}toggle(){this.disabled||this.loading||this.check.emit(!this.checked).defaultPrevented||(this.checked=!this.checked)}getAriaLabel(){return this.root.getAttribute("aria-label")||this.root.title||this.i18n("defaultAriaLabel")}async componentWillLoad(){this.i18n=await r(this.root,s),o(this.root,{variant:this.checkedLabel||this.uncheckedLabel?"labled":"unlabled"})}renderLoading(){if(this.loading)return g("div",{class:"gux-toggle-label-loading"},g("gux-radial-loading",{context:"input"}))}renderLabel(){if(this.uncheckedLabel&&this.checkedLabel)return g("div",{class:"gux-toggle-label-and-error"},g("div",{class:"gux-toggle-label"},g("div",{class:"gux-toggle-label-text"},g("span",{class:"gux-toggle-label-text-inner"},g("span",{id:this.labelId},this.checked?this.checkedLabel:this.uncheckedLabel),this.renderLoading()),g("span",{class:"gux-toggle-label-text-inner gux-hidden"},this.checkedLabel),g("span",{class:"gux-toggle-label-text-inner gux-hidden"},this.uncheckedLabel))))}renderError(){if(this.errorMessage)return g("div",{id:this.errorId,class:"gux-toggle-error"},g("div",{class:"gux-toggle-error-container"},g("gux-icon",{"icon-name":"fa/hexagon-exclamation-regular",decorative:!0}),g("div",{class:"gux-toggle-error-message"},this.errorMessage)))}render(){return g(l,{key:"b9e150216a8a36a1b1c178f9c00fe9d33fd677ad",class:{"gux-display-inline":this.displayInline}},g("div",{key:"bf4cd1eddd2d8b8c7b3f8ab4822e54f3fbf6bc3c",class:{"gux-toggle-container":!0,"gux-toggle-label-left":"left"===this.labelPosition,"gux-disabled":this.disabled||this.loading}},g("div",{key:"e2d80d29e19b4103385151220e3e4bda5eed911f",class:"gux-toggle-input"},g("gux-toggle-slider",{key:"00ddb3db0c9074a4860bf12db7ef225440d2ae68",checked:this.checked,disabled:this.disabled||this.loading,guxAriaLabel:this.getAriaLabel(),onClick:this.toggle.bind(this),onKeyDown:this.onKeydown.bind(this),labelId:this.checkedLabel&&this.uncheckedLabel?this.labelId:"",errorId:this.errorMessage?this.errorId:""}),this.renderLabel()),this.renderError()),g("gux-announce-beta",{key:"fa2728873b6578727160468c9e73f3d861cc842a",ref:e=>this.announceElement=e}))}static get delegatesFocus(){return!0}get root(){return i(this)}static get watchers(){return{loading:["handleLoading"]}}};n.style=':host{display:block;margin:2px;color:#2e394c;outline:none}:host(.gux-display-inline){display:inline-block}.gux-toggle-container.gux-disabled{pointer-events:none;cursor:default}.gux-toggle-container.gux-disabled .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{opacity:var(--gse-ui-toggle-disabled-opacity)}.gux-toggle-container.gux-toggle-label-left .gux-toggle-input{flex-direction:row-reverse}.gux-toggle-container.gux-toggle-label-left .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{place-items:end}.gux-toggle-container.gux-toggle-label-left .gux-toggle-error{float:right}.gux-toggle-container .gux-toggle-input{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toggle-gap);place-content:stretch flex-start;align-items:flex-start}.gux-toggle-container .gux-toggle-input .gux-toggle-label{position:relative;display:inline-block;cursor:default}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{display:grid;grid-template-areas:"inner-div";place-items:start}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text .gux-toggle-label-text-inner{position:relative;grid-area:inner-div;font-family:var(--gse-ui-toggle-label-fontFamily);font-size:var(--gse-ui-toggle-label-fontSize);font-weight:var(--gse-ui-toggle-label-fontWeight);color:var(--gse-ui-formControl-label-labelColor);word-wrap:break-word}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text .gux-toggle-label-text-inner.gux-hidden{visibility:hidden}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-loading{position:absolute;inset:0;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toggle-gap);place-content:stretch flex-start;align-items:flex-start;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-size:var(--gse-ui-toggle-label-fontSize);color:var(--gse-ui-formControl-helper-errorColor)}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container gux-icon{flex:0 1 auto;align-self:auto;order:0;width:var(--gse-ui-button-icon-size);height:var(--gse-ui-button-icon-size);color:var(--gse-ui-formControl-helper-errorColor)}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container .gux-toggle-error-message{flex:0 1 auto;align-self:auto;order:0}';export{n as gux_toggle}
1
+ import{r as e,c as t,h as g,H as l,g as i}from"./p-2e827df1.js";import{t as o}from"./p-60b9f5d4.js";import{r as a}from"./p-0934300e.js";import{b as r}from"./p-0367930a.js";import"./p-4202e9f2.js";const s={defaultAriaLabel:"Toggle Switch",toggleIsLoading:"Toggle is loading",toggleIsFinishedLoading:"Toggle is finished loading"},n=class{constructor(g){e(this,g),this.check=t(this,"check",7),this.labelId=a("gux-toggle-label"),this.errorId=a("gux-toggle-error"),this.checked=!1,this.disabled=!1,this.loading=!1,this.checkedLabel=void 0,this.uncheckedLabel=void 0,this.labelPosition="right",this.errorMessage=void 0,this.displayInline=!1}handleLoading(e){this.announceElement.guxAnnounce(this.i18n(e?"toggleIsLoading":"toggleIsFinishedLoading"))}onKeydown(e){" "===e.key&&(e.preventDefault(),this.toggle())}toggle(){this.disabled||this.loading||this.check.emit(!this.checked).defaultPrevented||(this.checked=!this.checked)}getAriaLabel(){return this.root.getAttribute("aria-label")||this.root.title||this.i18n("defaultAriaLabel")}async componentWillLoad(){this.i18n=await r(this.root,s),o(this.root,{variant:this.checkedLabel||this.uncheckedLabel?"labled":"unlabled"})}renderLoading(){if(this.loading)return g("div",{class:"gux-toggle-label-loading"},g("gux-radial-loading",{context:"input"}))}renderLabel(){if(this.uncheckedLabel&&this.checkedLabel)return g("div",{class:"gux-toggle-label-and-error"},g("div",{class:"gux-toggle-label"},g("div",{class:"gux-toggle-label-text"},g("span",{class:"gux-toggle-label-text-inner"},g("span",{id:this.labelId},this.checked?this.checkedLabel:this.uncheckedLabel),this.renderLoading()),g("span",{class:"gux-toggle-label-text-inner gux-hidden"},this.checkedLabel),g("span",{class:"gux-toggle-label-text-inner gux-hidden"},this.uncheckedLabel))))}renderError(){if(this.errorMessage)return g("div",{id:this.errorId,class:"gux-toggle-error"},g("div",{class:"gux-toggle-error-container"},g("gux-icon",{"icon-name":"fa/hexagon-exclamation-regular",decorative:!0}),g("div",{class:"gux-toggle-error-message"},this.errorMessage)))}render(){return g(l,{key:"b9e150216a8a36a1b1c178f9c00fe9d33fd677ad",class:{"gux-display-inline":this.displayInline}},g("div",{key:"bf4cd1eddd2d8b8c7b3f8ab4822e54f3fbf6bc3c",class:{"gux-toggle-container":!0,"gux-toggle-label-left":"left"===this.labelPosition,"gux-disabled":this.disabled||this.loading}},g("div",{key:"e2d80d29e19b4103385151220e3e4bda5eed911f",class:"gux-toggle-input"},g("gux-toggle-slider",{key:"00ddb3db0c9074a4860bf12db7ef225440d2ae68",checked:this.checked,disabled:this.disabled||this.loading,guxAriaLabel:this.getAriaLabel(),onClick:this.toggle.bind(this),onKeyDown:this.onKeydown.bind(this),labelId:this.checkedLabel&&this.uncheckedLabel?this.labelId:"",errorId:this.errorMessage?this.errorId:""}),this.renderLabel()),this.renderError()),g("gux-announce-beta",{key:"fa2728873b6578727160468c9e73f3d861cc842a",ref:e=>this.announceElement=e}))}static get delegatesFocus(){return!0}get root(){return i(this)}static get watchers(){return{loading:["handleLoading"]}}};n.style=':host{display:block;margin:2px;color:#2e394c;outline:none}:host(.gux-display-inline){display:inline-block}.gux-toggle-container.gux-disabled{pointer-events:none;cursor:default}.gux-toggle-container.gux-disabled .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{opacity:var(--gse-ui-toggle-disabled-opacity)}.gux-toggle-container.gux-toggle-label-left .gux-toggle-input{flex-direction:row-reverse}.gux-toggle-container.gux-toggle-label-left .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{place-items:end}.gux-toggle-container.gux-toggle-label-left .gux-toggle-error{float:right}.gux-toggle-container .gux-toggle-input{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toggle-gap);place-content:stretch flex-start;align-items:flex-start}.gux-toggle-container .gux-toggle-input .gux-toggle-label{position:relative;display:inline-block;cursor:default}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{display:grid;grid-template-areas:"inner-div";place-items:start}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text .gux-toggle-label-text-inner{position:relative;grid-area:inner-div;font-family:var(--gse-ui-toggle-label-fontFamily);font-size:var(--gse-ui-toggle-label-fontSize);font-weight:var(--gse-ui-toggle-label-fontWeight);color:var(--gse-ui-formControl-label-labelColor);word-wrap:break-word}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text .gux-toggle-label-text-inner.gux-hidden{visibility:hidden}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-loading{position:absolute;inset:0;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toggle-gap);place-content:stretch flex-start;align-items:flex-start;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-size:var(--gse-ui-toggle-label-fontSize);color:var(--gse-ui-formControl-helper-errorColor)}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container gux-icon{flex:0 1 auto;align-self:auto;order:0;width:var(--gse-ui-button-icon-size);height:var(--gse-ui-button-icon-size);color:var(--gse-ui-formControl-helper-errorColor)}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container .gux-toggle-error-message{flex:0 1 auto;align-self:auto;order:0}';export{n as gux_toggle}
@@ -1 +1 @@
1
- import{r as t,h as e,g as s}from"./p-2e827df1.js";import{t as i}from"./p-d7160874.js";import{g as o}from"./p-0268a3e8.js";const n=class{constructor(e){t(this,e),this.iconOnly=!1,this.accent="secondary",this.disabled=!1}handleClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}renderTooltip(){if(this.iconOnly)return e("gux-tooltip",null,o(this.root,"text"))}componentWillLoad(){i(this.root)}render(){return e("gux-button-slot",{key:"974b86b36fb2d44cc4f0b527631e667def6d41b8",accent:this.accent},e("button",{key:"df4c83d6f12712d154100fafb5a42cc3a524579b",disabled:this.disabled,type:"button",class:"gux-action-title"},e("slot",{key:"5fe23e516585d0159c0309275438e24167eda4f3",name:"icon"}),e("span",{key:"6eb375a179fbca500f97d1ee1f097d5f2c73e516",class:{"gux-sr-only":this.iconOnly}},e("slot",{key:"8c1a28af955fe763ecff95d96f277d828e299bf3",name:"text"}))),this.renderTooltip())}static get delegatesFocus(){return!0}get root(){return s(this)}};n.style=":host([disabled]),button[disabled]{pointer-events:none;user-select:none}.gux-sr-only{display:flex}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-action-title{display:flex;flex-direction:row;gap:var(--gse-ui-button-gap);align-items:center}.gux-action-title slot[name=icon]::slotted(gux-icon){width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm)}";export{n as gux_table_toolbar_custom_action}
1
+ import{r as t,h as e,g as s}from"./p-2e827df1.js";import{t as i}from"./p-60b9f5d4.js";import{g as o}from"./p-0268a3e8.js";const n=class{constructor(e){t(this,e),this.iconOnly=!1,this.accent="secondary",this.disabled=!1}handleClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}renderTooltip(){if(this.iconOnly)return e("gux-tooltip",null,o(this.root,"text"))}componentWillLoad(){i(this.root)}render(){return e("gux-button-slot",{key:"974b86b36fb2d44cc4f0b527631e667def6d41b8",accent:this.accent},e("button",{key:"df4c83d6f12712d154100fafb5a42cc3a524579b",disabled:this.disabled,type:"button",class:"gux-action-title"},e("slot",{key:"5fe23e516585d0159c0309275438e24167eda4f3",name:"icon"}),e("span",{key:"6eb375a179fbca500f97d1ee1f097d5f2c73e516",class:{"gux-sr-only":this.iconOnly}},e("slot",{key:"8c1a28af955fe763ecff95d96f277d828e299bf3",name:"text"}))),this.renderTooltip())}static get delegatesFocus(){return!0}get root(){return s(this)}};n.style=":host([disabled]),button[disabled]{pointer-events:none;user-select:none}.gux-sr-only{display:flex}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-action-title{display:flex;flex-direction:row;gap:var(--gse-ui-button-gap);align-items:center}.gux-action-title slot[name=icon]::slotted(gux-icon){width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm)}";export{n as gux_table_toolbar_custom_action}
@@ -1 +1 @@
1
- import{r as t,h as i,H as o,g as e}from"./p-2e827df1.js";import{a as s,o as a,f as r,s as n,h,c as l}from"./p-b43ee47b.js";import{r as d}from"./p-0934300e.js";import{t as c}from"./p-d7160874.js";import{b as p}from"./p-cf0e7d3b.js";const g=class{constructor(i){t(this,i),this.pointerenterHandler=()=>this.show(),this.pointerleaveHandler=()=>this.hide(),this.focusinHandler=()=>this.show(),this.focusoutHandler=()=>this.hide(),this.forElementListeners=new Map([["pointerenter",this.pointerenterHandler],["pointerleave",this.pointerleaveHandler],["focusin",this.focusinHandler],["focusout",this.focusoutHandler]]),this.id=d("gux-tooltip-base"),this.tooltipId=void 0,this.forElement=void 0,this.placement="bottom-start",this.offsetX=0,this.offsetY=0,this.accent="light",this.isShown=!1}handleKeyDown(t){"Escape"===t.key&&this.isShown&&this.hide()}async showTooltip(){this.show()}async hideTooltip(){this.hide()}runUpdatePosition(){this.cleanupUpdatePosition=s(this.forElement,this.root,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!1,ancestorResize:!0})}updatePosition(){const t=[a(16),r(),n(),h()];l(this.forElement,this.root,{placement:this.placement,strategy:"fixed",middleware:t}).then((({x:t,y:i,middlewareData:o})=>{var e;Object.assign(this.root.style,{left:`${t+this.offsetX}px`,top:i-this.offsetY+"px",visibility:(null===(e=o.hide)||void 0===e?void 0:e.referenceHidden)?"hidden":"visible"}),this.root.setAttribute("data-placement",this.placement)}))}show(){this.isShown=!0,p((()=>{this.runUpdatePosition()}))}hide(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.isShown=!1}setForElement(){this.forElement&&(this.forElement.setAttribute("aria-describedby",this.tooltipId?this.tooltipId:this.id),this.forElementListeners.forEach(((t,i)=>this.forElement.addEventListener(i,t))))}disconnectForElement(){this.forElement&&(this.forElement.removeAttribute("aria-describedby"),this.forElementListeners.forEach(((t,i)=>this.forElement.removeEventListener(i,t))))}updateForElement(){this.disconnectForElement(),this.setForElement()}connectedCallback(){this.setForElement()}componentWillLoad(){c(this.root,{variant:this.placement})}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.disconnectForElement()}render(){return i(o,{key:"a4267d7fb5a4e05bcddc3885a7a9ba6bf38b397b",id:this.tooltipId?void 0:this.id,role:this.tooltipId?void 0:"tooltip",class:{"gux-show":this.isShown}},i("div",{key:"6952bf492c1047965f5740b9b786ed4cee953f4a",class:{"gux-container":!0,[`gux-${this.accent}`]:!0},"data-placement":this.placement},i("slot",{key:"dff2b7c036a4ee9b15e8d1f79145730bd1728913",name:"content"})))}get root(){return e(this)}static get watchers(){return{offsetX:["runUpdatePosition"],offsetY:["runUpdatePosition"],forElement:["updateForElement"]}}};g.style=":host{position:fixed;z-index:var(--gse-semantic-zIndex-tooltip);display:none;width:max-content;max-width:250px;pointer-events:none;border-radius:var(--gse-ui-tooltip-borderRadius);box-shadow:var(--gse-ui-tooltip-boxShadow-x) var(--gse-ui-tooltip-boxShadow-y) var(--gse-ui-tooltip-boxShadow-blur) var(--gse-ui-tooltip-boxShadow-spread) var(--gse-ui-tooltip-boxShadow-color);opacity:0}:host(.gux-show){display:block;animation-name:fade-in;animation-duration:250ms;animation-delay:1s;animation-fill-mode:forwards}.gux-container{box-sizing:border-box;display:flex;flex-direction:row;gap:var(--gse-ui-tooltip-gap);place-content:center flex-start;padding:var(--gse-ui-tooltip-padding);font-family:var(--gse-ui-tooltip-text-fontFamily);font-size:var(--gse-ui-tooltip-text-fontSize);font-weight:var(--gse-ui-tooltip-text-fontWeight);line-height:var(--gse-ui-tooltip-text-lineHeight);color:var(--gse-ui-tooltip-light-foregroundColor);background-color:var(--gse-ui-tooltip-light-backgroundColor);border:var(--gse-ui-tooltip-light-border-width) var(--gse-ui-tooltip-light-border-style) var(--gse-ui-tooltip-light-border-color);border-radius:var(--gse-ui-tooltip-borderRadius)}.gux-container ::slotted(gux-icon){align-self:center;width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);color:var(--gse-ui-tooltip-light-iconColor)}.gux-container ::slotted(*){width:100%;overflow-wrap:break-word;white-space:normal}.gux-container.gux-dark{color:var(--gse-ui-tooltip-dark-foregroundColor);background-color:var(--gse-ui-tooltip-dark-backgroundColor);border-color:var(--gse-ui-tooltip-dark-border-color)}.gux-container.gux-dark ::slotted(gux-icon){align-self:center;width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);color:var(--gse-ui-tooltip-dark-iconColor)}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}";export{g as gux_tooltip_base_beta}
1
+ import{r as t,h as i,H as o,g as e}from"./p-2e827df1.js";import{a as s,o as a,f as r,s as n,h,c as l}from"./p-b43ee47b.js";import{r as d}from"./p-0934300e.js";import{t as c}from"./p-60b9f5d4.js";import{b as p}from"./p-cf0e7d3b.js";const g=class{constructor(i){t(this,i),this.pointerenterHandler=()=>this.show(),this.pointerleaveHandler=()=>this.hide(),this.focusinHandler=()=>this.show(),this.focusoutHandler=()=>this.hide(),this.forElementListeners=new Map([["pointerenter",this.pointerenterHandler],["pointerleave",this.pointerleaveHandler],["focusin",this.focusinHandler],["focusout",this.focusoutHandler]]),this.id=d("gux-tooltip-base"),this.tooltipId=void 0,this.forElement=void 0,this.placement="bottom-start",this.offsetX=0,this.offsetY=0,this.accent="light",this.isShown=!1}handleKeyDown(t){"Escape"===t.key&&this.isShown&&this.hide()}async showTooltip(){this.show()}async hideTooltip(){this.hide()}runUpdatePosition(){this.cleanupUpdatePosition=s(this.forElement,this.root,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!1,ancestorResize:!0})}updatePosition(){const t=[a(16),r(),n(),h()];l(this.forElement,this.root,{placement:this.placement,strategy:"fixed",middleware:t}).then((({x:t,y:i,middlewareData:o})=>{var e;Object.assign(this.root.style,{left:`${t+this.offsetX}px`,top:i-this.offsetY+"px",visibility:(null===(e=o.hide)||void 0===e?void 0:e.referenceHidden)?"hidden":"visible"}),this.root.setAttribute("data-placement",this.placement)}))}show(){this.isShown=!0,p((()=>{this.runUpdatePosition()}))}hide(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.isShown=!1}setForElement(){this.forElement&&(this.forElement.setAttribute("aria-describedby",this.tooltipId?this.tooltipId:this.id),this.forElementListeners.forEach(((t,i)=>this.forElement.addEventListener(i,t))))}disconnectForElement(){this.forElement&&(this.forElement.removeAttribute("aria-describedby"),this.forElementListeners.forEach(((t,i)=>this.forElement.removeEventListener(i,t))))}updateForElement(){this.disconnectForElement(),this.setForElement()}connectedCallback(){this.setForElement()}componentWillLoad(){c(this.root,{variant:this.placement})}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.disconnectForElement()}render(){return i(o,{key:"a4267d7fb5a4e05bcddc3885a7a9ba6bf38b397b",id:this.tooltipId?void 0:this.id,role:this.tooltipId?void 0:"tooltip",class:{"gux-show":this.isShown}},i("div",{key:"6952bf492c1047965f5740b9b786ed4cee953f4a",class:{"gux-container":!0,[`gux-${this.accent}`]:!0},"data-placement":this.placement},i("slot",{key:"dff2b7c036a4ee9b15e8d1f79145730bd1728913",name:"content"})))}get root(){return e(this)}static get watchers(){return{offsetX:["runUpdatePosition"],offsetY:["runUpdatePosition"],forElement:["updateForElement"]}}};g.style=":host{position:fixed;z-index:var(--gse-semantic-zIndex-tooltip);display:none;width:max-content;max-width:250px;pointer-events:none;border-radius:var(--gse-ui-tooltip-borderRadius);box-shadow:var(--gse-ui-tooltip-boxShadow-x) var(--gse-ui-tooltip-boxShadow-y) var(--gse-ui-tooltip-boxShadow-blur) var(--gse-ui-tooltip-boxShadow-spread) var(--gse-ui-tooltip-boxShadow-color);opacity:0}:host(.gux-show){display:block;animation-name:fade-in;animation-duration:250ms;animation-delay:1s;animation-fill-mode:forwards}.gux-container{box-sizing:border-box;display:flex;flex-direction:row;gap:var(--gse-ui-tooltip-gap);place-content:center flex-start;padding:var(--gse-ui-tooltip-padding);font-family:var(--gse-ui-tooltip-text-fontFamily);font-size:var(--gse-ui-tooltip-text-fontSize);font-weight:var(--gse-ui-tooltip-text-fontWeight);line-height:var(--gse-ui-tooltip-text-lineHeight);color:var(--gse-ui-tooltip-light-foregroundColor);background-color:var(--gse-ui-tooltip-light-backgroundColor);border:var(--gse-ui-tooltip-light-border-width) var(--gse-ui-tooltip-light-border-style) var(--gse-ui-tooltip-light-border-color);border-radius:var(--gse-ui-tooltip-borderRadius)}.gux-container ::slotted(gux-icon){align-self:center;width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);color:var(--gse-ui-tooltip-light-iconColor)}.gux-container ::slotted(*){width:100%;overflow-wrap:break-word;white-space:normal}.gux-container.gux-dark{color:var(--gse-ui-tooltip-dark-foregroundColor);background-color:var(--gse-ui-tooltip-dark-backgroundColor);border-color:var(--gse-ui-tooltip-dark-border-color)}.gux-container.gux-dark ::slotted(gux-icon){align-self:center;width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);color:var(--gse-ui-tooltip-dark-iconColor)}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}";export{g as gux_tooltip_base_beta}
@@ -1 +1 @@
1
- import{h as e,r,g as s}from"./p-2e827df1.js";import{t as i}from"./p-d7160874.js";import{a as t}from"./p-8eaf8caf.js";const a=2*Math.PI*22;function n(e,r){return!(isNaN(e)||isNaN(r)||e>r||e<0||0===r)}const o=({value:r,max:s,screenreaderText:i})=>e("div",{role:"progressbar","aria-valuenow":r,"aria-valuemin":"0","aria-valuemax":s,"aria-label":i},e("svg",{class:"gux-svg-container",viewBox:"0 0 48 48",role:"presentation"},e("circle",{cx:"50%",cy:"50%",r:22,class:"gux-static-circle"}),e("circle",{cx:"50%",cy:"50%",r:22,class:"gux-dynamic-circle","stroke-dashoffset":a*(1-r/s),"stroke-dasharray":a,"stroke-linecap":"round"}),e("text",{x:"50%",y:"50%","dominant-baseline":"central",class:"gux-percentage"},function(e,r){return`${Math.round((e+Number.EPSILON)/r*100)}%`}(r,s)))),g=({screenreaderText:r})=>e("gux-radial-loading",{"screenreader-text":r,context:"modal"}),c=class{constructor(e){r(this,e),this.value=void 0,this.max=100,this.screenreaderText=""}componentWillLoad(){i(this.root)}componentDidLoad(){!this.screenreaderText&&n(this.value,this.max)&&t(this.root,"No screenreader-text provided. Provide a localized screenreader-text property for the component.")}render(){return n(this.value,this.max)?e(o,{value:this.value,max:this.max,screenreaderText:this.screenreaderText}):e(g,{screenreaderText:this.screenreaderText})}get root(){return s(this)}};c.style=":host{display:inline-block}div[role=progressbar] .gux-svg-container{display:block;width:calc(var(--gse-ui-progressAndLoading-spinner-large) * 1px);height:calc(var(--gse-ui-progressAndLoading-spinner-large) * 1px)}div[role=progressbar] .gux-svg-container .gux-dynamic-circle{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-foreground);stroke-width:4;transform:rotate(-90deg);transform-origin:50% 50%}div[role=progressbar] .gux-svg-container .gux-static-circle{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-base);stroke-width:4}div[role=progressbar] .gux-svg-container .gux-percentage{font-family:var(--gse-ui-progressAndLoading-spinner-text-fontFamily);font-size:var(--gse-ui-progressAndLoading-spinner-text-fontSize);font-weight:var(--gse-ui-progressAndLoading-spinner-text-fontWeight);line-height:var(--gse-ui-progressAndLoading-spinner-text-lineHeight);text-anchor:middle;fill:var(--gse-ui-progressAndLoading-textColor)}";export{c as gux_radial_progress}
1
+ import{h as e,r,g as s}from"./p-2e827df1.js";import{t as i}from"./p-60b9f5d4.js";import{a as t}from"./p-8eaf8caf.js";const a=2*Math.PI*22;function n(e,r){return!(isNaN(e)||isNaN(r)||e>r||e<0||0===r)}const o=({value:r,max:s,screenreaderText:i})=>e("div",{role:"progressbar","aria-valuenow":r,"aria-valuemin":"0","aria-valuemax":s,"aria-label":i},e("svg",{class:"gux-svg-container",viewBox:"0 0 48 48",role:"presentation"},e("circle",{cx:"50%",cy:"50%",r:22,class:"gux-static-circle"}),e("circle",{cx:"50%",cy:"50%",r:22,class:"gux-dynamic-circle","stroke-dashoffset":a*(1-r/s),"stroke-dasharray":a,"stroke-linecap":"round"}),e("text",{x:"50%",y:"50%","dominant-baseline":"central",class:"gux-percentage"},function(e,r){return`${Math.round((e+Number.EPSILON)/r*100)}%`}(r,s)))),g=({screenreaderText:r})=>e("gux-radial-loading",{"screenreader-text":r,context:"modal"}),c=class{constructor(e){r(this,e),this.value=void 0,this.max=100,this.screenreaderText=""}componentWillLoad(){i(this.root)}componentDidLoad(){!this.screenreaderText&&n(this.value,this.max)&&t(this.root,"No screenreader-text provided. Provide a localized screenreader-text property for the component.")}render(){return n(this.value,this.max)?e(o,{value:this.value,max:this.max,screenreaderText:this.screenreaderText}):e(g,{screenreaderText:this.screenreaderText})}get root(){return s(this)}};c.style=":host{display:inline-block}div[role=progressbar] .gux-svg-container{display:block;width:calc(var(--gse-ui-progressAndLoading-spinner-large) * 1px);height:calc(var(--gse-ui-progressAndLoading-spinner-large) * 1px)}div[role=progressbar] .gux-svg-container .gux-dynamic-circle{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-foreground);stroke-width:4;transform:rotate(-90deg);transform-origin:50% 50%}div[role=progressbar] .gux-svg-container .gux-static-circle{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-base);stroke-width:4}div[role=progressbar] .gux-svg-container .gux-percentage{font-family:var(--gse-ui-progressAndLoading-spinner-text-fontFamily);font-size:var(--gse-ui-progressAndLoading-spinner-text-fontSize);font-weight:var(--gse-ui-progressAndLoading-spinner-text-fontWeight);line-height:var(--gse-ui-progressAndLoading-spinner-text-lineHeight);text-anchor:middle;fill:var(--gse-ui-progressAndLoading-textColor)}";export{c as gux_radial_progress}
@@ -1 +1 @@
1
- import{r as o,h as i,g as e}from"./p-2e827df1.js";import{t as r}from"./p-d7160874.js";import{b as t}from"./p-0367930a.js";import"./p-4202e9f2.js";const a={clickToCopy:"Click to Copy",enterToCopy:"Press Enter to Copy",copySuccess:"Copied to Clipboard",copyFailure:"Error. Please Try Again."},c=class{constructor(i){o(this,i),this.tooltipContent="clickToCopy"}onMouseleave(){this.resetTooltip()}onFocusout(){this.resetTooltip()}onFocus(){this.copyButton.matches(":focus-visible")&&(this.tooltipContent="enterToCopy")}resetTooltip(){this.tooltipContent="clickToCopy"}async onCopyToClipboard(){return navigator.clipboard.writeText(this.root.innerText).then((()=>{this.tooltipContent="copySuccess"})).catch((()=>{this.tooltipContent="copyFailure"}))}getIconName(o){switch(o){case"copyFailure":return"fa/circle-xmark-solid";case"copySuccess":return"fa/circle-check-solid"}}renderTooltipIcon(){const o=this.getIconName(this.tooltipContent);if(o)return i("gux-icon",{"icon-name":o,decorative:!0})}renderTooltip(){return i("gux-tooltip",{placement:"bottom-end"},i("div",{class:"gux-tooltip-content"},this.renderTooltipIcon(),i("span",null,this.i18n(this.tooltipContent))))}async componentWillLoad(){r(this.root),this.i18n=await t(this.root,a)}render(){return i("button",{key:"999ee07a48cd3d9d1369d204af767997c73f16be",class:"gux-copy-to-clipboard-wrapper",ref:o=>this.copyButton=o,onClick:this.onCopyToClipboard.bind(this)},i("div",{key:"27bd5e847b21682aa2ebe939844db4d36daa764a",class:"gux-copy-content"},i("slot",{key:"51b127d5a83ee1868f4ecf43009b1950cf06c26c",name:"content"}),i("gux-icon",{key:"22d9e44fe2864e5aaeb0d28b7e726da385b373bb","icon-name":"fa/copy-regular",decorative:!0})),this.renderTooltip())}get root(){return e(this)}};c.style="button{all:unset}.gux-copy-to-clipboard-wrapper{display:inline-flex;align-items:center}.gux-copy-to-clipboard-wrapper .gux-copy-content{display:inherit;gap:var(--gse-ui-copyToClipboard-contentContainer-gap);align-items:inherit;cursor:pointer}.gux-copy-to-clipboard-wrapper .gux-copy-content ::slotted(*){padding:var(--gse-ui-copyToClipboard-label-padding);font-family:var(--gse-ui-copyToClipboard-label-text-fontFamily);font-size:var(--gse-ui-copyToClipboard-label-text-fontSize);font-weight:var(--gse-ui-copyToClipboard-label-text-fontWeight);line-height:var(--gse-ui-copyToClipboard-label-text-lineHeight);color:var(--gse-ui-copyToClipboard-label-foregroundColor);text-decoration:var(--gse-ui-copyToClipboard-label-text-textDecoration);border-radius:var(--gse-ui-copyToClipboard-label-borderRadius)}.gux-copy-to-clipboard-wrapper .gux-copy-content:hover ::slotted(*){background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor)}.gux-copy-to-clipboard-wrapper .gux-copy-content:hover gux-icon[icon-name=copy]{visibility:visible}.gux-copy-to-clipboard-wrapper .gux-copy-content gux-icon[icon-name=copy]{flex-shrink:0;width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);padding:var(--gse-ui-copyToClipboard-iconContainer-padding);visibility:hidden;background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor);border-radius:var(--gse-ui-copyToClipboard-label-borderRadius)}.gux-copy-to-clipboard-wrapper:focus-visible{outline:none}.gux-copy-to-clipboard-wrapper:focus-visible ::slotted(*){background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor)}.gux-copy-to-clipboard-wrapper:focus-visible gux-icon[icon-name=copy]{visibility:visible}.gux-copy-to-clipboard-wrapper gux-tooltip{display:inline-flex;align-items:center}.gux-copy-to-clipboard-wrapper gux-tooltip .gux-tooltip-content>*{vertical-align:middle}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon{width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);padding:var(--gse-ui-copyToClipboard-iconContainer-padding)}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon[icon-name=badge-check]{color:var(--gse-ui-copyToClipboard-tooltipIcon-success-foregroundColor)}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon[icon-name=badge-x]{color:var(--gse-ui-copyToClipboard-tooltipIcon-error-foregroundColor)}";export{c as gux_copy_to_clipboard}
1
+ import{r as o,h as i,g as e}from"./p-2e827df1.js";import{t as r}from"./p-60b9f5d4.js";import{b as t}from"./p-0367930a.js";import"./p-4202e9f2.js";const a={clickToCopy:"Click to Copy",enterToCopy:"Press Enter to Copy",copySuccess:"Copied to Clipboard",copyFailure:"Error. Please Try Again."},c=class{constructor(i){o(this,i),this.tooltipContent="clickToCopy"}onMouseleave(){this.resetTooltip()}onFocusout(){this.resetTooltip()}onFocus(){this.copyButton.matches(":focus-visible")&&(this.tooltipContent="enterToCopy")}resetTooltip(){this.tooltipContent="clickToCopy"}async onCopyToClipboard(){return navigator.clipboard.writeText(this.root.innerText).then((()=>{this.tooltipContent="copySuccess"})).catch((()=>{this.tooltipContent="copyFailure"}))}getIconName(o){switch(o){case"copyFailure":return"fa/circle-xmark-solid";case"copySuccess":return"fa/circle-check-solid"}}renderTooltipIcon(){const o=this.getIconName(this.tooltipContent);if(o)return i("gux-icon",{"icon-name":o,decorative:!0})}renderTooltip(){return i("gux-tooltip",{placement:"bottom-end"},i("div",{class:"gux-tooltip-content"},this.renderTooltipIcon(),i("span",null,this.i18n(this.tooltipContent))))}async componentWillLoad(){r(this.root),this.i18n=await t(this.root,a)}render(){return i("button",{key:"999ee07a48cd3d9d1369d204af767997c73f16be",class:"gux-copy-to-clipboard-wrapper",ref:o=>this.copyButton=o,onClick:this.onCopyToClipboard.bind(this)},i("div",{key:"27bd5e847b21682aa2ebe939844db4d36daa764a",class:"gux-copy-content"},i("slot",{key:"51b127d5a83ee1868f4ecf43009b1950cf06c26c",name:"content"}),i("gux-icon",{key:"22d9e44fe2864e5aaeb0d28b7e726da385b373bb","icon-name":"fa/copy-regular",decorative:!0})),this.renderTooltip())}get root(){return e(this)}};c.style="button{all:unset}.gux-copy-to-clipboard-wrapper{display:inline-flex;align-items:center}.gux-copy-to-clipboard-wrapper .gux-copy-content{display:inherit;gap:var(--gse-ui-copyToClipboard-contentContainer-gap);align-items:inherit;cursor:pointer}.gux-copy-to-clipboard-wrapper .gux-copy-content ::slotted(*){padding:var(--gse-ui-copyToClipboard-label-padding);font-family:var(--gse-ui-copyToClipboard-label-text-fontFamily);font-size:var(--gse-ui-copyToClipboard-label-text-fontSize);font-weight:var(--gse-ui-copyToClipboard-label-text-fontWeight);line-height:var(--gse-ui-copyToClipboard-label-text-lineHeight);color:var(--gse-ui-copyToClipboard-label-foregroundColor);text-decoration:var(--gse-ui-copyToClipboard-label-text-textDecoration);border-radius:var(--gse-ui-copyToClipboard-label-borderRadius)}.gux-copy-to-clipboard-wrapper .gux-copy-content:hover ::slotted(*){background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor)}.gux-copy-to-clipboard-wrapper .gux-copy-content:hover gux-icon[icon-name=copy]{visibility:visible}.gux-copy-to-clipboard-wrapper .gux-copy-content gux-icon[icon-name=copy]{flex-shrink:0;width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);padding:var(--gse-ui-copyToClipboard-iconContainer-padding);visibility:hidden;background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor);border-radius:var(--gse-ui-copyToClipboard-label-borderRadius)}.gux-copy-to-clipboard-wrapper:focus-visible{outline:none}.gux-copy-to-clipboard-wrapper:focus-visible ::slotted(*){background-color:var(--gse-ui-copyToClipboard-label-active-backgroundColor)}.gux-copy-to-clipboard-wrapper:focus-visible gux-icon[icon-name=copy]{visibility:visible}.gux-copy-to-clipboard-wrapper gux-tooltip{display:inline-flex;align-items:center}.gux-copy-to-clipboard-wrapper gux-tooltip .gux-tooltip-content>*{vertical-align:middle}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon{width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);padding:var(--gse-ui-copyToClipboard-iconContainer-padding)}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon[icon-name=badge-check]{color:var(--gse-ui-copyToClipboard-tooltipIcon-success-foregroundColor)}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon[icon-name=badge-x]{color:var(--gse-ui-copyToClipboard-tooltipIcon-error-foregroundColor)}";export{c as gux_copy_to_clipboard}
@@ -1 +1 @@
1
- import{r as t,h as i,H as o,g as e}from"./p-2e827df1.js";import{a as s,o as a,f as r,s as n,h as l,c as d}from"./p-b43ee47b.js";import{r as h}from"./p-0934300e.js";import{t as c}from"./p-d7160874.js";import{f as p}from"./p-9b0d3713.js";import{b as g}from"./p-cf0e7d3b.js";const u=class{constructor(i){t(this,i),this.pointerenterHandler=()=>this.show(),this.pointerleaveHandler=()=>this.hide(),this.focusinHandler=()=>this.show(),this.focusoutHandler=()=>this.hide(),this.forElementListeners=new Map([["pointerenter",this.pointerenterHandler],["pointerleave",this.pointerleaveHandler],["focusin",this.focusinHandler],["focusout",this.focusoutHandler]]),this.id=h("gux-tooltip"),this.for=void 0,this.placement="bottom-start",this.accent="light",this.isShown=!1}handleKeyDown(t){"Escape"===t.key&&this.isShown&&this.hide()}async showTooltip(){this.show()}async hideTooltip(){this.hide()}runUpdatePosition(){this.cleanupUpdatePosition=s(this.forElement,this.root,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!1,ancestorResize:!0})}updatePosition(){const t=[a(16),r(),n(),l()];d(this.forElement,this.root,{placement:this.placement,strategy:"fixed",middleware:t}).then((({x:t,y:i,middlewareData:o})=>{var e;Object.assign(this.root.style,{left:`${t}px`,top:`${i}px`,visibility:(null===(e=o.hide)||void 0===e?void 0:e.referenceHidden)?"hidden":"visible"}),this.root.setAttribute("data-placement",this.placement)}))}show(){this.isShown=!0,g((()=>{this.runUpdatePosition()}))}hide(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.isShown=!1}getForElement(){return this.for?p(this.root,this.for):this.root.parentElement}logForAttributeError(){this.root.isConnected&&console.error(`gux-tooltip: invalid element supplied to 'for': "${this.for}"`)}setForElement(){this.forElement=this.getForElement(),this.forElement?(this.forElement.setAttribute("aria-describedby",this.id),this.forElementListeners.forEach(((t,i)=>this.forElement.addEventListener(i,t)))):this.logForAttributeError()}disconnectForElement(){this.forElement&&(this.forElement.removeAttribute("aria-describedby"),this.forElementListeners.forEach(((t,i)=>this.forElement.removeEventListener(i,t))))}updateForElement(){this.disconnectForElement(),this.setForElement()}connectedCallback(){this.setForElement()}componentWillLoad(){c(this.root,{variant:this.placement})}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.disconnectForElement()}render(){return i(o,{key:"e72338cfa0e87c64cbab1dec72e900dbca5b0006",id:this.id,class:{"gux-show":this.isShown},role:"tooltip"},i("div",{key:"7fb80dd3d69864f8b2dcaa86af9bb65e31d4f8f7",class:{"gux-container":!0,[`gux-${this.accent}`]:!0},"data-placement":this.placement},i("slot",{key:"92aeb65f731a56d67107e55b745e764365b4cd94",name:"content"},i("slot",{key:"2306d904ed08126adb4ba6f25e657de18739a544"}))))}get root(){return e(this)}static get watchers(){return{for:["updateForElement"]}}};u.style=":host{position:fixed;z-index:var(--gse-semantic-zIndex-tooltip);display:none;width:max-content;max-width:250px;pointer-events:none;border-radius:var(--gse-ui-tooltip-borderRadius);box-shadow:var(--gse-ui-tooltip-boxShadow-x) var(--gse-ui-tooltip-boxShadow-y) var(--gse-ui-tooltip-boxShadow-blur) var(--gse-ui-tooltip-boxShadow-spread) var(--gse-ui-tooltip-boxShadow-color);opacity:0}:host(.gux-show){display:block;animation-name:fade-in;animation-duration:250ms;animation-delay:1s;animation-fill-mode:forwards}.gux-container{box-sizing:border-box;display:flex;flex-direction:row;gap:var(--gse-ui-tooltip-gap);place-content:center flex-start;padding:var(--gse-ui-tooltip-padding);font-family:var(--gse-ui-tooltip-text-fontFamily);font-size:var(--gse-ui-tooltip-text-fontSize);font-weight:var(--gse-ui-tooltip-text-fontWeight);line-height:var(--gse-ui-tooltip-text-lineHeight);color:var(--gse-ui-tooltip-light-foregroundColor);background-color:var(--gse-ui-tooltip-light-backgroundColor);border:var(--gse-ui-tooltip-light-border-width) var(--gse-ui-tooltip-light-border-style) var(--gse-ui-tooltip-light-border-color);border-radius:var(--gse-ui-tooltip-borderRadius)}.gux-container ::slotted(gux-icon){align-self:center;width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);color:var(--gse-ui-tooltip-light-iconColor)}.gux-container ::slotted(*){width:100%;overflow-wrap:break-word;white-space:normal}.gux-container.gux-dark{color:var(--gse-ui-tooltip-dark-foregroundColor);background-color:var(--gse-ui-tooltip-dark-backgroundColor);border-color:var(--gse-ui-tooltip-dark-border-color)}.gux-container.gux-dark ::slotted(gux-icon){align-self:center;width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);color:var(--gse-ui-tooltip-dark-iconColor)}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}";export{u as gux_tooltip}
1
+ import{r as t,h as i,H as o,g as e}from"./p-2e827df1.js";import{a as s,o as a,f as r,s as n,h as l,c as d}from"./p-b43ee47b.js";import{r as h}from"./p-0934300e.js";import{t as c}from"./p-60b9f5d4.js";import{f as p}from"./p-9b0d3713.js";import{b as g}from"./p-cf0e7d3b.js";const u=class{constructor(i){t(this,i),this.pointerenterHandler=()=>this.show(),this.pointerleaveHandler=()=>this.hide(),this.focusinHandler=()=>this.show(),this.focusoutHandler=()=>this.hide(),this.forElementListeners=new Map([["pointerenter",this.pointerenterHandler],["pointerleave",this.pointerleaveHandler],["focusin",this.focusinHandler],["focusout",this.focusoutHandler]]),this.id=h("gux-tooltip"),this.for=void 0,this.placement="bottom-start",this.accent="light",this.isShown=!1}handleKeyDown(t){"Escape"===t.key&&this.isShown&&this.hide()}async showTooltip(){this.show()}async hideTooltip(){this.hide()}runUpdatePosition(){this.cleanupUpdatePosition=s(this.forElement,this.root,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!1,ancestorResize:!0})}updatePosition(){const t=[a(16),r(),n(),l()];d(this.forElement,this.root,{placement:this.placement,strategy:"fixed",middleware:t}).then((({x:t,y:i,middlewareData:o})=>{var e;Object.assign(this.root.style,{left:`${t}px`,top:`${i}px`,visibility:(null===(e=o.hide)||void 0===e?void 0:e.referenceHidden)?"hidden":"visible"}),this.root.setAttribute("data-placement",this.placement)}))}show(){this.isShown=!0,g((()=>{this.runUpdatePosition()}))}hide(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.isShown=!1}getForElement(){return this.for?p(this.root,this.for):this.root.parentElement}logForAttributeError(){this.root.isConnected&&console.error(`gux-tooltip: invalid element supplied to 'for': "${this.for}"`)}setForElement(){this.forElement=this.getForElement(),this.forElement?(this.forElement.setAttribute("aria-describedby",this.id),this.forElementListeners.forEach(((t,i)=>this.forElement.addEventListener(i,t)))):this.logForAttributeError()}disconnectForElement(){this.forElement&&(this.forElement.removeAttribute("aria-describedby"),this.forElementListeners.forEach(((t,i)=>this.forElement.removeEventListener(i,t))))}updateForElement(){this.disconnectForElement(),this.setForElement()}connectedCallback(){this.setForElement()}componentWillLoad(){c(this.root,{variant:this.placement})}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.disconnectForElement()}render(){return i(o,{key:"e72338cfa0e87c64cbab1dec72e900dbca5b0006",id:this.id,class:{"gux-show":this.isShown},role:"tooltip"},i("div",{key:"7fb80dd3d69864f8b2dcaa86af9bb65e31d4f8f7",class:{"gux-container":!0,[`gux-${this.accent}`]:!0},"data-placement":this.placement},i("slot",{key:"92aeb65f731a56d67107e55b745e764365b4cd94",name:"content"},i("slot",{key:"2306d904ed08126adb4ba6f25e657de18739a544"}))))}get root(){return e(this)}static get watchers(){return{for:["updateForElement"]}}};u.style=":host{position:fixed;z-index:var(--gse-semantic-zIndex-tooltip);display:none;width:max-content;max-width:250px;pointer-events:none;border-radius:var(--gse-ui-tooltip-borderRadius);box-shadow:var(--gse-ui-tooltip-boxShadow-x) var(--gse-ui-tooltip-boxShadow-y) var(--gse-ui-tooltip-boxShadow-blur) var(--gse-ui-tooltip-boxShadow-spread) var(--gse-ui-tooltip-boxShadow-color);opacity:0}:host(.gux-show){display:block;animation-name:fade-in;animation-duration:250ms;animation-delay:1s;animation-fill-mode:forwards}.gux-container{box-sizing:border-box;display:flex;flex-direction:row;gap:var(--gse-ui-tooltip-gap);place-content:center flex-start;padding:var(--gse-ui-tooltip-padding);font-family:var(--gse-ui-tooltip-text-fontFamily);font-size:var(--gse-ui-tooltip-text-fontSize);font-weight:var(--gse-ui-tooltip-text-fontWeight);line-height:var(--gse-ui-tooltip-text-lineHeight);color:var(--gse-ui-tooltip-light-foregroundColor);background-color:var(--gse-ui-tooltip-light-backgroundColor);border:var(--gse-ui-tooltip-light-border-width) var(--gse-ui-tooltip-light-border-style) var(--gse-ui-tooltip-light-border-color);border-radius:var(--gse-ui-tooltip-borderRadius)}.gux-container ::slotted(gux-icon){align-self:center;width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);color:var(--gse-ui-tooltip-light-iconColor)}.gux-container ::slotted(*){width:100%;overflow-wrap:break-word;white-space:normal}.gux-container.gux-dark{color:var(--gse-ui-tooltip-dark-foregroundColor);background-color:var(--gse-ui-tooltip-dark-backgroundColor);border-color:var(--gse-ui-tooltip-dark-border-color)}.gux-container.gux-dark ::slotted(gux-icon){align-self:center;width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);color:var(--gse-ui-tooltip-dark-iconColor)}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}";export{u as gux_tooltip}