@esri/calcite-components 5.2.0-next.2 → 5.2.0-next.20
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/dist/cdn/274FRZ4L.js +2 -0
- package/dist/cdn/2JPZ4U3F.js +2 -0
- package/dist/cdn/2OKTIK5P.js +2 -0
- package/dist/cdn/2S3J7Q5Z.js +2 -0
- package/dist/cdn/{NF3TF2WJ.js → 3C5DIDB6.js} +1 -1
- package/dist/cdn/{IVJANKWM.js → 3FMYGIHK.js} +1 -1
- package/dist/cdn/3PIVSGTG.js +2 -0
- package/dist/cdn/3QG7PMD7.js +2 -0
- package/dist/cdn/3SUPEMGE.js +2 -0
- package/dist/cdn/{4AM5CFW2.js → 3UNRNAOV.js} +1 -1
- package/dist/cdn/46R52HRO.js +20 -0
- package/dist/cdn/{45HPDOT4.js → 47RIXDBV.js} +1 -1
- package/dist/cdn/4S346774.js +2 -0
- package/dist/cdn/{U5IWCBXE.js → 4T5M75LE.js} +1 -1
- package/dist/cdn/{2U7LTQ5E.js → 52TGV3MU.js} +1 -1
- package/dist/cdn/55XFD6HO.js +2 -0
- package/dist/cdn/{EL7GGALP.js → 577SUJUX.js} +1 -1
- package/dist/cdn/{GBNEJ7ZF.js → 5ALNZXSH.js} +1 -1
- package/dist/cdn/{ATPHVTBE.js → 5AZRX3DS.js} +2 -2
- package/dist/cdn/5FPO2LVP.js +2 -0
- package/dist/cdn/5G7HGALW.js +2 -0
- package/dist/cdn/5K5QPJF6.js +2 -0
- package/dist/cdn/{PKAYPMQL.js → 5LVC7ETO.js} +1 -1
- package/dist/cdn/636S2QKG.js +3 -0
- package/dist/cdn/{4XBIPWD2.js → 6CGBTN55.js} +1 -1
- package/dist/cdn/6FX7KF45.js +2 -0
- package/dist/cdn/6TIUDPR2.js +2 -0
- package/dist/cdn/6VK7XK62.js +2 -0
- package/dist/cdn/{KQN3IXDE.js → 72TSXURJ.js} +1 -1
- package/dist/cdn/76RXUWCX.js +2 -0
- package/dist/cdn/775UWETO.js +2 -0
- package/dist/cdn/{QIW2VXWS.js → 7F33GT65.js} +1 -1
- package/dist/cdn/7UFQ3X5X.js +2 -0
- package/dist/cdn/7WVYLU6C.js +2 -0
- package/dist/cdn/B6W4AN57.js +2 -0
- package/dist/cdn/BEE5ZZFY.js +2 -0
- package/dist/cdn/{BDJAXYZ6.js → BMYGRIAP.js} +1 -1
- package/dist/cdn/BNC7N3R4.js +2 -0
- package/dist/cdn/{F5S74A6J.js → C2UEEF3A.js} +1 -1
- package/dist/cdn/{IOBH7Q3C.js → C4QSA4S3.js} +2 -2
- package/dist/cdn/CJH5YZMC.js +2 -0
- package/dist/cdn/CLSQCW4V.js +2 -0
- package/dist/cdn/CPFSTSGS.js +2 -0
- package/dist/cdn/CQDKKPB6.js +2 -0
- package/dist/cdn/{S5JJMYDX.js → DDXCC6I7.js} +1 -1
- package/dist/cdn/{XR4GGZRV.js → DG732A5I.js} +1 -1
- package/dist/cdn/{UOQXEKIF.js → DGTIDBPW.js} +1 -1
- package/dist/cdn/DQ3MLE4A.js +2 -0
- package/dist/cdn/DVKDKTTT.js +2 -0
- package/dist/cdn/DXIXUXY7.js +2 -0
- package/dist/cdn/E4NVRMZX.js +2 -0
- package/dist/cdn/{FEMVD7MC.js → EI74TGO3.js} +1 -1
- package/dist/cdn/{QXVZRQDN.js → ESZADAAH.js} +1 -1
- package/dist/cdn/EVNBFYKJ.js +2 -0
- package/dist/cdn/FCEOFOET.js +2 -0
- package/dist/cdn/FJ6U5NX4.js +2 -0
- package/dist/cdn/FWZ7I3TZ.js +2 -0
- package/dist/cdn/FYSYIGKF.js +2 -0
- package/dist/cdn/G36GJMGW.js +2 -0
- package/dist/cdn/{AFNW6NWU.js → G3JY7DQV.js} +1 -1
- package/dist/cdn/G75UXAST.js +2 -0
- package/dist/cdn/GDR2FP2D.js +2 -0
- package/dist/cdn/{YHD7HKDX.js → GHDKS4TD.js} +1 -1
- package/dist/cdn/{7Q57OJ6S.js → GOIDLV7C.js} +1 -1
- package/dist/cdn/GQU3WFZV.js +2 -0
- package/dist/cdn/{WYJ5MJ5T.js → H5W5WXHK.js} +1 -1
- package/dist/cdn/{B5M44JJO.js → HBZAO5XC.js} +1 -1
- package/dist/cdn/HHFK7TKV.js +2 -0
- package/dist/cdn/HM7JX2IF.js +2 -0
- package/dist/cdn/HMZU6HVE.js +2 -0
- package/dist/cdn/HR7ZF4O4.js +2 -0
- package/dist/cdn/HRZRDD6H.js +2 -0
- package/dist/cdn/{B34QFBVX.js → HT4HY6AT.js} +1 -1
- package/dist/cdn/HTNEOCBI.js +2 -0
- package/dist/cdn/{57I2TDEP.js → I6XS2MAU.js} +1 -1
- package/dist/cdn/ICBBCGZV.js +2 -0
- package/dist/cdn/IHICRFB2.js +2 -0
- package/dist/cdn/IMWZRCSG.js +2 -0
- package/dist/cdn/{HIXRGJPQ.js → IMZAUAXY.js} +1 -1
- package/dist/cdn/IP3UF6EB.js +2 -0
- package/dist/cdn/J5CBNSFX.js +2 -0
- package/dist/cdn/JKUFUPT6.js +2 -0
- package/dist/cdn/JRJF4HDI.js +2 -0
- package/dist/cdn/JSGM5KD3.js +2 -0
- package/dist/cdn/JTMLSOJ5.js +2 -0
- package/dist/cdn/K3SSCLYA.js +2 -0
- package/dist/cdn/K6UR6OZ2.js +2 -0
- package/dist/cdn/KP6PJRAL.js +2 -0
- package/dist/cdn/{X33GQ3A3.js → KQGMXWXI.js} +1 -1
- package/dist/cdn/KRQY2SFF.js +2 -0
- package/dist/cdn/KVWXUJ5Z.js +2 -0
- package/dist/cdn/L2WOW4WA.js +2 -0
- package/dist/cdn/{GUSPFAZS.js → L4VFHSB3.js} +1 -1
- package/dist/cdn/LENEZSR4.js +2 -0
- package/dist/cdn/LK5HCROM.js +2 -0
- package/dist/cdn/MR75ZUED.js +2 -0
- package/dist/cdn/MZL4PWY5.js +2 -0
- package/dist/cdn/N4PIPJUW.js +2 -0
- package/dist/cdn/{UMHABPZB.js → NE4WXKKT.js} +1 -1
- package/dist/cdn/NH7NEXHE.js +2 -0
- package/dist/cdn/NLKEM7KL.js +2 -0
- package/dist/cdn/NLKK7ZPG.js +2 -0
- package/dist/cdn/ODBJ3LN3.js +2 -0
- package/dist/cdn/OII6O6MC.js +2 -0
- package/dist/cdn/OIO5CL6R.js +2 -0
- package/dist/cdn/OTWVFXUM.js +2 -0
- package/dist/cdn/{DJL42XA3.js → OXHWLLZQ.js} +1 -1
- package/dist/cdn/{I5C2XC5I.js → P5E4K2YU.js} +1 -1
- package/dist/cdn/PFNK3NNN.js +2 -0
- package/dist/cdn/PM4OUC5A.js +2 -0
- package/dist/cdn/QC2L77KT.js +2 -0
- package/dist/cdn/{F25HCCSH.js → QMPPLQQ5.js} +1 -1
- package/dist/cdn/QQDQTFWB.js +2 -0
- package/dist/cdn/R266UWNO.js +2 -0
- package/dist/cdn/R4GEOVYI.js +2 -0
- package/dist/cdn/RIUXW3CT.js +2 -0
- package/dist/cdn/{YEFCURY4.js → RXOCIZR2.js} +1 -1
- package/dist/cdn/RZUBAM3F.js +2 -0
- package/dist/cdn/{AV53YUYO.js → S6UM4EUR.js} +1 -1
- package/dist/cdn/SJ74WMIE.js +2 -0
- package/dist/cdn/{NFPHYIMY.js → SKLSVDDA.js} +1 -1
- package/dist/cdn/SKT6EH46.js +2 -0
- package/dist/cdn/{6A4WSEWS.js → SPAXDNSY.js} +1 -1
- package/dist/cdn/TAUY7Z4O.js +2 -0
- package/dist/cdn/{KPR7F2IQ.js → TJQCOJLM.js} +1 -1
- package/dist/cdn/TTAUZYEK.js +2 -0
- package/dist/cdn/TUTEHUDA.js +2 -0
- package/dist/cdn/TYBH7GGH.js +2 -0
- package/dist/cdn/{YL4XYPPL.js → VC7TEAH4.js} +1 -1
- package/dist/cdn/{MIE7SGGW.js → VSQEV5GK.js} +1 -1
- package/dist/cdn/VWSSAZSV.js +2 -0
- package/dist/cdn/{TE3IGQZH.js → VY2YOVXS.js} +1 -1
- package/dist/cdn/{FPVMYG6A.js → W73JFEFK.js} +1 -1
- package/dist/cdn/WNML6YVK.js +2 -0
- package/dist/cdn/WTW36HQX.js +2 -0
- package/dist/cdn/{CC6MIBOX.js → WY4WCY62.js} +1 -1
- package/dist/cdn/{4PN5ZOFS.js → WZDOH3UT.js} +1 -1
- package/dist/cdn/{BBQFFEZH.js → XDM2TRBZ.js} +1 -1
- package/dist/cdn/{QLMCMCFN.js → XFASTRFH.js} +1 -1
- package/dist/cdn/XHWRV66Y.js +2 -0
- package/dist/cdn/{AOWO3CEE.js → XIFFX53O.js} +1 -1
- package/dist/cdn/XLWF7PEZ.js +2 -0
- package/dist/cdn/XQQVDTPC.js +2 -0
- package/dist/cdn/{G4ZSDWUZ.js → Y62446FJ.js} +1 -1
- package/dist/cdn/YB3SPSPR.js +2 -0
- package/dist/cdn/YF3XQNMO.js +2 -0
- package/dist/cdn/YJPIZ6DX.js +2 -0
- package/dist/cdn/{XD2JOD4K.js → YVCNMRUN.js} +1 -1
- package/dist/cdn/YVTX357W.js +2 -0
- package/dist/cdn/YZHMVXRO.js +2 -0
- package/dist/cdn/ZPMLHYGP.js +2 -0
- package/dist/cdn/ZWC56RBG.js +2 -0
- package/dist/cdn/assets/combobox/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/icon/arcgisEnterprise16.json +1 -0
- package/dist/cdn/assets/icon/arcgisEnterprise24.json +1 -0
- package/dist/cdn/assets/icon/arcgisEnterprise32.json +1 -0
- package/dist/cdn/assets/icon/buildingIndex16.json +1 -0
- package/dist/cdn/assets/icon/buildingIndex24.json +1 -0
- package/dist/cdn/assets/icon/buildingIndex32.json +1 -0
- package/dist/cdn/assets/icon/fireIndex16.json +1 -0
- package/dist/cdn/assets/icon/fireIndex24.json +1 -0
- package/dist/cdn/assets/icon/fireIndex32.json +1 -0
- package/dist/cdn/assets/icon/geologyIndex16.json +1 -0
- package/dist/cdn/assets/icon/geologyIndex24.json +1 -0
- package/dist/cdn/assets/icon/geologyIndex32.json +1 -0
- package/dist/cdn/assets/icon/returnToDefault16.json +1 -1
- package/dist/cdn/assets/icon/returnToDefault32.json +1 -1
- package/dist/cdn/assets/icon/smartSearch16.json +1 -0
- package/dist/cdn/assets/icon/smartSearch24.json +1 -0
- package/dist/cdn/assets/icon/smartSearch32.json +1 -0
- package/dist/cdn/assets/icon/snowIndex16.json +1 -0
- package/dist/cdn/assets/icon/snowIndex24.json +1 -0
- package/dist/cdn/assets/icon/snowIndex32.json +1 -0
- package/dist/cdn/assets/icon/soilAdjustedVegetationIndex16.json +1 -0
- package/dist/cdn/assets/icon/soilAdjustedVegetationIndex24.json +1 -0
- package/dist/cdn/assets/icon/soilAdjustedVegetationIndex32.json +1 -0
- package/dist/cdn/assets/icon/userSave16.json +1 -0
- package/dist/cdn/assets/icon/userSave24.json +1 -0
- package/dist/cdn/assets/icon/userSave32.json +1 -0
- package/dist/cdn/assets/icon/vegetationIndex16.json +1 -0
- package/dist/cdn/assets/icon/vegetationIndex24.json +1 -0
- package/dist/cdn/assets/icon/vegetationIndex32.json +1 -0
- package/dist/cdn/assets/icon/weatherRadar16.json +1 -0
- package/dist/cdn/assets/icon/weatherRadar24.json +1 -0
- package/dist/cdn/assets/icon/weatherRadar32.json +1 -0
- package/dist/cdn/assets/input/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/input/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/input-date-picker/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/input-date-picker/t9n/messages.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/input-number/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/input-text/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/input-time-picker/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/input-time-picker/t9n/messages.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/ClearButton.js +1 -1
- package/dist/chunks/ExpandToggle.js +1 -1
- package/dist/chunks/date.js +9 -6
- package/dist/chunks/dom.js +9 -14
- package/dist/chunks/locale.js +1 -1
- package/dist/chunks/logger.js +1 -1
- package/dist/chunks/manager.js +5 -5
- package/dist/chunks/math.js +1 -1
- package/dist/chunks/resources.js +0 -1
- package/dist/chunks/resources12.js +27 -0
- package/dist/chunks/responsive.js +1 -1
- package/dist/chunks/runtime.js +6 -5
- package/dist/chunks/useForm.js +8 -6
- package/dist/chunks/useSizeOverride.js +1 -1
- package/dist/chunks/useSortable.js +34 -4
- package/dist/chunks/useTime.js +28 -24
- package/dist/chunks/utils.js +3 -3
- package/dist/chunks/utils2.js +58 -5
- package/dist/chunks/utils3.js +1 -1
- package/dist/components/calcite-accordion-item/customElement.d.ts +2 -2
- package/dist/components/calcite-action/customElement.d.ts +5 -8
- package/dist/components/calcite-action/customElement.js +26 -10
- package/dist/components/calcite-action-bar/customElement.d.ts +4 -4
- package/dist/components/calcite-action-group/customElement.d.ts +3 -5
- package/dist/components/calcite-action-menu/customElement.d.ts +3 -5
- package/dist/components/calcite-action-menu/customElement.js +3 -3
- package/dist/components/calcite-action-pad/customElement.d.ts +4 -4
- package/dist/components/calcite-alert/customElement.d.ts +2 -4
- package/dist/components/calcite-autocomplete/customElement.d.ts +6 -12
- package/dist/components/calcite-autocomplete-item/customElement.d.ts +1 -1
- package/dist/components/calcite-block/customElement.d.ts +7 -9
- package/dist/components/calcite-block-group/customElement.d.ts +2 -2
- package/dist/components/calcite-block-section/customElement.d.ts +2 -2
- package/dist/components/calcite-button/customElement.d.ts +2 -6
- package/dist/components/calcite-card/customElement.d.ts +2 -2
- package/dist/components/calcite-carousel/customElement.d.ts +7 -7
- package/dist/components/calcite-carousel/customElement.js +2 -2
- package/dist/components/calcite-checkbox/customElement.d.ts +2 -6
- package/dist/components/calcite-chip/customElement.d.ts +2 -2
- package/dist/components/calcite-chip/customElement.js +4 -3
- package/dist/components/calcite-color-picker/customElement.d.ts +20 -20
- package/dist/components/calcite-color-picker/customElement.js +6 -2
- package/dist/components/calcite-combobox/customElement.d.ts +25 -30
- package/dist/components/calcite-combobox/customElement.js +80 -74
- package/dist/components/calcite-combobox-item/customElement.d.ts +6 -6
- package/dist/components/calcite-combobox-item/customElement.js +2 -1
- package/dist/components/calcite-combobox-item-group/customElement.d.ts +1 -1
- package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
- package/dist/components/calcite-date-picker/customElement.d.ts +15 -15
- package/dist/components/calcite-date-picker/customElement.js +18 -18
- package/dist/components/calcite-date-picker-day/customElement.js +2 -2
- package/dist/components/calcite-date-picker-month/customElement.d.ts +4 -4
- package/dist/components/calcite-date-picker-month/customElement.js +19 -14
- package/dist/components/calcite-date-picker-month-header/customElement.js +14 -9
- package/dist/components/calcite-dialog/customElement.d.ts +12 -14
- package/dist/components/calcite-dialog/customElement.js +5 -6
- package/dist/components/calcite-dropdown/customElement.d.ts +6 -7
- package/dist/components/calcite-dropdown/customElement.js +10 -7
- package/dist/components/calcite-dropdown-group/customElement.d.ts +1 -1
- package/dist/components/calcite-dropdown-group/customElement.js +1 -1
- package/dist/components/calcite-dropdown-item/customElement.d.ts +7 -7
- package/dist/components/calcite-dropdown-item/customElement.js +3 -3
- package/dist/components/calcite-filter/customElement.d.ts +2 -2
- package/dist/components/calcite-filter/customElement.js +1 -1
- package/dist/components/calcite-flow-item/customElement.d.ts +10 -12
- package/dist/components/calcite-flow-item/customElement.js +9 -7
- package/dist/components/calcite-graph/customElement.d.ts +3 -3
- package/dist/components/calcite-graph/customElement.js +11 -15
- package/dist/components/calcite-handle/customElement.d.ts +7 -7
- package/dist/components/calcite-handle/customElement.js +2 -2
- package/dist/components/calcite-icon/customElement.d.ts +2 -2
- package/dist/components/calcite-icon/customElement.js +4 -4
- package/dist/components/calcite-icon/interfaces.d.ts +1 -1
- package/dist/components/calcite-inline-editable/customElement.d.ts +4 -4
- package/dist/components/calcite-inline-editable/customElement.js +4 -2
- package/dist/components/calcite-input/customElement.d.ts +26 -27
- package/dist/components/calcite-input/customElement.js +14 -12
- package/dist/components/calcite-input-date-picker/customElement.d.ts +30 -29
- package/dist/components/calcite-input-date-picker/customElement.js +17 -17
- package/dist/components/calcite-input-message/customElement.d.ts +1 -1
- package/dist/components/calcite-input-message/customElement.js +1 -3
- package/dist/components/calcite-input-number/customElement.d.ts +25 -28
- package/dist/components/calcite-input-number/customElement.js +14 -12
- package/dist/components/calcite-input-text/customElement.d.ts +21 -22
- package/dist/components/calcite-input-text/customElement.js +3 -3
- package/dist/components/calcite-input-time-picker/customElement.d.ts +29 -30
- package/dist/components/calcite-input-time-picker/customElement.js +34 -10
- package/dist/components/calcite-input-time-zone/customElement.d.ts +619 -622
- package/dist/components/calcite-input-time-zone/customElement.js +14 -12
- package/dist/components/calcite-list/customElement.d.ts +4 -4
- package/dist/components/calcite-list-item/customElement.d.ts +4 -6
- package/dist/components/calcite-list-item/interfaces.d.ts +3 -3
- package/dist/components/calcite-menu/customElement.d.ts +1 -1
- package/dist/components/calcite-menu-item/customElement.d.ts +2 -2
- package/dist/components/calcite-meter/customElement.d.ts +1 -3
- package/dist/components/calcite-meter/customElement.js +9 -9
- package/dist/components/calcite-navigation/customElement.d.ts +1 -1
- package/dist/components/calcite-navigation/customElement.js +9 -0
- package/dist/components/calcite-navigation-logo/customElement.d.ts +9 -9
- package/dist/components/calcite-navigation-logo/customElement.js +1 -0
- package/dist/components/calcite-navigation-user/customElement.d.ts +5 -5
- package/dist/components/calcite-navigation-user/customElement.js +1 -0
- package/dist/components/calcite-notice/customElement.d.ts +2 -2
- package/dist/components/calcite-option/customElement.d.ts +1 -1
- package/dist/components/calcite-option/customElement.js +1 -0
- package/dist/components/calcite-pagination/customElement.d.ts +4 -4
- package/dist/components/calcite-pagination/customElement.js +3 -3
- package/dist/components/calcite-panel/customElement.d.ts +8 -10
- package/dist/components/calcite-panel/customElement.js +38 -6
- package/dist/components/calcite-popover/customElement.d.ts +3 -5
- package/dist/components/calcite-radio-button/customElement.d.ts +1 -5
- package/dist/components/calcite-radio-button/customElement.js +1 -0
- package/dist/components/calcite-radio-button-group/customElement.d.ts +1 -1
- package/dist/components/calcite-rating/customElement.d.ts +4 -8
- package/dist/components/calcite-rating/customElement.js +1 -1
- package/dist/components/calcite-scrim/customElement.d.ts +1 -1
- package/dist/components/calcite-segmented-control/customElement.d.ts +8 -11
- package/dist/components/calcite-segmented-control/customElement.js +2 -2
- package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
- package/dist/components/calcite-select/customElement.d.ts +7 -11
- package/dist/components/calcite-sheet/customElement.d.ts +6 -8
- package/dist/components/calcite-sheet/customElement.js +7 -22
- package/dist/components/calcite-shell/customElement.d.ts +2 -0
- package/dist/components/calcite-shell/customElement.js +3 -14
- package/dist/components/calcite-shell-panel/customElement.d.ts +4 -4
- package/dist/components/calcite-shell-panel/customElement.js +4 -16
- package/dist/components/calcite-slider/customElement.d.ts +14 -18
- package/dist/components/calcite-slider/customElement.js +19 -20
- package/dist/components/calcite-sort-handle/customElement.d.ts +16 -18
- package/dist/components/calcite-sort-handle/customElement.js +2 -2
- package/dist/components/calcite-sortable-list/customElement.d.ts +2 -2
- package/dist/components/calcite-sortable-list/customElement.js +3 -3
- package/dist/components/calcite-split-button/customElement.d.ts +12 -14
- package/dist/components/calcite-split-button/customElement.js +1 -1
- package/dist/components/calcite-stepper/customElement.d.ts +4 -4
- package/dist/components/calcite-stepper/customElement.js +10 -10
- package/dist/components/calcite-stepper-item/customElement.d.ts +6 -6
- package/dist/components/calcite-stepper-item/customElement.js +8 -24
- package/dist/components/calcite-swatch/customElement.d.ts +1 -1
- package/dist/components/calcite-swatch/customElement.js +2 -2
- package/dist/components/calcite-swatch-group/customElement.js +8 -6
- package/dist/components/calcite-switch/customElement.d.ts +6 -10
- package/dist/components/calcite-tab-nav/customElement.d.ts +2 -2
- package/dist/components/calcite-tab-nav/customElement.js +65 -27
- package/dist/components/calcite-tab-title/customElement.d.ts +1 -1
- package/dist/components/calcite-tab-title/customElement.js +4 -0
- package/dist/components/calcite-table/customElement.d.ts +11 -5
- package/dist/components/calcite-table/customElement.js +80 -5
- package/dist/components/calcite-table-cell/customElement.d.ts +5 -5
- package/dist/components/calcite-table-cell/customElement.js +3 -2
- package/dist/components/calcite-table-header/customElement.d.ts +7 -7
- package/dist/components/calcite-table-header/customElement.js +1 -1
- package/dist/components/calcite-table-row/customElement.js +26 -15
- package/dist/components/calcite-tabs/customElement.d.ts +6 -0
- package/dist/components/calcite-tabs/customElement.js +14 -8
- package/dist/components/calcite-text-area/customElement.d.ts +6 -10
- package/dist/components/calcite-text-area/customElement.js +1 -1
- package/dist/components/calcite-tile/customElement.d.ts +2 -2
- package/dist/components/calcite-time-picker/customElement.d.ts +15 -15
- package/dist/components/calcite-time-picker/customElement.js +4 -4
- package/dist/components/calcite-tooltip/customElement.d.ts +2 -4
- package/dist/components/calcite-tree-item/customElement.js +1 -1
- package/dist/controllers/useTime.d.ts +3 -0
- 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/loader.js +9 -9
- package/dist/types/lumina.d.ts +4 -4
- package/dist/types/preact.d.ts +4 -4
- package/dist/types/react.d.ts +4 -4
- package/dist/types/stencil.d.ts +4 -4
- package/dist/utils/date.d.ts +2 -2
- package/package.json +13 -10
- package/dist/cdn/2AZU4JLL.js +0 -2
- package/dist/cdn/2C57GVL7.js +0 -2
- package/dist/cdn/2RCOMSJ4.js +0 -2
- package/dist/cdn/3FH6QU7Y.js +0 -2
- package/dist/cdn/3GSXR65T.js +0 -2
- package/dist/cdn/43MK3FDM.js +0 -2
- package/dist/cdn/4C4FXK46.js +0 -2
- package/dist/cdn/4CHUXMKI.js +0 -2
- package/dist/cdn/5EY2EEDX.js +0 -2
- package/dist/cdn/5GA4KYR2.js +0 -2
- package/dist/cdn/5ISZFTOQ.js +0 -2
- package/dist/cdn/6WR7WF5X.js +0 -2
- package/dist/cdn/6ZDUL7DM.js +0 -2
- package/dist/cdn/7IOEAAJN.js +0 -2
- package/dist/cdn/7JMYJBWS.js +0 -2
- package/dist/cdn/A2QVKNTN.js +0 -2
- package/dist/cdn/AA7ZRB5K.js +0 -2
- package/dist/cdn/AI4EP5I7.js +0 -2
- package/dist/cdn/AO3S4HXU.js +0 -2
- package/dist/cdn/BETERP4W.js +0 -2
- package/dist/cdn/BUNBY5RM.js +0 -2
- package/dist/cdn/C4VPLSW7.js +0 -2
- package/dist/cdn/C7C55I5S.js +0 -2
- package/dist/cdn/CAWTUKNX.js +0 -2
- package/dist/cdn/CFFCEFZK.js +0 -2
- package/dist/cdn/CQ6NGNY6.js +0 -2
- package/dist/cdn/CYCLHZ3A.js +0 -2
- package/dist/cdn/D6PPMEQM.js +0 -2
- package/dist/cdn/DI3IXSN2.js +0 -2
- package/dist/cdn/DJIJFKYH.js +0 -2
- package/dist/cdn/E3RE3E2N.js +0 -2
- package/dist/cdn/EGQ75QVP.js +0 -2
- package/dist/cdn/ENNOBBY4.js +0 -2
- package/dist/cdn/EXXGZUR3.js +0 -2
- package/dist/cdn/F7AKW6A4.js +0 -2
- package/dist/cdn/FFUBSUZQ.js +0 -2
- package/dist/cdn/FLX6RAXY.js +0 -20
- package/dist/cdn/FVB2OZEH.js +0 -2
- package/dist/cdn/GBGFI7SS.js +0 -2
- package/dist/cdn/GGCO6DJE.js +0 -2
- package/dist/cdn/GLH6ZAVP.js +0 -2
- package/dist/cdn/GMY4OPXB.js +0 -2
- package/dist/cdn/GNF44UQG.js +0 -2
- package/dist/cdn/GOBJFJO6.js +0 -2
- package/dist/cdn/H2JTOLL2.js +0 -2
- package/dist/cdn/HBRGGPQS.js +0 -2
- package/dist/cdn/HKIP6O5B.js +0 -2
- package/dist/cdn/I2ZCMXRB.js +0 -2
- package/dist/cdn/IJZH5BV3.js +0 -2
- package/dist/cdn/J32XKCXC.js +0 -2
- package/dist/cdn/JL5V6LHI.js +0 -2
- package/dist/cdn/JQVKQIWK.js +0 -2
- package/dist/cdn/JW2SKWED.js +0 -2
- package/dist/cdn/JZCXLE2H.js +0 -2
- package/dist/cdn/KQ322MPA.js +0 -2
- package/dist/cdn/KVWHPPP5.js +0 -2
- package/dist/cdn/KZUHKTIQ.js +0 -2
- package/dist/cdn/LJJZC4QK.js +0 -2
- package/dist/cdn/LKEGNPWV.js +0 -2
- package/dist/cdn/LRPJV2DQ.js +0 -2
- package/dist/cdn/LVF7G7IY.js +0 -2
- package/dist/cdn/LZDIBXYZ.js +0 -2
- package/dist/cdn/MNBJJORH.js +0 -2
- package/dist/cdn/MSB35HIA.js +0 -2
- package/dist/cdn/N7DI6G6M.js +0 -2
- package/dist/cdn/OGWGMCYY.js +0 -2
- package/dist/cdn/OLCC5YK5.js +0 -2
- package/dist/cdn/OQY72DXY.js +0 -2
- package/dist/cdn/OTKKHBLB.js +0 -2
- package/dist/cdn/PO4GQAOO.js +0 -3
- package/dist/cdn/PYEU7ILW.js +0 -2
- package/dist/cdn/QNSEEZF5.js +0 -2
- package/dist/cdn/QVYX2WRU.js +0 -2
- package/dist/cdn/QXIJOBKX.js +0 -2
- package/dist/cdn/R2DOA2MN.js +0 -2
- package/dist/cdn/RC3UVUK3.js +0 -2
- package/dist/cdn/RE4YAX46.js +0 -2
- package/dist/cdn/RQVOT4ZO.js +0 -2
- package/dist/cdn/RXXRSLAB.js +0 -2
- package/dist/cdn/SU44IFYE.js +0 -2
- package/dist/cdn/SVEPQ765.js +0 -2
- package/dist/cdn/SVIANZ3V.js +0 -2
- package/dist/cdn/T5VR3PV2.js +0 -2
- package/dist/cdn/TD2P54UR.js +0 -2
- package/dist/cdn/TDOPUO3L.js +0 -2
- package/dist/cdn/TEGKHQ5W.js +0 -2
- package/dist/cdn/TJC3KPVJ.js +0 -2
- package/dist/cdn/TWT5XRCW.js +0 -2
- package/dist/cdn/U2RL2HER.js +0 -2
- package/dist/cdn/V3ADMKIU.js +0 -2
- package/dist/cdn/W5TTJ4T3.js +0 -2
- package/dist/cdn/W6UFYWVG.js +0 -2
- package/dist/cdn/W7BKEQCB.js +0 -2
- package/dist/cdn/W7DJIM2F.js +0 -2
- package/dist/cdn/XNAMWMN5.js +0 -2
- package/dist/cdn/XZJNPGQT.js +0 -2
- package/dist/cdn/Y3U2N2BQ.js +0 -2
- package/dist/cdn/YAQRXHHQ.js +0 -2
- package/dist/cdn/YYGQFOZ7.js +0 -2
- package/dist/cdn/ZLOMPF4H.js +0 -2
package/dist/chunks/useTime.js
CHANGED
|
@@ -55,9 +55,10 @@ function formatTimePart(number, minLength) {
|
|
|
55
55
|
if (number >= 10) {
|
|
56
56
|
return numberAsString;
|
|
57
57
|
}
|
|
58
|
+
return;
|
|
58
59
|
}
|
|
59
60
|
function fractionalSecondPartToMilliseconds(fractionalSecondPart) {
|
|
60
|
-
return parseInt((parseFloat(`0.${fractionalSecondPart}`) / 1e-3).toFixed(3));
|
|
61
|
+
return parseInt((parseFloat(`0.${fractionalSecondPart}`) / 1e-3).toFixed(3), 10);
|
|
61
62
|
}
|
|
62
63
|
function getLocaleHourFormat(locale) {
|
|
63
64
|
const options = { locale };
|
|
@@ -166,7 +167,7 @@ function getMeridiem(hour) {
|
|
|
166
167
|
if (!isValidNumber(hour)) {
|
|
167
168
|
return null;
|
|
168
169
|
}
|
|
169
|
-
const hourAsNumber = parseInt(hour);
|
|
170
|
+
const hourAsNumber = parseInt(hour, 10);
|
|
170
171
|
return hourAsNumber >= 0 && hourAsNumber <= 11 ? "AM" : "PM";
|
|
171
172
|
}
|
|
172
173
|
function getMeridiemOrder(locale) {
|
|
@@ -195,9 +196,9 @@ function isValidTime(value) {
|
|
|
195
196
|
if (!hour || !minute) {
|
|
196
197
|
return false;
|
|
197
198
|
}
|
|
198
|
-
const hourAsNumber = parseInt(hour);
|
|
199
|
-
const minuteAsNumber = parseInt(minute);
|
|
200
|
-
const secondAsNumber = parseInt(second ?? "");
|
|
199
|
+
const hourAsNumber = parseInt(hour, 10);
|
|
200
|
+
const minuteAsNumber = parseInt(minute, 10);
|
|
201
|
+
const secondAsNumber = parseInt(second ?? "", 10);
|
|
201
202
|
const hourValid = isValidNumber(hour) && hourAsNumber >= 0 && hourAsNumber < 24;
|
|
202
203
|
const minuteValid = isValidNumber(minute) && minuteAsNumber >= 0 && minuteAsNumber < 60;
|
|
203
204
|
const secondValid = isValidNumber(second) && secondAsNumber >= 0 && secondAsNumber < 60;
|
|
@@ -243,7 +244,7 @@ function localizeTimePart({
|
|
|
243
244
|
numberingSystem
|
|
244
245
|
};
|
|
245
246
|
const localizedZero = numberStringFormatter.localize("0");
|
|
246
|
-
if (parseInt(value) === 0) {
|
|
247
|
+
if (parseInt(value, 10) === 0) {
|
|
247
248
|
localizedFractionalSecond = "".padStart(value.length, localizedZero);
|
|
248
249
|
} else {
|
|
249
250
|
localizedFractionalSecond = numberStringFormatter.localize(`0.${value}`).replace(`${localizedZero}${localizedDecimalSeparator}`, "");
|
|
@@ -254,7 +255,7 @@ function localizeTimePart({
|
|
|
254
255
|
}
|
|
255
256
|
return localizedFractionalSecond;
|
|
256
257
|
}
|
|
257
|
-
const valueAsNumber = parseInt(value);
|
|
258
|
+
const valueAsNumber = parseInt(value, 10);
|
|
258
259
|
const date = new Date(
|
|
259
260
|
Date.UTC(
|
|
260
261
|
0,
|
|
@@ -291,9 +292,9 @@ function localizeTimeString({
|
|
|
291
292
|
0,
|
|
292
293
|
0,
|
|
293
294
|
0,
|
|
294
|
-
parseInt(hour),
|
|
295
|
-
parseInt(minute),
|
|
296
|
-
includeSeconds && typeof second === "string" ? parseInt(second) : 0,
|
|
295
|
+
parseInt(hour, 10),
|
|
296
|
+
parseInt(minute, 10),
|
|
297
|
+
includeSeconds && typeof second === "string" ? parseInt(second, 10) : 0,
|
|
297
298
|
includeSeconds && fractionalSecond ? fractionalSecondPartToMilliseconds(fractionalSecond) : 0
|
|
298
299
|
)
|
|
299
300
|
);
|
|
@@ -381,9 +382,9 @@ function toISOTimeString(value, step = 60) {
|
|
|
381
382
|
fractionalSecond = value.fractionalSecond;
|
|
382
383
|
}
|
|
383
384
|
if (hour && minute) {
|
|
384
|
-
isoTimeString = `${formatTimePart(parseInt(hour))}:${formatTimePart(parseInt(minute))}`;
|
|
385
|
+
isoTimeString = `${formatTimePart(parseInt(hour, 10))}:${formatTimePart(parseInt(minute, 10))}`;
|
|
385
386
|
if (step < 60) {
|
|
386
|
-
isoTimeString += `:${formatTimePart(parseInt(second || "0"))}`;
|
|
387
|
+
isoTimeString += `:${formatTimePart(parseInt(second || "0", 10))}`;
|
|
387
388
|
if (step < 1) {
|
|
388
389
|
isoTimeString += `.${formatFractionalSecond(fractionalSecond || "0", step)}`;
|
|
389
390
|
}
|
|
@@ -399,7 +400,7 @@ class TimeController extends GenericController {
|
|
|
399
400
|
this.handleHourKeyDownEvent = (event) => {
|
|
400
401
|
const key = event.key;
|
|
401
402
|
if (numberKeys.includes(key)) {
|
|
402
|
-
const keyAsNumber = parseInt(key);
|
|
403
|
+
const keyAsNumber = parseInt(key, 10);
|
|
403
404
|
let newHour;
|
|
404
405
|
if (isValidNumber(this.hour)) {
|
|
405
406
|
switch (this.hourFormat) {
|
|
@@ -445,10 +446,10 @@ class TimeController extends GenericController {
|
|
|
445
446
|
this.handleMinuteKeyDownEvent = (event) => {
|
|
446
447
|
const key = event.key;
|
|
447
448
|
if (numberKeys.includes(key)) {
|
|
448
|
-
const keyAsNumber = parseInt(key);
|
|
449
|
+
const keyAsNumber = parseInt(key, 10);
|
|
449
450
|
let newMinute;
|
|
450
451
|
if (typeof this.minute === "string" && isValidNumber(this.minute) && this.minute.startsWith("0")) {
|
|
451
|
-
const minuteAsNumber = parseInt(this.minute);
|
|
452
|
+
const minuteAsNumber = parseInt(this.minute, 10);
|
|
452
453
|
newMinute = minuteAsNumber > maxTenthForMinuteAndSecond ? keyAsNumber : `${minuteAsNumber}${keyAsNumber}`;
|
|
453
454
|
} else {
|
|
454
455
|
newMinute = keyAsNumber;
|
|
@@ -479,10 +480,10 @@ class TimeController extends GenericController {
|
|
|
479
480
|
this.handleSecondKeyDownEvent = (event) => {
|
|
480
481
|
const key = event.key;
|
|
481
482
|
if (numberKeys.includes(key)) {
|
|
482
|
-
const keyAsNumber = parseInt(key);
|
|
483
|
+
const keyAsNumber = parseInt(key, 10);
|
|
483
484
|
let newSecond;
|
|
484
485
|
if (typeof this.second === "string" && isValidNumber(this.second) && this.second.startsWith("0")) {
|
|
485
|
-
const secondAsNumber = parseInt(this.second);
|
|
486
|
+
const secondAsNumber = parseInt(this.second, 10);
|
|
486
487
|
newSecond = secondAsNumber > maxTenthForMinuteAndSecond ? keyAsNumber : `${secondAsNumber}${keyAsNumber}`;
|
|
487
488
|
} else {
|
|
488
489
|
newSecond = keyAsNumber;
|
|
@@ -514,7 +515,7 @@ class TimeController extends GenericController {
|
|
|
514
515
|
const { key } = event;
|
|
515
516
|
if (numberKeys.includes(key)) {
|
|
516
517
|
const stepPrecision = decimalPlaces(this.component.step);
|
|
517
|
-
const fractionalSecondAsInteger = parseInt(this.fractionalSecond);
|
|
518
|
+
const fractionalSecondAsInteger = parseInt(this.fractionalSecond, 10);
|
|
518
519
|
const fractionalSecondAsIntegerLength = fractionalSecondAsInteger.toString().length;
|
|
519
520
|
let newFractionalSecondAsIntegerString;
|
|
520
521
|
if (fractionalSecondAsIntegerLength >= stepPrecision) {
|
|
@@ -573,10 +574,13 @@ class TimeController extends GenericController {
|
|
|
573
574
|
};
|
|
574
575
|
this.calciteTimeChange = createEvent();
|
|
575
576
|
}
|
|
577
|
+
get hasValue() {
|
|
578
|
+
return Boolean(this?.hour || this?.minute || this?.second || this?.fractionalSecond || this?.meridiem);
|
|
579
|
+
}
|
|
576
580
|
//#endregion
|
|
577
581
|
//#region Public Methods
|
|
578
582
|
decrementHour() {
|
|
579
|
-
const newHour = !this.hour ? 0 : this.hour === "00" ? 23 : parseInt(this.hour) - 1;
|
|
583
|
+
const newHour = !this.hour ? 0 : this.hour === "00" ? 23 : parseInt(this.hour, 10) - 1;
|
|
580
584
|
this.setValuePart("hour", newHour);
|
|
581
585
|
}
|
|
582
586
|
decrementMinute() {
|
|
@@ -586,7 +590,7 @@ class TimeController extends GenericController {
|
|
|
586
590
|
this.decrementMinuteOrSecond("second");
|
|
587
591
|
}
|
|
588
592
|
incrementHour() {
|
|
589
|
-
const newHour = typeof this.hour === "string" && isValidNumber(this.hour) ? this.hour === "23" ? 0 : parseInt(this.hour) + 1 : 1;
|
|
593
|
+
const newHour = typeof this.hour === "string" && isValidNumber(this.hour) ? this.hour === "23" ? 0 : parseInt(this.hour, 10) + 1 : 1;
|
|
590
594
|
this.setValuePart("hour", newHour);
|
|
591
595
|
}
|
|
592
596
|
incrementMinute() {
|
|
@@ -598,7 +602,7 @@ class TimeController extends GenericController {
|
|
|
598
602
|
nudgeFractionalSecond(direction) {
|
|
599
603
|
const stepDecimal = getDecimals(this.component.step);
|
|
600
604
|
const stepPrecision = decimalPlaces(this.component.step);
|
|
601
|
-
const fractionalSecondAsInteger = parseInt(this.fractionalSecond);
|
|
605
|
+
const fractionalSecondAsInteger = parseInt(this.fractionalSecond, 10);
|
|
602
606
|
const fractionalSecondAsFloat = parseFloat(`0.${this.fractionalSecond}`);
|
|
603
607
|
let nudgedValue;
|
|
604
608
|
let nudgedValueRounded;
|
|
@@ -671,7 +675,7 @@ class TimeController extends GenericController {
|
|
|
671
675
|
decrementMinuteOrSecond(key) {
|
|
672
676
|
let newValue;
|
|
673
677
|
if (isValidNumber(this[key])) {
|
|
674
|
-
const valueAsNumber = parseInt(this[key]);
|
|
678
|
+
const valueAsNumber = parseInt(this[key], 10);
|
|
675
679
|
newValue = valueAsNumber === 0 ? 59 : valueAsNumber - 1;
|
|
676
680
|
} else {
|
|
677
681
|
newValue = 59;
|
|
@@ -679,7 +683,7 @@ class TimeController extends GenericController {
|
|
|
679
683
|
this.setValuePart(key, newValue);
|
|
680
684
|
}
|
|
681
685
|
incrementMinuteOrSecond(key) {
|
|
682
|
-
const newValue = isValidNumber(this[key]) ? this[key] === "59" ? 0 : parseInt(this[key]) + 1 : 0;
|
|
686
|
+
const newValue = isValidNumber(this[key]) ? this[key] === "59" ? 0 : parseInt(this[key], 10) + 1 : 0;
|
|
683
687
|
this.setValuePart(key, newValue);
|
|
684
688
|
}
|
|
685
689
|
setHourFormat() {
|
|
@@ -775,7 +779,7 @@ class TimeController extends GenericController {
|
|
|
775
779
|
value: this.meridiem
|
|
776
780
|
});
|
|
777
781
|
if (isValidNumber(this.hour)) {
|
|
778
|
-
const hourAsNumber = parseInt(this.hour);
|
|
782
|
+
const hourAsNumber = parseInt(this.hour, 10);
|
|
779
783
|
switch (value) {
|
|
780
784
|
case "AM":
|
|
781
785
|
if (hourAsNumber >= 12) {
|
package/dist/chunks/utils.js
CHANGED
|
@@ -53,7 +53,7 @@ const OPACITY_LIMITS = {
|
|
|
53
53
|
};
|
|
54
54
|
const STATIC_DIMENSIONS = {
|
|
55
55
|
s: {
|
|
56
|
-
gap: parseInt(calciteSpacingFixedSm),
|
|
56
|
+
gap: parseInt(calciteSpacingFixedSm, 10),
|
|
57
57
|
slider: {
|
|
58
58
|
height: 12
|
|
59
59
|
},
|
|
@@ -66,7 +66,7 @@ const STATIC_DIMENSIONS = {
|
|
|
66
66
|
minWidth: 200
|
|
67
67
|
},
|
|
68
68
|
m: {
|
|
69
|
-
gap: parseInt(calciteSpacingFixedMd),
|
|
69
|
+
gap: parseInt(calciteSpacingFixedMd, 10),
|
|
70
70
|
slider: {
|
|
71
71
|
height: 12
|
|
72
72
|
},
|
|
@@ -79,7 +79,7 @@ const STATIC_DIMENSIONS = {
|
|
|
79
79
|
minWidth: 240
|
|
80
80
|
},
|
|
81
81
|
l: {
|
|
82
|
-
gap: parseInt(calciteSpacingFixedXl),
|
|
82
|
+
gap: parseInt(calciteSpacingFixedXl, 10),
|
|
83
83
|
slider: {
|
|
84
84
|
height: 12
|
|
85
85
|
},
|
package/dist/chunks/utils2.js
CHANGED
|
@@ -47,12 +47,65 @@ function isSingleLike(selectionMode) {
|
|
|
47
47
|
function getLabel(item) {
|
|
48
48
|
return item.shortHeading || item.heading;
|
|
49
49
|
}
|
|
50
|
+
function orderByPrevious(items, previousItems) {
|
|
51
|
+
if (items.length < 2 || previousItems.length === 0) {
|
|
52
|
+
return items;
|
|
53
|
+
}
|
|
54
|
+
const previousItemOrder = new Map(previousItems.map((item, index) => [item, index]));
|
|
55
|
+
return [...items].sort((a, b) => {
|
|
56
|
+
const aOrder = previousItemOrder.get(a);
|
|
57
|
+
const bOrder = previousItemOrder.get(b);
|
|
58
|
+
if (aOrder !== void 0 && bOrder !== void 0) {
|
|
59
|
+
return aOrder - bOrder;
|
|
60
|
+
}
|
|
61
|
+
if (aOrder !== void 0) {
|
|
62
|
+
return -1;
|
|
63
|
+
}
|
|
64
|
+
if (bOrder !== void 0) {
|
|
65
|
+
return 1;
|
|
66
|
+
}
|
|
67
|
+
return 0;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function consumeValue(counts, value) {
|
|
71
|
+
const count = counts.get(value) ?? 0;
|
|
72
|
+
if (count === 0) {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
if (count === 1) {
|
|
76
|
+
counts.delete(value);
|
|
77
|
+
} else {
|
|
78
|
+
counts.set(value, count - 1);
|
|
79
|
+
}
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
function orderValuesByPrevious(selectedValues, previousValues) {
|
|
83
|
+
if (selectedValues.length < 2 || previousValues.length === 0) {
|
|
84
|
+
return selectedValues;
|
|
85
|
+
}
|
|
86
|
+
const selectedValueCounts = /* @__PURE__ */ new Map();
|
|
87
|
+
selectedValues.forEach((value) => {
|
|
88
|
+
selectedValueCounts.set(value, (selectedValueCounts.get(value) ?? 0) + 1);
|
|
89
|
+
});
|
|
90
|
+
const orderedSelectedValues = previousValues.filter((value) => consumeValue(selectedValueCounts, value));
|
|
91
|
+
if (orderedSelectedValues.length === 0) {
|
|
92
|
+
return selectedValues;
|
|
93
|
+
}
|
|
94
|
+
selectedValues.forEach((value) => {
|
|
95
|
+
if (consumeValue(selectedValueCounts, value)) {
|
|
96
|
+
orderedSelectedValues.push(value);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
return orderedSelectedValues;
|
|
100
|
+
}
|
|
50
101
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
102
|
+
orderByPrevious as a,
|
|
103
|
+
getItemAncestors as b,
|
|
104
|
+
getItemChildren as c,
|
|
105
|
+
getAncestors as d,
|
|
106
|
+
getDepth as e,
|
|
55
107
|
getLabel as g,
|
|
56
108
|
hasActiveChildren as h,
|
|
57
|
-
isSingleLike as i
|
|
109
|
+
isSingleLike as i,
|
|
110
|
+
orderValuesByPrevious as o
|
|
58
111
|
};
|
package/dist/chunks/utils3.js
CHANGED
|
@@ -62,7 +62,7 @@ function getSource(changes, stringProp, dateProp) {
|
|
|
62
62
|
if (datePropChanged && !stringPropChanged) {
|
|
63
63
|
return dateProp;
|
|
64
64
|
}
|
|
65
|
-
return
|
|
65
|
+
return void 0;
|
|
66
66
|
}
|
|
67
67
|
function getMinMaxSource(changes, type) {
|
|
68
68
|
return type === "min" ? getSource(changes, "min", "minAsDate") : getSource(changes, "max", "maxAsDate");
|
|
@@ -50,8 +50,8 @@ export abstract class AccordionItem extends LitElement {
|
|
|
50
50
|
accessor iconStart: IconName | undefined;
|
|
51
51
|
/** Overrides individual strings used by the component. */
|
|
52
52
|
accessor messageOverrides: {
|
|
53
|
-
collapse?: string;
|
|
54
|
-
expand?: string;
|
|
53
|
+
collapse?: string | undefined;
|
|
54
|
+
expand?: string | undefined;
|
|
55
55
|
};
|
|
56
56
|
/**
|
|
57
57
|
* Sets focus on the component.
|
|
@@ -17,6 +17,7 @@ import type { IconName } from "../calcite-icon/interfaces.js";
|
|
|
17
17
|
* @cssproperty [--calcite-action-text-color-press] - Specifies the component's text color when pressed or hovered.
|
|
18
18
|
* @cssproperty [--calcite-action-text-color-pressed] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-action-text-color-press` instead. Specifies the component's text color when hovered.
|
|
19
19
|
* @cssproperty [--calcite-action-text-color] - Specifies the component's text color.
|
|
20
|
+
* @cssproperty [--calcite-action-loader-color] - Specifies the component's loader color.
|
|
20
21
|
* @slot - A slot for adding non-interactive content, such as a `calcite-icon`.
|
|
21
22
|
*/
|
|
22
23
|
export abstract class Action extends LitElement {
|
|
@@ -50,11 +51,7 @@ export abstract class Action extends LitElement {
|
|
|
50
51
|
* @default false
|
|
51
52
|
*/
|
|
52
53
|
accessor disabled: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Specifies the `id` of the component's associated form.
|
|
55
|
-
*
|
|
56
|
-
* When not set, the component is associated with its ancestor form element, if one exists.
|
|
57
|
-
*/
|
|
54
|
+
/** Specifies the `id` of the component's associated form. When not set, the component is associated with its ancestor form element, if one exists. */
|
|
58
55
|
accessor form: string | undefined;
|
|
59
56
|
/** Specifies an icon to display. */
|
|
60
57
|
accessor icon: IconName | undefined;
|
|
@@ -80,9 +77,9 @@ export abstract class Action extends LitElement {
|
|
|
80
77
|
accessor loading: boolean;
|
|
81
78
|
/** Overrides individual strings used by the component. */
|
|
82
79
|
accessor messageOverrides: {
|
|
83
|
-
loading?: string;
|
|
84
|
-
indicator?: string;
|
|
85
|
-
indicatorLabel?: string;
|
|
80
|
+
loading?: string | undefined;
|
|
81
|
+
indicator?: string | undefined;
|
|
82
|
+
indicatorLabel?: string | undefined;
|
|
86
83
|
};
|
|
87
84
|
/**
|
|
88
85
|
* When `true`, the component is not automatically overflowed into a menu by a parent `calcite-action-bar`.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as customElement } from "../../chunks/runtime.js";
|
|
2
|
+
import { C as CSS_UTILITY, c as customElement } from "../../chunks/runtime.js";
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { keyed } from "lit/directives/keyed.js";
|
|
5
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
@@ -12,7 +12,8 @@ import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
|
12
12
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
13
13
|
import { u as useFormTrigger } from "../../chunks/useFormTrigger.js";
|
|
14
14
|
import { I as IDS, C as CSS } from "../../chunks/resources.js";
|
|
15
|
-
const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-internal-action-font-size: var(--calcite-font-size--2);--calcite-internal-action-min-height: var(--calcite-size-sm);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-spacing-xxs)}:host([scale=m]){--calcite-internal-action-font-size: var(--calcite-font-size--1);--calcite-internal-action-min-height: var(--calcite-size-md);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-spacing-sm)}:host([scale=l]){--calcite-internal-action-font-size: var(--calcite-font-size-0);--calcite-internal-action-min-height: var(--calcite-size-lg);--calcite-internal-action-line-height: 1.25rem;--calcite-internal-action-spacing: var(--calcite-spacing-sm-plus)}:host{display:flex;cursor:pointer;background-color:transparent;--calcite-internal-action-text-color: var(--calcite-color-text-3);border-radius:var(--calcite-action-corner-radius, var(--calcite-action-corner-radius-start-start, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-start-end, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-end-end, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-end-start, var(--calcite-corner-radius-xs)))}.interaction-container{border-radius:inherit}:host([width=full]){flex:1 0 auto}:host([width=full]) .button{justify-content:center}:host([width=full]) .button .text-container--visible{flex:none}:host([drag-handle]){cursor:move;--calcite-internal-action-text-color: var(--calcite-color-border-input);--calcite-internal-action-padding-inline: var(--calcite-spacing-xxs)}.button{position:relative;margin:0;display:flex;inline-size:auto;align-items:center;justify-content:flex-start;border-style:none;outline-color:transparent;box-sizing:border-box;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));border-radius:inherit;color:var(--calcite-action-text-color, var(--calcite-internal-action-text-color));cursor:inherit;flex:1 0 auto;font-family:inherit;font-size:var(--calcite-internal-action-font-size);font-weight:var(--calcite-font-weight-normal);line-height:var(--calcite-internal-action-line-height);min-block-size:var(--calcite-internal-action-height, var(--calcite-internal-action-min-height));max-block-size:var(--calcite-internal-action-height, none);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-internal-action-spacing));padding-inline:var(--calcite-internal-action-padding-inline, var(--calcite-internal-action-spacing));text-align:start}.button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}.button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}.button--text-visible{gap:var(--calcite-internal-action-spacing);inline-size:100%}.icon-container{pointer-events:none;margin:0;display:flex;align-items:center;justify-content:center}.text-container{margin:0;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:0;transition-property:opacity;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:inline-size}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([active]) .button{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-3));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}:host([active]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-3))}:host([active]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) calcite-loader[inline]{margin-inline-end:0px}:host([appearance=transparent]):host([active]) .button{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-transparent-press)))}:host([appearance=transparent]) .button{transition-property:box-shadow;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);background-color:var(--calcite-action-background-color, var(--calcite-color-transparent))}:host([appearance=transparent]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-transparent-hover))}:host([appearance=transparent]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-transparent-press)))}:host([selection-appearance=highlight]):host([active]) .button{background-color:var(--calcite-color-surface-highlight);color:var(--calcite-color-text-highlight)}:host([active-descendant]) .button{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.indicator-with-icon{position:relative}.indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:.25rem;inline-size:1rem;position:relative}.indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}:host([scale=s]) .indicator-with-icon{position:relative}:host([scale=s]) .indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.125rem;inset-inline-end:-.125rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}:host([scale=s]) .indicator-without-icon{position:relative}:host([scale=s]) .indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.175rem;inset-inline-end:-.175rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}
|
|
15
|
+
const styles$1 = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-internal-action-font-size: var(--calcite-font-size--2);--calcite-internal-action-min-height: var(--calcite-size-sm);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-spacing-xxs)}:host([scale=m]){--calcite-internal-action-font-size: var(--calcite-font-size--1);--calcite-internal-action-min-height: var(--calcite-size-md);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-spacing-sm)}:host([scale=l]){--calcite-internal-action-font-size: var(--calcite-font-size-0);--calcite-internal-action-min-height: var(--calcite-size-lg);--calcite-internal-action-line-height: 1.25rem;--calcite-internal-action-spacing: var(--calcite-spacing-sm-plus)}:host{display:flex;cursor:pointer;background-color:transparent;--calcite-internal-action-text-color: var(--calcite-color-text-3);border-radius:var(--calcite-action-corner-radius, var(--calcite-action-corner-radius-start-start, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-start-end, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-end-end, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-end-start, var(--calcite-corner-radius-xs)))}.interaction-container{border-radius:inherit}:host([width=full]){flex:1 0 auto}:host([width=full]) .button{justify-content:center}:host([width=full]) .button .text-container--visible{flex:none}:host([drag-handle]){cursor:move;--calcite-internal-action-text-color: var(--calcite-color-border-input);--calcite-internal-action-padding-inline: var(--calcite-spacing-xxs)}.button{position:relative;margin:0;display:flex;inline-size:auto;align-items:center;justify-content:flex-start;border-style:none;outline-color:transparent;box-sizing:border-box;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));border-radius:inherit;color:var(--calcite-action-text-color, var(--calcite-internal-action-text-color));cursor:inherit;flex:1 0 auto;font-family:inherit;font-size:var(--calcite-internal-action-font-size);font-weight:var(--calcite-font-weight-normal);line-height:var(--calcite-internal-action-line-height);min-block-size:var(--calcite-internal-action-height, var(--calcite-internal-action-min-height));max-block-size:var(--calcite-internal-action-height, none);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-internal-action-spacing));padding-inline:var(--calcite-internal-action-padding-inline, var(--calcite-internal-action-spacing));text-align:start}.button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}.button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}.button--text-visible{gap:var(--calcite-internal-action-spacing);inline-size:100%}.icon-container{pointer-events:none;margin:0;display:flex;align-items:center;justify-content:center}.text-container{margin:0;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:0;transition-property:opacity;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:inline-size}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([active]) .button{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-3));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}:host([active]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-3))}:host([active]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) calcite-loader[inline]{margin-inline-end:0px;--calcite-loader-progress-color-inline: var(--calcite-action-loader-color)}:host([appearance=transparent]):host([active]) .button{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-transparent-press)))}:host([appearance=transparent]) .button{transition-property:box-shadow;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);background-color:var(--calcite-action-background-color, var(--calcite-color-transparent))}:host([appearance=transparent]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-transparent-hover))}:host([appearance=transparent]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-transparent-press)))}:host([selection-appearance=highlight]):host([active]) .button{background-color:var(--calcite-color-surface-highlight);color:var(--calcite-color-text-highlight)}:host([active-descendant]) .button{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.indicator-with-icon{position:relative}.indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:.25rem;inline-size:1rem;position:relative}.indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}:host([scale=s]) .indicator-with-icon{position:relative}:host([scale=s]) .indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.125rem;inset-inline-end:-.125rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}:host([scale=s]) .indicator-without-icon{position:relative}:host([scale=s]) .indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.175rem;inset-inline-end:-.175rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`;
|
|
16
|
+
const styles = css`.screen-reader-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}`;
|
|
16
17
|
class Action extends LitElement {
|
|
17
18
|
constructor() {
|
|
18
19
|
super(...arguments);
|
|
@@ -25,6 +26,7 @@ class Action extends LitElement {
|
|
|
25
26
|
this.indicatorRef = createRef();
|
|
26
27
|
this.interactiveContainer = useInteractive(this);
|
|
27
28
|
this.formTrigger = useFormTrigger()(this);
|
|
29
|
+
this.labelElRef = createRef();
|
|
28
30
|
this.active = false;
|
|
29
31
|
this.activeDescendant = false;
|
|
30
32
|
this.appearance = "transparent";
|
|
@@ -47,7 +49,7 @@ class Action extends LitElement {
|
|
|
47
49
|
this.formAssociated = true;
|
|
48
50
|
}
|
|
49
51
|
static {
|
|
50
|
-
this.styles = styles;
|
|
52
|
+
this.styles = [styles$1, styles];
|
|
51
53
|
}
|
|
52
54
|
async setFocus(options) {
|
|
53
55
|
return this.focusSetter(() => this.buttonRef.value, options);
|
|
@@ -60,6 +62,17 @@ class Action extends LitElement {
|
|
|
60
62
|
super.disconnectedCallback();
|
|
61
63
|
this.mutationObserver?.disconnect();
|
|
62
64
|
}
|
|
65
|
+
getAccessibleLabel() {
|
|
66
|
+
const labelFallback = this.label || this.text || "";
|
|
67
|
+
return this.indicator ? this.messages.indicatorLabel.replace("{label}", labelFallback) : labelFallback;
|
|
68
|
+
}
|
|
69
|
+
getLabelledByElements() {
|
|
70
|
+
const labelledByElements = [
|
|
71
|
+
...this.labelElRef.value ? [this.labelElRef.value] : [],
|
|
72
|
+
...this.aria?.labelledByElements ?? []
|
|
73
|
+
];
|
|
74
|
+
return labelledByElements.length ? labelledByElements : void 0;
|
|
75
|
+
}
|
|
63
76
|
renderTextContainer() {
|
|
64
77
|
const { text, textEnabled } = this;
|
|
65
78
|
const textContainerClasses = {
|
|
@@ -70,7 +83,7 @@ class Action extends LitElement {
|
|
|
70
83
|
}
|
|
71
84
|
renderIndicatorText() {
|
|
72
85
|
const { indicator, messages, buttonId } = this;
|
|
73
|
-
return html`<div aria-labelledby=${buttonId ?? nothing} aria-live=polite class=${safeClassMap(
|
|
86
|
+
return html`<div aria-labelledby=${buttonId ?? nothing} aria-live=polite class=${safeClassMap(CSS_UTILITY.screenReaderText)} role=region ${ref(this.indicatorRef)}>${indicator ? messages.indicator : null}</div>`;
|
|
74
87
|
}
|
|
75
88
|
renderIconContainer() {
|
|
76
89
|
const { loading, icon, scale, el, iconFlipRtl, indicator } = this;
|
|
@@ -85,25 +98,28 @@ class Action extends LitElement {
|
|
|
85
98
|
})}><slot></slot></div>`;
|
|
86
99
|
return hasIconToDisplay ? keyed("icon-container", html`<div aria-hidden=true class=${safeClassMap(CSS.iconContainer)}>${iconNode}${slotContainerNode}</div>`) : null;
|
|
87
100
|
}
|
|
101
|
+
renderLabel() {
|
|
102
|
+
const ariaLabel = this.getAccessibleLabel();
|
|
103
|
+
return ariaLabel ? html`<span class=${safeClassMap(CSS_UTILITY.screenReaderText)} ${ref(this.labelElRef)}>${ariaLabel}</span>` : null;
|
|
104
|
+
}
|
|
88
105
|
renderButton() {
|
|
89
|
-
const { compact, disabled, icon, loading, textEnabled,
|
|
90
|
-
const
|
|
91
|
-
const ariaLabel = indicator ? messages.indicatorLabel.replace("{label}", labelFallback) : labelFallback;
|
|
106
|
+
const { compact, disabled, icon, loading, textEnabled, indicator, indicatorRef, buttonId } = this;
|
|
107
|
+
const ariaLabelledByElements = this.getLabelledByElements();
|
|
92
108
|
const buttonClasses = {
|
|
93
109
|
[CSS.button]: true,
|
|
94
110
|
[CSS.buttonTextVisible]: textEnabled,
|
|
95
111
|
[CSS.buttonCompact]: compact
|
|
96
112
|
};
|
|
97
|
-
const buttonContent = html`${this.renderIconContainer()}${this.renderTextContainer()}${!icon && indicator && keyed("indicator-no-icon", html`<div class=${safeClassMap(CSS.indicatorWithoutIcon)}></div>`) || ""}`;
|
|
113
|
+
const buttonContent = html`${this.renderIconContainer()}${this.renderTextContainer()}${!icon && indicator && keyed("indicator-no-icon", html`<div class=${safeClassMap(CSS.indicatorWithoutIcon)}></div>`) || ""}${this.renderLabel()}`;
|
|
98
114
|
const internalControlsElements = indicator && indicatorRef.value ? [indicatorRef.value] : [];
|
|
99
115
|
const ariaControlsElements = [
|
|
100
116
|
...this.aria?.controlsElements ?? [],
|
|
101
117
|
...internalControlsElements
|
|
102
118
|
];
|
|
103
119
|
if (this.dragHandle) {
|
|
104
|
-
return html`<span .ariaBusy=${loading} .ariaControlsElements=${ariaControlsElements} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .
|
|
120
|
+
return html`<span .ariaBusy=${loading} .ariaControlsElements=${ariaControlsElements} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabelledByElements=${ariaLabelledByElements} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${safeClassMap(buttonClasses)} id=${buttonId ?? nothing} role=button tabindex=${(this.disabled ? void 0 : 0) ?? nothing} ${ref(this.buttonRef)}>${buttonContent}</span>`;
|
|
105
121
|
}
|
|
106
|
-
return html`<button .ariaBusy=${loading} .ariaChecked=${this.aria?.checked} .ariaControlsElements=${ariaControlsElements} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .
|
|
122
|
+
return html`<button .ariaBusy=${loading} .ariaChecked=${this.aria?.checked} .ariaControlsElements=${ariaControlsElements} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabelledByElements=${ariaLabelledByElements} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${safeClassMap(buttonClasses)} .disabled=${disabled} id=${buttonId ?? nothing} .role=${this.aria?.role} type=${this.type ?? nothing} ${ref(this.buttonRef)}>${buttonContent}</button>`;
|
|
107
123
|
}
|
|
108
124
|
render() {
|
|
109
125
|
return this.interactiveContainer({ disabled: this.disabled, children: html`${this.renderButton()}${this.renderIndicatorText()}` });
|
|
@@ -52,10 +52,10 @@ export abstract class ActionBar extends LitElement {
|
|
|
52
52
|
accessor layout: Extract<"horizontal" | "vertical" | "grid", Layout>;
|
|
53
53
|
/** Overrides individual strings used by the component. */
|
|
54
54
|
accessor messageOverrides: {
|
|
55
|
-
expand?: string;
|
|
56
|
-
collapse?: string;
|
|
57
|
-
expandLabel?: string;
|
|
58
|
-
collapseLabel?: string;
|
|
55
|
+
expand?: string | undefined;
|
|
56
|
+
collapse?: string | undefined;
|
|
57
|
+
expandLabel?: string | undefined;
|
|
58
|
+
collapseLabel?: string | undefined;
|
|
59
59
|
};
|
|
60
60
|
/**
|
|
61
61
|
* When `true`, disables automatically overflowing `calcite-action`s that won't fit into menus.
|
|
@@ -32,7 +32,7 @@ export abstract class ActionGroup extends LitElement {
|
|
|
32
32
|
* @internal
|
|
33
33
|
*/
|
|
34
34
|
accessor layout: Extract<"horizontal" | "vertical" | "grid", Layout>;
|
|
35
|
-
/** Specifies the component's fallback `menuPlacement` when
|
|
35
|
+
/** Specifies the component's fallback `menuPlacement` when its initial or specified `menuPlacement` has insufficient space available. */
|
|
36
36
|
accessor menuFlipPlacements: FlipPlacement[] | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* When `true`, the `calcite-action-menu` is open.
|
|
@@ -43,7 +43,7 @@ export abstract class ActionGroup extends LitElement {
|
|
|
43
43
|
/** Specifies the position of the action menu. */
|
|
44
44
|
accessor menuPlacement: LogicalPlacement | undefined;
|
|
45
45
|
/** Overrides individual strings used by the component. */
|
|
46
|
-
accessor messageOverrides: { more?: string; };
|
|
46
|
+
accessor messageOverrides: { more?: string | undefined; };
|
|
47
47
|
/**
|
|
48
48
|
* When `true`, the component's actions will not be overflowed into a menu by a parent `calcite-action-bar`.
|
|
49
49
|
*
|
|
@@ -83,9 +83,7 @@ export abstract class ActionGroup extends LitElement {
|
|
|
83
83
|
*/
|
|
84
84
|
accessor selectionMode: Extract<"single" | "single-persist" | "multiple" | "none", SelectionMode>;
|
|
85
85
|
/**
|
|
86
|
-
* When `true` and the component is `open`, disables top layer placement.
|
|
87
|
-
*
|
|
88
|
-
* Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
|
|
86
|
+
* When `true` and the component is `open`, disables top layer placement. Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
|
|
89
87
|
*
|
|
90
88
|
* @default false
|
|
91
89
|
* @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
|
|
@@ -22,8 +22,8 @@ export abstract class ActionMenu extends LitElement {
|
|
|
22
22
|
* @default false
|
|
23
23
|
*/
|
|
24
24
|
accessor expanded: boolean;
|
|
25
|
-
/** Specifies the component's fallback `placement` for slotted content when
|
|
26
|
-
accessor flipPlacements: FlipPlacement[];
|
|
25
|
+
/** Specifies the component's fallback `placement` for slotted content when its initial or specified `placement` has insufficient space available. */
|
|
26
|
+
accessor flipPlacements: FlipPlacement[] | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* Specifies an accessible label for the component.
|
|
29
29
|
*
|
|
@@ -59,9 +59,7 @@ export abstract class ActionMenu extends LitElement {
|
|
|
59
59
|
*/
|
|
60
60
|
accessor scale: Scale;
|
|
61
61
|
/**
|
|
62
|
-
* When `true` and the component is `open`, disables top layer placement.
|
|
63
|
-
*
|
|
64
|
-
* Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
|
|
62
|
+
* When `true` and the component is `open`, disables top layer placement. Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
|
|
65
63
|
*
|
|
66
64
|
* @default false
|
|
67
65
|
* @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
|
|
@@ -177,7 +177,7 @@ class ActionMenu extends LitElement {
|
|
|
177
177
|
}
|
|
178
178
|
menuButtonEl.removeEventListener("click", this.menuButtonClick);
|
|
179
179
|
menuButtonEl.removeEventListener("keydown", this.menuButtonKeyDown);
|
|
180
|
-
this.menuButtonEl =
|
|
180
|
+
this.menuButtonEl = void 0;
|
|
181
181
|
}
|
|
182
182
|
setMenuButtonEl(event) {
|
|
183
183
|
const actions = event.target.assignedElements({
|
|
@@ -213,7 +213,7 @@ class ActionMenu extends LitElement {
|
|
|
213
213
|
setTooltipReferenceElement() {
|
|
214
214
|
const { tooltipEl, expanded, menuButtonEl, open } = this;
|
|
215
215
|
if (tooltipEl) {
|
|
216
|
-
tooltipEl.referenceElement = !expanded && !open ? menuButtonEl :
|
|
216
|
+
tooltipEl.referenceElement = !expanded && !open ? menuButtonEl : void 0;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
updateActions(actions) {
|
|
@@ -288,7 +288,7 @@ class ActionMenu extends LitElement {
|
|
|
288
288
|
const { actionElements, activeMenuItemIndex, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
|
|
289
289
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
290
290
|
const activeDescendantId = activeAction?.id || null;
|
|
291
|
-
return html`<calcite-popover auto-close .flipPlacements=${flipPlacements} focus-trap-disabled .label=${label} offset-distance=0 @calcitePopoverClose=${this.handlePopoverClose} @calcitePopoverOpen=${this.handlePopoverOpen} .overlayPositioning=${overlayPositioning} .placement=${placement} pointer-disabled .referenceElement=${menuButtonEl} .scale=${this.scale} .topLayerDisabled=${this.topLayerDisabled} trigger-disabled ${ref(this.setPopoverEl)}><div aria-activedescendant=${activeDescendantId ?? nothing} aria-labelledby=${menuButtonEl?.id ?? nothing} class=${safeClassMap(CSS.menu)} id=${menuId ?? nothing} @click=${this.handleCalciteActionClick} role=menu tabindex=-1><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></calcite-popover>`;
|
|
291
|
+
return html`<calcite-popover auto-close .flipPlacements=${flipPlacements} focus-trap-disabled .label=${label} offset-distance=0 @calcitePopoverClose=${this.handlePopoverClose} @calcitePopoverOpen=${this.handlePopoverOpen} .overlayPositioning=${overlayPositioning} .placement=${placement} pointer-disabled .referenceElement=${menuButtonEl} .scale=${this.scale} .topLayerDisabled=${this.topLayerDisabled} trigger-disabled ${ref(this.setPopoverEl)}><div aria-activedescendant=${activeDescendantId ?? void 0 ?? nothing} aria-labelledby=${menuButtonEl?.id ?? nothing} class=${safeClassMap(CSS.menu)} id=${menuId ?? nothing} @click=${this.handleCalciteActionClick} role=menu tabindex=-1><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></calcite-popover>`;
|
|
292
292
|
}
|
|
293
293
|
render() {
|
|
294
294
|
return html`${this.renderMenuButton()}${this.renderMenuItems()}<slot name=${SLOTS.tooltip} @slotchange=${this.updateTooltip}></slot>`;
|
|
@@ -34,10 +34,10 @@ export abstract class ActionPad extends LitElement {
|
|
|
34
34
|
accessor layout: Extract<"horizontal" | "vertical" | "grid", Layout>;
|
|
35
35
|
/** Overrides individual strings used by the component. */
|
|
36
36
|
accessor messageOverrides: {
|
|
37
|
-
expand?: string;
|
|
38
|
-
collapse?: string;
|
|
39
|
-
expandLabel?: string;
|
|
40
|
-
collapseLabel?: string;
|
|
37
|
+
expand?: string | undefined;
|
|
38
|
+
collapse?: string | undefined;
|
|
39
|
+
expandLabel?: string | undefined;
|
|
40
|
+
collapseLabel?: string | undefined;
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
43
|
* Specifies the type of positioning to use for overlaid content, where:
|
|
@@ -57,7 +57,7 @@ export abstract class Alert extends LitElement {
|
|
|
57
57
|
*/
|
|
58
58
|
accessor label: string;
|
|
59
59
|
/** Overrides individual strings used by the component. */
|
|
60
|
-
accessor messageOverrides: { close?: string; };
|
|
60
|
+
accessor messageOverrides: { close?: string | undefined; };
|
|
61
61
|
/** Specifies the Unicode numeral system used by the component for localization. */
|
|
62
62
|
accessor numberingSystem: NumberingSystem | undefined;
|
|
63
63
|
/**
|
|
@@ -85,9 +85,7 @@ export abstract class Alert extends LitElement {
|
|
|
85
85
|
*/
|
|
86
86
|
accessor scale: Scale;
|
|
87
87
|
/**
|
|
88
|
-
* When `true` and the component is `open`, disables top layer placement.
|
|
89
|
-
*
|
|
90
|
-
* Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
|
|
88
|
+
* When `true` and the component is `open`, disables top layer placement. Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
|
|
91
89
|
*
|
|
92
90
|
* @default false
|
|
93
91
|
* @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
|
|
@@ -53,13 +53,9 @@ export abstract class Autocomplete extends LitElement {
|
|
|
53
53
|
* @default false
|
|
54
54
|
*/
|
|
55
55
|
accessor disabled: boolean;
|
|
56
|
-
/** Specifies the component's fallback `placement` for slotted content when
|
|
56
|
+
/** Specifies the component's fallback `placement` for slotted content when its initial or specified `placement` has insufficient space available. */
|
|
57
57
|
accessor flipPlacements: FlipPlacement[] | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* Specifies the `id` of the component's associated form.
|
|
60
|
-
*
|
|
61
|
-
* When not set, the component is associated with its ancestor form element, if one exists.
|
|
62
|
-
*/
|
|
58
|
+
/** Specifies the `id` of the component's associated form. When not set, the component is associated with its ancestor form element, if one exists. */
|
|
63
59
|
accessor form: string | undefined;
|
|
64
60
|
/**
|
|
65
61
|
* When `true` or not set, shows a default recommended icon. Alternatively, pass a Calcite UI Icon name to display a specific icon.
|
|
@@ -94,9 +90,9 @@ export abstract class Autocomplete extends LitElement {
|
|
|
94
90
|
accessor maxLength: number | undefined;
|
|
95
91
|
/** Overrides individual strings used by the component. */
|
|
96
92
|
accessor messageOverrides: {
|
|
97
|
-
clear?: string;
|
|
98
|
-
loading?: string;
|
|
99
|
-
required?: string;
|
|
93
|
+
clear?: string | undefined;
|
|
94
|
+
loading?: string | undefined;
|
|
95
|
+
required?: string | undefined;
|
|
100
96
|
};
|
|
101
97
|
/**
|
|
102
98
|
* When the component resides in a form,
|
|
@@ -180,9 +176,7 @@ export abstract class Autocomplete extends LitElement {
|
|
|
180
176
|
/** Specifies the component's suffix text. */
|
|
181
177
|
accessor suffixText: string | undefined;
|
|
182
178
|
/**
|
|
183
|
-
* When `true` and the component is `open`, disables top layer placement.
|
|
184
|
-
*
|
|
185
|
-
* Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
|
|
179
|
+
* When `true` and the component is `open`, disables top layer placement. Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
|
|
186
180
|
*
|
|
187
181
|
* @default false
|
|
188
182
|
* @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
|
|
@@ -12,7 +12,7 @@ import type { IconName } from "../calcite-icon/interfaces.js";
|
|
|
12
12
|
* @slot [content-start] - A slot for adding non-actionable elements before content of the component.
|
|
13
13
|
*/
|
|
14
14
|
export abstract class AutocompleteItem extends LitElement {
|
|
15
|
-
/** Specifies a description for the component. Displays below the label
|
|
15
|
+
/** Specifies a description for the component. Displays below the `label`. */
|
|
16
16
|
accessor description: string | undefined;
|
|
17
17
|
/**
|
|
18
18
|
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|