genesys-spark-components 3.21.2 → 3.23.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 (315) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/cjs/DateTimeFormatter-a064b050.js +51 -0
  3. package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
  4. package/dist/cjs/gux-accordion-legacy.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-action-button-legacy.cjs.entry.js +2 -2
  7. package/dist/cjs/gux-action-button.cjs.entry.js +2 -2
  8. package/dist/cjs/gux-action-list-legacy.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-action-toast.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +2 -2
  11. package/dist/cjs/gux-all-row-select.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-badge-beta.cjs.entry.js +2 -2
  13. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +2 -2
  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 +2 -2
  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 +2 -2
  26. package/dist/cjs/gux-content-search.cjs.entry.js +2 -2
  27. package/dist/cjs/gux-copy-to-clipboard-beta.cjs.entry.js +2 -2
  28. package/dist/cjs/gux-date-beta.cjs.entry.js +33 -0
  29. package/dist/cjs/gux-date-time-beta.cjs.entry.js +33 -0
  30. package/dist/cjs/gux-datepicker.cjs.entry.js +2 -2
  31. package/dist/cjs/gux-disclosure-button.cjs.entry.js +2 -2
  32. package/dist/cjs/gux-dismiss-button.cjs.entry.js +2 -2
  33. package/dist/cjs/gux-dropdown-legacy.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-dropdown-multi-beta.cjs.entry.js +2 -2
  35. package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-dropdown_3.cjs.entry.js +6 -4
  37. package/dist/cjs/gux-error-message-beta.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +3 -3
  40. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +2 -2
  43. package/dist/cjs/gux-form-field-legacy.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-number.cjs.entry.js +8 -2
  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 +7 -1
  50. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-input-checkbox_7.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-input-search.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-input-text-like.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-listbox-multi.cjs.entry.js +2 -2
  58. package/dist/cjs/gux-loading-message-beta.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-modal.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-buttons-beta_3.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-pagination-buttons_3.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +2 -2
  66. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-panel-frame-legacy.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 +2 -2
  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-row-select.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-side-panel-legacy.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-simple-toast.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-skip-navigation-list-beta.cjs.entry.js +2 -2
  77. package/dist/cjs/gux-sort-control.cjs.entry.js +2 -2
  78. package/dist/cjs/gux-switch.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-tab-advanced.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-tab-list.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-table-beta.cjs.entry.js +2 -2
  83. package/dist/cjs/gux-table-select-menu.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-tabs-legacy.cjs.entry.js +2 -2
  86. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-tag-beta.cjs.entry.js +2 -2
  88. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-text-label-legacy.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-time-beta.cjs.entry.js +33 -0
  91. package/dist/cjs/gux-time-picker-beta.cjs.entry.js +2 -2
  92. package/dist/cjs/gux-toggle.cjs.entry.js +2 -2
  93. package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-visualization-beta.cjs.entry.js +2 -2
  95. package/dist/cjs/{index-03fd0894.js → index-13101536.js} +1 -0
  96. package/dist/cjs/index-262c2e3a.js +12 -0
  97. package/dist/cjs/loader.cjs.js +1 -1
  98. package/dist/cjs/{usage-tracking-e72bf0b3.js → usage-tracking-851f6270.js} +12 -12
  99. package/dist/collection/collection-manifest.json +3 -0
  100. package/dist/collection/components/beta/gux-date/gux-date.js +69 -0
  101. package/dist/collection/components/beta/gux-date-time/gux-date-time.js +69 -0
  102. package/dist/collection/components/beta/gux-time/gux-time.js +69 -0
  103. package/dist/collection/components/stable/gux-dropdown/gux-dropdown.js +4 -2
  104. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.css +9 -1
  105. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.js +7 -5
  106. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.js +25 -1
  107. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.js +25 -1
  108. package/dist/deploy-info.json +3 -3
  109. package/dist/esm/DateTimeFormatter-2785da9d.js +49 -0
  110. package/dist/esm/genesys-webcomponents.js +1 -1
  111. package/dist/esm/gux-accordion-legacy.entry.js +1 -1
  112. package/dist/esm/gux-accordion.entry.js +1 -1
  113. package/dist/esm/gux-action-button-legacy.entry.js +2 -2
  114. package/dist/esm/gux-action-button.entry.js +2 -2
  115. package/dist/esm/gux-action-list-legacy.entry.js +1 -1
  116. package/dist/esm/gux-action-toast.entry.js +1 -1
  117. package/dist/esm/gux-advanced-dropdown.entry.js +2 -2
  118. package/dist/esm/gux-all-row-select.entry.js +1 -1
  119. package/dist/esm/gux-badge-beta.entry.js +2 -2
  120. package/dist/esm/gux-breadcrumbs.entry.js +2 -2
  121. package/dist/esm/gux-button-multi-legacy.entry.js +1 -1
  122. package/dist/esm/gux-button-multi.entry.js +1 -1
  123. package/dist/esm/gux-button-slot-beta.entry.js +1 -1
  124. package/dist/esm/gux-button.entry.js +1 -1
  125. package/dist/esm/gux-calendar.entry.js +2 -2
  126. package/dist/esm/gux-card-beta.entry.js +1 -1
  127. package/dist/esm/gux-chart-column-beta.entry.js +1 -1
  128. package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
  129. package/dist/esm/gux-chart-line-beta.entry.js +1 -1
  130. package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
  131. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
  132. package/dist/esm/gux-command-palette-legacy.entry.js +2 -2
  133. package/dist/esm/gux-content-search.entry.js +2 -2
  134. package/dist/esm/gux-copy-to-clipboard-beta.entry.js +2 -2
  135. package/dist/esm/gux-date-beta.entry.js +29 -0
  136. package/dist/esm/gux-date-time-beta.entry.js +29 -0
  137. package/dist/esm/gux-datepicker.entry.js +2 -2
  138. package/dist/esm/gux-disclosure-button.entry.js +2 -2
  139. package/dist/esm/gux-dismiss-button.entry.js +2 -2
  140. package/dist/esm/gux-dropdown-legacy.entry.js +1 -1
  141. package/dist/esm/gux-dropdown-multi-beta.entry.js +2 -2
  142. package/dist/esm/gux-dropdown-multi-tag.entry.js +1 -1
  143. package/dist/esm/gux-dropdown_3.entry.js +6 -4
  144. package/dist/esm/gux-error-message-beta.entry.js +1 -1
  145. package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
  146. package/dist/esm/gux-form-field-checkbox.entry.js +3 -3
  147. package/dist/esm/gux-form-field-color.entry.js +1 -1
  148. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  149. package/dist/esm/gux-form-field-input-clear-button.entry.js +2 -2
  150. package/dist/esm/gux-form-field-legacy.entry.js +1 -1
  151. package/dist/esm/gux-form-field-number.entry.js +10 -4
  152. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  153. package/dist/esm/gux-form-field-range.entry.js +1 -1
  154. package/dist/esm/gux-form-field-search.entry.js +1 -1
  155. package/dist/esm/gux-form-field-select.entry.js +1 -1
  156. package/dist/esm/gux-form-field-text-like.entry.js +9 -3
  157. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  158. package/dist/esm/gux-icon.entry.js +1 -1
  159. package/dist/esm/gux-input-checkbox_7.entry.js +1 -1
  160. package/dist/esm/gux-input-search.entry.js +1 -1
  161. package/dist/esm/gux-input-text-like.entry.js +1 -1
  162. package/dist/esm/gux-list-item-legacy_2.entry.js +1 -1
  163. package/dist/esm/gux-list.entry.js +1 -1
  164. package/dist/esm/gux-listbox-multi.entry.js +2 -2
  165. package/dist/esm/gux-loading-message-beta.entry.js +1 -1
  166. package/dist/esm/gux-modal.entry.js +1 -1
  167. package/dist/esm/gux-notification-toast.entry.js +1 -1
  168. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  169. package/dist/esm/gux-pagination-beta.entry.js +1 -1
  170. package/dist/esm/gux-pagination-buttons-beta_3.entry.js +1 -1
  171. package/dist/esm/gux-pagination-buttons_3.entry.js +1 -1
  172. package/dist/esm/gux-pagination-cursor.entry.js +2 -2
  173. package/dist/esm/gux-pagination.entry.js +1 -1
  174. package/dist/esm/gux-panel-frame-legacy.entry.js +1 -1
  175. package/dist/esm/gux-popover-list.entry.js +1 -1
  176. package/dist/esm/gux-popover.entry.js +1 -1
  177. package/dist/esm/gux-radial-loading.entry.js +2 -2
  178. package/dist/esm/gux-radial-progress.entry.js +1 -1
  179. package/dist/esm/gux-rating.entry.js +1 -1
  180. package/dist/esm/gux-row-select.entry.js +1 -1
  181. package/dist/esm/gux-side-panel-legacy.entry.js +1 -1
  182. package/dist/esm/gux-simple-toast.entry.js +1 -1
  183. package/dist/esm/gux-skip-navigation-list-beta.entry.js +2 -2
  184. package/dist/esm/gux-sort-control.entry.js +2 -2
  185. package/dist/esm/gux-switch.entry.js +1 -1
  186. package/dist/esm/gux-tab-advanced-list.entry.js +1 -1
  187. package/dist/esm/gux-tab-advanced.entry.js +1 -1
  188. package/dist/esm/gux-tab-list.entry.js +1 -1
  189. package/dist/esm/gux-table-beta.entry.js +2 -2
  190. package/dist/esm/gux-table-select-menu.entry.js +1 -1
  191. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  192. package/dist/esm/gux-tabs-legacy.entry.js +2 -2
  193. package/dist/esm/gux-tabs.entry.js +1 -1
  194. package/dist/esm/gux-tag-beta.entry.js +2 -2
  195. package/dist/esm/gux-text-highlight.entry.js +1 -1
  196. package/dist/esm/gux-text-label-legacy.entry.js +1 -1
  197. package/dist/esm/gux-time-beta.entry.js +29 -0
  198. package/dist/esm/gux-time-picker-beta.entry.js +2 -2
  199. package/dist/esm/gux-toggle.entry.js +2 -2
  200. package/dist/esm/gux-tooltip.entry.js +1 -1
  201. package/dist/esm/gux-visualization-beta.entry.js +2 -2
  202. package/dist/esm/index-74e605ae.js +12 -0
  203. package/dist/esm/{index-2c49258a.js → index-b8a25b60.js} +1 -1
  204. package/dist/esm/loader.js +1 -1
  205. package/dist/esm/{usage-tracking-b3041444.js → usage-tracking-0a5a7ae5.js} +12 -12
  206. package/dist/genesys-webcomponents/genesys-webcomponents.css +1 -1
  207. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  208. package/dist/genesys-webcomponents/less/color-palette.less +1 -1
  209. package/dist/genesys-webcomponents/{p-89312a5b.entry.js → p-02feb7b7.entry.js} +1 -1
  210. package/dist/genesys-webcomponents/{p-4c3d7f1a.entry.js → p-07d75b24.entry.js} +1 -1
  211. package/dist/genesys-webcomponents/{p-4fab536d.entry.js → p-0818921c.entry.js} +1 -1
  212. package/dist/genesys-webcomponents/{p-2aad8b3e.entry.js → p-0bc393a9.entry.js} +1 -1
  213. package/dist/genesys-webcomponents/{p-004cc94d.entry.js → p-0d7a8a9a.entry.js} +1 -1
  214. package/dist/genesys-webcomponents/{p-03ce0655.entry.js → p-0dc0fa26.entry.js} +1 -1
  215. package/dist/genesys-webcomponents/{p-29b37ee8.entry.js → p-127788cb.entry.js} +1 -1
  216. package/dist/genesys-webcomponents/p-14a85c41.entry.js +1 -0
  217. package/dist/genesys-webcomponents/{p-f81564e0.entry.js → p-14ef1f92.entry.js} +1 -1
  218. package/dist/genesys-webcomponents/{p-a77a84db.entry.js → p-14f1b87e.entry.js} +1 -1
  219. package/dist/genesys-webcomponents/{p-5961bbe0.entry.js → p-19c12e07.entry.js} +1 -1
  220. package/dist/genesys-webcomponents/{p-61022196.entry.js → p-1ac910f8.entry.js} +1 -1
  221. package/dist/genesys-webcomponents/{p-cf43f0c3.js → p-1c9dfc78.js} +1 -1
  222. package/dist/genesys-webcomponents/{p-0b0e4ed1.entry.js → p-1e6ce329.entry.js} +1 -1
  223. package/dist/genesys-webcomponents/{p-af2ff726.entry.js → p-2152afa9.entry.js} +1 -1
  224. package/dist/genesys-webcomponents/p-23fc292e.entry.js +1 -0
  225. package/dist/genesys-webcomponents/{p-59620b45.entry.js → p-28a911cb.entry.js} +1 -1
  226. package/dist/genesys-webcomponents/{p-30164a8f.entry.js → p-2f36b876.entry.js} +1 -1
  227. package/dist/genesys-webcomponents/{p-1446f6f5.entry.js → p-2fefb4aa.entry.js} +1 -1
  228. package/dist/genesys-webcomponents/{p-f4018e1f.entry.js → p-32e374ee.entry.js} +1 -1
  229. package/dist/genesys-webcomponents/{p-0c9e1fdc.entry.js → p-32f09e45.entry.js} +1 -1
  230. package/dist/genesys-webcomponents/{p-195596dc.entry.js → p-3886ec08.entry.js} +1 -1
  231. package/dist/genesys-webcomponents/{p-d9acd7a6.entry.js → p-3dc29cc3.entry.js} +1 -1
  232. package/dist/genesys-webcomponents/{p-3c628108.entry.js → p-3e07f0b0.entry.js} +1 -1
  233. package/dist/genesys-webcomponents/{p-b36b323a.entry.js → p-3f934634.entry.js} +1 -1
  234. package/dist/genesys-webcomponents/{p-62fb2bed.entry.js → p-3fc0346c.entry.js} +1 -1
  235. package/dist/genesys-webcomponents/{p-ca780a60.entry.js → p-40e56acc.entry.js} +1 -1
  236. package/dist/genesys-webcomponents/{p-d3f7c2ef.entry.js → p-41a14a79.entry.js} +1 -1
  237. package/dist/genesys-webcomponents/{p-c62520b3.entry.js → p-41fbdf4e.entry.js} +1 -1
  238. package/dist/genesys-webcomponents/{p-cb9f87eb.entry.js → p-4347c813.entry.js} +1 -1
  239. package/dist/genesys-webcomponents/{p-ad0b74dc.entry.js → p-4a78f67d.entry.js} +1 -1
  240. package/dist/genesys-webcomponents/{p-333ee191.entry.js → p-4ac9dba8.entry.js} +1 -1
  241. package/dist/genesys-webcomponents/{p-a494608f.entry.js → p-4d58b1bc.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/{p-6a48c82a.entry.js → p-4dc2aceb.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/{p-ef0a895b.entry.js → p-506daeda.entry.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-4c8a91e2.entry.js → p-551147e9.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/p-559180f6.entry.js +1 -0
  246. package/dist/genesys-webcomponents/{p-41b1a208.entry.js → p-5f735b18.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-171b5eed.entry.js → p-6248d94f.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/{p-168bffb3.entry.js → p-640615fc.entry.js} +1 -1
  249. package/dist/genesys-webcomponents/{p-15e00103.entry.js → p-64f260de.entry.js} +1 -1
  250. package/dist/genesys-webcomponents/{p-4db7bc3d.entry.js → p-675f296c.entry.js} +1 -1
  251. package/dist/genesys-webcomponents/{p-51981dd5.entry.js → p-68e6490b.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-1cd38c5e.entry.js → p-6f1c875c.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-14607153.entry.js → p-74bd6754.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/p-764c79d5.entry.js +1 -0
  255. package/dist/genesys-webcomponents/{p-312a2e5f.entry.js → p-773f55cd.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/{p-632b030d.entry.js → p-798f6ffa.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/{p-29ed4720.entry.js → p-8015f5a4.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/{p-0108a5d3.entry.js → p-854ef16d.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/{p-e62fed26.entry.js → p-87bf6788.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-4c359a75.entry.js → p-891d342d.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/{p-a4323251.entry.js → p-89dfb302.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/{p-47a9f4fa.entry.js → p-8a4bf7ed.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/{p-5083b35b.entry.js → p-8abe2a94.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/{p-3c62f2b4.entry.js → p-8d2a5abe.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-f85a72e3.entry.js → p-8f0300af.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/p-905b35bf.entry.js +1 -0
  267. package/dist/genesys-webcomponents/{p-f9502222.entry.js → p-93abe46a.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-a153bf9e.entry.js → p-93d3231a.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/p-9848f9e0.entry.js +1 -0
  270. package/dist/genesys-webcomponents/{p-9955ea54.entry.js → p-9b799539.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-c6c7dd96.entry.js → p-9cb9d0db.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-b36d7160.entry.js → p-9dd7890d.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-75569a3f.entry.js → p-9ed687b4.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-5a34d19b.entry.js → p-a00f2803.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-c3d2a7e1.entry.js → p-a1bd77ce.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-c485c1a2.entry.js → p-a39b29f6.entry.js} +1 -1
  277. package/dist/genesys-webcomponents/{p-7d059e52.entry.js → p-a3c569e6.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-f8496c4d.entry.js → p-aa3df4c6.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/{p-34b92b3b.entry.js → p-acbd8ea1.entry.js} +1 -1
  280. package/dist/genesys-webcomponents/{p-210346ca.js → p-b155a40e.js} +1 -1
  281. package/dist/genesys-webcomponents/{p-ea4d5a41.entry.js → p-b42fee2e.entry.js} +1 -1
  282. package/dist/genesys-webcomponents/{p-af079a12.entry.js → p-b4418486.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-f6b8bed9.entry.js → p-b6c86ca6.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/{p-b6042663.entry.js → p-b9f9e6e7.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/{p-34c7bb18.entry.js → p-bafdfe33.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-c6dcc684.entry.js → p-bb62ca66.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-03f928ec.entry.js → p-bd8955b3.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-1f3a89b6.entry.js → p-c2c2108f.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/p-c609a091.entry.js +1 -0
  290. package/dist/genesys-webcomponents/{p-7d2017ba.entry.js → p-c9529264.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/{p-36ba4954.entry.js → p-ce9546e7.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-e2165156.entry.js → p-d43dd366.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-c65ba4b3.entry.js → p-d606a6fb.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/p-defdb6b9.js +1 -0
  295. package/dist/genesys-webcomponents/{p-d146ad68.entry.js → p-e009a1b8.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-4925bb1e.entry.js → p-e1961650.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-22860f16.entry.js → p-e1d6d8df.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-cccbd3c4.entry.js → p-ed274751.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-885ab587.entry.js → p-ee80c13a.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-3050d8c2.entry.js → p-fae4f077.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/{p-d8ce7ab8.entry.js → p-fc804953.entry.js} +1 -1
  302. package/dist/genesys-webcomponents/{p-88c5dbae.entry.js → p-fc93a80b.entry.js} +1 -1
  303. package/dist/stencil-wrapper.js +1 -1
  304. package/dist/types/components/beta/gux-date/gux-date.d.ts +19 -0
  305. package/dist/types/components/beta/gux-date-time/gux-date-time.d.ts +19 -0
  306. package/dist/types/components/beta/gux-time/gux-time.d.ts +19 -0
  307. package/dist/types/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.d.ts +1 -0
  308. package/dist/types/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.d.ts +1 -0
  309. package/dist/types/components.d.ts +90 -0
  310. package/dist/types/i18n/DateTimeFormatter.d.ts +2 -3
  311. package/package.json +12 -12
  312. package/dist/genesys-webcomponents/p-71f03e74.entry.js +0 -1
  313. package/dist/genesys-webcomponents/p-745f607c.entry.js +0 -1
  314. package/dist/genesys-webcomponents/p-adaa58fe.entry.js +0 -1
  315. package/dist/genesys-webcomponents/p-f4a3b520.entry.js +0 -1
@@ -13,6 +13,7 @@ import { GuxBreadcrumbAccent } from "./components/stable/gux-breadcrumbs/gux-bre
13
13
  import { GuxCalendarMode } from "./components/stable/gux-calendar/gux-calendar.types";
14
14
  import { GuxCardAccent } from "./components/beta/gux-card/gux-card.types";
15
15
  import { EmbedOptions, VisualizationSpec } from "vega-embed";
16
+ import { GuxDateTimeFormat } from "./i18n/DateTimeFormatter";
16
17
  import { GuxDatepickerMode } from "./components/stable/gux-datepicker/gux-datepicker.types";
17
18
  import { GuxDisclosureButtonPosition } from "./components/stable/gux-disclosure-button/gux-disclosure-button.types";
18
19
  import { GuxFormFieldLabelPosition } from "./components/stable/gux-form-field/gux-form-field.types";
@@ -529,6 +530,26 @@ export namespace Components {
529
530
  }
530
531
  interface GuxCopyToClipboardBeta {
531
532
  }
533
+ interface GuxDateBeta {
534
+ /**
535
+ * The ISO string representation of the date to format
536
+ */
537
+ "datetime": string;
538
+ /**
539
+ * Format option type
540
+ */
541
+ "format": GuxDateTimeFormat;
542
+ }
543
+ interface GuxDateTimeBeta {
544
+ /**
545
+ * The ISO string representation of the datetime to format
546
+ */
547
+ "datetime": string;
548
+ /**
549
+ * Format option type
550
+ */
551
+ "format": GuxDateTimeFormat;
552
+ }
532
553
  interface GuxDatepicker {
533
554
  /**
534
555
  * Disable the input and prevent interactions.
@@ -679,6 +700,7 @@ export namespace Components {
679
700
  }
680
701
  interface GuxFormFieldNumber {
681
702
  "clearable": boolean;
703
+ "guxForceUpdate": () => Promise<void>;
682
704
  "labelPosition": GuxFormFieldLabelPosition;
683
705
  }
684
706
  interface GuxFormFieldRadio {
@@ -696,6 +718,7 @@ export namespace Components {
696
718
  }
697
719
  interface GuxFormFieldTextLike {
698
720
  "clearable": boolean;
721
+ "guxForceUpdate": () => Promise<void>;
699
722
  "labelPosition": GuxFormFieldLabelPosition;
700
723
  }
701
724
  interface GuxFormFieldTextarea {
@@ -1258,6 +1281,16 @@ export namespace Components {
1258
1281
  */
1259
1282
  "position": 'above' | 'beside';
1260
1283
  }
1284
+ interface GuxTimeBeta {
1285
+ /**
1286
+ * The ISO string representation of the time to format
1287
+ */
1288
+ "datetime": string;
1289
+ /**
1290
+ * Format option type
1291
+ */
1292
+ "format": GuxDateTimeFormat;
1293
+ }
1261
1294
  interface GuxTimePickerBeta {
1262
1295
  "interval": number;
1263
1296
  "label": string;
@@ -1692,6 +1725,18 @@ declare global {
1692
1725
  prototype: HTMLGuxCopyToClipboardBetaElement;
1693
1726
  new (): HTMLGuxCopyToClipboardBetaElement;
1694
1727
  };
1728
+ interface HTMLGuxDateBetaElement extends Components.GuxDateBeta, HTMLStencilElement {
1729
+ }
1730
+ var HTMLGuxDateBetaElement: {
1731
+ prototype: HTMLGuxDateBetaElement;
1732
+ new (): HTMLGuxDateBetaElement;
1733
+ };
1734
+ interface HTMLGuxDateTimeBetaElement extends Components.GuxDateTimeBeta, HTMLStencilElement {
1735
+ }
1736
+ var HTMLGuxDateTimeBetaElement: {
1737
+ prototype: HTMLGuxDateTimeBetaElement;
1738
+ new (): HTMLGuxDateTimeBetaElement;
1739
+ };
1695
1740
  interface HTMLGuxDatepickerElement extends Components.GuxDatepicker, HTMLStencilElement {
1696
1741
  }
1697
1742
  var HTMLGuxDatepickerElement: {
@@ -2250,6 +2295,12 @@ declare global {
2250
2295
  prototype: HTMLGuxTextLabelLegacyElement;
2251
2296
  new (): HTMLGuxTextLabelLegacyElement;
2252
2297
  };
2298
+ interface HTMLGuxTimeBetaElement extends Components.GuxTimeBeta, HTMLStencilElement {
2299
+ }
2300
+ var HTMLGuxTimeBetaElement: {
2301
+ prototype: HTMLGuxTimeBetaElement;
2302
+ new (): HTMLGuxTimeBetaElement;
2303
+ };
2253
2304
  interface HTMLGuxTimePickerBetaElement extends Components.GuxTimePickerBeta, HTMLStencilElement {
2254
2305
  }
2255
2306
  var HTMLGuxTimePickerBetaElement: {
@@ -2323,6 +2374,8 @@ declare global {
2323
2374
  "gux-command-palette-legacy": HTMLGuxCommandPaletteLegacyElement;
2324
2375
  "gux-content-search": HTMLGuxContentSearchElement;
2325
2376
  "gux-copy-to-clipboard-beta": HTMLGuxCopyToClipboardBetaElement;
2377
+ "gux-date-beta": HTMLGuxDateBetaElement;
2378
+ "gux-date-time-beta": HTMLGuxDateTimeBetaElement;
2326
2379
  "gux-datepicker": HTMLGuxDatepickerElement;
2327
2380
  "gux-disclosure-button": HTMLGuxDisclosureButtonElement;
2328
2381
  "gux-dismiss-button": HTMLGuxDismissButtonElement;
@@ -2416,6 +2469,7 @@ declare global {
2416
2469
  "gux-tag-beta": HTMLGuxTagBetaElement;
2417
2470
  "gux-text-highlight": HTMLGuxTextHighlightElement;
2418
2471
  "gux-text-label-legacy": HTMLGuxTextLabelLegacyElement;
2472
+ "gux-time-beta": HTMLGuxTimeBetaElement;
2419
2473
  "gux-time-picker-beta": HTMLGuxTimePickerBetaElement;
2420
2474
  "gux-toggle": HTMLGuxToggleElement;
2421
2475
  "gux-toggle-slider": HTMLGuxToggleSliderElement;
@@ -2925,6 +2979,26 @@ declare namespace LocalJSX {
2925
2979
  }
2926
2980
  interface GuxCopyToClipboardBeta {
2927
2981
  }
2982
+ interface GuxDateBeta {
2983
+ /**
2984
+ * The ISO string representation of the date to format
2985
+ */
2986
+ "datetime"?: string;
2987
+ /**
2988
+ * Format option type
2989
+ */
2990
+ "format"?: GuxDateTimeFormat;
2991
+ }
2992
+ interface GuxDateTimeBeta {
2993
+ /**
2994
+ * The ISO string representation of the datetime to format
2995
+ */
2996
+ "datetime"?: string;
2997
+ /**
2998
+ * Format option type
2999
+ */
3000
+ "format"?: GuxDateTimeFormat;
3001
+ }
2928
3002
  interface GuxDatepicker {
2929
3003
  /**
2930
3004
  * Disable the input and prevent interactions.
@@ -3707,6 +3781,16 @@ declare namespace LocalJSX {
3707
3781
  */
3708
3782
  "position"?: 'above' | 'beside';
3709
3783
  }
3784
+ interface GuxTimeBeta {
3785
+ /**
3786
+ * The ISO string representation of the time to format
3787
+ */
3788
+ "datetime"?: string;
3789
+ /**
3790
+ * Format option type
3791
+ */
3792
+ "format"?: GuxDateTimeFormat;
3793
+ }
3710
3794
  interface GuxTimePickerBeta {
3711
3795
  "interval"?: number;
3712
3796
  "label"?: string;
@@ -3788,6 +3872,8 @@ declare namespace LocalJSX {
3788
3872
  "gux-command-palette-legacy": GuxCommandPaletteLegacy;
3789
3873
  "gux-content-search": GuxContentSearch;
3790
3874
  "gux-copy-to-clipboard-beta": GuxCopyToClipboardBeta;
3875
+ "gux-date-beta": GuxDateBeta;
3876
+ "gux-date-time-beta": GuxDateTimeBeta;
3791
3877
  "gux-datepicker": GuxDatepicker;
3792
3878
  "gux-disclosure-button": GuxDisclosureButton;
3793
3879
  "gux-dismiss-button": GuxDismissButton;
@@ -3881,6 +3967,7 @@ declare namespace LocalJSX {
3881
3967
  "gux-tag-beta": GuxTagBeta;
3882
3968
  "gux-text-highlight": GuxTextHighlight;
3883
3969
  "gux-text-label-legacy": GuxTextLabelLegacy;
3970
+ "gux-time-beta": GuxTimeBeta;
3884
3971
  "gux-time-picker-beta": GuxTimePickerBeta;
3885
3972
  "gux-toggle": GuxToggle;
3886
3973
  "gux-toggle-slider": GuxToggleSlider;
@@ -3924,6 +4011,8 @@ declare module "@stencil/core" {
3924
4011
  "gux-command-palette-legacy": LocalJSX.GuxCommandPaletteLegacy & JSXBase.HTMLAttributes<HTMLGuxCommandPaletteLegacyElement>;
3925
4012
  "gux-content-search": LocalJSX.GuxContentSearch & JSXBase.HTMLAttributes<HTMLGuxContentSearchElement>;
3926
4013
  "gux-copy-to-clipboard-beta": LocalJSX.GuxCopyToClipboardBeta & JSXBase.HTMLAttributes<HTMLGuxCopyToClipboardBetaElement>;
4014
+ "gux-date-beta": LocalJSX.GuxDateBeta & JSXBase.HTMLAttributes<HTMLGuxDateBetaElement>;
4015
+ "gux-date-time-beta": LocalJSX.GuxDateTimeBeta & JSXBase.HTMLAttributes<HTMLGuxDateTimeBetaElement>;
3927
4016
  "gux-datepicker": LocalJSX.GuxDatepicker & JSXBase.HTMLAttributes<HTMLGuxDatepickerElement>;
3928
4017
  "gux-disclosure-button": LocalJSX.GuxDisclosureButton & JSXBase.HTMLAttributes<HTMLGuxDisclosureButtonElement>;
3929
4018
  "gux-dismiss-button": LocalJSX.GuxDismissButton & JSXBase.HTMLAttributes<HTMLGuxDismissButtonElement>;
@@ -4017,6 +4106,7 @@ declare module "@stencil/core" {
4017
4106
  "gux-tag-beta": LocalJSX.GuxTagBeta & JSXBase.HTMLAttributes<HTMLGuxTagBetaElement>;
4018
4107
  "gux-text-highlight": LocalJSX.GuxTextHighlight & JSXBase.HTMLAttributes<HTMLGuxTextHighlightElement>;
4019
4108
  "gux-text-label-legacy": LocalJSX.GuxTextLabelLegacy & JSXBase.HTMLAttributes<HTMLGuxTextLabelLegacyElement>;
4109
+ "gux-time-beta": LocalJSX.GuxTimeBeta & JSXBase.HTMLAttributes<HTMLGuxTimeBetaElement>;
4020
4110
  "gux-time-picker-beta": LocalJSX.GuxTimePickerBeta & JSXBase.HTMLAttributes<HTMLGuxTimePickerBetaElement>;
4021
4111
  "gux-toggle": LocalJSX.GuxToggle & JSXBase.HTMLAttributes<HTMLGuxToggleElement>;
4022
4112
  "gux-toggle-slider": LocalJSX.GuxToggleSlider & JSXBase.HTMLAttributes<HTMLGuxToggleSliderElement>;
@@ -1,4 +1,3 @@
1
- import locales from './locales.json';
2
1
  /**
3
2
  * Allowed formats for formatting dates and times
4
3
  */
@@ -7,12 +6,12 @@ export declare type GuxDateTimeFormat = 'full' | 'long' | 'medium' | 'short';
7
6
  * @class A class that implements the method needed to format dates and times depending on locales
8
7
  */
9
8
  export declare class DateTimeFormatter {
10
- locale: typeof locales[number];
9
+ locale: string;
11
10
  /**
12
11
  * @constructor
13
12
  * @param locale A locale string is required to initialize a DateTimeFormatter class instance
14
13
  */
15
- constructor(locale: typeof locales[number]);
14
+ constructor(locale: string);
16
15
  /**
17
16
  *
18
17
  * @param {Date} datetime A Date object that requires formatting
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genesys-spark-components",
3
- "version": "3.21.2",
3
+ "version": "3.23.0",
4
4
  "description": "Common webcomponents",
5
5
  "license": "MIT",
6
6
  "main": "dist/stencil-wrapper.js",
@@ -46,17 +46,17 @@
46
46
  "release": "standard-version",
47
47
  "stencil": "stencil build --prod",
48
48
  "stencil.dev": "stencil build --dev --watch --docs",
49
- "test": "stencil test --spec --e2e",
50
- "test.ci": "npm run test.ci.spec && npm run test.ci.e2e",
51
- "test.ci.e2e": "stencil test --e2e --max-workers=1",
52
- "test.ci.spec": "stencil test --spec",
53
- "test.e2e": "stencil test --e2e",
54
- "test.e2e.update-snapshot": "stencil test --e2e --updateSnapshot",
55
- "test.screenshot": "stencil test --e2e --screenshot",
56
- "test.unit": "stencil build dev && stencil test --spec",
57
- "test.unit.update-snapshot": "stencil test --spec --updateSnapshot",
58
- "test.update-snapshot": "stencil test --spec --e2e --updateSnapshot",
59
- "test.watch": "stencil test --spec --e2e --watchAll"
49
+ "test": "TZ=UTC stencil test --spec --e2e",
50
+ "test.ci": "TZ=UTC npm run test.ci.spec && npm run test.ci.e2e",
51
+ "test.ci.e2e": "TZ=UTC stencil test --e2e --max-workers=1",
52
+ "test.ci.spec": "TZ=UTC stencil test --spec",
53
+ "test.e2e": "TZ=UTC stencil test --e2e",
54
+ "test.e2e.update-snapshot": "TZ=UTC stencil test --e2e --updateSnapshot",
55
+ "test.screenshot": "TZ=UTC stencil test --e2e --screenshot",
56
+ "test.unit": "TZ=UTC stencil build dev && stencil test --spec",
57
+ "test.unit.update-snapshot": "TZ=UTC stencil test --spec --updateSnapshot",
58
+ "test.update-snapshot": "TZ=UTC stencil test --spec --e2e --updateSnapshot",
59
+ "test.watch": "TZ=UTC stencil test --spec --e2e --watchAll"
60
60
  },
61
61
  "dependencies": {
62
62
  "@popperjs/core": "^2.11.5",
@@ -1 +0,0 @@
1
- import{r as t,h as i,g as e}from"./p-74b510cb.js";import{c as o,o as r}from"./p-3f5341ea.js";import{O as n}from"./p-e3c80187.js";import{a as s}from"./p-e2bea786.js";import{p as a}from"./p-c10e41a9.js";import{t as l}from"./p-210346ca.js";import{G as p,a as u}from"./p-625f19b6.js";import{h as f,s as x,c as h,G as c,a as d,v as g,g as b}from"./p-8caf2514.js";import"./p-cbcbd1bb.js";import"./p-3184268e.js";import"./p-8fe7daff.js";import"./p-d176c2ae.js";const m=class{constructor(i){t(this,i),this.computedLabelPosition="above",this.hasContent=!1,this.hasError=!1}onMutation(){this.hasError=f(this.root)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=f(this.root),this.hasPrefix=Boolean(this.root.querySelector('[slot="prefix"]')),this.hasSuffix=Boolean(this.root.querySelector('[slot="suffix"]')),this.hasPrefix&&x(this.root,this.input,"prefix"),this.hasSuffix&&x(this.root,this.input,"suffix"),l(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){return i(u,{labelPosition:this.computedLabelPosition},i(p,{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-has-prefix":this.hasPrefix,"gux-has-suffix":this.hasSuffix}},i("slot",{name:"prefix"}),i("slot",{name:"input"}),i("slot",{name:"suffix"}),this.clearable&&this.hasContent&&!this.disabled&&i("gux-form-field-input-clear-button",{onClick:()=>h(this.input)}))),i(c,{hasError:this.hasError},i("slot",{name:"error"}))))}get variant(){const t=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.input.getAttribute("type")}-${this.clearable?"clearable":"unclearable"}-${t}`}setInput(){this.input=this.root.querySelector('input[type="email"][slot="input"], input[type="password"][slot="input"], input[type="text"][slot="input"]'),this.hasContent=d(this.input),a(this.input),this.input.addEventListener("input",(()=>{this.hasContent=d(this.input)})),this.disabled=o(this.input),this.required=this.input.required,this.disabledObserver=r(this.input,(t=>{this.disabled=t})),this.requiredObserver=s(this.input,(t=>{this.required=t})),g(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=b(this.label,this.labelPosition)}get root(){return e(this)}};(function(t,i,e,o){var r,n=arguments.length,s=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(i,e,s):r(i,e))||s);n>3&&s&&Object.defineProperty(i,e,s)})([n({childList:!0,subtree:!0})],m.prototype,"onMutation",null),m.style=".gux-form-field-container{margin: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;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:0 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:100%;overflow:hidden;font-size:12px;color:#2e394c;text-overflow:ellipsis;background-color:#f6f7f9;border:none;outline:none}::slotted(input)::placeholder{color:#596373;opacity:1}::slotted(span){color:#2e394c;white-space:nowrap}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input .gux-input-container{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:4px 8px 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-has-suffix:not(.gux-input-and-error-container .gux-input .gux-input-container.gux-has-prefix) ::slotted(input){text-align:right}.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: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}";export{m as gux_form_field_text_like}
@@ -1 +0,0 @@
1
- import{r as e,h as t,H as o,g as a}from"./p-74b510cb.js";import{c as i,o as s}from"./p-3f5341ea.js";import{O as r}from"./p-e3c80187.js";import{p as l}from"./p-c10e41a9.js";import{t as n}from"./p-210346ca.js";import{h as c,G as h,v as p}from"./p-8caf2514.js";import"./p-cbcbd1bb.js";import"./p-3184268e.js";import"./p-8fe7daff.js";import"./p-d176c2ae.js";const d=class{constructor(t){e(this,t),this.hasError=!1}onMutation(){this.hasError=c(this.root)}componentWillLoad(){this.setInput(),this.hasError=c(this.root),n(this.root)}disconnectedCallback(){this.disabledObserver.disconnect()}render(){return t(o,{class:{"gux-input-error":this.hasError,"gux-disabled":this.disabled}},t("div",{class:"gux-form-field-container"},t("div",{class:"gux-input"},t("slot",{name:"input",onSlotchange:()=>this.setInput()}),t("slot",{name:"label"})),t(h,{hasError:this.hasError},t("slot",{name:"error"}))))}setInput(){this.input=this.root.querySelector('input[type="checkbox"][slot="input"]'),l(this.input),this.disabled=i(this.input),this.disabledObserver=s(this.input,(e=>{this.disabled=e})),p(this.root,this.input)}get root(){return a(this)}};(function(e,t,o,a){var i,s=arguments.length,r=s<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(r=(s<3?i(r):s>3?i(t,o,r):i(t,o))||r);s>3&&r&&Object.defineProperty(t,o,r)})([r({childList:!0,subtree:!0})],d.prototype,"onMutation",null),d.style=".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;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:0 4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}:host{display:block;color:#2e394c}:host(.gux-input-error) ::slotted(input[type='checkbox']:not(:checked))::before{background-image:url(\"data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.138 2.467a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h7m0-1h-7a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3z' fill='%23ea0b0b' /%3E%3C/svg%3E\")}:host(.gux-disabled){cursor:not-allowed;opacity:0.5}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}.gux-input{position:relative;height:24px;line-height:24px}::slotted(input[type='checkbox']){display:inline-grid;width:16px;height:16px;margin:4px;text-align:center;vertical-align:middle;cursor:pointer;border:0;-webkit-appearance:none;appearance:none;outline:none}::slotted(input[type='checkbox'])::before{grid-area:1;content:'';border-radius:15%}::slotted(input[type='checkbox']:focus-within)::before{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}::slotted(input[type='checkbox']:not(:checked))::before{background-image:url(\"data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.138 2.467a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h7m0-1h-7a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3z' fill='%2377828f' /%3E%3C/svg%3E\")}::slotted(input[type='checkbox']:not(:checked):not(:disabled):not(:indeterminate):hover)::before{background-image:url(\"data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.138 2.467a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h7m0-1h-7a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3z' fill='%232a60c8' /%3E%3C/svg%3E\")}::slotted(input[type='checkbox']:checked)::before{background-image:url(\"data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.138 1.467h-7a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3zM6.8 11 3.638 7.941l.89-.932L6.8 9.2l3.947-3.861.891.932z' fill='%232a60c8' /%3E%3C/svg%3E\")}::slotted(input[type='checkbox']:indeterminate)::before{background-image:url(\"data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.138 8.467h7v-1h-7zm7-7h-7a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3zm2 10a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2z' fill='%232a60c8' /%3E%3C/svg%3E\")}::slotted(input[type='checkbox']:disabled)::before{cursor:not-allowed;opacity:0.5}::slotted(label){display:inline-block;font-size:12px;line-height:24px;vertical-align:middle}";export{d as gux_form_field_checkbox}
@@ -1 +0,0 @@
1
- import{r as t,h as e,g as i}from"./p-74b510cb.js";import{b as o}from"./p-cf43f0c3.js";import{c as n,o as r}from"./p-3f5341ea.js";import{O as s}from"./p-e3c80187.js";import{a}from"./p-e2bea786.js";import{p as l}from"./p-c10e41a9.js";import{t as u}from"./p-210346ca.js";import{s as p}from"./p-8fe7daff.js";import{s as c}from"./p-d176c2ae.js";import{G as x,a as d}from"./p-625f19b6.js";import{h as f,c as h,G as g,a as b,v as m,g as w}from"./p-8caf2514.js";import"./p-8a133b9b.js";import"./p-cbcbd1bb.js";import"./p-3184268e.js";const v={increment:"Increment",decrement:"Decrement"};const j=class{constructor(e){t(this,e),this.computedLabelPosition="above",this.hasContent=!1,this.hasError=!1}onMutation(){this.hasError=f(this.root)}async componentWillLoad(){this.getI18nValue=await o(this.root,v),this.setInput(),this.setLabel(),this.hasError=f(this.root),u(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){const t=this.clearable&&this.hasContent&&!this.disabled;return e(d,{labelPosition:this.computedLabelPosition},e(x,{position:this.computedLabelPosition,required:this.required},e("slot",{name:"label",onSlotchange:()=>this.setLabel()})),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,"gux-clear":t}},e("slot",{name:"input",onSlotchange:()=>this.setInput()}),t&&e("gux-form-field-input-clear-button",{onClick:()=>h(this.input)})),this.renderStepButtons(this.input,this.getI18nValue,this.disabled)),e(g,{hasError:this.hasError},e("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=b(this.input),l(this.input),this.input.addEventListener("input",(()=>{this.hasContent=b(this.input)})),this.disabled=n(this.input),this.required=this.input.required,this.disabledObserver=r(this.input,(t=>{this.disabled=t})),this.requiredObserver=a(this.input,(t=>{this.required=t})),m(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=w(this.label,this.labelPosition)}renderStepButtons(t,i,o){return e("div",{class:"gux-step-buttons-container"},e("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:i("increment"),disabled:o,onClick:()=>this.stepUp(t)},e("gux-icon",{"icon-name":"chevron-small-up",decorative:!0})),e("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:i("decrement"),disabled:o,onClick:()=>this.stepDown(t)},e("gux-icon",{"icon-name":"chevron-small-down",decorative:!0})))}stepDown(t){""===t.value?p(t,t.min||"0",!1):(t.stepDown(),this.simulateNativeInputAndChangeEvents(t))}stepUp(t){""===t.value?p(t,t.min||"0",!1):(t.stepUp(),this.simulateNativeInputAndChangeEvents(t))}simulateNativeInputAndChangeEvents(t){c(t,"input"),c(t,"change")}get root(){return i(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)})([s({childList:!0,subtree:!0})],j.prototype,"onMutation",null),j.style=".gux-form-field-container{margin: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;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:0 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{j as gux_form_field_number}
@@ -1 +0,0 @@
1
- import{r as t,f as e,h as i,g as s,c as o,H as n}from"./p-74b510cb.js";import{O as r}from"./p-acd2fa20.js";import{b as a}from"./p-cf43f0c3.js";import{s as l}from"./p-d176c2ae.js";import{o as d,c as u}from"./p-3f5341ea.js";import{t as h}from"./p-210346ca.js";import{g as c,s as x,c as g,a as p,b as f,h as b,d as m,e as w,f as v,i as y,j as F,o as j}from"./p-3770c1e9.js";import{w as k}from"./p-76ff3e75.js";import{r as A}from"./p-cbcbd1bb.js";import"./p-8a133b9b.js";const C={filterResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown"};const E=class{constructor(e){t(this,e),this.disabled=!1,this.required=!1,this.filterable=!1,this.expanded=!1,this.filter=""}focusSelectedItemAfterRender(t){t&&this.listboxElement&&requestAnimationFrame((()=>{requestAnimationFrame((()=>{this.listboxElement.focus(),this.filterable&&this.filterElement.focus()}))})),t||(this.filter="")}validateValue(t){void 0!==t?this.getOptionElementByValue(t)?this.listboxElement.value=t:this.value=void 0:this.listboxElement.value=t}onKeydown(t){switch(t.key){case"Escape":return this.filterable&&document.activeElement===this.listboxElement?this.filterElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.filterElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("focusFieldButton")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0))}}onInternallistboxoptionsupdated(t){t.stopPropagation(),e(this.root)}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t)}onClickOutside(){this.collapseListbox("noFocusChange")}async componentWillLoad(){h(this.root),this.i18n=await a(this.root,C),this.listboxElement=this.root.querySelector("gux-listbox"),this.validateValue(this.value),d(this.root,(()=>{e(this.root)}))}componentDidLoad(){this.listboxElement.addEventListener("input",(t=>{t.stopPropagation(),this.updateValue(t.target.value)})),this.listboxElement.addEventListener("change",(t=>{t.stopPropagation()}))}componentWillRender(){this.validateValue(this.value),this.listboxElement.filter=this.filter}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}getOptionElementByValue(t){const e=this.root.querySelectorAll("gux-option");return Array.from(e).find((e=>e.value===t))}fieldButtonClick(){this.expanded=!this.expanded}filterInput(t){t.stopPropagation(),this.filter=this.filterElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.filterable&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.filterable&&document.activeElement===this.listboxElement}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){switch(t.key){case"ArrowDown":return t.stopImmediatePropagation(),void this.listboxElement.focus();case"Enter":return this.listboxElement.guxSelectActive(),void t.preventDefault()}}filterKeyup(t){switch(t.key){case" ":return void t.preventDefault()}}collapseListbox(t){this.expanded&&(this.expanded=!1),"focusFieldButton"===t&&this.fieldButtonElement.focus()}updateValue(t){this.value!==t&&(this.value=t,this.collapseListbox("focusFieldButton"),l(this.root,"input"),l(this.root,"change"))}getSuggestionText(t){const e=t.length;if(e>0){const i=c(this.listboxElement,t);if(i)return i.textContent.substring(e)}return""}renderTargetDisplay(){const t=this.getOptionElementByValue(this.value);return t?i("div",{class:"gux-selected-option"},t.textContent):i("div",{class:"gux-placeholder"},this.placeholder||this.i18n("noSelection"))}renderFilterInputField(){if(this.expanded&&this.filterable)return i("div",{class:"gux-field gux-input-field"},i("div",{class:"gux-field-content"},i("div",{class:"gux-filter"},i("div",{class:"gux-filter-display"},i("span",{class:"gux-filter-text"},this.filter),i("span",{class:"gux-filter-suggestion"},this.getSuggestionText(this.filter))),i("div",{class:"input-and-dropdown-button"},i("input",{onClick:this.fieldButtonClick.bind(this),class:"gux-filter-input",type:"text","aria-label":this.i18n("filterResults"),ref:t=>this.filterElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this)})))))}renderPopup(){return i("div",{slot:"popup",class:"gux-listbox-container"},i("slot",null))}renderTarget(){return i("div",{class:{"gux-target-container-expanded":this.expanded&&this.filterable,"gux-target-container-collapsed":!(this.expanded&&this.filterable)},slot:"target"},this.renderFilterInputField(),i("button",{type:"button",class:"gux-field gux-field-button",disabled:u(this.root),onClick:this.fieldButtonClick.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},this.renderTargetContent(),i("gux-icon",{class:{"gux-expand-icon":!0},"screenreader-text":this.i18n("dropdown"),iconName:"chevron-small-down"})))}renderTargetContent(){if(!this.expanded||!this.filterable)return i("div",{class:"gux-field-content"},this.renderTargetDisplay())}render(){return i("gux-popup",{expanded:this.expanded,disabled:this.disabled},this.renderTarget(),this.renderPopup())}get root(){return s(this)}static get watchers(){return{expanded:["focusSelectedItemAfterRender"],value:["validateValue"]}}};(function(t,e,i,s){var o,n=arguments.length,r=n<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 a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);n>3&&r&&Object.defineProperty(e,i,r)})([r({triggerEvents:"mousedown"})],E.prototype,"onClickOutside",null),E.style=":host{color:#2e394c}.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 8px 6px 6px;font-family:inherit;font-size:12px;line-height:1.6667;cursor:pointer;background-color:#f6f7f9}.gux-field.gux-input-field{height:30px}.gux-field .gux-field-content{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{position:relative;height:100%}.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 .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-left: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-within{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.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{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-listbox-container{box-sizing:border-box;margin:0;color:#2e394c}";const L={noMatches:"No matches"},O=class{constructor(e){t(this,e),this.internallistboxoptionsupdated=o(this,"internallistboxoptionsupdated",7),this.filter="",this.selectedValues=[],this.listboxOptions=[]}onFocus(){x(this.root)}onBlur(){g(this.root)}onKeydown(t){switch(t.key){case"Enter":return t.preventDefault(),void y(this.root,(t=>this.updateValue(t)));case"ArrowDown":return t.preventDefault(),void(w(this.root)?(t.stopPropagation(),v(this.root)):f(this.root));case"ArrowUp":return t.preventDefault(),void(b(this.root)?(t.stopPropagation(),m(this.root)):p(this.root));case"Home":return t.preventDefault(),void f(this.root);case"End":return t.preventDefault(),void p(this.root);case" ":return void t.preventDefault()}1!==t.key.length||F(this.root,t.key)}onKeyup(t){switch(t.key){case" ":return void y(this.root,(t=>this.updateValue(t)))}}onMousemove(){g(this.root)}onClick(t){k("gux-option",t,(t=>{j(t,(t=>this.updateValue(t)))}))}async guxSelectActive(){y(this.root,(t=>this.updateValue(t)))}setListboxOptions(){this.value&&(this.selectedValues=this.value.split(",")),this.listboxOptions=Array.from(this.root.children),this.internallistboxoptionsupdated.emit()}updateValue(t){this.value!==t&&(this.value=t),l(this.root,"input"),l(this.root,"change")}async componentWillLoad(){h(this.root),this.i18n=await a(this.root,L),this.setListboxOptions()}componentWillRender(){this.listboxOptions.forEach((t=>{t.selected=t.value===this.value,t.filtered=!t.textContent.toLowerCase().startsWith(this.filter.toLowerCase())})),this.allListboxOptionsFiltered=0===this.listboxOptions.filter((t=>!t.filtered)).length,this.filter&&f(this.root)}renderAllListboxOptionsFiltered(){if(this.allListboxOptionsFiltered)return i("div",{class:"gux-no-matches"},this.i18n("noMatches"))}render(){return i(n,{role:"listbox",tabindex:0},i("slot",{onSlotchange:()=>this.setListboxOptions()}),this.renderAllListboxOptionsFiltered())}get root(){return s(this)}};O.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){outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-no-matches{box-sizing:border-box;height:32px;padding:8px 16px;color:#2e394c}";const R=class{constructor(e){t(this,e),this.active=!1,this.selected=!1,this.disabled=!1,this.filtered=!1,this.hovered=!1}onmouseenter(){this.hovered=!0}onMouseleave(){this.hovered=!1}componentWillLoad(){this.root.id=this.root.id||A("gux-option")}getAriaSelected(){return!this.disabled&&(this.selected?"true":"false")}render(){return i(n,{role:"option",class:{"gux-active":this.active,"gux-disabled":this.disabled,"gux-filtered":this.filtered,"gux-hovered":this.hovered,"gux-selected":this.selected},"aria-selected":this.getAriaSelected(),"aria-disabled":this.disabled.toString()},i("slot",null))}get root(){return s(this)}};R.style="gux-option{box-sizing:border-box;display:flex;min-height:32px;padding:8px 16px;color:#2e394c;word-wrap:break-word;cursor:pointer}gux-option.gux-disabled{pointer-events:none;cursor:default;opacity:0.5}gux-option.gux-selected{background:#deeaff}gux-option.gux-active,gux-option.gux-hovered:not([disabled]){color:#fdfdfd;background:#2a60c8}gux-option.gux-filtered{display:none}";export{E as gux_dropdown,O as gux_listbox,R as gux_option}