@esri/calcite-components 6.0.0-next.5 → 6.0.0-next.51
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.
- package/README.md +1 -1
- package/THIRD-PARTY-NOTICES.md +0 -1
- package/dist/cdn/2D624SSL.js +2 -0
- package/dist/cdn/2KSWB7UR.js +2 -0
- package/dist/cdn/{TJJ4FNSU.js → 3A4NAVOV.js} +1 -1
- package/dist/cdn/3NBJMGHV.js +4 -0
- package/dist/cdn/3T7XLOQ4.js +2 -0
- package/dist/cdn/47WLTGVK.js +2 -0
- package/dist/cdn/4EXACRAN.js +2 -0
- package/dist/cdn/4HPPSVUK.js +2 -0
- package/dist/cdn/{ZDSVHHRM.js → 4K4EWOB2.js} +1 -1
- package/dist/cdn/4WAEULEX.js +2 -0
- package/dist/cdn/{4EQE5JJC.js → 4WQC435X.js} +1 -1
- package/dist/cdn/4ZDSBVJS.js +2 -0
- package/dist/cdn/{7YEZVXC4.js → 4ZFQLQBB.js} +1 -1
- package/dist/cdn/53DXCUQU.js +2 -0
- package/dist/cdn/{TWH3HM5K.js → 57GIS64N.js} +1 -1
- package/dist/cdn/{LHJS25PA.js → 5DYPJG6S.js} +1 -1
- package/dist/cdn/5EOEUJM7.js +2 -0
- package/dist/cdn/5ESQKQEW.js +2 -0
- package/dist/cdn/5F3SEYG4.js +2 -0
- package/dist/cdn/5HDZMOGI.js +2 -0
- package/dist/cdn/{SXAW7MNS.js → 5HEWZYIQ.js} +1 -1
- package/dist/cdn/{737AN2CX.js → 5LWU7V5K.js} +1 -1
- package/dist/cdn/{PK5MLS2X.js → 5WAV37RA.js} +1 -1
- package/dist/cdn/{D2FR4GH5.js → 5WZMYN37.js} +1 -1
- package/dist/cdn/66YKEHZE.js +2 -0
- package/dist/cdn/6AGTWUW7.js +2 -0
- package/dist/cdn/6IIQNNFE.js +2 -0
- package/dist/cdn/6IXYPIFX.js +2 -0
- package/dist/cdn/6TJLBRYD.js +2 -0
- package/dist/cdn/6TP6A2OR.js +2 -0
- package/dist/cdn/773SAOHI.js +2 -0
- package/dist/cdn/{UE76JFYY.js → 7AHARU7F.js} +1 -1
- package/dist/cdn/7B27DU4W.js +2 -0
- package/dist/cdn/{AYRJ7NYC.js → 7JCCKSQC.js} +1 -1
- package/dist/cdn/{6GU5XOTF.js → 7LCAQQHB.js} +1 -1
- package/dist/cdn/{AYJ5CTFA.js → 7LGZTOIW.js} +1 -1
- package/dist/cdn/7Q3KGX7T.js +2 -0
- package/dist/cdn/7VFWQ5RD.js +2 -0
- package/dist/cdn/{NRBCU3IU.js → ABGFRD72.js} +1 -1
- package/dist/cdn/AITX66YS.js +2 -0
- package/dist/cdn/{PKE76JAT.js → AODCZQUZ.js} +1 -1
- package/dist/cdn/ATAE6F3L.js +2 -0
- package/dist/cdn/{DA4UPT5D.js → AUCKNSK3.js} +1 -1
- package/dist/cdn/{MYE6TQLH.js → B2QILCCZ.js} +1 -1
- package/dist/cdn/BABG4CNZ.js +2 -0
- package/dist/cdn/BBBECRBK.js +2 -0
- package/dist/cdn/BJDH72ZQ.js +2 -0
- package/dist/cdn/{C5VPMXSE.js → BJFAQLRH.js} +1 -1
- package/dist/cdn/BUMDI3KY.js +2 -0
- package/dist/cdn/BVKZCS3D.js +2 -0
- package/dist/cdn/{XJ6NSPTC.js → C32WW5T2.js} +1 -1
- package/dist/cdn/C7KMPZY4.js +2 -0
- package/dist/cdn/CCWAIJO6.js +2 -0
- package/dist/cdn/{CYUADPWR.js → CEHMT65V.js} +1 -1
- package/dist/cdn/{X3GL33HO.js → CHOB5WLY.js} +1 -1
- package/dist/cdn/{XKHMRAUY.js → COWUMHFG.js} +1 -1
- package/dist/cdn/CWEB32ZH.js +2 -0
- package/dist/cdn/D2G6JBR5.js +2 -0
- package/dist/cdn/{K7OAYVIZ.js → D3OREMPL.js} +1 -1
- package/dist/cdn/{NY4HO46K.js → D52EAJQW.js} +1 -1
- package/dist/cdn/D6LCOOQP.js +2 -0
- package/dist/cdn/{L52YMQCF.js → D73DTPW3.js} +1 -1
- package/dist/cdn/{ECJJHTCC.js → DGOFDT3T.js} +1 -1
- package/dist/cdn/{273FNCX2.js → DJLMVPRW.js} +1 -1
- package/dist/cdn/DRDNQWFK.js +2 -0
- package/dist/cdn/DZ54NRXA.js +2 -0
- package/dist/cdn/ERY7PKAA.js +2 -0
- package/dist/cdn/EU7XKCX4.js +2 -0
- package/dist/cdn/{TG6LJRQJ.js → EYU4XG3Y.js} +1 -1
- package/dist/cdn/{WPXPACIC.js → F4DUCGHH.js} +1 -1
- package/dist/cdn/FEFFRANN.js +2 -0
- package/dist/cdn/FRK6TCMW.js +2 -0
- package/dist/cdn/FTHWUPVF.js +2 -0
- package/dist/cdn/FVHEWBBC.js +2 -0
- package/dist/cdn/{YWJV2ZJH.js → FWMKFJLG.js} +1 -1
- package/dist/cdn/FXVRAHD2.js +2 -0
- package/dist/cdn/GF5L2VH6.js +2 -0
- package/dist/cdn/GK5WASZ7.js +2 -0
- package/dist/cdn/{MC522KJR.js → H5LDUQS2.js} +1 -1
- package/dist/cdn/{M3HRK4VF.js → H65WTPUZ.js} +1 -1
- package/dist/cdn/{F5NFIKN3.js → HFH26HXC.js} +1 -1
- package/dist/cdn/HNJNOW6W.js +2 -0
- package/dist/cdn/HW2HJI52.js +2 -0
- package/dist/cdn/{PO3AUY5J.js → HXESPYY7.js} +1 -1
- package/dist/cdn/{CTFG7BKR.js → IWH5APVB.js} +1 -1
- package/dist/cdn/IXUTEOQD.js +2 -0
- package/dist/cdn/{YKIZTDDC.js → JBWSXFM3.js} +1 -1
- package/dist/cdn/JQ534JCX.js +2 -0
- package/dist/cdn/{5MS2WLV2.js → JYSIE3UY.js} +1 -1
- package/dist/cdn/KB6AN3NL.js +2 -0
- package/dist/cdn/{KU6RBOVV.js → KBB26N34.js} +1 -1
- package/dist/cdn/{3RARWUDR.js → KEXQUMCP.js} +1 -1
- package/dist/cdn/{DPRLR4WC.js → KITAKEBT.js} +1 -1
- package/dist/cdn/{QSCHAI4V.js → KOK3DJC6.js} +1 -1
- package/dist/cdn/KQQQGJW5.js +2 -0
- package/dist/cdn/{XWKUAYS3.js → KTA2LFLG.js} +1 -1
- package/dist/cdn/KTTCPR2U.js +2 -0
- package/dist/cdn/KXCPMERG.js +2 -0
- package/dist/cdn/L2C2SRMU.js +2 -0
- package/dist/cdn/L4NFF6AC.js +2 -0
- package/dist/cdn/LOEOE7M6.js +2 -0
- package/dist/cdn/{YKOI3XVI.js → MDXRSPDG.js} +1 -1
- package/dist/cdn/{UW677YPW.js → MIIHFLJO.js} +1 -1
- package/dist/cdn/MVCZVYVR.js +2 -0
- package/dist/cdn/N2KZ34HE.js +2 -0
- package/dist/cdn/N3SMZYHC.js +2 -0
- package/dist/cdn/{QQJAAD4D.js → N7E3E77O.js} +1 -1
- package/dist/cdn/{VGKPID66.js → NAFBP75W.js} +1 -1
- package/dist/cdn/{LUGSZCWA.js → NBCVDTJX.js} +1 -1
- package/dist/cdn/NWCKYTBC.js +2 -0
- package/dist/cdn/O5GBC7AL.js +2 -0
- package/dist/cdn/O5RVKFWG.js +2 -0
- package/dist/cdn/OEIJT2EQ.js +2 -0
- package/dist/cdn/P3W3Y6O4.js +2 -0
- package/dist/cdn/PEO7SAVP.js +2 -0
- package/dist/cdn/Q2WNLFLY.js +2 -0
- package/dist/cdn/Q4ZZHX3D.js +2 -0
- package/dist/cdn/{XDGVGNRC.js → Q5V3JJ3K.js} +1 -1
- package/dist/cdn/{V5ZVLKEP.js → QC7JENAY.js} +1 -1
- package/dist/cdn/QTILE74X.js +2 -0
- package/dist/cdn/QVOOOKLE.js +2 -0
- package/dist/cdn/{4FSEKMYN.js → QXOUBSFY.js} +1 -1
- package/dist/cdn/{4XVKHJ2X.js → QYVKOLJZ.js} +1 -1
- package/dist/cdn/{536OOFOA.js → RR7PBKGS.js} +1 -1
- package/dist/cdn/{U7YCVXZ3.js → RSOKJ3DI.js} +1 -1
- package/dist/cdn/{RUGBI54D.js → RUL4R55W.js} +1 -1
- package/dist/cdn/{HA2ZZDSM.js → RY4NBM32.js} +1 -1
- package/dist/cdn/SKKOKDOW.js +2 -0
- package/dist/cdn/SUVKKVZF.js +2 -0
- package/dist/cdn/{5KFAAGRL.js → SY7LMXRB.js} +1 -1
- package/dist/cdn/{ZMWKGSAI.js → T75SI5EZ.js} +1 -1
- package/dist/cdn/TAFJVUPW.js +2 -0
- package/dist/cdn/TAPKZV2B.js +2 -0
- package/dist/cdn/TB5OZBID.js +2 -0
- package/dist/cdn/{2ZGOGJF6.js → TINQCGW6.js} +1 -1
- package/dist/cdn/TL56TNQ7.js +2 -0
- package/dist/cdn/TUOUGF36.js +2 -0
- package/dist/cdn/{KE3GJVSQ.js → TVVDDJRC.js} +1 -1
- package/dist/cdn/U67U5QLO.js +2 -0
- package/dist/cdn/U7T57KTA.js +2 -0
- package/dist/cdn/{KRVMZWGR.js → UIP5HA4V.js} +1 -1
- package/dist/cdn/UNPSBSDU.js +2 -0
- package/dist/cdn/URJSHCG7.js +2 -0
- package/dist/cdn/{G7RVPH4C.js → URSMORCH.js} +1 -1
- package/dist/cdn/UZBPBZVF.js +2 -0
- package/dist/cdn/V6OJPZPP.js +2 -0
- package/dist/cdn/{CRGIK64V.js → VCTSR5T7.js} +1 -1
- package/dist/cdn/{DXCRPQH4.js → VE6WY36S.js} +1 -1
- package/dist/cdn/{ENQ4M24T.js → VESF2GCV.js} +1 -1
- package/dist/cdn/W3QFT5HQ.js +2 -0
- package/dist/cdn/W5CA54BX.js +2 -0
- package/dist/cdn/W77STZAT.js +2 -0
- package/dist/cdn/{KAADRWY5.js → WBDWFW77.js} +1 -1
- package/dist/cdn/WNWGBROE.js +2 -0
- package/dist/cdn/{IYGOUZKO.js → WPQCYKCH.js} +1 -1
- package/dist/cdn/WTNYMVTD.js +2 -0
- package/dist/cdn/X7YWBRFS.js +2 -0
- package/dist/cdn/XBGQAYDE.js +2 -0
- package/dist/cdn/XCGCSSUS.js +2 -0
- package/dist/cdn/XGQPNHEE.js +2 -0
- package/dist/cdn/XMPMTIWJ.js +2 -0
- package/dist/cdn/XPQHNBHE.js +2 -0
- package/dist/cdn/Y3NRRRC4.js +2 -0
- package/dist/cdn/{NBOTH5XL.js → Y7IWVO2K.js} +1 -1
- package/dist/cdn/{IZA6J7L4.js → YBUMOVNH.js} +1 -1
- package/dist/cdn/YCDS7GCN.js +2 -0
- package/dist/cdn/YGKX567C.js +2 -0
- package/dist/cdn/YHSZU6KL.js +2 -0
- package/dist/cdn/YIYIOWAV.js +2 -0
- package/dist/cdn/YO4MLJBI.js +2 -0
- package/dist/cdn/{I23HELDC.js → YRORHFUF.js} +1 -1
- package/dist/cdn/YY2M32OB.js +2 -0
- package/dist/cdn/Z5NL6KPX.js +4 -0
- package/dist/cdn/{7RDYCXQU.js → ZHLDAOTB.js} +1 -1
- package/dist/cdn/ZLH6GO6P.js +2 -0
- package/dist/cdn/assets/icon/alignBottom16.json +1 -1
- package/dist/cdn/assets/icon/alignBottom24.json +1 -1
- package/dist/cdn/assets/icon/alignBottom32.json +1 -1
- package/dist/cdn/assets/icon/alignCenterHorizontal16.json +1 -1
- package/dist/cdn/assets/icon/alignCenterHorizontal24.json +1 -1
- package/dist/cdn/assets/icon/alignCenterHorizontal32.json +1 -1
- package/dist/cdn/assets/icon/alignCenterVertical16.json +1 -1
- package/dist/cdn/assets/icon/alignCenterVertical24.json +1 -1
- package/dist/cdn/assets/icon/alignCenterVertical32.json +1 -1
- package/dist/cdn/assets/icon/alignLeft16.json +1 -1
- package/dist/cdn/assets/icon/alignLeft24.json +1 -1
- package/dist/cdn/assets/icon/alignLeft32.json +1 -1
- package/dist/cdn/assets/icon/alignRight16.json +1 -1
- package/dist/cdn/assets/icon/alignRight24.json +1 -1
- package/dist/cdn/assets/icon/alignRight32.json +1 -1
- package/dist/cdn/assets/icon/alignTop16.json +1 -1
- package/dist/cdn/assets/icon/alignTop24.json +1 -1
- package/dist/cdn/assets/icon/alignTop32.json +1 -1
- package/dist/cdn/assets/icon/diamondGem16.json +1 -0
- package/dist/cdn/assets/icon/diamondGem24.json +1 -0
- package/dist/cdn/assets/icon/diamondGem32.json +1 -0
- package/dist/cdn/assets/icon/filterX16.json +1 -0
- package/dist/cdn/assets/icon/filterX24.json +1 -0
- package/dist/cdn/assets/icon/filterX32.json +1 -0
- package/dist/cdn/assets/icon/spaceBetweenHorizontal16.json +1 -1
- package/dist/cdn/assets/icon/stretchHorizontal16.json +1 -1
- package/dist/cdn/assets/icon/stretchHorizontal24.json +1 -1
- package/dist/cdn/assets/icon/stretchHorizontal32.json +1 -1
- package/dist/cdn/assets/icon/stretchVertical16.json +1 -1
- package/dist/cdn/assets/icon/stretchVertical24.json +1 -1
- package/dist/cdn/assets/icon/stretchVertical32.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +2 -2
- package/dist/chunks/aria.js +5 -0
- package/dist/chunks/dom.js +37 -32
- package/dist/chunks/header.js +1 -1
- package/dist/chunks/locale.js +11 -14
- package/dist/chunks/manager.js +13 -1
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/resources10.js +6 -56
- package/dist/chunks/resources11.js +21 -5
- package/dist/chunks/resources12.js +1 -1
- package/dist/chunks/resources13.js +1 -1
- package/dist/chunks/resources15.js +1 -1
- package/dist/chunks/resources17.js +1 -1
- package/dist/chunks/resources18.js +1 -1
- package/dist/chunks/resources2.js +18 -22
- package/dist/chunks/resources20.js +1 -1
- package/dist/chunks/resources21.js +1 -1
- package/dist/chunks/resources22.js +1 -1
- package/dist/chunks/resources23.js +1 -1
- package/dist/chunks/resources24.js +1 -1
- package/dist/chunks/resources25.js +1 -1
- package/dist/chunks/resources26.js +5 -6
- package/dist/chunks/resources27.js +1 -1
- package/dist/chunks/resources28.js +1 -1
- package/dist/chunks/resources29.js +1 -1
- package/dist/chunks/resources3.js +19 -18
- package/dist/chunks/resources30.js +1 -1
- package/dist/chunks/resources31.js +1 -1
- package/dist/chunks/resources32.js +1 -2
- package/dist/chunks/resources33.js +1 -1
- package/dist/chunks/resources34.js +1 -1
- package/dist/chunks/resources4.js +9 -19
- package/dist/chunks/resources5.js +19 -7
- package/dist/chunks/resources6.js +39 -13
- package/dist/chunks/resources7.js +20 -38
- package/dist/chunks/resources8.js +23 -21
- package/dist/chunks/resources9.js +52 -27
- package/dist/chunks/responsive.js +2 -2
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/sortable.js +1 -1
- package/dist/chunks/useFocusable.js +25 -2
- package/dist/chunks/useSizeOverride.js +2 -2
- package/dist/chunks/useTime.js +1 -3
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils3.js +4 -4
- package/dist/chunks/utils4.js +1 -2
- package/dist/components/calcite-accordion/customElement.d.ts +1 -0
- package/dist/components/calcite-accordion/customElement.js +4 -2
- package/dist/components/calcite-accordion-item/customElement.d.ts +2 -0
- package/dist/components/calcite-accordion-item/customElement.js +7 -5
- package/dist/components/calcite-action/customElement.d.ts +5 -45
- package/dist/components/calcite-action/customElement.js +8 -11
- package/dist/components/calcite-action-bar/customElement.d.ts +1 -7
- package/dist/components/calcite-action-bar/customElement.js +424 -60
- package/dist/components/calcite-action-group/customElement.d.ts +8 -3
- package/dist/components/calcite-action-group/customElement.js +66 -33
- package/dist/components/calcite-action-menu/customElement.d.ts +40 -6
- package/dist/components/calcite-action-menu/customElement.js +219 -60
- package/dist/components/calcite-alert/customElement.d.ts +0 -3
- package/dist/components/calcite-alert/customElement.js +4 -4
- package/dist/components/calcite-autocomplete/customElement.d.ts +1 -0
- package/dist/components/calcite-autocomplete/customElement.js +34 -11
- package/dist/components/calcite-autocomplete-item/customElement.d.ts +2 -0
- package/dist/components/calcite-autocomplete-item/customElement.js +2 -2
- package/dist/components/calcite-autocomplete-item-group/customElement.d.ts +5 -1
- package/dist/components/calcite-autocomplete-item-group/customElement.js +7 -5
- package/dist/components/calcite-avatar/customElement.js +1 -1
- package/dist/components/calcite-block/customElement.d.ts +1 -53
- package/dist/components/calcite-block/customElement.js +5 -34
- package/dist/components/calcite-block/index.js +1 -1
- package/dist/components/calcite-block-group/customElement.d.ts +4 -8
- package/dist/components/calcite-block-group/customElement.js +31 -12
- package/dist/components/calcite-block-section/customElement.d.ts +2 -0
- package/dist/components/calcite-block-section/customElement.js +1 -1
- package/dist/components/calcite-button/customElement.d.ts +4 -5
- package/dist/components/calcite-button/customElement.js +7 -7
- package/dist/components/calcite-card/customElement.d.ts +1 -0
- package/dist/components/calcite-card/customElement.js +3 -3
- package/dist/components/calcite-card-group/customElement.d.ts +4 -1
- package/dist/components/calcite-card-group/customElement.js +4 -4
- package/dist/components/calcite-carousel/customElement.d.ts +4 -1
- package/dist/components/calcite-carousel/customElement.js +3 -3
- package/dist/components/calcite-carousel-item/customElement.d.ts +5 -1
- package/dist/components/calcite-checkbox/customElement.js +2 -2
- package/dist/components/calcite-chip/customElement.d.ts +1 -0
- package/dist/components/calcite-chip/customElement.js +3 -3
- package/dist/components/calcite-chip-group/customElement.d.ts +4 -1
- package/dist/components/calcite-chip-group/customElement.js +4 -4
- package/dist/components/calcite-color-picker/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker/customElement.js +3 -3
- package/dist/components/calcite-color-picker/utils.d.ts +6 -6
- package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +21 -3
- package/dist/components/calcite-color-picker-hex-input/customElement.js +3 -3
- package/dist/components/calcite-combobox/customElement.d.ts +1 -0
- package/dist/components/calcite-combobox/customElement.js +15 -8
- package/dist/components/calcite-combobox/types.d.ts +1 -0
- package/dist/components/calcite-combobox-item/customElement.d.ts +8 -1
- package/dist/components/calcite-combobox-item/customElement.js +2 -2
- package/dist/components/calcite-combobox-item-group/customElement.d.ts +11 -2
- package/dist/components/calcite-combobox-item-group/customElement.js +6 -2
- package/dist/components/calcite-date-picker/customElement.d.ts +2 -2
- package/dist/components/calcite-date-picker/customElement.js +1 -1
- package/dist/components/calcite-date-picker-day/customElement.js +2 -2
- package/dist/components/calcite-date-picker-month-header/customElement.js +9 -6
- package/dist/components/calcite-dialog/customElement.d.ts +8 -7
- package/dist/components/calcite-dialog/customElement.js +14 -8
- package/dist/components/calcite-dropdown/customElement.d.ts +2 -1
- package/dist/components/calcite-dropdown/customElement.js +382 -104
- package/dist/components/calcite-dropdown-group/customElement.d.ts +5 -1
- package/dist/components/calcite-dropdown-group/customElement.js +8 -3
- package/dist/components/calcite-dropdown-item/customElement.d.ts +6 -1
- package/dist/components/calcite-dropdown-item/customElement.js +16 -10
- package/dist/components/calcite-fab/customElement.d.ts +1 -0
- package/dist/components/calcite-fab/customElement.js +2 -2
- package/dist/components/calcite-filter/customElement.js +2 -2
- package/dist/components/calcite-flow/customElement.d.ts +4 -1
- package/dist/components/calcite-flow/customElement.js +6 -3
- package/dist/components/calcite-flow-item/customElement.d.ts +8 -4
- package/dist/components/calcite-flow-item/customElement.js +1 -1
- package/dist/components/calcite-graph/customElement.d.ts +22 -3
- package/dist/components/calcite-graph/types.d.ts +7 -7
- package/dist/components/calcite-icon/customElement.js +9 -16
- package/dist/components/calcite-icon/types.d.ts +5 -5
- package/dist/components/calcite-inline-editable/customElement.js +10 -5
- package/dist/components/calcite-input/customElement.d.ts +1 -0
- package/dist/components/calcite-input/customElement.js +5 -3
- package/dist/components/calcite-input-date-picker/customElement.d.ts +6 -9
- package/dist/components/calcite-input-date-picker/customElement.js +10 -7
- package/dist/components/calcite-input-message/customElement.d.ts +1 -1
- package/dist/components/calcite-input-message/customElement.js +2 -2
- package/dist/components/calcite-input-number/customElement.d.ts +1 -16
- package/dist/components/calcite-input-number/customElement.js +5 -5
- package/dist/components/calcite-input-text/customElement.d.ts +1 -0
- package/dist/components/calcite-input-text/customElement.js +3 -3
- package/dist/components/calcite-input-time-picker/customElement.d.ts +4 -1
- package/dist/components/calcite-input-time-picker/customElement.js +6 -3
- package/dist/components/calcite-input-time-zone/customElement.d.ts +4 -2
- package/dist/components/calcite-input-time-zone/customElement.js +14 -9
- package/dist/components/calcite-label/customElement.d.ts +1 -3
- package/dist/components/calcite-label/customElement.js +1 -1
- package/dist/components/calcite-link/customElement.d.ts +3 -9
- package/dist/components/calcite-link/customElement.js +4 -4
- package/dist/components/calcite-list/customElement.d.ts +3 -12
- package/dist/components/calcite-list/customElement.js +24 -10
- package/dist/components/calcite-list/index.js +1 -1
- package/dist/components/calcite-list-item/customElement.d.ts +13 -1
- package/dist/components/calcite-list-item/customElement.js +12 -5
- package/dist/components/calcite-list-item-group/customElement.d.ts +5 -1
- package/dist/components/calcite-list-item-group/customElement.js +4 -2
- package/dist/components/calcite-loader/customElement.d.ts +0 -9
- package/dist/components/calcite-loader/customElement.js +1 -1
- package/dist/components/calcite-menu/customElement.d.ts +4 -3
- package/dist/components/calcite-menu/customElement.js +3 -3
- package/dist/components/calcite-menu-item/customElement.d.ts +5 -1
- package/dist/components/calcite-menu-item/customElement.js +7 -4
- package/dist/components/calcite-meter/customElement.d.ts +0 -3
- package/dist/components/calcite-meter/customElement.js +2 -2
- package/dist/components/calcite-navigation/customElement.d.ts +1 -6
- package/dist/components/calcite-navigation/customElement.js +16 -4
- package/dist/components/calcite-navigation-logo/customElement.d.ts +4 -0
- package/dist/components/calcite-navigation-logo/customElement.js +2 -2
- package/dist/components/calcite-navigation-user/customElement.d.ts +4 -0
- package/dist/components/calcite-navigation-user/customElement.js +2 -2
- package/dist/components/calcite-notice/customElement.d.ts +1 -8
- package/dist/components/calcite-notice/customElement.js +4 -4
- package/dist/components/calcite-option/customElement.d.ts +4 -0
- package/dist/components/calcite-option-group/customElement.d.ts +5 -1
- package/dist/components/calcite-pagination/customElement.js +2 -2
- package/dist/components/calcite-panel/customElement.d.ts +4 -2
- package/dist/components/calcite-panel/customElement.js +13 -8
- package/dist/components/calcite-popover/customElement.js +2 -2
- package/dist/components/calcite-progress/customElement.js +1 -1
- package/dist/components/calcite-radio-button/customElement.d.ts +1 -0
- package/dist/components/calcite-radio-button/customElement.js +2 -2
- package/dist/components/calcite-radio-button-group/customElement.d.ts +1 -0
- package/dist/components/calcite-radio-button-group/customElement.js +1 -1
- package/dist/components/calcite-rating/customElement.js +8 -8
- package/dist/components/calcite-scrim/customElement.js +2 -2
- package/dist/components/calcite-segmented-control/customElement.d.ts +5 -6
- package/dist/components/calcite-segmented-control/customElement.js +4 -5
- package/dist/components/calcite-segmented-control-item/customElement.d.ts +4 -0
- package/dist/components/calcite-segmented-control-item/customElement.js +2 -2
- package/dist/components/calcite-select/customElement.d.ts +6 -7
- package/dist/components/calcite-select/customElement.js +4 -5
- package/dist/components/calcite-sheet/customElement.d.ts +4 -7
- package/dist/components/calcite-sheet/customElement.js +49 -26
- package/dist/components/calcite-shell/customElement.d.ts +1 -0
- package/dist/components/calcite-shell/customElement.js +9 -4
- package/dist/components/calcite-shell-panel/customElement.d.ts +10 -27
- package/dist/components/calcite-shell-panel/customElement.js +34 -12
- package/dist/components/calcite-shell-panel/types.d.ts +1 -1
- package/dist/components/calcite-slider/customElement.d.ts +16 -1
- package/dist/components/calcite-slider/customElement.js +195 -40
- package/dist/components/calcite-sort-handle/customElement.d.ts +81 -14
- package/dist/components/calcite-sort-handle/customElement.js +2 -2
- package/dist/components/calcite-sort-handle/types.d.ts +14 -3
- package/dist/components/calcite-split-button/customElement.d.ts +5 -4
- package/dist/components/calcite-split-button/customElement.js +8 -5
- package/dist/components/calcite-stack/customElement.d.ts +12 -2
- package/dist/components/calcite-stack/customElement.js +1 -1
- package/dist/components/calcite-stepper/customElement.d.ts +8 -13
- package/dist/components/calcite-stepper/customElement.js +7 -4
- package/dist/components/calcite-stepper-item/customElement.d.ts +5 -1
- package/dist/components/calcite-stepper-item/customElement.js +10 -7
- package/dist/components/calcite-swatch/customElement.d.ts +4 -1
- package/dist/components/calcite-swatch/customElement.js +2 -2
- package/dist/components/calcite-swatch-group/customElement.d.ts +4 -1
- package/dist/components/calcite-swatch-group/customElement.js +3 -3
- package/dist/components/calcite-switch/customElement.js +2 -2
- package/dist/components/calcite-tab/customElement.d.ts +5 -7
- package/dist/components/calcite-tab/customElement.js +2 -2
- package/dist/components/calcite-tab-nav/customElement.d.ts +5 -1
- package/dist/components/calcite-tab-nav/customElement.js +4 -2
- package/dist/components/calcite-tab-title/customElement.d.ts +2 -2
- package/dist/components/calcite-tab-title/customElement.js +8 -4
- package/dist/components/calcite-table/customElement.d.ts +12 -0
- package/dist/components/calcite-table/customElement.js +20 -9
- package/dist/components/calcite-table-cell/customElement.d.ts +5 -19
- package/dist/components/calcite-table-cell/customElement.js +6 -8
- package/dist/components/calcite-table-header/customElement.d.ts +4 -19
- package/dist/components/calcite-table-header/customElement.js +5 -7
- package/dist/components/calcite-table-row/customElement.d.ts +5 -7
- package/dist/components/calcite-table-row/customElement.js +10 -7
- package/dist/components/calcite-tabs/customElement.d.ts +1 -0
- package/dist/components/calcite-tabs/customElement.js +1 -1
- package/dist/components/calcite-text/customElement.d.ts +3 -3
- package/dist/components/calcite-text/customElement.js +7 -7
- package/dist/components/calcite-text-area/customElement.js +5 -3
- package/dist/components/calcite-tile/customElement.d.ts +1 -0
- package/dist/components/calcite-tile/customElement.js +2 -5
- package/dist/components/calcite-tile-group/customElement.d.ts +5 -3
- package/dist/components/calcite-tile-group/customElement.js +2 -2
- package/dist/components/calcite-time-picker/customElement.d.ts +0 -3
- package/dist/components/calcite-time-picker/customElement.js +1 -1
- package/dist/components/calcite-tooltip/customElement.js +2 -3
- package/dist/components/calcite-tree/customElement.d.ts +4 -1
- package/dist/components/calcite-tree/customElement.js +1 -1
- package/dist/components/calcite-tree-item/customElement.d.ts +2 -0
- package/dist/components/calcite-tree-item/customElement.js +6 -4
- package/dist/components/types.d.ts +3 -3
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/supported-browsers.json +1 -1
- package/dist/docs/translations.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +2 -53
- package/dist/loader.js +15 -20
- package/dist/types/lumina.d.ts +13 -63
- package/dist/types/preact.d.ts +13 -70
- package/dist/types/react.d.ts +13 -77
- package/dist/types/stencil.d.ts +13 -63
- package/dist/utils/config.d.ts +16 -16
- package/dist/utils/date.d.ts +4 -0
- package/dist/utils/floating-ui.d.ts +7 -7
- package/dist/utils/locale.d.ts +3 -3
- package/dist/utils/time.d.ts +1 -3
- package/package.json +29 -34
- package/dist/cdn/2EJKV67U.js +0 -2
- package/dist/cdn/2FX2C5EF.js +0 -2
- package/dist/cdn/2LH43WTI.js +0 -2
- package/dist/cdn/2M4ETWZU.js +0 -2
- package/dist/cdn/2QCQQPHL.js +0 -2
- package/dist/cdn/37AQ3NSY.js +0 -2
- package/dist/cdn/3V7NMGTV.js +0 -4
- package/dist/cdn/3VIXD3H2.js +0 -2
- package/dist/cdn/3XOPEQZ3.js +0 -2
- package/dist/cdn/42BYFG3E.js +0 -2
- package/dist/cdn/4DQBCTK5.js +0 -2
- package/dist/cdn/4IJOWZQJ.js +0 -2
- package/dist/cdn/5ANFBKAN.js +0 -2
- package/dist/cdn/5IM7XNUL.js +0 -2
- package/dist/cdn/5RANTASS.js +0 -2
- package/dist/cdn/6232C5UQ.js +0 -2
- package/dist/cdn/6T72Y7JK.js +0 -2
- package/dist/cdn/A3W6IKDK.js +0 -2
- package/dist/cdn/A5OQTYIZ.js +0 -2
- package/dist/cdn/ATRI4VAK.js +0 -2
- package/dist/cdn/AUUBWDB7.js +0 -2
- package/dist/cdn/AY3YXOB3.js +0 -2
- package/dist/cdn/B3OV6FHO.js +0 -2
- package/dist/cdn/B4G6KI3E.js +0 -2
- package/dist/cdn/BB7A2UZP.js +0 -2
- package/dist/cdn/BVGUERDF.js +0 -2
- package/dist/cdn/CBFENYFO.js +0 -2
- package/dist/cdn/CCNPWOUW.js +0 -2
- package/dist/cdn/D5JQA363.js +0 -2
- package/dist/cdn/DFNHCTZA.js +0 -2
- package/dist/cdn/DX2AJTZL.js +0 -2
- package/dist/cdn/EJHPPX2D.js +0 -2
- package/dist/cdn/EM76UJ3W.js +0 -2
- package/dist/cdn/FEOY7LII.js +0 -2
- package/dist/cdn/FGCACSEZ.js +0 -2
- package/dist/cdn/FRS6BGSQ.js +0 -2
- package/dist/cdn/GOCORQXM.js +0 -2
- package/dist/cdn/GPHAU53D.js +0 -2
- package/dist/cdn/GPPTP5LL.js +0 -2
- package/dist/cdn/GVJO23E6.js +0 -2
- package/dist/cdn/H2V5U5OJ.js +0 -2
- package/dist/cdn/HRFVC52T.js +0 -2
- package/dist/cdn/I5GRPPMZ.js +0 -2
- package/dist/cdn/IC2RUT5W.js +0 -2
- package/dist/cdn/IEL67ZML.js +0 -2
- package/dist/cdn/INYUFKT5.js +0 -2
- package/dist/cdn/IOO7GEH2.js +0 -2
- package/dist/cdn/J365O4HS.js +0 -2
- package/dist/cdn/J4BDHHWH.js +0 -2
- package/dist/cdn/JI5RWOTK.js +0 -2
- package/dist/cdn/JOCAMKXS.js +0 -2
- package/dist/cdn/JRUFU7XA.js +0 -2
- package/dist/cdn/K2YBD5LM.js +0 -2
- package/dist/cdn/KVD44WK5.js +0 -2
- package/dist/cdn/KWFRN3MW.js +0 -2
- package/dist/cdn/KWPDAD72.js +0 -2
- package/dist/cdn/L5LNAQIS.js +0 -2
- package/dist/cdn/LAYJLO47.js +0 -2
- package/dist/cdn/LQZM5L6V.js +0 -2
- package/dist/cdn/MN6GT2DV.js +0 -2
- package/dist/cdn/MQF6PR4B.js +0 -2
- package/dist/cdn/MYCIOSMH.js +0 -2
- package/dist/cdn/MZ6TG2YO.js +0 -2
- package/dist/cdn/NJXWY6P3.js +0 -2
- package/dist/cdn/NPAVYZZK.js +0 -2
- package/dist/cdn/NXRICXAX.js +0 -2
- package/dist/cdn/OFAWNW7K.js +0 -2
- package/dist/cdn/OFHKQSN2.js +0 -2
- package/dist/cdn/OKGYAZYI.js +0 -2
- package/dist/cdn/PJQNMCUK.js +0 -2
- package/dist/cdn/PTW6VSUH.js +0 -2
- package/dist/cdn/PULLVVMN.js +0 -2
- package/dist/cdn/Q4VO7MMC.js +0 -2
- package/dist/cdn/QBG6ZLRF.js +0 -2
- package/dist/cdn/QIR6K2EN.js +0 -2
- package/dist/cdn/R4YKZQZQ.js +0 -2
- package/dist/cdn/RAAFKMWM.js +0 -2
- package/dist/cdn/RBUVNAV6.js +0 -2
- package/dist/cdn/RPGRRB7B.js +0 -2
- package/dist/cdn/RPIM6VTW.js +0 -2
- package/dist/cdn/SIDMWSCE.js +0 -2
- package/dist/cdn/SNXQ3KIT.js +0 -2
- package/dist/cdn/TDSLG3VD.js +0 -2
- package/dist/cdn/TFOW4MXZ.js +0 -2
- package/dist/cdn/TIN76TY6.js +0 -2
- package/dist/cdn/TS3PR4BS.js +0 -2
- package/dist/cdn/TUSSSV7Z.js +0 -2
- package/dist/cdn/U3YZSJDE.js +0 -2
- package/dist/cdn/UHI4ACZ6.js +0 -2
- package/dist/cdn/UZYETRQB.js +0 -2
- package/dist/cdn/VAAATRI6.js +0 -2
- package/dist/cdn/VW4XH33B.js +0 -2
- package/dist/cdn/W4ZYWTJ2.js +0 -2
- package/dist/cdn/WPKGXLHQ.js +0 -2
- package/dist/cdn/WR4X673I.js +0 -4
- package/dist/cdn/X3X5SXVO.js +0 -2
- package/dist/cdn/XEHVKA66.js +0 -2
- package/dist/cdn/Y5JEQS52.js +0 -2
- package/dist/cdn/Y6GDDPTX.js +0 -2
- package/dist/cdn/Y7EJXSF4.js +0 -2
- package/dist/cdn/YDFYD6ZC.js +0 -2
- package/dist/cdn/YF7W5TNY.js +0 -2
- package/dist/cdn/YKX6UDIM.js +0 -2
- package/dist/cdn/YSW3EMMW.js +0 -2
- package/dist/cdn/YUQSI3MC.js +0 -2
- package/dist/cdn/YV4JKSOA.js +0 -2
- package/dist/cdn/Z3B4WFQE.js +0 -2
- package/dist/cdn/ZLGNIGT4.js +0 -2
- package/dist/cdn/ZU55QYW7.js +0 -2
- package/dist/cdn/ZZDNIBT7.js +0 -2
- package/dist/cdn/assets/action-pad/t9n/messages.ar.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.bg.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.bs.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ca.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.cs.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.da.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.de.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.el.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.es.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.et.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.fi.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.fr.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.he.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.hr.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.hu.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.id.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.it.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ja.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ko.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.lt.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.lv.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.nl.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.no.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.pl.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.pt-BR.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.pt-PT.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ro.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ru.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.sk.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.sl.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.sr.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.sv.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.th.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.tr.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.uk.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.vi.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.zh-CN.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.zh-HK.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.zh-TW.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ar.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.bg.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.bs.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ca.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.cs.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.da.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.de.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.el.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.es.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.et.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.fi.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.fr.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.he.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.hr.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.hu.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.id.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.it.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ja.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ko.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.lt.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.lv.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.nl.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.no.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.pl.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.pt-BR.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.pt-PT.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ro.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ru.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.sk.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.sl.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.sr.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.sv.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.th.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.tr.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.uk.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.vi.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.zh-CN.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.zh-HK.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.zh-TW.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.ar.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.bg.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.bs.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.ca.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.cs.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.da.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.de.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.el.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.es.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.et.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.fi.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.fr.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.he.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.hr.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.hu.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.id.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.it.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.ja.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.ko.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.lt.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.lv.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.nl.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.no.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.pl.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.pt-BR.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.pt-PT.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.ro.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.ru.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.sk.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.sl.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.sr.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.sv.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.th.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.tr.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.uk.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.vi.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.zh-CN.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.zh-HK.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.zh-TW.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.ar.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.bg.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.bs.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.ca.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.cs.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.da.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.de.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.el.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.es.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.et.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.fi.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.fr.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.he.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.hr.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.hu.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.id.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.it.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.ja.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.ko.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.lt.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.lv.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.nl.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.no.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.pl.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.pt-BR.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.pt-PT.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.ro.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.ru.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.sk.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.sl.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.sr.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.sv.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.th.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.tr.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.uk.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.vi.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.zh-CN.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.zh-HK.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.zh-TW.json +0 -1
- package/dist/chunks/ExpandToggle.js +0 -48
- package/dist/components/calcite-action-pad/customElement.d.ts +0 -96
- package/dist/components/calcite-action-pad/customElement.js +0 -185
- package/dist/components/calcite-action-pad/index.d.ts +0 -1
- package/dist/components/calcite-action-pad/index.js +0 -3
- package/dist/components/calcite-color-picker-swatch/customElement.d.ts +0 -25
- package/dist/components/calcite-color-picker-swatch/customElement.js +0 -104
- package/dist/components/calcite-color-picker-swatch/index.d.ts +0 -1
- package/dist/components/calcite-color-picker-swatch/index.js +0 -1
- package/dist/components/calcite-date-picker-day/customElement.d.ts +0 -77
- package/dist/components/calcite-date-picker-day/index.d.ts +0 -1
- package/dist/components/calcite-date-picker-month/customElement.d.ts +0 -40
- package/dist/components/calcite-date-picker-month/index.d.ts +0 -1
- package/dist/components/calcite-focus-trap/customElement.d.ts +0 -53
- package/dist/components/calcite-focus-trap/customElement.js +0 -61
- package/dist/components/calcite-focus-trap/index.d.ts +0 -1
- package/dist/components/calcite-focus-trap/index.js +0 -1
- package/dist/components/calcite-handle/customElement.d.ts +0 -66
- package/dist/components/calcite-handle/customElement.js +0 -128
- package/dist/components/calcite-handle/index.d.ts +0 -1
- package/dist/components/calcite-handle/index.js +0 -2
- package/dist/components/calcite-handle/types.d.ts +0 -3
- package/dist/components/calcite-list/resources.d.ts +0 -1
- package/dist/components/calcite-sortable-list/customElement.d.ts +0 -52
- package/dist/components/calcite-sortable-list/customElement.js +0 -133
- package/dist/components/calcite-sortable-list/index.d.ts +0 -1
- package/dist/components/calcite-sortable-list/index.js +0 -1
- package/dist/controllers/useTime.d.ts +0 -136
- package/dist/utils/dom.d.ts +0 -19
- /package/dist/cdn/{NYT7VOUO.js → TIIRIEHJ.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
3
|
+
import { ref } from "lit/directives/ref.js";
|
|
3
4
|
import { css, html } from "lit";
|
|
4
|
-
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
5
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
6
|
-
import { useDirection } from "@arcgis/lumina/controllers";
|
|
7
|
-
import {
|
|
6
|
+
import { makeGenericController, useDirection } from "@arcgis/lumina/controllers";
|
|
7
|
+
import { a as getRootNode, t as tabbableOptions, E as isFocusableElement, F as nextFrame } from "../../chunks/dom.js";
|
|
8
8
|
import { a as defaultMenuPlacement, r as reposition, c as connectFloatingUI, b as disconnectFloatingUI, f as filterValidFlipPlacements, h as hideFloatingUI, F as FloatingCSS } from "../../chunks/floating-ui.js";
|
|
9
9
|
import { i as isActivationKey } from "../../chunks/key.js";
|
|
10
10
|
import { c as createObserver, u as updateRefObserver } from "../../chunks/observers.js";
|
|
@@ -12,9 +12,236 @@ import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
|
12
12
|
import { g as getDimensionClass } from "../../chunks/dynamicClasses.js";
|
|
13
13
|
import { i as isDropdownGroup } from "../../chunks/resources17.js";
|
|
14
14
|
import { u as useFocusable } from "../../chunks/useFocusable.js";
|
|
15
|
+
import { tabbable } from "tabbable";
|
|
15
16
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
16
17
|
import { u as useTopLayer } from "../../chunks/useTopLayer.js";
|
|
17
18
|
import { u as useReferenceElement, r as referenceElementManager } from "../../chunks/manager.js";
|
|
19
|
+
const managedTabIndexes = /* @__PURE__ */ new WeakMap();
|
|
20
|
+
function getTabbableEntryElements(entryElement, focusableElements) {
|
|
21
|
+
if (!entryElement) {
|
|
22
|
+
return [];
|
|
23
|
+
}
|
|
24
|
+
const tabbableElements = tabbable(entryElement, { ...tabbableOptions, includeContainer: true }).filter(
|
|
25
|
+
isFocusableElement
|
|
26
|
+
);
|
|
27
|
+
tabbableElements.push(
|
|
28
|
+
...focusableElements.filter((element) => (managedTabIndexes.get(element)?.tabIndex ?? -1) >= 0)
|
|
29
|
+
);
|
|
30
|
+
if (isFocusableElement(entryElement) && entryElement.tabIndex >= 0) {
|
|
31
|
+
tabbableElements.push(entryElement);
|
|
32
|
+
}
|
|
33
|
+
return [...new Set(tabbableElements)];
|
|
34
|
+
}
|
|
35
|
+
const useRovingTabIndex = (options = {}) => makeGenericController((component, controller) => {
|
|
36
|
+
const focusable = useFocusable()(component);
|
|
37
|
+
const trackedElements = /* @__PURE__ */ new Set();
|
|
38
|
+
let itemElements = [];
|
|
39
|
+
let activeElement = null;
|
|
40
|
+
let activeIndex = -1;
|
|
41
|
+
let entryTabStops = [];
|
|
42
|
+
let entryFocusTarget;
|
|
43
|
+
let isRestoringFocus = false;
|
|
44
|
+
let focusedItem;
|
|
45
|
+
let itemFocusOutTarget = null;
|
|
46
|
+
const focusEventsFromItems = /* @__PURE__ */ new WeakSet();
|
|
47
|
+
function getTraversableElements() {
|
|
48
|
+
return options.getTraversableElements?.() ?? options.getElements?.() ?? itemElements;
|
|
49
|
+
}
|
|
50
|
+
function restoreElement(element) {
|
|
51
|
+
const managedTabIndex = managedTabIndexes.get(element);
|
|
52
|
+
if (!managedTabIndex || !trackedElements.delete(element)) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
managedTabIndex.referenceCount--;
|
|
56
|
+
if (managedTabIndex.referenceCount > 0) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (managedTabIndex.attribute === null) {
|
|
60
|
+
element.removeAttribute("tabindex");
|
|
61
|
+
} else {
|
|
62
|
+
element.setAttribute("tabindex", managedTabIndex.attribute);
|
|
63
|
+
}
|
|
64
|
+
managedTabIndexes.delete(element);
|
|
65
|
+
}
|
|
66
|
+
function handleFocusIn(event) {
|
|
67
|
+
const elements = getTraversableElements();
|
|
68
|
+
const path = event.composedPath();
|
|
69
|
+
const item = elements.find((element) => path.includes(element));
|
|
70
|
+
if (item) {
|
|
71
|
+
focusedItem = item;
|
|
72
|
+
rovingTabIndex.setActiveIndex(elements.indexOf(item));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
function handleFocusOut(event) {
|
|
76
|
+
const path = event.composedPath();
|
|
77
|
+
if (!itemElements.some((element) => path.includes(element))) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const relatedTarget = event.relatedTarget;
|
|
81
|
+
itemFocusOutTarget = relatedTarget;
|
|
82
|
+
if (relatedTarget instanceof Node && getTraversableElements().some((element) => element.contains(relatedTarget))) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (relatedTarget instanceof Element) {
|
|
86
|
+
focusedItem = void 0;
|
|
87
|
+
} else if (focusedItem) {
|
|
88
|
+
const previousFocusedItem = focusedItem;
|
|
89
|
+
queueMicrotask(() => {
|
|
90
|
+
if (focusedItem === previousFocusedItem && previousFocusedItem.isConnected && !previousFocusedItem.matches(":focus-within") && getTraversableElements().includes(previousFocusedItem)) {
|
|
91
|
+
focusedItem = void 0;
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
controller.onLoaded(() => {
|
|
97
|
+
component.listenOn(component.renderRoot, "focusin", handleFocusIn);
|
|
98
|
+
component.listenOn(component.renderRoot, "focusout", handleFocusOut, { capture: true });
|
|
99
|
+
});
|
|
100
|
+
component.listenOn(
|
|
101
|
+
component.el.ownerDocument,
|
|
102
|
+
"focusin",
|
|
103
|
+
(event) => {
|
|
104
|
+
if (!focusedItem && !itemFocusOutTarget) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
const path = event.composedPath();
|
|
108
|
+
if (itemFocusOutTarget && path.includes(itemFocusOutTarget)) {
|
|
109
|
+
focusEventsFromItems.add(event);
|
|
110
|
+
}
|
|
111
|
+
itemFocusOutTarget = null;
|
|
112
|
+
if (focusedItem && !path.includes(focusedItem)) {
|
|
113
|
+
focusedItem = void 0;
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{ capture: true }
|
|
117
|
+
);
|
|
118
|
+
controller.onDisconnected(() => {
|
|
119
|
+
focusedItem = void 0;
|
|
120
|
+
itemFocusOutTarget = null;
|
|
121
|
+
trackedElements.forEach(restoreElement);
|
|
122
|
+
});
|
|
123
|
+
const rovingTabIndex = {
|
|
124
|
+
get activeElement() {
|
|
125
|
+
return activeElement;
|
|
126
|
+
},
|
|
127
|
+
get activeIndex() {
|
|
128
|
+
return activeIndex;
|
|
129
|
+
},
|
|
130
|
+
get hasFocus() {
|
|
131
|
+
return focusable.hasFocus || (options.getEntryElement?.()?.matches(":focus-within") ?? false);
|
|
132
|
+
},
|
|
133
|
+
isFocusFromItem(event) {
|
|
134
|
+
return focusEventsFromItems.has(event);
|
|
135
|
+
},
|
|
136
|
+
get isRestoringFocus() {
|
|
137
|
+
return isRestoringFocus;
|
|
138
|
+
},
|
|
139
|
+
get shouldRecoverFocus() {
|
|
140
|
+
if (!focusedItem) {
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
const rootNode = getRootNode(component.el);
|
|
144
|
+
const focusWasLost = component.el.ownerDocument.activeElement === component.el.ownerDocument.body || rootNode instanceof ShadowRoot && !rootNode.activeElement && rootNode.host.matches(":focus-within");
|
|
145
|
+
if (!focusWasLost && !focusedItem.matches(":focus-within")) {
|
|
146
|
+
focusedItem = void 0;
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
return !focusedItem.isConnected || !getTraversableElements().includes(focusedItem);
|
|
150
|
+
},
|
|
151
|
+
update(elements, nextActiveElement) {
|
|
152
|
+
const entryElement = options.getEntryElement?.();
|
|
153
|
+
entryTabStops.forEach(restoreElement);
|
|
154
|
+
const entryFocusCandidates = focusable.getFocusableElements(entryElement);
|
|
155
|
+
const nextEntryTabStops = getTabbableEntryElements(entryElement, entryFocusCandidates);
|
|
156
|
+
const managedEntryTabStops = nextEntryTabStops.length > 0 ? nextEntryTabStops : entryTabStops.filter((element) => element.isConnected && entryElement?.contains(element));
|
|
157
|
+
itemElements = elements;
|
|
158
|
+
const traversableElements = options.getTraversableElements?.() ?? elements;
|
|
159
|
+
activeIndex = nextActiveElement && options.isActive?.() !== false && elements.includes(nextActiveElement) ? traversableElements.indexOf(nextActiveElement) : -1;
|
|
160
|
+
activeElement = activeIndex >= 0 ? nextActiveElement : null;
|
|
161
|
+
const focusedElement = focusable.getDeepActiveElement();
|
|
162
|
+
entryFocusTarget = entryFocusCandidates.find((element) => element === focusedElement) ?? (entryFocusTarget && entryFocusCandidates.includes(entryFocusTarget) ? entryFocusTarget : entryFocusCandidates[0]);
|
|
163
|
+
entryTabStops = managedEntryTabStops;
|
|
164
|
+
const managedElements = activeElement ? [...elements, ...entryTabStops] : elements;
|
|
165
|
+
const currentElements = new Set(managedElements);
|
|
166
|
+
trackedElements.forEach((element) => {
|
|
167
|
+
if (!currentElements.has(element)) {
|
|
168
|
+
restoreElement(element);
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
managedElements.forEach((element) => {
|
|
172
|
+
if (!trackedElements.has(element)) {
|
|
173
|
+
const managedTabIndex = managedTabIndexes.get(element);
|
|
174
|
+
if (managedTabIndex) {
|
|
175
|
+
managedTabIndex.referenceCount++;
|
|
176
|
+
} else {
|
|
177
|
+
managedTabIndexes.set(element, {
|
|
178
|
+
attribute: element.getAttribute("tabindex"),
|
|
179
|
+
tabIndex: element.tabIndex,
|
|
180
|
+
referenceCount: 1
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
trackedElements.add(element);
|
|
184
|
+
}
|
|
185
|
+
const tabIndex = element === activeElement ? 0 : -1;
|
|
186
|
+
if (element.getAttribute("tabindex") !== String(tabIndex)) {
|
|
187
|
+
element.tabIndex = tabIndex;
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
},
|
|
191
|
+
setActiveIndex(index) {
|
|
192
|
+
const elements = options.getElements?.() ?? itemElements;
|
|
193
|
+
const traversableElements = options.getTraversableElements?.() ?? elements;
|
|
194
|
+
const nextActiveElement = index >= 0 ? traversableElements[index] ?? null : null;
|
|
195
|
+
rovingTabIndex.update(elements, nextActiveElement);
|
|
196
|
+
},
|
|
197
|
+
navigate(direction) {
|
|
198
|
+
const traversableElements = getTraversableElements();
|
|
199
|
+
const totalElements = traversableElements.length;
|
|
200
|
+
if (!totalElements) {
|
|
201
|
+
rovingTabIndex.setActiveIndex(-1);
|
|
202
|
+
return null;
|
|
203
|
+
}
|
|
204
|
+
let index = activeIndex;
|
|
205
|
+
if (index < 0 || index >= totalElements) {
|
|
206
|
+
index = direction === "previous" || direction === "last" ? totalElements - 1 : 0;
|
|
207
|
+
} else if (direction === "next") {
|
|
208
|
+
index = (index + 1) % totalElements;
|
|
209
|
+
} else if (direction === "previous") {
|
|
210
|
+
index = (index - 1 + totalElements) % totalElements;
|
|
211
|
+
} else if (direction === "first") {
|
|
212
|
+
index = 0;
|
|
213
|
+
} else if (direction === "last") {
|
|
214
|
+
index = totalElements - 1;
|
|
215
|
+
}
|
|
216
|
+
rovingTabIndex.update(options.getElements?.() ?? itemElements, traversableElements[index]);
|
|
217
|
+
return activeElement;
|
|
218
|
+
},
|
|
219
|
+
reconcile() {
|
|
220
|
+
const traversableElements = getTraversableElements();
|
|
221
|
+
const previousIndex = activeElement ? traversableElements.indexOf(activeElement) : -1;
|
|
222
|
+
const preservedIndex = previousIndex >= 0 ? previousIndex : traversableElements.findIndex((element) => element.matches(":focus-within"));
|
|
223
|
+
rovingTabIndex.setActiveIndex(
|
|
224
|
+
preservedIndex >= 0 ? preservedIndex : Math.min(Math.max(activeIndex, 0), traversableElements.length - 1)
|
|
225
|
+
);
|
|
226
|
+
return activeElement;
|
|
227
|
+
},
|
|
228
|
+
restoreFocus(mode = "within") {
|
|
229
|
+
const focusIsWithinManagedControls = itemElements.some(focusable.isFocusedWithin) || entryTabStops.some(focusable.isFocusedWithin) || entryFocusTarget !== void 0 && focusable.isFocusedWithin(entryFocusTarget);
|
|
230
|
+
const shouldRestoreFocus = mode === "force" || focusIsWithinManagedControls || mode === "recover" && rovingTabIndex.shouldRecoverFocus;
|
|
231
|
+
if (!shouldRestoreFocus || !entryFocusTarget || !entryFocusTarget.isConnected) {
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
isRestoringFocus = true;
|
|
235
|
+
try {
|
|
236
|
+
entryFocusTarget.focus();
|
|
237
|
+
focusedItem = void 0;
|
|
238
|
+
} finally {
|
|
239
|
+
isRestoringFocus = false;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
return rovingTabIndex;
|
|
244
|
+
});
|
|
18
245
|
const SLOTS = {
|
|
19
246
|
trigger: "trigger"
|
|
20
247
|
};
|
|
@@ -23,7 +250,7 @@ const CSS = {
|
|
|
23
250
|
wrapper: "wrapper",
|
|
24
251
|
triggerContainer: "trigger-container"
|
|
25
252
|
};
|
|
26
|
-
const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none
|
|
253
|
+
const styles = css`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block}.wrapper{inline-size:max-content;display:none;max-inline-size:100vw;max-block-size:100vh;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}@starting-style{.wrapper{opacity:0;inset-block-start:0;left:0}}:host([top-layer-disabled]) .wrapper{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown)}.wrapper[popover]{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;display:none}.wrapper:popover-open{display:block}.wrapper .calcite-floating-ui-anim{position:relative;transition-duration:var(--calcite-floating-ui-transition);transition-property:inset-block-start,left,opacity,display;transition-behavior:allow-discrete;opacity:0;box-shadow:0 0 16px #00000029;border-radius:var(--calcite-corner-radius-sm);z-index:var(--calcite-z-index)}.wrapper[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.wrapper[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.wrapper[data-placement^=left] .calcite-floating-ui-anim{left:5px}.wrapper[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.wrapper[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}@starting-style{.wrapper[data-placement] .calcite-floating-ui-anim--active{opacity:0}}.wrapper .calcite-floating-ui-anim{box-shadow:var(--calcite-shadow-md)}.content{overflow-y:auto;overflow-x:hidden;inline-size:var(--calcite-dropdown-width, var(--calcite-internal-dropdown-width));background-color:var(--calcite-dropdown-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));max-block-size:var(--calcite-dropdown-max-height, 45vh)}.trigger-container{position:relative;display:flex;flex:1 1 auto;block-size:100%;overflow-wrap:break-word;word-break:break-word}.width-s{--calcite-internal-dropdown-width: 12rem}.width-m{--calcite-internal-dropdown-width: 14rem}.width-l{--calcite-internal-dropdown-width: 16rem}@media(forced-colors:active){:host([open]) .wrapper{border:var(--calcite-border-width-sm) solid canvasText}}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}`;
|
|
27
254
|
const manager = referenceElementManager({ click: true, hover: true });
|
|
28
255
|
class Dropdown extends LitElement {
|
|
29
256
|
constructor() {
|
|
@@ -31,15 +258,28 @@ class Dropdown extends LitElement {
|
|
|
31
258
|
this.referenceElementController = useReferenceElement({ manager })(this);
|
|
32
259
|
this.direction = useDirection();
|
|
33
260
|
this.focusLastDropdownItem = false;
|
|
34
|
-
this.
|
|
261
|
+
this.focusActiveItemOnOpen = true;
|
|
262
|
+
this.focusedElementOnOpen = null;
|
|
263
|
+
this._open = false;
|
|
35
264
|
this.groups = [];
|
|
36
265
|
this.items = [];
|
|
37
266
|
this.mutationObserver = createObserver("mutation", () => this.updateItems());
|
|
38
267
|
this.transitionProp = "opacity";
|
|
39
268
|
this.resizeObserver = createObserver("resize", (entries) => this.resizeObserverCallback(entries));
|
|
40
|
-
this.triggerSlotRef = createRef();
|
|
41
269
|
this.onReferenceElementKeyDown = (event) => this.keyDownHandler(event);
|
|
42
|
-
this.
|
|
270
|
+
this.onReferenceElementFocusIn = (event) => this.openHoverDropdown(event);
|
|
271
|
+
this.onReferenceElementPointerOpen = () => {
|
|
272
|
+
if (!this.open) {
|
|
273
|
+
this.focusActiveItemOnOpen = false;
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
this.focusable = useFocusable()(this);
|
|
277
|
+
this.rovingTabIndex = useRovingTabIndex({
|
|
278
|
+
getElements: () => this.items,
|
|
279
|
+
getEntryElement: () => this.referenceEl instanceof Element ? this.referenceEl : void 0,
|
|
280
|
+
getTraversableElements: () => this.getTraversableItems(),
|
|
281
|
+
isActive: () => this.open && !this.disabled && this.focusActiveItemOnOpen
|
|
282
|
+
})(this);
|
|
43
283
|
this.interactiveContainer = useInteractive(this);
|
|
44
284
|
this.topLayer = useTopLayer({
|
|
45
285
|
target: () => this.floatingEl
|
|
@@ -49,7 +289,6 @@ class Dropdown extends LitElement {
|
|
|
49
289
|
this.maxItems = 0;
|
|
50
290
|
this.offsetDistance = 0;
|
|
51
291
|
this.offsetSkidding = 0;
|
|
52
|
-
this.open = false;
|
|
53
292
|
this.overlayPositioning = "absolute";
|
|
54
293
|
this.placement = defaultMenuPlacement;
|
|
55
294
|
this.scale = "m";
|
|
@@ -66,10 +305,13 @@ class Dropdown extends LitElement {
|
|
|
66
305
|
this.listen("calciteInternalDropdownItemSelect", this.handleItemSelect);
|
|
67
306
|
}
|
|
68
307
|
static {
|
|
69
|
-
this.properties = {
|
|
308
|
+
this.properties = { referenceEl: [16, {}, { state: true }], closeOnSelectDisabled: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], flipPlacements: [0, {}, { attribute: false }], maxItems: [11, {}, { reflect: true, type: Number }], offsetDistance: [11, {}, { type: Number, reflect: true }], offsetSkidding: [11, {}, { reflect: true, type: Number }], open: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: [3, {}, { reflect: true }], placement: [3, {}, { reflect: true }], referenceElement: 1, scale: [3, {}, { reflect: true }], selectedItems: [0, {}, { attribute: false }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }], type: [3, {}, { reflect: true }], widthScale: [3, {}, { reflect: true }], width: [3, {}, { reflect: true }] };
|
|
70
309
|
}
|
|
71
310
|
static {
|
|
72
|
-
this.shadowRootOptions = {
|
|
311
|
+
this.shadowRootOptions = {
|
|
312
|
+
mode: "open",
|
|
313
|
+
delegatesFocus: true
|
|
314
|
+
};
|
|
73
315
|
}
|
|
74
316
|
static {
|
|
75
317
|
this.styles = styles;
|
|
@@ -80,6 +322,18 @@ class Dropdown extends LitElement {
|
|
|
80
322
|
get autoClose() {
|
|
81
323
|
return true;
|
|
82
324
|
}
|
|
325
|
+
get isRestoringFocus() {
|
|
326
|
+
return this.rovingTabIndex.isRestoringFocus;
|
|
327
|
+
}
|
|
328
|
+
get open() {
|
|
329
|
+
return this._open;
|
|
330
|
+
}
|
|
331
|
+
set open(value) {
|
|
332
|
+
if (value && !this._open) {
|
|
333
|
+
this.focusedElementOnOpen = this.focusable.getDeepActiveElement();
|
|
334
|
+
}
|
|
335
|
+
this._open = value;
|
|
336
|
+
}
|
|
83
337
|
async reposition(delayed = false) {
|
|
84
338
|
const { filteredFlipPlacements, floatingEl, offsetDistance, offsetSkidding, overlayPositioning, placement, referenceEl } = this;
|
|
85
339
|
return reposition(this, {
|
|
@@ -95,11 +349,19 @@ class Dropdown extends LitElement {
|
|
|
95
349
|
}, delayed);
|
|
96
350
|
}
|
|
97
351
|
async setFocus(options) {
|
|
98
|
-
return this.
|
|
352
|
+
return this.focusable.setFocus(() => {
|
|
353
|
+
const target = this.referenceEl instanceof HTMLElement ? this.referenceEl : this.floatingEl;
|
|
354
|
+
return target ? { target, strategy: "focusable" } : void 0;
|
|
355
|
+
}, options);
|
|
99
356
|
}
|
|
100
357
|
connectedCallback() {
|
|
101
358
|
super.connectedCallback();
|
|
102
|
-
this.mutationObserver?.observe(this.el, {
|
|
359
|
+
this.mutationObserver?.observe(this.el, {
|
|
360
|
+
attributeFilter: ["disabled", "hidden", "inert"],
|
|
361
|
+
attributes: true,
|
|
362
|
+
childList: true,
|
|
363
|
+
subtree: true
|
|
364
|
+
});
|
|
103
365
|
this.setFilteredPlacements();
|
|
104
366
|
this.updateItems();
|
|
105
367
|
connectFloatingUI(this);
|
|
@@ -109,12 +371,12 @@ class Dropdown extends LitElement {
|
|
|
109
371
|
this.listenOn(document, "calciteDropdownOpen", this.closeCalciteDropdownOnOpenEvent);
|
|
110
372
|
}
|
|
111
373
|
willUpdate(changes) {
|
|
112
|
-
if (changes.has("open") && (this.hasUpdated || this.open !== false)) {
|
|
113
|
-
this.openHandler();
|
|
114
|
-
}
|
|
115
374
|
if (changes.has("disabled") && (this.hasUpdated || this.disabled !== false)) {
|
|
116
375
|
this.handleDisabledChange(this.disabled);
|
|
117
376
|
}
|
|
377
|
+
if (changes.has("open") && (this.hasUpdated || this.open !== false)) {
|
|
378
|
+
this.openHandler();
|
|
379
|
+
}
|
|
118
380
|
if (changes.has("flipPlacements")) {
|
|
119
381
|
this.flipPlacementsHandler();
|
|
120
382
|
}
|
|
@@ -133,11 +395,7 @@ class Dropdown extends LitElement {
|
|
|
133
395
|
}
|
|
134
396
|
updated(changes) {
|
|
135
397
|
if (changes.has("referenceEl") && this.referenceElementType) {
|
|
136
|
-
|
|
137
|
-
if (previousReferenceEl instanceof HTMLElement) {
|
|
138
|
-
previousReferenceEl.ariaActiveDescendantElement = null;
|
|
139
|
-
}
|
|
140
|
-
this.syncActiveDescendantOwnerElement();
|
|
398
|
+
this.syncTabStops();
|
|
141
399
|
connectFloatingUI(this);
|
|
142
400
|
}
|
|
143
401
|
}
|
|
@@ -147,27 +405,30 @@ class Dropdown extends LitElement {
|
|
|
147
405
|
}
|
|
148
406
|
disconnectedCallback() {
|
|
149
407
|
super.disconnectedCallback();
|
|
150
|
-
const triggerSlotEl = this.triggerSlotRef.value;
|
|
151
|
-
if (triggerSlotEl) {
|
|
152
|
-
triggerSlotEl.ariaActiveDescendantElement = null;
|
|
153
|
-
}
|
|
154
|
-
if (this.referenceEl instanceof HTMLElement) {
|
|
155
|
-
this.referenceEl.ariaActiveDescendantElement = null;
|
|
156
|
-
}
|
|
157
408
|
this.mutationObserver?.disconnect();
|
|
158
409
|
this.resizeObserver?.disconnect();
|
|
159
410
|
disconnectFloatingUI(this);
|
|
160
411
|
}
|
|
161
412
|
openHandler() {
|
|
162
|
-
if (this.disabled) {
|
|
413
|
+
if (this.disabled && this.open) {
|
|
414
|
+
this.open = false;
|
|
415
|
+
this.focusActiveItemOnOpen = true;
|
|
416
|
+
this.rovingTabIndex.setActiveIndex(-1);
|
|
163
417
|
return;
|
|
164
418
|
}
|
|
419
|
+
if (!this.open) {
|
|
420
|
+
this.focusActiveItemOnOpen = true;
|
|
421
|
+
}
|
|
165
422
|
toggleOpenClose(this);
|
|
423
|
+
if (!this.open) {
|
|
424
|
+
this.rovingTabIndex.setActiveIndex(-1);
|
|
425
|
+
}
|
|
166
426
|
this.reposition(true);
|
|
167
427
|
}
|
|
168
428
|
handleDisabledChange(value) {
|
|
169
|
-
if (
|
|
429
|
+
if (value) {
|
|
170
430
|
this.open = false;
|
|
431
|
+
this.rovingTabIndex.setActiveIndex(-1);
|
|
171
432
|
}
|
|
172
433
|
}
|
|
173
434
|
flipPlacementsHandler() {
|
|
@@ -194,6 +455,9 @@ class Dropdown extends LitElement {
|
|
|
194
455
|
if (this.referenceElementType || this.disabled || this.type !== "hover") {
|
|
195
456
|
return;
|
|
196
457
|
}
|
|
458
|
+
if (!this.open) {
|
|
459
|
+
this.focusActiveItemOnOpen = false;
|
|
460
|
+
}
|
|
197
461
|
this.open = true;
|
|
198
462
|
}
|
|
199
463
|
pointerLeaveHandler() {
|
|
@@ -203,16 +467,28 @@ class Dropdown extends LitElement {
|
|
|
203
467
|
this.closeCalciteDropdown();
|
|
204
468
|
}
|
|
205
469
|
getTraversableItems() {
|
|
206
|
-
return this.items.filter((item) => !item.disabled && !item.hidden);
|
|
470
|
+
return this.items.filter((item) => !item.disabled && !item.closest("[hidden], [inert]"));
|
|
207
471
|
}
|
|
208
472
|
async handleItemSelect(event) {
|
|
209
473
|
this.updateSelectedItems();
|
|
210
474
|
this.syncActiveItemFromTraversableItems();
|
|
475
|
+
const focusedElement = this.focusable.getDeepActiveElement();
|
|
211
476
|
event.stopPropagation();
|
|
212
477
|
this.calciteDropdownSelect.emit();
|
|
213
|
-
await this.setFocus();
|
|
214
478
|
if (!this.closeOnSelectDisabled) {
|
|
215
479
|
this.closeCalciteDropdown();
|
|
480
|
+
this.rovingTabIndex.restoreFocus("recover");
|
|
481
|
+
} else {
|
|
482
|
+
const { requestedDropdownItem } = event.detail;
|
|
483
|
+
const index = this.getTraversableItems().indexOf(requestedDropdownItem);
|
|
484
|
+
if (index < 0 || !requestedDropdownItem.isConnected) {
|
|
485
|
+
this.updateItems();
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
488
|
+
if (requestedDropdownItem.matches(":focus-within") && this.focusable.isFocusUnchanged(focusedElement)) {
|
|
489
|
+
this.rovingTabIndex.setActiveIndex(index);
|
|
490
|
+
await this.scrollActiveItemIntoView(requestedDropdownItem, focusedElement);
|
|
491
|
+
}
|
|
216
492
|
}
|
|
217
493
|
}
|
|
218
494
|
setFilteredPlacements() {
|
|
@@ -220,7 +496,7 @@ class Dropdown extends LitElement {
|
|
|
220
496
|
this.filteredFlipPlacements = flipPlacements ? filterValidFlipPlacements(flipPlacements, el) : void 0;
|
|
221
497
|
}
|
|
222
498
|
updateItems() {
|
|
223
|
-
this.items = this.groups.
|
|
499
|
+
this.items = this.groups.flatMap((group) => Array.from(group.querySelectorAll("calcite-dropdown-item")));
|
|
224
500
|
this.updateSelectedItems();
|
|
225
501
|
this.syncActiveItemFromTraversableItems();
|
|
226
502
|
this.reposition(true);
|
|
@@ -271,17 +547,16 @@ class Dropdown extends LitElement {
|
|
|
271
547
|
onBeforeOpen() {
|
|
272
548
|
this.setInitialActiveItem();
|
|
273
549
|
this.calciteDropdownBeforeOpen.emit();
|
|
274
|
-
this.topLayer.show();
|
|
275
550
|
}
|
|
276
551
|
onOpen() {
|
|
277
552
|
this.calciteDropdownOpen.emit();
|
|
278
553
|
}
|
|
279
554
|
onBeforeClose() {
|
|
555
|
+
this.rovingTabIndex.restoreFocus("recover");
|
|
280
556
|
this.calciteDropdownBeforeClose.emit();
|
|
281
557
|
}
|
|
282
558
|
onClose() {
|
|
283
559
|
this.calciteDropdownClose.emit();
|
|
284
|
-
this.syncActiveDescendantOwnerElement();
|
|
285
560
|
hideFloatingUI(this);
|
|
286
561
|
this.topLayer.hide();
|
|
287
562
|
}
|
|
@@ -293,7 +568,7 @@ class Dropdown extends LitElement {
|
|
|
293
568
|
return;
|
|
294
569
|
}
|
|
295
570
|
this.referenceEl = el;
|
|
296
|
-
this.
|
|
571
|
+
this.syncTabStops();
|
|
297
572
|
connectFloatingUI(this);
|
|
298
573
|
}
|
|
299
574
|
setFloatingEl(el) {
|
|
@@ -301,10 +576,11 @@ class Dropdown extends LitElement {
|
|
|
301
576
|
connectFloatingUI(this);
|
|
302
577
|
}
|
|
303
578
|
handleTriggerSlotChange() {
|
|
304
|
-
this.
|
|
579
|
+
this.syncTabStops();
|
|
305
580
|
}
|
|
306
581
|
keyDownHandler(event) {
|
|
307
|
-
|
|
582
|
+
const path = event.composedPath();
|
|
583
|
+
if (this.disabled || !path.includes(this.floatingEl) && (!(this.referenceEl instanceof Element) || !path.includes(this.referenceEl))) {
|
|
308
584
|
return;
|
|
309
585
|
}
|
|
310
586
|
const { defaultPrevented, key } = event;
|
|
@@ -313,16 +589,19 @@ class Dropdown extends LitElement {
|
|
|
313
589
|
}
|
|
314
590
|
if (this.open && key === "Escape") {
|
|
315
591
|
this.closeCalciteDropdown();
|
|
592
|
+
this.rovingTabIndex.restoreFocus();
|
|
316
593
|
event.preventDefault();
|
|
317
594
|
return;
|
|
318
595
|
}
|
|
319
596
|
if (!this.open && isActivationKey(key)) {
|
|
597
|
+
this.focusActiveItemOnOpen = true;
|
|
320
598
|
this.open = true;
|
|
321
599
|
event.preventDefault();
|
|
322
600
|
return;
|
|
323
601
|
}
|
|
324
602
|
if (!this.open && (key === "ArrowDown" || key === "ArrowUp")) {
|
|
325
603
|
event.preventDefault();
|
|
604
|
+
this.focusActiveItemOnOpen = true;
|
|
326
605
|
this.focusLastDropdownItem = key === "ArrowUp";
|
|
327
606
|
this.open = true;
|
|
328
607
|
return;
|
|
@@ -331,6 +610,7 @@ class Dropdown extends LitElement {
|
|
|
331
610
|
return;
|
|
332
611
|
}
|
|
333
612
|
if (key === "Tab") {
|
|
613
|
+
this.rovingTabIndex.restoreFocus();
|
|
334
614
|
this.closeCalciteDropdown();
|
|
335
615
|
return;
|
|
336
616
|
}
|
|
@@ -371,127 +651,125 @@ class Dropdown extends LitElement {
|
|
|
371
651
|
}
|
|
372
652
|
closeCalciteDropdown() {
|
|
373
653
|
this.open = false;
|
|
374
|
-
this.
|
|
654
|
+
this.rovingTabIndex.setActiveIndex(-1);
|
|
375
655
|
}
|
|
376
656
|
async setInitialActiveItem() {
|
|
377
657
|
const traversableItems = this.getTraversableItems();
|
|
378
|
-
const
|
|
658
|
+
const targetIndex = this.focusLastDropdownItem ? traversableItems.length - 1 : 0;
|
|
659
|
+
const deferredFocusDirection = !traversableItems.length && this.focusLastDropdownItem ? "last" : void 0;
|
|
379
660
|
this.focusLastDropdownItem = false;
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
661
|
+
this.rovingTabIndex.setActiveIndex(traversableItems.length ? targetIndex : -1);
|
|
662
|
+
await this.topLayer.show();
|
|
663
|
+
if (this.focusActiveItemOnOpen) {
|
|
664
|
+
await this.scrollActiveItemIntoView(void 0, this.focusedElementOnOpen, deferredFocusDirection);
|
|
383
665
|
}
|
|
384
|
-
const targetIndex = traversableItems.findIndex((item) => item === target);
|
|
385
|
-
this.setActiveItemByIndex(targetIndex);
|
|
386
|
-
await this.scrollActiveItemIntoView(target);
|
|
387
666
|
}
|
|
388
667
|
syncActiveItemFromTraversableItems() {
|
|
389
668
|
const traversableItems = this.getTraversableItems();
|
|
390
|
-
|
|
391
|
-
|
|
669
|
+
const previousActiveItem = this.rovingTabIndex.activeElement;
|
|
670
|
+
const shouldRecoverFocus = this.rovingTabIndex.shouldRecoverFocus;
|
|
671
|
+
if (!this.open || !traversableItems.length) {
|
|
672
|
+
this.rovingTabIndex.setActiveIndex(-1);
|
|
673
|
+
if (this.open && previousActiveItem && shouldRecoverFocus) {
|
|
674
|
+
this.rovingTabIndex.restoreFocus("force");
|
|
675
|
+
}
|
|
392
676
|
return;
|
|
393
677
|
}
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
678
|
+
const activeItem = this.rovingTabIndex.reconcile();
|
|
679
|
+
if (previousActiveItem && activeItem && shouldRecoverFocus) {
|
|
680
|
+
void this.scrollActiveItemIntoView(activeItem);
|
|
397
681
|
}
|
|
398
|
-
this.updateActiveDescendantElement(traversableItems[this.activeItemIndex]);
|
|
399
682
|
}
|
|
400
|
-
|
|
401
|
-
this.
|
|
402
|
-
const traversableItems = this.getTraversableItems();
|
|
403
|
-
const activeItem = index >= 0 ? traversableItems[index] : null;
|
|
404
|
-
this.updateActiveDescendantElement(activeItem);
|
|
683
|
+
syncTabStops() {
|
|
684
|
+
this.rovingTabIndex.update(this.items, this.rovingTabIndex.activeElement);
|
|
405
685
|
}
|
|
406
|
-
|
|
407
|
-
this.
|
|
408
|
-
item.activeDescendant = item === activeItem;
|
|
409
|
-
});
|
|
410
|
-
this.activeDescendantElement = activeItem ?? void 0;
|
|
411
|
-
this.syncActiveDescendantOwnerElement();
|
|
686
|
+
handleItemFocus() {
|
|
687
|
+
this.focusActiveItemOnOpen = true;
|
|
412
688
|
}
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
const triggerSlotEl = this.triggerSlotRef.value;
|
|
416
|
-
const activeDescendantEl = this.open ? this.activeDescendantElement ?? null : null;
|
|
417
|
-
const referenceOwnerEl = referenceEl instanceof HTMLElement ? referenceEl : null;
|
|
418
|
-
const isReferenceMode = Boolean(referenceElementType);
|
|
419
|
-
if (triggerSlotEl) {
|
|
420
|
-
triggerSlotEl.ariaActiveDescendantElement = isReferenceMode ? null : activeDescendantEl;
|
|
421
|
-
}
|
|
422
|
-
if (!referenceOwnerEl) {
|
|
689
|
+
handleItemFocusOut(event) {
|
|
690
|
+
if (!event.relatedTarget && this.rovingTabIndex.shouldRecoverFocus) {
|
|
423
691
|
return;
|
|
424
692
|
}
|
|
425
|
-
|
|
693
|
+
void this.closeHoverDropdown(event);
|
|
426
694
|
}
|
|
427
695
|
navigateActiveItem(direction) {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
const totalItems = traversableItems.length;
|
|
433
|
-
let index = this.activeItemIndex;
|
|
434
|
-
if (index < 0 || index >= totalItems) {
|
|
435
|
-
index = direction === "previous" || direction === "last" ? totalItems - 1 : 0;
|
|
436
|
-
} else if (direction === "next") {
|
|
437
|
-
index = (index + 1) % totalItems;
|
|
438
|
-
} else if (direction === "previous") {
|
|
439
|
-
index = (index - 1 + totalItems) % totalItems;
|
|
440
|
-
} else if (direction === "first") {
|
|
441
|
-
index = 0;
|
|
442
|
-
} else if (direction === "last") {
|
|
443
|
-
index = totalItems - 1;
|
|
696
|
+
this.focusActiveItemOnOpen = true;
|
|
697
|
+
const activeItem = this.rovingTabIndex.navigate(direction);
|
|
698
|
+
if (activeItem) {
|
|
699
|
+
void this.scrollActiveItemIntoView(activeItem);
|
|
444
700
|
}
|
|
445
|
-
const activeItem = traversableItems[index];
|
|
446
|
-
this.setActiveItemByIndex(index);
|
|
447
|
-
void this.scrollActiveItemIntoView(activeItem);
|
|
448
701
|
}
|
|
449
|
-
async scrollActiveItemIntoView(target) {
|
|
450
|
-
if (!target) {
|
|
451
|
-
return;
|
|
452
|
-
}
|
|
702
|
+
async scrollActiveItemIntoView(target, focusedElement = this.focusable.getDeepActiveElement(), deferredFocusDirection) {
|
|
453
703
|
await this.updateComplete;
|
|
454
704
|
await nextFrame();
|
|
455
705
|
await nextFrame();
|
|
706
|
+
target ??= this.rovingTabIndex.activeElement ?? void 0;
|
|
707
|
+
if (!target || !this.open || this.rovingTabIndex.activeElement !== target || !target.isConnected || !this.focusable.isFocusUnchanged(focusedElement)) {
|
|
708
|
+
return;
|
|
709
|
+
}
|
|
710
|
+
if (deferredFocusDirection) {
|
|
711
|
+
target = this.rovingTabIndex.navigate(deferredFocusDirection) ?? target;
|
|
712
|
+
}
|
|
713
|
+
await target.setFocus({ preventScroll: true });
|
|
456
714
|
target.scrollIntoView({ block: "nearest" });
|
|
457
715
|
}
|
|
458
716
|
activateActiveItem() {
|
|
459
717
|
const traversableItems = this.getTraversableItems();
|
|
460
|
-
const
|
|
718
|
+
const activeIndex = this.rovingTabIndex.activeIndex;
|
|
719
|
+
const targetIndex = activeIndex >= 0 && activeIndex < traversableItems.length ? activeIndex : 0;
|
|
720
|
+
const activeItem = traversableItems[targetIndex];
|
|
461
721
|
if (!activeItem) {
|
|
462
722
|
return;
|
|
463
723
|
}
|
|
464
|
-
this.
|
|
724
|
+
this.rovingTabIndex.setActiveIndex(targetIndex);
|
|
465
725
|
activeItem.activateItem();
|
|
466
726
|
}
|
|
467
|
-
openHoverDropdown() {
|
|
468
|
-
if (this.
|
|
727
|
+
openHoverDropdown(event) {
|
|
728
|
+
if (this.disabled || this.type !== "hover" || this.isRestoringFocus) {
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
731
|
+
if (this.rovingTabIndex.isFocusFromItem(event) || event.relatedTarget instanceof Node && this.el.contains(event.relatedTarget)) {
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
734
|
+
this.focusActiveItemOnOpen = true;
|
|
735
|
+
if (this.open) {
|
|
736
|
+
if (!this.rovingTabIndex.activeElement) {
|
|
737
|
+
this.rovingTabIndex.setActiveIndex(0);
|
|
738
|
+
}
|
|
739
|
+
void this.scrollActiveItemIntoView(this.rovingTabIndex.activeElement ?? void 0);
|
|
469
740
|
return;
|
|
470
741
|
}
|
|
471
742
|
this.open = true;
|
|
472
743
|
}
|
|
473
|
-
closeHoverDropdown(event) {
|
|
744
|
+
async closeHoverDropdown(event) {
|
|
474
745
|
if (!this.open || this.disabled || this.type !== "hover") {
|
|
475
746
|
return;
|
|
476
747
|
}
|
|
477
748
|
const relatedTarget = event.relatedTarget;
|
|
478
|
-
if (relatedTarget && (this.el.contains(relatedTarget) || this.referenceEl
|
|
749
|
+
if (relatedTarget && (this.el.contains(relatedTarget) || this.referenceEl instanceof Element && this.referenceEl.contains(relatedTarget))) {
|
|
479
750
|
return;
|
|
480
751
|
}
|
|
752
|
+
if (relatedTarget instanceof Element && relatedTarget.shadowRoot) {
|
|
753
|
+
await nextFrame();
|
|
754
|
+
if (!this.open || this.rovingTabIndex.hasFocus) {
|
|
755
|
+
return;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
481
758
|
this.closeCalciteDropdown();
|
|
482
759
|
}
|
|
483
760
|
toggleClickDropdown() {
|
|
484
761
|
if (this.disabled || this.type !== "click") {
|
|
485
762
|
return;
|
|
486
763
|
}
|
|
764
|
+
this.focusActiveItemOnOpen = true;
|
|
487
765
|
this.open = !this.open;
|
|
488
766
|
}
|
|
489
767
|
render() {
|
|
490
768
|
const { open } = this;
|
|
491
|
-
return this.interactiveContainer({ disabled: this.disabled, children: html`${!this.referenceElementType ? html`<div class=${safeClassMap(CSS.triggerContainer)} @click=${this.toggleClickDropdown} @focusin=${this.openHoverDropdown} @focusout=${this.closeHoverDropdown} @keydown=${this.keyDownHandler} ${ref(this.setReferenceEl)}><slot .ariaControlsElements=${this.scrollerEl ? [this.scrollerEl] : void 0} .ariaExpanded=${open} aria-haspopup=menu name=${SLOTS.trigger} @slotchange=${this.handleTriggerSlotChange}
|
|
769
|
+
return this.interactiveContainer({ disabled: this.disabled, children: html`${!this.referenceElementType ? html`<div class=${safeClassMap(CSS.triggerContainer)} @click=${this.toggleClickDropdown} @focusin=${this.openHoverDropdown} @focusout=${this.closeHoverDropdown} @keydown=${this.keyDownHandler} ${ref(this.setReferenceEl)}><slot .ariaControlsElements=${this.scrollerEl ? [this.scrollerEl] : void 0} .ariaExpanded=${open} aria-haspopup=menu name=${SLOTS.trigger} @slotchange=${this.handleTriggerSlotChange}></slot></div>` : null}<div class=${safeClassMap({
|
|
492
770
|
[CSS.wrapper]: true,
|
|
493
771
|
[getDimensionClass("width", this.width, this.widthScale)]: !!(this.width || this.widthScale)
|
|
494
|
-
})} .inert=${!open} popover=manual ${ref(this.setFloatingEl)}><div .ariaLabelledByElements=${this.referenceEl instanceof HTMLElement ? [this.referenceEl] : void 0} class=${safeClassMap({
|
|
772
|
+
})} .inert=${!open} @focusin=${this.handleItemFocus} @focusout=${this.handleItemFocusOut} @keydown=${this.keyDownHandler} popover=manual ${ref(this.setFloatingEl)}><div .ariaLabelledByElements=${this.referenceEl instanceof HTMLElement ? [this.referenceEl] : void 0} class=${safeClassMap({
|
|
495
773
|
[CSS.content]: true,
|
|
496
774
|
[FloatingCSS.animation]: true,
|
|
497
775
|
[FloatingCSS.animationActive]: open
|