@esri/calcite-components 5.1.2-next.1 → 5.1.2

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 (340) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/{BFDEONWS.js → 227I7D6V.js} +1 -1
  3. package/dist/cdn/{BINIHZVX.js → 22A4K5DV.js} +1 -1
  4. package/dist/cdn/25SUELBY.js +2 -0
  5. package/dist/cdn/{SBRNKQZR.js → 2DHSTYCM.js} +1 -1
  6. package/dist/cdn/{AH3GOPDP.js → 2GFANB24.js} +1 -1
  7. package/dist/cdn/{XF7YQY5Y.js → 2RKYI473.js} +1 -1
  8. package/dist/cdn/{TPPIRT4M.js → 343STFSA.js} +1 -1
  9. package/dist/cdn/346EBIHQ.js +2 -0
  10. package/dist/cdn/{QMZ2G6WF.js → 3BBTNPGP.js} +1 -1
  11. package/dist/cdn/{AB5SZONG.js → 3PYSSBHC.js} +1 -1
  12. package/dist/cdn/3Q5GJHQP.js +2 -0
  13. package/dist/cdn/{DHBXZGPJ.js → 47MS7TEC.js} +1 -1
  14. package/dist/cdn/5C77HJ53.js +2 -0
  15. package/dist/cdn/{SE3EQB55.js → 5TKENZHT.js} +1 -1
  16. package/dist/cdn/{HWUQQAC7.js → 5V5RSZWZ.js} +1 -1
  17. package/dist/cdn/{CQMH7FNX.js → 5X2CR2NN.js} +1 -1
  18. package/dist/cdn/{USISHLZA.js → 6BB7Q252.js} +1 -1
  19. package/dist/cdn/{CIOGICAT.js → 6BQLG6RR.js} +1 -1
  20. package/dist/cdn/{E7Y2KS7L.js → 6CA2YMJQ.js} +1 -1
  21. package/dist/cdn/6LGG7Y33.js +2 -0
  22. package/dist/cdn/{6BEQZOCM.js → 6Q4JD4XI.js} +1 -1
  23. package/dist/cdn/{VDVHXKFM.js → 6XETUUZB.js} +1 -1
  24. package/dist/cdn/{IFDDWATG.js → 77SBYYE4.js} +1 -1
  25. package/dist/cdn/{56Z7V2KB.js → 7HH4ZYJY.js} +1 -1
  26. package/dist/cdn/{46UF5N55.js → 7T6QRXLQ.js} +1 -1
  27. package/dist/cdn/{R5A44F3R.js → AILKYQPA.js} +1 -1
  28. package/dist/cdn/AJ2RTGUI.js +2 -0
  29. package/dist/cdn/{53JE6CCO.js → AKOMPE3M.js} +1 -1
  30. package/dist/cdn/{A4PS7QHZ.js → ANMKFI73.js} +1 -1
  31. package/dist/cdn/B43QZBPC.js +2 -0
  32. package/dist/cdn/B7STEBYJ.js +2 -0
  33. package/dist/cdn/{JODPCONC.js → BEDRQCW7.js} +1 -1
  34. package/dist/cdn/{J2ZQ3UJT.js → BFKJGHCR.js} +1 -1
  35. package/dist/cdn/BIQXGRIU.js +2 -0
  36. package/dist/cdn/BMHQ7TDU.js +2 -0
  37. package/dist/cdn/{DJWXY3E4.js → BRUZUNMJ.js} +1 -1
  38. package/dist/cdn/{CNZSHYJN.js → BWXS7DNQ.js} +1 -1
  39. package/dist/cdn/CA2ZRXHN.js +2 -0
  40. package/dist/cdn/{WWMYIHOG.js → CA5OARSX.js} +1 -1
  41. package/dist/cdn/{WFCDKH3A.js → CAUZX7OI.js} +1 -1
  42. package/dist/cdn/CBG5HWWU.js +2 -0
  43. package/dist/cdn/CO2YNXVN.js +2 -0
  44. package/dist/cdn/{6G7XHQRI.js → CQ6BZWIN.js} +1 -1
  45. package/dist/cdn/{VJEFLAMF.js → D27XLBSM.js} +1 -1
  46. package/dist/cdn/D43VJFKN.js +2 -0
  47. package/dist/cdn/{47Z3743F.js → D4BJ62KK.js} +1 -1
  48. package/dist/cdn/{QRJIJZC3.js → DJLM2M2C.js} +1 -1
  49. package/dist/cdn/{JE22TLFT.js → DMDXKF5P.js} +1 -1
  50. package/dist/cdn/{C6GAKO4D.js → DQJGO2NT.js} +1 -1
  51. package/dist/cdn/DSQ47C3C.js +2 -0
  52. package/dist/cdn/DUXJZ3WP.js +2 -0
  53. package/dist/cdn/{K7UT7UDE.js → DZ5AYBIN.js} +1 -1
  54. package/dist/cdn/{FLL5S6IX.js → E3GNRAO2.js} +1 -1
  55. package/dist/cdn/{CMB4P6YF.js → ECMVMT77.js} +1 -1
  56. package/dist/cdn/{WXS7HUGX.js → EMWCBI3M.js} +1 -1
  57. package/dist/cdn/{4K6O44GL.js → EP7VCSZC.js} +1 -1
  58. package/dist/cdn/{AFYLPOO3.js → EQPINQ3U.js} +1 -1
  59. package/dist/cdn/{35VGR3XO.js → ERBT4JUL.js} +1 -1
  60. package/dist/cdn/{I2SPPXEM.js → ESFX5OFG.js} +1 -1
  61. package/dist/cdn/{TFXHHWCL.js → EXMCKBVI.js} +1 -1
  62. package/dist/cdn/{PIZB2UU4.js → FHJOCQII.js} +1 -1
  63. package/dist/cdn/{6KRTBFQA.js → FIIP3WUT.js} +1 -1
  64. package/dist/cdn/{WDRZWXPS.js → G3JL7QWO.js} +1 -1
  65. package/dist/cdn/{4GWDVUXR.js → GAFHVE2T.js} +1 -1
  66. package/dist/cdn/{VSMJ6GNS.js → GAQGXTML.js} +1 -1
  67. package/dist/cdn/{5FGJKE6I.js → GD6U6HVI.js} +1 -1
  68. package/dist/cdn/GMARWJVX.js +2 -0
  69. package/dist/cdn/{Z52JB5CD.js → GN46A6G6.js} +1 -1
  70. package/dist/cdn/GP4NXRAJ.js +2 -0
  71. package/dist/cdn/{2NTH4LWU.js → GTJSGYTM.js} +1 -1
  72. package/dist/cdn/{4DBX7CV4.js → GXUMIEQT.js} +1 -1
  73. package/dist/cdn/{6L35BYWP.js → H453BKZG.js} +1 -1
  74. package/dist/cdn/HB4SD5G6.js +2 -0
  75. package/dist/cdn/{PDIVD53H.js → HCAOBIZD.js} +1 -1
  76. package/dist/cdn/{JVPMJ2MI.js → HH5WCY6V.js} +1 -1
  77. package/dist/cdn/{GUYOZ5IV.js → HS7MO4UY.js} +1 -1
  78. package/dist/cdn/{D2QZJE6E.js → ILAH2O6P.js} +1 -1
  79. package/dist/cdn/IVLQ6SZI.js +2 -0
  80. package/dist/cdn/{V3P34C4L.js → IVYPK4EY.js} +1 -1
  81. package/dist/cdn/{GAAAQTI2.js → JC6EZEYM.js} +1 -1
  82. package/dist/cdn/{IPHJHRQ6.js → JQDVFZPF.js} +1 -1
  83. package/dist/cdn/{HP4MJQEO.js → JSDJWGYU.js} +1 -1
  84. package/dist/cdn/JTMJFWQJ.js +2 -0
  85. package/dist/cdn/{K4KCUAGT.js → JVSLA6PI.js} +1 -1
  86. package/dist/cdn/{7QAG4N44.js → K7U3LDK2.js} +1 -1
  87. package/dist/cdn/{3SZQJ5VM.js → KQB6TPEK.js} +1 -1
  88. package/dist/cdn/{S4EMFPQN.js → KXVVBBPJ.js} +1 -1
  89. package/dist/cdn/{WHZ2Y73O.js → KYY6DJYA.js} +1 -1
  90. package/dist/cdn/{EF64PC2O.js → LJXCKDSV.js} +1 -1
  91. package/dist/cdn/{SEHPIQCS.js → LXTZTBDK.js} +1 -1
  92. package/dist/cdn/{NPHRYNDM.js → MVSUYS5F.js} +1 -1
  93. package/dist/cdn/{AE6WIDBA.js → ND7KY7GE.js} +1 -1
  94. package/dist/cdn/{IHG36OXA.js → NXK5ZI5S.js} +1 -1
  95. package/dist/cdn/{P3FETVF2.js → OIM7YO5M.js} +1 -1
  96. package/dist/cdn/{2L2UNCTJ.js → OJSDWFEI.js} +1 -1
  97. package/dist/cdn/{DWQYJRFK.js → OKU4SZ6S.js} +1 -1
  98. package/dist/cdn/{VNG5JX4F.js → P27Y5YS2.js} +1 -1
  99. package/dist/cdn/{OJRKE24N.js → P2UIFQT7.js} +1 -1
  100. package/dist/cdn/{B2QW54L5.js → PEUGTNMK.js} +1 -1
  101. package/dist/cdn/{K7UX5HSY.js → PWVBTSIE.js} +1 -1
  102. package/dist/cdn/Q4O7OHBI.js +2 -0
  103. package/dist/cdn/QB6KFGIX.js +2 -0
  104. package/dist/cdn/{Y2MMRFEI.js → QE6BXQLN.js} +1 -1
  105. package/dist/cdn/{6QWHLAKJ.js → QGM75633.js} +1 -1
  106. package/dist/cdn/{R4PS3KVA.js → QHV7VTM5.js} +1 -1
  107. package/dist/cdn/{BGDVBJXB.js → QLB756I4.js} +1 -1
  108. package/dist/cdn/QNRDUBHP.js +2 -0
  109. package/dist/cdn/{EHJWHGSU.js → QOOKHF3O.js} +1 -1
  110. package/dist/cdn/{OXCX2JYQ.js → QWKKLQLZ.js} +1 -1
  111. package/dist/cdn/{QVY5E66G.js → R4YV7EY6.js} +1 -1
  112. package/dist/cdn/{YUMTBVTL.js → R6N4PF7R.js} +1 -1
  113. package/dist/cdn/{CR6V2BRH.js → R7OFBBIT.js} +1 -1
  114. package/dist/cdn/R7SEE5BJ.js +2 -0
  115. package/dist/cdn/{WJ7C6DWY.js → RDHNSSMV.js} +1 -1
  116. package/dist/cdn/{AXFCT6T6.js → RPBJZCXT.js} +1 -1
  117. package/dist/cdn/{2CU7DKE2.js → SJIC6FKK.js} +1 -1
  118. package/dist/cdn/{F5JHKEU6.js → T2U6U2AG.js} +1 -1
  119. package/dist/cdn/{ZQVZ5W4Z.js → TDBUSTQ4.js} +1 -1
  120. package/dist/cdn/{BFNSTPU4.js → TIJ3E5YH.js} +1 -1
  121. package/dist/cdn/{VZ34CEPE.js → TJDVOFE4.js} +1 -1
  122. package/dist/cdn/TK2WKRIN.js +2 -0
  123. package/dist/cdn/{VHTR3YLE.js → TT72CGHS.js} +1 -1
  124. package/dist/cdn/{HLQG3GYF.js → U6XTP7PX.js} +1 -1
  125. package/dist/cdn/{M6GDSLP7.js → U7FAOVB3.js} +1 -1
  126. package/dist/cdn/{3HEBAEY5.js → UB77YZJ5.js} +1 -1
  127. package/dist/cdn/{FQMDLHY6.js → UQWQEADU.js} +1 -1
  128. package/dist/cdn/{ZIO5GS2X.js → UVLNCOGJ.js} +1 -1
  129. package/dist/cdn/{ECBDXQWQ.js → V4DGX2ZE.js} +1 -1
  130. package/dist/cdn/{5LD3NWQK.js → VD2R7ZB5.js} +1 -1
  131. package/dist/cdn/{QWHPERZB.js → VG3V4DTY.js} +1 -1
  132. package/dist/cdn/{DS7N2ZRJ.js → VGICGNRI.js} +1 -1
  133. package/dist/cdn/{MR7Q3LT3.js → VHLI5BGQ.js} +1 -1
  134. package/dist/cdn/{GNCY5J35.js → VTVQDHGZ.js} +1 -1
  135. package/dist/cdn/{6IQITD2D.js → W7AR6VOO.js} +1 -1
  136. package/dist/cdn/{6G45I3QG.js → WMJ6NUKQ.js} +1 -1
  137. package/dist/cdn/{WKX35O7E.js → WQVCJABR.js} +1 -1
  138. package/dist/cdn/{J7F2URNC.js → WZXNG66Q.js} +1 -1
  139. package/dist/cdn/XHSGOLTE.js +2 -0
  140. package/dist/cdn/XODVEML5.js +2 -0
  141. package/dist/cdn/{KMPEGQSK.js → XUU6P5MF.js} +1 -1
  142. package/dist/cdn/{DF52STT7.js → Y4XOCJSZ.js} +1 -1
  143. package/dist/cdn/{3FCQ4V5Q.js → Y5AZJCTZ.js} +1 -1
  144. package/dist/cdn/{ZALKWH4R.js → YE3HX3ER.js} +1 -1
  145. package/dist/cdn/{ZXBVCAEX.js → YMUISNQ7.js} +1 -1
  146. package/dist/cdn/{5HHFIGVW.js → ZNC5YLUJ.js} +1 -1
  147. package/dist/cdn/{JGVRYRKU.js → ZPQ3JZII.js} +1 -1
  148. package/dist/cdn/{LNDFYKAA.js → ZQMYQTQF.js} +1 -1
  149. package/dist/cdn/{RIHHQ4P5.js → ZSKXWRZY.js} +1 -1
  150. package/dist/cdn/assets/icon/returnToDefault16.json +1 -1
  151. package/dist/cdn/assets/icon/returnToDefault32.json +1 -1
  152. package/dist/cdn/index.js +1 -1
  153. package/dist/chunks/ExpandToggle.js +1 -1
  154. package/dist/chunks/date.js +3 -3
  155. package/dist/chunks/dom.js +3 -15
  156. package/dist/chunks/floating-ui.js +1 -1
  157. package/dist/chunks/label.js +6 -6
  158. package/dist/chunks/locale.js +6 -3
  159. package/dist/chunks/manager.js +5 -5
  160. package/dist/chunks/openCloseComponent.js +1 -1
  161. package/dist/chunks/resources10.js +48 -4
  162. package/dist/chunks/resources5.js +23 -37
  163. package/dist/chunks/resources6.js +52 -27
  164. package/dist/chunks/resources7.js +45 -48
  165. package/dist/chunks/resources8.js +7 -49
  166. package/dist/chunks/resources9.js +11 -9
  167. package/dist/chunks/runtime.js +4 -4
  168. package/dist/chunks/useTime.js +45 -40
  169. package/dist/chunks/utils.js +15 -9
  170. package/dist/chunks/utils2.js +1 -1
  171. package/dist/components/calcite-accordion-item/customElement.d.ts +6 -6
  172. package/dist/components/calcite-accordion-item/customElement.js +1 -1
  173. package/dist/components/calcite-alert/customElement.d.ts +2 -2
  174. package/dist/components/calcite-alert/customElement.js +4 -6
  175. package/dist/components/calcite-autocomplete/customElement.d.ts +16 -16
  176. package/dist/components/calcite-autocomplete/customElement.js +4 -4
  177. package/dist/components/calcite-autocomplete-item/customElement.d.ts +5 -5
  178. package/dist/components/calcite-avatar/customElement.d.ts +5 -5
  179. package/dist/components/calcite-block/customElement.d.ts +9 -9
  180. package/dist/components/calcite-block/customElement.js +49 -8
  181. package/dist/components/calcite-block-group/customElement.js +5 -3
  182. package/dist/components/calcite-block-section/customElement.d.ts +5 -5
  183. package/dist/components/calcite-block-section/customElement.js +1 -1
  184. package/dist/components/calcite-button/customElement.d.ts +8 -8
  185. package/dist/components/calcite-button/customElement.js +3 -3
  186. package/dist/components/calcite-card/customElement.d.ts +1 -1
  187. package/dist/components/calcite-carousel/customElement.js +6 -5
  188. package/dist/components/calcite-checkbox/customElement.d.ts +4 -4
  189. package/dist/components/calcite-chip/customElement.js +1 -1
  190. package/dist/components/calcite-chip-group/customElement.js +1 -1
  191. package/dist/components/calcite-color-picker/customElement.d.ts +3 -3
  192. package/dist/components/calcite-color-picker/customElement.js +21 -24
  193. package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +1 -1
  194. package/dist/components/calcite-color-picker-hex-input/customElement.js +5 -5
  195. package/dist/components/calcite-color-picker-swatch/customElement.d.ts +1 -1
  196. package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
  197. package/dist/components/calcite-combobox/customElement.js +9 -14
  198. package/dist/components/calcite-date-picker/customElement.js +1 -1
  199. package/dist/components/calcite-date-picker-day/customElement.js +1 -1
  200. package/dist/components/calcite-date-picker-month/customElement.js +11 -2
  201. package/dist/components/calcite-dialog/customElement.js +8 -8
  202. package/dist/components/calcite-dropdown-group/customElement.js +1 -1
  203. package/dist/components/calcite-dropdown-item/customElement.js +1 -1
  204. package/dist/components/calcite-flow/customElement.d.ts +2 -2
  205. package/dist/components/calcite-flow/customElement.js +1 -1
  206. package/dist/components/calcite-flow-item/customElement.d.ts +1 -7
  207. package/dist/components/calcite-flow-item/customElement.js +2 -2
  208. package/dist/components/calcite-input/customElement.js +5 -2
  209. package/dist/components/calcite-input-number/customElement.js +1 -1
  210. package/dist/components/calcite-input-text/customElement.js +1 -1
  211. package/dist/components/calcite-input-time-zone/customElement.js +1 -1
  212. package/dist/components/calcite-list/customElement.d.ts +4 -4
  213. package/dist/components/calcite-list/customElement.js +6 -5
  214. package/dist/components/calcite-list-item/customElement.d.ts +6 -6
  215. package/dist/components/calcite-list-item/customElement.js +16 -13
  216. package/dist/components/calcite-list-item-group/customElement.d.ts +1 -1
  217. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  218. package/dist/components/calcite-loader/customElement.js +3 -3
  219. package/dist/components/calcite-menu-item/customElement.d.ts +7 -7
  220. package/dist/components/calcite-menu-item/customElement.js +0 -3
  221. package/dist/components/calcite-meter/customElement.d.ts +6 -6
  222. package/dist/components/calcite-meter/customElement.js +7 -14
  223. package/dist/components/calcite-pagination/customElement.d.ts +1 -1
  224. package/dist/components/calcite-pagination/customElement.js +0 -3
  225. package/dist/components/calcite-panel/customElement.d.ts +6 -6
  226. package/dist/components/calcite-panel/customElement.js +1 -1
  227. package/dist/components/calcite-popover/customElement.d.ts +4 -4
  228. package/dist/components/calcite-popover/customElement.js +1 -1
  229. package/dist/components/calcite-progress/customElement.d.ts +2 -2
  230. package/dist/components/calcite-radio-button/customElement.d.ts +5 -5
  231. package/dist/components/calcite-radio-button/customElement.js +1 -1
  232. package/dist/components/calcite-radio-button-group/customElement.d.ts +4 -4
  233. package/dist/components/calcite-radio-button-group/customElement.js +3 -3
  234. package/dist/components/calcite-rating/customElement.d.ts +7 -7
  235. package/dist/components/calcite-rating/customElement.js +9 -13
  236. package/dist/components/calcite-sheet/customElement.js +27 -32
  237. package/dist/components/calcite-stack/customElement.js +1 -1
  238. package/dist/components/calcite-tab/customElement.d.ts +1 -1
  239. package/dist/components/calcite-tab/customElement.js +1 -2
  240. package/dist/components/calcite-tab-nav/customElement.d.ts +3 -3
  241. package/dist/components/calcite-tab-nav/customElement.js +7 -12
  242. package/dist/components/calcite-tab-title/customElement.d.ts +3 -3
  243. package/dist/components/calcite-tab-title/customElement.js +0 -2
  244. package/dist/components/calcite-table/customElement.js +14 -22
  245. package/dist/components/calcite-table-cell/customElement.d.ts +2 -2
  246. package/dist/components/calcite-table-cell/customElement.js +0 -6
  247. package/dist/components/calcite-table-header/customElement.d.ts +4 -4
  248. package/dist/components/calcite-table-header/customElement.js +0 -2
  249. package/dist/components/calcite-table-row/customElement.js +3 -5
  250. package/dist/components/calcite-tabs/customElement.js +2 -3
  251. package/dist/components/calcite-text-area/customElement.d.ts +12 -12
  252. package/dist/components/calcite-text-area/customElement.js +3 -5
  253. package/dist/components/calcite-tile/customElement.d.ts +6 -6
  254. package/dist/components/calcite-time-picker/customElement.d.ts +1 -1
  255. package/dist/components/calcite-time-picker/customElement.js +15 -35
  256. package/dist/components/calcite-tooltip/customElement.d.ts +2 -2
  257. package/dist/components/calcite-tooltip/customElement.js +1 -1
  258. package/dist/components/calcite-tree/customElement.js +6 -7
  259. package/dist/components/calcite-tree-item/customElement.d.ts +3 -3
  260. package/dist/components/calcite-tree-item/customElement.js +6 -12
  261. package/dist/controllers/useSortable.d.ts +2 -2
  262. package/dist/controllers/useTime.d.ts +20 -20
  263. package/dist/docs/api.json +1 -1
  264. package/dist/docs/docs.json +1 -1
  265. package/dist/docs/supported-browsers.json +1 -1
  266. package/dist/docs/vscode.html-custom-data.json +1 -1
  267. package/dist/docs/web-types.json +1 -1
  268. package/dist/loader.js +2 -2
  269. package/dist/types/lumina.d.ts +1 -1
  270. package/dist/types/preact.d.ts +1 -1
  271. package/dist/types/react.d.ts +1 -1
  272. package/dist/types/stencil.d.ts +1 -1
  273. package/dist/utils/dom.d.ts +1 -1
  274. package/package.json +9 -8
  275. package/dist/cdn/3AQRM2KH.js +0 -2
  276. package/dist/cdn/47TWTWBY.js +0 -2
  277. package/dist/cdn/55B3DHRL.js +0 -2
  278. package/dist/cdn/6JEYN7OP.js +0 -2
  279. package/dist/cdn/7Z3FNQKK.js +0 -2
  280. package/dist/cdn/A5BQ2FR3.js +0 -2
  281. package/dist/cdn/BFERIIZD.js +0 -2
  282. package/dist/cdn/BHFCZH65.js +0 -2
  283. package/dist/cdn/BNZVUF7A.js +0 -2
  284. package/dist/cdn/IPBRUCJX.js +0 -2
  285. package/dist/cdn/J2KX3JW3.js +0 -2
  286. package/dist/cdn/JIDJQEZ3.js +0 -2
  287. package/dist/cdn/KXVN4L2R.js +0 -2
  288. package/dist/cdn/KZAI3CI3.js +0 -2
  289. package/dist/cdn/MK5D6DUQ.js +0 -2
  290. package/dist/cdn/NX5LYVTC.js +0 -2
  291. package/dist/cdn/OI5Z75UV.js +0 -2
  292. package/dist/cdn/PNQURWQR.js +0 -2
  293. package/dist/cdn/S5JURZJV.js +0 -2
  294. package/dist/cdn/SDTW62DH.js +0 -2
  295. package/dist/cdn/UNLFQ2X5.js +0 -2
  296. package/dist/cdn/UTJ6CSF2.js +0 -2
  297. package/dist/cdn/UWYYS2CJ.js +0 -2
  298. package/dist/cdn/WGSMIQUI.js +0 -2
  299. package/dist/cdn/WQKOEKWG.js +0 -2
  300. package/dist/cdn/X7GZQYSF.js +0 -2
  301. package/dist/cdn/XLDNKUOK.js +0 -2
  302. package/dist/cdn/XM4U2QML.js +0 -2
  303. package/dist/cdn/XPV23QFC.js +0 -2
  304. package/dist/cdn/assets/icon/buildingIndex16.json +0 -1
  305. package/dist/cdn/assets/icon/buildingIndex24.json +0 -1
  306. package/dist/cdn/assets/icon/buildingIndex32.json +0 -1
  307. package/dist/cdn/assets/icon/fireIndex16.json +0 -1
  308. package/dist/cdn/assets/icon/fireIndex24.json +0 -1
  309. package/dist/cdn/assets/icon/fireIndex32.json +0 -1
  310. package/dist/cdn/assets/icon/geologyIndex16.json +0 -1
  311. package/dist/cdn/assets/icon/geologyIndex24.json +0 -1
  312. package/dist/cdn/assets/icon/geologyIndex32.json +0 -1
  313. package/dist/cdn/assets/icon/orientedImageryFullSuperimpose16.json +0 -1
  314. package/dist/cdn/assets/icon/orientedImageryFullSuperimpose24.json +0 -1
  315. package/dist/cdn/assets/icon/orientedImageryFullSuperimpose32.json +0 -1
  316. package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose16.json +0 -1
  317. package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose24.json +0 -1
  318. package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose32.json +0 -1
  319. package/dist/cdn/assets/icon/orientedImagerySceneOnly16.json +0 -1
  320. package/dist/cdn/assets/icon/orientedImagerySceneOnly24.json +0 -1
  321. package/dist/cdn/assets/icon/orientedImagerySceneOnly32.json +0 -1
  322. package/dist/cdn/assets/icon/parquetFeatureLayer16.json +0 -1
  323. package/dist/cdn/assets/icon/parquetFeatureLayer24.json +0 -1
  324. package/dist/cdn/assets/icon/parquetFeatureLayer32.json +0 -1
  325. package/dist/cdn/assets/icon/snowIndex16.json +0 -1
  326. package/dist/cdn/assets/icon/snowIndex24.json +0 -1
  327. package/dist/cdn/assets/icon/snowIndex32.json +0 -1
  328. package/dist/cdn/assets/icon/soilAdjustedVegetationIndex16.json +0 -1
  329. package/dist/cdn/assets/icon/soilAdjustedVegetationIndex24.json +0 -1
  330. package/dist/cdn/assets/icon/soilAdjustedVegetationIndex32.json +0 -1
  331. package/dist/cdn/assets/icon/vegetationIndex16.json +0 -1
  332. package/dist/cdn/assets/icon/vegetationIndex24.json +0 -1
  333. package/dist/cdn/assets/icon/vegetationIndex32.json +0 -1
  334. package/dist/chunks/resources11.js +0 -63
  335. /package/dist/cdn/{2G2ZTAXT.js → 72YUATHS.js} +0 -0
  336. /package/dist/cdn/{EWIZKNXQ.js → IIA2H2SU.js} +0 -0
  337. /package/dist/cdn/{EZQV6OUW.js → LKL63VXR.js} +0 -0
  338. /package/dist/cdn/{5ZULUIQ5.js → MO64UYDH.js} +0 -0
  339. /package/dist/cdn/{SXELOWJI.js → Q55YTOMB.js} +0 -0
  340. /package/dist/cdn/{U5CB5AOH.js → VXBJOP6X.js} +0 -0
@@ -15,7 +15,46 @@ import { u as useSetFocus } from "../../chunks/useSetFocus.js";
15
15
  import { s as styles$2 } from "../../chunks/sortable.js";
16
16
  import { s as styles$1 } from "../../chunks/header.js";
17
17
  import { u as useInteractive } from "../../chunks/useInteractive.js";
18
- import { C as CSS, I as ICONS, S as SLOTS, a as IDS } from "../../chunks/resources5.js";
18
+ const IDS = {
19
+ content: "content",
20
+ toggle: "toggle",
21
+ header: "header"
22
+ };
23
+ const CSS = {
24
+ actionsEnd: "actions-end",
25
+ container: "container",
26
+ content: "content",
27
+ contentEnd: "content-end",
28
+ contentStart: "content-start",
29
+ description: "description",
30
+ header: "header",
31
+ headerContainer: "header-container",
32
+ headerHasContent: "header--has-content",
33
+ headerDraggable: "header--draggable",
34
+ heading: "heading",
35
+ icon: "icon",
36
+ iconStart: "icon--start",
37
+ iconEnd: "icon--end",
38
+ iconEndContainer: "icon-end-container",
39
+ invalid: "invalid",
40
+ statusIcon: "status-icon",
41
+ title: "title",
42
+ toggle: "toggle",
43
+ toggleIcon: "toggle-icon",
44
+ valid: "valid"
45
+ };
46
+ const SLOTS = {
47
+ actionsEnd: "actions-end",
48
+ contentEnd: "content-end",
49
+ contentStart: "content-start",
50
+ headerMenuActions: "header-menu-actions"
51
+ };
52
+ const ICONS = {
53
+ expanded: "chevron-up",
54
+ collapsed: "chevron-down",
55
+ valid: "check-circle",
56
+ invalid: "exclamation-mark-triangle"
57
+ };
19
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{color:var(--calcite-block-icon-start-color, var(--calcite-block-icon-color, var(--calcite-color-text-3)))}.icon--end{color:var(--calcite-block-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-collapsible-icon-color, var(--calcite-block-icon-color, var(--calcite-color-text-3)))}.toggle:hover .toggle-icon{color:var(--calcite-block-collapsible-icon-color-hover, 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) ease-in-out}.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{color:var(--calcite-block-icon-start-color, var(--calcite-block-icon-color, var(--calcite-color-text-1)))}:host([expanded]) .icon--end{color:var(--calcite-block-icon-end-color, var(--calcite-block-icon-color, var(--calcite-color-text-1)))}:host([expanded]) .content{opacity:1}@starting-style{:host([expanded]){margin-block-start:0;opacity:0}}: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}`;
20
59
  class Block extends LitElement {
21
60
  constructor() {
@@ -41,6 +80,8 @@ class Block extends LitElement {
41
80
  this.sortDisabled = false;
42
81
  this.overlayPositioning = "absolute";
43
82
  this.scale = "m";
83
+ this.setPosition = null;
84
+ this.setSize = null;
44
85
  this.sortHandleOpen = false;
45
86
  this.topLayerDisabled = false;
46
87
  this.calciteBlockBeforeClose = createEvent({ cancelable: false });
@@ -175,12 +216,12 @@ class Block extends LitElement {
175
216
  return [loading ? html`<calcite-scrim .loading=${loading}></calcite-scrim>` : null, defaultSlot];
176
217
  }
177
218
  renderLoaderStatusIcon() {
178
- const { loading, messages, status } = this;
179
- return loading ? keyed("loader", html`<div class=${safeClassMap(CSS.icon)}><calcite-loader inline .label=${messages.loading} .scale=${this.scale}></calcite-loader></div>`) : status ? keyed("status-icon", html`<div class=${safeClassMap(CSS.icon)}><calcite-icon class=${safeClassMap({
219
+ const { loading, messages, status: status2 } = this;
220
+ return loading ? keyed("loader", html`<div class=${safeClassMap(CSS.icon)}><calcite-loader inline .label=${messages.loading} .scale=${this.scale}></calcite-loader></div>`) : status2 ? keyed("status-icon", html`<div class=${safeClassMap(CSS.icon)}><calcite-icon class=${safeClassMap({
180
221
  [CSS.statusIcon]: true,
181
- [CSS.valid]: status == "valid",
182
- [CSS.invalid]: status == "invalid"
183
- })} .icon=${ICONS[status]} .scale=${getIconScale(this.scale)}></calcite-icon></div>`) : null;
222
+ [CSS.valid]: status2 == "valid",
223
+ [CSS.invalid]: status2 == "invalid"
224
+ })} .icon=${ICONS[status2]} .scale=${getIconScale(this.scale)}></calcite-icon></div>`) : null;
184
225
  }
185
226
  renderActionsEnd() {
186
227
  return html`<div class=${safeClassMap(CSS.actionsEnd)} .hidden=${!this.hasEndActions}><slot name=${SLOTS.actionsEnd} @slotchange=${this.actionsEndSlotChangeHandler}></slot></div>`;
@@ -206,7 +247,7 @@ class Block extends LitElement {
206
247
  return keyed(iconValue, html`<calcite-icon class=${safeClassMap(iconClass)} .flipRtl=${flipRtl} .icon=${iconValue} .scale=${getIconScale(this.scale)}></calcite-icon>`);
207
248
  }
208
249
  render() {
209
- const { collapsible, loading, expanded, label, heading, messages, description, menuFlipPlacements, menuPlacement, moveToItems, addToItems, setPosition, setSize, dragDisabled, sortDisabled, iconEnd, hasContentEnd, hasContentStart, iconStart, status } = this;
250
+ const { collapsible, loading, expanded, label, heading, messages, description, menuFlipPlacements, menuPlacement, moveToItems, addToItems, setPosition, setSize, dragDisabled, sortDisabled, iconEnd, hasContentEnd, hasContentStart, iconStart } = this;
210
251
  const toggleLabel = expanded ? messages.collapse : messages.expand;
211
252
  const headerHasContent = !!(heading || description || hasContentEnd || hasContentStart || iconStart || loading || status);
212
253
  const headerContent = html`<header class=${safeClassMap({
@@ -215,7 +256,7 @@ class Block extends LitElement {
215
256
  [CSS.headerDraggable]: this.dragHandle
216
257
  })} id=${IDS.header}>${this.renderIcon("start")}${this.renderContentStart()}${this.renderLoaderStatusIcon()}${this.renderTitle()}</header>`;
217
258
  const collapseIcon = expanded ? ICONS.expanded : ICONS.collapsed;
218
- const headerNode = html`<div class=${safeClassMap(CSS.headerContainer)}>${this.dragHandle ? html`<calcite-sort-handle .addToItems=${addToItems} .disabled=${dragDisabled} .label=${heading || label} .moveToItems=${moveToItems} @calciteSortHandleBeforeClose=${this.handleSortHandleBeforeClose} @calciteSortHandleBeforeOpen=${this.handleSortHandleBeforeOpen} @calciteSortHandleClose=${this.handleSortHandleClose} @calciteSortHandleOpen=${this.handleSortHandleOpen} overlay-positioning=fixed .scale=${this.scale} .setPosition=${setPosition} .setSize=${setSize} .sortDisabled=${sortDisabled} .topLayerDisabled=${this.topLayerDisabled} ${ref(this.setSortHandleEl)}></calcite-sort-handle>` : null}${collapsible ? html`<button aria-controls=${IDS.content} aria-describedby=${IDS.header} .ariaExpanded=${collapsible ? expanded : void 0} class=${safeClassMap(CSS.toggle)} id=${IDS.toggle} @click=${this.onHeaderClick} title=${toggleLabel ?? nothing}>${headerContent}<div class=${safeClassMap(CSS.iconEndContainer)}>${this.renderContentEnd()}${this.renderIcon("end")}<calcite-icon class=${safeClassMap(CSS.toggleIcon)} .icon=${collapseIcon} .scale=${getIconScale(this.scale)}></calcite-icon></div></button>` : headerContent}${iconEnd && !collapsible ? html`<div class=${safeClassMap(CSS.iconEndContainer)}>${this.renderContentEnd()}${this.renderIcon("end")}</div>` : !iconEnd && !collapsible ? this.renderContentEnd() : null}<calcite-action-menu .flipPlacements=${menuFlipPlacements ?? ["top", "bottom"]} .hidden=${!this.hasMenuActions} .label=${messages.options} .overlayPositioning=${this.overlayPositioning} .placement=${menuPlacement} .scale=${this.scale} .topLayerDisabled=${this.topLayerDisabled}><slot name=${SLOTS.headerMenuActions} @slotchange=${this.menuActionsSlotChangeHandler}></slot></calcite-action-menu>${this.renderActionsEnd()}</div>`;
259
+ const headerNode = html`<div class=${safeClassMap(CSS.headerContainer)}>${this.dragHandle ? html`<calcite-sort-handle .addToItems=${addToItems} .disabled=${dragDisabled} .label=${heading || label} .moveToItems=${moveToItems} @calciteSortHandleBeforeClose=${this.handleSortHandleBeforeClose} @calciteSortHandleBeforeOpen=${this.handleSortHandleBeforeOpen} @calciteSortHandleClose=${this.handleSortHandleClose} @calciteSortHandleOpen=${this.handleSortHandleOpen} overlay-positioning=fixed .scale=${this.scale} .setPosition=${setPosition} .setSize=${setSize} .sortDisabled=${sortDisabled} .topLayerDisabled=${this.topLayerDisabled} ${ref(this.setSortHandleEl)}></calcite-sort-handle>` : null}${collapsible ? html`<button aria-controls=${IDS.content} aria-describedby=${IDS.header} .ariaExpanded=${collapsible ? expanded : null} class=${safeClassMap(CSS.toggle)} id=${IDS.toggle} @click=${this.onHeaderClick} title=${toggleLabel ?? nothing}>${headerContent}<div class=${safeClassMap(CSS.iconEndContainer)}>${this.renderContentEnd()}${this.renderIcon("end")}<calcite-icon class=${safeClassMap(CSS.toggleIcon)} .icon=${collapseIcon} .scale=${getIconScale(this.scale)}></calcite-icon></div></button>` : headerContent}${iconEnd && !collapsible ? html`<div class=${safeClassMap(CSS.iconEndContainer)}>${this.renderContentEnd()}${this.renderIcon("end")}</div>` : !iconEnd && !collapsible ? this.renderContentEnd() : null}<calcite-action-menu .flipPlacements=${menuFlipPlacements ?? ["top", "bottom"]} .hidden=${!this.hasMenuActions} .label=${messages.options} .overlayPositioning=${this.overlayPositioning} .placement=${menuPlacement} .scale=${this.scale} .topLayerDisabled=${this.topLayerDisabled}><slot name=${SLOTS.headerMenuActions} @slotchange=${this.menuActionsSlotChangeHandler}></slot></calcite-action-menu>${this.renderActionsEnd()}</div>`;
219
260
  return this.interactiveContainer({ disabled: this.disabled, children: html`<article aria-label=${label ?? nothing} .ariaBusy=${loading} class=${safeClassMap({
220
261
  [CSS.container]: true
221
262
  })}>${headerNode}<section aria-labelledby=${IDS.toggle} class=${safeClassMap(CSS.content)} .hidden=${!expanded} id=${IDS.content}>${this.renderScrim()}</section></article>` });
@@ -10,7 +10,9 @@ import { u as useSetFocus } from "../../chunks/useSetFocus.js";
10
10
  import { u as useCancelable } from "../../chunks/useCancelable.js";
11
11
  import { u as useInteractive } from "../../chunks/useInteractive.js";
12
12
  import { u as useSortable } from "../../chunks/useSortable.js";
13
- import { i as isBlock } from "../../chunks/resources5.js";
13
+ function isBlock(element) {
14
+ return element.tagName === "CALCITE-BLOCK";
15
+ }
14
16
  const CSS = {
15
17
  container: "container",
16
18
  groupContainer: "group-container",
@@ -178,12 +180,12 @@ class BlockGroup extends LitElement {
178
180
  this.calciteBlockGroupOrderChange.emit(detail);
179
181
  }
180
182
  setParentBlockGroup() {
181
- this.parentBlockGroupEl = this.el.parentElement?.closest(blockGroupSelector) || void 0;
183
+ this.parentBlockGroupEl = this.el.parentElement?.closest(blockGroupSelector);
182
184
  }
183
185
  handleDefaultSlotChange(event) {
184
186
  const blockChildren = [];
185
187
  this.blockAndGroups = slotChangeGetAssignedElements(event).filter((el) => {
186
- if (isBlock(el)) {
188
+ if (el.matches(blockSelector)) {
187
189
  blockChildren.push(el);
188
190
  }
189
191
  return el.matches(blockSelector) || el.matches(blockGroupSelector);
@@ -21,11 +21,11 @@ export abstract class BlockSection extends LitElement {
21
21
  */
22
22
  accessor expanded: boolean;
23
23
  /** Specifies an icon to display at the end of the component. */
24
- accessor iconEnd: IconName | undefined;
24
+ accessor iconEnd: IconName;
25
25
  /** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
26
- accessor iconFlipRtl: FlipContext | undefined;
26
+ accessor iconFlipRtl: FlipContext;
27
27
  /** Specifies an icon to display at the start of the component. */
28
- accessor iconStart: IconName | undefined;
28
+ accessor iconStart: IconName;
29
29
  /** Overrides individual strings used by the component. */
30
30
  accessor messageOverrides: {
31
31
  collapse?: string;
@@ -49,9 +49,9 @@ export abstract class BlockSection extends LitElement {
49
49
  *
50
50
  * @deprecated in v2.8.1, removal target v6.0.0 - Use `icon-start` instead.
51
51
  */
52
- accessor status: Status | undefined;
52
+ accessor status: Status;
53
53
  /** The component header text. */
54
- accessor text: string | undefined;
54
+ accessor text: string;
55
55
  /**
56
56
  * Specifies how the component's toggle is displayed, where:
57
57
  *
@@ -94,7 +94,7 @@ class BlockSection extends LitElement {
94
94
  }
95
95
  renderStatusIcon() {
96
96
  const { status } = this;
97
- const statusIcon = status && ICONS[status];
97
+ const statusIcon = ICONS[status] ?? false;
98
98
  const statusIconClasses = {
99
99
  [CSS.statusIcon]: true,
100
100
  [CSS.valid]: status == "valid",
@@ -50,15 +50,15 @@ export abstract class Button extends LitElement {
50
50
  *
51
51
  * When not set, the component is associated with its ancestor form element, if one exists.
52
52
  */
53
- accessor form: string | undefined;
53
+ accessor form: string;
54
54
  /** Specifies the URL of the linked resource, which can be set as an absolute or relative path. */
55
- accessor href: string | undefined;
55
+ accessor href: string;
56
56
  /** Specifies an icon to display at the end of the component. */
57
- accessor iconEnd: IconName | undefined;
57
+ accessor iconEnd: IconName;
58
58
  /** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
59
- accessor iconFlipRtl: FlipContext | undefined;
59
+ accessor iconFlipRtl: FlipContext;
60
60
  /** Specifies an icon to display at the start of the component. */
61
- accessor iconStart: IconName | undefined;
61
+ accessor iconStart: IconName;
62
62
  /**
63
63
  * Specifies the kind of the component, which will apply to the border and background if applicable.
64
64
  *
@@ -66,7 +66,7 @@ export abstract class Button extends LitElement {
66
66
  */
67
67
  accessor kind: Extract<"brand" | "danger" | "inverse" | "neutral", Kind>;
68
68
  /** Specifies an accessible label for the component. */
69
- accessor label: string | undefined;
69
+ accessor label: string;
70
70
  /**
71
71
  * When `true`, a busy indicator is displayed.
72
72
  *
@@ -82,7 +82,7 @@ export abstract class Button extends LitElement {
82
82
  *
83
83
  * @see [MDN - rel](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel)
84
84
  */
85
- accessor rel: string | undefined;
85
+ accessor rel: string;
86
86
  /**
87
87
  * When `true`, adds a round style to the component.
88
88
  *
@@ -106,7 +106,7 @@ export abstract class Button extends LitElement {
106
106
  *
107
107
  * @see [MDN - target](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target)
108
108
  */
109
- accessor target: string | undefined;
109
+ accessor target: string;
110
110
  /**
111
111
  * Specifies the default behavior of the component.
112
112
  *
@@ -96,7 +96,7 @@ class Button extends LitElement {
96
96
  setTooltipText() {
97
97
  const { contentRef: { value: contentEl } } = this;
98
98
  if (contentEl) {
99
- this.tooltipText = contentEl.offsetWidth < contentEl.scrollWidth ? this.el.innerText || void 0 : void 0;
99
+ this.tooltipText = contentEl.offsetWidth < contentEl.scrollWidth ? this.el.innerText || null : null;
100
100
  }
101
101
  }
102
102
  setChildEl(el) {
@@ -111,13 +111,13 @@ class Button extends LitElement {
111
111
  const iconStartEl = html`<calcite-icon class=${safeClassMap({ [CSS.icon]: true, [CSS.iconStart]: true })} .flipRtl=${this.iconFlipRtl === "start" || this.iconFlipRtl === "both"} .icon=${this.iconStart} .scale=${getIconScale(this.scale)}></calcite-icon>`;
112
112
  const iconEndEl = html`<calcite-icon class=${safeClassMap({ [CSS.icon]: true, [CSS.iconEnd]: true })} .flipRtl=${this.iconFlipRtl === "end" || this.iconFlipRtl === "both"} .icon=${this.iconEnd} .scale=${getIconScale(this.scale)}></calcite-icon>`;
113
113
  const contentEl = html`<span class=${safeClassMap(CSS.content)} ${ref(this.contentRef)}><slot></slot></span>`;
114
- return this.interactiveContainer({ disabled: this.disabled, children: html$1`<${DynamicHtmlTag} .ariaBusy=${this.loading} .ariaExpanded=${this.el.ariaExpanded ? this.el.ariaExpanded : void 0} .ariaLabel=${!this.loading ? getLabelText(this) : this.messages.loading} aria-live=polite class=${safeClassMap({
114
+ return this.interactiveContainer({ disabled: this.disabled, children: html$1`<${DynamicHtmlTag} .ariaBusy=${this.loading} .ariaExpanded=${this.el.ariaExpanded ? this.el.ariaExpanded : null} .ariaLabel=${!this.loading ? getLabelText(this) : this.messages.loading} aria-live=polite class=${safeClassMap({
115
115
  [CSS.buttonPadding]: noStartEndIcons,
116
116
  [CSS.buttonPaddingShrunk]: !noStartEndIcons,
117
117
  [CSS.contentSlotted]: this.hasContent,
118
118
  [CSS.iconStartEmpty]: !this.iconStart,
119
119
  [CSS.iconEndEmpty]: !this.iconEnd
120
- })} .disabled=${childElType === "button" ? this.disabled : void 0} download=${(childElType === "a" ? this.download === true || this.download === "" ? "" : this.download || void 0 : void 0) ?? nothing} href=${(childElType === "a" ? this.href : void 0) ?? nothing} name=${(childElType === "button" ? this.name : void 0) ?? nothing} rel=${(childElType === "a" ? this.rel : void 0) ?? nothing} tabindex=${(this.disabled ? -1 : void 0) ?? nothing} target=${(childElType === "a" ? this.target : void 0) ?? nothing} title=${this.tooltipText ?? nothing} type=${(childElType === "button" ? this.type : void 0) ?? nothing} ${ref(this.setChildEl)}>${loaderNode}${this.iconStart ? iconStartEl : null}${this.hasContent ? contentEl : null}${this.iconEnd ? iconEndEl : null}</${DynamicHtmlTag}>` });
120
+ })} .disabled=${childElType === "button" ? this.disabled : null} download=${(childElType === "a" ? this.download === true || this.download === "" ? "" : this.download || null : null) ?? nothing} href=${(childElType === "a" && this.href) ?? nothing} name=${(childElType === "button" && this.name) ?? nothing} rel=${(childElType === "a" && this.rel) ?? nothing} tabindex=${(this.disabled ? -1 : null) ?? nothing} target=${(childElType === "a" && this.target) ?? nothing} title=${this.tooltipText ?? nothing} type=${(childElType === "button" ? this.type : null) ?? nothing} ${ref(this.setChildEl)}>${loaderNode}${this.iconStart ? iconStartEl : null}${this.hasContent ? contentEl : null}${this.iconEnd ? iconEndEl : null}</${DynamicHtmlTag}>` });
121
121
  }
122
122
  }
123
123
  customElement("calcite-button", Button);
@@ -30,7 +30,7 @@ export abstract class Card extends LitElement {
30
30
  */
31
31
  accessor disabled: boolean;
32
32
  /** Specifies an accessible label for the component. */
33
- accessor label: string | undefined;
33
+ accessor label: string;
34
34
  /**
35
35
  * When `true`, a busy indicator is displayed.
36
36
  *
@@ -70,6 +70,8 @@ class Carousel extends LitElement {
70
70
  this.setMaxItemsToBreakpoint(width);
71
71
  };
72
72
  this.resizeObserver = createObserver("resize", (entries) => entries.forEach(this.resizeHandler));
73
+ this.slideDurationInterval = null;
74
+ this.slideInterval = null;
73
75
  this.tabListRef = createRef();
74
76
  this.timer = () => {
75
77
  let time = this.slideDurationRemaining;
@@ -95,7 +97,6 @@ class Carousel extends LitElement {
95
97
  this.items = [];
96
98
  this.maxItems = centerItemsByBreakpoint.xxsmall;
97
99
  this.playing = false;
98
- this.selectedIndex = 0;
99
100
  this.slideDurationRemaining = 1;
100
101
  this.suspendedDueToFocus = false;
101
102
  this.suspendedDueToHover = false;
@@ -121,7 +122,7 @@ class Carousel extends LitElement {
121
122
  this.styles = styles;
122
123
  }
123
124
  async play() {
124
- if (this.playing || !this.hasMultiple || this.autoplay !== "" && this.autoplay !== true && this.autoplay !== "paused") {
125
+ if (this.playing || !this.hasMultiple || this.autoplay !== "" && !this.autoplay && this.autoplay !== "paused") {
125
126
  return;
126
127
  }
127
128
  this.handlePlay(true);
@@ -286,7 +287,7 @@ class Carousel extends LitElement {
286
287
  }
287
288
  }
288
289
  handleItemSelection(event) {
289
- const item = event.currentTarget;
290
+ const item = event.target;
290
291
  const requestedPosition = parseInt(item.dataset.index);
291
292
  if (requestedPosition === this.selectedIndex) {
292
293
  return;
@@ -354,7 +355,7 @@ class Carousel extends LitElement {
354
355
  case " ":
355
356
  case "Enter":
356
357
  event.preventDefault();
357
- if (this.autoplay === "" || this.autoplay === true || this.autoplay === "paused") {
358
+ if (this.autoplay === "" || this.autoplay || this.autoplay === "paused") {
358
359
  this.toggleRotation();
359
360
  }
360
361
  break;
@@ -424,7 +425,7 @@ class Carousel extends LitElement {
424
425
  return html`<div class=${safeClassMap({
425
426
  [CSS.pagination]: true,
426
427
  [CSS.containerOverlaid]: this.controlOverlay
427
- })} @keydown=${this.tabListKeyDownHandler} ${ref(this.tabListRef)}>${(this.playing || this.autoplay === "" || this.autoplay === true || this.autoplay === "paused") && this.hasMultiple && this.renderRotationControl() || ""}${this.arrowType === "inline" && this.hasMultiple && this.renderArrow("previous") || ""}${this.paginationDisabled ? this.renderPaginationAriaLive() : this.renderPaginationItems()}${this.arrowType === "inline" && this.hasMultiple && this.renderArrow("next") || ""}</div>`;
428
+ })} @keydown=${this.tabListKeyDownHandler} ${ref(this.tabListRef)}>${(this.playing || this.autoplay === "" || this.autoplay || this.autoplay === "paused") && this.hasMultiple && this.renderRotationControl() || ""}${this.arrowType === "inline" && this.hasMultiple && this.renderArrow("previous") || ""}${this.paginationDisabled ? this.renderPaginationAriaLive() : this.renderPaginationItems()}${this.arrowType === "inline" && this.hasMultiple && this.renderArrow("next") || ""}</div>`;
428
429
  }
429
430
  renderPaginationItems() {
430
431
  const { selectedIndex, maxItems, items, label, handleItemSelection } = this;
@@ -27,7 +27,7 @@ export abstract class Checkbox extends LitElement {
27
27
  *
28
28
  * When not set, the component is associated with its ancestor form element, if one exists.
29
29
  */
30
- accessor form: string | undefined;
30
+ accessor form: string;
31
31
  /**
32
32
  * When `true`, the component is initially indeterminate, which is independent from its `checked` value.
33
33
  *
@@ -38,13 +38,13 @@ export abstract class Checkbox extends LitElement {
38
38
  */
39
39
  accessor indeterminate: boolean;
40
40
  /** Specifies an accessible label for the component. */
41
- accessor label: string | undefined;
41
+ accessor label: string;
42
42
  /** Specifies the component's label text. */
43
- accessor labelText: string | undefined;
43
+ accessor labelText: string;
44
44
  /** Overrides individual strings used by the component. */
45
45
  accessor messageOverrides: { required?: string; };
46
46
  /** Specifies the name of the component. Required to pass the component's `value` on form submission. */
47
- accessor name: string | undefined;
47
+ accessor name: string;
48
48
  /**
49
49
  * When `true` and the component resides in a form,
50
50
  * the component must have a value in order for the form to submit.
@@ -9,7 +9,7 @@ import { g as getIconScale } from "../../chunks/component.js";
9
9
  import { u as useT9n } from "../../chunks/useT9n.js";
10
10
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
11
11
  import { u as useInteractive } from "../../chunks/useInteractive.js";
12
- import { S as SLOTS, C as CSS, I as ICONS } from "../../chunks/resources6.js";
12
+ import { S as SLOTS, C as CSS, I as ICONS } from "../../chunks/resources5.js";
13
13
  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:inline-flex;cursor:default;border-radius:var(--calcite-chip-corner-radius, 9999px)}:host([closed]){display:none}:host([appearance=outline]) .container,:host([appearance=outline-fill]) .container{color:var(--calcite-chip-text-color, var(--calcite-color-text-1))}:host([appearance=outline]):host([kind=brand]),:host([appearance=outline-fill]):host([kind=brand]){--calcite-internal-chip-border-color: var(--calcite-chip-border-color, var(--calcite-color-brand));--calcite-internal-chip-selectable-hover-border-color: var(--calcite-chip-border-color, var(--calcite-color-brand));--calcite-internal-chip-selectable-active-border-color: var( --calcite-chip-border-color, var(--calcite-color-brand) )}:host([appearance=outline]):host([kind=inverse]),:host([appearance=outline-fill]):host([kind=inverse]){--calcite-internal-chip-border-color: var(--calcite-chip-border-color, var(--calcite-color-border-inverse))}:host([appearance=outline]):host([kind=neutral]),:host([appearance=outline-fill]):host([kind=neutral]){--calcite-internal-chip-border-color: var(--calcite-chip-border-color, var(--calcite-color-border-1))}:host([appearance=outline]){--calcite-internal-chip-background-color: transparent}:host([appearance=outline-fill]){--calcite-internal-chip-background-color: var(--calcite-chip-background-color, var(--calcite-color-foreground-1))}:host([appearance=solid]){--calcite-internal-chip-border-color: transparent;--calcite-internal-chip-selectable-hover-border-color: transparent;--calcite-internal-chip-selectable-active-border-color: transparent}:host([appearance=solid]):host([kind=brand]),:host([appearance=solid]):host([kind=inverse]){--calcite-internal-chip-close-background-color-hover: var(--calcite-color-transparent-inverse-hover);--calcite-internal-chip-close-background-color-press: var(--calcite-color-transparent-inverse-press);--calcite-internal-chip-close-icon-color: var(--calcite-color-text-inverse);--calcite-internal-chip-close-icon-color-hover: var(--calcite-color-text-inverse)}:host([appearance=solid]):host([kind=brand]) .container,:host([appearance=solid]):host([kind=inverse]) .container{color:var(--calcite-chip-text-color, var(--calcite-color-text-inverse))}:host([appearance=solid]):host([kind=brand]) .close,:host([appearance=solid]):host([kind=inverse]) .close{--calcite-color-focus: var(--calcite-color-text-inverse)}:host([appearance=solid]):host([kind=brand]){--calcite-internal-chip-background-color: var(--calcite-chip-background-color, var(--calcite-color-brand))}:host([appearance=solid]):host([kind=inverse]){--calcite-internal-chip-background-color: var(--calcite-chip-background-color, var(--calcite-color-inverse))}:host([appearance=solid]):host([kind=neutral]){--calcite-internal-chip-background-color: var(--calcite-chip-background-color, var(--calcite-color-foreground-2))}:host([kind=neutral]) .container{color:var(--calcite-chip-text-color, var(--calcite-color-text-1))}:host([selected]) .select-icon{opacity:1}:host([appearance=solid]):host([kind=neutral]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-foreground-3);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-border-2)}:host([appearance=solid]):host([kind=inverse]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-inverse-hover);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-inverse-press)}:host([appearance=solid]):host([kind=brand]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-brand-hover);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-brand-press)}:host([appearance=outline-fill]):host([kind=neutral]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-foreground-2);--calcite-internal-chip-selectable-hover-border-color: var(--calcite-color-border-input);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-foreground-3);--calcite-internal-chip-selectable-active-border-color: var(--calcite-color-text-3)}:host([appearance=outline-fill]):host([kind=inverse]),:host([appearance=outline-fill]):host([kind=brand]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-foreground-2);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-foreground-3)}:host([appearance=outline]):host([kind=neutral]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-transparent-hover);--calcite-internal-chip-selectable-hover-border-color: var(--calcite-color-border-input);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-transparent-press);--calcite-internal-chip-selectable-active-border-color: var(--calcite-color-text-3)}:host([appearance=outline]):host([kind=inverse]),:host([appearance=outline]):host([kind=brand]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-transparent-hover);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-transparent-press)}:host([scale=s]){--calcite-internal-chip-close-padding: var(--calcite-spacing-none)}:host([scale=s]) .container{--calcite-internal-chip-block-size: var(--calcite-size-sm, 1.5rem) ;--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-font-size: var(--calcite-font-size--2);--calcite-internal-chip-icon-size: var(--calcite-size-xs, 1rem) ;--calcite-internal-chip-icon-space: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-image-size: var(--calcite-spacing-xl, 1.25rem) ;--calcite-internal-chip-title-space: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-close-size: var(--calcite-size-xs, 1rem) }:host([scale=s]) .container:not(.closable).is-circle{--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px);--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-px)}:host([scale=s]) .container.image--slotted:has(.chip-icon),:host([scale=s]) .container.image--slotted.text--slotted,:host([scale=s]) .container.image--slotted.closable{--calcite-internal-chip-image-space-x-end: var(--calcite-spacing-xxs, .25rem) }:host([scale=s]) .container.image--slotted:not(.text--slotted,:has(.chip-icon)),:host([scale=s]) .container.image--slotted:not(.selectable){--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px)}:host([scale=s]) .container.selectable.single:not(.is-circle).image--slotted{--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px)}:host([scale=s]) .container.selectable.single:not(.is-circle).selected{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-none, 0)}:host([scale=s]) .container.selectable.single:not(.is-circle).selected.image--slotted{--calcite-internal-chip-select-space-x-end: .5rem ;--calcite-internal-chip-select-space-x-start: .125rem }:host([scale=s]) .container.multiple:not(.is-circle){--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=s]) .container.multiple:not(.is-circle).image--slotted{--calcite-internal-chip-select-space-x-end: .5rem ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px)}:host([scale=s]) .container.multiple:not(.is-circle).image--slotted:not(.text--slotted){--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xs, .375rem) }:host([scale=m]){--calcite-internal-chip-close-padding: var(--calcite-spacing-xxs)}:host([scale=m]) .container{--calcite-internal-chip-block-size: var(--calcite-size-md, 2rem) ;--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-font-size: var(--calcite-font-size--1);--calcite-internal-chip-icon-size: var(--calcite-size-sm, 1.5rem) ;--calcite-internal-chip-icon-space: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-image-size: var(--calcite-size-sm, 1.5rem) ;--calcite-internal-chip-title-space: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-close-size: var(--calcite-size-sm, 1.5rem) }:host([scale=m]) .container:not(.closable).is-circle{--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-px);--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px)}:host([scale=m]) .container.image--slotted:not(.is-circle){--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=m]) .container.image--slotted:has(.chip-icon),:host([scale=m]) .container.image--slotted.text--slotted,:host([scale=m]) .container.image--slotted.closable{--calcite-internal-chip-image-space-x-end: var(--calcite-spacing-xs, .375rem) }:host([scale=m]) .container.selectable.single:not(.is-circle).image--slotted{--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=m]) .container.selectable.single:not(.is-circle).selected{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-px);--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-none, 0)}:host([scale=m]) .container.selectable.single:not(.is-circle).selected.image--slotted{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xs, .375rem) }:host([scale=m]) .container.multiple:not(.is-circle){--calcite-internal-chip-select-space-x-end: .125rem ;--calcite-internal-chip-select-space-x-start: .125rem }:host([scale=m]) .container.multiple:not(.is-circle).image--slotted{--calcite-internal-chip-select-space-x-end: .5rem ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=m]) .container.closable:not(.is-circle){--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xxs, .25rem) }:host([scale=l]){--calcite-internal-chip-close-padding: var(--calcite-spacing-xxs)}:host([scale=l]) .container{--calcite-internal-chip-block-size: 2.75rem ;--calcite-internal-chip-container-space-x-end: .5rem ;--calcite-internal-chip-container-space-x-start: .5rem ;--calcite-internal-chip-font-size: var(--calcite-font-size-0);--calcite-internal-chip-icon-size: var(--calcite-size-md, 2rem) ;--calcite-internal-chip-icon-space: .5rem ;--calcite-internal-chip-image-size: var(--calcite-size-md, 2rem) ;--calcite-internal-chip-title-space: .5rem ;--calcite-internal-close-size: var(--calcite-size-md, 2rem) }:host([scale=l]) .container:not(.closable).is-circle{--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=l]) .container.image--slotted:not(.is-circle){--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xs, .375rem) }:host([scale=l]) .container.image--slotted:has(.chip-icon),:host([scale=l]) .container.image--slotted.text--slotted,:host([scale=l]) .container.image--slotted.closable{--calcite-internal-chip-image-space-x-end: .5rem }:host([scale=l]) .container.selectable.single:not(.is-circle).image--slotted{--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xs, .375rem) }:host([scale=l]) .container.selectable.single:not(.is-circle).selected{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-none, 0)}:host([scale=l]) .container.selectable.single:not(.is-circle).selected.image--slotted{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-select-space-x-start: .5rem }:host([scale=l]) .container.multiple:not(.is-circle){--calcite-internal-chip-container-space-x-start: .5rem ;--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=l]) .container.multiple:not(.is-circle).image--slotted{--calcite-internal-chip-select-space-x-end: .75rem }:host([scale=l]) .container.closable:not(.is-circle){--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xs, .375rem) }.container{box-sizing:border-box;display:inline-flex;block-size:100%;max-inline-size:100%;align-items:center;justify-content:center;font-weight:var(--calcite-font-weight-medium);outline-color:transparent;background-color:var(--calcite-internal-chip-background-color);border-color:var(--calcite-internal-chip-border-color);border-radius:var(--calcite-chip-corner-radius, 9999px);border-width:var(--calcite-border-width-sm);border-style:solid;font-size:var(--calcite-internal-chip-font-size, var(--calcite-font-size));padding-inline-start:var(--calcite-internal-chip-container-space-x-start);padding-inline-end:var(--calcite-internal-chip-container-space-x-end);block-size:var(--calcite-internal-chip-block-size, auto);inline-size:var(--calcite-internal-chip-inline-size, auto);min-inline-size:var(--calcite-internal-chip-block-size, auto)}.container:hover .select-icon--active{opacity:var(--calcite-opacity-full, 1)}.container.selectable{cursor:pointer}.container.selectable:hover{background-color:var(--calcite-internal-chip-selectable-hover-background-color);border-color:var(--calcite-internal-chip-selectable-hover-border-color)}.container.selectable:active{background-color:var(--calcite-internal-chip-selectable-active-background-color);border-color:var(--calcite-internal-chip-selectable-active-border-color)}.container:not(.non-interactive):focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.container.text--slotted .title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.container:not(.text--slotted) .title,.container:not(.image--slotted) .image-container{display:none}.container.is-circle .chip-icon,.container.is-circle .image-container{padding:var(--calcite-spacing-none, 0)}.title{padding-inline:var(--calcite-internal-chip-title-space)}.image-container{display:inline-flex;overflow:hidden;align-items:center;justify-content:center;pointer-events:none;block-size:var(--calcite-internal-chip-image-size, var(--calcite-spacing-xxl, 1.5rem));inline-size:var(--calcite-internal-chip-image-size, var(--calcite-spacing-xxl, 1.5rem));padding-inline-start:var(--calcite-spacing-none, 0);padding-inline-end:var(--calcite-internal-chip-image-space-x-end, 0)}.chip-icon{position:relative;margin-block:0px;display:inline-flex;transition-timing-function:cubic-bezier(.4,0,.2,1);color:var(--calcite-chip-icon-color, var(--calcite-chip-text-color, var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))));padding-inline:var(--calcite-internal-chip-icon-space, var(--calcite-spacing-xs, .375rem))}.select-icon{align-self:center;justify-content:center;align-items:center;display:flex;inset-block-start:-1px;position:absolute;visibility:hidden;inline-size:auto;opacity:0;transition:opacity .15s ease-in-out,inline-size .15s ease-in-out;color:var(--calcite-chip-select-icon-color, currentColor)}.select-icon.select-icon--active{position:relative;visibility:visible;opacity:var(--calcite-opacity-half, .5);color:var(--calcite-chip-select-icon-color-press, var(--calcite-chip-select-icon-color-pressed, var(--calcite-chip-select-icon-color, currentColor)))}.multiple .select-icon{display:flex;align-items:center;justify-content:center}.multiple .select-icon,.single .select-icon--active{padding-inline-start:var(--calcite-internal-chip-select-space-x-start);padding-inline-end:var(--calcite-internal-chip-select-space-x-end);block-size:var(--calcite-internal-chip-icon-size, var(--calcite-spacing-xxl, 1.5rem));inline-size:var(--calcite-internal-chip-icon-size, var(--calcite-spacing-xxl, 1.5rem))}.close{--calcite-action-background-color-hover: var(--calcite-internal-chip-close-background-color-hover);--calcite-action-background-color-press: var(--calcite-internal-chip-close-background-color-press);--calcite-action-corner-radius: var(--calcite-corner-radius-pill);--calcite-action-text-color: var( --calcite-chip-close-icon-color, var(--calcite-close-icon-color, var(--calcite-internal-chip-close-icon-color)) );--calcite-action-text-color-press: var( --calcite-chip-close-icon-color, var(--calcite-close-icon-color, var(--calcite-internal-chip-close-icon-color-hover)) );--calcite-icon-color: var(--calcite-action-text-color);--calcite-internal-action-min-height: unset;--calcite-internal-action-spacing: var(--calcite-internal-chip-close-padding)}slot[name=image]::slotted(*){display:flex;block-size:100%;inline-size:100%;overflow:hidden;border-radius:50%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
14
14
  class Chip extends LitElement {
15
15
  constructor() {
@@ -91,7 +91,7 @@ class ChipGroup extends LitElement {
91
91
  event.stopPropagation();
92
92
  }
93
93
  updateItems(event) {
94
- const itemsFromSlot = this.slotRef.value?.assignedElements({ flatten: true }).filter((el) => el?.matches("calcite-chip")) || [];
94
+ const itemsFromSlot = this.slotRef.value?.assignedElements({ flatten: true }).filter((el) => el?.matches("calcite-chip"));
95
95
  this.items = !event ? itemsFromSlot : slotChangeGetAssignedElements(event);
96
96
  if (this.items?.length < 1) {
97
97
  return;
@@ -95,7 +95,7 @@ export abstract class ColorPicker extends LitElement {
95
95
  value?: string;
96
96
  };
97
97
  /** Specifies the Unicode numeral system used by the component for localization. */
98
- accessor numberingSystem: NumberingSystem | undefined;
98
+ accessor numberingSystem: NumberingSystem;
99
99
  /**
100
100
  * When `true`, hides the saved colors section.
101
101
  *
@@ -109,7 +109,7 @@ export abstract class ColorPicker extends LitElement {
109
109
  */
110
110
  accessor scale: Scale;
111
111
  /** Specifies the storage ID for colors. */
112
- accessor storageId: string | undefined;
112
+ accessor storageId: string;
113
113
  /**
114
114
  * The component's value, where the value can be a CSS color string, or a RGB, HSL or HSV object.
115
115
  *
@@ -118,7 +118,7 @@ export abstract class ColorPicker extends LitElement {
118
118
  * @see [MDN - CSS Color](https://developer.mozilla.org/en-US/docs/Web/CSS/color),
119
119
  * @see [ColorValue](https://github.com/Esri/calcite-design-system/blob/dev/packages/components/src/components/color-picker/interfaces.ts#L10).
120
120
  */
121
- accessor value: ColorValue | null | undefined;
121
+ accessor value: ColorValue | null;
122
122
  /**
123
123
  * Sets focus on the component's first focusable element.
124
124
  *
@@ -26,11 +26,13 @@ class ColorPicker extends LitElement {
26
26
  this.colorFieldScopeRef = createRef();
27
27
  this.direction = useDirection();
28
28
  this.hueScopeRef = createRef();
29
+ this.internalColorUpdateContext = null;
29
30
  this.isActiveChannelInputEmpty = false;
30
31
  this.mode = CSSColorMode.HEX;
31
32
  this.opacityScopeRef = createRef();
32
33
  this.resizeObserver = createObserver("resize", (entries) => this.resizeCanvas(entries));
33
34
  this.shiftKeyChannelAdjustment = 0;
35
+ this.upOrDownArrowKeyTracker = null;
34
36
  this._valueWasSet = false;
35
37
  this.messages = useT9n({ blocking: true });
36
38
  this.captureColorFieldColor = (x, y, skipEqual = true) => {
@@ -92,7 +94,7 @@ class ColorPicker extends LitElement {
92
94
  return;
93
95
  }
94
96
  const previouslyDragging = this.activeCanvasInfo;
95
- this.activeCanvasInfo = void 0;
97
+ this.activeCanvasInfo = null;
96
98
  this.drawColorControls();
97
99
  if (previouslyDragging) {
98
100
  this.calciteColorPickerChange.emit();
@@ -166,9 +168,8 @@ class ColorPicker extends LitElement {
166
168
  }
167
169
  set value(value) {
168
170
  const oldValue = this._value;
169
- const effectiveValue = value || void 0;
170
- this._value = effectiveValue;
171
- this.handleValueChange(effectiveValue, oldValue);
171
+ this._value = value;
172
+ this.handleValueChange(value, oldValue);
172
173
  this._valueWasSet = true;
173
174
  }
174
175
  async setFocus(options) {
@@ -183,8 +184,7 @@ class ColorPicker extends LitElement {
183
184
  if (!this._valueWasSet) {
184
185
  this._value ??= normalizeHex(hexify(DEFAULT_COLOR, this.alphaChannel));
185
186
  }
186
- const { clearable, color, format } = this;
187
- const value = this.value;
187
+ const { clearable, color, format, value } = this;
188
188
  const willSetNoColor = clearable && !value;
189
189
  const parsedMode = parseMode(value);
190
190
  const valueIsCompatible = willSetNoColor || format === "auto" && parsedMode || format === parsedMode;
@@ -197,11 +197,8 @@ class ColorPicker extends LitElement {
197
197
  this.updateStaticDimensions(this.scale);
198
198
  this.updateDynamicDimensions(STATIC_DIMENSIONS[this.scale].minWidth);
199
199
  const storageKey = `${DEFAULT_STORAGE_KEY_PREFIX}${this.storageId}`;
200
- if (this.storageId) {
201
- const storedItem = localStorage.getItem(storageKey);
202
- if (storedItem) {
203
- this.savedColors = JSON.parse(storedItem);
204
- }
200
+ if (this.storageId && localStorage.getItem(storageKey)) {
201
+ this.savedColors = JSON.parse(localStorage.getItem(storageKey));
205
202
  }
206
203
  }
207
204
  willUpdate(changes) {
@@ -266,7 +263,7 @@ class ColorPicker extends LitElement {
266
263
  return;
267
264
  }
268
265
  modeChanged = this.mode !== nextMode;
269
- this.setMode(nextMode, this.internalColorUpdateContext === void 0);
266
+ this.setMode(nextMode, this.internalColorUpdateContext === null);
270
267
  }
271
268
  const dragging = this.activeCanvasInfo;
272
269
  if (this.internalColorUpdateContext === "initial") {
@@ -326,7 +323,7 @@ class ColorPicker extends LitElement {
326
323
  const input = event.target;
327
324
  const hex = input.value;
328
325
  if (clearable && !hex) {
329
- this.internalColorSet(void 0);
326
+ this.internalColorSet(null);
330
327
  return;
331
328
  }
332
329
  const normalizedHex = color && normalizeHex(hexify(color, alphaCompatible(this.mode)));
@@ -347,7 +344,7 @@ class ColorPicker extends LitElement {
347
344
  if (!input.value) {
348
345
  inputValue = "";
349
346
  this.isActiveChannelInputEmpty = true;
350
- this.upOrDownArrowKeyTracker = void 0;
347
+ this.upOrDownArrowKeyTracker = null;
351
348
  } else {
352
349
  const value = Number(input.value);
353
350
  const adjustedValue = value + this.shiftKeyChannelAdjustment;
@@ -367,7 +364,7 @@ class ColorPicker extends LitElement {
367
364
  const channels = [...this.channels];
368
365
  const restoreValueDueToEmptyInput = !input.value && !this.clearable;
369
366
  if (restoreValueDueToEmptyInput) {
370
- input.value = channels[channelIndex]?.toString() ?? "";
367
+ input.value = channels[channelIndex]?.toString();
371
368
  }
372
369
  }
373
370
  handleChannelFocus(event) {
@@ -402,18 +399,18 @@ class ColorPicker extends LitElement {
402
399
  handleChannelChange(event) {
403
400
  const input = event.currentTarget;
404
401
  const channelIndex = Number(input.getAttribute("data-channel-index"));
402
+ const channels = [...this.channels];
405
403
  const shouldClearChannels = this.clearable && !input.value;
406
404
  if (shouldClearChannels) {
407
- this.channels = [void 0, void 0, void 0, void 0];
408
- this.internalColorSet(void 0);
405
+ this.channels = [null, null, null, null];
406
+ this.internalColorSet(null);
409
407
  return;
410
408
  }
411
- const channels = [...this.channels];
412
409
  const isAlphaChannel = channelIndex === 3;
413
410
  if (this.isActiveChannelInputEmpty && this.upOrDownArrowKeyTracker) {
414
411
  input.value = this.upOrDownArrowKeyTracker === "up" ? (channels[channelIndex] + 1 <= this.getChannelInputLimit(channelIndex) ? channels[channelIndex] + 1 : this.getChannelInputLimit(channelIndex)).toString() : (channels[channelIndex] - 1 >= 0 ? channels[channelIndex] - 1 : 0).toString();
415
412
  this.isActiveChannelInputEmpty = false;
416
- this.upOrDownArrowKeyTracker = void 0;
413
+ this.upOrDownArrowKeyTracker = null;
417
414
  }
418
415
  const value = input.value ? Number(input.value) : channels[channelIndex];
419
416
  channels[channelIndex] = isAlphaChannel ? opacityToAlpha(value) : value;
@@ -500,11 +497,11 @@ class ColorPicker extends LitElement {
500
497
  this.internalColorUpdateContext = context;
501
498
  this.color = color;
502
499
  this.value = this.toValue(color);
503
- this.internalColorUpdateContext = void 0;
500
+ this.internalColorUpdateContext = null;
504
501
  }
505
502
  toValue(color, format = this.mode) {
506
503
  if (!color) {
507
- return void 0;
504
+ return null;
508
505
  }
509
506
  const hexMode = "hex";
510
507
  if (format.includes(hexMode)) {
@@ -817,7 +814,7 @@ class ColorPicker extends LitElement {
817
814
  this.internalColorSet(Color(channels, this.channelMode));
818
815
  }
819
816
  updateChannelsFromColor(color) {
820
- this.channels = color ? this.toChannels(color) : [void 0, void 0, void 0, void 0];
817
+ this.channels = color ? this.toChannels(color) : [null, null, null, null];
821
818
  }
822
819
  toChannels(color) {
823
820
  const { channelMode } = this;
@@ -833,7 +830,7 @@ class ColorPicker extends LitElement {
833
830
  render() {
834
831
  const { channelsDisabled, color, colorFieldScopeLeft, colorFieldScopeTop, staticDimensions: { thumb: { radius: thumbRadius } }, fieldDisabled, hexDisabled, hueScopeLeft, messages, alphaChannel, opacityScopeLeft, savedColors, savedDisabled, scale, scopeOrientation } = this;
835
832
  const sliderWidth = this.effectiveSliderWidth;
836
- const selectedColorInHex = color ? hexify(color, alphaChannel) : void 0;
833
+ const selectedColorInHex = color ? hexify(color, alphaChannel) : null;
837
834
  const hueTop = thumbRadius;
838
835
  const hueLeft = hueScopeLeft ?? sliderWidth * DEFAULT_COLOR.hue() / HSV_LIMITS.h;
839
836
  const opacityTop = thumbRadius;
@@ -882,7 +879,7 @@ class ColorPicker extends LitElement {
882
879
  })}</div></calcite-tab>`);
883
880
  }
884
881
  renderChannel(value, index, ariaLabel, direction, suffix) {
885
- return keyed(index, html`<calcite-input-number class=${safeClassMap(CSS.channel)} data-channel-index=${index ?? nothing} dir=${direction ?? nothing} .label=${ariaLabel} lang=${this.messages._lang ?? nothing} number-button-type=none .numberingSystem=${this.numberingSystem} @calciteInputNumberChange=${this.handleChannelChange} @calciteInputNumberInput=${this.handleChannelInput} @calciteInternalInputNumberBlur=${this.handleChannelBlur} @calciteInternalInputNumberFocus=${this.handleChannelFocus} @keydown=${this.handleKeyDown} .scale=${this.scale === "l" ? "m" : "s"} style=${safeStyleMap({
882
+ return keyed(index, html`<calcite-input-number class=${safeClassMap(CSS.channel)} data-channel-index=${index ?? nothing} dir=${direction ?? nothing} .label=${ariaLabel} lang=${this.messages._lang ?? nothing} number-button-type=none .numberingSystem=${this.numberingSystem} @keydown=${this.handleKeyDown} @calciteInputNumberChange=${this.handleChannelChange} @calciteInputNumberInput=${this.handleChannelInput} @calciteInternalInputNumberBlur=${this.handleChannelBlur} @calciteInternalInputNumberFocus=${this.handleChannelFocus} .scale=${this.scale === "l" ? "m" : "s"} style=${safeStyleMap({
886
883
  marginLeft: index > 0 && !(this.scale === "s" && this.alphaChannel && index === 3) ? "-1px" : ""
887
884
  })} .suffixText=${suffix} .value=${value?.toString()}></calcite-input-number>`);
888
885
  }
@@ -34,7 +34,7 @@ export abstract class ColorPickerHexInput extends LitElement {
34
34
  */
35
35
  accessor scale: Scale;
36
36
  /** The hex value. */
37
- accessor value: string | undefined;
37
+ accessor value: string;
38
38
  /**
39
39
  * Sets focus on the component.
40
40
  *