genesys-spark-components 3.28.1 → 3.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/CHANGELOG.md +24 -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 +1 -1
  6. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  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 +1 -1
  10. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-badge-beta.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-blank-state-beta.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-button-multi-legacy.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-button-slot-beta.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-button.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-card-beta.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-command-palette-legacy.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-content-search.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.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.cjs.entry.js +3 -3
  44. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-list.cjs.entry.js +8 -51
  53. package/dist/cjs/gux-list.service-59f2b3e7.js +51 -0
  54. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-loading-message-beta.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-month-calendar.cjs.entry.js +137 -0
  58. package/dist/cjs/gux-month-list_2.cjs.entry.js +89 -0
  59. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +222 -0
  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-popover-list.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-popover.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-side-panel-legacy.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-simple-toast.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-skip-navigation-list-beta.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-switch.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-table-beta.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-tabs-legacy.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-tag-beta.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-text-label-legacy.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-time-picker-beta.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-visualization-beta.cjs.entry.js +1 -1
  88. package/dist/cjs/index-262c2e3a.js +16 -4
  89. package/dist/cjs/loader.cjs.js +1 -1
  90. package/dist/cjs/{usage-tracking-fdbd0b75.js → usage-tracking-4f592648.js} +1 -1
  91. package/dist/cjs/year-month-values-080373aa.js +24 -0
  92. package/dist/collection/collection-manifest.json +4 -0
  93. package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.css +78 -0
  94. package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.js +237 -0
  95. package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list-item/gux-month-list-item.css +52 -0
  96. package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list-item/gux-month-list-item.js +110 -0
  97. package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list.css +8 -0
  98. package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list.js +80 -0
  99. package/dist/collection/components/beta/gux-month-picker/gux-month-picker.css +58 -0
  100. package/dist/collection/components/beta/gux-month-picker/gux-month-picker.js +313 -0
  101. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.css +2 -3
  102. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.js +2 -1
  103. package/dist/collection/components/stable/gux-list/gux-list.js +6 -5
  104. package/dist/collection/components/stable/gux-list/gux-list.service.js +19 -20
  105. package/dist/collection/utils/date/year-month-values.js +13 -0
  106. package/dist/collection/utils/dom/after-render.js +3 -0
  107. package/dist/deploy-info.json +3 -3
  108. package/dist/esm/genesys-webcomponents.js +1 -1
  109. package/dist/esm/gux-accordion-legacy.entry.js +1 -1
  110. package/dist/esm/gux-accordion.entry.js +1 -1
  111. package/dist/esm/gux-action-button-legacy.entry.js +1 -1
  112. package/dist/esm/gux-action-button.entry.js +1 -1
  113. package/dist/esm/gux-action-list-legacy.entry.js +1 -1
  114. package/dist/esm/gux-action-toast.entry.js +1 -1
  115. package/dist/esm/gux-advanced-dropdown.entry.js +1 -1
  116. package/dist/esm/gux-announce-beta.entry.js +1 -1
  117. package/dist/esm/gux-badge-beta.entry.js +1 -1
  118. package/dist/esm/gux-blank-state-beta.entry.js +1 -1
  119. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  120. package/dist/esm/gux-button-multi-legacy.entry.js +1 -1
  121. package/dist/esm/gux-button-multi.entry.js +1 -1
  122. package/dist/esm/gux-button-slot-beta.entry.js +1 -1
  123. package/dist/esm/gux-button.entry.js +1 -1
  124. package/dist/esm/gux-calendar.entry.js +1 -1
  125. package/dist/esm/gux-card-beta.entry.js +1 -1
  126. package/dist/esm/gux-chart-column-beta.entry.js +1 -1
  127. package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
  128. package/dist/esm/gux-chart-line-beta.entry.js +1 -1
  129. package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
  130. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
  131. package/dist/esm/gux-command-palette-legacy.entry.js +1 -1
  132. package/dist/esm/gux-content-search.entry.js +1 -1
  133. package/dist/esm/gux-copy-to-clipboard-beta.entry.js +1 -1
  134. package/dist/esm/gux-date-beta.entry.js +1 -1
  135. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  136. package/dist/esm/gux-datepicker.entry.js +1 -1
  137. package/dist/esm/gux-disclosure-button.entry.js +1 -1
  138. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  139. package/dist/esm/gux-dropdown-legacy.entry.js +1 -1
  140. package/dist/esm/gux-dropdown-multi-beta.entry.js +1 -1
  141. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  142. package/dist/esm/gux-error-message-beta.entry.js +1 -1
  143. package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
  144. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  145. package/dist/esm/gux-form-field-color.entry.js +1 -1
  146. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  147. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  148. package/dist/esm/gux-form-field-legacy.entry.js +1 -1
  149. package/dist/esm/gux-form-field-number.entry.js +3 -3
  150. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  151. package/dist/esm/gux-form-field-range.entry.js +1 -1
  152. package/dist/esm/gux-form-field-search.entry.js +1 -1
  153. package/dist/esm/gux-form-field-select.entry.js +1 -1
  154. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  155. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  156. package/dist/esm/gux-icon.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 +8 -51
  159. package/dist/esm/gux-list.service-66b8540f.js +45 -0
  160. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  161. package/dist/esm/gux-loading-message-beta.entry.js +1 -1
  162. package/dist/esm/gux-modal.entry.js +1 -1
  163. package/dist/esm/gux-month-calendar.entry.js +133 -0
  164. package/dist/esm/gux-month-list_2.entry.js +84 -0
  165. package/dist/esm/gux-month-picker-beta.entry.js +218 -0
  166. package/dist/esm/gux-notification-toast.entry.js +1 -1
  167. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  168. package/dist/esm/gux-pagination-beta.entry.js +1 -1
  169. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  170. package/dist/esm/gux-pagination.entry.js +1 -1
  171. package/dist/esm/gux-panel-frame-legacy.entry.js +1 -1
  172. package/dist/esm/gux-popover-list.entry.js +1 -1
  173. package/dist/esm/gux-popover.entry.js +1 -1
  174. package/dist/esm/gux-radial-loading.entry.js +1 -1
  175. package/dist/esm/gux-radial-progress.entry.js +1 -1
  176. package/dist/esm/gux-rating.entry.js +1 -1
  177. package/dist/esm/gux-side-panel-legacy.entry.js +1 -1
  178. package/dist/esm/gux-simple-toast.entry.js +1 -1
  179. package/dist/esm/gux-skip-navigation-list-beta.entry.js +1 -1
  180. package/dist/esm/gux-sort-control.entry.js +1 -1
  181. package/dist/esm/gux-switch.entry.js +1 -1
  182. package/dist/esm/gux-table-beta.entry.js +1 -1
  183. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  184. package/dist/esm/gux-tabs-legacy.entry.js +1 -1
  185. package/dist/esm/gux-tabs.entry.js +1 -1
  186. package/dist/esm/gux-tag-beta.entry.js +1 -1
  187. package/dist/esm/gux-text-highlight.entry.js +1 -1
  188. package/dist/esm/gux-text-label-legacy.entry.js +1 -1
  189. package/dist/esm/gux-time-beta.entry.js +1 -1
  190. package/dist/esm/gux-time-picker-beta.entry.js +1 -1
  191. package/dist/esm/gux-toggle.entry.js +1 -1
  192. package/dist/esm/gux-tooltip.entry.js +1 -1
  193. package/dist/esm/gux-visualization-beta.entry.js +1 -1
  194. package/dist/esm/index-74e605ae.js +16 -4
  195. package/dist/esm/loader.js +1 -1
  196. package/dist/esm/{usage-tracking-46be00a6.js → usage-tracking-37a167df.js} +1 -1
  197. package/dist/esm/year-month-values-8f78277c.js +19 -0
  198. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  199. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ar.json +1 -1
  200. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.cs.json +1 -1
  201. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.da.json +1 -1
  202. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.de.json +1 -1
  203. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
  204. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es-es.json +1 -1
  205. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es.json +1 -1
  206. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fi.json +1 -1
  207. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr-ca.json +1 -1
  208. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr.json +1 -1
  209. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.he.json +1 -1
  210. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.it.json +1 -1
  211. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ja.json +1 -1
  212. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ko.json +1 -1
  213. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.nl.json +1 -1
  214. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.no.json +1 -1
  215. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pl.json +1 -1
  216. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pt-br.json +1 -1
  217. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pt-pt.json +1 -1
  218. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ru.json +1 -1
  219. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.sv.json +1 -1
  220. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.th.json +1 -1
  221. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.tr.json +1 -1
  222. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-cn.json +1 -1
  223. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-tw.json +1 -1
  224. package/dist/genesys-webcomponents/{p-42861cb8.entry.js → p-003399e8.entry.js} +1 -1
  225. package/dist/genesys-webcomponents/{p-f7ded51b.entry.js → p-03ff2482.entry.js} +1 -1
  226. package/dist/genesys-webcomponents/{p-3d929811.js → p-08b4611d.js} +1 -1
  227. package/dist/genesys-webcomponents/{p-0b573176.entry.js → p-0aec677e.entry.js} +1 -1
  228. package/dist/genesys-webcomponents/{p-b0e62919.entry.js → p-0db98d93.entry.js} +1 -1
  229. package/dist/genesys-webcomponents/{p-8fa57a6e.entry.js → p-0e8ad0ab.entry.js} +1 -1
  230. package/dist/genesys-webcomponents/{p-2c976c87.entry.js → p-0f4df601.entry.js} +1 -1
  231. package/dist/genesys-webcomponents/{p-aa83200a.entry.js → p-100ac561.entry.js} +1 -1
  232. package/dist/genesys-webcomponents/{p-27df379b.entry.js → p-10d43316.entry.js} +1 -1
  233. package/dist/genesys-webcomponents/{p-937a6d91.entry.js → p-17f60003.entry.js} +1 -1
  234. package/dist/genesys-webcomponents/{p-8724f0d3.entry.js → p-17ff41a2.entry.js} +1 -1
  235. package/dist/genesys-webcomponents/{p-b04864d8.entry.js → p-1a1ac578.entry.js} +1 -1
  236. package/dist/genesys-webcomponents/{p-2141eaf6.entry.js → p-1b89118e.entry.js} +1 -1
  237. package/dist/genesys-webcomponents/p-25ea189a.entry.js +1 -0
  238. package/dist/genesys-webcomponents/{p-45274359.entry.js → p-293bf77d.entry.js} +1 -1
  239. package/dist/genesys-webcomponents/{p-1bcac80e.entry.js → p-29aa611a.entry.js} +1 -1
  240. package/dist/genesys-webcomponents/{p-304e0862.entry.js → p-2a4ec113.entry.js} +1 -1
  241. package/dist/genesys-webcomponents/{p-4e7270a1.entry.js → p-2f3bcc18.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/{p-8af73166.entry.js → p-30a98c8d.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/{p-bf9f594a.entry.js → p-31c82b14.entry.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-f26dbeea.entry.js → p-3742fd1f.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/p-3834e291.js +1 -0
  246. package/dist/genesys-webcomponents/{p-0865de46.entry.js → p-3925fad5.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-5401dfc0.entry.js → p-398a26d4.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/{p-0af6d48d.entry.js → p-3b2105aa.entry.js} +1 -1
  249. package/dist/genesys-webcomponents/{p-ae905df6.entry.js → p-3d3e13b9.entry.js} +1 -1
  250. package/dist/genesys-webcomponents/{p-d9273500.entry.js → p-3d934438.entry.js} +1 -1
  251. package/dist/genesys-webcomponents/{p-d0593bd7.entry.js → p-40433687.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-80590b7e.entry.js → p-4126e464.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-cd3d0d81.entry.js → p-41d6a277.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-a40c1008.entry.js → p-441ce8d7.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-fe24975e.entry.js → p-4b50d89a.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/{p-3293bcd4.entry.js → p-4c10a897.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/{p-7fdff30b.entry.js → p-54cc96aa.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/{p-8c3a1214.entry.js → p-59baee6a.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/{p-1a0cbfe3.entry.js → p-5ca20d69.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-6fb51534.entry.js → p-5cb24f27.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/{p-f181e612.entry.js → p-5dc2aad1.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/{p-26fc0da4.entry.js → p-5f11236d.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/{p-bc35f447.entry.js → p-67c279a8.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/{p-3e106880.entry.js → p-7363b55d.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-01ef9af2.entry.js → p-737e577b.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-f7c5034c.entry.js → p-741eb0a1.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-89f07504.entry.js → p-75a477c5.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-38ee2e49.entry.js → p-7602faf4.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-c7abcf5a.entry.js → p-7f83787d.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/p-813cb992.entry.js +1 -0
  271. package/dist/genesys-webcomponents/{p-d0a93fe4.entry.js → p-841af57f.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-57d38071.entry.js → p-8eca1007.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-234c5db2.entry.js → p-913ba6ea.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-859f8520.entry.js → p-924184cc.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-9544d8f1.entry.js → p-9b4f20af.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-914cdf24.entry.js → p-9c7d20f3.entry.js} +1 -1
  277. package/dist/genesys-webcomponents/p-9d08314b.entry.js +1 -0
  278. package/dist/genesys-webcomponents/{p-6b949537.entry.js → p-9e166d9e.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/p-a623a639.entry.js +1 -0
  280. package/dist/genesys-webcomponents/{p-a0107b6c.entry.js → p-a994bec5.entry.js} +1 -1
  281. package/dist/genesys-webcomponents/{p-c97a9e26.entry.js → p-b36e02ef.entry.js} +1 -1
  282. package/dist/genesys-webcomponents/{p-7cdec1aa.entry.js → p-b58cc6b4.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-f8b7c0fe.entry.js → p-b6d7f014.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/{p-fb03513b.entry.js → p-b7b2833c.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/{p-6b79316e.entry.js → p-bf0b1b8d.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-931f15f9.entry.js → p-bfa4d7b0.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-2a2ac7a1.entry.js → p-c324299b.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-6f63be2e.entry.js → p-cbc37021.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-d445c114.entry.js → p-cc5c4d63.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/{p-d7ac501e.entry.js → p-cd138279.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/{p-8a0126f5.entry.js → p-cd847a4e.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-a729709c.entry.js → p-cdb2e81e.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-3c75f89e.entry.js → p-cf517e22.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-4820e3f0.entry.js → p-d04ba776.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-5f5b2b3c.entry.js → p-d30184ce.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-ab9af704.entry.js → p-d9172b8a.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-ebf8fc92.entry.js → p-d93f3a20.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-39ba0b61.entry.js → p-da26004d.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-f14a7f30.entry.js → p-dbf7b898.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-14ec6c9c.entry.js → p-dd38b278.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/p-df98316c.entry.js +1 -0
  302. package/dist/genesys-webcomponents/{p-de096ab1.entry.js → p-e05b0da9.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-575361b7.entry.js → p-e141df2a.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/p-ea91ae27.js +1 -0
  305. package/dist/genesys-webcomponents/{p-93d81f58.entry.js → p-ebc5b52b.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-1a883b5f.entry.js → p-f1b8c02a.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/{p-79cd1f7c.entry.js → p-f3ddde8f.entry.js} +1 -1
  308. package/dist/genesys-webcomponents/{p-41b462cf.entry.js → p-f7c7b39e.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-316644c4.entry.js → p-f8c8d648.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-a0ea94b2.entry.js → p-ff0d864f.entry.js} +1 -1
  311. package/dist/stencil-wrapper.js +1 -1
  312. package/dist/types/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.d.ts +45 -0
  313. package/dist/types/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list-item/gux-month-list-item.d.ts +12 -0
  314. package/dist/types/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list.d.ts +8 -0
  315. package/dist/types/components/beta/gux-month-picker/gux-month-picker.d.ts +49 -0
  316. package/dist/types/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.d.ts +1 -0
  317. package/dist/types/components/stable/gux-list/gux-list.service.d.ts +5 -4
  318. package/dist/types/components.d.ts +114 -0
  319. package/dist/types/utils/date/year-month-values.d.ts +8 -0
  320. package/dist/types/utils/dom/after-render.d.ts +1 -0
  321. package/package.json +1 -1
  322. package/dist/genesys-webcomponents/p-79929010.entry.js +0 -1
  323. package/dist/genesys-webcomponents/p-82084612.entry.js +0 -1
@@ -0,0 +1,45 @@
1
+ import { JSX } from '../../../../stencil-public-runtime';
2
+ import { GuxISOYearMonth } from '../../../../utils/date/year-month-values';
3
+ export declare class GuxMonthCalendar {
4
+ private i18n;
5
+ private previousYearElement;
6
+ private nextYearElement;
7
+ private monthListElement;
8
+ root: HTMLElement;
9
+ /**
10
+ * The current selected year and month in ISO8601 format (yyyy-mm)
11
+ */
12
+ value: GuxISOYearMonth;
13
+ /**
14
+ * The min year and month selectable in ISO8601 format (yyyy-mm)
15
+ */
16
+ min: GuxISOYearMonth;
17
+ /**
18
+ * The max year and month selectable in ISO8601 format (yyyy-mm)
19
+ */
20
+ max: GuxISOYearMonth;
21
+ year: string;
22
+ locale: string;
23
+ onValueUpdate(newValue: GuxISOYearMonth): void;
24
+ /**
25
+ * Focus a month
26
+ */
27
+ guxFocus(iSOYearMonth: GuxISOYearMonth): Promise<void>;
28
+ componentWillLoad(): Promise<void>;
29
+ private updateValue;
30
+ private isOutOfBounds;
31
+ private onMonthClick;
32
+ private getMonthAriaLabel;
33
+ private getYearLabel;
34
+ private isSelectedMonth;
35
+ private isAriaSelectedMonth;
36
+ private changeYear;
37
+ private isPreviousYearLessThanMinYear;
38
+ private isNextYearGreaterThanMaxYear;
39
+ private getMonthShortName;
40
+ private doFocusTrap;
41
+ private renderHeader;
42
+ private renderMonths;
43
+ private renderTrapFocusEl;
44
+ render(): JSX.Element;
45
+ }
@@ -0,0 +1,12 @@
1
+ import { JSX } from '../../../../../../stencil-public-runtime';
2
+ import { GuxISOYearMonth } from '../../../../../../utils/date/year-month-values';
3
+ export declare class GuxMonthListItem {
4
+ root: HTMLElement;
5
+ value: GuxISOYearMonth;
6
+ disabled: boolean;
7
+ selected: boolean;
8
+ onMouseup(): void;
9
+ onMouseover(): void;
10
+ private focusParentList;
11
+ render(): JSX.Element;
12
+ }
@@ -0,0 +1,8 @@
1
+ import { JSX } from '../../../../../stencil-public-runtime';
2
+ export declare class GuxMonthList {
3
+ root: HTMLElement;
4
+ onKeyDown(event: KeyboardEvent): void;
5
+ guxFocusFirstItem(): Promise<void>;
6
+ private renderFocusTarget;
7
+ render(): JSX.Element;
8
+ }
@@ -0,0 +1,49 @@
1
+ import { JSX } from '../../../stencil-public-runtime';
2
+ import { GuxISOYearMonth } from '../../../utils/date/year-month-values';
3
+ export declare class GuxMonthPicker {
4
+ private i18n;
5
+ private calendarToggleButtonElement;
6
+ private monthCalendarElement;
7
+ private monthSpinnerElement;
8
+ private yearSpinnerElement;
9
+ private root;
10
+ /**
11
+ * The current selected year and month in ISO8601 format (yyyy-mm)
12
+ */
13
+ value: GuxISOYearMonth;
14
+ /**
15
+ * The min year and month selectable in ISO8601 format (yyyy-mm)
16
+ */
17
+ min: GuxISOYearMonth;
18
+ /**
19
+ * The max year and month selectable in ISO8601 format (yyyy-mm)
20
+ */
21
+ max: GuxISOYearMonth;
22
+ disabled: boolean;
23
+ expanded: boolean;
24
+ locale: string;
25
+ onKeyDown(event: KeyboardEvent): void;
26
+ onValueUpdate(newValue: GuxISOYearMonth): void;
27
+ onClickOutside(): void;
28
+ componentWillLoad(): Promise<void>;
29
+ private isOutOfBounds;
30
+ private isBeforeMin;
31
+ private isAfterMax;
32
+ private toggleCalendar;
33
+ private onMonthCalendarInput;
34
+ private incrementMonth;
35
+ private incrementYear;
36
+ private onSpinnerKeyDown;
37
+ private onSpinnerKeyUp;
38
+ private onSpinnerClick;
39
+ private getSpinnerLabel;
40
+ private getSpinnerValueNow;
41
+ private getSpinnerValueText;
42
+ private renderMonthSpinnerButton;
43
+ private renderYearSpinnerButton;
44
+ private renderSpinnerButtons;
45
+ private renderCalendarToggleButton;
46
+ renderTarget(): JSX.Element;
47
+ private renderPopup;
48
+ render(): JSX.Element;
49
+ }
@@ -4,6 +4,7 @@ import { GuxFormFieldLabelPosition } from '../../gux-form-field.types';
4
4
  * @slot input - Required slot for input tag
5
5
  * @slot label - Required slot for label tag
6
6
  * @slot error - Optional slot for error message
7
+ * @part input-section - Style input container
7
8
  */
8
9
  export declare class GuxFormFieldNumber {
9
10
  private getI18nValue;
@@ -1,4 +1,5 @@
1
- export declare function first(root: HTMLElement): void;
2
- export declare function last(root: HTMLElement): void;
3
- export declare function next(root: HTMLElement): void;
4
- export declare function previous(root: HTMLElement): void;
1
+ export declare function focusMove(root: HTMLElement, validFocusableItems: string[], delta: number): void;
2
+ export declare function first(root: HTMLElement, validFocusableItems: string[]): void;
3
+ export declare function last(root: HTMLElement, validFocusableItems: string[]): void;
4
+ export declare function next(root: HTMLElement, validFocusableItems: string[]): void;
5
+ export declare function previous(root: HTMLElement, validFocusableItems: string[]): void;
@@ -23,6 +23,7 @@ import { GuxFormFieldLabelPosition as GuxFormFieldLabelPosition1 } from "./compo
23
23
  import { GuxFormFieldTextAreaResize } from "./components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.types";
24
24
  import { GuxTextHighlightStrategy } from "./components/stable/gux-text-highlight/gux-text-highlight.types";
25
25
  import { GuxModalSize } from "./components/stable/gux-modal/gux-modal.types";
26
+ import { GuxISOYearMonth } from "./utils/date/year-month-values";
26
27
  import { GuxNotificationToastAccent } from "./components/stable/gux-notification-toast/gux-notification-toast.types";
27
28
  import { GuxItemsPerPage, GuxPaginationLayout, GuxPaginationState } from "./components/stable/gux-pagination/gux-pagination.types";
28
29
  import { GuxItemsPerPage as GuxItemsPerPage1, GuxPaginationLayoutBeta } from "./components/beta/gux-pagination-beta/gux-pagination-beta.types";
@@ -859,6 +860,47 @@ export namespace Components {
859
860
  "size": GuxModalSize;
860
861
  "trapFocus": boolean;
861
862
  }
863
+ interface GuxMonthCalendar {
864
+ /**
865
+ * Focus a month
866
+ */
867
+ "guxFocus": (iSOYearMonth: GuxISOYearMonth) => Promise<void>;
868
+ /**
869
+ * The max year and month selectable in ISO8601 format (yyyy-mm)
870
+ */
871
+ "max": GuxISOYearMonth;
872
+ /**
873
+ * The min year and month selectable in ISO8601 format (yyyy-mm)
874
+ */
875
+ "min": GuxISOYearMonth;
876
+ /**
877
+ * The current selected year and month in ISO8601 format (yyyy-mm)
878
+ */
879
+ "value": GuxISOYearMonth;
880
+ }
881
+ interface GuxMonthList {
882
+ "guxFocusFirstItem": () => Promise<void>;
883
+ }
884
+ interface GuxMonthListItem {
885
+ "disabled": boolean;
886
+ "selected": boolean;
887
+ "value": GuxISOYearMonth;
888
+ }
889
+ interface GuxMonthPickerBeta {
890
+ "disabled": boolean;
891
+ /**
892
+ * The max year and month selectable in ISO8601 format (yyyy-mm)
893
+ */
894
+ "max": GuxISOYearMonth;
895
+ /**
896
+ * The min year and month selectable in ISO8601 format (yyyy-mm)
897
+ */
898
+ "min": GuxISOYearMonth;
899
+ /**
900
+ * The current selected year and month in ISO8601 format (yyyy-mm)
901
+ */
902
+ "value": GuxISOYearMonth;
903
+ }
862
904
  interface GuxNotificationToast {
863
905
  /**
864
906
  * The component accent.
@@ -2028,6 +2070,30 @@ declare global {
2028
2070
  prototype: HTMLGuxModalElement;
2029
2071
  new (): HTMLGuxModalElement;
2030
2072
  };
2073
+ interface HTMLGuxMonthCalendarElement extends Components.GuxMonthCalendar, HTMLStencilElement {
2074
+ }
2075
+ var HTMLGuxMonthCalendarElement: {
2076
+ prototype: HTMLGuxMonthCalendarElement;
2077
+ new (): HTMLGuxMonthCalendarElement;
2078
+ };
2079
+ interface HTMLGuxMonthListElement extends Components.GuxMonthList, HTMLStencilElement {
2080
+ }
2081
+ var HTMLGuxMonthListElement: {
2082
+ prototype: HTMLGuxMonthListElement;
2083
+ new (): HTMLGuxMonthListElement;
2084
+ };
2085
+ interface HTMLGuxMonthListItemElement extends Components.GuxMonthListItem, HTMLStencilElement {
2086
+ }
2087
+ var HTMLGuxMonthListItemElement: {
2088
+ prototype: HTMLGuxMonthListItemElement;
2089
+ new (): HTMLGuxMonthListItemElement;
2090
+ };
2091
+ interface HTMLGuxMonthPickerBetaElement extends Components.GuxMonthPickerBeta, HTMLStencilElement {
2092
+ }
2093
+ var HTMLGuxMonthPickerBetaElement: {
2094
+ prototype: HTMLGuxMonthPickerBetaElement;
2095
+ new (): HTMLGuxMonthPickerBetaElement;
2096
+ };
2031
2097
  interface HTMLGuxNotificationToastElement extends Components.GuxNotificationToast, HTMLStencilElement {
2032
2098
  }
2033
2099
  var HTMLGuxNotificationToastElement: {
@@ -2444,6 +2510,10 @@ declare global {
2444
2510
  "gux-menu": HTMLGuxMenuElement;
2445
2511
  "gux-menu-option": HTMLGuxMenuOptionElement;
2446
2512
  "gux-modal": HTMLGuxModalElement;
2513
+ "gux-month-calendar": HTMLGuxMonthCalendarElement;
2514
+ "gux-month-list": HTMLGuxMonthListElement;
2515
+ "gux-month-list-item": HTMLGuxMonthListItemElement;
2516
+ "gux-month-picker-beta": HTMLGuxMonthPickerBetaElement;
2447
2517
  "gux-notification-toast": HTMLGuxNotificationToastElement;
2448
2518
  "gux-option": HTMLGuxOptionElement;
2449
2519
  "gux-option-legacy": HTMLGuxOptionLegacyElement;
@@ -3334,6 +3404,42 @@ declare namespace LocalJSX {
3334
3404
  "size"?: GuxModalSize;
3335
3405
  "trapFocus"?: boolean;
3336
3406
  }
3407
+ interface GuxMonthCalendar {
3408
+ /**
3409
+ * The max year and month selectable in ISO8601 format (yyyy-mm)
3410
+ */
3411
+ "max"?: GuxISOYearMonth;
3412
+ /**
3413
+ * The min year and month selectable in ISO8601 format (yyyy-mm)
3414
+ */
3415
+ "min"?: GuxISOYearMonth;
3416
+ /**
3417
+ * The current selected year and month in ISO8601 format (yyyy-mm)
3418
+ */
3419
+ "value"?: GuxISOYearMonth;
3420
+ }
3421
+ interface GuxMonthList {
3422
+ }
3423
+ interface GuxMonthListItem {
3424
+ "disabled"?: boolean;
3425
+ "selected"?: boolean;
3426
+ "value"?: GuxISOYearMonth;
3427
+ }
3428
+ interface GuxMonthPickerBeta {
3429
+ "disabled"?: boolean;
3430
+ /**
3431
+ * The max year and month selectable in ISO8601 format (yyyy-mm)
3432
+ */
3433
+ "max"?: GuxISOYearMonth;
3434
+ /**
3435
+ * The min year and month selectable in ISO8601 format (yyyy-mm)
3436
+ */
3437
+ "min"?: GuxISOYearMonth;
3438
+ /**
3439
+ * The current selected year and month in ISO8601 format (yyyy-mm)
3440
+ */
3441
+ "value"?: GuxISOYearMonth;
3442
+ }
3337
3443
  interface GuxNotificationToast {
3338
3444
  /**
3339
3445
  * The component accent.
@@ -3951,6 +4057,10 @@ declare namespace LocalJSX {
3951
4057
  "gux-menu": GuxMenu;
3952
4058
  "gux-menu-option": GuxMenuOption;
3953
4059
  "gux-modal": GuxModal;
4060
+ "gux-month-calendar": GuxMonthCalendar;
4061
+ "gux-month-list": GuxMonthList;
4062
+ "gux-month-list-item": GuxMonthListItem;
4063
+ "gux-month-picker-beta": GuxMonthPickerBeta;
3954
4064
  "gux-notification-toast": GuxNotificationToast;
3955
4065
  "gux-option": GuxOption;
3956
4066
  "gux-option-legacy": GuxOptionLegacy;
@@ -4092,6 +4202,10 @@ declare module "@stencil/core" {
4092
4202
  "gux-menu": LocalJSX.GuxMenu & JSXBase.HTMLAttributes<HTMLGuxMenuElement>;
4093
4203
  "gux-menu-option": LocalJSX.GuxMenuOption & JSXBase.HTMLAttributes<HTMLGuxMenuOptionElement>;
4094
4204
  "gux-modal": LocalJSX.GuxModal & JSXBase.HTMLAttributes<HTMLGuxModalElement>;
4205
+ "gux-month-calendar": LocalJSX.GuxMonthCalendar & JSXBase.HTMLAttributes<HTMLGuxMonthCalendarElement>;
4206
+ "gux-month-list": LocalJSX.GuxMonthList & JSXBase.HTMLAttributes<HTMLGuxMonthListElement>;
4207
+ "gux-month-list-item": LocalJSX.GuxMonthListItem & JSXBase.HTMLAttributes<HTMLGuxMonthListItemElement>;
4208
+ "gux-month-picker-beta": LocalJSX.GuxMonthPickerBeta & JSXBase.HTMLAttributes<HTMLGuxMonthPickerBetaElement>;
4095
4209
  "gux-notification-toast": LocalJSX.GuxNotificationToast & JSXBase.HTMLAttributes<HTMLGuxNotificationToastElement>;
4096
4210
  "gux-option": LocalJSX.GuxOption & JSXBase.HTMLAttributes<HTMLGuxOptionElement>;
4097
4211
  "gux-option-legacy": LocalJSX.GuxOptionLegacy & JSXBase.HTMLAttributes<HTMLGuxOptionLegacyElement>;
@@ -0,0 +1,8 @@
1
+ export declare type GuxISOYearMonth = `${string}-${string}`;
2
+ export declare type GuxYearMonthObject = {
3
+ year: string;
4
+ month: string;
5
+ };
6
+ export declare function getISOYearMonth(year: string | number, month: string | number): GuxISOYearMonth;
7
+ export declare function getYearMonthObject(yearMonthString: GuxISOYearMonth): GuxYearMonthObject;
8
+ export declare function getCurrentISOYearMonth(): GuxISOYearMonth;
@@ -0,0 +1 @@
1
+ export declare function afterRender(callback: FrameRequestCallback): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genesys-spark-components",
3
- "version": "3.28.1",
3
+ "version": "3.30.0",
4
4
  "description": "Common webcomponents",
5
5
  "license": "MIT",
6
6
  "main": "dist/stencil-wrapper.js",
@@ -1 +0,0 @@
1
- import{r as t,h as n,H as r,g as s}from"./p-74b510cb.js";import{t as o}from"./p-3d929811.js";const e=["gux-list-item"];function i(t){return function(t){const n=t.querySelector("slot");return n?n.assignedElements():Array.from(t.children)}(t).filter((t=>!!e.includes(t.tagName.toLowerCase())&&!t.disabled))}function c(t,n){a(t,(function(t){return i(t).findIndex((t=>t.matches(":focus-within")))}(t)+n)%i(t).length)}function a(t,n){var r;const s=i(t);for(;n<0;)n+=s.length;null===(r=s[n])||void 0===r||r.focus()}function u(t){a(t,0)}const l=class{constructor(n){t(this,n)}componentWillLoad(){o(this.root)}onKeyDown(t){switch(t.key){case"ArrowUp":t.preventDefault(),c(this.root,-1);break;case"Home":t.preventDefault(),u(this.root);break;case"ArrowDown":t.preventDefault(),c(this.root,1);break;case"End":t.preventDefault(),function(t){a(t,function(t){return i(t).length-1}(t))}(this.root)}}async guxFocusFirstItem(){u(this.root)}renderFocusTarget(){return n("span",{tabindex:"-1"})}render(){return n(r,{role:"list"},this.renderFocusTarget(),n("slot",null))}static get delegatesFocus(){return!0}get root(){return s(this)}};l.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start}";export{l as gux_list}
@@ -1 +0,0 @@
1
- import{r as t,f as e,h as i,g as o}from"./p-74b510cb.js";import{b as n}from"./p-1c9dfc78.js";import{c as r,o as s}from"./p-3f5341ea.js";import{O as a}from"./p-e3c80187.js";import{a as l}from"./p-e2bea786.js";import{p as u}from"./p-c10e41a9.js";import{t as p}from"./p-3d929811.js";import{s as c}from"./p-8fe7daff.js";import{s as x}from"./p-d176c2ae.js";import{G as h,a as d}from"./p-625f19b6.js";import{h as g,a as f,c as b,G as m,v as w,g as v}from"./p-8caf2514.js";import"./p-8a133b9b.js";import"./p-cbcbd1bb.js";import"./p-3184268e.js";const j={increment:"Increment",decrement:"Decrement"};const y=class{constructor(e){t(this,e),this.computedLabelPosition="above",this.hasContent=!1,this.hasError=!1}onMutation(){this.hasError=g(this.root)}async guxForceUpdate(){this.hasContent=f(this.input),this.hasError=g(this.root),e(this.root)}async componentWillLoad(){this.getI18nValue=await n(this.root,j),this.setInput(),this.setLabel(),this.hasError=g(this.root),p(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){const t=this.clearable&&this.hasContent&&!this.disabled;return i(d,{labelPosition:this.computedLabelPosition},i(h,{position:this.computedLabelPosition,required:this.required},i("slot",{name:"label",onSlotchange:()=>this.setLabel()})),i("div",{class:"gux-input-and-error-container"},i("div",{class:{"gux-input":!0,"gux-input-error":this.hasError}},i("div",{class:{"gux-input-container":!0,"gux-disabled":this.disabled,"gux-clear":t}},i("slot",{name:"input",onSlotchange:()=>this.setInput()}),t&&i("gux-form-field-input-clear-button",{onClick:()=>b(this.input)})),this.renderStepButtons(this.input,this.getI18nValue,this.disabled)),i(m,{hasError:this.hasError},i("slot",{name:"error"}))))}get variant(){const t=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.clearable?"clearable":"unclearable"}-${t}`}setInput(){this.input=this.root.querySelector('input[type="number"][slot="input"]'),this.hasContent=f(this.input),u(this.input),this.input.addEventListener("input",(()=>{this.hasContent=f(this.input)})),this.disabled=r(this.input),this.required=this.input.required,this.disabledObserver=s(this.input,(t=>{this.disabled=t})),this.requiredObserver=l(this.input,(t=>{this.required=t})),w(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=v(this.label,this.labelPosition)}renderStepButtons(t,e,o){return i("div",{class:"gux-step-buttons-container"},i("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:e("increment"),disabled:o,onClick:()=>this.stepUp(t)},i("gux-icon",{"icon-name":"chevron-small-up",decorative:!0})),i("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:e("decrement"),disabled:o,onClick:()=>this.stepDown(t)},i("gux-icon",{"icon-name":"chevron-small-down",decorative:!0})))}stepDown(t){""===t.value?c(t,t.min||"0",!1):(t.stepDown(),this.simulateNativeInputAndChangeEvents(t))}stepUp(t){""===t.value?c(t,t.min||"0",!1):(t.stepUp(),this.simulateNativeInputAndChangeEvents(t))}simulateNativeInputAndChangeEvents(t){x(t,"input"),x(t,"change")}get root(){return o(this)}};(function(t,e,i,o){var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);r>3&&s&&Object.defineProperty(e,i,s)})([a({childList:!0,subtree:!0})],y.prototype,"onMutation",null),y.style=".gux-form-field-container{margin:var(--gux-form-field-container-margin-top, 16px) 0 var(--gux-form-field-container-margin-bottom, 16px) 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.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:11px;line-height:16px;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;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:108px;overflow:hidden;font-size:12px;color:#2e394c;text-align:right;text-overflow:ellipsis;background-color:#f6f7f9;border:none;outline:none}::slotted(input)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;width:-moz-fit-content;width:fit-content}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:center;order:0;width:100%;height:32px;padding:4px 12px;font-family:inherit;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-input .gux-input-container.gux-clear{padding-right:0}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:#ea0b0b}.gux-step-buttons-container{flex:0 1 16px;align-self:auto;order:0;margin:0 4px}.gux-step-buttons-container .gux-step-button{flex:0 1 auto;align-self:auto;order:0;padding:2px;color:#596373;background:transparent;border:none}.gux-step-buttons-container .gux-step-button:not(:disabled):focus,.gux-step-buttons-container .gux-step-button:not(:disabled):hover{color:#2a60c8;cursor:pointer}.gux-step-buttons-container .gux-step-button gux-icon{width:10px;height:10px}";export{y as gux_form_field_number}