@esri/calcite-components 5.1.0-next.7 → 5.1.0-next.9

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 (185) hide show
  1. package/dist/cdn/{3L54WMSL.js → 24BVOJIY.js} +1 -1
  2. package/dist/cdn/{VLKT7UVD.js → 34EJXQYF.js} +1 -1
  3. package/dist/cdn/{BCLXCJEM.js → 3GXLGKZV.js} +1 -1
  4. package/dist/cdn/{BYWKKEUK.js → 3IHT5FIP.js} +1 -1
  5. package/dist/cdn/{GS2OPY5B.js → 3O7NXGXJ.js} +1 -1
  6. package/dist/cdn/{S6HRAHQS.js → 43FMFYKZ.js} +1 -1
  7. package/dist/cdn/{3YNOEWLR.js → 43SP7K3P.js} +1 -1
  8. package/dist/cdn/{UFKZPJGX.js → 45Z5R6GR.js} +1 -1
  9. package/dist/cdn/{2YZJ5SK5.js → 47RTCYTX.js} +1 -1
  10. package/dist/cdn/{7MBOUDMI.js → 4AQ3DQDN.js} +1 -1
  11. package/dist/cdn/{J7B4VKUB.js → 4DJKUEBQ.js} +1 -1
  12. package/dist/cdn/4IBKGKIH.js +2 -0
  13. package/dist/cdn/{I6I5D5MI.js → 4JVVYRDW.js} +1 -1
  14. package/dist/cdn/{7BJTVAGJ.js → 4U633XVG.js} +1 -1
  15. package/dist/cdn/55GOZN42.js +2 -0
  16. package/dist/cdn/{IX7RXOMC.js → 575ZYV35.js} +1 -1
  17. package/dist/cdn/{LTPGJM6S.js → 5LUEFKD3.js} +1 -1
  18. package/dist/cdn/{RPXB3OIR.js → 5RDU2ZNH.js} +1 -1
  19. package/dist/cdn/{NRBJ3VOF.js → 5TJGOI64.js} +1 -1
  20. package/dist/cdn/{GC4LUWE2.js → 67QHQNZF.js} +1 -1
  21. package/dist/cdn/{SYSRTPLT.js → 6C76CPWO.js} +1 -1
  22. package/dist/cdn/{R72JHGCT.js → 6LA4PLL2.js} +1 -1
  23. package/dist/cdn/{AOSKB4O3.js → 6OKASMD7.js} +1 -1
  24. package/dist/cdn/{Q6OXR72I.js → 7ECYZZBW.js} +1 -1
  25. package/dist/cdn/{YVLGTYKI.js → 7JGWCRII.js} +1 -1
  26. package/dist/cdn/{3WREYYM5.js → 7XBTO6NQ.js} +1 -1
  27. package/dist/cdn/A6XPQQWN.js +2 -0
  28. package/dist/cdn/{K3YSAFRD.js → ANQRSTGE.js} +1 -1
  29. package/dist/cdn/{GFUL7D7M.js → AS2M2ZWD.js} +1 -1
  30. package/dist/cdn/{PFVIFFID.js → BAMCFG7H.js} +1 -1
  31. package/dist/cdn/{ZPR4DBFS.js → BDQCESE7.js} +1 -1
  32. package/dist/cdn/{5BL7R465.js → BG7CCT2Q.js} +1 -1
  33. package/dist/cdn/{3ARW44US.js → BMRN6G4T.js} +1 -1
  34. package/dist/cdn/{B6LFHYRQ.js → BPIG37CO.js} +1 -1
  35. package/dist/cdn/{RL55PUKO.js → BZGE52YU.js} +1 -1
  36. package/dist/cdn/{A5BBQLSY.js → C25ETLQX.js} +1 -1
  37. package/dist/cdn/{PZMLAOBO.js → CKMZY3H7.js} +1 -1
  38. package/dist/cdn/{WOUDT7QM.js → CMVTCAFL.js} +1 -1
  39. package/dist/cdn/{ETLJSBPM.js → CNR7IJIS.js} +1 -1
  40. package/dist/cdn/{PYIFXBJK.js → CSOE3CJR.js} +1 -1
  41. package/dist/cdn/{QKCQY33W.js → DRQCOAQ4.js} +1 -1
  42. package/dist/cdn/{GHLGH22R.js → DTUD5FAT.js} +1 -1
  43. package/dist/cdn/{BFOWFEX3.js → DYBHFMG7.js} +1 -1
  44. package/dist/cdn/{W7C3ZKLA.js → E6EGKXUX.js} +1 -1
  45. package/dist/cdn/{M2EEQG72.js → EB4M47KA.js} +1 -1
  46. package/dist/cdn/{Z5RVFQRM.js → EIXE62NK.js} +1 -1
  47. package/dist/cdn/{CFN4BIZL.js → EQZPTVS3.js} +1 -1
  48. package/dist/cdn/{HIOWL6WU.js → ESATITDD.js} +1 -1
  49. package/dist/cdn/ETIO6SPJ.js +2 -0
  50. package/dist/cdn/EY7FPNVS.js +2 -0
  51. package/dist/cdn/{TCCEQ7MN.js → FIEDEHAP.js} +1 -1
  52. package/dist/cdn/{J435BGYU.js → FZ6ZUHKQ.js} +1 -1
  53. package/dist/cdn/{77ZP6SXN.js → GGGN54CY.js} +1 -1
  54. package/dist/cdn/{WGALRMGQ.js → GH34TDLL.js} +1 -1
  55. package/dist/cdn/{7GGO2CZM.js → HG2EYXWI.js} +1 -1
  56. package/dist/cdn/{DRDD2NOI.js → HQDFIE2B.js} +1 -1
  57. package/dist/cdn/{6HLSG3XA.js → HZGU4N3I.js} +1 -1
  58. package/dist/cdn/{XU6Y5UJM.js → I5G3H4D4.js} +1 -1
  59. package/dist/cdn/{3OKBFBPD.js → I7BWPAOF.js} +1 -1
  60. package/dist/cdn/{PP3ZYBZZ.js → IBQYZCFQ.js} +1 -1
  61. package/dist/cdn/{GNJJTXA5.js → IJ7V345Q.js} +1 -1
  62. package/dist/cdn/{MCTFB7GO.js → IQ4VNR4Q.js} +1 -1
  63. package/dist/cdn/{MOO6RSVL.js → IWG7JAQJ.js} +1 -1
  64. package/dist/cdn/{CWAS32KR.js → IZLDBAPA.js} +1 -1
  65. package/dist/cdn/{ODAPCLKU.js → J2OGE3DI.js} +1 -1
  66. package/dist/cdn/{RGTWEZAQ.js → JPWQ44GC.js} +1 -1
  67. package/dist/cdn/{EZCA7WQG.js → JRF656V5.js} +1 -1
  68. package/dist/cdn/{RPTMX4W3.js → JRWW665Q.js} +1 -1
  69. package/dist/cdn/{4FGXGSCS.js → JVAE3MLA.js} +1 -1
  70. package/dist/cdn/{6PUUPFDX.js → K2H2TINH.js} +1 -1
  71. package/dist/cdn/{4YVKX7KL.js → KDZRPYFR.js} +1 -1
  72. package/dist/cdn/{2QXTLDZ6.js → KHIMNKVO.js} +1 -1
  73. package/dist/cdn/{B74N65HB.js → KMOFSKZF.js} +1 -1
  74. package/dist/cdn/{LWILKWNQ.js → KQNOWW4C.js} +1 -1
  75. package/dist/cdn/{KME7ZZCF.js → KYKC2CK2.js} +1 -1
  76. package/dist/cdn/{UHGCQVOL.js → L24DVRWE.js} +1 -1
  77. package/dist/cdn/{JSRHPQ52.js → L5LBH4FP.js} +1 -1
  78. package/dist/cdn/LKRLVAVK.js +2 -0
  79. package/dist/cdn/{7FWJSF56.js → LQD663MA.js} +1 -1
  80. package/dist/cdn/{PBYPABMK.js → M6MHKAA5.js} +1 -1
  81. package/dist/cdn/MMEADS6E.js +2 -0
  82. package/dist/cdn/{OOTSFWEM.js → MVA4NE6I.js} +1 -1
  83. package/dist/cdn/{3JNFU6KC.js → NGXAYCAR.js} +1 -1
  84. package/dist/cdn/{LD7LTIBH.js → NJRKH5Q7.js} +1 -1
  85. package/dist/cdn/{YELDC3QJ.js → NVHH3XZJ.js} +1 -1
  86. package/dist/cdn/{FS6JTDJK.js → NVSO6GLT.js} +1 -1
  87. package/dist/cdn/{IIZ3STBY.js → NY7A5LKZ.js} +1 -1
  88. package/dist/cdn/{MIHUMK4H.js → O7BFREIB.js} +1 -1
  89. package/dist/cdn/{B6HWVI4Y.js → OLYLT2L5.js} +1 -1
  90. package/dist/cdn/{BF5X3NKJ.js → OPHJLVOH.js} +1 -1
  91. package/dist/cdn/{YHMDHOC5.js → OQ2UCUQP.js} +1 -1
  92. package/dist/cdn/{HMXVJFQG.js → OXCJDMGQ.js} +1 -1
  93. package/dist/cdn/{PPZ47NEL.js → P4JFMLKY.js} +1 -1
  94. package/dist/cdn/{IJLVEBB7.js → PCTQTX5N.js} +1 -1
  95. package/dist/cdn/{55SG4TFB.js → PFKFYB45.js} +1 -1
  96. package/dist/cdn/{FZX5RPOG.js → PHGT3YNE.js} +1 -1
  97. package/dist/cdn/{TG2Q5JYE.js → PIU3YYLU.js} +1 -1
  98. package/dist/cdn/{JJVYITPX.js → QCDS2TXE.js} +1 -1
  99. package/dist/cdn/{QDHV7HSF.js → QR4JRFEP.js} +1 -1
  100. package/dist/cdn/QULVDSNJ.js +2 -0
  101. package/dist/cdn/{II65AX2Y.js → QWALXRY6.js} +1 -1
  102. package/dist/cdn/{T7KRQA2S.js → RCUNETDY.js} +1 -1
  103. package/dist/cdn/{PUI672KC.js → RPT5BJMD.js} +1 -1
  104. package/dist/cdn/{72UQHKZB.js → S7XHDLIF.js} +1 -1
  105. package/dist/cdn/{VLRV4R6U.js → SAQAAU52.js} +1 -1
  106. package/dist/cdn/{NEP2GKTJ.js → SG24GAXY.js} +1 -1
  107. package/dist/cdn/{5Q5XOD7Y.js → SHD6TE4R.js} +1 -1
  108. package/dist/cdn/{6EIEBFGZ.js → SIMNCT4V.js} +1 -1
  109. package/dist/cdn/{XGQPFD4F.js → SJSCENKK.js} +1 -1
  110. package/dist/cdn/{YCCYLLDK.js → SLVFP6JA.js} +1 -1
  111. package/dist/cdn/{WPVR4P6L.js → TKH5LW5O.js} +1 -1
  112. package/dist/cdn/{EUTZTNZS.js → TMOOTRK4.js} +1 -1
  113. package/dist/cdn/{4RM7IDEC.js → TTFCVVON.js} +1 -1
  114. package/dist/cdn/{CEKWE7MI.js → TXRFE5GH.js} +1 -1
  115. package/dist/cdn/{6PPA5ENT.js → TXYWJHYI.js} +1 -1
  116. package/dist/cdn/{JSPE4OG7.js → U4MTAQRM.js} +1 -1
  117. package/dist/cdn/UHQ454NG.js +2 -0
  118. package/dist/cdn/{NIOMLRZP.js → UKC7JB7P.js} +1 -1
  119. package/dist/cdn/{CJGFEG4P.js → UTQKB5CS.js} +1 -1
  120. package/dist/cdn/{MXIVUGX2.js → V2EVNXUV.js} +1 -1
  121. package/dist/cdn/{FZUCWEY4.js → VOTW2RMD.js} +1 -1
  122. package/dist/cdn/{KF4IOR4S.js → VQHTMUYJ.js} +1 -1
  123. package/dist/cdn/{LZ5FKMVP.js → WBJUAZ65.js} +1 -1
  124. package/dist/cdn/{QTH6ZO2M.js → WEAILY72.js} +1 -1
  125. package/dist/cdn/WITGQRKF.js +2 -0
  126. package/dist/cdn/WM4NZNNA.js +2 -0
  127. package/dist/cdn/{RABVM5D7.js → XJZLGVT6.js} +1 -1
  128. package/dist/cdn/{N3AYJLQ3.js → XUSE3II4.js} +1 -1
  129. package/dist/cdn/{PIAOVZIP.js → XW3UC4FN.js} +1 -1
  130. package/dist/cdn/{K3MWE3BD.js → YANXY6FO.js} +1 -1
  131. package/dist/cdn/{6ASYMYYE.js → YJHXVSEP.js} +1 -1
  132. package/dist/cdn/{S6Q2RWZQ.js → YM6QAFEQ.js} +1 -1
  133. package/dist/cdn/{BDV62ZVL.js → YMHR4PKM.js} +1 -1
  134. package/dist/cdn/{CWCZZTTC.js → YMSZKTCN.js} +1 -1
  135. package/dist/cdn/{MRGLBHY6.js → YYDYHAP7.js} +1 -1
  136. package/dist/cdn/{O6DG6EWV.js → ZEASFJJQ.js} +1 -1
  137. package/dist/cdn/{IOTVOWSQ.js → ZGCRVGEK.js} +1 -1
  138. package/dist/cdn/{V7UCCXSG.js → ZGJRTQBX.js} +1 -1
  139. package/dist/cdn/{V3YAFJPI.js → ZPZI63EH.js} +1 -1
  140. package/dist/cdn/{7JU6PR2F.js → ZTV4V5SF.js} +1 -1
  141. package/dist/cdn/index.js +1 -1
  142. package/dist/chunks/dom.js +5 -5
  143. package/dist/chunks/floating-ui.js +1 -4
  144. package/dist/chunks/input.js +2 -2
  145. package/dist/chunks/runtime.js +4 -4
  146. package/dist/chunks/useForm.js +165 -0
  147. package/dist/chunks/useReferenceElement.js +505 -0
  148. package/dist/components/calcite-block/customElement.js +1 -1
  149. package/dist/components/calcite-checkbox/customElement.d.ts +1 -1
  150. package/dist/components/calcite-checkbox/customElement.js +6 -7
  151. package/dist/components/calcite-combobox/customElement.d.ts +1 -1
  152. package/dist/components/calcite-combobox/customElement.js +11 -12
  153. package/dist/components/calcite-input/customElement.js +1 -1
  154. package/dist/components/calcite-input-date-picker/customElement.js +1 -1
  155. package/dist/components/calcite-input-number/customElement.js +1 -1
  156. package/dist/components/calcite-input-text/customElement.js +2 -161
  157. package/dist/components/calcite-input-time-picker/customElement.js +1 -1
  158. package/dist/components/calcite-list/customElement.js +25 -3
  159. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  160. package/dist/components/calcite-meter/customElement.d.ts +7 -1
  161. package/dist/components/calcite-meter/customElement.js +0 -4
  162. package/dist/components/calcite-popover/customElement.js +11 -176
  163. package/dist/components/calcite-sheet/customElement.js +1 -1
  164. package/dist/components/calcite-tab-nav/customElement.js +1 -1
  165. package/dist/components/calcite-tabs/customElement.js +1 -1
  166. package/dist/components/calcite-text-area/customElement.js +1 -1
  167. package/dist/components/calcite-tooltip/customElement.js +11 -310
  168. package/dist/components/calcite-tree-item/customElement.js +1 -1
  169. package/dist/docs/api.json +1 -1
  170. package/dist/docs/docs.json +1 -1
  171. package/dist/docs/vscode.html-custom-data.json +1 -1
  172. package/dist/docs/web-types.json +1 -1
  173. package/dist/loader.js +2 -2
  174. package/package.json +2 -2
  175. package/dist/cdn/6AYITVWB.js +0 -2
  176. package/dist/cdn/CFGMG4DH.js +0 -2
  177. package/dist/cdn/DAUSY6FZ.js +0 -2
  178. package/dist/cdn/ECD3C5ZE.js +0 -2
  179. package/dist/cdn/GRA7E3RF.js +0 -2
  180. package/dist/cdn/K6ZO6PJL.js +0 -2
  181. package/dist/cdn/SHGMG2W2.js +0 -2
  182. package/dist/cdn/V5MTQXYJ.js +0 -2
  183. package/dist/cdn/WKUBLKRJ.js +0 -2
  184. package/dist/cdn/ZGL65NS5.js +0 -2
  185. package/dist/chunks/FloatingArrow.js +0 -24
@@ -55,7 +55,7 @@ const ICONS = {
55
55
  valid: "check-circle",
56
56
  invalid: "exclamation-mark-triangle"
57
57
  };
58
- const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}: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([scale=s]) .header{gap:var(--calcite-spacing-sm)}:host([scale=s]) .icon-end-container{gap:var(--calcite-spacing-sm);padding-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .heading{font-size:var(--calcite-font-size-sm)}:host([scale=s]) .description{font-size:var(--calcite-font-size-xs)}:host([scale=s]){--calcite-internal-block-actions-spacing: var(--calcite-spacing-xxs);--calcite-internal-block-header-content-padding: var(--calcite-spacing-sm);--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-xxs)) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-sm)) )}:host([scale=m]) .header{gap:var(--calcite-spacing-md)}:host([scale=m]) .icon-end-container{gap:var(--calcite-spacing-md);padding-inline-end:var(--calcite-spacing-md)}:host([scale=m]) .heading{font-size:var(--calcite-font-size)}:host([scale=m]) .description{font-size:var(--calcite-font-size-sm)}:host([scale=m]){--calcite-internal-block-actions-spacing: var(--calcite-spacing-xxs);--calcite-internal-block-header-content-padding: var(--calcite-spacing-md);--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-sm)) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-md)) )}:host([scale=l]) .header{gap:var(--calcite-spacing-lg)}:host([scale=l]) .icon-end-container{gap:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}:host([scale=l]) .heading{font-size:var(--calcite-font-size-md)}:host([scale=l]) .description{font-size:var(--calcite-font-size)}:host([scale=l]){--calcite-internal-block-actions-spacing: var(--calcite-spacing-xs);--calcite-internal-block-header-content-padding: var(--calcite-spacing-lg);--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-md)) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-lg)) )}:host{display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;border-width:0px;border-block-end-width:1px;border-style:solid;padding:0;transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.215,.44,.42,.88);flex-basis:auto;border-color:var(--calcite-block-border-color, var(--calcite-color-border-3))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{justify-content:flex-start}.header--has-content{padding:var(--calcite-internal-block-header-content-padding)}.header--draggable{padding-inline-start:var(--calcite-spacing-xxs)}.header,.toggle{grid-area:header}.header-container{display:grid;align-items:stretch;grid-template:auto/auto 1fr auto auto auto auto;grid-template-areas:"handle header icon-end menu actions-end"}.icon--start,.icon--end{color:var(--calcite-block-icon-color, var(--calcite-color-text-3))}.actions-end{align-items:center;display:flex;gap:var(--calcite-internal-block-actions-spacing);grid-area:actions-end;padding-block:var(--calcite-internal-block-actions-spacing);padding-inline-end:var(--calcite-internal-block-actions-spacing)}.toggle{margin:0;display:flex;cursor:pointer;flex-wrap:nowrap;align-items:center;justify-content:space-between;border-style:none;padding:0;outline-color:transparent;font-family:inherit;text-align:initial;background-color:var(--calcite-block-header-background-color, transparent)}.toggle:hover{background-color:var(--calcite-block-header-background-color-hover, var(--calcite-color-foreground-2))}.toggle: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))))}.toggle:active{background-color:var(--calcite-block-header-background-color-press, var(--calcite-color-foreground-3))}calcite-loader[inline]{align-self:center}calcite-sort-handle{align-self:center;grid-area:handle;margin-block:var(--calcite-internal-block-actions-spacing);padding-inline-start:var(--calcite-spacing-xxs)}.title{display:flex;flex-direction:column}.header .title .heading{padding:0;word-wrap:break-word;word-break:break-word;color:var(--calcite-block-heading-text-color, var(--calcite-color-text-1));font-weight:var(--calcite-font-weight-normal);line-height:var(--calcite-font-line-height-relative-snug)}.description{padding:0;word-wrap:break-word;word-break:break-word;color:var(--calcite-block-description-text-color, var(--calcite-color-text-3));font-weight:var(--calcite-font-weight-regular);line-height:var(--calcite-font-line-height-relative-snug)}.icon{display:flex}.status-icon.valid{color:var(--calcite-color-status-success)}.status-icon.invalid{color:var(--calcite-color-status-danger)}@keyframes spin{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}.icon-end-container{display:flex;align-items:center;grid-area:icon-end}.toggle-icon{align-self:center;justify-self:end;transition-property:color;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);color:var(--calcite-block-icon-color, var(--calcite-color-text-3))}.toggle:hover .toggle-icon{color:var(--calcite-block-icon-color-hover, var(--calcite-color-text-1))}.container{position:relative;display:flex;block-size:100%;flex-direction:column}.content{position:relative;min-block-size:0px;flex:1 1 0%}@keyframes in{0%{opacity:0}to{opacity:1}}.content{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;padding-block:var(--calcite-internal-block-padding-block);padding-inline:var(--calcite-internal-block-padding-inline)}.content-end,.content-start{display:flex;align-items:center;color:var(--calcite-block-text-color, var(--calcite-color-text-3))}calcite-action-menu{align-self:center;grid-area:menu;margin-inline-end:var(--calcite-internal-block-actions-spacing)}:host([expanded]){margin-block:.5rem}:host([expanded]) .header .title .heading{color:var(--calcite-block-heading-text-color, var(--calcite-block-heading-text-color-press, var(--calcite-color-text-1)));font-weight:var(--calcite-font-weight-medium)}:host([expanded]) .description{color:var(--calcite-block-description-text-color, var(--calcite-color-text-2))}:host([expanded]) .icon--start,:host([expanded]) .icon--end{color:var(--calcite-block-icon-color, var(--calcite-color-text-1))}:host([expanded][scale=s]){margin-block:var(--calcite-spacing-xxs)}:host([expanded][scale=l]){margin-block:var(--calcite-spacing-md)}:host([hidden]){display:none}[hidden]{display:none}`;
58
+ const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}: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([scale=s]) .header{gap:var(--calcite-spacing-sm)}:host([scale=s]) .icon-end-container{gap:var(--calcite-spacing-sm);padding-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .heading{font-size:var(--calcite-font-size-sm)}:host([scale=s]) .description{font-size:var(--calcite-font-size-xs)}:host([scale=s]){--calcite-internal-block-actions-spacing: var(--calcite-spacing-xxs);--calcite-internal-block-header-content-padding: var(--calcite-spacing-sm);--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-xxs)) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-sm)) )}:host([scale=m]) .header{gap:var(--calcite-spacing-md)}:host([scale=m]) .icon-end-container{gap:var(--calcite-spacing-md);padding-inline-end:var(--calcite-spacing-md)}:host([scale=m]) .heading{font-size:var(--calcite-font-size)}:host([scale=m]) .description{font-size:var(--calcite-font-size-sm)}:host([scale=m]){--calcite-internal-block-actions-spacing: var(--calcite-spacing-xxs);--calcite-internal-block-header-content-padding: var(--calcite-spacing-md);--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-sm)) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-md)) )}:host([scale=l]) .header{gap:var(--calcite-spacing-lg)}:host([scale=l]) .icon-end-container{gap:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}:host([scale=l]) .heading{font-size:var(--calcite-font-size-md)}:host([scale=l]) .description{font-size:var(--calcite-font-size)}:host([scale=l]){--calcite-internal-block-actions-spacing: var(--calcite-spacing-xs);--calcite-internal-block-header-content-padding: var(--calcite-spacing-lg);--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-md)) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-lg)) )}:host{display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;border-width:0px;border-block-end-width:1px;border-style:solid;padding:0;transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.215,.44,.42,.88);flex-basis:auto;border-color:var(--calcite-block-border-color, var(--calcite-color-border-3))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{justify-content:flex-start}.header--has-content{padding:var(--calcite-internal-block-header-content-padding)}.header--draggable{padding-inline-start:var(--calcite-spacing-xxs)}.header,.toggle{grid-area:header}.header-container{display:grid;align-items:stretch;grid-template:auto/auto 1fr auto auto auto auto;grid-template-areas:"handle header icon-end menu actions-end"}.icon--start,.icon--end{color:var(--calcite-block-icon-color, var(--calcite-color-text-3))}.actions-end{align-items:center;display:flex;gap:var(--calcite-internal-block-actions-spacing);grid-area:actions-end;padding-block:var(--calcite-internal-block-actions-spacing);padding-inline-end:var(--calcite-internal-block-actions-spacing)}.toggle{margin:0;display:flex;cursor:pointer;flex-wrap:nowrap;align-items:center;justify-content:space-between;border-style:none;padding:0;outline-color:transparent;font-family:inherit;text-align:initial;background-color:var(--calcite-block-header-background-color, transparent)}.toggle:hover{background-color:var(--calcite-block-header-background-color-hover, var(--calcite-color-foreground-2))}.toggle: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))))}.toggle:active{background-color:var(--calcite-block-header-background-color-press, var(--calcite-color-foreground-3))}calcite-loader[inline]{align-self:center}calcite-sort-handle{align-self:center;grid-area:handle;margin-block:var(--calcite-internal-block-actions-spacing);padding-inline-start:var(--calcite-spacing-xxs)}.title{display:flex;flex-direction:column}.header .title .heading{padding:0;word-wrap:break-word;word-break:break-word;color:var(--calcite-block-heading-text-color, var(--calcite-color-text-1));font-weight:var(--calcite-font-weight-normal);line-height:var(--calcite-font-line-height-relative-snug)}.description{padding:0;word-wrap:break-word;word-break:break-word;color:var(--calcite-block-description-text-color, var(--calcite-color-text-3));font-weight:var(--calcite-font-weight-regular);line-height:var(--calcite-font-line-height-relative-snug)}.icon{display:flex}.status-icon.valid{color:var(--calcite-color-status-success)}.status-icon.invalid{color:var(--calcite-color-status-danger)}@keyframes spin{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}.icon-end-container{display:flex;align-items:center;grid-area:icon-end}.toggle-icon{align-self:center;justify-self:end;transition-property:color;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);color:var(--calcite-block-icon-color, var(--calcite-color-text-3))}.toggle:hover .toggle-icon{color:var(--calcite-block-icon-color-hover, var(--calcite-color-text-1))}.container{position:relative;display:flex;block-size:100%;flex-direction:column}.content{position:relative;min-block-size:0px;flex:1 1 0%;opacity:0;padding-block:var(--calcite-internal-block-padding-block);padding-inline:var(--calcite-internal-block-padding-inline);transition:opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88)}.content-end,.content-start{display:flex;align-items:center;color:var(--calcite-block-text-color, var(--calcite-color-text-3))}calcite-action-menu{align-self:center;grid-area:menu;margin-inline-end:var(--calcite-internal-block-actions-spacing)}:host([expanded]){margin-block:.5rem}:host([expanded]) .header .title .heading{color:var(--calcite-block-heading-text-color, var(--calcite-block-heading-text-color-press, var(--calcite-color-text-1)));font-weight:var(--calcite-font-weight-medium)}:host([expanded]) .description{color:var(--calcite-block-description-text-color, var(--calcite-color-text-2))}:host([expanded]) .icon--start,:host([expanded]) .icon--end{color:var(--calcite-block-icon-color, var(--calcite-color-text-1))}:host([expanded]) .content{opacity:1}:host([expanded][scale=s]){margin-block:var(--calcite-spacing-xxs)}:host([expanded][scale=l]){margin-block:var(--calcite-spacing-md)}:host([hidden]){display:none}[hidden]{display:none}`;
59
59
  class Block extends LitElement {
60
60
  constructor() {
61
61
  super(...arguments);
@@ -1,7 +1,7 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
- import type { MutableValidityState } from "../../utils/form.js";
4
3
  import type { Scale, Status } from "../interfaces.js";
4
+ import type { MutableValidityState } from "../../controllers/useForm.js";
5
5
 
6
6
  /**
7
7
  * @cssproperty [--calcite-checkbox-size] - Specifies the component's height and width.
@@ -4,13 +4,13 @@ import { css, svg, html } from "lit";
4
4
  import { createRef, ref } from "lit/directives/ref.js";
5
5
  import { LitElement, createEvent, safeClassMap, nothing } from "@arcgis/lumina";
6
6
  import { useDirection } from "@arcgis/lumina/controllers";
7
- import { c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
8
7
  import { i as isActivationKey } from "../../chunks/key.js";
9
8
  import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
10
9
  import { I as InternalLabel } from "../../chunks/InternalLabel.js";
11
10
  import { u as useT9n } from "../../chunks/useT9n.js";
12
11
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
13
12
  import { u as useInteractive } from "../../chunks/useInteractive.js";
13
+ import { u as useForm } from "../../chunks/useForm.js";
14
14
  const CSS = {
15
15
  toggle: "toggle",
16
16
  check: "check-svg"
@@ -21,6 +21,7 @@ class Checkbox extends LitElement {
21
21
  super();
22
22
  this.checkedPath = "M5.5 12L2 8.689l.637-.636L5.5 10.727l8.022-7.87.637.637z";
23
23
  this.direction = useDirection();
24
+ this.formSupport = useForm({ inputType: "checkbox" })(this);
24
25
  this.indeterminatePath = "M13 8v1H3V8z";
25
26
  this.onLabelClick = () => {
26
27
  this.toggle();
@@ -58,6 +59,9 @@ class Checkbox extends LitElement {
58
59
  static {
59
60
  this.properties = { checked: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], hovered: [7, {}, { reflect: true, type: Boolean }], indeterminate: [7, {}, { reflect: true, type: Boolean }], label: 1, labelText: 1, messageOverrides: [0, {}, { attribute: false }], name: [3, {}, { reflect: true }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], validity: [0, {}, { attribute: false }], value: 1 };
60
61
  }
62
+ static {
63
+ this.formAssociated = true;
64
+ }
61
65
  static {
62
66
  this.styles = styles;
63
67
  }
@@ -67,15 +71,10 @@ class Checkbox extends LitElement {
67
71
  connectedCallback() {
68
72
  super.connectedCallback();
69
73
  connectLabel(this);
70
- connectForm(this);
71
74
  }
72
75
  disconnectedCallback() {
73
76
  super.disconnectedCallback();
74
77
  disconnectLabel(this);
75
- disconnectForm(this);
76
- }
77
- syncHiddenFormInput(input) {
78
- input.type = "checkbox";
79
78
  }
80
79
  getPath() {
81
80
  return this.indeterminate ? this.indeterminatePath : this.checked ? this.checkedPath : "";
@@ -108,7 +107,7 @@ class Checkbox extends LitElement {
108
107
  return this.interactiveContainer({ disabled: this.disabled, children: html`<div .ariaChecked=${this.checked} .ariaLabel=${getLabelText(this)} .ariaRequired=${this.required} class=${safeClassMap({
109
108
  [CSS.toggle]: true,
110
109
  [CSS_UTILITY.rtl]: rtl
111
- })} @blur=${this.onToggleBlur} @focus=${this.onToggleFocus} role=checkbox tabindex=${(this.disabled ? void 0 : 0) ?? nothing} ${ref(this.toggleRef)}><svg aria-hidden=true class=${safeClassMap(CSS.check)} viewBox="0 0 16 16">${svg`<path d=${this.getPath() ?? nothing} />`}</svg><slot></slot></div>${this.labelText && InternalLabel({ bottomSpacingDisabled: true, labelText: this.labelText, required: this.required, spacingInlineStart: true, tooltipText: this.messages.required }) || ""}${HiddenFormInputSlot({ component: this })}` });
110
+ })} @blur=${this.onToggleBlur} @focus=${this.onToggleFocus} role=checkbox tabindex=${(this.disabled ? void 0 : 0) ?? nothing} ${ref(this.toggleRef)}><svg aria-hidden=true class=${safeClassMap(CSS.check)} viewBox="0 0 16 16">${svg`<path d=${this.getPath() ?? nothing} />`}</svg><slot></slot></div>${this.labelText && InternalLabel({ bottomSpacingDisabled: true, labelText: this.labelText, required: this.required, spacingInlineStart: true, tooltipText: this.messages.required }) || ""}` });
112
111
  }
113
112
  }
114
113
  customElement("calcite-checkbox", Checkbox);
@@ -1,10 +1,10 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
3
  import type { FlipPlacement, LogicalPlacement, OverlayPositioning } from "../../utils/floating-ui.js";
4
- import type { MutableValidityState } from "../../utils/form.js";
5
4
  import type { Scale, SelectionAppearance, SelectionMode, Status } from "../interfaces.js";
6
5
  import type { IconName } from "../calcite-icon/interfaces.js";
7
6
  import type { ComboboxItem as HTMLCalciteComboboxItemElement } from "../calcite-combobox-item/customElement.js";
7
+ import type { MutableValidityState } from "../../controllers/useForm.js";
8
8
  import type { SelectionDisplay } from "./interfaces.js";
9
9
 
10
10
  /**
@@ -12,7 +12,6 @@ import { useDirection } from "@arcgis/lumina/controllers";
12
12
  import { f as filter } from "../../chunks/filter.js";
13
13
  import { k as getElementWidth, l as getTextWidth, i as focusElement } from "../../chunks/dom.js";
14
14
  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";
15
- import { c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm, s as submitForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
16
15
  import { g as guid } from "../../chunks/guid.js";
17
16
  import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
18
17
  import { c as createObserver, u as updateRefObserver } from "../../chunks/observers.js";
@@ -26,6 +25,7 @@ import { u as useSetFocus } from "../../chunks/useSetFocus.js";
26
25
  import { u as useCancelable } from "../../chunks/useCancelable.js";
27
26
  import { u as useInteractive } from "../../chunks/useInteractive.js";
28
27
  import { u as useTopLayer } from "../../chunks/useTopLayer.js";
28
+ import { u as useForm } from "../../chunks/useForm.js";
29
29
  import { I as IDS, C as CSS$1, a as ComboboxItemSelector, b as ComboboxItemGroupSelector, c as ICONS } from "../../chunks/resources5.js";
30
30
  import { h as hasActiveChildren, i as isSingleLike, g as getLabel, a as getItemAncestors, b as getItemChildren } from "../../chunks/utils2.js";
31
31
  const CSS = {
@@ -43,6 +43,9 @@ class Combobox extends LitElement {
43
43
  super();
44
44
  this.closeButtonRef = createRef();
45
45
  this.direction = useDirection();
46
+ this.formSupport = useForm({
47
+ inputType: "text"
48
+ })(this);
46
49
  this.selectAllComboboxItemRef = createRef();
47
50
  this.allSelectedIndicatorChipRef = createRef();
48
51
  this.cancelable = useCancelable()(this);
@@ -172,6 +175,9 @@ class Combobox extends LitElement {
172
175
  static {
173
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 };
174
177
  }
178
+ static {
179
+ this.formAssociated = true;
180
+ }
175
181
  static {
176
182
  this.styles = styles;
177
183
  }
@@ -257,10 +263,6 @@ class Combobox extends LitElement {
257
263
  connectedCallback() {
258
264
  super.connectedCallback();
259
265
  connectLabel(this);
260
- connectForm(this);
261
- this.internalValueChangeFlag = true;
262
- this.value = this.getValue();
263
- this.internalValueChangeFlag = false;
264
266
  this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
265
267
  this.setFilteredPlacements();
266
268
  connectFloatingUI(this);
@@ -290,7 +292,6 @@ class Combobox extends LitElement {
290
292
  }
291
293
  }
292
294
  loaded() {
293
- afterConnectDefaultValueSet(this, this.getValue());
294
295
  connectFloatingUI(this);
295
296
  this.updateItems();
296
297
  this.filterItems(this.filterText, false, false);
@@ -300,7 +301,6 @@ class Combobox extends LitElement {
300
301
  this.mutationObserver?.disconnect();
301
302
  this.resizeObserver?.disconnect();
302
303
  disconnectLabel(this);
303
- disconnectForm(this);
304
304
  disconnectFloatingUI(this);
305
305
  }
306
306
  emitComboboxChange() {
@@ -532,10 +532,9 @@ class Combobox extends LitElement {
532
532
  } else if (this.allowCustomValues && this.filterText) {
533
533
  this.addCustomChip(this.filterText, true);
534
534
  event.preventDefault();
535
- } else if (!event.defaultPrevented) {
536
- if (submitForm(this)) {
537
- event.preventDefault();
538
- }
535
+ } else if (!event.defaultPrevented && this.formSupport.active) {
536
+ event.preventDefault();
537
+ this.formSupport.requestSubmit();
539
538
  }
540
539
  break;
541
540
  case "Delete":
@@ -1134,7 +1133,7 @@ class Combobox extends LitElement {
1134
1133
  this.renderSelectedIndicatorChip(),
1135
1134
  this.renderSelectedIndicatorChipCompact(),
1136
1135
  this.renderAllSelectedIndicatorChip()
1137
- ] || ""}<label class=${safeClassMap(CSS$1.screenReadersOnly)} .htmlFor=${`${IDS.input(guid2)}`} .id=${`${IDS.label(guid2)}`}>${label}</label>${this.renderInput()}</div>`)}${!readOnly && isClearable ? keyed("close-button", XButton({ disabled: this.disabled, label: this.messages.clear, ref: this.closeButtonRef, scale: this.scale })) : null}${!readOnly && this.renderChevronIcon() || ""}</div><ul aria-labelledby=${`${IDS.label(guid2)}`} aria-multiselectable=true class=${safeClassMap(CSS$1.screenReadersOnly)} .id=${`${IDS.listbox(guid2)}`} role=listbox tabindex=-1>${this.renderListBoxOptions()}</ul>${this.renderFloatingUIContainer()}${HiddenFormInputSlot({ component: this })}${this.validationMessage && this.status === "invalid" ? Validation({ icon: this.validationIcon, id: IDS.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
1136
+ ] || ""}<label class=${safeClassMap(CSS$1.screenReadersOnly)} .htmlFor=${`${IDS.input(guid2)}`} .id=${`${IDS.label(guid2)}`}>${label}</label>${this.renderInput()}</div>`)}${!readOnly && isClearable ? keyed("close-button", XButton({ disabled: this.disabled, label: this.messages.clear, ref: this.closeButtonRef, scale: this.scale })) : null}${!readOnly && this.renderChevronIcon() || ""}</div><ul aria-labelledby=${`${IDS.label(guid2)}`} aria-multiselectable=true class=${safeClassMap(CSS$1.screenReadersOnly)} .id=${`${IDS.listbox(guid2)}`} role=listbox tabindex=-1>${this.renderListBoxOptions()}</ul>${this.renderFloatingUIContainer()}${this.validationMessage && this.status === "invalid" ? Validation({ icon: this.validationIcon, id: IDS.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
1138
1137
  }
1139
1138
  }
1140
1139
  customElement("calcite-combobox", Combobox);
@@ -17,7 +17,7 @@ import { V as Validation } from "../../chunks/Validation.js";
17
17
  import { u as useT9n } from "../../chunks/useT9n.js";
18
18
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
19
19
  import { u as useInteractive } from "../../chunks/useInteractive.js";
20
- import { s as syncHiddenFormInput } from "../../chunks/input.js";
20
+ import { a as syncHiddenFormInput } from "../../chunks/input.js";
21
21
  const CSS = {
22
22
  loader: "loader",
23
23
  clearButton: "clear-button",
@@ -17,7 +17,7 @@ import { g as getValueAsDateRange, a as applyLocaleOverride, b as getLocaleData
17
17
  import { g as guid } from "../../chunks/guid.js";
18
18
  import { I as InternalLabel } from "../../chunks/InternalLabel.js";
19
19
  import { V as Validation } from "../../chunks/Validation.js";
20
- import { s as syncHiddenFormInput } from "../../chunks/input.js";
20
+ import { a as syncHiddenFormInput } from "../../chunks/input.js";
21
21
  import { u as useT9n } from "../../chunks/useT9n.js";
22
22
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
23
23
  import { u as useInteractive } from "../../chunks/useInteractive.js";
@@ -14,7 +14,7 @@ import { i as isValidNumber, n as numberStringFormatter, B as BigDecimal, p as p
14
14
  import { g as getIconScale } from "../../chunks/component.js";
15
15
  import { I as InternalLabel } from "../../chunks/InternalLabel.js";
16
16
  import { V as Validation } from "../../chunks/Validation.js";
17
- import { s as syncHiddenFormInput } from "../../chunks/input.js";
17
+ import { a as syncHiddenFormInput } from "../../chunks/input.js";
18
18
  import { u as useT9n } from "../../chunks/useT9n.js";
19
19
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
20
20
  import { u as useInteractive } from "../../chunks/useInteractive.js";
@@ -4,10 +4,9 @@ import { live } from "lit/directives/live.js";
4
4
  import { css, html, nothing } from "lit";
5
5
  import { createRef, ref } from "lit/directives/ref.js";
6
6
  import { LitElement, createEvent, stringOrBoolean, safeClassMap } from "@arcgis/lumina";
7
- import { makeGenericController, useWatchAttributes, useDirection } from "@arcgis/lumina/controllers";
7
+ import { useWatchAttributes, useDirection } from "@arcgis/lumina/controllers";
8
8
  import { b as setRequestedIcon } from "../../chunks/dom.js";
9
- import { uncapitalize, kebabToPascal } from "@arcgis/toolkit/string";
10
- import { a as syncInputDelegate, i as isSupportedType } from "../../chunks/input.js";
9
+ import { u as useForm } from "../../chunks/useForm.js";
11
10
  import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
12
11
  import { g as getIconScale } from "../../chunks/component.js";
13
12
  import { I as InternalLabel } from "../../chunks/InternalLabel.js";
@@ -15,164 +14,6 @@ import { V as Validation } from "../../chunks/Validation.js";
15
14
  import { u as useT9n } from "../../chunks/useT9n.js";
16
15
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
17
16
  import { u as useInteractive } from "../../chunks/useInteractive.js";
18
- const componentsWithInputEvent = [
19
- "calcite-input",
20
- "calcite-input-number",
21
- "calcite-input-text",
22
- "calcite-text-area"
23
- ];
24
- function getClearValidationEventName(componentTag) {
25
- const componentTagCamelCase = uncapitalize(kebabToPascal(componentTag));
26
- return `${componentTagCamelCase}${componentsWithInputEvent.includes(componentTag) ? "Input" : "Change"}`;
27
- }
28
- function displayValidationMessage(component, { status, message, icon }) {
29
- if ("status" in component) {
30
- component.status = status;
31
- }
32
- if ("validationIcon" in component && typeof component.validationIcon !== "string") {
33
- component.validationIcon = icon;
34
- }
35
- if ("validationMessage" in component && !component.validationMessage) {
36
- component.validationMessage = message;
37
- }
38
- }
39
- function syncInternalInput(component, input) {
40
- const { disabled, required } = component;
41
- input.disabled = disabled;
42
- input.required = !!required;
43
- if (isCheckable(component)) {
44
- input.checked = component.checked;
45
- } else if (isInputComponent(component, input)) {
46
- syncInputDelegate(input.type, component, input);
47
- }
48
- }
49
- function isCheckable(component) {
50
- return "checked" in component;
51
- }
52
- function isInputComponent(component, input) {
53
- return component && isSupportedType(input.type);
54
- }
55
- const useForm = (options) => {
56
- return makeGenericController((component, controller) => {
57
- let defaultValueDirty = false;
58
- let defaultCheckedDirty = false;
59
- let inputDelegate;
60
- let lastAssociatedForm = null;
61
- if (options.inputType) {
62
- inputDelegate = document.createElement("input");
63
- inputDelegate.type = options.inputType;
64
- }
65
- function invalidFormHandler(event) {
66
- event?.preventDefault();
67
- }
68
- function onFormReset() {
69
- if ("status" in component) {
70
- component.status = "idle";
71
- }
72
- if ("validationIcon" in component) {
73
- component.validationIcon = false;
74
- }
75
- if ("validationMessage" in component) {
76
- component.validationMessage = "";
77
- }
78
- if (isCheckable(component)) {
79
- component.checked = defaultCheckedDirty ? component.defaultChecked : component.checked;
80
- }
81
- component.value = defaultValueDirty ? component.defaultValue : component.value;
82
- defaultValueDirty = false;
83
- defaultCheckedDirty = false;
84
- }
85
- component.listen("luminaFormResetCallback", () => {
86
- onFormReset();
87
- });
88
- component.listen("luminaFormAssociatedCallback", ({ detail: [form] }) => {
89
- if (form) {
90
- form.addEventListener("invalid", invalidFormHandler, { capture: true });
91
- } else {
92
- lastAssociatedForm?.removeEventListener("invalid", invalidFormHandler, { capture: true });
93
- }
94
- lastAssociatedForm = form;
95
- });
96
- function handleInvalidInput() {
97
- const validationMsg = inputDelegate?.validationMessage || "";
98
- component.el.dispatchEvent(
99
- // allows users to set custom validation messages
100
- new CustomEvent("calciteInvalid", { bubbles: true, composed: true })
101
- );
102
- displayValidationMessage(component, {
103
- message: validationMsg,
104
- icon: true,
105
- status: "invalid"
106
- });
107
- const clearValidationEvent = getClearValidationEventName(component.el.tagName.toLowerCase());
108
- component.listen(
109
- clearValidationEvent,
110
- () => {
111
- if ("status" in component) {
112
- component.status = "idle";
113
- }
114
- if ("validationIcon" in component && (!component.validationIcon || component.validationIcon === true)) {
115
- component.validationIcon = false;
116
- }
117
- if ("validationMessage" in component && component.validationMessage === validationMsg) {
118
- component.validationMessage = "";
119
- }
120
- },
121
- { once: true }
122
- );
123
- }
124
- controller.onConnected(() => {
125
- component.el.addEventListener("invalid", handleInvalidInput);
126
- });
127
- controller.onDisconnected(() => {
128
- component.el.removeEventListener("invalid", handleInvalidInput);
129
- });
130
- controller.onUpdate((changes) => {
131
- if (changes.has("value") && !defaultValueDirty) {
132
- defaultValueDirty = true;
133
- component.defaultValue = component.value;
134
- }
135
- if (isCheckable(component) && changes.has("checked") && !defaultCheckedDirty) {
136
- defaultCheckedDirty = true;
137
- component.defaultChecked = component.checked;
138
- }
139
- if (changes.has("value") || isCheckable(component) && changes.has("checked")) {
140
- component.elementInternals.setFormValue(getFormValue());
141
- }
142
- if (inputDelegate) {
143
- inputDelegate.value = component.value;
144
- syncInternalInput(component, inputDelegate);
145
- inputDelegate.checkValidity();
146
- component.elementInternals.setValidity(inputDelegate.validity, inputDelegate.validationMessage);
147
- if ("validity" in component) {
148
- component.validity = component.elementInternals.validity;
149
- }
150
- }
151
- });
152
- function getFormValue() {
153
- if (Array.isArray(component.value)) {
154
- const formData = new FormData();
155
- component.value.forEach((value) => formData.append(component.name, value));
156
- return formData;
157
- }
158
- if (isCheckable(component)) {
159
- if (component.checked) {
160
- return component.defaultValue === void 0 && !defaultValueDirty && component.value === void 0 ? "on" : component.value;
161
- }
162
- return null;
163
- }
164
- return component.value;
165
- }
166
- return {
167
- get active() {
168
- return !!component.elementInternals.form;
169
- },
170
- requestSubmit: () => {
171
- component.elementInternals.form?.requestSubmit();
172
- }
173
- };
174
- });
175
- };
176
17
  const CSS = {
177
18
  loader: "loader",
178
19
  clearable: "clearable",
@@ -10,7 +10,7 @@ import { d as decimalPlaces } from "../../chunks/math.js";
10
10
  import { g as getIconScale } from "../../chunks/component.js";
11
11
  import { I as InternalLabel } from "../../chunks/InternalLabel.js";
12
12
  import { V as Validation } from "../../chunks/Validation.js";
13
- import { s as syncHiddenFormInput } from "../../chunks/input.js";
13
+ import { a as syncHiddenFormInput } from "../../chunks/input.js";
14
14
  import { u as useT9n } from "../../chunks/useT9n.js";
15
15
  import { i as isValidNumber } from "../../chunks/locale.js";
16
16
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
@@ -4,7 +4,7 @@ import { ref } from "lit/directives/ref.js";
4
4
  import { keyed } from "lit/directives/keyed.js";
5
5
  import { debounce } from "es-toolkit";
6
6
  import { css, html } from "lit";
7
- import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
7
+ import { LitElement, createEvent, safeClassMap, safeStyleMap } from "@arcgis/lumina";
8
8
  import { m as slotChangeHasContent, s as slotChangeHasAssignedElement, e as getRootNode } from "../../chunks/dom.js";
9
9
  import { c as createObserver } from "../../chunks/observers.js";
10
10
  import { l as listItemSelector, i as isListItem, a as listSelector, u as updateListItemChildren, b as listItemGroupSelector, e as expandedAncestors } from "../../chunks/utils4.js";
@@ -54,6 +54,11 @@ class List extends LitElement {
54
54
  this.messages = useT9n({ blocking: true });
55
55
  this.focusSetter = useSetFocus()(this);
56
56
  this.interactiveContainer = useInteractive(this);
57
+ this.filterRowResizeObserver = createObserver("resize", () => this.updateFilterRowHeight());
58
+ this.setFilterContainerEl = (el) => {
59
+ this.filterContainerEl = el;
60
+ this.observeFilterRow();
61
+ };
57
62
  this.dataForFilter = [];
58
63
  this.hasFilterActionsEnd = false;
59
64
  this.hasFilterActionsStart = false;
@@ -61,6 +66,7 @@ class List extends LitElement {
61
66
  this.sortHandleMenuItems = [];
62
67
  this.hasContent = false;
63
68
  this.hasEmptyContent = false;
69
+ this.filterRowHeight = 0;
64
70
  this.disabled = false;
65
71
  this.dragEnabled = false;
66
72
  this.filterEnabled = false;
@@ -97,7 +103,7 @@ class List extends LitElement {
97
103
  this.listen("calciteInternalListItemGroupDefaultSlotChange", this.handleCalciteInternalListItemGroupDefaultSlotChange);
98
104
  }
99
105
  static {
100
- this.properties = { assistiveText: [16, {}, { state: true }], dataForFilter: [16, {}, { state: true }], hasFilterActionsEnd: [16, {}, { state: true }], hasFilterActionsStart: [16, {}, { state: true }], hasFilterNoResults: [16, {}, { state: true }], sortHandleMenuItems: [16, {}, { state: true }], hasContent: [16, {}, { state: true }], hasEmptyContent: [16, {}, { state: true }], canPull: [0, {}, { attribute: false }], canPut: [0, {}, { attribute: false }], disabled: [7, {}, { reflect: true, type: Boolean }], dragEnabled: [7, {}, { reflect: true, type: Boolean }], filterEnabled: [7, {}, { reflect: true, type: Boolean }], filterPredicate: [0, {}, { attribute: false }], filterLabel: [3, {}, { reflect: true }], filterPlaceholder: [3, {}, { reflect: true }], filterProps: [0, {}, { attribute: false }], filterText: [3, {}, { reflect: true }], filteredData: [0, {}, { attribute: false }], filteredItems: [0, {}, { attribute: false }], group: [3, {}, { reflect: true }], interactionMode: [3, {}, { reflect: true }], label: 1, loading: [7, {}, { reflect: true, type: Boolean }], messageOverrides: [0, {}, { attribute: false }], displayMode: [3, {}, { reflect: true }], numberingSystem: 1, scale: [3, {}, { reflect: true }], selectedItems: [0, {}, { attribute: false }], selectionAppearance: [3, {}, { reflect: true }], selectionMode: [3, {}, { reflect: true }], sortDisabled: [7, {}, { reflect: true, type: Boolean }] };
106
+ this.properties = { assistiveText: [16, {}, { state: true }], dataForFilter: [16, {}, { state: true }], hasFilterActionsEnd: [16, {}, { state: true }], hasFilterActionsStart: [16, {}, { state: true }], hasFilterNoResults: [16, {}, { state: true }], sortHandleMenuItems: [16, {}, { state: true }], hasContent: [16, {}, { state: true }], hasEmptyContent: [16, {}, { state: true }], filterRowHeight: [16, {}, { state: true }], canPull: [0, {}, { attribute: false }], canPut: [0, {}, { attribute: false }], disabled: [7, {}, { reflect: true, type: Boolean }], dragEnabled: [7, {}, { reflect: true, type: Boolean }], filterEnabled: [7, {}, { reflect: true, type: Boolean }], filterPredicate: [0, {}, { attribute: false }], filterLabel: [3, {}, { reflect: true }], filterPlaceholder: [3, {}, { reflect: true }], filterProps: [0, {}, { attribute: false }], filterText: [3, {}, { reflect: true }], filteredData: [0, {}, { attribute: false }], filteredItems: [0, {}, { attribute: false }], group: [3, {}, { reflect: true }], interactionMode: [3, {}, { reflect: true }], label: 1, loading: [7, {}, { reflect: true, type: Boolean }], messageOverrides: [0, {}, { attribute: false }], displayMode: [3, {}, { reflect: true }], numberingSystem: 1, scale: [3, {}, { reflect: true }], selectedItems: [0, {}, { attribute: false }], selectionAppearance: [3, {}, { reflect: true }], selectionMode: [3, {}, { reflect: true }], sortDisabled: [7, {}, { reflect: true, type: Boolean }] };
101
107
  }
102
108
  static {
103
109
  this.styles = styles;
@@ -147,6 +153,7 @@ class List extends LitElement {
147
153
  disconnectedCallback() {
148
154
  super.disconnectedCallback();
149
155
  this.disconnectObserver();
156
+ this.unobserveFilterRow();
150
157
  disconnectSortableComponent(this);
151
158
  }
152
159
  updateListItems() {
@@ -203,6 +210,19 @@ class List extends LitElement {
203
210
  this.updateSelectedItems();
204
211
  this.setUpSorting();
205
212
  }
213
+ unobserveFilterRow() {
214
+ this.filterRowResizeObserver?.disconnect();
215
+ }
216
+ observeFilterRow() {
217
+ this.unobserveFilterRow();
218
+ const filterRowEl = this.filterContainerEl;
219
+ if (filterRowEl) {
220
+ this.filterRowResizeObserver?.observe(filterRowEl);
221
+ }
222
+ }
223
+ updateFilterRowHeight() {
224
+ this.filterRowHeight = this.filterContainerEl?.clientHeight ?? 0;
225
+ }
206
226
  handleListItemChange() {
207
227
  this.willPerformFilter = true;
208
228
  this.updateListItemsDebounced();
@@ -662,7 +682,9 @@ class List extends LitElement {
662
682
  return this.interactiveContainer({ disabled: this.disabled, children: html`<div class=${safeClassMap({
663
683
  [CSS.container]: true,
664
684
  [CSS.containerHeight]: this.listItems.length < 1 && loading
665
- })}>${this.dragEnabled ? html`<span aria-live=assertive class=${safeClassMap(CSS.assistiveText)}>${this.assistiveText}</span>` : null}${this.renderItemAriaLive()}${loading ? html`<calcite-scrim class=${safeClassMap(CSS.scrim)} .loading=${loading}></calcite-scrim>` : null}<div .ariaBusy=${loading} .ariaLabel=${label || ""} class=${safeClassMap(CSS.table)} @keydown=${this.handleListKeydown} role=treegrid>${filterEnabled || hasFilterActionsStart || hasFilterActionsEnd ? html`<div class=${safeClassMap(CSS.sticky)} role=rowgroup><div role=row><div role=columnheader><calcite-stack class=${safeClassMap(CSS.stack)}><slot name=${SLOTS.filterActionsStart} @slotchange=${this.handleFilterActionsStartSlotChange} slot=${SLOTS$1.actionsStart}></slot><calcite-filter .ariaLabel=${filterPlaceholder} .disabled=${disabled} .filterProps=${effectiveFilterProps} .items=${dataForFilter} .label=${filterLabel} @calciteFilterChange=${this.handleFilterChange} .placeholder=${filterPlaceholder} .scale=${this.scale} .value=${filterText} ${ref(this.setFilterEl)}></calcite-filter><slot name=${SLOTS.filterActionsEnd} @slotchange=${this.handleFilterActionsEndSlotChange} slot=${SLOTS$1.actionsEnd}></slot></calcite-stack></div></div></div>` : null}<div class=${safeClassMap(CSS.tableContainer)} role=rowgroup><div .hidden=${!this.showEmptyContentContainer}><slot name=${SLOTS.emptyContent} @slotchange=${this.handleEmptyContentSlotChange}></slot></div><slot @slotchange=${this.handleDefaultSlotChange} ${ref(this.setDefaultSlotEl)}></slot></div></div><div aria-live=polite .hidden=${!this.showNoResultsContainer}><slot name=${SLOTS.filterNoResults} @slotchange=${this.handleFilterNoResultsSlotChange}></slot></div></div>` });
685
+ })} style=${safeStyleMap({
686
+ ["--calcite-internal-filter-enabled-offset"]: `${this.filterRowHeight}px`
687
+ })}>${this.dragEnabled ? html`<span aria-live=assertive class=${safeClassMap(CSS.assistiveText)}>${this.assistiveText}</span>` : null}${this.renderItemAriaLive()}${loading ? html`<calcite-scrim class=${safeClassMap(CSS.scrim)} .loading=${loading}></calcite-scrim>` : null}<div .ariaBusy=${loading} .ariaLabel=${label || ""} class=${safeClassMap(CSS.table)} @keydown=${this.handleListKeydown} role=treegrid>${filterEnabled || hasFilterActionsStart || hasFilterActionsEnd ? html`<div class=${safeClassMap(CSS.sticky)} role=rowgroup ${ref(this.setFilterContainerEl)}><div role=row><div role=columnheader><calcite-stack class=${safeClassMap(CSS.stack)}><slot name=${SLOTS.filterActionsStart} @slotchange=${this.handleFilterActionsStartSlotChange} slot=${SLOTS$1.actionsStart}></slot><calcite-filter .ariaLabel=${filterPlaceholder} .disabled=${disabled} .filterProps=${effectiveFilterProps} .items=${dataForFilter} .label=${filterLabel} @calciteFilterChange=${this.handleFilterChange} .placeholder=${filterPlaceholder} .scale=${this.scale} .value=${filterText} ${ref(this.setFilterEl)}></calcite-filter><slot name=${SLOTS.filterActionsEnd} @slotchange=${this.handleFilterActionsEndSlotChange} slot=${SLOTS$1.actionsEnd}></slot></calcite-stack></div></div></div>` : null}<div class=${safeClassMap(CSS.tableContainer)} role=rowgroup><div .hidden=${!this.showEmptyContentContainer}><slot name=${SLOTS.emptyContent} @slotchange=${this.handleEmptyContentSlotChange}></slot></div><slot @slotchange=${this.handleDefaultSlotChange} ${ref(this.setDefaultSlotEl)}></slot></div></div><div aria-live=polite .hidden=${!this.showNoResultsContainer}><slot name=${SLOTS.filterNoResults} @slotchange=${this.handleFilterNoResultsSlotChange}></slot></div></div>` });
666
688
  }
667
689
  renderItemAriaLive() {
668
690
  const { messages, filteredItems, parentListEl, messages: { _lang: effectiveLocale }, numberingSystem } = this;
@@ -8,7 +8,7 @@ const CSS = {
8
8
  container: "container",
9
9
  heading: "heading"
10
10
  };
11
- 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:flex;flex-direction:column}:host([filter-hidden]){display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{margin:0;display:flex;flex:1 1 0%;background-color:var(--calcite-list-background-color, var(--calcite-color-foreground-1));color:var(--calcite-list-color, var(--calcite-color-text-1))}.heading{font-weight:var(--calcite-font-weight-bold)}:host([scale=s]) .container{padding-inline:var(--calcite-spacing-sm)}:host([scale=s]) .heading{font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-fixed-base);padding-block:var(--calcite-spacing-sm) var(--calcite-spacing-xxs)}:host([scale=s]:not(:first-child)) .container{padding-block-start:var(--calcite-spacing-sm)}:host([scale=m]) .container{padding-inline:var(--calcite-spacing-md)}:host([scale=m]) .heading{font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-fixed-base);padding-block:var(--calcite-spacing-lg) var(--calcite-spacing-sm)}:host([scale=m]:not(:first-child)) .container{padding-block-start:var(--calcite-spacing-md)}:host([scale=l]) .container{padding-inline:var(--calcite-spacing-lg)}:host([scale=l]) .heading{font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-fixed-lg);padding-block:var(--calcite-spacing-xl) var(--calcite-spacing-sm-plus, .625rem)}:host([scale=l]:not(:first-child)) .container{padding-block-start:var(--calcite-spacing-md-plus, .875rem)}.heading{padding:0}:host([hidden]){display:none}[hidden]{display:none}`;
11
+ 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:flex;flex-direction:column}:host([filter-hidden]){display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{margin:0;display:flex;flex:1 1 0%;position:sticky;inset-block-start:var(--calcite-internal-filter-enabled-offset, 0);z-index:var(--calcite-z-index-sticky);background-color:var(--calcite-list-background-color, var(--calcite-color-foreground-1));color:var(--calcite-list-color, var(--calcite-color-text-1))}.heading{font-weight:var(--calcite-font-weight-bold)}:host([scale=s]) .container{padding-inline:var(--calcite-spacing-sm)}:host([scale=s]) .heading{font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-fixed-base);padding-block:var(--calcite-spacing-sm) var(--calcite-spacing-xxs)}:host([scale=s]:not(:first-child)) .container{padding-block-start:var(--calcite-spacing-sm)}:host([scale=m]) .container{padding-inline:var(--calcite-spacing-md)}:host([scale=m]) .heading{font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-fixed-base);padding-block:var(--calcite-spacing-lg) var(--calcite-spacing-sm)}:host([scale=m]:not(:first-child)) .container{padding-block-start:var(--calcite-spacing-md)}:host([scale=l]) .container{padding-inline:var(--calcite-spacing-lg)}:host([scale=l]) .heading{font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-fixed-lg);padding-block:var(--calcite-spacing-xl) var(--calcite-spacing-sm-plus, .625rem)}:host([scale=l]:not(:first-child)) .container{padding-block-start:var(--calcite-spacing-md-plus, .875rem)}.heading{padding:0}:host([hidden]){display:none}[hidden]{display:none}`;
12
12
  class ListItemGroup extends LitElement {
13
13
  constructor() {
14
14
  super(...arguments);
@@ -39,6 +39,8 @@ export abstract class Meter extends LitElement {
39
39
  * Specifies the `id` of the component's associated form.
40
40
  *
41
41
  * When not set, the component is associated with its ancestor form element, if one exists.
42
+ *
43
+ * @deprecated in v5.1.0, removal target v6.0.0 - This property has no effect on the component.
42
44
  */
43
45
  accessor form: string;
44
46
  /**
@@ -71,7 +73,11 @@ export abstract class Meter extends LitElement {
71
73
  * @default 0
72
74
  */
73
75
  accessor min: number;
74
- /** Specifies the name of the component. Required to pass the component's `value` on form submission. */
76
+ /**
77
+ * Specifies the name of the component. Required to pass the component's `value` on form submission.
78
+ *
79
+ * @deprecated in v5.1.0, removal target v6.0.0 - This property has no effect on the component.
80
+ */
75
81
  accessor name: string;
76
82
  /** Specifies the Unicode numeral system used by the component for localization. */
77
83
  accessor numberingSystem: NumberingSystem;
@@ -4,7 +4,6 @@ import { keyed } from "lit/directives/keyed.js";
4
4
  import { css, html } from "lit";
5
5
  import { createRef, ref } from "lit/directives/ref.js";
6
6
  import { LitElement, safeClassMap, safeStyleMap } from "@arcgis/lumina";
7
- import { c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm } from "../../chunks/form.js";
8
7
  import { n as numberStringFormatter } from "../../chunks/locale.js";
9
8
  import { v as intersects } from "../../chunks/dom.js";
10
9
  import { c as createObserver } from "../../chunks/observers.js";
@@ -61,12 +60,10 @@ class Meter extends LitElement {
61
60
  }
62
61
  connectedCallback() {
63
62
  super.connectedCallback();
64
- connectForm(this);
65
63
  this.resizeObserver?.observe(this.el);
66
64
  }
67
65
  load() {
68
66
  this.calculateValues();
69
- afterConnectDefaultValueSet(this, this.value);
70
67
  }
71
68
  willUpdate(changes) {
72
69
  if (changes.has("min") && (this.hasUpdated || this.min !== 0) || changes.has("max") && (this.hasUpdated || this.max !== 100) || changes.has("low") || changes.has("high") || changes.has("value")) {
@@ -81,7 +78,6 @@ class Meter extends LitElement {
81
78
  }
82
79
  disconnectedCallback() {
83
80
  super.disconnectedCallback();
84
- disconnectForm(this);
85
81
  this.resizeObserver?.disconnect();
86
82
  }
87
83
  handleRangeChange() {