@esri/calcite-components 5.2.0-next.0 → 5.2.0-next.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 (215) hide show
  1. package/dist/cdn/{6D5BQKYD.js → 2AZU4JLL.js} +1 -1
  2. package/dist/cdn/{PXCZRN5T.js → 2C57GVL7.js} +1 -1
  3. package/dist/cdn/{LI5R65A7.js → 2RCOMSJ4.js} +1 -1
  4. package/dist/cdn/{E6SFDYKP.js → 2U7LTQ5E.js} +1 -1
  5. package/dist/cdn/{Q3S7NEGI.js → 3FH6QU7Y.js} +1 -1
  6. package/dist/cdn/{MWJWPSLW.js → 3GSXR65T.js} +1 -1
  7. package/dist/cdn/{TAQOWFC4.js → 43MK3FDM.js} +1 -1
  8. package/dist/cdn/{JUR2QHXO.js → 45HPDOT4.js} +1 -1
  9. package/dist/cdn/{YHO7HK4V.js → 4AM5CFW2.js} +1 -1
  10. package/dist/cdn/{LF6HBGIK.js → 4C4FXK46.js} +1 -1
  11. package/dist/cdn/{OOF6IOO6.js → 4CHUXMKI.js} +1 -1
  12. package/dist/cdn/{FTR4BVVC.js → 4PN5ZOFS.js} +1 -1
  13. package/dist/cdn/{4NA5MGOB.js → 4XBIPWD2.js} +1 -1
  14. package/dist/cdn/{QELU63EL.js → 57I2TDEP.js} +1 -1
  15. package/dist/cdn/{QCDNDFJF.js → 5EY2EEDX.js} +1 -1
  16. package/dist/cdn/{Q3A3FJSL.js → 5GA4KYR2.js} +1 -1
  17. package/dist/cdn/{URSFIR7X.js → 5ISZFTOQ.js} +1 -1
  18. package/dist/cdn/{BMMQHDLU.js → 6A4WSEWS.js} +1 -1
  19. package/dist/cdn/{YYHZXM6R.js → 6WR7WF5X.js} +1 -1
  20. package/dist/cdn/{BUM6WOSW.js → 6ZDUL7DM.js} +1 -1
  21. package/dist/cdn/{7KVTCN6Q.js → 7IOEAAJN.js} +1 -1
  22. package/dist/cdn/{IPLGO7L6.js → 7JMYJBWS.js} +1 -1
  23. package/dist/cdn/{XS5BOW2R.js → 7Q57OJ6S.js} +1 -1
  24. package/dist/cdn/{QIGBMUD5.js → A2QVKNTN.js} +1 -1
  25. package/dist/cdn/{3UC22UAK.js → AA7ZRB5K.js} +1 -1
  26. package/dist/cdn/{XGZ4H27N.js → AFNW6NWU.js} +1 -1
  27. package/dist/cdn/AI4EP5I7.js +2 -0
  28. package/dist/cdn/{7JEYTQG4.js → AO3S4HXU.js} +1 -1
  29. package/dist/cdn/{BWJBSXDP.js → AOWO3CEE.js} +1 -1
  30. package/dist/cdn/{R4BGHODS.js → ATPHVTBE.js} +1 -1
  31. package/dist/cdn/{KRX3Q4X3.js → AV53YUYO.js} +1 -1
  32. package/dist/cdn/{PR4A5JHV.js → B34QFBVX.js} +1 -1
  33. package/dist/cdn/{KSRIAA2B.js → B5M44JJO.js} +1 -1
  34. package/dist/cdn/{W2NGW4D3.js → BBQFFEZH.js} +1 -1
  35. package/dist/cdn/{JFLHSOEG.js → BDJAXYZ6.js} +1 -1
  36. package/dist/cdn/{WIJ5OVSP.js → BETERP4W.js} +1 -1
  37. package/dist/cdn/{OSQJUMST.js → BUNBY5RM.js} +1 -1
  38. package/dist/cdn/{LKOXGPBU.js → C4VPLSW7.js} +1 -1
  39. package/dist/cdn/{7VLVW6XG.js → C7C55I5S.js} +1 -1
  40. package/dist/cdn/{PWWZP3KR.js → CAWTUKNX.js} +1 -1
  41. package/dist/cdn/{V6YUYE2A.js → CC6MIBOX.js} +1 -1
  42. package/dist/cdn/{B77UXRFM.js → CFFCEFZK.js} +1 -1
  43. package/dist/cdn/{A555ZEHW.js → CQ6NGNY6.js} +1 -1
  44. package/dist/cdn/{5NUVM2O5.js → CYCLHZ3A.js} +1 -1
  45. package/dist/cdn/D6PPMEQM.js +2 -0
  46. package/dist/cdn/{KBON2CAX.js → DI3IXSN2.js} +1 -1
  47. package/dist/cdn/{HMIXABNO.js → DJIJFKYH.js} +1 -1
  48. package/dist/cdn/{D2YKWM6L.js → DJL42XA3.js} +1 -1
  49. package/dist/cdn/{27PXNVGA.js → E3RE3E2N.js} +1 -1
  50. package/dist/cdn/{D3IWPYIX.js → EGQ75QVP.js} +1 -1
  51. package/dist/cdn/{CBLXJ7FA.js → EL7GGALP.js} +1 -1
  52. package/dist/cdn/{U535IWWN.js → ENNOBBY4.js} +1 -1
  53. package/dist/cdn/{XVKUIBXG.js → EXXGZUR3.js} +1 -1
  54. package/dist/cdn/{4JIYUOBM.js → F25HCCSH.js} +1 -1
  55. package/dist/cdn/{OVFYNDZQ.js → F7AKW6A4.js} +1 -1
  56. package/dist/cdn/{N7K3Z33V.js → FEMVD7MC.js} +1 -1
  57. package/dist/cdn/{HFTNYJO3.js → FFUBSUZQ.js} +1 -1
  58. package/dist/cdn/{ZDK7XU74.js → FLX6RAXY.js} +1 -1
  59. package/dist/cdn/{PBAUETVN.js → FPVMYG6A.js} +1 -1
  60. package/dist/cdn/FVB2OZEH.js +2 -0
  61. package/dist/cdn/{FVR7AYMZ.js → G4ZSDWUZ.js} +1 -1
  62. package/dist/cdn/{QMY55ROX.js → GBGFI7SS.js} +1 -1
  63. package/dist/cdn/{ZWKGNLYM.js → GBNEJ7ZF.js} +1 -1
  64. package/dist/cdn/{4PNNCVVV.js → GGCO6DJE.js} +1 -1
  65. package/dist/cdn/GLH6ZAVP.js +2 -0
  66. package/dist/cdn/{4DBQ4ANV.js → GMY4OPXB.js} +1 -1
  67. package/dist/cdn/{CRIHCMCZ.js → GNF44UQG.js} +1 -1
  68. package/dist/cdn/{EMAXP36D.js → GOBJFJO6.js} +1 -1
  69. package/dist/cdn/{DEYOBQP4.js → GUSPFAZS.js} +1 -1
  70. package/dist/cdn/{LUMYH5OP.js → H2JTOLL2.js} +1 -1
  71. package/dist/cdn/{2LEPTGBS.js → HBRGGPQS.js} +1 -1
  72. package/dist/cdn/{6CBYZ6KQ.js → HIXRGJPQ.js} +1 -1
  73. package/dist/cdn/HKIP6O5B.js +2 -0
  74. package/dist/cdn/{6YWZMFTP.js → I2ZCMXRB.js} +1 -1
  75. package/dist/cdn/I5C2XC5I.js +2 -0
  76. package/dist/cdn/IJZH5BV3.js +2 -0
  77. package/dist/cdn/{3FN5WM5Q.js → IOBH7Q3C.js} +1 -1
  78. package/dist/cdn/{KH3SJOXF.js → IVJANKWM.js} +1 -1
  79. package/dist/cdn/{MSVOHYM2.js → J32XKCXC.js} +1 -1
  80. package/dist/cdn/{PFRUMG4W.js → JL5V6LHI.js} +1 -1
  81. package/dist/cdn/{GQO5YIX6.js → JQVKQIWK.js} +1 -1
  82. package/dist/cdn/{HW3NCJAS.js → JW2SKWED.js} +1 -1
  83. package/dist/cdn/{6GL54USA.js → JZCXLE2H.js} +1 -1
  84. package/dist/cdn/{4FJ5PQFY.js → KPR7F2IQ.js} +1 -1
  85. package/dist/cdn/{EN6G2SPQ.js → KQ322MPA.js} +1 -1
  86. package/dist/cdn/{62NJQWHM.js → KQN3IXDE.js} +1 -1
  87. package/dist/cdn/KRZT7UVD.js +2 -0
  88. package/dist/cdn/{QTXUDRNM.js → KVWHPPP5.js} +1 -1
  89. package/dist/cdn/KZUHKTIQ.js +2 -0
  90. package/dist/cdn/{IJXQ6SIM.js → LJJZC4QK.js} +1 -1
  91. package/dist/cdn/{WHTQZTLK.js → LRPJV2DQ.js} +1 -1
  92. package/dist/cdn/{NOVMIJES.js → LVF7G7IY.js} +1 -1
  93. package/dist/cdn/{YUWQQXGZ.js → LZDIBXYZ.js} +1 -1
  94. package/dist/cdn/{JSYHBTNB.js → MIE7SGGW.js} +1 -1
  95. package/dist/cdn/{XNIMPU7U.js → MNBJJORH.js} +1 -1
  96. package/dist/cdn/{URYJKH3O.js → MSB35HIA.js} +1 -1
  97. package/dist/cdn/{6DMMICVX.js → N7DI6G6M.js} +1 -1
  98. package/dist/cdn/{PVXQK5DA.js → NF3TF2WJ.js} +1 -1
  99. package/dist/cdn/{R5K4A5LI.js → NFPHYIMY.js} +1 -1
  100. package/dist/cdn/{DRA725EP.js → OGWGMCYY.js} +1 -1
  101. package/dist/cdn/{V2OPNZPW.js → OLCC5YK5.js} +1 -1
  102. package/dist/cdn/{2IFHEXRA.js → OQY72DXY.js} +1 -1
  103. package/dist/cdn/{SKVVTJ4Y.js → OTKKHBLB.js} +1 -1
  104. package/dist/cdn/{OD7JITPI.js → PKAYPMQL.js} +1 -1
  105. package/dist/cdn/{WLBJ5BGK.js → PO4GQAOO.js} +1 -1
  106. package/dist/cdn/{PVLU53NA.js → PYEU7ILW.js} +1 -1
  107. package/dist/cdn/QIW2VXWS.js +2 -0
  108. package/dist/cdn/{74ES23ZD.js → QLMCMCFN.js} +1 -1
  109. package/dist/cdn/{I72XT4W6.js → QNSEEZF5.js} +1 -1
  110. package/dist/cdn/{T2B7YQBZ.js → QVYX2WRU.js} +1 -1
  111. package/dist/cdn/{YGSNC6W4.js → QXIJOBKX.js} +1 -1
  112. package/dist/cdn/QXVZRQDN.js +2 -0
  113. package/dist/cdn/{DPCEF3DX.js → R2DOA2MN.js} +1 -1
  114. package/dist/cdn/{7VDKJ2SK.js → RC3UVUK3.js} +1 -1
  115. package/dist/cdn/{2T5S2GZD.js → RE4YAX46.js} +1 -1
  116. package/dist/cdn/RQVOT4ZO.js +2 -0
  117. package/dist/cdn/{V2YWSRNU.js → RXXRSLAB.js} +1 -1
  118. package/dist/cdn/{A2EZHYSR.js → S5JJMYDX.js} +1 -1
  119. package/dist/cdn/{TUW4KHTF.js → SU44IFYE.js} +1 -1
  120. package/dist/cdn/{SDGSZMUK.js → SVEPQ765.js} +1 -1
  121. package/dist/cdn/{TR4SNSFR.js → SVIANZ3V.js} +1 -1
  122. package/dist/cdn/{T4S5XNIM.js → T5VR3PV2.js} +1 -1
  123. package/dist/cdn/{JHIGTRC5.js → TD2P54UR.js} +1 -1
  124. package/dist/cdn/{LRKNRPLM.js → TDOPUO3L.js} +1 -1
  125. package/dist/cdn/{CFV4Q7K7.js → TE3IGQZH.js} +1 -1
  126. package/dist/cdn/{DKVLMKQB.js → TEGKHQ5W.js} +1 -1
  127. package/dist/cdn/{HEWEVGQO.js → TJC3KPVJ.js} +1 -1
  128. package/dist/cdn/{L6M7PQB2.js → TWT5XRCW.js} +1 -1
  129. package/dist/cdn/{WBHR5HAI.js → U5IWCBXE.js} +1 -1
  130. package/dist/cdn/{MWCNIRUV.js → UMHABPZB.js} +1 -1
  131. package/dist/cdn/{PKAEBI2S.js → UOQXEKIF.js} +1 -1
  132. package/dist/cdn/UWAER5W3.js +2 -0
  133. package/dist/cdn/{ZCFV5NPR.js → V3ADMKIU.js} +1 -1
  134. package/dist/cdn/{LYY7VO7C.js → W5TTJ4T3.js} +1 -1
  135. package/dist/cdn/{77K7O24O.js → W6UFYWVG.js} +1 -1
  136. package/dist/cdn/{GRHXNV32.js → W7BKEQCB.js} +1 -1
  137. package/dist/cdn/{VH6Z5EP4.js → W7DJIM2F.js} +1 -1
  138. package/dist/cdn/{J5O57W2E.js → WYJ5MJ5T.js} +1 -1
  139. package/dist/cdn/{R7OIKART.js → X33GQ3A3.js} +1 -1
  140. package/dist/cdn/{CHBJQ4J2.js → XD2JOD4K.js} +1 -1
  141. package/dist/cdn/{WKURA6GH.js → XNAMWMN5.js} +1 -1
  142. package/dist/cdn/{QFRMRDY4.js → XR4GGZRV.js} +1 -1
  143. package/dist/cdn/XZJNPGQT.js +2 -0
  144. package/dist/cdn/Y3U2N2BQ.js +2 -0
  145. package/dist/cdn/{EE5FG5WC.js → YAQRXHHQ.js} +1 -1
  146. package/dist/cdn/{4YFA6UNT.js → YEFCURY4.js} +1 -1
  147. package/dist/cdn/{4MGZ6ADZ.js → YHD7HKDX.js} +1 -1
  148. package/dist/cdn/{2GX4D6HJ.js → YL4XYPPL.js} +1 -1
  149. package/dist/cdn/{FITMXYWO.js → YYGQFOZ7.js} +1 -1
  150. package/dist/cdn/ZLOMPF4H.js +2 -0
  151. package/dist/cdn/index.js +1 -1
  152. package/dist/chunks/openCloseComponent.js +1 -1
  153. package/dist/chunks/resources10.js +19 -0
  154. package/dist/chunks/resources11.js +63 -0
  155. package/dist/chunks/resources5.js +40 -51
  156. package/dist/chunks/resources6.js +24 -46
  157. package/dist/chunks/resources7.js +53 -8
  158. package/dist/chunks/resources8.js +50 -10
  159. package/dist/chunks/resources9.js +7 -53
  160. package/dist/chunks/runtime.js +4 -4
  161. package/dist/chunks/utils.js +9 -15
  162. package/dist/chunks/utils2.js +1 -1
  163. package/dist/components/calcite-block/customElement.d.ts +9 -9
  164. package/dist/components/calcite-block/customElement.js +8 -49
  165. package/dist/components/calcite-block-group/customElement.js +3 -5
  166. package/dist/components/calcite-block-section/customElement.d.ts +5 -5
  167. package/dist/components/calcite-block-section/customElement.js +1 -1
  168. package/dist/components/calcite-button/customElement.d.ts +8 -8
  169. package/dist/components/calcite-button/customElement.js +3 -3
  170. package/dist/components/calcite-checkbox/customElement.js +1 -1
  171. package/dist/components/calcite-chip/customElement.js +1 -27
  172. package/dist/components/calcite-color-picker/customElement.d.ts +3 -3
  173. package/dist/components/calcite-color-picker/customElement.js +23 -20
  174. package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +1 -1
  175. package/dist/components/calcite-color-picker-hex-input/customElement.js +4 -4
  176. package/dist/components/calcite-color-picker-swatch/customElement.d.ts +1 -1
  177. package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
  178. package/dist/components/calcite-combobox/customElement.js +245 -93
  179. package/dist/components/calcite-dialog/customElement.js +1 -1
  180. package/dist/components/calcite-dropdown-group/customElement.js +1 -1
  181. package/dist/components/calcite-dropdown-item/customElement.js +1 -1
  182. package/dist/components/calcite-flow-item/customElement.js +1 -1
  183. package/dist/components/calcite-input/customElement.js +1 -1
  184. package/dist/components/calcite-input-date-picker/customElement.js +5 -10
  185. package/dist/components/calcite-input-number/customElement.js +1 -1
  186. package/dist/components/calcite-input-text/customElement.js +1 -1
  187. package/dist/components/calcite-input-time-zone/customElement.js +1 -1
  188. package/dist/components/calcite-list/customElement.js +1 -1
  189. package/dist/components/calcite-list-item/customElement.js +1 -1
  190. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  191. package/dist/components/calcite-panel/customElement.js +1 -1
  192. package/dist/components/calcite-stack/customElement.js +1 -1
  193. package/dist/docs/api.json +1 -1
  194. package/dist/docs/docs.json +1 -1
  195. package/dist/docs/web-types.json +1 -1
  196. package/package.json +2 -2
  197. package/dist/cdn/2YACKK37.js +0 -2
  198. package/dist/cdn/436YQVXE.js +0 -2
  199. package/dist/cdn/5SUANSC5.js +0 -2
  200. package/dist/cdn/6THNFXTV.js +0 -2
  201. package/dist/cdn/DAZHMHCO.js +0 -2
  202. package/dist/cdn/EB7IYMTW.js +0 -2
  203. package/dist/cdn/GHR4QESS.js +0 -2
  204. package/dist/cdn/JLRS6GUS.js +0 -2
  205. package/dist/cdn/NI547XEE.js +0 -2
  206. package/dist/cdn/Q6AT6CSF.js +0 -2
  207. package/dist/cdn/SZG4WIY5.js +0 -2
  208. package/dist/cdn/URGWXZVV.js +0 -2
  209. package/dist/cdn/VKSNYALB.js +0 -2
  210. package/dist/cdn/ZLOVZ5ZX.js +0 -2
  211. /package/dist/cdn/{XJY76HZ5.js → 2QCI6TGY.js} +0 -0
  212. /package/dist/cdn/{O2A6CQZA.js → BLWTCPBG.js} +0 -0
  213. /package/dist/cdn/{5OPFL4DZ.js → KWIC32XQ.js} +0 -0
  214. /package/dist/cdn/{SG5FNFQO.js → Q24FQVQ4.js} +0 -0
  215. /package/dist/cdn/{DE7OTXX2.js → QBJZUEM2.js} +0 -0
@@ -1,63 +1,17 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  const CSS = {
3
- actionsEnd: "actions-end",
4
- actionsStart: "actions-start",
5
- description: "description",
6
- close: "close",
7
3
  container: "container",
8
- containerHover: "container--hover",
9
- containerBorder: "container--border",
10
- containerBorderSelected: "container--border-selected",
11
- containerHighlightSelected: "container--highlight-selected",
12
- content: "content",
13
- contentBottom: "content-bottom",
14
- contentContainer: "content-container",
15
- contentContainerHasCenterContent: "content-container--has-center-content",
16
- contentContainerSelectable: "content-container--selectable",
17
- contentContainerUnavailable: "content-container--unavailable",
18
- contentContainerWrapper: "content-container-wrapper",
19
- contentContainerWrapperBordered: "content-container-wrapper--bordered",
20
- contentEnd: "content-end",
21
- contentStart: "content-start",
22
- customContent: "custom-content",
23
- expandedContainer: "expanded-container",
24
- dragContainer: "drag-container",
25
- gridCell: "grid-cell",
4
+ containerNone: "container--none-selection",
26
5
  icon: "icon",
27
- nestedContainer: "nested-container",
28
- nestedContainerExpanded: "nested-container--expanded",
29
- label: "label",
30
- row: "row",
31
- selectionContainer: "selection-container",
32
- selectionContainerSingle: "selection-container--single",
33
- wrapper: "wrapper",
34
- wrapperBordered: "wrapper--bordered"
6
+ iconEnd: "icon--end",
7
+ iconStart: "icon--start",
8
+ itemContent: "content",
9
+ link: "link"
35
10
  };
36
- const SLOTS = {
37
- actionsStart: "actions-start",
38
- contentStart: "content-start",
39
- content: "content",
40
- contentBottom: "content-bottom",
41
- contentEnd: "content-end",
42
- actionsEnd: "actions-end"
43
- };
44
- const MAX_COLUMNS = 0;
45
11
  const ICONS = {
46
- selectedMultiple: "check-square-f",
47
- selectedSingle: "circle-inset-large",
48
- unselectedMultiple: "square",
49
- unselectedSingle: "circle",
50
- collapsedLTR: "chevron-right",
51
- collapsedRTL: "chevron-left",
52
- open: "chevron-down",
53
- blank: "blank",
54
- close: "x"
12
+ check: "check"
55
13
  };
56
- const activeCellTestAttribute = "data-test-active";
57
14
  export {
58
15
  CSS as C,
59
- ICONS as I,
60
- MAX_COLUMNS as M,
61
- SLOTS as S,
62
- activeCellTestAttribute as a
16
+ ICONS as I
63
17
  };
@@ -60,9 +60,9 @@ function getConfig() {
60
60
  }
61
61
  return effectiveConfig;
62
62
  }
63
- const version = "5.2.0-next.0";
64
- const buildDate = "2026-06-08";
65
- const revision = "f88c6497a";
63
+ const version = "5.2.0-next.2";
64
+ const buildDate = "2026-06-09";
65
+ const revision = "9a357f907";
66
66
  function stampVersion() {
67
67
  const config = getConfig();
68
68
  if (config && config.version) {
@@ -85,7 +85,7 @@ if (!isServer) {
85
85
  if (process.env.NODE_ENV !== "test") {
86
86
  queueMicrotask(stampVersion);
87
87
  }
88
- const runtime = makeRuntime({ defaultAssetPath: "https://cdn.jsdelivr.net/npm/@esri/calcite-components@5.2.0-next.0/dist/cdn/", hydratedAttribute: "calcite-hydrated" });
88
+ const runtime = makeRuntime({ defaultAssetPath: "https://cdn.jsdelivr.net/npm/@esri/calcite-components@5.2.0-next.2/dist/cdn/", hydratedAttribute: "calcite-hydrated" });
89
89
  const { customElement, getAssetPath, setAssetPath } = runtime;
90
90
  export {
91
91
  CSS_UTILITY as C,
@@ -1,6 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import Color from "color";
3
3
  import { c as calciteSpacingFixedXl, a as calciteSpacingFixedMd, b as calciteSpacingFixedSm } from "./global.js";
4
+ import { omit } from "es-toolkit";
4
5
  const CSS = {
5
6
  channel: "channel",
6
7
  channels: "channels",
@@ -103,7 +104,7 @@ const shorthandHexWithAlpha = /^#[0-9A-F]{4}$/i;
103
104
  const longhandHexWithAlpha = /^#[0-9A-F]{8}$/i;
104
105
  function colorFromValue(value, clearable = false, mode) {
105
106
  if (clearable && !value) {
106
- return null;
107
+ return void 0;
107
108
  }
108
109
  return Color(
109
110
  value != null && typeof value === "object" && alphaCompatible(mode) ? normalizeColor(value) : value
@@ -136,7 +137,7 @@ function normalizeHex(hex, hasAlpha = false, convertFromHexToHexa = false) {
136
137
  hex = `#${hex}`;
137
138
  }
138
139
  if (isShorthandHex(hex, hasAlpha)) {
139
- return rgbToHex(hexToRGB(hex, hasAlpha));
140
+ return rgbToHex(hexToRGB(hex));
140
141
  }
141
142
  if (hasAlpha && convertFromHexToHexa && isValidHex(
142
143
  hex,
@@ -144,7 +145,7 @@ function normalizeHex(hex, hasAlpha = false, convertFromHexToHexa = false) {
144
145
  /* we only care about RGB hex for conversion */
145
146
  )) {
146
147
  const isShorthand = isShorthandHex(hex, false);
147
- return rgbToHex(hexToRGB(`${hex}${isShorthand ? "f" : "ff"}`, true));
148
+ return rgbToHex(hexToRGB(`${hex}${isShorthand ? "f" : "ff"}`));
148
149
  }
149
150
  return hex;
150
151
  }
@@ -163,23 +164,16 @@ function numToHex(num) {
163
164
  return num.toString(16).padStart(2, "0");
164
165
  }
165
166
  function normalizeAlpha(colorObject) {
166
- const normalized = {
167
- ...colorObject,
167
+ return {
168
+ ...omit(colorObject, ["alpha"]),
168
169
  a: colorObject.alpha ?? 1
169
170
  /* Color() will omit alpha if 1 */
170
171
  };
171
- delete normalized.alpha;
172
- return normalized;
173
172
  }
174
173
  function normalizeColor(alphaColorObject) {
175
- const normalized = { ...alphaColorObject, alpha: alphaColorObject.a ?? 1 };
176
- delete normalized.a;
177
- return normalized;
174
+ return { ...omit(alphaColorObject, ["a"]), alpha: alphaColorObject.a ?? 1 };
178
175
  }
179
- function hexToRGB(hex, hasAlpha = false) {
180
- if (!isValidHex(hex, hasAlpha)) {
181
- return null;
182
- }
176
+ function hexToRGB(hex) {
183
177
  hex = hex.replace("#", "");
184
178
  let r;
185
179
  let g;
@@ -252,7 +246,7 @@ function parseMode(colorValue) {
252
246
  return hasChannels(colorValue, "a") ? ObjectColorMode.HSVA : ObjectColorMode.HSV;
253
247
  }
254
248
  }
255
- return null;
249
+ return void 0;
256
250
  }
257
251
  function hasChannels(colorObject, ...channels) {
258
252
  return channels.every((channel) => channel && colorObject && `${channel}` in colorObject);
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { isServer } from "lit";
3
3
  import { n as nodeListToArray } from "./dom.js";
4
- import { A as AllComboboxChildrenSelector, a as ComboboxItemSelector, b as ComboboxItemGroupSelector } from "./resources5.js";
4
+ import { A as AllComboboxChildrenSelector, a as ComboboxItemSelector, b as ComboboxItemGroupSelector } from "./resources7.js";
5
5
  function getAncestors(element) {
6
6
  const parent = element.parentElement?.closest(AllComboboxChildrenSelector);
7
7
  const grandparent = parent?.parentElement?.closest(AllComboboxChildrenSelector);
@@ -36,7 +36,7 @@ export abstract class Block extends LitElement {
36
36
  */
37
37
  accessor collapsible: boolean;
38
38
  /** Specifies a description for the component. Displays below the heading. */
39
- accessor description: string;
39
+ accessor description: string | undefined;
40
40
  /**
41
41
  * When `true`, interaction is prevented and the component is displayed with lower opacity.
42
42
  *
@@ -63,17 +63,17 @@ export abstract class Block extends LitElement {
63
63
  */
64
64
  accessor expanded: boolean;
65
65
  /** Specifies the component's heading text. */
66
- accessor heading: string;
66
+ accessor heading: string | undefined;
67
67
  /** Specifies the heading level number of the component's `heading` for proper document structure, without affecting visual styling. */
68
- accessor headingLevel: HeadingLevel;
68
+ accessor headingLevel: HeadingLevel | undefined;
69
69
  /** Specifies an icon to display at the end of the component. */
70
- accessor iconEnd: IconName;
70
+ accessor iconEnd: IconName | undefined;
71
71
  /** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
72
- accessor iconFlipRtl: FlipContext;
72
+ accessor iconFlipRtl: FlipContext | undefined;
73
73
  /** Specifies an icon to display at the start of the component. */
74
- accessor iconStart: IconName;
74
+ accessor iconStart: IconName | undefined;
75
75
  /** Specifies an accessible label for the component. */
76
- accessor label: string;
76
+ accessor label: string | undefined;
77
77
  /**
78
78
  * When `true`, a busy indicator is displayed.
79
79
  *
@@ -81,7 +81,7 @@ export abstract class Block extends LitElement {
81
81
  */
82
82
  accessor loading: boolean;
83
83
  /** Specifies the component's fallback `menuPlacement` when it's initial or specified `menuPlacement` has insufficient space available. */
84
- accessor menuFlipPlacements: FlipPlacement[];
84
+ accessor menuFlipPlacements: FlipPlacement[] | undefined;
85
85
  /**
86
86
  * Determines where the action menu will be positioned.
87
87
  *
@@ -129,7 +129,7 @@ export abstract class Block extends LitElement {
129
129
  *
130
130
  * @deprecated in v3.0.0, removal target v6.0.0 - Use the `icon-start` property instead.
131
131
  */
132
- accessor status: Status;
132
+ accessor status: Status | undefined;
133
133
  /**
134
134
  * When `true` and the component is `open`, disables top layer placement.
135
135
  *
@@ -15,46 +15,7 @@ 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
- 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
- };
18
+ import { C as CSS, I as ICONS, S as SLOTS, a as IDS } from "../../chunks/resources5.js";
58
19
  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}`;
59
20
  class Block extends LitElement {
60
21
  constructor() {
@@ -80,8 +41,6 @@ class Block extends LitElement {
80
41
  this.sortDisabled = false;
81
42
  this.overlayPositioning = "absolute";
82
43
  this.scale = "m";
83
- this.setPosition = null;
84
- this.setSize = null;
85
44
  this.sortHandleOpen = false;
86
45
  this.topLayerDisabled = false;
87
46
  this.calciteBlockBeforeClose = createEvent({ cancelable: false });
@@ -216,12 +175,12 @@ class Block extends LitElement {
216
175
  return [loading ? html`<calcite-scrim .loading=${loading}></calcite-scrim>` : null, defaultSlot];
217
176
  }
218
177
  renderLoaderStatusIcon() {
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({
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({
221
180
  [CSS.statusIcon]: true,
222
- [CSS.valid]: status2 == "valid",
223
- [CSS.invalid]: status2 == "invalid"
224
- })} .icon=${ICONS[status2]} .scale=${getIconScale(this.scale)}></calcite-icon></div>`) : null;
181
+ [CSS.valid]: status == "valid",
182
+ [CSS.invalid]: status == "invalid"
183
+ })} .icon=${ICONS[status]} .scale=${getIconScale(this.scale)}></calcite-icon></div>`) : null;
225
184
  }
226
185
  renderActionsEnd() {
227
186
  return html`<div class=${safeClassMap(CSS.actionsEnd)} .hidden=${!this.hasEndActions}><slot name=${SLOTS.actionsEnd} @slotchange=${this.actionsEndSlotChangeHandler}></slot></div>`;
@@ -247,7 +206,7 @@ class Block extends LitElement {
247
206
  return keyed(iconValue, html`<calcite-icon class=${safeClassMap(iconClass)} .flipRtl=${flipRtl} .icon=${iconValue} .scale=${getIconScale(this.scale)}></calcite-icon>`);
248
207
  }
249
208
  render() {
250
- const { collapsible, loading, expanded, label, heading, messages, description, menuFlipPlacements, menuPlacement, moveToItems, addToItems, setPosition, setSize, dragDisabled, sortDisabled, iconEnd, hasContentEnd, hasContentStart, iconStart } = this;
209
+ const { collapsible, loading, expanded, label, heading, messages, description, menuFlipPlacements, menuPlacement, moveToItems, addToItems, setPosition, setSize, dragDisabled, sortDisabled, iconEnd, hasContentEnd, hasContentStart, iconStart, status } = this;
251
210
  const toggleLabel = expanded ? messages.collapse : messages.expand;
252
211
  const headerHasContent = !!(heading || description || hasContentEnd || hasContentStart || iconStart || loading || status);
253
212
  const headerContent = html`<header class=${safeClassMap({
@@ -256,7 +215,7 @@ class Block extends LitElement {
256
215
  [CSS.headerDraggable]: this.dragHandle
257
216
  })} id=${IDS.header}>${this.renderIcon("start")}${this.renderContentStart()}${this.renderLoaderStatusIcon()}${this.renderTitle()}</header>`;
258
217
  const collapseIcon = expanded ? ICONS.expanded : ICONS.collapsed;
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>`;
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>`;
260
219
  return this.interactiveContainer({ disabled: this.disabled, children: html`<article aria-label=${label ?? nothing} .ariaBusy=${loading} class=${safeClassMap({
261
220
  [CSS.container]: true
262
221
  })}>${headerNode}<section aria-labelledby=${IDS.toggle} class=${safeClassMap(CSS.content)} .hidden=${!expanded} id=${IDS.content}>${this.renderScrim()}</section></article>` });
@@ -10,9 +10,7 @@ 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
- function isBlock(element) {
14
- return element.tagName === "CALCITE-BLOCK";
15
- }
13
+ import { i as isBlock } from "../../chunks/resources5.js";
16
14
  const CSS = {
17
15
  container: "container",
18
16
  groupContainer: "group-container",
@@ -180,12 +178,12 @@ class BlockGroup extends LitElement {
180
178
  this.calciteBlockGroupOrderChange.emit(detail);
181
179
  }
182
180
  setParentBlockGroup() {
183
- this.parentBlockGroupEl = this.el.parentElement?.closest(blockGroupSelector);
181
+ this.parentBlockGroupEl = this.el.parentElement?.closest(blockGroupSelector) || void 0;
184
182
  }
185
183
  handleDefaultSlotChange(event) {
186
184
  const blockChildren = [];
187
185
  this.blockAndGroups = slotChangeGetAssignedElements(event).filter((el) => {
188
- if (el.matches(blockSelector)) {
186
+ if (isBlock(el)) {
189
187
  blockChildren.push(el);
190
188
  }
191
189
  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;
24
+ accessor iconEnd: IconName | undefined;
25
25
  /** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
26
- accessor iconFlipRtl: FlipContext;
26
+ accessor iconFlipRtl: FlipContext | undefined;
27
27
  /** Specifies an icon to display at the start of the component. */
28
- accessor iconStart: IconName;
28
+ accessor iconStart: IconName | undefined;
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;
52
+ accessor status: Status | undefined;
53
53
  /** The component header text. */
54
- accessor text: string;
54
+ accessor text: string | undefined;
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 = ICONS[status] ?? false;
97
+ const statusIcon = status && ICONS[status];
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;
53
+ accessor form: string | undefined;
54
54
  /** Specifies the URL of the linked resource, which can be set as an absolute or relative path. */
55
- accessor href: string;
55
+ accessor href: string | undefined;
56
56
  /** Specifies an icon to display at the end of the component. */
57
- accessor iconEnd: IconName;
57
+ accessor iconEnd: IconName | undefined;
58
58
  /** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
59
- accessor iconFlipRtl: FlipContext;
59
+ accessor iconFlipRtl: FlipContext | undefined;
60
60
  /** Specifies an icon to display at the start of the component. */
61
- accessor iconStart: IconName;
61
+ accessor iconStart: IconName | undefined;
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;
69
+ accessor label: string | undefined;
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;
85
+ accessor rel: string | undefined;
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;
109
+ accessor target: string | undefined;
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 || null : null;
99
+ this.tooltipText = contentEl.offsetWidth < contentEl.scrollWidth ? this.el.innerText || void 0 : void 0;
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 : null} .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 : void 0} .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 : 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}>` });
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}>` });
121
121
  }
122
122
  }
123
123
  customElement("calcite-button", Button);
@@ -15,7 +15,7 @@ const CSS = {
15
15
  toggle: "toggle",
16
16
  check: "check-svg"
17
17
  };
18
- 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([scale=s]) .check-svg,:host([scale=s]) .toggle{inline-size:var(--calcite-checkbox-size, .75rem);block-size:var(--calcite-checkbox-size, .75rem)}:host([scale=m]) .check-svg,:host([scale=m]) .toggle{inline-size:var(--calcite-checkbox-size, var(--calcite-font-size-relative-base));block-size:var(--calcite-checkbox-size, var(--calcite-font-size-relative-base))}:host([scale=l]) .check-svg,:host([scale=l]) .toggle{inline-size:var(--calcite-checkbox-size, 1rem);block-size:var(--calcite-checkbox-size, 1rem)}:host{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg{pointer-events:none;box-sizing:border-box;display:block;overflow:hidden;background-color:var(--calcite-color-foreground-1);fill:currentColor;stroke:currentColor;stroke-width:1;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;box-shadow:inset 0 0 0 1px var(--calcite-checkbox-border-color, var(--calcite-color-border-input));color:var(--calcite-checkbox-icon-color, var(--calcite-color-background))}:host([status=invalid]:not([checked])) .check-svg{box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger)}:host([status=invalid]:not([checked])) .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-color-brand-hover)}:host([status=invalid]:not([checked])) .toggle:active .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([status=invalid]:not([checked])) .toggle:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([checked]) .check-svg,:host([indeterminate]) .check-svg{background-color:var(--calcite-color-brand);box-shadow:inset 0 0 0 1px var(--calcite-color-brand)}:host([checked]) .toggle:hover .check-svg,:host([indeterminate]) .toggle:hover .check-svg{background-color:var(--calcite-checkbox-border-color-hover, var(--calcite-color-brand-hover))}:host([checked]) .toggle:active .check-svg,:host([indeterminate]) .toggle:active .check-svg{background-color:var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press));box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press))}:host([hovered]) .toggle .check-svg,:host .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-hover, var(--calcite-color-brand-hover))}.toggle:active .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press))}.toggle{position:relative;outline-color:transparent}.toggle:active,.toggle:focus,.toggle:focus-visible{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))))}.toggle:after,.toggle:before{inset-block-start:50%;inset-inline-start:50%;min-block-size:1.5rem;min-inline-size:1.5rem;position:absolute}.toggle:not(.calcite--rtl):after{content:"";transform:translate(-50%) translateY(-50%)}.toggle.calcite--rtl:before{content:"";transform:translate(50%) translateY(-50%)}@media(forced-colors:active){.check-svg{border:1px solid currentColor}}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`;
18
+ 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([scale=s]) .check-svg,:host([scale=s]) .toggle{inline-size:var(--calcite-checkbox-size, .75rem);block-size:var(--calcite-checkbox-size, .75rem)}:host([scale=m]) .check-svg,:host([scale=m]) .toggle{inline-size:var(--calcite-checkbox-size, var(--calcite-font-size-relative-base));block-size:var(--calcite-checkbox-size, var(--calcite-font-size-relative-base))}:host([scale=l]) .check-svg,:host([scale=l]) .toggle{inline-size:var(--calcite-checkbox-size, 1rem);block-size:var(--calcite-checkbox-size, 1rem)}:host{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg{pointer-events:none;box-sizing:border-box;display:block;overflow:hidden;background-color:var(--calcite-color-foreground-1);fill:currentColor;stroke:currentColor;stroke-width:1;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;box-shadow:inset 0 0 0 1px var(--calcite-checkbox-border-color, var(--calcite-color-border-input));color:var(--calcite-checkbox-icon-color, var(--calcite-color-background))}:host([status=invalid]:not([checked])) .check-svg{box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger)}:host([status=invalid]:not([checked])) .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([status=invalid]:not([checked])) .toggle:active .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([status=invalid]:not([checked])) .toggle:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([checked]) .check-svg,:host([indeterminate]) .check-svg{background-color:var(--calcite-color-brand);box-shadow:inset 0 0 0 1px var(--calcite-color-brand)}:host([checked]) .toggle:hover .check-svg,:host([indeterminate]) .toggle:hover .check-svg{background-color:var(--calcite-checkbox-border-color-hover, var(--calcite-color-brand-hover))}:host([checked]) .toggle:active .check-svg,:host([indeterminate]) .toggle:active .check-svg{background-color:var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press));box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press))}:host([hovered]) .toggle .check-svg,:host .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-hover, var(--calcite-color-brand-hover))}.toggle:active .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press))}.toggle{position:relative;outline-color:transparent}.toggle:active,.toggle:focus,.toggle:focus-visible{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))))}.toggle:after,.toggle:before{inset-block-start:50%;inset-inline-start:50%;min-block-size:1.5rem;min-inline-size:1.5rem;position:absolute}.toggle:not(.calcite--rtl):after{content:"";transform:translate(-50%) translateY(-50%)}.toggle.calcite--rtl:before{content:"";transform:translate(50%) translateY(-50%)}@media(forced-colors:active){.check-svg{border:1px solid currentColor}}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`;
19
19
  class Checkbox extends LitElement {
20
20
  constructor() {
21
21
  super();
@@ -9,33 +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
- const CSS = {
13
- title: "title",
14
- close: "close",
15
- imageContainer: "image-container",
16
- chipIcon: "chip-icon",
17
- textSlotted: "text--slotted",
18
- container: "container",
19
- imageSlotted: "image--slotted",
20
- closable: "closable",
21
- multiple: "multiple",
22
- single: "single",
23
- selectable: "selectable",
24
- selectIcon: "select-icon",
25
- selectIconActive: "select-icon--active",
26
- nonInteractive: "non-interactive",
27
- isCircle: "is-circle",
28
- selected: "selected"
29
- };
30
- const SLOTS = {
31
- image: "image"
32
- };
33
- const ICONS = {
34
- close: "x",
35
- checkedSingle: "circle-f",
36
- uncheckedMultiple: "square",
37
- checkedMultiple: "check-square-f"
38
- };
12
+ import { S as SLOTS, C as CSS, I as ICONS } from "../../chunks/resources6.js";
39
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}`;
40
14
  class Chip extends LitElement {
41
15
  constructor() {
@@ -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;
98
+ accessor numberingSystem: NumberingSystem | undefined;
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;
112
+ accessor storageId: string | undefined;
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;
121
+ accessor value: ColorValue | null | undefined;
122
122
  /**
123
123
  * Sets focus on the component's first focusable element.
124
124
  *