genesys-spark-components 4.152.0 → 4.153.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
  2. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-avatar-beta.cjs.entry.js +18 -7
  8. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-avatar-group-add-item-beta_3.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-avatar-group-item-beta.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-button_2.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-calendar-beta.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-day-beta.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-file-list-item.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-file-beta.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-file.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-number_2.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-inline-dropdown-beta.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-link-beta.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +2 -2
  72. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-popover-beta.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-popover-list-beta.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-rich-highlight-list-item.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-rich-style-list-item_3.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-rich-text-editor-beta.cjs.entry.js +1 -1
  88. package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  91. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
  92. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
  93. package/dist/cjs/gux-side-panel-beta.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-side-panel-heading.cjs.entry.js +1 -1
  95. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  96. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  97. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  98. package/dist/cjs/gux-status-indicator-beta.cjs.entry.js +1 -1
  99. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  100. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  101. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  102. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  103. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  104. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  105. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  106. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  107. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  108. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  109. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  110. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  111. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
  112. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  113. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  114. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  115. package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +1 -1
  116. package/dist/cjs/gux-tooltip-pointer-beta.cjs.entry.js +1 -1
  117. package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
  118. package/dist/cjs/loader.cjs.js +1 -1
  119. package/dist/cjs/{usage-0d81b45b.js → usage-1ea0b058.js} +5 -5
  120. package/dist/collection/components/beta/gux-avatar/gux-avatar.css +1 -0
  121. package/dist/collection/components/beta/gux-avatar/gux-avatar.js +36 -5
  122. package/dist/collection/components/beta/gux-cta-group/tests/gux-cta-group.common.js +22 -0
  123. package/dist/collection/components/beta/gux-form/gux-form-fieldset-heading/tests/gux-form-fieldset-heading.common.js +4 -0
  124. package/dist/collection/components/beta/gux-form/gux-form-footer/tests/gux-form-footer.common.js +13 -0
  125. package/dist/collection/components/beta/gux-form/gux-form-heading/tests/gux-form-heading.common.js +4 -0
  126. package/dist/collection/components/beta/gux-icon-tooltip/gux-icon-tooltip.js +1 -1
  127. package/dist/collection/components/beta/gux-month-picker/tests/gux-month-picker.common.js +10 -0
  128. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-list/tests/gux-rich-text-editor-list.common.js +11 -0
  129. package/dist/collection/components/beta/gux-side-panel/components/gux-side-panel-heading/gux-side-panel-heading.js +1 -1
  130. package/dist/collection/components/stable/gux-icon/gux-icon.js +1 -1
  131. package/dist/collection/components/stable/gux-icon/icons/fa/circle-dashed-regular.svg +1 -0
  132. package/dist/collection/components/stable/gux-icon/icons/fa/circle-half-stroke-regular.svg +1 -0
  133. package/dist/collection/components/stable/gux-pagination-cursor/gux-pagination-cursor.js +1 -1
  134. package/dist/collection/components/stable/gux-popover-list/tests/gux-popover-list.common.js +15 -0
  135. package/dist/collection/components/stable/gux-tabs/gux-tab-list/tests/gux-tab-list.common.js +19 -0
  136. package/dist/esm/genesys-webcomponents.js +1 -1
  137. package/dist/esm/gux-accordion.entry.js +1 -1
  138. package/dist/esm/gux-action-button.entry.js +1 -1
  139. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  140. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  141. package/dist/esm/gux-announce-beta.entry.js +1 -1
  142. package/dist/esm/gux-avatar-beta.entry.js +18 -7
  143. package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
  144. package/dist/esm/gux-avatar-group-add-item-beta_3.entry.js +1 -1
  145. package/dist/esm/gux-avatar-group-beta.entry.js +1 -1
  146. package/dist/esm/gux-avatar-group-item-beta.entry.js +1 -1
  147. package/dist/esm/gux-badge.entry.js +1 -1
  148. package/dist/esm/gux-blank-state.entry.js +1 -1
  149. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  150. package/dist/esm/gux-button-multi.entry.js +1 -1
  151. package/dist/esm/gux-button-slot.entry.js +1 -1
  152. package/dist/esm/gux-button_2.entry.js +1 -1
  153. package/dist/esm/gux-calendar-beta.entry.js +1 -1
  154. package/dist/esm/gux-calendar.entry.js +1 -1
  155. package/dist/esm/gux-card.entry.js +1 -1
  156. package/dist/esm/gux-column-manager.entry.js +1 -1
  157. package/dist/esm/gux-content-search.entry.js +1 -1
  158. package/dist/esm/gux-context-menu.entry.js +1 -1
  159. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  160. package/dist/esm/gux-date-beta.entry.js +1 -1
  161. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  162. package/dist/esm/gux-datepicker.entry.js +1 -1
  163. package/dist/esm/gux-day-beta.entry.js +1 -1
  164. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  165. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  166. package/dist/esm/gux-dropdown-multi.entry.js +1 -1
  167. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  168. package/dist/esm/gux-file-list-item.entry.js +1 -1
  169. package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
  170. package/dist/esm/gux-flyout-menu.entry.js +1 -1
  171. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +1 -1
  172. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  173. package/dist/esm/gux-form-field-color.entry.js +1 -1
  174. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  175. package/dist/esm/gux-form-field-file-beta.entry.js +1 -1
  176. package/dist/esm/gux-form-field-file.entry.js +1 -1
  177. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  178. package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
  179. package/dist/esm/gux-form-field-number_2.entry.js +1 -1
  180. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  181. package/dist/esm/gux-form-field-radio-group-beta.entry.js +1 -1
  182. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  183. package/dist/esm/gux-form-field-range.entry.js +1 -1
  184. package/dist/esm/gux-form-field-search.entry.js +1 -1
  185. package/dist/esm/gux-form-field-select.entry.js +1 -1
  186. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  187. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  188. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  189. package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
  190. package/dist/esm/gux-form-footer.entry.js +1 -1
  191. package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
  192. package/dist/esm/gux-icon.entry.js +1 -1
  193. package/dist/esm/gux-inline-alert.entry.js +1 -1
  194. package/dist/esm/gux-inline-dropdown-beta.entry.js +1 -1
  195. package/dist/esm/gux-label-info-beta.entry.js +1 -1
  196. package/dist/esm/gux-link-beta.entry.js +1 -1
  197. package/dist/esm/gux-list.entry.js +1 -1
  198. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  199. package/dist/esm/gux-loading-message.entry.js +1 -1
  200. package/dist/esm/gux-modal-legacy.entry.js +1 -1
  201. package/dist/esm/gux-modal-side-panel-beta.entry.js +1 -1
  202. package/dist/esm/gux-modal.entry.js +1 -1
  203. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  204. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  205. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  206. package/dist/esm/gux-pagination-cursor.entry.js +2 -2
  207. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  208. package/dist/esm/gux-pagination.entry.js +1 -1
  209. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  210. package/dist/esm/gux-popover-beta.entry.js +1 -1
  211. package/dist/esm/gux-popover-list-beta.entry.js +1 -1
  212. package/dist/esm/gux-popover-list.entry.js +1 -1
  213. package/dist/esm/gux-radial-loading.entry.js +1 -1
  214. package/dist/esm/gux-radial-progress.entry.js +1 -1
  215. package/dist/esm/gux-rating.entry.js +1 -1
  216. package/dist/esm/gux-rich-highlight-list-item.entry.js +1 -1
  217. package/dist/esm/gux-rich-style-list-item_3.entry.js +1 -1
  218. package/dist/esm/gux-rich-text-editor-action-link.entry.js +1 -1
  219. package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +1 -1
  220. package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +1 -1
  221. package/dist/esm/gux-rich-text-editor-action.entry.js +1 -1
  222. package/dist/esm/gux-rich-text-editor-beta.entry.js +1 -1
  223. package/dist/esm/gux-rich-text-editor-list.entry.js +1 -1
  224. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  225. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  226. package/dist/esm/gux-selector-card-beta.entry.js +1 -1
  227. package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
  228. package/dist/esm/gux-side-panel-beta.entry.js +1 -1
  229. package/dist/esm/gux-side-panel-heading.entry.js +1 -1
  230. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  231. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  232. package/dist/esm/gux-sort-control.entry.js +1 -1
  233. package/dist/esm/gux-status-indicator-beta.entry.js +1 -1
  234. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  235. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  236. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  237. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  238. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  239. package/dist/esm/gux-table.entry.js +1 -1
  240. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  241. package/dist/esm/gux-tabs.entry.js +1 -1
  242. package/dist/esm/gux-tag.entry.js +1 -1
  243. package/dist/esm/gux-text-highlight.entry.js +1 -1
  244. package/dist/esm/gux-time-beta.entry.js +1 -1
  245. package/dist/esm/gux-time-picker.entry.js +1 -1
  246. package/dist/esm/gux-time-zone-beta.entry.js +1 -1
  247. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  248. package/dist/esm/gux-toast.entry.js +1 -1
  249. package/dist/esm/gux-toggle.entry.js +1 -1
  250. package/dist/esm/gux-tooltip-base-beta_2.entry.js +1 -1
  251. package/dist/esm/gux-tooltip-pointer-beta.entry.js +1 -1
  252. package/dist/esm/gux-tooltip_2.entry.js +1 -1
  253. package/dist/esm/loader.js +1 -1
  254. package/dist/esm/{usage-749e387f.js → usage-fceff7a5.js} +5 -5
  255. package/dist/genesys-webcomponents/genesys-webcomponents-legacy.css +1 -1
  256. package/dist/genesys-webcomponents/genesys-webcomponents.css +6 -2
  257. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  258. package/dist/genesys-webcomponents/icons/fa/circle-dashed-regular.svg +1 -0
  259. package/dist/genesys-webcomponents/icons/fa/circle-half-stroke-regular.svg +1 -0
  260. package/dist/genesys-webcomponents/{p-310be0a5.entry.js → p-0553c007.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/{p-fbeff23c.entry.js → p-06f63262.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/{p-ed5cb590.entry.js → p-12b39cc8.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/{p-b47e7ede.entry.js → p-1360d013.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/p-149e26c3.entry.js +1 -0
  265. package/dist/genesys-webcomponents/{p-d2e5d502.entry.js → p-1c819628.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-3882acb4.entry.js → p-219fce3c.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-2bc817b4.entry.js → p-2357f354.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-4a10d652.entry.js → p-256313cd.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-3153e03a.entry.js → p-27e7dc91.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-9d2f2bc9.entry.js → p-294fc30f.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-ce63ce86.entry.js → p-2baebb43.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-66705c3d.entry.js → p-2dd59117.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-686acc74.js → p-338a62bc.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-651c4f60.entry.js → p-34da3b2f.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-cbfbc716.entry.js → p-356f535f.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-7ff7f89b.entry.js → p-35f61006.entry.js} +1 -1
  277. package/dist/genesys-webcomponents/{p-e749d4a1.entry.js → p-36eaae28.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-f866d33c.entry.js → p-3735bdc6.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/{p-dfc6eb36.entry.js → p-38991302.entry.js} +1 -1
  280. package/dist/genesys-webcomponents/{p-1066dd2f.entry.js → p-3caa472a.entry.js} +1 -1
  281. package/dist/genesys-webcomponents/{p-8ba3391f.entry.js → p-3e847793.entry.js} +1 -1
  282. package/dist/genesys-webcomponents/{p-06dde5d7.entry.js → p-3f0a8145.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-8f64cc9b.entry.js → p-3f2faa6b.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/{p-12a65e2b.entry.js → p-447a67d0.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/{p-8bc2f3d8.entry.js → p-44ff06ad.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-127bb9e5.entry.js → p-455013e6.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-8dfbcbe0.entry.js → p-47298531.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-97a62a5f.entry.js → p-4bdd3794.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-2a8ac654.entry.js → p-53024547.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/{p-bab1a8c6.entry.js → p-540efead.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/{p-35976fa9.entry.js → p-54bba6cf.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-a6ffb97d.entry.js → p-54ecc601.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-8023a7a8.entry.js → p-57c600ac.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-36816e0c.entry.js → p-5d61f0bd.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-c7224e19.entry.js → p-5ecb35a5.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-56d4a78c.entry.js → p-6916df06.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-5edca0b0.entry.js → p-6a1629a3.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-00729c70.entry.js → p-6bf6268b.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-0541ea34.entry.js → p-70aee707.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-ef42a220.entry.js → p-71e4ec08.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/{p-4b3bfb6e.entry.js → p-77ca75f3.entry.js} +1 -1
  302. package/dist/genesys-webcomponents/{p-ce3d1fa5.entry.js → p-7b5bb6f2.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-b20131a9.entry.js → p-7b789743.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/p-7daa3b4a.entry.js +1 -0
  305. package/dist/genesys-webcomponents/{p-5be2d759.entry.js → p-7e1fdc9a.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-516bfbc3.entry.js → p-7e927f8a.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/{p-dfaf43df.entry.js → p-80b27bb6.entry.js} +1 -1
  308. package/dist/genesys-webcomponents/{p-cba09121.entry.js → p-8272581b.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-aaf619e6.entry.js → p-830c251a.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-8a817239.entry.js → p-83c3d549.entry.js} +1 -1
  311. package/dist/genesys-webcomponents/{p-08f6e5a6.entry.js → p-862b0d86.entry.js} +1 -1
  312. package/dist/genesys-webcomponents/{p-642fe9dc.entry.js → p-86e568bb.entry.js} +1 -1
  313. package/dist/genesys-webcomponents/{p-0baa5383.entry.js → p-87c171cc.entry.js} +1 -1
  314. package/dist/genesys-webcomponents/{p-e4b35258.entry.js → p-8aec946a.entry.js} +1 -1
  315. package/dist/genesys-webcomponents/{p-bd9e110b.entry.js → p-8bb1a9d6.entry.js} +1 -1
  316. package/dist/genesys-webcomponents/{p-85fcb826.entry.js → p-8db88086.entry.js} +1 -1
  317. package/dist/genesys-webcomponents/{p-2a91008f.entry.js → p-8fa443e4.entry.js} +1 -1
  318. package/dist/genesys-webcomponents/{p-4ac66bb5.entry.js → p-90fd7245.entry.js} +1 -1
  319. package/dist/genesys-webcomponents/{p-e3ee688a.entry.js → p-9224988c.entry.js} +1 -1
  320. package/dist/genesys-webcomponents/{p-02cd1715.entry.js → p-9359f28a.entry.js} +1 -1
  321. package/dist/genesys-webcomponents/{p-4bac47bb.entry.js → p-9725dc6a.entry.js} +1 -1
  322. package/dist/genesys-webcomponents/{p-dac14e39.entry.js → p-99db3399.entry.js} +1 -1
  323. package/dist/genesys-webcomponents/{p-cc53c030.entry.js → p-9b0abbe3.entry.js} +1 -1
  324. package/dist/genesys-webcomponents/{p-99ba711e.entry.js → p-9d08d7be.entry.js} +1 -1
  325. package/dist/genesys-webcomponents/{p-663787a9.entry.js → p-9d1d1ae7.entry.js} +1 -1
  326. package/dist/genesys-webcomponents/{p-0bcf22eb.entry.js → p-a161fe54.entry.js} +1 -1
  327. package/dist/genesys-webcomponents/{p-2f5c406a.entry.js → p-a2c19f6b.entry.js} +1 -1
  328. package/dist/genesys-webcomponents/{p-247232ee.entry.js → p-a89b02dc.entry.js} +1 -1
  329. package/dist/genesys-webcomponents/{p-586afacd.entry.js → p-a904eb93.entry.js} +1 -1
  330. package/dist/genesys-webcomponents/{p-9a11d5c1.entry.js → p-a932efc9.entry.js} +1 -1
  331. package/dist/genesys-webcomponents/{p-bb6381e8.entry.js → p-a9c6eeba.entry.js} +1 -1
  332. package/dist/genesys-webcomponents/{p-2f2a239b.entry.js → p-ae4edb21.entry.js} +1 -1
  333. package/dist/genesys-webcomponents/{p-a79e7789.entry.js → p-afaa4055.entry.js} +1 -1
  334. package/dist/genesys-webcomponents/{p-071e603c.entry.js → p-b2607ed6.entry.js} +1 -1
  335. package/dist/genesys-webcomponents/{p-0c453577.entry.js → p-b2d88911.entry.js} +1 -1
  336. package/dist/genesys-webcomponents/{p-34097ce3.entry.js → p-b33c892b.entry.js} +1 -1
  337. package/dist/genesys-webcomponents/{p-96bb02d2.entry.js → p-b5315ad1.entry.js} +1 -1
  338. package/dist/genesys-webcomponents/{p-0ee4d134.entry.js → p-b78e3b24.entry.js} +1 -1
  339. package/dist/genesys-webcomponents/{p-5497118b.entry.js → p-b88a62f7.entry.js} +1 -1
  340. package/dist/genesys-webcomponents/{p-2f419d4c.entry.js → p-b8a0a4d3.entry.js} +1 -1
  341. package/dist/genesys-webcomponents/{p-900bd566.entry.js → p-ba96e274.entry.js} +1 -1
  342. package/dist/genesys-webcomponents/{p-5eed2363.entry.js → p-bbdcdbca.entry.js} +1 -1
  343. package/dist/genesys-webcomponents/{p-24ed9520.entry.js → p-c4c94c36.entry.js} +1 -1
  344. package/dist/genesys-webcomponents/{p-69651009.entry.js → p-ccc8b8b7.entry.js} +1 -1
  345. package/dist/genesys-webcomponents/{p-e95d11e0.entry.js → p-cd9ee8d6.entry.js} +1 -1
  346. package/dist/genesys-webcomponents/{p-f1df7d78.entry.js → p-ce5e702e.entry.js} +1 -1
  347. package/dist/genesys-webcomponents/{p-fbac9d15.entry.js → p-cf5eee9b.entry.js} +1 -1
  348. package/dist/genesys-webcomponents/{p-dae592a2.entry.js → p-d02c5a0c.entry.js} +1 -1
  349. package/dist/genesys-webcomponents/{p-ec27d647.entry.js → p-d19f5116.entry.js} +1 -1
  350. package/dist/genesys-webcomponents/{p-5427c85d.entry.js → p-d5078667.entry.js} +1 -1
  351. package/dist/genesys-webcomponents/{p-659ff574.entry.js → p-d58150a3.entry.js} +1 -1
  352. package/dist/genesys-webcomponents/{p-cbd23a86.entry.js → p-dc7531ba.entry.js} +1 -1
  353. package/dist/genesys-webcomponents/{p-ca6d4684.entry.js → p-dfce86de.entry.js} +1 -1
  354. package/dist/genesys-webcomponents/{p-9fd9444e.entry.js → p-e1b33e28.entry.js} +1 -1
  355. package/dist/genesys-webcomponents/{p-87c319d7.entry.js → p-e38793f0.entry.js} +1 -1
  356. package/dist/genesys-webcomponents/{p-57e24406.entry.js → p-e4476749.entry.js} +1 -1
  357. package/dist/genesys-webcomponents/{p-161a7ec0.entry.js → p-e71a00e6.entry.js} +1 -1
  358. package/dist/genesys-webcomponents/{p-2c1b84ec.entry.js → p-e8ef37f9.entry.js} +1 -1
  359. package/dist/genesys-webcomponents/{p-796d4674.entry.js → p-ea73ab68.entry.js} +1 -1
  360. package/dist/genesys-webcomponents/{p-b6125ea3.entry.js → p-eb0ff72f.entry.js} +1 -1
  361. package/dist/genesys-webcomponents/{p-bd261507.entry.js → p-ec270ae2.entry.js} +1 -1
  362. package/dist/genesys-webcomponents/{p-ef8d3df1.entry.js → p-ec274a59.entry.js} +1 -1
  363. package/dist/genesys-webcomponents/{p-f25a709d.entry.js → p-ec5ec324.entry.js} +1 -1
  364. package/dist/genesys-webcomponents/{p-5ba40058.entry.js → p-efe162e8.entry.js} +1 -1
  365. package/dist/genesys-webcomponents/{p-291cd4d4.entry.js → p-f07c97b6.entry.js} +1 -1
  366. package/dist/genesys-webcomponents/{p-b910e4a3.entry.js → p-f34ddb13.entry.js} +1 -1
  367. package/dist/genesys-webcomponents/{p-a410cba8.entry.js → p-f3776bd6.entry.js} +1 -1
  368. package/dist/genesys-webcomponents/{p-ec257d16.entry.js → p-f3eec238.entry.js} +1 -1
  369. package/dist/genesys-webcomponents/{p-f133cfc7.entry.js → p-f3f5b3f4.entry.js} +1 -1
  370. package/dist/genesys-webcomponents/{p-b0ffc624.entry.js → p-f6fbffb5.entry.js} +1 -1
  371. package/dist/genesys-webcomponents/{p-744f81cb.entry.js → p-f71c33c9.entry.js} +1 -1
  372. package/dist/genesys-webcomponents/{p-ba7ea268.entry.js → p-f74bfb1c.entry.js} +1 -1
  373. package/dist/genesys-webcomponents/{p-88d134e0.entry.js → p-f7f56578.entry.js} +1 -1
  374. package/dist/genesys-webcomponents/{p-314f3ac9.entry.js → p-fac5aca5.entry.js} +1 -1
  375. package/dist/genesys-webcomponents/{p-370b5e8a.entry.js → p-fad756d2.entry.js} +1 -1
  376. package/dist/genesys-webcomponents/{p-422bad80.entry.js → p-fb90609c.entry.js} +1 -1
  377. package/dist/stencil-wrapper.js +1 -1
  378. package/dist/types/components/beta/gux-avatar/gux-avatar.d.ts +4 -0
  379. package/dist/types/components/beta/gux-cta-group/tests/gux-cta-group.common.d.ts +4 -0
  380. package/dist/types/components/beta/gux-form/gux-form-fieldset-heading/tests/gux-form-fieldset-heading.common.d.ts +4 -0
  381. package/dist/types/components/beta/gux-form/gux-form-footer/tests/gux-form-footer.common.d.ts +4 -0
  382. package/dist/types/components/beta/gux-form/gux-form-heading/tests/gux-form-heading.common.d.ts +4 -0
  383. package/dist/types/components/beta/gux-month-picker/tests/gux-month-picker.common.d.ts +4 -0
  384. package/dist/types/components/beta/gux-rich-text-editor/gux-rich-text-editor-list/tests/gux-rich-text-editor-list.common.d.ts +4 -0
  385. package/dist/types/components/stable/gux-icon/gux-icon.types.d.ts +1 -1
  386. package/dist/types/components/stable/gux-popover-list/tests/gux-popover-list.common.d.ts +4 -0
  387. package/dist/types/components/stable/gux-tabs/gux-tab-list/tests/gux-tab-list.common.d.ts +4 -0
  388. package/dist/types/components.d.ts +8 -0
  389. package/dist/types/stencil-wrapper.d.ts +1 -1
  390. package/package.json +5 -5
  391. package/dist/genesys-webcomponents/p-00870bb4.entry.js +0 -1
  392. package/dist/genesys-webcomponents/p-ab800c61.entry.js +0 -1
  393. /package/dist/cjs/{index.umd-d194ea0c.js → index.umd-30d89361.js} +0 -0
  394. /package/dist/esm/{index.umd-43697c2e.js → index.umd-53880c36.js} +0 -0
  395. /package/dist/genesys-webcomponents/{p-66700cb3.js → p-0cdbaacd.js} +0 -0
@@ -1 +1 @@
1
- import{r as t,f as e,h as s,g as i}from"./p-cf74fd3d.js";import{t as r}from"./p-686acc74.js";import{h as o}from"./p-b2e29026.js";import{O as a}from"./p-f3d844c7.js";import{b as n}from"./p-cf0e7d3b.js";import{b as l}from"./p-e5e644b3.js";import{t as u}from"./p-f01d2320.js";import"./p-43af726d.js";import"./p-4202e9f2.js";const h=class{constructor(e){t(this,e),this.expanded=!1,this.disabled=!1}onClickOutside(){this.expanded=!1}watchValue(t){this.validateValue(t,this.listElement)}watchDisabled(t){t&&(this.expanded=!1)}onInternallistitemsupdated(t){t.stopPropagation(),e(this.root)}handleKeydown(t){const e=t.composedPath().includes(this.actionButton),s=t.composedPath().includes(this.listElement);switch(t.key){case"Escape":s&&(t.preventDefault(),this.expanded=!1,this.actionButton.focus());break;case"ArrowDown":case"Enter":e&&!this.expanded&&(t.preventDefault(),this.expanded=!0,this.focusFirstListItem());break;case"Tab":this.expanded=!1;break;case"ArrowUp":e&&!this.expanded&&(t.preventDefault(),this.expanded=!0,this.focusLastListItem())}}handleKeyup(t){" "===t.key&&t.composedPath().includes(this.actionButton)&&(t.preventDefault(),this.expanded=!0,this.focusFirstListItem())}focusFirstListItem(){n((()=>{this.listElement.guxFocusFirstItem()}))}focusLastListItem(){n((()=>{this.listElement.guxFocusLastItem()}))}async componentWillLoad(){r(this.root),this.i18n=await l(this.root,u)}componentWillRender(){(null==this?void 0:this.listElement)&&this.validateValue(this.value,this.listElement)}validateValue(t,e){void 0!==t?this.getListItemElementByValue(t)&&(e.value=t):e.value=t}get listItemElements(){const t=this.listElement.querySelector("slot");if(t)return Array.from(t.assignedElements())}getListItemElementByValue(t){return this.listItemElements.find((e=>e.value===t))}renderTargetDisplay(){if(null==this?void 0:this.listElement){const t=this.getListItemElementByValue(this.value);if(t)return s("span",null,this.renderListItem(t))}}renderMenu(){return s("div",{class:"gux-target-display"},this.renderTargetDisplay(),s("gux-icon",{"icon-name":this.expanded?"custom/chevron-up-small-regular":"custom/chevron-down-small-regular","screenreader-text":this.i18n("richStyleDropdown")}))}renderListItem(t){return s("gux-truncate",{"max-lines":1},t.textContent)}renderTooltip(){if(!this.disabled&&!this.expanded)return s("gux-tooltip-beta",null,s("div",{slot:"content"},this.i18n("richStyle")))}onActionButtonClick(){this.expanded=!this.expanded,this.expanded&&this.focusFirstListItem()}updateValue(t){this.value!==t&&(this.value=t)}onListClick(t){const e=t.target.closest("gux-rich-style-list-item");e&&(this.expanded=!1,this.updateValue(e.value),this.actionButton.focus())}renderPopup(){return s("div",{class:"gux-list-container",slot:"popup"},s("gux-rich-text-editor-list",{ref:t=>this.listElement=t,onClick:t=>this.onListClick(t)},s("slot",null)))}renderTarget(){return s("gux-button-slot",{accent:"ghost",slot:"target","icon-only":!0},s("button",{type:"button",ref:t=>this.actionButton=t,class:{"gux-is-pressed":this.expanded},onClick:()=>this.onActionButtonClick(),disabled:this.disabled||o(this.root),"aria-haspopup":"true","aria-expanded":this.expanded.toString()},this.renderMenu()),this.renderTooltip())}render(){return s("gux-popup",{key:"a3acff488d05a0c81e3e877015c8ccf90f901479",expanded:this.expanded,exceedTargetWidth:!0,placement:"bottom-start"},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return i(this)}static get watchers(){return{value:["watchValue"],disabled:["watchDisabled"]}}};(function(t,e,s,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,s,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(o<3?r(a):o>3?r(e,s,a):r(e,s))||a);o>3&&a&&Object.defineProperty(e,s,a)})([a({triggerEvents:"mousedown"})],h.prototype,"onClickOutside",null),h.style=":host{display:block}gux-button-slot button .gux-target-display{display:flex;flex-direction:row;gap:4px;align-items:center;justify-content:center}gux-button-slot button.gux-is-pressed{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}.gux-list-container{inline-size:214px;margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}";export{h as gux_rich_text_editor_action_rich_style}
1
+ import{r as t,f as e,h as s,g as i}from"./p-cf74fd3d.js";import{t as r}from"./p-338a62bc.js";import{h as o}from"./p-b2e29026.js";import{O as a}from"./p-f3d844c7.js";import{b as n}from"./p-cf0e7d3b.js";import{b as l}from"./p-e5e644b3.js";import{t as u}from"./p-f01d2320.js";import"./p-43af726d.js";import"./p-4202e9f2.js";const h=class{constructor(e){t(this,e),this.expanded=!1,this.disabled=!1}onClickOutside(){this.expanded=!1}watchValue(t){this.validateValue(t,this.listElement)}watchDisabled(t){t&&(this.expanded=!1)}onInternallistitemsupdated(t){t.stopPropagation(),e(this.root)}handleKeydown(t){const e=t.composedPath().includes(this.actionButton),s=t.composedPath().includes(this.listElement);switch(t.key){case"Escape":s&&(t.preventDefault(),this.expanded=!1,this.actionButton.focus());break;case"ArrowDown":case"Enter":e&&!this.expanded&&(t.preventDefault(),this.expanded=!0,this.focusFirstListItem());break;case"Tab":this.expanded=!1;break;case"ArrowUp":e&&!this.expanded&&(t.preventDefault(),this.expanded=!0,this.focusLastListItem())}}handleKeyup(t){" "===t.key&&t.composedPath().includes(this.actionButton)&&(t.preventDefault(),this.expanded=!0,this.focusFirstListItem())}focusFirstListItem(){n((()=>{this.listElement.guxFocusFirstItem()}))}focusLastListItem(){n((()=>{this.listElement.guxFocusLastItem()}))}async componentWillLoad(){r(this.root),this.i18n=await l(this.root,u)}componentWillRender(){(null==this?void 0:this.listElement)&&this.validateValue(this.value,this.listElement)}validateValue(t,e){void 0!==t?this.getListItemElementByValue(t)&&(e.value=t):e.value=t}get listItemElements(){const t=this.listElement.querySelector("slot");if(t)return Array.from(t.assignedElements())}getListItemElementByValue(t){return this.listItemElements.find((e=>e.value===t))}renderTargetDisplay(){if(null==this?void 0:this.listElement){const t=this.getListItemElementByValue(this.value);if(t)return s("span",null,this.renderListItem(t))}}renderMenu(){return s("div",{class:"gux-target-display"},this.renderTargetDisplay(),s("gux-icon",{"icon-name":this.expanded?"custom/chevron-up-small-regular":"custom/chevron-down-small-regular","screenreader-text":this.i18n("richStyleDropdown")}))}renderListItem(t){return s("gux-truncate",{"max-lines":1},t.textContent)}renderTooltip(){if(!this.disabled&&!this.expanded)return s("gux-tooltip-beta",null,s("div",{slot:"content"},this.i18n("richStyle")))}onActionButtonClick(){this.expanded=!this.expanded,this.expanded&&this.focusFirstListItem()}updateValue(t){this.value!==t&&(this.value=t)}onListClick(t){const e=t.target.closest("gux-rich-style-list-item");e&&(this.expanded=!1,this.updateValue(e.value),this.actionButton.focus())}renderPopup(){return s("div",{class:"gux-list-container",slot:"popup"},s("gux-rich-text-editor-list",{ref:t=>this.listElement=t,onClick:t=>this.onListClick(t)},s("slot",null)))}renderTarget(){return s("gux-button-slot",{accent:"ghost",slot:"target","icon-only":!0},s("button",{type:"button",ref:t=>this.actionButton=t,class:{"gux-is-pressed":this.expanded},onClick:()=>this.onActionButtonClick(),disabled:this.disabled||o(this.root),"aria-haspopup":"true","aria-expanded":this.expanded.toString()},this.renderMenu()),this.renderTooltip())}render(){return s("gux-popup",{key:"a3acff488d05a0c81e3e877015c8ccf90f901479",expanded:this.expanded,exceedTargetWidth:!0,placement:"bottom-start"},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return i(this)}static get watchers(){return{value:["watchValue"],disabled:["watchDisabled"]}}};(function(t,e,s,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,s,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(o<3?r(a):o>3?r(e,s,a):r(e,s))||a);o>3&&a&&Object.defineProperty(e,s,a)})([a({triggerEvents:"mousedown"})],h.prototype,"onClickOutside",null),h.style=":host{display:block}gux-button-slot button .gux-target-display{display:flex;flex-direction:row;gap:4px;align-items:center;justify-content:center}gux-button-slot button.gux-is-pressed{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}.gux-list-container{inline-size:214px;margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}";export{h as gux_rich_text_editor_action_rich_style}
@@ -1 +1 @@
1
- const t="4.152.0",e=20,n=3e4,o=[function(t){const[e,n,...o]=t.split(".");return{name:"spark-library",metadata:{fullVersion:`${e}.${n}.${o.join(".")}`,majorVersion:e,minorVersion:`${e}.${n}`}}}(t)];function i(){const t=window.newrelic;if(t){for(let r=0;r<e;r++){if(0==o.length)return void setTimeout(i,n);const e=o.shift();t.addPageAction(e.name,Object.assign(Object.assign({},e.metadata),{queueDepth:o.length}))}setTimeout(i,n)}}let r=!1;function c(e,n){window.newrelic&&(r||(r=!0,i()),document.contains(e)&&o.push({name:"spark-component",metadata:Object.assign(Object.assign({},n),{component:e.tagName.toLowerCase(),version:t})}))}export{c as t}
1
+ const t="4.153.0",e=20,n=3e4,o=[function(t){const[e,n,...o]=t.split(".");return{name:"spark-library",metadata:{fullVersion:`${e}.${n}.${o.join(".")}`,majorVersion:e,minorVersion:`${e}.${n}`}}}(t)];function i(){const t=window.newrelic;if(t){for(let r=0;r<e;r++){if(0==o.length)return void setTimeout(i,n);const e=o.shift();t.addPageAction(e.name,Object.assign(Object.assign({},e.metadata),{queueDepth:o.length}))}setTimeout(i,n)}}let r=!1;function c(e,n){window.newrelic&&(r||(r=!0,i()),document.contains(e)&&o.push({name:"spark-component",metadata:Object.assign(Object.assign({},n),{component:e.tagName.toLowerCase(),version:t})}))}export{c as t}
@@ -1 +1 @@
1
- import{r as o,c as a,h as t,g as e}from"./p-cf74fd3d.js";import{b as g}from"./p-e5e644b3.js";import{t as r}from"./p-686acc74.js";import"./p-4202e9f2.js";const u={tag:"tag with label: {label}","tag-disabled":"disabled tag with label: {label}","remove-tag":"Remove tag with label: {label}"},c=class{constructor(t){o(this,t),this.guxdelete=a(this,"guxdelete",7),this.accent="default",this.disabled=!1,this.removable=!1,this.size="small",this.emphasis="bold"}onKeyDown(o){switch(o.key){case"Backspace":case"Delete":this.removeTag()}}removeTag(){!this.disabled&&this.removable&&this.guxdelete.emit()}onSlotChange(o){const a=o.composedPath()[0].assignedNodes();this.label=a.map((o=>o.textContent.trim())).join("")}renderTagTitle(){return t("gux-tooltip-title",null,t("span",null,t("slot",{"aria-hidden":"true",onSlotchange:this.onSlotChange.bind(this)})))}renderSrText(){return t("div",{class:"gux-sr-only"},this.i18n(this.disabled?"tag-disabled":"tag",{label:this.label}))}renderRemoveButton(){if(this.removable)return t("button",{class:"gux-tag-remove-button",onClick:this.removeTag.bind(this),type:"button",disabled:this.disabled},t("gux-icon",{class:"gux-tag-remove-icon","icon-name":"fa/xmark-large-regular","screenreader-text":this.i18n("remove-tag",{label:this.label})}))}componentWillLoad(){r(this.root,{variant:this.removable?"removable":"permenant"})}async componentWillRender(){this.i18n=await g(this.root,u)}render(){return t("div",{key:"2480d939eb358c218691d27fc266b77fffe99aa0",class:{"gux-tag":!0,[`gux-accent-${this.accent}`]:!0,"gux-disabled":this.disabled,[`gux-size-${this.size}`]:!0,[`gux-emphasis-${this.emphasis}`]:!0},"aria-disabled":this.disabled.toString()},this.renderTagTitle(),this.renderSrText(),this.renderRemoveButton())}get root(){return e(this)}};c.style=":host{display:inline-block;border-radius:var(--gse-ui-tag-borderRadius)}.gux-tag{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-tag-removable-gap);place-content:stretch flex-start;align-items:center;block-size:var(--gse-ui-tag-small-height);padding:var(--gse-ui-tag-padding);font-family:var(--gse-ui-tag-textSmall-fontFamily);font-size:var(--gse-ui-tag-textSmall-fontSize);font-weight:var(--gse-ui-tag-textSmall-fontWeight);line-height:var(--gse-ui-tag-textSmall-lineHeight);color:var(--gse-ui-tag-default-bold-foregroundColor);background-color:var(--gse-ui-tag-default-bold-backgroundColor);border-radius:var(--gse-ui-tag-borderRadius)}.gux-tag.gux-size-large{block-size:var(--gse-ui-tag-large-height);font-family:var(--gse-ui-tag-textLarge-fontFamily);font-size:var(--gse-ui-tag-textLarge-fontSize);font-weight:var(--gse-ui-tag-textLarge-fontWeight);line-height:var(--gse-ui-tag-textLarge-lineHeight)}.gux-tag.gux-size-large .gux-tag-remove-button:focus-within .gux-tag-remove-icon{outline-offset:10px}.gux-tag.gux-disabled{position:relative;user-select:none;opacity:var(--gse-ui-tag-disabled-opacity)}.gux-tag gux-tooltip-title{white-space:nowrap;cursor:default}.gux-tag gux-tooltip-title ::slotted(gux-icon){font-size:var(--gse-ui-tag-button-size)}.gux-tag .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}.gux-tag .gux-tag-remove-button{all:unset;display:flex;place-content:center center;align-items:center}.gux-tag .gux-tag-remove-button:not(:disabled):hover{cursor:pointer}.gux-tag .gux-tag-remove-button .gux-tag-remove-icon{inline-size:var(--gse-ui-tag-button-size);block-size:var(--gse-ui-tag-button-size);margin-inline-end:-4px}.gux-tag .gux-tag-remove-button:focus-within .gux-tag-remove-icon{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-ui-color-focus);outline-offset:5px;border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}.gux-tag.gux-accent-default{color:var(--gse-ui-tag-default-bold-foregroundColor);background-color:var(--gse-ui-tag-default-bold-backgroundColor)}.gux-tag.gux-accent-default.gux-emphasis-subtle{color:var(--gse-ui-tag-default-subtle-foregroundColor);background-color:var(--gse-ui-tag-default-subtle-backgroundColor)}.gux-tag.gux-accent-1{color:var(--gse-ui-tag-accent1-bold-foregroundColor);background-color:var(--gse-ui-tag-accent1-bold-backgroundColor)}.gux-tag.gux-accent-1.gux-emphasis-subtle{color:var(--gse-ui-tag-accent1-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent1-subtle-backgroundColor)}.gux-tag.gux-accent-2{color:var(--gse-ui-tag-accent2-bold-foregroundColor);background-color:var(--gse-ui-tag-accent2-bold-backgroundColor)}.gux-tag.gux-accent-2.gux-emphasis-subtle{color:var(--gse-ui-tag-accent2-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent2-subtle-backgroundColor)}.gux-tag.gux-accent-3{color:var(--gse-ui-tag-accent3-bold-foregroundColor);background-color:var(--gse-ui-tag-accent3-bold-backgroundColor)}.gux-tag.gux-accent-3.gux-emphasis-subtle{color:var(--gse-ui-tag-accent3-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent3-subtle-backgroundColor)}.gux-tag.gux-accent-4{color:var(--gse-ui-tag-accent4-bold-foregroundColor);background-color:var(--gse-ui-tag-accent4-bold-backgroundColor)}.gux-tag.gux-accent-4.gux-emphasis-subtle{color:var(--gse-ui-tag-accent4-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent4-subtle-backgroundColor)}.gux-tag.gux-accent-5{color:var(--gse-ui-tag-accent5-bold-foregroundColor);background-color:var(--gse-ui-tag-accent5-bold-backgroundColor)}.gux-tag.gux-accent-5.gux-emphasis-subtle{color:var(--gse-ui-tag-accent5-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent5-subtle-backgroundColor)}.gux-tag.gux-accent-6{color:var(--gse-ui-tag-accent6-bold-foregroundColor);background-color:var(--gse-ui-tag-accent6-bold-backgroundColor)}.gux-tag.gux-accent-6.gux-emphasis-subtle{color:var(--gse-ui-tag-accent6-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent6-subtle-backgroundColor)}.gux-tag.gux-accent-7{color:var(--gse-ui-tag-accent7-bold-foregroundColor);background-color:var(--gse-ui-tag-accent7-bold-backgroundColor)}.gux-tag.gux-accent-7.gux-emphasis-subtle{color:var(--gse-ui-tag-accent7-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent7-subtle-backgroundColor)}.gux-tag.gux-accent-8{color:var(--gse-ui-tag-accent8-bold-foregroundColor);background-color:var(--gse-ui-tag-accent8-bold-backgroundColor)}.gux-tag.gux-accent-8.gux-emphasis-subtle{color:var(--gse-ui-tag-accent8-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent8-subtle-backgroundColor)}.gux-tag.gux-accent-9{color:var(--gse-ui-tag-accent9-bold-foregroundColor);background-color:var(--gse-ui-tag-accent9-bold-backgroundColor)}.gux-tag.gux-accent-9.gux-emphasis-subtle{color:var(--gse-ui-tag-accent9-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent9-subtle-backgroundColor)}.gux-tag.gux-accent-10{color:var(--gse-ui-tag-accent10-bold-foregroundColor);background-color:var(--gse-ui-tag-accent10-bold-backgroundColor)}.gux-tag.gux-accent-10.gux-emphasis-subtle{color:var(--gse-ui-tag-accent10-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent10-subtle-backgroundColor)}.gux-tag.gux-accent-inherit{color:inherit;background-color:inherit}";export{c as gux_tag}
1
+ import{r as o,c as a,h as t,g as e}from"./p-cf74fd3d.js";import{b as g}from"./p-e5e644b3.js";import{t as r}from"./p-338a62bc.js";import"./p-4202e9f2.js";const u={tag:"tag with label: {label}","tag-disabled":"disabled tag with label: {label}","remove-tag":"Remove tag with label: {label}"},c=class{constructor(t){o(this,t),this.guxdelete=a(this,"guxdelete",7),this.accent="default",this.disabled=!1,this.removable=!1,this.size="small",this.emphasis="bold"}onKeyDown(o){switch(o.key){case"Backspace":case"Delete":this.removeTag()}}removeTag(){!this.disabled&&this.removable&&this.guxdelete.emit()}onSlotChange(o){const a=o.composedPath()[0].assignedNodes();this.label=a.map((o=>o.textContent.trim())).join("")}renderTagTitle(){return t("gux-tooltip-title",null,t("span",null,t("slot",{"aria-hidden":"true",onSlotchange:this.onSlotChange.bind(this)})))}renderSrText(){return t("div",{class:"gux-sr-only"},this.i18n(this.disabled?"tag-disabled":"tag",{label:this.label}))}renderRemoveButton(){if(this.removable)return t("button",{class:"gux-tag-remove-button",onClick:this.removeTag.bind(this),type:"button",disabled:this.disabled},t("gux-icon",{class:"gux-tag-remove-icon","icon-name":"fa/xmark-large-regular","screenreader-text":this.i18n("remove-tag",{label:this.label})}))}componentWillLoad(){r(this.root,{variant:this.removable?"removable":"permenant"})}async componentWillRender(){this.i18n=await g(this.root,u)}render(){return t("div",{key:"2480d939eb358c218691d27fc266b77fffe99aa0",class:{"gux-tag":!0,[`gux-accent-${this.accent}`]:!0,"gux-disabled":this.disabled,[`gux-size-${this.size}`]:!0,[`gux-emphasis-${this.emphasis}`]:!0},"aria-disabled":this.disabled.toString()},this.renderTagTitle(),this.renderSrText(),this.renderRemoveButton())}get root(){return e(this)}};c.style=":host{display:inline-block;border-radius:var(--gse-ui-tag-borderRadius)}.gux-tag{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-tag-removable-gap);place-content:stretch flex-start;align-items:center;block-size:var(--gse-ui-tag-small-height);padding:var(--gse-ui-tag-padding);font-family:var(--gse-ui-tag-textSmall-fontFamily);font-size:var(--gse-ui-tag-textSmall-fontSize);font-weight:var(--gse-ui-tag-textSmall-fontWeight);line-height:var(--gse-ui-tag-textSmall-lineHeight);color:var(--gse-ui-tag-default-bold-foregroundColor);background-color:var(--gse-ui-tag-default-bold-backgroundColor);border-radius:var(--gse-ui-tag-borderRadius)}.gux-tag.gux-size-large{block-size:var(--gse-ui-tag-large-height);font-family:var(--gse-ui-tag-textLarge-fontFamily);font-size:var(--gse-ui-tag-textLarge-fontSize);font-weight:var(--gse-ui-tag-textLarge-fontWeight);line-height:var(--gse-ui-tag-textLarge-lineHeight)}.gux-tag.gux-size-large .gux-tag-remove-button:focus-within .gux-tag-remove-icon{outline-offset:10px}.gux-tag.gux-disabled{position:relative;user-select:none;opacity:var(--gse-ui-tag-disabled-opacity)}.gux-tag gux-tooltip-title{white-space:nowrap;cursor:default}.gux-tag gux-tooltip-title ::slotted(gux-icon){font-size:var(--gse-ui-tag-button-size)}.gux-tag .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}.gux-tag .gux-tag-remove-button{all:unset;display:flex;place-content:center center;align-items:center}.gux-tag .gux-tag-remove-button:not(:disabled):hover{cursor:pointer}.gux-tag .gux-tag-remove-button .gux-tag-remove-icon{inline-size:var(--gse-ui-tag-button-size);block-size:var(--gse-ui-tag-button-size);margin-inline-end:-4px}.gux-tag .gux-tag-remove-button:focus-within .gux-tag-remove-icon{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-ui-color-focus);outline-offset:5px;border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}.gux-tag.gux-accent-default{color:var(--gse-ui-tag-default-bold-foregroundColor);background-color:var(--gse-ui-tag-default-bold-backgroundColor)}.gux-tag.gux-accent-default.gux-emphasis-subtle{color:var(--gse-ui-tag-default-subtle-foregroundColor);background-color:var(--gse-ui-tag-default-subtle-backgroundColor)}.gux-tag.gux-accent-1{color:var(--gse-ui-tag-accent1-bold-foregroundColor);background-color:var(--gse-ui-tag-accent1-bold-backgroundColor)}.gux-tag.gux-accent-1.gux-emphasis-subtle{color:var(--gse-ui-tag-accent1-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent1-subtle-backgroundColor)}.gux-tag.gux-accent-2{color:var(--gse-ui-tag-accent2-bold-foregroundColor);background-color:var(--gse-ui-tag-accent2-bold-backgroundColor)}.gux-tag.gux-accent-2.gux-emphasis-subtle{color:var(--gse-ui-tag-accent2-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent2-subtle-backgroundColor)}.gux-tag.gux-accent-3{color:var(--gse-ui-tag-accent3-bold-foregroundColor);background-color:var(--gse-ui-tag-accent3-bold-backgroundColor)}.gux-tag.gux-accent-3.gux-emphasis-subtle{color:var(--gse-ui-tag-accent3-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent3-subtle-backgroundColor)}.gux-tag.gux-accent-4{color:var(--gse-ui-tag-accent4-bold-foregroundColor);background-color:var(--gse-ui-tag-accent4-bold-backgroundColor)}.gux-tag.gux-accent-4.gux-emphasis-subtle{color:var(--gse-ui-tag-accent4-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent4-subtle-backgroundColor)}.gux-tag.gux-accent-5{color:var(--gse-ui-tag-accent5-bold-foregroundColor);background-color:var(--gse-ui-tag-accent5-bold-backgroundColor)}.gux-tag.gux-accent-5.gux-emphasis-subtle{color:var(--gse-ui-tag-accent5-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent5-subtle-backgroundColor)}.gux-tag.gux-accent-6{color:var(--gse-ui-tag-accent6-bold-foregroundColor);background-color:var(--gse-ui-tag-accent6-bold-backgroundColor)}.gux-tag.gux-accent-6.gux-emphasis-subtle{color:var(--gse-ui-tag-accent6-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent6-subtle-backgroundColor)}.gux-tag.gux-accent-7{color:var(--gse-ui-tag-accent7-bold-foregroundColor);background-color:var(--gse-ui-tag-accent7-bold-backgroundColor)}.gux-tag.gux-accent-7.gux-emphasis-subtle{color:var(--gse-ui-tag-accent7-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent7-subtle-backgroundColor)}.gux-tag.gux-accent-8{color:var(--gse-ui-tag-accent8-bold-foregroundColor);background-color:var(--gse-ui-tag-accent8-bold-backgroundColor)}.gux-tag.gux-accent-8.gux-emphasis-subtle{color:var(--gse-ui-tag-accent8-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent8-subtle-backgroundColor)}.gux-tag.gux-accent-9{color:var(--gse-ui-tag-accent9-bold-foregroundColor);background-color:var(--gse-ui-tag-accent9-bold-backgroundColor)}.gux-tag.gux-accent-9.gux-emphasis-subtle{color:var(--gse-ui-tag-accent9-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent9-subtle-backgroundColor)}.gux-tag.gux-accent-10{color:var(--gse-ui-tag-accent10-bold-foregroundColor);background-color:var(--gse-ui-tag-accent10-bold-backgroundColor)}.gux-tag.gux-accent-10.gux-emphasis-subtle{color:var(--gse-ui-tag-accent10-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent10-subtle-backgroundColor)}.gux-tag.gux-accent-inherit{color:inherit;background-color:inherit}";export{c as gux_tag}
@@ -1 +1 @@
1
- import{r as e,f as o,h as r,g as t}from"./p-cf74fd3d.js";import{O as i}from"./p-946c70b7.js";import{h as l}from"./p-6d8b4027.js";import{a}from"./p-8eaf8caf.js";import{b as s}from"./p-e5e644b3.js";import{s as n}from"./p-2c25e2f2.js";import{G as f,a as h}from"./p-56b18d28.js";import{G as c,a as u,b as g}from"./p-eca567b9.js";import{g as d}from"./p-0268a3e8.js";import{t as p}from"./p-686acc74.js";import"./p-4202e9f2.js";function x(e,o){if(o){const{checkedCheckboxes:r,totalCheckboxes:t}=function(e){const o=m(e).length,r=function(e){return m(e).filter((e=>e.checked))}(e).length;return{checkedCheckboxes:r,totalCheckboxes:o}}(e);0===r?(o.indeterminate=!1,o.checked=!1):r===t?(o.indeterminate=!1,o.checked=!0):o.indeterminate=!0}}function m(e){return Array.from(e.querySelectorAll('gux-form-field-checkbox input:not(gux-form-field-checkbox[slot="group-checkbox"] input'))}const b={required:"Required"};const v=class{constructor(o){e(this,o),this.indicatorMark="required",this.required=!1,this.hasGroupError=!1,this.hasGroupHelp=!1,this.hasGroupLabelInfo=!1,this.disabled=!1}watchGroupError(e){const o=this.root.querySelectorAll("gux-form-field-checkbox");o&&o.forEach((o=>{o.hasGroupError=e}))}watchDisabled(){this.setDisabledCheckboxes()}onMutation(){this.hasGroupError=l(this.root,"group-error"),this.hasGroupHelp=l(this.root,"group-help"),this.hasGroupLabelInfo=l(this.root,"group-label-info")}async componentWillLoad(){this.getI18nValue=await s(this.root,b),this.hasGroupError=l(this.root,"group-error"),this.hasGroupHelp=l(this.root,"group-help"),this.hasGroupLabelInfo=l(this.root,"group-label-info"),this.setLabel(),this.setDisabledCheckboxes(),p(this.root)}componentDidLoad(){x(this.root,this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input'))}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}getGroupCheckboxElement(){return this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input')}setDisabledCheckboxes(){const e=this.root.querySelectorAll("gux-form-field-checkbox");e&&e.forEach((e=>{e.hasGroupDisabled=this.disabled}))}onMainCheckboxChange(){const e=this.getGroupCheckboxElement();var r;r=e.checked,m(this.root).forEach((e=>{e.checked===r||e.disabled||(e.checked=r,n(e,"input"),n(e,"change"))})),o(this.root)}setupNestedCheckboxes(){this.warnMultipleGroupCheckbox(),this.warnGroupCheckboxNameAttr();const e=this.getGroupCheckboxElement();e?this.root.classList.add("gux-group-checkbox"):this.root.classList.remove("gux-group-checkbox"),null==e||e.addEventListener("change",(()=>{this.onMainCheckboxChange()})),this.initialSetNestedCheckboxes(null==e?void 0:e.checked)}initialSetNestedCheckboxes(e){const o=Array.from(this.root.querySelectorAll('gux-form-field-checkbox input:not(gux-form-field-checkbox[slot="group-checkbox"] input)'));(null==o?void 0:o.length)&&o.forEach((o=>{o.addEventListener("change",(()=>{this.updateMainCheckbox()})),e&&!o.disabled&&(o.checked=!0)}))}warnMultipleGroupCheckbox(){const e=this.root.querySelectorAll('gux-form-field-checkbox[slot="group-checkbox"] input');(null==e?void 0:e.length)>1&&a(this.root,"Can only have one group checkbox")}warnGroupCheckboxNameAttr(){const e=this.getGroupCheckboxElement();(null==e?void 0:e.hasAttribute("name"))&&a(this.root,"Group checkbox should not have a name attribute")}updateMainCheckbox(){x(this.root,this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input')),o(this.root)}renderText(e,o=!1){if(o)return" "+e}render(){var e;return r(g,{key:"82711918d702bd81432d84e8c4a67af8602f979e",labelPosition:"above"},r(u,{key:"c8df4f74e3ed8ecaff04313f30afca29049bebcc"},null===(e=this.label)||void 0===e?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(d(this.root,"group-error"),this.hasGroupError),this.renderText(d(this.root,"group-help"),this.hasGroupHelp),this.renderText(d(this.root,"group-label-info"),this.hasGroupLabelInfo)),r(c,{key:"08a29328b9b06a9e985f09a93394f32cd039eb1d",position:"above",required:this.required},r("slot",{key:"c516fff9067c5e0825688c956248a539438751c5",name:"group-label",onSlotchange:()=>this.setLabel()}),r("gux-form-field-label-indicator",{key:"f51f8491725cb929a4d188d77c01af1d37063175",variant:this.indicatorMark,required:this.required}),r("slot",{key:"62aaae610193cb1af270487b9c35f4885173f5ce",name:"group-label-info"})),r("slot",{key:"5b8b4784a9c08cd415319afe3e67388dba4c3a74",onSlotchange:()=>this.setupNestedCheckboxes(),name:"group-checkbox"}),r("slot",{key:"6587e8a28258dff586d3143f403b64af61c98fd0",onSlotchange:()=>this.updateMainCheckbox()}),r(h,{key:"89812bc1133e8b263d12fb17faa45c3d1ecd43a2",show:this.hasGroupError},r("slot",{key:"475aee18cdfcc77aec936294c6d63ca8d0277ce7",name:"group-error"})),r(f,{key:"4795c2ff3decb95f0f538ba7ae7b0b8006ed495c",show:!this.hasGroupError&&this.hasGroupHelp},r("slot",{key:"18c28aae572498c5014767b937b4dd7002703516",name:"group-help"})))}setLabel(){this.label=this.root.querySelector('label[slot="group-label"]')}get root(){return t(this)}static get watchers(){return{hasGroupError:["watchGroupError"],disabled:["watchDisabled"]}}};(function(e,o,r,t){var i,l=arguments.length,a=l<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,r,t);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(l<3?i(a):l>3?i(o,r,a):i(o,r))||a);l>3&&a&&Object.defineProperty(o,r,a)})([i({childList:!0,subtree:!0})],v.prototype,"onMutation",null),v.style=".gux-form-field-fieldset-container{display:flex;min-inline-size:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-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}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-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}.gux-form-field-visual-label{display:inline-flex;flex:1 0 auto}.gux-form-field-visual-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-visual-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-screenreader{display:none}.gux-form-field-screenreader-label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block}:host([disabled]) .gux-form-field-legend-label{opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(gux-form-field-checkbox){padding-block-start:var(--gse-ui-formControl-group-gapItems)}::slotted(gux-form-field-checkbox:first-of-type){padding-block-start:0}:host(.gux-group-checkbox) ::slotted(gux-form-field-checkbox){padding-inline-start:24px}:host(.gux-group-checkbox) slot[name=group-checkbox]::slotted(gux-form-field-checkbox){padding-inline-start:0}.gux-form-field-legend-label{font-family:var(--gse-ui-formControl-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-formControl-label-text-fontWeight);line-height:var(--gse-ui-formControl-label-text-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}:host([disabled]) ::slotted(label){opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}";export{v as gux_form_field_checkbox_group_beta}
1
+ import{r as e,f as o,h as r,g as t}from"./p-cf74fd3d.js";import{O as i}from"./p-946c70b7.js";import{h as l}from"./p-6d8b4027.js";import{a}from"./p-8eaf8caf.js";import{b as s}from"./p-e5e644b3.js";import{s as n}from"./p-2c25e2f2.js";import{G as f,a as h}from"./p-56b18d28.js";import{G as u,a as c,b as g}from"./p-eca567b9.js";import{g as d}from"./p-0268a3e8.js";import{t as p}from"./p-338a62bc.js";import"./p-4202e9f2.js";function x(e,o){if(o){const{checkedCheckboxes:r,totalCheckboxes:t}=function(e){const o=m(e).length,r=function(e){return m(e).filter((e=>e.checked))}(e).length;return{checkedCheckboxes:r,totalCheckboxes:o}}(e);0===r?(o.indeterminate=!1,o.checked=!1):r===t?(o.indeterminate=!1,o.checked=!0):o.indeterminate=!0}}function m(e){return Array.from(e.querySelectorAll('gux-form-field-checkbox input:not(gux-form-field-checkbox[slot="group-checkbox"] input'))}const b={required:"Required"};const v=class{constructor(o){e(this,o),this.indicatorMark="required",this.required=!1,this.hasGroupError=!1,this.hasGroupHelp=!1,this.hasGroupLabelInfo=!1,this.disabled=!1}watchGroupError(e){const o=this.root.querySelectorAll("gux-form-field-checkbox");o&&o.forEach((o=>{o.hasGroupError=e}))}watchDisabled(){this.setDisabledCheckboxes()}onMutation(){this.hasGroupError=l(this.root,"group-error"),this.hasGroupHelp=l(this.root,"group-help"),this.hasGroupLabelInfo=l(this.root,"group-label-info")}async componentWillLoad(){this.getI18nValue=await s(this.root,b),this.hasGroupError=l(this.root,"group-error"),this.hasGroupHelp=l(this.root,"group-help"),this.hasGroupLabelInfo=l(this.root,"group-label-info"),this.setLabel(),this.setDisabledCheckboxes(),p(this.root)}componentDidLoad(){x(this.root,this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input'))}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}getGroupCheckboxElement(){return this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input')}setDisabledCheckboxes(){const e=this.root.querySelectorAll("gux-form-field-checkbox");e&&e.forEach((e=>{e.hasGroupDisabled=this.disabled}))}onMainCheckboxChange(){const e=this.getGroupCheckboxElement();var r;r=e.checked,m(this.root).forEach((e=>{e.checked===r||e.disabled||(e.checked=r,n(e,"input"),n(e,"change"))})),o(this.root)}setupNestedCheckboxes(){this.warnMultipleGroupCheckbox(),this.warnGroupCheckboxNameAttr();const e=this.getGroupCheckboxElement();e?this.root.classList.add("gux-group-checkbox"):this.root.classList.remove("gux-group-checkbox"),null==e||e.addEventListener("change",(()=>{this.onMainCheckboxChange()})),this.initialSetNestedCheckboxes(null==e?void 0:e.checked)}initialSetNestedCheckboxes(e){const o=Array.from(this.root.querySelectorAll('gux-form-field-checkbox input:not(gux-form-field-checkbox[slot="group-checkbox"] input)'));(null==o?void 0:o.length)&&o.forEach((o=>{o.addEventListener("change",(()=>{this.updateMainCheckbox()})),e&&!o.disabled&&(o.checked=!0)}))}warnMultipleGroupCheckbox(){const e=this.root.querySelectorAll('gux-form-field-checkbox[slot="group-checkbox"] input');(null==e?void 0:e.length)>1&&a(this.root,"Can only have one group checkbox")}warnGroupCheckboxNameAttr(){const e=this.getGroupCheckboxElement();(null==e?void 0:e.hasAttribute("name"))&&a(this.root,"Group checkbox should not have a name attribute")}updateMainCheckbox(){x(this.root,this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input')),o(this.root)}renderText(e,o=!1){if(o)return" "+e}render(){var e;return r(g,{key:"82711918d702bd81432d84e8c4a67af8602f979e",labelPosition:"above"},r(c,{key:"c8df4f74e3ed8ecaff04313f30afca29049bebcc"},null===(e=this.label)||void 0===e?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(d(this.root,"group-error"),this.hasGroupError),this.renderText(d(this.root,"group-help"),this.hasGroupHelp),this.renderText(d(this.root,"group-label-info"),this.hasGroupLabelInfo)),r(u,{key:"08a29328b9b06a9e985f09a93394f32cd039eb1d",position:"above",required:this.required},r("slot",{key:"c516fff9067c5e0825688c956248a539438751c5",name:"group-label",onSlotchange:()=>this.setLabel()}),r("gux-form-field-label-indicator",{key:"f51f8491725cb929a4d188d77c01af1d37063175",variant:this.indicatorMark,required:this.required}),r("slot",{key:"62aaae610193cb1af270487b9c35f4885173f5ce",name:"group-label-info"})),r("slot",{key:"5b8b4784a9c08cd415319afe3e67388dba4c3a74",onSlotchange:()=>this.setupNestedCheckboxes(),name:"group-checkbox"}),r("slot",{key:"6587e8a28258dff586d3143f403b64af61c98fd0",onSlotchange:()=>this.updateMainCheckbox()}),r(h,{key:"89812bc1133e8b263d12fb17faa45c3d1ecd43a2",show:this.hasGroupError},r("slot",{key:"475aee18cdfcc77aec936294c6d63ca8d0277ce7",name:"group-error"})),r(f,{key:"4795c2ff3decb95f0f538ba7ae7b0b8006ed495c",show:!this.hasGroupError&&this.hasGroupHelp},r("slot",{key:"18c28aae572498c5014767b937b4dd7002703516",name:"group-help"})))}setLabel(){this.label=this.root.querySelector('label[slot="group-label"]')}get root(){return t(this)}static get watchers(){return{hasGroupError:["watchGroupError"],disabled:["watchDisabled"]}}};(function(e,o,r,t){var i,l=arguments.length,a=l<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,r,t);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(l<3?i(a):l>3?i(o,r,a):i(o,r))||a);l>3&&a&&Object.defineProperty(o,r,a)})([i({childList:!0,subtree:!0})],v.prototype,"onMutation",null),v.style=".gux-form-field-fieldset-container{display:flex;min-inline-size:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-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}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-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}.gux-form-field-visual-label{display:inline-flex;flex:1 0 auto}.gux-form-field-visual-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-visual-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-screenreader{display:none}.gux-form-field-screenreader-label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block}:host([disabled]) .gux-form-field-legend-label{opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(gux-form-field-checkbox){padding-block-start:var(--gse-ui-formControl-group-gapItems)}::slotted(gux-form-field-checkbox:first-of-type){padding-block-start:0}:host(.gux-group-checkbox) ::slotted(gux-form-field-checkbox){padding-inline-start:24px}:host(.gux-group-checkbox) slot[name=group-checkbox]::slotted(gux-form-field-checkbox){padding-inline-start:0}.gux-form-field-legend-label{font-family:var(--gse-ui-formControl-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-formControl-label-text-fontWeight);line-height:var(--gse-ui-formControl-label-text-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}:host([disabled]) ::slotted(label){opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}";export{v as gux_form_field_checkbox_group_beta}