genesys-spark-components 4.105.1 → 4.105.3

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 (317) hide show
  1. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  2. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-avatar-beta.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-avatar-group-item-beta.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-button_4.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-form-field-file.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-popover-beta.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-popover-list-beta.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-side-panel-beta.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-side-panel-heading.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  88. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  91. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  92. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  93. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
  95. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  96. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  97. package/dist/cjs/gux-toggle-slider.cjs.entry.js +5 -10
  98. package/dist/cjs/gux-toggle.cjs.entry.js +4 -3
  99. package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +1 -1
  100. package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
  101. package/dist/cjs/{usage-440a88b1.js → usage-05f0464c.js} +6 -6
  102. package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.js +5 -10
  103. package/dist/collection/components/stable/gux-toggle/gux-toggle.js +3 -2
  104. package/dist/esm/gux-accordion.entry.js +1 -1
  105. package/dist/esm/gux-action-button.entry.js +1 -1
  106. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  107. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  108. package/dist/esm/gux-announce-beta.entry.js +1 -1
  109. package/dist/esm/gux-avatar-beta.entry.js +1 -1
  110. package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
  111. package/dist/esm/gux-avatar-group-beta.entry.js +1 -1
  112. package/dist/esm/gux-avatar-group-item-beta.entry.js +1 -1
  113. package/dist/esm/gux-badge.entry.js +1 -1
  114. package/dist/esm/gux-blank-state.entry.js +1 -1
  115. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  116. package/dist/esm/gux-button-multi.entry.js +1 -1
  117. package/dist/esm/gux-button-slot.entry.js +1 -1
  118. package/dist/esm/gux-button_4.entry.js +1 -1
  119. package/dist/esm/gux-calendar.entry.js +1 -1
  120. package/dist/esm/gux-card.entry.js +1 -1
  121. package/dist/esm/gux-column-manager.entry.js +1 -1
  122. package/dist/esm/gux-content-search.entry.js +1 -1
  123. package/dist/esm/gux-context-menu.entry.js +1 -1
  124. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  125. package/dist/esm/gux-date-beta.entry.js +1 -1
  126. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  127. package/dist/esm/gux-datepicker.entry.js +1 -1
  128. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  129. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  130. package/dist/esm/gux-dropdown-multi.entry.js +1 -1
  131. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  132. package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
  133. package/dist/esm/gux-flyout-menu.entry.js +1 -1
  134. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +1 -1
  135. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  136. package/dist/esm/gux-form-field-color.entry.js +1 -1
  137. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  138. package/dist/esm/gux-form-field-file.entry.js +1 -1
  139. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  140. package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
  141. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  142. package/dist/esm/gux-form-field-radio-group-beta.entry.js +1 -1
  143. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  144. package/dist/esm/gux-form-field-range.entry.js +1 -1
  145. package/dist/esm/gux-form-field-search.entry.js +1 -1
  146. package/dist/esm/gux-form-field-select.entry.js +1 -1
  147. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  148. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  149. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  150. package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
  151. package/dist/esm/gux-form-footer.entry.js +1 -1
  152. package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
  153. package/dist/esm/gux-icon.entry.js +1 -1
  154. package/dist/esm/gux-inline-alert.entry.js +1 -1
  155. package/dist/esm/gux-label-info-beta.entry.js +1 -1
  156. package/dist/esm/gux-list.entry.js +1 -1
  157. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  158. package/dist/esm/gux-loading-message.entry.js +1 -1
  159. package/dist/esm/gux-modal-legacy.entry.js +1 -1
  160. package/dist/esm/gux-modal-side-panel-beta.entry.js +1 -1
  161. package/dist/esm/gux-modal.entry.js +1 -1
  162. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  163. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  164. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  165. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  166. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  167. package/dist/esm/gux-pagination.entry.js +1 -1
  168. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  169. package/dist/esm/gux-popover-beta.entry.js +1 -1
  170. package/dist/esm/gux-popover-list-beta.entry.js +1 -1
  171. package/dist/esm/gux-popover-list.entry.js +1 -1
  172. package/dist/esm/gux-radial-loading.entry.js +1 -1
  173. package/dist/esm/gux-radial-progress.entry.js +1 -1
  174. package/dist/esm/gux-rating.entry.js +1 -1
  175. package/dist/esm/gux-rich-text-editor-action.entry.js +1 -1
  176. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  177. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  178. package/dist/esm/gux-selector-card-beta.entry.js +1 -1
  179. package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
  180. package/dist/esm/gux-side-panel-beta.entry.js +1 -1
  181. package/dist/esm/gux-side-panel-heading.entry.js +1 -1
  182. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  183. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  184. package/dist/esm/gux-sort-control.entry.js +1 -1
  185. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  186. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  187. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  188. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  189. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  190. package/dist/esm/gux-table.entry.js +1 -1
  191. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  192. package/dist/esm/gux-tabs.entry.js +1 -1
  193. package/dist/esm/gux-tag.entry.js +1 -1
  194. package/dist/esm/gux-text-highlight.entry.js +1 -1
  195. package/dist/esm/gux-time-beta.entry.js +1 -1
  196. package/dist/esm/gux-time-picker.entry.js +1 -1
  197. package/dist/esm/gux-time-zone-beta.entry.js +1 -1
  198. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  199. package/dist/esm/gux-toast.entry.js +1 -1
  200. package/dist/esm/gux-toggle-slider.entry.js +5 -10
  201. package/dist/esm/gux-toggle.entry.js +4 -3
  202. package/dist/esm/gux-tooltip-base-beta_2.entry.js +1 -1
  203. package/dist/esm/gux-tooltip.entry.js +1 -1
  204. package/dist/esm/{usage-c2c9262f.js → usage-aaff03b9.js} +6 -6
  205. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  206. package/dist/genesys-webcomponents/{p-65618bdb.entry.js → p-002b7d44.entry.js} +1 -1
  207. package/dist/genesys-webcomponents/{p-d408479f.entry.js → p-003c761e.entry.js} +1 -1
  208. package/dist/genesys-webcomponents/{p-9dd1ea65.entry.js → p-0212242f.entry.js} +1 -1
  209. package/dist/genesys-webcomponents/{p-ad2e1bca.entry.js → p-090e4a04.entry.js} +1 -1
  210. package/dist/genesys-webcomponents/{p-c6ee9833.entry.js → p-0dcff7f6.entry.js} +1 -1
  211. package/dist/genesys-webcomponents/{p-84521023.entry.js → p-12ab5fd1.entry.js} +1 -1
  212. package/dist/genesys-webcomponents/{p-d7cdd2a7.entry.js → p-14316985.entry.js} +1 -1
  213. package/dist/genesys-webcomponents/{p-189da1b1.entry.js → p-1449dc96.entry.js} +1 -1
  214. package/dist/genesys-webcomponents/{p-5f15c3aa.entry.js → p-14e2a598.entry.js} +1 -1
  215. package/dist/genesys-webcomponents/{p-197d7819.entry.js → p-1512ba00.entry.js} +1 -1
  216. package/dist/genesys-webcomponents/p-174857fb.entry.js +1 -0
  217. package/dist/genesys-webcomponents/{p-1d668216.entry.js → p-1e552047.entry.js} +1 -1
  218. package/dist/genesys-webcomponents/{p-1f6eb412.entry.js → p-206f2ff8.entry.js} +1 -1
  219. package/dist/genesys-webcomponents/{p-821d7d5b.entry.js → p-240ef31b.entry.js} +1 -1
  220. package/dist/genesys-webcomponents/{p-6cac7ff5.entry.js → p-26cd1e55.entry.js} +1 -1
  221. package/dist/genesys-webcomponents/{p-c4005c24.entry.js → p-26fb0c43.entry.js} +1 -1
  222. package/dist/genesys-webcomponents/{p-9b54946d.entry.js → p-283badd5.entry.js} +1 -1
  223. package/dist/genesys-webcomponents/{p-bbffaeee.entry.js → p-2ce9ed0a.entry.js} +1 -1
  224. package/dist/genesys-webcomponents/{p-e03eb567.entry.js → p-2fc7c253.entry.js} +1 -1
  225. package/dist/genesys-webcomponents/{p-a8b0dd33.entry.js → p-333a7de9.entry.js} +1 -1
  226. package/dist/genesys-webcomponents/{p-b3107a6d.entry.js → p-35e0d7d3.entry.js} +1 -1
  227. package/dist/genesys-webcomponents/{p-e15590fb.entry.js → p-3914bb04.entry.js} +1 -1
  228. package/dist/genesys-webcomponents/{p-429d6f95.entry.js → p-3c36fc3d.entry.js} +1 -1
  229. package/dist/genesys-webcomponents/{p-3a5a5bf9.entry.js → p-3f233cc8.entry.js} +1 -1
  230. package/dist/genesys-webcomponents/{p-fffb0199.entry.js → p-4045f94f.entry.js} +1 -1
  231. package/dist/genesys-webcomponents/{p-d423482b.entry.js → p-431a8ac2.entry.js} +1 -1
  232. package/dist/genesys-webcomponents/{p-4d490f54.entry.js → p-438a420c.entry.js} +1 -1
  233. package/dist/genesys-webcomponents/{p-265481cf.entry.js → p-466e5424.entry.js} +1 -1
  234. package/dist/genesys-webcomponents/{p-f9d5c5e4.entry.js → p-489595eb.entry.js} +1 -1
  235. package/dist/genesys-webcomponents/{p-4410f0c7.entry.js → p-490d27c3.entry.js} +1 -1
  236. package/dist/genesys-webcomponents/{p-a309c039.entry.js → p-4a14139c.entry.js} +1 -1
  237. package/dist/genesys-webcomponents/{p-0a4604d4.entry.js → p-4dedc3c4.entry.js} +1 -1
  238. package/dist/genesys-webcomponents/{p-b4015c6d.entry.js → p-5aaaafde.entry.js} +1 -1
  239. package/dist/genesys-webcomponents/{p-aacf38a4.entry.js → p-5bc6f171.entry.js} +1 -1
  240. package/dist/genesys-webcomponents/{p-8bdbc352.entry.js → p-600493d8.entry.js} +1 -1
  241. package/dist/genesys-webcomponents/{p-c641b994.entry.js → p-622c47f7.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/{p-f990a0d8.entry.js → p-624b953c.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/{p-4512a622.entry.js → p-641a5c83.entry.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-c7aae83c.entry.js → p-65f38ef8.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/p-68b63f1e.entry.js +1 -0
  246. package/dist/genesys-webcomponents/p-69bf6418.entry.js +1 -0
  247. package/dist/genesys-webcomponents/{p-2fe339cf.entry.js → p-69f83419.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/{p-803b7e87.entry.js → p-6c5a617a.entry.js} +1 -1
  249. package/dist/genesys-webcomponents/{p-08818707.entry.js → p-6e0a595a.entry.js} +1 -1
  250. package/dist/genesys-webcomponents/{p-b555398c.entry.js → p-6f8575aa.entry.js} +1 -1
  251. package/dist/genesys-webcomponents/{p-151012d0.entry.js → p-70fa3baf.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-22e214c7.entry.js → p-7143963a.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-f7e7c346.entry.js → p-7226d5a8.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-caf39b33.entry.js → p-73ffd6e4.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/p-76a7f605.entry.js +1 -0
  256. package/dist/genesys-webcomponents/{p-b996c302.entry.js → p-79458a6e.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/{p-e5689d33.entry.js → p-796c5fc2.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/{p-b66bde6e.entry.js → p-7b6db55a.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/{p-a6b4c01e.entry.js → p-7c6a73aa.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-1da7cb11.entry.js → p-7e1e473e.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/{p-f05dbadc.entry.js → p-7eeb9b71.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/{p-cf64b647.entry.js → p-7eedb041.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/{p-2400a91d.entry.js → p-816111ff.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/{p-7ea72e2b.entry.js → p-83b193a9.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-6c983bc4.entry.js → p-84711ff2.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-e5330348.entry.js → p-86962d7e.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-13230200.entry.js → p-888c5c7c.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-225d572e.entry.js → p-8c1d3c8f.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-1308d393.entry.js → p-940a37fb.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-d5467af5.entry.js → p-99489b6b.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-f6e8ae24.entry.js → p-995d5c24.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-f6eddef5.entry.js → p-a7f21088.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-9fb709d5.entry.js → p-ad680e01.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-48c5f946.entry.js → p-adae5105.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-65ecd1f6.entry.js → p-ae85aba3.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/p-b033e35b.entry.js +1 -0
  277. package/dist/genesys-webcomponents/{p-39f984d0.entry.js → p-b422e8b8.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-dafb39f1.entry.js → p-b87a5a02.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/p-bf5ec12f.entry.js +1 -0
  280. package/dist/genesys-webcomponents/{p-8e2428bd.entry.js → p-c2f7e2e7.entry.js} +1 -1
  281. package/dist/genesys-webcomponents/{p-4f49012e.entry.js → p-c84455c2.entry.js} +1 -1
  282. package/dist/genesys-webcomponents/{p-d69d75e0.entry.js → p-c8d9c7d4.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-e1618c87.entry.js → p-cbed0d7e.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/{p-dced15f6.entry.js → p-cf35fc93.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/{p-6429bc7a.entry.js → p-d3e9eedf.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-8ab88a36.entry.js → p-d6809df3.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-6f413aea.js → p-d6f40cf6.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-a12e1872.entry.js → p-d7262194.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-5eb503ee.entry.js → p-d7526554.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/p-dc9c37b0.entry.js +1 -0
  291. package/dist/genesys-webcomponents/p-dd679ceb.entry.js +1 -0
  292. package/dist/genesys-webcomponents/{p-f52cce50.entry.js → p-e0523ad6.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-8f74a760.entry.js → p-e1a555f9.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-1f584671.entry.js → p-e1d67eef.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-01bedb0e.entry.js → p-e339a3f0.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-d415c165.entry.js → p-e4966e40.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-a4303cd2.entry.js → p-e754ecc3.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-6b11a157.entry.js → p-e8e2196e.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-18915996.entry.js → p-ec8b49f5.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-155d58b4.entry.js → p-ed6efccc.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/{p-634a6acd.entry.js → p-ee260998.entry.js} +1 -1
  302. package/dist/genesys-webcomponents/{p-6e750474.entry.js → p-f2df10ae.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-e657d4d5.entry.js → p-fb58b227.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-2a0f51c3.entry.js → p-fb6b9ab5.entry.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-f00eb74e.entry.js → p-fb74b938.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-53296e7e.entry.js → p-fd1c124a.entry.js} +1 -1
  307. package/dist/stencil-wrapper.js +1 -1
  308. package/dist/types/stencil-wrapper.d.ts +1 -1
  309. package/package.json +6 -6
  310. package/dist/genesys-webcomponents/p-01bc1e12.entry.js +0 -1
  311. package/dist/genesys-webcomponents/p-17afcb4e.entry.js +0 -1
  312. package/dist/genesys-webcomponents/p-5d0101ec.entry.js +0 -1
  313. package/dist/genesys-webcomponents/p-5d31e077.entry.js +0 -1
  314. package/dist/genesys-webcomponents/p-b15335db.entry.js +0 -1
  315. package/dist/genesys-webcomponents/p-b7e075a3.entry.js +0 -1
  316. package/dist/genesys-webcomponents/p-d6800f7f.entry.js +0 -1
  317. package/dist/genesys-webcomponents/p-e6544a66.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,h as i,H as a,g as s}from"./p-6e010355.js";import{s as e}from"./p-2c25e2f2.js";import{c as r}from"./p-a43079c8.js";import{t as o}from"./p-6f413aea.js";import{a as n}from"./p-8eaf8caf.js";const h=class{constructor(i){t(this,i),this.value=0,this.maxValue=5,this.disabled=!1,this.readonly=!1,this.increment="default"}onClick(t){if(t.stopPropagation(),this.disabled||this.readonly)return;const[i]=t.composedPath(),a=i.getRootNode(),s=Array.from(this.starContainer.children).findIndex((t=>t.shadowRoot===a))+1;s===this.value+.5?this.updateRatingValue(s):s===this.value?this.updateRatingValue(0):s!==Math.floor(this.value)?this.updateRatingValue("half"===this.increment?s-.5:s):this.updateRatingValue(s)}onKeyDown(t){if(t.stopPropagation(),this.disabled||this.readonly)return;const i="half"===this.increment?.5:1;switch(t.key){case"ArrowUp":t.preventDefault(),this.updateRatingValue(this.value+i);break;case"ArrowDown":t.preventDefault(),this.updateRatingValue(this.value-i);break;case"End":t.preventDefault(),this.updateRatingValue(1/0);break;case"Home":t.preventDefault(),this.updateRatingValue(-1/0)}}updateRatingValue(t){const i=r(t,0,Array.from(this.starContainer.children).length),a="half"===this.increment?.5:1,s=Math.round(i/a)*a;this.value!==s&&(this.value=s,e(this.root,"input"),e(this.root,"change"))}getRatingStarElements(){return[...Array(this.maxValue).keys()].reduce(((t,i)=>t.concat(i+.5===this.value?"fa/star-sharp-half-stroke-regular":i+1<=this.value?"fa/star-solid":"fa/star-regular")),[]).map((t=>i("gux-icon",{"icon-name":t,decorative:!0})))}getTabIndex(){return this.disabled?-1:0}componentWillLoad(){o(this.root)}componentDidLoad(){this.root.getAttribute("aria-label")||this.root.getAttribute("aria-labelledby")||n(this.root,"`gux-rating` requires a label. Either provide a label and associate it with the gux-rating element using `aria-labelledby` or add an `aria-label` attribute to the gux-rating element.")}render(){return i(a,{key:"45411c1655a6a9732c340ac435bd006971b21445",role:"spinbutton",tabindex:this.getTabIndex(),"aria-readonly":this.readonly.toString(),"aria-valuenow":this.value,"aria-valuemin":"0","aria-valuemax":this.maxValue},i("div",{key:"0bc889c9cfd3275304c20f296925f147074e05c4",ref:t=>this.starContainer=t,class:{"gux-rating-star-container":!0,"gux-disabled":this.disabled}},this.getRatingStarElements()))}get root(){return s(this)}};h.style=":host{display:inline-block;min-inline-size:fit-content;user-select:none}:host(:host:focus-visible){outline:var(--gse-semantic-border-focus) solid var(--gse-semantic-focusOutline-sm-borderWidth);outline-offset:var(--gse-semantic-focusOutline-offset);box-shadow:0 0 0 1px var(--gse-semantic-border-focus)}.gux-rating-star-container{display:flex;gap:var(--gse-ui-rating-star-gap);justify-content:space-between;color:var(--gse-ui-rating-default-color)}.gux-rating-star-container.gux-disabled{color:var(--gse-ui-rating-disabled-color);pointer-events:none;opacity:var(--gse-ui-rating-disabled-opacity)}.gux-rating-star-container gux-icon{flex:0 0 auto;inline-size:var(--gse-ui-rating-size);block-size:var(--gse-ui-rating-size);color:var(--gse-ui-rating-default-color)}.gux-rating-star-container gux-icon:hover:not(.gux-disabled){color:var(--gse-ui-rating-hover-color)}";export{h as gux_rating}
1
+ import{r as t,h as i,H as a,g as s}from"./p-6e010355.js";import{s as e}from"./p-2c25e2f2.js";import{c as r}from"./p-a43079c8.js";import{t as o}from"./p-d6f40cf6.js";import{a as n}from"./p-8eaf8caf.js";const h=class{constructor(i){t(this,i),this.value=0,this.maxValue=5,this.disabled=!1,this.readonly=!1,this.increment="default"}onClick(t){if(t.stopPropagation(),this.disabled||this.readonly)return;const[i]=t.composedPath(),a=i.getRootNode(),s=Array.from(this.starContainer.children).findIndex((t=>t.shadowRoot===a))+1;s===this.value+.5?this.updateRatingValue(s):s===this.value?this.updateRatingValue(0):s!==Math.floor(this.value)?this.updateRatingValue("half"===this.increment?s-.5:s):this.updateRatingValue(s)}onKeyDown(t){if(t.stopPropagation(),this.disabled||this.readonly)return;const i="half"===this.increment?.5:1;switch(t.key){case"ArrowUp":t.preventDefault(),this.updateRatingValue(this.value+i);break;case"ArrowDown":t.preventDefault(),this.updateRatingValue(this.value-i);break;case"End":t.preventDefault(),this.updateRatingValue(1/0);break;case"Home":t.preventDefault(),this.updateRatingValue(-1/0)}}updateRatingValue(t){const i=r(t,0,Array.from(this.starContainer.children).length),a="half"===this.increment?.5:1,s=Math.round(i/a)*a;this.value!==s&&(this.value=s,e(this.root,"input"),e(this.root,"change"))}getRatingStarElements(){return[...Array(this.maxValue).keys()].reduce(((t,i)=>t.concat(i+.5===this.value?"fa/star-sharp-half-stroke-regular":i+1<=this.value?"fa/star-solid":"fa/star-regular")),[]).map((t=>i("gux-icon",{"icon-name":t,decorative:!0})))}getTabIndex(){return this.disabled?-1:0}componentWillLoad(){o(this.root)}componentDidLoad(){this.root.getAttribute("aria-label")||this.root.getAttribute("aria-labelledby")||n(this.root,"`gux-rating` requires a label. Either provide a label and associate it with the gux-rating element using `aria-labelledby` or add an `aria-label` attribute to the gux-rating element.")}render(){return i(a,{key:"45411c1655a6a9732c340ac435bd006971b21445",role:"spinbutton",tabindex:this.getTabIndex(),"aria-readonly":this.readonly.toString(),"aria-valuenow":this.value,"aria-valuemin":"0","aria-valuemax":this.maxValue},i("div",{key:"0bc889c9cfd3275304c20f296925f147074e05c4",ref:t=>this.starContainer=t,class:{"gux-rating-star-container":!0,"gux-disabled":this.disabled}},this.getRatingStarElements()))}get root(){return s(this)}};h.style=":host{display:inline-block;min-inline-size:fit-content;user-select:none}:host(:host:focus-visible){outline:var(--gse-semantic-border-focus) solid var(--gse-semantic-focusOutline-sm-borderWidth);outline-offset:var(--gse-semantic-focusOutline-offset);box-shadow:0 0 0 1px var(--gse-semantic-border-focus)}.gux-rating-star-container{display:flex;gap:var(--gse-ui-rating-star-gap);justify-content:space-between;color:var(--gse-ui-rating-default-color)}.gux-rating-star-container.gux-disabled{color:var(--gse-ui-rating-disabled-color);pointer-events:none;opacity:var(--gse-ui-rating-disabled-opacity)}.gux-rating-star-container gux-icon{flex:0 0 auto;inline-size:var(--gse-ui-rating-size);block-size:var(--gse-ui-rating-size);color:var(--gse-ui-rating-default-color)}.gux-rating-star-container gux-icon:hover:not(.gux-disabled){color:var(--gse-ui-rating-hover-color)}";export{h as gux_rating}
@@ -1 +1 @@
1
- import{r as t,h as e,g as r}from"./p-6e010355.js";import{t as i}from"./p-6f413aea.js";import{O as o}from"./p-b0758688.js";import{b as s,g as n}from"./p-a82e4a04.js";import{u as a,a as u}from"./p-2319558c.js";import{s as l}from"./p-2c25e2f2.js";import{b as h}from"./p-cf0e7d3b.js";import{g,a as c,b as d}from"./p-67d92675.js";import"./p-4202e9f2.js";import"./p-43af726d.js";const p={toggleCalendar:"Toggle month calendar view",month:"Month",year:"Year",unset:"Unset"};const f={year:"numeric",month:"long"},m=["ar","he","ja","ko","zh-cn","zh-tw"],b=class{constructor(e){t(this,e),this.value=void 0,this.min=void 0,this.max=void 0,this.disabled=!1,this.expanded=!1,this.locale=void 0}onKeyDown(t){"Escape"===t.key&&(this.expanded=!1,this.calendarToggleButtonElement.focus())}onValueUpdate(t){this.value=this.isOutOfBounds(t)?this.isBeforeMin(t)?this.min:this.max:t,l(this.root,"input"),l(this.root,"change")}onClickOutside(){this.expanded=!1}async componentWillLoad(){i(this.root),this.i18n=await s(this.root,p),this.locale=a()?u(this.root):n(this.root)}onFocusout(t){t.relatedTarget&&!this.root.contains(t.relatedTarget)&&(this.expanded=!1)}isOutOfBounds(t){return this.isBeforeMin(t)||this.isAfterMax(t)}isBeforeMin(t){return this.min&&this.min>t}isAfterMax(t){return this.max&&this.max<t}toggleCalendar(){this.expanded=!this.expanded,this.expanded&&h((()=>{this.monthCalendarElement.guxFocus(this.value)}))}onMonthCalendarInput(){this.value=this.monthCalendarElement.value,this.expanded=!1,this.calendarToggleButtonElement.focus()}incrementMonth(t){if(this.value){const{year:e,month:r}=g(this.value),i=((parseInt(r)+11+t)%12+1).toString().padStart(2,"0");this.value=c(e,i)}else this.value=d()}incrementYear(t){if(this.value){const{year:e,month:r}=g(this.value),i=Math.max(Number(e)+t,0).toString();this.value=c(i,r)}else this.value=d()}onSpinnerKeyDown(t,e,r){switch(t.key){case"ArrowDown":t.preventDefault(),e(-1);break;case"ArrowUp":t.preventDefault(),e(1);break;case"ArrowLeft":case"ArrowRight":t.preventDefault(),r.focus();break;case"Enter":t.preventDefault(),this.expanded=!0,h((()=>{this.monthCalendarElement.guxFocus(this.value)}));break;case" ":t.preventDefault()}}onSpinnerKeyUp(t){t.stopPropagation()," "===t.key&&(t.preventDefault(),this.expanded=!0,h((()=>{this.monthCalendarElement.guxFocus(this.value)})))}onSpinnerClick(){this.expanded=!0}getSpinnerLabel(t){if(this.value){const{year:e,month:r}=g(this.value);return new Date(Number(e),Number(r)-1).toLocaleDateString(this.locale,{[t]:f[t]})}return this.i18n(t)}getSpinnerValueNow(t){return this.value?g(this.value)[t]:"0"}getSpinnerValueText(){if(this.value){const{year:t,month:e}=g(this.value);return new Date(Number(t),Number(e)-1).toLocaleDateString(this.locale,{year:"numeric",month:"long"})}return this.i18n("unset")}renderMonthSpinnerButton(){return e("div",{role:"spinbutton",class:"gux-spinner",tabIndex:this.disabled?-1:0,onKeyDown:t=>this.onSpinnerKeyDown(t,(t=>this.incrementMonth(t)),this.yearSpinnerElement),onKeyUp:t=>this.onSpinnerKeyUp(t),onClick:()=>this.onSpinnerClick(),ref:t=>this.monthSpinnerElement=t,"aria-valuenow":this.getSpinnerValueNow("month"),"aria-valuetext":this.getSpinnerValueText(),"aria-valuemin":"1","aria-valuemax":"12","aria-label":this.i18n("month")},this.getSpinnerLabel("month"))}renderYearSpinnerButton(){return e("div",{role:"spinbutton",class:"gux-spinner",tabIndex:this.disabled?-1:0,onKeyDown:t=>this.onSpinnerKeyDown(t,(t=>this.incrementYear(t)),this.monthSpinnerElement),onKeyUp:t=>this.onSpinnerKeyUp(t),onClick:()=>this.onSpinnerClick(),ref:t=>this.yearSpinnerElement=t,"aria-valuenow":this.getSpinnerValueNow("year"),"aria-valuetext":this.getSpinnerValueText(),"aria-valuemin":"0","aria-label":this.i18n("year")},this.getSpinnerLabel("year"))}renderSpinnerButtons(){return m.includes(this.locale)?e("span",{class:"gux-display"},this.renderYearSpinnerButton(),this.renderMonthSpinnerButton()):e("span",{class:"gux-display"},this.renderMonthSpinnerButton(),this.renderYearSpinnerButton())}renderCalendarToggleButton(){return e("button",{class:{"gux-popup-toggle":!0,"gux-expanded":this.expanded},ref:t=>this.calendarToggleButtonElement=t,type:"button",onClick:()=>this.toggleCalendar(),disabled:this.disabled},e("gux-icon",{"icon-name":"fa/calendar-regular","screenreader-text":this.i18n("toggleCalendar")}))}renderTarget(){return e("div",{class:"gux-target",slot:"target"},this.renderSpinnerButtons(),this.renderCalendarToggleButton())}renderPopup(){return e("gux-month-calendar",{slot:"popup",ref:t=>this.monthCalendarElement=t,onInput:()=>this.onMonthCalendarInput(),value:this.value,min:this.min,max:this.max})}render(){return e("gux-popup",{key:"3e874f28af6bae4dd53e4f805751401fa48b2fb3",expanded:this.expanded,disabled:this.disabled,"exceed-target-width":!0},this.renderTarget(),this.renderPopup())}get root(){return r(this)}static get watchers(){return{value:["onValueUpdate"]}}};(function(t,e,r,i){var o,s=arguments.length,n=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);s>3&&n&&Object.defineProperty(e,r,n)})([o({triggerEvents:"mousedown"})],b.prototype,"onClickOutside",null),b.style=":host{display:inline-block}.gux-target{display:inline-flex;gap:var(--gse-ui-formControl-input-gap);padding:var(--gse-ui-formControl-textarea-padding);cursor:pointer;background-color:var(--gse-ui-calendarMenu-backgroundColor);border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target:focus-within{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius);outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target .gux-display{display:inline-flex;align-items:center;min-inline-size:100px;padding-inline-end:var(--gse-ui-formControl-input-gap);font-family:var(--gse-ui-formControl-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-formControl-label-text-fontWeight);line-height:var(--gse-ui-formControl-label-text-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-target .gux-display .gux-spinner{outline:none}.gux-target .gux-display .gux-spinner:not(:first-child){margin-inline-start:4px}.gux-target .gux-display .gux-spinner:focus-visible{background:var(--gse-ui-calendarMenu-month-hover-backgroundColor)}.gux-target .gux-popup-toggle{justify-content:right;color:var(--gse-ui-monthPicker-calendarStates-defaultColor);background:transparent;border:none}.gux-target .gux-popup-toggle:focus-visible{border-radius:var(--gse-ui-calendarMenu-month-calendarButton-focusBorderRadius);outline:var(--gse-ui-monthPicker-calendarStates-focus-border-width) var(--gse-ui-monthPicker-calendarStates-focus-border-style) var(--gse-ui-monthPicker-calendarStates-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target .gux-popup-toggle:not(:disabled):hover{color:var(--gse-ui-monthPicker-calendarStates-hoverColor);cursor:pointer}.gux-target .gux-popup-toggle:not(:disabled):focus{color:var(--gse-ui-monthPicker-calendarStates-activeColor);cursor:pointer}.gux-target .gux-popup-toggle:disabled{color:var(--gse-ui-monthPicker-calendarStates-disabledColor)}.gux-target .gux-popup-toggle gux-icon{inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}.gux-target .gux-popup-toggle.gux-expanded{color:var(--gse-ui-monthPicker-calendarStates-activeColor)}";export{b as gux_month_picker_beta}
1
+ import{r as t,h as e,g as r}from"./p-6e010355.js";import{t as i}from"./p-d6f40cf6.js";import{O as o}from"./p-b0758688.js";import{b as s,g as n}from"./p-a82e4a04.js";import{u as a,a as u}from"./p-2319558c.js";import{s as l}from"./p-2c25e2f2.js";import{b as h}from"./p-cf0e7d3b.js";import{g,a as c,b as d}from"./p-67d92675.js";import"./p-4202e9f2.js";import"./p-43af726d.js";const p={toggleCalendar:"Toggle month calendar view",month:"Month",year:"Year",unset:"Unset"};const f={year:"numeric",month:"long"},m=["ar","he","ja","ko","zh-cn","zh-tw"],b=class{constructor(e){t(this,e),this.value=void 0,this.min=void 0,this.max=void 0,this.disabled=!1,this.expanded=!1,this.locale=void 0}onKeyDown(t){"Escape"===t.key&&(this.expanded=!1,this.calendarToggleButtonElement.focus())}onValueUpdate(t){this.value=this.isOutOfBounds(t)?this.isBeforeMin(t)?this.min:this.max:t,l(this.root,"input"),l(this.root,"change")}onClickOutside(){this.expanded=!1}async componentWillLoad(){i(this.root),this.i18n=await s(this.root,p),this.locale=a()?u(this.root):n(this.root)}onFocusout(t){t.relatedTarget&&!this.root.contains(t.relatedTarget)&&(this.expanded=!1)}isOutOfBounds(t){return this.isBeforeMin(t)||this.isAfterMax(t)}isBeforeMin(t){return this.min&&this.min>t}isAfterMax(t){return this.max&&this.max<t}toggleCalendar(){this.expanded=!this.expanded,this.expanded&&h((()=>{this.monthCalendarElement.guxFocus(this.value)}))}onMonthCalendarInput(){this.value=this.monthCalendarElement.value,this.expanded=!1,this.calendarToggleButtonElement.focus()}incrementMonth(t){if(this.value){const{year:e,month:r}=g(this.value),i=((parseInt(r)+11+t)%12+1).toString().padStart(2,"0");this.value=c(e,i)}else this.value=d()}incrementYear(t){if(this.value){const{year:e,month:r}=g(this.value),i=Math.max(Number(e)+t,0).toString();this.value=c(i,r)}else this.value=d()}onSpinnerKeyDown(t,e,r){switch(t.key){case"ArrowDown":t.preventDefault(),e(-1);break;case"ArrowUp":t.preventDefault(),e(1);break;case"ArrowLeft":case"ArrowRight":t.preventDefault(),r.focus();break;case"Enter":t.preventDefault(),this.expanded=!0,h((()=>{this.monthCalendarElement.guxFocus(this.value)}));break;case" ":t.preventDefault()}}onSpinnerKeyUp(t){t.stopPropagation()," "===t.key&&(t.preventDefault(),this.expanded=!0,h((()=>{this.monthCalendarElement.guxFocus(this.value)})))}onSpinnerClick(){this.expanded=!0}getSpinnerLabel(t){if(this.value){const{year:e,month:r}=g(this.value);return new Date(Number(e),Number(r)-1).toLocaleDateString(this.locale,{[t]:f[t]})}return this.i18n(t)}getSpinnerValueNow(t){return this.value?g(this.value)[t]:"0"}getSpinnerValueText(){if(this.value){const{year:t,month:e}=g(this.value);return new Date(Number(t),Number(e)-1).toLocaleDateString(this.locale,{year:"numeric",month:"long"})}return this.i18n("unset")}renderMonthSpinnerButton(){return e("div",{role:"spinbutton",class:"gux-spinner",tabIndex:this.disabled?-1:0,onKeyDown:t=>this.onSpinnerKeyDown(t,(t=>this.incrementMonth(t)),this.yearSpinnerElement),onKeyUp:t=>this.onSpinnerKeyUp(t),onClick:()=>this.onSpinnerClick(),ref:t=>this.monthSpinnerElement=t,"aria-valuenow":this.getSpinnerValueNow("month"),"aria-valuetext":this.getSpinnerValueText(),"aria-valuemin":"1","aria-valuemax":"12","aria-label":this.i18n("month")},this.getSpinnerLabel("month"))}renderYearSpinnerButton(){return e("div",{role:"spinbutton",class:"gux-spinner",tabIndex:this.disabled?-1:0,onKeyDown:t=>this.onSpinnerKeyDown(t,(t=>this.incrementYear(t)),this.monthSpinnerElement),onKeyUp:t=>this.onSpinnerKeyUp(t),onClick:()=>this.onSpinnerClick(),ref:t=>this.yearSpinnerElement=t,"aria-valuenow":this.getSpinnerValueNow("year"),"aria-valuetext":this.getSpinnerValueText(),"aria-valuemin":"0","aria-label":this.i18n("year")},this.getSpinnerLabel("year"))}renderSpinnerButtons(){return m.includes(this.locale)?e("span",{class:"gux-display"},this.renderYearSpinnerButton(),this.renderMonthSpinnerButton()):e("span",{class:"gux-display"},this.renderMonthSpinnerButton(),this.renderYearSpinnerButton())}renderCalendarToggleButton(){return e("button",{class:{"gux-popup-toggle":!0,"gux-expanded":this.expanded},ref:t=>this.calendarToggleButtonElement=t,type:"button",onClick:()=>this.toggleCalendar(),disabled:this.disabled},e("gux-icon",{"icon-name":"fa/calendar-regular","screenreader-text":this.i18n("toggleCalendar")}))}renderTarget(){return e("div",{class:"gux-target",slot:"target"},this.renderSpinnerButtons(),this.renderCalendarToggleButton())}renderPopup(){return e("gux-month-calendar",{slot:"popup",ref:t=>this.monthCalendarElement=t,onInput:()=>this.onMonthCalendarInput(),value:this.value,min:this.min,max:this.max})}render(){return e("gux-popup",{key:"3e874f28af6bae4dd53e4f805751401fa48b2fb3",expanded:this.expanded,disabled:this.disabled,"exceed-target-width":!0},this.renderTarget(),this.renderPopup())}get root(){return r(this)}static get watchers(){return{value:["onValueUpdate"]}}};(function(t,e,r,i){var o,s=arguments.length,n=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);s>3&&n&&Object.defineProperty(e,r,n)})([o({triggerEvents:"mousedown"})],b.prototype,"onClickOutside",null),b.style=":host{display:inline-block}.gux-target{display:inline-flex;gap:var(--gse-ui-formControl-input-gap);padding:var(--gse-ui-formControl-textarea-padding);cursor:pointer;background-color:var(--gse-ui-calendarMenu-backgroundColor);border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target:focus-within{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius);outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target .gux-display{display:inline-flex;align-items:center;min-inline-size:100px;padding-inline-end:var(--gse-ui-formControl-input-gap);font-family:var(--gse-ui-formControl-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-formControl-label-text-fontWeight);line-height:var(--gse-ui-formControl-label-text-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-target .gux-display .gux-spinner{outline:none}.gux-target .gux-display .gux-spinner:not(:first-child){margin-inline-start:4px}.gux-target .gux-display .gux-spinner:focus-visible{background:var(--gse-ui-calendarMenu-month-hover-backgroundColor)}.gux-target .gux-popup-toggle{justify-content:right;color:var(--gse-ui-monthPicker-calendarStates-defaultColor);background:transparent;border:none}.gux-target .gux-popup-toggle:focus-visible{border-radius:var(--gse-ui-calendarMenu-month-calendarButton-focusBorderRadius);outline:var(--gse-ui-monthPicker-calendarStates-focus-border-width) var(--gse-ui-monthPicker-calendarStates-focus-border-style) var(--gse-ui-monthPicker-calendarStates-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-target .gux-popup-toggle:not(:disabled):hover{color:var(--gse-ui-monthPicker-calendarStates-hoverColor);cursor:pointer}.gux-target .gux-popup-toggle:not(:disabled):focus{color:var(--gse-ui-monthPicker-calendarStates-activeColor);cursor:pointer}.gux-target .gux-popup-toggle:disabled{color:var(--gse-ui-monthPicker-calendarStates-disabledColor)}.gux-target .gux-popup-toggle gux-icon{inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}.gux-target .gux-popup-toggle.gux-expanded{color:var(--gse-ui-monthPicker-calendarStates-activeColor)}";export{b as gux_month_picker_beta}
@@ -1 +1 @@
1
- import{r as e,h as o,H as t,g as r}from"./p-6e010355.js";import{c as i,o as s}from"./p-f4751a15.js";import{O as a}from"./p-e720c07a.js";import{p as l}from"./p-a11d5d42.js";import{h as C}from"./p-6d8b4027.js";import{a as g,G as n}from"./p-b8c3ecdc.js";import{t as c}from"./p-6f413aea.js";import{g as d,v as h}from"./p-42f2e889.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const u=class{constructor(o){e(this,o),this.labelPosition="beside",this.disabled=void 0,this.hasHelp=!1,this.hasError=!1,this.hasGroupError=!1,this.hasGroupDisabled=!1}onMutation(){this.hasError=C(this.root,"error"),this.hasHelp=C(this.root,"help")}componentWillLoad(){this.setInput(),this.hasError=C(this.root,"error"),this.hasHelp=C(this.root,"help"),c(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}render(){return o(t,{key:"6e24631ab78d1e2d2ffbd723dd0d5be2ec972118",class:{"gux-input-error":this.hasError||this.hasGroupError,"gux-disabled":this.disabled}},o("div",{key:"cb2f342121a92bcb4b864c226f3541ca93dd6117",class:"gux-form-field-container"},o("div",{key:"b5244a54141d8c7835034056de6121279b2687ab",class:"gux-input-label"},o("div",{key:"77291159d219a512f437d427c74111bfa208b9e8",class:"gux-input"},o("slot",{key:"02ab5f2457b04a5bd49d4c2562429bdbc5f92149",name:"input",onSlotchange:()=>this.setInput()})),o("div",{key:"0b86cf32736488a1349fbbf40469d5c9a5c0b5c6",class:`gux-label-${this.labelPosition}`,"aria-disabled":this.disabled?"true":"false"},o("slot",{key:"695f928f6eb9b875f0bc4ff51050a61845ef58f2",name:"label"}))),o("div",{key:"d1da496151ed6b164e1fe663a44ff81440761eab",class:"error-and-help-text"},o(g,{key:"565fc30e683f8f39acc4471117ba9078630ae24c",show:this.hasError},o("slot",{key:"8e6f425cfcad80b2c32c0228ef509ed2bc973db4",name:"error"})),o(n,{key:"5ede43184e69cfc05fac9d22c33ead7b51faee56",show:!this.hasError&&this.hasHelp},o("slot",{key:"7281c12a69d18e8a18d7649ef3898019cc1cbd1b",name:"help"})))))}get variant(){return this.labelPosition.toLowerCase()}setInput(){this.input=d(this.root,'input[type="checkbox"][slot="input"]'),this.hasGroupDisabled&&(this.input.disabled=!0),l(this.input),this.disabled=i(this.input),this.disabledObserver=s(this.input,(e=>{this.disabled=e})),h(this.root,this.input)}get root(){return r(this)}};(function(e,o,t,r){var i,s=arguments.length,a=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,t,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(s<3?i(a):s>3?i(o,t,a):i(o,t))||a);s>3&&a&&Object.defineProperty(o,t,a)})([a({childList:!0,subtree:!0})],u.prototype,"onMutation",null),u.style=".gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;min-inline-size:var(--gse-ui-icon-small-size);min-block-size:var(--gse-ui-icon-small-size);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}:host(.gux-input-error) ::slotted(input[type=checkbox]:not(:checked))::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=checkbox]:checked)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=checkbox]:not(:checked):not(:disabled):not(:indeterminate):hover)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=checkbox]:indeterminate)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-disabled){cursor:not-allowed;opacity:var(--gse-ui-checkbox-disabled-opacity)}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}.gux-input-label{display:inline-flex;flex-direction:row;gap:var(--gse-ui-checkbox-gap)}.gux-input-label .gux-label-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}::slotted(input[type=checkbox]){display:inline-grid;inline-size:var(--gse-ui-checkbox-icon-width);block-size:var(--gse-ui-checkbox-icon-height);margin:0;text-align:center;vertical-align:middle;-webkit-appearance:none;appearance:none;cursor:pointer;border:0;outline:none}::slotted(input[type=checkbox])::before{grid-area:1/1;content:\"\";border-radius:15%}::slotted(input[type=checkbox]:focus-visible){border-radius:var(--gse-ui-checkbox-focus-borderRadiusSmall);outline:var(--gse-ui-checkbox-focus-border-width) var(--gse-ui-checkbox-focus-border-style) var(--gse-ui-checkbox-focus-border-color);outline-offset:var(--gse-ui-checkbox-focus-offset)}::slotted(input[type=checkbox]:not(:checked))::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-default-unselectedForegroundColor)}::slotted(input[type=checkbox]:not(:checked):not(:disabled):not(:indeterminate):hover)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::slotted(input[type=checkbox]:checked:not(:disabled):hover){-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::slotted(input[type=checkbox]:not(:disabled):indeterminate:hover){-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::slotted(input[type=checkbox]:checked)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-default-selectedForegroundColor)}::slotted(input[type=checkbox]:indeterminate)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z'/%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-default-selectedForegroundColor)}::slotted(input[type=checkbox]:disabled)::before{cursor:not-allowed;opacity:var(--gse-ui-checkbox-disabled-opacity)}::slotted(label){display:inline-block;font-family:var(--gse-ui-checkbox-label-text-fontFamily);font-size:12px;font-weight:var(--gse-ui-checkbox-label-text-fontWeight);line-height:var(--gse-ui-checkbox-label-text-lineHeight);color:var(--gse-ui-checkbox-label-foregroundColor);vertical-align:middle}";export{u as gux_form_field_checkbox}
1
+ import{r as e,h as o,H as t,g as r}from"./p-6e010355.js";import{c as i,o as s}from"./p-f4751a15.js";import{O as a}from"./p-e720c07a.js";import{p as l}from"./p-a11d5d42.js";import{h as C}from"./p-6d8b4027.js";import{a as g,G as c}from"./p-b8c3ecdc.js";import{t as n}from"./p-d6f40cf6.js";import{g as d,v as h}from"./p-42f2e889.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const u=class{constructor(o){e(this,o),this.labelPosition="beside",this.disabled=void 0,this.hasHelp=!1,this.hasError=!1,this.hasGroupError=!1,this.hasGroupDisabled=!1}onMutation(){this.hasError=C(this.root,"error"),this.hasHelp=C(this.root,"help")}componentWillLoad(){this.setInput(),this.hasError=C(this.root,"error"),this.hasHelp=C(this.root,"help"),n(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}render(){return o(t,{key:"6e24631ab78d1e2d2ffbd723dd0d5be2ec972118",class:{"gux-input-error":this.hasError||this.hasGroupError,"gux-disabled":this.disabled}},o("div",{key:"cb2f342121a92bcb4b864c226f3541ca93dd6117",class:"gux-form-field-container"},o("div",{key:"b5244a54141d8c7835034056de6121279b2687ab",class:"gux-input-label"},o("div",{key:"77291159d219a512f437d427c74111bfa208b9e8",class:"gux-input"},o("slot",{key:"02ab5f2457b04a5bd49d4c2562429bdbc5f92149",name:"input",onSlotchange:()=>this.setInput()})),o("div",{key:"0b86cf32736488a1349fbbf40469d5c9a5c0b5c6",class:`gux-label-${this.labelPosition}`,"aria-disabled":this.disabled?"true":"false"},o("slot",{key:"695f928f6eb9b875f0bc4ff51050a61845ef58f2",name:"label"}))),o("div",{key:"d1da496151ed6b164e1fe663a44ff81440761eab",class:"error-and-help-text"},o(g,{key:"565fc30e683f8f39acc4471117ba9078630ae24c",show:this.hasError},o("slot",{key:"8e6f425cfcad80b2c32c0228ef509ed2bc973db4",name:"error"})),o(c,{key:"5ede43184e69cfc05fac9d22c33ead7b51faee56",show:!this.hasError&&this.hasHelp},o("slot",{key:"7281c12a69d18e8a18d7649ef3898019cc1cbd1b",name:"help"})))))}get variant(){return this.labelPosition.toLowerCase()}setInput(){this.input=d(this.root,'input[type="checkbox"][slot="input"]'),this.hasGroupDisabled&&(this.input.disabled=!0),l(this.input),this.disabled=i(this.input),this.disabledObserver=s(this.input,(e=>{this.disabled=e})),h(this.root,this.input)}get root(){return r(this)}};(function(e,o,t,r){var i,s=arguments.length,a=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,t,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(s<3?i(a):s>3?i(o,t,a):i(o,t))||a);s>3&&a&&Object.defineProperty(o,t,a)})([a({childList:!0,subtree:!0})],u.prototype,"onMutation",null),u.style=".gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;min-inline-size:var(--gse-ui-icon-small-size);min-block-size:var(--gse-ui-icon-small-size);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}:host(.gux-input-error) ::slotted(input[type=checkbox]:not(:checked))::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=checkbox]:checked)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=checkbox]:not(:checked):not(:disabled):not(:indeterminate):hover)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=checkbox]:indeterminate)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-disabled){cursor:not-allowed;opacity:var(--gse-ui-checkbox-disabled-opacity)}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}.gux-input-label{display:inline-flex;flex-direction:row;gap:var(--gse-ui-checkbox-gap)}.gux-input-label .gux-label-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}::slotted(input[type=checkbox]){display:inline-grid;inline-size:var(--gse-ui-checkbox-icon-width);block-size:var(--gse-ui-checkbox-icon-height);margin:0;text-align:center;vertical-align:middle;-webkit-appearance:none;appearance:none;cursor:pointer;border:0;outline:none}::slotted(input[type=checkbox])::before{grid-area:1/1;content:\"\";border-radius:15%}::slotted(input[type=checkbox]:focus-visible){border-radius:var(--gse-ui-checkbox-focus-borderRadiusSmall);outline:var(--gse-ui-checkbox-focus-border-width) var(--gse-ui-checkbox-focus-border-style) var(--gse-ui-checkbox-focus-border-color);outline-offset:var(--gse-ui-checkbox-focus-offset)}::slotted(input[type=checkbox]:not(:checked))::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-default-unselectedForegroundColor)}::slotted(input[type=checkbox]:not(:checked):not(:disabled):not(:indeterminate):hover)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::slotted(input[type=checkbox]:checked:not(:disabled):hover){-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::slotted(input[type=checkbox]:not(:disabled):indeterminate:hover){-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::slotted(input[type=checkbox]:checked)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-default-selectedForegroundColor)}::slotted(input[type=checkbox]:indeterminate)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z'/%3E%3C/svg%3E\");background:var(--gse-ui-checkbox-icon-default-selectedForegroundColor)}::slotted(input[type=checkbox]:disabled)::before{cursor:not-allowed;opacity:var(--gse-ui-checkbox-disabled-opacity)}::slotted(label){display:inline-block;font-family:var(--gse-ui-checkbox-label-text-fontFamily);font-size:12px;font-weight:var(--gse-ui-checkbox-label-text-fontWeight);line-height:var(--gse-ui-checkbox-label-text-lineHeight);color:var(--gse-ui-checkbox-label-foregroundColor);vertical-align:middle}";export{u as gux_form_field_checkbox}
@@ -1 +1 @@
1
- import{r as t,h as s,H as e,g as i}from"./p-6e010355.js";import{s as o}from"./p-2c25e2f2.js";import{t as a}from"./p-6f413aea.js";const h=class{constructor(s){t(this,s),this.value=void 0,this.layout="default",this.switchItems=[]}onClick(t){t.stopPropagation();const s=t.target.closest("gux-switch-item");s&&this.value!==s.value&&(this.value=s.value,o(this.root,"input"),o(this.root,"change"))}slotChanged(){this.switchItems=Array.from(this.root.children)}componentWillLoad(){a(this.root,{variant:this.layout})}componentWillRender(){this.switchItems.forEach((t=>{t.selected=t.value===this.value}))}render(){return s(e,{key:"a6ffdebe3ee02f5020d9a8c8deeb6079b500ed52",role:"group",class:`gux-${this.layout}`},s("slot",{key:"0c648e6832cdb40a1328f4b3c745ce7b2cdfb60d",onSlotchange:this.slotChanged.bind(this)}))}get root(){return i(this)}};h.style=":host{display:flex;align-items:flex-end}";export{h as gux_switch_legacy}
1
+ import{r as t,h as s,H as e,g as i}from"./p-6e010355.js";import{s as o}from"./p-2c25e2f2.js";import{t as h}from"./p-d6f40cf6.js";const r=class{constructor(s){t(this,s),this.value=void 0,this.layout="default",this.switchItems=[]}onClick(t){t.stopPropagation();const s=t.target.closest("gux-switch-item");s&&this.value!==s.value&&(this.value=s.value,o(this.root,"input"),o(this.root,"change"))}slotChanged(){this.switchItems=Array.from(this.root.children)}componentWillLoad(){h(this.root,{variant:this.layout})}componentWillRender(){this.switchItems.forEach((t=>{t.selected=t.value===this.value}))}render(){return s(e,{key:"a6ffdebe3ee02f5020d9a8c8deeb6079b500ed52",role:"group",class:`gux-${this.layout}`},s("slot",{key:"0c648e6832cdb40a1328f4b3c745ce7b2cdfb60d",onSlotchange:this.slotChanged.bind(this)}))}get root(){return i(this)}};r.style=":host{display:flex;align-items:flex-end}";export{r as gux_switch_legacy}
@@ -1 +1 @@
1
- import{r as t,c as e,h as s,H as i,g as o}from"./p-6e010355.js";import{c as r,h as a,s as n,a as h,b as u,d,e as l,f as c,i as m,j as g,k as p,o as v}from"./p-787c5373.js";import{b}from"./p-a82e4a04.js";import{w as x}from"./p-e97879b4.js";import{s as f}from"./p-2c25e2f2.js";import{t as w}from"./p-6f413aea.js";import{b as S}from"./p-cf0e7d3b.js";import"./p-4202e9f2.js";const y={add:"Add {name}",noMatches:"No matches",loading:"Loading..."},O=class{constructor(s){t(this,s),this.internallistboxoptionsupdated=e(this,"internallistboxoptionsupdated",7),this.value=void 0,this.loading=!1,this.filter="",this.textInput="",this.filterType="none",this.emptyMessage=void 0,this.disabled=!1,this.listboxOptions=[],this.allListboxOptionsFiltered=void 0,this.hasExactMatch=!1}onBlur(){r(this.root)}selectNewCustomOption(t){this.updateValue(t.detail)}onKeydown(t){var e;if(!a(this.root))return t.preventDefault(),void n(this.root);switch(t.key){case"Enter":return t.preventDefault(),void((null===(e=this.optionCreateElement)||void 0===e?void 0:e.active)?(this.optionCreateElement.guxEmitInternalCreateNewOption(),S((()=>{n(this.root)}))):g(this.root,(t=>this.updateValue(t))));case"ArrowDown":return t.preventDefault(),void(c(this.root)?(t.stopPropagation(),m(this.root)):u(this.root));case"ArrowUp":return t.preventDefault(),void(d(this.root)?(t.stopPropagation(),l(this.root)):h(this.root));case"Home":return t.preventDefault(),void u(this.root);case"End":return t.preventDefault(),void h(this.root);case" ":return void t.preventDefault()}1!==t.key.length||p(this.root,t.key)}onKeyup(t){var e;" "!==t.key||((null===(e=this.optionCreateElement)||void 0===e?void 0:e.active)?(this.optionCreateElement.guxEmitInternalCreateNewOption(),S((()=>{n(this.root)}))):g(this.root,(t=>this.updateValue(t))))}onMousemove(){r(this.root)}onClick(t){x("gux-option-multi",t,(t=>{v(t,(t=>this.updateValue(t)))}))}async guxSelectActive(){g(this.root,(t=>this.updateValue(t)))}getHasExactMatch(){let t=!1;return this.hasExactMatch=!1,this.listboxOptions.forEach((e=>{var s,i;(null===(i=null===(s=e.textContent)||void 0===s?void 0:s.toLowerCase())||void 0===i?void 0:i.trim())==this.textInput.toLowerCase().trim()&&(t=!0,this.hasExactMatch=!0)})),t}updateOptionMultiCreateValue(){this.optionCreateElement&&(this.optionCreateElement.value=this.textInput,this.optionCreateElement.filtered=!this.textInput||this.getHasExactMatch())}getSelectedValues(){return this.value?this.value.split(","):[]}updateOnSlotChange(){this.setListboxOptions(),this.updateListboxOptions()}getOptionCreateElement(){this.optionCreateElement=this.root.querySelector("gux-create-option")}setListboxOptions(){this.listboxOptions=Array.from(this.root.children).filter((t=>"GUX-OPTION-MULTI"===t.tagName)),this.internallistboxoptionsupdated.emit()}updateListboxOptions(){this.listboxOptions.forEach((t=>{t.selected=this.getSelectedValues().includes(t.value),"custom"!==this.filterType&&(t.filtered=!t.textContent.trim().toLowerCase().startsWith(this.textInput.toLowerCase()))}))}updateValue(t){if(this.getSelectedValues().includes(t))this.value=this.getSelectedValues().filter((e=>e!==t)).join(",");else{const e=[...this.getSelectedValues(),t];this.value=e.join(",")}f(this.root,"input"),f(this.root,"change")}async componentWillLoad(){w(this.root),this.i18n=await b(this.root,y),this.setListboxOptions(),this.getOptionCreateElement()}componentWillRender(){this.setListboxOptions(),this.updateListboxOptions(),this.allListboxOptionsFiltered=0===this.listboxOptions.filter((t=>!t.filtered)).length}renderHiddenSlot(){return s("div",{hidden:!0},s("slot",{onSlotchange:()=>this.setListboxOptions()}))}renderLoading(){return[s("div",{class:"gux-message-container"},s("gux-radial-loading",{context:"modal"}),s("span",null,this.i18n("loading"))),this.renderHiddenSlot()]}renderAllListboxOptionsFiltered(){if(this.allListboxOptionsFiltered)return[s("div",{class:"gux-message-container"},s("div",{class:"gux-no-matches"},this.emptyMessage||this.i18n("noMatches"))),this.renderHiddenSlot()]}renderCreateOptionSlot(){return s("slot",{name:"create"})}render(){return this.loading?this.renderLoading():s(i,{role:"listbox","aria-multiselectable":"true",tabindex:0},s("slot",{onSlotchange:()=>this.updateOnSlotChange()}),this.renderAllListboxOptionsFiltered(),this.renderCreateOptionSlot())}get root(){return o(this)}static get watchers(){return{textInput:["updateOptionMultiCreateValue"]}}};O.style=":host{box-sizing:border-box;display:block;max-block-size:var(--gse-ui-menu-maxHeight);padding:var(--gse-ui-menu-padding);overflow-y:auto;scrollbar-color:var(--gse-ui-menu-scrollbar-foregroundColor);background:var(--gse-ui-menu-backgroundColor);border:var(--gse-ui-menu-border-width) var(--gse-ui-menu-border-style) var(--gse-ui-menu-border-color);border-radius:var(--gse-ui-menu-borderRadius);outline:none;box-shadow:var(--gse-ui-menu-boxShadow-offsetX) var(--gse-ui-menu-boxShadow-offsetY) var(--gse-ui-menu-boxShadow-blur) var(--gse-ui-menu-boxShadow-spread) var(--gse-ui-menu-boxShadow-color)}.gux-message-container{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch center;align-items:center}.gux-message-container .gux-no-matches{box-sizing:border-box;block-size:var(--gse-ui-menu-option-height);font-family:var(--gse-ui-dropdown-menu-emptyState-subheader-text-fontFamily);font-size:var(--gse-ui-dropdown-menu-emptyState-subheader-text-fontSize);font-weight:var(--gse-ui-dropdown-menu-emptyState-subheader-text-fontWeight);line-height:var(--gse-ui-dropdown-menu-emptyState-subheader-text-lineHeight);color:var(--gse-ui-dropdown-menu-emptyState-subheader-foregroundColor)}";export{O as gux_listbox_multi}
1
+ import{r as t,c as e,h as s,H as i,g as o}from"./p-6e010355.js";import{c as r,h as a,s as n,a as h,b as u,d,e as l,f as c,i as m,j as g,k as p,o as v}from"./p-787c5373.js";import{b}from"./p-a82e4a04.js";import{w as x}from"./p-e97879b4.js";import{s as f}from"./p-2c25e2f2.js";import{t as w}from"./p-d6f40cf6.js";import{b as S}from"./p-cf0e7d3b.js";import"./p-4202e9f2.js";const y={add:"Add {name}",noMatches:"No matches",loading:"Loading..."},O=class{constructor(s){t(this,s),this.internallistboxoptionsupdated=e(this,"internallistboxoptionsupdated",7),this.value=void 0,this.loading=!1,this.filter="",this.textInput="",this.filterType="none",this.emptyMessage=void 0,this.disabled=!1,this.listboxOptions=[],this.allListboxOptionsFiltered=void 0,this.hasExactMatch=!1}onBlur(){r(this.root)}selectNewCustomOption(t){this.updateValue(t.detail)}onKeydown(t){var e;if(!a(this.root))return t.preventDefault(),void n(this.root);switch(t.key){case"Enter":return t.preventDefault(),void((null===(e=this.optionCreateElement)||void 0===e?void 0:e.active)?(this.optionCreateElement.guxEmitInternalCreateNewOption(),S((()=>{n(this.root)}))):g(this.root,(t=>this.updateValue(t))));case"ArrowDown":return t.preventDefault(),void(c(this.root)?(t.stopPropagation(),m(this.root)):u(this.root));case"ArrowUp":return t.preventDefault(),void(d(this.root)?(t.stopPropagation(),l(this.root)):h(this.root));case"Home":return t.preventDefault(),void u(this.root);case"End":return t.preventDefault(),void h(this.root);case" ":return void t.preventDefault()}1!==t.key.length||p(this.root,t.key)}onKeyup(t){var e;" "!==t.key||((null===(e=this.optionCreateElement)||void 0===e?void 0:e.active)?(this.optionCreateElement.guxEmitInternalCreateNewOption(),S((()=>{n(this.root)}))):g(this.root,(t=>this.updateValue(t))))}onMousemove(){r(this.root)}onClick(t){x("gux-option-multi",t,(t=>{v(t,(t=>this.updateValue(t)))}))}async guxSelectActive(){g(this.root,(t=>this.updateValue(t)))}getHasExactMatch(){let t=!1;return this.hasExactMatch=!1,this.listboxOptions.forEach((e=>{var s,i;(null===(i=null===(s=e.textContent)||void 0===s?void 0:s.toLowerCase())||void 0===i?void 0:i.trim())==this.textInput.toLowerCase().trim()&&(t=!0,this.hasExactMatch=!0)})),t}updateOptionMultiCreateValue(){this.optionCreateElement&&(this.optionCreateElement.value=this.textInput,this.optionCreateElement.filtered=!this.textInput||this.getHasExactMatch())}getSelectedValues(){return this.value?this.value.split(","):[]}updateOnSlotChange(){this.setListboxOptions(),this.updateListboxOptions()}getOptionCreateElement(){this.optionCreateElement=this.root.querySelector("gux-create-option")}setListboxOptions(){this.listboxOptions=Array.from(this.root.children).filter((t=>"GUX-OPTION-MULTI"===t.tagName)),this.internallistboxoptionsupdated.emit()}updateListboxOptions(){this.listboxOptions.forEach((t=>{t.selected=this.getSelectedValues().includes(t.value),"custom"!==this.filterType&&(t.filtered=!t.textContent.trim().toLowerCase().startsWith(this.textInput.toLowerCase()))}))}updateValue(t){if(this.getSelectedValues().includes(t))this.value=this.getSelectedValues().filter((e=>e!==t)).join(",");else{const e=[...this.getSelectedValues(),t];this.value=e.join(",")}f(this.root,"input"),f(this.root,"change")}async componentWillLoad(){w(this.root),this.i18n=await b(this.root,y),this.setListboxOptions(),this.getOptionCreateElement()}componentWillRender(){this.setListboxOptions(),this.updateListboxOptions(),this.allListboxOptionsFiltered=0===this.listboxOptions.filter((t=>!t.filtered)).length}renderHiddenSlot(){return s("div",{hidden:!0},s("slot",{onSlotchange:()=>this.setListboxOptions()}))}renderLoading(){return[s("div",{class:"gux-message-container"},s("gux-radial-loading",{context:"modal"}),s("span",null,this.i18n("loading"))),this.renderHiddenSlot()]}renderAllListboxOptionsFiltered(){if(this.allListboxOptionsFiltered)return[s("div",{class:"gux-message-container"},s("div",{class:"gux-no-matches"},this.emptyMessage||this.i18n("noMatches"))),this.renderHiddenSlot()]}renderCreateOptionSlot(){return s("slot",{name:"create"})}render(){return this.loading?this.renderLoading():s(i,{role:"listbox","aria-multiselectable":"true",tabindex:0},s("slot",{onSlotchange:()=>this.updateOnSlotChange()}),this.renderAllListboxOptionsFiltered(),this.renderCreateOptionSlot())}get root(){return o(this)}static get watchers(){return{textInput:["updateOptionMultiCreateValue"]}}};O.style=":host{box-sizing:border-box;display:block;max-block-size:var(--gse-ui-menu-maxHeight);padding:var(--gse-ui-menu-padding);overflow-y:auto;scrollbar-color:var(--gse-ui-menu-scrollbar-foregroundColor);background:var(--gse-ui-menu-backgroundColor);border:var(--gse-ui-menu-border-width) var(--gse-ui-menu-border-style) var(--gse-ui-menu-border-color);border-radius:var(--gse-ui-menu-borderRadius);outline:none;box-shadow:var(--gse-ui-menu-boxShadow-offsetX) var(--gse-ui-menu-boxShadow-offsetY) var(--gse-ui-menu-boxShadow-blur) var(--gse-ui-menu-boxShadow-spread) var(--gse-ui-menu-boxShadow-color)}.gux-message-container{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch center;align-items:center}.gux-message-container .gux-no-matches{box-sizing:border-box;block-size:var(--gse-ui-menu-option-height);font-family:var(--gse-ui-dropdown-menu-emptyState-subheader-text-fontFamily);font-size:var(--gse-ui-dropdown-menu-emptyState-subheader-text-fontSize);font-weight:var(--gse-ui-dropdown-menu-emptyState-subheader-text-fontWeight);line-height:var(--gse-ui-dropdown-menu-emptyState-subheader-text-lineHeight);color:var(--gse-ui-dropdown-menu-emptyState-subheader-foregroundColor)}";export{O as gux_listbox_multi}
@@ -1 +1 @@
1
- import{r as t,h as o,g as e}from"./p-6e010355.js";import{t as i}from"./p-6f413aea.js";import{g as r}from"./p-0268a3e8.js";const a=class{constructor(o){t(this,o),this.iconName=void 0,this.placement="right"}componentWillLoad(){i(this.root)}async showTooltip(){return await this.tooltip.showTooltip()}async hideTooltip(){return await this.tooltip.hideTooltip()}render(){return o("div",{key:"9d7877974b1ec769bbabc36e4e6dcb617fe71f13",class:"gux-icon-tooltip"},o("gux-screen-reader-beta",{key:"b775e0d3421511c6ab276cd591bb29775d266595"},o("slot",{key:"0c0a2538bd60553070dd2935432d9bd844267051",name:"content"})),o("gux-icon",{key:"13303179e2856e5e0ef17a1321e08e58aaac3be1","icon-name":this.iconName,size:"small",decorative:!0}),o("gux-tooltip-beta",{key:"addd341ed182ec261e5d600d1bd4dc8dab351a92",placement:this.placement,ref:t=>this.tooltip=t},o("div",{key:"7439c6f444c757405a2386f6e18c2d36e807f2fc",slot:"content"},r(this.root,"content"))))}get root(){return e(this)}};a.style=".gux-icon-tooltip{inline-size:fit-content;padding:0;line-height:0;background-color:transparent;border:none;border-radius:var(--gse-ui-formControl-label-tooltipTrigger-borderRadius)}.gux-icon-tooltip gux-tooltip{padding-inline-start:0}.gux-icon-tooltip gux-icon{color:var(--gse-ui-formControl-label-tooltipTrigger-color);vertical-align:bottom}";export{a as gux_icon_tooltip_beta}
1
+ import{r as t,h as o,g as e}from"./p-6e010355.js";import{t as i}from"./p-d6f40cf6.js";import{g as r}from"./p-0268a3e8.js";const a=class{constructor(o){t(this,o),this.iconName=void 0,this.placement="right"}componentWillLoad(){i(this.root)}async showTooltip(){return await this.tooltip.showTooltip()}async hideTooltip(){return await this.tooltip.hideTooltip()}render(){return o("div",{key:"9d7877974b1ec769bbabc36e4e6dcb617fe71f13",class:"gux-icon-tooltip"},o("gux-screen-reader-beta",{key:"b775e0d3421511c6ab276cd591bb29775d266595"},o("slot",{key:"0c0a2538bd60553070dd2935432d9bd844267051",name:"content"})),o("gux-icon",{key:"13303179e2856e5e0ef17a1321e08e58aaac3be1","icon-name":this.iconName,size:"small",decorative:!0}),o("gux-tooltip-beta",{key:"addd341ed182ec261e5d600d1bd4dc8dab351a92",placement:this.placement,ref:t=>this.tooltip=t},o("div",{key:"7439c6f444c757405a2386f6e18c2d36e807f2fc",slot:"content"},r(this.root,"content"))))}get root(){return e(this)}};a.style=".gux-icon-tooltip{inline-size:fit-content;padding:0;line-height:0;background-color:transparent;border:none;border-radius:var(--gse-ui-formControl-label-tooltipTrigger-borderRadius)}.gux-icon-tooltip gux-tooltip{padding-inline-start:0}.gux-icon-tooltip gux-icon{color:var(--gse-ui-formControl-label-tooltipTrigger-color);vertical-align:bottom}";export{a as gux_icon_tooltip_beta}
@@ -1 +1 @@
1
- import{r as t,h as i,g as s}from"./p-6e010355.js";import{b as e}from"./p-a82e4a04.js";import{f as o,g as a,t as r}from"./p-36923b17.js";import{t as n}from"./p-6f413aea.js";import{s as h}from"./p-2c25e2f2.js";import"./p-4202e9f2.js";const d=class{constructor(i){t(this,i),this.value=void 0,this.workspaceDefault=void 0,this.localDefault=void 0,this.customDefault=void 0,this.customDefaultLabel=void 0,this.hasError=!1,this.disabled=!1,this.required=!1,this.searchString="",this.timeZoneOptionElements=void 0,this.timeZoneList=void 0,this.filteredZoneList=void 0}on(t){this.searchString=t.detail,this.filteredZoneList=this.filterTimeZoneList(this.timeZoneList),this.timeZoneOptionElements=this.renderTimeZones(this.filteredZoneList)}async componentWillLoad(){n(this.root),this.i18n=await e(this.root,r),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 i=t.target;this.value=null==i?void 0:i.value,h(this.root,"change")}))}filterTimeZoneList(t){const i=this.searchString;return t.filter((t=>this.getFormattedTimeZoneOption(t).toLowerCase().includes(i.toLowerCase())))}getTimeZoneOption(t){const i=this.i18n(t.name),s=t.countryName?this.i18n(t.countryName):void 0;if(!i)return;const e=o(t.currentTimeOffsetInMinutes),a=`${i}`,r=` (${this.i18n("UTC")}${e})`,n=`${r}`,h=a.replace(/_/g," "),d=`${s}`,l=a.startsWith("Etc/GMT")?2:1;return{value:t.name,localizedGroupName:i,formattedOffset:e,displayTextNameFormatted:h,displayTextOffset:r,baseDisplayOffsetText:n,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=a(),i=[];return t.forEach((t=>{const s=this.getTimeZoneOption(t);s&&i.push(s)})),i.sort(((t,i)=>{var s;return t.priority-i.priority||(null===(s=t.displayTextNameFormatted)||void 0===s?void 0:s.localeCompare(i.displayTextNameFormatted))}))}getDefaultZones(){return[this.workspaceDefault,this.localDefault,this.customDefault].filter((t=>!!t))}getDefaultZoneList(){const t=this.getDefaultZones(),i=this.timeZoneList.reduce(((i,s)=>t.includes(s.value)?i.concat([Object.assign({},s)]):i),[]);return i.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})`)})),i}renderTimeZones(t){return t.map((t=>i("gux-option",{class:{"gux-has-defaults":""!==t.defaultZone},value:t.value},i("div",{class:"gux-option-wrapper"},i("div",null,this.getFormattedTimeZoneOption(t)),i("span",{class:"gux-default-zone"},t.defaultZone)))))}renderDefaultsList(){const t=this.renderTimeZones(this.getDefaultZoneList());if(t.length)return i("gux-option-group-beta",{label:this.i18n("default")},t)}renderAllTimeZoneOptionsList(){return i("gux-option-group-beta",{label:this.i18n("all")},this.timeZoneOptionElements)}render(){return i("gux-dropdown",{key:"b158dc7a9da068f23d83163717204f66c6d6a527",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},i("gux-listbox",{key:"8843b96c17d35d428733ab1dd440224b3cfea056","aria-label":this.i18n("timeZones")},this.renderDefaultsList(),this.renderAllTimeZoneOptionsList()))}get root(){return s(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 i,g as s}from"./p-6e010355.js";import{b as o}from"./p-a82e4a04.js";import{f as e,g as r,t as a}from"./p-36923b17.js";import{t as n}from"./p-d6f40cf6.js";import{s as h}from"./p-2c25e2f2.js";import"./p-4202e9f2.js";const d=class{constructor(i){t(this,i),this.value=void 0,this.workspaceDefault=void 0,this.localDefault=void 0,this.customDefault=void 0,this.customDefaultLabel=void 0,this.hasError=!1,this.disabled=!1,this.required=!1,this.searchString="",this.timeZoneOptionElements=void 0,this.timeZoneList=void 0,this.filteredZoneList=void 0}on(t){this.searchString=t.detail,this.filteredZoneList=this.filterTimeZoneList(this.timeZoneList),this.timeZoneOptionElements=this.renderTimeZones(this.filteredZoneList)}async componentWillLoad(){n(this.root),this.i18n=await o(this.root,a),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 i=t.target;this.value=null==i?void 0:i.value,h(this.root,"change")}))}filterTimeZoneList(t){const i=this.searchString;return t.filter((t=>this.getFormattedTimeZoneOption(t).toLowerCase().includes(i.toLowerCase())))}getTimeZoneOption(t){const i=this.i18n(t.name),s=t.countryName?this.i18n(t.countryName):void 0;if(!i)return;const o=e(t.currentTimeOffsetInMinutes),r=`${i}`,a=` (${this.i18n("UTC")}${o})`,n=`${a}`,h=r.replace(/_/g," "),d=`${s}`,l=r.startsWith("Etc/GMT")?2:1;return{value:t.name,localizedGroupName:i,formattedOffset:o,displayTextNameFormatted:h,displayTextOffset:a,baseDisplayOffsetText:n,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(),i=[];return t.forEach((t=>{const s=this.getTimeZoneOption(t);s&&i.push(s)})),i.sort(((t,i)=>{var s;return t.priority-i.priority||(null===(s=t.displayTextNameFormatted)||void 0===s?void 0:s.localeCompare(i.displayTextNameFormatted))}))}getDefaultZones(){return[this.workspaceDefault,this.localDefault,this.customDefault].filter((t=>!!t))}getDefaultZoneList(){const t=this.getDefaultZones(),i=this.timeZoneList.reduce(((i,s)=>t.includes(s.value)?i.concat([Object.assign({},s)]):i),[]);return i.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})`)})),i}renderTimeZones(t){return t.map((t=>i("gux-option",{class:{"gux-has-defaults":""!==t.defaultZone},value:t.value},i("div",{class:"gux-option-wrapper"},i("div",null,this.getFormattedTimeZoneOption(t)),i("span",{class:"gux-default-zone"},t.defaultZone)))))}renderDefaultsList(){const t=this.renderTimeZones(this.getDefaultZoneList());if(t.length)return i("gux-option-group-beta",{label:this.i18n("default")},t)}renderAllTimeZoneOptionsList(){return i("gux-option-group-beta",{label:this.i18n("all")},this.timeZoneOptionElements)}render(){return i("gux-dropdown",{key:"b158dc7a9da068f23d83163717204f66c6d6a527",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},i("gux-listbox",{key:"8843b96c17d35d428733ab1dd440224b3cfea056","aria-label":this.i18n("timeZones")},this.renderDefaultsList(),this.renderAllTimeZoneOptionsList()))}get root(){return s(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,h as a,H as t,g as o}from"./p-6e010355.js";import{t as i}from"./p-6f413aea.js";const s=class{constructor(a){e(this,a)}componentWillLoad(){i(this.root)}render(){return a(t,{key:"7be3f371fb6b42de0ac81257b452a6960d1e3039"},a("div",{key:"a9dc70f3c77a30e1dcefd7afb92646dfd0ee993d",class:"gux-header"},a("div",{key:"00b9e619b560a2625cab0c634bf7b1fa46f15c9e",class:"gux-icon"},a("slot",{key:"ecaec0aa2120c66ccdd6284c5f75b1175af3c56c",name:"icon"})),a("div",{key:"cb87467daa7c67749bab53997b0391836f22591a",class:"gux-title"},a("slot",{key:"6b7b6d37833243981d16704b2f37842826cd3984",name:"title"}))),a("div",{key:"f7118b5aa0d71e4092933f45e1c50351fdc122d5",class:"gux-message"},a("slot",{key:"14e5fa03e89eba7f86416980d81d66cdb8549553",name:"message"})),a("div",{key:"8b48c6260a3bb9ab04b33c639359ad0a403a8298",class:"gux-action-buttons"},a("div",{key:"8423ac1cc51d807d1f146b110cb3ad22ee2aea86",class:"gux-positive-button"},a("slot",{key:"1480b74f0409f9c5bb68d1d1a8878b0749a3923d",name:"positive-button"})),a("div",{key:"e40db3480642d3240c80fb1481861c95faef5e6e",class:"gux-negative-button"},a("slot",{key:"8a197b22e0382fa7983e28f5908aaa24483a0f56",name:"negative-button"}))))}get root(){return o(this)}};s.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:stretch;width:270px;padding:20px 24px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-header{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:center;align-self:auto;order:0;font-family:var(--gse-semantic-heading-lg-bold-fontFamily), var(--gse-semantic-theme-fontFamily-headings), sans-serif;font-size:var(--gse-semantic-heading-lg-bold-fontSize);line-height:var(--gse-semantic-heading-lg-bold-lineHeight);font-weight:var(--gse-semantic-heading-lg-bold-fontWeight)}.gux-header .gux-icon{flex:0 1 auto;align-self:auto;order:0;color:#1da8b3}.gux-header .gux-icon ::slotted(gux-icon){width:32px !important;height:32px !important}.gux-header .gux-title{flex:1 1 auto;align-self:auto;order:0;margin:0 0 0 8px}.gux-message{flex:0 1 auto;align-self:auto;order:0;margin:16px 0;font-family:var(--gse-semantic-body-sm-regular-fontFamily), var(--gse-semantic-theme-fontFamily-body), sans-serif;font-size:var(--gse-semantic-body-sm-regular-fontSize);line-height:var(--gse-semantic-body-sm-regular-lineHeight);font-weight:var(--gse-semantic-body-sm-regular-fontWeight)}.gux-message ::slotted(dl){display:flex;flex-direction:row;flex-wrap:wrap;place-content:stretch flex-start;align-items:flex-start;margin:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;align-self:auto;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;align-self:auto;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}";export{s as gux_action_toast_legacy}
1
+ import{r as e,h as a,H as t,g as o}from"./p-6e010355.js";import{t as i}from"./p-d6f40cf6.js";const s=class{constructor(a){e(this,a)}componentWillLoad(){i(this.root)}render(){return a(t,{key:"7be3f371fb6b42de0ac81257b452a6960d1e3039"},a("div",{key:"a9dc70f3c77a30e1dcefd7afb92646dfd0ee993d",class:"gux-header"},a("div",{key:"00b9e619b560a2625cab0c634bf7b1fa46f15c9e",class:"gux-icon"},a("slot",{key:"ecaec0aa2120c66ccdd6284c5f75b1175af3c56c",name:"icon"})),a("div",{key:"cb87467daa7c67749bab53997b0391836f22591a",class:"gux-title"},a("slot",{key:"6b7b6d37833243981d16704b2f37842826cd3984",name:"title"}))),a("div",{key:"f7118b5aa0d71e4092933f45e1c50351fdc122d5",class:"gux-message"},a("slot",{key:"14e5fa03e89eba7f86416980d81d66cdb8549553",name:"message"})),a("div",{key:"8b48c6260a3bb9ab04b33c639359ad0a403a8298",class:"gux-action-buttons"},a("div",{key:"8423ac1cc51d807d1f146b110cb3ad22ee2aea86",class:"gux-positive-button"},a("slot",{key:"1480b74f0409f9c5bb68d1d1a8878b0749a3923d",name:"positive-button"})),a("div",{key:"e40db3480642d3240c80fb1481861c95faef5e6e",class:"gux-negative-button"},a("slot",{key:"8a197b22e0382fa7983e28f5908aaa24483a0f56",name:"negative-button"}))))}get root(){return o(this)}};s.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:stretch;width:270px;padding:20px 24px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-header{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:center;align-self:auto;order:0;font-family:var(--gse-semantic-heading-lg-bold-fontFamily), var(--gse-semantic-theme-fontFamily-headings), sans-serif;font-size:var(--gse-semantic-heading-lg-bold-fontSize);line-height:var(--gse-semantic-heading-lg-bold-lineHeight);font-weight:var(--gse-semantic-heading-lg-bold-fontWeight)}.gux-header .gux-icon{flex:0 1 auto;align-self:auto;order:0;color:#1da8b3}.gux-header .gux-icon ::slotted(gux-icon){width:32px !important;height:32px !important}.gux-header .gux-title{flex:1 1 auto;align-self:auto;order:0;margin:0 0 0 8px}.gux-message{flex:0 1 auto;align-self:auto;order:0;margin:16px 0;font-family:var(--gse-semantic-body-sm-regular-fontFamily), var(--gse-semantic-theme-fontFamily-body), sans-serif;font-size:var(--gse-semantic-body-sm-regular-fontSize);line-height:var(--gse-semantic-body-sm-regular-lineHeight);font-weight:var(--gse-semantic-body-sm-regular-fontWeight)}.gux-message ::slotted(dl){display:flex;flex-direction:row;flex-wrap:wrap;place-content:stretch flex-start;align-items:flex-start;margin:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;align-self:auto;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;align-self:auto;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}";export{s as gux_action_toast_legacy}
@@ -1 +1 @@
1
- import{r as e,h as o,H as t,g as s}from"./p-6e010355.js";import{a as i,c as r,o as a,f as n,s as d,b as c}from"./p-5107a20b.js";import{a as u}from"./p-cf0e7d3b.js";import{t as h}from"./p-6f413aea.js";import{h as l}from"./p-67d20704.js";const p=class{constructor(o){e(this,o),this.isShown=!1}onKeydown(e){if(e.stopPropagation(),this.isShown)switch(e.key){case"Escape":case"ArrowLeft":case"ArrowUp":return void this.root.focus();case"ArrowDown":return e.preventDefault(),void this.focusOnMenu();case"Enter":return void(this.hideDelayTimeout=u((()=>{this.focusOnMenu()})))}}onKeyup(e){e.stopPropagation()," "!==e.key||(this.root===e.target?this.focusOnMenu():this.hideDelayTimeout=u((()=>{this.root.focus()})))}onmouseenter(){this.show()}onMouseleave(){this.hide()}onClick(e){0!==e.detail&&this.hide(),this.root.focus()}onFocusin(){this.show()}onFocusout(){this.hide()}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0}hide(){this.isShown&&(this.hideDelayTimeout=setTimeout((()=>{this.isShown=!1}),l))}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=i(this.targetElement,this.menuContentElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.root&&r(this.targetElement,this.menuContentElement,{placement:"bottom-start",strategy:"fixed",middleware:[a(16),n(),d(),c({element:this.arrowElement,padding:16})]}).then((({x:e,y:o,middlewareData:t,placement:s})=>{var i;Object.assign(this.menuContentElement.style,{left:`${e}px`,top:`${o}px`});const r=s.split("-")[0],a={top:"bottom",right:"left",bottom:"top",left:"right"}[r],n={top:0,right:90,bottom:180,left:-90}[r];if(t.arrow){const{x:e,y:o}=t.arrow;Object.assign(null===(i=this.arrowElement)||void 0===i?void 0:i.style,{left:null!=e?`${e}px`:"",top:null!=o?`${o}px`:"",right:"",bottom:"",[a]:"-13px",transform:`rotate(${n}deg)`})}}))}focusOnMenu(){if(this.menuContentElement.contains(document.activeElement))return;const e=this.root.querySelector("gux-menu");Array.from(e.children)[0].guxFocus()}componentWillLoad(){h(this.root)}componentDidLoad(){this.isShown&&this.runUpdatePosition()}componentDidUpdate(){this.isShown?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return o(t,{key:"9a6a30ef5a6da68ef8f2ba84bef0452235e2f9b1",tabIndex:0,"aria-haspopup":"true"},o("span",{key:"2fcda7143a3030cee15e4525e6e35e8be3bda451",ref:e=>this.targetElement=e},o("slot",{key:"de096c562a11f6315f88524ea5b96cd7cd6a3c8b",name:"target"})),o("div",{key:"896f1b86873f4fa0c127af915bdb42c23b295117",class:{"gux-flyout-menu-content":!0,"gux-shown":this.isShown},ref:e=>this.menuContentElement=e},o("div",{key:"1d9ca95d7da3928254149eb1455b87c4e2b287f8",ref:e=>this.arrowElement=e,class:"gux-arrow"},o("div",{key:"0bd0fbe389e6213247dd5dd54ec4b00d09ca0616",class:"gux-arrow-caret"})),o("slot",{key:"03d6fc598c56d14fb284ae5fed39825de44940f0",name:"menu"})))}get root(){return s(this)}};p.style=":host{z-index:var(--gse-semantic-zIndex-popover);color:var(--gse-ui-menu-option-label-foregroundColor);cursor:default}:host(:focus){outline:none}:host(:focus-visible){outline:var(--gse-semantic-border-focus) solid var(--gse-semantic-focusOutline-md-borderWidth);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-flyout-menu-content{position:fixed;display:none;border:none;border-radius:var(--gse-ui-menu-borderRadius)}.gux-flyout-menu-content.gux-shown{display:flex}.gux-flyout-menu-content .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-height);padding-block-end:4px;overflow:hidden}.gux-flyout-menu-content .gux-arrow-caret{inline-size:0;block-size:0;filter:drop-shadow(var(--gse-ui-popover-boxShadow-offsetX) var(--gse-ui-popover-boxShadow-offsetY) calc(var(--gse-ui-popover-boxShadow-blur) / 2) var(--gse-ui-popover-boxShadow-color));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}";export{p as gux_flyout_menu}
1
+ import{r as e,h as o,H as t,g as s}from"./p-6e010355.js";import{a as i,c as r,o as a,f as n,s as d,b as c}from"./p-5107a20b.js";import{a as u}from"./p-cf0e7d3b.js";import{t as h}from"./p-d6f40cf6.js";import{h as l}from"./p-67d20704.js";const p=class{constructor(o){e(this,o),this.isShown=!1}onKeydown(e){if(e.stopPropagation(),this.isShown)switch(e.key){case"Escape":case"ArrowLeft":case"ArrowUp":return void this.root.focus();case"ArrowDown":return e.preventDefault(),void this.focusOnMenu();case"Enter":return void(this.hideDelayTimeout=u((()=>{this.focusOnMenu()})))}}onKeyup(e){e.stopPropagation()," "!==e.key||(this.root===e.target?this.focusOnMenu():this.hideDelayTimeout=u((()=>{this.root.focus()})))}onmouseenter(){this.show()}onMouseleave(){this.hide()}onClick(e){0!==e.detail&&this.hide(),this.root.focus()}onFocusin(){this.show()}onFocusout(){this.hide()}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0}hide(){this.isShown&&(this.hideDelayTimeout=setTimeout((()=>{this.isShown=!1}),l))}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=i(this.targetElement,this.menuContentElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.root&&r(this.targetElement,this.menuContentElement,{placement:"bottom-start",strategy:"fixed",middleware:[a(16),n(),d(),c({element:this.arrowElement,padding:16})]}).then((({x:e,y:o,middlewareData:t,placement:s})=>{var i;Object.assign(this.menuContentElement.style,{left:`${e}px`,top:`${o}px`});const r=s.split("-")[0],a={top:"bottom",right:"left",bottom:"top",left:"right"}[r],n={top:0,right:90,bottom:180,left:-90}[r];if(t.arrow){const{x:e,y:o}=t.arrow;Object.assign(null===(i=this.arrowElement)||void 0===i?void 0:i.style,{left:null!=e?`${e}px`:"",top:null!=o?`${o}px`:"",right:"",bottom:"",[a]:"-13px",transform:`rotate(${n}deg)`})}}))}focusOnMenu(){if(this.menuContentElement.contains(document.activeElement))return;const e=this.root.querySelector("gux-menu");Array.from(e.children)[0].guxFocus()}componentWillLoad(){h(this.root)}componentDidLoad(){this.isShown&&this.runUpdatePosition()}componentDidUpdate(){this.isShown?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return o(t,{key:"9a6a30ef5a6da68ef8f2ba84bef0452235e2f9b1",tabIndex:0,"aria-haspopup":"true"},o("span",{key:"2fcda7143a3030cee15e4525e6e35e8be3bda451",ref:e=>this.targetElement=e},o("slot",{key:"de096c562a11f6315f88524ea5b96cd7cd6a3c8b",name:"target"})),o("div",{key:"896f1b86873f4fa0c127af915bdb42c23b295117",class:{"gux-flyout-menu-content":!0,"gux-shown":this.isShown},ref:e=>this.menuContentElement=e},o("div",{key:"1d9ca95d7da3928254149eb1455b87c4e2b287f8",ref:e=>this.arrowElement=e,class:"gux-arrow"},o("div",{key:"0bd0fbe389e6213247dd5dd54ec4b00d09ca0616",class:"gux-arrow-caret"})),o("slot",{key:"03d6fc598c56d14fb284ae5fed39825de44940f0",name:"menu"})))}get root(){return s(this)}};p.style=":host{z-index:var(--gse-semantic-zIndex-popover);color:var(--gse-ui-menu-option-label-foregroundColor);cursor:default}:host(:focus){outline:none}:host(:focus-visible){outline:var(--gse-semantic-border-focus) solid var(--gse-semantic-focusOutline-md-borderWidth);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-flyout-menu-content{position:fixed;display:none;border:none;border-radius:var(--gse-ui-menu-borderRadius)}.gux-flyout-menu-content.gux-shown{display:flex}.gux-flyout-menu-content .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-height);padding-block-end:4px;overflow:hidden}.gux-flyout-menu-content .gux-arrow-caret{inline-size:0;block-size:0;filter:drop-shadow(var(--gse-ui-popover-boxShadow-offsetX) var(--gse-ui-popover-boxShadow-offsetY) calc(var(--gse-ui-popover-boxShadow-blur) / 2) var(--gse-ui-popover-boxShadow-color));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}";export{p as gux_flyout_menu}