@esri/calcite-components 5.2.0-next.0 → 5.2.0-next.10
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/23VCVGLR.js +2 -0
- package/dist/cdn/{HW3NCJAS.js → 24IFUIVY.js} +1 -1
- package/dist/cdn/{TR4SNSFR.js → 2BWHYQMD.js} +1 -1
- package/dist/cdn/{DPCEF3DX.js → 2NR7N254.js} +1 -1
- package/dist/cdn/2OKTIK5P.js +2 -0
- package/dist/cdn/{4NA5MGOB.js → 2XBG7AQW.js} +1 -1
- package/dist/cdn/{PKAEBI2S.js → 32V4MTBZ.js} +1 -1
- package/dist/cdn/{7JEYTQG4.js → 3B57SEKF.js} +1 -1
- package/dist/cdn/{U535IWWN.js → 3KFW6OD6.js} +1 -1
- package/dist/cdn/{2T5S2GZD.js → 3LWCBP7W.js} +1 -1
- package/dist/cdn/4D4NG376.js +2 -0
- package/dist/cdn/4ILBALOX.js +2 -0
- package/dist/cdn/4NS7O3WO.js +2 -0
- package/dist/cdn/{R7OIKART.js → 5LF7TQ7N.js} +1 -1
- package/dist/cdn/{XGZ4H27N.js → 5MI4LBOF.js} +1 -1
- package/dist/cdn/5MVD3F6G.js +2 -0
- package/dist/cdn/{DKVLMKQB.js → 5ZR6DDCR.js} +1 -1
- package/dist/cdn/{7VDKJ2SK.js → 623VYD6R.js} +1 -1
- package/dist/cdn/{6CBYZ6KQ.js → 62BATO6A.js} +1 -1
- package/dist/cdn/62DS7KDI.js +2 -0
- package/dist/cdn/{TAQOWFC4.js → 6EAKC3JX.js} +1 -1
- package/dist/cdn/{KSRIAA2B.js → 6XGFIG4A.js} +1 -1
- package/dist/cdn/{MWJWPSLW.js → 7OJ44OYE.js} +1 -1
- package/dist/cdn/{6DMMICVX.js → 7RU3CEXC.js} +1 -1
- package/dist/cdn/{IPLGO7L6.js → 7VRPMFQF.js} +1 -1
- package/dist/cdn/{6GL54USA.js → A5O37JHD.js} +1 -1
- package/dist/cdn/{4FJ5PQFY.js → A65ZFLA5.js} +1 -1
- package/dist/cdn/{62NJQWHM.js → AADSKWZE.js} +1 -1
- package/dist/cdn/{JHIGTRC5.js → ACJQRKUW.js} +1 -1
- package/dist/cdn/{W2NGW4D3.js → AF4KCLDZ.js} +1 -1
- package/dist/cdn/{D2YKWM6L.js → ASE5XDV4.js} +1 -1
- package/dist/cdn/{PBAUETVN.js → ATGPYSIN.js} +1 -1
- package/dist/cdn/AUFQLHKF.js +2 -0
- package/dist/cdn/B4OXM5EW.js +2 -0
- package/dist/cdn/{OD7JITPI.js → B57TN6IA.js} +1 -1
- package/dist/cdn/{PR4A5JHV.js → BFGNWZDN.js} +1 -1
- package/dist/cdn/{CFV4Q7K7.js → BFWNX5LC.js} +1 -1
- package/dist/cdn/{I72XT4W6.js → BLEDNRID.js} +1 -1
- package/dist/cdn/{KRX3Q4X3.js → BQTJOWZ3.js} +1 -1
- package/dist/cdn/{NOVMIJES.js → BX2A7TZF.js} +1 -1
- package/dist/cdn/{F5S74A6J.js → C2UEEF3A.js} +1 -1
- package/dist/cdn/{OSQJUMST.js → CAYYH2BZ.js} +1 -1
- package/dist/cdn/{WHTQZTLK.js → CDZP2WAZ.js} +1 -1
- package/dist/cdn/{2GX4D6HJ.js → CS4FUOM2.js} +1 -1
- package/dist/cdn/D2OHAZVJ.js +2 -0
- package/dist/cdn/{VH6Z5EP4.js → D5SMTOSV.js} +1 -1
- package/dist/cdn/{CRIHCMCZ.js → DDKQNHOD.js} +1 -1
- package/dist/cdn/{CHBJQ4J2.js → DS6L5K3I.js} +1 -1
- package/dist/cdn/{7VLVW6XG.js → DSKYNHS5.js} +1 -1
- package/dist/cdn/{6D5BQKYD.js → DYPOSBRY.js} +1 -1
- package/dist/cdn/{OVFYNDZQ.js → E2D5X3QE.js} +1 -1
- package/dist/cdn/{4YFA6UNT.js → EB4TOPVL.js} +1 -1
- package/dist/cdn/{FVR7AYMZ.js → EBNDBB6M.js} +1 -1
- package/dist/cdn/{2LEPTGBS.js → ECJOLDA7.js} +1 -1
- package/dist/cdn/{PFRUMG4W.js → EJDHS4O4.js} +1 -1
- package/dist/cdn/F2FESEN6.js +2 -0
- package/dist/cdn/{J5O57W2E.js → F3CASDS6.js} +1 -1
- package/dist/cdn/{7KVTCN6Q.js → FD4JYU3Z.js} +1 -1
- package/dist/cdn/{SKVVTJ4Y.js → G35IZGOS.js} +1 -1
- package/dist/cdn/{WKURA6GH.js → GA7TBRYI.js} +1 -1
- package/dist/cdn/{V6YUYE2A.js → GCPJFQZF.js} +1 -1
- package/dist/cdn/{WLBJ5BGK.js → GFNFEM62.js} +1 -1
- package/dist/cdn/{4MGZ6ADZ.js → GHDKS4TD.js} +1 -1
- package/dist/cdn/{V2YWSRNU.js → GS2Y3PBT.js} +1 -1
- package/dist/cdn/HDPZILRT.js +2 -0
- package/dist/cdn/{GQO5YIX6.js → HTU2PERJ.js} +1 -1
- package/dist/cdn/{PWWZP3KR.js → HU6DWJRC.js} +1 -1
- package/dist/cdn/I2P6NHEC.js +2 -0
- package/dist/cdn/I3B4HO2I.js +2 -0
- package/dist/cdn/{Q3S7NEGI.js → I5UVGD2T.js} +1 -1
- package/dist/cdn/I6SYKKXZ.js +2 -0
- package/dist/cdn/{E6SFDYKP.js → IAR4ISXM.js} +1 -1
- package/dist/cdn/IB5GGLYT.js +2 -0
- package/dist/cdn/{74ES23ZD.js → II45OKZO.js} +1 -1
- package/dist/cdn/{PVXQK5DA.js → IKWZUQVX.js} +1 -1
- package/dist/cdn/{R5K4A5LI.js → IOUY4CQP.js} +1 -1
- package/dist/cdn/{DEYOBQP4.js → IQNZOCQ5.js} +1 -1
- package/dist/cdn/IR3U674S.js +2 -0
- package/dist/cdn/{JFLHSOEG.js → IS3ZDW5X.js} +1 -1
- package/dist/cdn/{L6M7PQB2.js → IVC47QDM.js} +1 -1
- package/dist/cdn/J4H5KXXA.js +2 -0
- package/dist/cdn/{QFRMRDY4.js → J667RYKY.js} +1 -1
- package/dist/cdn/{LI5R65A7.js → J672TVUY.js} +1 -1
- package/dist/cdn/J6HUPBGJ.js +2 -0
- package/dist/cdn/JAJPR5ZA.js +2 -0
- package/dist/cdn/{A2EZHYSR.js → JRW3WDSZ.js} +1 -1
- package/dist/cdn/{4JIYUOBM.js → JSVI27VE.js} +1 -1
- package/dist/cdn/{FTR4BVVC.js → JSYBOIFM.js} +1 -1
- package/dist/cdn/{LKOXGPBU.js → K7PZZZ6K.js} +1 -1
- package/dist/cdn/{HMIXABNO.js → KI44TQK5.js} +1 -1
- package/dist/cdn/{EN6G2SPQ.js → KIJ2PAMT.js} +1 -1
- package/dist/cdn/{2IFHEXRA.js → KNBD5GM5.js} +1 -1
- package/dist/cdn/KRZT7UVD.js +2 -0
- package/dist/cdn/KTXKK7QW.js +2 -0
- package/dist/cdn/{URSFIR7X.js → KYXL4Q6Z.js} +1 -1
- package/dist/cdn/{ZCFV5NPR.js → KZPZO55C.js} +1 -1
- package/dist/cdn/LF33RPOG.js +2 -0
- package/dist/cdn/{A555ZEHW.js → LSCCXGYA.js} +1 -1
- package/dist/cdn/{HEWEVGQO.js → LSHFRLID.js} +1 -1
- package/dist/cdn/M4DT3YH7.js +2 -0
- package/dist/cdn/{XVKUIBXG.js → MDCWCWAM.js} +1 -1
- package/dist/cdn/{YHO7HK4V.js → NCB62BP6.js} +1 -1
- package/dist/cdn/{4PNNCVVV.js → NETUDVJE.js} +1 -1
- package/dist/cdn/{SDGSZMUK.js → NOWB7ME4.js} +1 -1
- package/dist/cdn/{JSYHBTNB.js → NQW3WH3Q.js} +1 -1
- package/dist/cdn/NZSAVAYK.js +2 -0
- package/dist/cdn/OIO5CL6R.js +2 -0
- package/dist/cdn/{QELU63EL.js → OPSPK4B3.js} +1 -1
- package/dist/cdn/P5E4K2YU.js +2 -0
- package/dist/cdn/{MWCNIRUV.js → PKJLXAOH.js} +1 -1
- package/dist/cdn/PUF2Z3VH.js +2 -0
- package/dist/cdn/{DRA725EP.js → PWDPNUIL.js} +1 -1
- package/dist/cdn/{D3IWPYIX.js → PWRAXZYG.js} +1 -1
- package/dist/cdn/QCGQ7ATZ.js +2 -0
- package/dist/cdn/{R4BGHODS.js → QGF4HKFB.js} +1 -1
- package/dist/cdn/{WBHR5HAI.js → QJMDDNP3.js} +1 -1
- package/dist/cdn/QQDQTFWB.js +2 -0
- package/dist/cdn/{3FN5WM5Q.js → QTPNQPO2.js} +2 -2
- package/dist/cdn/{EE5FG5WC.js → QWDKQYDJ.js} +1 -1
- package/dist/cdn/{EMAXP36D.js → R2OJ24AU.js} +1 -1
- package/dist/cdn/{QTXUDRNM.js → R5TLERHG.js} +1 -1
- package/dist/cdn/{XS5BOW2R.js → RRCZQZOO.js} +1 -1
- package/dist/cdn/{6YWZMFTP.js → RU76WLDJ.js} +1 -1
- package/dist/cdn/{YYHZXM6R.js → SCTJJN6F.js} +1 -1
- package/dist/cdn/{N7K3Z33V.js → SNAUVEQE.js} +1 -1
- package/dist/cdn/{JUR2QHXO.js → SUS2TW6Q.js} +1 -1
- package/dist/cdn/{V2OPNZPW.js → T6HXZ3H2.js} +1 -1
- package/dist/cdn/{BWJBSXDP.js → TGYPYCF4.js} +1 -1
- package/dist/cdn/{ZWKGNLYM.js → TGZ3QKJ4.js} +1 -1
- package/dist/cdn/TI24RDMW.js +2 -0
- package/dist/cdn/{QIGBMUD5.js → TQEGPC7M.js} +1 -1
- package/dist/cdn/{KH3SJOXF.js → TRD5VAXC.js} +1 -1
- package/dist/cdn/{Q3A3FJSL.js → UB3V636R.js} +1 -1
- package/dist/cdn/{3UC22UAK.js → UGQDFFBV.js} +1 -1
- package/dist/cdn/UWAER5W3.js +2 -0
- package/dist/cdn/VELYDHCO.js +20 -0
- package/dist/cdn/{WIJ5OVSP.js → VOWRCOLL.js} +1 -1
- package/dist/cdn/WDSPL6ZK.js +2 -0
- package/dist/cdn/{MSVOHYM2.js → WESLKQDB.js} +1 -1
- package/dist/cdn/WLHD45FG.js +2 -0
- package/dist/cdn/WLKA4SAY.js +2 -0
- package/dist/cdn/{HFTNYJO3.js → WYZKN22P.js} +1 -1
- package/dist/cdn/WZZAKFR4.js +2 -0
- package/dist/cdn/X6FCHMZG.js +2 -0
- package/dist/cdn/{YGSNC6W4.js → X6NRJK63.js} +1 -1
- package/dist/cdn/{OOF6IOO6.js → XASONDK4.js} +1 -1
- package/dist/cdn/{BMMQHDLU.js → XHHYMR4N.js} +1 -1
- package/dist/cdn/{CBLXJ7FA.js → XPBXVOOM.js} +1 -1
- package/dist/cdn/{TUW4KHTF.js → Y3IJ4QWR.js} +1 -1
- package/dist/cdn/YJPIZ6DX.js +2 -0
- package/dist/cdn/{YUWQQXGZ.js → YPAAYPPO.js} +1 -1
- package/dist/cdn/{27PXNVGA.js → Z2HYUNW6.js} +1 -1
- package/dist/cdn/ZV25GLCY.js +2 -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-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/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 +4 -4
- package/dist/chunks/useSizeOverride.js +1 -1
- 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-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 +1 -1
- package/dist/components/calcite-checkbox/customElement.d.ts +1 -5
- package/dist/components/calcite-checkbox/customElement.js +1 -1
- package/dist/components/calcite-chip/customElement.js +1 -27
- 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 +308 -150
- 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 +1 -1
- 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 +2 -2
- 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/2YACKK37.js +0 -2
- package/dist/cdn/436YQVXE.js +0 -2
- package/dist/cdn/4DBQ4ANV.js +0 -2
- package/dist/cdn/5NUVM2O5.js +0 -2
- package/dist/cdn/5SUANSC5.js +0 -2
- package/dist/cdn/6THNFXTV.js +0 -2
- package/dist/cdn/77K7O24O.js +0 -2
- package/dist/cdn/B77UXRFM.js +0 -2
- package/dist/cdn/BUM6WOSW.js +0 -2
- package/dist/cdn/DAZHMHCO.js +0 -2
- package/dist/cdn/EB7IYMTW.js +0 -2
- package/dist/cdn/FITMXYWO.js +0 -2
- package/dist/cdn/GHR4QESS.js +0 -2
- package/dist/cdn/GRHXNV32.js +0 -2
- package/dist/cdn/IJXQ6SIM.js +0 -2
- package/dist/cdn/JLRS6GUS.js +0 -2
- package/dist/cdn/KBON2CAX.js +0 -2
- package/dist/cdn/LF6HBGIK.js +0 -2
- package/dist/cdn/LKEGNPWV.js +0 -2
- package/dist/cdn/LRKNRPLM.js +0 -2
- package/dist/cdn/LUMYH5OP.js +0 -2
- package/dist/cdn/LYY7VO7C.js +0 -2
- package/dist/cdn/NI547XEE.js +0 -2
- package/dist/cdn/PVLU53NA.js +0 -2
- package/dist/cdn/PXCZRN5T.js +0 -2
- package/dist/cdn/Q6AT6CSF.js +0 -2
- package/dist/cdn/QCDNDFJF.js +0 -2
- package/dist/cdn/QMY55ROX.js +0 -2
- package/dist/cdn/SZG4WIY5.js +0 -2
- package/dist/cdn/T2B7YQBZ.js +0 -2
- package/dist/cdn/T4S5XNIM.js +0 -2
- package/dist/cdn/URGWXZVV.js +0 -2
- package/dist/cdn/URYJKH3O.js +0 -2
- package/dist/cdn/VKSNYALB.js +0 -2
- package/dist/cdn/XNIMPU7U.js +0 -2
- package/dist/cdn/ZDK7XU74.js +0 -20
- package/dist/cdn/ZLOVZ5ZX.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
|
@@ -26,9 +26,9 @@ export abstract class ComboboxItem extends LitElement {
|
|
|
26
26
|
*/
|
|
27
27
|
accessor active: boolean;
|
|
28
28
|
/** Specifies the parent and grandparent `calcite-combobox-item`s, which are set on `calcite-combobox`. */
|
|
29
|
-
accessor ancestors: ComboboxChildElement[];
|
|
30
|
-
/** Specifies a description for the component. Displays below the heading
|
|
31
|
-
accessor description: string;
|
|
29
|
+
accessor ancestors: ComboboxChildElement[] | undefined;
|
|
30
|
+
/** Specifies a description for the component. Displays below the `heading`. */
|
|
31
|
+
accessor description: string | undefined;
|
|
32
32
|
/**
|
|
33
33
|
* When `true`, prevents interaction and decreases the component's opacity.
|
|
34
34
|
*
|
|
@@ -50,7 +50,7 @@ export abstract class ComboboxItem extends LitElement {
|
|
|
50
50
|
*/
|
|
51
51
|
accessor heading: string;
|
|
52
52
|
/** Specifies an icon to display. */
|
|
53
|
-
accessor icon: IconName;
|
|
53
|
+
accessor icon: IconName | undefined;
|
|
54
54
|
/**
|
|
55
55
|
* When `true` and the element direction is right-to-left (`"rtl"`), flips the component`s `icon`.
|
|
56
56
|
*
|
|
@@ -60,7 +60,7 @@ export abstract class ComboboxItem extends LitElement {
|
|
|
60
60
|
/** Specifies an accessible label for the component. */
|
|
61
61
|
accessor label: any;
|
|
62
62
|
/** Specifies additional metadata to the component for use in filtering. */
|
|
63
|
-
accessor metadata: Record<string, unknown
|
|
63
|
+
accessor metadata: Record<string, unknown> | undefined;
|
|
64
64
|
/**
|
|
65
65
|
* When `true`, the component is selected.
|
|
66
66
|
*
|
|
@@ -74,7 +74,7 @@ export abstract class ComboboxItem extends LitElement {
|
|
|
74
74
|
*
|
|
75
75
|
* It is recommended to use 5 characters or fewer.
|
|
76
76
|
*/
|
|
77
|
-
accessor shortHeading: string;
|
|
77
|
+
accessor shortHeading: string | undefined;
|
|
78
78
|
/** The component's value. Falls back to `heading` if not provided. */
|
|
79
79
|
accessor value: any;
|
|
80
80
|
/** Fires whenever the component is selected or unselected. */
|
|
@@ -4,7 +4,7 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
4
4
|
import { css, html, nothing } from "lit";
|
|
5
5
|
import { LitElement, createEvent, safeClassMap, safeStyleMap } from "@arcgis/lumina";
|
|
6
6
|
import { g as guid } from "../../chunks/guid.js";
|
|
7
|
-
import {
|
|
7
|
+
import { d as getAncestors, i as isSingleLike, e as getDepth } from "../../chunks/utils2.js";
|
|
8
8
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
9
9
|
import { m as slotChangeHasContent } from "../../chunks/dom.js";
|
|
10
10
|
import { h as highlightText } from "../../chunks/text.js";
|
|
@@ -45,6 +45,7 @@ class ComboboxItem extends LitElement {
|
|
|
45
45
|
this.hasContent = false;
|
|
46
46
|
this.active = false;
|
|
47
47
|
this.disabled = false;
|
|
48
|
+
this.filterDisabled = false;
|
|
48
49
|
this.guid = guid();
|
|
49
50
|
this.iconFlipRtl = false;
|
|
50
51
|
this.scale = "m";
|
|
@@ -9,7 +9,7 @@ import type { ComboboxChildElement } from "../calcite-combobox/interfaces.js";
|
|
|
9
9
|
*/
|
|
10
10
|
export abstract class ComboboxItemGroup extends LitElement {
|
|
11
11
|
/** Specifies the parent and grandparent `calcite-combobox-item`s, which are set on `calcite-combobox`. */
|
|
12
|
-
accessor ancestors: ComboboxChildElement[];
|
|
12
|
+
accessor ancestors: ComboboxChildElement[] | undefined;
|
|
13
13
|
/**
|
|
14
14
|
* Specifies an accessible label for the component.
|
|
15
15
|
*
|
|
@@ -3,7 +3,7 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement, safeClassMap, safeStyleMap, nothing } from "@arcgis/lumina";
|
|
5
5
|
import { g as guid } from "../../chunks/guid.js";
|
|
6
|
-
import {
|
|
6
|
+
import { d as getAncestors, e as getDepth } from "../../chunks/utils2.js";
|
|
7
7
|
const CSS = {
|
|
8
8
|
firstTitle: "first-title",
|
|
9
9
|
list: "list",
|
|
@@ -32,9 +32,9 @@ import type { HeadingLevel } from "../functional/Heading.js";
|
|
|
32
32
|
*/
|
|
33
33
|
export abstract class DatePicker extends LitElement {
|
|
34
34
|
/** Specifies the component's active date. */
|
|
35
|
-
accessor activeDate: Date;
|
|
35
|
+
accessor activeDate: Date | undefined;
|
|
36
36
|
/** When `range` is `true`, specifies the active `range`. Where `"start"` specifies the starting range date and `"end"` the ending range date. */
|
|
37
|
-
accessor activeRange: "start" | "end";
|
|
37
|
+
accessor activeRange: "start" | "end" | undefined;
|
|
38
38
|
/**
|
|
39
39
|
* When `range` is `true`, specifies the number of calendars displayed.
|
|
40
40
|
*
|
|
@@ -42,7 +42,7 @@ export abstract class DatePicker extends LitElement {
|
|
|
42
42
|
*/
|
|
43
43
|
accessor calendars: 1 | 2;
|
|
44
44
|
/** Specifies the heading level number of the component's `heading` for proper document structure, without affecting visual styling. */
|
|
45
|
-
accessor headingLevel: HeadingLevel;
|
|
45
|
+
accessor headingLevel: HeadingLevel | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* Defines the component's layout.
|
|
48
48
|
*
|
|
@@ -53,9 +53,9 @@ export abstract class DatePicker extends LitElement {
|
|
|
53
53
|
* When the component resides in a form,
|
|
54
54
|
* specifies the latest allowed date (`"yyyy-mm-dd"`).
|
|
55
55
|
*/
|
|
56
|
-
accessor max: string;
|
|
56
|
+
accessor max: string | undefined;
|
|
57
57
|
/** Specifies the latest allowed date as a full date object (`new Date("yyyy-mm-dd")`). */
|
|
58
|
-
accessor maxAsDate: Date;
|
|
58
|
+
accessor maxAsDate: Date | undefined;
|
|
59
59
|
/** Overrides individual strings used by the component. */
|
|
60
60
|
accessor messageOverrides: {
|
|
61
61
|
nextMonth?: string;
|
|
@@ -68,9 +68,9 @@ export abstract class DatePicker extends LitElement {
|
|
|
68
68
|
* When the component resides in a form,
|
|
69
69
|
* specifies the earliest allowed date (`"yyyy-mm-dd"`).
|
|
70
70
|
*/
|
|
71
|
-
accessor min: string;
|
|
71
|
+
accessor min: string | undefined;
|
|
72
72
|
/** Specifies the earliest allowed date as a full date object (`new Date("yyyy-mm-dd")`). */
|
|
73
|
-
accessor minAsDate: Date;
|
|
73
|
+
accessor minAsDate: Date | undefined;
|
|
74
74
|
/**
|
|
75
75
|
* Specifies the component's month style.
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ export abstract class DatePicker extends LitElement {
|
|
|
78
78
|
*/
|
|
79
79
|
accessor monthStyle: "abbreviated" | "wide";
|
|
80
80
|
/** Specifies the Unicode numeral system used by the component for localization. This property cannot be dynamically changed. */
|
|
81
|
-
accessor numberingSystem: NumberingSystem;
|
|
81
|
+
accessor numberingSystem: NumberingSystem | undefined;
|
|
82
82
|
/**
|
|
83
83
|
* When `true`, disables the default behavior on the third click of narrowing or extending the range and instead starts a new range.
|
|
84
84
|
*
|
|
@@ -98,9 +98,9 @@ export abstract class DatePicker extends LitElement {
|
|
|
98
98
|
*/
|
|
99
99
|
accessor scale: "s" | "m" | "l";
|
|
100
100
|
/** Specifies the selected date as a string (`"yyyy-mm-dd"`), or an array of strings for `range` values (`["yyyy-mm-dd", "yyyy-mm-dd"]`). */
|
|
101
|
-
accessor value: string | string[];
|
|
101
|
+
accessor value: string | string[] | undefined;
|
|
102
102
|
/** Specifies the selected date as a full date object (`new Date("yyyy-mm-dd")`), or an array containing full date objects (`[new Date("yyyy-mm-dd"), new Date("yyyy-mm-dd")]`). */
|
|
103
|
-
accessor valueAsDate: Date | Date[];
|
|
103
|
+
accessor valueAsDate: Date | Date[] | undefined;
|
|
104
104
|
/**
|
|
105
105
|
* Sets focus on the component's first focusable element.
|
|
106
106
|
*
|
|
@@ -55,12 +55,12 @@ class DatePicker extends LitElement {
|
|
|
55
55
|
const minSource = getMinMaxSource(changes, "min");
|
|
56
56
|
const maxSource = getMinMaxSource(changes, "max");
|
|
57
57
|
if (minSource === "min") {
|
|
58
|
-
this.minAsDate = dateFromISO(this.min);
|
|
58
|
+
this.minAsDate = this.min ? dateFromISO(this.min) : void 0;
|
|
59
59
|
} else if (minSource === "minAsDate") {
|
|
60
60
|
this.minAsDate = dateFromISO(dateToISO(this.minAsDate));
|
|
61
61
|
}
|
|
62
62
|
if (maxSource === "max") {
|
|
63
|
-
this.maxAsDate = dateFromISO(this.max);
|
|
63
|
+
this.maxAsDate = this.max ? dateFromISO(this.max) : void 0;
|
|
64
64
|
} else if (maxSource === "maxAsDate") {
|
|
65
65
|
this.maxAsDate = dateFromISO(dateToISO(this.maxAsDate));
|
|
66
66
|
}
|
|
@@ -142,7 +142,7 @@ class DatePicker extends LitElement {
|
|
|
142
142
|
this.activeDate = date;
|
|
143
143
|
} else {
|
|
144
144
|
const month = date.getMonth();
|
|
145
|
-
const isDateOutOfCurrentRange = month !== this.activeStartDate
|
|
145
|
+
const isDateOutOfCurrentRange = month !== this.activeStartDate?.getMonth() && (this.calendars === 1 || (this.activeStartDate ? month !== nextMonth(this.activeStartDate).getMonth() : false));
|
|
146
146
|
if (this.activeRange === "end") {
|
|
147
147
|
if (!this.activeEndDate || this.activeStartDate && isDateOutOfCurrentRange) {
|
|
148
148
|
this.activeEndDate = date;
|
|
@@ -163,8 +163,8 @@ class DatePicker extends LitElement {
|
|
|
163
163
|
return;
|
|
164
164
|
}
|
|
165
165
|
const { valueAsDate } = this;
|
|
166
|
-
const start = Array.isArray(valueAsDate)
|
|
167
|
-
const end = Array.isArray(valueAsDate)
|
|
166
|
+
const start = Array.isArray(valueAsDate) ? valueAsDate[0] : void 0;
|
|
167
|
+
const end = Array.isArray(valueAsDate) ? valueAsDate[1] : void 0;
|
|
168
168
|
const date = new Date(event.detail);
|
|
169
169
|
this.hoverRange = {
|
|
170
170
|
focused: this.activeRange || "start",
|
|
@@ -172,10 +172,10 @@ class DatePicker extends LitElement {
|
|
|
172
172
|
end
|
|
173
173
|
};
|
|
174
174
|
if (this.proximitySelectionDisabled) {
|
|
175
|
-
if (end && start || !end && date >= start) {
|
|
175
|
+
if (end && start || !end && start && date >= start) {
|
|
176
176
|
this.hoverRange.focused = "end";
|
|
177
177
|
this.hoverRange.end = date;
|
|
178
|
-
} else if (!end && date < start) {
|
|
178
|
+
} else if (!end && start && date < start) {
|
|
179
179
|
this.hoverRange = {
|
|
180
180
|
focused: "start",
|
|
181
181
|
start: date,
|
|
@@ -185,7 +185,7 @@ class DatePicker extends LitElement {
|
|
|
185
185
|
this.hoverRange = void 0;
|
|
186
186
|
}
|
|
187
187
|
} else {
|
|
188
|
-
if (this.activeRange) {
|
|
188
|
+
if (this.activeRange && this.hoverRange) {
|
|
189
189
|
if (this.activeRange === "end") {
|
|
190
190
|
this.hoverRange.end = date;
|
|
191
191
|
this.hoverRange.focused = "end";
|
|
@@ -262,7 +262,7 @@ class DatePicker extends LitElement {
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
getStartDate() {
|
|
265
|
-
return Array.isArray(this.valueAsDate) && this.valueAsDate[0];
|
|
265
|
+
return Array.isArray(this.valueAsDate) && this.valueAsDate[0] || void 0;
|
|
266
266
|
}
|
|
267
267
|
setStartDate(date, emit = true) {
|
|
268
268
|
const endDate = this.getEndDate();
|
|
@@ -281,8 +281,8 @@ class DatePicker extends LitElement {
|
|
|
281
281
|
}
|
|
282
282
|
if (!this.range) {
|
|
283
283
|
this.value = isoDate || "";
|
|
284
|
-
this.valueAsDate = date ||
|
|
285
|
-
this.activeDate = date ||
|
|
284
|
+
this.valueAsDate = date || void 0;
|
|
285
|
+
this.activeDate = date || void 0;
|
|
286
286
|
this.calciteDatePickerChange.emit();
|
|
287
287
|
return;
|
|
288
288
|
}
|
|
@@ -302,7 +302,7 @@ class DatePicker extends LitElement {
|
|
|
302
302
|
} else {
|
|
303
303
|
if (this.proximitySelectionDisabled) {
|
|
304
304
|
this.setStartDate(date, false);
|
|
305
|
-
this.setEndDate(
|
|
305
|
+
this.setEndDate(void 0, false);
|
|
306
306
|
this.calciteDatePickerRangeChange.emit();
|
|
307
307
|
} else {
|
|
308
308
|
if (this.activeRange) {
|
|
@@ -310,8 +310,8 @@ class DatePicker extends LitElement {
|
|
|
310
310
|
this.setEndDate(date);
|
|
311
311
|
} else {
|
|
312
312
|
if (date > end) {
|
|
313
|
-
this.setEndDate(
|
|
314
|
-
this.activeEndDate =
|
|
313
|
+
this.setEndDate(void 0, false);
|
|
314
|
+
this.activeEndDate = void 0;
|
|
315
315
|
}
|
|
316
316
|
this.setStartDate(date);
|
|
317
317
|
}
|
|
@@ -343,12 +343,12 @@ class DatePicker extends LitElement {
|
|
|
343
343
|
setActiveStartAndEndDates() {
|
|
344
344
|
if (this.range) {
|
|
345
345
|
const startDate = dateFromRange(Array.isArray(this.valueAsDate) ? this.valueAsDate[0] : this.valueAsDate, this.minAsDate, this.maxAsDate);
|
|
346
|
-
const endDate = dateFromRange(Array.isArray(this.valueAsDate) ? this.valueAsDate[1] :
|
|
346
|
+
const endDate = dateFromRange(Array.isArray(this.valueAsDate) ? this.valueAsDate[1] : void 0, this.minAsDate, this.maxAsDate);
|
|
347
347
|
this.activeStartDate = this.getActiveDate(startDate, this.minAsDate, this.maxAsDate);
|
|
348
348
|
this.activeEndDate = this.getActiveEndDate(endDate, this.minAsDate, this.maxAsDate);
|
|
349
349
|
if (sameDate(this.activeStartDate, this.activeEndDate)) {
|
|
350
|
-
const previousMonthActiveDate = getFirstValidDateInMonth(prevMonth(this.activeEndDate), this.minAsDate, this.maxAsDate);
|
|
351
|
-
const nextMonthActiveDate = nextMonth(this.activeEndDate);
|
|
350
|
+
const previousMonthActiveDate = getFirstValidDateInMonth(this.activeEndDate ? prevMonth(this.activeEndDate) : void 0, this.minAsDate, this.maxAsDate);
|
|
351
|
+
const nextMonthActiveDate = this.activeEndDate ? nextMonth(this.activeEndDate) : void 0;
|
|
352
352
|
if (inRange(previousMonthActiveDate, this.minAsDate, this.maxAsDate)) {
|
|
353
353
|
this.activeStartDate = previousMonthActiveDate;
|
|
354
354
|
} else if (inRange(nextMonthActiveDate, this.minAsDate, this.maxAsDate)) {
|
|
@@ -360,7 +360,7 @@ class DatePicker extends LitElement {
|
|
|
360
360
|
render() {
|
|
361
361
|
const date = dateFromRange(this.range && Array.isArray(this.valueAsDate) ? this.valueAsDate[0] : this.valueAsDate, this.minAsDate, this.maxAsDate);
|
|
362
362
|
const activeDate = this.getActiveDate(date, this.minAsDate, this.maxAsDate);
|
|
363
|
-
const endDate = this.range && Array.isArray(this.valueAsDate) ? dateFromRange(this.valueAsDate[1], this.minAsDate, this.maxAsDate) :
|
|
363
|
+
const endDate = this.range && Array.isArray(this.valueAsDate) ? dateFromRange(this.valueAsDate[1], this.minAsDate, this.maxAsDate) : void 0;
|
|
364
364
|
const minDate = this.range && this.activeRange ? this.activeRange === "start" ? this.minAsDate : date : this.minAsDate;
|
|
365
365
|
const startCalendarActiveDate = this.range ? this.activeStartDate : activeDate;
|
|
366
366
|
return html`<div aria-hidden class=${safeClassMap(CSS.container)} tabindex=-1>${this.renderMonth(startCalendarActiveDate, this.maxAsDate, minDate, date, endDate)}</div>`;
|
|
@@ -45,7 +45,7 @@ class DatePickerDay extends LitElement {
|
|
|
45
45
|
return this.focusSetter(() => this.el, options);
|
|
46
46
|
}
|
|
47
47
|
load() {
|
|
48
|
-
this.parentDatePickerEl = closestElementCrossShadowBoundary(this.el, "calcite-date-picker");
|
|
48
|
+
this.parentDatePickerEl = closestElementCrossShadowBoundary(this.el, "calcite-date-picker") ?? void 0;
|
|
49
49
|
}
|
|
50
50
|
onClick() {
|
|
51
51
|
if (this.disabled) {
|
|
@@ -78,7 +78,7 @@ class DatePickerDay extends LitElement {
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
const formattedDay = numberStringFormatter.localize(String(this.day));
|
|
81
|
-
const dayLabel = this.dateTimeFormat.format(this.value);
|
|
81
|
+
const dayLabel = this.dateTimeFormat.format(this.value) ?? null;
|
|
82
82
|
this.el.ariaLabel = dayLabel;
|
|
83
83
|
this.el.ariaSelected = toAriaBoolean(this.active);
|
|
84
84
|
setAttribute(this.el, "id", dayId);
|
|
@@ -18,11 +18,11 @@ export abstract class DatePickerMonth extends LitElement {
|
|
|
18
18
|
/** Specifies the heading level number of the component's `heading` for proper document structure, without affecting visual styling. */
|
|
19
19
|
accessor headingLevel: HeadingLevel;
|
|
20
20
|
/** The range of dates currently being hovered. */
|
|
21
|
-
accessor hoverRange: HoverRange;
|
|
21
|
+
accessor hoverRange: HoverRange | undefined;
|
|
22
22
|
/** Specifies the latest allowed date (`"yyyy-mm-dd"`). */
|
|
23
|
-
accessor max: Date;
|
|
23
|
+
accessor max: Date | undefined;
|
|
24
24
|
/** Specifies the earliest allowed date (`"yyyy-mm-dd"`). */
|
|
25
|
-
accessor min: Date;
|
|
25
|
+
accessor min: Date | undefined;
|
|
26
26
|
/** Specifies the monthStyle used by the component. */
|
|
27
27
|
accessor monthStyle: "abbreviated" | "wide";
|
|
28
28
|
/**
|
|
@@ -34,7 +34,7 @@ export abstract class DatePickerMonth extends LitElement {
|
|
|
34
34
|
/** Specifies the size of the component. */
|
|
35
35
|
accessor scale: Scale;
|
|
36
36
|
/** Already selected date. */
|
|
37
|
-
accessor selectedDate: Date;
|
|
37
|
+
accessor selectedDate: Date | undefined;
|
|
38
38
|
/** Start date currently active. */
|
|
39
39
|
accessor startDate: Date | undefined;
|
|
40
40
|
}
|
|
@@ -24,6 +24,7 @@ const NUM_DAYS_TO_DISPLAY = 42;
|
|
|
24
24
|
class DatePickerMonth extends LitElement {
|
|
25
25
|
constructor() {
|
|
26
26
|
super();
|
|
27
|
+
this.activeFocus = false;
|
|
27
28
|
this.storeDayRef = (el) => {
|
|
28
29
|
if (el?.active && this.activeFocus) {
|
|
29
30
|
el.setFocus();
|
|
@@ -204,13 +205,13 @@ class DatePickerMonth extends LitElement {
|
|
|
204
205
|
}
|
|
205
206
|
const { start, end } = this.hoverRange;
|
|
206
207
|
const isStartFocused = this.isFocusedOnStart();
|
|
207
|
-
const isEndAfterStart = this.startDate && end > this.startDate;
|
|
208
|
-
const isEndBeforeEnd = this.endDate && end < this.endDate;
|
|
209
|
-
const isStartAfterStart = this.startDate && start > this.startDate;
|
|
210
|
-
const isStartBeforeEnd = this.endDate && start < this.endDate;
|
|
208
|
+
const isEndAfterStart = this.startDate && end && end > this.startDate;
|
|
209
|
+
const isEndBeforeEnd = this.endDate && end && end < this.endDate;
|
|
210
|
+
const isStartAfterStart = this.startDate && start && start > this.startDate;
|
|
211
|
+
const isStartBeforeEnd = this.endDate && start && start < this.endDate;
|
|
211
212
|
const isEndDateAfterStartAndBeforeEnd = !isStartFocused && this.startDate && isEndAfterStart && (!this.endDate || isEndBeforeEnd);
|
|
212
213
|
const isStartDateBeforeEndAndAfterStart = isStartFocused && this.startDate && isStartAfterStart && isStartBeforeEnd;
|
|
213
|
-
return isEndDateAfterStartAndBeforeEnd || isStartDateBeforeEndAndAfterStart;
|
|
214
|
+
return !!(isEndDateAfterStartAndBeforeEnd || isStartDateBeforeEndAndAfterStart);
|
|
214
215
|
}
|
|
215
216
|
isRangeHover(date) {
|
|
216
217
|
if (!this.hoverRange) {
|
|
@@ -219,16 +220,16 @@ class DatePickerMonth extends LitElement {
|
|
|
219
220
|
const { start, end } = this.hoverRange;
|
|
220
221
|
const isStartFocused = this.isFocusedOnStart();
|
|
221
222
|
const insideRange = this.isHoverInRange();
|
|
222
|
-
const isDateBeforeStartDateAndAfterStart = date > start && date < this.startDate;
|
|
223
|
-
const isDateAfterEndDateAndBeforeEnd = date < end && date > this.endDate;
|
|
224
|
-
const isDateBeforeEndDateAndAfterEnd = date > end && date < this.endDate;
|
|
225
|
-
const isDateAfterStartDateAndBeforeStart = date < start && date > this.startDate;
|
|
226
|
-
const isDateAfterStartDateAndBeforeEnd = date < end && date > this.startDate;
|
|
227
|
-
const isDateBeforeEndDateAndAfterStart = date > start && date < this.endDate;
|
|
223
|
+
const isDateBeforeStartDateAndAfterStart = !!(start && date > start && this.startDate && date < this.startDate);
|
|
224
|
+
const isDateAfterEndDateAndBeforeEnd = !!(end && date < end && this.endDate && date > this.endDate);
|
|
225
|
+
const isDateBeforeEndDateAndAfterEnd = !!(end && date > end && this.endDate && date < this.endDate);
|
|
226
|
+
const isDateAfterStartDateAndBeforeStart = !!(start && date < start && this.startDate && date > this.startDate);
|
|
227
|
+
const isDateAfterStartDateAndBeforeEnd = !!(end && date < end && this.startDate && date > this.startDate);
|
|
228
|
+
const isDateBeforeEndDateAndAfterStart = !!(start && date > start && this.endDate && date < this.endDate);
|
|
228
229
|
const hasBothStartAndEndDate = this.startDate && this.endDate;
|
|
229
230
|
if (insideRange) {
|
|
230
231
|
if (hasBothStartAndEndDate) {
|
|
231
|
-
return isStartFocused ? date < this.endDate && (isDateAfterStartDateAndBeforeStart || isDateBeforeStartDateAndAfterStart) : isDateBeforeEndDateAndAfterEnd || isDateAfterEndDateAndBeforeEnd;
|
|
232
|
+
return isStartFocused ? !!(this.endDate && date < this.endDate) && (isDateAfterStartDateAndBeforeStart || isDateBeforeStartDateAndAfterStart) : isDateBeforeEndDateAndAfterEnd || isDateAfterEndDateAndBeforeEnd;
|
|
232
233
|
} else if (this.startDate && !this.endDate) {
|
|
233
234
|
return isStartFocused ? isDateBeforeStartDateAndAfterStart : isDateAfterStartDateAndBeforeEnd;
|
|
234
235
|
} else if (!this.startDate && this.endDate) {
|
|
@@ -239,6 +240,7 @@ class DatePickerMonth extends LitElement {
|
|
|
239
240
|
return isStartFocused ? isDateBeforeStartDateAndAfterStart : isDateAfterEndDateAndBeforeEnd;
|
|
240
241
|
}
|
|
241
242
|
}
|
|
243
|
+
return false;
|
|
242
244
|
}
|
|
243
245
|
getDays(prevMonthDays, currMonthDays, nextMonthDays, position = "start") {
|
|
244
246
|
let month = this.activeDate.getMonth();
|
|
@@ -300,7 +302,10 @@ class DatePickerMonth extends LitElement {
|
|
|
300
302
|
const startOfWeek = this.localeData.weekStart % 7;
|
|
301
303
|
const { abbreviated, short, narrow } = this.localeData.days;
|
|
302
304
|
const weekDays = this.scale === "s" ? narrow || short || abbreviated : short || abbreviated || narrow;
|
|
303
|
-
const adjustedWeekDays = [
|
|
305
|
+
const adjustedWeekDays = [
|
|
306
|
+
...weekDays.slice(startOfWeek, 7),
|
|
307
|
+
...weekDays.slice(0, startOfWeek)
|
|
308
|
+
];
|
|
304
309
|
const curMonDays = this.getCurrentMonthDays(month, year);
|
|
305
310
|
const prevMonDays = this.getPreviousMonthDays(month, year, startOfWeek);
|
|
306
311
|
const nextMonDays = this.getNextMonthDays(month, year, startOfWeek);
|
|
@@ -330,7 +335,7 @@ class DatePickerMonth extends LitElement {
|
|
|
330
335
|
return html`<div class=${safeClassMap({
|
|
331
336
|
[CSS.calendar]: true,
|
|
332
337
|
[CSS.calendarStart]: !isEndCalendar
|
|
333
|
-
})}><calcite-date-picker-month-header .activeDate=${isEndCalendar ? nextMonth(this.activeDate) : this.activeDate} .headingLevel=${this.headingLevel} .localeData=${this.localeData} .max=${this.max} .messages=${this.messages} .min=${this.min} .monthStyle=${this.monthStyle} @calciteInternalDatePickerMonthHeaderSelectChange=${this.monthHeaderSelectChange} .position=${isEndCalendar ? "end" : this.range && this.calendars === 2 ? "start" :
|
|
338
|
+
})}><calcite-date-picker-month-header .activeDate=${isEndCalendar ? nextMonth(this.activeDate) : this.activeDate} .headingLevel=${this.headingLevel} .localeData=${this.localeData} .max=${this.max} .messages=${this.messages} .min=${this.min} .monthStyle=${this.monthStyle} @calciteInternalDatePickerMonthHeaderSelectChange=${this.monthHeaderSelectChange} .position=${isEndCalendar ? "end" : this.range && this.calendars === 2 ? "start" : void 0} .scale=${this.scale} .selectedDate=${this.selectedDate}></calcite-date-picker-month-header>${this.renderMonthCalendar(weekDays, days, isEndCalendar)}</div>`;
|
|
334
339
|
}
|
|
335
340
|
renderMonthCalendar(weekDays, days, isEndCalendar = false) {
|
|
336
341
|
const endCalendarStartIndex = 50;
|
|
@@ -46,7 +46,7 @@ class DatePickerMonthHeader extends LitElement {
|
|
|
46
46
|
this.setNextPrevMonthDates();
|
|
47
47
|
}
|
|
48
48
|
load() {
|
|
49
|
-
this.parentDatePickerEl = closestElementCrossShadowBoundary(this.el, "calcite-date-picker");
|
|
49
|
+
this.parentDatePickerEl = closestElementCrossShadowBoundary(this.el, "calcite-date-picker") ?? void 0;
|
|
50
50
|
}
|
|
51
51
|
willUpdate(changes) {
|
|
52
52
|
if (this.hasUpdated && (changes.has("activeDate") || changes.has("localeData"))) {
|
|
@@ -100,7 +100,9 @@ class DatePickerMonthHeader extends LitElement {
|
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
prevMonthClick(event) {
|
|
103
|
-
|
|
103
|
+
if (this.prevMonthDate) {
|
|
104
|
+
this.handleArrowClick(event, this.prevMonthDate);
|
|
105
|
+
}
|
|
104
106
|
}
|
|
105
107
|
prevMonthKeydown(event) {
|
|
106
108
|
if (isActivationKey(event.key)) {
|
|
@@ -108,7 +110,9 @@ class DatePickerMonthHeader extends LitElement {
|
|
|
108
110
|
}
|
|
109
111
|
}
|
|
110
112
|
nextMonthClick(event) {
|
|
111
|
-
|
|
113
|
+
if (this.nextMonthDate) {
|
|
114
|
+
this.handleArrowClick(event, this.nextMonthDate);
|
|
115
|
+
}
|
|
112
116
|
}
|
|
113
117
|
nextMonthKeydown(event) {
|
|
114
118
|
if (isActivationKey(event.key)) {
|
|
@@ -143,6 +147,7 @@ class DatePickerMonthHeader extends LitElement {
|
|
|
143
147
|
nextDate.setFullYear(year);
|
|
144
148
|
return dateFromRange(nextDate, min, max);
|
|
145
149
|
}
|
|
150
|
+
return void 0;
|
|
146
151
|
}
|
|
147
152
|
setYear({ localizedYear, commit = true, offset = 0 }) {
|
|
148
153
|
const { yearInputRef, activeDate } = this;
|
|
@@ -150,12 +155,12 @@ class DatePickerMonthHeader extends LitElement {
|
|
|
150
155
|
if (inRangeDate) {
|
|
151
156
|
this.calciteInternalDatePickerMonthHeaderSelectChange.emit(inRangeDate);
|
|
152
157
|
}
|
|
153
|
-
if (commit) {
|
|
158
|
+
if (commit && yearInputRef.value) {
|
|
154
159
|
yearInputRef.value.value = this.formatCalendarYear((inRangeDate || activeDate).getFullYear());
|
|
155
160
|
}
|
|
156
161
|
}
|
|
157
162
|
setYearSelectWidthOffset() {
|
|
158
|
-
this.yearSelectWidthOffset = ICON_WIDTH_M + 3 * parseInt(this.getYearSelectPadding());
|
|
163
|
+
this.yearSelectWidthOffset = ICON_WIDTH_M + 3 * parseInt(this.getYearSelectPadding(), 10);
|
|
159
164
|
this.setYearSelectMenuWidth();
|
|
160
165
|
}
|
|
161
166
|
setYearSelectMenuWidth() {
|
|
@@ -177,19 +182,19 @@ class DatePickerMonthHeader extends LitElement {
|
|
|
177
182
|
if (!this.min && !this.max || inRange(newActiveDate, this.min, this.max)) {
|
|
178
183
|
return true;
|
|
179
184
|
}
|
|
180
|
-
return hasSameMonthAndYear(newActiveDate, this.max) || hasSameMonthAndYear(newActiveDate, this.min);
|
|
185
|
+
return !!(this.max && hasSameMonthAndYear(newActiveDate, this.max) || this.min && hasSameMonthAndYear(newActiveDate, this.min));
|
|
181
186
|
}
|
|
182
187
|
async handlePenultimateValidMonth(event) {
|
|
183
188
|
const target = event.target;
|
|
184
189
|
const direction = target.getAttribute("data-direction");
|
|
185
190
|
const isDirectionLeft = direction === "left";
|
|
186
|
-
let isTargetLastValidMonth;
|
|
191
|
+
let isTargetLastValidMonth = false;
|
|
187
192
|
if (isDirectionLeft && this.min) {
|
|
188
193
|
const prevMonthDate = dateFromRange(prevMonth(this.activeDate), this.min, this.max);
|
|
189
|
-
isTargetLastValidMonth = hasSameMonthAndYear(prevMonthDate, this.min);
|
|
194
|
+
isTargetLastValidMonth = prevMonthDate ? hasSameMonthAndYear(prevMonthDate, this.min) : false;
|
|
190
195
|
} else if (this.max) {
|
|
191
196
|
const nextMonthDate = dateFromRange(nextMonth(this.activeDate), this.min, this.max);
|
|
192
|
-
isTargetLastValidMonth = hasSameMonthAndYear(nextMonthDate, this.max);
|
|
197
|
+
isTargetLastValidMonth = nextMonthDate ? hasSameMonthAndYear(nextMonthDate, this.max) : false;
|
|
193
198
|
}
|
|
194
199
|
if (isTargetLastValidMonth) {
|
|
195
200
|
if (!this.position) {
|
|
@@ -57,7 +57,7 @@ import type { DialogPlacement } from "./interfaces.js";
|
|
|
57
57
|
*/
|
|
58
58
|
export abstract class Dialog extends LitElement {
|
|
59
59
|
/** Specifies a function to run before the component closes. */
|
|
60
|
-
accessor beforeClose: () => Promise<void
|
|
60
|
+
accessor beforeClose: (() => Promise<void>) | undefined;
|
|
61
61
|
/**
|
|
62
62
|
* When `true`, disables the component's close button.
|
|
63
63
|
*
|
|
@@ -65,7 +65,7 @@ export abstract class Dialog extends LitElement {
|
|
|
65
65
|
*/
|
|
66
66
|
accessor closeDisabled: boolean;
|
|
67
67
|
/** Specifies the component's description. */
|
|
68
|
-
accessor description: string;
|
|
68
|
+
accessor description: string | undefined;
|
|
69
69
|
/**
|
|
70
70
|
* When `true`, the component is draggable.
|
|
71
71
|
*
|
|
@@ -96,7 +96,7 @@ export abstract class Dialog extends LitElement {
|
|
|
96
96
|
* `"extraContainers"` specifies additional focusable elements external to the trap, such as 3rd-party components appending elements to the document body, and
|
|
97
97
|
* `"setReturnFocus"` customizes the element to which focus is returned when the trap is deactivated. Return `false` to prevent focus return, or `undefined` to use the default behavior (returning focus to the element focused before activation).
|
|
98
98
|
*/
|
|
99
|
-
accessor focusTrapOptions: Partial<FocusTrapOptions
|
|
99
|
+
accessor focusTrapOptions: Partial<FocusTrapOptions> | undefined;
|
|
100
100
|
/**
|
|
101
101
|
* When `true`, the component will not display at fullscreen, which may be desired in limited display areas, such as mobile devices.
|
|
102
102
|
*
|
|
@@ -104,11 +104,11 @@ export abstract class Dialog extends LitElement {
|
|
|
104
104
|
*/
|
|
105
105
|
accessor fullscreenDisabled: boolean;
|
|
106
106
|
/** Specifies the component's heading text. */
|
|
107
|
-
accessor heading: string;
|
|
107
|
+
accessor heading: string | undefined;
|
|
108
108
|
/** Specifies the heading level number of the component's `heading` for proper document structure, without affecting visual styling. */
|
|
109
|
-
accessor headingLevel: HeadingLevel;
|
|
109
|
+
accessor headingLevel: HeadingLevel | undefined;
|
|
110
110
|
/** Specifies an icon to display. */
|
|
111
|
-
accessor icon: IconName;
|
|
111
|
+
accessor icon: IconName | undefined;
|
|
112
112
|
/**
|
|
113
113
|
* When `true` and the element direction is right-to-left (`"rtl"`), flips the component`s `icon`.
|
|
114
114
|
*
|
|
@@ -116,7 +116,7 @@ export abstract class Dialog extends LitElement {
|
|
|
116
116
|
*/
|
|
117
117
|
accessor iconFlipRtl: boolean;
|
|
118
118
|
/** Specifies the component's kind, which determines the top border styling. */
|
|
119
|
-
accessor kind: Extract<"brand" | "danger" | "info" | "success" | "warning", Kind
|
|
119
|
+
accessor kind: Extract<"brand" | "danger" | "info" | "success" | "warning", Kind> | undefined;
|
|
120
120
|
/**
|
|
121
121
|
* When `true`, a busy indicator is displayed.
|
|
122
122
|
*
|
|
@@ -182,16 +182,14 @@ export abstract class Dialog extends LitElement {
|
|
|
182
182
|
*/
|
|
183
183
|
accessor scale: Scale;
|
|
184
184
|
/**
|
|
185
|
-
* When `true` and the component is `open`, disables top layer placement.
|
|
186
|
-
*
|
|
187
|
-
* Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
|
|
185
|
+
* 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.
|
|
188
186
|
*
|
|
189
187
|
* @default false
|
|
190
188
|
* @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
|
|
191
189
|
*/
|
|
192
190
|
accessor topLayerDisabled: boolean;
|
|
193
191
|
/** Specifies the component's width. */
|
|
194
|
-
accessor width: Extract<Width, Scale
|
|
192
|
+
accessor width: Extract<Width, Scale> | undefined;
|
|
195
193
|
/**
|
|
196
194
|
* Specifies the component's width.
|
|
197
195
|
*
|
|
@@ -9,7 +9,7 @@ import { g as getStylePixelValue } from "../../chunks/dom.js";
|
|
|
9
9
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
10
10
|
import { g as getDimensionClass } from "../../chunks/dynamicClasses.js";
|
|
11
11
|
import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
12
|
-
import { S as SLOTS$1 } from "../../chunks/
|
|
12
|
+
import { S as SLOTS$1 } from "../../chunks/resources8.js";
|
|
13
13
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
14
14
|
import { u as useFocusTrap } from "../../chunks/useFocusTrap.js";
|
|
15
15
|
import { u as usePreventDocumentScroll } from "../../chunks/usePreventDocumentScroll.js";
|
|
@@ -41,8 +41,8 @@ const SLOTS = {
|
|
|
41
41
|
footerStart: "footer-start",
|
|
42
42
|
footerEnd: "footer-end"
|
|
43
43
|
};
|
|
44
|
-
const initialDragPosition = { x:
|
|
45
|
-
const initialResizePosition = { top:
|
|
44
|
+
const initialDragPosition = { x: 0, y: 0 };
|
|
45
|
+
const initialResizePosition = { top: 0, right: 0, bottom: 0, left: 0 };
|
|
46
46
|
const styles = css`:host{--calcite-dialog-scrim-background-color: rgba(0, 0, 0, .85);pointer-events:none;inset:0;display:flex;--calcite-internal-dialog-animation-offset: 20px}:host([top-layer-disabled]),:host([top-layer-disabled]) .container,:host([embedded]),.container--embedded{z-index:var(--calcite-z-index-overlay)}:host([embedded][modal]){position:absolute}.container{pointer-events:auto;position:fixed;inset:0;display:flex;block-size:100%;inline-size:100%;align-items:center;justify-content:center;overflow:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) ease-in-out}:host([placement=top]) .container{align-items:flex-start;justify-content:center}:host([placement=top-start]) .container{align-items:flex-start;justify-content:flex-start}:host([placement=top-end]) .container{align-items:flex-start;justify-content:flex-end}:host([placement=bottom]) .container{align-items:flex-end;justify-content:center}:host([placement=bottom-start]) .container{align-items:flex-end;justify-content:flex-start}:host([placement=bottom-end]) .container{align-items:flex-end;justify-content:flex-end}:host(:not([modal])) .container{pointer-events:none}:host([scale=s]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-sm));--calcite-internal-dialog-min-size-x: 198px;--calcite-internal-dialog-min-size-y: 140px}:host([scale=m]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-md));--calcite-internal-dialog-min-size-x: 288px;--calcite-internal-dialog-min-size-y: 180px}:host([scale=l]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-md-plus));--calcite-internal-dialog-min-size-x: 388px;--calcite-internal-dialog-min-size-y: 220px}.scrim{--calcite-scrim-background: var(--calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim));--calcite-scrim-background-color: var( --calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim) );position:fixed;inset:0;display:flex;overflow-y:hidden;z-index:calc(var(--calcite-z-index) * -1)}:host([top-layer-disabled]) .scrim{z-index:unset}calcite-panel{--calcite-panel-content-space: var(--calcite-dialog-content-space, var(--calcite-internal-dialog-content-padding));--calcite-panel-content-top-space: var( --calcite-dialog-content-top-space, var(--calcite-internal-dialog-content-padding) );--calcite-panel-content-bottom-space: var( --calcite-dialog-content-bottom-space, var(--calcite-internal-dialog-content-padding) );--calcite-panel-footer-space: var(--calcite-dialog-footer-space);--calcite-panel-border-color: var(--calcite-dialog-border-color);--calcite-panel-background-color: var(--calcite-dialog-background-color, var(--calcite-color-foreground-1));--calcite-panel-icon-color: var(--calcite-dialog-icon-color);--calcite-panel-heading-text-color: var(--calcite-dialog-heading-text-color);--calcite-panel-description-text-color: var(--calcite-dialog-description-text-color);--calcite-panel-header-background-color: var(--calcite-dialog-header-background-color);--calcite-panel-header-action-background-color: var(--calcite-dialog-header-action-background-color);--calcite-panel-header-action-background-color-hover: var(--calcite-dialog-header-action-background-color-hover);--calcite-panel-header-action-background-color-press: var(--calcite-dialog-header-action-background-color-press);--calcite-panel-header-action-text-color: var(--calcite-dialog-header-action-text-color);--calcite-panel-header-action-text-color-press: var(--calcite-dialog-header-action-text-color-press);--calcite-panel-footer-background-color: var(--calcite-dialog-footer-background-color);--calcite-panel-space: var(--calcite-dialog-space, var(--calcite-internal-dialog-content-padding));--calcite-panel-header-content-space: var(--calcite-dialog-header-content-space, var(--calcite-dialog-content-space));--calcite-popover-border-color: var(--calcite-dialog-action-menu-border-color, var(--calcite-color-border-1));--calcite-panel-corner-radius: var(--calcite-dialog-corner-radius)}:host([kind=brand]) calcite-panel{--calcite-panel-icon-color: var(--calcite-dialog-icon-color, var(--calcite-color-brand))}:host([kind=danger]) calcite-panel{--calcite-panel-icon-color: var(--calcite-dialog-icon-color, var(--calcite-color-status-danger))}:host([kind=info]) calcite-panel{--calcite-panel-icon-color: var(--calcite-dialog-icon-color, var(--calcite-color-status-info))}:host([kind=success]) calcite-panel{--calcite-panel-icon-color: var(--calcite-dialog-icon-color, var(--calcite-color-status-success))}:host([kind=warning]) calcite-panel{--calcite-panel-icon-color: var(--calcite-dialog-icon-color, var(--calcite-color-status-warning))}::slotted(*){--calcite-panel-background-color: initial}[popover]{padding:0;border:none;background-color:transparent;position:fixed;display:flex}[popover]:popover-open{display:flex}.dialog{pointer-events:none;position:relative;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;opacity:0;box-shadow:var(--calcite-shadow-md);-webkit-overflow-scrolling:touch;visibility:hidden;transition:inset-block-start var(--calcite-internal-animation-timing-slow) ease-in-out allow-discrete,opacity var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:var(--calcite-dialog-corner-radius, var(--calcite-corner-radius-sm));min-inline-size:var(--calcite-dialog-min-size-x, var(--calcite-internal-dialog-min-size-x));max-inline-size:var(--calcite-dialog-max-size-x, 100%);min-block-size:var(--calcite-dialog-min-size-y, var(--calcite-internal-dialog-min-size-y));max-block-size:var(--calcite-dialog-max-size-y, 100%);--calcite-internal-dialog-hidden-position: calc( var(--calcite-dialog-offset-y, 0px) + var(--calcite-internal-dialog-animation-offset) );--calcite-internal-dialog-shown-position: var(--calcite-dialog-offset-y, 0);inset-inline-start:var(--calcite-dialog-offset-x, 0);inset-block-start:var(--calcite-internal-dialog-hidden-position)}:host([top-layer-disabled]) .dialog,:host([embedded]) .dialog{z-index:var(--calcite-z-index-modal)}:host([menu-open]) .dialog{transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) ease-in-out}.panel{visibility:hidden;opacity:0;border-radius:var(--calcite-dialog-corner-radius, var(--calcite-corner-radius-sm));transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) ease-in-out}.container--open .panel{visibility:visible;opacity:1;transition:visibility 0ms linear,opacity var(--calcite-internal-animation-timing-slow) ease-in-out}.container--open{opacity:1;visibility:visible;transition-delay:0ms}.container--open .dialog{pointer-events:auto;visibility:visible;opacity:1;transition:inset-block-start var(--calcite-internal-animation-timing-slow) ease-in-out allow-discrete,opacity var(--calcite-internal-animation-timing-slow) ease-in-out;transition-delay:0ms}.width-s{inline-size:auto;inline-size:var(--calcite-dialog-size-x, 32rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width:35rem){:host(:not([fullscreen-disabled])) .width-s{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}}.width-m{inline-size:var(--calcite-dialog-size-x, 48rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width:51rem){:host(:not([fullscreen-disabled])) .width-m{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}}.width-l{inline-size:var(--calcite-dialog-size-x, 94rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width:97rem){:host(:not([fullscreen-disabled])) .width-l{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}}:host([placement=cover]) .dialog{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0}:host([placement=cover]) .panel{border-radius:0}:host([kind]) .panel{border-start-start-radius:0px;border-start-end-radius:0px}:host([kind]) .dialog{overflow:hidden}:host([kind=brand]) .dialog{border-color:var(--calcite-color-brand)}:host([kind=danger]) .dialog{border-color:var(--calcite-dialog-accent-color, var(--calcite-color-status-danger))}:host([kind=info]) .dialog{border-color:var(--calcite-dialog-accent-color, var(--calcite-color-status-info))}:host([kind=success]) .dialog{border-color:var(--calcite-dialog-accent-color, var(--calcite-color-status-success))}:host([kind=warning]) .dialog{border-color:var(--calcite-dialog-accent-color, var(--calcite-color-status-warning))}:host([open]) .dialog{inset-block-start:var(--calcite-internal-dialog-shown-position)}@starting-style{:host([open]) .dialog{inset-block-start:var(--calcite-internal-dialog-hidden-position);opacity:0}}:host([kind=brand][open]) .dialog,:host([kind=danger][open]) .dialog,:host([kind=info][open]) .dialog,:host([kind=success][open]) .dialog,:host([kind=warning][open]) .dialog{border-width:0px;border-block-start-width:4px;border-style:solid}.container--embedded{position:absolute;pointer-events:auto}.container--embedded calcite-scrim{position:absolute}.assistive-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}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
47
47
|
class Dialog extends LitElement {
|
|
48
48
|
constructor() {
|
|
@@ -70,7 +70,6 @@ class Dialog extends LitElement {
|
|
|
70
70
|
this.panelRef = createRef();
|
|
71
71
|
this.popoverRef = createRef();
|
|
72
72
|
this.resizePosition = { ...initialResizePosition };
|
|
73
|
-
this.transitionEl = null;
|
|
74
73
|
this.messages = useT9n();
|
|
75
74
|
this.focusSetter = useSetFocus()(this);
|
|
76
75
|
this.sizeOverride = useSizeOverride({
|
|
@@ -327,13 +326,13 @@ class Dialog extends LitElement {
|
|
|
327
326
|
return;
|
|
328
327
|
}
|
|
329
328
|
if (!dragEnabled && !resizable) {
|
|
330
|
-
transitionEl.style.transform =
|
|
329
|
+
transitionEl.style.transform = "";
|
|
331
330
|
return;
|
|
332
331
|
}
|
|
333
332
|
const { top, right, bottom, left } = this.getAdjustedResizePosition(resizePosition);
|
|
334
333
|
const translateX = Math.round(x + left + right);
|
|
335
334
|
const translateY = Math.round(y + top + bottom);
|
|
336
|
-
this.transitionEl.style.transform = translateX || translateY ? `translate(${translateX}px, ${translateY}px)` :
|
|
335
|
+
this.transitionEl.style.transform = translateX || translateY ? `translate(${translateX}px, ${translateY}px)` : "";
|
|
337
336
|
}
|
|
338
337
|
cleanUpInteractions() {
|
|
339
338
|
this.interaction?.unset();
|
|
@@ -491,7 +490,7 @@ class Dialog extends LitElement {
|
|
|
491
490
|
[CSS.container]: true,
|
|
492
491
|
[CSS.containerOpen]: opened,
|
|
493
492
|
[CSS.containerEmbedded]: this.embedded
|
|
494
|
-
})} .popover=${!this.embedded ? "manual" :
|
|
493
|
+
})} .popover=${!this.embedded ? "manual" : void 0} role=dialog ${ref(this.popoverRef)}>${this.modal ? html`<calcite-scrim class=${safeClassMap(CSS.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>` : null}<div class=${safeClassMap({
|
|
495
494
|
[CSS.dialog]: true,
|
|
496
495
|
[getDimensionClass("width", this.width, this.widthScale)]: !!(this.width || this.widthScale)
|
|
497
496
|
})} @keydown=${this.handleKeyDown} ${ref(this.setTransitionEl)}>${assistiveText ? keyed("assistive-text", html`<div aria-live=polite class=${safeClassMap(CSS.assistiveText)}>${assistiveText}</div>`) : null}<slot name=${SLOTS.customContent}><calcite-panel class=${safeClassMap(CSS.panel)} .closable=${!this.closeDisabled} .description=${description} .heading=${heading} .headingLevel=${this.headingLevel} .hidden=${!this.opened} .icon=${icon} .iconFlipRtl=${iconFlipRtl} .loading=${this.loading} .menuOpen=${this.menuOpen} .messageOverrides=${this.messageOverrides} @calcitePanelClose=${this.handleInternalPanelCloseClick} @calcitePanelScroll=${this.handleInternalPanelScroll} @keydown=${this.handlePanelKeyDown} .overlayPositioning=${this.overlayPositioning} .scale=${this.scale} .topLayerDisabled=${this.topLayerDisabled} ${ref(this.panelRef)}><slot name=${SLOTS.actionBar} slot=${SLOTS$1.actionBar}></slot><slot name=${SLOTS.alerts} slot=${SLOTS$1.alerts}></slot><slot name=${SLOTS.headerActionsStart} slot=${SLOTS$1.headerActionsStart}></slot><slot name=${SLOTS.headerActionsEnd} slot=${SLOTS$1.headerActionsEnd}></slot><slot name=${SLOTS.description} slot=${SLOTS$1.description}></slot><slot name=${SLOTS.heading} slot=${SLOTS$1.heading}></slot><slot name=${SLOTS.headerContent} slot=${SLOTS$1.headerContent}></slot><slot name=${SLOTS.headerMenuActions} slot=${SLOTS$1.headerMenuActions}></slot><slot name=${SLOTS.fab} slot=${SLOTS$1.fab}></slot><slot name=${SLOTS.contentTop} slot=${SLOTS$1.contentTop}></slot><slot name=${SLOTS.contentBottom} slot=${SLOTS$1.contentBottom}></slot><slot name=${SLOTS.footerStart} slot=${SLOTS$1.footerStart}></slot><slot name=${SLOTS.footer} slot=${SLOTS$1.footer}></slot><slot name=${SLOTS.footerEnd} slot=${SLOTS$1.footerEnd}></slot><slot></slot></calcite-panel></slot></div></div>`;
|