genesys-spark-components 4.154.0 → 4.154.1

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 (397) 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 +1 -1
  8. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-avatar-group-add-item-beta_3.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-avatar-group-item-beta.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-button_2.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-calendar-beta.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-day-beta.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-file-list-item.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-file-beta.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-file.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-number_2.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-inline-alert.cjs.entry.js +3 -3
  59. package/dist/cjs/gux-inline-dropdown-beta.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-link-beta.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-month-calendar.cjs.entry.js +8 -8
  69. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +3 -3
  70. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-popover-beta.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-popover-list-beta.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-rich-highlight-list-item.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-rich-style-list-item_3.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +1 -1
  88. package/dist/cjs/gux-rich-text-editor-beta.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  91. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  92. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
  93. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-side-panel-beta.cjs.entry.js +1 -1
  95. package/dist/cjs/gux-side-panel-heading.cjs.entry.js +1 -1
  96. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  97. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  98. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  99. package/dist/cjs/gux-status-indicator-beta.cjs.entry.js +1 -1
  100. package/dist/cjs/gux-step-title.cjs.entry.js +1 -1
  101. package/dist/cjs/gux-step.cjs.entry.js +1 -1
  102. package/dist/cjs/gux-stepper-beta.cjs.entry.js +1 -1
  103. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  104. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  105. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  106. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  107. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  108. package/dist/cjs/gux-table.cjs.entry.js +10 -9
  109. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  110. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  111. package/dist/cjs/gux-tag.cjs.entry.js +3 -3
  112. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  113. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  114. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  115. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
  116. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  117. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  118. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  119. package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +1 -1
  120. package/dist/cjs/gux-tooltip-pointer-beta.cjs.entry.js +1 -1
  121. package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
  122. package/dist/cjs/index-e321455d.js +4 -4
  123. package/dist/cjs/loader.cjs.js +1 -1
  124. package/dist/cjs/{usage-db3b9276.js → usage-3bf4e36f.js} +1 -1
  125. package/dist/collection/components/beta/gux-label-info/tests/gux-label-info.common.js +10 -0
  126. package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.js +8 -8
  127. package/dist/collection/components/beta/gux-month-picker/gux-month-picker.js +2 -2
  128. package/dist/collection/components/stable/gux-inline-alert/gux-inline-alert.js +2 -2
  129. package/dist/collection/components/stable/gux-list/tests/gux-list.common.js +10 -0
  130. package/dist/collection/components/stable/gux-table/gux-table.js +10 -9
  131. package/dist/collection/components/stable/gux-tag/gux-tag.js +2 -2
  132. package/dist/esm/genesys-webcomponents.js +1 -1
  133. package/dist/esm/gux-accordion.entry.js +1 -1
  134. package/dist/esm/gux-action-button.entry.js +1 -1
  135. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  136. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  137. package/dist/esm/gux-announce-beta.entry.js +1 -1
  138. package/dist/esm/gux-avatar-beta.entry.js +1 -1
  139. package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
  140. package/dist/esm/gux-avatar-group-add-item-beta_3.entry.js +1 -1
  141. package/dist/esm/gux-avatar-group-beta.entry.js +1 -1
  142. package/dist/esm/gux-avatar-group-item-beta.entry.js +1 -1
  143. package/dist/esm/gux-badge.entry.js +1 -1
  144. package/dist/esm/gux-blank-state.entry.js +1 -1
  145. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  146. package/dist/esm/gux-button-multi.entry.js +1 -1
  147. package/dist/esm/gux-button-slot.entry.js +1 -1
  148. package/dist/esm/gux-button_2.entry.js +1 -1
  149. package/dist/esm/gux-calendar-beta.entry.js +1 -1
  150. package/dist/esm/gux-calendar.entry.js +1 -1
  151. package/dist/esm/gux-card.entry.js +1 -1
  152. package/dist/esm/gux-column-manager.entry.js +1 -1
  153. package/dist/esm/gux-content-search.entry.js +1 -1
  154. package/dist/esm/gux-context-menu.entry.js +1 -1
  155. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  156. package/dist/esm/gux-date-beta.entry.js +1 -1
  157. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  158. package/dist/esm/gux-datepicker.entry.js +1 -1
  159. package/dist/esm/gux-day-beta.entry.js +1 -1
  160. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  161. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  162. package/dist/esm/gux-dropdown-multi.entry.js +1 -1
  163. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  164. package/dist/esm/gux-file-list-item.entry.js +1 -1
  165. package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
  166. package/dist/esm/gux-flyout-menu.entry.js +1 -1
  167. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +1 -1
  168. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  169. package/dist/esm/gux-form-field-color.entry.js +1 -1
  170. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  171. package/dist/esm/gux-form-field-file-beta.entry.js +1 -1
  172. package/dist/esm/gux-form-field-file.entry.js +1 -1
  173. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  174. package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
  175. package/dist/esm/gux-form-field-number_2.entry.js +1 -1
  176. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  177. package/dist/esm/gux-form-field-radio-group-beta.entry.js +1 -1
  178. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  179. package/dist/esm/gux-form-field-range.entry.js +1 -1
  180. package/dist/esm/gux-form-field-search.entry.js +1 -1
  181. package/dist/esm/gux-form-field-select.entry.js +1 -1
  182. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  183. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  184. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  185. package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
  186. package/dist/esm/gux-form-footer.entry.js +1 -1
  187. package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
  188. package/dist/esm/gux-icon.entry.js +1 -1
  189. package/dist/esm/gux-inline-alert.entry.js +3 -3
  190. package/dist/esm/gux-inline-dropdown-beta.entry.js +1 -1
  191. package/dist/esm/gux-label-info-beta.entry.js +1 -1
  192. package/dist/esm/gux-link-beta.entry.js +1 -1
  193. package/dist/esm/gux-list.entry.js +1 -1
  194. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  195. package/dist/esm/gux-loading-message.entry.js +1 -1
  196. package/dist/esm/gux-modal-legacy.entry.js +1 -1
  197. package/dist/esm/gux-modal-side-panel-beta.entry.js +1 -1
  198. package/dist/esm/gux-modal.entry.js +1 -1
  199. package/dist/esm/gux-month-calendar.entry.js +8 -8
  200. package/dist/esm/gux-month-picker-beta.entry.js +3 -3
  201. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  202. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  203. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  204. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  205. package/dist/esm/gux-pagination.entry.js +1 -1
  206. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  207. package/dist/esm/gux-popover-beta.entry.js +1 -1
  208. package/dist/esm/gux-popover-list-beta.entry.js +1 -1
  209. package/dist/esm/gux-popover-list.entry.js +1 -1
  210. package/dist/esm/gux-radial-loading.entry.js +1 -1
  211. package/dist/esm/gux-radial-progress.entry.js +1 -1
  212. package/dist/esm/gux-rating.entry.js +1 -1
  213. package/dist/esm/gux-rich-highlight-list-item.entry.js +1 -1
  214. package/dist/esm/gux-rich-style-list-item_3.entry.js +1 -1
  215. package/dist/esm/gux-rich-text-editor-action-link.entry.js +1 -1
  216. package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +1 -1
  217. package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +1 -1
  218. package/dist/esm/gux-rich-text-editor-action.entry.js +1 -1
  219. package/dist/esm/gux-rich-text-editor-beta.entry.js +1 -1
  220. package/dist/esm/gux-rich-text-editor-list.entry.js +1 -1
  221. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  222. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  223. package/dist/esm/gux-selector-card-beta.entry.js +1 -1
  224. package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
  225. package/dist/esm/gux-side-panel-beta.entry.js +1 -1
  226. package/dist/esm/gux-side-panel-heading.entry.js +1 -1
  227. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  228. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  229. package/dist/esm/gux-sort-control.entry.js +1 -1
  230. package/dist/esm/gux-status-indicator-beta.entry.js +1 -1
  231. package/dist/esm/gux-step-title.entry.js +1 -1
  232. package/dist/esm/gux-step.entry.js +1 -1
  233. package/dist/esm/gux-stepper-beta.entry.js +1 -1
  234. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  235. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  236. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  237. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  238. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  239. package/dist/esm/gux-table.entry.js +10 -9
  240. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  241. package/dist/esm/gux-tabs.entry.js +1 -1
  242. package/dist/esm/gux-tag.entry.js +3 -3
  243. package/dist/esm/gux-text-highlight.entry.js +1 -1
  244. package/dist/esm/gux-time-beta.entry.js +1 -1
  245. package/dist/esm/gux-time-picker.entry.js +1 -1
  246. package/dist/esm/gux-time-zone-beta.entry.js +1 -1
  247. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  248. package/dist/esm/gux-toast.entry.js +1 -1
  249. package/dist/esm/gux-toggle.entry.js +1 -1
  250. package/dist/esm/gux-tooltip-base-beta_2.entry.js +1 -1
  251. package/dist/esm/gux-tooltip-pointer-beta.entry.js +1 -1
  252. package/dist/esm/gux-tooltip_2.entry.js +1 -1
  253. package/dist/esm/index-1f4f2f77.js +4 -4
  254. package/dist/esm/loader.js +1 -1
  255. package/dist/esm/{usage-1c4671d0.js → usage-fb8e7cfd.js} +1 -1
  256. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  257. package/dist/genesys-webcomponents/{p-ac4464ac.entry.js → p-012516f1.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/{p-22749bb3.entry.js → p-015f348c.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/{p-374c1197.entry.js → p-019610a4.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-b7868c7d.entry.js → p-03d31fc0.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/{p-fccc7526.entry.js → p-06ca0a54.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/{p-3c562a32.entry.js → p-0979f28c.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/{p-ce4f337a.entry.js → p-099de469.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/{p-6b2f703a.entry.js → p-09c38b50.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-5b1d05f8.entry.js → p-0ae50db6.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-0a954a8a.entry.js → p-0f71d4cd.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-3a29839b.entry.js → p-0f76c3d9.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/p-14963ced.entry.js +1 -0
  269. package/dist/genesys-webcomponents/{p-9a3ba0cc.entry.js → p-1544d5cd.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-34cc2d9d.entry.js → p-1640e520.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-cabe35cd.entry.js → p-168fef96.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/p-18fe22da.entry.js +1 -0
  273. package/dist/genesys-webcomponents/{p-b2daec0b.entry.js → p-19aa19e1.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/p-1af39b0f.entry.js +1 -0
  275. package/dist/genesys-webcomponents/{p-57a60f59.entry.js → p-1f814a37.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-9cd05705.entry.js → p-25e48f3f.entry.js} +1 -1
  277. package/dist/genesys-webcomponents/p-2611f58a.entry.js +1 -0
  278. package/dist/genesys-webcomponents/{p-76b7957d.entry.js → p-282b6a7b.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/{p-f923f33d.entry.js → p-28398502.entry.js} +1 -1
  280. package/dist/genesys-webcomponents/p-28680637.entry.js +1 -0
  281. package/dist/genesys-webcomponents/{p-a1c062f3.entry.js → p-2bb556e7.entry.js} +1 -1
  282. package/dist/genesys-webcomponents/{p-cd7736fb.entry.js → p-2c2fe918.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-7531bf55.entry.js → p-2e7880ea.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/{p-bfd31de6.entry.js → p-2f626469.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/{p-c20cb297.entry.js → p-31e14fa6.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-19f108ae.entry.js → p-331a5287.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-86638c5b.entry.js → p-33571cc3.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-3648f34a.entry.js → p-3359d69c.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-9622de4a.entry.js → p-337af8f2.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/{p-d51d4cb9.entry.js → p-3821feb7.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/{p-3ba052a4.entry.js → p-3dc9bd98.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-64567c2a.entry.js → p-3fb7130f.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-6c2b532c.entry.js → p-409e93b7.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-99abf530.entry.js → p-40c7fa0e.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-1925382b.entry.js → p-43edaaab.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-8bee85a0.entry.js → p-4668876a.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-223b8c93.entry.js → p-478c75f5.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-f606e7b5.entry.js → p-4b3e35e3.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-b72aaa09.entry.js → p-5080b0ab.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-35d9678b.entry.js → p-50efcc71.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/p-5890f6c7.entry.js +1 -0
  302. package/dist/genesys-webcomponents/{p-5c11c1f4.entry.js → p-5b0a0093.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-275a1596.entry.js → p-5bd6b72f.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-501b03f2.entry.js → p-5bfc68b9.entry.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-7e35b3f1.entry.js → p-5ce21f8e.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-a9709d74.entry.js → p-5f1aa936.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/{p-05f16a08.entry.js → p-6180f9d4.entry.js} +1 -1
  308. package/dist/genesys-webcomponents/{p-d00b81d4.entry.js → p-61ba9e1d.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-6c2070ee.entry.js → p-630011bc.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-af5173ca.entry.js → p-64117220.entry.js} +1 -1
  311. package/dist/genesys-webcomponents/{p-b05b312a.entry.js → p-6621092c.entry.js} +1 -1
  312. package/dist/genesys-webcomponents/{p-edad3b48.entry.js → p-6745d68d.entry.js} +1 -1
  313. package/dist/genesys-webcomponents/{p-4409d931.entry.js → p-67a0b5c6.entry.js} +1 -1
  314. package/dist/genesys-webcomponents/{p-865e8243.entry.js → p-6964e91d.entry.js} +1 -1
  315. package/dist/genesys-webcomponents/{p-fcb37103.entry.js → p-6ae621e0.entry.js} +1 -1
  316. package/dist/genesys-webcomponents/{p-b210e41c.entry.js → p-70ec6393.entry.js} +1 -1
  317. package/dist/genesys-webcomponents/p-724719e1.entry.js +1 -0
  318. package/dist/genesys-webcomponents/{p-d3990b1d.entry.js → p-72c37d77.entry.js} +1 -1
  319. package/dist/genesys-webcomponents/{p-6994735d.entry.js → p-733f5050.entry.js} +1 -1
  320. package/dist/genesys-webcomponents/{p-6b7f649d.entry.js → p-741fe0d6.entry.js} +1 -1
  321. package/dist/genesys-webcomponents/{p-37a302f6.entry.js → p-745c5388.entry.js} +1 -1
  322. package/dist/genesys-webcomponents/{p-5a110392.entry.js → p-776a7168.entry.js} +1 -1
  323. package/dist/genesys-webcomponents/{p-6af8ed46.entry.js → p-7946142a.entry.js} +1 -1
  324. package/dist/genesys-webcomponents/{p-1dfd3e2f.entry.js → p-79e422ef.entry.js} +1 -1
  325. package/dist/genesys-webcomponents/{p-ea63b3a9.entry.js → p-7b8a3bda.entry.js} +1 -1
  326. package/dist/genesys-webcomponents/{p-33b15e0b.entry.js → p-7ff52a2e.entry.js} +1 -1
  327. package/dist/genesys-webcomponents/{p-6d8f5329.entry.js → p-807d26e0.entry.js} +1 -1
  328. package/dist/genesys-webcomponents/{p-3e95d4b1.entry.js → p-87eb590a.entry.js} +1 -1
  329. package/dist/genesys-webcomponents/{p-a29ce8d0.entry.js → p-88a06999.entry.js} +1 -1
  330. package/dist/genesys-webcomponents/{p-2e9a9f25.entry.js → p-8c9e0b21.entry.js} +1 -1
  331. package/dist/genesys-webcomponents/{p-48fc41be.entry.js → p-8e3fa328.entry.js} +1 -1
  332. package/dist/genesys-webcomponents/{p-9715b7df.entry.js → p-90232557.entry.js} +1 -1
  333. package/dist/genesys-webcomponents/{p-bb0c781c.entry.js → p-961d60f4.entry.js} +1 -1
  334. package/dist/genesys-webcomponents/{p-2e8af625.entry.js → p-965cc359.entry.js} +1 -1
  335. package/dist/genesys-webcomponents/{p-5fa6e644.entry.js → p-96b37e5f.entry.js} +1 -1
  336. package/dist/genesys-webcomponents/{p-511de433.entry.js → p-98210b97.entry.js} +1 -1
  337. package/dist/genesys-webcomponents/{p-59c9dc20.entry.js → p-98936301.entry.js} +1 -1
  338. package/dist/genesys-webcomponents/{p-ce4a44ef.js → p-989599b2.js} +1 -1
  339. package/dist/genesys-webcomponents/{p-27cfab17.entry.js → p-9d49d4da.entry.js} +1 -1
  340. package/dist/genesys-webcomponents/{p-1c38d02d.entry.js → p-9fc1e6c0.entry.js} +1 -1
  341. package/dist/genesys-webcomponents/{p-b48f4190.entry.js → p-a1ba7e77.entry.js} +1 -1
  342. package/dist/genesys-webcomponents/{p-1f96e3a6.entry.js → p-a26adb40.entry.js} +1 -1
  343. package/dist/genesys-webcomponents/{p-efff42e6.entry.js → p-a36a4e30.entry.js} +1 -1
  344. package/dist/genesys-webcomponents/{p-88828965.entry.js → p-a44f4e9f.entry.js} +1 -1
  345. package/dist/genesys-webcomponents/{p-6828b87e.entry.js → p-aa8eb31a.entry.js} +1 -1
  346. package/dist/genesys-webcomponents/p-aac9fe92.entry.js +1 -0
  347. package/dist/genesys-webcomponents/{p-e0aaa0bb.entry.js → p-ae838b72.entry.js} +1 -1
  348. package/dist/genesys-webcomponents/{p-27279770.entry.js → p-b01e2b8c.entry.js} +1 -1
  349. package/dist/genesys-webcomponents/{p-9b7ca80f.entry.js → p-b49f2b46.entry.js} +1 -1
  350. package/dist/genesys-webcomponents/{p-6ab64af6.entry.js → p-b6ca19dd.entry.js} +1 -1
  351. package/dist/genesys-webcomponents/{p-0484fba3.entry.js → p-c2992770.entry.js} +1 -1
  352. package/dist/genesys-webcomponents/{p-e2874858.entry.js → p-c4004fe5.entry.js} +1 -1
  353. package/dist/genesys-webcomponents/{p-1f0b2e90.entry.js → p-c981705d.entry.js} +1 -1
  354. package/dist/genesys-webcomponents/{p-92620a7d.entry.js → p-cacffe98.entry.js} +1 -1
  355. package/dist/genesys-webcomponents/{p-7d30877f.entry.js → p-ce43b921.entry.js} +1 -1
  356. package/dist/genesys-webcomponents/{p-6620e2a5.entry.js → p-ce79ea8e.entry.js} +1 -1
  357. package/dist/genesys-webcomponents/{p-c2c7383a.entry.js → p-d0abbc2a.entry.js} +1 -1
  358. package/dist/genesys-webcomponents/{p-7b77d05e.entry.js → p-d13726b1.entry.js} +1 -1
  359. package/dist/genesys-webcomponents/{p-9c659c60.entry.js → p-d1efa66e.entry.js} +1 -1
  360. package/dist/genesys-webcomponents/{p-356ae00f.entry.js → p-d36f45b3.entry.js} +1 -1
  361. package/dist/genesys-webcomponents/p-d47f78ce.entry.js +1 -0
  362. package/dist/genesys-webcomponents/{p-d302cc1a.entry.js → p-d9496f0c.entry.js} +1 -1
  363. package/dist/genesys-webcomponents/{p-776ba8a1.entry.js → p-de06f65a.entry.js} +1 -1
  364. package/dist/genesys-webcomponents/{p-2ebd8b1b.entry.js → p-e037ddbb.entry.js} +1 -1
  365. package/dist/genesys-webcomponents/{p-cb72ea23.entry.js → p-e13ba763.entry.js} +1 -1
  366. package/dist/genesys-webcomponents/{p-d32b40f4.entry.js → p-e6376cf0.entry.js} +1 -1
  367. package/dist/genesys-webcomponents/{p-0645e2aa.entry.js → p-e72c46e1.entry.js} +1 -1
  368. package/dist/genesys-webcomponents/{p-414b3bde.entry.js → p-ec5646cd.entry.js} +1 -1
  369. package/dist/genesys-webcomponents/{p-68b4e0b9.entry.js → p-ee37907e.entry.js} +1 -1
  370. package/dist/genesys-webcomponents/{p-a910a47c.entry.js → p-f036a680.entry.js} +1 -1
  371. package/dist/genesys-webcomponents/{p-09577413.entry.js → p-f2192334.entry.js} +1 -1
  372. package/dist/genesys-webcomponents/{p-8be89127.entry.js → p-f2c90cbe.entry.js} +1 -1
  373. package/dist/genesys-webcomponents/{p-ef2e6364.entry.js → p-f35fb657.entry.js} +1 -1
  374. package/dist/genesys-webcomponents/p-f4a787fc.entry.js +1 -0
  375. package/dist/genesys-webcomponents/p-f4d17249.entry.js +1 -0
  376. package/dist/genesys-webcomponents/{p-e8f94fef.entry.js → p-f84cf3af.entry.js} +1 -1
  377. package/dist/genesys-webcomponents/{p-fac01e0e.entry.js → p-fbb40494.entry.js} +1 -1
  378. package/dist/stencil-wrapper.js +1 -1
  379. package/dist/types/components/beta/gux-label-info/tests/gux-label-info.common.d.ts +4 -0
  380. package/dist/types/components/stable/gux-list/tests/gux-list.common.d.ts +4 -0
  381. package/dist/types/components/stable/gux-table/gux-table.d.ts +3 -3
  382. package/dist/types/stencil-wrapper.d.ts +1 -1
  383. package/package.json +1 -1
  384. package/dist/genesys-webcomponents/p-062e29e0.entry.js +0 -1
  385. package/dist/genesys-webcomponents/p-08e0eb99.entry.js +0 -1
  386. package/dist/genesys-webcomponents/p-18c0b809.entry.js +0 -1
  387. package/dist/genesys-webcomponents/p-31961c13.entry.js +0 -1
  388. package/dist/genesys-webcomponents/p-3897c073.entry.js +0 -1
  389. package/dist/genesys-webcomponents/p-3fe9bf56.entry.js +0 -1
  390. package/dist/genesys-webcomponents/p-5204b334.entry.js +0 -1
  391. package/dist/genesys-webcomponents/p-7564e755.entry.js +0 -1
  392. package/dist/genesys-webcomponents/p-87c4e596.entry.js +0 -1
  393. package/dist/genesys-webcomponents/p-8873dde9.entry.js +0 -1
  394. package/dist/genesys-webcomponents/p-a18dc140.entry.js +0 -1
  395. /package/dist/cjs/{index.umd-0bcfad8c.js → index.umd-eabf827e.js} +0 -0
  396. /package/dist/esm/{index.umd-4efa049e.js → index.umd-eed2cb66.js} +0 -0
  397. /package/dist/genesys-webcomponents/{p-b92b1300.js → p-9ac723ea.js} +0 -0
@@ -1 +1 @@
1
- import{r as t,h as s,g as e}from"./p-cf74fd3d.js";import{b as i}from"./p-e5e644b3.js";import{f as o,g as r,t as n}from"./p-195982e6.js";import{t as a}from"./p-ce4a44ef.js";import{s as h}from"./p-2c25e2f2.js";import"./p-4202e9f2.js";const d=class{constructor(s){t(this,s),this.hasError=!1,this.disabled=!1,this.required=!1,this.searchString=""}on(t){this.searchString=t.detail,this.filteredZoneList=this.filterTimeZoneList(this.timeZoneList),this.timeZoneOptionElements=this.renderTimeZones(this.filteredZoneList)}async componentWillLoad(){a(this.root),this.i18n=await i(this.root,n),this.timeZoneList=this.getTimeZoneOptionsList(),this.filteredZoneList=this.timeZoneList,this.timeZoneOptionElements=this.renderTimeZones(this.filteredZoneList)}componentDidLoad(){var t;(null===(t=this.root)||void 0===t?void 0:t.shadowRoot.querySelector("gux-dropdown")).addEventListener("change",(t=>{const s=t.target;this.value=null==s?void 0:s.value,h(this.root,"change")}))}filterTimeZoneList(t){const s=this.searchString;return t.filter((t=>this.getFormattedTimeZoneOption(t).toLowerCase().includes(s.toLowerCase())))}getTimeZoneOption(t){const s=this.i18n(t.name),e=t.countryName?this.i18n(t.countryName):void 0;if(!s)return;const i=o(t.currentTimeOffsetInMinutes),r=`${s}`,n=` (${this.i18n("UTC")}${i})`,a=`${n}`,h=r.replace(/_/g," "),d=`${e}`,l=r.startsWith("Etc/GMT")?2:1;return{value:t.name,localizedGroupName:s,formattedOffset:i,displayTextNameFormatted:h,displayTextOffset:n,baseDisplayOffsetText:a,countryName:d,defaultZone:"",priority:l}}getFormattedTimeZoneOption(t){return t.displayTextNameFormatted.startsWith("Etc/GMT")?t.displayTextNameFormatted.concat(t.baseDisplayOffsetText):t.displayTextNameFormatted.split("/").pop().concat(", ",t.countryName,t.baseDisplayOffsetText)}getTimeZoneOptionsList(){const t=r(),s=[];return t.forEach((t=>{const e=this.getTimeZoneOption(t);e&&s.push(e)})),s.sort(((t,s)=>{var e;return t.priority-s.priority||(null===(e=t.displayTextNameFormatted)||void 0===e?void 0:e.localeCompare(s.displayTextNameFormatted))}))}getDefaultZones(){return[this.workspaceDefault,this.localDefault,this.customDefault].filter((t=>!!t))}getDefaultZoneList(){const t=this.getDefaultZones(),s=this.timeZoneList.reduce(((s,e)=>t.includes(e.value)?s.concat([Object.assign({},e)]):s),[]);return s.forEach((t=>{this.workspaceDefault===this.localDefault?t.defaultZone=`${this.i18n("localAndWorkspaceDefault")}`:t.value===this.workspaceDefault?t.defaultZone=`${this.i18n("workspaceDefault")}`:t.value===this.localDefault&&(t.defaultZone=`${this.i18n("localDefault")}`),t.value===this.customDefault&&(t.defaultZone=`(${this.customDefaultLabel})`)})),s}renderTimeZones(t){return t.map((t=>s("gux-option",{class:{"gux-has-defaults":""!==t.defaultZone},value:t.value},s("div",{class:"gux-option-wrapper"},s("div",null,this.getFormattedTimeZoneOption(t)),s("span",{class:"gux-default-zone"},t.defaultZone)))))}renderDefaultsList(){const t=this.renderTimeZones(this.getDefaultZoneList());if(t.length)return s("gux-option-group-beta",{label:this.i18n("default")},t)}renderAllTimeZoneOptionsList(){return s("gux-option-group-beta",{label:this.i18n("all")},this.timeZoneOptionElements)}render(){return s("gux-dropdown",{key:"5678c0115e471da7d88dfe17a706e41731f2ed62",class:{"has-defaults":!!this.workspaceDefault||!!this.localDefault||!!this.customDefault},"filter-type":"custom",placeholder:this.i18n("selectZone"),value:this.value,hasError:this.hasError,disabled:this.disabled},s("gux-listbox",{key:"bce0d5e03122db54277328cce178149c4481d2ff","aria-label":this.i18n("timeZones")},this.renderDefaultsList(),this.renderAllTimeZoneOptionsList()))}get root(){return e(this)}};d.style="gux-dropdown .zone-header{padding-block:8px 4px;padding-inline:12px;color:#6b7585;text-transform:uppercase}gux-dropdown gux-option{padding:var(--gse-ui-menu-option-padding)}gux-dropdown gux-option.gux-has-defaults{block-size:auto}gux-dropdown gux-option .gux-option-wrapper{display:flex;flex-direction:column}gux-dropdown gux-option .gux-default-zone{color:#626e84}";export{d as gux_time_zone_picker_beta}
1
+ import{r as t,h as s,g as e}from"./p-cf74fd3d.js";import{b as i}from"./p-e5e644b3.js";import{f as o,g as r,t as n}from"./p-195982e6.js";import{t as a}from"./p-989599b2.js";import{s as h}from"./p-2c25e2f2.js";import"./p-4202e9f2.js";const d=class{constructor(s){t(this,s),this.hasError=!1,this.disabled=!1,this.required=!1,this.searchString=""}on(t){this.searchString=t.detail,this.filteredZoneList=this.filterTimeZoneList(this.timeZoneList),this.timeZoneOptionElements=this.renderTimeZones(this.filteredZoneList)}async componentWillLoad(){a(this.root),this.i18n=await i(this.root,n),this.timeZoneList=this.getTimeZoneOptionsList(),this.filteredZoneList=this.timeZoneList,this.timeZoneOptionElements=this.renderTimeZones(this.filteredZoneList)}componentDidLoad(){var t;(null===(t=this.root)||void 0===t?void 0:t.shadowRoot.querySelector("gux-dropdown")).addEventListener("change",(t=>{const s=t.target;this.value=null==s?void 0:s.value,h(this.root,"change")}))}filterTimeZoneList(t){const s=this.searchString;return t.filter((t=>this.getFormattedTimeZoneOption(t).toLowerCase().includes(s.toLowerCase())))}getTimeZoneOption(t){const s=this.i18n(t.name),e=t.countryName?this.i18n(t.countryName):void 0;if(!s)return;const i=o(t.currentTimeOffsetInMinutes),r=`${s}`,n=` (${this.i18n("UTC")}${i})`,a=`${n}`,h=r.replace(/_/g," "),d=`${e}`,l=r.startsWith("Etc/GMT")?2:1;return{value:t.name,localizedGroupName:s,formattedOffset:i,displayTextNameFormatted:h,displayTextOffset:n,baseDisplayOffsetText:a,countryName:d,defaultZone:"",priority:l}}getFormattedTimeZoneOption(t){return t.displayTextNameFormatted.startsWith("Etc/GMT")?t.displayTextNameFormatted.concat(t.baseDisplayOffsetText):t.displayTextNameFormatted.split("/").pop().concat(", ",t.countryName,t.baseDisplayOffsetText)}getTimeZoneOptionsList(){const t=r(),s=[];return t.forEach((t=>{const e=this.getTimeZoneOption(t);e&&s.push(e)})),s.sort(((t,s)=>{var e;return t.priority-s.priority||(null===(e=t.displayTextNameFormatted)||void 0===e?void 0:e.localeCompare(s.displayTextNameFormatted))}))}getDefaultZones(){return[this.workspaceDefault,this.localDefault,this.customDefault].filter((t=>!!t))}getDefaultZoneList(){const t=this.getDefaultZones(),s=this.timeZoneList.reduce(((s,e)=>t.includes(e.value)?s.concat([Object.assign({},e)]):s),[]);return s.forEach((t=>{this.workspaceDefault===this.localDefault?t.defaultZone=`${this.i18n("localAndWorkspaceDefault")}`:t.value===this.workspaceDefault?t.defaultZone=`${this.i18n("workspaceDefault")}`:t.value===this.localDefault&&(t.defaultZone=`${this.i18n("localDefault")}`),t.value===this.customDefault&&(t.defaultZone=`(${this.customDefaultLabel})`)})),s}renderTimeZones(t){return t.map((t=>s("gux-option",{class:{"gux-has-defaults":""!==t.defaultZone},value:t.value},s("div",{class:"gux-option-wrapper"},s("div",null,this.getFormattedTimeZoneOption(t)),s("span",{class:"gux-default-zone"},t.defaultZone)))))}renderDefaultsList(){const t=this.renderTimeZones(this.getDefaultZoneList());if(t.length)return s("gux-option-group-beta",{label:this.i18n("default")},t)}renderAllTimeZoneOptionsList(){return s("gux-option-group-beta",{label:this.i18n("all")},this.timeZoneOptionElements)}render(){return s("gux-dropdown",{key:"5678c0115e471da7d88dfe17a706e41731f2ed62",class:{"has-defaults":!!this.workspaceDefault||!!this.localDefault||!!this.customDefault},"filter-type":"custom",placeholder:this.i18n("selectZone"),value:this.value,hasError:this.hasError,disabled:this.disabled},s("gux-listbox",{key:"bce0d5e03122db54277328cce178149c4481d2ff","aria-label":this.i18n("timeZones")},this.renderDefaultsList(),this.renderAllTimeZoneOptionsList()))}get root(){return e(this)}};d.style="gux-dropdown .zone-header{padding-block:8px 4px;padding-inline:12px;color:#6b7585;text-transform:uppercase}gux-dropdown gux-option{padding:var(--gse-ui-menu-option-padding)}gux-dropdown gux-option.gux-has-defaults{block-size:auto}gux-dropdown gux-option .gux-option-wrapper{display:flex;flex-direction:column}gux-dropdown gux-option .gux-default-zone{color:#626e84}";export{d as gux_time_zone_picker_beta}
@@ -1 +1 @@
1
- import{r as e,c as i,h as s,H as a,g as n}from"./p-cf74fd3d.js";import{t as d}from"./p-ce4a44ef.js";import{h as t}from"./p-6d8b4027.js";const o=class{constructor(s){e(this,s),this.sidePanelDismiss=i(this,"sidePanelDismiss",7),this.size="small"}onDismissHandler(){this.sidePanelDismiss.emit()}componentWillLoad(){d(this.root,{variant:this.size})}renderDescription(){return t(this.root,"description")?s("div",{class:"gux-side-panel-description"},s("slot",{name:"description"})):null}render(){return s(a,{key:"5fdbfbef55bc30be78471c516f8b33f8c9c34981",role:"complementary"},s("div",{key:"4857f47450eeb2268041e55bf89588dd83267502",class:{"gux-side-panel":!0,[`gux-side-panel-${this.size}`]:!0}},s("header",{key:"bc72b54f2b0651ecb7301a864130f26dfaf1f1aa"},s("slot",{key:"383b5861e4bd529d2b4d8e8bb3b463ad83d0d933",name:"heading"})),s("gux-dismiss-button",{key:"fac90508c0adb703155b854d9c43b14c43871cb5",onClick:this.onDismissHandler.bind(this)}),this.renderDescription(),s("div",{key:"6763ab02f24111100758ff07153484fc23634962",class:"gux-side-panel-content"},s("slot",{key:"de0eb73cf762b2b9c5e16191ed98722caad9f389",name:"content"})),s("footer",{key:"43c1297f6408a3638b2f480ce2a22ea2e631accb"},s("slot",{key:"b91da0a3a97a669d24b18a492455b64bcb490014",name:"footer"}))))}get root(){return n(this)}};o.style=":host{display:block;inline-size:fit-content;block-size:100%}:host([size=large]){max-inline-size:50%}.gux-side-panel{position:relative;display:flex;flex-direction:column;inline-size:calc(100vw - var(--gse-ui-sidePanel-shoud-minWidth));block-size:inherit;background-color:var(--gse-ui-sidePanel-backgroundColor);box-shadow:var(--gse-ui-sidePanel-boxShadow)}.gux-side-panel.gux-side-panel-small{max-inline-size:var(--gse-ui-sidePanel-widthSize-sm)}.gux-side-panel.gux-side-panel-medium{max-inline-size:var(--gse-ui-sidePanel-widthSize-md)}.gux-side-panel.gux-side-panel-large{max-inline-size:var(--gse-ui-sidePanel-widthSize-lg)}.gux-side-panel>header{position:relative;padding:var(--gse-ui-sidePanel-header-padding);border-block-end:var(--gse-ui-sidePanel-divider-width) var(--gse-ui-sidePanel-divider-style) var(--gse-ui-sidePanel-divider-color)}.gux-side-panel .gux-side-panel-description{margin:var(--gse-ui-sidePanel-description-padding) !important}.gux-side-panel .gux-side-panel-content{flex:1 1 100%;padding:var(--gse-ui-sidePanel-body-padding);overflow-y:auto;font-family:var(--gse-ui-sidePanel-description-text-fontFamily);font-size:var(--gse-ui-sidePanel-description-text-fontSize);font-weight:var(--gse-ui-sidePanel-description-text-fontWeight);line-height:var(--gse-ui-sidePanel-description-text-lineHeight);color:var(--gse-ui-sidePanel-descriptionColor)}.gux-side-panel>footer{flex:0 0 auto;padding:var(--gse-ui-sidePanel-footer-padding);border-block-start:var(--gse-ui-sidePanel-divider-width) var(--gse-ui-sidePanel-divider-style) var(--gse-ui-sidePanel-divider-color)}.gux-side-panel-description ::slotted(*){margin:0;font-family:var(--gse-ui-sidePanel-description-text-fontFamily) !important;font-size:var(--gse-ui-sidePanel-description-text-fontSize) !important;font-weight:var(--gse-ui-sidePanel-description-text-fontWeight) !important;line-height:var(--gse-ui-sidePanel-description-text-lineHeight) !important;color:var(--gse-ui-sidePanel-descriptionColor) !important}";export{o as gux_side_panel_beta}
1
+ import{r as e,c as i,h as s,H as a,g as n}from"./p-cf74fd3d.js";import{t as d}from"./p-989599b2.js";import{h as t}from"./p-6d8b4027.js";const o=class{constructor(s){e(this,s),this.sidePanelDismiss=i(this,"sidePanelDismiss",7),this.size="small"}onDismissHandler(){this.sidePanelDismiss.emit()}componentWillLoad(){d(this.root,{variant:this.size})}renderDescription(){return t(this.root,"description")?s("div",{class:"gux-side-panel-description"},s("slot",{name:"description"})):null}render(){return s(a,{key:"5fdbfbef55bc30be78471c516f8b33f8c9c34981",role:"complementary"},s("div",{key:"4857f47450eeb2268041e55bf89588dd83267502",class:{"gux-side-panel":!0,[`gux-side-panel-${this.size}`]:!0}},s("header",{key:"bc72b54f2b0651ecb7301a864130f26dfaf1f1aa"},s("slot",{key:"383b5861e4bd529d2b4d8e8bb3b463ad83d0d933",name:"heading"})),s("gux-dismiss-button",{key:"fac90508c0adb703155b854d9c43b14c43871cb5",onClick:this.onDismissHandler.bind(this)}),this.renderDescription(),s("div",{key:"6763ab02f24111100758ff07153484fc23634962",class:"gux-side-panel-content"},s("slot",{key:"de0eb73cf762b2b9c5e16191ed98722caad9f389",name:"content"})),s("footer",{key:"43c1297f6408a3638b2f480ce2a22ea2e631accb"},s("slot",{key:"b91da0a3a97a669d24b18a492455b64bcb490014",name:"footer"}))))}get root(){return n(this)}};o.style=":host{display:block;inline-size:fit-content;block-size:100%}:host([size=large]){max-inline-size:50%}.gux-side-panel{position:relative;display:flex;flex-direction:column;inline-size:calc(100vw - var(--gse-ui-sidePanel-shoud-minWidth));block-size:inherit;background-color:var(--gse-ui-sidePanel-backgroundColor);box-shadow:var(--gse-ui-sidePanel-boxShadow)}.gux-side-panel.gux-side-panel-small{max-inline-size:var(--gse-ui-sidePanel-widthSize-sm)}.gux-side-panel.gux-side-panel-medium{max-inline-size:var(--gse-ui-sidePanel-widthSize-md)}.gux-side-panel.gux-side-panel-large{max-inline-size:var(--gse-ui-sidePanel-widthSize-lg)}.gux-side-panel>header{position:relative;padding:var(--gse-ui-sidePanel-header-padding);border-block-end:var(--gse-ui-sidePanel-divider-width) var(--gse-ui-sidePanel-divider-style) var(--gse-ui-sidePanel-divider-color)}.gux-side-panel .gux-side-panel-description{margin:var(--gse-ui-sidePanel-description-padding) !important}.gux-side-panel .gux-side-panel-content{flex:1 1 100%;padding:var(--gse-ui-sidePanel-body-padding);overflow-y:auto;font-family:var(--gse-ui-sidePanel-description-text-fontFamily);font-size:var(--gse-ui-sidePanel-description-text-fontSize);font-weight:var(--gse-ui-sidePanel-description-text-fontWeight);line-height:var(--gse-ui-sidePanel-description-text-lineHeight);color:var(--gse-ui-sidePanel-descriptionColor)}.gux-side-panel>footer{flex:0 0 auto;padding:var(--gse-ui-sidePanel-footer-padding);border-block-start:var(--gse-ui-sidePanel-divider-width) var(--gse-ui-sidePanel-divider-style) var(--gse-ui-sidePanel-divider-color)}.gux-side-panel-description ::slotted(*){margin:0;font-family:var(--gse-ui-sidePanel-description-text-fontFamily) !important;font-size:var(--gse-ui-sidePanel-description-text-fontSize) !important;font-weight:var(--gse-ui-sidePanel-description-text-fontWeight) !important;line-height:var(--gse-ui-sidePanel-description-text-lineHeight) !important;color:var(--gse-ui-sidePanel-descriptionColor) !important}";export{o as gux_side_panel_beta}
@@ -0,0 +1 @@
1
+ import{r as e,h as t,g as r}from"./p-cf74fd3d.js";import{b as a,g as n}from"./p-e5e644b3.js";import{a as s}from"./p-13d8a42a.js";import{u as i}from"./p-c36d332b.js";import{s as o}from"./p-2c25e2f2.js";import{b as u}from"./p-cf0e7d3b.js";import{g as h,b as c,a as l}from"./p-67d92675.js";import"./p-4202e9f2.js";import"./p-43af726d.js";const d={changeYear:"Current year is {currentYear}, Click to change year to {changeYear}"},g=class{constructor(t){e(this,t),this.expanded=!0}onValueUpdate(e){const{year:t}=h(e);this.year=t}async guxFocus(e){this.expanded=!0,e=e||c();const{year:t}=h(e);this.year=t,u((()=>{const t=this.root.shadowRoot.querySelector(`gux-month-list-item[value="${e}"]`);t&&t.focus()}))}onKeyDown(e){if("Tab"===e.key){if(e.shiftKey)return;(this.nextYearElement.matches(":focus-visible")||this.previousYearElement.matches(":focus-visible")&&this.nextYearElement.disabled)&&(this.focusSelectedMonth(),e.preventDefault())}}focusSelectedMonth(){const e=this.root.shadowRoot.querySelector(`gux-month-list-item[value="${this.previewValue}"]`);if(e&&e.matches(":focus-visible"))null==e||e.focus();else{const e=this.root.shadowRoot.querySelectorAll("gux-month-list-item"),t=Array.from(e).find((e=>!e.disabled));null==t||t.focus()}}nextYearElementOnBlur(e){e.target.disabled&&!e.relatedTarget&&(this.focusSelectedMonth(),e.preventDefault())}async componentWillLoad(){this.i18n=await a(this.root,d),this.locale=i()?s(this.root):n(this.root),this.value?(this.year=h(this.value).year,this.previewValue=this.value):this.year=h(c()).year}updateValue(e){this.value=e,this.previewValue=this.value,o(this.root,"input"),o(this.root,"change")}isOutOfBounds(e){return this.max&&this.max<e||this.min&&this.min>e}onMonthClick(e){this.isOutOfBounds(e)||this.updateValue(e)}isCurrentMonth(e){return h(c()).year==this.year&&h(c()).month==e}getMonthAriaLabel(e){const{year:t,month:r}=h(e);return new Date(Number(t),Number(r)-1).toLocaleDateString(this.locale,{year:"numeric",month:"long"})}getYearLabel(e){return new Date(Number(e),5).toLocaleDateString(this.locale,{year:"numeric"})}isSelectedMonth(e){return e===this.value}isAriaSelectedMonth(e){return!!this.isSelectedMonth(e)&&"true"}changeYear(e){if(this.year=(parseInt(this.year)+e).toString(),this.value){const e=h(this.value).month,t=l(this.year,e);this.previewValue=t}}isPreviousYearLessThanMinYear(e,t){return(parseInt(e)-1).toString()<(t&&h(t).year)}isNextYearGreaterThanMaxYear(e,t){return(parseInt(e)+1).toString()>(t&&h(t).year)}getMonthShortName(e,t){return new Date(Number(e),Number(t)-1).toLocaleDateString(this.locale,{month:"short"})}renderHeader(){return t("div",{class:"gux-year-header"},t("button",{type:"button",class:"gux-year-change",onClick:()=>this.changeYear(-1),disabled:this.isPreviousYearLessThanMinYear(this.year,this.min),ref:e=>this.previousYearElement=e},t("gux-icon",{"icon-name":"custom/chevron-left-small-regular",decorative:!0,size:"small"}),t("gux-screen-reader-beta",null,this.i18n("changeYear",{currentYear:parseInt(this.year),changeYear:parseInt(this.year)-1}))),t("div",null,this.getYearLabel(this.year)),t("button",{type:"button",class:"gux-year-change",onClick:()=>this.changeYear(1),disabled:this.isNextYearGreaterThanMaxYear(this.year,this.max),ref:e=>this.nextYearElement=e,onBlur:this.nextYearElementOnBlur.bind(this)},t("gux-icon",{"icon-name":"custom/chevron-right-small-regular",decorative:!0,size:"small"}),t("gux-screen-reader-beta",null,this.i18n("changeYear",{currentYear:parseInt(this.year),changeYear:parseInt(this.year)+1}))))}renderMonths(){const e=Array.from(new Array(12),((e,t)=>String(t+1).padStart(2,"0"))).map((e=>{const r=l(this.year,e);return t("gux-month-list-item",{class:{"gux-current-month":this.isCurrentMonth(e)},value:r,selected:this.isSelectedMonth(r),"aria-selected":this.isAriaSelectedMonth(r),"aria-label":this.getMonthAriaLabel(r),onClick:()=>this.onMonthClick(r),disabled:this.isOutOfBounds(r)},this.getMonthShortName(this.year,e))}));return t("gux-month-list",null,e)}render(){return t("div",{key:"c01e8936a230019dc5977e94445f970f696372ec",class:{"gux-hidden":!this.expanded,"gux-month-calendar":!0}},this.renderHeader(),this.renderMonths())}static get delegatesFocus(){return!0}get root(){return r(this)}static get watchers(){return{value:["onValueUpdate"]}}};g.style=".gux-month-calendar{flex-wrap:wrap;inline-size:var(--gse-ui-calendarMenu-width);box-shadow:var(--gse-ui-calendarMenu-boxShadow)}.gux-month-calendar.gux-hidden{display:none}.gux-month-calendar .gux-current-month{font-family:var(--gse-ui-calendarMenu-month-currentText-fontFamily);font-size:var(--gse-ui-calendarMenu-month-currentText-fontSize);font-weight:var(--gse-ui-calendarMenu-month-currentText-fontWeight);line-height:var(--gse-ui-calendarMenu-month-currentText-lineHeight);color:var(--gse-ui-calendarMenu-month-default-foregroundColor)}.gux-month-calendar .gux-year-header{position:relative;display:flex;align-items:center;justify-content:space-between;block-size:var(--gse-ui-calendarMenu-month-single-header-height);padding:var(--gse-ui-calendarMenu-header-padding);font-family:var(--gse-ui-calendarMenu-day-headerText-fontFamily);font-size:var(--gse-ui-calendarMenu-day-headerText-fontSize);font-weight:var(--gse-ui-calendarMenu-day-headerText-fontWeight);line-height:var(--gse-ui-calendarMenu-day-headerText-lineHeight);color:var(--gse-ui-calendarMenu-header-foregroundColor);background-color:var(--gse-ui-calendarMenu-header-backgroundColor);border-radius:var(--gse-ui-calendarMenu-single-header-borderRadius)}.gux-month-calendar .gux-year-header button{padding:var(--gse-ui-calendarMenu-header-arrow-padding);color:inherit;cursor:pointer;outline:none;background:none;border:none}.gux-month-calendar .gux-year-header button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-ui-color-focus);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:calc(var(--gse-semantic-focusOutline-sm-borderRadius) - var(--gse-semantic-focusOutline-offset))}.gux-month-calendar .gux-year-header button.gux-year-change:disabled{cursor:default;opacity:var(--gse-ui-calendarMenu-disabled-opacity)}.gux-month-calendar .gux-year-header button gux-icon{pointer-events:none}";export{g as gux_month_calendar}
@@ -1 +1 @@
1
- import{r as a,c as e,h as o,g as t}from"./p-cf74fd3d.js";import{r as i}from"./p-0934300e.js";import{t as n}from"./p-ce4a44ef.js";const d=class{constructor(o){a(this,o),this.guxdismiss=e(this,"guxdismiss",7),this.size="dynamic",this.trapFocus=!0}handleKeyEvent(a){"Escape"===a.key&&this.onDismissHandler(a)}connectedCallback(){this.triggerElement=document.activeElement}componentWillLoad(){n(this.root,{variant:`${this.size}-${this.trapFocus?"trapfocuson":"trapfocusoff"}`})}componentDidLoad(){var a,e,o;const t=this.getInitialFocusElement();t?null===(a=t.focus)||void 0===a||a.call(t):this.dismissButton&&(null===(o=(e=this.dismissButton).focus)||void 0===o||o.call(e))}render(){const a=this.hasModalTitleSlot(),e=this.hasFooterButtons(),t=i();return o("div",{key:"eb19b6f4d5e706e5f631af65788790b4b6a28988",class:"gux-modal",role:"dialog","aria-modal":"true","aria-labelledby":a?t:null},o("div",{key:"e87022164421cddbfe8b27a38b8e239e14033b23",class:`gux-modal-container gux-${this.size}`},this.renderModalTrapFocusEl(),a&&o("h1",{key:"b5cd2c9a126417ef21c94e860643f66d5dcc87e9",class:"gux-modal-header",id:t},o("slot",{key:"770edea87c19561922dd3f8431c091e67712ebf1",name:"title"})),o("gux-dismiss-button",{key:"3a976273e3565189fc9c23a28d86d77da6782172",onClick:this.onDismissHandler.bind(this),ref:a=>this.dismissButton=a}),o("div",{key:"63f5ff17b14028cf92dcd8abad21ba8c44909d86",class:{"gux-modal-content":!0,"gux-no-buttons":!e}},o("p",{key:"dcac66f03f3c1c0bf8aa5f2ac47de7985654d5d4"},o("slot",{key:"0d458479ea3a41f540569229df9ad362b49fbd6c",name:"content"}))),e&&o("div",{key:"bc59458c481d65841cec791c1d49f6ebfdf6da2c",class:"gux-button-footer"},o("div",{key:"cc598c263f762d22574b6c36e0a6c64e708ca265",class:"gux-left-align-buttons"},o("slot",{key:"c0f5c6b565059278216be874d0f8b1801e6141eb",name:"left-align-buttons"})),o("div",{key:"a7908faf1ab3801ea531a3429ee4c4f3a3be0b95",class:"gux-right-align-buttons"},o("slot",{key:"3a63cdb61c930d575b8673dd4fbef51c538de1af",name:"right-align-buttons"}))),this.renderModalTrapFocusEl()))}renderModalTrapFocusEl(){if(this.trapFocus)return o("span",{onFocus:()=>this.dismissButton.focus(),tabindex:"0"})}getInitialFocusElement(){return this.initialFocus?this.root.querySelector(this.initialFocus):void 0}hasModalTitleSlot(){return Boolean(this.root.querySelector('[slot="title"]'))}hasFooterButtons(){return Boolean(this.root.querySelector('[slot="left-align-buttons"]'))||Boolean(this.root.querySelector('[slot="right-align-buttons"]'))}onDismissHandler(a){var e;a.stopPropagation(),this.guxdismiss.emit().defaultPrevented||(this.root.remove(),null===(e=this.triggerElement)||void 0===e||e.focus())}get root(){return t(this)}};d.style="::slotted(button:active:enabled){color:var(--gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}slot[name=left-align-buttons]::slotted(:not(button,gux-button)){display:flex;flex-direction:row;gap:var(--gse-ui-modal-buttonBar-gap);align-content:flex-start;align-items:center}:host .gux-modal{position:fixed;inset:0;z-index:var(--gse-semantic-zIndex-modal);display:flex;align-items:center;justify-content:center;color:var(--gse-semantic-foreground-container-highEmphasis);background:var(--gse-ui-modal-shroudColor)}:host .gux-modal .gux-modal-container{position:relative;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;padding:var(--gse-ui-modal-padding) 0;background:var(--gse-ui-modal-backgroundColor);border:1px solid var(--gse-semantic-border-container-edges-default);border-radius:var(--gse-ui-modal-borderRadius);box-shadow:var(--gse-ui-modal-boxShadow)}:host .gux-modal .gux-modal-container.gux-small{width:var(--gse-ui-modal-small-width);max-height:min(368px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-medium{width:var(--gse-ui-modal-medium-width);max-height:min(640px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-large{width:var(--gse-ui-modal-large-width);max-height:min(640px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-dynamic{max-width:calc(100vw - 48px);max-height:calc(100vh - 48px)}:host .gux-modal .gux-modal-container.gux-dynamic .gux-modal-content{max-height:none}:host .gux-modal .gux-modal-container .gux-modal-header{padding:0 var(--gse-ui-modal-padding);margin:0;font-family:var(--gse-ui-modal-heading-fontFamily);font-size:var(--gse-ui-modal-heading-fontSize);font-weight:var(--gse-ui-modal-heading-fontWeight);line-height:var(--gse-ui-modal-heading-fontFamily);color:var(--gse-ui-modal-headerColor);font-family:var(--gse-semantic-heading-xl-bold-fontFamily), var(--gse-semantic-theme-fontFamily-headings), sans-serif;font-size:var(--gse-semantic-heading-xl-bold-fontSize);line-height:var(--gse-semantic-heading-xl-bold-lineHeight);font-weight:var(--gse-semantic-heading-xl-bold-fontWeight)}:host .gux-modal .gux-modal-container .gux-modal-content{max-height:432px;padding:0 var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap);margin-bottom:var(--gse-ui-modal-gap);overflow-y:auto}:host .gux-modal .gux-modal-container .gux-modal-content.gux-no-buttons{margin-bottom:0}:host .gux-modal .gux-modal-container .gux-button-footer{display:flex;justify-content:space-between;padding:0 var(--gse-ui-modal-padding)}@media (max-width: 416px){:host .gux-modal .gux-modal-container.gux-small,:host .gux-modal .gux-modal-container.gux-medium,:host .gux-modal .gux-modal-container.gux-large{width:100%;height:100%}}";export{d as gux_modal_legacy}
1
+ import{r as a,c as e,h as o,g as t}from"./p-cf74fd3d.js";import{r as i}from"./p-0934300e.js";import{t as n}from"./p-989599b2.js";const d=class{constructor(o){a(this,o),this.guxdismiss=e(this,"guxdismiss",7),this.size="dynamic",this.trapFocus=!0}handleKeyEvent(a){"Escape"===a.key&&this.onDismissHandler(a)}connectedCallback(){this.triggerElement=document.activeElement}componentWillLoad(){n(this.root,{variant:`${this.size}-${this.trapFocus?"trapfocuson":"trapfocusoff"}`})}componentDidLoad(){var a,e,o;const t=this.getInitialFocusElement();t?null===(a=t.focus)||void 0===a||a.call(t):this.dismissButton&&(null===(o=(e=this.dismissButton).focus)||void 0===o||o.call(e))}render(){const a=this.hasModalTitleSlot(),e=this.hasFooterButtons(),t=i();return o("div",{key:"eb19b6f4d5e706e5f631af65788790b4b6a28988",class:"gux-modal",role:"dialog","aria-modal":"true","aria-labelledby":a?t:null},o("div",{key:"e87022164421cddbfe8b27a38b8e239e14033b23",class:`gux-modal-container gux-${this.size}`},this.renderModalTrapFocusEl(),a&&o("h1",{key:"b5cd2c9a126417ef21c94e860643f66d5dcc87e9",class:"gux-modal-header",id:t},o("slot",{key:"770edea87c19561922dd3f8431c091e67712ebf1",name:"title"})),o("gux-dismiss-button",{key:"3a976273e3565189fc9c23a28d86d77da6782172",onClick:this.onDismissHandler.bind(this),ref:a=>this.dismissButton=a}),o("div",{key:"63f5ff17b14028cf92dcd8abad21ba8c44909d86",class:{"gux-modal-content":!0,"gux-no-buttons":!e}},o("p",{key:"dcac66f03f3c1c0bf8aa5f2ac47de7985654d5d4"},o("slot",{key:"0d458479ea3a41f540569229df9ad362b49fbd6c",name:"content"}))),e&&o("div",{key:"bc59458c481d65841cec791c1d49f6ebfdf6da2c",class:"gux-button-footer"},o("div",{key:"cc598c263f762d22574b6c36e0a6c64e708ca265",class:"gux-left-align-buttons"},o("slot",{key:"c0f5c6b565059278216be874d0f8b1801e6141eb",name:"left-align-buttons"})),o("div",{key:"a7908faf1ab3801ea531a3429ee4c4f3a3be0b95",class:"gux-right-align-buttons"},o("slot",{key:"3a63cdb61c930d575b8673dd4fbef51c538de1af",name:"right-align-buttons"}))),this.renderModalTrapFocusEl()))}renderModalTrapFocusEl(){if(this.trapFocus)return o("span",{onFocus:()=>this.dismissButton.focus(),tabindex:"0"})}getInitialFocusElement(){return this.initialFocus?this.root.querySelector(this.initialFocus):void 0}hasModalTitleSlot(){return Boolean(this.root.querySelector('[slot="title"]'))}hasFooterButtons(){return Boolean(this.root.querySelector('[slot="left-align-buttons"]'))||Boolean(this.root.querySelector('[slot="right-align-buttons"]'))}onDismissHandler(a){var e;a.stopPropagation(),this.guxdismiss.emit().defaultPrevented||(this.root.remove(),null===(e=this.triggerElement)||void 0===e||e.focus())}get root(){return t(this)}};d.style="::slotted(button:active:enabled){color:var(--gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}slot[name=left-align-buttons]::slotted(:not(button,gux-button)){display:flex;flex-direction:row;gap:var(--gse-ui-modal-buttonBar-gap);align-content:flex-start;align-items:center}:host .gux-modal{position:fixed;inset:0;z-index:var(--gse-semantic-zIndex-modal);display:flex;align-items:center;justify-content:center;color:var(--gse-semantic-foreground-container-highEmphasis);background:var(--gse-ui-modal-shroudColor)}:host .gux-modal .gux-modal-container{position:relative;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;padding:var(--gse-ui-modal-padding) 0;background:var(--gse-ui-modal-backgroundColor);border:1px solid var(--gse-semantic-border-container-edges-default);border-radius:var(--gse-ui-modal-borderRadius);box-shadow:var(--gse-ui-modal-boxShadow)}:host .gux-modal .gux-modal-container.gux-small{width:var(--gse-ui-modal-small-width);max-height:min(368px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-medium{width:var(--gse-ui-modal-medium-width);max-height:min(640px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-large{width:var(--gse-ui-modal-large-width);max-height:min(640px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-dynamic{max-width:calc(100vw - 48px);max-height:calc(100vh - 48px)}:host .gux-modal .gux-modal-container.gux-dynamic .gux-modal-content{max-height:none}:host .gux-modal .gux-modal-container .gux-modal-header{padding:0 var(--gse-ui-modal-padding);margin:0;font-family:var(--gse-ui-modal-heading-fontFamily);font-size:var(--gse-ui-modal-heading-fontSize);font-weight:var(--gse-ui-modal-heading-fontWeight);line-height:var(--gse-ui-modal-heading-fontFamily);color:var(--gse-ui-modal-headerColor);font-family:var(--gse-semantic-heading-xl-bold-fontFamily), var(--gse-semantic-theme-fontFamily-headings), sans-serif;font-size:var(--gse-semantic-heading-xl-bold-fontSize);line-height:var(--gse-semantic-heading-xl-bold-lineHeight);font-weight:var(--gse-semantic-heading-xl-bold-fontWeight)}:host .gux-modal .gux-modal-container .gux-modal-content{max-height:432px;padding:0 var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap);margin-bottom:var(--gse-ui-modal-gap);overflow-y:auto}:host .gux-modal .gux-modal-container .gux-modal-content.gux-no-buttons{margin-bottom:0}:host .gux-modal .gux-modal-container .gux-button-footer{display:flex;justify-content:space-between;padding:0 var(--gse-ui-modal-padding)}@media (max-width: 416px){:host .gux-modal .gux-modal-container.gux-small,:host .gux-modal .gux-modal-container.gux-medium,:host .gux-modal .gux-modal-container.gux-large{width:100%;height:100%}}";export{d as gux_modal_legacy}
@@ -1 +1 @@
1
- import{a as e,r,h as a,g as l}from"./p-cf74fd3d.js";import{t as o}from"./p-ce4a44ef.js";import{l as s}from"./p-8eaf8caf.js";const t=["fa/arrow-left-to-line-solid","fa/arrow-right-to-line-solid"],u={"8x8":"custom/8x8","8x8-alt":"custom/8x8-solid",add:"fa/plus-regular","add-circle":"fa/circle-plus-regular",agent:"fa/head-side-headphones-regular","agent-circle":"custom/circle-head-side-headphones-regular","agent-group":"fa/people-group-regular","alert-info":"fa/circle-info-regular","alert-success":"deprecated/fa/circle-check-regular","alert-warning-octogon":"fa/hexagon-exclamation-regular","alert-warning-triangle":"fa/triangle-exclamation-regular",android:"fa/android","app-chart":"fa/square-poll-vertical-regular","app-generic":"fa/browser-regular","app-layout":"fa/table-layout-regular","app-table":"fa/table-regular",apple:"fa/apple",archive:"fa/box-archive-regular","arrow-down":"fa/arrow-down-regular","arrow-down-left":"fa/arrow-down-left-regular","arrow-down-right":"fa/arrow-down-right-regular","arrow-left":"fa/arrow-left-regular","arrow-right":"fa/arrow-right-regular","arrow-solid-down":"fa/caret-down-solid","arrow-solid-left":"fa/caret-left-solid","arrow-solid-right":"fa/caret-right-solid","arrow-solid-up":"fa/caret-up-solid","arrow-up":"fa/arrow-up-regular","arrow-up-left":"fa/arrow-up-left-regular","arrow-up-right":"fa/arrow-up-right-regular",at:"fa/at-regular",attachment:"fa/paperclip-regular",backspace:"fa/delete-left-regular","badge-amount":"fa/circle-0-solid","badge-check":"fa/circle-check-solid","badge-edit":"fa/pen-circle-regular","badge-file":"deprecated/badge-file","badge-pause":"fa/circle-pause-solid","badge-x":"fa/circle-xmark-solid","ban-outline":"deprecated/fa/ban-regular",bell:"fa/bell-regular",bolt:"fa/bolt-regular",bot:"fa/robot-regular",branch:"fa/code-branch-regular",bug:"fa/bug-regular",bus:"fa/bus-simple-regular",calendar:"fa/calendar-regular","calendar-add":"fa/calendar-plus-regular","calendar-clock":"fa/calendar-clock-regular",campaign:"fa/bullhorn-regular",certificate:"fa/file-certificate-regular",chat:"fa/message-lines-regular","chat-bell":"custom/message-bell-regular","chat-close":"fa/message-xmark-regular","chat-disable":"fa/message-slash-regular","chat-multi":"fa/messages-regular","chat-notification-score":"custom/message-bell-regular",checkbox:"fa/square-regular","checkbox-active":"fa/square-check-solid","checkbox-partial":"fa/square-minus-regular",checkmark:"custom/check-small-regular","chevron-double-down":"fa/chevrons-down-regular","chevron-double-left":"fa/chevrons-left-regular","chevron-double-right":"fa/chevrons-right-regular","chevron-double-up":"fa/chevrons-up-regular","chevron-left":"fa/chevron-left-regular","chevron-right":"fa/chevron-right-regular","chevron-small-down":"custom/chevron-down-small-regular","chevron-small-left":"custom/chevron-left-small-regular","chevron-small-right":"custom/chevron-right-small-regular","chevron-small-up":"custom/chevron-up-small-regular",chrome:"fa/chrome","cjv-badge-file":"fa/file-regular","cjv-calendar-clock":"fa/calendar-clock-regular","cjv-custom-default":"deprecated/cjv-custom-default","cjv-custom-event":"fa/circle-star-solid","cjv-custom-session":"custom/rectangules-arrow-left-to-right-regular","cjv-default-event":"fa/circle-star-solid","cjv-delivery":"fa/truck-regular","cjv-finance-invoice":"fa/file-invoice-dollar-regular","cjv-form-abandoned":"fa/file-circle-xmark-regular","cjv-form-submitted":"custom/file-arrow-up-regular","cjv-generic-application":"fa/file-user-regular","cjv-offer-closed":"fa/circle-xmark-solid","cjv-offer-ignored":"fa/subtract-circle-solid","cjv-offer-offered":"fa/circle-chevron-right-solid","cjv-offer-opened":"fa/badge-check-solid","cjv-outcome-achieved":"fa/circle-check-solid","cjv-page-view":"fa/circle-dot-regular","cjv-policy-contract":"fa/file-contract-regular","cjv-product-added":"fa/cart-circle-plus-regular","cjv-product-purchased":"fa/cart-circle-check-regular","cjv-product-removed":"fa/cart-circle-xmark-regular","cjv-search":"fa/magnifying-glass-regular","cjv-segment":"fa/chart-pie-simple-regular","cjv-segment-assigned":"fa/circle-quarter-regular","cjv-web-session":"fa/globe-regular","cjv-webchat-accepted":"fa/message-check-solid","cjv-webchat-error":"fa/message-xmark-solid","cjv-webchat-ignored":"fa/message-minus-solid","cjv-webchat-offered":"fa/message-arrow-up-right-solid","cjv-webchat-rejected":"fa/message-xmark-solid","cjv-webchat-requested":"fa/message-plus-solid","cjv-webchat-submitted":"fa/message-arrow-up-solid","cjv-webchat-timeout":"fa/timer-regular",clipboard:"fa/clipboard-regular","clipboard-error":"fa/clipboard-question-regular","clipboard-success":"fa/clipboard-check-regular",clock:"fa/clock-regular","clock-outline":"fa/clock-regular",clone:"fa/clone-regular",close:"fa/xmark-large-regular","close-circle":"deprecated/fa/circle-xmark-regular",cloud:"fa/cloud-regular","cloud-outline":"fa/cloud-regular",coaching:"fa/whistle-regular",cobrowse:"deprecated/cobrowse",collapse:"fa/arrow-down-left-and-arrow-up-right-to-center-regular",comments:"fa/message-lines-regular","comments-disable":"fa/message-slash-regular",configuration:"fa/block-brick-regular","control-end":"fa/forward-fast-regular","control-pause":"fa/pause-regular","control-play":"fa/play-regular","control-skip-left":"fa/backward-regular","control-skip-right":"fa/forward-regular","control-slide-back":"fa/backward-step-regular","control-slide-forward":"fa/forward-step-regular","control-start":"fa/backward-fast-regular","control-stop":"fa/stop-regular",copy:"fa/copy-regular","custom/add-column-after":"custom/table-column-plus-right-regular","custom/add-column-before":"custom/table-column-plus-left-regular","custom/add-row-after":"custom/table-row-plus-bottom-regular","custom/add-row-before":"custom/table-row-plus-top-regular","custom/binoculars-slash-regular":"custom/regular-binoculars-slash","custom/carousel":"custom/rectangle-carousel-regular","custom/clipboard-list-slash-regular":"custom/regular-clipboard-list-slash","custom/co-browse":"custom/screen-monitor-regular","custom/delete-column":"custom/table-column-xmark-regular","custom/delete-row":"custom/table-row-xmark-regular","custom/delete-table":"custom/table-xmark-regular","custom/file-pen-question":"custom/file-pen-question-regular","custom/filter-notification":"custom/filter-dot-regular","custom/font-regular-highlight":"custom/font-underline-regular","custom/one-button":"custom/mobiles-one-button-regular","custom/person-running":"fa/person-running-solid","custom/quick-reply":"custom/circle-buttons-regular","custom/three-button":"custom/mobile-three-button-regular","custom/wrap-text-inline":"custom/wrap-text-inline-regular","custom/wrap-text-tight":"custom/wrap-text-tight-regular","custom/wrap-text-top-bottom":"custom/wrap-text-top-bottom-regular","customer-journey":"fa/map-location-dot-regular",cut:"fa/scissors-regular",dash:"fa/gauge-simple-high-regular",delete:"fa/trash-regular","device-camera":"fa/camera-regular","device-cellphone":"fa/mobile-regular","device-headphones":"fa/headphones-regular","device-laptop":"fa/laptop-regular","device-pc":"deprecated/device-pc","device-server":"fa/server-regular","device-tablet":"fa/tablet-regular",download:"fa/arrow-down-to-line-regular",edge:"fa/edge-legacy",edit:"fa/pen-regular","email-notification-score":"fa/envelope-dot-regular",expand:"fa/arrow-up-right-and-arrow-down-left-from-center-regular",export:"fa/arrow-up-from-line-regular","external-link":"fa/arrow-up-right-from-square-regular","fa/00-solid":"fa/00-regular","fa/arrows-rotate-solid":"fa/arrows-rotate-regular","fa/ban-regular":"deprecated/fa/ban-regular","fa/check-solid":"custom/check-small-regular","fa/circle-check-regular":"deprecated/fa/circle-check-regular","fa/circle-xmark-regular":"deprecated/fa/circle-xmark-regular","fa/clock-outline":"fa/clock-regular","fa/comment-dots-regular":"fa/message-dots-regular","fa/comments-regular":"fa/messages-regular","fa/diagram-project-gear-regular":"fa/regular-diagram-project-gear","fa/eye-regular":"deprecated/fa/eye-regular","fa/eye-slash-regular":"deprecated/fa/eye-slash-regular","fa/life-ring-regular":"deprecated/fa/life-ring-regular","fa/link-horizontal-slash-regular":"fa/link-slash-regular","fa/link-horizontal-solid":"fa/link-regular","fa/list-radio-clean-regular":"fa/list-ul-regular","fa/list-radio-regular":"fa/list-ul-regular","fa/list-regular":"fa/list-ul-regular","fa/rectangle-list-regular":"fa/square-list-regular","fa/reply-regular":"custom/reply-regular","fa/right-to-bracket-regular":"fa/arrow-right-to-bracket-regular","fa/share-regular":"custom/share-regular","fa/volume-regular":"deprecated/fa/volume-regular","face-empathy":"deprecated/face-empathy","face-happy":"fa/face-smile-regular","face-happy-solid":"fa/face-smile-solid","face-neutral":"fa/face-meh-regular","face-neutral-solid":"fa/face-meh-solid","face-sad":"fa/face-frown-regular","face-sad-solid":"fa/face-frown-solid",facebook:"fa/facebook","facebook-messenger":"fa/facebook-messenger",fax:"fa/fax-regular",file:"fa/file-regular","file-all":"fa/files-regular","file-audio":"deprecated/fa/volume-regular","file-image-landscape":"fa/image-regular","file-image-portrait":"fa/image-portrait-regular","file-pdf":"fa/file-pdf-regular","file-preview":"fa/file-magnifying-glass-regular","file-report":"fa/file-chart-column-regular","file-text":"fa/file-lines-regular","file-video":"fa/video-regular",filter:"fa/filter-regular",fire:"fa/fire-regular",firefox:"fa/firefox",flag:"fa/flag-regular",folder:"fa/folder-regular","folder-add":"fa/folder-plus-regular","folder-open":"fa/folder-open-regular",follow:"fa/binoculars-regular",generic:"fa/shapes-regular",globe:"fa/earth-africa-regular","grab-horizontal":"fa/grip-solid","grab-vertical":"fa/grip-vertical-solid","graph-bar-horizontal":"fa/chart-bar-regular","graph-bar-vertical":"fa/chart-column-regular","graph-bubble":"fa/chart-scatter-bubble-regular","graph-chart":"fa/chart-area-regular","graph-line":"fa/chart-line-regular","graph-pie":"fa/chart-pie-regular","graph-spark":"custom/chart-line-spark-regular","group-standard":"custom/users-light",help:"fa/circle-question-regular",home:"fa/home-regular",hourglass:"fa/hourglass-half-regular",import:"fa/file-import-regular",inbox:"fa/inbox-regular",inspect:"deprecated/fa/eye-regular","inspect-disable":"deprecated/fa/eye-slash-regular",instagram:"fa/instagram","internet-explorer":"fa/internet-explorer",key:"fa/key-regular",lightbulb:"fa/lightbulb-regular","line-messenger":"fa/line",link:"fa/link-regular",linkedin:"fa/linkedin",linux:"fa/linux",lock:"fa/lock-regular","lock-hold":"custom/lock-keyholes-regular",logout:"fa/arrow-right-from-bracket-regular","low-bandwidth":"fa/wifi-slash-regular",lunch:"fa/utensils-regular",menu:"fa/bars-regular","menu-kebab-horizontal":"fa/ellipsis-regular","menu-kebab-vertical":"fa/ellipsis-vertical-regular","message-email":"fa/envelope-regular","message-email-outbound":"custom/envelope-arrow-up-right-regular","message-forward":"custom/share-regular","message-reply":"custom/reply-regular","message-reply-all":"custom/reply-all-regular",microphone:"fa/microphone-regular","microphone-disable":"fa/microphone-slash-regular","microphone-talking":"custom/microphone-line-on-regular",microsoft:"fa/microsoft","microsoft-teams":"custom/microsoft-teams",moon:"fa/moon-regular",music:"fa/music-regular",notes:"fa/memo-regular",notification:"fa/circle-solid",opera:"fa/opera","operator-pair":"custom/users-headset-regular",paint:"fa/fill-drip-regular",palette:"fa/palette-regular","parking-sign-regular":"fa/square-parking-regular",paste:"fa/paste-regular",people:"fa/people-pants-simple-regular",phone:"fa/phone-regular","phone-bell":"custom/phone-bell-regular","phone-call-directory":"deprecated/phone-call-directory","phone-call-history":"custom/phone-bars-regular","phone-callback":"custom/phone-arrow-left-regular","phone-close":"fa/phone-xmark-regular","phone-conference":"custom/phone-big-small-regular","phone-dialpad":"fa/grid-regular","phone-disable":"fa/phone-slash-regular","phone-forward":"fa/phone-arrow-right-regular","phone-hangup":"fa/phone-hangup-regular","phone-hold":"custom/phone-clock-regular","phone-inbound":"fa/phone-arrow-down-left-regular","phone-missed-call":"fa/phone-missed-regular","phone-notification-score":"custom/phone-star-regular","phone-outbound":"fa/phone-arrow-up-right-regular","phone-success":"custom/phone-check-regular","phone-voice":"custom/phone-high-volume-regular",pin:"fa/thumbtack-regular","pin-location":"fa/location-dot-regular",post:"fa/newspaper-regular","product-logo-beyond":"custom/genesys-beyond","product-logo-g":"custom/genesys","quote-left":"fa/quote-left-regular","quote-right":"fa/quote-right-regular",radio:"fa/circle-regular","radio-active":"fa/circle-dot-regular",rating:"fa/star-regular","rating-active":"fa/star-solid","rating-partial":"fa/star-sharp-half-stroke-regular",record:"fa/waveform-lines-regular",refresh:"fa/arrows-rotate-regular",reset:"fa/arrow-rotate-left-regular",resource:"fa/notebook-regular",retweet:"custom/arrows-retweet-regular","roster-chat":"fa/message-lines-regular","roster-chat-disable":"fa/message-slash-regular","roster-email":"fa/envelope-regular","roster-email-disable":"fa/regular-envelope-slash","roster-instagram":"fa/instagram","roster-instagram-disable":"custom/instagram-slash","roster-line":"fa/line","roster-line-disable":"custom/line-slash","roster-message":"fa/message-lines-regular","roster-message-disable":"fa/message-xmark-regular","roster-messenger":"fa/facebook-messenger","roster-messenger-disable":"custom/facebook-messenger-slash","roster-phone":"fa/phone-regular","roster-phone-disable":"fa/phone-slash-regular","roster-sms":"fa/message-dots-regular","roster-sms-disable":"fa/message-slash-regular","roster-twitter":"fa/twitter","roster-twitter-disable":"custom/twitter-slash","roster-wechat":"fa/weixin","roster-wechat-disable":"deprecated/roster-wechat-disable","roster-whatsapp":"fa/whatsapp","roster-whatsapp-disable":"fa/custon-whatsapp-slash",rss:"fa/square-rss-solid",run:"fa/person-running-solid",safari:"fa/safari",save:"fa/floppy-disk-regular","screen-share-regular":"custom/display-arrow-right-regular","screen-share-slash":"custom/display-arrow-right-slash-regular",scripter:"fa/scroll-regular",search:"fa/magnifying-glass-regular",send:"fa/paper-plane-top-regular",server:"fa/server-regular",settings:"fa/gear-regular",share:"fa/share-nodes-regular","shield-lock":"fa/shield-keyhole-regular","shield-outline":"fa/shield-check-regular","shield-solid":"fa/shield-check-solid",site:"fa/building-regular",skills:"fa/graduation-cap-regular",slideshare:"fa/slideshare",sms:"fa/message-dots-regular","sms-cancel":"fa/message-xmark-regular","sms-close":"fa/message-xmark-regular",stamp:"fa/stamp-regular",subtract:"fa/minus-regular","subtract-circle":"fa/subtract-circle-regular",sun:"fa/sun-bright-regular",tag:"fa/tag-regular","tag-add":"deprecated/tag-add","tag-remove":"deprecated/tag-remove",telegram:"fa/telegram",tenant:"fa/box-regular","thumbs-down":"fa/thumb-down-regular","thumbs-up":"fa/thumb-up-regular",timeline:"custom/arrow-turn-left-clock-regular","toolbar-apps":"custom/squares-big-small-regular","toolbar-apps-disable":"custom/squares-big-small-slash-regular","toolbar-assist":"deprecated/fa/life-ring-regular","toolbar-assist-disable":"custom/life-ring-slash-regular","toolbar-chat":"fa/message-regular","toolbar-chat-disable":"fa/message-slash-regular","toolbar-favorite":"deprecated/toolbar-favorite","toolbar-favourite":"fa/star-regular","toolbar-help":"fa/circle-question-regular","toolbar-inbox":"fa/inbox-regular","toolbar-interactions":"custom/user-talking-regular","toolbar-interactions-disable":"custom/user-talking-slash-regular","toolbar-notification":"fa/circle-solid","toolbar-phone":"fa/phone-regular","toolbar-phone-active-1":"custom/phone-low-volume-regular","toolbar-phone-active-2":"custom/phone-volume-regular","toolbar-phone-active-3":"custom/phone-high-volume-regular","toolbar-phone-disable":"fa/phone-slash-regular","toolbar-video":"fa/video-regular","toolbar-video-disable":"fa/video-slash-regular",trade:"fa/handshake-regular",transfer:"fa/arrow-right-arrow-left-regular",twitter:"fa/twitter",unknown:"fa/square-x-regular",unlink:"fa/link-slash-regular",unlock:"fa/unlock-regular",upload:"fa/upload-regular",user:"fa/user-regular","user-add":"fa/user-plus-regular","user-circle":"fa/circle-user-regular","user-contact-id":"fa/address-card-regular","user-directory":"fa/address-book-regular","user-group":"fa/users-regular","user-interactions":"custom/user-talking-regular","user-interactions-disable":"custom/user-talking-slash-regular",viber:"fa/viber",video:"fa/video-regular","video-disable":"fa/video-slash-regular","view-all":"fa/grid-4-regular","view-cells":"custom/columns-3-regular","view-grid":"fa/border-all-regular","view-list":"fa/square-list-regular","view-lists":"custom/columns-3-regular","view-roster":"fa/table-list-regular","view-stacked":"fa/table-rows-regular",voicemail:"fa/voicemail-regular","volume-disable":"fa/volume-slash-regular","volume-down":"fa/volume-low-regular","volume-none":"fa/volume-off-regular","volume-up":"deprecated/fa/volume-regular",web:"fa/globe-regular",webcam:"fa/camera-web-regular","webcam-disable":"fa/camera-web-slash-regular",wechat:"fa/weixin",whatsapp:"fa/whatsapp","window-actual-size":"fa/brackets-square-regular","window-contract":"fa/arrows-minimize-regular","window-drag-out":"fa/arrow-up-right-from-square-regular","window-expand":"fa/arrows-maximize-regular","window-fullscreen":"fa/arrows-maximize-regular","window-popout":"fa/square-arrow-up-right-regular",wordpress:"fa/wordpress",youtube:"fa/youtube","zoom-in":"fa/magnifying-glass-plus-regular","zoom-out":"fa/magnifying-glass-minus-regular"},i=Object.keys(u),c=new Map;function g(e){return t.includes(e)?`legacy/${e}`:i.includes(e)?u[e]:e}async function f(r){const a=function(e){return e.replace("/","-")}(r);if(c.has(a))return c.get(a);const l=async function(r){const a=await fetch(e(`./icons/${r}.svg`));if(200===a.status)return a.text();throw new Error(`[gux-icon] fetching failed for icon "${r}" with status "${a.statusText} (${a.status})".`)}(r).then((e=>e)).catch((e=>(setTimeout((()=>{throw e}),0),f("fa/square-x-regular"))));return c.set(a,l),l}const n=class{constructor(e){r(this,e),this.decorative=!1,this.screenreaderText="",this.size="inherit"}async prepIcon(e){if(e){const r=g(e);this.baseSvgHtml=await f(r),this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml)}}watchDecorative(e){this.validateProps(e,this.screenreaderText),this.baseSvgHtml&&(this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml))}watchScreenreaderText(e){this.validateProps(this.decorative,e),this.baseSvgHtml&&(this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml))}async componentWillLoad(){o(this.root,{variant:g(this.iconName)}),await this.prepIcon(this.iconName)}componentDidLoad(){this.validateProps(this.decorative,this.screenreaderText)}validateProps(e,r){this.root.isConnected&&(e||r||s(this.root,"No screenreader-text provided. Either provide a localized screenreader-text property or set `decorative` to true."))}getSvgWithAriaAttributes(e){const r=(new DOMParser).parseFromString(e,"image/svg+xml").firstChild;return r.setAttribute("role","img"),r.setAttribute("aria-hidden",this.decorative?String(this.decorative):"false"),this.screenreaderText?r.setAttribute("aria-label",this.screenreaderText):r.removeAttribute("aria-label"),r.outerHTML}render(){return this.svgHtml&&a("div",{key:"37b95450af12780188f187f008c2302312fbe27f",class:"gux-icon-container",innerHTML:this.svgHtml})}static get assetsDirs(){return["icons"]}get root(){return l(this)}static get watchers(){return{iconName:["prepIcon"],decorative:["watchDecorative"],screenreaderText:["watchScreenreaderText"]}}};n.style=":host{display:inline-flex;inline-size:1em;block-size:1em}:host([size=small]){inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}:host([size=medium]){inline-size:var(--gse-ui-icon-medium-size);block-size:var(--gse-ui-icon-medium-size)}:host([size=large]){inline-size:var(--gse-ui-icon-large-size);block-size:var(--gse-ui-icon-large-size)}.gux-icon-container{display:flex;align-items:center;justify-content:center;inline-size:100%}.gux-icon-container svg{inline-size:100%;max-inline-size:100%;block-size:100%;max-block-size:100%;fill:currentcolor}";export{n as gux_icon}
1
+ import{a as e,r,h as a,g as l}from"./p-cf74fd3d.js";import{t as o}from"./p-989599b2.js";import{l as s}from"./p-8eaf8caf.js";const t=["fa/arrow-left-to-line-solid","fa/arrow-right-to-line-solid"],u={"8x8":"custom/8x8","8x8-alt":"custom/8x8-solid",add:"fa/plus-regular","add-circle":"fa/circle-plus-regular",agent:"fa/head-side-headphones-regular","agent-circle":"custom/circle-head-side-headphones-regular","agent-group":"fa/people-group-regular","alert-info":"fa/circle-info-regular","alert-success":"deprecated/fa/circle-check-regular","alert-warning-octogon":"fa/hexagon-exclamation-regular","alert-warning-triangle":"fa/triangle-exclamation-regular",android:"fa/android","app-chart":"fa/square-poll-vertical-regular","app-generic":"fa/browser-regular","app-layout":"fa/table-layout-regular","app-table":"fa/table-regular",apple:"fa/apple",archive:"fa/box-archive-regular","arrow-down":"fa/arrow-down-regular","arrow-down-left":"fa/arrow-down-left-regular","arrow-down-right":"fa/arrow-down-right-regular","arrow-left":"fa/arrow-left-regular","arrow-right":"fa/arrow-right-regular","arrow-solid-down":"fa/caret-down-solid","arrow-solid-left":"fa/caret-left-solid","arrow-solid-right":"fa/caret-right-solid","arrow-solid-up":"fa/caret-up-solid","arrow-up":"fa/arrow-up-regular","arrow-up-left":"fa/arrow-up-left-regular","arrow-up-right":"fa/arrow-up-right-regular",at:"fa/at-regular",attachment:"fa/paperclip-regular",backspace:"fa/delete-left-regular","badge-amount":"fa/circle-0-solid","badge-check":"fa/circle-check-solid","badge-edit":"fa/pen-circle-regular","badge-file":"deprecated/badge-file","badge-pause":"fa/circle-pause-solid","badge-x":"fa/circle-xmark-solid","ban-outline":"deprecated/fa/ban-regular",bell:"fa/bell-regular",bolt:"fa/bolt-regular",bot:"fa/robot-regular",branch:"fa/code-branch-regular",bug:"fa/bug-regular",bus:"fa/bus-simple-regular",calendar:"fa/calendar-regular","calendar-add":"fa/calendar-plus-regular","calendar-clock":"fa/calendar-clock-regular",campaign:"fa/bullhorn-regular",certificate:"fa/file-certificate-regular",chat:"fa/message-lines-regular","chat-bell":"custom/message-bell-regular","chat-close":"fa/message-xmark-regular","chat-disable":"fa/message-slash-regular","chat-multi":"fa/messages-regular","chat-notification-score":"custom/message-bell-regular",checkbox:"fa/square-regular","checkbox-active":"fa/square-check-solid","checkbox-partial":"fa/square-minus-regular",checkmark:"custom/check-small-regular","chevron-double-down":"fa/chevrons-down-regular","chevron-double-left":"fa/chevrons-left-regular","chevron-double-right":"fa/chevrons-right-regular","chevron-double-up":"fa/chevrons-up-regular","chevron-left":"fa/chevron-left-regular","chevron-right":"fa/chevron-right-regular","chevron-small-down":"custom/chevron-down-small-regular","chevron-small-left":"custom/chevron-left-small-regular","chevron-small-right":"custom/chevron-right-small-regular","chevron-small-up":"custom/chevron-up-small-regular",chrome:"fa/chrome","cjv-badge-file":"fa/file-regular","cjv-calendar-clock":"fa/calendar-clock-regular","cjv-custom-default":"deprecated/cjv-custom-default","cjv-custom-event":"fa/circle-star-solid","cjv-custom-session":"custom/rectangules-arrow-left-to-right-regular","cjv-default-event":"fa/circle-star-solid","cjv-delivery":"fa/truck-regular","cjv-finance-invoice":"fa/file-invoice-dollar-regular","cjv-form-abandoned":"fa/file-circle-xmark-regular","cjv-form-submitted":"custom/file-arrow-up-regular","cjv-generic-application":"fa/file-user-regular","cjv-offer-closed":"fa/circle-xmark-solid","cjv-offer-ignored":"fa/subtract-circle-solid","cjv-offer-offered":"fa/circle-chevron-right-solid","cjv-offer-opened":"fa/badge-check-solid","cjv-outcome-achieved":"fa/circle-check-solid","cjv-page-view":"fa/circle-dot-regular","cjv-policy-contract":"fa/file-contract-regular","cjv-product-added":"fa/cart-circle-plus-regular","cjv-product-purchased":"fa/cart-circle-check-regular","cjv-product-removed":"fa/cart-circle-xmark-regular","cjv-search":"fa/magnifying-glass-regular","cjv-segment":"fa/chart-pie-simple-regular","cjv-segment-assigned":"fa/circle-quarter-regular","cjv-web-session":"fa/globe-regular","cjv-webchat-accepted":"fa/message-check-solid","cjv-webchat-error":"fa/message-xmark-solid","cjv-webchat-ignored":"fa/message-minus-solid","cjv-webchat-offered":"fa/message-arrow-up-right-solid","cjv-webchat-rejected":"fa/message-xmark-solid","cjv-webchat-requested":"fa/message-plus-solid","cjv-webchat-submitted":"fa/message-arrow-up-solid","cjv-webchat-timeout":"fa/timer-regular",clipboard:"fa/clipboard-regular","clipboard-error":"fa/clipboard-question-regular","clipboard-success":"fa/clipboard-check-regular",clock:"fa/clock-regular","clock-outline":"fa/clock-regular",clone:"fa/clone-regular",close:"fa/xmark-large-regular","close-circle":"deprecated/fa/circle-xmark-regular",cloud:"fa/cloud-regular","cloud-outline":"fa/cloud-regular",coaching:"fa/whistle-regular",cobrowse:"deprecated/cobrowse",collapse:"fa/arrow-down-left-and-arrow-up-right-to-center-regular",comments:"fa/message-lines-regular","comments-disable":"fa/message-slash-regular",configuration:"fa/block-brick-regular","control-end":"fa/forward-fast-regular","control-pause":"fa/pause-regular","control-play":"fa/play-regular","control-skip-left":"fa/backward-regular","control-skip-right":"fa/forward-regular","control-slide-back":"fa/backward-step-regular","control-slide-forward":"fa/forward-step-regular","control-start":"fa/backward-fast-regular","control-stop":"fa/stop-regular",copy:"fa/copy-regular","custom/add-column-after":"custom/table-column-plus-right-regular","custom/add-column-before":"custom/table-column-plus-left-regular","custom/add-row-after":"custom/table-row-plus-bottom-regular","custom/add-row-before":"custom/table-row-plus-top-regular","custom/binoculars-slash-regular":"custom/regular-binoculars-slash","custom/carousel":"custom/rectangle-carousel-regular","custom/clipboard-list-slash-regular":"custom/regular-clipboard-list-slash","custom/co-browse":"custom/screen-monitor-regular","custom/delete-column":"custom/table-column-xmark-regular","custom/delete-row":"custom/table-row-xmark-regular","custom/delete-table":"custom/table-xmark-regular","custom/file-pen-question":"custom/file-pen-question-regular","custom/filter-notification":"custom/filter-dot-regular","custom/font-regular-highlight":"custom/font-underline-regular","custom/one-button":"custom/mobiles-one-button-regular","custom/person-running":"fa/person-running-solid","custom/quick-reply":"custom/circle-buttons-regular","custom/three-button":"custom/mobile-three-button-regular","custom/wrap-text-inline":"custom/wrap-text-inline-regular","custom/wrap-text-tight":"custom/wrap-text-tight-regular","custom/wrap-text-top-bottom":"custom/wrap-text-top-bottom-regular","customer-journey":"fa/map-location-dot-regular",cut:"fa/scissors-regular",dash:"fa/gauge-simple-high-regular",delete:"fa/trash-regular","device-camera":"fa/camera-regular","device-cellphone":"fa/mobile-regular","device-headphones":"fa/headphones-regular","device-laptop":"fa/laptop-regular","device-pc":"deprecated/device-pc","device-server":"fa/server-regular","device-tablet":"fa/tablet-regular",download:"fa/arrow-down-to-line-regular",edge:"fa/edge-legacy",edit:"fa/pen-regular","email-notification-score":"fa/envelope-dot-regular",expand:"fa/arrow-up-right-and-arrow-down-left-from-center-regular",export:"fa/arrow-up-from-line-regular","external-link":"fa/arrow-up-right-from-square-regular","fa/00-solid":"fa/00-regular","fa/arrows-rotate-solid":"fa/arrows-rotate-regular","fa/ban-regular":"deprecated/fa/ban-regular","fa/check-solid":"custom/check-small-regular","fa/circle-check-regular":"deprecated/fa/circle-check-regular","fa/circle-xmark-regular":"deprecated/fa/circle-xmark-regular","fa/clock-outline":"fa/clock-regular","fa/comment-dots-regular":"fa/message-dots-regular","fa/comments-regular":"fa/messages-regular","fa/diagram-project-gear-regular":"fa/regular-diagram-project-gear","fa/eye-regular":"deprecated/fa/eye-regular","fa/eye-slash-regular":"deprecated/fa/eye-slash-regular","fa/life-ring-regular":"deprecated/fa/life-ring-regular","fa/link-horizontal-slash-regular":"fa/link-slash-regular","fa/link-horizontal-solid":"fa/link-regular","fa/list-radio-clean-regular":"fa/list-ul-regular","fa/list-radio-regular":"fa/list-ul-regular","fa/list-regular":"fa/list-ul-regular","fa/rectangle-list-regular":"fa/square-list-regular","fa/reply-regular":"custom/reply-regular","fa/right-to-bracket-regular":"fa/arrow-right-to-bracket-regular","fa/share-regular":"custom/share-regular","fa/volume-regular":"deprecated/fa/volume-regular","face-empathy":"deprecated/face-empathy","face-happy":"fa/face-smile-regular","face-happy-solid":"fa/face-smile-solid","face-neutral":"fa/face-meh-regular","face-neutral-solid":"fa/face-meh-solid","face-sad":"fa/face-frown-regular","face-sad-solid":"fa/face-frown-solid",facebook:"fa/facebook","facebook-messenger":"fa/facebook-messenger",fax:"fa/fax-regular",file:"fa/file-regular","file-all":"fa/files-regular","file-audio":"deprecated/fa/volume-regular","file-image-landscape":"fa/image-regular","file-image-portrait":"fa/image-portrait-regular","file-pdf":"fa/file-pdf-regular","file-preview":"fa/file-magnifying-glass-regular","file-report":"fa/file-chart-column-regular","file-text":"fa/file-lines-regular","file-video":"fa/video-regular",filter:"fa/filter-regular",fire:"fa/fire-regular",firefox:"fa/firefox",flag:"fa/flag-regular",folder:"fa/folder-regular","folder-add":"fa/folder-plus-regular","folder-open":"fa/folder-open-regular",follow:"fa/binoculars-regular",generic:"fa/shapes-regular",globe:"fa/earth-africa-regular","grab-horizontal":"fa/grip-solid","grab-vertical":"fa/grip-vertical-solid","graph-bar-horizontal":"fa/chart-bar-regular","graph-bar-vertical":"fa/chart-column-regular","graph-bubble":"fa/chart-scatter-bubble-regular","graph-chart":"fa/chart-area-regular","graph-line":"fa/chart-line-regular","graph-pie":"fa/chart-pie-regular","graph-spark":"custom/chart-line-spark-regular","group-standard":"custom/users-light",help:"fa/circle-question-regular",home:"fa/home-regular",hourglass:"fa/hourglass-half-regular",import:"fa/file-import-regular",inbox:"fa/inbox-regular",inspect:"deprecated/fa/eye-regular","inspect-disable":"deprecated/fa/eye-slash-regular",instagram:"fa/instagram","internet-explorer":"fa/internet-explorer",key:"fa/key-regular",lightbulb:"fa/lightbulb-regular","line-messenger":"fa/line",link:"fa/link-regular",linkedin:"fa/linkedin",linux:"fa/linux",lock:"fa/lock-regular","lock-hold":"custom/lock-keyholes-regular",logout:"fa/arrow-right-from-bracket-regular","low-bandwidth":"fa/wifi-slash-regular",lunch:"fa/utensils-regular",menu:"fa/bars-regular","menu-kebab-horizontal":"fa/ellipsis-regular","menu-kebab-vertical":"fa/ellipsis-vertical-regular","message-email":"fa/envelope-regular","message-email-outbound":"custom/envelope-arrow-up-right-regular","message-forward":"custom/share-regular","message-reply":"custom/reply-regular","message-reply-all":"custom/reply-all-regular",microphone:"fa/microphone-regular","microphone-disable":"fa/microphone-slash-regular","microphone-talking":"custom/microphone-line-on-regular",microsoft:"fa/microsoft","microsoft-teams":"custom/microsoft-teams",moon:"fa/moon-regular",music:"fa/music-regular",notes:"fa/memo-regular",notification:"fa/circle-solid",opera:"fa/opera","operator-pair":"custom/users-headset-regular",paint:"fa/fill-drip-regular",palette:"fa/palette-regular","parking-sign-regular":"fa/square-parking-regular",paste:"fa/paste-regular",people:"fa/people-pants-simple-regular",phone:"fa/phone-regular","phone-bell":"custom/phone-bell-regular","phone-call-directory":"deprecated/phone-call-directory","phone-call-history":"custom/phone-bars-regular","phone-callback":"custom/phone-arrow-left-regular","phone-close":"fa/phone-xmark-regular","phone-conference":"custom/phone-big-small-regular","phone-dialpad":"fa/grid-regular","phone-disable":"fa/phone-slash-regular","phone-forward":"fa/phone-arrow-right-regular","phone-hangup":"fa/phone-hangup-regular","phone-hold":"custom/phone-clock-regular","phone-inbound":"fa/phone-arrow-down-left-regular","phone-missed-call":"fa/phone-missed-regular","phone-notification-score":"custom/phone-star-regular","phone-outbound":"fa/phone-arrow-up-right-regular","phone-success":"custom/phone-check-regular","phone-voice":"custom/phone-high-volume-regular",pin:"fa/thumbtack-regular","pin-location":"fa/location-dot-regular",post:"fa/newspaper-regular","product-logo-beyond":"custom/genesys-beyond","product-logo-g":"custom/genesys","quote-left":"fa/quote-left-regular","quote-right":"fa/quote-right-regular",radio:"fa/circle-regular","radio-active":"fa/circle-dot-regular",rating:"fa/star-regular","rating-active":"fa/star-solid","rating-partial":"fa/star-sharp-half-stroke-regular",record:"fa/waveform-lines-regular",refresh:"fa/arrows-rotate-regular",reset:"fa/arrow-rotate-left-regular",resource:"fa/notebook-regular",retweet:"custom/arrows-retweet-regular","roster-chat":"fa/message-lines-regular","roster-chat-disable":"fa/message-slash-regular","roster-email":"fa/envelope-regular","roster-email-disable":"fa/regular-envelope-slash","roster-instagram":"fa/instagram","roster-instagram-disable":"custom/instagram-slash","roster-line":"fa/line","roster-line-disable":"custom/line-slash","roster-message":"fa/message-lines-regular","roster-message-disable":"fa/message-xmark-regular","roster-messenger":"fa/facebook-messenger","roster-messenger-disable":"custom/facebook-messenger-slash","roster-phone":"fa/phone-regular","roster-phone-disable":"fa/phone-slash-regular","roster-sms":"fa/message-dots-regular","roster-sms-disable":"fa/message-slash-regular","roster-twitter":"fa/twitter","roster-twitter-disable":"custom/twitter-slash","roster-wechat":"fa/weixin","roster-wechat-disable":"deprecated/roster-wechat-disable","roster-whatsapp":"fa/whatsapp","roster-whatsapp-disable":"fa/custon-whatsapp-slash",rss:"fa/square-rss-solid",run:"fa/person-running-solid",safari:"fa/safari",save:"fa/floppy-disk-regular","screen-share-regular":"custom/display-arrow-right-regular","screen-share-slash":"custom/display-arrow-right-slash-regular",scripter:"fa/scroll-regular",search:"fa/magnifying-glass-regular",send:"fa/paper-plane-top-regular",server:"fa/server-regular",settings:"fa/gear-regular",share:"fa/share-nodes-regular","shield-lock":"fa/shield-keyhole-regular","shield-outline":"fa/shield-check-regular","shield-solid":"fa/shield-check-solid",site:"fa/building-regular",skills:"fa/graduation-cap-regular",slideshare:"fa/slideshare",sms:"fa/message-dots-regular","sms-cancel":"fa/message-xmark-regular","sms-close":"fa/message-xmark-regular",stamp:"fa/stamp-regular",subtract:"fa/minus-regular","subtract-circle":"fa/subtract-circle-regular",sun:"fa/sun-bright-regular",tag:"fa/tag-regular","tag-add":"deprecated/tag-add","tag-remove":"deprecated/tag-remove",telegram:"fa/telegram",tenant:"fa/box-regular","thumbs-down":"fa/thumb-down-regular","thumbs-up":"fa/thumb-up-regular",timeline:"custom/arrow-turn-left-clock-regular","toolbar-apps":"custom/squares-big-small-regular","toolbar-apps-disable":"custom/squares-big-small-slash-regular","toolbar-assist":"deprecated/fa/life-ring-regular","toolbar-assist-disable":"custom/life-ring-slash-regular","toolbar-chat":"fa/message-regular","toolbar-chat-disable":"fa/message-slash-regular","toolbar-favorite":"deprecated/toolbar-favorite","toolbar-favourite":"fa/star-regular","toolbar-help":"fa/circle-question-regular","toolbar-inbox":"fa/inbox-regular","toolbar-interactions":"custom/user-talking-regular","toolbar-interactions-disable":"custom/user-talking-slash-regular","toolbar-notification":"fa/circle-solid","toolbar-phone":"fa/phone-regular","toolbar-phone-active-1":"custom/phone-low-volume-regular","toolbar-phone-active-2":"custom/phone-volume-regular","toolbar-phone-active-3":"custom/phone-high-volume-regular","toolbar-phone-disable":"fa/phone-slash-regular","toolbar-video":"fa/video-regular","toolbar-video-disable":"fa/video-slash-regular",trade:"fa/handshake-regular",transfer:"fa/arrow-right-arrow-left-regular",twitter:"fa/twitter",unknown:"fa/square-x-regular",unlink:"fa/link-slash-regular",unlock:"fa/unlock-regular",upload:"fa/upload-regular",user:"fa/user-regular","user-add":"fa/user-plus-regular","user-circle":"fa/circle-user-regular","user-contact-id":"fa/address-card-regular","user-directory":"fa/address-book-regular","user-group":"fa/users-regular","user-interactions":"custom/user-talking-regular","user-interactions-disable":"custom/user-talking-slash-regular",viber:"fa/viber",video:"fa/video-regular","video-disable":"fa/video-slash-regular","view-all":"fa/grid-4-regular","view-cells":"custom/columns-3-regular","view-grid":"fa/border-all-regular","view-list":"fa/square-list-regular","view-lists":"custom/columns-3-regular","view-roster":"fa/table-list-regular","view-stacked":"fa/table-rows-regular",voicemail:"fa/voicemail-regular","volume-disable":"fa/volume-slash-regular","volume-down":"fa/volume-low-regular","volume-none":"fa/volume-off-regular","volume-up":"deprecated/fa/volume-regular",web:"fa/globe-regular",webcam:"fa/camera-web-regular","webcam-disable":"fa/camera-web-slash-regular",wechat:"fa/weixin",whatsapp:"fa/whatsapp","window-actual-size":"fa/brackets-square-regular","window-contract":"fa/arrows-minimize-regular","window-drag-out":"fa/arrow-up-right-from-square-regular","window-expand":"fa/arrows-maximize-regular","window-fullscreen":"fa/arrows-maximize-regular","window-popout":"fa/square-arrow-up-right-regular",wordpress:"fa/wordpress",youtube:"fa/youtube","zoom-in":"fa/magnifying-glass-plus-regular","zoom-out":"fa/magnifying-glass-minus-regular"},i=Object.keys(u),c=new Map;function g(e){return t.includes(e)?`legacy/${e}`:i.includes(e)?u[e]:e}async function f(r){const a=function(e){return e.replace("/","-")}(r);if(c.has(a))return c.get(a);const l=async function(r){const a=await fetch(e(`./icons/${r}.svg`));if(200===a.status)return a.text();throw new Error(`[gux-icon] fetching failed for icon "${r}" with status "${a.statusText} (${a.status})".`)}(r).then((e=>e)).catch((e=>(setTimeout((()=>{throw e}),0),f("fa/square-x-regular"))));return c.set(a,l),l}const n=class{constructor(e){r(this,e),this.decorative=!1,this.screenreaderText="",this.size="inherit"}async prepIcon(e){if(e){const r=g(e);this.baseSvgHtml=await f(r),this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml)}}watchDecorative(e){this.validateProps(e,this.screenreaderText),this.baseSvgHtml&&(this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml))}watchScreenreaderText(e){this.validateProps(this.decorative,e),this.baseSvgHtml&&(this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml))}async componentWillLoad(){o(this.root,{variant:g(this.iconName)}),await this.prepIcon(this.iconName)}componentDidLoad(){this.validateProps(this.decorative,this.screenreaderText)}validateProps(e,r){this.root.isConnected&&(e||r||s(this.root,"No screenreader-text provided. Either provide a localized screenreader-text property or set `decorative` to true."))}getSvgWithAriaAttributes(e){const r=(new DOMParser).parseFromString(e,"image/svg+xml").firstChild;return r.setAttribute("role","img"),r.setAttribute("aria-hidden",this.decorative?String(this.decorative):"false"),this.screenreaderText?r.setAttribute("aria-label",this.screenreaderText):r.removeAttribute("aria-label"),r.outerHTML}render(){return this.svgHtml&&a("div",{key:"37b95450af12780188f187f008c2302312fbe27f",class:"gux-icon-container",innerHTML:this.svgHtml})}static get assetsDirs(){return["icons"]}get root(){return l(this)}static get watchers(){return{iconName:["prepIcon"],decorative:["watchDecorative"],screenreaderText:["watchScreenreaderText"]}}};n.style=":host{display:inline-flex;inline-size:1em;block-size:1em}:host([size=small]){inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}:host([size=medium]){inline-size:var(--gse-ui-icon-medium-size);block-size:var(--gse-ui-icon-medium-size)}:host([size=large]){inline-size:var(--gse-ui-icon-large-size);block-size:var(--gse-ui-icon-large-size)}.gux-icon-container{display:flex;align-items:center;justify-content:center;inline-size:100%}.gux-icon-container svg{inline-size:100%;max-inline-size:100%;block-size:100%;max-block-size:100%;fill:currentcolor}";export{n as gux_icon}
@@ -1 +1 @@
1
- import{r as t,c as e,h as i,g as s}from"./p-cf74fd3d.js";import{O as o}from"./p-f3d844c7.js";import{t as r}from"./p-ce4a44ef.js";import{b as h}from"./p-e5e644b3.js";import{t as a}from"./p-f01d2320.js";import{h as n}from"./p-b2e29026.js";import{w as l}from"./p-e97879b4.js";import{b as u}from"./p-cf0e7d3b.js";import{e as g}from"./p-ea5e1b2f.js";import"./p-4202e9f2.js";import"./p-43af726d.js";const c=class{constructor(i){t(this,i),this.noHighlightAction=e(this,"noHighlightAction",7),this.disabled=!1,this.isActive=!1,this.expanded=!1}onClickOutside(){this.expanded=!1}watchDisabled(t){t&&(this.expanded=!1)}handleKeydown(t){const e=g("gux-rich-highlight-list-item",t),i=t.composedPath();switch(t.key){case"Escape":this.expanded=!1,this.actionButton.focus();break;case"ArrowDown":case"Enter":i.includes(this.actionButton)&&(t.preventDefault(),this.expanded=!0,this.focusNoHighlightActionButton());break;case"Tab":if(t.shiftKey)return;e&&(this.expanded=!1)}}async componentWillLoad(){r(this.root),this.i18n=await h(this.root,a)}togglePopup(){this.expanded=!this.expanded,this.expanded?this.focusNoHighlightActionButton():this.actionButton.focus()}focusNoHighlightActionButton(){u((()=>{this.noHighlightActionButton.focus()}))}renderTooltip(){if(!this.disabled&&!this.expanded)return i("gux-tooltip-beta",null,i("div",{slot:"content"},this.i18n("textHighlight")))}renderPopup(){return i("div",{class:"gux-text-highlight-popup",slot:"popup"},this.renderNoHighlightAction(),this.renderTextHighlightColors())}renderNoHighlightAction(){return i("gux-button-slot",{accent:"tertiary"},i("button",{type:"button",ref:t=>this.noHighlightActionButton=t,onClick:()=>this.emitNoHighlightAction()},i("gux-truncate",{"max-lines":1},this.i18n("noHighlight"))))}onListClick(t){l("gux-rich-highlight-list-item",t,(()=>{this.expanded=!1,this.actionButton.focus()}))}renderTextHighlightColors(){return i("gux-rich-text-editor-list",{onClick:t=>this.onListClick(t)},i("slot",null))}emitNoHighlightAction(){this.noHighlightAction.emit(),this.expanded=!1,this.actionButton.focus()}renderTarget(){return i("gux-button-slot",{accent:"ghost","icon-only":!0,slot:"target"},i("button",{type:"button",ref:t=>this.actionButton=t,onClick:()=>this.togglePopup(),disabled:this.disabled||n(this.root),class:{"gux-is-pressed":this.isActive||this.expanded},"aria-haspopup":"true","aria-expanded":this.expanded.toString(),"aria-pressed":this.isActive.toString()},i("gux-icon",{size:"small","icon-name":"fa/highlighter-line-regular","screenreader-text":this.i18n("textHighlight")})),this.renderTooltip())}render(){return i("gux-popup",{key:"4c62359bc54074403adeebc73755df86b9d658f0",disabled:this.disabled,expanded:this.expanded,exceedTargetWidth:!0,placement:"bottom-start"},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return s(this)}static get watchers(){return{disabled:["watchDisabled"]}}};(function(t,e,i,s){var o,r=arguments.length,h=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(h=(r<3?o(h):r>3?o(e,i,h):o(e,i))||h);r>3&&h&&Object.defineProperty(e,i,h)})([o({triggerEvents:"mousedown"})],c.prototype,"onClickOutside",null),c.style=":host{display:block}.gux-text-highlight-popup{display:flex;flex-direction:column;gap:var(--gse-ui-rte-colorPalette-gap);inline-size:104px;padding:12px;margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}.gux-text-highlight-popup gux-rich-text-editor-list{display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--gse-ui-rte-colorPalette-gap);align-items:flex-start;justify-content:flex-start;padding:0}.gux-text-highlight-popup gux-button-slot{align-self:center;block-size:var(--gse-ui-rte-menuButton-height)}.gux-text-highlight-popup gux-button-slot button{block-size:var(--gse-ui-rte-menuButton-height)}gux-button-slot button.gux-is-pressed{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}";export{c as gux_rich_text_editor_action_text_highlight}
1
+ import{r as t,c as i,h as e,g as s}from"./p-cf74fd3d.js";import{O as o}from"./p-f3d844c7.js";import{t as r}from"./p-989599b2.js";import{b as h}from"./p-e5e644b3.js";import{t as a}from"./p-f01d2320.js";import{h as n}from"./p-b2e29026.js";import{w as l}from"./p-e97879b4.js";import{b as u}from"./p-cf0e7d3b.js";import{e as g}from"./p-ea5e1b2f.js";import"./p-4202e9f2.js";import"./p-43af726d.js";const c=class{constructor(e){t(this,e),this.noHighlightAction=i(this,"noHighlightAction",7),this.disabled=!1,this.isActive=!1,this.expanded=!1}onClickOutside(){this.expanded=!1}watchDisabled(t){t&&(this.expanded=!1)}handleKeydown(t){const i=g("gux-rich-highlight-list-item",t),e=t.composedPath();switch(t.key){case"Escape":this.expanded=!1,this.actionButton.focus();break;case"ArrowDown":case"Enter":e.includes(this.actionButton)&&(t.preventDefault(),this.expanded=!0,this.focusNoHighlightActionButton());break;case"Tab":if(t.shiftKey)return;i&&(this.expanded=!1)}}async componentWillLoad(){r(this.root),this.i18n=await h(this.root,a)}togglePopup(){this.expanded=!this.expanded,this.expanded?this.focusNoHighlightActionButton():this.actionButton.focus()}focusNoHighlightActionButton(){u((()=>{this.noHighlightActionButton.focus()}))}renderTooltip(){if(!this.disabled&&!this.expanded)return e("gux-tooltip-beta",null,e("div",{slot:"content"},this.i18n("textHighlight")))}renderPopup(){return e("div",{class:"gux-text-highlight-popup",slot:"popup"},this.renderNoHighlightAction(),this.renderTextHighlightColors())}renderNoHighlightAction(){return e("gux-button-slot",{accent:"tertiary"},e("button",{type:"button",ref:t=>this.noHighlightActionButton=t,onClick:()=>this.emitNoHighlightAction()},e("gux-truncate",{"max-lines":1},this.i18n("noHighlight"))))}onListClick(t){l("gux-rich-highlight-list-item",t,(()=>{this.expanded=!1,this.actionButton.focus()}))}renderTextHighlightColors(){return e("gux-rich-text-editor-list",{onClick:t=>this.onListClick(t)},e("slot",null))}emitNoHighlightAction(){this.noHighlightAction.emit(),this.expanded=!1,this.actionButton.focus()}renderTarget(){return e("gux-button-slot",{accent:"ghost","icon-only":!0,slot:"target"},e("button",{type:"button",ref:t=>this.actionButton=t,onClick:()=>this.togglePopup(),disabled:this.disabled||n(this.root),class:{"gux-is-pressed":this.isActive||this.expanded},"aria-haspopup":"true","aria-expanded":this.expanded.toString(),"aria-pressed":this.isActive.toString()},e("gux-icon",{size:"small","icon-name":"fa/highlighter-line-regular","screenreader-text":this.i18n("textHighlight")})),this.renderTooltip())}render(){return e("gux-popup",{key:"4c62359bc54074403adeebc73755df86b9d658f0",disabled:this.disabled,expanded:this.expanded,exceedTargetWidth:!0,placement:"bottom-start"},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return s(this)}static get watchers(){return{disabled:["watchDisabled"]}}};(function(t,i,e,s){var o,r=arguments.length,h=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,e,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(h=(r<3?o(h):r>3?o(i,e,h):o(i,e))||h);r>3&&h&&Object.defineProperty(i,e,h)})([o({triggerEvents:"mousedown"})],c.prototype,"onClickOutside",null),c.style=":host{display:block}.gux-text-highlight-popup{display:flex;flex-direction:column;gap:var(--gse-ui-rte-colorPalette-gap);inline-size:104px;padding:12px;margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}.gux-text-highlight-popup gux-rich-text-editor-list{display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--gse-ui-rte-colorPalette-gap);align-items:flex-start;justify-content:flex-start;padding:0}.gux-text-highlight-popup gux-button-slot{align-self:center;block-size:var(--gse-ui-rte-menuButton-height)}.gux-text-highlight-popup gux-button-slot button{block-size:var(--gse-ui-rte-menuButton-height)}gux-button-slot button.gux-is-pressed{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}";export{c as gux_rich_text_editor_action_text_highlight}
@@ -1 +1 @@
1
- import{r as e,h as o,f as i,g as r}from"./p-cf74fd3d.js";import{b as t}from"./p-e5e644b3.js";import{O as l}from"./p-946c70b7.js";import{h as a}from"./p-6d8b4027.js";import{t as s}from"./p-ce4a44ef.js";import{G as n,a as d}from"./p-56b18d28.js";import{G as f,a as p}from"./p-bd1d4fac.js";import{g as u,v as g}from"./p-4aaf349e.js";import{p as h}from"./p-a11d5d42.js";import{a as c,o as x,b as m}from"./p-6b12dd16.js";import{s as b}from"./p-2c25e2f2.js";import"./p-4202e9f2.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";const v={uploadFile:"Upload file",uploadFiles:"Upload files",changeFile:"Change file",changeFiles:"Change files",clickToUpload:"Click to upload",dragAndDropFileInstructions:"Drag and drop a file here or",dragAndDropFilesInstructions:"Drag and drop files here or"};const y=class{constructor(o){e(this,o),this.indicatorMark="required",this.dragAndDrop=!1,this.disabled=!1,this.hasError=!1,this.hasHelp=!1,this.required=!1,this.multiple=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help")}handleKeyup(e){var o,i;"Tab"===e.key?this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(i=this.labelInfo)||void 0===i||i.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}onGuxRemoveFile(e){this.removeFile(e.detail)}async componentWillLoad(){this.getI18nValue=await t(this.root,v),this.setInput(),this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help"),this.labelInfo=this.root.querySelector("[slot=label-info]"),s(this.root)}disconnectedCallback(){var e,o,i;null===(e=this.disabledObserver)||void 0===e||e.disconnect(),null===(o=this.requiredObserver)||void 0===o||o.disconnect(),null===(i=this.multipleObserver)||void 0===i||i.disconnect()}render(){return o(p,{key:"26192fb8fa1b688471449dc0c5d67603fe5938a8",labelPosition:"above"},o(f,{key:"be2e80f56f914d8f276302404eb3d247f7f0b3b1",position:"above",required:this.required},o("slot",{key:"8ae15aeed7c9b15f6e99ad358bb8a10d8f966854",name:"label"}),o("gux-form-field-label-indicator",{key:"2b017f7683939286029c15aa97e55e3adb0a8fd9",variant:this.indicatorMark,required:this.required}),o("slot",{key:"cdc28be12d3a7e424b11c196038d679cb6ea65de",name:"label-info"})),o("div",{key:"ddfa624e499836f78e691477988630e288327e6e",class:"gux-input-and-error-container"},o(n,{key:"d192f564f007aee7e9f25d11c865770f19ed4274",show:this.hasHelp},o("slot",{key:"0fd8f308994e09f903ad86d50b012f873d8a625d",name:"help"})),this.renderInputSlot(),o(d,{key:"ed983dec6ddfa19f299bc09126a936c977755a51",show:this.hasError},o("slot",{key:"dc789ea26c192a8df28332b0d9e7576adb0766d8",name:"error"})),this.renderFileList()))}setInput(){this.input=u(this.root,'input[type="file"][slot="input"]'),this.input.addEventListener("input",(()=>{i(this.root)})),h(this.input),this.disabled=this.input.disabled,this.required=this.input.required,this.multiple=this.input.multiple,this.disabledObserver=c(this.input,(e=>{this.disabled=e})),this.requiredObserver=x(this.input,(e=>{this.required=e})),this.multipleObserver=m(this.input,(e=>{this.multiple=e})),g(this.root,this.input)}getDropZoneText(){return this.getI18nValue(this.multiple?"dragAndDropFilesInstructions":"dragAndDropFileInstructions")}getProxyButtonText(){return this.getI18nValue(this.dragAndDrop?"clickToUpload":this.multiple?this.input.files.length>0?"changeFiles":"uploadFiles":this.input.files.length>0?"changeFile":"uploadFile")}removeFile(e){const o=this.input.files,i=new DataTransfer;for(let r=0;r<o.length;r++)e!==r&&i.items.add(o[r]);this.modifyInputFiles(i.files)}modifyInputFiles(e){this.input.files=e,b(this.root,"input"),b(this.root,"change"),i(this.root)}onProxyFileButtonClick(e){e.preventDefault(),e.stopImmediatePropagation(),this.input.focus(),this.input.click()}onDrop(e){if(e.preventDefault(),e.stopPropagation(),this.disabled)return;const o=this.input.files,i=e.dataTransfer.items,r=new DataTransfer;if(this.multiple)for(let e=0;e<o.length;e++)r.items.add(o[e]);for(let e=0;e<i.length;e++){const o=i[e];if("file"===o.kind&&o.webkitGetAsEntry().isFile&&(r.items.add(o.getAsFile()),!this.multiple))break}this.dropContainer.classList.remove("gux-drag-over"),this.modifyInputFiles(r.files)}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.disabled||this.dropContainer.classList.add("gux-drag-over")}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.dropContainer.classList.remove("gux-drag-over")}renderFileList(){const e=Array.from(this.input.files||(new DataTransfer).files);return 0===e.length?null:o("div",{class:"gux-file-list"},e.map(((e,i)=>o("slot",{name:`file-${i}`},o("gux-file-list-item",{name:e.name,index:i,disabled:this.disabled})))))}renderInputSlot(){return o("div",{ref:e=>this.dropContainer=e,class:{"gux-drop-container":!0,"gux-drop-zone":this.dragAndDrop,"gux-disabled":this.disabled},onDrop:e=>this.onDrop(e),onDragOver:e=>this.onDragOver(e),onDragEnter:e=>this.onDragOver(e),onDragLeave:e=>this.onDragLeave(e)},this.dragAndDrop&&o("div",{class:"gux-drag-and-drop-text"},this.getDropZoneText()),o("div",{class:"gux-proxy-button"},o("gux-button-slot",{accent:"tertiary"},o("button",{tabIndex:-1,type:"button",disabled:this.disabled,onClick:e=>this.onProxyFileButtonClick(e)},o("div",null,this.getProxyButtonText()))),o("div",{class:"gux-offscreen"},o("slot",{name:"input",onSlotchange:()=>this.setInput()}))))}get root(){return r(this)}};(function(e,o,i,r){var t,l=arguments.length,a=l<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,i,r);else for(var s=e.length-1;s>=0;s--)(t=e[s])&&(a=(l<3?t(a):l>3?t(o,i,a):t(o,i))||a);l>3&&a&&Object.defineProperty(o,i,a)})([l({childList:!0,subtree:!0})],y.prototype,"onMutation",null),y.style=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{display:flex;flex-grow:1;flex-direction:column;gap:var(--gse-ui-fileUpload-mainContainer-gap)}.gux-drop-container{box-sizing:border-box;display:flex;flex-direction:column;flex-wrap:nowrap;gap:var(--gse-ui-fileUpload-dragDrop-btnText-gap);margin-inline:0;font-family:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontFamily);font-size:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontSize);font-weight:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontWeight);line-height:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-lineHeight);color:var(--gse-ui-fileUpload-dragAndDrop-dropZoneText-color)}.gux-drop-container.gux-drop-zone{place-content:stretch center;align-items:center;min-block-size:var(--gse-ui-fileUpload-dragAndDrop-dropZone-minHeight);padding:20px;border:var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-width) var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-style) var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-color);border-radius:var(--gse-ui-fileUpload-dropZone-borderRadius)}.gux-drop-container.gux-drop-zone.gux-drag-over:not(.gux-disabled){background-color:var(--gse-ui-fileUpload-dragAndDrop-dropZone-background-active);border:var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-width) var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-style) var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-color)}.gux-drop-container.gux-drop-zone.gux-disabled{border-color:rgba(0, 0, 64, 0.2509803922)}.gux-drop-container.gux-drop-zone.gux-disabled .gux-drag-and-drop-text{opacity:0.5}.gux-offscreen{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-proxy-button{inline-size:fit-content;border-radius:var(--gse-ui-button-borderRadius)}.gux-proxy-button:focus-within{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-file-list{display:flex;flex-direction:column;gap:var(--gse-ui-fileUpload-fileCard-cardGroup-gap);inline-size:100%}";export{y as gux_form_field_file_beta}
1
+ import{r as e,h as o,f as i,g as r}from"./p-cf74fd3d.js";import{b as t}from"./p-e5e644b3.js";import{O as l}from"./p-946c70b7.js";import{h as a}from"./p-6d8b4027.js";import{t as s}from"./p-989599b2.js";import{G as n,a as d}from"./p-56b18d28.js";import{G as f,a as p}from"./p-bd1d4fac.js";import{g as u,v as g}from"./p-4aaf349e.js";import{p as h}from"./p-a11d5d42.js";import{a as c,o as x,b as m}from"./p-6b12dd16.js";import{s as b}from"./p-2c25e2f2.js";import"./p-4202e9f2.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";const v={uploadFile:"Upload file",uploadFiles:"Upload files",changeFile:"Change file",changeFiles:"Change files",clickToUpload:"Click to upload",dragAndDropFileInstructions:"Drag and drop a file here or",dragAndDropFilesInstructions:"Drag and drop files here or"};const y=class{constructor(o){e(this,o),this.indicatorMark="required",this.dragAndDrop=!1,this.disabled=!1,this.hasError=!1,this.hasHelp=!1,this.required=!1,this.multiple=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help")}handleKeyup(e){var o,i;"Tab"===e.key?this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(i=this.labelInfo)||void 0===i||i.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}onGuxRemoveFile(e){this.removeFile(e.detail)}async componentWillLoad(){this.getI18nValue=await t(this.root,v),this.setInput(),this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help"),this.labelInfo=this.root.querySelector("[slot=label-info]"),s(this.root)}disconnectedCallback(){var e,o,i;null===(e=this.disabledObserver)||void 0===e||e.disconnect(),null===(o=this.requiredObserver)||void 0===o||o.disconnect(),null===(i=this.multipleObserver)||void 0===i||i.disconnect()}render(){return o(p,{key:"26192fb8fa1b688471449dc0c5d67603fe5938a8",labelPosition:"above"},o(f,{key:"be2e80f56f914d8f276302404eb3d247f7f0b3b1",position:"above",required:this.required},o("slot",{key:"8ae15aeed7c9b15f6e99ad358bb8a10d8f966854",name:"label"}),o("gux-form-field-label-indicator",{key:"2b017f7683939286029c15aa97e55e3adb0a8fd9",variant:this.indicatorMark,required:this.required}),o("slot",{key:"cdc28be12d3a7e424b11c196038d679cb6ea65de",name:"label-info"})),o("div",{key:"ddfa624e499836f78e691477988630e288327e6e",class:"gux-input-and-error-container"},o(n,{key:"d192f564f007aee7e9f25d11c865770f19ed4274",show:this.hasHelp},o("slot",{key:"0fd8f308994e09f903ad86d50b012f873d8a625d",name:"help"})),this.renderInputSlot(),o(d,{key:"ed983dec6ddfa19f299bc09126a936c977755a51",show:this.hasError},o("slot",{key:"dc789ea26c192a8df28332b0d9e7576adb0766d8",name:"error"})),this.renderFileList()))}setInput(){this.input=u(this.root,'input[type="file"][slot="input"]'),this.input.addEventListener("input",(()=>{i(this.root)})),h(this.input),this.disabled=this.input.disabled,this.required=this.input.required,this.multiple=this.input.multiple,this.disabledObserver=c(this.input,(e=>{this.disabled=e})),this.requiredObserver=x(this.input,(e=>{this.required=e})),this.multipleObserver=m(this.input,(e=>{this.multiple=e})),g(this.root,this.input)}getDropZoneText(){return this.getI18nValue(this.multiple?"dragAndDropFilesInstructions":"dragAndDropFileInstructions")}getProxyButtonText(){return this.getI18nValue(this.dragAndDrop?"clickToUpload":this.multiple?this.input.files.length>0?"changeFiles":"uploadFiles":this.input.files.length>0?"changeFile":"uploadFile")}removeFile(e){const o=this.input.files,i=new DataTransfer;for(let r=0;r<o.length;r++)e!==r&&i.items.add(o[r]);this.modifyInputFiles(i.files)}modifyInputFiles(e){this.input.files=e,b(this.root,"input"),b(this.root,"change"),i(this.root)}onProxyFileButtonClick(e){e.preventDefault(),e.stopImmediatePropagation(),this.input.focus(),this.input.click()}onDrop(e){if(e.preventDefault(),e.stopPropagation(),this.disabled)return;const o=this.input.files,i=e.dataTransfer.items,r=new DataTransfer;if(this.multiple)for(let e=0;e<o.length;e++)r.items.add(o[e]);for(let e=0;e<i.length;e++){const o=i[e];if("file"===o.kind&&o.webkitGetAsEntry().isFile&&(r.items.add(o.getAsFile()),!this.multiple))break}this.dropContainer.classList.remove("gux-drag-over"),this.modifyInputFiles(r.files)}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.disabled||this.dropContainer.classList.add("gux-drag-over")}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.dropContainer.classList.remove("gux-drag-over")}renderFileList(){const e=Array.from(this.input.files||(new DataTransfer).files);return 0===e.length?null:o("div",{class:"gux-file-list"},e.map(((e,i)=>o("slot",{name:`file-${i}`},o("gux-file-list-item",{name:e.name,index:i,disabled:this.disabled})))))}renderInputSlot(){return o("div",{ref:e=>this.dropContainer=e,class:{"gux-drop-container":!0,"gux-drop-zone":this.dragAndDrop,"gux-disabled":this.disabled},onDrop:e=>this.onDrop(e),onDragOver:e=>this.onDragOver(e),onDragEnter:e=>this.onDragOver(e),onDragLeave:e=>this.onDragLeave(e)},this.dragAndDrop&&o("div",{class:"gux-drag-and-drop-text"},this.getDropZoneText()),o("div",{class:"gux-proxy-button"},o("gux-button-slot",{accent:"tertiary"},o("button",{tabIndex:-1,type:"button",disabled:this.disabled,onClick:e=>this.onProxyFileButtonClick(e)},o("div",null,this.getProxyButtonText()))),o("div",{class:"gux-offscreen"},o("slot",{name:"input",onSlotchange:()=>this.setInput()}))))}get root(){return r(this)}};(function(e,o,i,r){var t,l=arguments.length,a=l<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,i,r);else for(var s=e.length-1;s>=0;s--)(t=e[s])&&(a=(l<3?t(a):l>3?t(o,i,a):t(o,i))||a);l>3&&a&&Object.defineProperty(o,i,a)})([l({childList:!0,subtree:!0})],y.prototype,"onMutation",null),y.style=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{display:flex;flex-grow:1;flex-direction:column;gap:var(--gse-ui-fileUpload-mainContainer-gap)}.gux-drop-container{box-sizing:border-box;display:flex;flex-direction:column;flex-wrap:nowrap;gap:var(--gse-ui-fileUpload-dragDrop-btnText-gap);margin-inline:0;font-family:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontFamily);font-size:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontSize);font-weight:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontWeight);line-height:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-lineHeight);color:var(--gse-ui-fileUpload-dragAndDrop-dropZoneText-color)}.gux-drop-container.gux-drop-zone{place-content:stretch center;align-items:center;min-block-size:var(--gse-ui-fileUpload-dragAndDrop-dropZone-minHeight);padding:20px;border:var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-width) var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-style) var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-color);border-radius:var(--gse-ui-fileUpload-dropZone-borderRadius)}.gux-drop-container.gux-drop-zone.gux-drag-over:not(.gux-disabled){background-color:var(--gse-ui-fileUpload-dragAndDrop-dropZone-background-active);border:var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-width) var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-style) var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-color)}.gux-drop-container.gux-drop-zone.gux-disabled{border-color:rgba(0, 0, 64, 0.2509803922)}.gux-drop-container.gux-drop-zone.gux-disabled .gux-drag-and-drop-text{opacity:0.5}.gux-offscreen{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-proxy-button{inline-size:fit-content;border-radius:var(--gse-ui-button-borderRadius)}.gux-proxy-button:focus-within{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-file-list{display:flex;flex-direction:column;gap:var(--gse-ui-fileUpload-fileCard-cardGroup-gap);inline-size:100%}";export{y as gux_form_field_file_beta}
@@ -1 +1 @@
1
- import{r as e,h as r,g as s}from"./p-cf74fd3d.js";import{t as a}from"./p-ce4a44ef.js";const t=class{constructor(r){e(this,r)}componentWillLoad(){a(this.root)}render(){return r("div",{key:"9f3a1e9f850720ba6f825c8ea4eb837b0fcf23e1",class:"gux-selector-cards"},r("slot",{key:"bd39cf942c05c4e255890eef3068fbb3695e82b9"}))}get root(){return s(this)}};t.style=".gux-selector-cards{display:flex;flex-wrap:wrap;gap:var(--gse-ui-selectorCard-simple-gap)}";export{t as gux_selector_cards_beta}
1
+ import{r as e,h as r,g as s}from"./p-cf74fd3d.js";import{t as a}from"./p-989599b2.js";const t=class{constructor(r){e(this,r)}componentWillLoad(){a(this.root)}render(){return r("div",{key:"9f3a1e9f850720ba6f825c8ea4eb837b0fcf23e1",class:"gux-selector-cards"},r("slot",{key:"bd39cf942c05c4e255890eef3068fbb3695e82b9"}))}get root(){return s(this)}};t.style=".gux-selector-cards{display:flex;flex-wrap:wrap;gap:var(--gse-ui-selectorCard-simple-gap)}";export{t as gux_selector_cards_beta}
@@ -1 +1 @@
1
- import{r as e,c as t,h as i,H as s,g as o}from"./p-cf74fd3d.js";import{O as a}from"./p-f3d844c7.js";import{t as c}from"./p-ce4a44ef.js";import{b as r}from"./p-e5e644b3.js";import{t as d}from"./p-f01d2320.js";import{b as n}from"./p-cf0e7d3b.js";import{h as l}from"./p-b2e29026.js";import"./p-4202e9f2.js";import"./p-43af726d.js";const p=class{constructor(i){e(this,i),this.linkOptions=t(this,"linkOptions",7),this.disabled=!1,this.isActive=!1,this.isOpen=!1}onClickOutside(){this.isOpen=!1}handleKeydown(e){const t=e.composedPath();switch(e.key){case"Escape":this.isOpen=!1,this.actionButton.focus();break;case"ArrowDown":case"Enter":t.includes(this.actionButton)&&(e.preventDefault(),this.isOpen=!0,this.focusTextToDisplayInputElement())}}async componentWillLoad(){c(this.root),this.i18n=await r(this.root,d)}emitLinkOptions(){this.linkOptions.emit({textToDisplay:this.textToDisplayInputElement.value,href:this.linkAddressInputElement.value}),this.textToDisplayInputElement.value=null,this.linkAddressInputElement.value=null,this.isOpen=!1}togglePopover(){this.isOpen=!this.isOpen,this.isOpen?this.focusTextToDisplayInputElement():this.actionButton.focus()}focusTextToDisplayInputElement(){n((()=>{this.textToDisplayInputElement.focus()}))}renderTooltip(){if(!this.disabled)return i("gux-tooltip-beta",null,i("div",{slot:"content"},this.i18n("link")))}render(){return i(s,{key:"7cf1282de26e3435355bd1e56082a6bf82c8ee41"},i("gux-button-slot",{key:"a3989e6cf8045e14a692bcd6794adeb495c8eb52",accent:"ghost","icon-only":!0},i("button",{key:"fa0f503c88a30d0a33ec290ac74496e14dca317f",id:"popover-target",class:{"gux-is-pressed":this.isActive||this.isOpen},onClick:()=>this.togglePopover(),ref:e=>this.actionButton=e,type:"button",disabled:this.disabled||l(this.root),"aria-label":this.i18n("link"),"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),"aria-pressed":this.isActive.toString()},i("gux-icon",{key:"7e15018402b7837cb4a956cc0b93c1cca0464a61",size:"small","icon-name":"fa/link-simple-regular",decorative:!0})),this.renderTooltip()),i("gux-popover",{key:"ec30b2f47af90d979eed841792d38fc6e6a0e16f","is-open":this.isOpen,for:"popover-target"},i("div",{key:"f8a3175a12fb9cf43222b65427b5d61fa20340f9",class:"gux-popover-content-wrapper"},i("gux-form-field-text-like",{key:"ae81694b4b7eacd3149946dbd3ce689c1e09f62c"},i("input",{key:"8d362954344ea9816221bb61b5dc9fb91375bf22",id:"textToDisplay",ref:e=>this.textToDisplayInputElement=e,slot:"input",type:"text"}),i("label",{key:"37df778fed4a89f12db534a36bed2aa9ab8ed0d0",slot:"label"},this.i18n("textToDisplay"))),i("gux-form-field-text-like",{key:"669a4e47dbe0bbc16fa81ddd612a9d4d3639e84e"},i("input",{key:"c17e684a83dfdd16213022f8caa8147d2d9885a5",ref:e=>this.linkAddressInputElement=e,slot:"input",type:"text"}),i("label",{key:"41be8853cddd956df0a0d9bf0654fe7de1c183ce",slot:"label"},this.i18n("linkAddress"))),i("gux-cta-group",{key:"36ded973565793d7fb723bc59cdbe34e0b6c0de9",align:"end"},i("gux-button",{key:"018ece746fc3629506b948efeb530a50595a25dc",onClick:()=>this.emitLinkOptions(),slot:"primary"},this.i18n("insert")),i("gux-button",{key:"9ec7fad709478eaeafeb86a65d3e64a859196607",onClick:()=>this.togglePopover(),slot:"dismiss"},this.i18n("cancel"))))))}get root(){return o(this)}};(function(e,t,i,s){var o,a=arguments.length,c=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,i,s);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(c=(a<3?o(c):a>3?o(t,i,c):o(t,i))||c);a>3&&c&&Object.defineProperty(t,i,c)})([a({triggerEvents:"mousedown"})],p.prototype,"onClickOutside",null),p.style=":host{display:block}gux-popover div.gux-popover-content-wrapper{display:flex;flex-direction:column;gap:var(--gse-ui-popover-gap)}gux-button-slot{inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height)}gux-button-slot button.gux-is-pressed{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}";export{p as gux_rich_text_editor_action_link}
1
+ import{r as e,c as t,h as i,H as s,g as o}from"./p-cf74fd3d.js";import{O as a}from"./p-f3d844c7.js";import{t as c}from"./p-989599b2.js";import{b as r}from"./p-e5e644b3.js";import{t as d}from"./p-f01d2320.js";import{b as n}from"./p-cf0e7d3b.js";import{h as l}from"./p-b2e29026.js";import"./p-4202e9f2.js";import"./p-43af726d.js";const p=class{constructor(i){e(this,i),this.linkOptions=t(this,"linkOptions",7),this.disabled=!1,this.isActive=!1,this.isOpen=!1}onClickOutside(){this.isOpen=!1}handleKeydown(e){const t=e.composedPath();switch(e.key){case"Escape":this.isOpen=!1,this.actionButton.focus();break;case"ArrowDown":case"Enter":t.includes(this.actionButton)&&(e.preventDefault(),this.isOpen=!0,this.focusTextToDisplayInputElement())}}async componentWillLoad(){c(this.root),this.i18n=await r(this.root,d)}emitLinkOptions(){this.linkOptions.emit({textToDisplay:this.textToDisplayInputElement.value,href:this.linkAddressInputElement.value}),this.textToDisplayInputElement.value=null,this.linkAddressInputElement.value=null,this.isOpen=!1}togglePopover(){this.isOpen=!this.isOpen,this.isOpen?this.focusTextToDisplayInputElement():this.actionButton.focus()}focusTextToDisplayInputElement(){n((()=>{this.textToDisplayInputElement.focus()}))}renderTooltip(){if(!this.disabled)return i("gux-tooltip-beta",null,i("div",{slot:"content"},this.i18n("link")))}render(){return i(s,{key:"7cf1282de26e3435355bd1e56082a6bf82c8ee41"},i("gux-button-slot",{key:"a3989e6cf8045e14a692bcd6794adeb495c8eb52",accent:"ghost","icon-only":!0},i("button",{key:"fa0f503c88a30d0a33ec290ac74496e14dca317f",id:"popover-target",class:{"gux-is-pressed":this.isActive||this.isOpen},onClick:()=>this.togglePopover(),ref:e=>this.actionButton=e,type:"button",disabled:this.disabled||l(this.root),"aria-label":this.i18n("link"),"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),"aria-pressed":this.isActive.toString()},i("gux-icon",{key:"7e15018402b7837cb4a956cc0b93c1cca0464a61",size:"small","icon-name":"fa/link-simple-regular",decorative:!0})),this.renderTooltip()),i("gux-popover",{key:"ec30b2f47af90d979eed841792d38fc6e6a0e16f","is-open":this.isOpen,for:"popover-target"},i("div",{key:"f8a3175a12fb9cf43222b65427b5d61fa20340f9",class:"gux-popover-content-wrapper"},i("gux-form-field-text-like",{key:"ae81694b4b7eacd3149946dbd3ce689c1e09f62c"},i("input",{key:"8d362954344ea9816221bb61b5dc9fb91375bf22",id:"textToDisplay",ref:e=>this.textToDisplayInputElement=e,slot:"input",type:"text"}),i("label",{key:"37df778fed4a89f12db534a36bed2aa9ab8ed0d0",slot:"label"},this.i18n("textToDisplay"))),i("gux-form-field-text-like",{key:"669a4e47dbe0bbc16fa81ddd612a9d4d3639e84e"},i("input",{key:"c17e684a83dfdd16213022f8caa8147d2d9885a5",ref:e=>this.linkAddressInputElement=e,slot:"input",type:"text"}),i("label",{key:"41be8853cddd956df0a0d9bf0654fe7de1c183ce",slot:"label"},this.i18n("linkAddress"))),i("gux-cta-group",{key:"36ded973565793d7fb723bc59cdbe34e0b6c0de9",align:"end"},i("gux-button",{key:"018ece746fc3629506b948efeb530a50595a25dc",onClick:()=>this.emitLinkOptions(),slot:"primary"},this.i18n("insert")),i("gux-button",{key:"9ec7fad709478eaeafeb86a65d3e64a859196607",onClick:()=>this.togglePopover(),slot:"dismiss"},this.i18n("cancel"))))))}get root(){return o(this)}};(function(e,t,i,s){var o,a=arguments.length,c=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,i,s);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(c=(a<3?o(c):a>3?o(t,i,c):o(t,i))||c);a>3&&c&&Object.defineProperty(t,i,c)})([a({triggerEvents:"mousedown"})],p.prototype,"onClickOutside",null),p.style=":host{display:block}gux-popover div.gux-popover-content-wrapper{display:flex;flex-direction:column;gap:var(--gse-ui-popover-gap)}gux-button-slot{inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height)}gux-button-slot button.gux-is-pressed{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}";export{p as gux_rich_text_editor_action_link}
@@ -1 +1 @@
1
- import{r as e,f as t,h as o,g as i}from"./p-cf74fd3d.js";import{c as r,o as n}from"./p-f4751a15.js";import{O as l}from"./p-946c70b7.js";import{o as a}from"./p-6b12dd16.js";import{p as s}from"./p-a11d5d42.js";import{h as f}from"./p-6d8b4027.js";import{a as u,G as d}from"./p-56b18d28.js";import{G as p,a as h}from"./p-bd1d4fac.js";import{h as g,b as c,c as x,g as m,v as b,a as v}from"./p-4aaf349e.js";import{t as C}from"./p-ce4a44ef.js";import{f as y}from"./p-54822e3b.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const k=class{constructor(t){e(this,t),this.loading=!1,this.indicatorMark="required",this.computedLabelPosition="above",this.hasContent=!1,this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=f(this.root,"error"),this.hasHelp=f(this.root,"help")}handleKeyup(e){var t,o;"Tab"===e.key?this.input.matches(":focus-visible")&&(null===(t=this.labelInfo)||void 0===t||t.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}async guxForceUpdate(){this.hasContent=g(this.input),this.hasError=f(this.root,"error"),this.hasHelp=f(this.root,"help"),t(this.root)}renderRadialLoading(){if(this.loading)return o("div",{role:"status"},o("gux-radial-loading",{context:"input"}))}componentWillLoad(){this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=f(this.root,"error"),this.hasHelp=f(this.root,"help"),this.hasPrefix=Boolean(this.root.querySelector('[slot="prefix"]')),this.hasSuffix=Boolean(this.root.querySelector('[slot="suffix"]')),this.hasPrefix&&c(this.root,this.input,"prefix"),this.hasSuffix&&c(this.root,this.input,"suffix"),C(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return o(h,{key:"052193dad16740cb33266b39bad1ff6f97491f05",labelPosition:this.computedLabelPosition},o(p,{key:"1321c9db80a9db18592c50648305549aa9f5f3f9",required:this.required,position:this.computedLabelPosition},o("slot",{key:"7c2b5db94cb3755bb88275fd9e8e65e3c104fe8f",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"82fa67d4a259d9be2a010b93af28e3ab355b6d73",variant:this.indicatorMark,required:this.required}),o("slot",{key:"73dee45dd499f8ee31d7925040e3abe70d1c8923",name:"label-info"})),o("div",{key:"7603192f8e5b673f5669d402a942abca6b95c29e",class:"gux-input-and-error-container"},o("div",{key:"d6422fc785a4ed80d8dd818cbfb9e3f3eff42605",class:{"gux-input":!0,"gux-input-error":this.hasError}},o("div",{key:"460152bf2a6a0d764681bcd997ec8167048d699b",class:{"gux-input-container":!0,"gux-disabled":this.disabled,"gux-has-prefix":this.hasPrefix,"gux-has-suffix":this.hasSuffix},onClick:()=>y(this.input)},o("slot",{key:"5470ede1eec1f0cad4c0112a50b7adc6fe0dfc20",name:"prefix"}),o("slot",{key:"9017dc9ec1340605d5840adc7ace438c80797099",name:"input"}),this.renderRadialLoading(),o("slot",{key:"50a7cf9eae2c62f62bc9a41ad53ae185a562551f",name:"suffix"}),this.clearable&&this.hasContent&&!this.disabled&&o("gux-form-field-input-clear-button",{key:"b02a8880f365da818b968f929a29efbeaae94189",onClick:()=>x(this.input)}))),o(u,{key:"8d977af3e6e196815afd63b30d60da604f783e6d",show:this.hasError},o("slot",{key:"d86ca74347b21511fdfc5dcf33d11a06510b306d",name:"error"})),o(d,{key:"c2c9b8a1cda26789e619a3aac1fd7c241f15a08e",show:!this.hasError&&this.hasHelp},o("slot",{key:"b619fe29487e5f78d49189aa68f9ab4b661210c1",name:"help"}))))}get variant(){const e=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.input.getAttribute("type")}-${this.clearable?"clearable":"unclearable"}-${e}`}setInput(){this.input=m(this.root,'input[type="email"][slot="input"], input[type="number"][slot="input"], input[type="password"][slot="input"], input[type="text"][slot="input"]'),this.hasContent=g(this.input),s(this.input),this.input.addEventListener("input",(()=>{this.hasContent=g(this.input)})),this.disabled=r(this.input),this.required=this.input.required,this.disabledObserver=n(this.input,(e=>{this.disabled=e})),this.requiredObserver=a(this.input,(e=>{this.required=e})),b(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=v(this.label,this.labelPosition)}get root(){return i(this)}};(function(e,t,o,i){var r,n=arguments.length,l=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(l=(n<3?r(l):n>3?r(t,o,l):r(t,o))||l);n>3&&l&&Object.defineProperty(t,o,l)})([l({childList:!0,subtree:!0})],k.prototype,"onMutation",null),k.style=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:1 1 auto;align-self:auto;order:0;inline-size:100%;overflow:hidden;text-overflow:ellipsis;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);outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}slot[name=prefix],slot[name=suffix]{font-family:var(--gse-ui-formControl-input-prefixSufix-text-fontFamily);font-size:var(--gse-ui-formControl-input-prefixSufix-text-fontSize);line-height:var(--gse-ui-formControl-input-prefixSufix-text-lineHeight);color:var(--gse-ui-formControl-input-prefixSufix-defaultColor);text-align:center;white-space:nowrap;text-decoration:none}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;inline-size:100%;block-size: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);cursor:text;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-has-suffix:not(.gux-input-and-error-container .gux-input .gux-input-container.gux-has-prefix) ::slotted(input){text-align:end}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);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)}.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{k as gux_form_field_text_like}
1
+ import{r as e,f as t,h as o,g as i}from"./p-cf74fd3d.js";import{c as r,o as n}from"./p-f4751a15.js";import{O as l}from"./p-946c70b7.js";import{o as a}from"./p-6b12dd16.js";import{p as s}from"./p-a11d5d42.js";import{h as f}from"./p-6d8b4027.js";import{a as u,G as d}from"./p-56b18d28.js";import{G as p,a as h}from"./p-bd1d4fac.js";import{h as g,b as c,c as x,g as m,v as b,a as v}from"./p-4aaf349e.js";import{t as C}from"./p-989599b2.js";import{f as y}from"./p-54822e3b.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const k=class{constructor(t){e(this,t),this.loading=!1,this.indicatorMark="required",this.computedLabelPosition="above",this.hasContent=!1,this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=f(this.root,"error"),this.hasHelp=f(this.root,"help")}handleKeyup(e){var t,o;"Tab"===e.key?this.input.matches(":focus-visible")&&(null===(t=this.labelInfo)||void 0===t||t.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}async guxForceUpdate(){this.hasContent=g(this.input),this.hasError=f(this.root,"error"),this.hasHelp=f(this.root,"help"),t(this.root)}renderRadialLoading(){if(this.loading)return o("div",{role:"status"},o("gux-radial-loading",{context:"input"}))}componentWillLoad(){this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=f(this.root,"error"),this.hasHelp=f(this.root,"help"),this.hasPrefix=Boolean(this.root.querySelector('[slot="prefix"]')),this.hasSuffix=Boolean(this.root.querySelector('[slot="suffix"]')),this.hasPrefix&&c(this.root,this.input,"prefix"),this.hasSuffix&&c(this.root,this.input,"suffix"),C(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return o(h,{key:"052193dad16740cb33266b39bad1ff6f97491f05",labelPosition:this.computedLabelPosition},o(p,{key:"1321c9db80a9db18592c50648305549aa9f5f3f9",required:this.required,position:this.computedLabelPosition},o("slot",{key:"7c2b5db94cb3755bb88275fd9e8e65e3c104fe8f",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"82fa67d4a259d9be2a010b93af28e3ab355b6d73",variant:this.indicatorMark,required:this.required}),o("slot",{key:"73dee45dd499f8ee31d7925040e3abe70d1c8923",name:"label-info"})),o("div",{key:"7603192f8e5b673f5669d402a942abca6b95c29e",class:"gux-input-and-error-container"},o("div",{key:"d6422fc785a4ed80d8dd818cbfb9e3f3eff42605",class:{"gux-input":!0,"gux-input-error":this.hasError}},o("div",{key:"460152bf2a6a0d764681bcd997ec8167048d699b",class:{"gux-input-container":!0,"gux-disabled":this.disabled,"gux-has-prefix":this.hasPrefix,"gux-has-suffix":this.hasSuffix},onClick:()=>y(this.input)},o("slot",{key:"5470ede1eec1f0cad4c0112a50b7adc6fe0dfc20",name:"prefix"}),o("slot",{key:"9017dc9ec1340605d5840adc7ace438c80797099",name:"input"}),this.renderRadialLoading(),o("slot",{key:"50a7cf9eae2c62f62bc9a41ad53ae185a562551f",name:"suffix"}),this.clearable&&this.hasContent&&!this.disabled&&o("gux-form-field-input-clear-button",{key:"b02a8880f365da818b968f929a29efbeaae94189",onClick:()=>x(this.input)}))),o(u,{key:"8d977af3e6e196815afd63b30d60da604f783e6d",show:this.hasError},o("slot",{key:"d86ca74347b21511fdfc5dcf33d11a06510b306d",name:"error"})),o(d,{key:"c2c9b8a1cda26789e619a3aac1fd7c241f15a08e",show:!this.hasError&&this.hasHelp},o("slot",{key:"b619fe29487e5f78d49189aa68f9ab4b661210c1",name:"help"}))))}get variant(){const e=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.input.getAttribute("type")}-${this.clearable?"clearable":"unclearable"}-${e}`}setInput(){this.input=m(this.root,'input[type="email"][slot="input"], input[type="number"][slot="input"], input[type="password"][slot="input"], input[type="text"][slot="input"]'),this.hasContent=g(this.input),s(this.input),this.input.addEventListener("input",(()=>{this.hasContent=g(this.input)})),this.disabled=r(this.input),this.required=this.input.required,this.disabledObserver=n(this.input,(e=>{this.disabled=e})),this.requiredObserver=a(this.input,(e=>{this.required=e})),b(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=v(this.label,this.labelPosition)}get root(){return i(this)}};(function(e,t,o,i){var r,n=arguments.length,l=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(l=(n<3?r(l):n>3?r(t,o,l):r(t,o))||l);n>3&&l&&Object.defineProperty(t,o,l)})([l({childList:!0,subtree:!0})],k.prototype,"onMutation",null),k.style=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:1 1 auto;align-self:auto;order:0;inline-size:100%;overflow:hidden;text-overflow:ellipsis;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);outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}slot[name=prefix],slot[name=suffix]{font-family:var(--gse-ui-formControl-input-prefixSufix-text-fontFamily);font-size:var(--gse-ui-formControl-input-prefixSufix-text-fontSize);line-height:var(--gse-ui-formControl-input-prefixSufix-text-lineHeight);color:var(--gse-ui-formControl-input-prefixSufix-defaultColor);text-align:center;white-space:nowrap;text-decoration:none}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;inline-size:100%;block-size: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);cursor:text;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-has-suffix:not(.gux-input-and-error-container .gux-input .gux-input-container.gux-has-prefix) ::slotted(input){text-align:end}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);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)}.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{k as gux_form_field_text_like}
@@ -1 +1 @@
1
- import{r as o,h as t,g as e,c as r}from"./p-cf74fd3d.js";import{t as i}from"./p-ce4a44ef.js";import{r as n}from"./p-0934300e.js";import{a,c as s,o as u,f as l,s as d,b as c}from"./p-04c85b3b.js";import{O as g}from"./p-f3d844c7.js";import{g as b}from"./p-89657908.js";import{f as h}from"./p-9b0d3713.js";const p=class{constructor(t){o(this,t),this.buttonId=n("button"),this.type="button",this.disabled=!1,this.accent="secondary",this.autofocus=!1}connectedCallback(){this.slotChanged()}componentWillLoad(){i(this.root,{variant:this.accent})}render(){return[t("button",{key:"9c064f7a47d8a4b4deaa4e60af5756a030d716af",id:this.buttonId,type:this.type,disabled:this.disabled,class:{[`gux-${this.accent}`]:!0,"gux-icon-only":this.iconOnly},"aria-label":this.guxTitle,autofocus:this.autofocus},t("slot",{key:"ee0e8501a4cd24a1fac1cb4c29c452b03bf434bf",onSlotchange:this.slotChanged.bind(this)})),this.renderTooltip()]}renderTooltip(){return this.guxTitle?t("gux-tooltip-beta",{for:this.buttonId,visualOnly:!0},t("div",{slot:"content"},this.guxTitle)):""}stopEventIfDisabled(o){this.disabled&&(o.stopImmediatePropagation(),o.stopPropagation(),o.preventDefault())}makeSlotContentDisableable(){this.root.shadowRoot.addEventListener("click",(o=>this.stopEventIfDisabled(o))),Array.from(this.root.children).forEach((o=>{o.addEventListener("click",(o=>this.stopEventIfDisabled(o)))}))}hasIconOnly(){const o=Array.from(this.root.children);if(1===o.length){if("GUX-ICON"===o[0].tagName)return!0}else if(2===o.length&&"GUX-ICON"===o[0].tagName&&["GUX-TOOLTIP","GUX-TOOLTIP-BETA"].includes(o[1].tagName))return!0;return!1}slotChanged(){this.makeSlotContentDisableable(),this.iconOnly=this.hasIconOnly()}static get delegatesFocus(){return!0}get root(){return e(this)}};p.style=":host{display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none}:host(:focus){outline:none}:host(:focus) button{outline:none}::slotted(gux-icon){inline-size:var(--gse-ui-button-icon-size);block-size:var(--gse-ui-button-icon-size)}::slotted(*){padding-inline-start:var(--gse-ui-button-gap);vertical-align:middle}::slotted(gux-tooltip),::slotted(gux-tooltip-beta){padding-inline-start:0}::slotted(*:first-child){padding:0}button{font-family:var(--gse-ui-button-text-fontFamily);font-size:var(--gse-ui-button-text-fontSize);font-weight:var(--gse-ui-button-text-fontWeight);line-height:var(--gse-ui-button-text-lineHeight);inline-size:100%;min-inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-padding);overflow:hidden;text-overflow:ellipsis;color:var(--gse-ui-button-secondary-default-foregroundColor);white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:var(--gse-ui-button-secondary-default-backgroundColor);border:none;border-radius:var(--gse-ui-button-borderRadius)}button.gux-icon-only{display:inline-flex;padding:var(--gse-ui-button-default-paddingIconOnly)}button[disabled]{pointer-events:none;cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}button:hover:enabled{color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}button:active:enabled{color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}button:focus-visible:enabled{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}button.gux-primary{color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}button.gux-primary:hover:enabled{color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}button.gux-primary:active:enabled{color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}button.gux-tertiary{color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-color:var(--gse-ui-button-tertiary-default-border-color);border-style:var(--gse-ui-button-tertiary-default-border-style);border-width:var(--gse-ui-button-tertiary-default-border-width);}button.gux-tertiary.gux-icon-only{padding:calc(var(--gse-ui-button-default-paddingIconOnly) - var(--gse-ui-button-tertiary-default-border-width))}button.gux-tertiary:hover:enabled{color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}button.gux-tertiary:active:enabled{color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}button.gux-ghost{color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}button.gux-ghost:hover:enabled{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}button.gux-ghost:active:enabled{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}button.gux-danger{color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}button.gux-danger:hover:enabled{color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}button.gux-danger:active:enabled{color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}button.gux-inline{min-inline-size:initial;block-size:initial;padding:0;color:var(--gse-ui-links-default-foregroundColor);background:none;border:none;border-radius:0}button.gux-inline[disabled]{color:var(--gse-ui-links-disabled-foregroundColor)}button.gux-inline:hover:enabled{color:var(--gse-ui-links-hover-foregroundColor);text-decoration:underline;background:none}button.gux-inline:active:enabled{color:var(--gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}";var v=function(o,t,e,r){var i,n=arguments.length,a=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,t,e,r);else for(var s=o.length-1;s>=0;s--)(i=o[s])&&(a=(n<3?i(a):n>3?i(t,e,a):i(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a};const f=class{constructor(t){o(this,t),this.guxdismiss=r(this,"guxdismiss",7),this.position="bottom",this.displayDismissButton=!1,this.closeOnClickOutside=!1,this.isOpen=!1}onKeyDown(o){"Escape"===o.key&&this.dismiss()}onFocusout(o){!this.closeOnClickOutside&&this.displayDismissButton||o.relatedTarget&&!this.root.contains(o.relatedTarget)&&this.dismiss()}checkForClickOutside(o){const t=o.composedPath(),e=h(this.root,this.for),r=t.includes(e);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||r||this.dismiss()}get titleSlot(){return b(this.root,"title")}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=a(h(this.root,this.for),this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const o=h(this.root,this.for);this.popupElement&&o&&s(o,this.popupElement,{placement:this.position,middleware:[u(7),l(),d(),c({element:this.arrowElement,padding:16})]}).then((({x:o,y:t,middlewareData:e,placement:r})=>{Object.assign(this.popupElement.style,{left:`${o}px`,top:`${t}px`});const i=r.split("-")[0],n={top:"bottom",right:"left",bottom:"top",left:"right"}[i],a={top:0,right:90,bottom:180,left:-90}[i],s="left"===i||"right"===i?15:13;if(e.arrow){let o=e.arrow.x;const t=e.arrow.y;"left"!==i&&"right"!==i||(o+=4),this.popupElement.setAttribute("data-placement",r),Object.assign(this.arrowElement.style,{left:null!=o?`${o}px`:"",top:null!=t?`${t}px`:"",right:"",bottom:"",[n]:-s+"px",transform:`rotate(${a}deg)`})}}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1)}connectedCallback(){i(this.root,{variant:this.position})}componentDidLoad(){this.isOpen&&this.runUpdatePosition()}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return t("div",{key:"15ebb2aadb07189b4f08d86b596df4da22475e96",ref:o=>this.popupElement=o,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0},t("div",{key:"cc6a4a445f4280a009f0356becaab363602fd546",ref:o=>this.arrowElement=o,class:"gux-arrow"},t("div",{key:"1420e05736ade46ad1dc37d307dfe9de1bc8b699",class:"gux-arrow-caret"})),this.displayDismissButton&&t("gux-dismiss-button",{key:"30e79e138a5fbc213ef24acd63babb40c5cf94f0",onClick:this.dismiss.bind(this)}),t("div",{key:"42f3ebb6874aecb0c05366d8040a089a627ecd3f",class:{"gux-popover-header":Boolean(this.titleSlot)}},t("slot",{key:"f80d2650eec055b1bc1ceb3d6c0cfdb8a6a9d79d",name:"title"})),t("div",{key:"5d9f7e98d824af66532a5e6c18c1eeb623344b23",class:"gux-popover-content"},t("slot",{key:"71e4810e14d8fb3aeaf19df4c0dee6cd72ef4514"})))}get root(){return e(this)}};v([g({triggerEvents:"mousedown"})],f.prototype,"checkForClickOutside",null),v([function(){let o=!1,t=null;return(e,r,i)=>{const n=i.value;i.value=function(...e){o||(n.apply(this,e),o=!0,clearTimeout(t),t=setTimeout((()=>{o=!1}),100))}}}()],f.prototype,"dismiss",null),f.style=".gux-popover-wrapper{position:absolute;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;padding:var(--gse-ui-popover-padding);background-color:var(--gse-ui-popover-backgroundColor);border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow)}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-height);padding-block-end:4px;overflow:hidden}.gux-popover-wrapper .gux-arrow-caret{inline-size:0;block-size:0;border-block-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid var(--gse-ui-popover-backgroundColor);border-inline-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;border-inline-end:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;filter:drop-shadow(0 0 4px var(--gse-semantic-effects-boxShadow))}.gux-popover-wrapper .gux-popover-header{display:flex;flex-direction:row;place-content:center space-between;align-items:center;padding-block-end:var(--gse-ui-popover-gap);font-family:var(--gse-ui-popover-title-text-fontFamily);font-size:var(--gse-ui-popover-title-text-fontSize);font-weight:var(--gse-ui-popover-title-text-fontWeight);line-height:var(--gse-ui-popover-title-text-lineHeight);color:var(--gse-ui-popover-headerColor)}";export{p as gux_button,f as gux_popover}
1
+ import{r as o,h as t,g as e,c as r}from"./p-cf74fd3d.js";import{t as i}from"./p-989599b2.js";import{r as n}from"./p-0934300e.js";import{a,c as s,o as u,f as l,s as d,b as c}from"./p-04c85b3b.js";import{O as g}from"./p-f3d844c7.js";import{g as b}from"./p-89657908.js";import{f as h}from"./p-9b0d3713.js";const p=class{constructor(t){o(this,t),this.buttonId=n("button"),this.type="button",this.disabled=!1,this.accent="secondary",this.autofocus=!1}connectedCallback(){this.slotChanged()}componentWillLoad(){i(this.root,{variant:this.accent})}render(){return[t("button",{key:"9c064f7a47d8a4b4deaa4e60af5756a030d716af",id:this.buttonId,type:this.type,disabled:this.disabled,class:{[`gux-${this.accent}`]:!0,"gux-icon-only":this.iconOnly},"aria-label":this.guxTitle,autofocus:this.autofocus},t("slot",{key:"ee0e8501a4cd24a1fac1cb4c29c452b03bf434bf",onSlotchange:this.slotChanged.bind(this)})),this.renderTooltip()]}renderTooltip(){return this.guxTitle?t("gux-tooltip-beta",{for:this.buttonId,visualOnly:!0},t("div",{slot:"content"},this.guxTitle)):""}stopEventIfDisabled(o){this.disabled&&(o.stopImmediatePropagation(),o.stopPropagation(),o.preventDefault())}makeSlotContentDisableable(){this.root.shadowRoot.addEventListener("click",(o=>this.stopEventIfDisabled(o))),Array.from(this.root.children).forEach((o=>{o.addEventListener("click",(o=>this.stopEventIfDisabled(o)))}))}hasIconOnly(){const o=Array.from(this.root.children);if(1===o.length){if("GUX-ICON"===o[0].tagName)return!0}else if(2===o.length&&"GUX-ICON"===o[0].tagName&&["GUX-TOOLTIP","GUX-TOOLTIP-BETA"].includes(o[1].tagName))return!0;return!1}slotChanged(){this.makeSlotContentDisableable(),this.iconOnly=this.hasIconOnly()}static get delegatesFocus(){return!0}get root(){return e(this)}};p.style=":host{display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none}:host(:focus){outline:none}:host(:focus) button{outline:none}::slotted(gux-icon){inline-size:var(--gse-ui-button-icon-size);block-size:var(--gse-ui-button-icon-size)}::slotted(*){padding-inline-start:var(--gse-ui-button-gap);vertical-align:middle}::slotted(gux-tooltip),::slotted(gux-tooltip-beta){padding-inline-start:0}::slotted(*:first-child){padding:0}button{font-family:var(--gse-ui-button-text-fontFamily);font-size:var(--gse-ui-button-text-fontSize);font-weight:var(--gse-ui-button-text-fontWeight);line-height:var(--gse-ui-button-text-lineHeight);inline-size:100%;min-inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-padding);overflow:hidden;text-overflow:ellipsis;color:var(--gse-ui-button-secondary-default-foregroundColor);white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:var(--gse-ui-button-secondary-default-backgroundColor);border:none;border-radius:var(--gse-ui-button-borderRadius)}button.gux-icon-only{display:inline-flex;padding:var(--gse-ui-button-default-paddingIconOnly)}button[disabled]{pointer-events:none;cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}button:hover:enabled{color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}button:active:enabled{color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}button:focus-visible:enabled{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}button.gux-primary{color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}button.gux-primary:hover:enabled{color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}button.gux-primary:active:enabled{color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}button.gux-tertiary{color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-color:var(--gse-ui-button-tertiary-default-border-color);border-style:var(--gse-ui-button-tertiary-default-border-style);border-width:var(--gse-ui-button-tertiary-default-border-width);}button.gux-tertiary.gux-icon-only{padding:calc(var(--gse-ui-button-default-paddingIconOnly) - var(--gse-ui-button-tertiary-default-border-width))}button.gux-tertiary:hover:enabled{color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}button.gux-tertiary:active:enabled{color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}button.gux-ghost{color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}button.gux-ghost:hover:enabled{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}button.gux-ghost:active:enabled{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}button.gux-danger{color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}button.gux-danger:hover:enabled{color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}button.gux-danger:active:enabled{color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}button.gux-inline{min-inline-size:initial;block-size:initial;padding:0;color:var(--gse-ui-links-default-foregroundColor);background:none;border:none;border-radius:0}button.gux-inline[disabled]{color:var(--gse-ui-links-disabled-foregroundColor)}button.gux-inline:hover:enabled{color:var(--gse-ui-links-hover-foregroundColor);text-decoration:underline;background:none}button.gux-inline:active:enabled{color:var(--gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}";var v=function(o,t,e,r){var i,n=arguments.length,a=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,t,e,r);else for(var s=o.length-1;s>=0;s--)(i=o[s])&&(a=(n<3?i(a):n>3?i(t,e,a):i(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a};const f=class{constructor(t){o(this,t),this.guxdismiss=r(this,"guxdismiss",7),this.position="bottom",this.displayDismissButton=!1,this.closeOnClickOutside=!1,this.isOpen=!1}onKeyDown(o){"Escape"===o.key&&this.dismiss()}onFocusout(o){!this.closeOnClickOutside&&this.displayDismissButton||o.relatedTarget&&!this.root.contains(o.relatedTarget)&&this.dismiss()}checkForClickOutside(o){const t=o.composedPath(),e=h(this.root,this.for),r=t.includes(e);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||r||this.dismiss()}get titleSlot(){return b(this.root,"title")}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=a(h(this.root,this.for),this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const o=h(this.root,this.for);this.popupElement&&o&&s(o,this.popupElement,{placement:this.position,middleware:[u(7),l(),d(),c({element:this.arrowElement,padding:16})]}).then((({x:o,y:t,middlewareData:e,placement:r})=>{Object.assign(this.popupElement.style,{left:`${o}px`,top:`${t}px`});const i=r.split("-")[0],n={top:"bottom",right:"left",bottom:"top",left:"right"}[i],a={top:0,right:90,bottom:180,left:-90}[i],s="left"===i||"right"===i?15:13;if(e.arrow){let o=e.arrow.x;const t=e.arrow.y;"left"!==i&&"right"!==i||(o+=4),this.popupElement.setAttribute("data-placement",r),Object.assign(this.arrowElement.style,{left:null!=o?`${o}px`:"",top:null!=t?`${t}px`:"",right:"",bottom:"",[n]:-s+"px",transform:`rotate(${a}deg)`})}}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1)}connectedCallback(){i(this.root,{variant:this.position})}componentDidLoad(){this.isOpen&&this.runUpdatePosition()}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return t("div",{key:"15ebb2aadb07189b4f08d86b596df4da22475e96",ref:o=>this.popupElement=o,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0},t("div",{key:"cc6a4a445f4280a009f0356becaab363602fd546",ref:o=>this.arrowElement=o,class:"gux-arrow"},t("div",{key:"1420e05736ade46ad1dc37d307dfe9de1bc8b699",class:"gux-arrow-caret"})),this.displayDismissButton&&t("gux-dismiss-button",{key:"30e79e138a5fbc213ef24acd63babb40c5cf94f0",onClick:this.dismiss.bind(this)}),t("div",{key:"42f3ebb6874aecb0c05366d8040a089a627ecd3f",class:{"gux-popover-header":Boolean(this.titleSlot)}},t("slot",{key:"f80d2650eec055b1bc1ceb3d6c0cfdb8a6a9d79d",name:"title"})),t("div",{key:"5d9f7e98d824af66532a5e6c18c1eeb623344b23",class:"gux-popover-content"},t("slot",{key:"71e4810e14d8fb3aeaf19df4c0dee6cd72ef4514"})))}get root(){return e(this)}};v([g({triggerEvents:"mousedown"})],f.prototype,"checkForClickOutside",null),v([function(){let o=!1,t=null;return(e,r,i)=>{const n=i.value;i.value=function(...e){o||(n.apply(this,e),o=!0,clearTimeout(t),t=setTimeout((()=>{o=!1}),100))}}}()],f.prototype,"dismiss",null),f.style=".gux-popover-wrapper{position:absolute;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;padding:var(--gse-ui-popover-padding);background-color:var(--gse-ui-popover-backgroundColor);border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow)}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-height);padding-block-end:4px;overflow:hidden}.gux-popover-wrapper .gux-arrow-caret{inline-size:0;block-size:0;border-block-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid var(--gse-ui-popover-backgroundColor);border-inline-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;border-inline-end:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;filter:drop-shadow(0 0 4px var(--gse-semantic-effects-boxShadow))}.gux-popover-wrapper .gux-popover-header{display:flex;flex-direction:row;place-content:center space-between;align-items:center;padding-block-end:var(--gse-ui-popover-gap);font-family:var(--gse-ui-popover-title-text-fontFamily);font-size:var(--gse-ui-popover-title-text-fontSize);font-weight:var(--gse-ui-popover-title-text-fontWeight);line-height:var(--gse-ui-popover-title-text-lineHeight);color:var(--gse-ui-popover-headerColor)}";export{p as gux_button,f as gux_popover}
@@ -1 +1 @@
1
- import{r as t,h as r,g as i}from"./p-cf74fd3d.js";import{t as o}from"./p-ce4a44ef.js";import{b as e}from"./p-e5e644b3.js";import{t as a}from"./p-f01d2320.js";import{g as s}from"./p-4202e9f2.js";const g=class{constructor(r){t(this,r),this.disabled=!1,this.highlight="orange"}onMouseUp(){this.focusParentList()}onMouseOver(){this.focusParentList()}focusParentList(){const t=s("gux-rich-text-editor-list",this.root);t&&null===t.shadowRoot.activeElement&&(this.root.blur(),t.focus({preventScroll:!0}))}async componentWillLoad(){o(this.root,{variant:this.highlight}),this.i18n=await e(this.root,a)}renderTooltip(){if(!this.disabled&&"inherit"!==this.highlight)return r("gux-tooltip-beta",null,r("div",{slot:"content"},this.i18n(`${this.highlight}`)))}render(){return r("div",{key:"50c3810ca3ad7f64567098681c701703eb4d7922",class:{"gux-highlight":!0,[`gux-${this.highlight}`]:!0},role:"listitem"},r("button",{key:"5d2c996348c87453395739b2c28267cadc7a74c6",type:"button","aria-label":this.i18n(`${this.highlight}`),tabIndex:-1,disabled:this.disabled}),this.renderTooltip())}static get delegatesFocus(){return!0}get root(){return i(this)}};g.style=":host{display:block;border-radius:var(--gse-ui-button-borderRadius)}.gux-highlight{inline-size:var(--gse-ui-rte-colorSwatch-width);block-size:var(--gse-ui-rte-colorSwatch-height);border-radius:var(--gse-ui-button-borderRadius)}.gux-highlight button{all:unset;inline-size:100%;block-size:100%;cursor:pointer}.gux-highlight button:focus-visible{outline:var(--gse-semantic-focusOutline-sm-borderWidth) solid var(--gse-semantic-border-focus);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}.gux-highlight.gux-orange{background-color:var(--gse-ui-rte-colorSwatch-orange-default)}.gux-highlight.gux-coral{background-color:var(--gse-ui-rte-colorSwatch-coral-default)}.gux-highlight.gux-pear{background-color:var(--gse-ui-rte-colorSwatch-pear-default)}.gux-highlight.gux-raspberry{background-color:var(--gse-ui-rte-colorSwatch-raspberry-default)}.gux-highlight.gux-mango{background-color:var(--gse-ui-rte-colorSwatch-mango-default)}.gux-highlight.gux-blue{background-color:var(--gse-ui-rte-colorSwatch-azure-default)}.gux-highlight.gux-mineral{background-color:var(--gse-ui-rte-colorSwatch-mineral-default)}.gux-highlight.gux-island{background-color:var(--gse-ui-rte-colorSwatch-island-default)}.gux-highlight.gux-inherit{color:inherit;background-color:inherit}";export{g as gux_rich_highlight_list_item}
1
+ import{r as t,h as r,g as i}from"./p-cf74fd3d.js";import{t as o}from"./p-989599b2.js";import{b as e}from"./p-e5e644b3.js";import{t as a}from"./p-f01d2320.js";import{g as s}from"./p-4202e9f2.js";const g=class{constructor(r){t(this,r),this.disabled=!1,this.highlight="orange"}onMouseUp(){this.focusParentList()}onMouseOver(){this.focusParentList()}focusParentList(){const t=s("gux-rich-text-editor-list",this.root);t&&null===t.shadowRoot.activeElement&&(this.root.blur(),t.focus({preventScroll:!0}))}async componentWillLoad(){o(this.root,{variant:this.highlight}),this.i18n=await e(this.root,a)}renderTooltip(){if(!this.disabled&&"inherit"!==this.highlight)return r("gux-tooltip-beta",null,r("div",{slot:"content"},this.i18n(`${this.highlight}`)))}render(){return r("div",{key:"50c3810ca3ad7f64567098681c701703eb4d7922",class:{"gux-highlight":!0,[`gux-${this.highlight}`]:!0},role:"listitem"},r("button",{key:"5d2c996348c87453395739b2c28267cadc7a74c6",type:"button","aria-label":this.i18n(`${this.highlight}`),tabIndex:-1,disabled:this.disabled}),this.renderTooltip())}static get delegatesFocus(){return!0}get root(){return i(this)}};g.style=":host{display:block;border-radius:var(--gse-ui-button-borderRadius)}.gux-highlight{inline-size:var(--gse-ui-rte-colorSwatch-width);block-size:var(--gse-ui-rte-colorSwatch-height);border-radius:var(--gse-ui-button-borderRadius)}.gux-highlight button{all:unset;inline-size:100%;block-size:100%;cursor:pointer}.gux-highlight button:focus-visible{outline:var(--gse-semantic-focusOutline-sm-borderWidth) solid var(--gse-semantic-border-focus);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}.gux-highlight.gux-orange{background-color:var(--gse-ui-rte-colorSwatch-orange-default)}.gux-highlight.gux-coral{background-color:var(--gse-ui-rte-colorSwatch-coral-default)}.gux-highlight.gux-pear{background-color:var(--gse-ui-rte-colorSwatch-pear-default)}.gux-highlight.gux-raspberry{background-color:var(--gse-ui-rte-colorSwatch-raspberry-default)}.gux-highlight.gux-mango{background-color:var(--gse-ui-rte-colorSwatch-mango-default)}.gux-highlight.gux-blue{background-color:var(--gse-ui-rte-colorSwatch-azure-default)}.gux-highlight.gux-mineral{background-color:var(--gse-ui-rte-colorSwatch-mineral-default)}.gux-highlight.gux-island{background-color:var(--gse-ui-rte-colorSwatch-island-default)}.gux-highlight.gux-inherit{color:inherit;background-color:inherit}";export{g as gux_rich_highlight_list_item}
@@ -1 +1 @@
1
- import{r as e,h as t,H as i,g as o}from"./p-cf74fd3d.js";import{t as s}from"./p-ce4a44ef.js";import{g as n}from"./p-4202e9f2.js";import{b as a}from"./p-e5e644b3.js";import{t as r}from"./p-f01d2320.js";import{O as u}from"./p-f3d844c7.js";import{b as l}from"./p-cf0e7d3b.js";import{w as d}from"./p-e97879b4.js";import{h as c}from"./p-b2e29026.js";import{a as b,c as g,o as h,f,s as p}from"./p-04c85b3b.js";import{n as m,p as v}from"./p-8d73b418.js";import"./p-43af726d.js";const x=class{constructor(t){e(this,t),this.disabled=!1}onMouseUp(){this.focusParentList()}onMouseOver(){this.focusParentList()}focusParentList(){const e=n("gux-rich-text-editor-list",this.root);e&&null===e.shadowRoot.activeElement&&(this.root.blur(),e.focus({preventScroll:!0}))}componentWillLoad(){s(this.root)}render(){return t(i,{key:"41a3af25f4d4ca67bb03e36953d04622413b5cde",role:"listitem"},t("button",{key:"f3657ff8470ab0bc24bb72fcd21116a736612894",type:"button",tabIndex:-1,disabled:this.disabled},t("gux-truncate",{key:"4b9627629b04d68cce683829149eaef973da78ae","max-lines":1},t("slot",{key:"cd0b368cef0a503eddcb738b9386800fcf1e4686"}))))}static get delegatesFocus(){return!0}get root(){return o(this)}};x.style=":host{inline-size:100%;text-align:start;outline:none}:host([disabled]){pointer-events:none}:host([disabled=false]){pointer-events:auto}::slotted(gux-icon){inline-size:var(--gse-ui-menu-option-startIcon-height);block-size:var(--gse-ui-menu-option-startIcon-height);margin-inline-end:var(--gse-ui-menu-option-gap);vertical-align:middle}button{all:unset;box-sizing:border-box;inline-size:100%;min-block-size:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);font-family:var(--gse-ui-menu-option-label-default-text-fontFamily);font-size:var(--gse-ui-menu-option-label-default-text-fontSize);font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);word-wrap:break-word;cursor:pointer;outline:none;outline-offset:calc(var(--gse-ui-menu-option-focus-border-width) * -1);background-color:var(--gse-ui-menu-option-default-backgroundColor);border:none}button:focus-visible:not(:disabled){outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}button:hover:not(:disabled){background:var(--gse-ui-menu-option-hover-backgroundColor)}button:active:not(:disabled){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);background:var(--gse-ui-menu-option-selected-backgroundColor)}button:disabled{cursor:default;opacity:var(--gse-ui-menu-option-disabled-opacity)}::slotted(*){margin:0}";const k=class{constructor(t){e(this,t),this.isOpen=!1}onClickOutside(){this.isOpen=!1}handleKeyDown(e){const t=e.composedPath().includes(this.listElement),i=e.composedPath().includes(this.button);switch(e.key){case"Escape":t&&(e.preventDefault(),this.isOpen=!1,this.button.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":i&&!this.isOpen&&(e.preventDefault(),this.isOpen=!0,this.focusFirstListItem());break;case"ArrowUp":i&&!this.isOpen&&(e.preventDefault(),this.isOpen=!0,this.focusLastListItem())}}handleKeyup(e){" "===e.key&&e.composedPath().includes(this.button)&&(e.preventDefault(),this.isOpen=!0,this.focusFirstListItem())}focusFirstListItem(){l((()=>{this.listElement.guxFocusFirstItem()}))}focusLastListItem(){l((()=>{this.listElement.guxFocusLastItem()}))}onActionClick(){this.isOpen=!this.isOpen,this.isOpen&&this.focusFirstListItem()}onListClick(e){d("gux-rich-style-list-item",e,(()=>{this.isOpen=!1,this.button.focus()}))}renderTooltip(){return t("gux-tooltip-beta",null,t("div",{slot:"content"},this.i18n("additionalActions")))}async componentWillLoad(){s(this.root),this.i18n=await a(this.root,r)}render(){return t(i,{key:"87963618481ff58c090023c17beab8d53a9b073a"},t("gux-popup",{key:"bda2cc0cc677fdd9c879c89743e66f933bfaefa6",expanded:this.isOpen,offset:4,"exceed-target-width":!0},t("div",{key:"ecce9e9fce1bb889e36ef7f785b8d93cef132842",slot:"target"},t("gux-button-slot",{key:"92f988d6ea66dc95a4e5f67a552ea2ff5c36cd6e",accent:"ghost"},t("button",{key:"8cd5d5dff2e6041c76e5b6d8e71e99d670b68068",type:"button",onClick:()=>this.onActionClick(),ref:e=>this.button=e,"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),disabled:c(this.root)},t("gux-icon",{key:"d94ba218d4dc0987b00ac1f2f8f57fd651bf2c17","icon-name":"fa/ellipsis-vertical-regular","screenreader-text":this.i18n("additionalActions"),size:"small"})),this.renderTooltip())),t("div",{key:"19d637e62a5213f2f368a56ed30b458403fc8d04",slot:"popup",class:"gux-list-container"},t("gux-rich-text-editor-list",{key:"7bb3f2896b1a2d32c3953279662f6f4a2b2644d0",onClick:e=>this.onListClick(e),ref:e=>this.listElement=e},t("slot",{key:"0c346a5c7d6fac4edc8ba7f6d02947e977488831"})))))}static get delegatesFocus(){return!0}get root(){return o(this)}};(function(e,t,i,o){var s,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(a=(n<3?s(a):n>3?s(t,i,a):s(t,i))||a);n>3&&a&&Object.defineProperty(t,i,a)})([u({triggerEvents:"click"})],k.prototype,"onClickOutside",null),k.style=":host{display:block;max-inline-size:fit-content;white-space:normal}button{block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-paddingIconOnly);border-radius:var(--gse-ui-button-borderRadius)}.gux-list-container{inline-size:var(--gse-ui-contextMenu-menu-width);max-block-size:var(--gse-ui-contextMenu-menu-maxHeight);margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}";const y=class{constructor(t){e(this,t),this.isShown=!1}onKeydown(e){switch(e.key){case"Enter":e.stopPropagation(),this.focusOnSubList();break;case"ArrowUp":this.root!==e.target&&(e.preventDefault(),e.stopPropagation(),v(this.root,["gux-rich-style-list-item"]));break;case"ArrowDown":this.root!==e.target&&(e.preventDefault(),e.stopPropagation(),m(this.root,["gux-rich-style-list-item"]));break;case"ArrowRight":e.stopPropagation(),this.show(),this.focusOnSubList();break;case"ArrowLeft":case"Escape":this.root!==e.target&&e.stopPropagation(),this.buttonElement.focus()}}onMouseEnter(){this.show()}onMouseLeave(){this.hide()}onClick(e){"GUX-RICH-STYLE-LIST-ITEM"!==e.target.nodeName||this.hide()}onFocusIn(){this.show()}onFocusOut(){this.hide()}componentDidLoad(){this.isShown&&this.runUpdatePosition()}componentDidUpdate(){this.isShown?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}focusOnSubList(){this.subListContentElement.contains(document.activeElement)||Array.from(this.root.children)[0].focus()}show(){this.isShown=!0}hide(){this.isShown&&(this.isShown=!1)}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=b(this.buttonElement,this.subListElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.subListElement&&g(this.buttonElement,this.subListElement,{placement:"right-start",strategy:"fixed",middleware:[h(4),f(),p()]}).then((({x:e,y:t})=>{Object.assign(this.subListElement.style,{left:`${e}px`,top:`${t}px`})}))}render(){return t(i,{key:"41f07a67b67160e7acb5eba1e44d3cf11c2f0ef5"},t("button",{key:"2c3f37036a7771a887e80c9b1899109876281120",type:"button",class:{"gux-sub-list-button":!0,"gux-sub-list-button-active":this.isShown},tabIndex:-1,role:"listitem",ref:e=>this.buttonElement=e,"aria-haspopup":"true","aria-expanded":this.isShown.toString()},t("span",{key:"c746d5bad2bd6f06bdb1b9d2606575550a20f6f6",class:"gux-sub-list-button-text"},this.label),t("gux-icon",{key:"edfe4891d782c89740752a5e9ef00ca9e3dbce23",size:"small","icon-name":"custom/chevron-right-small-regular",decorative:!0})),t("div",{key:"78190e9338750363b6a604e21658b4859c11aa00",ref:e=>this.subListElement=e,class:{"gux-sub-list-wrapper":!0,"gux-shown":this.isShown}},t("div",{key:"4fc7b3580343a1dc334e38f8e33a000e1e4258eb",role:"list",class:"gux-sub-list-content",ref:e=>this.subListContentElement=e},t("slot",{key:"b9eaacb52a10b22c5f2a5c5d6125367eb48d7378"}))))}static get delegatesFocus(){return!0}get root(){return o(this)}};y.style=":host{inline-size:100%;text-align:start;outline:none}:host([disabled]){pointer-events:none}:host([disabled=false]){pointer-events:auto}::slotted(gux-icon){inline-size:var(--gse-ui-menu-option-startIcon-height);block-size:var(--gse-ui-menu-option-startIcon-height);margin-inline-end:var(--gse-ui-menu-option-gap);vertical-align:middle}button{all:unset;box-sizing:border-box;inline-size:100%;min-block-size:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);font-family:var(--gse-ui-menu-option-label-default-text-fontFamily);font-size:var(--gse-ui-menu-option-label-default-text-fontSize);font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);word-wrap:break-word;cursor:pointer;outline:none;outline-offset:calc(var(--gse-ui-menu-option-focus-border-width) * -1);background-color:var(--gse-ui-menu-option-default-backgroundColor);border:none}button:focus-visible:not(:disabled){outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}button:hover:not(:disabled){background:var(--gse-ui-menu-option-hover-backgroundColor)}button:active:not(:disabled){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);background:var(--gse-ui-menu-option-selected-backgroundColor)}button:disabled{cursor:default;opacity:var(--gse-ui-menu-option-disabled-opacity)}::slotted(*){margin:0}button.gux-sub-list-button{display:flex;flex-direction:row;justify-content:space-between}button gux-icon{align-self:center;color:var(--gse-ui-menu-option-parentIcon-selected-foregroundColor)}.gux-sub-list-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;visibility:hidden;flex-direction:column;inline-size:130px;padding:var(--gse-ui-menu-padding);margin:0;background-color:var(--gse-ui-menu-backgroundColor);border:none;border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}.gux-sub-list-wrapper.gux-shown{visibility:visible}";export{x as gux_rich_style_list_item,k as gux_rich_text_editor_menu,y as gux_rich_text_editor_sub_list}
1
+ import{r as e,h as t,H as i,g as o}from"./p-cf74fd3d.js";import{t as s}from"./p-989599b2.js";import{g as n}from"./p-4202e9f2.js";import{b as a}from"./p-e5e644b3.js";import{t as r}from"./p-f01d2320.js";import{O as u}from"./p-f3d844c7.js";import{b as l}from"./p-cf0e7d3b.js";import{w as d}from"./p-e97879b4.js";import{h as c}from"./p-b2e29026.js";import{a as b,c as g,o as h,f,s as p}from"./p-04c85b3b.js";import{n as m,p as v}from"./p-8d73b418.js";import"./p-43af726d.js";const x=class{constructor(t){e(this,t),this.disabled=!1}onMouseUp(){this.focusParentList()}onMouseOver(){this.focusParentList()}focusParentList(){const e=n("gux-rich-text-editor-list",this.root);e&&null===e.shadowRoot.activeElement&&(this.root.blur(),e.focus({preventScroll:!0}))}componentWillLoad(){s(this.root)}render(){return t(i,{key:"41a3af25f4d4ca67bb03e36953d04622413b5cde",role:"listitem"},t("button",{key:"f3657ff8470ab0bc24bb72fcd21116a736612894",type:"button",tabIndex:-1,disabled:this.disabled},t("gux-truncate",{key:"4b9627629b04d68cce683829149eaef973da78ae","max-lines":1},t("slot",{key:"cd0b368cef0a503eddcb738b9386800fcf1e4686"}))))}static get delegatesFocus(){return!0}get root(){return o(this)}};x.style=":host{inline-size:100%;text-align:start;outline:none}:host([disabled]){pointer-events:none}:host([disabled=false]){pointer-events:auto}::slotted(gux-icon){inline-size:var(--gse-ui-menu-option-startIcon-height);block-size:var(--gse-ui-menu-option-startIcon-height);margin-inline-end:var(--gse-ui-menu-option-gap);vertical-align:middle}button{all:unset;box-sizing:border-box;inline-size:100%;min-block-size:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);font-family:var(--gse-ui-menu-option-label-default-text-fontFamily);font-size:var(--gse-ui-menu-option-label-default-text-fontSize);font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);word-wrap:break-word;cursor:pointer;outline:none;outline-offset:calc(var(--gse-ui-menu-option-focus-border-width) * -1);background-color:var(--gse-ui-menu-option-default-backgroundColor);border:none}button:focus-visible:not(:disabled){outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}button:hover:not(:disabled){background:var(--gse-ui-menu-option-hover-backgroundColor)}button:active:not(:disabled){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);background:var(--gse-ui-menu-option-selected-backgroundColor)}button:disabled{cursor:default;opacity:var(--gse-ui-menu-option-disabled-opacity)}::slotted(*){margin:0}";const k=class{constructor(t){e(this,t),this.isOpen=!1}onClickOutside(){this.isOpen=!1}handleKeyDown(e){const t=e.composedPath().includes(this.listElement),i=e.composedPath().includes(this.button);switch(e.key){case"Escape":t&&(e.preventDefault(),this.isOpen=!1,this.button.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":i&&!this.isOpen&&(e.preventDefault(),this.isOpen=!0,this.focusFirstListItem());break;case"ArrowUp":i&&!this.isOpen&&(e.preventDefault(),this.isOpen=!0,this.focusLastListItem())}}handleKeyup(e){" "===e.key&&e.composedPath().includes(this.button)&&(e.preventDefault(),this.isOpen=!0,this.focusFirstListItem())}focusFirstListItem(){l((()=>{this.listElement.guxFocusFirstItem()}))}focusLastListItem(){l((()=>{this.listElement.guxFocusLastItem()}))}onActionClick(){this.isOpen=!this.isOpen,this.isOpen&&this.focusFirstListItem()}onListClick(e){d("gux-rich-style-list-item",e,(()=>{this.isOpen=!1,this.button.focus()}))}renderTooltip(){return t("gux-tooltip-beta",null,t("div",{slot:"content"},this.i18n("additionalActions")))}async componentWillLoad(){s(this.root),this.i18n=await a(this.root,r)}render(){return t(i,{key:"87963618481ff58c090023c17beab8d53a9b073a"},t("gux-popup",{key:"bda2cc0cc677fdd9c879c89743e66f933bfaefa6",expanded:this.isOpen,offset:4,"exceed-target-width":!0},t("div",{key:"ecce9e9fce1bb889e36ef7f785b8d93cef132842",slot:"target"},t("gux-button-slot",{key:"92f988d6ea66dc95a4e5f67a552ea2ff5c36cd6e",accent:"ghost"},t("button",{key:"8cd5d5dff2e6041c76e5b6d8e71e99d670b68068",type:"button",onClick:()=>this.onActionClick(),ref:e=>this.button=e,"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),disabled:c(this.root)},t("gux-icon",{key:"d94ba218d4dc0987b00ac1f2f8f57fd651bf2c17","icon-name":"fa/ellipsis-vertical-regular","screenreader-text":this.i18n("additionalActions"),size:"small"})),this.renderTooltip())),t("div",{key:"19d637e62a5213f2f368a56ed30b458403fc8d04",slot:"popup",class:"gux-list-container"},t("gux-rich-text-editor-list",{key:"7bb3f2896b1a2d32c3953279662f6f4a2b2644d0",onClick:e=>this.onListClick(e),ref:e=>this.listElement=e},t("slot",{key:"0c346a5c7d6fac4edc8ba7f6d02947e977488831"})))))}static get delegatesFocus(){return!0}get root(){return o(this)}};(function(e,t,i,o){var s,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(a=(n<3?s(a):n>3?s(t,i,a):s(t,i))||a);n>3&&a&&Object.defineProperty(t,i,a)})([u({triggerEvents:"click"})],k.prototype,"onClickOutside",null),k.style=":host{display:block;max-inline-size:fit-content;white-space:normal}button{block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-paddingIconOnly);border-radius:var(--gse-ui-button-borderRadius)}.gux-list-container{inline-size:var(--gse-ui-contextMenu-menu-width);max-block-size:var(--gse-ui-contextMenu-menu-maxHeight);margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}";const y=class{constructor(t){e(this,t),this.isShown=!1}onKeydown(e){switch(e.key){case"Enter":e.stopPropagation(),this.focusOnSubList();break;case"ArrowUp":this.root!==e.target&&(e.preventDefault(),e.stopPropagation(),v(this.root,["gux-rich-style-list-item"]));break;case"ArrowDown":this.root!==e.target&&(e.preventDefault(),e.stopPropagation(),m(this.root,["gux-rich-style-list-item"]));break;case"ArrowRight":e.stopPropagation(),this.show(),this.focusOnSubList();break;case"ArrowLeft":case"Escape":this.root!==e.target&&e.stopPropagation(),this.buttonElement.focus()}}onMouseEnter(){this.show()}onMouseLeave(){this.hide()}onClick(e){"GUX-RICH-STYLE-LIST-ITEM"!==e.target.nodeName||this.hide()}onFocusIn(){this.show()}onFocusOut(){this.hide()}componentDidLoad(){this.isShown&&this.runUpdatePosition()}componentDidUpdate(){this.isShown?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}focusOnSubList(){this.subListContentElement.contains(document.activeElement)||Array.from(this.root.children)[0].focus()}show(){this.isShown=!0}hide(){this.isShown&&(this.isShown=!1)}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=b(this.buttonElement,this.subListElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.subListElement&&g(this.buttonElement,this.subListElement,{placement:"right-start",strategy:"fixed",middleware:[h(4),f(),p()]}).then((({x:e,y:t})=>{Object.assign(this.subListElement.style,{left:`${e}px`,top:`${t}px`})}))}render(){return t(i,{key:"41f07a67b67160e7acb5eba1e44d3cf11c2f0ef5"},t("button",{key:"2c3f37036a7771a887e80c9b1899109876281120",type:"button",class:{"gux-sub-list-button":!0,"gux-sub-list-button-active":this.isShown},tabIndex:-1,role:"listitem",ref:e=>this.buttonElement=e,"aria-haspopup":"true","aria-expanded":this.isShown.toString()},t("span",{key:"c746d5bad2bd6f06bdb1b9d2606575550a20f6f6",class:"gux-sub-list-button-text"},this.label),t("gux-icon",{key:"edfe4891d782c89740752a5e9ef00ca9e3dbce23",size:"small","icon-name":"custom/chevron-right-small-regular",decorative:!0})),t("div",{key:"78190e9338750363b6a604e21658b4859c11aa00",ref:e=>this.subListElement=e,class:{"gux-sub-list-wrapper":!0,"gux-shown":this.isShown}},t("div",{key:"4fc7b3580343a1dc334e38f8e33a000e1e4258eb",role:"list",class:"gux-sub-list-content",ref:e=>this.subListContentElement=e},t("slot",{key:"b9eaacb52a10b22c5f2a5c5d6125367eb48d7378"}))))}static get delegatesFocus(){return!0}get root(){return o(this)}};y.style=":host{inline-size:100%;text-align:start;outline:none}:host([disabled]){pointer-events:none}:host([disabled=false]){pointer-events:auto}::slotted(gux-icon){inline-size:var(--gse-ui-menu-option-startIcon-height);block-size:var(--gse-ui-menu-option-startIcon-height);margin-inline-end:var(--gse-ui-menu-option-gap);vertical-align:middle}button{all:unset;box-sizing:border-box;inline-size:100%;min-block-size:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);font-family:var(--gse-ui-menu-option-label-default-text-fontFamily);font-size:var(--gse-ui-menu-option-label-default-text-fontSize);font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);word-wrap:break-word;cursor:pointer;outline:none;outline-offset:calc(var(--gse-ui-menu-option-focus-border-width) * -1);background-color:var(--gse-ui-menu-option-default-backgroundColor);border:none}button:focus-visible:not(:disabled){outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}button:hover:not(:disabled){background:var(--gse-ui-menu-option-hover-backgroundColor)}button:active:not(:disabled){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);background:var(--gse-ui-menu-option-selected-backgroundColor)}button:disabled{cursor:default;opacity:var(--gse-ui-menu-option-disabled-opacity)}::slotted(*){margin:0}button.gux-sub-list-button{display:flex;flex-direction:row;justify-content:space-between}button gux-icon{align-self:center;color:var(--gse-ui-menu-option-parentIcon-selected-foregroundColor)}.gux-sub-list-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;visibility:hidden;flex-direction:column;inline-size:130px;padding:var(--gse-ui-menu-padding);margin:0;background-color:var(--gse-ui-menu-backgroundColor);border:none;border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}.gux-sub-list-wrapper.gux-shown{visibility:visible}";export{x as gux_rich_style_list_item,k as gux_rich_text_editor_menu,y as gux_rich_text_editor_sub_list}