@esri/calcite-components 5.1.0-next.4 → 5.1.0-next.40

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 (482) hide show
  1. package/dist/cdn/25HY22XA.js +2 -0
  2. package/dist/cdn/2APTJSPF.js +2 -0
  3. package/dist/cdn/2J3GTLF3.js +2 -0
  4. package/dist/cdn/2SHDDQN7.js +2 -0
  5. package/dist/cdn/{MJCRT7H4.js → 2YN42GGZ.js} +1 -1
  6. package/dist/cdn/{IMOAPVVW.js → 343TIEND.js} +1 -1
  7. package/dist/cdn/{RROGXGP5.js → 3ENB4NB6.js} +1 -1
  8. package/dist/cdn/3TSVKHNF.js +2 -0
  9. package/dist/cdn/4BQKNTG6.js +2 -0
  10. package/dist/cdn/4DUM6L7R.js +2 -0
  11. package/dist/cdn/4FANAYQE.js +2 -0
  12. package/dist/cdn/{LGKOEBZ4.js → 4KMYRWTU.js} +1 -1
  13. package/dist/cdn/{HCJDTU7F.js → 4TH5DLDN.js} +1 -1
  14. package/dist/cdn/{Z22BRBT4.js → 53IHUARV.js} +1 -1
  15. package/dist/cdn/{VLGFWPBL.js → 57VOL2FQ.js} +1 -1
  16. package/dist/cdn/{A22XLAKZ.js → 5L3WL4VL.js} +3 -3
  17. package/dist/cdn/{ZZNRLKQQ.js → 5NPVZG4Z.js} +1 -1
  18. package/dist/cdn/5Y6YWMMA.js +2 -0
  19. package/dist/cdn/{HRUVPNCI.js → 6AMXTUET.js} +1 -1
  20. package/dist/cdn/6BOT2RN6.js +2 -0
  21. package/dist/cdn/6DZA2UAF.js +2 -0
  22. package/dist/cdn/{XDOFVA4S.js → 6ILPIFKN.js} +1 -1
  23. package/dist/cdn/6JYCVM4M.js +2 -0
  24. package/dist/cdn/{HYYJZO6T.js → 6WVMZURH.js} +1 -1
  25. package/dist/cdn/{7B4D4WJ2.js → 6YUU4XZI.js} +1 -1
  26. package/dist/cdn/6Z4AVLFZ.js +2 -0
  27. package/dist/cdn/{IOSK2I75.js → 72EGGY2Z.js} +1 -1
  28. package/dist/cdn/762BQO6H.js +2 -0
  29. package/dist/cdn/{A4OYPK5D.js → 7Q6P25FS.js} +1 -1
  30. package/dist/cdn/{CZYFEVKF.js → 7QKULUQN.js} +1 -1
  31. package/dist/cdn/ABK5HS52.js +2 -0
  32. package/dist/cdn/{ED2GANBI.js → ADBOBCIS.js} +1 -1
  33. package/dist/cdn/APORZ42E.js +2 -0
  34. package/dist/cdn/{3W4NT367.js → BH4ZCVJG.js} +1 -1
  35. package/dist/cdn/BU5VDSQP.js +2 -0
  36. package/dist/cdn/BYU6QMLQ.js +2 -0
  37. package/dist/cdn/{GJE7FY35.js → C3A2E5RX.js} +1 -1
  38. package/dist/cdn/C5DLWVQD.js +2 -0
  39. package/dist/cdn/CAQ4T2IG.js +2 -0
  40. package/dist/cdn/CWVS4R4Z.js +4 -0
  41. package/dist/cdn/CZ4YVULR.js +2 -0
  42. package/dist/cdn/{EHIAXJAL.js → DCWL5FUH.js} +1 -1
  43. package/dist/cdn/DVICI22P.js +2 -0
  44. package/dist/cdn/{6IZMIAV2.js → DWBLCWMS.js} +1 -1
  45. package/dist/cdn/{QKUQGG2M.js → E4TRET3J.js} +1 -1
  46. package/dist/cdn/ENOS3GFQ.js +2 -0
  47. package/dist/cdn/EP3Q5JF2.js +2 -0
  48. package/dist/cdn/{DFXECQ6Z.js → ESGEWPZJ.js} +1 -1
  49. package/dist/cdn/EU7A7BOE.js +2 -0
  50. package/dist/cdn/EU7PE35Y.js +2 -0
  51. package/dist/cdn/{LIJYENWJ.js → EWMQCLAJ.js} +1 -1
  52. package/dist/cdn/F2AZESRV.js +2 -0
  53. package/dist/cdn/{GZNBU3BV.js → F2JKS4U3.js} +1 -1
  54. package/dist/cdn/FIPJYD6R.js +2 -0
  55. package/dist/cdn/FJZ7BDLC.js +2 -0
  56. package/dist/cdn/GM5CRK4E.js +2 -0
  57. package/dist/cdn/{QOSBMGOZ.js → HAFLZK3H.js} +1 -1
  58. package/dist/cdn/HAMDM2HW.js +2 -0
  59. package/dist/cdn/{SYSNPKVM.js → IFZOUQOZ.js} +1 -1
  60. package/dist/cdn/IOHX3UTV.js +2 -0
  61. package/dist/cdn/{BWUA5WU5.js → ISHWK2D4.js} +1 -1
  62. package/dist/cdn/IVBPPCLT.js +2 -0
  63. package/dist/cdn/IXJWAGGO.js +2 -0
  64. package/dist/cdn/{HXVXRVZW.js → IZVSR6XT.js} +1 -1
  65. package/dist/cdn/{UTFS3HNB.js → JFU4VBGG.js} +1 -1
  66. package/dist/cdn/JMUG7HPC.js +2 -0
  67. package/dist/cdn/JRLAOTDU.js +2 -0
  68. package/dist/cdn/{LHJSBAM5.js → JSRN4WS4.js} +1 -1
  69. package/dist/cdn/K4CFRJTI.js +2 -0
  70. package/dist/cdn/{FAHLSHDH.js → KE6N7N7U.js} +1 -1
  71. package/dist/cdn/{RA4KNUNM.js → KL26IYZY.js} +1 -1
  72. package/dist/cdn/KNATDYHF.js +2 -0
  73. package/dist/cdn/{4MFRMO5M.js → KXXIFRGT.js} +1 -1
  74. package/dist/cdn/L5HIKEWU.js +2 -0
  75. package/dist/cdn/L6PNQBJN.js +2 -0
  76. package/dist/cdn/{R6D5F2V7.js → LC72CVO3.js} +1 -1
  77. package/dist/cdn/LELN5JPY.js +2 -0
  78. package/dist/cdn/{AYPT6VGV.js → M2UD3N2R.js} +1 -1
  79. package/dist/cdn/M37TGGY7.js +2 -0
  80. package/dist/cdn/{XYAZINKS.js → MI7RF44J.js} +1 -1
  81. package/dist/cdn/MIERF3YB.js +2 -0
  82. package/dist/cdn/{YQY6DOSF.js → MMIUGDHC.js} +1 -1
  83. package/dist/cdn/MQA7BZXA.js +2 -0
  84. package/dist/cdn/MSYHAUDU.js +2 -0
  85. package/dist/cdn/{3GV45XL7.js → MYDCGCGV.js} +1 -1
  86. package/dist/cdn/N5YXMXKX.js +2 -0
  87. package/dist/cdn/{MTNYIXZQ.js → NDOJ7DMN.js} +1 -1
  88. package/dist/cdn/{F7XISEIT.js → NNUWJV5Y.js} +1 -1
  89. package/dist/cdn/NP4XZYHH.js +2 -0
  90. package/dist/cdn/{EW6277QZ.js → O5NPN2NC.js} +1 -1
  91. package/dist/cdn/OTIHT3RJ.js +2 -0
  92. package/dist/cdn/OUQWQCX4.js +2 -0
  93. package/dist/cdn/{WR6QBFCR.js → P3TQR6CW.js} +1 -1
  94. package/dist/cdn/{5TWM6GKK.js → P46CRADL.js} +1 -1
  95. package/dist/cdn/{X7JEHH2B.js → PCVC2F65.js} +1 -1
  96. package/dist/cdn/{7TEW7OYZ.js → PESN4GNZ.js} +1 -1
  97. package/dist/cdn/{TCAGY7OI.js → PLYNERNK.js} +1 -1
  98. package/dist/cdn/{7DA7BZM3.js → Q2AAAFVG.js} +1 -1
  99. package/dist/cdn/QM3SD3PA.js +2 -0
  100. package/dist/cdn/{5YROPSGB.js → QVTSIICY.js} +1 -1
  101. package/dist/cdn/{CDTY6WOM.js → R3SLMPTQ.js} +1 -1
  102. package/dist/cdn/RIOREY3L.js +2 -0
  103. package/dist/cdn/RPKGQUKY.js +2 -0
  104. package/dist/cdn/{5WKPS2ZT.js → RUDSYIF2.js} +1 -1
  105. package/dist/cdn/{RRHN2PDB.js → RUIFQJAH.js} +1 -1
  106. package/dist/cdn/RYDGNOUH.js +2 -0
  107. package/dist/cdn/{HXS3PD57.js → S2Y2KBAC.js} +1 -1
  108. package/dist/cdn/SL5CC77J.js +2 -0
  109. package/dist/cdn/SMYYAK7D.js +2 -0
  110. package/dist/cdn/{5HQ3O27G.js → SN2GM7VT.js} +1 -1
  111. package/dist/cdn/SUTEBG6F.js +2 -0
  112. package/dist/cdn/T2BDBNM5.js +2 -0
  113. package/dist/cdn/T67L4AXE.js +2 -0
  114. package/dist/cdn/T77GTRQ2.js +2 -0
  115. package/dist/cdn/TL2LER4P.js +2 -0
  116. package/dist/cdn/TPSHW4M7.js +2 -0
  117. package/dist/cdn/U65LWUJT.js +2 -0
  118. package/dist/cdn/U6HSTFHB.js +2 -0
  119. package/dist/cdn/{AMZPSRIA.js → UDCTSF3X.js} +1 -1
  120. package/dist/cdn/UNAC5YGP.js +2 -0
  121. package/dist/cdn/UNC2KJWX.js +2 -0
  122. package/dist/cdn/{IFHMJCAE.js → V6L5RSXQ.js} +1 -1
  123. package/dist/cdn/V6VAGY4E.js +2 -0
  124. package/dist/cdn/VDVTNGYM.js +2 -0
  125. package/dist/cdn/VWTVHOIX.js +2 -0
  126. package/dist/cdn/VYQ37P65.js +2 -0
  127. package/dist/cdn/{TLAXB6HU.js → W656KOHA.js} +1 -1
  128. package/dist/cdn/{KVSU3DLB.js → W7TMDCFZ.js} +1 -1
  129. package/dist/cdn/WDFABHQO.js +2 -0
  130. package/dist/cdn/WKBFZGMH.js +2 -0
  131. package/dist/cdn/{OVU2NGHU.js → WQLCQIZA.js} +1 -1
  132. package/dist/cdn/{XLGGANFA.js → WZH7XMRX.js} +1 -1
  133. package/dist/cdn/XFBBTAFB.js +2 -0
  134. package/dist/cdn/XU3JRXS5.js +2 -0
  135. package/dist/cdn/XXSWFYQB.js +2 -0
  136. package/dist/cdn/{CAAZHUX4.js → XYC42R3U.js} +1 -1
  137. package/dist/cdn/{KKH2HVQW.js → Y43XTIHW.js} +1 -1
  138. package/dist/cdn/{Z3IVC2AV.js → YHGIFWX4.js} +1 -1
  139. package/dist/cdn/{ZIOXZBYF.js → YOAB4Z22.js} +1 -1
  140. package/dist/cdn/{MXRMT4RB.js → YX3WCLZI.js} +1 -1
  141. package/dist/cdn/ZCKFY2WU.js +2 -0
  142. package/dist/cdn/{QBLAE2O5.js → ZFE7EHX7.js} +1 -1
  143. package/dist/cdn/{GM6FZWSL.js → ZJFP46OV.js} +1 -1
  144. package/dist/cdn/ZPTH57OQ.js +2 -0
  145. package/dist/cdn/ZV2BUMQX.js +2 -0
  146. package/dist/cdn/assets/combobox/t9n/messages.ar.json +1 -1
  147. package/dist/cdn/assets/combobox/t9n/messages.bg.json +1 -1
  148. package/dist/cdn/assets/combobox/t9n/messages.bs.json +1 -1
  149. package/dist/cdn/assets/combobox/t9n/messages.ca.json +1 -1
  150. package/dist/cdn/assets/combobox/t9n/messages.cs.json +1 -1
  151. package/dist/cdn/assets/combobox/t9n/messages.da.json +1 -1
  152. package/dist/cdn/assets/combobox/t9n/messages.de.json +1 -1
  153. package/dist/cdn/assets/combobox/t9n/messages.el.json +1 -1
  154. package/dist/cdn/assets/combobox/t9n/messages.en.json +1 -1
  155. package/dist/cdn/assets/combobox/t9n/messages.es.json +1 -1
  156. package/dist/cdn/assets/combobox/t9n/messages.et.json +1 -1
  157. package/dist/cdn/assets/combobox/t9n/messages.fi.json +1 -1
  158. package/dist/cdn/assets/combobox/t9n/messages.fr.json +1 -1
  159. package/dist/cdn/assets/combobox/t9n/messages.he.json +1 -1
  160. package/dist/cdn/assets/combobox/t9n/messages.hr.json +1 -1
  161. package/dist/cdn/assets/combobox/t9n/messages.hu.json +1 -1
  162. package/dist/cdn/assets/combobox/t9n/messages.id.json +1 -1
  163. package/dist/cdn/assets/combobox/t9n/messages.it.json +1 -1
  164. package/dist/cdn/assets/combobox/t9n/messages.ja.json +1 -1
  165. package/dist/cdn/assets/combobox/t9n/messages.json +1 -1
  166. package/dist/cdn/assets/combobox/t9n/messages.ko.json +1 -1
  167. package/dist/cdn/assets/combobox/t9n/messages.lt.json +1 -1
  168. package/dist/cdn/assets/combobox/t9n/messages.lv.json +1 -1
  169. package/dist/cdn/assets/combobox/t9n/messages.nl.json +1 -1
  170. package/dist/cdn/assets/combobox/t9n/messages.no.json +1 -1
  171. package/dist/cdn/assets/combobox/t9n/messages.pl.json +1 -1
  172. package/dist/cdn/assets/combobox/t9n/messages.pt-BR.json +1 -1
  173. package/dist/cdn/assets/combobox/t9n/messages.pt-PT.json +1 -1
  174. package/dist/cdn/assets/combobox/t9n/messages.ro.json +1 -1
  175. package/dist/cdn/assets/combobox/t9n/messages.ru.json +1 -1
  176. package/dist/cdn/assets/combobox/t9n/messages.sk.json +1 -1
  177. package/dist/cdn/assets/combobox/t9n/messages.sl.json +1 -1
  178. package/dist/cdn/assets/combobox/t9n/messages.sr.json +1 -1
  179. package/dist/cdn/assets/combobox/t9n/messages.sv.json +1 -1
  180. package/dist/cdn/assets/combobox/t9n/messages.th.json +1 -1
  181. package/dist/cdn/assets/combobox/t9n/messages.tr.json +1 -1
  182. package/dist/cdn/assets/combobox/t9n/messages.uk.json +1 -1
  183. package/dist/cdn/assets/combobox/t9n/messages.vi.json +1 -1
  184. package/dist/cdn/assets/combobox/t9n/messages.zh-CN.json +1 -1
  185. package/dist/cdn/assets/combobox/t9n/messages.zh-HK.json +1 -1
  186. package/dist/cdn/assets/combobox/t9n/messages.zh-TW.json +1 -1
  187. package/dist/cdn/assets/icon/arcgisQuickcapture16.json +1 -0
  188. package/dist/cdn/assets/icon/arcgisQuickcapture24.json +1 -0
  189. package/dist/cdn/assets/icon/arcgisQuickcapture32.json +1 -0
  190. package/dist/cdn/assets/icon/arcgisSurvey12316.json +1 -0
  191. package/dist/cdn/assets/icon/arcgisSurvey12324.json +1 -0
  192. package/dist/cdn/assets/icon/arcgisSurvey12332.json +1 -0
  193. package/dist/cdn/assets/icon/gpsReceiver16.json +1 -0
  194. package/dist/cdn/assets/icon/gpsReceiver24.json +1 -0
  195. package/dist/cdn/assets/icon/gpsReceiver32.json +1 -0
  196. package/dist/cdn/assets/icon/layerStreamSetting16.json +1 -0
  197. package/dist/cdn/assets/icon/layerStreamSetting24.json +1 -0
  198. package/dist/cdn/assets/icon/layerStreamSetting32.json +1 -0
  199. package/dist/cdn/assets/icon/publish16.json +1 -0
  200. package/dist/cdn/assets/icon/publish24.json +1 -0
  201. package/dist/cdn/assets/icon/publish32.json +1 -0
  202. package/dist/cdn/assets/icon/totalStation16.json +1 -0
  203. package/dist/cdn/assets/icon/totalStation24.json +1 -0
  204. package/dist/cdn/assets/icon/totalStation32.json +1 -0
  205. package/dist/cdn/assets/icon/velocityServer16.json +1 -0
  206. package/dist/cdn/assets/icon/velocityServer24.json +1 -0
  207. package/dist/cdn/assets/icon/velocityServer32.json +1 -0
  208. package/dist/cdn/index.js +1 -1
  209. package/dist/chunks/ClearButton.js +16 -0
  210. package/dist/chunks/ExpandToggle.js +4 -5
  211. package/dist/chunks/Heading.js +3 -3
  212. package/dist/chunks/dom.js +63 -49
  213. package/dist/chunks/floating-ui.js +3 -6
  214. package/dist/chunks/label.js +1 -1
  215. package/dist/chunks/locale.js +29 -12
  216. package/dist/chunks/manager.js +505 -0
  217. package/dist/chunks/openCloseComponent.js +1 -1
  218. package/dist/chunks/resources5.js +2 -1
  219. package/dist/chunks/resources6.js +2 -0
  220. package/dist/chunks/runtime.js +4 -4
  221. package/dist/chunks/useFocusTrap.js +22 -1
  222. package/dist/chunks/useForm.js +294 -0
  223. package/dist/chunks/useFormTrigger.js +25 -0
  224. package/dist/chunks/useSetFocus.js +1 -1
  225. package/dist/chunks/{sortableComponent.js → useSortable.js} +70 -44
  226. package/dist/chunks/utils2.js +1 -1
  227. package/dist/components/calcite-accordion-item/customElement.d.ts +6 -6
  228. package/dist/components/calcite-accordion-item/customElement.js +4 -3
  229. package/dist/components/calcite-action/customElement.d.ts +14 -12
  230. package/dist/components/calcite-action/customElement.js +8 -14
  231. package/dist/components/calcite-action-bar/customElement.d.ts +12 -3
  232. package/dist/components/calcite-action-bar/customElement.js +43 -15
  233. package/dist/components/calcite-action-group/customElement.d.ts +6 -6
  234. package/dist/components/calcite-action-menu/customElement.d.ts +2 -2
  235. package/dist/components/calcite-action-pad/customElement.d.ts +3 -3
  236. package/dist/components/calcite-action-pad/customElement.js +5 -3
  237. package/dist/components/calcite-alert/customElement.d.ts +2 -2
  238. package/dist/components/calcite-alert/customElement.js +2 -2
  239. package/dist/components/calcite-autocomplete/customElement.d.ts +16 -13
  240. package/dist/components/calcite-autocomplete/customElement.js +23 -32
  241. package/dist/components/calcite-autocomplete-item/customElement.d.ts +6 -0
  242. package/dist/components/calcite-autocomplete-item/customElement.js +9 -4
  243. package/dist/components/calcite-avatar/customElement.js +1 -1
  244. package/dist/components/calcite-block/customElement.d.ts +5 -5
  245. package/dist/components/calcite-block/customElement.js +2 -2
  246. package/dist/components/calcite-block-group/customElement.d.ts +1 -1
  247. package/dist/components/calcite-block-group/customElement.js +5 -12
  248. package/dist/components/calcite-block-group/interfaces.d.ts +2 -6
  249. package/dist/components/calcite-block-section/customElement.d.ts +1 -1
  250. package/dist/components/calcite-button/customElement.d.ts +6 -6
  251. package/dist/components/calcite-button/customElement.js +11 -23
  252. package/dist/components/calcite-card/customElement.d.ts +4 -4
  253. package/dist/components/calcite-card/customElement.js +5 -3
  254. package/dist/components/calcite-card-group/customElement.d.ts +9 -3
  255. package/dist/components/calcite-card-group/customElement.js +11 -1
  256. package/dist/components/calcite-carousel/customElement.d.ts +1 -1
  257. package/dist/components/calcite-carousel/customElement.js +27 -25
  258. package/dist/components/calcite-checkbox/customElement.d.ts +4 -5
  259. package/dist/components/calcite-checkbox/customElement.js +10 -23
  260. package/dist/components/calcite-chip/customElement.d.ts +2 -2
  261. package/dist/components/calcite-chip/customElement.js +2 -2
  262. package/dist/components/calcite-chip-group/customElement.d.ts +1 -1
  263. package/dist/components/calcite-chip-group/customElement.js +1 -1
  264. package/dist/components/calcite-color-picker/customElement.d.ts +2 -2
  265. package/dist/components/calcite-color-picker/customElement.js +4 -2
  266. package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +1 -1
  267. package/dist/components/calcite-color-picker-swatch/customElement.d.ts +1 -1
  268. package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
  269. package/dist/components/calcite-combobox/customElement.d.ts +16 -6
  270. package/dist/components/calcite-combobox/customElement.js +189 -106
  271. package/dist/components/calcite-combobox/index.js +2 -1
  272. package/dist/components/calcite-combobox-item/customElement.d.ts +1 -1
  273. package/dist/components/calcite-combobox-item/customElement.js +10 -4
  274. package/dist/components/calcite-date-picker/customElement.d.ts +1 -1
  275. package/dist/components/calcite-date-picker-day/customElement.d.ts +1 -1
  276. package/dist/components/calcite-date-picker-month/customElement.js +1 -1
  277. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  278. package/dist/components/calcite-dialog/customElement.d.ts +8 -6
  279. package/dist/components/calcite-dialog/customElement.js +5 -3
  280. package/dist/components/calcite-dropdown/customElement.d.ts +15 -5
  281. package/dist/components/calcite-dropdown/customElement.js +168 -90
  282. package/dist/components/calcite-dropdown-item/customElement.d.ts +2 -2
  283. package/dist/components/calcite-dropdown-item/customElement.js +14 -32
  284. package/dist/components/calcite-fab/customElement.d.ts +1 -1
  285. package/dist/components/calcite-filter/customElement.d.ts +1 -1
  286. package/dist/components/calcite-flow/customElement.d.ts +1 -1
  287. package/dist/components/calcite-flow-item/customElement.d.ts +9 -7
  288. package/dist/components/calcite-flow-item/customElement.js +6 -4
  289. package/dist/components/calcite-handle/customElement.d.ts +1 -1
  290. package/dist/components/calcite-icon/customElement.d.ts +1 -1
  291. package/dist/components/calcite-icon/customElement.js +4 -3
  292. package/dist/components/calcite-inline-editable/customElement.d.ts +1 -1
  293. package/dist/components/calcite-inline-editable/customElement.js +1 -1
  294. package/dist/components/calcite-input/customElement.d.ts +17 -18
  295. package/dist/components/calcite-input/customElement.js +30 -52
  296. package/dist/components/calcite-input/index.js +1 -0
  297. package/dist/components/calcite-input-date-picker/customElement.d.ts +6 -7
  298. package/dist/components/calcite-input-date-picker/customElement.js +34 -28
  299. package/dist/components/calcite-input-message/customElement.d.ts +1 -1
  300. package/dist/components/calcite-input-message/customElement.js +1 -1
  301. package/dist/components/calcite-input-number/customElement.d.ts +13 -14
  302. package/dist/components/calcite-input-number/customElement.js +26 -51
  303. package/dist/components/calcite-input-number/index.js +1 -0
  304. package/dist/components/calcite-input-text/customElement.d.ts +11 -12
  305. package/dist/components/calcite-input-text/customElement.js +20 -44
  306. package/dist/components/calcite-input-text/index.js +1 -0
  307. package/dist/components/calcite-input-time-picker/customElement.d.ts +6 -7
  308. package/dist/components/calcite-input-time-picker/customElement.js +14 -25
  309. package/dist/components/calcite-input-time-zone/customElement.d.ts +5 -6
  310. package/dist/components/calcite-input-time-zone/customElement.js +21 -19
  311. package/dist/components/calcite-link/customElement.d.ts +9 -9
  312. package/dist/components/calcite-link/customElement.js +31 -25
  313. package/dist/components/calcite-list/customElement.d.ts +1 -1
  314. package/dist/components/calcite-list/customElement.js +30 -11
  315. package/dist/components/calcite-list/interfaces.d.ts +2 -6
  316. package/dist/components/calcite-list-item/customElement.d.ts +2 -2
  317. package/dist/components/calcite-list-item/customElement.js +6 -4
  318. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  319. package/dist/components/calcite-loader/customElement.d.ts +1 -1
  320. package/dist/components/calcite-menu/customElement.d.ts +1 -1
  321. package/dist/components/calcite-menu/customElement.js +2 -2
  322. package/dist/components/calcite-menu-item/customElement.d.ts +3 -3
  323. package/dist/components/calcite-menu-item/customElement.js +4 -2
  324. package/dist/components/calcite-meter/customElement.d.ts +7 -1
  325. package/dist/components/calcite-meter/customElement.js +4 -8
  326. package/dist/components/calcite-navigation/customElement.d.ts +2 -2
  327. package/dist/components/calcite-navigation-logo/customElement.d.ts +3 -3
  328. package/dist/components/calcite-navigation-user/customElement.d.ts +1 -1
  329. package/dist/components/calcite-notice/customElement.d.ts +3 -3
  330. package/dist/components/calcite-notice/customElement.js +2 -2
  331. package/dist/components/calcite-pagination/customElement.d.ts +1 -1
  332. package/dist/components/calcite-pagination/customElement.js +1 -1
  333. package/dist/components/calcite-panel/customElement.d.ts +11 -9
  334. package/dist/components/calcite-panel/customElement.js +20 -8
  335. package/dist/components/calcite-popover/customElement.d.ts +2 -2
  336. package/dist/components/calcite-popover/customElement.js +14 -175
  337. package/dist/components/calcite-progress/customElement.js +3 -2
  338. package/dist/components/calcite-radio-button/customElement.d.ts +1 -1
  339. package/dist/components/calcite-radio-button/customElement.js +173 -5
  340. package/dist/components/calcite-radio-button-group/customElement.d.ts +1 -1
  341. package/dist/components/calcite-rating/customElement.d.ts +3 -4
  342. package/dist/components/calcite-rating/customElement.js +12 -18
  343. package/dist/components/calcite-scrim/customElement.js +1 -1
  344. package/dist/components/calcite-segmented-control/customElement.d.ts +3 -4
  345. package/dist/components/calcite-segmented-control/customElement.js +13 -22
  346. package/dist/components/calcite-segmented-control-item/customElement.js +2 -2
  347. package/dist/components/calcite-select/customElement.d.ts +3 -4
  348. package/dist/components/calcite-select/customElement.js +8 -19
  349. package/dist/components/calcite-sheet/customElement.d.ts +2 -2
  350. package/dist/components/calcite-sheet/customElement.js +10 -11
  351. package/dist/components/calcite-shell/customElement.js +1 -1
  352. package/dist/components/calcite-shell-panel/customElement.d.ts +2 -2
  353. package/dist/components/calcite-shell-panel/customElement.js +11 -5
  354. package/dist/components/calcite-slider/customElement.d.ts +3 -4
  355. package/dist/components/calcite-slider/customElement.js +12 -22
  356. package/dist/components/calcite-sort-handle/customElement.d.ts +4 -4
  357. package/dist/components/calcite-sort-handle/customElement.js +44 -17
  358. package/dist/components/calcite-sortable-list/customElement.d.ts +1 -1
  359. package/dist/components/calcite-sortable-list/customElement.js +4 -4
  360. package/dist/components/calcite-split-button/customElement.d.ts +8 -8
  361. package/dist/components/calcite-stepper/customElement.d.ts +2 -2
  362. package/dist/components/calcite-stepper/customElement.js +30 -43
  363. package/dist/components/calcite-stepper-item/customElement.d.ts +1 -1
  364. package/dist/components/calcite-stepper-item/customElement.js +3 -9
  365. package/dist/components/calcite-swatch/customElement.d.ts +1 -1
  366. package/dist/components/calcite-swatch-group/customElement.js +1 -1
  367. package/dist/components/calcite-switch/customElement.d.ts +4 -4
  368. package/dist/components/calcite-switch/customElement.js +9 -8
  369. package/dist/components/calcite-tab/customElement.d.ts +1 -1
  370. package/dist/components/calcite-tab/customElement.js +2 -2
  371. package/dist/components/calcite-tab-nav/customElement.js +4 -2
  372. package/dist/components/calcite-tab-title/customElement.js +6 -4
  373. package/dist/components/calcite-table/customElement.js +1 -1
  374. package/dist/components/calcite-table-cell/customElement.d.ts +2 -2
  375. package/dist/components/calcite-table-cell/customElement.js +3 -2
  376. package/dist/components/calcite-table-header/customElement.d.ts +2 -2
  377. package/dist/components/calcite-table-row/customElement.d.ts +1 -1
  378. package/dist/components/calcite-tabs/customElement.js +1 -1
  379. package/dist/components/calcite-text-area/customElement.d.ts +13 -14
  380. package/dist/components/calcite-text-area/customElement.js +32 -37
  381. package/dist/components/calcite-tile/customElement.d.ts +1 -1
  382. package/dist/components/calcite-time-picker/customElement.d.ts +1 -1
  383. package/dist/components/calcite-time-picker/customElement.js +5 -4
  384. package/dist/components/calcite-tooltip/customElement.d.ts +15 -2
  385. package/dist/components/calcite-tooltip/customElement.js +27 -315
  386. package/dist/components/calcite-tree/customElement.js +1 -1
  387. package/dist/components/calcite-tree-item/customElement.js +5 -4
  388. package/dist/controllers/useSortable.d.ts +7 -0
  389. package/dist/docs/api.json +1 -1
  390. package/dist/docs/docs.json +1 -1
  391. package/dist/docs/supported-browsers.json +1 -1
  392. package/dist/docs/translations.json +1 -1
  393. package/dist/docs/vscode.css-custom-data.json +1 -1
  394. package/dist/docs/vscode.html-custom-data.json +1 -1
  395. package/dist/docs/web-types.json +1 -1
  396. package/dist/loader.js +25 -25
  397. package/dist/types/lumina.d.ts +6 -6
  398. package/dist/types/preact.d.ts +6 -6
  399. package/dist/types/react.d.ts +6 -6
  400. package/dist/types/stencil.d.ts +6 -6
  401. package/package.json +14 -13
  402. package/dist/cdn/256EMMKX.js +0 -2
  403. package/dist/cdn/2ZJ5ADD2.js +0 -2
  404. package/dist/cdn/37APBABQ.js +0 -2
  405. package/dist/cdn/3OIE2RR5.js +0 -2
  406. package/dist/cdn/3TCEXRVB.js +0 -2
  407. package/dist/cdn/43T3HPVW.js +0 -2
  408. package/dist/cdn/4ET37OQN.js +0 -2
  409. package/dist/cdn/4SJVPWEI.js +0 -2
  410. package/dist/cdn/6NGWODBG.js +0 -2
  411. package/dist/cdn/7CLOFSLV.js +0 -2
  412. package/dist/cdn/7CZHE7FZ.js +0 -2
  413. package/dist/cdn/7KCC74EE.js +0 -2
  414. package/dist/cdn/7WPF3NTF.js +0 -2
  415. package/dist/cdn/CPDXUV3S.js +0 -2
  416. package/dist/cdn/EIFNZZAD.js +0 -2
  417. package/dist/cdn/F7SGO63N.js +0 -2
  418. package/dist/cdn/FAOX7WLQ.js +0 -2
  419. package/dist/cdn/FCNCDBSI.js +0 -2
  420. package/dist/cdn/FDGUUC3D.js +0 -2
  421. package/dist/cdn/FRI4RPRX.js +0 -2
  422. package/dist/cdn/G6R56WT6.js +0 -2
  423. package/dist/cdn/GAUJK4Z7.js +0 -2
  424. package/dist/cdn/GDTRICJF.js +0 -2
  425. package/dist/cdn/GFZYTB3O.js +0 -2
  426. package/dist/cdn/GW7IPUQS.js +0 -2
  427. package/dist/cdn/HBVQ77SB.js +0 -2
  428. package/dist/cdn/HD23H6LX.js +0 -2
  429. package/dist/cdn/HVBNJRAQ.js +0 -2
  430. package/dist/cdn/I6CQ5UW5.js +0 -2
  431. package/dist/cdn/ILES2J66.js +0 -2
  432. package/dist/cdn/IR6Z2XSF.js +0 -2
  433. package/dist/cdn/IUAHSZQ6.js +0 -2
  434. package/dist/cdn/JKLX623E.js +0 -2
  435. package/dist/cdn/JLB2FYLL.js +0 -2
  436. package/dist/cdn/JRCEHRYP.js +0 -2
  437. package/dist/cdn/KNDQJ2XX.js +0 -2
  438. package/dist/cdn/L6F7C3O7.js +0 -2
  439. package/dist/cdn/LIZ5IMMJ.js +0 -2
  440. package/dist/cdn/LR57FDVO.js +0 -2
  441. package/dist/cdn/LRL6N22U.js +0 -2
  442. package/dist/cdn/LYKD5N65.js +0 -2
  443. package/dist/cdn/MASQZEFU.js +0 -2
  444. package/dist/cdn/MAXAPKJ5.js +0 -2
  445. package/dist/cdn/MQPFYNQR.js +0 -2
  446. package/dist/cdn/MUGKSK5F.js +0 -2
  447. package/dist/cdn/N6QRZM7N.js +0 -2
  448. package/dist/cdn/NQEVKT6K.js +0 -2
  449. package/dist/cdn/OS7NHPEF.js +0 -2
  450. package/dist/cdn/P7RXOG72.js +0 -2
  451. package/dist/cdn/P7U46JDU.js +0 -2
  452. package/dist/cdn/PBMFDSRI.js +0 -2
  453. package/dist/cdn/PS64W4X6.js +0 -2
  454. package/dist/cdn/Q52SIZ3L.js +0 -2
  455. package/dist/cdn/Q7WYXKFZ.js +0 -2
  456. package/dist/cdn/R3EE76WN.js +0 -2
  457. package/dist/cdn/R6YSSNOG.js +0 -2
  458. package/dist/cdn/RSCA2AM5.js +0 -2
  459. package/dist/cdn/S22OVJTO.js +0 -3
  460. package/dist/cdn/SBPWZDAB.js +0 -2
  461. package/dist/cdn/SFEXJ2YW.js +0 -2
  462. package/dist/cdn/SXVCUXNL.js +0 -2
  463. package/dist/cdn/TPXLAPIE.js +0 -2
  464. package/dist/cdn/TSZAQNPK.js +0 -2
  465. package/dist/cdn/U6LKEFFT.js +0 -2
  466. package/dist/cdn/UAADJQTQ.js +0 -2
  467. package/dist/cdn/ULBA6IRN.js +0 -2
  468. package/dist/cdn/UOIMVKXE.js +0 -2
  469. package/dist/cdn/V4KATS7H.js +0 -2
  470. package/dist/cdn/WAC3IAWB.js +0 -2
  471. package/dist/cdn/WJXZ7BPV.js +0 -2
  472. package/dist/cdn/XSSG2WBN.js +0 -2
  473. package/dist/cdn/YHGC7HRA.js +0 -2
  474. package/dist/cdn/YOYLPMEA.js +0 -2
  475. package/dist/cdn/YUJ33VWR.js +0 -2
  476. package/dist/cdn/Z53AVC5H.js +0 -2
  477. package/dist/cdn/ZQLGBHLZ.js +0 -2
  478. package/dist/cdn/ZXUITROT.js +0 -2
  479. package/dist/chunks/form.js +0 -268
  480. package/dist/chunks/input.js +0 -30
  481. package/dist/utils/form.d.ts +0 -3
  482. package/dist/utils/sortableComponent.d.ts +0 -7
@@ -3,10 +3,10 @@ import { c as customElement } from "../../chunks/runtime.js";
3
3
  import { css, isServer, nothing, html } from "lit";
4
4
  import { createRef, ref } from "lit/directives/ref.js";
5
5
  import { LitElement, createEvent, stringOrBoolean, safeClassMap } from "@arcgis/lumina";
6
+ import { useDirection } from "@arcgis/lumina/controllers";
6
7
  import { u as useFocusTrap } from "../../chunks/useFocusTrap.js";
7
8
  import { l as datePartsFromISO, d as dateFromISO, b as dateFromRange, a as dateToISO, m as datePartsFromLocalizedString, o as dateFromLocalizedString, i as inRange } from "../../chunks/date.js";
8
9
  import { d as defaultMenuPlacement, r as reposition, c as connectFloatingUI, a as disconnectFloatingUI, f as filterValidFlipPlacements, h as hideFloatingUI, F as FloatingCSS } from "../../chunks/floating-ui.js";
9
- import { c as connectForm, d as disconnectForm, s as submitForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
10
10
  import { n as numberKeys } from "../../chunks/key.js";
11
11
  import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
12
12
  import { g as getIconScale } from "../../chunks/component.js";
@@ -16,11 +16,11 @@ import { g as getValueAsDateRange, a as applyLocaleOverride, b as getLocaleData
16
16
  import { g as guid } from "../../chunks/guid.js";
17
17
  import { I as InternalLabel } from "../../chunks/InternalLabel.js";
18
18
  import { V as Validation } from "../../chunks/Validation.js";
19
- import { s as syncHiddenFormInput } from "../../chunks/input.js";
20
19
  import { u as useT9n } from "../../chunks/useT9n.js";
21
20
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
22
21
  import { u as useInteractive } from "../../chunks/useInteractive.js";
23
22
  import { u as useTopLayer } from "../../chunks/useTopLayer.js";
23
+ import { u as useForm } from "../../chunks/useForm.js";
24
24
  const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host .menu-container[popover]{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;display:none}:host .menu-container:popover-open{display:block}:host .menu-container .calcite-floating-ui-anim{position:relative;transition-duration:var(--calcite-floating-ui-transition);transition-property:inset-block-start,left,opacity,display;transition-behavior:allow-discrete;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}:host .menu-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}:host .menu-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}:host .menu-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}:host .menu-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}@starting-style{:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:0}}:host{position:relative;display:inline-block;width:100%;overflow:visible;vertical-align:top;box-shadow:var(--calcite-input-date-picker-shadow, var(--calcite-shadow-none))}:host .menu-container .calcite-floating-ui-anim{box-shadow:var(--calcite-input-date-picker-calendar-shadow, var(--calcite-shadow-sm))}:host([scale=s]){--calcite-internal-date-picker-toggle-spacing: var(--calcite-spacing-sm);--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-internal-date-picker-toggle-spacing) + var(--calcite-spacing-lg))}:host([scale=m]){--calcite-internal-date-picker-toggle-spacing: var(--calcite-spacing-md);--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-internal-date-picker-toggle-spacing) + var(--calcite-spacing-xxl))}:host([scale=l]){--calcite-internal-date-picker-toggle-spacing: var(--calcite-spacing-lg);--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-internal-date-picker-toggle-spacing) + var(--calcite-spacing-xxxl))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.calendar-wrapper{box-shadow:var(--calcite-input-date-picker-calendar-shadow, var(--calcite-shadow-none));transform:translateZ(0)}.input-wrapper{position:relative}.input-wrapper .chevron-icon{color:var(--calcite-input-date-picker-actions-icon-color, var(--calcite-color-text-3))}.input-wrapper:focus-within .chevron-icon,.input-wrapper:active .chevron-icon,.input-wrapper:hover .chevron-icon{color:var(--calcite-input-date-picker-actions-icon-color-hover, var(--calcite-color-text-1))}.input-wrapper:focus-within~.input-wrapper .chevron-icon,.input-wrapper:active~.input-wrapper .chevron-icon,.input-wrapper:hover~.input-wrapper .chevron-icon{color:var(--calcite-input-date-picker-actions-icon-color-hover, var(--calcite-color-text-1))}.toggle-icon{position:absolute;display:flex;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-internal-date-picker-toggle-spacing)}:host([range]) .container{display:flex}:host([range]) .input-container{display:flex;flex:1 1 auto}:host([range]) .input-wrapper{flex:1 1 auto}.divider-container{display:flex;align-items:stretch;border-width:1px;border-left-width:0px;border-right-width:0px;border-style:solid;background-color:var(--calcite-input-date-picker-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-input-date-picker-border-color, var(--calcite-color-border-input))}:host([layout=horizontal]) .divider-container{inline-size:var(--calcite-spacing-px)}.divider{display:inline-block;margin-block:var(--calcite-spacing-xxs);background-color:var(--calcite-input-date-picker-divider-color, var(--calcite-color-border-2));inline-size:var(--calcite-spacing-px)}:host([layout=vertical]) .divider-container{height:1px;width:100%;border-top-width:0px;border-bottom-width:0px;border-inline-start-width:var(--calcite-border-width-sm);border-inline-end-width:var(--calcite-border-width-none);padding-inline:var(--calcite-spacing-md)}:host([layout=vertical]) .divider-container .divider{margin-top:0;margin-bottom:0;height:1px;width:100%}:host([range][layout=vertical]) .input-wrapper{width:100%}:host([range][layout=vertical]) .input-container{flex-direction:column;align-items:flex-start}.menu-container{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown);inline-size:max-content;display:none;max-inline-size:100vw;max-block-size:100vh;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}@starting-style{.menu-container{opacity:0;inset-block-start:0;left:0}}.menu-container[popover]{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;display:none}.menu-container:popover-open{display:block}.menu-container .calcite-floating-ui-anim{position:relative;transition-duration:var(--calcite-floating-ui-transition);transition-property:inset-block-start,left,opacity,display;transition-behavior:allow-discrete;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.menu-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.menu-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.menu-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.menu-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}@starting-style{.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:0}}.input .calcite-input__wrapper{margin-top:0}.vertical-chevron-container{display:flex;align-items:center;border-width:1px;border-style:solid;padding-inline:var(--calcite-spacing-md);background-color:var(--calcite-input-date-picker-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-input-date-picker-border-color, var(--calcite-color-border-input));border-inline-start-width:0}.vertical-chevron-container calcite-icon{color:var(--calcite-input-date-picker-actions-icon-color, var(--calcite-color-text-3))}.vertical-chevron-container calcite-icon:hover{color:var(--calcite-input-date-picker-actions-icon-color-hover, var(--calcite-color-text-1))}:host([range][layout=vertical][scale=s]) .vertical-chevron-container,:host([range][layout=vertical][scale=s]) .divider-container{padding-inline:var(--calcite-spacing-sm)}:host([range][layout=vertical][scale=l]) .vertical-chevron-container,:host([range][layout=vertical][scale=l]) .divider-container{padding-inline:var(--calcite-spacing-lg)}.container:focus-within .vertical-chevron-container calcite-icon,.container:active .vertical-chevron-container calcite-icon,.container:hover .vertical-chevron-container calcite-icon{color:var(--calcite-input-date-picker-actions-icon-color-hover, var(--calcite-color-text-1))}.input{--calcite-input-text-background-color: var(--calcite-input-date-picker-background-color);--calcite-input-text-border-color: var(--calcite-input-date-picker-border-color);--calcite-input-text-corner-radius: var(--calcite-input-date-picker-corner-radius);--calcite-input-text-shadow: var(--calcite-input-date-picker-shadow);--calcite-input-text-icon-color: var(--calcite-input-date-picker-icon-color);--calcite-input-text-text-color: var(--calcite-input-date-picker-text-color);--calcite-input-text-placeholder-text-color: var(--calcite-input-date-picker-placeholder-text-color)}calcite-date-picker{--calcite-date-picker-border-color: var(--calcite-input-date-picker-calendar-border-color);--calcite-date-picker-corner-radius: var(--calcite-input-date-picker-calendar-corner-radius);--calcite-date-picker-range-calendar-divider-color: var(--calcite-input-date-picker-calendar-range-divider-color);--calcite-date-picker-week-header-text-color: var(--calcite-input-date-picker-calendar-text-color);--calcite-date-picker-header-action-background-color: var( --calcite-input-date-picker-calendar-actions-background-color );--calcite-date-picker-header-action-background-color-hover: var( --calcite-input-date-picker-calendar-actions-background-color-hover );--calcite-date-picker-header-action-background-color-press: var( --calcite-input-date-picker-calendar-actions-background-color-press );--calcite-date-picker-header-action-text-color: var(--calcite-input-date-picker-calendar-actions-text-color);--calcite-date-picker-header-action-text-color-press: var( --calcite-input-date-picker-calendar-actions-text-color-press );--calcite-date-picker-year-text-color: var(--calcite-input-date-picker-calendar-text-color);--calcite-date-picker-month-select-text-color: var(--calcite-input-date-picker-calendar-month-select-text-color);--calcite-date-picker-month-select-icon-color: var(--calcite-input-date-picker-calendar-icon-color);--calcite-date-picker-month-select-icon-color-hover: var(--calcite-input-date-picker-calendar-icon-color-hover);--calcite-date-picker-day-background-color: var(--calcite-input-date-picker-calendar-day-background-color);--calcite-date-picker-day-background-color-hover: var( --calcite-input-date-picker-calendar-day-background-color-hover );--calcite-date-picker-day-background-color-selected: var( --calcite-input-date-picker-calendar-selected-background-color );--calcite-date-picker-day-text-color: var(--calcite-input-date-picker-calendar-day-text-color);--calcite-date-picker-day-text-color-hover: var(--calcite-input-date-picker-calendar-day-text-color-hover);--calcite-date-picker-day-text-color-selected: var(--calcite-input-date-picker-calendar-day-text-color-selected);--calcite-date-picker-current-day-text-color: var( --calcite-input-date-picker-calendar-current-day-text-color, var(--calcite-input-date-picker-calendar-day-current-text-color) );--calcite-date-picker-day-range-text-color: var(--calcite-input-date-picker-calendar-day-range-text-color);--calcite-date-picker-day-range-background-color: var( --calcite-input-date-picker-calendar-day-range-background-color );--calcite-date-picker-day-outside-range-background-color-hover: var( --calcite-input-date-picker-calendar-day-outside-range-background-color-hover );--calcite-date-picker-day-outside-range-text-color-hover: var( --calcite-input-date-picker-calendar-day-outside-range-text-color-hover )}.assistive-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}:host([hidden]){display:none}[hidden]{display:none}`;
25
25
  const CSS = {
26
26
  assistiveText: "assistive-text",
@@ -72,6 +72,7 @@ class InputDatePicker extends LitElement {
72
72
  super();
73
73
  this.commonDateSeparators = [".", "-", "/"];
74
74
  this.dialogId = IDS.dialog(guid());
75
+ this.direction = useDirection();
75
76
  this.endInputRef = createRef();
76
77
  this.focusOnOpen = false;
77
78
  this.focusTrap = useFocusTrap({
@@ -93,6 +94,9 @@ class InputDatePicker extends LitElement {
93
94
  }
94
95
  }
95
96
  })(this);
97
+ this.formSupport = useForm({
98
+ inputType: "date"
99
+ })(this);
96
100
  this.transitionProp = "opacity";
97
101
  this.placeholderTextId = IDS.placeholder(guid());
98
102
  this.rangeStartValueChangedByUser = false;
@@ -123,19 +127,6 @@ class InputDatePicker extends LitElement {
123
127
  this.scale = "m";
124
128
  this.status = "idle";
125
129
  this.topLayerDisabled = false;
126
- this.validity = {
127
- valid: false,
128
- badInput: false,
129
- customError: false,
130
- patternMismatch: false,
131
- rangeOverflow: false,
132
- rangeUnderflow: false,
133
- stepMismatch: false,
134
- tooLong: false,
135
- tooShort: false,
136
- typeMismatch: false,
137
- valueMissing: false
138
- };
139
130
  this.calciteInputDatePickerBeforeClose = createEvent({ cancelable: false });
140
131
  this.calciteInputDatePickerBeforeOpen = createEvent({ cancelable: false });
141
132
  this.calciteInputDatePickerChange = createEvent({ cancelable: false });
@@ -146,7 +137,10 @@ class InputDatePicker extends LitElement {
146
137
  this.handleDateTimeFormatChange();
147
138
  }
148
139
  static {
149
- this.properties = { datePickerActiveDate: [16, {}, { state: true }], focusedInput: [16, {}, { state: true }], localeData: [16, {}, { state: true }], calendars: [11, {}, { type: Number, reflect: true }], disabled: [7, {}, { reflect: true, type: Boolean }], flipPlacements: [0, {}, { attribute: false }], focusTrapDisabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], headingLevel: [11, {}, { type: Number, reflect: true }], label: 1, labelText: 1, layout: [3, {}, { reflect: true }], max: [3, {}, { reflect: true }], maxAsDate: [0, {}, { attribute: false }], messageOverrides: [0, {}, { attribute: false }], min: [3, {}, { reflect: true }], minAsDate: [0, {}, { attribute: false }], monthStyle: 1, name: [3, {}, { reflect: true }], numberingSystem: [3, {}, { reflect: true }], open: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: [3, {}, { reflect: true }], placement: [3, {}, { reflect: true }], proximitySelectionDisabled: [5, {}, { type: Boolean }], range: [7, {}, { reflect: true, type: Boolean }], readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [0, {}, { attribute: false }], value: 1, valueAsDate: [0, {}, { attribute: false }] };
140
+ this.properties = { datePickerActiveDate: [16, {}, { state: true }], focusedInput: [16, {}, { state: true }], localeData: [16, {}, { state: true }], calendars: [11, {}, { type: Number, reflect: true }], disabled: [7, {}, { reflect: true, type: Boolean }], flipPlacements: [0, {}, { attribute: false }], focusTrapDisabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], headingLevel: [11, {}, { type: Number, reflect: true }], label: 1, labelText: 1, layout: [3, {}, { reflect: true }], max: [3, {}, { reflect: true }], maxAsDate: [0, {}, { attribute: false }], messageOverrides: [0, {}, { attribute: false }], min: [3, {}, { reflect: true }], minAsDate: [0, {}, { attribute: false }], monthStyle: 1, name: [3, {}, { reflect: true }], numberingSystem: [3, {}, { reflect: true }], open: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: [3, {}, { reflect: true }], placement: [3, {}, { reflect: true }], proximitySelectionDisabled: [5, {}, { type: Boolean }], range: [7, {}, { reflect: true, type: Boolean }], readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [32, {}, { readOnly: true, attribute: false }], value: 1, valueAsDate: [0, {}, { attribute: false }] };
141
+ }
142
+ static {
143
+ this.formAssociated = true;
150
144
  }
151
145
  static {
152
146
  this.shadowRootOptions = { mode: "open", delegatesFocus: true };
@@ -168,6 +162,7 @@ class InputDatePicker extends LitElement {
168
162
  async reposition(delayed = false) {
169
163
  const { floatingEl, referenceEl, placement, overlayPositioning, filteredFlipPlacements } = this;
170
164
  return reposition(this, {
165
+ direction: this.direction,
171
166
  floatingEl,
172
167
  referenceEl,
173
168
  overlayPositioning,
@@ -210,7 +205,6 @@ class InputDatePicker extends LitElement {
210
205
  }
211
206
  }
212
207
  connectLabel(this);
213
- connectForm(this);
214
208
  this.setFilteredPlacements();
215
209
  connectFloatingUI(this);
216
210
  }
@@ -262,7 +256,6 @@ class InputDatePicker extends LitElement {
262
256
  disconnectedCallback() {
263
257
  super.disconnectedCallback();
264
258
  disconnectLabel(this);
265
- disconnectForm(this);
266
259
  disconnectFloatingUI(this);
267
260
  }
268
261
  handleDisabledAndReadOnlyChange(value) {
@@ -387,9 +380,6 @@ class InputDatePicker extends LitElement {
387
380
  this.datePickerEl?.reset();
388
381
  this.topLayer.hide();
389
382
  }
390
- syncHiddenFormInput(input) {
391
- syncHiddenFormInput("date", this, input);
392
- }
393
383
  blurHandler() {
394
384
  this.open = false;
395
385
  }
@@ -441,15 +431,31 @@ class InputDatePicker extends LitElement {
441
431
  }
442
432
  const targetHasSelect = event.composedPath().some((el) => el.tagName === "CALCITE-SELECT");
443
433
  if (key === "Enter") {
444
- event.preventDefault();
434
+ const preCommitValue = this.value;
445
435
  this.commitValue();
446
- if (this.shouldFocusRangeEnd()) {
447
- this.endInputRef.value?.setFocus();
448
- } else if (this.shouldFocusRangeStart()) {
449
- this.startInputRef.value?.setFocus();
436
+ const focusRangeEnd = this.shouldFocusRangeEnd();
437
+ const focusRangeStart = !focusRangeEnd && this.shouldFocusRangeStart();
438
+ if (focusRangeEnd || focusRangeStart) {
439
+ event.preventDefault();
440
+ if (focusRangeEnd) {
441
+ this.endInputRef.value?.setFocus();
442
+ } else if (focusRangeStart) {
443
+ this.startInputRef.value?.setFocus();
444
+ }
445
+ return;
450
446
  }
451
- if (submitForm(this)) {
447
+ if (this.open) {
452
448
  this.restoreInputFocus(true);
449
+ event.preventDefault();
450
+ } else {
451
+ const formActive = this.formSupport.active;
452
+ const handledKey = preCommitValue !== this.value || formActive;
453
+ if (handledKey) {
454
+ event.preventDefault();
455
+ }
456
+ if (formActive) {
457
+ this.formSupport.requestSubmit();
458
+ }
453
459
  }
454
460
  } else if ((key === "ArrowDown" || key === "ArrowUp") && !targetHasSelect) {
455
461
  this.open = true;
@@ -663,7 +669,7 @@ class InputDatePicker extends LitElement {
663
669
  [CSS.inputNoTopBorder]: this.layout === "vertical" && this.range,
664
670
  [CSS.inputNoLeftBorder]: this.layout === "horizontal" && this.range,
665
671
  [CSS.inputNoRightBorder]: this.layout === "vertical" && this.range
666
- })} .disabled=${disabled} .icon=${ICONS.calendar} .label=${this.messages.endDate} @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextBlur=${this.calciteInternalInputBlurHandler} @calciteInternalInputTextFocus=${this.endInputFocus} .placeholder=${this.localeData?.placeholder} .readOnly=${readOnly} role=combobox .scale=${this.scale} .status=${this.status} ${ref(this.endInputRef)}></calcite-input-text>${!this.readOnly && this.layout === "horizontal" && this.renderToggleIcon(this.open) || ""}</div>` || ""}</div>${this.range && this.layout === "vertical" && html`<div class=${safeClassMap(CSS.verticalChevronContainer)}><calcite-icon .icon=${this.open ? ICONS.chevronUp : ICONS.chevronDown} .scale=${getIconScale(this.scale)}></calcite-icon></div>` || ""}</div>${HiddenFormInputSlot({ component: this })}${this.validationMessage && this.status === "invalid" ? Validation({ icon: this.validationIcon, id: IDS.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
672
+ })} .disabled=${disabled} .icon=${ICONS.calendar} .label=${this.messages.endDate} @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextBlur=${this.calciteInternalInputBlurHandler} @calciteInternalInputTextFocus=${this.endInputFocus} .placeholder=${this.localeData?.placeholder} .readOnly=${readOnly} role=combobox .scale=${this.scale} .status=${this.status} ${ref(this.endInputRef)}></calcite-input-text>${!this.readOnly && this.layout === "horizontal" && this.renderToggleIcon(this.open) || ""}</div>` || ""}</div>${this.range && this.layout === "vertical" && html`<div class=${safeClassMap(CSS.verticalChevronContainer)}><calcite-icon .icon=${this.open ? ICONS.chevronUp : ICONS.chevronDown} .scale=${getIconScale(this.scale)}></calcite-icon></div>` || ""}</div>${this.validationMessage && this.status === "invalid" ? Validation({ icon: this.validationIcon, id: IDS.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
667
673
  }
668
674
  renderToggleIcon(open) {
669
675
  return html`<span class=${safeClassMap(CSS.toggleIcon)} tabindex=-1><calcite-icon class=${safeClassMap(CSS.chevronIcon)} .icon=${open ? ICONS.chevronUp : ICONS.chevronDown} .scale=${getIconScale(this.scale)}></calcite-icon></span>`;
@@ -5,7 +5,7 @@ import type { IconName } from "../calcite-icon/interfaces.js";
5
5
 
6
6
  /**
7
7
  * @deprecated in v5.0.0, removal target v6.0.0 - Use the `calcite-notice` component with `appearance="transparent"` instead.
8
- * @cssproperty [--calcite-input-message-spacing-value] - [Deprecated] Use `--calcite-input-message-spacing`. Specifies the margin spacing at the top of the component.
8
+ * @cssproperty [--calcite-input-message-spacing-value] - [Deprecated] in v3.2.0, removal target v6.0.0 - Use `--calcite-input-message-spacing` instead. Specifies the margin spacing at the top of the component.
9
9
  * @cssproperty [--calcite-input-message-spacing] - Specifies the component's top margin spacing.
10
10
  * @cssproperty [--calcite-input-message-icon-color] - Specifies the component's icon color.
11
11
  * @slot - A slot for adding text.
@@ -2,7 +2,7 @@
2
2
  import { c as customElement } from "../../chunks/runtime.js";
3
3
  import { css, html } from "lit";
4
4
  import { LitElement, stringOrBoolean, setAttribute, safeClassMap } from "@arcgis/lumina";
5
- import { d as setRequestedIcon } from "../../chunks/dom.js";
5
+ import { b as setRequestedIcon } from "../../chunks/dom.js";
6
6
  const StatusIconDefaults = {
7
7
  valid: "check-circle",
8
8
  invalid: "exclamation-mark-triangle",
@@ -1,7 +1,6 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
3
  import type { Alignment, Scale, Status } from "../interfaces.js";
4
- import type { MutableValidityState } from "../../utils/form.js";
5
4
  import type { NumberingSystem } from "../../utils/locale.js";
6
5
  import type { InputPlacement } from "../calcite-input/interfaces.js";
7
6
  import type { IconName } from "../calcite-icon/interfaces.js";
@@ -41,7 +40,7 @@ export abstract class InputNumber extends LitElement {
41
40
  * Specifies the type of content to autocomplete, for use in forms.
42
41
  * Read the native attribute's documentation on MDN for more info.
43
42
  *
44
- * @mdn [autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
43
+ * @see [MDN - autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
45
44
  */
46
45
  accessor autocomplete: AutoFill;
47
46
  /**
@@ -54,7 +53,7 @@ export abstract class InputNumber extends LitElement {
54
53
  * When `true`, prevents interaction and decreases the component's opacity.
55
54
  *
56
55
  * @default false
57
- * @mdn [disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled)
56
+ * @see [MDN - disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled)
58
57
  */
59
58
  accessor disabled: boolean;
60
59
  /**
@@ -101,7 +100,7 @@ export abstract class InputNumber extends LitElement {
101
100
  * When the component resides in a form,
102
101
  * specifies the maximum `value`.
103
102
  *
104
- * @mdn [max](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max)
103
+ * @see [MDN - max](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max)
105
104
  */
106
105
  accessor max: number;
107
106
  /**
@@ -109,7 +108,7 @@ export abstract class InputNumber extends LitElement {
109
108
  * specifies the maximum length of text for the component's `value`.
110
109
  *
111
110
  * @deprecated in v3.0.0, removal target v6.0.0 - This property has no effect on the component.
112
- * @mdn [maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength)
111
+ * @see [MDN - maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength)
113
112
  */
114
113
  accessor maxLength: number;
115
114
  /** Overrides individual strings used by the component. */
@@ -122,7 +121,7 @@ export abstract class InputNumber extends LitElement {
122
121
  * When the component resides in a form,
123
122
  * specifies the minimum `value`.
124
123
  *
125
- * @mdn [min](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min)
124
+ * @see [MDN - min](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min)
126
125
  */
127
126
  accessor min: number;
128
127
  /**
@@ -130,7 +129,7 @@ export abstract class InputNumber extends LitElement {
130
129
  * specifies the minimum length of text for the component's `value`.
131
130
  *
132
131
  * @deprecated in v3.0.0, removal target v6.0.0 - This property has no effect on the component.
133
- * @mdn [minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength)
132
+ * @see [MDN - minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength)
134
133
  */
135
134
  accessor minLength: number;
136
135
  /**
@@ -138,7 +137,7 @@ export abstract class InputNumber extends LitElement {
138
137
  *
139
138
  * Required to pass the component's `value` on form submission.
140
139
  *
141
- * @mdn [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name)
140
+ * @see [MDN - name](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name)
142
141
  */
143
142
  accessor name: string;
144
143
  /**
@@ -152,7 +151,7 @@ export abstract class InputNumber extends LitElement {
152
151
  /**
153
152
  * Specifies the component's placeholder text.
154
153
  *
155
- * @mdn [placeholder](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder)
154
+ * @see [MDN - placeholder](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder)
156
155
  */
157
156
  accessor placeholder: string;
158
157
  /** Specifies text to display at the start of the component. */
@@ -161,7 +160,7 @@ export abstract class InputNumber extends LitElement {
161
160
  * When `true`, the component's `value` can be read, but cannot be modified.
162
161
  *
163
162
  * @default false
164
- * @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
163
+ * @see [MDN - readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
165
164
  */
166
165
  accessor readOnly: boolean;
167
166
  /**
@@ -186,7 +185,7 @@ export abstract class InputNumber extends LitElement {
186
185
  /**
187
186
  * Specifies the granularity that the component's `value` must adhere to.
188
187
  *
189
- * @mdn [step](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step)
188
+ * @see [MDN - step](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step)
190
189
  */
191
190
  accessor step: number | "any";
192
191
  /** Specifies text to display at the end of the component. */
@@ -198,9 +197,9 @@ export abstract class InputNumber extends LitElement {
198
197
  /**
199
198
  * The component's current validation state.
200
199
  *
201
- * @mdn [ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)
200
+ * @see [MDN - ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)
202
201
  */
203
- get validity(): MutableValidityState;
202
+ get validity(): ValidityState;
204
203
  /** The component's value. */
205
204
  accessor value: string;
206
205
  /** Selects the text of the component's `value`. */
@@ -209,7 +208,7 @@ export abstract class InputNumber extends LitElement {
209
208
  * Sets focus on the component.
210
209
  *
211
210
  * @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
212
- * @mdn [focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
211
+ * @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
213
212
  */
214
213
  setFocus(options?: FocusOptions): Promise<void>;
215
214
  /** Fires each time a new `value` is typed and committed. */
@@ -5,19 +5,19 @@ import { keyed } from "lit/directives/keyed.js";
5
5
  import { css, html, nothing } from "lit";
6
6
  import { createRef, ref } from "lit/directives/ref.js";
7
7
  import { LitElement, createEvent, stringOrBoolean, safeClassMap } from "@arcgis/lumina";
8
- import { useWatchAttributes } from "@arcgis/lumina/controllers";
9
- import { d as setRequestedIcon, k as isPrimaryPointerButton, g as getElementDir } from "../../chunks/dom.js";
10
- import { c as connectForm, i as internalHiddenInputInputEvent, d as disconnectForm, s as submitForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
8
+ import { useWatchAttributes, useDirection } from "@arcgis/lumina/controllers";
9
+ import { b as setRequestedIcon, j as isPrimaryPointerButton } from "../../chunks/dom.js";
11
10
  import { n as numberKeys } from "../../chunks/key.js";
12
11
  import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
13
12
  import { i as isValidNumber, n as numberStringFormatter, B as BigDecimal, p as parseNumberString, s as sanitizeNumberString, a as addLocalizedTrailingDecimalZeros } from "../../chunks/locale.js";
14
13
  import { g as getIconScale } from "../../chunks/component.js";
14
+ import { C as ClearButton } from "../../chunks/ClearButton.js";
15
15
  import { I as InternalLabel } from "../../chunks/InternalLabel.js";
16
16
  import { V as Validation } from "../../chunks/Validation.js";
17
- import { s as syncHiddenFormInput } from "../../chunks/input.js";
18
17
  import { u as useT9n } from "../../chunks/useT9n.js";
19
18
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
20
19
  import { u as useInteractive } from "../../chunks/useInteractive.js";
20
+ import { u as useForm } from "../../chunks/useForm.js";
21
21
  const CSS = {
22
22
  loader: "loader",
23
23
  clearButton: "clear-button",
@@ -41,7 +41,6 @@ const SLOTS = {
41
41
  action: "action"
42
42
  };
43
43
  const ICONS = {
44
- clear: "x",
45
44
  chevronUp: "chevron-up",
46
45
  chevronDown: "chevron-down"
47
46
  };
@@ -50,28 +49,22 @@ const DIRECTION = {
50
49
  down: "down"
51
50
  };
52
51
  const NUDGE_DELAY_IN_MS = 150;
53
- const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);block-size:var(--calcite-input-number-height, 1.5rem)}:host([scale=s]) input{padding-inline:var(--calcite-spacing-sm)}:host([scale=s]) .has-prefix input{padding-inline-start:var(--calcite-spacing-xxs)}:host([scale=s]) .prefix{padding-inline:var(--calcite-spacing-sm) var(--calcite-spacing-xxs)}:host([scale=s]) .has-suffix input{padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=s]) .suffix{padding-inline:var(--calcite-spacing-xxs) var(--calcite-spacing-sm)}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper{block-size:var(--calcite-input-number-height, 1.5rem)}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);block-size:var(--calcite-input-number-height, 2rem)}:host([scale=m]) input{padding-inline:var(--calcite-spacing-md)}:host([scale=m]) .has-prefix input{padding-inline-start:var(--calcite-spacing-xs)}:host([scale=m]) .prefix{padding-inline:var(--calcite-spacing-md) var(--calcite-spacing-xs)}:host([scale=m]) .has-suffix input{padding-inline-end:var(--calcite-spacing-xs)}:host([scale=m]) .suffix{padding-inline:var(--calcite-spacing-xs) var(--calcite-spacing-md)}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper{block-size:var(--calcite-input-number-height, 2rem)}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);block-size:var(--calcite-input-number-height, 2.75rem)}:host([scale=l]) input{padding-inline:var(--calcite-spacing-lg)}:host([scale=l]) .has-prefix input{padding-inline-start:var(--calcite-spacing-sm)}:host([scale=l]) .prefix{padding-inline:var(--calcite-spacing-lg) var(--calcite-spacing-sm)}:host([scale=l]) .has-suffix input{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=l]) .suffix{padding-inline:var(--calcite-spacing-sm) var(--calcite-spacing-lg)}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper{block-size:var(--calcite-input-number-height, 2.75rem)}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}input{transition:var(--calcite-animation-timing),block-size 0,outline-offset 0s;-webkit-appearance:none;position:relative;margin:0;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;text-overflow:ellipsis;font-family:inherit;font-weight:var(--calcite-font-weight-normal);background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-number-text-color, var(--calcite-color-text-1));border-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp));text-align:var(--calcite-internal-input-number-alignment)}input:placeholder-shown{text-overflow:ellipsis}input{border-width:1px;border-style:solid;border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input))}input::placeholder,input:-ms-input-placeholder,input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-number-placeholder-text-color, var(--calcite-color-text-3))}input:focus{border-color:var(--calcite-color-brand);color:var(--calcite-input-number-text-color-focus, var(--calcite-color-text-1))}input[readonly]{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-input-number-background-color, var(--calcite-color-background))}input[readonly]:focus{color:var(--calcite-input-number-text-color-focus, var(--calcite-color-text-1))}:host([read-only]) .prefix,:host([read-only]) .suffix{background-color:var(--calcite-input-number-background-color, var(--calcite-color-background))}input{outline-color:transparent}input:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([status=invalid]) input{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) input:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .icon{inset-inline-start:.5rem}:host([scale=m]) .icon{inset-inline-start:.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center;isolation:isolate}.icon{pointer-events:none;position:absolute;z-index:var(--calcite-z-index);display:block;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;--calcite-icon-color: var( --calcite-input-number-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-text-3)) )}.clear-button{pointer-events:initial;order:4;margin:0;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;outline-color:transparent;border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1));border-inline-start-width:0px}.clear-button calcite-icon{--calcite-icon-color: var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.clear-button:hover{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.clear-button:hover calcite-icon{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;--calcite-icon-color: var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.clear-button:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.clear-button:active calcite-icon{--calcite-icon-color: var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.clear-button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.has-suffix .clear-button{border-inline-end-width:0}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}.loader calcite-progress{--calcite-progress-background-color: var(--calcite-input-loading-background-color);--calcite-progress-fill-color: var(--calcite-input-loading-fill-color)}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;line-height:1;font-weight:var(--calcite-font-weight-regular);border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input))}.prefix{order:2;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto);background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-prefix-text-color, var(--calcite-color-text-2))}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto);background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-suffix-text-color, var(--calcite-color-text-2))}:host([alignment=start]){--calcite-internal-input-number-alignment: start}:host([alignment=center]){--calcite-internal-input-number-alignment: center}:host([alignment=end]){--calcite-internal-input-number-alignment: end}.number-button-wrapper{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:1;max-block-size:100%;min-block-size:100%;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-inline-start-width:1px;border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:5}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:1px;border-style:solid;padding-block:0px;padding-inline:.5rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-inline-start-width:0px;border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1))}.number-button-item calcite-icon{pointer-events:none;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;--calcite-icon-color: var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.number-button-item:disabled{pointer-events:none}.number-button-item:hover{background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.number-button-item:hover calcite-icon{--calcite-icon-color: var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.number-button-item:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.number-button-item:active calcite-icon{--calcite-icon-color: var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.prefix,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=down]{border-start-start-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}:host([read-only]) .suffix,:host([read-only]) .wrapper:not(.has-suffix) .clear-button,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=up]{border-end-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px;border-end-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]{border-start-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}:host(:not([read-only])[number-button-type=horizontal]) .prefix,:host(:not([read-only])[number-button-type=horizontal]) input,.has-prefix input{border-start-start-radius:0;border-end-start-radius:0}:host(:not([status=invalid])) .has-prefix input{border-inline-start-width:0}:host(:not([status=invalid])) .has-suffix input{border-inline-end-width:0}.has-suffix input,:host .clearable input,:host(:not([read-only])) input,:host .suffix,:host .clear-button{border-start-end-radius:0;border-end-end-radius:0}:host .wrapper{position:relative;display:flex;flex-direction:row;align-items:center}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-placeholder-text-color, var(--calcite-color-text-3))}`;
52
+ const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;--calcite-internal-input-number-focus-outline-color: var( --calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)) );--calcite-internal-input-number-number-button-item-height: auto}:host([scale=s]){--calcite-internal-input-number-icon-padding-inline: var(--calcite-spacing-fixed-sm)}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);block-size:var(--calcite-input-number-height, 1.5rem)}:host([scale=s]) input{padding-inline:var(--calcite-spacing-sm)}:host([scale=s]) .has-prefix input{padding-inline-start:var(--calcite-spacing-xxs)}:host([scale=s]) .prefix{padding-inline:var(--calcite-spacing-sm) var(--calcite-spacing-xxs)}:host([scale=s]) .has-suffix input{padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=s]) .suffix{padding-inline:var(--calcite-spacing-xxs) var(--calcite-spacing-sm)}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper{block-size:var(--calcite-input-number-height, 1.5rem)}:host([scale=s]) .clear-button{block-size:var(--calcite-spacing-xxl)}:host([scale=s]):host([number-button-type=horizontal]){--calcite-internal-input-number-number-button-item-horizontal-padding: var(--calcite-spacing-xxs)}:host([scale=s]):host([number-button-type=vertical]){--calcite-internal-input-number-number-button-item-height: 8px;--calcite-internal-input-number-number-button-item-horizontal-padding: var(--calcite-spacing-xxs);--calcite-internal-input-number-number-button-item-vertical-padding: 3px}:host([scale=m]){--calcite-internal-input-number-icon-padding-inline: var(--calcite-spacing-fixed-md)}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);block-size:var(--calcite-input-number-height, 2rem)}:host([scale=m]) input{padding-inline:var(--calcite-spacing-md)}:host([scale=m]) .has-prefix input{padding-inline-start:var(--calcite-spacing-xs)}:host([scale=m]) .prefix{padding-inline:var(--calcite-spacing-md) var(--calcite-spacing-xs)}:host([scale=m]) .has-suffix input{padding-inline-end:var(--calcite-spacing-xs)}:host([scale=m]) .suffix{padding-inline:var(--calcite-spacing-xs) var(--calcite-spacing-md)}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper{block-size:var(--calcite-input-number-height, 2rem)}:host([scale=m]):host([number-button-type=horizontal]){--calcite-internal-input-number-number-button-item-horizontal-padding: var(--calcite-space-sm)}:host([scale=m]):host([number-button-type=vertical]){--calcite-internal-input-number-number-button-item-height: 11px;--calcite-internal-input-number-number-button-item-horizontal-padding: var(--calcite-space-sm);--calcite-internal-input-number-number-button-item-vertical-padding: var(--calcite-space-2xs)}:host([scale=l]){--calcite-internal-input-number-icon-padding-inline: var(--calcite-spacing-fixed-lg)}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);block-size:var(--calcite-input-number-height, 2.75rem)}:host([scale=l]) input{padding-inline:var(--calcite-spacing-lg)}:host([scale=l]) .has-prefix input{padding-inline-start:var(--calcite-spacing-sm)}:host([scale=l]) .prefix{padding-inline:var(--calcite-spacing-lg) var(--calcite-spacing-sm)}:host([scale=l]) .has-suffix input{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=l]) .suffix{padding-inline:var(--calcite-spacing-sm) var(--calcite-spacing-lg)}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper{block-size:var(--calcite-input-number-height, 2.75rem)}:host([scale=l]):host([number-button-type=horizontal]){--calcite-internal-input-number-number-button-item-horizontal-padding: var(--calcite-spacing-sm-plus)}:host([scale=l]):host([number-button-type=vertical]){--calcite-internal-input-number-number-button-item-height: 16px;--calcite-internal-input-number-number-button-item-horizontal-padding: var(--calcite-spacing-sm-plus);--calcite-internal-input-number-number-button-item-vertical-padding: 5px}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}input{transition:var(--calcite-animation-timing),block-size 0,outline-offset 0s;-webkit-appearance:none;position:relative;margin:0;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;text-overflow:ellipsis;font-family:inherit;font-weight:var(--calcite-font-weight-normal);outline:none;background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-number-text-color, var(--calcite-color-text-1));text-align:var(--calcite-internal-input-number-alignment)}input:placeholder-shown{text-overflow:ellipsis}.element-wrapper,input{border-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}.has-prefix input,.element-wrapper:has(.icon) input{border-start-start-radius:0;border-end-start-radius:0}.element-wrapper:has(.number-button-item--horizontal[data-adjustment=down]) input,.has-prefix input,.element-wrapper:has(.icon) input{border-inline-start-width:0}.element-wrapper:has(.clear-button) input,.has-suffix input,.element-wrapper:has(.number-button-item--horizontal[data-adjustment=up]) input,.element-wrapper:has(.number-button-item) input{border-inline-end-width:0}.has-suffix input,.clearable input,:host(:not([read-only])) input,.suffix,.clear-button{border-start-end-radius:0;border-end-end-radius:0}.has-prefix :is(.prefix:first-child,.loader+.prefix),:host([number-button-type=horizontal]) .number-button-item[data-adjustment=down],.element-wrapper:has(.icon) :is(.icon:first-child,.loader+.icon){border-start-start-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}:host([read-only]) .suffix,:host([read-only]) .wrapper:not(.has-suffix) .clear-button,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=up]{border-end-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px;border-end-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]{border-start-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}:host(:not([read-only])[number-button-type=horizontal]) .prefix,:host(:not([read-only])[number-button-type=horizontal]) input,.has-prefix input{border-start-start-radius:0;border-end-start-radius:0}input{border-width:1px;border-style:solid;border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input))}input::placeholder,input:-ms-input-placeholder,input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-number-placeholder-text-color, var(--calcite-color-text-3))}input:focus{border-color:var(--calcite-color-brand);color:var(--calcite-input-number-text-color-focus, var(--calcite-color-text-1))}input[readonly]{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-input-number-background-color, var(--calcite-color-background))}input[readonly]:focus{color:var(--calcite-input-number-text-color-focus, var(--calcite-color-text-1))}:host([read-only]) .prefix,:host([read-only]) .icon,:host([read-only]) .clear-button,:host([read-only]) .suffix{background-color:var(--calcite-input-number-background-color, var(--calcite-color-background))}.element-wrapper{position:relative;display:inline-flex;flex:1 1 0%;align-items:center;order:3;isolation:isolate}.element-wrapper:has(input:focus){outline:var(--calcite-border-width-md) solid var(--calcite-internal-input-number-focus-outline-color);outline-offset:calc(var(--calcite-border-width-sm) * -2)}.element-wrapper:has(input:focus) input{z-index:calc(var(--calcite-z-index) * -1)}:host([status=invalid]) .prefix,:host([status=invalid]) .icon,:host([status=invalid]) input,:host([status=invalid]) .clear-button,:host([status=invalid]) .suffix,:host([status=invalid]) .number-button-item{border-color:var(--calcite-color-status-danger)}:host([status=invalid]){--calcite-internal-input-number-focus-outline-color: var(--calcite-color-status-danger)}.icon{box-sizing:border-box;display:flex;align-self:stretch;border-width:var(--calcite-border-width-sm);border-style:solid;border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input));border-inline-end-width:var(--calcite-border-width-none);background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1));--calcite-icon-color: var( --calcite-input-number-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-text-3)) );align-items:center;padding-inline-start:var(--calcite-internal-input-number-icon-padding-inline)}.element-wrapper:has(.number-button-item--horizontal[data-adjustment=down]) .icon,.has-prefix .icon{border-inline-start-width:0}.clear-button{box-sizing:border-box;display:flex;align-self:stretch;order:4;border-width:var(--calcite-border-width-sm);border-style:solid;border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input));border-inline-start-width:var(--calcite-border-width-none);background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1))}.has-suffix .clear-button,.element-wrapper:has(.number-button-item.number-button-item--horizontal[data-adjustment=up]) .clear-button,.element-wrapper:has(.number-button-item) .clear-button{border-inline-end-width:0}.loader{inset-block-start:var(--calcite-border-width-sm);inset-inline:var(--calcite-border-width-sm);pointer-events:none;position:absolute;display:block}.loader calcite-progress{--calcite-progress-background-color: var(--calcite-input-loading-background-color);--calcite-progress-fill-color: var(--calcite-input-loading-fill-color)}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;line-height:1;font-weight:var(--calcite-font-weight-regular);border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input))}.prefix{order:0;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto);background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-prefix-text-color, var(--calcite-color-text-2))}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto);background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-suffix-text-color, var(--calcite-color-text-2))}.element-wrapper:has(.number-button-item--horizontal[data-adjustment=down]) .prefix{border-inline-start-width:var(--calcite-border-width-none)}.element-wrapper:has(.number-button-item--horizontal[data-adjustment=up]) .suffix,.element-wrapper:has(.number-button-item) .suffix{border-inline-end-width:var(--calcite-border-width-none)}:host([alignment=start]){--calcite-internal-input-number-alignment: start}:host([alignment=center]){--calcite-internal-input-number-alignment: center}:host([alignment=end]){--calcite-internal-input-number-alignment: end}.number-button-wrapper{pointer-events:none;box-sizing:border-box;display:flex;flex-direction:column;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;order:6}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-action{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-action{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{max-block-size:100%;min-block-size:100%;align-self:stretch;order:1}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-action,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-action{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-inline-start-width:var(--calcite-border-width-sm);border-inline-end-width:0px;order:0;padding-inline-start:var(--calcite-internal-input-number-number-button-item-horizontal-padding)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:5;padding-inline-end:var(--calcite-internal-input-number-number-button-item-horizontal-padding)}:host([number-button-type=vertical]) .number-button-item{padding-inline-end:var(--calcite-internal-input-number-number-button-item-horizontal-padding)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]{border-start-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp));border-block-end-width:var(--calcite-border-width-none);padding-block-start:var(--calcite-internal-input-number-number-button-item-vertical-padding)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px;border-end-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp));padding-block-end:var(--calcite-internal-input-number-number-button-item-vertical-padding)}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:var(--calcite-border-width-sm);border-style:solid;border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1));border-inline-start-width:var(--calcite-border-width-none)}.number-button-item:hover calcite-action{--calcite-action-background-color: var( --calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2) );--calcite-action-text-color: var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.number-button-item:active calcite-action{--calcite-action-background-color: var( --calcite-input-actions-background-color-press, var(--calcite-color-foreground-3) );--calcite-action-text-color: var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.number-button-item calcite-action{--calcite-internal-action-height: var(--calcite-internal-input-number-number-button-item-height);--calcite-internal-action-padding-inline: var(--calcite-spacing-none);--calcite-internal-action-padding-block: var(--calcite-spacing-none);--calcite-action-background-color: var(--calcite-input-actions-background-color);--calcite-action-text-color: var(--calcite-input-actions-icon-color)}.number-button-item calcite-action:hover{--calcite-action-background-color-hover: var(--calcite-input-actions-background-color-hover);--calcite-action-text-color-press: var(--calcite-input-actions-icon-color-hover)}.number-button-item calcite-action:active{--calcite-action-background-color-press: var(--calcite-input-actions-background-color-press);--calcite-action-text-color-press: var(--calcite-input-actions-icon-color-press)}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-placeholder-text-color, var(--calcite-color-text-3))}.clear-button--container{display:flex;cursor:pointer;align-items:center}.clear-button--container:hover calcite-action{--calcite-action-background-color: var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-3));--calcite-action-text-color: var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.clear-button--container:active calcite-action{--calcite-action-background-color: var(--calcite-input-actions-background-color-press, var(--calcite-color-border-2));--calcite-action-text-color: var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.clear-button--container calcite-action{--calcite-internal-action-height: 100%;--calcite-internal-action-padding-inline: var(--calcite-spacing-none);--calcite-internal-action-padding-block: var(--calcite-spacing-none);--calcite-action-background-color: var(--calcite-input-actions-background-color, var(--calcite-color-foreground-2));--calcite-action-text-color: var(--calcite-input-actions-icon-color)}.clear-button--container calcite-action:hover{--calcite-action-background-color-hover: var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-3));--calcite-action-text-color-press: var(--calcite-input-actions-icon-color-hover)}.clear-button--container calcite-action:active{--calcite-action-background-color-press: var(--calcite-input-actions-background-color-press, var(--calcite-color-border-2));--calcite-action-text-color-press: var(--calcite-input-actions-icon-color-press)}:host([scale=s]) .clear-button--container{padding:var(--calcite-spacing-xxs)}:host([scale=m]) .clear-button--container{padding:var(--calcite-spacing-xxs);padding-inline-end:var(--calcite-space-sm)}:host([scale=l]) .clear-button--container{padding-inline-end:var(--calcite-spacing-sm-plus)}`;
54
53
  class InputNumber extends LitElement {
55
54
  constructor() {
56
55
  super();
57
56
  this.actionWrapperRef = createRef();
58
57
  this.attributeWatch = useWatchAttributes(["autofocus", "enterkeyhint", "inputmode"], this.handleGlobalAttributesChanged);
59
58
  this.childNumberRef = createRef();
59
+ this.direction = useDirection();
60
+ this.formSupport = useForm({
61
+ inputType: "number"
62
+ })(this);
60
63
  this.inputWrapperRef = createRef();
61
- this.onHiddenFormInputInput = (event) => {
62
- if (event.target.name === this.name) {
63
- this.setNumberValue({
64
- value: event.target.value,
65
- origin: "direct"
66
- });
67
- }
68
- this.setFocus();
69
- event.stopPropagation();
70
- };
71
64
  this.previousValueOrigin = "initial";
72
65
  this.userChangedValue = false;
73
66
  this._value = "";
74
- this.messages = useT9n();
67
+ this.messages = useT9n({ blocking: true });
75
68
  this.focusSetter = useSetFocus()(this);
76
69
  this.interactiveContainer = useInteractive(this);
77
70
  this.slottedActionElDisabledInternally = false;
@@ -89,19 +82,6 @@ class InputNumber extends LitElement {
89
82
  this.required = false;
90
83
  this.scale = "m";
91
84
  this.status = "idle";
92
- this.validity = {
93
- valid: false,
94
- badInput: false,
95
- customError: false,
96
- patternMismatch: false,
97
- rangeOverflow: false,
98
- rangeUnderflow: false,
99
- stepMismatch: false,
100
- tooLong: false,
101
- tooShort: false,
102
- typeMismatch: false,
103
- valueMissing: false
104
- };
105
85
  this.calciteInputNumberChange = createEvent({ cancelable: false });
106
86
  this.calciteInputNumberInput = createEvent();
107
87
  this.calciteInternalInputNumberBlur = createEvent({ cancelable: false });
@@ -110,7 +90,10 @@ class InputNumber extends LitElement {
110
90
  this.listen("keydown", this.keyDownHandler);
111
91
  }
112
92
  static {
113
- this.properties = { displayedValue: [16, {}, { state: true }], slottedActionElDisabledInternally: [16, {}, { state: true }], alignment: [3, {}, { reflect: true }], autocomplete: 1, clearable: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], editingEnabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], groupSeparator: [7, {}, { reflect: true, type: Boolean }], icon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], integer: [5, {}, { type: Boolean }], label: 1, labelText: 1, loading: [7, {}, { reflect: true, type: Boolean }], localeFormat: [5, {}, { type: Boolean }], max: [11, {}, { reflect: true, type: Number }], maxLength: [11, {}, { reflect: true, type: Number }], messageOverrides: [0, {}, { attribute: false }], min: [11, {}, { reflect: true, type: Number }], minLength: [11, {}, { reflect: true, type: Number }], name: [3, {}, { reflect: true }], numberButtonType: [3, {}, { reflect: true }], numberingSystem: [3, {}, { reflect: true }], placeholder: 1, prefixText: 1, readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], step: [3, {}, { reflect: true }], suffixText: 1, validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [0, {}, { attribute: false }], value: 1 };
93
+ this.properties = { displayedValue: [16, {}, { state: true }], slottedActionElDisabledInternally: [16, {}, { state: true }], alignment: [3, {}, { reflect: true }], autocomplete: 1, clearable: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], editingEnabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], groupSeparator: [7, {}, { reflect: true, type: Boolean }], icon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], integer: [5, {}, { type: Boolean }], label: 1, labelText: 1, loading: [7, {}, { reflect: true, type: Boolean }], localeFormat: [5, {}, { type: Boolean }], max: [11, {}, { reflect: true, type: Number }], maxLength: [11, {}, { reflect: true, type: Number }], messageOverrides: [0, {}, { attribute: false }], min: [11, {}, { reflect: true, type: Number }], minLength: [11, {}, { reflect: true, type: Number }], name: [3, {}, { reflect: true }], numberButtonType: [3, {}, { reflect: true }], numberingSystem: [3, {}, { reflect: true }], placeholder: 1, prefixText: 1, readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], step: [3, {}, { reflect: true }], suffixText: 1, validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [32, {}, { readOnly: true, attribute: false }], value: 1 };
94
+ }
95
+ static {
96
+ this.formAssociated = true;
114
97
  }
115
98
  static {
116
99
  this.styles = styles;
@@ -147,8 +130,6 @@ class InputNumber extends LitElement {
147
130
  this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
148
131
  }
149
132
  connectLabel(this);
150
- connectForm(this);
151
- this.el.addEventListener(internalHiddenInputInputEvent, this.onHiddenFormInputInput);
152
133
  }
153
134
  async load() {
154
135
  this.maxString = this.max?.toString();
@@ -191,9 +172,7 @@ class InputNumber extends LitElement {
191
172
  disconnectedCallback() {
192
173
  super.disconnectedCallback();
193
174
  disconnectLabel(this);
194
- disconnectForm(this);
195
175
  this.stopNudging();
196
- this.el.removeEventListener(internalHiddenInputInputEvent, this.onHiddenFormInputInput);
197
176
  }
198
177
  stopNudging() {
199
178
  window.clearInterval(this.nudgeNumberValueIntervalId);
@@ -225,10 +204,9 @@ class InputNumber extends LitElement {
225
204
  this.clearInputValue(event);
226
205
  event.preventDefault();
227
206
  }
228
- if (event.key === "Enter") {
229
- if (submitForm(this)) {
230
- event.preventDefault();
231
- }
207
+ if (event.key === "Enter" && this.formSupport.active) {
208
+ this.formSupport.requestSubmit();
209
+ event.preventDefault();
232
210
  }
233
211
  }
234
212
  onLabelClick() {
@@ -423,14 +401,11 @@ class InputNumber extends LitElement {
423
401
  return;
424
402
  }
425
403
  event.preventDefault();
426
- const direction = event.target.dataset.adjustment;
404
+ const direction = event.currentTarget.dataset.adjustment;
427
405
  if (!this.disabled) {
428
406
  this.nudgeNumberValue(direction, event);
429
407
  }
430
408
  }
431
- syncHiddenFormInput(input) {
432
- syncHiddenFormInput("number", this, input);
433
- }
434
409
  setInputNumberValue(newInputValue) {
435
410
  if (!this.childNumberRef.value) {
436
411
  return;
@@ -513,19 +488,19 @@ class InputNumber extends LitElement {
513
488
  }
514
489
  }
515
490
  render() {
516
- const dir = getElementDir(this.el);
491
+ const dir = this.direction;
517
492
  const loader = html`<div class=${safeClassMap(CSS.loader)}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`;
518
- const inputClearButton = html`<button .ariaLabel=${this.messages.clear} class=${safeClassMap(CSS.clearButton)} .disabled=${this.disabled || this.readOnly} @click=${this.clearInputValue} tabindex=-1 type=button><calcite-icon .icon=${ICONS.clear} .scale=${getIconScale(this.scale)}></calcite-icon></button>`;
519
- const iconEl = html`<calcite-icon class=${safeClassMap(CSS.inputIcon)} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${getIconScale(this.scale)}></calcite-icon>`;
493
+ const clearButton = html`<div class=${safeClassMap(CSS.clearButton)} @click=${this.disabled || this.readOnly ? void 0 : this.clearInputValue}>${ClearButton({ ariaLabel: this.messages.clear, disabled: this.disabled || this.readOnly, scale: this.scale, title: this.messages.clear })}</div>`;
494
+ const iconEl = html`<div class=${safeClassMap(CSS.inputIcon)}><calcite-icon .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${getIconScale(this.scale)}></calcite-icon></div>`;
520
495
  const isHorizontalNumberButton = this.numberButtonType === "horizontal";
521
- const numberButtonsHorizontalUp = html`<button aria-hidden=true class=${safeClassMap({
496
+ const numberButtonsHorizontalUp = html`<div aria-hidden=true class=${safeClassMap({
522
497
  [CSS.numberButtonItem]: true,
523
498
  [CSS.buttonItemHorizontal]: isHorizontalNumberButton
524
- })} data-adjustment=${DIRECTION.up} data-testid=number-button-up .disabled=${this.disabled || this.readOnly} @pointerdown=${this.nudgeButtonPointerDownHandler} @pointerout=${this.nudgeButtonPointerOutHandler} @pointerup=${this.nudgeButtonPointerUpHandler} tabindex=-1 type=button><calcite-icon .icon=${ICONS.chevronUp} .scale=${getIconScale(this.scale)}></calcite-icon></button>`;
525
- const numberButtonsHorizontalDown = html`<button aria-hidden=true class=${safeClassMap({
499
+ })} data-adjustment=${DIRECTION.up} data-testid=number-button-up @pointerdown=${this.nudgeButtonPointerDownHandler} @pointerout=${this.nudgeButtonPointerOutHandler} @pointerup=${this.nudgeButtonPointerUpHandler}><calcite-action .disabled=${this.disabled || this.readOnly} .icon=${ICONS.chevronUp} .scale=${this.scale} tabindex=-1 text></calcite-action></div>`;
500
+ const numberButtonsHorizontalDown = html`<div aria-hidden=true class=${safeClassMap({
526
501
  [CSS.numberButtonItem]: true,
527
502
  [CSS.buttonItemHorizontal]: isHorizontalNumberButton
528
- })} data-adjustment=${DIRECTION.down} data-testid=number-button-down .disabled=${this.disabled || this.readOnly} @pointerdown=${this.nudgeButtonPointerDownHandler} @pointerout=${this.nudgeButtonPointerOutHandler} @pointerup=${this.nudgeButtonPointerUpHandler} tabindex=-1 type=button><calcite-icon .icon=${ICONS.chevronDown} .scale=${getIconScale(this.scale)}></calcite-icon></button>`;
503
+ })} data-adjustment=${DIRECTION.down} data-testid=number-button-down @pointerdown=${this.nudgeButtonPointerDownHandler} @pointerout=${this.nudgeButtonPointerOutHandler} @pointerup=${this.nudgeButtonPointerUpHandler}><calcite-action .disabled=${this.disabled || this.readOnly} .icon=${ICONS.chevronDown} .scale=${this.scale} tabindex=-1 text></calcite-action></div>`;
529
504
  const numberButtonsVertical = html`<div class=${safeClassMap(CSS.numberButtonWrapper)}>${numberButtonsHorizontalUp}${numberButtonsHorizontalDown}</div>`;
530
505
  const prefixText = html`<div class=${safeClassMap(CSS.prefix)}>${this.prefixText}</div>`;
531
506
  const suffixText = html`<div class=${safeClassMap(CSS.suffix)}>${this.suffixText}</div>`;
@@ -536,7 +511,7 @@ class InputNumber extends LitElement {
536
511
  [CSS.hasSuffix]: this.suffixText,
537
512
  [CSS.hasPrefix]: this.prefixText,
538
513
  [CSS.clearable]: this.isClearable
539
- })} ${ref(this.inputWrapperRef)}>${this.numberButtonType === "horizontal" && !this.readOnly ? numberButtonsHorizontalDown : null}${this.prefixText ? prefixText : null}<div class=${safeClassMap(CSS.wrapper)}>${childEl}${this.isClearable ? inputClearButton : null}${this.requestedIcon ? iconEl : null}${this.loading ? loader : null}</div><div class=${safeClassMap(CSS.actionWrapper)} ${ref(this.actionWrapperRef)}><slot name=${SLOTS.action}></slot></div>${this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null}${this.suffixText ? suffixText : null}${this.numberButtonType === "horizontal" && !this.readOnly ? numberButtonsHorizontalUp : null}${HiddenFormInputSlot({ component: this })}</div>${this.validationMessage && this.status === "invalid" ? Validation({ icon: this.validationIcon, id: IDS.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
514
+ })} ${ref(this.inputWrapperRef)}><div class=${safeClassMap(CSS.wrapper)}>${this.loading ? loader : null}${this.numberButtonType === "horizontal" && !this.readOnly ? numberButtonsHorizontalDown : null}${this.prefixText ? prefixText : null}${this.requestedIcon ? iconEl : null}${childEl}${this.isClearable ? clearButton : null}${this.suffixText ? suffixText : null}${this.numberButtonType === "horizontal" && !this.readOnly ? numberButtonsHorizontalUp : null}${this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null}</div><div class=${safeClassMap(CSS.actionWrapper)} ${ref(this.actionWrapperRef)}><slot name=${SLOTS.action}></slot></div></div>${this.validationMessage && this.status === "invalid" ? Validation({ icon: this.validationIcon, id: IDS.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
540
515
  }
541
516
  }
542
517
  customElement("calcite-input-number", InputNumber);
@@ -1,3 +1,4 @@
1
+ import "../calcite-action/index.js";
1
2
  import "../calcite-input-message/index.js";
2
3
  import "../calcite-progress/index.js";
3
4
  import "../calcite-icon/index.js";