genesys-spark-components 3.8.2 → 3.8.5

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 (283) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
  3. package/dist/cjs/gux-accordion-legacy.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-action-button-legacy.cjs.entry.js +2 -2
  6. package/dist/cjs/gux-action-button.cjs.entry.js +2 -2
  7. package/dist/cjs/gux-action-list-legacy.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-action-toast.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +2 -2
  10. package/dist/cjs/gux-all-row-select.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-badge-beta.cjs.entry.js +2 -2
  12. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +2 -2
  13. package/dist/cjs/gux-button-multi-legacy.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-button-slot-beta.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-button.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-calendar.cjs.entry.js +2 -2
  18. package/dist/cjs/gux-card-beta.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-command-palette-legacy.cjs.entry.js +2 -2
  25. package/dist/cjs/gux-content-search.cjs.entry.js +2 -2
  26. package/dist/cjs/gux-copy-to-clipboard-beta.cjs.entry.js +2 -2
  27. package/dist/cjs/gux-datepicker.cjs.entry.js +2 -2
  28. package/dist/cjs/gux-disclosure-button.cjs.entry.js +2 -2
  29. package/dist/cjs/gux-dismiss-button.cjs.entry.js +2 -2
  30. package/dist/cjs/gux-dropdown-legacy.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-dropdown-multi-beta.cjs.entry.js +2 -2
  32. package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-dropdown_3.cjs.entry.js +2 -2
  34. package/dist/cjs/gux-error-message-beta.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +2 -2
  40. package/dist/cjs/gux-form-field-legacy.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-number.cjs.entry.js +2 -2
  42. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-input-checkbox_7.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-input-search.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-input-text-like.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-listbox-multi.cjs.entry.js +2 -2
  55. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-notification-toast.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-pagination-beta.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-pagination-buttons-beta_3.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-pagination-buttons_3.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +2 -2
  62. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-panel-frame-legacy.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-popover.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-radial-loading.cjs.entry.js +2 -2
  67. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-row-select.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-side-panel-legacy.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-simple-toast.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-switch.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-tab-advanced.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-tab-list.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-table-beta.cjs.entry.js +2 -2
  78. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-tabs-legacy.cjs.entry.js +2 -2
  80. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-tag-beta.cjs.entry.js +2 -2
  82. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-text-label-legacy.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-time-picker-beta.cjs.entry.js +2 -2
  85. package/dist/cjs/gux-toggle.cjs.entry.js +2 -2
  86. package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-visualization-beta.cjs.entry.js +1740 -2951
  88. package/dist/cjs/{index-d83bf15a.js → index-0d3a5385.js} +9 -85
  89. package/dist/cjs/loader.cjs.js +1 -1
  90. package/dist/cjs/{usage-tracking-94c4b9b4.js → usage-tracking-9e123d81.js} +25 -25
  91. package/dist/collection/collection-manifest.json +1 -1
  92. package/dist/collection/i18n/index.js +1 -1
  93. package/dist/deploy-info.json +3 -3
  94. package/dist/esm/genesys-webcomponents.js +1 -1
  95. package/dist/esm/gux-accordion-legacy.entry.js +1 -1
  96. package/dist/esm/gux-accordion.entry.js +1 -1
  97. package/dist/esm/gux-action-button-legacy.entry.js +2 -2
  98. package/dist/esm/gux-action-button.entry.js +2 -2
  99. package/dist/esm/gux-action-list-legacy.entry.js +1 -1
  100. package/dist/esm/gux-action-toast.entry.js +1 -1
  101. package/dist/esm/gux-advanced-dropdown.entry.js +2 -2
  102. package/dist/esm/gux-all-row-select.entry.js +1 -1
  103. package/dist/esm/gux-badge-beta.entry.js +2 -2
  104. package/dist/esm/gux-breadcrumbs.entry.js +2 -2
  105. package/dist/esm/gux-button-multi-legacy.entry.js +1 -1
  106. package/dist/esm/gux-button-multi.entry.js +1 -1
  107. package/dist/esm/gux-button-slot-beta.entry.js +1 -1
  108. package/dist/esm/gux-button.entry.js +1 -1
  109. package/dist/esm/gux-calendar.entry.js +2 -2
  110. package/dist/esm/gux-card-beta.entry.js +1 -1
  111. package/dist/esm/gux-chart-column-beta.entry.js +1 -1
  112. package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
  113. package/dist/esm/gux-chart-line-beta.entry.js +1 -1
  114. package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
  115. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
  116. package/dist/esm/gux-command-palette-legacy.entry.js +2 -2
  117. package/dist/esm/gux-content-search.entry.js +2 -2
  118. package/dist/esm/gux-copy-to-clipboard-beta.entry.js +2 -2
  119. package/dist/esm/gux-datepicker.entry.js +2 -2
  120. package/dist/esm/gux-disclosure-button.entry.js +2 -2
  121. package/dist/esm/gux-dismiss-button.entry.js +2 -2
  122. package/dist/esm/gux-dropdown-legacy.entry.js +1 -1
  123. package/dist/esm/gux-dropdown-multi-beta.entry.js +2 -2
  124. package/dist/esm/gux-dropdown-multi-tag.entry.js +1 -1
  125. package/dist/esm/gux-dropdown_3.entry.js +2 -2
  126. package/dist/esm/gux-error-message-beta.entry.js +1 -1
  127. package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
  128. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  129. package/dist/esm/gux-form-field-color.entry.js +1 -1
  130. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  131. package/dist/esm/gux-form-field-input-clear-button.entry.js +2 -2
  132. package/dist/esm/gux-form-field-legacy.entry.js +1 -1
  133. package/dist/esm/gux-form-field-number.entry.js +2 -2
  134. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  135. package/dist/esm/gux-form-field-range.entry.js +1 -1
  136. package/dist/esm/gux-form-field-search.entry.js +1 -1
  137. package/dist/esm/gux-form-field-select.entry.js +1 -1
  138. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  139. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  140. package/dist/esm/gux-icon.entry.js +1 -1
  141. package/dist/esm/gux-input-checkbox_7.entry.js +1 -1
  142. package/dist/esm/gux-input-search.entry.js +1 -1
  143. package/dist/esm/gux-input-text-like.entry.js +1 -1
  144. package/dist/esm/gux-list-item-legacy_2.entry.js +1 -1
  145. package/dist/esm/gux-list.entry.js +1 -1
  146. package/dist/esm/gux-listbox-multi.entry.js +2 -2
  147. package/dist/esm/gux-modal.entry.js +1 -1
  148. package/dist/esm/gux-notification-toast.entry.js +1 -1
  149. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  150. package/dist/esm/gux-pagination-beta.entry.js +1 -1
  151. package/dist/esm/gux-pagination-buttons-beta_3.entry.js +1 -1
  152. package/dist/esm/gux-pagination-buttons_3.entry.js +1 -1
  153. package/dist/esm/gux-pagination-cursor.entry.js +2 -2
  154. package/dist/esm/gux-pagination.entry.js +1 -1
  155. package/dist/esm/gux-panel-frame-legacy.entry.js +1 -1
  156. package/dist/esm/gux-popover-list.entry.js +1 -1
  157. package/dist/esm/gux-popover.entry.js +1 -1
  158. package/dist/esm/gux-radial-loading.entry.js +2 -2
  159. package/dist/esm/gux-radial-progress.entry.js +1 -1
  160. package/dist/esm/gux-rating.entry.js +1 -1
  161. package/dist/esm/gux-row-select.entry.js +1 -1
  162. package/dist/esm/gux-side-panel-legacy.entry.js +1 -1
  163. package/dist/esm/gux-simple-toast.entry.js +1 -1
  164. package/dist/esm/gux-sort-control.entry.js +1 -1
  165. package/dist/esm/gux-switch.entry.js +1 -1
  166. package/dist/esm/gux-tab-advanced-list.entry.js +1 -1
  167. package/dist/esm/gux-tab-advanced.entry.js +1 -1
  168. package/dist/esm/gux-tab-list.entry.js +1 -1
  169. package/dist/esm/gux-table-beta.entry.js +2 -2
  170. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  171. package/dist/esm/gux-tabs-legacy.entry.js +2 -2
  172. package/dist/esm/gux-tabs.entry.js +1 -1
  173. package/dist/esm/gux-tag-beta.entry.js +2 -2
  174. package/dist/esm/gux-text-highlight.entry.js +1 -1
  175. package/dist/esm/gux-text-label-legacy.entry.js +1 -1
  176. package/dist/esm/gux-time-picker-beta.entry.js +2 -2
  177. package/dist/esm/gux-toggle.entry.js +2 -2
  178. package/dist/esm/gux-tooltip_2.entry.js +1 -1
  179. package/dist/esm/gux-visualization-beta.entry.js +1740 -2951
  180. package/dist/esm/{index-8fe81fcb.js → index-b644eb47.js} +9 -85
  181. package/dist/esm/loader.js +1 -1
  182. package/dist/esm/{usage-tracking-4f9a8039.js → usage-tracking-e370e277.js} +25 -25
  183. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  184. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.de.json +1 -1
  185. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es-es.json +1 -1
  186. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es.json +1 -1
  187. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.it.json +1 -1
  188. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pl.json +1 -1
  189. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-cn.json +1 -1
  190. package/dist/genesys-webcomponents/{p-e956c2e7.entry.js → p-006ecb32.entry.js} +1 -1
  191. package/dist/genesys-webcomponents/{p-e9f22d94.js → p-021e35e0.js} +1 -1
  192. package/dist/genesys-webcomponents/{p-d861df0b.entry.js → p-02f88e5c.entry.js} +1 -1
  193. package/dist/genesys-webcomponents/{p-1b551c02.entry.js → p-030de576.entry.js} +1 -1
  194. package/dist/genesys-webcomponents/{p-5d3db6e0.entry.js → p-03be958b.entry.js} +1 -1
  195. package/dist/genesys-webcomponents/{p-f99164fb.entry.js → p-0c182709.entry.js} +1 -1
  196. package/dist/genesys-webcomponents/{p-82ac025f.entry.js → p-1294423a.entry.js} +1 -1
  197. package/dist/genesys-webcomponents/{p-7ae1f8af.entry.js → p-14641b4d.entry.js} +1 -1
  198. package/dist/genesys-webcomponents/{p-c03a653a.entry.js → p-161dd815.entry.js} +1 -1
  199. package/dist/genesys-webcomponents/{p-0812ef62.entry.js → p-1886913e.entry.js} +1 -1
  200. package/dist/genesys-webcomponents/{p-2b04eb09.entry.js → p-1c21d8cd.entry.js} +1 -1
  201. package/dist/genesys-webcomponents/{p-2834fc90.entry.js → p-217627af.entry.js} +1 -1
  202. package/dist/genesys-webcomponents/{p-da24229a.entry.js → p-26fd06f6.entry.js} +1 -1
  203. package/dist/genesys-webcomponents/{p-5471cbb4.entry.js → p-2ad1c8a6.entry.js} +1 -1
  204. package/dist/genesys-webcomponents/{p-2b9709b6.entry.js → p-2f6e6873.entry.js} +1 -1
  205. package/dist/genesys-webcomponents/p-2fb2e5b0.js +1 -0
  206. package/dist/genesys-webcomponents/p-3245df6d.entry.js +1 -0
  207. package/dist/genesys-webcomponents/{p-237252d6.entry.js → p-332b356f.entry.js} +1 -1
  208. package/dist/genesys-webcomponents/{p-95a3e17b.entry.js → p-347d7110.entry.js} +1 -1
  209. package/dist/genesys-webcomponents/p-35b6c045.entry.js +1 -0
  210. package/dist/genesys-webcomponents/{p-2b588707.entry.js → p-361aa2c4.entry.js} +1 -1
  211. package/dist/genesys-webcomponents/{p-34c6e15e.entry.js → p-3868ec8e.entry.js} +1 -1
  212. package/dist/genesys-webcomponents/{p-f9a4d5b7.entry.js → p-38ab3dc3.entry.js} +1 -1
  213. package/dist/genesys-webcomponents/{p-5a2dc2c4.entry.js → p-3d887bd4.entry.js} +1 -1
  214. package/dist/genesys-webcomponents/{p-abb029ab.entry.js → p-3f3d1d87.entry.js} +1 -1
  215. package/dist/genesys-webcomponents/{p-0943d1db.entry.js → p-405d48e5.entry.js} +1 -1
  216. package/dist/genesys-webcomponents/{p-ab85e4a3.entry.js → p-4692d349.entry.js} +1 -1
  217. package/dist/genesys-webcomponents/{p-cf635b20.entry.js → p-469bffbf.entry.js} +1 -1
  218. package/dist/genesys-webcomponents/{p-37c9b3fa.entry.js → p-47672c3b.entry.js} +1 -1
  219. package/dist/genesys-webcomponents/{p-aff31b57.entry.js → p-477d09dc.entry.js} +1 -1
  220. package/dist/genesys-webcomponents/{p-b99f34b2.entry.js → p-4ac13c8f.entry.js} +1 -1
  221. package/dist/genesys-webcomponents/{p-11c81c59.entry.js → p-51c70da6.entry.js} +1 -1
  222. package/dist/genesys-webcomponents/{p-d7ead098.entry.js → p-536a4370.entry.js} +1 -1
  223. package/dist/genesys-webcomponents/{p-c7c16c11.entry.js → p-586d8819.entry.js} +1 -1
  224. package/dist/genesys-webcomponents/{p-7ce89a45.entry.js → p-58e71848.entry.js} +1 -1
  225. package/dist/genesys-webcomponents/{p-3b319c1e.entry.js → p-5a84ab3b.entry.js} +1 -1
  226. package/dist/genesys-webcomponents/{p-52546884.entry.js → p-5b6986c0.entry.js} +1 -1
  227. package/dist/genesys-webcomponents/{p-d06f88d4.entry.js → p-5c2a8035.entry.js} +1 -1
  228. package/dist/genesys-webcomponents/p-608f2200.entry.js +26 -0
  229. package/dist/genesys-webcomponents/{p-5690151d.entry.js → p-609a02d3.entry.js} +1 -1
  230. package/dist/genesys-webcomponents/{p-77e9dcf5.entry.js → p-66379242.entry.js} +1 -1
  231. package/dist/genesys-webcomponents/{p-9f41c500.entry.js → p-665ff47a.entry.js} +1 -1
  232. package/dist/genesys-webcomponents/{p-7e8236fc.entry.js → p-689ee168.entry.js} +1 -1
  233. package/dist/genesys-webcomponents/{p-422c387e.entry.js → p-6e74bfc0.entry.js} +1 -1
  234. package/dist/genesys-webcomponents/{p-985806de.entry.js → p-72c06356.entry.js} +1 -1
  235. package/dist/genesys-webcomponents/{p-0418f102.entry.js → p-76c90388.entry.js} +1 -1
  236. package/dist/genesys-webcomponents/{p-bb0305a5.entry.js → p-78d98b87.entry.js} +1 -1
  237. package/dist/genesys-webcomponents/{p-1e42539f.entry.js → p-7f3ae155.entry.js} +1 -1
  238. package/dist/genesys-webcomponents/{p-22c741dc.entry.js → p-82ac91df.entry.js} +1 -1
  239. package/dist/genesys-webcomponents/{p-3e7051d5.entry.js → p-8461286b.entry.js} +1 -1
  240. package/dist/genesys-webcomponents/{p-84a4f18b.entry.js → p-852a03b5.entry.js} +1 -1
  241. package/dist/genesys-webcomponents/{p-d51ce151.entry.js → p-85e84aa5.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/{p-f7881144.entry.js → p-8795d559.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/{p-13693836.entry.js → p-8f162dc2.entry.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-fe55a42b.entry.js → p-8fbf00a4.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/{p-61bf57ea.entry.js → p-9278a75f.entry.js} +1 -1
  246. package/dist/genesys-webcomponents/{p-486ef897.entry.js → p-99293c09.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-9ffef09d.entry.js → p-9cf81b2b.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/p-a36fa29b.entry.js +1 -0
  249. package/dist/genesys-webcomponents/{p-8a39f50c.entry.js → p-a4e3a10c.entry.js} +1 -1
  250. package/dist/genesys-webcomponents/{p-861c0557.entry.js → p-aa32fccc.entry.js} +1 -1
  251. package/dist/genesys-webcomponents/{p-3ab4b81f.entry.js → p-ade68160.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-472b1d8b.entry.js → p-b1971242.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-04cc9fd0.entry.js → p-b78e4cb0.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-0956f73d.entry.js → p-bc0fb1b0.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-66c6e687.entry.js → p-be37f4ca.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/{p-1dbbded8.entry.js → p-c2f218fe.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/{p-6281a488.entry.js → p-c35249a8.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/{p-9597d043.entry.js → p-c68d6c4d.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/{p-66e80a60.entry.js → p-c8939f26.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-62a237f0.entry.js → p-c985ffed.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/{p-b36d59fd.entry.js → p-cbb82d63.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/{p-60083240.entry.js → p-d544a2de.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/{p-13337114.entry.js → p-da1da8ac.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/{p-e7e6f626.entry.js → p-e220c05f.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-3492c302.entry.js → p-e5911dce.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-446516c9.entry.js → p-e7a6099f.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-11ab0f57.entry.js → p-eba2af05.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-0b41c5a1.entry.js → p-ed856148.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-2b2b6d74.entry.js → p-edfb3008.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-69493f5e.entry.js → p-ee2d0ee9.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-41c20b84.entry.js → p-ee97975e.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-3720196e.entry.js → p-f0e98b69.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-611ad5f8.entry.js → p-f1922703.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-38e42be3.entry.js → p-f37933b3.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-95b983bf.entry.js → p-fabdede7.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-d22b2129.entry.js → p-fb66861a.entry.js} +1 -1
  277. package/dist/stencil-wrapper.js +1 -1
  278. package/package.json +25 -25
  279. package/dist/genesys-webcomponents/p-4154675a.js +0 -1
  280. package/dist/genesys-webcomponents/p-4ab5913a.entry.js +0 -1
  281. package/dist/genesys-webcomponents/p-87e7980c.entry.js +0 -26
  282. package/dist/genesys-webcomponents/p-a4bd6825.entry.js +0 -1
  283. package/dist/genesys-webcomponents/p-f8f8d6e0.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,d as s,w as o,h as i,g as e}from"./p-e571f861.js";import{b as l}from"./p-4154675a.js";import{O as r}from"./p-35578249.js";import"./p-8a133b9b.js";const c={scrollLeft:"Scroll Left",scrollRight:"Scroll Right",scrollUp:"Scroll Up",scrollDown:"Scroll Down"};const a=class{constructor(s){t(this,s),this.focused=0,this.hasHorizontalScrollbar=!1,this.hasVerticalScrollbar=!1,this.isScrolledToBeginning=!1,this.isScrolledToEnd=!1}onFocusout(t){this.root.contains(t.relatedTarget)||this.tabTriggers.forEach((async(t,s)=>{await t.guxGetActive()?this.focused=s:t.querySelector("button").setAttribute("tabindex","-1")}))}onHasVerticalScrollBar(){this.checkDisabledScrollButtons()}onScroll(){this.checkDisabledScrollButtons()}onKeydown(t){switch(t.key){case"ArrowRight":case"ArrowDown":t.preventDefault(),this.handleKeyboardScroll("forward");break;case"ArrowLeft":case"ArrowUp":t.preventDefault(),this.handleKeyboardScroll("backward");break;case"Escape":t.preventDefault(),this.focusTab(this.focused);break;case"Home":t.preventDefault(),this.focusTab(0);break;case"End":t.preventDefault(),this.focusTab(this.tabTriggers.length-1)}}onMutation(){this.setTabTriggers()}async guxSetActive(t){this.tabTriggers.forEach(((s,o)=>{const i=s.tabId===t;s.guxSetActive(i),i&&(this.focused=o)}))}focusTab(t){this.focused=t,this.tabTriggers.forEach((async(t,s)=>{const o=await t.guxGetActive();this.focused===s||o||t.querySelector("button").setAttribute("tabindex","-1")})),this.tabTriggers[this.focused].querySelector("button").setAttribute("tabindex","0"),this.tabTriggers[this.focused].guxFocus()}setTabTriggers(){this.tabTriggers=this.root.querySelectorAll("gux-tab"),this.triggerIds=this.tabTriggers?Array.from(this.tabTriggers).map((t=>`gux-${t.getAttribute("tab-id")}-tab`)).join(" "):""}checkForScrollbarHideOrShow(){s((()=>{const t=this.root.querySelector(".gux-scrollable-section"),s=t.clientWidth<t.scrollWidth,o=t.clientHeight<t.scrollHeight;s!==this.hasHorizontalScrollbar&&(this.hasHorizontalScrollbar=s),o!==this.hasVerticalScrollbar&&(this.hasVerticalScrollbar=o),this.checkDisabledScrollButtons()}))}handleKeyboardScroll(t){const s=this.root.querySelector(".gux-scrollable-section"),i=this.root.querySelectorAll("gux-tab")[this.focused];"forward"===t?this.focused<this.tabTriggers.length-1?(o((()=>{this.hasHorizontalScrollbar?s.scrollBy(i.clientWidth,0):s.scrollBy(0,i.clientHeight)})),this.focusTab(this.focused+1)):(o((()=>{this.hasHorizontalScrollbar?s.scrollBy(-s.scrollWidth,0):s.scrollBy(0,-s.scrollHeight)})),this.focusTab(0)):"backward"===t&&(this.focused>0?(o((()=>{this.hasHorizontalScrollbar?s.scrollBy(-i.clientWidth,0):s.scrollBy(0,-i.clientHeight)})),this.focusTab(this.focused-1)):(o((()=>{this.hasHorizontalScrollbar?s.scrollBy(s.scrollWidth,0):s.scrollBy(0,s.scrollHeight)})),this.focusTab(this.tabTriggers.length-1)))}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.unobserve(this.root.querySelector(".gux-tab-container")),this.domObserver&&this.domObserver.disconnect()}async componentWillLoad(){this.setTabTriggers(),this.i18n=await l(this.root,c,"gux-tabs")}componentDidLoad(){!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkForScrollbarHideOrShow()))),this.resizeObserver&&this.resizeObserver.observe(this.root.querySelector(".gux-scrollable-section")),!this.domObserver&&window.MutationObserver&&(this.domObserver=new MutationObserver((()=>this.checkForScrollbarHideOrShow()))),this.domObserver&&this.domObserver.observe(this.root,{childList:!0,attributes:!1,subtree:!0}),setTimeout((()=>{this.checkForScrollbarHideOrShow()}),500)}checkDisabledScrollButtons(){const t=this.root.querySelector(".gux-scrollable-section");if(this.hasHorizontalScrollbar){const s=t.scrollLeft,o=t.scrollWidth-t.clientWidth;this.isScrolledToBeginning=0===s,this.isScrolledToEnd=o-s==0}else{const s=t.scrollTop,o=t.scrollHeight-t.clientHeight;this.isScrolledToBeginning=0===s,this.isScrolledToEnd=o-s==0}}scrollLeft(){o((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(-100,0)}))}scrollRight(){o((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(100,0)}))}scrollUp(){o((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(0,-100)}))}scrollDown(){o((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(0,100)}))}render(){return i("div",{class:"gux-tab-container"},this.renderScrollButton(this.hasHorizontalScrollbar?"scrollLeft":"scrollUp"),i("div",{role:"tablist",class:"gux-scrollable-section","aria-owns":this.triggerIds},i("slot",null)),this.renderScrollButton(this.hasHorizontalScrollbar?"scrollRight":"scrollDown"))}renderScrollButton(t){return i("div",{class:"gux-scroll-button-container"},this.hasHorizontalScrollbar||this.hasVerticalScrollbar?i("button",{disabled:this.getButtonDisabled(t),tabindex:"-1",title:this.i18n(t),"aria-label":this.i18n(t),class:"gux-scroll-button",onClick:()=>this.getScrollDirection(t)},i("gux-icon",{"icon-name":this.getChevronIconName(t),decorative:!0})):null)}getButtonDisabled(t){switch(t){case"scrollLeft":case"scrollUp":return this.isScrolledToBeginning;case"scrollRight":case"scrollDown":return this.isScrolledToEnd}}getScrollDirection(t){switch(t){case"scrollLeft":this.scrollLeft();break;case"scrollRight":this.scrollRight();break;case"scrollUp":this.scrollUp();break;case"scrollDown":this.scrollDown()}}getChevronIconName(t){switch(t){case"scrollLeft":return"chevron-small-left";case"scrollRight":return"chevron-small-right";case"scrollUp":return"chevron-small-up";case"scrollDown":return"chevron-small-down"}}get root(){return e(this)}};(function(t,s,o,i){var e,l=arguments.length,r=l<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,o,i);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(r=(l<3?e(r):l>3?e(s,o,r):e(s,o))||r);l>3&&r&&Object.defineProperty(s,o,r)})([r({childList:!0,subtree:!0})],a.prototype,"onMutation",null),a.style="gux-tabs[orientation='vertical']{height:100%}gux-tabs[orientation='vertical'] .gux-tab-container{display:flex;flex-direction:column;width:160px;max-width:160px;height:100%;margin-right:16px;border-right:1px solid #d7dce5}gux-tabs[orientation='vertical'] .gux-tab-container .gux-scroll-button-container{width:100%}gux-tabs[orientation='vertical'] .gux-tab-container .gux-scroll-button-container button{width:100%}gux-tabs[orientation='vertical'] .gux-tab-container .gux-scrollable-section{flex-direction:column;height:100%;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth}gux-tabs[orientation='vertical'] .gux-tab-container .gux-scrollable-section::-webkit-scrollbar{width:0;height:0}gux-tabs:not([orientation='vertical']) .gux-tab-container{height:40px;margin-bottom:16px;border-bottom:1px solid #d7dce5}gux-tabs:not([orientation='vertical']) .gux-scrollable-section{overflow-x:auto}gux-tabs .gux-tab-container{box-sizing:content-box;display:flex;width:100%;overflow-x:hidden;overflow-y:hidden;background-color:#fff}gux-tabs .gux-scrollable-section{display:flex;flex:1 1 auto;scroll-behavior:smooth;scrollbar-width:none}gux-tabs .gux-scrollable-section::-webkit-scrollbar{height:0}gux-tabs .gux-scroll-button-container{display:flex;border-radius:4px}gux-tabs .gux-scroll-button-container .gux-scroll-button{display:flex;align-items:center;justify-content:center;width:28px;height:40px;color:#202937;cursor:pointer;background-color:#c8cfda;background-color:#e2e6ee;border:none;border-radius:4px}gux-tabs .gux-scroll-button-container .gux-scroll-button gux-icon{width:16px;height:16px}gux-tabs .gux-scroll-button-container .gux-scroll-button:hover:not(:disabled){background-color:#d7dce5}gux-tabs .gux-scroll-button-container .gux-scroll-button:active:not(:disabled){background-color:#d2d8e5}gux-tabs .gux-scroll-button-container .gux-scroll-button:disabled{cursor:default;opacity:0.5}";export{a as gux_tab_list}
1
+ import{r as t,d as s,w as o,h as i,g as e}from"./p-e571f861.js";import{b as l}from"./p-2fb2e5b0.js";import{O as r}from"./p-35578249.js";import"./p-8a133b9b.js";const c={scrollLeft:"Scroll Left",scrollRight:"Scroll Right",scrollUp:"Scroll Up",scrollDown:"Scroll Down"};const a=class{constructor(s){t(this,s),this.focused=0,this.hasHorizontalScrollbar=!1,this.hasVerticalScrollbar=!1,this.isScrolledToBeginning=!1,this.isScrolledToEnd=!1}onFocusout(t){this.root.contains(t.relatedTarget)||this.tabTriggers.forEach((async(t,s)=>{await t.guxGetActive()?this.focused=s:t.querySelector("button").setAttribute("tabindex","-1")}))}onHasVerticalScrollBar(){this.checkDisabledScrollButtons()}onScroll(){this.checkDisabledScrollButtons()}onKeydown(t){switch(t.key){case"ArrowRight":case"ArrowDown":t.preventDefault(),this.handleKeyboardScroll("forward");break;case"ArrowLeft":case"ArrowUp":t.preventDefault(),this.handleKeyboardScroll("backward");break;case"Escape":t.preventDefault(),this.focusTab(this.focused);break;case"Home":t.preventDefault(),this.focusTab(0);break;case"End":t.preventDefault(),this.focusTab(this.tabTriggers.length-1)}}onMutation(){this.setTabTriggers()}async guxSetActive(t){this.tabTriggers.forEach(((s,o)=>{const i=s.tabId===t;s.guxSetActive(i),i&&(this.focused=o)}))}focusTab(t){this.focused=t,this.tabTriggers.forEach((async(t,s)=>{const o=await t.guxGetActive();this.focused===s||o||t.querySelector("button").setAttribute("tabindex","-1")})),this.tabTriggers[this.focused].querySelector("button").setAttribute("tabindex","0"),this.tabTriggers[this.focused].guxFocus()}setTabTriggers(){this.tabTriggers=this.root.querySelectorAll("gux-tab"),this.triggerIds=this.tabTriggers?Array.from(this.tabTriggers).map((t=>`gux-${t.getAttribute("tab-id")}-tab`)).join(" "):""}checkForScrollbarHideOrShow(){s((()=>{const t=this.root.querySelector(".gux-scrollable-section"),s=t.clientWidth<t.scrollWidth,o=t.clientHeight<t.scrollHeight;s!==this.hasHorizontalScrollbar&&(this.hasHorizontalScrollbar=s),o!==this.hasVerticalScrollbar&&(this.hasVerticalScrollbar=o),this.checkDisabledScrollButtons()}))}handleKeyboardScroll(t){const s=this.root.querySelector(".gux-scrollable-section"),i=this.root.querySelectorAll("gux-tab")[this.focused];"forward"===t?this.focused<this.tabTriggers.length-1?(o((()=>{this.hasHorizontalScrollbar?s.scrollBy(i.clientWidth,0):s.scrollBy(0,i.clientHeight)})),this.focusTab(this.focused+1)):(o((()=>{this.hasHorizontalScrollbar?s.scrollBy(-s.scrollWidth,0):s.scrollBy(0,-s.scrollHeight)})),this.focusTab(0)):"backward"===t&&(this.focused>0?(o((()=>{this.hasHorizontalScrollbar?s.scrollBy(-i.clientWidth,0):s.scrollBy(0,-i.clientHeight)})),this.focusTab(this.focused-1)):(o((()=>{this.hasHorizontalScrollbar?s.scrollBy(s.scrollWidth,0):s.scrollBy(0,s.scrollHeight)})),this.focusTab(this.tabTriggers.length-1)))}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.unobserve(this.root.querySelector(".gux-tab-container")),this.domObserver&&this.domObserver.disconnect()}async componentWillLoad(){this.setTabTriggers(),this.i18n=await l(this.root,c,"gux-tabs")}componentDidLoad(){!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkForScrollbarHideOrShow()))),this.resizeObserver&&this.resizeObserver.observe(this.root.querySelector(".gux-scrollable-section")),!this.domObserver&&window.MutationObserver&&(this.domObserver=new MutationObserver((()=>this.checkForScrollbarHideOrShow()))),this.domObserver&&this.domObserver.observe(this.root,{childList:!0,attributes:!1,subtree:!0}),setTimeout((()=>{this.checkForScrollbarHideOrShow()}),500)}checkDisabledScrollButtons(){const t=this.root.querySelector(".gux-scrollable-section");if(this.hasHorizontalScrollbar){const s=t.scrollLeft,o=t.scrollWidth-t.clientWidth;this.isScrolledToBeginning=0===s,this.isScrolledToEnd=o-s==0}else{const s=t.scrollTop,o=t.scrollHeight-t.clientHeight;this.isScrolledToBeginning=0===s,this.isScrolledToEnd=o-s==0}}scrollLeft(){o((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(-100,0)}))}scrollRight(){o((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(100,0)}))}scrollUp(){o((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(0,-100)}))}scrollDown(){o((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(0,100)}))}render(){return i("div",{class:"gux-tab-container"},this.renderScrollButton(this.hasHorizontalScrollbar?"scrollLeft":"scrollUp"),i("div",{role:"tablist",class:"gux-scrollable-section","aria-owns":this.triggerIds},i("slot",null)),this.renderScrollButton(this.hasHorizontalScrollbar?"scrollRight":"scrollDown"))}renderScrollButton(t){return i("div",{class:"gux-scroll-button-container"},this.hasHorizontalScrollbar||this.hasVerticalScrollbar?i("button",{disabled:this.getButtonDisabled(t),tabindex:"-1",title:this.i18n(t),"aria-label":this.i18n(t),class:"gux-scroll-button",onClick:()=>this.getScrollDirection(t)},i("gux-icon",{"icon-name":this.getChevronIconName(t),decorative:!0})):null)}getButtonDisabled(t){switch(t){case"scrollLeft":case"scrollUp":return this.isScrolledToBeginning;case"scrollRight":case"scrollDown":return this.isScrolledToEnd}}getScrollDirection(t){switch(t){case"scrollLeft":this.scrollLeft();break;case"scrollRight":this.scrollRight();break;case"scrollUp":this.scrollUp();break;case"scrollDown":this.scrollDown()}}getChevronIconName(t){switch(t){case"scrollLeft":return"chevron-small-left";case"scrollRight":return"chevron-small-right";case"scrollUp":return"chevron-small-up";case"scrollDown":return"chevron-small-down"}}get root(){return e(this)}};(function(t,s,o,i){var e,l=arguments.length,r=l<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,o,i);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(r=(l<3?e(r):l>3?e(s,o,r):e(s,o))||r);l>3&&r&&Object.defineProperty(s,o,r)})([r({childList:!0,subtree:!0})],a.prototype,"onMutation",null),a.style="gux-tabs[orientation='vertical']{height:100%}gux-tabs[orientation='vertical'] .gux-tab-container{display:flex;flex-direction:column;width:160px;max-width:160px;height:100%;margin-right:16px;border-right:1px solid #d7dce5}gux-tabs[orientation='vertical'] .gux-tab-container .gux-scroll-button-container{width:100%}gux-tabs[orientation='vertical'] .gux-tab-container .gux-scroll-button-container button{width:100%}gux-tabs[orientation='vertical'] .gux-tab-container .gux-scrollable-section{flex-direction:column;height:100%;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth}gux-tabs[orientation='vertical'] .gux-tab-container .gux-scrollable-section::-webkit-scrollbar{width:0;height:0}gux-tabs:not([orientation='vertical']) .gux-tab-container{height:40px;margin-bottom:16px;border-bottom:1px solid #d7dce5}gux-tabs:not([orientation='vertical']) .gux-scrollable-section{overflow-x:auto}gux-tabs .gux-tab-container{box-sizing:content-box;display:flex;width:100%;overflow-x:hidden;overflow-y:hidden;background-color:#fff}gux-tabs .gux-scrollable-section{display:flex;flex:1 1 auto;scroll-behavior:smooth;scrollbar-width:none}gux-tabs .gux-scrollable-section::-webkit-scrollbar{height:0}gux-tabs .gux-scroll-button-container{display:flex;border-radius:4px}gux-tabs .gux-scroll-button-container .gux-scroll-button{display:flex;align-items:center;justify-content:center;width:28px;height:40px;color:#202937;cursor:pointer;background-color:#c8cfda;background-color:#e2e6ee;border:none;border-radius:4px}gux-tabs .gux-scroll-button-container .gux-scroll-button gux-icon{width:16px;height:16px}gux-tabs .gux-scroll-button-container .gux-scroll-button:hover:not(:disabled){background-color:#d7dce5}gux-tabs .gux-scroll-button-container .gux-scroll-button:active:not(:disabled){background-color:#d2d8e5}gux-tabs .gux-scroll-button-container .gux-scroll-button:disabled{cursor:default;opacity:0.5}";export{a as gux_tab_list}
@@ -1 +1 @@
1
- import{r as t,c as i,h as o,g as s}from"./p-e571f861.js";import{t as n}from"./p-e9f22d94.js";import{O as e}from"./p-49b1912a.js";import{b as a}from"./p-4154675a.js";import"./p-8a133b9b.js";const c={actionButtonDropdown:"Dropdown for {buttonTitle}"};const h=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.moveFocusDelay=100,this.type="button",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.actionListElement)&&this.dropdownButton.focus();break;case"Tab":this.isOpen=!1;break;case"ArrowDown":t.preventDefault(),i.includes(this.dropdownButton)&&(this.isOpen=!0,setTimeout((()=>{this.actionListElement.setFocusOnFirstItem()}),this.moveFocusDelay));break;case"Enter":i.includes(this.dropdownButton)&&(this.isOpen=!0,setTimeout((()=>{this.actionListElement.setFocusOnFirstItem()}),this.moveFocusDelay))}}handleKeyup(t){const i=t.composedPath();switch(t.key){case" ":i.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,setTimeout((()=>{this.actionListElement.setFocusOnFirstItem()}),this.moveFocusDelay))}}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)}onActionClick(){this.disabled||(this.isOpen=!1,this.actionClick.emit())}async componentWillLoad(){n(this.root,{variant:this.type}),this.i18n=await a(this.root,c)}render(){return o("div",{class:"gux-action-button-container"},o("gux-popup",{expanded:this.isOpen,disabled:this.disabled},o("div",{slot:"target",class:"gux-action-button-container"},o("gux-button-slot-beta",{class:"gux-action-button",accent:this.accent},o("button",{type:this.type,disabled:this.disabled,onClick:()=>this.onActionClick()},this.text)),o("gux-button-slot-beta",{class:"gux-dropdown-button",accent:this.accent},o("button",{type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onClick:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),"aria-label":this.i18n("actionButtonDropdown",{buttonTitle:this.text})},o("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),o("gux-action-list-legacy",{slot:"popup",ref:t=>this.actionListElement=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 c=t.length-1;c>=0;c--)(n=t[c])&&(a=(e<3?n(a):e>3?n(i,o,a):n(i,o))||a);e>3&&a&&Object.defineProperty(i,o,a)})([e({triggerEvents:"click"})],h.prototype,"onClickOutside",null),h.style=":host{display:block;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}";export{h as gux_action_button_legacy}
1
+ import{r as t,c as i,h as o,g as s}from"./p-e571f861.js";import{t as n}from"./p-021e35e0.js";import{O as e}from"./p-49b1912a.js";import{b as a}from"./p-2fb2e5b0.js";import"./p-8a133b9b.js";const c={actionButtonDropdown:"Dropdown for {buttonTitle}"};const h=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.moveFocusDelay=100,this.type="button",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.actionListElement)&&this.dropdownButton.focus();break;case"Tab":this.isOpen=!1;break;case"ArrowDown":t.preventDefault(),i.includes(this.dropdownButton)&&(this.isOpen=!0,setTimeout((()=>{this.actionListElement.setFocusOnFirstItem()}),this.moveFocusDelay));break;case"Enter":i.includes(this.dropdownButton)&&(this.isOpen=!0,setTimeout((()=>{this.actionListElement.setFocusOnFirstItem()}),this.moveFocusDelay))}}handleKeyup(t){const i=t.composedPath();switch(t.key){case" ":i.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,setTimeout((()=>{this.actionListElement.setFocusOnFirstItem()}),this.moveFocusDelay))}}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)}onActionClick(){this.disabled||(this.isOpen=!1,this.actionClick.emit())}async componentWillLoad(){n(this.root,{variant:this.type}),this.i18n=await a(this.root,c)}render(){return o("div",{class:"gux-action-button-container"},o("gux-popup",{expanded:this.isOpen,disabled:this.disabled},o("div",{slot:"target",class:"gux-action-button-container"},o("gux-button-slot-beta",{class:"gux-action-button",accent:this.accent},o("button",{type:this.type,disabled:this.disabled,onClick:()=>this.onActionClick()},this.text)),o("gux-button-slot-beta",{class:"gux-dropdown-button",accent:this.accent},o("button",{type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onClick:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),"aria-label":this.i18n("actionButtonDropdown",{buttonTitle:this.text})},o("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),o("gux-action-list-legacy",{slot:"popup",ref:t=>this.actionListElement=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 c=t.length-1;c>=0;c--)(n=t[c])&&(a=(e<3?n(a):e>3?n(i,o,a):n(i,o))||a);e>3&&a&&Object.defineProperty(i,o,a)})([e({triggerEvents:"click"})],h.prototype,"onClickOutside",null),h.style=":host{display:block;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}";export{h as gux_action_button_legacy}