@esri/calcite-components 5.2.0-next.1 → 5.2.0-next.11
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/{TX53ZOIB.js → 24X5JMHT.js} +1 -1
- package/dist/cdn/{MIR7TMZV.js → 2ELOLPNF.js} +1 -1
- package/dist/cdn/{54LRKMZS.js → 2JMH7LPC.js} +1 -1
- package/dist/cdn/2OKTIK5P.js +2 -0
- package/dist/cdn/{3IC622AE.js → 2XGJ3QNO.js} +1 -1
- package/dist/cdn/{TKWNZUZC.js → 3CRONO2H.js} +1 -1
- package/dist/cdn/3EZDLGBO.js +2 -0
- package/dist/cdn/{7MVJZ7CE.js → 3KCJ5OBV.js} +1 -1
- package/dist/cdn/3SETOU5V.js +2 -0
- package/dist/cdn/4RQ5ZGOF.js +2 -0
- package/dist/cdn/{PV5JONG7.js → 56KAPM6G.js} +1 -1
- package/dist/cdn/{AIWMELGE.js → 5CSHF46L.js} +1 -1
- package/dist/cdn/{PVLYFAFT.js → 5FLAJ7D2.js} +1 -1
- package/dist/cdn/5LW3L2G4.js +2 -0
- package/dist/cdn/{ACTWXLMU.js → 5LXXJ62H.js} +1 -1
- package/dist/cdn/{T64D27BK.js → 5PGOKPKX.js} +1 -1
- package/dist/cdn/{IMHBTKOK.js → 5U7ZVAAZ.js} +1 -1
- package/dist/cdn/{OMEUUIN3.js → 5XL7IT2K.js} +1 -1
- package/dist/cdn/{TUOZOBAX.js → 63DWPLOW.js} +1 -1
- package/dist/cdn/6AKAPCTR.js +2 -0
- package/dist/cdn/{GPZK2XCA.js → 6KINBEDD.js} +1 -1
- package/dist/cdn/6O3DEY2K.js +2 -0
- package/dist/cdn/{QJVQP6SA.js → 72B2PF6V.js} +1 -1
- package/dist/cdn/7LYEAGAV.js +2 -0
- package/dist/cdn/A7TDONQL.js +2 -0
- package/dist/cdn/{DOQVMLYE.js → ALEAEOVB.js} +1 -1
- package/dist/cdn/{H6TQ2ZT5.js → B2PYAAJV.js} +1 -1
- package/dist/cdn/BBQVPQKS.js +2 -0
- package/dist/cdn/BEE5ZZFY.js +2 -0
- package/dist/cdn/{XKLVTSH7.js → BEKZEU4I.js} +1 -1
- package/dist/cdn/BI6OUBR4.js +2 -0
- package/dist/cdn/{JFBAD4EH.js → BLRDFO6X.js} +1 -1
- package/dist/cdn/BPA5EXVV.js +2 -0
- package/dist/cdn/BYHIBMOX.js +2 -0
- package/dist/cdn/{F5S74A6J.js → C2UEEF3A.js} +1 -1
- package/dist/cdn/{3F6G62ML.js → CDIHWTXQ.js} +1 -1
- package/dist/cdn/{YLSRMNDL.js → CJD35UKW.js} +1 -1
- package/dist/cdn/{6SJDD32D.js → CJQSJSTS.js} +1 -1
- package/dist/cdn/{V4N6LLPL.js → CN3GE6PT.js} +1 -1
- package/dist/cdn/{XVA6JBXQ.js → D7RBRMCT.js} +1 -1
- package/dist/cdn/{5B3SU7K7.js → DA2XHTL4.js} +1 -1
- package/dist/cdn/DEFKYCLD.js +20 -0
- package/dist/cdn/DPGSR54A.js +2 -0
- package/dist/cdn/{ASL35FGE.js → DQWH6U7F.js} +1 -1
- package/dist/cdn/{AWONW44Y.js → DZQK7XAU.js} +1 -1
- package/dist/cdn/{4ETK64XH.js → EAFCYLPB.js} +1 -1
- package/dist/cdn/EC7ULGFR.js +2 -0
- package/dist/cdn/{3274MQBE.js → EJEEDORY.js} +1 -1
- package/dist/cdn/{2QRPMWMD.js → EJWFQHC3.js} +1 -1
- package/dist/cdn/EWSBPNQJ.js +2 -0
- package/dist/cdn/F6ACIE2U.js +2 -0
- package/dist/cdn/{UTYK5GN7.js → FB57TK7N.js} +1 -1
- package/dist/cdn/{NSSVAO6G.js → FGJZEQ7S.js} +1 -1
- package/dist/cdn/{6HQ7WHUL.js → FKY6KVFI.js} +1 -1
- package/dist/cdn/FUTBCFE5.js +2 -0
- package/dist/cdn/{V2ZQL3ON.js → FYDHPNCY.js} +1 -1
- package/dist/cdn/{JSEZIWE7.js → G6EVBNHW.js} +1 -1
- package/dist/cdn/{CWQ3PMYG.js → GB7SQRWY.js} +1 -1
- package/dist/cdn/{GHBTJCIE.js → GDUTBFTC.js} +1 -1
- package/dist/cdn/{4MGZ6ADZ.js → GHDKS4TD.js} +1 -1
- package/dist/cdn/GI5F5GIL.js +2 -0
- package/dist/cdn/{ERXINDJK.js → GL7AHGSG.js} +1 -1
- package/dist/cdn/{DOTGEOAD.js → GM26E4GK.js} +1 -1
- package/dist/cdn/{ESXXYY4U.js → H5UDZR5O.js} +1 -1
- package/dist/cdn/{IFGOL2KZ.js → HBUYVYXR.js} +1 -1
- package/dist/cdn/{OM2LRTKI.js → HSGC6FUA.js} +1 -1
- package/dist/cdn/{4XMK7RES.js → I2BHXDYX.js} +1 -1
- package/dist/cdn/{HI5BMWLV.js → I5F3FJAY.js} +1 -1
- package/dist/cdn/{CYL77NSA.js → IBIH72UK.js} +1 -1
- package/dist/cdn/IL4G7JFU.js +2 -0
- package/dist/cdn/{SVIZ25MX.js → ILDL4WCG.js} +1 -1
- package/dist/cdn/{AYIHFCPW.js → IOUHSWD2.js} +1 -1
- package/dist/cdn/{6WRZDS46.js → JBKYBEOG.js} +1 -1
- package/dist/cdn/{YOMDRGFX.js → JEOK7EMC.js} +1 -1
- package/dist/cdn/{7BAH3USN.js → JMT3PAOJ.js} +1 -1
- package/dist/cdn/{6P2QCONQ.js → JPUVW4BM.js} +1 -1
- package/dist/cdn/{DYTBN43V.js → JQWOF5HF.js} +1 -1
- package/dist/cdn/{FEGURFPP.js → JSIAJ7SW.js} +1 -1
- package/dist/cdn/{ES72YVWM.js → JYNUT5O6.js} +2 -2
- package/dist/cdn/{VOLQZMH5.js → K3U762E3.js} +1 -1
- package/dist/cdn/{6DUYQARM.js → KHZYS5PW.js} +1 -1
- package/dist/cdn/{CJ6HLMWM.js → KJ3MMRFP.js} +1 -1
- package/dist/cdn/KLDQUGLR.js +2 -0
- package/dist/cdn/KNTY5HWG.js +2 -0
- package/dist/cdn/{QUKECT32.js → KQT4OVOQ.js} +1 -1
- package/dist/cdn/KRZT7UVD.js +2 -0
- package/dist/cdn/{UWEY77AH.js → KW3PLEX7.js} +1 -1
- package/dist/cdn/L2E2NR2H.js +2 -0
- package/dist/cdn/{Y77IPFJ6.js → LFKTIMOZ.js} +1 -1
- package/dist/cdn/{TOW6FGVT.js → LHTO7FY4.js} +1 -1
- package/dist/cdn/{MM6ZG6HL.js → LOTSIKHS.js} +1 -1
- package/dist/cdn/{JQOYQOAO.js → LR455X6K.js} +1 -1
- package/dist/cdn/{NLG3XARE.js → LRZTFP3T.js} +1 -1
- package/dist/cdn/{O4JLFLGJ.js → MCIO7E44.js} +1 -1
- package/dist/cdn/{EYO37APD.js → MCRV5ZIG.js} +1 -1
- package/dist/cdn/MHXRVPMW.js +2 -0
- package/dist/cdn/{GIWBHPUL.js → MQ7UFMYF.js} +1 -1
- package/dist/cdn/{WMJFCYAQ.js → MRZOIDQQ.js} +1 -1
- package/dist/cdn/{JNIRX7D3.js → MTOH4QVT.js} +1 -1
- package/dist/cdn/{RX7YQTRT.js → MYZS7KFS.js} +1 -1
- package/dist/cdn/{SG43VAY2.js → N5VSPAE3.js} +1 -1
- package/dist/cdn/{W6FGHS7T.js → N6TVPJ75.js} +1 -1
- package/dist/cdn/{RL3BQHH7.js → NGAWCOAE.js} +1 -1
- package/dist/cdn/{WBEFTFTM.js → NN7V77MF.js} +1 -1
- package/dist/cdn/{VNHCZF5S.js → NNQ7SFRC.js} +1 -1
- package/dist/cdn/{EARL5L6Z.js → NURKCAEJ.js} +1 -1
- package/dist/cdn/{D2F4S4IN.js → OBIIMTPH.js} +1 -1
- package/dist/cdn/OIO5CL6R.js +2 -0
- package/dist/cdn/{25KULUYL.js → OQ2LTAWF.js} +1 -1
- package/dist/cdn/{YEOA76XG.js → OYT6TEB6.js} +1 -1
- package/dist/cdn/{PK24O5FM.js → P42BO7EU.js} +1 -1
- package/dist/cdn/P5E4K2YU.js +2 -0
- package/dist/cdn/{AHIMAWOG.js → PFED4DAQ.js} +1 -1
- package/dist/cdn/{6VJGFXTB.js → PGLPZTZP.js} +1 -1
- package/dist/cdn/{TBBD7RAC.js → PRMQOCUX.js} +1 -1
- package/dist/cdn/PTCA34C2.js +2 -0
- package/dist/cdn/QESRDF5I.js +2 -0
- package/dist/cdn/{YWSUGSZQ.js → QJMREFZB.js} +1 -1
- package/dist/cdn/{GX22FMPB.js → QLMVDHA2.js} +1 -1
- package/dist/cdn/{DOEPGWZO.js → QNAN26PB.js} +1 -1
- package/dist/cdn/{JYV5JY66.js → QNSRPIAF.js} +1 -1
- package/dist/cdn/QQDQTFWB.js +2 -0
- package/dist/cdn/QQMRGXT6.js +2 -0
- package/dist/cdn/{ZSURDLTS.js → R6VINUVM.js} +1 -1
- package/dist/cdn/R77ROGW2.js +2 -0
- package/dist/cdn/{XKZW6PMR.js → RAJYPSRB.js} +1 -1
- package/dist/cdn/{T6WFAXGK.js → RCFDK4P6.js} +1 -1
- package/dist/cdn/{A7VRJEQ7.js → RCRCHQMS.js} +1 -1
- package/dist/cdn/RJYU6IPS.js +2 -0
- package/dist/cdn/{MDH6YMD3.js → S6U2KSPS.js} +1 -1
- package/dist/cdn/{2WQCK6Z3.js → S7II3I5Q.js} +1 -1
- package/dist/cdn/{MZGWIJTE.js → T3DTWGCK.js} +1 -1
- package/dist/cdn/{MOVYXJPM.js → TB4K2SOD.js} +1 -1
- package/dist/cdn/TFQV64OA.js +2 -0
- package/dist/cdn/{7BPZSHP5.js → TGKWY4TT.js} +1 -1
- package/dist/cdn/{2DTD2NAQ.js → TQQODXRZ.js} +1 -1
- package/dist/cdn/UBV2M472.js +2 -0
- package/dist/cdn/UWAER5W3.js +2 -0
- package/dist/cdn/{DXKVNK72.js → V7AJFYEC.js} +1 -1
- package/dist/cdn/{N5V52FVE.js → VZRT26W2.js} +1 -1
- package/dist/cdn/{7T64APC5.js → W3GTJS5Q.js} +1 -1
- package/dist/cdn/{L4Z32DDI.js → W43X4BGF.js} +1 -1
- package/dist/cdn/{XRGFDJYN.js → WITBUCKH.js} +1 -1
- package/dist/cdn/{VOYNOWTM.js → WMWUSGWO.js} +2 -2
- package/dist/cdn/{RSDMKNTP.js → WNRAC2WY.js} +1 -1
- package/dist/cdn/WRI4WTGJ.js +2 -0
- package/dist/cdn/{LLBCU6W2.js → WUHL2RF4.js} +1 -1
- package/dist/cdn/WX3UVAG5.js +2 -0
- package/dist/cdn/{GQYGI42P.js → X5OTLCGH.js} +1 -1
- package/dist/cdn/{R66RRO3R.js → XGCFMOII.js} +1 -1
- package/dist/cdn/YJPIZ6DX.js +2 -0
- package/dist/cdn/Z5ZJ5N7G.js +2 -0
- package/dist/cdn/{DXJL2WZO.js → ZAUUAVGQ.js} +1 -1
- package/dist/cdn/{VINHY2BO.js → ZSDOYVMG.js} +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.json +1 -1
- 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-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/index.js +1 -1
- package/dist/chunks/ClearButton.js +1 -1
- package/dist/chunks/date.js +9 -6
- package/dist/chunks/dom.js +3 -2
- package/dist/chunks/math.js +1 -1
- package/dist/chunks/openCloseComponent.js +1 -1
- package/dist/chunks/resources.js +0 -1
- package/dist/chunks/resources10.js +19 -0
- package/dist/chunks/resources11.js +63 -0
- package/dist/chunks/resources12.js +27 -0
- package/dist/chunks/resources5.js +40 -51
- package/dist/chunks/resources6.js +24 -46
- package/dist/chunks/resources7.js +53 -8
- package/dist/chunks/resources8.js +50 -10
- package/dist/chunks/resources9.js +7 -53
- package/dist/chunks/responsive.js +1 -1
- package/dist/chunks/runtime.js +6 -5
- package/dist/chunks/useSizeOverride.js +1 -1
- package/dist/chunks/useSortable.js +34 -4
- package/dist/chunks/useTime.js +27 -24
- package/dist/chunks/utils.js +12 -18
- package/dist/chunks/utils2.js +59 -6
- package/dist/chunks/utils3.js +1 -1
- package/dist/components/calcite-action/customElement.d.ts +1 -5
- package/dist/components/calcite-action/customElement.js +26 -10
- package/dist/components/calcite-action-group/customElement.d.ts +2 -4
- package/dist/components/calcite-action-menu/customElement.d.ts +2 -4
- package/dist/components/calcite-alert/customElement.d.ts +1 -3
- package/dist/components/calcite-autocomplete/customElement.d.ts +3 -9
- package/dist/components/calcite-autocomplete-item/customElement.d.ts +1 -1
- package/dist/components/calcite-block/customElement.d.ts +12 -14
- package/dist/components/calcite-block/customElement.js +8 -49
- package/dist/components/calcite-block-group/customElement.js +3 -5
- package/dist/components/calcite-block-section/customElement.d.ts +5 -5
- package/dist/components/calcite-block-section/customElement.js +1 -1
- package/dist/components/calcite-button/customElement.d.ts +9 -13
- package/dist/components/calcite-button/customElement.js +3 -3
- package/dist/components/calcite-carousel/customElement.js +2 -2
- package/dist/components/calcite-checkbox/customElement.d.ts +1 -5
- package/dist/components/calcite-chip/customElement.d.ts +1 -1
- package/dist/components/calcite-chip/customElement.js +3 -29
- package/dist/components/calcite-color-picker/customElement.d.ts +3 -3
- package/dist/components/calcite-color-picker/customElement.js +23 -20
- package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker-hex-input/customElement.js +4 -4
- package/dist/components/calcite-color-picker-swatch/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
- package/dist/components/calcite-combobox/customElement.d.ts +13 -19
- package/dist/components/calcite-combobox/customElement.js +310 -152
- 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 +10 -10
- 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 +9 -11
- package/dist/components/calcite-dialog/customElement.js +6 -7
- 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 +2 -2
- package/dist/components/calcite-dropdown-item/customElement.d.ts +7 -7
- package/dist/components/calcite-dropdown-item/customElement.js +4 -4
- package/dist/components/calcite-filter/customElement.js +1 -1
- package/dist/components/calcite-flow-item/customElement.d.ts +2 -4
- package/dist/components/calcite-flow-item/customElement.js +2 -2
- package/dist/components/calcite-graph/customElement.d.ts +3 -3
- package/dist/components/calcite-graph/customElement.js +11 -15
- 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 +1 -1
- package/dist/components/calcite-inline-editable/customElement.js +4 -2
- package/dist/components/calcite-input/customElement.d.ts +23 -24
- package/dist/components/calcite-input/customElement.js +15 -13
- package/dist/components/calcite-input-date-picker/customElement.d.ts +17 -23
- package/dist/components/calcite-input-date-picker/customElement.js +19 -24
- package/dist/components/calcite-input-message/customElement.d.ts +1 -1
- package/dist/components/calcite-input-number/customElement.d.ts +22 -25
- package/dist/components/calcite-input-number/customElement.js +15 -13
- package/dist/components/calcite-input-text/customElement.d.ts +18 -19
- package/dist/components/calcite-input-text/customElement.js +3 -3
- package/dist/components/calcite-input-time-picker/customElement.d.ts +11 -13
- package/dist/components/calcite-input-time-picker/customElement.js +34 -10
- package/dist/components/calcite-input-time-zone/customElement.d.ts +9 -15
- package/dist/components/calcite-input-time-zone/customElement.js +14 -12
- package/dist/components/calcite-list/customElement.js +1 -1
- package/dist/components/calcite-list-item/customElement.d.ts +1 -3
- package/dist/components/calcite-list-item/customElement.js +1 -1
- package/dist/components/calcite-list-item-group/customElement.js +1 -1
- package/dist/components/calcite-meter/customElement.d.ts +1 -3
- package/dist/components/calcite-pagination/customElement.js +3 -3
- package/dist/components/calcite-panel/customElement.d.ts +4 -6
- package/dist/components/calcite-panel/customElement.js +1 -1
- package/dist/components/calcite-popover/customElement.d.ts +2 -4
- package/dist/components/calcite-radio-button/customElement.d.ts +1 -5
- package/dist/components/calcite-rating/customElement.d.ts +1 -5
- package/dist/components/calcite-rating/customElement.js +1 -1
- package/dist/components/calcite-segmented-control/customElement.d.ts +1 -5
- package/dist/components/calcite-select/customElement.d.ts +1 -5
- package/dist/components/calcite-sheet/customElement.d.ts +1 -3
- package/dist/components/calcite-slider/customElement.d.ts +13 -17
- package/dist/components/calcite-slider/customElement.js +19 -20
- package/dist/components/calcite-sort-handle/customElement.d.ts +2 -4
- 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-stack/customElement.js +1 -1
- package/dist/components/calcite-stepper/customElement.d.ts +1 -1
- package/dist/components/calcite-stepper/customElement.js +10 -10
- package/dist/components/calcite-stepper-item/customElement.d.ts +3 -3
- 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.js +64 -26
- package/dist/components/calcite-tab-title/customElement.js +4 -0
- package/dist/components/calcite-table-header/customElement.d.ts +1 -1
- package/dist/components/calcite-tabs/customElement.d.ts +6 -0
- package/dist/components/calcite-tabs/customElement.js +13 -7
- package/dist/components/calcite-text-area/customElement.d.ts +1 -5
- package/dist/components/calcite-tile/customElement.d.ts +1 -1
- package/dist/components/calcite-time-picker/customElement.js +4 -4
- package/dist/components/calcite-tooltip/customElement.d.ts +1 -3
- 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/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 +3 -3
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/dist/utils/date.d.ts +2 -2
- package/package.json +13 -10
- package/dist/cdn/4DBDLDKL.js +0 -2
- package/dist/cdn/5BXJCRHG.js +0 -2
- package/dist/cdn/6I7CG5ZI.js +0 -2
- package/dist/cdn/6THNFXTV.js +0 -2
- package/dist/cdn/7LKWZYMO.js +0 -2
- package/dist/cdn/7RTTBZVL.js +0 -2
- package/dist/cdn/BXSBN734.js +0 -2
- package/dist/cdn/DCQW26QE.js +0 -2
- package/dist/cdn/DE6F4LEP.js +0 -2
- package/dist/cdn/DHXGSMMN.js +0 -2
- package/dist/cdn/DV6Z2ZUP.js +0 -2
- package/dist/cdn/EAMIHL5M.js +0 -2
- package/dist/cdn/FGBYK22Q.js +0 -2
- package/dist/cdn/GEQANJCK.js +0 -2
- package/dist/cdn/HPG25RGF.js +0 -20
- package/dist/cdn/IQC2I5QX.js +0 -2
- package/dist/cdn/JAMAODSH.js +0 -2
- package/dist/cdn/JLRS6GUS.js +0 -2
- package/dist/cdn/JWZRDSEQ.js +0 -2
- package/dist/cdn/LKEGNPWV.js +0 -2
- package/dist/cdn/NSFNE7JF.js +0 -2
- package/dist/cdn/OWVDY7XZ.js +0 -2
- package/dist/cdn/P7VFZYNM.js +0 -2
- package/dist/cdn/POCA3O3T.js +0 -2
- package/dist/cdn/RDJ3NPD2.js +0 -2
- package/dist/cdn/RJJY3IYM.js +0 -2
- package/dist/cdn/S2ACIYIJ.js +0 -2
- package/dist/cdn/SKBNA7MO.js +0 -2
- package/dist/cdn/SYWS7CRW.js +0 -2
- package/dist/cdn/T2B7YQBZ.js +0 -2
- package/dist/cdn/U2RL2HER.js +0 -2
- package/dist/cdn/UYY6Z6VK.js +0 -2
- package/dist/cdn/VWJDFV4M.js +0 -2
- package/dist/cdn/WBKHM7GQ.js +0 -2
- package/dist/cdn/WJ2DBVDY.js +0 -2
- package/dist/cdn/WWXFCBIC.js +0 -2
- package/dist/cdn/XRQ6ALBW.js +0 -2
- package/dist/cdn/ZALKF7AK.js +0 -2
- package/dist/cdn/ZOVBFLHG.js +0 -2
- /package/dist/cdn/{XJY76HZ5.js → 2QCI6TGY.js} +0 -0
- /package/dist/cdn/{O2A6CQZA.js → BLWTCPBG.js} +0 -0
- /package/dist/cdn/{5OPFL4DZ.js → KWIC32XQ.js} +0 -0
- /package/dist/cdn/{SG5FNFQO.js → Q24FQVQ4.js} +0 -0
- /package/dist/cdn/{DE7OTXX2.js → QBJZUEM2.js} +0 -0
package/dist/chunks/useTime.js
CHANGED
|
@@ -57,7 +57,7 @@ function formatTimePart(number, minLength) {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
function fractionalSecondPartToMilliseconds(fractionalSecondPart) {
|
|
60
|
-
return parseInt((parseFloat(`0.${fractionalSecondPart}`) / 1e-3).toFixed(3));
|
|
60
|
+
return parseInt((parseFloat(`0.${fractionalSecondPart}`) / 1e-3).toFixed(3), 10);
|
|
61
61
|
}
|
|
62
62
|
function getLocaleHourFormat(locale) {
|
|
63
63
|
const options = { locale };
|
|
@@ -166,7 +166,7 @@ function getMeridiem(hour) {
|
|
|
166
166
|
if (!isValidNumber(hour)) {
|
|
167
167
|
return null;
|
|
168
168
|
}
|
|
169
|
-
const hourAsNumber = parseInt(hour);
|
|
169
|
+
const hourAsNumber = parseInt(hour, 10);
|
|
170
170
|
return hourAsNumber >= 0 && hourAsNumber <= 11 ? "AM" : "PM";
|
|
171
171
|
}
|
|
172
172
|
function getMeridiemOrder(locale) {
|
|
@@ -195,9 +195,9 @@ function isValidTime(value) {
|
|
|
195
195
|
if (!hour || !minute) {
|
|
196
196
|
return false;
|
|
197
197
|
}
|
|
198
|
-
const hourAsNumber = parseInt(hour);
|
|
199
|
-
const minuteAsNumber = parseInt(minute);
|
|
200
|
-
const secondAsNumber = parseInt(second ?? "");
|
|
198
|
+
const hourAsNumber = parseInt(hour, 10);
|
|
199
|
+
const minuteAsNumber = parseInt(minute, 10);
|
|
200
|
+
const secondAsNumber = parseInt(second ?? "", 10);
|
|
201
201
|
const hourValid = isValidNumber(hour) && hourAsNumber >= 0 && hourAsNumber < 24;
|
|
202
202
|
const minuteValid = isValidNumber(minute) && minuteAsNumber >= 0 && minuteAsNumber < 60;
|
|
203
203
|
const secondValid = isValidNumber(second) && secondAsNumber >= 0 && secondAsNumber < 60;
|
|
@@ -243,7 +243,7 @@ function localizeTimePart({
|
|
|
243
243
|
numberingSystem
|
|
244
244
|
};
|
|
245
245
|
const localizedZero = numberStringFormatter.localize("0");
|
|
246
|
-
if (parseInt(value) === 0) {
|
|
246
|
+
if (parseInt(value, 10) === 0) {
|
|
247
247
|
localizedFractionalSecond = "".padStart(value.length, localizedZero);
|
|
248
248
|
} else {
|
|
249
249
|
localizedFractionalSecond = numberStringFormatter.localize(`0.${value}`).replace(`${localizedZero}${localizedDecimalSeparator}`, "");
|
|
@@ -254,7 +254,7 @@ function localizeTimePart({
|
|
|
254
254
|
}
|
|
255
255
|
return localizedFractionalSecond;
|
|
256
256
|
}
|
|
257
|
-
const valueAsNumber = parseInt(value);
|
|
257
|
+
const valueAsNumber = parseInt(value, 10);
|
|
258
258
|
const date = new Date(
|
|
259
259
|
Date.UTC(
|
|
260
260
|
0,
|
|
@@ -291,9 +291,9 @@ function localizeTimeString({
|
|
|
291
291
|
0,
|
|
292
292
|
0,
|
|
293
293
|
0,
|
|
294
|
-
parseInt(hour),
|
|
295
|
-
parseInt(minute),
|
|
296
|
-
includeSeconds && typeof second === "string" ? parseInt(second) : 0,
|
|
294
|
+
parseInt(hour, 10),
|
|
295
|
+
parseInt(minute, 10),
|
|
296
|
+
includeSeconds && typeof second === "string" ? parseInt(second, 10) : 0,
|
|
297
297
|
includeSeconds && fractionalSecond ? fractionalSecondPartToMilliseconds(fractionalSecond) : 0
|
|
298
298
|
)
|
|
299
299
|
);
|
|
@@ -381,9 +381,9 @@ function toISOTimeString(value, step = 60) {
|
|
|
381
381
|
fractionalSecond = value.fractionalSecond;
|
|
382
382
|
}
|
|
383
383
|
if (hour && minute) {
|
|
384
|
-
isoTimeString = `${formatTimePart(parseInt(hour))}:${formatTimePart(parseInt(minute))}`;
|
|
384
|
+
isoTimeString = `${formatTimePart(parseInt(hour, 10))}:${formatTimePart(parseInt(minute, 10))}`;
|
|
385
385
|
if (step < 60) {
|
|
386
|
-
isoTimeString += `:${formatTimePart(parseInt(second || "0"))}`;
|
|
386
|
+
isoTimeString += `:${formatTimePart(parseInt(second || "0", 10))}`;
|
|
387
387
|
if (step < 1) {
|
|
388
388
|
isoTimeString += `.${formatFractionalSecond(fractionalSecond || "0", step)}`;
|
|
389
389
|
}
|
|
@@ -399,7 +399,7 @@ class TimeController extends GenericController {
|
|
|
399
399
|
this.handleHourKeyDownEvent = (event) => {
|
|
400
400
|
const key = event.key;
|
|
401
401
|
if (numberKeys.includes(key)) {
|
|
402
|
-
const keyAsNumber = parseInt(key);
|
|
402
|
+
const keyAsNumber = parseInt(key, 10);
|
|
403
403
|
let newHour;
|
|
404
404
|
if (isValidNumber(this.hour)) {
|
|
405
405
|
switch (this.hourFormat) {
|
|
@@ -445,10 +445,10 @@ class TimeController extends GenericController {
|
|
|
445
445
|
this.handleMinuteKeyDownEvent = (event) => {
|
|
446
446
|
const key = event.key;
|
|
447
447
|
if (numberKeys.includes(key)) {
|
|
448
|
-
const keyAsNumber = parseInt(key);
|
|
448
|
+
const keyAsNumber = parseInt(key, 10);
|
|
449
449
|
let newMinute;
|
|
450
450
|
if (typeof this.minute === "string" && isValidNumber(this.minute) && this.minute.startsWith("0")) {
|
|
451
|
-
const minuteAsNumber = parseInt(this.minute);
|
|
451
|
+
const minuteAsNumber = parseInt(this.minute, 10);
|
|
452
452
|
newMinute = minuteAsNumber > maxTenthForMinuteAndSecond ? keyAsNumber : `${minuteAsNumber}${keyAsNumber}`;
|
|
453
453
|
} else {
|
|
454
454
|
newMinute = keyAsNumber;
|
|
@@ -479,10 +479,10 @@ class TimeController extends GenericController {
|
|
|
479
479
|
this.handleSecondKeyDownEvent = (event) => {
|
|
480
480
|
const key = event.key;
|
|
481
481
|
if (numberKeys.includes(key)) {
|
|
482
|
-
const keyAsNumber = parseInt(key);
|
|
482
|
+
const keyAsNumber = parseInt(key, 10);
|
|
483
483
|
let newSecond;
|
|
484
484
|
if (typeof this.second === "string" && isValidNumber(this.second) && this.second.startsWith("0")) {
|
|
485
|
-
const secondAsNumber = parseInt(this.second);
|
|
485
|
+
const secondAsNumber = parseInt(this.second, 10);
|
|
486
486
|
newSecond = secondAsNumber > maxTenthForMinuteAndSecond ? keyAsNumber : `${secondAsNumber}${keyAsNumber}`;
|
|
487
487
|
} else {
|
|
488
488
|
newSecond = keyAsNumber;
|
|
@@ -514,7 +514,7 @@ class TimeController extends GenericController {
|
|
|
514
514
|
const { key } = event;
|
|
515
515
|
if (numberKeys.includes(key)) {
|
|
516
516
|
const stepPrecision = decimalPlaces(this.component.step);
|
|
517
|
-
const fractionalSecondAsInteger = parseInt(this.fractionalSecond);
|
|
517
|
+
const fractionalSecondAsInteger = parseInt(this.fractionalSecond, 10);
|
|
518
518
|
const fractionalSecondAsIntegerLength = fractionalSecondAsInteger.toString().length;
|
|
519
519
|
let newFractionalSecondAsIntegerString;
|
|
520
520
|
if (fractionalSecondAsIntegerLength >= stepPrecision) {
|
|
@@ -573,10 +573,13 @@ class TimeController extends GenericController {
|
|
|
573
573
|
};
|
|
574
574
|
this.calciteTimeChange = createEvent();
|
|
575
575
|
}
|
|
576
|
+
get hasValue() {
|
|
577
|
+
return Boolean(this?.hour || this?.minute || this?.second || this?.fractionalSecond || this?.meridiem);
|
|
578
|
+
}
|
|
576
579
|
//#endregion
|
|
577
580
|
//#region Public Methods
|
|
578
581
|
decrementHour() {
|
|
579
|
-
const newHour = !this.hour ? 0 : this.hour === "00" ? 23 : parseInt(this.hour) - 1;
|
|
582
|
+
const newHour = !this.hour ? 0 : this.hour === "00" ? 23 : parseInt(this.hour, 10) - 1;
|
|
580
583
|
this.setValuePart("hour", newHour);
|
|
581
584
|
}
|
|
582
585
|
decrementMinute() {
|
|
@@ -586,7 +589,7 @@ class TimeController extends GenericController {
|
|
|
586
589
|
this.decrementMinuteOrSecond("second");
|
|
587
590
|
}
|
|
588
591
|
incrementHour() {
|
|
589
|
-
const newHour = typeof this.hour === "string" && isValidNumber(this.hour) ? this.hour === "23" ? 0 : parseInt(this.hour) + 1 : 1;
|
|
592
|
+
const newHour = typeof this.hour === "string" && isValidNumber(this.hour) ? this.hour === "23" ? 0 : parseInt(this.hour, 10) + 1 : 1;
|
|
590
593
|
this.setValuePart("hour", newHour);
|
|
591
594
|
}
|
|
592
595
|
incrementMinute() {
|
|
@@ -598,7 +601,7 @@ class TimeController extends GenericController {
|
|
|
598
601
|
nudgeFractionalSecond(direction) {
|
|
599
602
|
const stepDecimal = getDecimals(this.component.step);
|
|
600
603
|
const stepPrecision = decimalPlaces(this.component.step);
|
|
601
|
-
const fractionalSecondAsInteger = parseInt(this.fractionalSecond);
|
|
604
|
+
const fractionalSecondAsInteger = parseInt(this.fractionalSecond, 10);
|
|
602
605
|
const fractionalSecondAsFloat = parseFloat(`0.${this.fractionalSecond}`);
|
|
603
606
|
let nudgedValue;
|
|
604
607
|
let nudgedValueRounded;
|
|
@@ -671,7 +674,7 @@ class TimeController extends GenericController {
|
|
|
671
674
|
decrementMinuteOrSecond(key) {
|
|
672
675
|
let newValue;
|
|
673
676
|
if (isValidNumber(this[key])) {
|
|
674
|
-
const valueAsNumber = parseInt(this[key]);
|
|
677
|
+
const valueAsNumber = parseInt(this[key], 10);
|
|
675
678
|
newValue = valueAsNumber === 0 ? 59 : valueAsNumber - 1;
|
|
676
679
|
} else {
|
|
677
680
|
newValue = 59;
|
|
@@ -679,7 +682,7 @@ class TimeController extends GenericController {
|
|
|
679
682
|
this.setValuePart(key, newValue);
|
|
680
683
|
}
|
|
681
684
|
incrementMinuteOrSecond(key) {
|
|
682
|
-
const newValue = isValidNumber(this[key]) ? this[key] === "59" ? 0 : parseInt(this[key]) + 1 : 0;
|
|
685
|
+
const newValue = isValidNumber(this[key]) ? this[key] === "59" ? 0 : parseInt(this[key], 10) + 1 : 0;
|
|
683
686
|
this.setValuePart(key, newValue);
|
|
684
687
|
}
|
|
685
688
|
setHourFormat() {
|
|
@@ -775,7 +778,7 @@ class TimeController extends GenericController {
|
|
|
775
778
|
value: this.meridiem
|
|
776
779
|
});
|
|
777
780
|
if (isValidNumber(this.hour)) {
|
|
778
|
-
const hourAsNumber = parseInt(this.hour);
|
|
781
|
+
const hourAsNumber = parseInt(this.hour, 10);
|
|
779
782
|
switch (value) {
|
|
780
783
|
case "AM":
|
|
781
784
|
if (hourAsNumber >= 12) {
|
package/dist/chunks/utils.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import Color from "color";
|
|
3
3
|
import { c as calciteSpacingFixedXl, a as calciteSpacingFixedMd, b as calciteSpacingFixedSm } from "./global.js";
|
|
4
|
+
import { omit } from "es-toolkit";
|
|
4
5
|
const CSS = {
|
|
5
6
|
channel: "channel",
|
|
6
7
|
channels: "channels",
|
|
@@ -52,7 +53,7 @@ const OPACITY_LIMITS = {
|
|
|
52
53
|
};
|
|
53
54
|
const STATIC_DIMENSIONS = {
|
|
54
55
|
s: {
|
|
55
|
-
gap: parseInt(calciteSpacingFixedSm),
|
|
56
|
+
gap: parseInt(calciteSpacingFixedSm, 10),
|
|
56
57
|
slider: {
|
|
57
58
|
height: 12
|
|
58
59
|
},
|
|
@@ -65,7 +66,7 @@ const STATIC_DIMENSIONS = {
|
|
|
65
66
|
minWidth: 200
|
|
66
67
|
},
|
|
67
68
|
m: {
|
|
68
|
-
gap: parseInt(calciteSpacingFixedMd),
|
|
69
|
+
gap: parseInt(calciteSpacingFixedMd, 10),
|
|
69
70
|
slider: {
|
|
70
71
|
height: 12
|
|
71
72
|
},
|
|
@@ -78,7 +79,7 @@ const STATIC_DIMENSIONS = {
|
|
|
78
79
|
minWidth: 240
|
|
79
80
|
},
|
|
80
81
|
l: {
|
|
81
|
-
gap: parseInt(calciteSpacingFixedXl),
|
|
82
|
+
gap: parseInt(calciteSpacingFixedXl, 10),
|
|
82
83
|
slider: {
|
|
83
84
|
height: 12
|
|
84
85
|
},
|
|
@@ -103,7 +104,7 @@ const shorthandHexWithAlpha = /^#[0-9A-F]{4}$/i;
|
|
|
103
104
|
const longhandHexWithAlpha = /^#[0-9A-F]{8}$/i;
|
|
104
105
|
function colorFromValue(value, clearable = false, mode) {
|
|
105
106
|
if (clearable && !value) {
|
|
106
|
-
return
|
|
107
|
+
return void 0;
|
|
107
108
|
}
|
|
108
109
|
return Color(
|
|
109
110
|
value != null && typeof value === "object" && alphaCompatible(mode) ? normalizeColor(value) : value
|
|
@@ -136,7 +137,7 @@ function normalizeHex(hex, hasAlpha = false, convertFromHexToHexa = false) {
|
|
|
136
137
|
hex = `#${hex}`;
|
|
137
138
|
}
|
|
138
139
|
if (isShorthandHex(hex, hasAlpha)) {
|
|
139
|
-
return rgbToHex(hexToRGB(hex
|
|
140
|
+
return rgbToHex(hexToRGB(hex));
|
|
140
141
|
}
|
|
141
142
|
if (hasAlpha && convertFromHexToHexa && isValidHex(
|
|
142
143
|
hex,
|
|
@@ -144,7 +145,7 @@ function normalizeHex(hex, hasAlpha = false, convertFromHexToHexa = false) {
|
|
|
144
145
|
/* we only care about RGB hex for conversion */
|
|
145
146
|
)) {
|
|
146
147
|
const isShorthand = isShorthandHex(hex, false);
|
|
147
|
-
return rgbToHex(hexToRGB(`${hex}${isShorthand ? "f" : "ff"}
|
|
148
|
+
return rgbToHex(hexToRGB(`${hex}${isShorthand ? "f" : "ff"}`));
|
|
148
149
|
}
|
|
149
150
|
return hex;
|
|
150
151
|
}
|
|
@@ -163,23 +164,16 @@ function numToHex(num) {
|
|
|
163
164
|
return num.toString(16).padStart(2, "0");
|
|
164
165
|
}
|
|
165
166
|
function normalizeAlpha(colorObject) {
|
|
166
|
-
|
|
167
|
-
...colorObject,
|
|
167
|
+
return {
|
|
168
|
+
...omit(colorObject, ["alpha"]),
|
|
168
169
|
a: colorObject.alpha ?? 1
|
|
169
170
|
/* Color() will omit alpha if 1 */
|
|
170
171
|
};
|
|
171
|
-
delete normalized.alpha;
|
|
172
|
-
return normalized;
|
|
173
172
|
}
|
|
174
173
|
function normalizeColor(alphaColorObject) {
|
|
175
|
-
|
|
176
|
-
delete normalized.a;
|
|
177
|
-
return normalized;
|
|
174
|
+
return { ...omit(alphaColorObject, ["a"]), alpha: alphaColorObject.a ?? 1 };
|
|
178
175
|
}
|
|
179
|
-
function hexToRGB(hex
|
|
180
|
-
if (!isValidHex(hex, hasAlpha)) {
|
|
181
|
-
return null;
|
|
182
|
-
}
|
|
176
|
+
function hexToRGB(hex) {
|
|
183
177
|
hex = hex.replace("#", "");
|
|
184
178
|
let r;
|
|
185
179
|
let g;
|
|
@@ -252,7 +246,7 @@ function parseMode(colorValue) {
|
|
|
252
246
|
return hasChannels(colorValue, "a") ? ObjectColorMode.HSVA : ObjectColorMode.HSV;
|
|
253
247
|
}
|
|
254
248
|
}
|
|
255
|
-
return
|
|
249
|
+
return void 0;
|
|
256
250
|
}
|
|
257
251
|
function hasChannels(colorObject, ...channels) {
|
|
258
252
|
return channels.every((channel) => channel && colorObject && `${channel}` in colorObject);
|
package/dist/chunks/utils2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { isServer } from "lit";
|
|
3
3
|
import { n as nodeListToArray } from "./dom.js";
|
|
4
|
-
import { A as AllComboboxChildrenSelector, a as ComboboxItemSelector, b as ComboboxItemGroupSelector } from "./
|
|
4
|
+
import { A as AllComboboxChildrenSelector, a as ComboboxItemSelector, b as ComboboxItemGroupSelector } from "./resources7.js";
|
|
5
5
|
function getAncestors(element) {
|
|
6
6
|
const parent = element.parentElement?.closest(AllComboboxChildrenSelector);
|
|
7
7
|
const grandparent = parent?.parentElement?.closest(AllComboboxChildrenSelector);
|
|
@@ -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,11 +50,7 @@ export abstract class Action extends LitElement {
|
|
|
50
50
|
* @default false
|
|
51
51
|
*/
|
|
52
52
|
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
|
-
*/
|
|
53
|
+
/** 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
54
|
accessor form: string | undefined;
|
|
59
55
|
/** Specifies an icon to display. */
|
|
60
56
|
accessor icon: IconName | undefined;
|
|
@@ -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}: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()}` });
|
|
@@ -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.
|
|
@@ -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,7 +22,7 @@ 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
|
|
25
|
+
/** Specifies the component's fallback `placement` for slotted content when its initial or specified `placement` has insufficient space available. */
|
|
26
26
|
accessor flipPlacements: FlipPlacement[];
|
|
27
27
|
/**
|
|
28
28
|
* Specifies an accessible label for the component.
|
|
@@ -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)
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -35,8 +35,8 @@ export abstract class Block extends LitElement {
|
|
|
35
35
|
* @default false
|
|
36
36
|
*/
|
|
37
37
|
accessor collapsible: boolean;
|
|
38
|
-
/** Specifies a description for the component. Displays below the heading
|
|
39
|
-
accessor description: string;
|
|
38
|
+
/** Specifies a description for the component. Displays below the `heading`. */
|
|
39
|
+
accessor description: string | undefined;
|
|
40
40
|
/**
|
|
41
41
|
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
42
42
|
*
|
|
@@ -63,25 +63,25 @@ export abstract class Block extends LitElement {
|
|
|
63
63
|
*/
|
|
64
64
|
accessor expanded: boolean;
|
|
65
65
|
/** Specifies the component's heading text. */
|
|
66
|
-
accessor heading: string;
|
|
66
|
+
accessor heading: string | undefined;
|
|
67
67
|
/** Specifies the heading level number of the component's `heading` for proper document structure, without affecting visual styling. */
|
|
68
|
-
accessor headingLevel: HeadingLevel;
|
|
68
|
+
accessor headingLevel: HeadingLevel | undefined;
|
|
69
69
|
/** Specifies an icon to display at the end of the component. */
|
|
70
|
-
accessor iconEnd: IconName;
|
|
70
|
+
accessor iconEnd: IconName | undefined;
|
|
71
71
|
/** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
|
|
72
|
-
accessor iconFlipRtl: FlipContext;
|
|
72
|
+
accessor iconFlipRtl: FlipContext | undefined;
|
|
73
73
|
/** Specifies an icon to display at the start of the component. */
|
|
74
|
-
accessor iconStart: IconName;
|
|
74
|
+
accessor iconStart: IconName | undefined;
|
|
75
75
|
/** Specifies an accessible label for the component. */
|
|
76
|
-
accessor label: string;
|
|
76
|
+
accessor label: string | undefined;
|
|
77
77
|
/**
|
|
78
78
|
* When `true`, a busy indicator is displayed.
|
|
79
79
|
*
|
|
80
80
|
* @default false
|
|
81
81
|
*/
|
|
82
82
|
accessor loading: boolean;
|
|
83
|
-
/** Specifies the component's fallback `menuPlacement` when
|
|
84
|
-
accessor menuFlipPlacements: FlipPlacement[];
|
|
83
|
+
/** Specifies the component's fallback `menuPlacement` when its initial or specified `menuPlacement` has insufficient space available. */
|
|
84
|
+
accessor menuFlipPlacements: FlipPlacement[] | undefined;
|
|
85
85
|
/**
|
|
86
86
|
* Determines where the action menu will be positioned.
|
|
87
87
|
*
|
|
@@ -129,11 +129,9 @@ export abstract class Block extends LitElement {
|
|
|
129
129
|
*
|
|
130
130
|
* @deprecated in v3.0.0, removal target v6.0.0 - Use the `icon-start` property instead.
|
|
131
131
|
*/
|
|
132
|
-
accessor status: Status;
|
|
132
|
+
accessor status: Status | undefined;
|
|
133
133
|
/**
|
|
134
|
-
* When `true` and the component is `open`, disables top layer placement.
|
|
135
|
-
*
|
|
136
|
-
* Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
|
|
134
|
+
* 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.
|
|
137
135
|
*
|
|
138
136
|
* @default false
|
|
139
137
|
* @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
|