@esri/calcite-components 5.1.0-next.26 → 5.1.0-next.28

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 (198) hide show
  1. package/dist/cdn/{S2N3EAWR.js → 25U4VD6X.js} +1 -1
  2. package/dist/cdn/{XJHIIAS4.js → 2643VWIK.js} +1 -1
  3. package/dist/cdn/{JZIOWDZS.js → 2DDWG4KY.js} +1 -1
  4. package/dist/cdn/{QNLMV3T5.js → 2DJC4GZJ.js} +1 -1
  5. package/dist/cdn/{I2PT3UPN.js → 2EXJPUJE.js} +1 -1
  6. package/dist/cdn/{JHT4F2RJ.js → 2H37PYTE.js} +1 -1
  7. package/dist/cdn/2JUCSOBI.js +2 -0
  8. package/dist/cdn/{RYLTUWGS.js → 2MMJ4SPG.js} +1 -1
  9. package/dist/cdn/{T2DDJ3UZ.js → 2PNNQC2S.js} +1 -1
  10. package/dist/cdn/{BKVED5K4.js → 2ZMYDGAU.js} +1 -1
  11. package/dist/cdn/36PW4GMJ.js +2 -0
  12. package/dist/cdn/{ZTSGKD2X.js → 37M4EOUV.js} +1 -1
  13. package/dist/cdn/{IJ3XVWSG.js → 3ALZSO5N.js} +1 -1
  14. package/dist/cdn/{24UVSZOE.js → 3C2B243A.js} +1 -1
  15. package/dist/cdn/3S45J7UC.js +2 -0
  16. package/dist/cdn/{KPT5PXJP.js → 3Z2TZ6ND.js} +1 -1
  17. package/dist/cdn/{BGQMFO4B.js → 42ZM6AFE.js} +1 -1
  18. package/dist/cdn/{D26KXFR4.js → 4BGRVTT3.js} +1 -1
  19. package/dist/cdn/{F7QQUXJL.js → 4S3TKRGW.js} +1 -1
  20. package/dist/cdn/{LEBRWA4E.js → 4X236WQB.js} +1 -1
  21. package/dist/cdn/{FIBHCK3H.js → 534TBQTP.js} +1 -1
  22. package/dist/cdn/{SGYKV7MJ.js → 5PFRZ4R7.js} +1 -1
  23. package/dist/cdn/{XUCO6AFQ.js → 5QWXZ7O5.js} +1 -1
  24. package/dist/cdn/{W7Y7PLEA.js → 5REK75ZQ.js} +1 -1
  25. package/dist/cdn/{LGATM33J.js → 673NIPDB.js} +1 -1
  26. package/dist/cdn/{266QPYGH.js → 6FQKE7Z2.js} +1 -1
  27. package/dist/cdn/{XG3KX423.js → 6INFW6IQ.js} +1 -1
  28. package/dist/cdn/{MW7AGGL3.js → A4ZB732C.js} +1 -1
  29. package/dist/cdn/{FULAAFER.js → A7NET2GW.js} +1 -1
  30. package/dist/cdn/{3WIYPWAH.js → ADUAK3QA.js} +1 -1
  31. package/dist/cdn/{YQ2FBYJF.js → AOUOFESI.js} +1 -1
  32. package/dist/cdn/B6DTM6BY.js +2 -0
  33. package/dist/cdn/{ESIG7SRN.js → BFIXL2HX.js} +1 -1
  34. package/dist/cdn/{PGRW53WB.js → BQVS5YO7.js} +1 -1
  35. package/dist/cdn/{MTU6D47Y.js → BSODHHVB.js} +1 -1
  36. package/dist/cdn/{SAG5PN6V.js → BYVPXKJ7.js} +1 -1
  37. package/dist/cdn/{SR2U4UYC.js → COPGTJZJ.js} +1 -1
  38. package/dist/cdn/{UM7ABEPP.js → D7S4O5FG.js} +1 -1
  39. package/dist/cdn/{ZAXSD5VD.js → DWSAQKML.js} +1 -1
  40. package/dist/cdn/EDQAKFHD.js +2 -0
  41. package/dist/cdn/{C4ZX7VYR.js → EMCMVQJW.js} +3 -3
  42. package/dist/cdn/{P54SS6QP.js → EMPWZF2H.js} +1 -1
  43. package/dist/cdn/{WPHKI6II.js → EPQBEA3C.js} +1 -1
  44. package/dist/cdn/{4UTZIEIH.js → F5HY7BK6.js} +1 -1
  45. package/dist/cdn/{EPC7QGCY.js → FSSB6TID.js} +1 -1
  46. package/dist/cdn/{6DMT6SBE.js → FX7SYXUV.js} +1 -1
  47. package/dist/cdn/{74MAIRJS.js → GR2KNMLT.js} +1 -1
  48. package/dist/cdn/{UIUDRBYG.js → GTEFPCTJ.js} +1 -1
  49. package/dist/cdn/{DPPYTPUN.js → GW32UUS6.js} +1 -1
  50. package/dist/cdn/{DHPVZMKK.js → H2VB5JWW.js} +1 -1
  51. package/dist/cdn/{S4QXLRJT.js → HERIOGF7.js} +1 -1
  52. package/dist/cdn/{3Z6IQA5N.js → HHES5U5R.js} +1 -1
  53. package/dist/cdn/{X5FERJLS.js → HI6WIZIP.js} +1 -1
  54. package/dist/cdn/{CZGH2P5R.js → HLRSZIAD.js} +1 -1
  55. package/dist/cdn/{WAX64AMV.js → HZPUZPD5.js} +1 -1
  56. package/dist/cdn/{QN5DWY5J.js → I2O5WUMR.js} +1 -1
  57. package/dist/cdn/{GU4S3ZKG.js → I6DAXC3K.js} +1 -1
  58. package/dist/cdn/{HMOQULJD.js → IGJQVVEE.js} +1 -1
  59. package/dist/cdn/{F2QZDZIO.js → IIBTALKU.js} +1 -1
  60. package/dist/cdn/{Y7XT2XH3.js → IP6VXIUB.js} +1 -1
  61. package/dist/cdn/{LHBACKJ5.js → IQ267LZU.js} +1 -1
  62. package/dist/cdn/{L6WB4227.js → IYQLG63Y.js} +1 -1
  63. package/dist/cdn/{H5BLSEZ3.js → IYXIAEHS.js} +1 -1
  64. package/dist/cdn/{EWTR65YA.js → J4V2FFWV.js} +1 -1
  65. package/dist/cdn/{265A6AOM.js → J5OIQ5JE.js} +1 -1
  66. package/dist/cdn/{6ISWKJVP.js → JEHYYN4E.js} +1 -1
  67. package/dist/cdn/{AM3KA6XI.js → JUCGU6F4.js} +1 -1
  68. package/dist/cdn/{UFRNO43Y.js → JY56PHCK.js} +1 -1
  69. package/dist/cdn/{JAWBEMIK.js → K5A3RPBX.js} +1 -1
  70. package/dist/cdn/{NSPEKGY3.js → KITS253P.js} +1 -1
  71. package/dist/cdn/{EVSREOVQ.js → KKFAA3UK.js} +1 -1
  72. package/dist/cdn/{2ZJL6VLF.js → KQKKVDVX.js} +1 -1
  73. package/dist/cdn/L7DHGVWB.js +2 -0
  74. package/dist/cdn/{PYG7GNQ7.js → LD5T6ORB.js} +1 -1
  75. package/dist/cdn/{32SZ6MKP.js → LDBUTWJE.js} +1 -1
  76. package/dist/cdn/{GAR2IMZ3.js → LLEN3PWH.js} +1 -1
  77. package/dist/cdn/{2DPUDJQI.js → LYFLHG5P.js} +1 -1
  78. package/dist/cdn/{KOW5NTJQ.js → MCZEOJFQ.js} +1 -1
  79. package/dist/cdn/{53ZCK7UM.js → MDD4M37C.js} +1 -1
  80. package/dist/cdn/{BNBJDKHP.js → MMWNMQTT.js} +1 -1
  81. package/dist/cdn/{GUOSNPAU.js → MQ5FPEYS.js} +1 -1
  82. package/dist/cdn/{V2MNT2SI.js → MQK3E45Q.js} +1 -1
  83. package/dist/cdn/{3GV45XL7.js → MYDCGCGV.js} +1 -1
  84. package/dist/cdn/{IRWU2TR6.js → NB2DKUA2.js} +1 -1
  85. package/dist/cdn/{NDSQ4CFN.js → NKTFZNQM.js} +1 -1
  86. package/dist/cdn/{D7Q3AXKP.js → O3EKC2W5.js} +1 -1
  87. package/dist/cdn/{HCNEPLF5.js → O5K4HYXO.js} +1 -1
  88. package/dist/cdn/O7PIYB32.js +2 -0
  89. package/dist/cdn/{35A2JWYN.js → OHAZWGSF.js} +1 -1
  90. package/dist/cdn/{AE3UBVD4.js → OHIB37SX.js} +1 -1
  91. package/dist/cdn/{MOQRGDBX.js → OK67HOMS.js} +1 -1
  92. package/dist/cdn/{HGGO3AHT.js → OODA5MID.js} +1 -1
  93. package/dist/cdn/{DCQRXTMY.js → OX6ZVQOQ.js} +1 -1
  94. package/dist/cdn/P2HNC7UU.js +2 -0
  95. package/dist/cdn/{FG5FW5ZE.js → PE3YPUPJ.js} +1 -1
  96. package/dist/cdn/{UWDGNSRK.js → PKUFCNJL.js} +1 -1
  97. package/dist/cdn/{65XPD5PJ.js → POW5ZY3S.js} +1 -1
  98. package/dist/cdn/{QMHN63LJ.js → Q6RQZPCK.js} +1 -1
  99. package/dist/cdn/{QHG4UVN7.js → QGXFAME4.js} +1 -1
  100. package/dist/cdn/{VL5W6R2P.js → QJ4QU5F7.js} +1 -1
  101. package/dist/cdn/{WZF7PAWT.js → QM6GQBK7.js} +1 -1
  102. package/dist/cdn/{KDWR7M23.js → QSJAA23T.js} +1 -1
  103. package/dist/cdn/{QH4IVVZX.js → R6HAPYWH.js} +1 -1
  104. package/dist/cdn/R7GEJZJQ.js +2 -0
  105. package/dist/cdn/{IQZVCTFW.js → RLWVKKZ6.js} +1 -1
  106. package/dist/cdn/{G3EBHETV.js → RO26I72Q.js} +1 -1
  107. package/dist/cdn/{5YNF2CQY.js → RRZ2ZYLF.js} +1 -1
  108. package/dist/cdn/{4DBLFLPE.js → RWNDJLJK.js} +1 -1
  109. package/dist/cdn/{JVKSFUKV.js → RWNEGUGO.js} +1 -1
  110. package/dist/cdn/{3EFK33T5.js → S3V6TOMA.js} +1 -1
  111. package/dist/cdn/{SMKTVIG3.js → S7ZCPVU4.js} +1 -1
  112. package/dist/cdn/{XWQOS7OO.js → SGO42EA4.js} +1 -1
  113. package/dist/cdn/{ULHLMMN4.js → SNIBDYWV.js} +1 -1
  114. package/dist/cdn/{3SWWI6IT.js → SUUO54XJ.js} +1 -1
  115. package/dist/cdn/{M5WQDFOK.js → SXM3L3QB.js} +1 -1
  116. package/dist/cdn/{S5D4KC2T.js → T2YYC46N.js} +1 -1
  117. package/dist/cdn/{T53FCHAR.js → U3536CVR.js} +1 -1
  118. package/dist/cdn/UH6REHEA.js +2 -0
  119. package/dist/cdn/{GRDNG5EU.js → UUUUOCAJ.js} +1 -1
  120. package/dist/cdn/{IGZX5AHV.js → UZKX3HC4.js} +1 -1
  121. package/dist/cdn/V6IT236F.js +2 -0
  122. package/dist/cdn/{HGBMCFOD.js → VDTLW43K.js} +1 -1
  123. package/dist/cdn/{KPREHL4V.js → VK2MV6YO.js} +1 -1
  124. package/dist/cdn/VNCQZGV7.js +2 -0
  125. package/dist/cdn/{MEQVQ22B.js → VWXBWDIP.js} +1 -1
  126. package/dist/cdn/{F4GCWY3F.js → W4D3AVVQ.js} +1 -1
  127. package/dist/cdn/{NK6ELXJB.js → W4T4QVLN.js} +1 -1
  128. package/dist/cdn/{7GXPYZ67.js → WB4EJTWL.js} +1 -1
  129. package/dist/cdn/{NAP62AX7.js → WHZDXO2G.js} +1 -1
  130. package/dist/cdn/WPWHYZH7.js +2 -0
  131. package/dist/cdn/WXLEKCG7.js +2 -0
  132. package/dist/cdn/{34RZGOUB.js → X6J23ZTN.js} +1 -1
  133. package/dist/cdn/{GTLHPFUV.js → XGZEI4GA.js} +1 -1
  134. package/dist/cdn/{IPPVAW62.js → XOOZFRBP.js} +1 -1
  135. package/dist/cdn/{DNXGXZPK.js → Y6UL3JOS.js} +1 -1
  136. package/dist/cdn/{5G5VTRTL.js → Y77VQ7DL.js} +1 -1
  137. package/dist/cdn/{I3D4XCLD.js → YBR3HGSE.js} +1 -1
  138. package/dist/cdn/{L3QXLZZH.js → YE4F22RW.js} +1 -1
  139. package/dist/cdn/{PDBGWRDU.js → YFODJXYU.js} +1 -1
  140. package/dist/cdn/{7TFLXBND.js → YKBFTHVJ.js} +1 -1
  141. package/dist/cdn/{QVE3GWZX.js → YQHV57HI.js} +1 -1
  142. package/dist/cdn/{MCUIYFPY.js → ZDELR6R4.js} +1 -1
  143. package/dist/cdn/{FMP6OQ7D.js → ZJOU76RH.js} +1 -1
  144. package/dist/cdn/index.js +1 -1
  145. package/dist/chunks/resources5.js +2 -1
  146. package/dist/chunks/runtime.js +4 -4
  147. package/dist/chunks/useForm.js +4 -2
  148. package/dist/components/calcite-autocomplete/customElement.js +1 -1
  149. package/dist/components/calcite-checkbox/customElement.d.ts +1 -2
  150. package/dist/components/calcite-checkbox/customElement.js +1 -14
  151. package/dist/components/calcite-combobox/customElement.d.ts +1 -2
  152. package/dist/components/calcite-combobox/customElement.js +133 -46
  153. package/dist/components/calcite-input/customElement.d.ts +1 -2
  154. package/dist/components/calcite-input/customElement.js +1 -14
  155. package/dist/components/calcite-input-date-picker/customElement.d.ts +1 -2
  156. package/dist/components/calcite-input-date-picker/customElement.js +1 -14
  157. package/dist/components/calcite-input-number/customElement.d.ts +1 -2
  158. package/dist/components/calcite-input-number/customElement.js +1 -14
  159. package/dist/components/calcite-input-text/customElement.d.ts +1 -2
  160. package/dist/components/calcite-input-text/customElement.js +1 -14
  161. package/dist/components/calcite-input-time-picker/customElement.d.ts +1 -2
  162. package/dist/components/calcite-input-time-picker/customElement.js +1 -14
  163. package/dist/components/calcite-input-time-zone/customElement.d.ts +1 -2
  164. package/dist/components/calcite-input-time-zone/customElement.js +1 -14
  165. package/dist/components/calcite-meter/customElement.js +3 -3
  166. package/dist/components/calcite-rating/customElement.d.ts +1 -2
  167. package/dist/components/calcite-rating/customElement.js +1 -14
  168. package/dist/components/calcite-segmented-control/customElement.d.ts +1 -2
  169. package/dist/components/calcite-segmented-control/customElement.js +1 -14
  170. package/dist/components/calcite-select/customElement.d.ts +1 -2
  171. package/dist/components/calcite-select/customElement.js +1 -14
  172. package/dist/components/calcite-slider/customElement.d.ts +1 -2
  173. package/dist/components/calcite-slider/customElement.js +1 -14
  174. package/dist/components/calcite-swatch/customElement.d.ts +1 -1
  175. package/dist/components/calcite-table/customElement.js +1 -1
  176. package/dist/components/calcite-text-area/customElement.d.ts +1 -2
  177. package/dist/components/calcite-text-area/customElement.js +2 -15
  178. package/dist/components/calcite-time-picker/customElement.js +1 -1
  179. package/dist/docs/api.json +1 -1
  180. package/dist/docs/docs.json +1 -1
  181. package/dist/docs/web-types.json +1 -1
  182. package/package.json +10 -10
  183. package/dist/cdn/2COONMVV.js +0 -2
  184. package/dist/cdn/2JM24U42.js +0 -2
  185. package/dist/cdn/2N2EIOZQ.js +0 -2
  186. package/dist/cdn/5KJCBGYY.js +0 -2
  187. package/dist/cdn/EWMBDFVU.js +0 -2
  188. package/dist/cdn/HUQJ333U.js +0 -2
  189. package/dist/cdn/KR5QASPF.js +0 -2
  190. package/dist/cdn/PS3Y5JIN.js +0 -2
  191. package/dist/cdn/R2VQNT5E.js +0 -2
  192. package/dist/cdn/TQRVWHPS.js +0 -2
  193. package/dist/cdn/WTUALX4S.js +0 -2
  194. package/dist/cdn/XFUK6FWO.js +0 -2
  195. package/dist/cdn/XLYUKQVS.js +0 -2
  196. package/dist/cdn/YJF4NBEX.js +0 -2
  197. package/dist/controllers/useForm.d.ts +0 -3
  198. package/dist/utils/form.d.ts +0 -3
@@ -37,7 +37,7 @@ const XButton = ({ disabled, focusable, key, label, onClick, ref: ref$1, round =
37
37
  [CSS.button]: true,
38
38
  [CSS.buttonRound]: round
39
39
  })} .disabled=${disabled} @click=${onClick} .tabIndex=${focusable ? 0 : -1} title=${title ?? nothing} type=button ${ref(ref$1)}><calcite-icon icon=x .scale=${getIconScale(scale)}></calcite-icon></button>`);
40
- 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{position:relative;display:block}:host([scale=s]){font-size:var(--calcite-font-size-relative-sm);--calcite-internal-combobox-spacing-unit-l: .5rem;--calcite-internal-combobox-spacing-unit-s: .25rem;--calcite-internal-combobox-no-matches-spacing-unit-s: .25rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.25rem - 1px) ;--calcite-internal-close-size: 1rem}:host([scale=s]) .x-button{margin-inline:.5rem}:host([scale=m]){font-size:var(--calcite-font-size-relative-base);--calcite-internal-combobox-spacing-unit-l: .75rem;--calcite-internal-combobox-spacing-unit-s: .5rem;--calcite-internal-combobox-no-matches-spacing-unit-s: .375rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.5rem - 1px) ;--calcite-internal-close-size: 1.5rem}:host([scale=m]) .x-button{margin-inline-end:.75rem}:host([scale=l]){font-size:var(--calcite-font-size-relative-md);--calcite-internal-combobox-spacing-unit-l: 1rem;--calcite-internal-combobox-spacing-unit-s: .75rem;--calcite-internal-combobox-no-matches-spacing-unit-s: var(--calcite-space-sm-plus);--calcite-combobox-input-height: 1.5rem;--calcite-internal-combobox-input-margin-block: calc(var(--calcite-space-sm-plus) - 1px);--calcite-internal-close-size: 2rem}:host([scale=l]) .x-button{margin-inline-end:1rem}.x-button{align-self:center}.wrapper{display:flex;border-width:1px;border-style:solid;outline-color:transparent;padding-block:calc(var(--calcite-internal-combobox-spacing-unit-s) / 4);padding-inline:var(--calcite-internal-combobox-spacing-unit-l);background-color:var(--calcite-combobox-input-background-color, var(--calcite-color-foreground-1));color:var(--calcite-combobox-input-text-color, var(--calcite-color-text-1));border-color:var(--calcite-combobox-input-border-color, var(--calcite-color-border-input))}.wrapper:hover .icon{color:var(--calcite-combobox-icon-color-hover, var(--calcite-color-text-1))}:host(:focus-within) .wrapper,.wrapper--active{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([read-only]) .wrapper{background-color:var(--calcite-color-background)}:host([read-only]) .label{font-weight:var(--calcite-font-weight-medium)}:host([status=invalid]) .wrapper{border-color:var(--calcite-color-status-danger)}:host([status=invalid]:focus-within) .wrapper{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.wrapper--single{padding-block:0;padding-inline:var(--calcite-internal-combobox-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}.grid-input{position:relative;display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;gap:var(--calcite-internal-combobox-spacing-unit-s);margin-inline-end:var(--calcite-internal-combobox-spacing-unit-s)}.grid-input.selection-display--fit,.grid-input.selection-display--single{flex-wrap:nowrap;overflow:hidden}.input{flex-grow:1;appearance:none;overflow:hidden;text-overflow:ellipsis;border-style:none;background-color:transparent;padding:0;font-family:inherit;color:var(--calcite-color-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);inline-size:100%;margin-block-end:var(--calcite-internal-combobox-spacing-unit-s);min-inline-size:4.8125rem}.input:focus{outline:2px solid transparent;outline-offset:2px}.input:placeholder-shown{text-overflow:ellipsis}.input--single{padding:0;margin-block:var(--calcite-internal-combobox-input-margin-block)}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;width:0px;min-width:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-internal-combobox-spacing-unit-l)}.placeholder-icon{color:var(--calcite-combobox-icon-color, var(--calcite-color-text-3))}.input-wrap{display:flex;flex-grow:1;align-items:center}.input-wrap--single{flex:1 1 0%;overflow:hidden}.label{pointer-events:none;max-width:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--icon{padding-inline:var(--calcite-internal-combobox-spacing-unit-l)}.icon-end,.icon-start{display:flex;cursor:pointer;align-items:center}.icon-end{flex:none}.icon-end .icon{color:var(--calcite-combobox-icon-color, var(--calcite-color-text-3))}.floating-ui-container{inline-size:max-content;display:none;max-inline-size:100vw;max-block-size:100vh;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}@starting-style{.floating-ui-container{opacity:0;inset-block-start:0;left:0}}:host([top-layer-disabled]) .floating-ui-container{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown)}.floating-ui-container[popover]{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;display:none}.floating-ui-container:popover-open{display:block}.floating-ui-container .calcite-floating-ui-anim{position:relative;transition-duration:var(--calcite-floating-ui-transition);transition-property:inset-block-start,left,opacity,display;transition-behavior:allow-discrete;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}@starting-style{.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:0}}@media(forced-colors:active){.wrapper,.floating-ui-container{border:1px solid canvasText}}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.list-container{max-height:45vh;overflow-y:auto;inline-size:var(--calcite-dropdown-width, 100%);background-color:var(--calcite-combobox-background-color, var(--calcite-color-foreground-1))}.list{margin:0;display:block;padding:0}.list--hide{height:0px;overflow:hidden}calcite-chip{--calcite-animation-timing: 0}.chip{margin-block:calc(var(--calcite-internal-combobox-spacing-unit-s) / 4);max-inline-size:100%}.chip--invisible{visibility:hidden;position:absolute}.item{display:block}.select-all{background-color:var(--calcite-combobox-item-background-color-active, var(--calcite-color-foreground-1));border-block-end-color:var(--calcite-combobox-divider-color, var(--calcite-combobox-item-border-color, var(--calcite-color-border-3)));border-block-end-style:solid;border-block-end-width:var(--calcite-border-width-sm);inset-block-start:0;position:sticky;z-index:var(--calcite-z-index-sticky)}.no-matches{padding-block:var(--calcite-internal-combobox-no-matches-spacing-unit-s);padding-inline:var(--calcite-internal-combobox-spacing-unit-l);color:var(--calcite-combobox-input-text-color, var(--calcite-color-text-1));background:var(--calcite-combobox-background-color, var(--calcite-color-foreground-1));cursor:pointer}.no-matches-placeholder{color:var(--calcite-combobox-icon-color, var(--calcite-color-text-3));cursor:default}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.x-button{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-style:none;cursor:pointer;outline-color:transparent;align-items:center;margin:0;background-color:var(--calcite-close-background-color, var(--calcite-color-foreground-2));-webkit-appearance:none;display:flex;align-content:center;justify-content:center;color:var(--calcite-close-icon-color, var(--calcite-color-text-3));block-size:var(--calcite-internal-close-size, 1.5rem);inline-size:var(--calcite-internal-close-size, 1.5rem);min-block-size:var(--calcite-internal-close-size, 1.5rem);min-inline-size:var(--calcite-internal-close-size, 1.5rem);padding:0}.x-button:hover,.x-button:focus{background-color:var(--calcite-close-background-color-hover, var(--calcite-color-foreground-3))}.x-button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.x-button:active{background-color:var(--calcite-close-background-color-press, var(--calcite-color-transparent-press))}.x-button calcite-icon{color:inherit}.x-button--round{border-radius:9999px}.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}.text-match{background-color:transparent;color:inherit;font-weight:var(--calcite-font-weight-bold)}.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)}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-placeholder-text-color, var(--calcite-color-text-3))}`;
40
+ 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{position:relative;display:block}:host([scale=s]){font-size:var(--calcite-font-size-relative-sm);--calcite-internal-combobox-spacing-unit-l: .5rem;--calcite-internal-combobox-spacing-unit-s: .25rem;--calcite-internal-combobox-no-matches-spacing-unit-s: .25rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.25rem - 1px) ;--calcite-internal-close-size: 1rem}:host([scale=s]) .x-button{margin-inline:.5rem}:host([scale=m]){font-size:var(--calcite-font-size-relative-base);--calcite-internal-combobox-spacing-unit-l: .75rem;--calcite-internal-combobox-spacing-unit-s: .5rem;--calcite-internal-combobox-no-matches-spacing-unit-s: .375rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.5rem - 1px) ;--calcite-internal-close-size: 1.5rem}:host([scale=m]) .x-button{margin-inline-end:.75rem}:host([scale=l]){font-size:var(--calcite-font-size-relative-md);--calcite-internal-combobox-spacing-unit-l: 1rem;--calcite-internal-combobox-spacing-unit-s: .75rem;--calcite-internal-combobox-no-matches-spacing-unit-s: var(--calcite-space-sm-plus);--calcite-combobox-input-height: 1.5rem;--calcite-internal-combobox-input-margin-block: calc(var(--calcite-space-sm-plus) - 1px);--calcite-internal-close-size: 2rem}:host([scale=l]) .x-button{margin-inline-end:1rem}.x-button{align-self:center}.wrapper{display:flex;border-width:1px;border-style:solid;outline-color:transparent;padding-block:calc(var(--calcite-internal-combobox-spacing-unit-s) / 4);padding-inline:var(--calcite-internal-combobox-spacing-unit-l);background-color:var(--calcite-combobox-input-background-color, var(--calcite-color-foreground-1));color:var(--calcite-combobox-input-text-color, var(--calcite-color-text-1));border-color:var(--calcite-combobox-input-border-color, var(--calcite-color-border-input))}.wrapper:hover .icon{color:var(--calcite-combobox-icon-color-hover, var(--calcite-color-text-1))}:host(:focus-within) .wrapper,.wrapper--active{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([read-only]) .wrapper{background-color:var(--calcite-color-background)}:host([read-only]) .label{font-weight:var(--calcite-font-weight-medium)}:host([status=invalid]) .wrapper{border-color:var(--calcite-color-status-danger)}:host([status=invalid]:focus-within) .wrapper{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.wrapper--single{padding-block:0;padding-inline:var(--calcite-internal-combobox-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}.grid-input{position:relative;display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;gap:var(--calcite-internal-combobox-spacing-unit-s);margin-inline-end:var(--calcite-internal-combobox-spacing-unit-s)}.grid-input.selection-display--fit,.grid-input.selection-display--single{flex-wrap:nowrap;overflow:hidden}.input{flex-grow:1;appearance:none;overflow:hidden;text-overflow:ellipsis;border-style:none;background-color:transparent;padding:0;font-family:inherit;color:var(--calcite-color-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);inline-size:100%;margin-block-end:var(--calcite-internal-combobox-spacing-unit-s);min-inline-size:4.8125rem}.input:focus{outline:2px solid transparent;outline-offset:2px}.input:placeholder-shown{text-overflow:ellipsis}.input--single{padding:0;margin-block:var(--calcite-internal-combobox-input-margin-block)}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;width:0px;min-width:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-internal-combobox-spacing-unit-l)}.placeholder-icon{color:var(--calcite-combobox-icon-color, var(--calcite-color-text-3))}.input-wrap{display:flex;flex-grow:1;align-items:center}.input-wrap--single{flex:1 1 0%;overflow:hidden}.label{pointer-events:none;max-width:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--icon{padding-inline:var(--calcite-internal-combobox-spacing-unit-l)}.icon-end,.icon-start{display:flex;cursor:pointer;align-items:center}.icon-end{flex:none}.icon-end .icon{color:var(--calcite-combobox-icon-color, var(--calcite-color-text-3))}.floating-ui-container{inline-size:max-content;display:none;max-inline-size:100vw;max-block-size:100vh;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}@starting-style{.floating-ui-container{opacity:0;inset-block-start:0;left:0}}:host([top-layer-disabled]) .floating-ui-container{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown)}.floating-ui-container[popover]{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;display:none}.floating-ui-container:popover-open{display:block}.floating-ui-container .calcite-floating-ui-anim{position:relative;transition-duration:var(--calcite-floating-ui-transition);transition-property:inset-block-start,left,opacity,display;transition-behavior:allow-discrete;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}@starting-style{.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:0}}@media(forced-colors:active){.wrapper,.floating-ui-container{border:1px solid canvasText}}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.list-container{max-height:45vh;overflow-y:auto;inline-size:var(--calcite-dropdown-width, 100%);background-color:var(--calcite-combobox-background-color, var(--calcite-color-foreground-1))}.list{margin:0;display:block;padding:0}.list--hide{height:0px;overflow:hidden}calcite-chip{--calcite-animation-timing: 0}.chip{margin-block:calc(var(--calcite-internal-combobox-spacing-unit-s) / 4);max-inline-size:100%}.chip--invisible{visibility:hidden;position:absolute}.item{display:block}.select-all{background-color:var(--calcite-combobox-item-background-color-active, var(--calcite-color-foreground-1));border-block-end-color:var(--calcite-combobox-divider-color, var(--calcite-combobox-item-border-color, var(--calcite-color-border-3)));border-block-end-style:solid;border-block-end-width:var(--calcite-border-width-sm);inset-block-start:0;position:sticky;z-index:var(--calcite-z-index-sticky)}.no-matches{padding-block:var(--calcite-internal-combobox-no-matches-spacing-unit-s);padding-inline:var(--calcite-internal-combobox-spacing-unit-l);color:var(--calcite-combobox-input-text-color, var(--calcite-color-text-1));background:var(--calcite-combobox-background-color, var(--calcite-color-foreground-1));cursor:pointer}.no-matches-placeholder{color:var(--calcite-combobox-icon-color, var(--calcite-color-text-3));cursor:default}.disabled{opacity:.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.x-button{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-style:none;cursor:pointer;outline-color:transparent;align-items:center;margin:0;background-color:var(--calcite-close-background-color, var(--calcite-color-foreground-2));-webkit-appearance:none;display:flex;align-content:center;justify-content:center;color:var(--calcite-close-icon-color, var(--calcite-color-text-3));block-size:var(--calcite-internal-close-size, 1.5rem);inline-size:var(--calcite-internal-close-size, 1.5rem);min-block-size:var(--calcite-internal-close-size, 1.5rem);min-inline-size:var(--calcite-internal-close-size, 1.5rem);padding:0}.x-button:hover,.x-button:focus{background-color:var(--calcite-close-background-color-hover, var(--calcite-color-foreground-3))}.x-button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.x-button:active{background-color:var(--calcite-close-background-color-press, var(--calcite-color-transparent-press))}.x-button calcite-icon{color:inherit}.x-button--round{border-radius:9999px}.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}.text-match{background-color:transparent;color:inherit;font-weight:var(--calcite-font-weight-bold)}.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)}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-placeholder-text-color, var(--calcite-color-text-3))}`;
41
41
  class Combobox extends LitElement {
42
42
  constructor() {
43
43
  super();
@@ -130,6 +130,7 @@ class Combobox extends LitElement {
130
130
  this.compactSelectionDisplay = false;
131
131
  this.selectedHiddenChipsCount = 0;
132
132
  this.selectedVisibleChipsCount = 0;
133
+ this.allItems = [];
133
134
  this.items = [];
134
135
  this.clearDisabled = false;
135
136
  this.disabled = false;
@@ -147,19 +148,6 @@ class Combobox extends LitElement {
147
148
  this.selectionMode = "multiple";
148
149
  this.status = "idle";
149
150
  this.topLayerDisabled = false;
150
- this.validity = {
151
- valid: false,
152
- badInput: false,
153
- customError: false,
154
- patternMismatch: false,
155
- rangeOverflow: false,
156
- rangeUnderflow: false,
157
- stepMismatch: false,
158
- tooLong: false,
159
- tooShort: false,
160
- typeMismatch: false,
161
- valueMissing: false
162
- };
163
151
  this.calciteComboboxBeforeClose = createEvent({ cancelable: false });
164
152
  this.calciteComboboxBeforeOpen = createEvent({ cancelable: false });
165
153
  this.calciteComboboxChange = createEvent({ cancelable: false });
@@ -173,7 +161,7 @@ class Combobox extends LitElement {
173
161
  this.listen("click", this.comboboxFocusHandler);
174
162
  }
175
163
  static {
176
- this.properties = { activeChipIndex: [16, {}, { state: true }], activeDescendant: [16, {}, { state: true }], activeItemIndex: [16, {}, { state: true }], compactSelectionDisplay: [16, {}, { state: true }], selectedHiddenChipsCount: [16, {}, { state: true }], selectedVisibleChipsCount: [16, {}, { state: true }], items: [16, {}, { state: true }], noMatchesFound: [16, {}, { state: true }], allowCustomValues: [7, {}, { reflect: true, type: Boolean }], clearDisabled: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], filterText: [3, {}, { reflect: true }], filterProps: [0, {}, { attribute: false }], filteredItems: [32, {}, { attribute: false, readOnly: true }], flipPlacements: [0, {}, { attribute: false }], form: [3, {}, { reflect: true }], label: 1, labelText: 1, maxItems: [11, {}, { reflect: true, type: Number }], messageOverrides: [0, {}, { attribute: false }], name: [3, {}, { reflect: true }], open: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: [3, {}, { reflect: true }], placeholder: 1, placeholderIcon: [3, { type: String }, { reflect: true }], placeholderIconFlipRtl: [7, {}, { reflect: true, type: Boolean }], placement: [3, {}, { reflect: true }], readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], selectAllEnabled: [7, {}, { reflect: true, type: Boolean }], selectedItems: [0, {}, { attribute: false }], selectionDisplay: [3, {}, { reflect: true }], selectionAppearance: [3, {}, { reflect: true }], selectionMode: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [0, {}, { attribute: false }], value: 1 };
164
+ this.properties = { activeChipIndex: [16, {}, { state: true }], activeDescendant: [16, {}, { state: true }], activeItemIndex: [16, {}, { state: true }], compactSelectionDisplay: [16, {}, { state: true }], selectedHiddenChipsCount: [16, {}, { state: true }], selectedVisibleChipsCount: [16, {}, { state: true }], allItems: [16, {}, { state: true }], items: [16, {}, { state: true }], noMatchesFound: [16, {}, { state: true }], allowCustomValues: [7, {}, { reflect: true, type: Boolean }], clearDisabled: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], filterText: [3, {}, { reflect: true }], filterProps: [0, {}, { attribute: false }], filteredItems: [32, {}, { attribute: false, readOnly: true }], flipPlacements: [0, {}, { attribute: false }], form: [3, {}, { reflect: true }], label: 1, labelText: 1, maxItems: [11, {}, { reflect: true, type: Number }], messageOverrides: [0, {}, { attribute: false }], name: [3, {}, { reflect: true }], open: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: [3, {}, { reflect: true }], placeholder: 1, placeholderIcon: [3, { type: String }, { reflect: true }], placeholderIconFlipRtl: [7, {}, { reflect: true, type: Boolean }], placement: [3, {}, { reflect: true }], readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], selectAllEnabled: [7, {}, { reflect: true, type: Boolean }], selectedItems: [0, {}, { attribute: false }], selectionDisplay: [3, {}, { reflect: true }], selectionAppearance: [3, {}, { reflect: true }], selectionMode: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [32, {}, { readOnly: true, attribute: false }], value: 1 };
177
165
  }
178
166
  static {
179
167
  this.formAssociated = true;
@@ -195,10 +183,21 @@ class Combobox extends LitElement {
195
183
  return !open && selectedItem ? !!selectedIcon && singleSelectionMode : !!placeholderIcon && (!selectedItem || singleSelectionMode);
196
184
  }
197
185
  get allSelected() {
198
- return this.selectedItems.length === this.items.length;
186
+ const enabledItems = this.allItems.filter((item) => !item.disabled);
187
+ return enabledItems.length > 0 && enabledItems.every((item) => item.selected);
188
+ }
189
+ get hasDisabledItems() {
190
+ return this.allItems.some((item) => item.disabled);
191
+ }
192
+ get hasDisabledSelected() {
193
+ return this.allItems.some((item) => item.disabled && item.selected);
199
194
  }
200
195
  get indeterminate() {
201
- return this.selectedItems.length > 0 && !this.allSelected;
196
+ const hasAnySelected = this.selectedItems.length > 0 || this.hasDisabledSelected;
197
+ if (!this.selectAllEnabled) {
198
+ return this.selectedItems.length > 0 && !this.allSelected;
199
+ }
200
+ return !this.allSelected && hasAnySelected;
202
201
  }
203
202
  get keyboardNavItems() {
204
203
  const { selectAllComboboxItemRef } = this;
@@ -323,7 +322,7 @@ class Combobox extends LitElement {
323
322
  }
324
323
  valueHandler(value) {
325
324
  if (!this.internalValueChangeFlag) {
326
- this.getItems().forEach((item) => {
325
+ this.items.forEach((item) => {
327
326
  item.selected = Array.isArray(value) ? value.includes(item.value) : value === item.value;
328
327
  });
329
328
  this.updateItems();
@@ -337,6 +336,9 @@ class Combobox extends LitElement {
337
336
  this.internalValueChangeFlag = true;
338
337
  this.value = this.getValue();
339
338
  this.internalValueChangeFlag = false;
339
+ if (this.selectionDisplay === "fit" && this.isMulti()) {
340
+ this.refreshSelectionDisplay();
341
+ }
340
342
  }
341
343
  async documentClickHandler(event) {
342
344
  if (this.disabled || event.composedPath().includes(this.el)) {
@@ -357,7 +359,7 @@ class Combobox extends LitElement {
357
359
  if (isSelectAllTarget) {
358
360
  this.toggleSelectAll();
359
361
  }
360
- if (this.allSelected) {
362
+ if (this.allSelected && (!this.hasDisabledItems || this.hasDisabledSelected)) {
361
363
  this.selectedItems.forEach((item) => {
362
364
  const chipEl = this.referenceEl.querySelector(`#${IDS.chip(item.guid)}`);
363
365
  if (chipEl) {
@@ -418,8 +420,13 @@ class Combobox extends LitElement {
418
420
  }
419
421
  toggleSelectAll() {
420
422
  const toggledValue = !this.allSelected;
421
- this.items.forEach((item) => item.selected = toggledValue);
422
- this.selectedItems = toggledValue ? this.items : [];
423
+ this.allItems.forEach((item) => {
424
+ if (item.disabled) {
425
+ return;
426
+ }
427
+ item.selected = toggledValue;
428
+ });
429
+ this.selectedItems = this.getSelectedItems();
423
430
  this.emitComboboxChange();
424
431
  }
425
432
  keyDownHandler(event) {
@@ -655,7 +662,7 @@ class Combobox extends LitElement {
655
662
  inputWidth,
656
663
  largestSelectedIndicatorChipWidth
657
664
  });
658
- if (this.allSelected && this.selectAllEnabled) {
665
+ if (this.allSelected && this.selectAllEnabled && (!this.hasDisabledItems || this.hasDisabledSelected)) {
659
666
  this.selectedItems.forEach((item) => {
660
667
  const chipEl = this.referenceEl.querySelector(`#${IDS.chip(item.guid)}`);
661
668
  if (chipEl) {
@@ -712,7 +719,7 @@ class Combobox extends LitElement {
712
719
  if (newSelectedVisibleChipsCount !== this.selectedVisibleChipsCount) {
713
720
  this.selectedVisibleChipsCount = newSelectedVisibleChipsCount;
714
721
  }
715
- const newSelectedHiddenChipsCount = this.getSelectedItems().length - newSelectedVisibleChipsCount;
722
+ const newSelectedHiddenChipsCount = Math.max(0, this.getSelectedItems().length - newSelectedVisibleChipsCount);
716
723
  if (newSelectedHiddenChipsCount !== this.selectedHiddenChipsCount) {
717
724
  this.selectedHiddenChipsCount = newSelectedHiddenChipsCount;
718
725
  }
@@ -796,7 +803,12 @@ class Combobox extends LitElement {
796
803
  el.selected = true;
797
804
  });
798
805
  } else {
799
- children.forEach((el) => el.selected = false);
806
+ children.forEach((el) => {
807
+ if (el.disabled) {
808
+ return;
809
+ }
810
+ el.selected = false;
811
+ });
800
812
  [...ancestors].forEach((el) => {
801
813
  if (!hasActiveChildren(el)) {
802
814
  el.selected = false;
@@ -805,7 +817,8 @@ class Combobox extends LitElement {
805
817
  }
806
818
  }
807
819
  updateItems() {
808
- this.items = this.getItems();
820
+ this.allItems = this.getItems(true);
821
+ this.items = this.allItems.filter((item) => !item.disabled);
809
822
  this.groupItems = this.getGroupItems();
810
823
  this.data = this.getData();
811
824
  this.groupData = this.getGroupData();
@@ -813,7 +826,7 @@ class Combobox extends LitElement {
813
826
  this.selectedItems = this.getSelectedItems();
814
827
  }
815
828
  updateItemProps() {
816
- this.getItems(true).forEach((item) => {
829
+ this.allItems.forEach((item) => {
817
830
  item.selectionMode = this.selectionMode;
818
831
  item.selectionAppearance = this.selectionAppearance;
819
832
  item.scale = this.scale;
@@ -975,40 +988,111 @@ class Combobox extends LitElement {
975
988
  const value = Array.isArray(this.value) ? this.value.join(", ") : this.value;
976
989
  return this.readOnly ? this.messages.nonEditable?.replace("{value}", `${value}`) : value;
977
990
  }
991
+ getChipLabel(item, isAncestors) {
992
+ if (!isAncestors) {
993
+ return getLabel(item);
994
+ }
995
+ const ancestors = [...getItemAncestors(item)].reverse();
996
+ return [...ancestors, item].map((el) => getLabel(el)).join(" / ");
997
+ }
998
+ renderChip({ activeChipIndex, disabled, index, item, messages, readOnly, scale, isAncestors }) {
999
+ const label = this.getChipLabel(item, isAncestors);
1000
+ return keyed(item.guid || item.value || label, html`<calcite-chip .appearance=${readOnly ? "outline" : "solid"} class=${safeClassMap({
1001
+ [CSS$1.chip]: true,
1002
+ [CSS$1.disabled]: disabled
1003
+ })} .closable=${!disabled && !readOnly} .disabled=${disabled} .icon=${item.icon} .iconFlipRtl=${item.iconFlipRtl} id=${(!disabled && item.guid ? `${IDS.chip(item.guid)}` : null) ?? nothing} .label=${label} .messageOverrides=${!disabled ? { dismissLabel: messages.removeTag } : null} @focusin=${!disabled ? () => this.activeChipIndex = index : null} @calciteChipClose=${!disabled ? () => this.calciteChipCloseHandler(item) : null} .scale=${scale} .selected=${item.selected} .tabIndex=${!disabled && activeChipIndex === index ? 0 : -1} title=${label ?? nothing} .value=${item.value}>${label}</calcite-chip>`);
1004
+ }
1005
+ renderChipCount(count, scale) {
1006
+ const label = this.messages.disabledSelectedCount?.replace("{count}", `${count}`) ?? `+${count}`;
1007
+ return html`<calcite-chip appearance=solid class=${safeClassMap({
1008
+ [CSS$1.chip]: true
1009
+ })} .label=${label} .scale=${scale} tabindex=-1 title=${label ?? nothing}>${label}</calcite-chip>`;
1010
+ }
978
1011
  renderChips() {
979
- const { activeChipIndex, readOnly, scale, selectionMode, messages } = this;
980
- if (this.selectAllEnabled && this.allSelected) {
1012
+ const { activeChipIndex, readOnly, scale, selectionDisplay, selectionMode, messages } = this;
1013
+ const chips = [];
1014
+ const isAncestors = selectionMode === "ancestors";
1015
+ const allSelectedNoDisabled = this.allSelected && !this.hasDisabledItems;
1016
+ const allSelectedWithDisabledSelected = this.allSelected && this.hasDisabledSelected;
1017
+ const disabledItems = this.allItems.filter((item) => item.disabled && item.selected && (!isAncestors || !hasActiveChildren(item)));
1018
+ const preserveOrder = selectionDisplay === "all";
1019
+ if (selectionDisplay === "fit" && (allSelectedNoDisabled || allSelectedWithDisabledSelected) || selectionDisplay === "all" && this.selectAllEnabled && allSelectedWithDisabledSelected || this.selectAllEnabled && this.allSelected && !this.hasDisabledItems) {
981
1020
  return null;
982
1021
  }
983
- return this.selectedItems.map((item, i) => {
984
- const chipClasses = {
985
- [CSS$1.chip]: true
986
- };
987
- const ancestors = [...getItemAncestors(item)].reverse();
988
- const itemLabel = getLabel(item);
989
- const pathLabel = [...ancestors, item].map((el) => getLabel(el));
990
- const label = selectionMode !== "ancestors" ? itemLabel : pathLabel.join(" / ");
991
- return keyed(itemLabel, html`<calcite-chip .appearance=${readOnly ? "outline" : "solid"} class=${safeClassMap(chipClasses)} .closable=${!readOnly} .icon=${item.icon} .iconFlipRtl=${item.iconFlipRtl} id=${(item.guid ? `${IDS.chip(item.guid)}` : null) ?? nothing} .label=${label} .messageOverrides=${{ dismissLabel: messages.removeTag }} @focusin=${() => this.activeChipIndex = i} @calciteChipClose=${() => this.calciteChipCloseHandler(item)} .scale=${scale} .selected=${item.selected} .tabIndex=${activeChipIndex === i ? 0 : -1} title=${label ?? nothing} .value=${item.value}>${label}</calcite-chip>`);
992
- });
1022
+ let selectedIndex = 0;
1023
+ let disabledIndex = 0;
1024
+ if (preserveOrder) {
1025
+ this.allItems.forEach((item) => {
1026
+ if (item.disabled) {
1027
+ if (item.selected && (!isAncestors || !hasActiveChildren(item))) {
1028
+ chips.push(this.renderChip({
1029
+ activeChipIndex,
1030
+ disabled: true,
1031
+ index: disabledIndex++,
1032
+ item,
1033
+ messages,
1034
+ readOnly,
1035
+ scale,
1036
+ isAncestors
1037
+ }));
1038
+ }
1039
+ return;
1040
+ }
1041
+ if (!this.selectAllEnabled || !this.allSelected || this.hasDisabledItems) {
1042
+ if (item.selected && (!isAncestors || !hasActiveChildren(item))) {
1043
+ chips.push(this.renderChip({
1044
+ activeChipIndex,
1045
+ disabled: false,
1046
+ index: selectedIndex++,
1047
+ item,
1048
+ messages,
1049
+ readOnly,
1050
+ scale,
1051
+ isAncestors
1052
+ }));
1053
+ }
1054
+ }
1055
+ });
1056
+ } else if (!this.selectAllEnabled || !this.allSelected || this.hasDisabledItems) {
1057
+ this.selectedItems.forEach((item) => {
1058
+ chips.push(this.renderChip({
1059
+ activeChipIndex,
1060
+ disabled: false,
1061
+ index: selectedIndex++,
1062
+ item,
1063
+ messages,
1064
+ readOnly,
1065
+ scale,
1066
+ isAncestors
1067
+ }));
1068
+ });
1069
+ }
1070
+ if (selectionDisplay === "fit" && disabledItems.length) {
1071
+ chips.push(this.renderChipCount(disabledItems.length, scale));
1072
+ }
1073
+ return chips.length ? chips : null;
993
1074
  }
994
1075
  renderAllSelectedIndicatorChip() {
995
1076
  const { allSelectedIndicatorChipRef, compactSelectionDisplay, scale, selectedVisibleChipsCount } = this;
996
1077
  const label = compactSelectionDisplay ? this.messages.all : this.messages.allSelected;
1078
+ const showAllSelectedChip = this.allSelected && (this.selectionDisplay === "single" || !selectedVisibleChipsCount || this.selectionDisplay === "fit" && this.hasDisabledSelected || this.selectionDisplay === "all" && this.hasDisabledSelected);
997
1079
  return html`<calcite-chip class=${safeClassMap({
998
1080
  [CSS$1.chip]: true,
999
- [CSS$1.chipInvisible]: !(this.allSelected && !selectedVisibleChipsCount),
1081
+ [CSS$1.chipInvisible]: !showAllSelectedChip,
1000
1082
  [CSS$1.allSelected]: true
1001
1083
  })} .label=${label} .scale=${scale} title=${label ?? nothing} value ${ref(allSelectedIndicatorChipRef)}>${label}</calcite-chip>`;
1002
1084
  }
1003
1085
  renderSelectedIndicatorChip() {
1004
- const { compactSelectionDisplay, selectionDisplay, getSelectedItems, scale, selectedHiddenChipsCount, selectedVisibleChipsCount, selectedIndicatorChipRef } = this;
1086
+ const { compactSelectionDisplay, selectionDisplay, scale, selectedHiddenChipsCount, selectedVisibleChipsCount, selectedIndicatorChipRef } = this;
1087
+ const allSelectedNoDisabled = this.allSelected && !this.hasDisabledItems;
1088
+ const allSelectedWithDisabledSelected = this.allSelected && this.hasDisabledSelected;
1005
1089
  let chipInvisible;
1006
1090
  let label;
1007
1091
  if (compactSelectionDisplay) {
1008
1092
  chipInvisible = true;
1009
1093
  } else {
1010
1094
  if (selectionDisplay === "single") {
1011
- const selectedItemsCount = getSelectedItems().length;
1095
+ const selectedItemsCount = this.allItems.filter((item) => item.selected && (this.selectionMode !== "ancestors" || !hasActiveChildren(item))).length;
1012
1096
  if (this.allSelected) {
1013
1097
  chipInvisible = true;
1014
1098
  } else if (selectedItemsCount > 0) {
@@ -1018,7 +1102,7 @@ class Combobox extends LitElement {
1018
1102
  }
1019
1103
  label = `${selectedItemsCount} ${this.messages.selected}`;
1020
1104
  } else if (selectionDisplay === "fit") {
1021
- chipInvisible = !!(this.allSelected && selectedVisibleChipsCount === 0 || selectedHiddenChipsCount === 0);
1105
+ chipInvisible = !!((allSelectedNoDisabled || allSelectedWithDisabledSelected) && selectedVisibleChipsCount === 0 || selectedHiddenChipsCount === 0);
1022
1106
  label = selectedVisibleChipsCount > 0 ? `+${selectedHiddenChipsCount}` : `${selectedHiddenChipsCount} ${this.messages.selected}`;
1023
1107
  }
1024
1108
  }
@@ -1028,12 +1112,14 @@ class Combobox extends LitElement {
1028
1112
  })} .label=${label} .scale=${scale} title=${label ?? nothing} value ${ref(selectedIndicatorChipRef)}>${label}</calcite-chip>`;
1029
1113
  }
1030
1114
  renderSelectedIndicatorChipCompact() {
1031
- const { compactSelectionDisplay, selectionDisplay, getSelectedItems, scale, selectedHiddenChipsCount } = this;
1115
+ const { compactSelectionDisplay, selectionDisplay, scale, selectedHiddenChipsCount } = this;
1116
+ const allSelectedNoDisabled = this.allSelected && !this.hasDisabledItems;
1117
+ const allSelectedWithDisabledSelected = this.allSelected && this.hasDisabledSelected;
1032
1118
  let chipInvisible;
1033
1119
  let label;
1034
1120
  if (compactSelectionDisplay) {
1035
- const selectedItemsCount = getSelectedItems().length;
1036
- if (this.allSelected) {
1121
+ const selectedItemsCount = this.allItems.filter((item) => item.selected && (this.selectionMode !== "ancestors" || !hasActiveChildren(item))).length;
1122
+ if (allSelectedNoDisabled || allSelectedWithDisabledSelected || selectionDisplay === "single" && this.allSelected) {
1037
1123
  chipInvisible = true;
1038
1124
  } else if (selectionDisplay === "fit") {
1039
1125
  chipInvisible = !(selectedHiddenChipsCount > 0);
@@ -1121,6 +1207,7 @@ class Combobox extends LitElement {
1121
1207
  const singleSelectionDisplay = selectionDisplay === "single";
1122
1208
  const fitSelectionDisplay = !singleSelectionMode && selectionDisplay === "fit";
1123
1209
  const isClearable = !this.clearDisabled && this.selectionMode !== "single-persist" && !!this.value?.length;
1210
+ const hasDisabledItems = this.hasDisabledItems;
1124
1211
  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 aria-live=polite class=${safeClassMap({
1125
1212
  [CSS$1.wrapper]: true,
1126
1213
  [CSS$1.wrapperSingle]: singleSelectionMode || !this.selectedItems.length,
@@ -1129,7 +1216,7 @@ class Combobox extends LitElement {
1129
1216
  [CSS$1.gridInput]: true,
1130
1217
  [CSS$1.selectionDisplayFit]: fitSelectionDisplay,
1131
1218
  [CSS$1.selectionDisplaySingle]: singleSelectionDisplay
1132
- })} ${ref(this.setChipContainerEl)}>${!singleSelectionMode && !singleSelectionDisplay && this.renderChips() || ""}${!singleSelectionMode && !singleSelectionDisplay && this.selectAllEnabled && this.renderAllSelectedIndicatorChip() || ""}${!singleSelectionMode && !allSelectionDisplay && [
1219
+ })} ${ref(this.setChipContainerEl)}>${!singleSelectionMode && !singleSelectionDisplay && this.renderChips() || ""}${!singleSelectionMode && !singleSelectionDisplay && this.selectAllEnabled && allSelectionDisplay && (!hasDisabledItems || this.hasDisabledSelected) && this.renderAllSelectedIndicatorChip() || ""}${!singleSelectionMode && !allSelectionDisplay && [
1133
1220
  this.renderSelectedIndicatorChip(),
1134
1221
  this.renderSelectedIndicatorChipCompact(),
1135
1222
  this.renderAllSelectedIndicatorChip()
@@ -3,7 +3,6 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
3
  import type { Alignment, Scale, Status } from "../interfaces.js";
4
4
  import type { NumberingSystem } from "../../utils/locale.js";
5
5
  import type { IconName } from "../calcite-icon/interfaces.js";
6
- import type { MutableValidityState } from "../../controllers/useForm.js";
7
6
  import type { InputPlacement } from "./interfaces.js";
8
7
 
9
8
  /**
@@ -224,7 +223,7 @@ export abstract class Input extends LitElement {
224
223
  *
225
224
  * @mdn [ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)
226
225
  */
227
- get validity(): MutableValidityState;
226
+ get validity(): ValidityState;
228
227
  /** The component's value. */
229
228
  accessor value: string;
230
229
  /** Selects the text of the component's `value`. */
@@ -93,19 +93,6 @@ class Input extends LitElement {
93
93
  this.scale = "m";
94
94
  this.status = "idle";
95
95
  this.type = "text";
96
- this.validity = {
97
- valid: false,
98
- badInput: false,
99
- customError: false,
100
- patternMismatch: false,
101
- rangeOverflow: false,
102
- rangeUnderflow: false,
103
- stepMismatch: false,
104
- tooLong: false,
105
- tooShort: false,
106
- typeMismatch: false,
107
- valueMissing: false
108
- };
109
96
  this.calciteInputChange = createEvent({ cancelable: false });
110
97
  this.calciteInputInput = createEvent();
111
98
  this.calciteInternalInputBlur = createEvent({ cancelable: false });
@@ -114,7 +101,7 @@ class Input extends LitElement {
114
101
  this.listen("keydown", this.keyDownHandler);
115
102
  }
116
103
  static {
117
- this.properties = { displayedValue: [16, {}, { state: true }], slottedActionElDisabledInternally: [16, {}, { state: true }], accept: 1, alignment: [3, {}, { reflect: true }], autocomplete: 1, clearable: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], editingEnabled: [7, {}, { reflect: true, type: Boolean }], files: [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 }], 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 }], multiple: [5, {}, { type: Boolean }], name: [3, {}, { reflect: true }], numberButtonType: [3, {}, { reflect: true }], numberingSystem: [3, {}, { reflect: true }], pattern: 1, 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, type: [3, {}, { reflect: true }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [0, {}, { attribute: false }], value: 1 };
104
+ this.properties = { displayedValue: [16, {}, { state: true }], slottedActionElDisabledInternally: [16, {}, { state: true }], accept: 1, alignment: [3, {}, { reflect: true }], autocomplete: 1, clearable: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], editingEnabled: [7, {}, { reflect: true, type: Boolean }], files: [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 }], 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 }], multiple: [5, {}, { type: Boolean }], name: [3, {}, { reflect: true }], numberButtonType: [3, {}, { reflect: true }], numberingSystem: [3, {}, { reflect: true }], pattern: 1, 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, type: [3, {}, { reflect: true }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [32, {}, { readOnly: true, attribute: false }], value: 1 };
118
105
  }
119
106
  static {
120
107
  this.formAssociated = true;
@@ -6,7 +6,6 @@ import type { HeadingLevel } from "../functional/Heading.js";
6
6
  import type { Status } from "../interfaces.js";
7
7
  import type { IconName } from "../calcite-icon/interfaces.js";
8
8
  import type { DatePicker } from "../calcite-date-picker/customElement.js";
9
- import type { MutableValidityState } from "../../controllers/useForm.js";
10
9
 
11
10
  /**
12
11
  * @cssproperty [--calcite-input-date-picker-actions-icon-color] - Specifies the component's actions icon color.
@@ -197,7 +196,7 @@ export abstract class InputDatePicker extends LitElement {
197
196
  *
198
197
  * @mdn [ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)
199
198
  */
200
- get validity(): MutableValidityState;
199
+ get validity(): ValidityState;
201
200
  /** Selected date as a string in ISO format (`"yyyy-mm-dd"`). */
202
201
  accessor value: string | string[];
203
202
  /** The component's `value` as a full date object. */
@@ -127,19 +127,6 @@ class InputDatePicker extends LitElement {
127
127
  this.scale = "m";
128
128
  this.status = "idle";
129
129
  this.topLayerDisabled = false;
130
- this.validity = {
131
- valid: false,
132
- badInput: false,
133
- customError: false,
134
- patternMismatch: false,
135
- rangeOverflow: false,
136
- rangeUnderflow: false,
137
- stepMismatch: false,
138
- tooLong: false,
139
- tooShort: false,
140
- typeMismatch: false,
141
- valueMissing: false
142
- };
143
130
  this.calciteInputDatePickerBeforeClose = createEvent({ cancelable: false });
144
131
  this.calciteInputDatePickerBeforeOpen = createEvent({ cancelable: false });
145
132
  this.calciteInputDatePickerChange = createEvent({ cancelable: false });
@@ -150,7 +137,7 @@ class InputDatePicker extends LitElement {
150
137
  this.handleDateTimeFormatChange();
151
138
  }
152
139
  static {
153
- this.properties = { datePickerActiveDate: [16, {}, { state: true }], focusedInput: [16, {}, { state: true }], localeData: [16, {}, { state: true }], calendars: [11, {}, { type: Number, reflect: true }], disabled: [7, {}, { reflect: true, type: Boolean }], flipPlacements: [0, {}, { attribute: false }], focusTrapDisabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], headingLevel: [11, {}, { type: Number, reflect: true }], label: 1, labelText: 1, layout: [3, {}, { reflect: true }], max: [3, {}, { reflect: true }], maxAsDate: [0, {}, { attribute: false }], messageOverrides: [0, {}, { attribute: false }], min: [3, {}, { reflect: true }], minAsDate: [0, {}, { attribute: false }], monthStyle: 1, name: [3, {}, { reflect: true }], numberingSystem: [3, {}, { reflect: true }], open: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: [3, {}, { reflect: true }], placement: [3, {}, { reflect: true }], proximitySelectionDisabled: [5, {}, { type: Boolean }], range: [7, {}, { reflect: true, type: Boolean }], readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [0, {}, { attribute: false }], value: 1, valueAsDate: [0, {}, { attribute: false }] };
140
+ this.properties = { datePickerActiveDate: [16, {}, { state: true }], focusedInput: [16, {}, { state: true }], localeData: [16, {}, { state: true }], calendars: [11, {}, { type: Number, reflect: true }], disabled: [7, {}, { reflect: true, type: Boolean }], flipPlacements: [0, {}, { attribute: false }], focusTrapDisabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], headingLevel: [11, {}, { type: Number, reflect: true }], label: 1, labelText: 1, layout: [3, {}, { reflect: true }], max: [3, {}, { reflect: true }], maxAsDate: [0, {}, { attribute: false }], messageOverrides: [0, {}, { attribute: false }], min: [3, {}, { reflect: true }], minAsDate: [0, {}, { attribute: false }], monthStyle: 1, name: [3, {}, { reflect: true }], numberingSystem: [3, {}, { reflect: true }], open: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: [3, {}, { reflect: true }], placement: [3, {}, { reflect: true }], proximitySelectionDisabled: [5, {}, { type: Boolean }], range: [7, {}, { reflect: true, type: Boolean }], readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [32, {}, { readOnly: true, attribute: false }], value: 1, valueAsDate: [0, {}, { attribute: false }] };
154
141
  }
155
142
  static {
156
143
  this.formAssociated = true;
@@ -4,7 +4,6 @@ import type { Alignment, Scale, Status } from "../interfaces.js";
4
4
  import type { NumberingSystem } from "../../utils/locale.js";
5
5
  import type { InputPlacement } from "../calcite-input/interfaces.js";
6
6
  import type { IconName } from "../calcite-icon/interfaces.js";
7
- import type { MutableValidityState } from "../../controllers/useForm.js";
8
7
 
9
8
  /**
10
9
  * @cssproperty [--calcite-input-actions-background-color] - Specifies the background color of the component's `clearable` and `number-button-type` elements.
@@ -200,7 +199,7 @@ export abstract class InputNumber extends LitElement {
200
199
  *
201
200
  * @mdn [ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)
202
201
  */
203
- get validity(): MutableValidityState;
202
+ get validity(): ValidityState;
204
203
  /** The component's value. */
205
204
  accessor value: string;
206
205
  /** Selects the text of the component's `value`. */
@@ -82,19 +82,6 @@ class InputNumber extends LitElement {
82
82
  this.required = false;
83
83
  this.scale = "m";
84
84
  this.status = "idle";
85
- this.validity = {
86
- valid: false,
87
- badInput: false,
88
- customError: false,
89
- patternMismatch: false,
90
- rangeOverflow: false,
91
- rangeUnderflow: false,
92
- stepMismatch: false,
93
- tooLong: false,
94
- tooShort: false,
95
- typeMismatch: false,
96
- valueMissing: false
97
- };
98
85
  this.calciteInputNumberChange = createEvent({ cancelable: false });
99
86
  this.calciteInputNumberInput = createEvent();
100
87
  this.calciteInternalInputNumberBlur = createEvent({ cancelable: false });
@@ -103,7 +90,7 @@ class InputNumber extends LitElement {
103
90
  this.listen("keydown", this.keyDownHandler);
104
91
  }
105
92
  static {
106
- this.properties = { displayedValue: [16, {}, { state: true }], slottedActionElDisabledInternally: [16, {}, { state: true }], alignment: [3, {}, { reflect: true }], autocomplete: 1, clearable: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], editingEnabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], groupSeparator: [7, {}, { reflect: true, type: Boolean }], icon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], integer: [5, {}, { type: Boolean }], label: 1, labelText: 1, loading: [7, {}, { reflect: true, type: Boolean }], localeFormat: [5, {}, { type: Boolean }], max: [11, {}, { reflect: true, type: Number }], maxLength: [11, {}, { reflect: true, type: Number }], messageOverrides: [0, {}, { attribute: false }], min: [11, {}, { reflect: true, type: Number }], minLength: [11, {}, { reflect: true, type: Number }], name: [3, {}, { reflect: true }], numberButtonType: [3, {}, { reflect: true }], numberingSystem: [3, {}, { reflect: true }], placeholder: 1, prefixText: 1, readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], step: [3, {}, { reflect: true }], suffixText: 1, validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [0, {}, { attribute: false }], value: 1 };
93
+ this.properties = { displayedValue: [16, {}, { state: true }], slottedActionElDisabledInternally: [16, {}, { state: true }], alignment: [3, {}, { reflect: true }], autocomplete: 1, clearable: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], editingEnabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], groupSeparator: [7, {}, { reflect: true, type: Boolean }], icon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], integer: [5, {}, { type: Boolean }], label: 1, labelText: 1, loading: [7, {}, { reflect: true, type: Boolean }], localeFormat: [5, {}, { type: Boolean }], max: [11, {}, { reflect: true, type: Number }], maxLength: [11, {}, { reflect: true, type: Number }], messageOverrides: [0, {}, { attribute: false }], min: [11, {}, { reflect: true, type: Number }], minLength: [11, {}, { reflect: true, type: Number }], name: [3, {}, { reflect: true }], numberButtonType: [3, {}, { reflect: true }], numberingSystem: [3, {}, { reflect: true }], placeholder: 1, prefixText: 1, readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], step: [3, {}, { reflect: true }], suffixText: 1, validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [32, {}, { readOnly: true, attribute: false }], value: 1 };
107
94
  }
108
95
  static {
109
96
  this.formAssociated = true;
@@ -1,6 +1,5 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
- import type { MutableValidityState } from "../../controllers/useForm.js";
4
3
  import type { Alignment, Scale, Status } from "../interfaces.js";
5
4
  import type { IconName } from "../calcite-icon/interfaces.js";
6
5
 
@@ -163,7 +162,7 @@ export abstract class InputText extends LitElement {
163
162
  *
164
163
  * @mdn [ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)
165
164
  */
166
- get validity(): MutableValidityState;
165
+ get validity(): ValidityState;
167
166
  /** The component's value. */
168
167
  accessor value: string;
169
168
  /** Selects the text of the component's `value`. */
@@ -64,19 +64,6 @@ class InputText extends LitElement {
64
64
  this.required = false;
65
65
  this.scale = "m";
66
66
  this.status = "idle";
67
- this.validity = {
68
- valid: false,
69
- badInput: false,
70
- customError: false,
71
- patternMismatch: false,
72
- rangeOverflow: false,
73
- rangeUnderflow: false,
74
- stepMismatch: false,
75
- tooLong: false,
76
- tooShort: false,
77
- typeMismatch: false,
78
- valueMissing: false
79
- };
80
67
  this.calciteInputTextChange = createEvent();
81
68
  this.calciteInputTextInput = createEvent();
82
69
  this.calciteInternalInputTextBlur = createEvent();
@@ -85,7 +72,7 @@ class InputText extends LitElement {
85
72
  this.listen("keydown", this.keyDownHandler);
86
73
  }
87
74
  static {
88
- this.properties = { 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 }], icon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], label: 1, labelText: 1, loading: [7, {}, { reflect: true, type: Boolean }], maxLength: [11, {}, { reflect: true, type: Number }], messageOverrides: [0, {}, { attribute: false }], minLength: [11, {}, { reflect: true, type: Number }], name: [3, {}, { reflect: true }], pattern: 1, placeholder: 1, prefixText: 1, readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], suffixText: 1, validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [0, {}, { attribute: false }], value: 1 };
75
+ this.properties = { 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 }], icon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], label: 1, labelText: 1, loading: [7, {}, { reflect: true, type: Boolean }], maxLength: [11, {}, { reflect: true, type: Number }], messageOverrides: [0, {}, { attribute: false }], minLength: [11, {}, { reflect: true, type: Number }], name: [3, {}, { reflect: true }], pattern: 1, placeholder: 1, prefixText: 1, readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], suffixText: 1, validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [32, {}, { readOnly: true, attribute: false }], value: 1 };
89
76
  }
90
77
  static {
91
78
  this.formAssociated = true;
@@ -6,7 +6,6 @@ import type { HourFormat } from "../../utils/time.js";
6
6
  import type { Scale, Status } from "../interfaces.js";
7
7
  import type { IconName } from "../calcite-icon/interfaces.js";
8
8
  import type { TimePicker } from "../calcite-time-picker/customElement.js";
9
- import type { MutableValidityState } from "../../controllers/useForm.js";
10
9
 
11
10
  /**
12
11
  * @cssproperty [--calcite-input-time-picker-background-color] - Specifies the component's background color.
@@ -162,7 +161,7 @@ export abstract class InputTimePicker extends LitElement {
162
161
  *
163
162
  * @mdn [ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)
164
163
  */
165
- get validity(): MutableValidityState;
164
+ get validity(): ValidityState;
166
165
  /** The time value in ISO (24-hour) format. */
167
166
  accessor value: string;
168
167
  /**