@esri/calcite-components 5.2.0-next.70 → 5.2.0-next.72

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 (437) hide show
  1. package/dist/cdn/2LI2WSK2.js +2 -0
  2. package/dist/cdn/{DZNQR26P.js → 2UTHVUT7.js} +1 -1
  3. package/dist/cdn/{RESHNLJ6.js → 2WBLQI6U.js} +1 -1
  4. package/dist/cdn/3CJWAO5P.js +2 -0
  5. package/dist/cdn/3Q3NLSCQ.js +2 -0
  6. package/dist/cdn/3TNLC6PV.js +2 -0
  7. package/dist/cdn/3VZ4SWDK.js +2 -0
  8. package/dist/cdn/{6KXM5OYZ.js → 3WN4IEPQ.js} +1 -1
  9. package/dist/cdn/43WZZYF7.js +2 -0
  10. package/dist/cdn/4GCQDZWN.js +2 -0
  11. package/dist/cdn/{5QN2KNKV.js → 4IEGHLUB.js} +1 -1
  12. package/dist/cdn/{VOCKM3G2.js → 4QWJ3PQW.js} +1 -1
  13. package/dist/cdn/4ZA6ZVL6.js +2 -0
  14. package/dist/cdn/{DDV4NKQS.js → 5G22OBD5.js} +1 -1
  15. package/dist/cdn/{EJKJVQ73.js → 5ITOJWPH.js} +1 -1
  16. package/dist/cdn/5OBU6MKV.js +2 -0
  17. package/dist/cdn/5URBXOI6.js +2 -0
  18. package/dist/cdn/63IUCUAK.js +2 -0
  19. package/dist/cdn/6IFDVGXE.js +2 -0
  20. package/dist/cdn/6NHOF5C6.js +2 -0
  21. package/dist/cdn/6O5C3TC6.js +2 -0
  22. package/dist/cdn/76VEF2N3.js +2 -0
  23. package/dist/cdn/7VTO7SRW.js +2 -0
  24. package/dist/cdn/{QEDVJK2B.js → ABXX3YLO.js} +1 -1
  25. package/dist/cdn/AFYJTXE4.js +2 -0
  26. package/dist/cdn/{LZYVRSSC.js → AGT3CYIC.js} +1 -1
  27. package/dist/cdn/AH7E725Y.js +2 -0
  28. package/dist/cdn/AN5WJGEU.js +2 -0
  29. package/dist/cdn/AY7IBHGD.js +2 -0
  30. package/dist/cdn/B44MDPWE.js +2 -0
  31. package/dist/cdn/B5ZVXTPR.js +2 -0
  32. package/dist/cdn/BKTVJALY.js +4 -0
  33. package/dist/cdn/{TT5M5MYP.js → BXOKCLLN.js} +1 -1
  34. package/dist/cdn/C6K4YWG2.js +2 -0
  35. package/dist/cdn/CE7TCXV4.js +2 -0
  36. package/dist/cdn/CIOPRNUQ.js +2 -0
  37. package/dist/cdn/CR3S2P6V.js +2 -0
  38. package/dist/cdn/DAB4MV6S.js +2 -0
  39. package/dist/cdn/{EC72OBDA.js → DANMXS3Z.js} +1 -1
  40. package/dist/cdn/DBGQA6BS.js +2 -0
  41. package/dist/cdn/DBYQ6LE6.js +2 -0
  42. package/dist/cdn/DGILOBDM.js +2 -0
  43. package/dist/cdn/{Q4VBFB6I.js → DQO6DVWZ.js} +1 -1
  44. package/dist/cdn/{S65BOXP4.js → EEHDM3XH.js} +1 -1
  45. package/dist/cdn/EN5AJPE4.js +2 -0
  46. package/dist/cdn/ENEJFDPY.js +2 -0
  47. package/dist/cdn/F7UJ5OMM.js +2 -0
  48. package/dist/cdn/FEYKSGSJ.js +2 -0
  49. package/dist/cdn/FI2B7DFP.js +2 -0
  50. package/dist/cdn/FLWEI5GH.js +2 -0
  51. package/dist/cdn/FZJ5OYBK.js +2 -0
  52. package/dist/cdn/G2HFGHIC.js +2 -0
  53. package/dist/cdn/G5I6LLDZ.js +2 -0
  54. package/dist/cdn/GEXT4YRZ.js +2 -0
  55. package/dist/cdn/GIYPCJ4F.js +2 -0
  56. package/dist/cdn/GMESQXPP.js +2 -0
  57. package/dist/cdn/GMGXPKVZ.js +2 -0
  58. package/dist/cdn/GPQBNXZR.js +2 -0
  59. package/dist/cdn/GSGALXNG.js +2 -0
  60. package/dist/cdn/{AWGDXOB3.js → GSVOPUJG.js} +1 -1
  61. package/dist/cdn/{HRRQ35FT.js → H3KRI5A4.js} +1 -1
  62. package/dist/cdn/H5DNKLYR.js +2 -0
  63. package/dist/cdn/{ZJ3XEIZR.js → H6NR2LDG.js} +1 -1
  64. package/dist/cdn/HCNME75A.js +2 -0
  65. package/dist/cdn/HKTG3UPX.js +2 -0
  66. package/dist/cdn/HQOEHOTW.js +2 -0
  67. package/dist/cdn/{ORWRLRPO.js → HRQSQ4A6.js} +1 -1
  68. package/dist/cdn/{46RKFFGQ.js → HSGAQRYJ.js} +1 -1
  69. package/dist/cdn/HU2HPOQ7.js +2 -0
  70. package/dist/cdn/{M3AX6WGK.js → HVW246PN.js} +1 -1
  71. package/dist/cdn/I2VDKTAK.js +2 -0
  72. package/dist/cdn/{EGB22AEH.js → IE5KDMJE.js} +1 -1
  73. package/dist/cdn/IPYI4ZFP.js +2 -0
  74. package/dist/cdn/ITO7ZNSM.js +2 -0
  75. package/dist/cdn/{M6Q3EIP6.js → IXE72L6L.js} +1 -1
  76. package/dist/cdn/{IXNQ44YK.js → J3VFES7S.js} +1 -1
  77. package/dist/cdn/{J5D56KAD.js → JJWXUTPP.js} +1 -1
  78. package/dist/cdn/KDBMNDVH.js +2 -0
  79. package/dist/cdn/KVLA6SMF.js +2 -0
  80. package/dist/cdn/L6QKJ7E4.js +2 -0
  81. package/dist/cdn/{LV4KM6PC.js → LKTLHI7X.js} +1 -1
  82. package/dist/cdn/{LP6IKK7J.js → LWGDCZEG.js} +1 -1
  83. package/dist/cdn/M6YDGTSM.js +2 -0
  84. package/dist/cdn/MBM7UIXE.js +2 -0
  85. package/dist/cdn/{X2RWKE4D.js → MMJUSHGT.js} +1 -1
  86. package/dist/cdn/{D2M2O7D4.js → N4LV2C6D.js} +1 -1
  87. package/dist/cdn/N6SQTS7X.js +2 -0
  88. package/dist/cdn/{CLCNGAIT.js → N7GI37UA.js} +1 -1
  89. package/dist/cdn/NDDSZKIJ.js +2 -0
  90. package/dist/cdn/{JQGAEFTP.js → NELSF4F6.js} +1 -1
  91. package/dist/cdn/NF2DEJFS.js +2 -0
  92. package/dist/cdn/{UVW4ZA5Z.js → NWK2N3DW.js} +1 -1
  93. package/dist/cdn/NYMXUPSJ.js +2 -0
  94. package/dist/cdn/O66KCB5Y.js +2 -0
  95. package/dist/cdn/{STQ4T6ZL.js → OCOXLCKQ.js} +1 -1
  96. package/dist/cdn/OJQ3AXNW.js +2 -0
  97. package/dist/cdn/OMW5LQG4.js +2 -0
  98. package/dist/cdn/ONPRPX2R.js +2 -0
  99. package/dist/cdn/P5S4F3WT.js +2 -0
  100. package/dist/cdn/PA5Z7B74.js +2 -0
  101. package/dist/cdn/{LB2J5RLA.js → PGKUQ5QW.js} +1 -1
  102. package/dist/cdn/PGU73CNX.js +2 -0
  103. package/dist/cdn/PRO23RP2.js +2 -0
  104. package/dist/cdn/Q25ML244.js +2 -0
  105. package/dist/cdn/{2DKBRL6T.js → Q4GFUNOY.js} +1 -1
  106. package/dist/cdn/QGR3M7C6.js +2 -0
  107. package/dist/cdn/QORR4LYI.js +2 -0
  108. package/dist/cdn/QV5XDDHW.js +2 -0
  109. package/dist/cdn/{O6WABKEC.js → R4OTPPUP.js} +1 -1
  110. package/dist/cdn/R6URHBB4.js +2 -0
  111. package/dist/cdn/{BWX66GU4.js → REWZWI55.js} +1 -1
  112. package/dist/cdn/{HCK7PO6R.js → RR6RVWTZ.js} +1 -1
  113. package/dist/cdn/{CNWFFIWK.js → RRK2A4MY.js} +1 -1
  114. package/dist/cdn/RRNHUX2D.js +2 -0
  115. package/dist/cdn/RS2KW3Q2.js +2 -0
  116. package/dist/cdn/{37XKEBCL.js → RYA2FB6F.js} +1 -1
  117. package/dist/cdn/S73GCCFJ.js +2 -0
  118. package/dist/cdn/SBVY3FV5.js +2 -0
  119. package/dist/cdn/SF4U6LCR.js +2 -0
  120. package/dist/cdn/{3BY6Q466.js → SOTBM3DK.js} +1 -1
  121. package/dist/cdn/SP7X6II4.js +2 -0
  122. package/dist/cdn/SPBKPWAL.js +2 -0
  123. package/dist/cdn/SZZX3H5D.js +2 -0
  124. package/dist/cdn/U3ALLQOK.js +2 -0
  125. package/dist/cdn/U5EJA3RQ.js +2 -0
  126. package/dist/cdn/URBAY2ZY.js +2 -0
  127. package/dist/cdn/V2RSLNSI.js +2 -0
  128. package/dist/cdn/{ZBS7TLZA.js → VRKXQANL.js} +1 -1
  129. package/dist/cdn/VX26CS43.js +2 -0
  130. package/dist/cdn/VXDPJESZ.js +2 -0
  131. package/dist/cdn/{VGB4JQR6.js → VYPNKZGD.js} +1 -1
  132. package/dist/cdn/WDGNMQIH.js +2 -0
  133. package/dist/cdn/{3FTLZWQG.js → WSW7UPQR.js} +1 -1
  134. package/dist/cdn/{F3UYZQJA.js → X3ZTU626.js} +1 -1
  135. package/dist/cdn/X7VSUKID.js +2 -0
  136. package/dist/cdn/XFBBVEEE.js +2 -0
  137. package/dist/cdn/XIAQHYXK.js +2 -0
  138. package/dist/cdn/XLWUWQWC.js +2 -0
  139. package/dist/cdn/XOSDCSQB.js +2 -0
  140. package/dist/cdn/XPTORKGR.js +2 -0
  141. package/dist/cdn/{4HLHOCHN.js → XS2676QJ.js} +1 -1
  142. package/dist/cdn/{HP6NC7YO.js → XTVCYRBN.js} +1 -1
  143. package/dist/cdn/{2C6EYXK7.js → XZRKDUXQ.js} +1 -1
  144. package/dist/cdn/{LOUNVBIX.js → YVB5CIDB.js} +1 -1
  145. package/dist/cdn/ZCQGWUMF.js +2 -0
  146. package/dist/cdn/{5GK33MMO.js → ZCREBRIK.js} +1 -1
  147. package/dist/cdn/ZNCAUAYU.js +2 -0
  148. package/dist/cdn/ZPTWAELA.js +2 -0
  149. package/dist/cdn/assets/icon/alignBottom16.json +1 -0
  150. package/dist/cdn/assets/icon/alignBottom24.json +1 -0
  151. package/dist/cdn/assets/icon/alignBottom32.json +1 -0
  152. package/dist/cdn/assets/icon/alignCenterHorizontal16.json +1 -0
  153. package/dist/cdn/assets/icon/alignCenterHorizontal24.json +1 -0
  154. package/dist/cdn/assets/icon/alignCenterHorizontal32.json +1 -0
  155. package/dist/cdn/assets/icon/alignCenterVertical16.json +1 -0
  156. package/dist/cdn/assets/icon/alignCenterVertical24.json +1 -0
  157. package/dist/cdn/assets/icon/alignCenterVertical32.json +1 -0
  158. package/dist/cdn/assets/icon/alignLeft16.json +1 -0
  159. package/dist/cdn/assets/icon/alignLeft24.json +1 -0
  160. package/dist/cdn/assets/icon/alignLeft32.json +1 -0
  161. package/dist/cdn/assets/icon/alignRight16.json +1 -0
  162. package/dist/cdn/assets/icon/alignRight24.json +1 -0
  163. package/dist/cdn/assets/icon/alignRight32.json +1 -0
  164. package/dist/cdn/assets/icon/alignTop16.json +1 -0
  165. package/dist/cdn/assets/icon/alignTop24.json +1 -0
  166. package/dist/cdn/assets/icon/alignTop32.json +1 -0
  167. package/dist/cdn/assets/icon/spaceAroundHorizontal16.json +1 -0
  168. package/dist/cdn/assets/icon/spaceAroundHorizontal24.json +1 -0
  169. package/dist/cdn/assets/icon/spaceAroundHorizontal32.json +1 -0
  170. package/dist/cdn/assets/icon/spaceAroundVertical16.json +1 -0
  171. package/dist/cdn/assets/icon/spaceAroundVertical24.json +1 -0
  172. package/dist/cdn/assets/icon/spaceAroundVertical32.json +1 -0
  173. package/dist/cdn/assets/icon/spaceBetweenHorizontal16.json +1 -0
  174. package/dist/cdn/assets/icon/spaceBetweenHorizontal24.json +1 -0
  175. package/dist/cdn/assets/icon/spaceBetweenHorizontal32.json +1 -0
  176. package/dist/cdn/assets/icon/spaceBetweenVertical16.json +1 -0
  177. package/dist/cdn/assets/icon/spaceBetweenVertical24.json +1 -0
  178. package/dist/cdn/assets/icon/spaceBetweenVertical32.json +1 -0
  179. package/dist/cdn/assets/icon/spacedEvenlyHorizontal16.json +1 -0
  180. package/dist/cdn/assets/icon/spacedEvenlyHorizontal24.json +1 -0
  181. package/dist/cdn/assets/icon/spacedEvenlyHorizontal32.json +1 -0
  182. package/dist/cdn/assets/icon/spacedEvenlyVertical16.json +1 -0
  183. package/dist/cdn/assets/icon/spacedEvenlyVertical24.json +1 -0
  184. package/dist/cdn/assets/icon/spacedEvenlyVertical32.json +1 -0
  185. package/dist/cdn/assets/icon/stretchHorizontal16.json +1 -0
  186. package/dist/cdn/assets/icon/stretchHorizontal24.json +1 -0
  187. package/dist/cdn/assets/icon/stretchHorizontal32.json +1 -0
  188. package/dist/cdn/assets/icon/stretchVertical16.json +1 -0
  189. package/dist/cdn/assets/icon/stretchVertical24.json +1 -0
  190. package/dist/cdn/assets/icon/stretchVertical32.json +1 -0
  191. package/dist/cdn/index.js +1 -1
  192. package/dist/chunks/aria.js +3 -2
  193. package/dist/chunks/dom.js +10 -10
  194. package/dist/chunks/manager.js +50 -25
  195. package/dist/chunks/runtime.js +4 -4
  196. package/dist/chunks/useInlineEdit.js +65 -0
  197. package/dist/components/calcite-accordion/customElement.d.ts +0 -5
  198. package/dist/components/calcite-accordion-item/customElement.d.ts +0 -18
  199. package/dist/components/calcite-action/customElement.d.ts +1 -17
  200. package/dist/components/calcite-action/customElement.js +3 -2
  201. package/dist/components/calcite-action-bar/customElement.d.ts +0 -5
  202. package/dist/components/calcite-action-bar/customElement.js +1 -1
  203. package/dist/components/calcite-action-group/customElement.d.ts +0 -4
  204. package/dist/components/calcite-action-menu/customElement.d.ts +0 -1
  205. package/dist/components/calcite-action-pad/customElement.d.ts +0 -3
  206. package/dist/components/calcite-action-pad/customElement.js +1 -1
  207. package/dist/components/calcite-alert/customElement.d.ts +0 -5
  208. package/dist/components/calcite-autocomplete/customElement.d.ts +0 -23
  209. package/dist/components/calcite-autocomplete-item/customElement.d.ts +0 -4
  210. package/dist/components/calcite-autocomplete-item-group/customElement.d.ts +1 -6
  211. package/dist/components/calcite-avatar/customElement.d.ts +0 -5
  212. package/dist/components/calcite-block/customElement.d.ts +0 -17
  213. package/dist/components/calcite-block/customElement.js +5 -4
  214. package/dist/components/calcite-block-group/customElement.js +2 -1
  215. package/dist/components/calcite-block-section/customElement.d.ts +0 -6
  216. package/dist/components/calcite-button/customElement.d.ts +0 -7
  217. package/dist/components/calcite-button/customElement.js +3 -2
  218. package/dist/components/calcite-card/customElement.d.ts +0 -12
  219. package/dist/components/calcite-card/customElement.js +2 -1
  220. package/dist/components/calcite-card-group/customElement.d.ts +1 -5
  221. package/dist/components/calcite-card-group/customElement.js +1 -1
  222. package/dist/components/calcite-carousel/customElement.d.ts +1 -14
  223. package/dist/components/calcite-carousel/customElement.js +1 -1
  224. package/dist/components/calcite-checkbox/customElement.d.ts +0 -7
  225. package/dist/components/calcite-chip/customElement.d.ts +0 -9
  226. package/dist/components/calcite-chip-group/customElement.js +1 -1
  227. package/dist/components/calcite-color-picker/customElement.d.ts +0 -19
  228. package/dist/components/calcite-color-picker/customElement.js +1 -1
  229. package/dist/components/calcite-combobox/customElement.d.ts +0 -9
  230. package/dist/components/calcite-combobox/customElement.js +1 -1
  231. package/dist/components/calcite-combobox-item/customElement.d.ts +0 -10
  232. package/dist/components/calcite-combobox-item/customElement.js +1 -1
  233. package/dist/components/calcite-combobox-item-group/customElement.d.ts +1 -5
  234. package/dist/components/calcite-date-picker/customElement.d.ts +0 -27
  235. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  236. package/dist/components/calcite-dialog/customElement.d.ts +0 -31
  237. package/dist/components/calcite-dialog/customElement.js +1 -1
  238. package/dist/components/calcite-dropdown/customElement.d.ts +0 -3
  239. package/dist/components/calcite-dropdown-group/customElement.d.ts +1 -5
  240. package/dist/components/calcite-dropdown-item/customElement.d.ts +1 -9
  241. package/dist/components/calcite-fab/customElement.d.ts +0 -8
  242. package/dist/components/calcite-filter/customElement.d.ts +0 -16
  243. package/dist/components/calcite-flow/customElement.d.ts +1 -4
  244. package/dist/components/calcite-flow-item/customElement.d.ts +0 -28
  245. package/dist/components/calcite-graph/customElement.d.ts +0 -1
  246. package/dist/components/calcite-handle/customElement.d.ts +1 -9
  247. package/dist/components/calcite-icon/customElement.d.ts +0 -4
  248. package/dist/components/calcite-inline-editable/customElement.d.ts +1 -10
  249. package/dist/components/calcite-inline-editable/customElement.js +2 -2
  250. package/dist/components/calcite-input/customElement.d.ts +15 -42
  251. package/dist/components/calcite-input/customElement.js +149 -62
  252. package/dist/components/calcite-input-date-picker/customElement.d.ts +1 -44
  253. package/dist/components/calcite-input-message/customElement.d.ts +0 -3
  254. package/dist/components/calcite-input-number/customElement.d.ts +15 -43
  255. package/dist/components/calcite-input-number/customElement.js +130 -59
  256. package/dist/components/calcite-input-text/customElement.d.ts +15 -42
  257. package/dist/components/calcite-input-text/customElement.js +127 -56
  258. package/dist/components/calcite-input-time-picker/customElement.d.ts +1 -26
  259. package/dist/components/calcite-input-time-picker/customElement.js +2 -1
  260. package/dist/components/calcite-input-time-zone/customElement.d.ts +1 -4
  261. package/dist/components/calcite-label/customElement.d.ts +1 -5
  262. package/dist/components/calcite-link/customElement.d.ts +0 -1
  263. package/dist/components/calcite-list/customElement.d.ts +0 -1
  264. package/dist/components/calcite-list/customElement.js +3 -2
  265. package/dist/components/calcite-list-item/customElement.d.ts +0 -9
  266. package/dist/components/calcite-list-item/customElement.js +1 -1
  267. package/dist/components/calcite-list-item-group/customElement.d.ts +1 -5
  268. package/dist/components/calcite-loader/customElement.d.ts +0 -12
  269. package/dist/components/calcite-menu/customElement.js +1 -1
  270. package/dist/components/calcite-menu-item/customElement.d.ts +1 -8
  271. package/dist/components/calcite-meter/customElement.d.ts +0 -9
  272. package/dist/components/calcite-navigation/customElement.d.ts +0 -4
  273. package/dist/components/calcite-navigation-logo/customElement.d.ts +0 -6
  274. package/dist/components/calcite-navigation-user/customElement.d.ts +0 -8
  275. package/dist/components/calcite-notice/customElement.d.ts +0 -13
  276. package/dist/components/calcite-pagination/customElement.d.ts +0 -8
  277. package/dist/components/calcite-panel/customElement.d.ts +0 -23
  278. package/dist/components/calcite-panel/customElement.js +3 -2
  279. package/dist/components/calcite-popover/customElement.d.ts +1 -8
  280. package/dist/components/calcite-progress/customElement.d.ts +0 -5
  281. package/dist/components/calcite-radio-button/customElement.d.ts +0 -6
  282. package/dist/components/calcite-radio-button-group/customElement.d.ts +0 -2
  283. package/dist/components/calcite-rating/customElement.d.ts +1 -10
  284. package/dist/components/calcite-scrim/customElement.d.ts +1 -4
  285. package/dist/components/calcite-scrim/customElement.js +1 -1
  286. package/dist/components/calcite-segmented-control/customElement.d.ts +0 -2
  287. package/dist/components/calcite-segmented-control-item/customElement.d.ts +0 -6
  288. package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
  289. package/dist/components/calcite-select/customElement.d.ts +0 -8
  290. package/dist/components/calcite-sheet/customElement.d.ts +1 -16
  291. package/dist/components/calcite-sheet/customElement.js +1 -1
  292. package/dist/components/calcite-shell/customElement.d.ts +0 -3
  293. package/dist/components/calcite-shell/customElement.js +1 -1
  294. package/dist/components/calcite-shell-panel/customElement.d.ts +0 -12
  295. package/dist/components/calcite-shell-panel/customElement.js +1 -1
  296. package/dist/components/calcite-slider/customElement.d.ts +1 -13
  297. package/dist/components/calcite-slider/customElement.js +1 -1
  298. package/dist/components/calcite-split-button/customElement.d.ts +1 -19
  299. package/dist/components/calcite-stack/customElement.d.ts +0 -2
  300. package/dist/components/calcite-stepper/customElement.d.ts +1 -8
  301. package/dist/components/calcite-stepper/customElement.js +1 -1
  302. package/dist/components/calcite-stepper-item/customElement.d.ts +1 -21
  303. package/dist/components/calcite-stepper-item/customElement.js +1 -1
  304. package/dist/components/calcite-swatch/customElement.d.ts +1 -4
  305. package/dist/components/calcite-swatch-group/customElement.d.ts +1 -4
  306. package/dist/components/calcite-swatch-group/customElement.js +1 -1
  307. package/dist/components/calcite-switch/customElement.d.ts +0 -9
  308. package/dist/components/calcite-tab/customElement.d.ts +1 -5
  309. package/dist/components/calcite-tab-nav/customElement.d.ts +1 -6
  310. package/dist/components/calcite-tab-nav/customElement.js +6 -2
  311. package/dist/components/calcite-tab-title/customElement.d.ts +0 -15
  312. package/dist/components/calcite-table/customElement.d.ts +0 -40
  313. package/dist/components/calcite-table-cell/customElement.d.ts +1 -7
  314. package/dist/components/calcite-table-header/customElement.d.ts +0 -7
  315. package/dist/components/calcite-table-row/customElement.d.ts +1 -9
  316. package/dist/components/calcite-table-row/customElement.js +1 -1
  317. package/dist/components/calcite-tabs/customElement.d.ts +0 -2
  318. package/dist/components/calcite-text-area/customElement.d.ts +0 -14
  319. package/dist/components/calcite-tile/customElement.d.ts +0 -9
  320. package/dist/components/calcite-tile/customElement.js +1 -1
  321. package/dist/components/calcite-tile-group/customElement.js +1 -1
  322. package/dist/components/calcite-time-picker/customElement.d.ts +0 -11
  323. package/dist/components/calcite-tooltip/customElement.d.ts +1 -8
  324. package/dist/components/calcite-tree-item/customElement.d.ts +0 -3
  325. package/dist/docs/api.json +1 -1
  326. package/dist/docs/docs.json +1 -1
  327. package/dist/docs/vscode.css-custom-data.json +1 -1
  328. package/dist/docs/vscode.html-custom-data.json +1 -1
  329. package/dist/docs/web-types.json +1 -1
  330. package/dist/loader.js +3 -3
  331. package/dist/types/lumina.d.ts +12 -12
  332. package/dist/types/preact.d.ts +12 -12
  333. package/dist/types/react.d.ts +12 -12
  334. package/dist/types/stencil.d.ts +12 -12
  335. package/package.json +14 -14
  336. package/dist/cdn/2DRYAXZA.js +0 -2
  337. package/dist/cdn/2QDPBMR5.js +0 -2
  338. package/dist/cdn/36ZI4OE2.js +0 -2
  339. package/dist/cdn/3EOXNRWH.js +0 -2
  340. package/dist/cdn/3PBE34WL.js +0 -2
  341. package/dist/cdn/3PHJ4VKR.js +0 -2
  342. package/dist/cdn/4OTRU7PP.js +0 -2
  343. package/dist/cdn/4V54EQG7.js +0 -2
  344. package/dist/cdn/4XYNB6JA.js +0 -2
  345. package/dist/cdn/5EBGPCB7.js +0 -2
  346. package/dist/cdn/5JGGEI4T.js +0 -2
  347. package/dist/cdn/5NUKMHTR.js +0 -2
  348. package/dist/cdn/6IIOOLNW.js +0 -2
  349. package/dist/cdn/6OAHARTN.js +0 -2
  350. package/dist/cdn/6SIMRTTJ.js +0 -2
  351. package/dist/cdn/6XZUNSYJ.js +0 -2
  352. package/dist/cdn/74LD6VQE.js +0 -2
  353. package/dist/cdn/7AX3VWZ2.js +0 -2
  354. package/dist/cdn/7LCQLCGJ.js +0 -2
  355. package/dist/cdn/7PDQJVYI.js +0 -2
  356. package/dist/cdn/A2PZZ6XZ.js +0 -2
  357. package/dist/cdn/AI34WFC4.js +0 -2
  358. package/dist/cdn/AR46CHOI.js +0 -2
  359. package/dist/cdn/BK6IFOPJ.js +0 -2
  360. package/dist/cdn/BLOHG5AH.js +0 -2
  361. package/dist/cdn/BQYRK6UJ.js +0 -2
  362. package/dist/cdn/C5SVC6AT.js +0 -2
  363. package/dist/cdn/CIYJDFL7.js +0 -2
  364. package/dist/cdn/CJLLJ7EG.js +0 -2
  365. package/dist/cdn/CLMLN73K.js +0 -2
  366. package/dist/cdn/CLQONTJ4.js +0 -2
  367. package/dist/cdn/D32AN634.js +0 -2
  368. package/dist/cdn/DBIXUUDH.js +0 -2
  369. package/dist/cdn/DJZ3PU4G.js +0 -2
  370. package/dist/cdn/DMH6GECA.js +0 -2
  371. package/dist/cdn/EWRXYHQ6.js +0 -2
  372. package/dist/cdn/FFIEWYUD.js +0 -2
  373. package/dist/cdn/FVYTBWWQ.js +0 -2
  374. package/dist/cdn/GGXZDUOD.js +0 -2
  375. package/dist/cdn/GJHAOR7O.js +0 -2
  376. package/dist/cdn/GVHT4OW3.js +0 -4
  377. package/dist/cdn/GZZYSINJ.js +0 -2
  378. package/dist/cdn/H4DWCZQH.js +0 -2
  379. package/dist/cdn/HK2ZPYSD.js +0 -2
  380. package/dist/cdn/HT7GHA35.js +0 -2
  381. package/dist/cdn/KADLGWSD.js +0 -2
  382. package/dist/cdn/KKZPWWJD.js +0 -2
  383. package/dist/cdn/L2GTZQR3.js +0 -2
  384. package/dist/cdn/LDJTNSDV.js +0 -2
  385. package/dist/cdn/LGEWD2WR.js +0 -2
  386. package/dist/cdn/LJ3OYEQH.js +0 -2
  387. package/dist/cdn/MA5ALGCB.js +0 -2
  388. package/dist/cdn/MJKFS4XN.js +0 -2
  389. package/dist/cdn/MKWABJD3.js +0 -2
  390. package/dist/cdn/MORH2SWC.js +0 -2
  391. package/dist/cdn/MTK3KBNV.js +0 -2
  392. package/dist/cdn/N4RZJQ3K.js +0 -2
  393. package/dist/cdn/NBWSLO2X.js +0 -2
  394. package/dist/cdn/NFZOHLUU.js +0 -2
  395. package/dist/cdn/NIPZWXTK.js +0 -2
  396. package/dist/cdn/NRDDB52R.js +0 -2
  397. package/dist/cdn/OATJDDUN.js +0 -2
  398. package/dist/cdn/OCAIF5AO.js +0 -2
  399. package/dist/cdn/ONPVEYDF.js +0 -2
  400. package/dist/cdn/OURWUBEA.js +0 -2
  401. package/dist/cdn/OV4LG7YB.js +0 -2
  402. package/dist/cdn/P6E54S7I.js +0 -2
  403. package/dist/cdn/PFBFXLY5.js +0 -2
  404. package/dist/cdn/PGJ33WXW.js +0 -2
  405. package/dist/cdn/PJ7JGCOT.js +0 -2
  406. package/dist/cdn/PM5LDKID.js +0 -2
  407. package/dist/cdn/PPCTIFU7.js +0 -2
  408. package/dist/cdn/Q2L6GYNG.js +0 -2
  409. package/dist/cdn/Q2NLDLBD.js +0 -2
  410. package/dist/cdn/Q44CAISJ.js +0 -2
  411. package/dist/cdn/QCTIQQGR.js +0 -2
  412. package/dist/cdn/QEGNJX47.js +0 -2
  413. package/dist/cdn/QIOX3N62.js +0 -2
  414. package/dist/cdn/QM2EZYTR.js +0 -2
  415. package/dist/cdn/QWGRJXMJ.js +0 -2
  416. package/dist/cdn/RHUYTUBN.js +0 -2
  417. package/dist/cdn/RKRK4RZK.js +0 -2
  418. package/dist/cdn/RXVSZC7X.js +0 -2
  419. package/dist/cdn/SO222KR7.js +0 -2
  420. package/dist/cdn/SY7A27CA.js +0 -2
  421. package/dist/cdn/T2VHRNVK.js +0 -2
  422. package/dist/cdn/T4CQISFL.js +0 -2
  423. package/dist/cdn/TFY4AZ4H.js +0 -2
  424. package/dist/cdn/TODF5AAG.js +0 -2
  425. package/dist/cdn/UFTNE4L5.js +0 -2
  426. package/dist/cdn/UQWE2VAF.js +0 -2
  427. package/dist/cdn/URPDRW7E.js +0 -2
  428. package/dist/cdn/VDJS5HED.js +0 -2
  429. package/dist/cdn/VZ2WOVER.js +0 -2
  430. package/dist/cdn/WSJB5HRN.js +0 -2
  431. package/dist/cdn/XK5X6LPF.js +0 -2
  432. package/dist/cdn/XWM3FFCD.js +0 -2
  433. package/dist/cdn/YCKXSWRC.js +0 -2
  434. package/dist/cdn/YKGEHWMP.js +0 -2
  435. package/dist/cdn/ZM42WAYM.js +0 -2
  436. package/dist/cdn/ZTRZLDAL.js +0 -2
  437. package/dist/chunks/useInlineEditable.js +0 -53
@@ -6,34 +6,6 @@ import type { InputPlacement } from "../calcite-input/types.js";
6
6
  import type { IconName } from "../calcite-icon/types.js";
7
7
 
8
8
  /**
9
- * @cssproperty [--calcite-input-actions-background-color] - Specifies the background color of the component's `clearable` and `number-button-type` elements.
10
- * @cssproperty [--calcite-input-actions-background-color-hover] - Specifies the background color of the component's `clearable` and `number-button-type` elements when hovered.
11
- * @cssproperty [--calcite-input-actions-background-color-press] - Specifies the background color of the component's `clearable` and `number-button-type` elements when pressed.
12
- * @cssproperty [--calcite-input-actions-icon-color] - Specifies the icon color of the component's `clearable` and `number-button-type` elements.
13
- * @cssproperty [--calcite-input-actions-icon-color-hover] - Specifies the icon color of the component's `clearable` and `number-button-type` elements when hovered.
14
- * @cssproperty [--calcite-input-actions-icon-color-press] - Specifies the icon color of the component's `clearable` and `number-button-type` elements when pressed.
15
- * @cssproperty [--calcite-input-loading-background-color] - When `loading`, specifies the background color of the component's `loading` element.
16
- * @cssproperty [--calcite-input-loading-fill-color] - When `loading`, specifies the fill color of the component's `loading` element.
17
- * @cssproperty [--calcite-input-number-background-color] - Specifies the component's background color.
18
- * @cssproperty [--calcite-input-number-border-color] - Specifies the component's border color.
19
- * @cssproperty [--calcite-input-number-corner-radius] - Specifies the component's border radius.
20
- * @cssproperty [--calcite-input-number-icon-color] - Specifies the component's icon color.
21
- * @cssproperty [--calcite-input-number-height] - Specifies the component's height.
22
- * @cssproperty [--calcite-input-number-placeholder-text-color] - Specifies the text color of the component's placeholder.
23
- * @cssproperty [--calcite-input-number-text-color] - Specifies the component's text color.
24
- * @cssproperty [--calcite-input-number-text-color-focus] - Specifies the component's text color when focused.
25
- * @cssproperty [--calcite-input-prefix-size] - When `prefixText` is provided, specifies the width of the component's prefix element.
26
- * @cssproperty [--calcite-input-prefix-text-color] - When `prefixText` is provided, specifies the text color of the component's prefix element.
27
- * @cssproperty [--calcite-input-suffix-size] - When `suffixText` is provided, specifies the width of the component's suffix element.
28
- * @cssproperty [--calcite-input-suffix-text-color] - When `suffixText` is provided, specifies the text color of the component's suffix element.
29
- * @cssproperty [--calcite-input-number-inline-editable-background-color-hover] - When `inline-editable` is enabled, specifies the background color of the component, its inline editable elements and slotted `calcite-action` wrappers, when hovered.
30
- * @cssproperty [--calcite-input-number-inline-editable-control-background-color] - When `inline-editable` is enabled, specifies the background color of the component's inline editable controls.
31
- * @cssproperty [--calcite-input-number-inline-editable-control-background-color-hover] - When `inline-editable` is enabled, specifies the background color of the component's inline editable controls, when hovered.
32
- * @cssproperty [--calcite-input-number-inline-editable-control-background-color-press] - When `inline-editable` is enabled, specifies the background color of the component's inline editable controls, when pressed.
33
- * @cssproperty [--calcite-input-number-inline-editable-control-corner-radius] - When `inline-editable` is enabled, specifies the corner radius of the component's inline editable controls.
34
- * @cssproperty [--calcite-input-number-inline-editable-control-loader-color] - When `inline-editable` is enabled, specifies the loader color of the component's inline editable controls.
35
- * @cssproperty [--calcite-input-number-inline-editable-control-text-color] - When `inline-editable` is enabled, specifies the text color of the component's inline editable controls.
36
- * @cssproperty [--calcite-input-number-inline-editable-control-text-color-press] - When `inline-editable` is enabled, specifies the text color of the component's inline editable controls, when pressed or hovered.
37
9
  * @slot [action] - A slot for positioning a `calcite-action` or other interactive content adjacent to the component.
38
10
  * @slot [label-content] - A slot for rendering content next to the component's `labelText`.
39
11
  */
@@ -85,19 +57,19 @@ export abstract class InputNumber extends LitElement {
85
57
  */
86
58
  accessor iconFlipRtl: boolean;
87
59
  /**
88
- * When `true`, enables the component's built-in inline editable behavior.
60
+ * Enables built-in inline editing. Set to `"controls-disabled"` to hide save and cancel controls.
89
61
  *
90
62
  * @default false
91
63
  */
92
- accessor inlineEditable: boolean;
93
- /** Specifies a callback to be executed when saving inline editable changes */
94
- accessor inlineEditableAfterConfirm: () => Promise<void>;
64
+ accessor inlineEdit: boolean | "controls-disabled";
95
65
  /**
96
- * When `true` and `inlineEditable` is `true`, displays the component's built-in inline editable save and cancel controls.
66
+ * When `true`, the component displays its inline editing mode.
97
67
  *
98
68
  * @default false
99
69
  */
100
- accessor inlineEditableControls: boolean;
70
+ accessor inlineEditing: boolean;
71
+ /** Specifies an optional callback to be executed when saving inline editing changes, inline editing controls must be present */
72
+ accessor inlineEditingBeforeConfirm: (() => Promise<void>) | undefined;
101
73
  /**
102
74
  * When `true`, restricts the component to integer numbers only and disables exponential notation.
103
75
  *
@@ -238,19 +210,19 @@ export abstract class InputNumber extends LitElement {
238
210
  setFocus(options?: FocusOptions): Promise<void>;
239
211
  /** Fires each time a new `value` is typed and committed. */
240
212
  readonly calciteInputNumberChange: import("@arcgis/lumina").TargetedEvent<this, void>;
241
- /** Fires when built-in inline editable is cancelled. */
242
- readonly calciteInputNumberInlineEditableCancel: import("@arcgis/lumina").TargetedEvent<this, void>;
243
- /** Fires when built-in inline editable is enabled. */
244
- readonly calciteInputNumberInlineEditableChange: import("@arcgis/lumina").TargetedEvent<this, void>;
245
- /** Fires when built-in inline editable is confirmed. */
246
- readonly calciteInputNumberInlineEditableConfirm: import("@arcgis/lumina").TargetedEvent<this, void>;
213
+ /** Fires when built-in inline editing is cancelled. */
214
+ readonly calciteInputNumberInlineEditingCancel: import("@arcgis/lumina").TargetedEvent<this, void>;
215
+ /** Fires when built-in inline editing is enabled or disabled. */
216
+ readonly calciteInputNumberInlineEditingChange: import("@arcgis/lumina").TargetedEvent<this, void>;
217
+ /** Fires after built-in inline editing confirmation completes. */
218
+ readonly calciteInputNumberInlineEditingConfirm: import("@arcgis/lumina").TargetedEvent<this, void>;
247
219
  /** Fires each time a new `value` is typed. */
248
220
  readonly calciteInputNumberInput: import("@arcgis/lumina").TargetedEvent<this, void>;
249
221
  readonly "@eventTypes": {
250
222
  calciteInputNumberChange: InputNumber["calciteInputNumberChange"]["detail"];
251
- calciteInputNumberInlineEditableCancel: InputNumber["calciteInputNumberInlineEditableCancel"]["detail"];
252
- calciteInputNumberInlineEditableChange: InputNumber["calciteInputNumberInlineEditableChange"]["detail"];
253
- calciteInputNumberInlineEditableConfirm: InputNumber["calciteInputNumberInlineEditableConfirm"]["detail"];
223
+ calciteInputNumberInlineEditingCancel: InputNumber["calciteInputNumberInlineEditingCancel"]["detail"];
224
+ calciteInputNumberInlineEditingChange: InputNumber["calciteInputNumberInlineEditingChange"]["detail"];
225
+ calciteInputNumberInlineEditingConfirm: InputNumber["calciteInputNumberInlineEditingConfirm"]["detail"];
254
226
  calciteInputNumberInput: InputNumber["calciteInputNumberInput"]["detail"];
255
227
  };
256
228
  }
@@ -6,7 +6,7 @@ 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
8
  import { useWatchAttributes, useDirection } from "@arcgis/lumina/controllers";
9
- import { v as setRequestedIcon, e as isPrimaryPointerButton } from "../../chunks/dom.js";
9
+ import { v as setRequestedIcon, h as isPrimaryPointerButton } from "../../chunks/dom.js";
10
10
  import { n as numberKeys } from "../../chunks/key.js";
11
11
  import { g as getLabelText } from "../../chunks/label.js";
12
12
  import { u as useLabel } from "../../chunks/useLabel.js";
@@ -14,7 +14,7 @@ import { i as isValidNumber, n as numberStringFormatter, B as BigDecimal, p as p
14
14
  import { g as getIconScale } from "../../chunks/component.js";
15
15
  import { C as ClearButton } from "../../chunks/ClearButton.js";
16
16
  import { I as InternalLabel } from "../../chunks/InternalLabel.js";
17
- import { U as UseInlineEditable, C as CSS$1, I as InlineEditableControls } from "../../chunks/useInlineEditable.js";
17
+ import { U as UseInlineEdit, i as inlineEditConverter, C as CSS$1, I as InlineEditControls } from "../../chunks/useInlineEdit.js";
18
18
  import { V as Validation } from "../../chunks/Validation.js";
19
19
  import { u as useT9n } from "../../chunks/useT9n.js";
20
20
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
@@ -24,11 +24,11 @@ const CSS = {
24
24
  loader: "loader",
25
25
  clearButton: "clear-button",
26
26
  clearable: "clearable",
27
- editingEnabled: "editing-enabled",
27
+ inlineEditing: "inline-editing",
28
28
  inlineChild: "inline-child",
29
29
  inlineEditableChild: "inline-editable-child",
30
30
  // `calcite-inline-editable` deprecated in v5.2.0, removal target v7.0.0
31
- inlineEditable: "inline-editable",
31
+ inlineEdit: "inline-edit",
32
32
  inputIcon: "icon",
33
33
  prefix: "prefix",
34
34
  suffix: "suffix",
@@ -56,7 +56,7 @@ const DIRECTION = {
56
56
  down: "down"
57
57
  };
58
58
  const NUDGE_DELAY_IN_MS = 150;
59
- 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: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)}.inline-editable{order:7}.action-wrapper{order:8;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{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;pointer-events:none;box-sizing:border-box;display:flex;flex-direction:column;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{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.inline-editable-child{background-color:transparent}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}.element-wrapper:has(input.inline-child:not(.editing-enabled)) .loader,.element-wrapper:has(input.inline-child:not(.editing-enabled)) .number-button-item,.element-wrapper:has(input.inline-child:not(.editing-enabled)) .prefix,.element-wrapper:has(input.inline-child:not(.editing-enabled)) .icon,.element-wrapper:has(input.inline-child:not(.editing-enabled)) .clear-button,.element-wrapper:has(input.inline-child:not(.editing-enabled)) .suffix{display:none}:host([inline-editable]:not([editing-enabled])) .wrapper:hover input,:host([inline-editable]:not([editing-enabled])) .wrapper:hover .inline-editable,:host([inline-editable]:not([editing-enabled])) .wrapper:hover .action-wrapper,:host:has(input.inline-child:not(.inline-editable-child):not(.editing-enabled)) .wrapper:hover input,:host:has(input.inline-child:not(.inline-editable-child):not(.editing-enabled)) .wrapper:hover .inline-editable,:host:has(input.inline-child:not(.inline-editable-child):not(.editing-enabled)) .wrapper:hover .action-wrapper{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-number-inline-editable-background-color-hover, var(--calcite-color-foreground-2))}:host([inline-editable]) input,:host([inline-editable]) .inline-editable,:host([inline-editable]) .action-wrapper{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-number-background-color, var(--calcite-color-foreground-1))}.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}:host([hidden]){display:none}[hidden]{display:none}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-number-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-space-2xs)}:host([scale=m]) .clear-button--container{padding:var(--calcite-space-2xs);padding-inline-end:var(--calcite-space-sm)}:host([scale=l]) .clear-button--container{padding-inline-end:var(--calcite-space-sm-plus)}.inline-editable--container{display:flex;cursor:pointer;align-items:center}.inline-editable--container .enable-editing,.inline-editable--container .confirm-changes,.inline-editable--container .cancel-editing{margin-inline-start:var(--calcite-space-2xs)}.inline-editable--container .enable-editing{--calcite-action-text-color: var(--calcite-input-number-inline-editable-control-text-color, var(--calcite-color-text-1))}.inline-editable--container calcite-action{--calcite-action-background-color: var(--calcite-input-number-inline-editable-control-background-color);--calcite-action-corner-radius: var(--calcite-input-number-inline-editable-control-corner-radius);--calcite-action-loader-color: var(--calcite-input-number-inline-editable-control-loader-color);--calcite-action-text-color: var(--calcite-input-number-inline-editable-control-text-color)}.inline-editable--container calcite-action:hover{--calcite-action-background-color-hover: var(--calcite-input-number-inline-editable-control-background-color-hover, var(--calcite-input-number-inline-editable-control-background-color));--calcite-action-text-color-press: var(--calcite-input-number-inline-editable-control-text-color-press, var(--calcite-input-number-inline-editable-control-text-color))}.inline-editable--container calcite-action:active{--calcite-action-background-color-press: var(--calcite-input-number-inline-editable-control-background-color-press, var(--calcite-input-number-inline-editable-control-background-color));--calcite-action-text-color-press: var(--calcite-input-number-inline-editable-control-text-color-press, var(--calcite-input-number-inline-editable-control-text-color))}`;
59
+ 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: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)}.inline-edit{order:7}.action-wrapper{order:8;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{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;pointer-events:none;box-sizing:border-box;display:flex;flex-direction:column;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{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.inline-editable-child{background-color:transparent}input.inline-child .inline-editing{background-color:inherit}input.inline-child:not(.inline-editing){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}.element-wrapper:has(input.inline-child:not(.inline-editing)) .loader,.element-wrapper:has(input.inline-child:not(.inline-editing)) .number-button-item,.element-wrapper:has(input.inline-child:not(.inline-editing)) .prefix,.element-wrapper:has(input.inline-child:not(.inline-editing)) .icon,.element-wrapper:has(input.inline-child:not(.inline-editing)) .clear-button,.element-wrapper:has(input.inline-child:not(.inline-editing)) .suffix{display:none}:host([inline-edit]:not([inline-editing])) .wrapper:hover input,:host([inline-edit]:not([inline-editing])) .wrapper:hover .inline-edit,:host([inline-edit]:not([inline-editing])) .wrapper:hover .action-wrapper,:host:has(input.inline-child:not(.inline-editable-child):not(.inline-editing)) .wrapper:hover input,:host:has(input.inline-child:not(.inline-editable-child):not(.inline-editing)) .wrapper:hover .inline-edit,:host:has(input.inline-child:not(.inline-editable-child):not(.inline-editing)) .wrapper:hover .action-wrapper{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-number-inline-edit-background-color-hover, var(--calcite-color-foreground-2))}:host([inline-edit]) input,:host([inline-edit]) .inline-edit,:host([inline-edit]) .action-wrapper{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-number-background-color, var(--calcite-color-foreground-1))}.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}:host([hidden]){display:none}[hidden]{display:none}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-number-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-space-2xs)}:host([scale=m]) .clear-button--container{padding:var(--calcite-space-2xs);padding-inline-end:var(--calcite-space-sm)}:host([scale=l]) .clear-button--container{padding-inline-end:var(--calcite-space-sm-plus)}.inline-edit--container{display:flex;cursor:pointer;align-items:center}.inline-edit--container .enable-editing,.inline-edit--container .confirm-changes,.inline-edit--container .cancel-editing{margin-inline-start:var(--calcite-space-2xs)}.inline-edit--container .enable-editing{--calcite-action-text-color: var(--calcite-input-number-inline-edit-control-text-color, var(--calcite-color-text-1))}.inline-edit--container calcite-action{--calcite-action-background-color: var(--calcite-input-number-inline-edit-control-background-color);--calcite-action-corner-radius: var(--calcite-input-number-inline-edit-control-corner-radius);--calcite-action-loader-color: var(--calcite-input-number-inline-edit-control-loader-color);--calcite-action-text-color: var(--calcite-input-number-inline-edit-control-text-color)}.inline-edit--container calcite-action:hover{--calcite-action-background-color-hover: var(--calcite-input-number-inline-edit-control-background-color-hover, var(--calcite-input-number-inline-edit-control-background-color));--calcite-action-text-color-press: var(--calcite-input-number-inline-edit-control-text-color-press, var(--calcite-input-number-inline-edit-control-text-color))}.inline-edit--container calcite-action:active{--calcite-action-background-color-press: var(--calcite-input-number-inline-edit-control-background-color-press, var(--calcite-input-number-inline-edit-control-background-color));--calcite-action-text-color-press: var(--calcite-input-number-inline-edit-control-text-color-press, var(--calcite-input-number-inline-edit-control-text-color))}`;
60
60
  class InputNumber extends LitElement {
61
61
  constructor() {
62
62
  super();
@@ -75,36 +75,36 @@ class InputNumber extends LitElement {
75
75
  this.messages = useT9n({ blocking: true });
76
76
  this.focusSetter = useSetFocus()(this);
77
77
  this.interactiveContainer = useInteractive(this);
78
- this.inlineEditableManager = new UseInlineEditable({
79
- getEditingEnabled: () => this.editingEnabled,
80
- setEditingEnabled: (editingEnabled) => {
81
- this.editingEnabled = editingEnabled;
78
+ this.inlineEditManager = new UseInlineEdit({
79
+ getInlineEditing: () => this.inlineEditing,
80
+ setInlineEditing: (inlineEditing) => {
81
+ this.inlineEditing = inlineEditing;
82
82
  },
83
83
  getValue: () => this.value,
84
- setValue: (value) => {
85
- this.setNumberValue({ origin: "direct", value });
84
+ restoreValue: (value) => {
85
+ this.restoreInlineEditingValue(value);
86
86
  },
87
+ commitValue: () => this.commitInlineEditingValue(),
87
88
  setFocus: () => {
88
89
  void this.setFocus();
89
90
  },
90
91
  emitCancel: () => {
91
- this.calciteInputNumberInlineEditableCancel.emit();
92
+ this.calciteInputNumberInlineEditingCancel.emit();
92
93
  },
93
94
  emitConfirm: () => {
94
- this.calciteInputNumberInlineEditableConfirm.emit();
95
+ this.calciteInputNumberInlineEditingConfirm.emit();
95
96
  },
96
97
  emitEnableEditingChange: () => {
97
- this.calciteInputNumberInlineEditableChange.emit();
98
+ this.calciteInputNumberInlineEditingChange.emit();
98
99
  }
99
100
  });
100
- this.inlineEditableLoading = false;
101
+ this.inlineEditingLoading = false;
101
102
  this.slottedActionElDisabledInternally = false;
102
103
  this.alignment = "start";
103
104
  this.clearable = false;
104
105
  this.disabled = false;
105
- this.editingEnabled = false;
106
- this.inlineEditable = false;
107
- this.inlineEditableControls = false;
106
+ this.inlineEditing = false;
107
+ this.inlineEdit = false;
108
108
  this.groupSeparator = false;
109
109
  this.iconFlipRtl = false;
110
110
  this.integer = false;
@@ -116,18 +116,18 @@ class InputNumber extends LitElement {
116
116
  this.scale = "m";
117
117
  this.status = "idle";
118
118
  this.calciteInputNumberChange = createEvent({ cancelable: false });
119
+ this.calciteInputNumberInlineEditingCancel = createEvent({ cancelable: false });
120
+ this.calciteInputNumberInlineEditingChange = createEvent({ cancelable: false });
121
+ this.calciteInputNumberInlineEditingConfirm = createEvent({ cancelable: false });
119
122
  this.calciteInputNumberInput = createEvent();
120
123
  this.calciteInternalInputNumberBlur = createEvent({ cancelable: false });
121
124
  this.calciteInternalInputNumberFocus = createEvent({ cancelable: false });
122
- this.calciteInputNumberInlineEditableCancel = createEvent({ cancelable: false });
123
- this.calciteInputNumberInlineEditableConfirm = createEvent({ cancelable: false });
124
- this.calciteInputNumberInlineEditableChange = createEvent({ cancelable: false });
125
125
  useLabel(this);
126
126
  this.listen("click", this.clickHandler);
127
127
  this.listen("keydown", this.keyDownHandler);
128
128
  }
129
129
  static {
130
- this.properties = { displayedValue: [16, {}, { state: true }], inlineEditableLoading: [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 }], inlineEditable: [7, {}, { reflect: true, type: Boolean }], inlineEditableControls: [7, {}, { reflect: true, type: Boolean }], inlineEditableAfterConfirm: [0, {}, { attribute: false }], form: [3, {}, { reflect: true }], groupSeparator: [7, {}, { reflect: true, type: Boolean }], icon: [3, { converter: stringOrBoolean }, { 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 }, { reflect: true }], validationMessage: 1, validity: [32, {}, { readOnly: true, attribute: false }], value: 1 };
130
+ this.properties = { draftValue: [16, {}, { state: true }], displayedValue: [16, {}, { state: true }], inlineEditingLoading: [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 }], inlineEditing: [7, {}, { reflect: true, type: Boolean }], inlineEdit: [3, { converter: inlineEditConverter }, { reflect: true }], inlineEditingBeforeConfirm: [0, {}, { attribute: false }], form: [3, {}, { reflect: true }], groupSeparator: [7, {}, { reflect: true, type: Boolean }], icon: [3, { converter: stringOrBoolean }, { 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 }, { reflect: true }], validationMessage: 1, validity: [32, {}, { readOnly: true, attribute: false }], value: 1 };
131
131
  }
132
132
  static {
133
133
  this.formAssociated = true;
@@ -135,17 +135,26 @@ class InputNumber extends LitElement {
135
135
  static {
136
136
  this.styles = styles;
137
137
  }
138
- get selfManagedInlineEditable() {
139
- return this.inlineEditable && !this.inlineEditableEl;
138
+ get selfManagedInlineEdit() {
139
+ return !!this.inlineEdit && !this.inlineEditableEl;
140
140
  }
141
- get hasInlineEditableContext() {
142
- return this.inlineEditable || !!this.inlineEditableEl;
141
+ get hasInlineEditContext() {
142
+ return !!this.inlineEdit || !!this.inlineEditableEl;
143
143
  }
144
- get inlineEditableEnabledInContext() {
145
- return this.inlineEditableEl ? this.inlineEditableEl.editingEnabled : this.editingEnabled;
144
+ get inlineEditControlsDisabled() {
145
+ return this.inlineEdit === "controls-disabled";
146
+ }
147
+ get inlineEditingEnabledInContext() {
148
+ return this.inlineEditableEl ? this.inlineEditableEl.editingEnabled : this.inlineEditing;
149
+ }
150
+ get isStagingInlineEditingValue() {
151
+ return this.selfManagedInlineEdit && this.inlineEditing;
152
+ }
153
+ get valueForEditing() {
154
+ return this.draftValue ?? this.value;
146
155
  }
147
156
  get isClearable() {
148
- return this.clearable && this.value.length > 0;
157
+ return this.clearable && this.valueForEditing.length > 0;
149
158
  }
150
159
  get value() {
151
160
  return this._value;
@@ -172,9 +181,6 @@ class InputNumber extends LitElement {
172
181
  connectedCallback() {
173
182
  super.connectedCallback();
174
183
  this.inlineEditableEl = this.el.closest("calcite-inline-editable") ?? void 0;
175
- if (this.inlineEditableEl) {
176
- this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
177
- }
178
184
  }
179
185
  async load() {
180
186
  this.maxString = this.max?.toString();
@@ -244,19 +250,19 @@ class InputNumber extends LitElement {
244
250
  if (this.readOnly || this.disabled || event.defaultPrevented) {
245
251
  return;
246
252
  }
247
- if (this.selfManagedInlineEditable && this.editingEnabled && event.key === "Escape") {
253
+ if (this.selfManagedInlineEdit && this.inlineEditing && event.key === "Escape") {
248
254
  event.preventDefault();
249
- if (this.clearable && this.value?.length > 0) {
255
+ if (this.isClearable) {
250
256
  this.clearInputValue(event);
251
257
  return;
252
258
  }
253
- this.inlineEditableManager.cancelEditing();
259
+ this.inlineEditManager.cancelEditing();
254
260
  requestAnimationFrame(() => {
255
261
  this.enableInlineEditingButtonRef.value?.setFocus();
256
262
  });
257
263
  return;
258
264
  }
259
- if (this.isClearable && event.key === "Escape" && (!this.hasInlineEditableContext || this.inlineEditableEnabledInContext)) {
265
+ if (this.isClearable && event.key === "Escape" && (!this.hasInlineEditContext || this.inlineEditingEnabledInContext)) {
260
266
  this.clearInputValue(event);
261
267
  event.preventDefault();
262
268
  }
@@ -266,14 +272,14 @@ class InputNumber extends LitElement {
266
272
  }
267
273
  }
268
274
  onLabelClick() {
269
- if (this.selfManagedInlineEditable && !this.editingEnabled) {
270
- this.inlineEditableManager.enable();
275
+ if (this.selfManagedInlineEdit && !this.inlineEditing) {
276
+ this.inlineEditManager.enable();
271
277
  return;
272
278
  }
273
279
  this.setFocus();
274
280
  }
275
281
  incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent) {
276
- const { value } = this;
282
+ const value = this.valueForEditing;
277
283
  if (value === "Infinity" || value === "-Infinity") {
278
284
  return;
279
285
  }
@@ -300,7 +306,29 @@ class InputNumber extends LitElement {
300
306
  value: ""
301
307
  });
302
308
  }
309
+ clearButtonPointerDownHandler(event) {
310
+ if (this.hasInlineEditContext && this.inlineEditingEnabledInContext) {
311
+ event.preventDefault();
312
+ }
313
+ }
314
+ commitInlineEditingValue() {
315
+ const draftValue = this.draftValue;
316
+ if (draftValue === void 0) {
317
+ return;
318
+ }
319
+ this.draftValue = void 0;
320
+ if (draftValue !== this.value) {
321
+ this.previousValueOrigin = "user";
322
+ this.userChangedValue = true;
323
+ this.value = draftValue;
324
+ this.calciteInputNumberChange.emit();
325
+ this.setPreviousEmittedNumberValue(draftValue);
326
+ }
327
+ }
303
328
  emitChangeIfUserModified() {
329
+ if (this.isStagingInlineEditingValue) {
330
+ return;
331
+ }
304
332
  if (this.previousValueOrigin === "user" && this.value !== this.previousEmittedNumberValue) {
305
333
  this.calciteInputNumberChange.emit();
306
334
  this.setPreviousEmittedNumberValue(this.value);
@@ -308,9 +336,13 @@ class InputNumber extends LitElement {
308
336
  }
309
337
  inputNumberBlurHandler() {
310
338
  this.stopNudging();
339
+ if (this.isStagingInlineEditingValue && this.inlineEditControlsDisabled) {
340
+ this.commitInlineEditingValue();
341
+ }
311
342
  this.calciteInternalInputNumberBlur.emit();
312
- if (this.selfManagedInlineEditable && this.editingEnabled && !this.inlineEditableControls) {
313
- this.inlineEditableManager.disable();
343
+ if (this.selfManagedInlineEdit && this.inlineEditing && this.inlineEditControlsDisabled) {
344
+ this.inlineEditManager.disable();
345
+ this.calciteInputNumberInlineEditingChange.emit();
314
346
  }
315
347
  this.emitChangeIfUserModified();
316
348
  }
@@ -319,13 +351,13 @@ class InputNumber extends LitElement {
319
351
  return;
320
352
  }
321
353
  const composedPath = event.composedPath();
322
- const clickedInlineEditableControls = composedPath.some((element) => element instanceof HTMLElement && element.classList.contains(CSS$1.container));
323
- if (!composedPath.includes(this.inputWrapperRef.value) || composedPath.includes(this.actionWrapperRef.value) || clickedInlineEditableControls) {
354
+ const clickedInlineEditControls = composedPath.some((element) => element instanceof HTMLElement && element.classList.contains(CSS$1.container));
355
+ if (!composedPath.includes(this.inputWrapperRef.value) || composedPath.includes(this.actionWrapperRef.value) || clickedInlineEditControls) {
324
356
  return;
325
357
  }
326
- if (this.selfManagedInlineEditable && !this.editingEnabled) {
358
+ if (this.selfManagedInlineEdit && !this.inlineEditing) {
327
359
  event.preventDefault();
328
- this.inlineEditableManager.enable();
360
+ this.inlineEditManager.enable();
329
361
  return;
330
362
  }
331
363
  this.setFocus();
@@ -333,6 +365,23 @@ class InputNumber extends LitElement {
333
365
  inputNumberFocusHandler() {
334
366
  this.calciteInternalInputNumberFocus.emit();
335
367
  }
368
+ focusEnableInlineEditingButton() {
369
+ void this.updateComplete.then(() => {
370
+ requestAnimationFrame(() => {
371
+ void this.enableInlineEditingButtonRef.value?.setFocus();
372
+ });
373
+ });
374
+ }
375
+ inlineEditCancelEditingHandler() {
376
+ this.inlineEditManager.cancelEditing();
377
+ this.focusEnableInlineEditingButton();
378
+ }
379
+ async inlineEditConfirmChangesHandler() {
380
+ await this.inlineEditManager.confirm(this.inlineEditingBeforeConfirm, (loading) => {
381
+ this.inlineEditingLoading = loading;
382
+ });
383
+ this.focusEnableInlineEditingButton();
384
+ }
336
385
  inputNumberInputHandler(nativeEvent) {
337
386
  if (this.disabled || this.readOnly) {
338
387
  return;
@@ -367,7 +416,7 @@ class InputNumber extends LitElement {
367
416
  });
368
417
  }
369
418
  }
370
- inputNumberKeyDownHandler(event) {
419
+ async inputNumberKeyDownHandler(event) {
371
420
  if (this.disabled || this.readOnly) {
372
421
  return;
373
422
  }
@@ -404,6 +453,19 @@ class InputNumber extends LitElement {
404
453
  const isShiftTabEvent = event.shiftKey && event.key === "Tab";
405
454
  if (supportedKeys.includes(event.key) || isShiftTabEvent) {
406
455
  if (event.key === "Enter") {
456
+ if (this.isStagingInlineEditingValue) {
457
+ event.preventDefault();
458
+ const input = event.currentTarget;
459
+ if (!this.inlineEditControlsDisabled) {
460
+ await this.inlineEditManager.confirm(this.inlineEditingBeforeConfirm, (loading) => {
461
+ this.inlineEditingLoading = loading;
462
+ });
463
+ this.focusEnableInlineEditingButton();
464
+ } else {
465
+ input.blur();
466
+ }
467
+ return;
468
+ }
407
469
  this.emitChangeIfUserModified();
408
470
  }
409
471
  return;
@@ -492,13 +554,19 @@ class InputNumber extends LitElement {
492
554
  setPreviousNumberValue(value) {
493
555
  this.previousValue = this.normalizeValue(value);
494
556
  }
557
+ restoreInlineEditingValue(value) {
558
+ this.draftValue = void 0;
559
+ this.setNumberValue({ origin: "direct", value });
560
+ }
495
561
  setNumberValue({ committing = false, nativeEvent, origin, previousValue, value }) {
496
562
  numberStringFormatter.numberFormatOptions = {
497
563
  locale: this.messages._lang,
498
564
  numberingSystem: this.numberingSystem,
499
565
  useGrouping: this.groupSeparator
500
566
  };
501
- const isValueDeleted = this.previousValue?.length > value.length || this.value?.length > value.length;
567
+ const previousDraftValue = this.valueForEditing;
568
+ const shouldStageValue = origin === "user" && this.isStagingInlineEditingValue;
569
+ const isValueDeleted = this.previousValue?.length > value.length || previousDraftValue?.length > value.length;
502
570
  const valueHandleInteger = this.integer ? value.replace(/[e.]/g, "") : value;
503
571
  const hasTrailingDecimalSeparator = valueHandleInteger.charAt(valueHandleInteger.length - 1) === ".";
504
572
  const hasLeadingMinusSign = valueHandleInteger.charAt(0) === "-";
@@ -516,11 +584,15 @@ class InputNumber extends LitElement {
516
584
  newLocalizedValue = `${hasLeadingMinusSign ? newLocalizedValue.charAt(0) : ""}${numberStringFormatter.localize("0").repeat(hasLeadingZeros[1].length)}${hasLeadingMinusSign ? newLocalizedValue.slice(1) : newLocalizedValue}`;
517
585
  }
518
586
  this.displayedValue = newLocalizedValue;
519
- this.setPreviousNumberValue(previousValue ?? this.value);
587
+ this.setPreviousNumberValue(previousValue ?? previousDraftValue);
520
588
  this.previousValueOrigin = origin;
521
- this.userChangedValue = origin === "user" && this.value !== newValue;
522
589
  const validNewValue = ["-", "."].includes(newValue) ? "" : newValue;
523
- this.value = validNewValue;
590
+ if (shouldStageValue) {
591
+ this.draftValue = validNewValue;
592
+ } else {
593
+ this.userChangedValue = origin === "user" && this.value !== validNewValue;
594
+ this.value = validNewValue;
595
+ }
524
596
  const localizedCharAllowlist = /* @__PURE__ */ new Set([
525
597
  "e",
526
598
  "E",
@@ -537,15 +609,16 @@ class InputNumber extends LitElement {
537
609
  }
538
610
  }
539
611
  if (origin === "direct") {
612
+ this.draftValue = void 0;
540
613
  this.setInputNumberValue(newLocalizedValue);
541
614
  this.setPreviousEmittedNumberValue(validNewValue);
542
615
  }
543
- if (nativeEvent) {
616
+ if (nativeEvent && !shouldStageValue) {
544
617
  const calciteInputNumberInputEvent = this.calciteInputNumberInput.emit();
545
618
  if (calciteInputNumberInputEvent.defaultPrevented) {
546
619
  this.value = this.previousValue;
547
620
  this.displayedValue = numberStringFormatter.localize(this.previousValue);
548
- } else if (committing) {
621
+ } else if (committing && !shouldStageValue) {
549
622
  this.emitChangeIfUserModified();
550
623
  }
551
624
  }
@@ -561,7 +634,7 @@ class InputNumber extends LitElement {
561
634
  render() {
562
635
  const dir = this.direction;
563
636
  const loader = html`<div class=${safeClassMap(CSS.loader)}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`;
564
- 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>`;
637
+ const clearButton = html`<div class=${safeClassMap(CSS.clearButton)} @click=${this.disabled || this.readOnly ? void 0 : this.clearInputValue} @pointerdown=${this.clearButtonPointerDownHandler}>${ClearButton({ ariaLabel: this.messages.clear, disabled: this.disabled || this.readOnly, scale: this.scale, title: this.messages.clear })}</div>`;
565
638
  const iconEl = html`<div class=${safeClassMap(CSS.inputIcon)}><calcite-icon .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${getIconScale(this.scale)}></calcite-icon></div>`;
566
639
  const isHorizontalNumberButton = this.numberButtonType === "horizontal";
567
640
  const numberButtonsHorizontalUp = html`<div aria-hidden=true class=${safeClassMap({
@@ -576,20 +649,18 @@ class InputNumber extends LitElement {
576
649
  const prefixText = html`<div class=${safeClassMap(CSS.prefix)}>${this.prefixText}</div>`;
577
650
  const suffixText = html`<div class=${safeClassMap(CSS.suffix)}>${this.suffixText}</div>`;
578
651
  const childEl = keyed("localized-input", html`<input aria-errormessage=${IDS.validationMessage} .ariaInvalid=${this.status === "invalid"} .ariaLabel=${getLabelText(this)} autocomplete=${this.autocomplete ?? nothing} .autofocus=${this.el.autofocus} class=${safeClassMap({
579
- [CSS.editingEnabled]: this.inlineEditableEnabledInContext,
580
- [CSS.inlineChild]: this.hasInlineEditableContext,
652
+ [CSS.inlineEditing]: this.inlineEditingEnabledInContext,
653
+ [CSS.inlineChild]: this.hasInlineEditContext,
581
654
  [CSS.inlineEditableChild]: !!this.inlineEditableEl
582
655
  // `calcite-inline-editable` deprecated in v5.2.0, removal target v7.0.0
583
- })} value=${this.defaultValue ?? nothing} .disabled=${this.disabled} enterkeyhint=${this.el.enterKeyHint ?? nothing} inputmode=${(this.el.inputMode || "decimal") ?? nothing} maxlength=${this.maxLength ?? nothing} minlength=${this.minLength ?? nothing} @blur=${this.inputNumberBlurHandler} @focus=${this.inputNumberFocusHandler} @input=${this.inputNumberInputHandler} @keydown=${this.inputNumberKeyDownHandler} @keyup=${this.inputNumberKeyUpHandler} placeholder=${(this.placeholder || "") ?? nothing} .readOnly=${this.readOnly} .required=${this.required} tabindex=${(this.disabled || this.hasInlineEditableContext && !this.inlineEditableEnabledInContext ? -1 : void 0) ?? nothing} type=text .value=${live(this.displayedValue ?? "")} ${ref(this.childNumberRef)}>`);
656
+ })} value=${this.defaultValue ?? nothing} .disabled=${this.disabled} enterkeyhint=${this.el.enterKeyHint ?? nothing} inputmode=${(this.el.inputMode || "decimal") ?? nothing} maxlength=${this.maxLength ?? nothing} minlength=${this.minLength ?? nothing} @blur=${this.inputNumberBlurHandler} @focus=${this.inputNumberFocusHandler} @input=${this.inputNumberInputHandler} @keydown=${this.inputNumberKeyDownHandler} @keyup=${this.inputNumberKeyUpHandler} placeholder=${(this.placeholder || "") ?? nothing} .readOnly=${this.readOnly} .required=${this.required} tabindex=${(this.disabled || this.hasInlineEditContext && !this.inlineEditingEnabledInContext ? -1 : void 0) ?? nothing} type=text .value=${live(this.displayedValue ?? "")} ${ref(this.childNumberRef)}>`);
584
657
  return this.interactiveContainer({ disabled: this.disabled, children: html`${this.labelText && InternalLabel({ labelText: this.labelText, onClick: this.onLabelClick, required: this.required, tooltipText: this.messages.required }) || ""}<div class=${safeClassMap({
585
658
  [CSS.inputWrapper]: true,
586
659
  [CSS_UTILITY.rtl]: dir === "rtl",
587
660
  [CSS.hasSuffix]: this.suffixText,
588
661
  [CSS.hasPrefix]: this.prefixText,
589
662
  [CSS.clearable]: this.isClearable
590
- })} ${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>${this.selfManagedInlineEditable && html`<div class=${safeClassMap(CSS.inlineEditable)}>${InlineEditableControls({ cancelEditingLabel: this.messages.cancelInlineEditing, confirmChangesLabel: this.messages.confirmInlineEditingChanges, editingEnabled: this.editingEnabled, enableEditingButtonRef: this.enableInlineEditingButtonRef, enableEditingLabel: this.messages.enableInlineEditing, loading: this.inlineEditableLoading, onCancelEditing: () => this.inlineEditableManager.cancelEditing(), onConfirmChanges: () => this.inlineEditableManager.confirm(this.inlineEditableAfterConfirm, (loading) => {
591
- this.inlineEditableLoading = loading;
592
- }), onEnableEditing: () => this.inlineEditableManager.enable(), scale: this.scale, showControls: this.editingEnabled && this.inlineEditableControls })}</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}` });
663
+ })} ${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>${this.selfManagedInlineEdit && html`<div class=${safeClassMap(CSS.inlineEdit)}>${InlineEditControls({ cancelEditingLabel: this.messages.cancelInlineEditing, confirmChangesLabel: this.messages.confirmInlineEditingChanges, enableEditingButtonRef: this.enableInlineEditingButtonRef, enableEditingLabel: this.messages.enableInlineEditing, inlineEditing: this.inlineEditing, loading: this.inlineEditingLoading, onCancelEditing: this.inlineEditCancelEditingHandler, onConfirmChanges: this.inlineEditConfirmChangesHandler, onEnableEditing: () => this.inlineEditManager.enable(), scale: this.scale, showControls: this.inlineEditing && !this.inlineEditControlsDisabled })}</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}` });
593
664
  }
594
665
  }
595
666
  customElement("calcite-input-number", InputNumber);