@esri/calcite-components 6.0.0-next.6 → 6.0.0-next.60
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 +25 -26
- package/dist/cdn/23ZH34K3.js +2 -0
- package/dist/cdn/257CYMU4.js +2 -0
- package/dist/cdn/{FNGG4OAA.js → 2DT5TUSD.js} +1 -1
- package/dist/cdn/2FDZK4SP.js +2 -0
- package/dist/cdn/2IIS3KXI.js +2 -0
- package/dist/cdn/{G2G5ELGL.js → 2JQNV3Z4.js} +1 -1
- package/dist/cdn/{ZH4Q5NFL.js → 2KMSPIAS.js} +1 -1
- package/dist/cdn/2UKQIP47.js +2 -0
- package/dist/cdn/36ZEWJ72.js +2 -0
- package/dist/cdn/3BK7GQWU.js +2 -0
- package/dist/cdn/3FDZSMHT.js +2 -0
- package/dist/cdn/3FRKED6O.js +2 -0
- package/dist/cdn/{AVLDN7QR.js → 3K3WZKX6.js} +1 -1
- package/dist/cdn/44QWLWTD.js +2 -0
- package/dist/cdn/47WLTGVK.js +2 -0
- package/dist/cdn/4F373FUZ.js +2 -0
- package/dist/cdn/4HYVPSXV.js +2 -0
- package/dist/cdn/{ZDSVHHRM.js → 4K4EWOB2.js} +1 -1
- package/dist/cdn/4LJDBE3W.js +2 -0
- package/dist/cdn/4OHJUF5U.js +2 -0
- package/dist/cdn/4QLJN6TZ.js +2 -0
- package/dist/cdn/4SLZJ3VJ.js +2 -0
- package/dist/cdn/{4XVKHJ2X.js → 4TKDD4YH.js} +1 -1
- package/dist/cdn/{QEKM5MYW.js → 4Y5CLGZK.js} +1 -1
- package/dist/cdn/{7YEZVXC4.js → 4ZFQLQBB.js} +1 -1
- package/dist/cdn/5AN4UW6O.js +2 -0
- package/dist/cdn/5CLS3AFH.js +2 -0
- package/dist/cdn/{LHJS25PA.js → 5DYPJG6S.js} +1 -1
- package/dist/cdn/{SXAW7MNS.js → 5HEWZYIQ.js} +1 -1
- package/dist/cdn/{JMBBVRMX.js → 5IJI3EVD.js} +1 -1
- package/dist/cdn/{737AN2CX.js → 5LWU7V5K.js} +1 -1
- package/dist/cdn/5N7OHVQJ.js +2 -0
- package/dist/cdn/5SHDFPXA.js +2 -0
- package/dist/cdn/6AYXET3V.js +2 -0
- package/dist/cdn/6EVWTMJD.js +2 -0
- package/dist/cdn/{KAHKDHLF.js → 6FWGPQL4.js} +1 -1
- package/dist/cdn/6HWBAEHO.js +2 -0
- package/dist/cdn/6LNUBHXG.js +2 -0
- package/dist/cdn/{IWAXTQLG.js → 6MEPMUMI.js} +1 -1
- package/dist/cdn/6OZ63KZT.js +2 -0
- package/dist/cdn/6TP6A2OR.js +2 -0
- package/dist/cdn/6WIIOXKS.js +2 -0
- package/dist/cdn/{UE76JFYY.js → 7AHARU7F.js} +1 -1
- package/dist/cdn/{AYRJ7NYC.js → 7JCCKSQC.js} +1 -1
- package/dist/cdn/{6GU5XOTF.js → 7LCAQQHB.js} +1 -1
- package/dist/cdn/7LWJZEPF.js +2 -0
- package/dist/cdn/7OMBQ2LG.js +2 -0
- package/dist/cdn/7OTICPWF.js +2 -0
- package/dist/cdn/7SBZDWEM.js +2 -0
- package/dist/cdn/B5C4YZEV.js +2 -0
- package/dist/cdn/{M2EQFIDR.js → B6C6QBFX.js} +1 -1
- package/dist/cdn/BAVRQMTY.js +2 -0
- package/dist/cdn/BBJ5QQZI.js +2 -0
- package/dist/cdn/{67GOGJMU.js → BCIKYBF3.js} +1 -1
- package/dist/cdn/BDWM7ALR.js +2 -0
- package/dist/cdn/BHELXAGQ.js +2 -0
- package/dist/cdn/BI7TNEOV.js +2 -0
- package/dist/cdn/BN7ENVIC.js +2 -0
- package/dist/cdn/{6OUQY6IQ.js → BWTQZDQ6.js} +1 -1
- package/dist/cdn/{ZXZIMO3L.js → C2JECRTV.js} +1 -1
- package/dist/cdn/C6MFB75B.js +2 -0
- package/dist/cdn/CAQH3M55.js +2 -0
- package/dist/cdn/CDVOEYND.js +2 -0
- package/dist/cdn/{XKHMRAUY.js → COWUMHFG.js} +1 -1
- package/dist/cdn/{VZAYXOAG.js → CPPMCAID.js} +1 -1
- package/dist/cdn/CSDY4NKB.js +2 -0
- package/dist/cdn/{7PGQ6GO7.js → CYJMOVVE.js} +1 -1
- package/dist/cdn/{NY4HO46K.js → D52EAJQW.js} +1 -1
- package/dist/cdn/{L52YMQCF.js → D73DTPW3.js} +1 -1
- package/dist/cdn/DBLK2CMQ.js +2 -0
- package/dist/cdn/{ECJJHTCC.js → DGOFDT3T.js} +1 -1
- package/dist/cdn/{273FNCX2.js → DJLMVPRW.js} +1 -1
- package/dist/cdn/DQGBCHSN.js +2 -0
- package/dist/cdn/E4HUS55V.js +2 -0
- package/dist/cdn/E6IOVG3N.js +2 -0
- package/dist/cdn/E7MXVWGX.js +2 -0
- package/dist/cdn/ECWBSJHW.js +2 -0
- package/dist/cdn/EJR5VIJY.js +2 -0
- package/dist/cdn/{N24WCM2O.js → EXBAP2Y4.js} +1 -1
- package/dist/cdn/FQIEABZC.js +2 -0
- package/dist/cdn/FU32CFHC.js +2 -0
- package/dist/cdn/{YWJV2ZJH.js → FWMKFJLG.js} +1 -1
- package/dist/cdn/G3GOX6Q3.js +2 -0
- package/dist/cdn/G4Q2SWWH.js +2 -0
- package/dist/cdn/{ZTUIATL3.js → G7H34HIQ.js} +1 -1
- package/dist/cdn/GJJEZYW5.js +2 -0
- package/dist/cdn/{XSAXT6FL.js → GJSHDNEI.js} +1 -1
- package/dist/cdn/GLW4NDPH.js +2 -0
- package/dist/cdn/HGIXONN3.js +2 -0
- package/dist/cdn/HHVI5W6F.js +2 -0
- package/dist/cdn/HNJNOW6W.js +2 -0
- package/dist/cdn/IE3NKPOQ.js +2 -0
- package/dist/cdn/IITRLQOK.js +2 -0
- package/dist/cdn/{CTFG7BKR.js → IWH5APVB.js} +1 -1
- package/dist/cdn/{SVV5QASH.js → IYNVKCUS.js} +1 -1
- package/dist/cdn/J3CT322U.js +2 -0
- package/dist/cdn/J6RS2ESB.js +2 -0
- package/dist/cdn/JGBARNCY.js +2 -0
- package/dist/cdn/JQOAJ37N.js +2 -0
- package/dist/cdn/{HHHOTFTH.js → JROSHOUF.js} +1 -1
- package/dist/cdn/JYY6YBSK.js +2 -0
- package/dist/cdn/KDERETE3.js +2 -0
- package/dist/cdn/KIM73WQR.js +2 -0
- package/dist/cdn/{DPRLR4WC.js → KITAKEBT.js} +1 -1
- package/dist/cdn/KK3L5ZGD.js +2 -0
- package/dist/cdn/KLKEDT2Y.js +2 -0
- package/dist/cdn/{XWKUAYS3.js → KTA2LFLG.js} +1 -1
- package/dist/cdn/KU76HQZR.js +2 -0
- package/dist/cdn/{TFWA7JWG.js → L6CQJCBQ.js} +1 -1
- package/dist/cdn/LB7UW2Y3.js +2 -0
- package/dist/cdn/{KEHKMUWV.js → MD3RYRSU.js} +1 -1
- package/dist/cdn/{YKOI3XVI.js → MDXRSPDG.js} +1 -1
- package/dist/cdn/{BWC6TWUH.js → MLEIIIL7.js} +1 -1
- package/dist/cdn/MP2FCWDD.js +2 -0
- package/dist/cdn/MQHC7KK6.js +2 -0
- package/dist/cdn/MS5KDFTY.js +2 -0
- package/dist/cdn/MVCZVYVR.js +2 -0
- package/dist/cdn/N3SMZYHC.js +2 -0
- package/dist/cdn/{QQJAAD4D.js → N7E3E77O.js} +1 -1
- package/dist/cdn/{TUN6ENUF.js → N7LKA77X.js} +1 -1
- package/dist/cdn/NPRLTYSV.js +2 -0
- package/dist/cdn/{NFMK4OZC.js → NVVYWR22.js} +1 -1
- package/dist/cdn/NYALNICV.js +2 -0
- package/dist/cdn/OAJCI3UF.js +2 -0
- package/dist/cdn/ODKKJFFR.js +2 -0
- package/dist/cdn/ONJXSMUE.js +2 -0
- package/dist/cdn/OSPG44XY.js +2 -0
- package/dist/cdn/P3KUY6H3.js +2 -0
- package/dist/cdn/P3OZPAUC.js +2 -0
- package/dist/cdn/PBRTD24G.js +2 -0
- package/dist/cdn/PDFS7UA6.js +2 -0
- package/dist/cdn/PFX7YXIO.js +2 -0
- package/dist/cdn/PJCHRWO4.js +2 -0
- package/dist/cdn/Q3CUUGHL.js +2 -0
- package/dist/cdn/{XDGVGNRC.js → Q5V3JJ3K.js} +1 -1
- package/dist/cdn/{DPLO6UGC.js → Q6257UUK.js} +1 -1
- package/dist/cdn/Q6RI57LC.js +2 -0
- package/dist/cdn/QJ6M5YEU.js +2 -0
- package/dist/cdn/{P52FKDCF.js → QJDV2Q35.js} +1 -1
- package/dist/cdn/QZL5BQLF.js +2 -0
- package/dist/cdn/RC7R4XGD.js +2 -0
- package/dist/cdn/RJHT25SN.js +2 -0
- package/dist/cdn/{2DTZJBWP.js → RKIOFYYA.js} +1 -1
- package/dist/cdn/ROYPFJB4.js +2 -0
- package/dist/cdn/{U7YCVXZ3.js → RSOKJ3DI.js} +1 -1
- package/dist/cdn/{RUGBI54D.js → RUL4R55W.js} +1 -1
- package/dist/cdn/RX3L4B7J.js +2 -0
- package/dist/cdn/SLN4IGHF.js +2 -0
- package/dist/cdn/SRISJ3VC.js +2 -0
- package/dist/cdn/{5NOQK6QG.js → TAUHHB32.js} +1 -1
- package/dist/cdn/TL56TNQ7.js +2 -0
- package/dist/cdn/TNYEWBGQ.js +2 -0
- package/dist/cdn/{KE3GJVSQ.js → TVVDDJRC.js} +1 -1
- package/dist/cdn/{WAMREU6N.js → TZDBVRUX.js} +1 -1
- package/dist/cdn/UBAJCG7D.js +2 -0
- package/dist/cdn/{KRVMZWGR.js → UIP5HA4V.js} +1 -1
- package/dist/cdn/UKECXAGH.js +2 -0
- package/dist/cdn/{G7RVPH4C.js → URSMORCH.js} +1 -1
- package/dist/cdn/UUTQEUTL.js +2 -0
- package/dist/cdn/{XM7XHNCC.js → V5H2YZT6.js} +1 -1
- package/dist/cdn/{EWLNYQOH.js → V63XBVSE.js} +1 -1
- package/dist/cdn/VGPMXNNU.js +4 -0
- package/dist/cdn/VUOGZ2U5.js +2 -0
- package/dist/cdn/VYGPYGAQ.js +2 -0
- package/dist/cdn/W77STZAT.js +2 -0
- package/dist/cdn/{KAADRWY5.js → WBDWFW77.js} +1 -1
- package/dist/cdn/{76JH6UM6.js → WGRHH222.js} +1 -1
- package/dist/cdn/WRSFHSVK.js +2 -0
- package/dist/cdn/WTNYMVTD.js +2 -0
- package/dist/cdn/{SQRBGLBI.js → WUZCTZE7.js} +1 -1
- package/dist/cdn/WXBRWN5A.js +2 -0
- package/dist/cdn/WZISGN4V.js +2 -0
- package/dist/cdn/XOC4G2FI.js +2 -0
- package/dist/cdn/XUNSVVBS.js +2 -0
- package/dist/cdn/Y4J2RN5O.js +2 -0
- package/dist/cdn/{NBOTH5XL.js → Y7IWVO2K.js} +1 -1
- package/dist/cdn/YTWEXRRQ.js +2 -0
- package/dist/cdn/YYOLNZRT.js +2 -0
- package/dist/cdn/Z6SNTWBS.js +2 -0
- package/dist/cdn/ZHUPFYD4.js +2 -0
- package/dist/cdn/{PBDQ4F26.js → ZMWQQ36H.js} +1 -1
- package/dist/cdn/ZPZQHOA5.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/date.js +17 -4
- package/dist/chunks/dom.js +37 -32
- package/dist/chunks/dynamicClasses.js +1 -1
- package/dist/chunks/header.js +1 -1
- package/dist/chunks/locale.js +19 -18
- 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 +3 -3
- 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/useInlineEdit.js +37 -1
- package/dist/chunks/useSizeOverride.js +2 -2
- package/dist/chunks/useTime.js +2 -4
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +125 -39
- package/dist/chunks/utils3.js +4 -4
- package/dist/chunks/utils4.js +2 -3
- package/dist/components/calcite-accordion/customElement.d.ts +2 -1
- package/dist/components/calcite-accordion/customElement.js +4 -2
- package/dist/components/calcite-accordion-item/customElement.d.ts +5 -30
- package/dist/components/calcite-accordion-item/customElement.js +7 -5
- package/dist/components/calcite-action/customElement.d.ts +9 -48
- package/dist/components/calcite-action/customElement.js +8 -11
- package/dist/components/calcite-action-bar/customElement.d.ts +2 -8
- 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 +2 -5
- package/dist/components/calcite-alert/customElement.js +4 -4
- package/dist/components/calcite-autocomplete/customElement.d.ts +18 -16
- package/dist/components/calcite-autocomplete/customElement.js +38 -12
- package/dist/components/calcite-autocomplete-item/customElement.d.ts +4 -1
- 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.d.ts +1 -1
- package/dist/components/calcite-avatar/customElement.js +1 -1
- package/dist/components/calcite-block/customElement.d.ts +4 -55
- 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 +7 -10
- package/dist/components/calcite-block-group/customElement.js +31 -12
- package/dist/components/calcite-block-section/customElement.d.ts +4 -15
- package/dist/components/calcite-block-section/customElement.js +8 -35
- package/dist/components/calcite-button/customElement.d.ts +7 -7
- package/dist/components/calcite-button/customElement.js +7 -7
- package/dist/components/calcite-card/customElement.d.ts +4 -20
- package/dist/components/calcite-card/customElement.js +3 -3
- package/dist/components/calcite-card-group/customElement.d.ts +7 -9
- package/dist/components/calcite-card-group/customElement.js +4 -4
- package/dist/components/calcite-carousel/customElement.d.ts +7 -3
- 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.d.ts +4 -3
- package/dist/components/calcite-checkbox/customElement.js +2 -2
- package/dist/components/calcite-chip/customElement.d.ts +6 -12
- package/dist/components/calcite-chip/customElement.js +3 -3
- package/dist/components/calcite-chip-group/customElement.d.ts +7 -3
- package/dist/components/calcite-chip-group/customElement.js +4 -4
- package/dist/components/calcite-color-picker/customElement.d.ts +4 -3
- 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 +22 -4
- package/dist/components/calcite-color-picker-hex-input/customElement.js +3 -3
- package/dist/components/calcite-combobox/customElement.d.ts +5 -3
- 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 +11 -9
- 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 +7 -3
- package/dist/components/calcite-date-picker/customElement.d.ts +4 -4
- package/dist/components/calcite-date-picker/customElement.js +4 -4
- package/dist/components/calcite-date-picker-day/customElement.js +2 -2
- package/dist/components/calcite-date-picker-month/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month-header/customElement.js +9 -6
- package/dist/components/calcite-dialog/customElement.d.ts +18 -15
- package/dist/components/calcite-dialog/customElement.js +15 -9
- package/dist/components/calcite-dropdown/customElement.d.ts +5 -9
- package/dist/components/calcite-dropdown/customElement.js +383 -105
- 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 +9 -9
- package/dist/components/calcite-dropdown-item/customElement.js +16 -10
- package/dist/components/calcite-fab/customElement.d.ts +5 -3
- package/dist/components/calcite-fab/customElement.js +2 -2
- package/dist/components/calcite-field-group/customElement.js +114 -0
- package/dist/components/calcite-field-set/customElement.js +33 -0
- package/dist/components/calcite-filter/customElement.d.ts +4 -3
- 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 +7 -4
- package/dist/components/calcite-flow/types.d.ts +4 -4
- package/dist/components/calcite-flow-item/customElement.d.ts +20 -25
- 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.d.ts +1 -1
- package/dist/components/calcite-icon/customElement.js +9 -16
- package/dist/components/calcite-icon/types.d.ts +2 -14
- package/dist/components/calcite-inline-editable/customElement.d.ts +3 -2
- package/dist/components/calcite-inline-editable/customElement.js +10 -5
- package/dist/components/calcite-input/customElement.d.ts +8 -9
- package/dist/components/calcite-input/customElement.js +26 -9
- package/dist/components/calcite-input-date-picker/customElement.d.ts +10 -12
- package/dist/components/calcite-input-date-picker/customElement.js +11 -8
- package/dist/components/calcite-input-message/customElement.d.ts +3 -3
- package/dist/components/calcite-input-message/customElement.js +2 -2
- package/dist/components/calcite-input-number/customElement.d.ts +7 -23
- package/dist/components/calcite-input-number/customElement.js +43 -21
- package/dist/components/calcite-input-text/customElement.d.ts +8 -9
- package/dist/components/calcite-input-text/customElement.js +14 -7
- package/dist/components/calcite-input-time-picker/customElement.d.ts +7 -3
- package/dist/components/calcite-input-time-picker/customElement.js +6 -3
- package/dist/components/calcite-input-time-zone/customElement.d.ts +7 -4
- package/dist/components/calcite-input-time-zone/customElement.js +15 -10
- package/dist/components/calcite-label/customElement.d.ts +2 -4
- package/dist/components/calcite-label/customElement.js +1 -1
- package/dist/components/calcite-link/customElement.d.ts +6 -11
- package/dist/components/calcite-link/customElement.js +4 -4
- package/dist/components/calcite-list/customElement.d.ts +13 -17
- 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 +17 -11
- package/dist/components/calcite-list-item/customElement.js +14 -19
- package/dist/components/calcite-list-item-group/customElement.d.ts +8 -3
- package/dist/components/calcite-list-item-group/customElement.js +4 -2
- package/dist/components/calcite-loader/customElement.d.ts +1 -10
- package/dist/components/calcite-loader/customElement.js +1 -1
- package/dist/components/calcite-menu/customElement.d.ts +5 -4
- package/dist/components/calcite-menu/customElement.js +3 -3
- package/dist/components/calcite-menu-item/customElement.d.ts +6 -2
- package/dist/components/calcite-menu-item/customElement.js +7 -4
- package/dist/components/calcite-meter/customElement.d.ts +3 -19
- package/dist/components/calcite-meter/customElement.js +3 -3
- package/dist/components/calcite-navigation/customElement.d.ts +2 -7
- package/dist/components/calcite-navigation/customElement.js +16 -4
- package/dist/components/calcite-navigation-logo/customElement.d.ts +5 -1
- 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 +3 -22
- package/dist/components/calcite-notice/customElement.js +4 -4
- package/dist/components/calcite-option/customElement.d.ts +7 -2
- package/dist/components/calcite-option-group/customElement.d.ts +7 -2
- package/dist/components/calcite-pagination/customElement.d.ts +1 -1
- package/dist/components/calcite-pagination/customElement.js +2 -2
- package/dist/components/calcite-panel/customElement.d.ts +17 -30
- package/dist/components/calcite-panel/customElement.js +13 -8
- package/dist/components/calcite-popover/customElement.d.ts +2 -2
- 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 +5 -3
- package/dist/components/calcite-radio-button/customElement.js +2 -2
- package/dist/components/calcite-radio-button-group/customElement.d.ts +4 -2
- package/dist/components/calcite-radio-button-group/customElement.js +2 -2
- package/dist/components/calcite-rating/customElement.d.ts +4 -3
- 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 +15 -16
- package/dist/components/calcite-segmented-control/customElement.js +8 -9
- package/dist/components/calcite-segmented-control-item/customElement.d.ts +8 -2
- package/dist/components/calcite-segmented-control-item/customElement.js +5 -5
- package/dist/components/calcite-select/customElement.d.ts +9 -9
- package/dist/components/calcite-select/customElement.js +4 -5
- package/dist/components/calcite-sheet/customElement.d.ts +13 -20
- package/dist/components/calcite-sheet/customElement.js +53 -30
- 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 +19 -3
- package/dist/components/calcite-slider/customElement.js +267 -145
- package/dist/components/calcite-sort-handle/customElement.d.ts +84 -16
- package/dist/components/calcite-sort-handle/customElement.js +3 -3
- package/dist/components/calcite-sort-handle/types.d.ts +14 -3
- package/dist/components/calcite-split-button/customElement.d.ts +7 -5
- package/dist/components/calcite-split-button/customElement.js +9 -6
- package/dist/components/calcite-stack/customElement.d.ts +13 -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 +8 -3
- package/dist/components/calcite-stepper-item/customElement.js +10 -7
- package/dist/components/calcite-swatch/customElement.d.ts +7 -3
- package/dist/components/calcite-swatch/customElement.js +2 -2
- package/dist/components/calcite-swatch-group/customElement.d.ts +7 -3
- package/dist/components/calcite-swatch-group/customElement.js +3 -3
- package/dist/components/calcite-switch/customElement.d.ts +3 -20
- 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 +5 -3
- package/dist/components/calcite-tab-title/customElement.d.ts +4 -3
- 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 +21 -10
- 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 +7 -8
- package/dist/components/calcite-table-row/customElement.js +10 -7
- package/dist/components/calcite-tabs/customElement.d.ts +2 -1
- 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.d.ts +5 -6
- package/dist/components/calcite-text-area/customElement.js +5 -3
- package/dist/components/calcite-tile/customElement.d.ts +5 -19
- package/dist/components/calcite-tile/customElement.js +3 -8
- package/dist/components/calcite-tile-group/customElement.d.ts +8 -5
- package/dist/components/calcite-tile-group/customElement.js +2 -2
- package/dist/components/calcite-time-picker/customElement.d.ts +1 -4
- package/dist/components/calcite-time-picker/customElement.js +1 -1
- package/dist/components/calcite-tooltip/customElement.d.ts +1 -7
- package/dist/components/calcite-tooltip/customElement.js +4 -6
- 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 +5 -2
- package/dist/components/calcite-tree-item/customElement.js +6 -4
- package/dist/components/types.d.ts +4 -4
- 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 +1 -53
- package/dist/loader.js +26 -29
- package/dist/types/lumina.d.ts +19 -69
- package/dist/types/preact.d.ts +19 -76
- package/dist/types/react.d.ts +19 -83
- package/dist/types/stencil.d.ts +19 -69
- 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 +24 -30
- package/dist/cdn/2DS5ABFH.js +0 -2
- package/dist/cdn/2EM44FNR.js +0 -2
- package/dist/cdn/2M4ETWZU.js +0 -2
- package/dist/cdn/2MMDW7BI.js +0 -2
- package/dist/cdn/2TVFC4SC.js +0 -2
- package/dist/cdn/2ZGOGJF6.js +0 -2
- package/dist/cdn/3AN5MCS4.js +0 -2
- package/dist/cdn/3CJN7FJU.js +0 -2
- package/dist/cdn/3GBZ4SAD.js +0 -2
- package/dist/cdn/4DQBCTK5.js +0 -2
- package/dist/cdn/4HWWQ6HR.js +0 -2
- package/dist/cdn/4K6I5BPD.js +0 -2
- package/dist/cdn/4TTENFDJ.js +0 -2
- package/dist/cdn/56KYPDQM.js +0 -2
- package/dist/cdn/5HV3BBGA.js +0 -2
- package/dist/cdn/5K4OZJAZ.js +0 -2
- package/dist/cdn/5PSYP3I2.js +0 -2
- package/dist/cdn/5PWUGSDR.js +0 -2
- package/dist/cdn/5R2BZ3Y3.js +0 -2
- package/dist/cdn/6MQKWFEF.js +0 -2
- package/dist/cdn/6O654SMC.js +0 -2
- package/dist/cdn/6QZQAU3I.js +0 -2
- package/dist/cdn/6RUMQK7A.js +0 -2
- package/dist/cdn/6VD2HQGL.js +0 -2
- package/dist/cdn/777OWFH3.js +0 -2
- package/dist/cdn/7FCPPVXZ.js +0 -2
- package/dist/cdn/7OW7MDJB.js +0 -2
- package/dist/cdn/7ZBQIN6C.js +0 -2
- package/dist/cdn/A5OQTYIZ.js +0 -2
- package/dist/cdn/A76MLFX6.js +0 -2
- package/dist/cdn/AH6V5EBF.js +0 -2
- package/dist/cdn/AUKS7YVQ.js +0 -2
- package/dist/cdn/B3OV6FHO.js +0 -2
- package/dist/cdn/B5U4CF2X.js +0 -2
- package/dist/cdn/BGUERY7Y.js +0 -2
- package/dist/cdn/BU6KJNPB.js +0 -2
- package/dist/cdn/CCKJ4KEC.js +0 -2
- package/dist/cdn/CWFS4RYQ.js +0 -2
- package/dist/cdn/DAAZCIL6.js +0 -2
- package/dist/cdn/DF4OFJQD.js +0 -2
- package/dist/cdn/DFGER5JQ.js +0 -2
- package/dist/cdn/DL57MLLQ.js +0 -2
- package/dist/cdn/DPYW5HXT.js +0 -2
- package/dist/cdn/DWFQRZXX.js +0 -2
- package/dist/cdn/E4CP6XC4.js +0 -2
- package/dist/cdn/E5Q62F4C.js +0 -2
- package/dist/cdn/EBDTINUI.js +0 -2
- package/dist/cdn/EGYSMSOI.js +0 -2
- package/dist/cdn/EU2M36GK.js +0 -2
- package/dist/cdn/FKJ6IP34.js +0 -2
- package/dist/cdn/FZUWD54J.js +0 -2
- package/dist/cdn/G3AEASPS.js +0 -2
- package/dist/cdn/G3XTZIR3.js +0 -2
- package/dist/cdn/GKJQ4KPG.js +0 -2
- package/dist/cdn/GLOL2YM6.js +0 -2
- package/dist/cdn/GMRUSV7G.js +0 -2
- package/dist/cdn/H2LFLR7S.js +0 -2
- package/dist/cdn/H34OV4PT.js +0 -2
- package/dist/cdn/H435IFGN.js +0 -2
- package/dist/cdn/HFIN5GET.js +0 -2
- package/dist/cdn/HHYO7QED.js +0 -2
- package/dist/cdn/HQ53D5UK.js +0 -2
- package/dist/cdn/HV6UEQOL.js +0 -2
- package/dist/cdn/IGEH62UB.js +0 -2
- package/dist/cdn/ILIJNGP6.js +0 -2
- package/dist/cdn/IT56XCD4.js +0 -2
- package/dist/cdn/J5DSIEAM.js +0 -2
- package/dist/cdn/JI5RWOTK.js +0 -2
- package/dist/cdn/JJEEADPK.js +0 -2
- package/dist/cdn/JJUCWZI5.js +0 -2
- package/dist/cdn/KPEXFJZI.js +0 -2
- package/dist/cdn/KWXXYKOU.js +0 -2
- package/dist/cdn/L43T63IB.js +0 -2
- package/dist/cdn/LQKD2M3M.js +0 -2
- package/dist/cdn/LYY4J54O.js +0 -2
- package/dist/cdn/MFJ2MVNO.js +0 -2
- package/dist/cdn/MVTX43EZ.js +0 -2
- package/dist/cdn/NEYOI3A2.js +0 -2
- package/dist/cdn/NG6VGYGT.js +0 -2
- package/dist/cdn/NKJTOELR.js +0 -2
- package/dist/cdn/NWVNOELE.js +0 -2
- package/dist/cdn/OAFVU7CY.js +0 -2
- package/dist/cdn/OKJ7WS6L.js +0 -2
- package/dist/cdn/PNTLJGIM.js +0 -2
- package/dist/cdn/Q7HICP7X.js +0 -2
- package/dist/cdn/QJ2D4YHE.js +0 -2
- package/dist/cdn/QZD4S52I.js +0 -2
- package/dist/cdn/RXRKIMW6.js +0 -2
- package/dist/cdn/S2KQDR2N.js +0 -2
- package/dist/cdn/SBEP3ABQ.js +0 -2
- package/dist/cdn/SBWQN2SU.js +0 -2
- package/dist/cdn/SC6KSQOP.js +0 -2
- package/dist/cdn/SCGMVGNZ.js +0 -2
- package/dist/cdn/SXPPQB7F.js +0 -2
- package/dist/cdn/SXUFEGJ3.js +0 -2
- package/dist/cdn/SYROFEVC.js +0 -2
- package/dist/cdn/T24Z4QWZ.js +0 -4
- package/dist/cdn/TD73K64S.js +0 -2
- package/dist/cdn/TGZMZXYZ.js +0 -2
- package/dist/cdn/TLHHWBWU.js +0 -2
- package/dist/cdn/TNPPNE4F.js +0 -2
- package/dist/cdn/TUNTL6HH.js +0 -2
- package/dist/cdn/TUZBURA2.js +0 -2
- package/dist/cdn/TVN3A3L2.js +0 -2
- package/dist/cdn/UGH2IU3M.js +0 -2
- package/dist/cdn/UYUFROPH.js +0 -2
- package/dist/cdn/V5TDWR5D.js +0 -2
- package/dist/cdn/VAE7YJGP.js +0 -2
- package/dist/cdn/W4P6J5SY.js +0 -2
- package/dist/cdn/WCITV4H3.js +0 -2
- package/dist/cdn/WJUD7XZO.js +0 -2
- package/dist/cdn/XBZYM6JX.js +0 -2
- package/dist/cdn/XMG445KQ.js +0 -2
- package/dist/cdn/YF7W5TNY.js +0 -2
- package/dist/cdn/YGBWJAMC.js +0 -2
- package/dist/cdn/YGNIF77S.js +0 -2
- package/dist/cdn/YSW3EMMW.js +0 -2
- package/dist/cdn/YTOBOKTJ.js +0 -2
- package/dist/cdn/YUPGU6CU.js +0 -2
- package/dist/cdn/YV4JKSOA.js +0 -2
- package/dist/cdn/ZRDR33F4.js +0 -2
- package/dist/cdn/ZYNC435L.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/date-picker/nls/ar.json +0 -1
- package/dist/cdn/assets/date-picker/nls/bg.json +0 -1
- package/dist/cdn/assets/date-picker/nls/bs.json +0 -1
- package/dist/cdn/assets/date-picker/nls/ca.json +0 -1
- package/dist/cdn/assets/date-picker/nls/cs.json +0 -1
- package/dist/cdn/assets/date-picker/nls/da.json +0 -1
- package/dist/cdn/assets/date-picker/nls/de-AT.json +0 -1
- package/dist/cdn/assets/date-picker/nls/de-CH.json +0 -1
- package/dist/cdn/assets/date-picker/nls/de.json +0 -1
- package/dist/cdn/assets/date-picker/nls/el.json +0 -1
- package/dist/cdn/assets/date-picker/nls/en-AU.json +0 -1
- package/dist/cdn/assets/date-picker/nls/en-CA.json +0 -1
- package/dist/cdn/assets/date-picker/nls/en-GB.json +0 -1
- package/dist/cdn/assets/date-picker/nls/en.json +0 -1
- package/dist/cdn/assets/date-picker/nls/es-MX.json +0 -1
- package/dist/cdn/assets/date-picker/nls/es.json +0 -1
- package/dist/cdn/assets/date-picker/nls/et.json +0 -1
- package/dist/cdn/assets/date-picker/nls/fi.json +0 -1
- package/dist/cdn/assets/date-picker/nls/fr-CA.json +0 -1
- package/dist/cdn/assets/date-picker/nls/fr-CH.json +0 -1
- package/dist/cdn/assets/date-picker/nls/fr.json +0 -1
- package/dist/cdn/assets/date-picker/nls/he.json +0 -1
- package/dist/cdn/assets/date-picker/nls/hi.json +0 -1
- package/dist/cdn/assets/date-picker/nls/hr.json +0 -1
- package/dist/cdn/assets/date-picker/nls/hu.json +0 -1
- package/dist/cdn/assets/date-picker/nls/id.json +0 -1
- package/dist/cdn/assets/date-picker/nls/it-CH.json +0 -1
- package/dist/cdn/assets/date-picker/nls/it.json +0 -1
- package/dist/cdn/assets/date-picker/nls/ja.json +0 -1
- package/dist/cdn/assets/date-picker/nls/ko.json +0 -1
- package/dist/cdn/assets/date-picker/nls/lt.json +0 -1
- package/dist/cdn/assets/date-picker/nls/lv.json +0 -1
- package/dist/cdn/assets/date-picker/nls/mk.json +0 -1
- package/dist/cdn/assets/date-picker/nls/nl.json +0 -1
- package/dist/cdn/assets/date-picker/nls/no.json +0 -1
- package/dist/cdn/assets/date-picker/nls/pl.json +0 -1
- package/dist/cdn/assets/date-picker/nls/pt-BR.json +0 -1
- package/dist/cdn/assets/date-picker/nls/pt-PT.json +0 -1
- package/dist/cdn/assets/date-picker/nls/pt.json +0 -1
- package/dist/cdn/assets/date-picker/nls/ro.json +0 -1
- package/dist/cdn/assets/date-picker/nls/ru.json +0 -1
- package/dist/cdn/assets/date-picker/nls/sk.json +0 -1
- package/dist/cdn/assets/date-picker/nls/sl.json +0 -1
- package/dist/cdn/assets/date-picker/nls/sr.json +0 -1
- package/dist/cdn/assets/date-picker/nls/sv.json +0 -1
- package/dist/cdn/assets/date-picker/nls/th.json +0 -1
- package/dist/cdn/assets/date-picker/nls/tr.json +0 -1
- package/dist/cdn/assets/date-picker/nls/uk.json +0 -1
- package/dist/cdn/assets/date-picker/nls/vi.json +0 -1
- package/dist/cdn/assets/date-picker/nls/zh-CN.json +0 -1
- package/dist/cdn/assets/date-picker/nls/zh-HK.json +0 -1
- package/dist/cdn/assets/date-picker/nls/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-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-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
- /package/dist/components/{calcite-color-picker-swatch → calcite-field-group}/index.js +0 -0
- /package/dist/components/{calcite-focus-trap → calcite-field-set}/index.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 }], 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
|
-
[getDimensionClass("width", this.width
|
|
494
|
-
})} .inert=${!open} popover=manual ${ref(this.setFloatingEl)}><div .ariaLabelledByElements=${this.referenceEl instanceof HTMLElement ? [this.referenceEl] : void 0} class=${safeClassMap({
|
|
771
|
+
[getDimensionClass("width", this.width)]: !!this.width
|
|
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
|