@esri/calcite-components 5.2.0-next.22 → 5.2.0-next.24

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 (225) hide show
  1. package/dist/cdn/{4VBSTWOV.js → 2QCMFMLY.js} +1 -1
  2. package/dist/cdn/{C3X7CRMS.js → 2RPXIBWE.js} +1 -1
  3. package/dist/cdn/2SF4WITS.js +2 -0
  4. package/dist/cdn/{RFA26G4S.js → 2SUOKAMW.js} +1 -1
  5. package/dist/cdn/{CXNFOACP.js → 2XLQPSOW.js} +1 -1
  6. package/dist/cdn/{OOMTSLWC.js → 33SOEGHX.js} +1 -1
  7. package/dist/cdn/{KIL2QSDF.js → 36R2BZ4C.js} +1 -1
  8. package/dist/cdn/{XHW7QUXM.js → 3LU3J5TB.js} +1 -1
  9. package/dist/cdn/{6GB7EFOV.js → 3MMI6PZM.js} +1 -1
  10. package/dist/cdn/{4Q6CYRBV.js → 3Q34HSKA.js} +1 -1
  11. package/dist/cdn/{P4VOPVIT.js → 3RJV46KS.js} +1 -1
  12. package/dist/cdn/3RQC275N.js +2 -0
  13. package/dist/cdn/{O26T5SDI.js → 3VD5LQJ5.js} +1 -1
  14. package/dist/cdn/{4OAUCEKF.js → 4DIMU6QD.js} +1 -1
  15. package/dist/cdn/{OIX6UKMC.js → 4LVHJRJ5.js} +1 -1
  16. package/dist/cdn/4PFMGWRJ.js +2 -0
  17. package/dist/cdn/{5FQCDEG4.js → 4UFFN3VM.js} +1 -1
  18. package/dist/cdn/{2MPKR2JY.js → 4VBI733W.js} +1 -1
  19. package/dist/cdn/{P5E4K2YU.js → 53PNWBFM.js} +1 -1
  20. package/dist/cdn/{OIO5CL6R.js → 5EBGPCB7.js} +1 -1
  21. package/dist/cdn/{WMTGARUS.js → 5EXZOLMW.js} +1 -1
  22. package/dist/cdn/5NHWJ32X.js +2 -0
  23. package/dist/cdn/{WDIF62Z2.js → 5TKQENT2.js} +1 -1
  24. package/dist/cdn/{3BGOYU56.js → 5W5FGFML.js} +1 -1
  25. package/dist/cdn/{DNUGPVHP.js → 62Y53IUP.js} +1 -1
  26. package/dist/cdn/{JTTSFUPV.js → 64CXTH73.js} +1 -1
  27. package/dist/cdn/{36BS3JSS.js → 6CJJGR2D.js} +1 -1
  28. package/dist/cdn/{4EWVFZVO.js → 6ENTE44N.js} +1 -1
  29. package/dist/cdn/{Q3JBPJGU.js → 6LW75OFQ.js} +1 -1
  30. package/dist/cdn/{QB2GHJ47.js → 73MVINMR.js} +1 -1
  31. package/dist/cdn/{GGG7ADWH.js → A3D4HQZC.js} +1 -1
  32. package/dist/cdn/{UWE72ONC.js → A3W4GT7L.js} +1 -1
  33. package/dist/cdn/{FGDLWATP.js → A4LFU7PD.js} +1 -1
  34. package/dist/cdn/{VLCGJHDC.js → A4XKXSUF.js} +1 -1
  35. package/dist/cdn/{KFOVOJVM.js → A62GLZJ2.js} +1 -1
  36. package/dist/cdn/{MBF6BKRT.js → AIITDYTD.js} +1 -1
  37. package/dist/cdn/{2LFPI2WZ.js → AIYUJEZO.js} +1 -1
  38. package/dist/cdn/{27GD5MNT.js → AXK7ZG2K.js} +1 -1
  39. package/dist/cdn/{UTTRKYQD.js → BBVTXQR6.js} +1 -1
  40. package/dist/cdn/{MTUZXCYG.js → BCHGB7QR.js} +1 -1
  41. package/dist/cdn/{GAVZISN7.js → BCSAOJEH.js} +1 -1
  42. package/dist/cdn/{KARX5DKV.js → BCXNQWLL.js} +1 -1
  43. package/dist/cdn/{HQLBVFSX.js → BHFQ4AGH.js} +1 -1
  44. package/dist/cdn/{PSZVYI3V.js → BPHGOBYG.js} +1 -1
  45. package/dist/cdn/{J4UD4FXA.js → C2P3H532.js} +1 -1
  46. package/dist/cdn/{V3MMSNQV.js → C4K7UKPW.js} +1 -1
  47. package/dist/cdn/{IFKLH4KA.js → CWLRA3MO.js} +1 -1
  48. package/dist/cdn/{LRPTBBVX.js → D2VKTZSJ.js} +1 -1
  49. package/dist/cdn/D4XL7XXX.js +2 -0
  50. package/dist/cdn/{BGSARPRI.js → D6LTLYJP.js} +1 -1
  51. package/dist/cdn/{2WNP5CYX.js → D6TDQJJO.js} +1 -1
  52. package/dist/cdn/DASCHY4S.js +2 -0
  53. package/dist/cdn/{OUGMNLTX.js → DCVGASJR.js} +1 -1
  54. package/dist/cdn/DKJI4BME.js +2 -0
  55. package/dist/cdn/{CPDXOHFE.js → DOUVRUOH.js} +1 -1
  56. package/dist/cdn/{YXQ2XC5W.js → DPI5XYJD.js} +1 -1
  57. package/dist/cdn/{26OLHRNL.js → DQTRUHEA.js} +1 -1
  58. package/dist/cdn/DTFPKPYY.js +2 -0
  59. package/dist/cdn/{T5HXYYVY.js → DWHFZOJG.js} +1 -1
  60. package/dist/cdn/E3UPRP7F.js +2 -0
  61. package/dist/cdn/{JAGZGJRH.js → E6TLVPEG.js} +1 -1
  62. package/dist/cdn/{PK7RJ6YJ.js → E7CBU7KA.js} +1 -1
  63. package/dist/cdn/{22KVAN6L.js → ELJJJX53.js} +1 -1
  64. package/dist/cdn/{BCOAKRTT.js → ELZSRXJN.js} +1 -1
  65. package/dist/cdn/{Y6EXOUZ5.js → EMYTVLMO.js} +1 -1
  66. package/dist/cdn/{SBMXV7O2.js → F5BALHXV.js} +1 -1
  67. package/dist/cdn/FIJR273R.js +2 -0
  68. package/dist/cdn/GB6FN7CM.js +2 -0
  69. package/dist/cdn/{NTYOA6QA.js → GNW37PGK.js} +1 -1
  70. package/dist/cdn/GQCJUPW7.js +2 -0
  71. package/dist/cdn/GQVNQ7OT.js +2 -0
  72. package/dist/cdn/{OYEIXDDT.js → GV3EJHKZ.js} +1 -1
  73. package/dist/cdn/{I36L52VX.js → GY3X2ZOY.js} +1 -1
  74. package/dist/cdn/{365NYBL5.js → HRK7GL5U.js} +1 -1
  75. package/dist/cdn/{ILK3JG5G.js → I6WVJ3GW.js} +1 -1
  76. package/dist/cdn/{HQP7FLV2.js → IAOMFAIV.js} +1 -1
  77. package/dist/cdn/IEJJHN6V.js +2 -0
  78. package/dist/cdn/{URMDF7RR.js → IR67XJSK.js} +1 -1
  79. package/dist/cdn/{2LRCVGFE.js → JEBOYGKS.js} +1 -1
  80. package/dist/cdn/{VLAD23FH.js → KGSUMQK6.js} +1 -1
  81. package/dist/cdn/{W5TIKXCX.js → KJ2AY64U.js} +1 -1
  82. package/dist/cdn/KOXPXPRR.js +2 -0
  83. package/dist/cdn/{E333LJCL.js → KU7LDL6J.js} +1 -1
  84. package/dist/cdn/{IRSSE2TG.js → KYABHN4E.js} +1 -1
  85. package/dist/cdn/{C37KUE54.js → KYD4GPON.js} +1 -1
  86. package/dist/cdn/{ZLSHN26H.js → KYIQQJCU.js} +1 -1
  87. package/dist/cdn/{UG4RNAUM.js → L3ZFB4YI.js} +1 -1
  88. package/dist/cdn/{MOW4Z6WN.js → LB4Y4BU4.js} +1 -1
  89. package/dist/cdn/{XUNX6H3T.js → LPSUUCDF.js} +1 -1
  90. package/dist/cdn/{3O3QMWZN.js → LVAMHAIR.js} +1 -1
  91. package/dist/cdn/M6YZ46C5.js +2 -0
  92. package/dist/cdn/{VJO2RT4P.js → MAYMYGHP.js} +1 -1
  93. package/dist/cdn/{SBNPDCMJ.js → MI52MQHY.js} +1 -1
  94. package/dist/cdn/{DWIXUKFP.js → MIXN26LN.js} +1 -1
  95. package/dist/cdn/{AXK4A4Z3.js → NH4WPQT5.js} +1 -1
  96. package/dist/cdn/{BNFDKGXS.js → NHCFVPJN.js} +1 -1
  97. package/dist/cdn/{7XTYYWT7.js → NHJJGOSD.js} +1 -1
  98. package/dist/cdn/{IWTJ2TMP.js → NO5C7M2G.js} +1 -1
  99. package/dist/cdn/{EAPHW7UM.js → NQWQFXKK.js} +1 -1
  100. package/dist/cdn/O6R6PDOP.js +2 -0
  101. package/dist/cdn/{JDSOESSY.js → OCP7BNRD.js} +1 -1
  102. package/dist/cdn/OJVSPIVF.js +2 -0
  103. package/dist/cdn/{QBU65K3X.js → OKTPXYWF.js} +1 -1
  104. package/dist/cdn/{TKHGW3AN.js → ONJZATUT.js} +1 -1
  105. package/dist/cdn/{AYZOCQGM.js → ORSP4YVL.js} +1 -1
  106. package/dist/cdn/{U2XR24PN.js → P3LWRKZW.js} +1 -1
  107. package/dist/cdn/{LKHTGXQM.js → P3W5KF7P.js} +1 -1
  108. package/dist/cdn/{QAZD3KBU.js → PFKU63CI.js} +1 -1
  109. package/dist/cdn/{QQDQTFWB.js → PM5LDKID.js} +1 -1
  110. package/dist/cdn/{TUQOCSQ3.js → POGQGFRZ.js} +1 -1
  111. package/dist/cdn/POITQYOX.js +2 -0
  112. package/dist/cdn/{BOU3QBXS.js → PR323OIR.js} +1 -1
  113. package/dist/cdn/{776O2XKF.js → Q2BOPZRE.js} +1 -1
  114. package/dist/cdn/{HAA7VHRS.js → Q2UZ4NJE.js} +1 -1
  115. package/dist/cdn/{STXD74FG.js → Q3RTTOUM.js} +1 -1
  116. package/dist/cdn/{PBO36O4D.js → QIH4YTMA.js} +1 -1
  117. package/dist/cdn/{W3TXJCVC.js → QTKLUBTW.js} +1 -1
  118. package/dist/cdn/{N4DITOIV.js → RJRBUL4P.js} +1 -1
  119. package/dist/cdn/SBCJ2GOY.js +2 -0
  120. package/dist/cdn/{J2NKWN2H.js → SCYHKGPW.js} +1 -1
  121. package/dist/cdn/{T2SWBJAS.js → SQ4QP3T2.js} +1 -1
  122. package/dist/cdn/SWXEG6QR.js +2 -0
  123. package/dist/cdn/{L7LWNCET.js → T32EPAFR.js} +1 -1
  124. package/dist/cdn/TUAYKQAD.js +2 -0
  125. package/dist/cdn/{I4BLJ23F.js → TYX2PKVM.js} +1 -1
  126. package/dist/cdn/{JKOKCCAM.js → UFT4E2IF.js} +1 -1
  127. package/dist/cdn/{44T5D4QY.js → UHAVTL4I.js} +1 -1
  128. package/dist/cdn/{CRYL5XII.js → UM3DNEXB.js} +1 -1
  129. package/dist/cdn/{54XHABHA.js → USHV7YR7.js} +1 -1
  130. package/dist/cdn/USVD5K4G.js +2 -0
  131. package/dist/cdn/{UE3S7ZG4.js → VCKK6NHV.js} +1 -1
  132. package/dist/cdn/VF5V6EZL.js +2 -0
  133. package/dist/cdn/{GHDKS4TD.js → VOCKM3G2.js} +1 -1
  134. package/dist/cdn/VVDI73XQ.js +2 -0
  135. package/dist/cdn/{4QJDFAKO.js → VWZLBNJL.js} +1 -1
  136. package/dist/cdn/VYITDJKP.js +2 -0
  137. package/dist/cdn/{FNWWNIIJ.js → WC5I5HAO.js} +1 -1
  138. package/dist/cdn/{YPYJCWEB.js → WDWP6EBB.js} +1 -1
  139. package/dist/cdn/{W22VSWB3.js → WHXCD5S3.js} +1 -1
  140. package/dist/cdn/{IPZXZHRH.js → X2WS6WI2.js} +1 -1
  141. package/dist/cdn/XRRQX2EJ.js +2 -0
  142. package/dist/cdn/{Z7FMYELP.js → XSH6NNUN.js} +1 -1
  143. package/dist/cdn/{YCIZDPEF.js → XX4NT4Z6.js} +1 -1
  144. package/dist/cdn/{OHGWP3KV.js → Y4NMF236.js} +1 -1
  145. package/dist/cdn/{NVFZLHGS.js → YEH7JU5T.js} +1 -1
  146. package/dist/cdn/{7GRTCXLC.js → Z2D7O3Q2.js} +1 -1
  147. package/dist/cdn/{TQSEINDL.js → Z4AQAAZB.js} +1 -1
  148. package/dist/cdn/{OT37LOCF.js → ZD6R5LP6.js} +1 -1
  149. package/dist/cdn/{WMXQZVKU.js → ZHJKWLFH.js} +1 -1
  150. package/dist/cdn/ZJ77S6YD.js +2 -0
  151. package/dist/cdn/index.js +1 -1
  152. package/dist/chunks/dom.js +2 -2
  153. package/dist/chunks/floating-ui.js +23 -13
  154. package/dist/chunks/label.js +1 -140
  155. package/dist/chunks/runtime.js +4 -4
  156. package/dist/chunks/useForm.js +1 -1
  157. package/dist/chunks/useInlineEditable.js +53 -0
  158. package/dist/chunks/useLabel.js +150 -0
  159. package/dist/components/calcite-accordion-item/customElement.js +1 -1
  160. package/dist/components/calcite-autocomplete/customElement.js +3 -3
  161. package/dist/components/calcite-autocomplete-item/customElement.js +1 -1
  162. package/dist/components/calcite-button/customElement.js +3 -3
  163. package/dist/components/calcite-checkbox/customElement.js +3 -9
  164. package/dist/components/calcite-combobox/customElement.js +3 -3
  165. package/dist/components/calcite-combobox-item/customElement.js +1 -1
  166. package/dist/components/calcite-dropdown/customElement.js +1 -1
  167. package/dist/components/calcite-inline-editable/customElement.d.ts +10 -6
  168. package/dist/components/calcite-inline-editable/customElement.js +30 -18
  169. package/dist/components/calcite-inline-editable/index.js +1 -1
  170. package/dist/components/calcite-input/customElement.d.ts +31 -0
  171. package/dist/components/calcite-input/customElement.js +95 -12
  172. package/dist/components/calcite-input-date-picker/customElement.js +3 -3
  173. package/dist/components/calcite-input-number/customElement.d.ts +31 -0
  174. package/dist/components/calcite-input-number/customElement.js +85 -9
  175. package/dist/components/calcite-input-text/customElement.d.ts +31 -0
  176. package/dist/components/calcite-input-text/customElement.js +83 -15
  177. package/dist/components/calcite-input-time-picker/customElement.js +3 -9
  178. package/dist/components/calcite-input-time-zone/customElement.js +2 -9
  179. package/dist/components/calcite-label/customElement.js +1 -1
  180. package/dist/components/calcite-radio-button/customElement.js +3 -3
  181. package/dist/components/calcite-rating/customElement.js +3 -9
  182. package/dist/components/calcite-segmented-control/customElement.js +3 -9
  183. package/dist/components/calcite-select/customElement.js +3 -3
  184. package/dist/components/calcite-slider/customElement.js +3 -3
  185. package/dist/components/calcite-switch/customElement.js +3 -9
  186. package/dist/components/calcite-text-area/customElement.js +3 -3
  187. package/dist/components/calcite-tile/customElement.js +1 -1
  188. package/dist/docs/api.json +1 -1
  189. package/dist/docs/docs.json +1 -1
  190. package/dist/docs/supported-browsers.json +1 -1
  191. package/dist/docs/vscode.css-custom-data.json +1 -1
  192. package/dist/docs/vscode.html-custom-data.json +1 -1
  193. package/dist/docs/web-types.json +1 -1
  194. package/dist/loader.js +3 -3
  195. package/dist/types/lumina.d.ts +12 -3
  196. package/dist/types/preact.d.ts +12 -3
  197. package/dist/types/react.d.ts +12 -3
  198. package/dist/types/stencil.d.ts +12 -3
  199. package/package.json +3 -3
  200. package/dist/cdn/22GON63G.js +0 -2
  201. package/dist/cdn/2KU7YCWU.js +0 -2
  202. package/dist/cdn/3POGLXTA.js +0 -2
  203. package/dist/cdn/5OA4JQZA.js +0 -2
  204. package/dist/cdn/BHSQKAVV.js +0 -2
  205. package/dist/cdn/G36DLSRW.js +0 -2
  206. package/dist/cdn/KWFYPDBS.js +0 -2
  207. package/dist/cdn/KYBV5PSW.js +0 -2
  208. package/dist/cdn/LOBFFXLD.js +0 -2
  209. package/dist/cdn/LW7TA25C.js +0 -2
  210. package/dist/cdn/M637NSYT.js +0 -2
  211. package/dist/cdn/MBCJSLBY.js +0 -2
  212. package/dist/cdn/NLCXTKBC.js +0 -2
  213. package/dist/cdn/NWLXBG5R.js +0 -2
  214. package/dist/cdn/OHSZ2ST3.js +0 -2
  215. package/dist/cdn/RCN7XGCC.js +0 -2
  216. package/dist/cdn/RH7FYKAW.js +0 -2
  217. package/dist/cdn/RYKUXUIN.js +0 -2
  218. package/dist/cdn/TUR4Z6GQ.js +0 -2
  219. package/dist/cdn/UAS7ZB74.js +0 -2
  220. package/dist/cdn/ULNQCFWW.js +0 -2
  221. package/dist/cdn/VFZFFJJL.js +0 -2
  222. package/dist/cdn/VPFGSTXD.js +0 -2
  223. package/dist/cdn/W7JKCKDN.js +0 -2
  224. package/dist/cdn/WIPAP3S6.js +0 -2
  225. package/dist/cdn/X57EZ5QY.js +0 -2
@@ -8,8 +8,9 @@ import { u as useFocusTrap } from "../../chunks/useFocusTrap.js";
8
8
  import { l as datePartsFromISO, d as dateFromISO, a as dateToISO, b as dateFromRange, m as datePartsFromLocalizedString, o as dateFromLocalizedString, i as inRange } from "../../chunks/date.js";
9
9
  import { d as defaultMenuPlacement, r as reposition, c as connectFloatingUI, a as disconnectFloatingUI, f as filterValidFlipPlacements, h as hideFloatingUI, F as FloatingCSS } from "../../chunks/floating-ui.js";
10
10
  import { n as numberKeys } from "../../chunks/key.js";
11
- import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
11
+ import { g as getLabelText } from "../../chunks/label.js";
12
12
  import { g as getIconScale } from "../../chunks/component.js";
13
+ import { u as useLabel } from "../../chunks/useLabel.js";
13
14
  import { b as getSupportedNumberingSystem, c as getDateFormatSupportedLocale, n as numberStringFormatter } from "../../chunks/locale.js";
14
15
  import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
15
16
  import { g as getMinMaxSource, a as getValueAsDateRange, b as applyLocaleOverride, c as getLocaleData } from "../../chunks/utils3.js";
@@ -95,6 +96,7 @@ class InputDatePicker extends LitElement {
95
96
  this.formSupport = useForm({
96
97
  inputType: "date"
97
98
  })(this);
99
+ this.labelable = useLabel(this);
98
100
  this.transitionProp = "opacity";
99
101
  this.placeholderTextId = IDS.placeholder(guid());
100
102
  this.rangeStartValueChangedByUser = false;
@@ -178,7 +180,6 @@ class InputDatePicker extends LitElement {
178
180
  if (open) {
179
181
  this.openHandler();
180
182
  }
181
- connectLabel(this);
182
183
  this.setFilteredPlacements();
183
184
  connectFloatingUI(this);
184
185
  }
@@ -240,7 +241,6 @@ class InputDatePicker extends LitElement {
240
241
  }
241
242
  disconnectedCallback() {
242
243
  super.disconnectedCallback();
243
- disconnectLabel(this);
244
244
  disconnectFloatingUI(this);
245
245
  }
246
246
  handleDisabledAndReadOnlyChange(value) {
@@ -26,6 +26,14 @@ import type { IconName } from "../calcite-icon/interfaces.js";
26
26
  * @cssproperty [--calcite-input-prefix-text-color] - When `prefixText` is provided, specifies the text color of the component's prefix element.
27
27
  * @cssproperty [--calcite-input-suffix-size] - When `suffixText` is provided, specifies the width of the component's suffix element.
28
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.
29
37
  * @slot [action] - A slot for positioning a `calcite-action` or other interactive content adjacent to the component.
30
38
  * @slot [label-content] - A slot for rendering content next to the component's `labelText`.
31
39
  */
@@ -76,6 +84,20 @@ export abstract class InputNumber extends LitElement {
76
84
  * @default false
77
85
  */
78
86
  accessor iconFlipRtl: boolean;
87
+ /**
88
+ * When `true`, enables the component's built-in inline editable behavior.
89
+ *
90
+ * @default false
91
+ */
92
+ accessor inlineEditable: boolean;
93
+ /** Specifies a callback to be executed when saving inline editable changes */
94
+ accessor inlineEditableAfterConfirm: () => Promise<void>;
95
+ /**
96
+ * When `true` and `inlineEditable` is `true`, displays the component's built-in inline editable save and cancel controls.
97
+ *
98
+ * @default false
99
+ */
100
+ accessor inlineEditableControls: boolean;
79
101
  /**
80
102
  * When `true`, restricts the component to integer numbers only and disables exponential notation.
81
103
  *
@@ -210,10 +232,19 @@ export abstract class InputNumber extends LitElement {
210
232
  setFocus(options?: FocusOptions): Promise<void>;
211
233
  /** Fires each time a new `value` is typed and committed. */
212
234
  readonly calciteInputNumberChange: import("@arcgis/lumina").TargetedEvent<this, void>;
235
+ /** Fires when built-in inline editable is cancelled. */
236
+ readonly calciteInputNumberInlineEditableCancel: import("@arcgis/lumina").TargetedEvent<this, void>;
237
+ /** Fires when built-in inline editable is enabled. */
238
+ readonly calciteInputNumberInlineEditableChange: import("@arcgis/lumina").TargetedEvent<this, void>;
239
+ /** Fires when built-in inline editable is confirmed. */
240
+ readonly calciteInputNumberInlineEditableConfirm: import("@arcgis/lumina").TargetedEvent<this, void>;
213
241
  /** Fires each time a new `value` is typed. */
214
242
  readonly calciteInputNumberInput: import("@arcgis/lumina").TargetedEvent<this, void>;
215
243
  readonly "@eventTypes": {
216
244
  calciteInputNumberChange: InputNumber["calciteInputNumberChange"]["detail"];
245
+ calciteInputNumberInlineEditableCancel: InputNumber["calciteInputNumberInlineEditableCancel"]["detail"];
246
+ calciteInputNumberInlineEditableChange: InputNumber["calciteInputNumberInlineEditableChange"]["detail"];
247
+ calciteInputNumberInlineEditableConfirm: InputNumber["calciteInputNumberInlineEditableConfirm"]["detail"];
217
248
  calciteInputNumberInput: InputNumber["calciteInputNumberInput"]["detail"];
218
249
  };
219
250
  }
@@ -8,11 +8,13 @@ import { LitElement, createEvent, stringOrBoolean, safeClassMap } from "@arcgis/
8
8
  import { useWatchAttributes, useDirection } from "@arcgis/lumina/controllers";
9
9
  import { b as setRequestedIcon, j as isPrimaryPointerButton } from "../../chunks/dom.js";
10
10
  import { n as numberKeys } from "../../chunks/key.js";
11
- import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
11
+ import { g as getLabelText } from "../../chunks/label.js";
12
+ import { u as useLabel } from "../../chunks/useLabel.js";
12
13
  import { i as isValidNumber, n as numberStringFormatter, B as BigDecimal, p as parseNumberString, s as sanitizeNumberString, a as addLocalizedTrailingDecimalZeros } from "../../chunks/locale.js";
13
14
  import { g as getIconScale } from "../../chunks/component.js";
14
15
  import { C as ClearButton } from "../../chunks/ClearButton.js";
15
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";
16
18
  import { V as Validation } from "../../chunks/Validation.js";
17
19
  import { u as useT9n } from "../../chunks/useT9n.js";
18
20
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
@@ -22,6 +24,11 @@ const CSS = {
22
24
  loader: "loader",
23
25
  clearButton: "clear-button",
24
26
  clearable: "clearable",
27
+ editingEnabled: "editing-enabled",
28
+ inlineChild: "inline-child",
29
+ inlineEditableChild: "inline-editable-child",
30
+ // `calcite-inline-editable` deprecated in v5.2.0, removal target v7.0.0
31
+ inlineEditable: "inline-editable",
25
32
  inputIcon: "icon",
26
33
  prefix: "prefix",
27
34
  suffix: "suffix",
@@ -49,13 +56,14 @@ const DIRECTION = {
49
56
  down: "down"
50
57
  };
51
58
  const NUDGE_DELAY_IN_MS = 150;
52
- const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;--calcite-internal-input-number-focus-outline-color: var( --calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)) );--calcite-internal-input-number-number-button-item-height: auto}:host([scale=s]){--calcite-internal-input-number-icon-padding-inline: var(--calcite-spacing-fixed-sm)}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);block-size:var(--calcite-input-number-height, 1.5rem)}:host([scale=s]) input{padding-inline:var(--calcite-spacing-sm)}:host([scale=s]) .has-prefix input{padding-inline-start:var(--calcite-spacing-xxs)}:host([scale=s]) .prefix{padding-inline:var(--calcite-spacing-sm) var(--calcite-spacing-xxs)}:host([scale=s]) .has-suffix input{padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=s]) .suffix{padding-inline:var(--calcite-spacing-xxs) var(--calcite-spacing-sm)}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper{block-size:var(--calcite-input-number-height, 1.5rem)}:host([scale=s]) .clear-button{block-size:var(--calcite-spacing-xxl)}:host([scale=s]):host([number-button-type=horizontal]){--calcite-internal-input-number-number-button-item-horizontal-padding: var(--calcite-spacing-xxs)}:host([scale=s]):host([number-button-type=vertical]){--calcite-internal-input-number-number-button-item-height: 8px;--calcite-internal-input-number-number-button-item-horizontal-padding: var(--calcite-spacing-xxs);--calcite-internal-input-number-number-button-item-vertical-padding: 3px}:host([scale=m]){--calcite-internal-input-number-icon-padding-inline: var(--calcite-spacing-fixed-md)}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);block-size:var(--calcite-input-number-height, 2rem)}:host([scale=m]) input{padding-inline:var(--calcite-spacing-md)}:host([scale=m]) .has-prefix input{padding-inline-start:var(--calcite-spacing-xs)}:host([scale=m]) .prefix{padding-inline:var(--calcite-spacing-md) var(--calcite-spacing-xs)}:host([scale=m]) .has-suffix input{padding-inline-end:var(--calcite-spacing-xs)}:host([scale=m]) .suffix{padding-inline:var(--calcite-spacing-xs) var(--calcite-spacing-md)}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper{block-size:var(--calcite-input-number-height, 2rem)}:host([scale=m]):host([number-button-type=horizontal]){--calcite-internal-input-number-number-button-item-horizontal-padding: var(--calcite-space-sm)}:host([scale=m]):host([number-button-type=vertical]){--calcite-internal-input-number-number-button-item-height: 11px;--calcite-internal-input-number-number-button-item-horizontal-padding: var(--calcite-space-sm);--calcite-internal-input-number-number-button-item-vertical-padding: var(--calcite-space-2xs)}:host([scale=l]){--calcite-internal-input-number-icon-padding-inline: var(--calcite-spacing-fixed-lg)}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);block-size:var(--calcite-input-number-height, 2.75rem)}:host([scale=l]) input{padding-inline:var(--calcite-spacing-lg)}:host([scale=l]) .has-prefix input{padding-inline-start:var(--calcite-spacing-sm)}:host([scale=l]) .prefix{padding-inline:var(--calcite-spacing-lg) var(--calcite-spacing-sm)}:host([scale=l]) .has-suffix input{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=l]) .suffix{padding-inline:var(--calcite-spacing-sm) var(--calcite-spacing-lg)}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper{block-size:var(--calcite-input-number-height, 2.75rem)}:host([scale=l]):host([number-button-type=horizontal]){--calcite-internal-input-number-number-button-item-horizontal-padding: var(--calcite-spacing-sm-plus)}:host([scale=l]):host([number-button-type=vertical]){--calcite-internal-input-number-number-button-item-height: 16px;--calcite-internal-input-number-number-button-item-horizontal-padding: var(--calcite-spacing-sm-plus);--calcite-internal-input-number-number-button-item-vertical-padding: 5px}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}input{transition:var(--calcite-animation-timing),block-size 0,outline-offset 0s;-webkit-appearance:none;position:relative;margin:0;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;text-overflow:ellipsis;font-family:inherit;font-weight:var(--calcite-font-weight-normal);outline:none;background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-number-text-color, var(--calcite-color-text-1));text-align:var(--calcite-internal-input-number-alignment)}input:placeholder-shown{text-overflow:ellipsis}.element-wrapper,input{border-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}.has-prefix input,.element-wrapper:has(.icon) input{border-start-start-radius:0;border-end-start-radius:0}.element-wrapper:has(.number-button-item--horizontal[data-adjustment=down]) input,.has-prefix input,.element-wrapper:has(.icon) input{border-inline-start-width:0}.element-wrapper:has(.clear-button) input,.has-suffix input,.element-wrapper:has(.number-button-item--horizontal[data-adjustment=up]) input,.element-wrapper:has(.number-button-item) input{border-inline-end-width:0}.has-suffix input,.clearable input,:host(:not([read-only])) input,.suffix,.clear-button{border-start-end-radius:0;border-end-end-radius:0}.has-prefix :is(.prefix:first-child,.loader+.prefix),:host([number-button-type=horizontal]) .number-button-item[data-adjustment=down],.element-wrapper:has(.icon) :is(.icon:first-child,.loader+.icon){border-start-start-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}:host([read-only]) .suffix,:host([read-only]) .wrapper:not(.has-suffix) .clear-button,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=up]{border-end-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px;border-end-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]{border-start-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp))}:host(:not([read-only])[number-button-type=horizontal]) .prefix,:host(:not([read-only])[number-button-type=horizontal]) input,.has-prefix input{border-start-start-radius:0;border-end-start-radius:0}input{border-width:1px;border-style:solid;border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input))}input:focus{border-color:var(--calcite-color-brand);color:var(--calcite-input-number-text-color-focus, var(--calcite-color-text-1))}input[readonly]{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-input-number-background-color, var(--calcite-color-background))}input[readonly]:focus{color:var(--calcite-input-number-text-color-focus, var(--calcite-color-text-1))}:host([read-only]) .prefix,:host([read-only]) .icon,:host([read-only]) .clear-button,:host([read-only]) .suffix{background-color:var(--calcite-input-number-background-color, var(--calcite-color-background))}.element-wrapper{position:relative;display:inline-flex;flex:1 1 0%;align-items:center;order:3;isolation:isolate}.element-wrapper:has(input:focus){outline:var(--calcite-border-width-md) solid var(--calcite-internal-input-number-focus-outline-color);outline-offset:calc(var(--calcite-border-width-sm) * -2)}.element-wrapper:has(input:focus) input{z-index:calc(var(--calcite-z-index) * -1)}:host([status=invalid]) .prefix,:host([status=invalid]) .icon,:host([status=invalid]) input,:host([status=invalid]) .clear-button,:host([status=invalid]) .suffix,:host([status=invalid]) .number-button-item{border-color:var(--calcite-color-status-danger)}:host([status=invalid]){--calcite-internal-input-number-focus-outline-color: var(--calcite-color-status-danger)}.icon{box-sizing:border-box;display:flex;align-self:stretch;border-width:var(--calcite-border-width-sm);border-style:solid;border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input));border-inline-end-width:var(--calcite-border-width-none);background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1));--calcite-icon-color: var( --calcite-input-number-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-text-3)) );align-items:center;padding-inline-start:var(--calcite-internal-input-number-icon-padding-inline)}.element-wrapper:has(.number-button-item--horizontal[data-adjustment=down]) .icon,.has-prefix .icon{border-inline-start-width:0}.clear-button{box-sizing:border-box;display:flex;align-self:stretch;order:4;border-width:var(--calcite-border-width-sm);border-style:solid;border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input));border-inline-start-width:var(--calcite-border-width-none);background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1))}.has-suffix .clear-button,.element-wrapper:has(.number-button-item.number-button-item--horizontal[data-adjustment=up]) .clear-button,.element-wrapper:has(.number-button-item) .clear-button{border-inline-end-width:0}.loader{inset-block-start:var(--calcite-border-width-sm);inset-inline:var(--calcite-border-width-sm);pointer-events:none;position:absolute;display:block}.loader calcite-progress{--calcite-progress-background-color: var(--calcite-input-loading-background-color);--calcite-progress-fill-color: var(--calcite-input-loading-fill-color)}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;line-height:1;font-weight:var(--calcite-font-weight-regular);border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input))}.prefix{order:0;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto);background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-prefix-text-color, var(--calcite-color-text-2))}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto);background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-suffix-text-color, var(--calcite-color-text-2))}.element-wrapper:has(.number-button-item--horizontal[data-adjustment=down]) .prefix{border-inline-start-width:var(--calcite-border-width-none)}.element-wrapper:has(.number-button-item--horizontal[data-adjustment=up]) .suffix,.element-wrapper:has(.number-button-item) .suffix{border-inline-end-width:var(--calcite-border-width-none)}:host([alignment=start]){--calcite-internal-input-number-alignment: start}:host([alignment=center]){--calcite-internal-input-number-alignment: center}:host([alignment=end]){--calcite-internal-input-number-alignment: end}.number-button-wrapper{pointer-events:none;box-sizing:border-box;display:flex;flex-direction:column;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;order:6}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-action{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-action{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{max-block-size:100%;min-block-size:100%;align-self:stretch;order:1}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-action,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-action{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-inline-start-width:var(--calcite-border-width-sm);border-inline-end-width:0px;order:0;padding-inline-start:var(--calcite-internal-input-number-number-button-item-horizontal-padding)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:5;padding-inline-end:var(--calcite-internal-input-number-number-button-item-horizontal-padding)}:host([number-button-type=vertical]) .number-button-item{padding-inline-end:var(--calcite-internal-input-number-number-button-item-horizontal-padding)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]{border-start-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp));border-block-end-width:var(--calcite-border-width-none);padding-block-start:var(--calcite-internal-input-number-number-button-item-vertical-padding)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px;border-end-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp));padding-block-end:var(--calcite-internal-input-number-number-button-item-vertical-padding)}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:var(--calcite-border-width-sm);border-style:solid;border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1));border-inline-start-width:var(--calcite-border-width-none)}.number-button-item:hover calcite-action{--calcite-action-background-color: var( --calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2) );--calcite-action-text-color: var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.number-button-item:active calcite-action{--calcite-action-background-color: var( --calcite-input-actions-background-color-press, var(--calcite-color-foreground-3) );--calcite-action-text-color: var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.number-button-item calcite-action{--calcite-internal-action-height: var(--calcite-internal-input-number-number-button-item-height);--calcite-internal-action-padding-inline: var(--calcite-spacing-none);--calcite-internal-action-padding-block: var(--calcite-spacing-none);--calcite-action-background-color: var(--calcite-input-actions-background-color);--calcite-action-text-color: var(--calcite-input-actions-icon-color)}.number-button-item calcite-action:hover{--calcite-action-background-color-hover: var(--calcite-input-actions-background-color-hover);--calcite-action-text-color-press: var(--calcite-input-actions-icon-color-hover)}.number-button-item calcite-action:active{--calcite-action-background-color-press: var(--calcite-input-actions-background-color-press);--calcite-action-text-color-press: var(--calcite-input-actions-icon-color-press)}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-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-spacing-xxs)}:host([scale=m]) .clear-button--container{padding:var(--calcite-spacing-xxs);padding-inline-end:var(--calcite-space-sm)}:host([scale=l]) .clear-button--container{padding-inline-end:var(--calcite-spacing-sm-plus)}`;
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{pointer-events:none;box-sizing:border-box;display:flex;flex-direction:column;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;order:6}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-action{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-action{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{max-block-size:100%;min-block-size:100%;align-self:stretch;order:1}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-action,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-action{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-inline-start-width:var(--calcite-border-width-sm);border-inline-end-width:0px;order:0;padding-inline-start:var(--calcite-internal-input-number-number-button-item-horizontal-padding)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:5;padding-inline-end:var(--calcite-internal-input-number-number-button-item-horizontal-padding)}:host([number-button-type=vertical]) .number-button-item{padding-inline-end:var(--calcite-internal-input-number-number-button-item-horizontal-padding)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]{border-start-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp));border-block-end-width:var(--calcite-border-width-none);padding-block-start:var(--calcite-internal-input-number-number-button-item-vertical-padding)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px;border-end-end-radius:var(--calcite-input-number-corner-radius, var(--calcite-corner-radius-sharp));padding-block-end:var(--calcite-internal-input-number-number-button-item-vertical-padding)}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:var(--calcite-border-width-sm);border-style:solid;border-color:var(--calcite-input-number-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-number-background-color, var(--calcite-color-foreground-1));border-inline-start-width:var(--calcite-border-width-none)}.number-button-item:hover calcite-action{--calcite-action-background-color: var( --calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2) );--calcite-action-text-color: var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.number-button-item:active calcite-action{--calcite-action-background-color: var( --calcite-input-actions-background-color-press, var(--calcite-color-foreground-3) );--calcite-action-text-color: var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.number-button-item calcite-action{--calcite-internal-action-height: var(--calcite-internal-input-number-number-button-item-height);--calcite-internal-action-padding-inline: var(--calcite-spacing-none);--calcite-internal-action-padding-block: var(--calcite-spacing-none);--calcite-action-background-color: var(--calcite-input-actions-background-color);--calcite-action-text-color: var(--calcite-input-actions-icon-color)}.number-button-item calcite-action:hover{--calcite-action-background-color-hover: var(--calcite-input-actions-background-color-hover);--calcite-action-text-color-press: var(--calcite-input-actions-icon-color-hover)}.number-button-item calcite-action:active{--calcite-action-background-color-press: var(--calcite-input-actions-background-color-press);--calcite-action-text-color-press: var(--calcite-input-actions-icon-color-press)}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{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}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-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-spacing-xxs)}:host([scale=m]) .clear-button--container{padding:var(--calcite-spacing-xxs);padding-inline-end:var(--calcite-space-sm)}:host([scale=l]) .clear-button--container{padding-inline-end:var(--calcite-spacing-sm-plus)}.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))}`;
53
60
  class InputNumber extends LitElement {
54
61
  constructor() {
55
62
  super();
56
63
  this.actionWrapperRef = createRef();
57
64
  this.attributeWatch = useWatchAttributes(["autofocus", "enterkeyhint", "inputmode"], this.handleGlobalAttributesChanged);
58
65
  this.childNumberRef = createRef();
66
+ this.enableInlineEditingButtonRef = createRef();
59
67
  this.direction = useDirection();
60
68
  this.formSupport = useForm({
61
69
  inputType: "number"
@@ -67,11 +75,37 @@ class InputNumber extends LitElement {
67
75
  this.messages = useT9n({ blocking: true });
68
76
  this.focusSetter = useSetFocus()(this);
69
77
  this.interactiveContainer = useInteractive(this);
78
+ this.useInlineEditable = new UseInlineEditable({
79
+ getEditingEnabled: () => this.editingEnabled,
80
+ setEditingEnabled: (editingEnabled) => {
81
+ this.editingEnabled = editingEnabled;
82
+ },
83
+ getValue: () => this.value,
84
+ setValue: (value) => {
85
+ this.setNumberValue({ origin: "direct", value });
86
+ },
87
+ setFocus: () => {
88
+ void this.setFocus();
89
+ },
90
+ emitCancel: () => {
91
+ this.calciteInputNumberInlineEditableCancel.emit();
92
+ },
93
+ emitConfirm: () => {
94
+ this.calciteInputNumberInlineEditableConfirm.emit();
95
+ },
96
+ emitEnableEditingChange: () => {
97
+ this.calciteInputNumberInlineEditableChange.emit();
98
+ }
99
+ });
100
+ this.labelable = useLabel(this);
101
+ this.inlineEditableLoading = false;
70
102
  this.slottedActionElDisabledInternally = false;
71
103
  this.alignment = "start";
72
104
  this.clearable = false;
73
105
  this.disabled = false;
74
106
  this.editingEnabled = false;
107
+ this.inlineEditable = false;
108
+ this.inlineEditableControls = false;
75
109
  this.groupSeparator = false;
76
110
  this.iconFlipRtl = false;
77
111
  this.integer = false;
@@ -86,11 +120,14 @@ class InputNumber extends LitElement {
86
120
  this.calciteInputNumberInput = createEvent();
87
121
  this.calciteInternalInputNumberBlur = createEvent({ cancelable: false });
88
122
  this.calciteInternalInputNumberFocus = createEvent({ cancelable: false });
123
+ this.calciteInputNumberInlineEditableCancel = createEvent({ cancelable: false });
124
+ this.calciteInputNumberInlineEditableConfirm = createEvent({ cancelable: false });
125
+ this.calciteInputNumberInlineEditableChange = createEvent({ cancelable: false });
89
126
  this.listen("click", this.clickHandler);
90
127
  this.listen("keydown", this.keyDownHandler);
91
128
  }
92
129
  static {
93
- this.properties = { displayedValue: [16, {}, { state: true }], slottedActionElDisabledInternally: [16, {}, { state: true }], alignment: [3, {}, { reflect: true }], autocomplete: 1, clearable: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], editingEnabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], groupSeparator: [7, {}, { reflect: true, type: Boolean }], icon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], integer: [5, {}, { type: Boolean }], label: 1, labelText: 1, loading: [7, {}, { reflect: true, type: Boolean }], localeFormat: [5, {}, { type: Boolean }], max: [11, {}, { reflect: true, type: Number }], maxLength: [11, {}, { reflect: true, type: Number }], messageOverrides: [0, {}, { attribute: false }], min: [11, {}, { reflect: true, type: Number }], minLength: [11, {}, { reflect: true, type: Number }], name: [3, {}, { reflect: true }], numberButtonType: [3, {}, { reflect: true }], numberingSystem: [3, {}, { reflect: true }], placeholder: 1, prefixText: 1, readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], step: [3, {}, { reflect: true }], suffixText: 1, validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [32, {}, { readOnly: true, attribute: false }], value: 1 };
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, type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], integer: [5, {}, { type: Boolean }], label: 1, labelText: 1, loading: [7, {}, { reflect: true, type: Boolean }], localeFormat: [5, {}, { type: Boolean }], max: [11, {}, { reflect: true, type: Number }], maxLength: [11, {}, { reflect: true, type: Number }], messageOverrides: [0, {}, { attribute: false }], min: [11, {}, { reflect: true, type: Number }], minLength: [11, {}, { reflect: true, type: Number }], name: [3, {}, { reflect: true }], numberButtonType: [3, {}, { reflect: true }], numberingSystem: [3, {}, { reflect: true }], placeholder: 1, prefixText: 1, readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], step: [3, {}, { reflect: true }], suffixText: 1, validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [32, {}, { readOnly: true, attribute: false }], value: 1 };
94
131
  }
95
132
  static {
96
133
  this.formAssociated = true;
@@ -98,6 +135,15 @@ class InputNumber extends LitElement {
98
135
  static {
99
136
  this.styles = styles;
100
137
  }
138
+ get selfManagedInlineEditable() {
139
+ return this.inlineEditable && !this.inlineEditableEl;
140
+ }
141
+ get hasInlineEditableContext() {
142
+ return this.inlineEditable || !!this.inlineEditableEl;
143
+ }
144
+ get inlineEditableEnabledInContext() {
145
+ return this.inlineEditableEl ? this.inlineEditableEl.editingEnabled : this.editingEnabled;
146
+ }
101
147
  get isClearable() {
102
148
  return this.clearable && this.value.length > 0;
103
149
  }
@@ -129,7 +175,6 @@ class InputNumber extends LitElement {
129
175
  if (this.inlineEditableEl) {
130
176
  this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
131
177
  }
132
- connectLabel(this);
133
178
  }
134
179
  async load() {
135
180
  this.maxString = this.max?.toString();
@@ -171,7 +216,6 @@ class InputNumber extends LitElement {
171
216
  }
172
217
  disconnectedCallback() {
173
218
  super.disconnectedCallback();
174
- disconnectLabel(this);
175
219
  this.stopNudging();
176
220
  }
177
221
  stopNudging() {
@@ -200,7 +244,19 @@ class InputNumber extends LitElement {
200
244
  if (this.readOnly || this.disabled || event.defaultPrevented) {
201
245
  return;
202
246
  }
203
- if (this.isClearable && event.key === "Escape") {
247
+ if (this.selfManagedInlineEditable && this.editingEnabled && event.key === "Escape") {
248
+ event.preventDefault();
249
+ if (this.clearable && this.value?.length > 0) {
250
+ this.clearInputValue(event);
251
+ return;
252
+ }
253
+ this.useInlineEditable.cancelEditing();
254
+ requestAnimationFrame(() => {
255
+ this.enableInlineEditingButtonRef.value?.setFocus();
256
+ });
257
+ return;
258
+ }
259
+ if (this.isClearable && event.key === "Escape" && (!this.hasInlineEditableContext || this.inlineEditableEnabledInContext)) {
204
260
  this.clearInputValue(event);
205
261
  event.preventDefault();
206
262
  }
@@ -210,6 +266,10 @@ class InputNumber extends LitElement {
210
266
  }
211
267
  }
212
268
  onLabelClick() {
269
+ if (this.selfManagedInlineEditable && !this.editingEnabled) {
270
+ this.useInlineEditable.enable();
271
+ return;
272
+ }
213
273
  this.setFocus();
214
274
  }
215
275
  incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent) {
@@ -249,6 +309,9 @@ class InputNumber extends LitElement {
249
309
  inputNumberBlurHandler() {
250
310
  this.stopNudging();
251
311
  this.calciteInternalInputNumberBlur.emit();
312
+ if (this.selfManagedInlineEditable && this.editingEnabled && !this.inlineEditableControls) {
313
+ this.useInlineEditable.disable();
314
+ }
252
315
  this.emitChangeIfUserModified();
253
316
  }
254
317
  clickHandler(event) {
@@ -256,7 +319,13 @@ class InputNumber extends LitElement {
256
319
  return;
257
320
  }
258
321
  const composedPath = event.composedPath();
259
- if (!composedPath.includes(this.inputWrapperRef.value) || composedPath.includes(this.actionWrapperRef.value)) {
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) {
324
+ return;
325
+ }
326
+ if (this.selfManagedInlineEditable && !this.editingEnabled) {
327
+ event.preventDefault();
328
+ this.useInlineEditable.enable();
260
329
  return;
261
330
  }
262
331
  this.setFocus();
@@ -506,14 +575,21 @@ class InputNumber extends LitElement {
506
575
  const numberButtonsVertical = html`<div class=${safeClassMap(CSS.numberButtonWrapper)}>${numberButtonsHorizontalUp}${numberButtonsHorizontalDown}</div>`;
507
576
  const prefixText = html`<div class=${safeClassMap(CSS.prefix)}>${this.prefixText}</div>`;
508
577
  const suffixText = html`<div class=${safeClassMap(CSS.suffix)}>${this.suffixText}</div>`;
509
- 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} 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} type=text .value=${live(this.displayedValue ?? "")} ${ref(this.childNumberRef)}>`);
578
+ 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,
581
+ [CSS.inlineEditableChild]: !!this.inlineEditableEl
582
+ // `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)}>`);
510
584
  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({
511
585
  [CSS.inputWrapper]: true,
512
586
  [CSS_UTILITY.rtl]: dir === "rtl",
513
587
  [CSS.hasSuffix]: this.suffixText,
514
588
  [CSS.hasPrefix]: this.prefixText,
515
589
  [CSS.clearable]: this.isClearable
516
- })} ${ref(this.inputWrapperRef)}><div class=${safeClassMap(CSS.wrapper)}>${this.loading ? loader : null}${this.numberButtonType === "horizontal" && !this.readOnly ? numberButtonsHorizontalDown : null}${this.prefixText ? prefixText : null}${this.requestedIcon ? iconEl : null}${childEl}${this.isClearable ? clearButton : null}${this.suffixText ? suffixText : null}${this.numberButtonType === "horizontal" && !this.readOnly ? numberButtonsHorizontalUp : null}${this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null}</div><div class=${safeClassMap(CSS.actionWrapper)} ${ref(this.actionWrapperRef)}><slot name=${SLOTS.action}></slot></div></div>${this.validationMessage && this.status === "invalid" ? Validation({ icon: this.validationIcon, id: IDS.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
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.useInlineEditable.cancelEditing(), onConfirmChanges: () => this.useInlineEditable.confirm(this.inlineEditableAfterConfirm, (loading) => {
591
+ this.inlineEditableLoading = loading;
592
+ }), onEnableEditing: () => this.useInlineEditable.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}` });
517
593
  }
518
594
  }
519
595
  customElement("calcite-input-number", InputNumber);
@@ -12,6 +12,14 @@ import type { IconName } from "../calcite-icon/interfaces.js";
12
12
  * @cssproperty [--calcite-input-action-icon-color-press] - Specifies the icon color of the component's `clearable` element when pressed.
13
13
  * @cssproperty [--calcite-input-loading-background-color] - When `loading`, specifies the background color of the component`s `loading` element.
14
14
  * @cssproperty [--calcite-input-loading-fill-color] - When `loading`, specifies the fill color of the component`s `loading` element.
15
+ * @cssproperty [--calcite-input-text-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.
16
+ * @cssproperty [--calcite-input-text-inline-editable-control-background-color] - When `inline-editable` is enabled, specifies the background color of the component's inline editable controls.
17
+ * @cssproperty [--calcite-input-text-inline-editable-control-background-color-hover] - When `inline-editable` is enabled, specifies the background color of the component's inline editable controls, when hovered.
18
+ * @cssproperty [--calcite-input-text-inline-editable-control-background-color-press] - When `inline-editable` is enabled, specifies the background color of the component's inline editable controls, when pressed.
19
+ * @cssproperty [--calcite-input-text-inline-editable-control-corner-radius] - When `inline-editable` is enabled, specifies the corner radius of the component's inline editable controls.
20
+ * @cssproperty [--calcite-input-text-inline-editable-control-loader-color] - When `inline-editable` is enabled, specifies the loader color of the component's inline editable controls.
21
+ * @cssproperty [--calcite-input-text-inline-editable-control-text-color] - When `inline-editable` is enabled, specifies the text color of the component's inline editable controls.
22
+ * @cssproperty [--calcite-input-text-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.
15
23
  * @cssproperty [--calcite-input-prefix-size-x] - When `prefixText` is provided, specifies the width of the component's prefix element.
16
24
  * @cssproperty [--calcite-input-prefix-text-color] - When `prefixText` is provided, specifies the text color of the component's prefix element.
17
25
  * @cssproperty [--calcite-input-suffix-size-x] - When `suffixText` is provided, specifies the width of the component's suffix element.
@@ -67,6 +75,20 @@ export abstract class InputText extends LitElement {
67
75
  * @default false
68
76
  */
69
77
  accessor iconFlipRtl: boolean;
78
+ /**
79
+ * When `true`, enables the component's built-in inline editable behavior.
80
+ *
81
+ * @default false
82
+ */
83
+ accessor inlineEditable: boolean;
84
+ /** Specifies a callback to be executed when saving inline editable changes */
85
+ accessor inlineEditableAfterConfirm: () => Promise<void>;
86
+ /**
87
+ * When `true` and `inlineEditable` is `true`, displays the component's built-in inline editable save and cancel controls.
88
+ *
89
+ * @default false
90
+ */
91
+ accessor inlineEditableControls: boolean;
70
92
  /** Specifies an accessible label for the component's button or hyperlink. */
71
93
  accessor label: string | undefined;
72
94
  /** Specifies the component's label text. */
@@ -175,10 +197,19 @@ export abstract class InputText extends LitElement {
175
197
  setFocus(options?: FocusOptions): Promise<void>;
176
198
  /** Fires each time a new `value` is typed and committed. */
177
199
  readonly calciteInputTextChange: import("@arcgis/lumina").TargetedEvent<this, void>;
200
+ /** Fires when built-in inline editable is cancelled. */
201
+ readonly calciteInputTextInlineEditableCancel: import("@arcgis/lumina").TargetedEvent<this, void>;
202
+ /** Fires when built-in inline editable is enabled. */
203
+ readonly calciteInputTextInlineEditableChange: import("@arcgis/lumina").TargetedEvent<this, void>;
204
+ /** Fires when built-in inline editable is confirmed. */
205
+ readonly calciteInputTextInlineEditableConfirm: import("@arcgis/lumina").TargetedEvent<this, void>;
178
206
  /** Fires each time a new `value` is typed. */
179
207
  readonly calciteInputTextInput: import("@arcgis/lumina").TargetedEvent<this, void>;
180
208
  readonly "@eventTypes": {
181
209
  calciteInputTextChange: InputText["calciteInputTextChange"]["detail"];
210
+ calciteInputTextInlineEditableCancel: InputText["calciteInputTextInlineEditableCancel"]["detail"];
211
+ calciteInputTextInlineEditableChange: InputText["calciteInputTextInlineEditableChange"]["detail"];
212
+ calciteInputTextInlineEditableConfirm: InputText["calciteInputTextInlineEditableConfirm"]["detail"];
182
213
  calciteInputTextInput: InputText["calciteInputTextInput"]["detail"];
183
214
  };
184
215
  }