@esri/calcite-components 5.2.0-next.60 → 5.2.0-next.62

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 (395) hide show
  1. package/dist/cdn/23HDKDAI.js +2 -0
  2. package/dist/cdn/24ZPXFO2.js +2 -0
  3. package/dist/cdn/{2ARHNZAY.js → 2HPK3LAE.js} +1 -1
  4. package/dist/cdn/{RBEBWODD.js → 2RVXXWXK.js} +1 -1
  5. package/dist/cdn/{BNEP76EX.js → 3FOHNQKP.js} +1 -1
  6. package/dist/cdn/3RD6FPOP.js +2 -0
  7. package/dist/cdn/3TT3H2DC.js +2 -0
  8. package/dist/cdn/{ZPVFMZUH.js → 4FYTCYUK.js} +1 -1
  9. package/dist/cdn/{X2DWU333.js → 4LMXYULL.js} +3 -3
  10. package/dist/cdn/4MJQEGBF.js +2 -0
  11. package/dist/cdn/4RKMYYAL.js +2 -0
  12. package/dist/cdn/{LGSKYEBT.js → 53YUDUCN.js} +1 -1
  13. package/dist/cdn/5DJ4CKCP.js +2 -0
  14. package/dist/cdn/5IBOQL24.js +2 -0
  15. package/dist/cdn/{ACHOOOAZ.js → 5MYS7ZVM.js} +1 -1
  16. package/dist/cdn/5NWMGO4Y.js +2 -0
  17. package/dist/cdn/5Q6R6XLB.js +2 -0
  18. package/dist/cdn/{73DCL4EG.js → 5SNGDG25.js} +1 -1
  19. package/dist/cdn/66ADBSUG.js +2 -0
  20. package/dist/cdn/{YWJF7JUY.js → 6HUNEVQT.js} +1 -1
  21. package/dist/cdn/{UQFOOWZT.js → 6TYHSE52.js} +1 -1
  22. package/dist/cdn/{OSKBKN3N.js → 6WLVT7DS.js} +1 -1
  23. package/dist/cdn/{475RERZF.js → 74KBB6LH.js} +1 -1
  24. package/dist/cdn/77M5NVCW.js +2 -0
  25. package/dist/cdn/{WXRBIN4T.js → 7CZARVI4.js} +1 -1
  26. package/dist/cdn/7DZDSRLR.js +2 -0
  27. package/dist/cdn/7O43FY6X.js +2 -0
  28. package/dist/cdn/{LO2P3XQL.js → 7RAF4H2D.js} +1 -1
  29. package/dist/cdn/{D4HCATE5.js → 7TDIRY4J.js} +1 -1
  30. package/dist/cdn/7YCU2E3N.js +2 -0
  31. package/dist/cdn/{2LGV2LIH.js → 7ZPRWQGI.js} +1 -1
  32. package/dist/cdn/A7PK5BTB.js +2 -0
  33. package/dist/cdn/ABR4JGS6.js +2 -0
  34. package/dist/cdn/ADAMEB6V.js +2 -0
  35. package/dist/cdn/{MRXU2NCN.js → AGP7DPKN.js} +1 -1
  36. package/dist/cdn/{XURLGFDG.js → AM5HDLAS.js} +1 -1
  37. package/dist/cdn/{CUQN2MHW.js → AOCA3KFF.js} +1 -1
  38. package/dist/cdn/B26JHK23.js +2 -0
  39. package/dist/cdn/{F3NWTLHV.js → B4L2KEDE.js} +1 -1
  40. package/dist/cdn/B5TGMHUH.js +2 -0
  41. package/dist/cdn/{QUCBI2DK.js → B6L3NEYB.js} +1 -1
  42. package/dist/cdn/BBTNIUW2.js +2 -0
  43. package/dist/cdn/BDR42A3E.js +2 -0
  44. package/dist/cdn/C4WP5EBM.js +2 -0
  45. package/dist/cdn/{A6LKKOEC.js → CMWT2U6N.js} +1 -1
  46. package/dist/cdn/{L47MJPUD.js → CNIS3O63.js} +1 -1
  47. package/dist/cdn/{COOXR4KA.js → CYZUGX7K.js} +1 -1
  48. package/dist/cdn/D2EDJHY3.js +2 -0
  49. package/dist/cdn/DLPPHVJK.js +2 -0
  50. package/dist/cdn/{6MKIZYKA.js → DQVINPWR.js} +1 -1
  51. package/dist/cdn/DSVGFTLX.js +2 -0
  52. package/dist/cdn/{DWYPBWH7.js → E75D7ANJ.js} +1 -1
  53. package/dist/cdn/EA3CXBU3.js +2 -0
  54. package/dist/cdn/{WJNSGWHI.js → EDEBMMT6.js} +1 -1
  55. package/dist/cdn/EFKVMB36.js +2 -0
  56. package/dist/cdn/EHBE2PQL.js +2 -0
  57. package/dist/cdn/{R44SMF4M.js → EPE7MG62.js} +1 -1
  58. package/dist/cdn/{JQDPL76A.js → ERCYS72F.js} +1 -1
  59. package/dist/cdn/ESCNQWGH.js +2 -0
  60. package/dist/cdn/ESPMMYVP.js +2 -0
  61. package/dist/cdn/{KQ64XM4H.js → EW4E6W4H.js} +1 -1
  62. package/dist/cdn/EWR2MENT.js +2 -0
  63. package/dist/cdn/F4JFQNV4.js +2 -0
  64. package/dist/cdn/{6PUJMHS6.js → FAZOKA4U.js} +1 -1
  65. package/dist/cdn/FCCATXLE.js +2 -0
  66. package/dist/cdn/{G4LVXPLG.js → FIUZOVCS.js} +1 -1
  67. package/dist/cdn/FLR4OLXP.js +2 -0
  68. package/dist/cdn/{UH3VBILU.js → FMMROQB2.js} +1 -1
  69. package/dist/cdn/{UKHGKDAO.js → FRWSUYJ5.js} +1 -1
  70. package/dist/cdn/FXR7G326.js +2 -0
  71. package/dist/cdn/G5N5LP7C.js +2 -0
  72. package/dist/cdn/GENGQQ3E.js +2 -0
  73. package/dist/cdn/GKYCDJZS.js +2 -0
  74. package/dist/cdn/GRCGH7S7.js +2 -0
  75. package/dist/cdn/GV6LQKJ5.js +2 -0
  76. package/dist/cdn/{BBYH4VYJ.js → H6YE6FYK.js} +1 -1
  77. package/dist/cdn/HDNDTUJO.js +2 -0
  78. package/dist/cdn/{CUQRFILK.js → HHK6QXU6.js} +1 -1
  79. package/dist/cdn/I4LFSDKZ.js +2 -0
  80. package/dist/cdn/I4MV44ZF.js +2 -0
  81. package/dist/cdn/I77SJ3UN.js +2 -0
  82. package/dist/cdn/{CVTNS4ZW.js → IFOACTFJ.js} +1 -1
  83. package/dist/cdn/{VXPP5IWU.js → IHJAWQDP.js} +1 -1
  84. package/dist/cdn/IP7QMIWU.js +2 -0
  85. package/dist/cdn/{O3AFQFUF.js → ITSKKC7W.js} +1 -1
  86. package/dist/cdn/{EFRZQV4R.js → IUCOEPJG.js} +1 -1
  87. package/dist/cdn/J67LYBL5.js +2 -0
  88. package/dist/cdn/{RNZ5MJMR.js → JAZ5R36D.js} +1 -1
  89. package/dist/cdn/{JU5FEMV5.js → JFCRLKUS.js} +1 -1
  90. package/dist/cdn/JL43QOWW.js +2 -0
  91. package/dist/cdn/JLA3DKZP.js +2 -0
  92. package/dist/cdn/JOK7V4MS.js +2 -0
  93. package/dist/cdn/{6KHTU4WL.js → JTM6YJCI.js} +1 -1
  94. package/dist/cdn/{7B3O2EE3.js → JTUBWTUR.js} +1 -1
  95. package/dist/cdn/KDUZXP3Z.js +2 -0
  96. package/dist/cdn/KEVSA7QA.js +2 -0
  97. package/dist/cdn/KIZPZLPU.js +2 -0
  98. package/dist/cdn/{QG52PKXR.js → KKDSVCDI.js} +1 -1
  99. package/dist/cdn/KMQWZS7Y.js +2 -0
  100. package/dist/cdn/{PMT6RP6F.js → KQH5DKBU.js} +1 -1
  101. package/dist/cdn/KQHTBOH6.js +2 -0
  102. package/dist/cdn/{WX3MK3S3.js → KW7DFY2S.js} +1 -1
  103. package/dist/cdn/{KSWOOKHU.js → KWFE4DAU.js} +1 -1
  104. package/dist/cdn/{ZOJHKEKI.js → L7AAWH33.js} +1 -1
  105. package/dist/cdn/{VHTIGB7T.js → LBKDLCGS.js} +1 -1
  106. package/dist/cdn/{ZSBHMYFT.js → LBUT6VVH.js} +1 -1
  107. package/dist/cdn/{4PQZTDQS.js → LCO22QRK.js} +1 -1
  108. package/dist/cdn/{5TCFZJXA.js → LIP5H2L6.js} +1 -1
  109. package/dist/cdn/LUVDIV7Z.js +2 -0
  110. package/dist/cdn/MEMTVARL.js +2 -0
  111. package/dist/cdn/{B7MWEAQW.js → MGS6XKAR.js} +1 -1
  112. package/dist/cdn/{GQ4X2OQC.js → NA2ZTWW4.js} +1 -1
  113. package/dist/cdn/NEJF3TJF.js +2 -0
  114. package/dist/cdn/{M65UUX2N.js → NGDGVFFY.js} +1 -1
  115. package/dist/cdn/{IPNE6GDG.js → NQBHV5T4.js} +1 -1
  116. package/dist/cdn/{VG5XUVDY.js → NY3UKBFO.js} +1 -1
  117. package/dist/cdn/O3JX6E6E.js +2 -0
  118. package/dist/cdn/OXOUHOL7.js +2 -0
  119. package/dist/cdn/P34KSKSD.js +2 -0
  120. package/dist/cdn/{FMZ7VG53.js → PGVVBVAW.js} +1 -1
  121. package/dist/cdn/{HFQIDIEB.js → PJC3KHLU.js} +1 -1
  122. package/dist/cdn/{J7EXMBEP.js → PLCNTRPE.js} +1 -1
  123. package/dist/cdn/{UZEOHREL.js → Q2PXLJRW.js} +1 -1
  124. package/dist/cdn/{ZPSUPHPX.js → Q35TYOU3.js} +1 -1
  125. package/dist/cdn/QFLQKRZ2.js +2 -0
  126. package/dist/cdn/QIU2OYJY.js +2 -0
  127. package/dist/cdn/{5I7G6JLY.js → QQSO37WF.js} +1 -1
  128. package/dist/cdn/{ZLRHMY5Z.js → QVCA4Q3A.js} +1 -1
  129. package/dist/cdn/R2DIPZ3B.js +2 -0
  130. package/dist/cdn/{3QHHINS4.js → R33SHK7J.js} +1 -1
  131. package/dist/cdn/{HXXSSS5Y.js → R3SQDQXX.js} +1 -1
  132. package/dist/cdn/R6KFEYUV.js +2 -0
  133. package/dist/cdn/RLI632QM.js +2 -0
  134. package/dist/cdn/{HTH5EB4X.js → RXDYNL2X.js} +1 -1
  135. package/dist/cdn/{UR3BQTVO.js → RYGSERD6.js} +1 -1
  136. package/dist/cdn/{XU27LX4X.js → S34TKZAP.js} +1 -1
  137. package/dist/cdn/{NL25RJTH.js → SFR52MOU.js} +1 -1
  138. package/dist/cdn/SZUPQ4CX.js +2 -0
  139. package/dist/cdn/{FASMUSKO.js → TBB42H4B.js} +1 -1
  140. package/dist/cdn/{FWMG52AT.js → TFZI64RP.js} +1 -1
  141. package/dist/cdn/THIECYN6.js +2 -0
  142. package/dist/cdn/{2T3YF4F5.js → TOMLSGNW.js} +1 -1
  143. package/dist/cdn/U3Y3V2ZH.js +2 -0
  144. package/dist/cdn/{PMPJTYON.js → UBFONBKW.js} +1 -1
  145. package/dist/cdn/{DM7VOJLG.js → UCKWQ5LE.js} +1 -1
  146. package/dist/cdn/UCOHJ6HB.js +2 -0
  147. package/dist/cdn/UKNZDAOR.js +2 -0
  148. package/dist/cdn/{GGIMBRK5.js → ULEYWK3S.js} +1 -1
  149. package/dist/cdn/{J3MBWPYJ.js → UXNJ2I3X.js} +1 -1
  150. package/dist/cdn/{PMLCHLIE.js → V3HFGYU2.js} +1 -1
  151. package/dist/cdn/VEHFV22W.js +2 -0
  152. package/dist/cdn/{YBG5325Y.js → VFGWQVRF.js} +1 -1
  153. package/dist/cdn/VKNMXOGO.js +2 -0
  154. package/dist/cdn/VPFXLCEW.js +2 -0
  155. package/dist/cdn/VQ7D6WC2.js +2 -0
  156. package/dist/cdn/VUYX7MNO.js +2 -0
  157. package/dist/cdn/WK57DRIG.js +2 -0
  158. package/dist/cdn/WQPMPWU5.js +2 -0
  159. package/dist/cdn/WXUBPW4K.js +2 -0
  160. package/dist/cdn/{XG7NZDFJ.js → XAFFE75K.js} +1 -1
  161. package/dist/cdn/XDDOXJF4.js +2 -0
  162. package/dist/cdn/{42URAKLO.js → XI4PD2C6.js} +1 -1
  163. package/dist/cdn/XNB3ISIM.js +2 -0
  164. package/dist/cdn/XX43OXTK.js +2 -0
  165. package/dist/cdn/YCGTLTRR.js +2 -0
  166. package/dist/cdn/YEJ4DG6Z.js +2 -0
  167. package/dist/cdn/YGSLHDTB.js +2 -0
  168. package/dist/cdn/{FLYZR7QZ.js → YMLIZ6H5.js} +1 -1
  169. package/dist/cdn/{F6HWYMLX.js → YRGSOW7G.js} +1 -1
  170. package/dist/cdn/{CA7N26MN.js → YTJ3Q4D4.js} +1 -1
  171. package/dist/cdn/{LUB3SEVD.js → YXWA62OE.js} +1 -1
  172. package/dist/cdn/{DHYGUT4H.js → Z5BXSCXP.js} +1 -1
  173. package/dist/cdn/ZRTZSAU4.js +2 -0
  174. package/dist/cdn/{KYZ65ICN.js → ZTRUMW6A.js} +1 -1
  175. package/dist/cdn/{Z3JNHLOQ.js → ZW5SAEBQ.js} +1 -1
  176. package/dist/cdn/assets/icon/aiAgent16.json +1 -0
  177. package/dist/cdn/assets/icon/aiAgent24.json +1 -0
  178. package/dist/cdn/assets/icon/aiAgent32.json +1 -0
  179. package/dist/cdn/assets/icon/aiAgents16.json +1 -0
  180. package/dist/cdn/assets/icon/aiAgents24.json +1 -0
  181. package/dist/cdn/assets/icon/aiAgents32.json +1 -0
  182. package/dist/cdn/index.js +1 -1
  183. package/dist/chunks/ExpandToggle.js +2 -2
  184. package/dist/chunks/dom.js +24 -24
  185. package/dist/chunks/floating-ui.js +3 -3
  186. package/dist/chunks/locale.js +2 -2
  187. package/dist/chunks/manager.js +1 -1
  188. package/dist/chunks/openCloseComponent.js +1 -1
  189. package/dist/chunks/resources.js +13 -20
  190. package/dist/chunks/resources10.js +55 -12
  191. package/dist/chunks/resources11.js +5 -57
  192. package/dist/chunks/resources12.js +11 -30
  193. package/dist/chunks/resources13.js +26 -20
  194. package/dist/chunks/resources14.js +52 -28
  195. package/dist/chunks/resources15.js +39 -0
  196. package/dist/chunks/resources16.js +12 -0
  197. package/dist/chunks/resources17.js +17 -0
  198. package/dist/chunks/resources18.js +17 -0
  199. package/dist/chunks/resources19.js +19 -0
  200. package/dist/chunks/resources2.js +17 -10
  201. package/dist/chunks/resources20.js +39 -0
  202. package/dist/chunks/resources21.js +17 -0
  203. package/dist/chunks/resources22.js +14 -0
  204. package/dist/chunks/resources23.js +20 -0
  205. package/dist/chunks/resources24.js +26 -0
  206. package/dist/chunks/resources25.js +31 -0
  207. package/dist/chunks/resources26.js +26 -0
  208. package/dist/chunks/resources27.js +38 -0
  209. package/dist/chunks/resources28.js +14 -0
  210. package/dist/chunks/resources29.js +17 -0
  211. package/dist/chunks/resources3.js +17 -22
  212. package/dist/chunks/resources30.js +17 -0
  213. package/dist/chunks/resources31.js +28 -0
  214. package/dist/chunks/resources32.js +35 -0
  215. package/dist/chunks/resources33.js +35 -0
  216. package/dist/chunks/resources34.js +73 -0
  217. package/dist/chunks/resources4.js +20 -13
  218. package/dist/chunks/resources5.js +7 -45
  219. package/dist/chunks/resources6.js +16 -26
  220. package/dist/chunks/resources7.js +41 -51
  221. package/dist/chunks/resources8.js +19 -48
  222. package/dist/chunks/resources9.js +27 -8
  223. package/dist/chunks/runtime.js +13 -6
  224. package/dist/chunks/useFocusTrap.js +1 -1
  225. package/dist/chunks/useForm.js +1 -1
  226. package/dist/chunks/useLabel.js +1 -1
  227. package/dist/chunks/useSetFocus.js +1 -1
  228. package/dist/chunks/useTime.js +1 -1
  229. package/dist/chunks/utils.js +94 -298
  230. package/dist/chunks/utils2.js +62 -98
  231. package/dist/chunks/utils3.js +298 -58
  232. package/dist/chunks/utils4.js +25 -8
  233. package/dist/components/calcite-action/customElement.js +1 -1
  234. package/dist/components/calcite-action-bar/customElement.js +16 -27
  235. package/dist/components/calcite-action-group/customElement.js +5 -5
  236. package/dist/components/calcite-action-menu/customElement.js +6 -5
  237. package/dist/components/calcite-action-pad/customElement.js +4 -3
  238. package/dist/components/calcite-alert/customElement.js +3 -26
  239. package/dist/components/calcite-autocomplete/customElement.js +8 -6
  240. package/dist/components/calcite-autocomplete-item/customElement.js +1 -18
  241. package/dist/components/calcite-autocomplete-item-group/customElement.js +4 -10
  242. package/dist/components/calcite-avatar/customElement.js +2 -2
  243. package/dist/components/calcite-block/customElement.js +3 -3
  244. package/dist/components/calcite-block-group/customElement.js +6 -3
  245. package/dist/components/calcite-button/customElement.js +3 -3
  246. package/dist/components/calcite-card/customElement.js +1 -25
  247. package/dist/components/calcite-card-group/customElement.js +2 -1
  248. package/dist/components/calcite-carousel/customElement.js +1 -1
  249. package/dist/components/calcite-checkbox/customElement.js +1 -1
  250. package/dist/components/calcite-chip/customElement.js +2 -2
  251. package/dist/components/calcite-chip-group/customElement.js +2 -2
  252. package/dist/components/calcite-color-picker/customElement.js +2 -2
  253. package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
  254. package/dist/components/calcite-color-picker-swatch/customElement.js +2 -2
  255. package/dist/components/calcite-combobox/customElement.js +7 -7
  256. package/dist/components/calcite-combobox-item/customElement.js +1 -1
  257. package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
  258. package/dist/components/calcite-date-picker/customElement.js +1 -1
  259. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  260. package/dist/components/calcite-dialog/customElement.js +4 -32
  261. package/dist/components/calcite-dropdown/customElement.js +4 -3
  262. package/dist/components/calcite-dropdown-group/customElement.js +2 -6
  263. package/dist/components/calcite-dropdown-item/customElement.js +1 -1
  264. package/dist/components/calcite-flow/customElement.js +1 -1
  265. package/dist/components/calcite-flow-item/customElement.js +1 -1
  266. package/dist/components/calcite-inline-editable/customElement.js +2 -2
  267. package/dist/components/calcite-input/customElement.js +3 -3
  268. package/dist/components/calcite-input-date-picker/customElement.js +6 -5
  269. package/dist/components/calcite-input-message/customElement.js +1 -1
  270. package/dist/components/calcite-input-number/customElement.js +3 -3
  271. package/dist/components/calcite-input-text/customElement.js +2 -2
  272. package/dist/components/calcite-input-time-picker/customElement.js +1 -1
  273. package/dist/components/calcite-input-time-zone/customElement.js +3 -3
  274. package/dist/components/calcite-list/customElement.js +4 -19
  275. package/dist/components/calcite-list-item/customElement.js +2 -2
  276. package/dist/components/calcite-list-item-group/customElement.js +1 -5
  277. package/dist/components/calcite-menu/customElement.js +4 -4
  278. package/dist/components/calcite-menu-item/customElement.js +2 -2
  279. package/dist/components/calcite-navigation/customElement.js +10 -6
  280. package/dist/components/calcite-navigation-logo/customElement.js +1 -10
  281. package/dist/components/calcite-navigation-user/customElement.js +1 -7
  282. package/dist/components/calcite-notice/customElement.js +2 -2
  283. package/dist/components/calcite-panel/customElement.js +6 -5
  284. package/dist/components/calcite-popover/customElement.js +1 -1
  285. package/dist/components/calcite-radio-button/customElement.js +1 -1
  286. package/dist/components/calcite-rating/customElement.js +1 -1
  287. package/dist/components/calcite-segmented-control/customElement.js +5 -4
  288. package/dist/components/calcite-segmented-control-item/customElement.js +1 -12
  289. package/dist/components/calcite-select/customElement.js +6 -17
  290. package/dist/components/calcite-sheet/customElement.js +4 -20
  291. package/dist/components/calcite-shell/customElement.js +14 -10
  292. package/dist/components/calcite-shell-panel/customElement.js +5 -25
  293. package/dist/components/calcite-slider/customElement.js +2 -2
  294. package/dist/components/calcite-sort-handle/customElement.js +1 -1
  295. package/dist/components/calcite-sortable-list/customElement.js +1 -1
  296. package/dist/components/calcite-stack/customElement.js +1 -1
  297. package/dist/components/calcite-stepper/customElement.js +2 -2
  298. package/dist/components/calcite-stepper-item/customElement.js +1 -1
  299. package/dist/components/calcite-swatch/customElement.js +2 -2
  300. package/dist/components/calcite-swatch-group/customElement.js +2 -2
  301. package/dist/components/calcite-switch/customElement.js +1 -1
  302. package/dist/components/calcite-tab/customElement.js +6 -3
  303. package/dist/components/calcite-tab-nav/customElement.js +44 -56
  304. package/dist/components/calcite-tab-title/customElement.js +6 -3
  305. package/dist/components/calcite-table/customElement.js +2 -1
  306. package/dist/components/calcite-table-cell/customElement.js +1 -10
  307. package/dist/components/calcite-table-header/customElement.js +1 -20
  308. package/dist/components/calcite-table-row/customElement.js +5 -11
  309. package/dist/components/calcite-tabs/customElement.js +2 -7
  310. package/dist/components/calcite-text-area/customElement.js +2 -2
  311. package/dist/components/calcite-tile/customElement.js +1 -26
  312. package/dist/components/calcite-tile-group/customElement.js +2 -1
  313. package/dist/components/calcite-tooltip/customElement.js +2 -5
  314. package/dist/components/calcite-tree/customElement.js +4 -6
  315. package/dist/components/calcite-tree-item/customElement.js +5 -28
  316. package/dist/docs/api.json +1 -1
  317. package/dist/docs/docs.json +1 -1
  318. package/dist/docs/vscode.html-custom-data.json +1 -1
  319. package/dist/docs/web-types.json +1 -1
  320. package/dist/index.d.ts +7 -6
  321. package/dist/index.js +3 -9
  322. package/dist/runtime.d.ts +5 -0
  323. package/package.json +3 -3
  324. package/dist/cdn/23T3Y3GE.js +0 -2
  325. package/dist/cdn/2J4XUWYO.js +0 -2
  326. package/dist/cdn/2QCI6TGY.js +0 -2
  327. package/dist/cdn/34KZEKP6.js +0 -2
  328. package/dist/cdn/36CTZGVO.js +0 -2
  329. package/dist/cdn/3GFZCW2S.js +0 -2
  330. package/dist/cdn/3IN37UDC.js +0 -2
  331. package/dist/cdn/3NO7PELQ.js +0 -2
  332. package/dist/cdn/4PLXA7BH.js +0 -2
  333. package/dist/cdn/4XWM4DFD.js +0 -2
  334. package/dist/cdn/4Y4M7ARD.js +0 -2
  335. package/dist/cdn/4ZPZCAFM.js +0 -2
  336. package/dist/cdn/5IJ25RMA.js +0 -2
  337. package/dist/cdn/5J66CX7P.js +0 -2
  338. package/dist/cdn/6EXKM2ML.js +0 -2
  339. package/dist/cdn/6GIAYW5Y.js +0 -2
  340. package/dist/cdn/6JKGSMCW.js +0 -2
  341. package/dist/cdn/6XXNQZL3.js +0 -2
  342. package/dist/cdn/7KM6PEAO.js +0 -2
  343. package/dist/cdn/7L4EZFYG.js +0 -2
  344. package/dist/cdn/AQM2QT52.js +0 -2
  345. package/dist/cdn/B5YC7TWO.js +0 -2
  346. package/dist/cdn/BEE5ZZFY.js +0 -2
  347. package/dist/cdn/BYK32J57.js +0 -2
  348. package/dist/cdn/CU7WIQWZ.js +0 -2
  349. package/dist/cdn/DKLOOOBU.js +0 -2
  350. package/dist/cdn/DMK27J6W.js +0 -2
  351. package/dist/cdn/F5H4HXRA.js +0 -2
  352. package/dist/cdn/FD6VNHL5.js +0 -2
  353. package/dist/cdn/FJFIDF5X.js +0 -2
  354. package/dist/cdn/FKLTSNHW.js +0 -2
  355. package/dist/cdn/H6OMFL4C.js +0 -2
  356. package/dist/cdn/I54WYWFN.js +0 -2
  357. package/dist/cdn/IOP2EC5Y.js +0 -2
  358. package/dist/cdn/IUYFTZHO.js +0 -2
  359. package/dist/cdn/J65IBMKU.js +0 -2
  360. package/dist/cdn/K3KC5TPO.js +0 -2
  361. package/dist/cdn/KAOEUJGH.js +0 -2
  362. package/dist/cdn/KOR4DYKT.js +0 -2
  363. package/dist/cdn/KRZT7UVD.js +0 -2
  364. package/dist/cdn/M2UESRI2.js +0 -2
  365. package/dist/cdn/MFM5H6QD.js +0 -2
  366. package/dist/cdn/MH2UJM2V.js +0 -2
  367. package/dist/cdn/NQREOOD2.js +0 -2
  368. package/dist/cdn/NSQP35ZL.js +0 -2
  369. package/dist/cdn/NXWKWQ5V.js +0 -2
  370. package/dist/cdn/O4YJ665R.js +0 -2
  371. package/dist/cdn/O6ITH3QQ.js +0 -2
  372. package/dist/cdn/PAL5PWBK.js +0 -2
  373. package/dist/cdn/PXDYPEJ6.js +0 -2
  374. package/dist/cdn/QNRP4GC4.js +0 -2
  375. package/dist/cdn/RCVILOGX.js +0 -2
  376. package/dist/cdn/SRIC7E4A.js +0 -2
  377. package/dist/cdn/SWQCPUC2.js +0 -2
  378. package/dist/cdn/SX4QOMV2.js +0 -2
  379. package/dist/cdn/TIIHP3SW.js +0 -2
  380. package/dist/cdn/UHHRJXZZ.js +0 -2
  381. package/dist/cdn/VDIG2VCX.js +0 -2
  382. package/dist/cdn/W24BZ255.js +0 -2
  383. package/dist/cdn/W257N36J.js +0 -2
  384. package/dist/cdn/WUMVVIVR.js +0 -2
  385. package/dist/cdn/XCOABOUF.js +0 -2
  386. package/dist/cdn/XE2PPWZF.js +0 -2
  387. package/dist/cdn/XMLFJMMC.js +0 -2
  388. package/dist/cdn/XNYOZULC.js +0 -2
  389. package/dist/cdn/XRLXZHMJ.js +0 -2
  390. package/dist/cdn/ZRWKMT3E.js +0 -2
  391. /package/dist/cdn/{QBJZUEM2.js → 47B6Y2DM.js} +0 -0
  392. /package/dist/cdn/{TFGN3C6X.js → 5QN2KNKV.js} +0 -0
  393. /package/dist/cdn/{2YMRGSC2.js → CZERUG3F.js} +0 -0
  394. /package/dist/cdn/{KWIC32XQ.js → NH334SIF.js} +0 -0
  395. /package/dist/cdn/{Q24FQVQ4.js → V6MLAVPM.js} +0 -0
@@ -1,315 +1,111 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import Color from "color";
3
- import { calciteSpacingFixedXl, calciteSpacingFixedMd, calciteSpacingFixedSm } from "@esri/calcite-design-tokens/dist/es6/global.js";
4
- import { omit } from "es-toolkit";
5
- const CSS = {
6
- channel: "channel",
7
- channels: "channels",
8
- colorField: "color-field",
9
- colorFieldScope: "scope--color-field",
10
- colorMode: "color-mode",
11
- colorModeContainer: "color-mode-container",
12
- container: "container",
13
- control: "control",
14
- controlAndScope: "control-and-scope",
15
- controlSection: "control-section",
16
- deleteColor: "delete-color",
17
- header: "header",
18
- hexAndChannelsGroup: "hex-and-channels-group",
19
- hexOptions: "color-hex-options",
20
- hueScope: "scope--hue",
21
- hueSlider: "hue-slider",
22
- opacityScope: "scope--opacity",
23
- opacitySlider: "opacity-slider",
24
- preview: "preview",
25
- previewAndSliders: "preview-and-sliders",
26
- saveColor: "save-color",
27
- savedColor: "saved-color",
28
- savedColorsButtons: "saved-colors-buttons",
29
- savedColorsSection: "saved-colors-section",
30
- scope: "scope",
31
- section: "section",
32
- slider: "slider",
33
- sliders: "sliders",
34
- splitSection: "section--split",
35
- swatchGroup: "swatch-group"
36
- };
37
- const DEFAULT_COLOR = Color("#007AC2");
38
- const DEFAULT_STORAGE_KEY_PREFIX = "calcite-color-";
39
- const RGB_LIMITS = {
40
- r: 255,
41
- g: 255,
42
- b: 255
43
- };
44
- const HSV_LIMITS = {
45
- h: 360,
46
- s: 100,
47
- v: 100
48
- };
49
- const HUE_LIMIT_CONSTRAINED = HSV_LIMITS.h - 1;
50
- const OPACITY_LIMITS = {
51
- min: 0,
52
- max: 100
53
- };
54
- const STATIC_DIMENSIONS = {
55
- s: {
56
- gap: parseInt(calciteSpacingFixedSm, 10),
57
- slider: {
58
- height: 12
59
- },
60
- thumb: {
61
- radius: 7
62
- },
63
- preview: {
64
- size: 20
65
- },
66
- minWidth: 200
67
- },
68
- m: {
69
- gap: parseInt(calciteSpacingFixedMd, 10),
70
- slider: {
71
- height: 12
72
- },
73
- thumb: {
74
- radius: 7
75
- },
76
- preview: {
77
- size: 24
78
- },
79
- minWidth: 240
80
- },
81
- l: {
82
- gap: parseInt(calciteSpacingFixedXl, 10),
83
- slider: {
84
- height: 12
85
- },
86
- thumb: {
87
- radius: 7
88
- },
89
- preview: {
90
- size: 32
91
- },
92
- minWidth: 304
2
+ import { isServer } from "lit";
3
+ import { n as nodeListToArray } from "./dom.js";
4
+ import { A as AllComboboxChildrenSelector, C as ComboboxItemSelector, a as ComboboxItemGroupSelector } from "./resources10.js";
5
+ function getAncestors(element) {
6
+ const parent = element.parentElement?.closest(AllComboboxChildrenSelector);
7
+ const grandparent = parent?.parentElement?.closest(AllComboboxChildrenSelector);
8
+ return [parent, grandparent].filter((el) => !!el);
9
+ }
10
+ function getItemAncestors(item) {
11
+ return item.ancestors?.filter((el) => el.nodeName === "CALCITE-COMBOBOX-ITEM") || [];
12
+ }
13
+ function getItemChildren(item) {
14
+ return nodeListToArray(item.querySelectorAll("calcite-combobox-item"));
15
+ }
16
+ function hasActiveChildren(node) {
17
+ const items = nodeListToArray(node.querySelectorAll("calcite-combobox-item"));
18
+ return items.filter((item) => item.selected).length > 0;
19
+ }
20
+ function getDepth(element) {
21
+ if (isServer) {
22
+ return 0;
93
23
  }
94
- };
95
- const SCOPE_SIZE = 1;
96
- const ICONS = {
97
- minus: "minus",
98
- plus: "plus"
99
- };
100
- const hexChar = /^[0-9A-F]$/i;
101
- const shorthandHex = /^#[0-9A-F]{3}$/i;
102
- const longhandHex = /^#[0-9A-F]{6}$/i;
103
- const shorthandHexWithAlpha = /^#[0-9A-F]{4}$/i;
104
- const longhandHexWithAlpha = /^#[0-9A-F]{8}$/i;
105
- function colorFromValue(value, clearable = false, mode) {
106
- if (clearable && !value) {
107
- return void 0;
108
- }
109
- return Color(
110
- value != null && typeof value === "object" && alphaCompatible(mode) ? normalizeColor(value) : value
24
+ const result = document.evaluate(
25
+ "ancestor::calcite-combobox-item | ancestor::calcite-combobox-item-group",
26
+ element,
27
+ null,
28
+ XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
29
+ null
111
30
  );
112
- }
113
- const alphaToOpacity = (alpha) => Number((alpha * 100).toFixed());
114
- const opacityToAlpha = (opacity) => Number((opacity / 100).toFixed(2));
115
- function isValidHex(hex, hasAlpha = false) {
116
- return isShorthandHex(hex, hasAlpha) || isLonghandHex(hex, hasAlpha);
117
- }
118
- function evaluateHex(hex, length, pattern) {
119
- if (!hex) {
120
- return false;
121
- }
122
- return hex.length === length && pattern.test(hex);
123
- }
124
- function isShorthandHex(hex, hasAlpha = false) {
125
- const hexLength = hasAlpha ? 5 : 4;
126
- const hexPattern = hasAlpha ? shorthandHexWithAlpha : shorthandHex;
127
- return evaluateHex(hex, hexLength, hexPattern);
128
- }
129
- function isLonghandHex(hex, hasAlpha = false) {
130
- const hexLength = hasAlpha ? 9 : 7;
131
- const hexPattern = hasAlpha ? longhandHexWithAlpha : longhandHex;
132
- return evaluateHex(hex, hexLength, hexPattern);
133
- }
134
- function normalizeHex(hex, hasAlpha = false, convertFromHexToHexa = false) {
135
- hex = hex.toLowerCase();
136
- if (!hex.startsWith("#")) {
137
- hex = `#${hex}`;
138
- }
139
- if (isShorthandHex(hex, hasAlpha)) {
140
- return rgbToHex(hexToRGB(hex));
141
- }
142
- if (hasAlpha && convertFromHexToHexa && isValidHex(
143
- hex,
144
- false
145
- /* we only care about RGB hex for conversion */
146
- )) {
147
- const isShorthand = isShorthandHex(hex, false);
148
- return rgbToHex(hexToRGB(`${hex}${isShorthand ? "f" : "ff"}`));
31
+ const depth = result.snapshotLength;
32
+ if (depth > 0 && element.nodeName === ComboboxItemSelector) {
33
+ for (let i = 0; i < depth; i++) {
34
+ const parent = result.snapshotItem(i);
35
+ if (parent.nodeName === ComboboxItemGroupSelector) {
36
+ return depth;
37
+ }
38
+ }
39
+ } else if (element.nodeName === ComboboxItemGroupSelector) {
40
+ return depth;
149
41
  }
150
- return hex;
151
- }
152
- function hexify(color, hasAlpha = false) {
153
- return hasAlpha ? color.hexa() : color.hex();
154
- }
155
- function rgbToHex(color) {
156
- const { r, g, b } = color;
157
- const rChars = numToHex(r);
158
- const gChars = numToHex(g);
159
- const bChars = numToHex(b);
160
- const alphaChars = "a" in color ? numToHex(color.a * 255) : "";
161
- return `#${rChars}${gChars}${bChars}${alphaChars}`.toLowerCase();
162
- }
163
- function numToHex(num) {
164
- return num.toString(16).padStart(2, "0");
42
+ return depth + 1;
165
43
  }
166
- function normalizeAlpha(colorObject) {
167
- return {
168
- ...omit(colorObject, ["alpha"]),
169
- a: colorObject.alpha ?? 1
170
- /* Color() will omit alpha if 1 */
171
- };
44
+ function isSingleLike(selectionMode) {
45
+ return selectionMode.includes("single");
172
46
  }
173
- function normalizeColor(alphaColorObject) {
174
- return { ...omit(alphaColorObject, ["a"]), alpha: alphaColorObject.a ?? 1 };
47
+ function getLabel(item) {
48
+ return item.shortHeading || item.heading;
175
49
  }
176
- function hexToRGB(hex) {
177
- hex = hex.replace("#", "");
178
- let r;
179
- let g;
180
- let b;
181
- let a;
182
- const isShorthand = hex.length === 3 || hex.length === 4;
183
- if (isShorthand) {
184
- const [first, second, third, fourth] = hex.split("");
185
- r = parseInt(`${first}${first}`, 16);
186
- g = parseInt(`${second}${second}`, 16);
187
- b = parseInt(`${third}${third}`, 16);
188
- a = parseInt(`${fourth}${fourth}`, 16) / 255;
189
- } else {
190
- r = parseInt(hex.slice(0, 2), 16);
191
- g = parseInt(hex.slice(2, 4), 16);
192
- b = parseInt(hex.slice(4, 6), 16);
193
- a = parseInt(hex.slice(6, 8), 16) / 255;
50
+ function orderByPrevious(items, previousItems) {
51
+ if (items.length < 2 || previousItems.length === 0) {
52
+ return items;
194
53
  }
195
- return isNaN(a) ? { r, g, b } : { r, g, b, a };
196
- }
197
- const enumify = (x) => x;
198
- const CSSColorMode = enumify({
199
- HEX: "hex",
200
- HEXA: "hexa",
201
- RGB_CSS: "rgb-css",
202
- RGBA_CSS: "rgba-css",
203
- HSL_CSS: "hsl-css",
204
- HSLA_CSS: "hsla-css"
205
- });
206
- const ObjectColorMode = enumify({
207
- RGB: "rgb",
208
- RGBA: "rgba",
209
- HSL: "hsl",
210
- HSLA: "hsla",
211
- HSV: "hsv",
212
- HSVA: "hsva"
213
- });
214
- function parseMode(colorValue) {
215
- if (typeof colorValue === "string") {
216
- if (colorValue.startsWith("#")) {
217
- const { length } = colorValue;
218
- if (length === 4 || length === 7) {
219
- return CSSColorMode.HEX;
220
- }
221
- if (length === 5 || length === 9) {
222
- return CSSColorMode.HEXA;
223
- }
224
- }
225
- if (colorValue.startsWith("rgba(")) {
226
- return CSSColorMode.RGBA_CSS;
227
- }
228
- if (colorValue.startsWith("rgb(")) {
229
- return CSSColorMode.RGB_CSS;
54
+ const previousItemOrder = new Map(previousItems.map((item, index) => [item, index]));
55
+ return [...items].sort((a, b) => {
56
+ const aOrder = previousItemOrder.get(a);
57
+ const bOrder = previousItemOrder.get(b);
58
+ if (aOrder !== void 0 && bOrder !== void 0) {
59
+ return aOrder - bOrder;
230
60
  }
231
- if (colorValue.startsWith("hsl(")) {
232
- return CSSColorMode.HSL_CSS;
61
+ if (aOrder !== void 0) {
62
+ return -1;
233
63
  }
234
- if (colorValue.startsWith("hsla(")) {
235
- return CSSColorMode.HSLA_CSS;
64
+ if (bOrder !== void 0) {
65
+ return 1;
236
66
  }
67
+ return 0;
68
+ });
69
+ }
70
+ function consumeValue(counts, value) {
71
+ const count = counts.get(value) ?? 0;
72
+ if (count === 0) {
73
+ return false;
237
74
  }
238
- if (typeof colorValue === "object") {
239
- if (hasChannels(colorValue, "r", "g", "b")) {
240
- return hasChannels(colorValue, "a") ? ObjectColorMode.RGBA : ObjectColorMode.RGB;
241
- }
242
- if (hasChannels(colorValue, "h", "s", "l")) {
243
- return hasChannels(colorValue, "a") ? ObjectColorMode.HSLA : ObjectColorMode.HSL;
244
- }
245
- if (hasChannels(colorValue, "h", "s", "v")) {
246
- return hasChannels(colorValue, "a") ? ObjectColorMode.HSVA : ObjectColorMode.HSV;
247
- }
75
+ if (count === 1) {
76
+ counts.delete(value);
77
+ } else {
78
+ counts.set(value, count - 1);
248
79
  }
249
- return void 0;
250
- }
251
- function hasChannels(colorObject, ...channels) {
252
- return channels.every((channel) => channel && colorObject && `${channel}` in colorObject);
253
- }
254
- function colorEqual(value1, value2) {
255
- return value1?.rgb().array().toString() === value2?.rgb().array().toString();
256
- }
257
- function alphaCompatible(mode) {
258
- return mode === CSSColorMode.HEXA || mode === CSSColorMode.RGBA_CSS || mode === CSSColorMode.HSLA_CSS || mode === ObjectColorMode.RGBA || mode === ObjectColorMode.HSLA || mode === ObjectColorMode.HSVA;
259
- }
260
- function toAlphaMode(mode) {
261
- const alphaMode = mode === CSSColorMode.HEX ? CSSColorMode.HEXA : mode === CSSColorMode.RGB_CSS ? CSSColorMode.RGBA_CSS : mode === CSSColorMode.HSL_CSS ? CSSColorMode.HSLA_CSS : mode === ObjectColorMode.RGB ? ObjectColorMode.RGBA : mode === ObjectColorMode.HSL ? ObjectColorMode.HSLA : mode === ObjectColorMode.HSV ? ObjectColorMode.HSVA : mode;
262
- return alphaMode;
80
+ return true;
263
81
  }
264
- function toNonAlphaMode(mode) {
265
- const nonAlphaMode = mode === CSSColorMode.HEXA ? CSSColorMode.HEX : mode === CSSColorMode.RGBA_CSS ? CSSColorMode.RGB_CSS : mode === CSSColorMode.HSLA_CSS ? CSSColorMode.HSL_CSS : mode === ObjectColorMode.RGBA ? ObjectColorMode.RGB : mode === ObjectColorMode.HSLA ? ObjectColorMode.HSL : mode === ObjectColorMode.HSVA ? ObjectColorMode.HSV : mode;
266
- return nonAlphaMode;
267
- }
268
- const borderWidthInPx = 1;
269
- const inlineSizeBorderTotalWidth = borderWidthInPx * 2;
270
- function getSliderWidth(availableWidth, activeStaticDimensions, hasAlpha) {
271
- const previewWidth = hasAlpha ? STATIC_DIMENSIONS["l"].preview.size : activeStaticDimensions.preview.size;
272
- const effectiveWidth = availableWidth - inlineSizeBorderTotalWidth;
273
- const inlineSpaceAroundElements = activeStaticDimensions.gap * 3;
274
- return Math.max(effectiveWidth - inlineSpaceAroundElements - previewWidth, 0);
275
- }
276
- function getColorFieldDimensions(availableWidth) {
277
- const colorFieldAspectRatio = 1.8;
278
- const effectiveWidth = availableWidth - inlineSizeBorderTotalWidth;
279
- return {
280
- width: Math.max(effectiveWidth, 0),
281
- height: Math.max(Math.floor(effectiveWidth / colorFieldAspectRatio), 0)
282
- };
82
+ function orderValuesByPrevious(selectedValues, previousValues) {
83
+ if (selectedValues.length < 2 || previousValues.length === 0) {
84
+ return selectedValues;
85
+ }
86
+ const selectedValueCounts = /* @__PURE__ */ new Map();
87
+ selectedValues.forEach((value) => {
88
+ selectedValueCounts.set(value, (selectedValueCounts.get(value) ?? 0) + 1);
89
+ });
90
+ const orderedSelectedValues = previousValues.filter((value) => consumeValue(selectedValueCounts, value));
91
+ if (orderedSelectedValues.length === 0) {
92
+ return selectedValues;
93
+ }
94
+ selectedValues.forEach((value) => {
95
+ if (consumeValue(selectedValueCounts, value)) {
96
+ orderedSelectedValues.push(value);
97
+ }
98
+ });
99
+ return orderedSelectedValues;
283
100
  }
284
101
  export {
285
- CSSColorMode as C,
286
- DEFAULT_COLOR as D,
287
- HSV_LIMITS as H,
288
- ICONS as I,
289
- OPACITY_LIMITS as O,
290
- RGB_LIMITS as R,
291
- STATIC_DIMENSIONS as S,
292
- getColorFieldDimensions as a,
293
- hexify as b,
294
- colorFromValue as c,
295
- DEFAULT_STORAGE_KEY_PREFIX as d,
296
- alphaCompatible as e,
297
- colorEqual as f,
298
- getSliderWidth as g,
299
- hexToRGB as h,
300
- isValidHex as i,
301
- CSS as j,
302
- HUE_LIMIT_CONSTRAINED as k,
303
- normalizeAlpha as l,
304
- alphaToOpacity as m,
305
- normalizeHex as n,
306
- opacityToAlpha as o,
307
- parseMode as p,
308
- SCOPE_SIZE as q,
309
- toAlphaMode as r,
310
- isLonghandHex as s,
311
- toNonAlphaMode as t,
312
- isShorthandHex as u,
313
- rgbToHex as v,
314
- hexChar as w
102
+ orderByPrevious as a,
103
+ getItemAncestors as b,
104
+ getItemChildren as c,
105
+ getAncestors as d,
106
+ getDepth as e,
107
+ getLabel as g,
108
+ hasActiveChildren as h,
109
+ isSingleLike as i,
110
+ orderValuesByPrevious as o
315
111
  };
@@ -1,111 +1,75 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { isServer } from "lit";
3
- import { p as nodeListToArray } from "./dom.js";
4
- import { A as AllComboboxChildrenSelector, a as ComboboxItemSelector, b as ComboboxItemGroupSelector } from "./resources7.js";
5
- function getAncestors(element) {
6
- const parent = element.parentElement?.closest(AllComboboxChildrenSelector);
7
- const grandparent = parent?.parentElement?.closest(AllComboboxChildrenSelector);
8
- return [parent, grandparent].filter((el) => !!el);
9
- }
10
- function getItemAncestors(item) {
11
- return item.ancestors?.filter((el) => el.nodeName === "CALCITE-COMBOBOX-ITEM") || [];
12
- }
13
- function getItemChildren(item) {
14
- return nodeListToArray(item.querySelectorAll("calcite-combobox-item"));
15
- }
16
- function hasActiveChildren(node) {
17
- const items = nodeListToArray(node.querySelectorAll("calcite-combobox-item"));
18
- return items.filter((item) => item.selected).length > 0;
19
- }
20
- function getDepth(element) {
21
- if (isServer) {
22
- return 0;
2
+ import { defaultLocale, normalizeLocale, supportedLocales } from "@arcgis/toolkit/intl";
3
+ import { d as dateFromISO } from "./date.js";
4
+ import { g as getAssetPath, l as logger } from "./runtime.js";
5
+ const translationCache = {};
6
+ const requestCache = {};
7
+ const extraNlsLocales = [
8
+ "de-AT",
9
+ "de-CH",
10
+ "en-AU",
11
+ "en-CA",
12
+ "en-GB",
13
+ "es-MX",
14
+ "fr-CA",
15
+ "fr-CH",
16
+ "hi",
17
+ "it-CH",
18
+ "mk",
19
+ "pt"
20
+ ];
21
+ [...supportedLocales, ...extraNlsLocales];
22
+ function normalizeNlsLocale(locale) {
23
+ if (!locale) {
24
+ return defaultLocale;
23
25
  }
24
- const result = document.evaluate(
25
- "ancestor::calcite-combobox-item | ancestor::calcite-combobox-item-group",
26
- element,
27
- null,
28
- XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
29
- null
30
- );
31
- const depth = result.snapshotLength;
32
- if (depth > 0 && element.nodeName === ComboboxItemSelector) {
33
- for (let i = 0; i < depth; i++) {
34
- const parent = result.snapshotItem(i);
35
- if (parent.nodeName === ComboboxItemGroupSelector) {
36
- return depth;
37
- }
38
- }
39
- } else if (element.nodeName === ComboboxItemGroupSelector) {
40
- return depth;
26
+ const localeParts = locale.split("-");
27
+ locale = `${localeParts[0].toLowerCase()}${localeParts.length >= 2 ? `-${localeParts[1].toUpperCase()}` : ""}`;
28
+ if (extraNlsLocales.includes(locale)) {
29
+ return locale;
41
30
  }
42
- return depth + 1;
31
+ return normalizeLocale(locale);
43
32
  }
44
- function isSingleLike(selectionMode) {
45
- return selectionMode.includes("single");
33
+ async function getLocaleData(locale) {
34
+ locale = normalizeNlsLocale(locale);
35
+ if (translationCache[locale]) {
36
+ return translationCache[locale];
37
+ }
38
+ if (!requestCache[locale]) {
39
+ requestCache[locale] = fetch(getAssetPath(`./assets/date-picker/nls/${locale}.json`)).then((resp) => resp.json()).catch(() => {
40
+ logger.error(`Native Language Support data for "${locale}" not found or invalid, falling back to english`);
41
+ return getLocaleData(defaultLocale);
42
+ });
43
+ }
44
+ return translationCache[locale] = await requestCache[locale];
46
45
  }
47
- function getLabel(item) {
48
- return item.shortHeading || item.heading;
46
+ function applyLocaleOverride(locale) {
47
+ const localeOverrideMap = {
48
+ "ar-SA": "ar"
49
+ // see https://github.com/Esri/calcite-design-system/issues/11399
50
+ };
51
+ return localeOverrideMap[locale] || locale;
49
52
  }
50
- function orderByPrevious(items, previousItems) {
51
- if (items.length < 2 || previousItems.length === 0) {
52
- return items;
53
- }
54
- const previousItemOrder = new Map(previousItems.map((item, index) => [item, index]));
55
- return [...items].sort((a, b) => {
56
- const aOrder = previousItemOrder.get(a);
57
- const bOrder = previousItemOrder.get(b);
58
- if (aOrder !== void 0 && bOrder !== void 0) {
59
- return aOrder - bOrder;
60
- }
61
- if (aOrder !== void 0) {
62
- return -1;
63
- }
64
- if (bOrder !== void 0) {
65
- return 1;
66
- }
67
- return 0;
68
- });
53
+ function getValueAsDateRange(value) {
54
+ return value.map((v, index) => dateFromISO(v, index === 1));
69
55
  }
70
- function consumeValue(counts, value) {
71
- const count = counts.get(value) ?? 0;
72
- if (count === 0) {
73
- return false;
56
+ function getSource(changes, stringProp, dateProp) {
57
+ const stringPropChanged = changes.has(stringProp);
58
+ const datePropChanged = changes.has(dateProp);
59
+ if (stringPropChanged && !datePropChanged) {
60
+ return stringProp;
74
61
  }
75
- if (count === 1) {
76
- counts.delete(value);
77
- } else {
78
- counts.set(value, count - 1);
62
+ if (datePropChanged && !stringPropChanged) {
63
+ return dateProp;
79
64
  }
80
- return true;
65
+ return void 0;
81
66
  }
82
- function orderValuesByPrevious(selectedValues, previousValues) {
83
- if (selectedValues.length < 2 || previousValues.length === 0) {
84
- return selectedValues;
85
- }
86
- const selectedValueCounts = /* @__PURE__ */ new Map();
87
- selectedValues.forEach((value) => {
88
- selectedValueCounts.set(value, (selectedValueCounts.get(value) ?? 0) + 1);
89
- });
90
- const orderedSelectedValues = previousValues.filter((value) => consumeValue(selectedValueCounts, value));
91
- if (orderedSelectedValues.length === 0) {
92
- return selectedValues;
93
- }
94
- selectedValues.forEach((value) => {
95
- if (consumeValue(selectedValueCounts, value)) {
96
- orderedSelectedValues.push(value);
97
- }
98
- });
99
- return orderedSelectedValues;
67
+ function getMinMaxSource(changes, type) {
68
+ return type === "min" ? getSource(changes, "min", "minAsDate") : getSource(changes, "max", "maxAsDate");
100
69
  }
101
70
  export {
102
- orderByPrevious as a,
103
- getItemAncestors as b,
104
- getItemChildren as c,
105
- getAncestors as d,
106
- getDepth as e,
107
- getLabel as g,
108
- hasActiveChildren as h,
109
- isSingleLike as i,
110
- orderValuesByPrevious as o
71
+ getValueAsDateRange as a,
72
+ applyLocaleOverride as b,
73
+ getLocaleData as c,
74
+ getMinMaxSource as g
111
75
  };