@esri/calcite-components 5.2.0-next.3 → 5.2.0-next.4

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 (260) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/{LGJJ3IVS.js → 24XW36XW.js} +1 -1
  3. package/dist/cdn/{NXAZFXVJ.js → 2BIW77FS.js} +1 -1
  4. package/dist/cdn/{C4T3FNZ6.js → 2CPNDRJN.js} +1 -1
  5. package/dist/cdn/{B3XEP4OJ.js → 2GFEIPYA.js} +1 -1
  6. package/dist/cdn/{S4DHIY5S.js → 2GIYJ5S4.js} +1 -1
  7. package/dist/cdn/{LZB4RQKP.js → 2NVBHC4D.js} +1 -1
  8. package/dist/cdn/2OKTIK5P.js +2 -0
  9. package/dist/cdn/{OF67Q5H4.js → 2WTFQ6VU.js} +1 -1
  10. package/dist/cdn/{NA2SOXT6.js → 3AZFSAZW.js} +1 -1
  11. package/dist/cdn/{WXVKYWR3.js → 3GYZZNF6.js} +1 -1
  12. package/dist/cdn/{6T2ZPNFA.js → 3VTWLNYM.js} +1 -1
  13. package/dist/cdn/{25REF2NN.js → 3W6YYTUS.js} +1 -1
  14. package/dist/cdn/{B2TFN5WO.js → 44WTMUOU.js} +1 -1
  15. package/dist/cdn/{ZU5TOIDV.js → 4ENZX7JD.js} +1 -1
  16. package/dist/cdn/{5TLZJ44V.js → 4XXCMSYK.js} +1 -1
  17. package/dist/cdn/{EDVESYWS.js → 5BRHCY56.js} +1 -1
  18. package/dist/cdn/{VYOTQ57Z.js → 5F5N45N2.js} +1 -1
  19. package/dist/cdn/{AXKBFCNE.js → 5HQW2B4L.js} +1 -1
  20. package/dist/cdn/{FLRXMVF6.js → 5J5YPAQF.js} +1 -1
  21. package/dist/cdn/{J6NGVSKR.js → 5MJOA2EC.js} +1 -1
  22. package/dist/cdn/{ZWWFCCZ7.js → 5Z6Y27PN.js} +1 -1
  23. package/dist/cdn/{A5BV4RXA.js → 6M54QVXX.js} +1 -1
  24. package/dist/cdn/{X2KGYKIA.js → 7CTKDBNP.js} +1 -1
  25. package/dist/cdn/{74BKHZU7.js → 7KZDKRE5.js} +1 -1
  26. package/dist/cdn/{XH36YHWX.js → AC3VJGBR.js} +1 -1
  27. package/dist/cdn/{MYKQDV34.js → AH2ILKOU.js} +1 -1
  28. package/dist/cdn/{KBAOMH37.js → ARJXIE5E.js} +1 -1
  29. package/dist/cdn/{2V5PWFGL.js → AV2KGCM3.js} +1 -1
  30. package/dist/cdn/{5OIVOI4E.js → B255QVJJ.js} +1 -1
  31. package/dist/cdn/{NE4W2KYY.js → BC2RGQAT.js} +1 -1
  32. package/dist/cdn/{XGOD2THM.js → BKETK56P.js} +1 -1
  33. package/dist/cdn/{PIPT523T.js → BQXZQXDH.js} +1 -1
  34. package/dist/cdn/{Q45HAOK7.js → BUA4VQLY.js} +1 -1
  35. package/dist/cdn/{FH3ISPWF.js → BXPPKXA4.js} +1 -1
  36. package/dist/cdn/C5UFPB7M.js +2 -0
  37. package/dist/cdn/{HURRNHB4.js → C7G4TGZX.js} +1 -1
  38. package/dist/cdn/{46V4FBEL.js → CARY3C4R.js} +1 -1
  39. package/dist/cdn/{Y3AQSDDG.js → CCXEESJV.js} +1 -1
  40. package/dist/cdn/{LJVNR3MM.js → CF6R3CEF.js} +1 -1
  41. package/dist/cdn/CHVPHDET.js +2 -0
  42. package/dist/cdn/{M7C3FAEE.js → CKNWJGRW.js} +1 -1
  43. package/dist/cdn/CMY74TQR.js +2 -0
  44. package/dist/cdn/{MKTDHS2D.js → CORQ5EDZ.js} +1 -1
  45. package/dist/cdn/{4QUJLWDM.js → CP4Z56ZR.js} +1 -1
  46. package/dist/cdn/{XQKJ2MAY.js → CTLPGOB7.js} +1 -1
  47. package/dist/cdn/{XWQGS5WX.js → CYYQXD64.js} +1 -1
  48. package/dist/cdn/{CPRYH6HJ.js → D7PUB2VW.js} +1 -1
  49. package/dist/cdn/{2KQYBSYT.js → DFHWYAUO.js} +1 -1
  50. package/dist/cdn/{ILPS2EH6.js → DGXWUFHV.js} +1 -1
  51. package/dist/cdn/{XWVX33VP.js → DM5PCYTC.js} +1 -1
  52. package/dist/cdn/{FW4A2RXA.js → DYLGNP2R.js} +1 -1
  53. package/dist/cdn/{GFTCJY52.js → EPBMP22J.js} +1 -1
  54. package/dist/cdn/{RWUXB3VT.js → EW27G33J.js} +1 -1
  55. package/dist/cdn/{QSAWZORD.js → EWIM5HH4.js} +1 -1
  56. package/dist/cdn/{FP6LX7PQ.js → F2DLFMMQ.js} +1 -1
  57. package/dist/cdn/{XMMZONMQ.js → FSYJWUBV.js} +1 -1
  58. package/dist/cdn/{VI4U7JDU.js → FWMASCBJ.js} +1 -1
  59. package/dist/cdn/{5MF7KGEH.js → G2WKLE63.js} +1 -1
  60. package/dist/cdn/{QCU7UPIO.js → GBYDFEYR.js} +1 -1
  61. package/dist/cdn/{IKKOQYJ3.js → GCQOLCYX.js} +1 -1
  62. package/dist/cdn/{ASUBNSLW.js → GLB7VDX7.js} +1 -1
  63. package/dist/cdn/{5P3KUKVG.js → GWO7M4CB.js} +1 -1
  64. package/dist/cdn/{ECQHUL2I.js → HHOCH2WQ.js} +1 -1
  65. package/dist/cdn/{YIYK2AH7.js → HPI37X3H.js} +1 -1
  66. package/dist/cdn/HUHXPX4S.js +2 -0
  67. package/dist/cdn/{IKHJ3B3O.js → I2YZCTNB.js} +1 -1
  68. package/dist/cdn/I62TONNU.js +2 -0
  69. package/dist/cdn/{DZ3BSHVB.js → IC76575N.js} +1 -1
  70. package/dist/cdn/{F6A3EV5Z.js → IKJKNZRO.js} +1 -1
  71. package/dist/cdn/{LXNSAHEI.js → IOQX4VTU.js} +1 -1
  72. package/dist/cdn/{5SMFDB2H.js → IWFPWFJR.js} +1 -1
  73. package/dist/cdn/{64Q6HGDE.js → JACGCENG.js} +1 -1
  74. package/dist/cdn/{BPEX76AH.js → JJRBBNII.js} +1 -1
  75. package/dist/cdn/{KFBRWS3D.js → JL6EDIGB.js} +1 -1
  76. package/dist/cdn/{YPXCM33T.js → JMOU4F7W.js} +1 -1
  77. package/dist/cdn/{XVSPVAAK.js → JNWSTJU6.js} +1 -1
  78. package/dist/cdn/{L4UV3JUD.js → JOSZJ4U5.js} +1 -1
  79. package/dist/cdn/{ECM52CXF.js → JXHQEAMO.js} +1 -1
  80. package/dist/cdn/{FA3N4SCO.js → KAINKHTB.js} +1 -1
  81. package/dist/cdn/{PZ2JFTG3.js → L4565LYV.js} +1 -1
  82. package/dist/cdn/{PKZQRMZP.js → L7ZU6UHP.js} +1 -1
  83. package/dist/cdn/{2ZHE6WYE.js → LQPCOJZC.js} +1 -1
  84. package/dist/cdn/{MJULDZYK.js → MFPSZIXT.js} +1 -1
  85. package/dist/cdn/{UR3E5C47.js → MHDQTRTS.js} +1 -1
  86. package/dist/cdn/{TVOZYOEI.js → MU324X7S.js} +1 -1
  87. package/dist/cdn/{5ERAQVFI.js → N5DDKO3N.js} +1 -1
  88. package/dist/cdn/{Y5ML7MYH.js → NKZDXCA3.js} +1 -1
  89. package/dist/cdn/{OHEDJJP3.js → NNVS72ZQ.js} +1 -1
  90. package/dist/cdn/{O4YDLMH4.js → NO2IBH5N.js} +1 -1
  91. package/dist/cdn/{ZMPSTGQA.js → NTTXPITY.js} +1 -1
  92. package/dist/cdn/NUPS67PK.js +2 -0
  93. package/dist/cdn/{46YJO7ZX.js → NY4L6FEN.js} +1 -1
  94. package/dist/cdn/{I7GYAHCX.js → O7X3EP3R.js} +1 -1
  95. package/dist/cdn/{45GYNS4N.js → OGL4GEZF.js} +1 -1
  96. package/dist/cdn/{HAJB6MIB.js → OH6YFLLX.js} +1 -1
  97. package/dist/cdn/{O6PZ7XSR.js → P6AYQBI6.js} +1 -1
  98. package/dist/cdn/{CS5FMS2X.js → PFQXFR3J.js} +1 -1
  99. package/dist/cdn/{77P5NIL6.js → PQIVVLWM.js} +1 -1
  100. package/dist/cdn/{2R5575FD.js → PT3URJPT.js} +1 -1
  101. package/dist/cdn/{HTYBEKT4.js → Q6D2HYAM.js} +1 -1
  102. package/dist/cdn/{G2DHRTQC.js → Q74VIYYT.js} +1 -1
  103. package/dist/cdn/{4NKWSPPP.js → QNANJC5N.js} +1 -1
  104. package/dist/cdn/{G3IACNMC.js → QURCJOLS.js} +1 -1
  105. package/dist/cdn/{G3MFBUAJ.js → QZXRRHZI.js} +1 -1
  106. package/dist/cdn/{55C3E7K2.js → R2HCYTV3.js} +1 -1
  107. package/dist/cdn/{UDGWJQLI.js → R4LR6JBT.js} +1 -1
  108. package/dist/cdn/{XXX7LPUI.js → RLQPAL3G.js} +1 -1
  109. package/dist/cdn/{2HNTBRGI.js → S6A7QIY2.js} +1 -1
  110. package/dist/cdn/{5UK4QYJH.js → S6CBIU4I.js} +1 -1
  111. package/dist/cdn/{YU26YM2P.js → S7RFXIID.js} +1 -1
  112. package/dist/cdn/{QFXBPBV6.js → T2LA26T7.js} +1 -1
  113. package/dist/cdn/{EUNOZE74.js → TFI32YIW.js} +1 -1
  114. package/dist/cdn/{DNCOUN25.js → TJKKXO65.js} +1 -1
  115. package/dist/cdn/{FMFRALQU.js → TTBDTS7V.js} +1 -1
  116. package/dist/cdn/{WVDLNASH.js → TWVG44TI.js} +1 -1
  117. package/dist/cdn/{5YMFALSV.js → TZEYHRND.js} +1 -1
  118. package/dist/cdn/{WYHTLF5H.js → U6OTDRDG.js} +1 -1
  119. package/dist/cdn/{FVWMPMHM.js → U7OV6L43.js} +1 -1
  120. package/dist/cdn/{3QDH4BSH.js → UF2N6ABQ.js} +1 -1
  121. package/dist/cdn/{XY6ZZY3N.js → UFPS5THO.js} +1 -1
  122. package/dist/cdn/{E7ZJND2K.js → UJQUDROZ.js} +1 -1
  123. package/dist/cdn/{G4OJO3U4.js → UJRHNVSJ.js} +1 -1
  124. package/dist/cdn/{PX6CN3BM.js → UMVL2A7E.js} +1 -1
  125. package/dist/cdn/{VHNQUJ3I.js → USMDWOOR.js} +1 -1
  126. package/dist/cdn/{JWS6J7PU.js → UZLV6ZKB.js} +1 -1
  127. package/dist/cdn/{5HLTQ2LF.js → VFE65IIH.js} +1 -1
  128. package/dist/cdn/{GTSHC732.js → VIAY4ZRC.js} +1 -1
  129. package/dist/cdn/{5TANECZK.js → VMUOIKWP.js} +1 -1
  130. package/dist/cdn/{3Z5JAFWG.js → VXQU67VG.js} +1 -1
  131. package/dist/cdn/{FRW722GZ.js → WV7Y7ZAG.js} +1 -1
  132. package/dist/cdn/{H5OQSDKX.js → X4J4PEMW.js} +1 -1
  133. package/dist/cdn/{SVCYJ4XS.js → XCKTCFWS.js} +1 -1
  134. package/dist/cdn/{ZFKR3EYV.js → XFLOOJCN.js} +1 -1
  135. package/dist/cdn/{SQVIEOWT.js → XI3FBKU5.js} +1 -1
  136. package/dist/cdn/{RQUJRPWK.js → XJQE4TBM.js} +1 -1
  137. package/dist/cdn/{CM6N5CTY.js → XL7EXU56.js} +1 -1
  138. package/dist/cdn/XSDBVOII.js +2 -0
  139. package/dist/cdn/{YVOGB4KL.js → XUGBNEVM.js} +1 -1
  140. package/dist/cdn/{YKKTX575.js → XZ3BWCEM.js} +1 -1
  141. package/dist/cdn/Y6TCI7PY.js +2 -0
  142. package/dist/cdn/{EMVLBTN2.js → YM3XWOJY.js} +1 -1
  143. package/dist/cdn/{7R2AK6N6.js → YZTUQM6P.js} +1 -1
  144. package/dist/cdn/{FFGBSJ3K.js → Z32RDX4L.js} +1 -1
  145. package/dist/cdn/Z3TMJ6KM.js +2 -0
  146. package/dist/cdn/{ZBDHEOSY.js → ZN2URSJV.js} +1 -1
  147. package/dist/cdn/assets/icon/buildingIndex16.json +1 -0
  148. package/dist/cdn/assets/icon/buildingIndex24.json +1 -0
  149. package/dist/cdn/assets/icon/buildingIndex32.json +1 -0
  150. package/dist/cdn/assets/icon/fireIndex16.json +1 -0
  151. package/dist/cdn/assets/icon/fireIndex24.json +1 -0
  152. package/dist/cdn/assets/icon/fireIndex32.json +1 -0
  153. package/dist/cdn/assets/icon/geologyIndex16.json +1 -0
  154. package/dist/cdn/assets/icon/geologyIndex24.json +1 -0
  155. package/dist/cdn/assets/icon/geologyIndex32.json +1 -0
  156. package/dist/cdn/assets/icon/returnToDefault16.json +1 -1
  157. package/dist/cdn/assets/icon/returnToDefault32.json +1 -1
  158. package/dist/cdn/assets/icon/smartSearch16.json +1 -0
  159. package/dist/cdn/assets/icon/smartSearch24.json +1 -0
  160. package/dist/cdn/assets/icon/smartSearch32.json +1 -0
  161. package/dist/cdn/assets/icon/snowIndex16.json +1 -0
  162. package/dist/cdn/assets/icon/snowIndex24.json +1 -0
  163. package/dist/cdn/assets/icon/snowIndex32.json +1 -0
  164. package/dist/cdn/assets/icon/soilAdjustedVegetationIndex16.json +1 -0
  165. package/dist/cdn/assets/icon/soilAdjustedVegetationIndex24.json +1 -0
  166. package/dist/cdn/assets/icon/soilAdjustedVegetationIndex32.json +1 -0
  167. package/dist/cdn/assets/icon/vegetationIndex16.json +1 -0
  168. package/dist/cdn/assets/icon/vegetationIndex24.json +1 -0
  169. package/dist/cdn/assets/icon/vegetationIndex32.json +1 -0
  170. package/dist/cdn/assets/input/t9n/messages.en.json +1 -1
  171. package/dist/cdn/assets/input/t9n/messages.json +1 -1
  172. package/dist/cdn/assets/input-number/t9n/messages.en.json +1 -1
  173. package/dist/cdn/assets/input-number/t9n/messages.json +1 -1
  174. package/dist/cdn/assets/input-text/t9n/messages.en.json +1 -1
  175. package/dist/cdn/assets/input-text/t9n/messages.json +1 -1
  176. package/dist/cdn/index.js +1 -1
  177. package/dist/chunks/ClearButton.js +1 -1
  178. package/dist/chunks/resources12.js +27 -0
  179. package/dist/chunks/runtime.js +4 -4
  180. package/dist/chunks/useSizeOverride.js +1 -1
  181. package/dist/chunks/useTime.js +3 -0
  182. package/dist/components/calcite-action/customElement.d.ts +1 -5
  183. package/dist/components/calcite-action-group/customElement.d.ts +2 -4
  184. package/dist/components/calcite-action-menu/customElement.d.ts +2 -4
  185. package/dist/components/calcite-alert/customElement.d.ts +1 -3
  186. package/dist/components/calcite-autocomplete/customElement.d.ts +3 -9
  187. package/dist/components/calcite-autocomplete-item/customElement.d.ts +1 -1
  188. package/dist/components/calcite-block/customElement.d.ts +3 -5
  189. package/dist/components/calcite-button/customElement.d.ts +1 -5
  190. package/dist/components/calcite-checkbox/customElement.d.ts +1 -5
  191. package/dist/components/calcite-combobox/customElement.d.ts +3 -9
  192. package/dist/components/calcite-combobox-item/customElement.d.ts +1 -1
  193. package/dist/components/calcite-dialog/customElement.d.ts +1 -3
  194. package/dist/components/calcite-dropdown/customElement.d.ts +2 -4
  195. package/dist/components/calcite-filter/customElement.js +1 -1
  196. package/dist/components/calcite-flow-item/customElement.d.ts +2 -4
  197. package/dist/components/calcite-icon/customElement.d.ts +2 -2
  198. package/dist/components/calcite-icon/customElement.js +4 -4
  199. package/dist/components/calcite-inline-editable/customElement.d.ts +1 -1
  200. package/dist/components/calcite-inline-editable/customElement.js +4 -2
  201. package/dist/components/calcite-input/customElement.d.ts +23 -24
  202. package/dist/components/calcite-input/customElement.js +14 -12
  203. package/dist/components/calcite-input-date-picker/customElement.d.ts +17 -23
  204. package/dist/components/calcite-input-date-picker/customElement.js +23 -23
  205. package/dist/components/calcite-input-message/customElement.d.ts +1 -1
  206. package/dist/components/calcite-input-number/customElement.d.ts +22 -25
  207. package/dist/components/calcite-input-number/customElement.js +14 -12
  208. package/dist/components/calcite-input-text/customElement.d.ts +18 -19
  209. package/dist/components/calcite-input-text/customElement.js +3 -3
  210. package/dist/components/calcite-input-time-picker/customElement.d.ts +11 -13
  211. package/dist/components/calcite-input-time-picker/customElement.js +34 -10
  212. package/dist/components/calcite-input-time-zone/customElement.d.ts +9 -15
  213. package/dist/components/calcite-input-time-zone/customElement.js +11 -9
  214. package/dist/components/calcite-list-item/customElement.d.ts +1 -3
  215. package/dist/components/calcite-meter/customElement.d.ts +1 -3
  216. package/dist/components/calcite-panel/customElement.d.ts +4 -6
  217. package/dist/components/calcite-popover/customElement.d.ts +2 -4
  218. package/dist/components/calcite-radio-button/customElement.d.ts +1 -5
  219. package/dist/components/calcite-rating/customElement.d.ts +1 -5
  220. package/dist/components/calcite-segmented-control/customElement.d.ts +1 -5
  221. package/dist/components/calcite-select/customElement.d.ts +1 -5
  222. package/dist/components/calcite-sheet/customElement.d.ts +1 -3
  223. package/dist/components/calcite-slider/customElement.d.ts +13 -17
  224. package/dist/components/calcite-slider/customElement.js +19 -20
  225. package/dist/components/calcite-sort-handle/customElement.d.ts +2 -4
  226. package/dist/components/calcite-split-button/customElement.d.ts +12 -14
  227. package/dist/components/calcite-split-button/customElement.js +1 -1
  228. package/dist/components/calcite-stepper/customElement.d.ts +1 -1
  229. package/dist/components/calcite-stepper/customElement.js +10 -10
  230. package/dist/components/calcite-stepper-item/customElement.d.ts +3 -3
  231. package/dist/components/calcite-stepper-item/customElement.js +8 -24
  232. package/dist/components/calcite-swatch/customElement.d.ts +1 -1
  233. package/dist/components/calcite-swatch/customElement.js +2 -2
  234. package/dist/components/calcite-swatch-group/customElement.js +8 -6
  235. package/dist/components/calcite-switch/customElement.d.ts +6 -10
  236. package/dist/components/calcite-table-header/customElement.d.ts +1 -1
  237. package/dist/components/calcite-text-area/customElement.d.ts +1 -5
  238. package/dist/components/calcite-tile/customElement.d.ts +1 -1
  239. package/dist/components/calcite-tooltip/customElement.d.ts +1 -3
  240. package/dist/controllers/useTime.d.ts +3 -0
  241. package/dist/docs/api.json +1 -1
  242. package/dist/docs/docs.json +1 -1
  243. package/dist/docs/translations.json +1 -1
  244. package/dist/docs/vscode.html-custom-data.json +1 -1
  245. package/dist/docs/web-types.json +1 -1
  246. package/dist/loader.js +1 -1
  247. package/dist/types/lumina.d.ts +1 -1
  248. package/dist/types/preact.d.ts +1 -1
  249. package/dist/types/react.d.ts +1 -1
  250. package/dist/types/stencil.d.ts +1 -1
  251. package/package.json +4 -3
  252. package/dist/cdn/2QPDMP77.js +0 -2
  253. package/dist/cdn/3E5PTGBR.js +0 -2
  254. package/dist/cdn/3I6JOWLC.js +0 -2
  255. package/dist/cdn/45OM3TVW.js +0 -2
  256. package/dist/cdn/4KPRVK5B.js +0 -2
  257. package/dist/cdn/LGHZN3MI.js +0 -2
  258. package/dist/cdn/PYIKGUJ2.js +0 -2
  259. package/dist/cdn/QSMEIRS5.js +0 -2
  260. package/dist/cdn/VFOFNA4N.js +0 -2
@@ -30,6 +30,8 @@ class InlineEditable extends LitElement {
30
30
  this.cancelEditingButtonRef = createRef();
31
31
  this._editingEnabled = false;
32
32
  this.enableEditingButtonRef = createRef();
33
+ this.shouldEmitCancel = false;
34
+ this.valuePriorToEditing = "";
33
35
  this.messages = useT9n();
34
36
  this.focusSetter = useSetFocus()(this);
35
37
  this.interactiveContainer = useInteractive(this);
@@ -102,7 +104,7 @@ class InlineEditable extends LitElement {
102
104
  this.setFocus();
103
105
  }
104
106
  enableEditing() {
105
- this.valuePriorToEditing = this.inputEl?.value;
107
+ this.valuePriorToEditing = this.inputEl?.value ?? "";
106
108
  this.editingEnabled = true;
107
109
  this.inputEl?.setFocus();
108
110
  this.calciteInternalInlineEditableEnableEditingChange.emit();
@@ -131,7 +133,7 @@ class InlineEditable extends LitElement {
131
133
  if (event.key === "Tab" && this.shouldShowControls) {
132
134
  if (!event.shiftKey && event.target === this.inputEl) {
133
135
  event.preventDefault();
134
- this.cancelEditingButtonRef.value.setFocus();
136
+ this.cancelEditingButtonRef.value?.setFocus();
135
137
  }
136
138
  if (!!event.shiftKey && event.target === this.cancelEditingButtonRef.value) {
137
139
  event.preventDefault();
@@ -35,7 +35,7 @@ export abstract class Input extends LitElement {
35
35
  *
36
36
  * @see [MDN - step](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern)
37
37
  */
38
- accessor accept: string;
38
+ accessor accept: string | undefined;
39
39
  /**
40
40
  * Specifies the text alignment of the component's `value`.
41
41
  *
@@ -48,7 +48,7 @@ export abstract class Input extends LitElement {
48
48
  *
49
49
  * @see [MDN - autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
50
50
  */
51
- accessor autocomplete: AutoFill;
51
+ accessor autocomplete: AutoFill | undefined;
52
52
  /**
53
53
  * When `true` and the component has a `value`, a clear button is displayed. The clear button shows by default for `"search"`, `"time"`, and `"date"` types.
54
54
  *
@@ -68,12 +68,8 @@ export abstract class Input extends LitElement {
68
68
  * @see [MDN - files](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/files)
69
69
  */
70
70
  accessor files: FileList | undefined;
71
- /**
72
- * Specifies the `id` of the component's associated form.
73
- *
74
- * When not set, the component is associated with its ancestor form element, if one exists.
75
- */
76
- accessor form: string;
71
+ /** Specifies the `id` of the component's associated form. When not set, the component is associated with its ancestor form element, if one exists. */
72
+ accessor form: string | undefined;
77
73
  /**
78
74
  * When `true`, number values are displayed with a group separator corresponding to the language and country format.
79
75
  *
@@ -81,7 +77,7 @@ export abstract class Input extends LitElement {
81
77
  */
82
78
  accessor groupSeparator: boolean;
83
79
  /** When `true`, displays a default recommended icon. Alternatively, pass a Calcite UI Icon name to display a specific icon. */
84
- accessor icon: IconName | boolean;
80
+ accessor icon: IconName | boolean | undefined;
85
81
  /**
86
82
  * When `true` and the element direction is right-to-left (`"rtl"`), flips the component`s `icon`.
87
83
  *
@@ -89,9 +85,9 @@ export abstract class Input extends LitElement {
89
85
  */
90
86
  accessor iconFlipRtl: boolean;
91
87
  /** Specifies an accessible label for the component. */
92
- accessor label: string;
88
+ accessor label: string | undefined;
93
89
  /** Specifies the component's label text. */
94
- accessor labelText: string;
90
+ accessor labelText: string | undefined;
95
91
  /**
96
92
  * When `true`, a busy indicator is displayed.
97
93
  *
@@ -104,17 +100,20 @@ export abstract class Input extends LitElement {
104
100
  *
105
101
  * @see [MDN - max](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max)
106
102
  */
107
- accessor max: number;
103
+ accessor max: number | undefined;
108
104
  /**
109
105
  * When the component resides in a form,
110
106
  * specifies the maximum length of text for the component's `value`.
111
107
  *
112
108
  * @see [MDN - maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength)
113
109
  */
114
- accessor maxLength: number;
110
+ accessor maxLength: number | undefined;
115
111
  /** Overrides individual strings used by the component. */
116
112
  accessor messageOverrides: {
113
+ cancelInlineEditing?: string;
117
114
  clear?: string;
115
+ confirmInlineEditingChanges?: string;
116
+ enableInlineEditing?: string;
118
117
  loading?: string;
119
118
  required?: string;
120
119
  };
@@ -124,14 +123,14 @@ export abstract class Input extends LitElement {
124
123
  *
125
124
  * @see [MDN - min](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min)
126
125
  */
127
- accessor min: number;
126
+ accessor min: number | undefined;
128
127
  /**
129
128
  * When the component resides in a form,
130
129
  * specifies the minimum length of text for the component's `value`.
131
130
  *
132
131
  * @see [MDN - minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength)
133
132
  */
134
- accessor minLength: number;
133
+ accessor minLength: number | undefined;
135
134
  /**
136
135
  * When `true` and `type` is `"email"` or `"file"`, the component can accept more than one value.
137
136
  * Read the native attribute's documentation on MDN for more info.
@@ -147,7 +146,7 @@ export abstract class Input extends LitElement {
147
146
  *
148
147
  * @see [MDN - name](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name)
149
148
  */
150
- accessor name: string;
149
+ accessor name: string | undefined;
151
150
  /**
152
151
  * When `type="number"`, specifies the placement of the buttons.
153
152
  *
@@ -155,7 +154,7 @@ export abstract class Input extends LitElement {
155
154
  */
156
155
  accessor numberButtonType: InputPlacement;
157
156
  /** Specifies the Unicode numeral system used by the component for localization. */
158
- accessor numberingSystem: NumberingSystem;
157
+ accessor numberingSystem: NumberingSystem | undefined;
159
158
  /**
160
159
  * When the component resides in a form,
161
160
  * specifies a regular expression (regex) pattern the component's `value` must match for validation.
@@ -163,15 +162,15 @@ export abstract class Input extends LitElement {
163
162
  *
164
163
  * @see [MDN - step](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern)
165
164
  */
166
- accessor pattern: string;
165
+ accessor pattern: string | undefined;
167
166
  /**
168
167
  * Specifies the component's placeholder text.
169
168
  *
170
169
  * @see [MDN - placeholder](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder)
171
170
  */
172
- accessor placeholder: string;
171
+ accessor placeholder: string | undefined;
173
172
  /** Specifies text to display at the start of the component. */
174
- accessor prefixText: string;
173
+ accessor prefixText: string | undefined;
175
174
  /**
176
175
  * When `true`, the component's `value` can be read, but cannot be modified.
177
176
  *
@@ -203,9 +202,9 @@ export abstract class Input extends LitElement {
203
202
  *
204
203
  * @see [MDN - step](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step)
205
204
  */
206
- accessor step: number | "any";
205
+ accessor step: number | "any" | undefined;
207
206
  /** Specifies text to display at the end of the component. */
208
- accessor suffixText: string;
207
+ accessor suffixText: string | undefined;
209
208
  /**
210
209
  * Specifies the component type.
211
210
  *
@@ -215,9 +214,9 @@ export abstract class Input extends LitElement {
215
214
  */
216
215
  accessor type: "color" | "date" | "datetime-local" | "email" | "file" | "image" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" | "week";
217
216
  /** Specifies the validation icon to display under the component. */
218
- accessor validationIcon: IconName | boolean;
217
+ accessor validationIcon: IconName | boolean | undefined;
219
218
  /** Specifies the validation message to display under the component. */
220
- accessor validationMessage: string;
219
+ accessor validationMessage: string | undefined;
221
220
  /**
222
221
  * The component's current validation state.
223
222
  *
@@ -138,7 +138,7 @@ class Input extends LitElement {
138
138
  }
139
139
  connectedCallback() {
140
140
  super.connectedCallback();
141
- this.inlineEditableEl = this.el.closest("calcite-inline-editable");
141
+ this.inlineEditableEl = this.el.closest("calcite-inline-editable") ?? void 0;
142
142
  if (this.inlineEditableEl) {
143
143
  this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
144
144
  }
@@ -165,10 +165,10 @@ class Input extends LitElement {
165
165
  }
166
166
  willUpdate(changes) {
167
167
  if (changes.has("max")) {
168
- this.maxString = this.max?.toString() || null;
168
+ this.maxString = this.max?.toString() ?? void 0;
169
169
  }
170
170
  if (changes.has("min")) {
171
- this.minString = this.min?.toString() || null;
171
+ this.minString = this.min?.toString() ?? void 0;
172
172
  }
173
173
  if (changes.has("icon") || changes.has("type") && (this.hasUpdated || this.type !== "text")) {
174
174
  this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
@@ -279,7 +279,7 @@ class Input extends LitElement {
279
279
  return;
280
280
  }
281
281
  if (this.type === "file") {
282
- this.files = this.childRef.value.files;
282
+ this.files = this.childRef.value.files ?? void 0;
283
283
  }
284
284
  this.setValue({
285
285
  nativeEvent,
@@ -318,7 +318,9 @@ class Input extends LitElement {
318
318
  origin: "user",
319
319
  value: parseNumberString(delocalizedValue)
320
320
  });
321
- this.childNumberRef.value.value = this.displayedValue;
321
+ if (this.childNumberRef.value) {
322
+ this.childNumberRef.value.value = this.displayedValue;
323
+ }
322
324
  } else {
323
325
  this.setValue({
324
326
  nativeEvent,
@@ -373,26 +375,26 @@ class Input extends LitElement {
373
375
  useGrouping: this.groupSeparator
374
376
  };
375
377
  if (event.key === numberStringFormatter.decimal) {
376
- if (!this.value && !this.childNumberRef.value.value) {
378
+ if (!this.value && !this.childNumberRef.value?.value) {
377
379
  return;
378
380
  }
379
- if (this.value && this.childNumberRef.value.value.indexOf(numberStringFormatter.decimal) === -1) {
381
+ if (this.value && this.childNumberRef.value?.value.indexOf(numberStringFormatter.decimal) === -1) {
380
382
  return;
381
383
  }
382
384
  }
383
385
  if (/[eE]/.test(event.key)) {
384
- if (!this.value && !this.childNumberRef.value.value) {
386
+ if (!this.value && !this.childNumberRef.value?.value) {
385
387
  return;
386
388
  }
387
- if (this.value && !/[eE]/.test(this.childNumberRef.value.value)) {
389
+ if (this.value && this.childNumberRef.value && !/[eE]/.test(this.childNumberRef.value.value)) {
388
390
  return;
389
391
  }
390
392
  }
391
393
  if (event.key === "-") {
392
- if (!this.value && !this.childNumberRef.value.value) {
394
+ if (!this.value && !this.childNumberRef.value?.value) {
393
395
  return;
394
396
  }
395
- if (this.value && this.childNumberRef.value.value.split("-").length <= 2) {
397
+ if (this.value && this.childNumberRef.value && this.childNumberRef.value.value.split("-").length <= 2) {
396
398
  return;
397
399
  }
398
400
  }
@@ -516,7 +518,7 @@ class Input extends LitElement {
516
518
  const childEl = this.type !== "number" ? html`<input accept=${this.accept ?? nothing} aria-errormessage=${IDS.validationMessage} .ariaInvalid=${this.status === "invalid"} .ariaLabel=${getLabelText(this)} autocomplete=${this.autocomplete ?? nothing} .autofocus=${autofocus} class=${safeClassMap({
517
519
  [CSS.editingEnabled]: this.editingEnabled,
518
520
  [CSS.inlineChild]: !!this.inlineEditableEl
519
- })} value=${this.defaultValue ?? nothing} .disabled=${this.disabled} enterkeyhint=${enterKeyHint ?? nothing} inputmode=${inputMode ?? nothing} max=${this.maxString ?? nothing} maxlength=${this.maxLength ?? nothing} min=${this.minString ?? nothing} minlength=${this.minLength ?? nothing} .multiple=${this.multiple} name=${this.name ?? nothing} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputInputHandler} @keydown=${this.inputKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern ?? nothing} placeholder=${(this.placeholder || "") ?? nothing} .readOnly=${this.readOnly} .required=${this.required} spellcheck=${this.el.spellcheck ?? nothing} step=${this.step ?? nothing} tabindex=${(this.disabled || this.inlineEditableEl && !this.editingEnabled ? -1 : null) ?? nothing} type=${this.type ?? nothing} .value=${live(this.value ?? "")} ${ref(this.childRef)}>` : null;
521
+ })} value=${this.defaultValue ?? nothing} .disabled=${this.disabled} enterkeyhint=${enterKeyHint ?? nothing} inputmode=${inputMode ?? nothing} max=${this.maxString ?? nothing} maxlength=${this.maxLength ?? nothing} min=${this.minString ?? nothing} minlength=${this.minLength ?? nothing} .multiple=${this.multiple} name=${this.name ?? nothing} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputInputHandler} @keydown=${this.inputKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern ?? nothing} placeholder=${(this.placeholder || "") ?? nothing} .readOnly=${this.readOnly} .required=${this.required} spellcheck=${this.el.spellcheck ?? nothing} step=${this.step ?? nothing} tabindex=${(this.disabled || this.inlineEditableEl && !this.editingEnabled ? -1 : void 0) ?? nothing} type=${this.type ?? nothing} .value=${live(this.value ?? "")} ${ref(this.childRef)}>` : null;
520
522
  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({
521
523
  [CSS.inputWrapper]: true,
522
524
  [CSS_UTILITY.rtl]: dir === "rtl",
@@ -58,26 +58,22 @@ export abstract class InputDatePicker extends LitElement {
58
58
  * @default false
59
59
  */
60
60
  accessor disabled: boolean;
61
- /** Specifies the component's fallback `placement` for slotted content when it's initial or specified `placement` has insufficient space available. */
62
- accessor flipPlacements: FlipPlacement[];
61
+ /** Specifies the component's fallback `placement` for slotted content when its initial or specified `placement` has insufficient space available. */
62
+ accessor flipPlacements: FlipPlacement[] | undefined;
63
63
  /**
64
64
  * When `true`, prevents focus trapping.
65
65
  *
66
66
  * @default false
67
67
  */
68
68
  accessor focusTrapDisabled: boolean;
69
- /**
70
- * Specifies the `id` of the component's associated form.
71
- *
72
- * When not set, the component is associated with its ancestor form element, if one exists.
73
- */
74
- accessor form: string;
69
+ /** Specifies the `id` of the component's associated form. When not set, the component is associated with its ancestor form element, if one exists. */
70
+ accessor form: string | undefined;
75
71
  /** Specifies the heading level number of the component's `heading` for proper document structure, without affecting visual styling. */
76
- accessor headingLevel: HeadingLevel;
72
+ accessor headingLevel: HeadingLevel | undefined;
77
73
  /** Specifies an accessible label for the component. */
78
- accessor label: string;
74
+ accessor label: string | undefined;
79
75
  /** Specifies the component's label text. */
80
- accessor labelText: string;
76
+ accessor labelText: string | undefined;
81
77
  /**
82
78
  * Defines the component's layout.
83
79
  *
@@ -88,9 +84,9 @@ export abstract class InputDatePicker extends LitElement {
88
84
  * When the component resides in a form,
89
85
  * specifies the latest allowed date ("yyyy-mm-dd").
90
86
  */
91
- accessor max: string;
87
+ accessor max: string | undefined;
92
88
  /** Specifies the latest allowed date as a full date object. */
93
- accessor maxAsDate: Date;
89
+ accessor maxAsDate: Date | undefined;
94
90
  /** Overrides individual strings used by the component. */
95
91
  accessor messageOverrides: {
96
92
  chooseDate?: string;
@@ -104,9 +100,9 @@ export abstract class InputDatePicker extends LitElement {
104
100
  * When the component resides in a form,
105
101
  * specifies the earliest allowed date ("yyyy-mm-dd").
106
102
  */
107
- accessor min: string;
103
+ accessor min: string | undefined;
108
104
  /** Specifies the earliest allowed date as a full date object. */
109
- accessor minAsDate: Date;
105
+ accessor minAsDate: Date | undefined;
110
106
  /**
111
107
  * Specifies the component's month style.
112
108
  *
@@ -114,9 +110,9 @@ export abstract class InputDatePicker extends LitElement {
114
110
  */
115
111
  accessor monthStyle: "abbreviated" | "wide";
116
112
  /** Specifies the name of the component. Required to pass the component's `value` on form submission. */
117
- accessor name: string;
113
+ accessor name: string | undefined;
118
114
  /** Specifies the Unicode numeral system used by the component for localization. This property cannot be dynamically changed. */
119
- accessor numberingSystem: NumberingSystem;
115
+ accessor numberingSystem: NumberingSystem | undefined;
120
116
  /**
121
117
  * When `true`, displays the `calcite-date-picker` component.
122
118
  *
@@ -179,18 +175,16 @@ export abstract class InputDatePicker extends LitElement {
179
175
  */
180
176
  accessor status: Status;
181
177
  /**
182
- * When `true` and the component is `open`, disables top layer placement.
183
- *
184
- * Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
178
+ * When `true` and the component is `open`, disables top layer placement. Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
185
179
  *
186
180
  * @default false
187
181
  * @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
188
182
  */
189
183
  accessor topLayerDisabled: boolean;
190
184
  /** Specifies the validation icon to display under the component. */
191
- accessor validationIcon: IconName | boolean;
185
+ accessor validationIcon: IconName | boolean | undefined;
192
186
  /** Specifies the validation message to display under the component. */
193
- accessor validationMessage: string;
187
+ accessor validationMessage: string | undefined;
194
188
  /**
195
189
  * The component's current validation state.
196
190
  *
@@ -200,7 +194,7 @@ export abstract class InputDatePicker extends LitElement {
200
194
  /** Selected date as a string in ISO format (`"yyyy-mm-dd"`). */
201
195
  accessor value: string | string[];
202
196
  /** The component's `value` as a full date object. */
203
- accessor valueAsDate: Date | Date[];
197
+ accessor valueAsDate: Date | Date[] | undefined;
204
198
  /**
205
199
  * Updates the component's position.
206
200
  *
@@ -199,19 +199,19 @@ class InputDatePicker extends LitElement {
199
199
  const minSource = getMinMaxSource(changes, "min");
200
200
  const maxSource = getMinMaxSource(changes, "max");
201
201
  if (minSource === "min") {
202
- this.minAsDate = dateFromISO(this.min);
202
+ this.minAsDate = dateFromISO(this.min) ?? void 0;
203
203
  } else if (minSource === "minAsDate") {
204
- this.minAsDate = dateFromISO(dateToISO(this.minAsDate));
204
+ this.minAsDate = dateFromISO(dateToISO(this.minAsDate)) ?? void 0;
205
205
  }
206
206
  if (maxSource === "max") {
207
- this.maxAsDate = dateFromISO(this.max);
207
+ this.maxAsDate = dateFromISO(this.max) ?? void 0;
208
208
  } else if (maxSource === "maxAsDate") {
209
- this.maxAsDate = dateFromISO(dateToISO(this.maxAsDate));
209
+ this.maxAsDate = dateFromISO(dateToISO(this.maxAsDate)) ?? void 0;
210
210
  }
211
211
  if ((minSource || maxSource) && !Array.isArray(this.valueAsDate)) {
212
212
  const validValueAsDate = dateFromRange(this.valueAsDate, this.minAsDate, this.maxAsDate);
213
213
  if (validValueAsDate !== this.valueAsDate) {
214
- this.valueAsDate = validValueAsDate;
214
+ this.valueAsDate = validValueAsDate ?? void 0;
215
215
  }
216
216
  }
217
217
  if (changes.has("open") && (this.hasUpdated || this.open !== false)) {
@@ -255,7 +255,7 @@ class InputDatePicker extends LitElement {
255
255
  if (Array.isArray(newValue)) {
256
256
  newValueAsDate = getValueAsDateRange(newValue);
257
257
  } else if (newValue) {
258
- newValueAsDate = dateFromISO(newValue);
258
+ newValueAsDate = dateFromISO(newValue) ?? void 0;
259
259
  } else {
260
260
  newValueAsDate = void 0;
261
261
  }
@@ -333,7 +333,7 @@ class InputDatePicker extends LitElement {
333
333
  const wasToggleClicked = path.find((el) => el.classList?.contains(CSS.toggleIcon));
334
334
  if (wasToggleClicked) {
335
335
  const targetInput = position === "start" ? startInputRef : endInputRef;
336
- targetInput.value.setFocus();
336
+ targetInput.value?.setFocus();
337
337
  }
338
338
  if (!range || !this.open || currentOpenInput === position) {
339
339
  this.open = !this.open;
@@ -341,7 +341,7 @@ class InputDatePicker extends LitElement {
341
341
  }
342
342
  setFilteredPlacements() {
343
343
  const { el, flipPlacements } = this;
344
- this.filteredFlipPlacements = flipPlacements ? filterValidFlipPlacements(flipPlacements, el) : null;
344
+ this.filteredFlipPlacements = flipPlacements ? filterValidFlipPlacements(flipPlacements, el) : void 0;
345
345
  }
346
346
  onLabelClick() {
347
347
  this.setFocus();
@@ -371,7 +371,7 @@ class InputDatePicker extends LitElement {
371
371
  commitValue() {
372
372
  const { focusedInput, value } = this;
373
373
  const focusedInputRef = this.getInputRef(focusedInput);
374
- const date = dateFromLocalizedString(focusedInputRef.value.value, this.localeData);
374
+ const date = focusedInputRef.value ? dateFromLocalizedString(focusedInputRef.value?.value, this.localeData) : void 0;
375
375
  const dateAsISO = dateToISO(date);
376
376
  const valueIsArray = Array.isArray(value);
377
377
  if (this.range) {
@@ -382,21 +382,21 @@ class InputDatePicker extends LitElement {
382
382
  }
383
383
  if (date) {
384
384
  this.setRangeValue([
385
- focusedInput === "start" ? date : dateFromISO(value[0]),
386
- focusedInput === "end" ? date : dateFromISO(value[1])
385
+ focusedInput === "start" ? date : dateFromISO(value[0]) ?? void 0,
386
+ focusedInput === "end" ? date : dateFromISO(value[1]) ?? void 0
387
387
  ]);
388
388
  this.localizeInputValues();
389
389
  } else {
390
390
  this.setRangeValue([
391
- focusedInput === "end" && dateFromISO(value[0]),
392
- focusedInput === "start" && dateFromISO(value[1])
391
+ focusedInput === "end" ? dateFromISO(value[0]) ?? void 0 : void 0,
392
+ focusedInput === "start" ? dateFromISO(value[1]) ?? void 0 : void 0
393
393
  ]);
394
394
  }
395
395
  } else {
396
396
  if (date) {
397
397
  this.setRangeValue([
398
- focusedInput === "start" ? date : dateFromISO(value[0]),
399
- focusedInput === "end" ? date : dateFromISO(value[1])
398
+ focusedInput === "start" ? date : dateFromISO(value[0]) ?? void 0,
399
+ focusedInput === "end" ? date : dateFromISO(value[1]) ?? void 0
400
400
  ]);
401
401
  this.localizeInputValues();
402
402
  }
@@ -520,7 +520,7 @@ class InputDatePicker extends LitElement {
520
520
  }
521
521
  restoreInputFocus(isDatePickerClosed = false) {
522
522
  if (!this.range) {
523
- this.startInputRef.value.setFocus();
523
+ this.startInputRef.value?.setFocus();
524
524
  this.open = false;
525
525
  return;
526
526
  }
@@ -533,7 +533,7 @@ class InputDatePicker extends LitElement {
533
533
  if (this.shouldFocusRangeStart() || this.rangeStartValueChangedByUser) {
534
534
  return;
535
535
  }
536
- if (this.proximitySelectionDisabled && this.valueAsDate[1] === null) {
536
+ if (this.proximitySelectionDisabled && this.valueAsDate && this.valueAsDate[1] === null) {
537
537
  return;
538
538
  }
539
539
  this.open = false;
@@ -542,8 +542,8 @@ class InputDatePicker extends LitElement {
542
542
  localizeInputValues() {
543
543
  const date = dateFromRange(this.range ? Array.isArray(this.valueAsDate) && this.valueAsDate[0] || void 0 : this.valueAsDate, this.minAsDate, this.maxAsDate);
544
544
  const endDate = this.range ? dateFromRange(Array.isArray(this.valueAsDate) && this.valueAsDate[1] || void 0, this.minAsDate, this.maxAsDate) : null;
545
- this.setInputValue((date && this.dateTimeFormat.format(date)) ?? "", "start");
546
- this.setInputValue((this.range && endDate && this.dateTimeFormat.format(endDate)) ?? "", "end");
545
+ this.setInputValue((date && this.dateTimeFormat?.format(date)) ?? "", "start");
546
+ this.setInputValue(this.range && endDate && this.dateTimeFormat?.format(endDate) || "", "end");
547
547
  }
548
548
  getInputRef(input = "start") {
549
549
  return input === "start" ? this.startInputRef : this.endInputRef;
@@ -562,12 +562,12 @@ class InputDatePicker extends LitElement {
562
562
  const { value: oldValue } = this;
563
563
  const oldValueIsArray = Array.isArray(oldValue);
564
564
  const valueIsArray = Array.isArray(valueAsDate);
565
- const newStartDate = valueIsArray ? valueAsDate[0] : null;
565
+ const newStartDate = valueIsArray ? valueAsDate[0] : void 0;
566
566
  let newStartDateISO = valueIsArray ? dateToISO(newStartDate) : "";
567
567
  if (newStartDateISO) {
568
568
  newStartDateISO = this.getNormalizedDate(newStartDateISO);
569
569
  }
570
- const newEndDate = valueIsArray ? valueAsDate[1] : null;
570
+ const newEndDate = valueIsArray ? valueAsDate[1] : void 0;
571
571
  let newEndDateISO = valueIsArray ? dateToISO(newEndDate) : "";
572
572
  if (newEndDateISO) {
573
573
  newEndDateISO = this.getNormalizedDate(newEndDateISO);
@@ -602,7 +602,7 @@ class InputDatePicker extends LitElement {
602
602
  return;
603
603
  }
604
604
  this.userChangedValue = true;
605
- this.valueAsDate = newValue ? dateFromISO(newValue) : void 0;
605
+ this.valueAsDate = newValue ? dateFromISO(newValue) ?? void 0 : void 0;
606
606
  this.value = newValue || "";
607
607
  const changeEvent = this.calciteInputDatePickerChange.emit();
608
608
  if (changeEvent.defaultPrevented) {
@@ -632,7 +632,7 @@ class InputDatePicker extends LitElement {
632
632
  }
633
633
  focusInput() {
634
634
  const focusedInput = this.focusedInput === "start" ? this.startInputRef : this.endInputRef;
635
- focusedInput.value.setFocus();
635
+ focusedInput.value?.setFocus();
636
636
  }
637
637
  render() {
638
638
  const { disabled, messages: { _lang: effectiveLocale }, messages, numberingSystem, readOnly } = this;
@@ -12,7 +12,7 @@ import type { IconName } from "../calcite-icon/interfaces.js";
12
12
  */
13
13
  export abstract class InputMessage extends LitElement {
14
14
  /** Specifies an icon to display. */
15
- accessor icon: IconName | boolean;
15
+ accessor icon: IconName | boolean | undefined;
16
16
  /**
17
17
  * When `true` and the element direction is right-to-left (`"rtl"`), flips the component`s `icon`.
18
18
  *
@@ -42,7 +42,7 @@ export abstract class InputNumber extends LitElement {
42
42
  *
43
43
  * @see [MDN - autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
44
44
  */
45
- accessor autocomplete: AutoFill;
45
+ accessor autocomplete: AutoFill | undefined;
46
46
  /**
47
47
  * When `true` and the component has a `value`, a clear button is displayed.
48
48
  *
@@ -56,12 +56,8 @@ export abstract class InputNumber extends LitElement {
56
56
  * @see [MDN - disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled)
57
57
  */
58
58
  accessor disabled: boolean;
59
- /**
60
- * Specifies the `id` of the component's associated form.
61
- *
62
- * When not set, the component is associated with its ancestor form element, if one exists.
63
- */
64
- accessor form: string;
59
+ /** Specifies the `id` of the component's associated form. When not set, the component is associated with its ancestor form element, if one exists. */
60
+ accessor form: string | undefined;
65
61
  /**
66
62
  * When `true`, number values are displayed with a group separator corresponding to the language and country format.
67
63
  *
@@ -73,7 +69,7 @@ export abstract class InputNumber extends LitElement {
73
69
  *
74
70
  * @futureBreaking Remove boolean type as it is not supported.
75
71
  */
76
- accessor icon: IconName | boolean;
72
+ accessor icon: IconName | boolean | undefined;
77
73
  /**
78
74
  * When `true` and the element direction is right-to-left (`"rtl"`), flips the component`s `icon`.
79
75
  *
@@ -87,9 +83,9 @@ export abstract class InputNumber extends LitElement {
87
83
  */
88
84
  accessor integer: boolean;
89
85
  /** Specifies an accessible label for the component's button or hyperlink. */
90
- accessor label: string;
86
+ accessor label: string | undefined;
91
87
  /** Specifies the component's label text. */
92
- accessor labelText: string;
88
+ accessor labelText: string | undefined;
93
89
  /**
94
90
  * When `true`, displays a busy indicator.
95
91
  *
@@ -102,7 +98,7 @@ export abstract class InputNumber extends LitElement {
102
98
  *
103
99
  * @see [MDN - max](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max)
104
100
  */
105
- accessor max: number;
101
+ accessor max: number | undefined;
106
102
  /**
107
103
  * When the component resides in a form,
108
104
  * specifies the maximum length of text for the component's `value`.
@@ -110,10 +106,13 @@ export abstract class InputNumber extends LitElement {
110
106
  * @deprecated in v3.0.0, removal target v6.0.0 - This property has no effect on the component.
111
107
  * @see [MDN - maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength)
112
108
  */
113
- accessor maxLength: number;
109
+ accessor maxLength: number | undefined;
114
110
  /** Overrides individual strings used by the component. */
115
111
  accessor messageOverrides: {
112
+ cancelInlineEditing?: string;
116
113
  clear?: string;
114
+ confirmInlineEditingChanges?: string;
115
+ enableInlineEditing?: string;
117
116
  loading?: string;
118
117
  required?: string;
119
118
  };
@@ -123,7 +122,7 @@ export abstract class InputNumber extends LitElement {
123
122
  *
124
123
  * @see [MDN - min](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min)
125
124
  */
126
- accessor min: number;
125
+ accessor min: number | undefined;
127
126
  /**
128
127
  * When the component resides in a form,
129
128
  * specifies the minimum length of text for the component's `value`.
@@ -131,15 +130,13 @@ export abstract class InputNumber extends LitElement {
131
130
  * @deprecated in v3.0.0, removal target v6.0.0 - This property has no effect on the component.
132
131
  * @see [MDN - minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength)
133
132
  */
134
- accessor minLength: number;
133
+ accessor minLength: number | undefined;
135
134
  /**
136
- * Specifies the name of the component.
137
- *
138
- * Required to pass the component's `value` on form submission.
135
+ * Specifies the name of the component. Required to pass the component's `value` on form submission.
139
136
  *
140
137
  * @see [MDN - name](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name)
141
138
  */
142
- accessor name: string;
139
+ accessor name: string | undefined;
143
140
  /**
144
141
  * Specifies the placement of the buttons.
145
142
  *
@@ -147,15 +144,15 @@ export abstract class InputNumber extends LitElement {
147
144
  */
148
145
  accessor numberButtonType: InputPlacement;
149
146
  /** Specifies the Unicode numeral system used by the component for localization. */
150
- accessor numberingSystem: NumberingSystem;
147
+ accessor numberingSystem: NumberingSystem | undefined;
151
148
  /**
152
149
  * Specifies the component's placeholder text.
153
150
  *
154
151
  * @see [MDN - placeholder](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder)
155
152
  */
156
- accessor placeholder: string;
153
+ accessor placeholder: string | undefined;
157
154
  /** Specifies text to display at the start of the component. */
158
- accessor prefixText: string;
155
+ accessor prefixText: string | undefined;
159
156
  /**
160
157
  * When `true`, the component's `value` can be read, but cannot be modified.
161
158
  *
@@ -187,13 +184,13 @@ export abstract class InputNumber extends LitElement {
187
184
  *
188
185
  * @see [MDN - step](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step)
189
186
  */
190
- accessor step: number | "any";
187
+ accessor step: number | "any" | undefined;
191
188
  /** Specifies text to display at the end of the component. */
192
- accessor suffixText: string;
189
+ accessor suffixText: string | undefined;
193
190
  /** Specifies the validation icon to display under the component. */
194
- accessor validationIcon: IconName | boolean;
191
+ accessor validationIcon: IconName | boolean | undefined;
195
192
  /** Specifies the validation message to display under the component. */
196
- accessor validationMessage: string;
193
+ accessor validationMessage: string | undefined;
197
194
  /**
198
195
  * The component's current validation state.
199
196
  *