genesys-spark-components 3.131.2 → 3.131.4

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 (309) hide show
  1. package/dist/cjs/gux-accordion-legacy.cjs.entry.js +1 -1
  2. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-action-button-legacy.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-action-list-legacy_2.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-action-toast.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-badge-beta.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-blank-state-beta.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-button-multi-legacy.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-button-slot-beta.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-button.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-card-beta.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-column-manager-beta.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-command-palette-legacy.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-context-menu-beta.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-copy-to-clipboard-beta.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-disclosure-button.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-dropdown-legacy.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-dropdown-multi-beta.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-error-message-beta_8.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-legacy.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-number_3.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-inline-alert-beta.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-loading-message-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.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-pagination-beta.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-panel-frame-legacy.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-phone-input-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-popover.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-region-icon.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-side-panel-legacy.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-simple-toast.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-skip-navigation-list-beta.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-switch.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-table-beta.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-table-toolbar-beta.cjs.entry.js +7 -2
  83. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-tabs-legacy.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  88. package/dist/cjs/gux-tag-beta.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-text-label-legacy.cjs.entry.js +1 -1
  91. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  92. package/dist/cjs/gux-time-picker-beta.cjs.entry.js +1 -1
  93. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  95. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  96. package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
  97. package/dist/cjs/gux-visualization-beta.cjs.entry.js +10 -1
  98. package/dist/cjs/{usage-a548dd2a.js → usage-8d3662ec.js} +1 -1
  99. package/dist/collection/components/beta/gux-table-toolbar/gux-table-toolbar.js +3 -0
  100. package/dist/collection/components/beta/gux-table-toolbar/gux-table-toolbar.service.js +3 -1
  101. package/dist/collection/components/beta/gux-visualization/gux-visualization.js +9 -0
  102. package/dist/collection/components/stable/gux-icon/icons/restricted/custom/sparkles-solid.svg +6 -0
  103. package/dist/deploy-info.json +3 -3
  104. package/dist/esm/gux-accordion-legacy.entry.js +1 -1
  105. package/dist/esm/gux-accordion.entry.js +1 -1
  106. package/dist/esm/gux-action-button-legacy.entry.js +1 -1
  107. package/dist/esm/gux-action-button.entry.js +1 -1
  108. package/dist/esm/gux-action-list-legacy_2.entry.js +1 -1
  109. package/dist/esm/gux-action-toast.entry.js +1 -1
  110. package/dist/esm/gux-advanced-dropdown.entry.js +1 -1
  111. package/dist/esm/gux-announce-beta.entry.js +1 -1
  112. package/dist/esm/gux-badge-beta.entry.js +1 -1
  113. package/dist/esm/gux-blank-state-beta.entry.js +1 -1
  114. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  115. package/dist/esm/gux-button-multi-legacy.entry.js +1 -1
  116. package/dist/esm/gux-button-multi.entry.js +1 -1
  117. package/dist/esm/gux-button-slot-beta.entry.js +1 -1
  118. package/dist/esm/gux-button.entry.js +1 -1
  119. package/dist/esm/gux-calendar.entry.js +1 -1
  120. package/dist/esm/gux-card-beta.entry.js +1 -1
  121. package/dist/esm/gux-chart-column-beta.entry.js +1 -1
  122. package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
  123. package/dist/esm/gux-chart-line-beta.entry.js +1 -1
  124. package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
  125. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
  126. package/dist/esm/gux-column-manager-beta.entry.js +1 -1
  127. package/dist/esm/gux-command-palette-legacy.entry.js +1 -1
  128. package/dist/esm/gux-content-search.entry.js +1 -1
  129. package/dist/esm/gux-context-menu-beta.entry.js +1 -1
  130. package/dist/esm/gux-copy-to-clipboard-beta.entry.js +1 -1
  131. package/dist/esm/gux-date-beta.entry.js +1 -1
  132. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  133. package/dist/esm/gux-datepicker.entry.js +1 -1
  134. package/dist/esm/gux-disclosure-button.entry.js +1 -1
  135. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  136. package/dist/esm/gux-dropdown-legacy.entry.js +1 -1
  137. package/dist/esm/gux-dropdown-multi-beta.entry.js +1 -1
  138. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  139. package/dist/esm/gux-error-message-beta_8.entry.js +1 -1
  140. package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
  141. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  142. package/dist/esm/gux-form-field-color.entry.js +1 -1
  143. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  144. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  145. package/dist/esm/gux-form-field-legacy.entry.js +1 -1
  146. package/dist/esm/gux-form-field-number_3.entry.js +1 -1
  147. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  148. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  149. package/dist/esm/gux-form-field-range.entry.js +1 -1
  150. package/dist/esm/gux-form-field-search.entry.js +1 -1
  151. package/dist/esm/gux-form-field-select.entry.js +1 -1
  152. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  153. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  154. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  155. package/dist/esm/gux-icon.entry.js +1 -1
  156. package/dist/esm/gux-inline-alert-beta.entry.js +1 -1
  157. package/dist/esm/gux-list-item-legacy_2.entry.js +1 -1
  158. package/dist/esm/gux-list.entry.js +1 -1
  159. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  160. package/dist/esm/gux-loading-message-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.entry.js +1 -1
  164. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  165. package/dist/esm/gux-pagination-beta.entry.js +1 -1
  166. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  167. package/dist/esm/gux-pagination.entry.js +1 -1
  168. package/dist/esm/gux-panel-frame-legacy.entry.js +1 -1
  169. package/dist/esm/gux-phone-input-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-popover.entry.js +1 -1
  173. package/dist/esm/gux-radial-loading.entry.js +1 -1
  174. package/dist/esm/gux-radial-progress.entry.js +1 -1
  175. package/dist/esm/gux-rating.entry.js +1 -1
  176. package/dist/esm/gux-region-icon.entry.js +1 -1
  177. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  178. package/dist/esm/gux-side-panel-legacy.entry.js +1 -1
  179. package/dist/esm/gux-simple-toast.entry.js +1 -1
  180. package/dist/esm/gux-skip-navigation-list-beta.entry.js +1 -1
  181. package/dist/esm/gux-sort-control.entry.js +1 -1
  182. package/dist/esm/gux-switch.entry.js +1 -1
  183. package/dist/esm/gux-table-beta.entry.js +1 -1
  184. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  185. package/dist/esm/gux-table-toolbar-beta.entry.js +7 -2
  186. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  187. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  188. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  189. package/dist/esm/gux-tabs-legacy.entry.js +1 -1
  190. package/dist/esm/gux-tabs.entry.js +1 -1
  191. package/dist/esm/gux-tag-beta.entry.js +1 -1
  192. package/dist/esm/gux-text-highlight.entry.js +1 -1
  193. package/dist/esm/gux-text-label-legacy.entry.js +1 -1
  194. package/dist/esm/gux-time-beta.entry.js +1 -1
  195. package/dist/esm/gux-time-picker-beta.entry.js +1 -1
  196. package/dist/esm/gux-time-zone-beta.entry.js +1 -1
  197. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  198. package/dist/esm/gux-toggle.entry.js +1 -1
  199. package/dist/esm/gux-tooltip.entry.js +1 -1
  200. package/dist/esm/gux-visualization-beta.entry.js +10 -1
  201. package/dist/esm/{usage-4ec946ac.js → usage-53d02c20.js} +1 -1
  202. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  203. package/dist/genesys-webcomponents/icons/restricted/custom/sparkles-solid.svg +6 -0
  204. package/dist/genesys-webcomponents/{p-ad7fbf4b.entry.js → p-028f532b.entry.js} +1 -1
  205. package/dist/genesys-webcomponents/{p-2bf55956.entry.js → p-02bd23f5.entry.js} +1 -1
  206. package/dist/genesys-webcomponents/{p-23d0bfe9.entry.js → p-0411f428.entry.js} +1 -1
  207. package/dist/genesys-webcomponents/{p-6a4a62f7.entry.js → p-0ab6e5fc.entry.js} +1 -1
  208. package/dist/genesys-webcomponents/{p-5a6305f4.entry.js → p-111618bb.entry.js} +1 -1
  209. package/dist/genesys-webcomponents/{p-1d56596f.entry.js → p-132e66b4.entry.js} +1 -1
  210. package/dist/genesys-webcomponents/{p-bf031251.entry.js → p-14c32b74.entry.js} +1 -1
  211. package/dist/genesys-webcomponents/{p-3a655830.entry.js → p-150c53e0.entry.js} +1 -1
  212. package/dist/genesys-webcomponents/{p-c2ae205f.entry.js → p-1c495f51.entry.js} +1 -1
  213. package/dist/genesys-webcomponents/{p-456096fb.entry.js → p-21408510.entry.js} +1 -1
  214. package/dist/genesys-webcomponents/{p-87178269.entry.js → p-2166bc83.entry.js} +1 -1
  215. package/dist/genesys-webcomponents/{p-d33ba517.entry.js → p-2479af97.entry.js} +1 -1
  216. package/dist/genesys-webcomponents/{p-ee3cc123.entry.js → p-2592c6c4.entry.js} +1 -1
  217. package/dist/genesys-webcomponents/{p-f026b2f2.entry.js → p-276097b6.entry.js} +1 -1
  218. package/dist/genesys-webcomponents/{p-d08b7546.entry.js → p-2ab261a7.entry.js} +1 -1
  219. package/dist/genesys-webcomponents/{p-e54df090.entry.js → p-2f7a5ecc.entry.js} +1 -1
  220. package/dist/genesys-webcomponents/{p-28ef2506.entry.js → p-31bab40b.entry.js} +1 -1
  221. package/dist/genesys-webcomponents/{p-2d479995.entry.js → p-34f65978.entry.js} +1 -1
  222. package/dist/genesys-webcomponents/{p-c8a82486.entry.js → p-36015139.entry.js} +1 -1
  223. package/dist/genesys-webcomponents/{p-f713b8be.entry.js → p-36347d20.entry.js} +1 -1
  224. package/dist/genesys-webcomponents/{p-47e8d09a.entry.js → p-364fc821.entry.js} +1 -1
  225. package/dist/genesys-webcomponents/{p-c92f760c.entry.js → p-3a15e1dd.entry.js} +1 -1
  226. package/dist/genesys-webcomponents/{p-572380ce.entry.js → p-3dff9a47.entry.js} +1 -1
  227. package/dist/genesys-webcomponents/{p-3a1f648a.entry.js → p-3edc3bdf.entry.js} +1 -1
  228. package/dist/genesys-webcomponents/{p-1acae408.entry.js → p-43f6575f.entry.js} +1 -1
  229. package/dist/genesys-webcomponents/{p-4dc442ea.entry.js → p-4448034a.entry.js} +1 -1
  230. package/dist/genesys-webcomponents/{p-21cb7dda.entry.js → p-4c54b9a4.entry.js} +1 -1
  231. package/dist/genesys-webcomponents/{p-c9d3520a.entry.js → p-4e1f9dfc.entry.js} +1 -1
  232. package/dist/genesys-webcomponents/{p-7ff1d830.entry.js → p-5467002c.entry.js} +1 -1
  233. package/dist/genesys-webcomponents/{p-9b67a968.entry.js → p-5a141670.entry.js} +1 -1
  234. package/dist/genesys-webcomponents/{p-b1b65e96.entry.js → p-5b8bce87.entry.js} +1 -1
  235. package/dist/genesys-webcomponents/{p-27c91519.entry.js → p-5bc492a2.entry.js} +1 -1
  236. package/dist/genesys-webcomponents/{p-d8df926c.entry.js → p-5bf71294.entry.js} +1 -1
  237. package/dist/genesys-webcomponents/{p-be421878.entry.js → p-6050f5fa.entry.js} +1 -1
  238. package/dist/genesys-webcomponents/{p-bf31403b.entry.js → p-612c5056.entry.js} +1 -1
  239. package/dist/genesys-webcomponents/{p-ef3fa98b.entry.js → p-6250451d.entry.js} +1 -1
  240. package/dist/genesys-webcomponents/{p-de145164.entry.js → p-68a902b9.entry.js} +1 -1
  241. package/dist/genesys-webcomponents/{p-ec406182.entry.js → p-6c3bc2b2.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/{p-5f2986fa.entry.js → p-70e5a9ac.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/{p-0b79ddfb.entry.js → p-72d4a914.entry.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-fb18a81f.entry.js → p-76794d32.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/{p-ac0c793d.entry.js → p-82f2c798.entry.js} +1 -1
  246. package/dist/genesys-webcomponents/{p-e4f940d8.entry.js → p-8af004a0.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-84578a39.entry.js → p-8b6fa65a.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/{p-cc5b61db.entry.js → p-8e8f60ed.entry.js} +1 -1
  249. package/dist/genesys-webcomponents/{p-c3604da4.entry.js → p-8f7d0b9e.entry.js} +1 -1
  250. package/dist/genesys-webcomponents/{p-cbf7d3d9.entry.js → p-8febfd93.entry.js} +1 -1
  251. package/dist/genesys-webcomponents/{p-5bcd48b2.entry.js → p-9249bb15.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-370200c1.entry.js → p-9650ecf7.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-d8927988.entry.js → p-97224b62.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-9739d3b0.entry.js → p-97e0459a.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-37b1ec8a.entry.js → p-9c01853f.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/{p-955420d1.entry.js → p-9e481439.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/{p-f3ac88e2.entry.js → p-a6ff34ee.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/{p-75900eb9.entry.js → p-a8c77840.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/{p-c5e4748b.entry.js → p-ab56e833.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-1131677d.entry.js → p-ab8bc49b.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/{p-1beeb216.entry.js → p-ae1a353c.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/{p-264a53d2.entry.js → p-afa0a26e.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/p-afa7bac8.entry.js +1 -0
  264. package/dist/genesys-webcomponents/{p-a46dc5b3.entry.js → p-b02e6ebb.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-66c997a4.entry.js → p-b2095c81.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-57fedb91.entry.js → p-b36eba3e.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-fb331d57.entry.js → p-b86393f7.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-ea07cab1.entry.js → p-ba85159e.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-c78244a7.entry.js → p-bcdd3aae.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-48986f4b.entry.js → p-bd81e6a6.entry.js} +2 -2
  271. package/dist/genesys-webcomponents/{p-b51cf54f.entry.js → p-c0951ad6.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-937e5055.entry.js → p-c09e2844.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-8be19c53.entry.js → p-c207139f.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-c769166e.entry.js → p-c589cb82.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/p-c6122ab0.entry.js +1 -0
  276. package/dist/genesys-webcomponents/{p-8979d8ed.entry.js → p-ca39e45a.entry.js} +1 -1
  277. package/dist/genesys-webcomponents/{p-1d24eb9a.entry.js → p-caa2134b.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-6be2cc16.entry.js → p-cb1c31cf.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/{p-972fe315.entry.js → p-cd4da805.entry.js} +1 -1
  280. package/dist/genesys-webcomponents/{p-b7d6a1bd.entry.js → p-d275ca88.entry.js} +1 -1
  281. package/dist/genesys-webcomponents/{p-3ad4e05a.entry.js → p-d35889d0.entry.js} +1 -1
  282. package/dist/genesys-webcomponents/{p-ed15c7f1.entry.js → p-d4f20a9a.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-e262700b.entry.js → p-d51a7694.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/{p-95639f30.entry.js → p-d5cf0b23.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/{p-182d6771.entry.js → p-d90a13f1.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-078d2558.entry.js → p-dc2bba0b.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-886fa15d.entry.js → p-dca9cb97.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-100712a9.entry.js → p-e0027db5.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-ee85a47d.entry.js → p-e07d518f.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/{p-3ce8fce3.entry.js → p-e0af9a38.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/{p-e789eefc.entry.js → p-e61fa43b.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-befa4858.entry.js → p-e632e5be.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-8fc7cd92.entry.js → p-e8ca3e19.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-8d65a723.entry.js → p-ed96ec6c.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-11a7799d.entry.js → p-ee2d2fc4.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-b18f5131.entry.js → p-ef54b3e6.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-27ef48d0.entry.js → p-f0807fc5.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-9cf7697e.entry.js → p-f1627d88.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-debc6b27.entry.js → p-f4611cef.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-4f728e31.entry.js → p-f4c70550.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/{p-6a37ebb5.js → p-fe821cfa.js} +1 -1
  302. package/dist/stencil-wrapper.js +1 -1
  303. package/dist/types/components/beta/gux-table-toolbar/gux-table-toolbar.d.ts +4 -4
  304. package/dist/types/components/beta/gux-visualization/gux-visualization.d.ts +2 -0
  305. package/dist/types/components/stable/gux-icon/gux-icon.types.d.ts +1 -1
  306. package/dist/types/stencil-wrapper.d.ts +1 -1
  307. package/package.json +1 -1
  308. package/dist/genesys-webcomponents/p-45dc5ac8.entry.js +0 -1
  309. package/dist/genesys-webcomponents/p-90f9abaf.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as s,c as i,h as t,H as o,g as e}from"./p-9031eb6a.js";import{t as r}from"./p-6a37ebb5.js";const a=class{constructor(t){s(this,t),this.guxdismiss=i(this,"guxdismiss",7),this.accent="neutral"}componentWillLoad(){r(this.root,{variant:this.accent})}render(){return t(o,null,t("div",{class:`gux-icon gux-${this.accent}`},t("slot",{name:"icon"})),t("gux-truncate-beta",{class:"gux-message","max-lines":2},t("slot",{name:"message"})),t("gux-dismiss-button",{class:"gux-dismiss",position:"inherit",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(s){s.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return e(this)}};a.style=":host{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;width:286px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid;border-color:#b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-icon{flex:0 1 auto;align-self:auto;order:0;padding:8px 12px 8px 16px;margin:2px 0}.gux-icon.gux-alert{color:#ea0b0b}.gux-icon.gux-warning{color:#ffae00}.gux-icon.gux-positive{color:#3c8527}.gux-icon.gux-neutral{color:#203b73}.gux-icon ::slotted(gux-icon){width:16px;height:16px}.gux-message{flex:1 1 auto;align-self:center;order:0;margin:8px 0}.gux-dismiss{margin:4px 0}";export{a as gux_simple_toast}
1
+ import{r as s,c as i,h as t,H as o,g as e}from"./p-9031eb6a.js";import{t as r}from"./p-fe821cfa.js";const a=class{constructor(t){s(this,t),this.guxdismiss=i(this,"guxdismiss",7),this.accent="neutral"}componentWillLoad(){r(this.root,{variant:this.accent})}render(){return t(o,null,t("div",{class:`gux-icon gux-${this.accent}`},t("slot",{name:"icon"})),t("gux-truncate-beta",{class:"gux-message","max-lines":2},t("slot",{name:"message"})),t("gux-dismiss-button",{class:"gux-dismiss",position:"inherit",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(s){s.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return e(this)}};a.style=":host{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;width:286px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid;border-color:#b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-icon{flex:0 1 auto;align-self:auto;order:0;padding:8px 12px 8px 16px;margin:2px 0}.gux-icon.gux-alert{color:#ea0b0b}.gux-icon.gux-warning{color:#ffae00}.gux-icon.gux-positive{color:#3c8527}.gux-icon.gux-neutral{color:#203b73}.gux-icon ::slotted(gux-icon){width:16px;height:16px}.gux-message{flex:1 1 auto;align-self:center;order:0;margin:8px 0}.gux-dismiss{margin:4px 0}";export{a as gux_simple_toast}
@@ -1 +1 @@
1
- import{r as t,h as e,g as i}from"./p-9031eb6a.js";import{b as r}from"./p-54ad2682.js";import{O as s}from"./p-f222d4b1.js";import{a as o,o as a}from"./p-3701eff0.js";import{t as n}from"./p-6a37ebb5.js";import{G as l,a as h}from"./p-0c09e6a8.js";import{G as f,a as p,v as d,b as u}from"./p-36a19e41.js";import{h as g}from"./p-08bc2e6b.js";import{g as x}from"./p-aa2f9991.js";import"./p-8a133b9b.js";import"./p-cbcbd1bb.js";import"./p-d0805f56.js";import"./p-8fe7daff.js";import"./p-d176c2ae.js";const m={required:"Required"};const c=class{constructor(e){t(this,e),this.labelPosition=void 0,this.computedLabelPosition="above",this.disabled=void 0,this.required=!1,this.hasError=!1,this.hasHelp=!1}watchValue(t){const e=this.root.querySelector("gux-phone-input-beta");e&&(e.hasError=t)}onMutation(){this.hasError=g(this.root,"error"),this.hasHelp=g(this.root,"help")}async componentWillLoad(){this.getI18nValue=await r(this.root,m),this.setInput(),this.setLabel(),this.hasError=g(this.root,"error"),this.hasHelp=g(this.root,"help"),n(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){return e(h,{labelPosition:this.computedLabelPosition},e(l,{position:this.computedLabelPosition,required:this.required},e("slot",{name:"label",onSlotchange:()=>this.setLabel()}),this.renderScreenReaderText(this.getI18nValue("required"),this.required),this.renderScreenReaderText(x(this.root,"error"),this.hasError)),e("div",{class:"gux-input-and-error-container"},e("div",{class:{"gux-input":!0,"gux-input-error":this.hasError}},e("div",{class:{"gux-input-container":!0,"gux-disabled":this.disabled}},e("slot",null))),e(f,{show:this.hasError},e("slot",{name:"error"})),e(p,{show:!this.hasError&&this.hasHelp},e("slot",{name:"help"}))))}renderScreenReaderText(t,i=!0){if(i)return e("gux-screen-reader-beta",null,t)}get variant(){return`phoneInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}setInput(){this.phoneInputElement=this.root.querySelector("gux-phone-input-beta"),this.disabled=this.phoneInputElement.disabled,this.required=this.phoneInputElement.required,this.disabledObserver=o(this.phoneInputElement,(t=>{this.disabled=t})),this.requiredObserver=a(this.phoneInputElement,(t=>{this.required=t})),d(this.root,this.phoneInputElement)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=u(this.label,this.labelPosition)}get root(){return i(this)}static get watchers(){return{hasError:["watchValue"]}}};(function(t,e,i,r){var s,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)})([s({childList:!0,subtree:!0})],c.prototype,"onMutation",null),c.style=".gux-form-field-fieldset-container{display:flex;min-width:0;padding:0;margin:var(--gux-form-field-fieldset-container-margin-top, 16px) 0 var(--gux-form-field-fieldset-container-margin-bottom, 16px) 0;border:none}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;line-height:20px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;min-width:16px;min-height:16px;margin:2px 4px 0 0;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-legend-label{padding:0}.gux-form-field-legend-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-legend-label.gux-beside{position:relative;top:8px;float:left;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-legend-label.gux-above{margin-bottom:8px}.gux-form-field-legend-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}.gux-input-and-error-container{flex-grow:1}";export{c as gux_form_field_phone}
1
+ import{r as t,h as e,g as i}from"./p-9031eb6a.js";import{b as r}from"./p-54ad2682.js";import{O as s}from"./p-f222d4b1.js";import{a as o,o as a}from"./p-3701eff0.js";import{t as n}from"./p-fe821cfa.js";import{G as l,a as h}from"./p-0c09e6a8.js";import{G as f,a as p,v as d,b as u}from"./p-36a19e41.js";import{h as g}from"./p-08bc2e6b.js";import{g as x}from"./p-aa2f9991.js";import"./p-8a133b9b.js";import"./p-cbcbd1bb.js";import"./p-d0805f56.js";import"./p-8fe7daff.js";import"./p-d176c2ae.js";const m={required:"Required"};const c=class{constructor(e){t(this,e),this.labelPosition=void 0,this.computedLabelPosition="above",this.disabled=void 0,this.required=!1,this.hasError=!1,this.hasHelp=!1}watchValue(t){const e=this.root.querySelector("gux-phone-input-beta");e&&(e.hasError=t)}onMutation(){this.hasError=g(this.root,"error"),this.hasHelp=g(this.root,"help")}async componentWillLoad(){this.getI18nValue=await r(this.root,m),this.setInput(),this.setLabel(),this.hasError=g(this.root,"error"),this.hasHelp=g(this.root,"help"),n(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){return e(h,{labelPosition:this.computedLabelPosition},e(l,{position:this.computedLabelPosition,required:this.required},e("slot",{name:"label",onSlotchange:()=>this.setLabel()}),this.renderScreenReaderText(this.getI18nValue("required"),this.required),this.renderScreenReaderText(x(this.root,"error"),this.hasError)),e("div",{class:"gux-input-and-error-container"},e("div",{class:{"gux-input":!0,"gux-input-error":this.hasError}},e("div",{class:{"gux-input-container":!0,"gux-disabled":this.disabled}},e("slot",null))),e(f,{show:this.hasError},e("slot",{name:"error"})),e(p,{show:!this.hasError&&this.hasHelp},e("slot",{name:"help"}))))}renderScreenReaderText(t,i=!0){if(i)return e("gux-screen-reader-beta",null,t)}get variant(){return`phoneInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}setInput(){this.phoneInputElement=this.root.querySelector("gux-phone-input-beta"),this.disabled=this.phoneInputElement.disabled,this.required=this.phoneInputElement.required,this.disabledObserver=o(this.phoneInputElement,(t=>{this.disabled=t})),this.requiredObserver=a(this.phoneInputElement,(t=>{this.required=t})),d(this.root,this.phoneInputElement)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=u(this.label,this.labelPosition)}get root(){return i(this)}static get watchers(){return{hasError:["watchValue"]}}};(function(t,e,i,r){var s,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)})([s({childList:!0,subtree:!0})],c.prototype,"onMutation",null),c.style=".gux-form-field-fieldset-container{display:flex;min-width:0;padding:0;margin:var(--gux-form-field-fieldset-container-margin-top, 16px) 0 var(--gux-form-field-fieldset-container-margin-bottom, 16px) 0;border:none}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;line-height:20px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;min-width:16px;min-height:16px;margin:2px 4px 0 0;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-legend-label{padding:0}.gux-form-field-legend-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-legend-label.gux-beside{position:relative;top:8px;float:left;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-legend-label.gux-above{margin-bottom:8px}.gux-form-field-legend-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}.gux-input-and-error-container{flex-grow:1}";export{c as gux_form_field_phone}
@@ -1 +1 @@
1
- import{r as t,c as i,h as o,g as s}from"./p-9031eb6a.js";import{O as n}from"./p-35f13878.js";import{w as e}from"./p-76ff3e75.js";import{a}from"./p-091f51f6.js";import{t as r}from"./p-6a37ebb5.js";import{b as c}from"./p-54ad2682.js";import"./p-8a133b9b.js";const h={moreOptions:"More options"},u=["primary","secondary","tertiary","danger"];function d(t){return u.find((i=>i===t))?t:"secondary"}const l=class{constructor(o){t(this,o),this.open=i(this,"open",7),this.close=i(this,"close",7),this.actionClick=i(this,"actionClick",7),this.type="button",this.text=void 0,this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(t){const i=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,i.includes(this.listElement)&&(t.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":i.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,this.focusFirstItemInPopupList())}}handleKeyup(t){if(" "===t.key)t.composedPath().includes(this.dropdownButton)&&(this.isOpen=!0,this.focusFirstItemInPopupList())}watchDisabled(t){t&&(this.isOpen=!1)}watchValue(t){t?this.open.emit():this.close.emit()}onClickOutside(t){null===t.relatedTarget&&(this.isOpen=!1)}toggle(){this.disabled||(this.isOpen=!this.isOpen,this.isOpen&&this.focusPopupList())}focusPopupList(){a((()=>{this.listElement.focus&&this.listElement.focus()}))}focusFirstItemInPopupList(){a((()=>{this.listElement.guxFocusFirstItem()}))}onActionClick(){this.disabled||(this.isOpen=!1,this.actionClick.emit())}onListClick(t){e("gux-list-item",t,(()=>{this.isOpen=!1,this.dropdownButton.focus()}))}async componentWillLoad(){r(this.root,{variant:this.type}),this.i18n=await c(this.root,h)}render(){return o("div",{class:"gux-action-button-container"},o("gux-popup-beta",{expanded:this.isOpen,disabled:this.disabled,exceedTargetWidth:!0},o("div",{slot:"target",class:"gux-action-button-container"},o("gux-button-slot-beta",{class:"gux-action-button",accent:d(this.accent)},o("button",{type:this.type,disabled:this.disabled,onClick:()=>this.onActionClick()},o("slot",{name:"title"},this.text))),o("gux-button-slot-beta",{class:"gux-dropdown-button",accent:d(this.accent)},o("button",{type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),"aria-label":this.i18n("moreOptions")},o("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),o("div",{class:"gux-list-container",slot:"popup"},o("gux-list",{onClick:t=>this.onListClick(t),ref:t=>this.listElement=t},o("slot",null)))))}get root(){return s(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(t,i,o,s){var n,e=arguments.length,a=e<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,s);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(a=(e<3?n(a):e>3?n(i,o,a):n(i,o))||a);e>3&&a&&Object.defineProperty(i,o,a)})([n({triggerEvents:"click"})],l.prototype,"onClickOutside",null),l.style=":host{display:block;-webkit-user-select:none;user-select:none;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-action-button-container{min-width:128px}.gux-action-button-container>*{vertical-align:middle}.gux-action-button-container .gux-action-button{width:calc(100% - 33px);margin-right:1px}.gux-action-button-container .gux-action-button button{width:100%;max-width:none;text-align:center;border-top-right-radius:0;border-bottom-right-radius:0}.gux-action-button-container .gux-dropdown-button button{width:32px;min-width:0;padding:0;border-top-left-radius:0;border-bottom-left-radius:0}.gux-action-button-container .gux-dropdown-button button gux-icon{width:16px;height:16px}.gux-action-button-container .gux-list-container{max-width:220px;padding:8px 0;margin:0;list-style:none;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}";export{l as gux_action_button}
1
+ import{r as t,c as i,h as o,g as s}from"./p-9031eb6a.js";import{O as n}from"./p-35f13878.js";import{w as e}from"./p-76ff3e75.js";import{a}from"./p-091f51f6.js";import{t as r}from"./p-fe821cfa.js";import{b as c}from"./p-54ad2682.js";import"./p-8a133b9b.js";const h={moreOptions:"More options"},u=["primary","secondary","tertiary","danger"];function d(t){return u.find((i=>i===t))?t:"secondary"}const l=class{constructor(o){t(this,o),this.open=i(this,"open",7),this.close=i(this,"close",7),this.actionClick=i(this,"actionClick",7),this.type="button",this.text=void 0,this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(t){const i=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,i.includes(this.listElement)&&(t.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":i.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,this.focusFirstItemInPopupList())}}handleKeyup(t){if(" "===t.key)t.composedPath().includes(this.dropdownButton)&&(this.isOpen=!0,this.focusFirstItemInPopupList())}watchDisabled(t){t&&(this.isOpen=!1)}watchValue(t){t?this.open.emit():this.close.emit()}onClickOutside(t){null===t.relatedTarget&&(this.isOpen=!1)}toggle(){this.disabled||(this.isOpen=!this.isOpen,this.isOpen&&this.focusPopupList())}focusPopupList(){a((()=>{this.listElement.focus&&this.listElement.focus()}))}focusFirstItemInPopupList(){a((()=>{this.listElement.guxFocusFirstItem()}))}onActionClick(){this.disabled||(this.isOpen=!1,this.actionClick.emit())}onListClick(t){e("gux-list-item",t,(()=>{this.isOpen=!1,this.dropdownButton.focus()}))}async componentWillLoad(){r(this.root,{variant:this.type}),this.i18n=await c(this.root,h)}render(){return o("div",{class:"gux-action-button-container"},o("gux-popup-beta",{expanded:this.isOpen,disabled:this.disabled,exceedTargetWidth:!0},o("div",{slot:"target",class:"gux-action-button-container"},o("gux-button-slot-beta",{class:"gux-action-button",accent:d(this.accent)},o("button",{type:this.type,disabled:this.disabled,onClick:()=>this.onActionClick()},o("slot",{name:"title"},this.text))),o("gux-button-slot-beta",{class:"gux-dropdown-button",accent:d(this.accent)},o("button",{type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),"aria-label":this.i18n("moreOptions")},o("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),o("div",{class:"gux-list-container",slot:"popup"},o("gux-list",{onClick:t=>this.onListClick(t),ref:t=>this.listElement=t},o("slot",null)))))}get root(){return s(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(t,i,o,s){var n,e=arguments.length,a=e<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,s);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(a=(e<3?n(a):e>3?n(i,o,a):n(i,o))||a);e>3&&a&&Object.defineProperty(i,o,a)})([n({triggerEvents:"click"})],l.prototype,"onClickOutside",null),l.style=":host{display:block;-webkit-user-select:none;user-select:none;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-action-button-container{min-width:128px}.gux-action-button-container>*{vertical-align:middle}.gux-action-button-container .gux-action-button{width:calc(100% - 33px);margin-right:1px}.gux-action-button-container .gux-action-button button{width:100%;max-width:none;text-align:center;border-top-right-radius:0;border-bottom-right-radius:0}.gux-action-button-container .gux-dropdown-button button{width:32px;min-width:0;padding:0;border-top-left-radius:0;border-bottom-left-radius:0}.gux-action-button-container .gux-dropdown-button button gux-icon{width:16px;height:16px}.gux-action-button-container .gux-list-container{max-width:220px;padding:8px 0;margin:0;list-style:none;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}";export{l as gux_action_button}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as e,g as o}from"./p-9031eb6a.js";import{s as a,c as n,h,a as r,b as d,d as l,e as c,f as u,i as p,j as g,k as x,o as m}from"./p-b7438ad0.js";import{b as f}from"./p-54ad2682.js";import{w as v}from"./p-76ff3e75.js";import{s as b}from"./p-d176c2ae.js";import{t as w}from"./p-fe821cfa.js";import{b as O}from"./p-091f51f6.js";import"./p-8a133b9b.js";const j={add:"Add {name}",noMatches:"No matches",loading:"Loading..."},y=class{constructor(s){t(this,s),this.internallistboxoptionsupdated=i(this,"internallistboxoptionsupdated",7),this.value=void 0,this.loading=!1,this.filter="",this.textInput="",this.filterType="none",this.emptyMessage=void 0,this.listboxOptions=[],this.allListboxOptionsFiltered=void 0,this.hasExactMatch=!1}onFocus(){a(this.root)}onBlur(){n(this.root)}selectNewCustomOption(t){this.updateValue(t.detail)}onKeydown(t){var i;if(!h(this.root))return t.preventDefault(),void a(this.root);switch(t.key){case"Enter":return t.preventDefault(),void((null===(i=this.optionCreateElement)||void 0===i?void 0:i.active)?(this.optionCreateElement.guxEmitInternalCreateNewOption(),O((()=>{a(this.root)}))):g(this.root,(t=>this.updateValue(t))));case"ArrowDown":return t.preventDefault(),void(u(this.root)?(t.stopPropagation(),p(this.root)):d(this.root));case"ArrowUp":return t.preventDefault(),void(l(this.root)?(t.stopPropagation(),c(this.root)):r(this.root));case"Home":return t.preventDefault(),void d(this.root);case"End":return t.preventDefault(),void r(this.root);case" ":return void t.preventDefault()}1!==t.key.length||x(this.root,t.key)}onKeyup(t){var i;" "!==t.key||((null===(i=this.optionCreateElement)||void 0===i?void 0:i.active)?(this.optionCreateElement.guxEmitInternalCreateNewOption(),O((()=>{a(this.root)}))):g(this.root,(t=>this.updateValue(t))))}onMousemove(){n(this.root)}onClick(t){v("gux-option-multi",t,(t=>{m(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((i=>{var s,e,o;(null===(o=null===(e=null===(s=i.querySelector("[gux-slot-container]"))||void 0===s?void 0:s.textContent)||void 0===e?void 0:e.toLowerCase())||void 0===o?void 0:o.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.toLowerCase().startsWith(this.textInput.toLowerCase()))}))}updateValue(t){if(this.getSelectedValues().includes(t))this.value=this.getSelectedValues().filter((i=>i!==t)).join(",");else{const i=[...this.getSelectedValues(),t];this.value=i.join(",")}b(this.root,"input"),b(this.root,"change")}async componentWillLoad(){w(this.root),this.i18n=await f(this.root,j),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(e,{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"]}}};y.style=":host{box-sizing:border-box;display:block;max-height:20rem;padding:8px 0;margin:0;overflow-y:auto;color:#2e394c;background:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;outline:none}:host(:focus-visible){outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-message-container{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center}.gux-message-container .gux-no-matches{box-sizing:border-box;height:32px;padding:8px 16px;color:#2e394c}";export{y as gux_listbox_multi}
@@ -1 +1 @@
1
- import{r as s,h as t,H as e,g as a}from"./p-9031eb6a.js";import{l as r,n as o,f as i,p as n,b as c,c as l}from"./p-417354e9.js";import{t as u}from"./p-6a37ebb5.js";const h=["gux-list-item"],m=class{constructor(t){s(this,t)}componentWillLoad(){u(this.root)}onKeyDown(s){switch(s.key){case"ArrowUp":s.preventDefault(),n(this.root,h);break;case"Home":s.preventDefault(),i(this.root,h);break;case"ArrowDown":s.preventDefault(),o(this.root,h);break;case"End":s.preventDefault(),r(this.root,h)}}async guxFocusFirstItem(){i(this.root,h)}async guxFocusItemById(s){c(this.root,h,s)}async guxFocusItemByClosestId(s){l(this.root,h,s)}async guxFocusLastItem(){r(this.root,h)}renderFocusTarget(){return t("span",{tabindex:"-1","aria-hidden":"true"})}render(){return t(e,{role:"list"},this.renderFocusTarget(),t("slot",null))}static get delegatesFocus(){return!0}get root(){return a(this)}};m.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start}";export{m as gux_list}
1
+ import{r as s,h as t,H as e,g as a}from"./p-9031eb6a.js";import{l as r,n as o,f as i,p as n,b as c,c as l}from"./p-417354e9.js";import{t as u}from"./p-fe821cfa.js";const h=["gux-list-item"],m=class{constructor(t){s(this,t)}componentWillLoad(){u(this.root)}onKeyDown(s){switch(s.key){case"ArrowUp":s.preventDefault(),n(this.root,h);break;case"Home":s.preventDefault(),i(this.root,h);break;case"ArrowDown":s.preventDefault(),o(this.root,h);break;case"End":s.preventDefault(),r(this.root,h)}}async guxFocusFirstItem(){i(this.root,h)}async guxFocusItemById(s){c(this.root,h,s)}async guxFocusItemByClosestId(s){l(this.root,h,s)}async guxFocusLastItem(){r(this.root,h)}renderFocusTarget(){return t("span",{tabindex:"-1","aria-hidden":"true"})}render(){return t(e,{role:"list"},this.renderFocusTarget(),t("slot",null))}static get delegatesFocus(){return!0}get root(){return a(this)}};m.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start}";export{m as gux_list}
@@ -1 +1 @@
1
- import{r as t,h as o,g as s}from"./p-9031eb6a.js";import{t as e}from"./p-6a37ebb5.js";const r=class{constructor(o){t(this,o)}componentWillLoad(){e(this.root)}render(){return o("span",{class:"gux-sr-only"},o("slot",null))}get root(){return s(this)}};r.style=".gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}";export{r as gux_screen_reader_beta}
1
+ import{r as t,h as o,g as s}from"./p-9031eb6a.js";import{t as e}from"./p-fe821cfa.js";const r=class{constructor(o){t(this,o)}componentWillLoad(){e(this.root)}render(){return o("span",{class:"gux-sr-only"},o("slot",null))}get root(){return s(this)}};r.style=".gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}";export{r as gux_screen_reader_beta}
@@ -1 +1 @@
1
- import{r as e,h as r,g as i}from"./p-9031eb6a.js";import{b as t}from"./p-54ad2682.js";import{t as o}from"./p-6a37ebb5.js";import"./p-8a133b9b.js";const a={info:"Information alert with message",success:"Success alert with message",warning:"Warning alert with message",error:"Error alert with message"},n=class{constructor(r){e(this,r),this.accent="info"}getIcon(e){switch(e){case"info":default:return"alert-info";case"success":return"alert-success";case"warning":return"alert-warning-triangle";case"error":return"alert-warning-octogon"}}async componentWillLoad(){o(this.root,{variant:this.accent}),this.i18n=await t(this.root,a)}render(){return r("div",{class:{"gux-inline-alert":!0,[`gux-${this.accent}`]:!0}},r("gux-icon",{"icon-name":this.getIcon(this.accent),decorative:!0}),r("div",{class:"gux-message-wrapper"},r("div",{class:"gux-sr-only"},this.i18n(this.accent)),r("slot",null)))}get root(){return i(this)}};n.style=":host{display:block}.gux-inline-alert{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;align-items:center;justify-content:flex-start;padding:4px 8px;border-radius:4px;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-inline-alert gux-icon{flex-shrink:0;align-self:flex-start;width:16px;height:16px;margin-top:2px}.gux-inline-alert gux-tooltip-title{white-space:nowrap}.gux-inline-alert .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-inline-alert.gux-info{color:#4c5667;background-color:#f6f7f9;border:1px solid #d7dce5}.gux-inline-alert.gux-error{color:#8f0707;background-color:#fceaea;border:1px solid #f8b2b2}.gux-inline-alert.gux-warning{color:#976700;background-color:#fdf8ec;border:1px solid #fce5b1}.gux-inline-alert.gux-success{color:#205a10;background-color:#eefcea;border:1px solid #c2deb9}";export{n as gux_inline_alert_beta}
1
+ import{r as e,h as r,g as i}from"./p-9031eb6a.js";import{b as t}from"./p-54ad2682.js";import{t as o}from"./p-fe821cfa.js";import"./p-8a133b9b.js";const a={info:"Information alert with message",success:"Success alert with message",warning:"Warning alert with message",error:"Error alert with message"},n=class{constructor(r){e(this,r),this.accent="info"}getIcon(e){switch(e){case"info":default:return"alert-info";case"success":return"alert-success";case"warning":return"alert-warning-triangle";case"error":return"alert-warning-octogon"}}async componentWillLoad(){o(this.root,{variant:this.accent}),this.i18n=await t(this.root,a)}render(){return r("div",{class:{"gux-inline-alert":!0,[`gux-${this.accent}`]:!0}},r("gux-icon",{"icon-name":this.getIcon(this.accent),decorative:!0}),r("div",{class:"gux-message-wrapper"},r("div",{class:"gux-sr-only"},this.i18n(this.accent)),r("slot",null)))}get root(){return i(this)}};n.style=":host{display:block}.gux-inline-alert{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;align-items:center;justify-content:flex-start;padding:4px 8px;border-radius:4px;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-inline-alert gux-icon{flex-shrink:0;align-self:flex-start;width:16px;height:16px;margin-top:2px}.gux-inline-alert gux-tooltip-title{white-space:nowrap}.gux-inline-alert .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-inline-alert.gux-info{color:#4c5667;background-color:#f6f7f9;border:1px solid #d7dce5}.gux-inline-alert.gux-error{color:#8f0707;background-color:#fceaea;border:1px solid #f8b2b2}.gux-inline-alert.gux-warning{color:#976700;background-color:#fdf8ec;border:1px solid #fce5b1}.gux-inline-alert.gux-success{color:#205a10;background-color:#eefcea;border:1px solid #c2deb9}";export{n as gux_inline_alert_beta}
@@ -1 +1 @@
1
- import{r as t,c as e,f as i,h as s,g as n}from"./p-9031eb6a.js";import{O as o}from"./p-35f13878.js";import{b as r}from"./p-54ad2682.js";import{s as l}from"./p-d176c2ae.js";import{b as u}from"./p-091f51f6.js";import{o as a}from"./p-3f5341ea.js";import{t as d}from"./p-6a37ebb5.js";import{s as h,g as c}from"./p-b7438ad0.js";import{O as x}from"./p-f222d4b1.js";import"./p-8a133b9b.js";const g={textInputResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown",numberSelected:"{numberSelected} selected",pressEnterToCreate:"Press Enter to create new option, {textInputValue}"};var p=function(t,e,i,s){var n,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};const f=class{constructor(i){t(this,i),this.guxcreateoption=e(this,"guxcreateoption",7),this.guxexpanded=e(this,"guxexpanded",7),this.guxcollapsed=e(this,"guxcollapsed",7),this.guxfilter=e(this,"guxfilter",7),this.value=void 0,this.disabled=!1,this.required=!1,this.loading=!1,this.placeholder=void 0,this.filterable=!1,this.filterType="none",this.hasError=!1,this.hasCreate=!1,this.expanded=!1,this.textInput=""}onMutation(){var t;this.listboxElement||(this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.applyListboxEventListeners())}onInternalExpanded(t){t.stopPropagation(),this.guxexpanded.emit()}onInternalCollapsed(t){t.stopPropagation(),this.guxcollapsed.emit()}focusSelectedItemAfterRender(t){t&&this.listboxElement&&u((()=>{this.hasTextInput()?this.textInputElement.focus():this.listboxElement.focus()})),t||(this.textInput="")}watchValue(t){this.validateValue(t,this.listboxElement)}handleFilter(t){this.guxfilter.emit(t)}getSelectedValues(){var t;return Promise.resolve((null===(t=this.value)||void 0===t?void 0:t.split(","))||[])}onKeydown(t){switch(t.key){case"Escape":return this.hasTextInput()&&document.activeElement===this.listboxElement?this.textInputElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.textInputElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("focusFieldButton")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0,h(this.listboxElement)));case"Enter":this.canCreateNewOption()&&this.isActiveElement()&&this.emitCreateOption()}}onInternallistboxoptionsupdated(t){t.stopPropagation(),i(this.root)}onClearselected(t){t.stopPropagation(),this.updateValue(""),this.listboxElement&&(this.listboxElement.value=void 0),this.validateValue(this.value,this.listboxElement),this.fieldButtonElement.focus()}onCreatenewoption(t){t.stopPropagation(),this.emitCreateOption()}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t)}onClickOutside(){this.collapseListbox("noFocusChange")}connectedCallback(){var t;this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.hasCreate=!!this.root.querySelector("gux-create-option"))}async componentWillLoad(){d(this.root),this.i18n=await r(this.root,g),a(this.root,(()=>{i(this.root)}))}componentDidLoad(){this.applyListboxEventListeners()}componentWillRender(){this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.listboxElement.loading=this.loading,this.listboxElement.filterType=this.filterType,this.listboxElement.textInput=this.textInput)}validateValue(t,e){void 0!==t?this.getOptionElementByValue(t)?e.value=t:this.value=void 0:e&&(e.value=t)}hasTextInput(){return this.isFilterable()||this.hasCreate}applyListboxEventListeners(){var t,e;null===(t=this.listboxElement)||void 0===t||t.addEventListener("input",(t=>{t.stopPropagation(),this.updateValue(t.target.value)})),null===(e=this.listboxElement)||void 0===e||e.addEventListener("change",(t=>{t.stopPropagation()}))}isFilterable(){return this.filterable||"custom"===this.filterType||"starts-with"===this.filterType}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}getOptionElementByValue(t){const e=Array.from(this.root.querySelectorAll("gux-option-multi")),i=t?t.split(","):void 0;if(i)return e.filter((t=>i.includes(t.value)))}fieldButtonClick(){this.expanded=!this.expanded}fieldButtonInputClick(){this.expanded||(this.expanded=!this.expanded)}filterInput(t){t.stopPropagation(),this.textInput=this.textInputElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.hasTextInput()&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.hasTextInput()&&document.activeElement===this.listboxElement}emitCreateOption(){this.guxcreateoption.emit(this.textInput),this.textInput="",this.textInputElement.value=""}canCreateNewOption(){return this.hasCreate&&this.textInput&&!this.listboxElement.hasExactMatch}isActiveElement(){return document.activeElement===this.root}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){if("ArrowDown"===t.key)return t.stopImmediatePropagation(),t.preventDefault(),this.listboxElement.focus(),void h(this.listboxElement)}filterKeyup(t){" "!==t.key||t.preventDefault()}collapseListbox(t){this.expanded&&(this.expanded=!1),"focusFieldButton"===t&&this.fieldButtonElement.focus()}updateValue(t){this.value!==t&&(this.value=t,l(this.root,"input"),l(this.root,"change"))}getTypeaheadText(t){var e;const i=t.length;if(i>0&&!this.loading){const s=c(this.listboxElement,t);if(s&&"custom"!==this.filterType){const t=null===(e=s.querySelector("[gux-slot-container]"))||void 0===e?void 0:e.textContent;return null==t?void 0:t.substring(i)}return""}}renderTargetDisplay(){return s("div",{class:"gux-placeholder"},this.placeholder||this.i18n("noSelection"),this.getSrSelectedText())}getSrSelectedText(){const t=this.getOptionElementByValue(this.value);if(null==t?void 0:t.length)return s("span",{class:"gux-sr-only"},this.i18n("numberSelected",{numberSelected:t.length.toString()}))}getInputAriaLabel(){return this.canCreateNewOption()&&this.isActiveElement()?this.i18n("pressEnterToCreate",{textInputValue:this.textInput}):this.i18n("textInputResults")}renderTag(){const t=this.getOptionElementByValue(this.value);if(null==t?void 0:t.length)return s("gux-dropdown-multi-tag",{disabled:this.disabled,"number-selected":t.length})}renderFilterInputField(){if(this.expanded&&this.hasTextInput())return s("div",{class:"gux-field gux-input-field"},s("div",{class:"gux-field-content"},s("div",{class:"gux-filter"},s("div",{class:"gux-filter-display"},s("span",{class:"gux-filter-text"},this.textInput),s("span",{class:"gux-filter-suggestion"},this.getTypeaheadText(this.textInput))),s("div",{class:"input-and-dropdown-button"},s("input",{onClick:this.fieldButtonInputClick.bind(this),placeholder:this.placeholder||this.i18n("noSelection"),class:"gux-filter-input",type:"text","aria-label":this.getInputAriaLabel(),ref:t=>this.textInputElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this)})))))}renderPopup(){return s("div",{slot:"popup",class:"gux-listbox-container"},s("slot",null))}renderTarget(){return s("div",{class:{"gux-target-container":!0,"gux-target-container-expanded":this.expanded&&this.hasTextInput(),"gux-target-container-collapsed":!(this.expanded&&this.hasTextInput()),"gux-error":this.hasError},slot:"target"},this.renderFilterInputField(),s("button",{type:"button",class:"gux-field gux-field-button",disabled:this.disabled,onClick:this.fieldButtonClick.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},this.renderTargetContent(),this.renderTag(),this.renderRadialLoading(),s("gux-icon",{class:{"gux-expand-icon":!0},"screenreader-text":this.i18n("dropdown"),iconName:"chevron-small-down"})))}renderTargetContent(){if(!this.expanded||!this.hasTextInput())return s("div",{class:"gux-field-content"},this.renderTargetDisplay())}renderRadialLoading(){if(this.loading&&!this.expanded)return s("gux-radial-loading",{context:"input"})}render(){return[s("div",{class:"gux-dropdown-container"},s("gux-popup-beta",{expanded:this.expanded&&(!this.loading||this.isFilterable()),disabled:this.disabled},this.renderTarget(),this.renderPopup()))]}static get delegatesFocus(){return!0}get root(){return n(this)}static get watchers(){return{expanded:["focusSelectedItemAfterRender"],value:["watchValue"],textInput:["handleFilter"]}}};p([x({childList:!0,subtree:!0})],f.prototype,"onMutation",null),p([o({triggerEvents:"mousedown"})],f.prototype,"onClickOutside",null),f.style=":host{color:#2e394c}.gux-dropdown-container{position:relative}.gux-error.gux-target-container-collapsed .gux-field-button,.gux-error.gux-target-container-expanded{border-color:#ea0b0b}.gux-field,.gux-target-container-expanded{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center;width:100%;height:32px;padding:6px 0 6px 6px;font-family:inherit;font-size:12px;line-height:1.6667;cursor:pointer;background-color:#f6f7f9}.gux-field.gux-input-field{height:30px;cursor:text}.gux-field .gux-field-content{position:relative;display:flex;flex:1 1 0;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;min-width:0;height:100%}.gux-field .gux-field-content .gux-filter,.gux-field .gux-field-content .gux-selected-option,.gux-field .gux-field-content .gux-placeholder{flex:1 1 auto;align-self:auto;order:0;padding-left:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter .gux-sr-only:not(:focus):not(:active),.gux-field .gux-field-content .gux-selected-option .gux-sr-only:not(:focus):not(:active),.gux-field .gux-field-content .gux-placeholder .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-field .gux-field-content .gux-filter{position:relative;height:100%;padding-left:0}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;width:100%;color:transparent;caret-color:#2e394c}.gux-field .gux-field-content .gux-filter .gux-filter-display{white-space:pre}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:#2e394c}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{color:#596373}.gux-field .gux-field-content .gux-filter .gux-filter-input,.gux-field .gux-field-content .gux-filter .gux-filter-display{position:absolute}.gux-field .gux-field-content .gux-placeholder{color:#596373}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;width:16px;height:16px;padding:0 8px;color:#596373}.gux-target-container-expanded{border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-target-container-expanded:focus-visible,.gux-target-container-expanded:focus-within{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-target-container-expanded .gux-filter-input{background-color:inherit;border:none}.gux-target-container-expanded .gux-filter-input:focus{border:none;outline:none}.gux-target-container-expanded .gux-field-button{width:auto;height:30px;padding:0 0 0 8px;margin:0;background:inherit;border:none;outline:none;box-shadow:none}.gux-target-container-expanded .gux-field-button:focus{outline:none}.gux-target-container-collapsed .gux-field-button{border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-target-container-collapsed .gux-field-button:focus-visible,.gux-target-container-collapsed .gux-field-button:focus-within{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-listbox-container{box-sizing:border-box;margin:0;color:#2e394c}.gux-error-message-container{display:none;margin:4px 0}.gux-error-message-container.gux-show{display:flex}";export{f as gux_dropdown_multi_beta}
1
+ import{r as t,c as e,f as i,h as s,g as n}from"./p-9031eb6a.js";import{O as o}from"./p-35f13878.js";import{b as r}from"./p-54ad2682.js";import{s as l}from"./p-d176c2ae.js";import{b as u}from"./p-091f51f6.js";import{o as a}from"./p-3f5341ea.js";import{t as d}from"./p-fe821cfa.js";import{s as h,g as c}from"./p-b7438ad0.js";import{O as x}from"./p-f222d4b1.js";import"./p-8a133b9b.js";const g={textInputResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown",numberSelected:"{numberSelected} selected",pressEnterToCreate:"Press Enter to create new option, {textInputValue}"};var p=function(t,e,i,s){var n,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};const f=class{constructor(i){t(this,i),this.guxcreateoption=e(this,"guxcreateoption",7),this.guxexpanded=e(this,"guxexpanded",7),this.guxcollapsed=e(this,"guxcollapsed",7),this.guxfilter=e(this,"guxfilter",7),this.value=void 0,this.disabled=!1,this.required=!1,this.loading=!1,this.placeholder=void 0,this.filterable=!1,this.filterType="none",this.hasError=!1,this.hasCreate=!1,this.expanded=!1,this.textInput=""}onMutation(){var t;this.listboxElement||(this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.applyListboxEventListeners())}onInternalExpanded(t){t.stopPropagation(),this.guxexpanded.emit()}onInternalCollapsed(t){t.stopPropagation(),this.guxcollapsed.emit()}focusSelectedItemAfterRender(t){t&&this.listboxElement&&u((()=>{this.hasTextInput()?this.textInputElement.focus():this.listboxElement.focus()})),t||(this.textInput="")}watchValue(t){this.validateValue(t,this.listboxElement)}handleFilter(t){this.guxfilter.emit(t)}getSelectedValues(){var t;return Promise.resolve((null===(t=this.value)||void 0===t?void 0:t.split(","))||[])}onKeydown(t){switch(t.key){case"Escape":return this.hasTextInput()&&document.activeElement===this.listboxElement?this.textInputElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.textInputElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("focusFieldButton")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0,h(this.listboxElement)));case"Enter":this.canCreateNewOption()&&this.isActiveElement()&&this.emitCreateOption()}}onInternallistboxoptionsupdated(t){t.stopPropagation(),i(this.root)}onClearselected(t){t.stopPropagation(),this.updateValue(""),this.listboxElement&&(this.listboxElement.value=void 0),this.validateValue(this.value,this.listboxElement),this.fieldButtonElement.focus()}onCreatenewoption(t){t.stopPropagation(),this.emitCreateOption()}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t)}onClickOutside(){this.collapseListbox("noFocusChange")}connectedCallback(){var t;this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.hasCreate=!!this.root.querySelector("gux-create-option"))}async componentWillLoad(){d(this.root),this.i18n=await r(this.root,g),a(this.root,(()=>{i(this.root)}))}componentDidLoad(){this.applyListboxEventListeners()}componentWillRender(){this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.listboxElement.loading=this.loading,this.listboxElement.filterType=this.filterType,this.listboxElement.textInput=this.textInput)}validateValue(t,e){void 0!==t?this.getOptionElementByValue(t)?e.value=t:this.value=void 0:e&&(e.value=t)}hasTextInput(){return this.isFilterable()||this.hasCreate}applyListboxEventListeners(){var t,e;null===(t=this.listboxElement)||void 0===t||t.addEventListener("input",(t=>{t.stopPropagation(),this.updateValue(t.target.value)})),null===(e=this.listboxElement)||void 0===e||e.addEventListener("change",(t=>{t.stopPropagation()}))}isFilterable(){return this.filterable||"custom"===this.filterType||"starts-with"===this.filterType}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}getOptionElementByValue(t){const e=Array.from(this.root.querySelectorAll("gux-option-multi")),i=t?t.split(","):void 0;if(i)return e.filter((t=>i.includes(t.value)))}fieldButtonClick(){this.expanded=!this.expanded}fieldButtonInputClick(){this.expanded||(this.expanded=!this.expanded)}filterInput(t){t.stopPropagation(),this.textInput=this.textInputElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.hasTextInput()&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.hasTextInput()&&document.activeElement===this.listboxElement}emitCreateOption(){this.guxcreateoption.emit(this.textInput),this.textInput="",this.textInputElement.value=""}canCreateNewOption(){return this.hasCreate&&this.textInput&&!this.listboxElement.hasExactMatch}isActiveElement(){return document.activeElement===this.root}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){if("ArrowDown"===t.key)return t.stopImmediatePropagation(),t.preventDefault(),this.listboxElement.focus(),void h(this.listboxElement)}filterKeyup(t){" "!==t.key||t.preventDefault()}collapseListbox(t){this.expanded&&(this.expanded=!1),"focusFieldButton"===t&&this.fieldButtonElement.focus()}updateValue(t){this.value!==t&&(this.value=t,l(this.root,"input"),l(this.root,"change"))}getTypeaheadText(t){var e;const i=t.length;if(i>0&&!this.loading){const s=c(this.listboxElement,t);if(s&&"custom"!==this.filterType){const t=null===(e=s.querySelector("[gux-slot-container]"))||void 0===e?void 0:e.textContent;return null==t?void 0:t.substring(i)}return""}}renderTargetDisplay(){return s("div",{class:"gux-placeholder"},this.placeholder||this.i18n("noSelection"),this.getSrSelectedText())}getSrSelectedText(){const t=this.getOptionElementByValue(this.value);if(null==t?void 0:t.length)return s("span",{class:"gux-sr-only"},this.i18n("numberSelected",{numberSelected:t.length.toString()}))}getInputAriaLabel(){return this.canCreateNewOption()&&this.isActiveElement()?this.i18n("pressEnterToCreate",{textInputValue:this.textInput}):this.i18n("textInputResults")}renderTag(){const t=this.getOptionElementByValue(this.value);if(null==t?void 0:t.length)return s("gux-dropdown-multi-tag",{disabled:this.disabled,"number-selected":t.length})}renderFilterInputField(){if(this.expanded&&this.hasTextInput())return s("div",{class:"gux-field gux-input-field"},s("div",{class:"gux-field-content"},s("div",{class:"gux-filter"},s("div",{class:"gux-filter-display"},s("span",{class:"gux-filter-text"},this.textInput),s("span",{class:"gux-filter-suggestion"},this.getTypeaheadText(this.textInput))),s("div",{class:"input-and-dropdown-button"},s("input",{onClick:this.fieldButtonInputClick.bind(this),placeholder:this.placeholder||this.i18n("noSelection"),class:"gux-filter-input",type:"text","aria-label":this.getInputAriaLabel(),ref:t=>this.textInputElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this)})))))}renderPopup(){return s("div",{slot:"popup",class:"gux-listbox-container"},s("slot",null))}renderTarget(){return s("div",{class:{"gux-target-container":!0,"gux-target-container-expanded":this.expanded&&this.hasTextInput(),"gux-target-container-collapsed":!(this.expanded&&this.hasTextInput()),"gux-error":this.hasError},slot:"target"},this.renderFilterInputField(),s("button",{type:"button",class:"gux-field gux-field-button",disabled:this.disabled,onClick:this.fieldButtonClick.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},this.renderTargetContent(),this.renderTag(),this.renderRadialLoading(),s("gux-icon",{class:{"gux-expand-icon":!0},"screenreader-text":this.i18n("dropdown"),iconName:"chevron-small-down"})))}renderTargetContent(){if(!this.expanded||!this.hasTextInput())return s("div",{class:"gux-field-content"},this.renderTargetDisplay())}renderRadialLoading(){if(this.loading&&!this.expanded)return s("gux-radial-loading",{context:"input"})}render(){return[s("div",{class:"gux-dropdown-container"},s("gux-popup-beta",{expanded:this.expanded&&(!this.loading||this.isFilterable()),disabled:this.disabled},this.renderTarget(),this.renderPopup()))]}static get delegatesFocus(){return!0}get root(){return n(this)}static get watchers(){return{expanded:["focusSelectedItemAfterRender"],value:["watchValue"],textInput:["handleFilter"]}}};p([x({childList:!0,subtree:!0})],f.prototype,"onMutation",null),p([o({triggerEvents:"mousedown"})],f.prototype,"onClickOutside",null),f.style=":host{color:#2e394c}.gux-dropdown-container{position:relative}.gux-error.gux-target-container-collapsed .gux-field-button,.gux-error.gux-target-container-expanded{border-color:#ea0b0b}.gux-field,.gux-target-container-expanded{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center;width:100%;height:32px;padding:6px 0 6px 6px;font-family:inherit;font-size:12px;line-height:1.6667;cursor:pointer;background-color:#f6f7f9}.gux-field.gux-input-field{height:30px;cursor:text}.gux-field .gux-field-content{position:relative;display:flex;flex:1 1 0;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;min-width:0;height:100%}.gux-field .gux-field-content .gux-filter,.gux-field .gux-field-content .gux-selected-option,.gux-field .gux-field-content .gux-placeholder{flex:1 1 auto;align-self:auto;order:0;padding-left:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter .gux-sr-only:not(:focus):not(:active),.gux-field .gux-field-content .gux-selected-option .gux-sr-only:not(:focus):not(:active),.gux-field .gux-field-content .gux-placeholder .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-field .gux-field-content .gux-filter{position:relative;height:100%;padding-left:0}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;width:100%;color:transparent;caret-color:#2e394c}.gux-field .gux-field-content .gux-filter .gux-filter-display{white-space:pre}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:#2e394c}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{color:#596373}.gux-field .gux-field-content .gux-filter .gux-filter-input,.gux-field .gux-field-content .gux-filter .gux-filter-display{position:absolute}.gux-field .gux-field-content .gux-placeholder{color:#596373}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;width:16px;height:16px;padding:0 8px;color:#596373}.gux-target-container-expanded{border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-target-container-expanded:focus-visible,.gux-target-container-expanded:focus-within{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-target-container-expanded .gux-filter-input{background-color:inherit;border:none}.gux-target-container-expanded .gux-filter-input:focus{border:none;outline:none}.gux-target-container-expanded .gux-field-button{width:auto;height:30px;padding:0 0 0 8px;margin:0;background:inherit;border:none;outline:none;box-shadow:none}.gux-target-container-expanded .gux-field-button:focus{outline:none}.gux-target-container-collapsed .gux-field-button{border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-target-container-collapsed .gux-field-button:focus-visible,.gux-target-container-collapsed .gux-field-button:focus-within{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-listbox-container{box-sizing:border-box;margin:0;color:#2e394c}.gux-error-message-container{display:none;margin:4px 0}.gux-error-message-container.gux-show{display:flex}";export{f as gux_dropdown_multi_beta}
@@ -1 +1 @@
1
- import{r as t,c as i,d as a,h as n,g as e}from"./p-9031eb6a.js";import{a as s}from"./p-091f51f6.js";import{t as o}from"./p-6a37ebb5.js";const r=class{constructor(a){t(this,a),this.guxpaginationchange=i(this,"guxpaginationchange",7),this.reinstateLayoutBreakpoint=0,this.layout="advanced",this.currentPage=1,this.totalItems=0,this.itemsPerPage=25,this.totalPages=void 0,this.displayedLayout=void 0}setPage(t){if(t<=0)return void this.setPage(1);const i=this.calculateTotalPages(this.totalItems,this.itemsPerPage);t>i?this.setPage(i):(this.currentPage=t,this.guxpaginationchange.emit({currentPage:this.currentPage,itemsPerPage:this.itemsPerPage}))}handleInternalitemsperpagechange(t){this.itemsPerPage=t.detail,this.setPage(1)}handleInternalcurrentpagechange(t){this.setPage(t.detail)}calculateTotalPages(t,i){return Math.max(1,Math.ceil(t/i))}calculateCurrentPage(t,i){return Math.max(t>0?1:0,Math.min(i,t))}checkPaginationContainerWidthForLayout(){a((()=>{const t=this.root.shadowRoot.querySelector(".gux-pagination-container"),i=this.root.shadowRoot.querySelector(".gux-pagination-spacer"),a=t.clientWidth;i.clientWidth<24&&"simple"!==this.displayedLayout?(this.reinstateLayoutBreakpoint=a,this.displayedLayout="simple"):a>this.reinstateLayoutBreakpoint&&(this.reinstateLayoutBreakpoint=0,this.displayedLayout=this.layout)}))}componentWillLoad(){o(this.root,{variant:this.layout})}componentWillRender(){this.totalPages=this.calculateTotalPages(this.totalItems,this.itemsPerPage),this.currentPage=this.calculateCurrentPage(this.totalPages,this.currentPage)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.unobserve(this.root.shadowRoot.querySelector(".gux-pagination-container"))}componentDidLoad(){!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkPaginationContainerWidthForLayout()))),this.resizeObserver&&this.resizeObserver.observe(this.root.shadowRoot.querySelector(".gux-pagination-container")),s((()=>{this.checkPaginationContainerWidthForLayout()}),500)}render(){return n("div",{class:"gux-pagination-container"},n("div",{class:"gux-pagination-info"},n("gux-pagination-item-counts-beta",{"total-items":this.totalItems,"current-page":this.currentPage,"items-per-page":this.itemsPerPage}),"advanced"===this.displayedLayout&&n("gux-pagination-items-per-page-beta",{"items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})),n("div",{class:"gux-pagination-spacer"}),n("div",{class:"gux-pagination-change"},n("gux-pagination-buttons-beta",{layout:this.displayedLayout,"current-page":this.currentPage,"total-pages":this.totalPages,onInternalcurrentpagechange:this.handleInternalcurrentpagechange.bind(this)})))}get root(){return e(this)}};r.style=":host{display:block;border-top:1px solid #e2e6ee}.gux-pagination-container{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:space-between;height:40px;margin:12px 12px 0 12px}.gux-pagination-container .gux-pagination-info{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:flex-start;order:0}.gux-pagination-container .gux-pagination-info>*{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-spacer{flex:1 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change:first-child{margin-left:0}";export{r as gux_pagination_beta}
1
+ import{r as t,c as i,d as a,h as n,g as e}from"./p-9031eb6a.js";import{a as s}from"./p-091f51f6.js";import{t as o}from"./p-fe821cfa.js";const r=class{constructor(a){t(this,a),this.guxpaginationchange=i(this,"guxpaginationchange",7),this.reinstateLayoutBreakpoint=0,this.layout="advanced",this.currentPage=1,this.totalItems=0,this.itemsPerPage=25,this.totalPages=void 0,this.displayedLayout=void 0}setPage(t){if(t<=0)return void this.setPage(1);const i=this.calculateTotalPages(this.totalItems,this.itemsPerPage);t>i?this.setPage(i):(this.currentPage=t,this.guxpaginationchange.emit({currentPage:this.currentPage,itemsPerPage:this.itemsPerPage}))}handleInternalitemsperpagechange(t){this.itemsPerPage=t.detail,this.setPage(1)}handleInternalcurrentpagechange(t){this.setPage(t.detail)}calculateTotalPages(t,i){return Math.max(1,Math.ceil(t/i))}calculateCurrentPage(t,i){return Math.max(t>0?1:0,Math.min(i,t))}checkPaginationContainerWidthForLayout(){a((()=>{const t=this.root.shadowRoot.querySelector(".gux-pagination-container"),i=this.root.shadowRoot.querySelector(".gux-pagination-spacer"),a=t.clientWidth;i.clientWidth<24&&"simple"!==this.displayedLayout?(this.reinstateLayoutBreakpoint=a,this.displayedLayout="simple"):a>this.reinstateLayoutBreakpoint&&(this.reinstateLayoutBreakpoint=0,this.displayedLayout=this.layout)}))}componentWillLoad(){o(this.root,{variant:this.layout})}componentWillRender(){this.totalPages=this.calculateTotalPages(this.totalItems,this.itemsPerPage),this.currentPage=this.calculateCurrentPage(this.totalPages,this.currentPage)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.unobserve(this.root.shadowRoot.querySelector(".gux-pagination-container"))}componentDidLoad(){!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkPaginationContainerWidthForLayout()))),this.resizeObserver&&this.resizeObserver.observe(this.root.shadowRoot.querySelector(".gux-pagination-container")),s((()=>{this.checkPaginationContainerWidthForLayout()}),500)}render(){return n("div",{class:"gux-pagination-container"},n("div",{class:"gux-pagination-info"},n("gux-pagination-item-counts-beta",{"total-items":this.totalItems,"current-page":this.currentPage,"items-per-page":this.itemsPerPage}),"advanced"===this.displayedLayout&&n("gux-pagination-items-per-page-beta",{"items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})),n("div",{class:"gux-pagination-spacer"}),n("div",{class:"gux-pagination-change"},n("gux-pagination-buttons-beta",{layout:this.displayedLayout,"current-page":this.currentPage,"total-pages":this.totalPages,onInternalcurrentpagechange:this.handleInternalcurrentpagechange.bind(this)})))}get root(){return e(this)}};r.style=":host{display:block;border-top:1px solid #e2e6ee}.gux-pagination-container{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:space-between;height:40px;margin:12px 12px 0 12px}.gux-pagination-container .gux-pagination-info{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:flex-start;order:0}.gux-pagination-container .gux-pagination-info>*{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-spacer{flex:1 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change:first-child{margin-left:0}";export{r as gux_pagination_beta}
@@ -1 +1 @@
1
- import{r as t,h as s,H as e,g as i}from"./p-9031eb6a.js";import{t as r}from"./p-6a37ebb5.js";import{D as a,g as o}from"./p-ec1ea945.js";import{u as h,d as m,a as n}from"./p-12dc5326.js";import{g as p}from"./p-54ad2682.js";import"./p-8a133b9b.js";const d=class{constructor(s){t(this,s),this.hasRegionalDatesCookie=!1,this.datetime=(new Date).toISOString(),this.format="short",this.timeZone=void 0}componentWillLoad(){r(this.root),h()?this.hasRegionalDatesCookie=!0:this.formatter=new a(p(this.root))}renderDateTime(){return this.hasRegionalDatesCookie?m(n(this.root),{dateStyle:this.format,timeStyle:this.format,timeZone:o(this.timeZone)}).format(new Date(this.datetime)):this.formatter.formatDateTime(new Date(this.datetime),this.format,{timeZone:o(this.timeZone)})}render(){return s(e,null,this.renderDateTime())}get root(){return i(this)}};export{d as gux_date_time_beta}
1
+ import{r as t,h as s,H as e,g as i}from"./p-9031eb6a.js";import{t as r}from"./p-fe821cfa.js";import{D as a,g as o}from"./p-ec1ea945.js";import{u as h,d as m,a as n}from"./p-12dc5326.js";import{g as p}from"./p-54ad2682.js";import"./p-8a133b9b.js";const d=class{constructor(s){t(this,s),this.hasRegionalDatesCookie=!1,this.datetime=(new Date).toISOString(),this.format="short",this.timeZone=void 0}componentWillLoad(){r(this.root),h()?this.hasRegionalDatesCookie=!0:this.formatter=new a(p(this.root))}renderDateTime(){return this.hasRegionalDatesCookie?m(n(this.root),{dateStyle:this.format,timeStyle:this.format,timeZone:o(this.timeZone)}).format(new Date(this.datetime)):this.formatter.formatDateTime(new Date(this.datetime),this.format,{timeZone:o(this.timeZone)})}render(){return s(e,null,this.renderDateTime())}get root(){return i(this)}};export{d as gux_date_time_beta}