@esri/calcite-components 5.1.0-next.2 → 5.1.0-next.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cdn/{6FFNT4VB.js → 22XKB6L2.js} +1 -1
- package/dist/cdn/2ND3XOXB.js +2 -0
- package/dist/cdn/{3OQCCQAJ.js → 2Q6MQE6T.js} +1 -1
- package/dist/cdn/{4MQ5CZTF.js → 2XVLD3TZ.js} +1 -1
- package/dist/cdn/{Y6RV3XPM.js → 33V2IPQH.js} +1 -1
- package/dist/cdn/{5ZWBTARS.js → 34BXSIOX.js} +1 -1
- package/dist/cdn/{6X5WFIW5.js → 35Q7CXJB.js} +1 -1
- package/dist/cdn/37VSXK5O.js +2 -0
- package/dist/cdn/3CDHZWYP.js +2 -0
- package/dist/cdn/{TCKCRZZG.js → 3IF37WUQ.js} +1 -1
- package/dist/cdn/3IQMWIFS.js +2 -0
- package/dist/cdn/{FMIBYPIO.js → 3S662424.js} +1 -1
- package/dist/cdn/{UGAIXYET.js → 3SWUKX6P.js} +1 -1
- package/dist/cdn/{PTWMPI4U.js → 43ECFDRW.js} +1 -1
- package/dist/cdn/{K4PA2IDP.js → 4EKI2TS2.js} +1 -1
- package/dist/cdn/{UESTEIYV.js → 4GJOKYCB.js} +1 -1
- package/dist/cdn/{TYM7TD6F.js → 4J7HS5YA.js} +1 -1
- package/dist/cdn/{MDWM7MQB.js → 4R7TH7RM.js} +1 -1
- package/dist/cdn/4ZVYMW4R.js +2 -0
- package/dist/cdn/5BFKLHYH.js +2 -0
- package/dist/cdn/{NKEMXHJM.js → 5BKPHZLL.js} +1 -1
- package/dist/cdn/{YBWDSUDY.js → 5PG6RO6R.js} +1 -1
- package/dist/cdn/{J4VYBUOS.js → 5SYSB6PQ.js} +1 -1
- package/dist/cdn/{YJ3UDYOD.js → 5YRGOB35.js} +1 -1
- package/dist/cdn/{LQSWBMAX.js → 65XNSH5M.js} +1 -1
- package/dist/cdn/{RKMP4RCA.js → 6FF3HY6P.js} +1 -1
- package/dist/cdn/6IWW6D4Q.js +2 -0
- package/dist/cdn/{5CJJBSEE.js → 6JIWRVMQ.js} +1 -1
- package/dist/cdn/6LGGSSEY.js +2 -0
- package/dist/cdn/{HYV6NNWJ.js → 6MFE65M7.js} +1 -1
- package/dist/cdn/747JJOW4.js +2 -0
- package/dist/cdn/7ARRBS5G.js +2 -0
- package/dist/cdn/7AUICBFO.js +2 -0
- package/dist/cdn/A2DYZ7KQ.js +2 -0
- package/dist/cdn/A7N4H6JN.js +2 -0
- package/dist/cdn/{EVZELQEI.js → AAGY3YJ7.js} +1 -1
- package/dist/cdn/AEBTTP5H.js +2 -0
- package/dist/cdn/{QLF7GIME.js → AGBEMZDL.js} +1 -1
- package/dist/cdn/{NEGL7QRS.js → AK7KUDIJ.js} +1 -1
- package/dist/cdn/AOYI3MHS.js +2 -0
- package/dist/cdn/{JIGD5HQV.js → APFLOHNZ.js} +1 -1
- package/dist/cdn/{TK4U4Q2X.js → BIF6KXKQ.js} +1 -1
- package/dist/cdn/BKJJCMX4.js +2 -0
- package/dist/cdn/{5SEIMSSA.js → BSYDNQR7.js} +1 -1
- package/dist/cdn/CCTXSUHA.js +2 -0
- package/dist/cdn/CEXPPEKJ.js +2 -0
- package/dist/cdn/{Z57WK5OX.js → CL43RPXK.js} +1 -1
- package/dist/cdn/{WVRTQO4B.js → CSKNNH35.js} +1 -1
- package/dist/cdn/CXGNIXAV.js +2 -0
- package/dist/cdn/DETRASAF.js +2 -0
- package/dist/cdn/DHLKLAP6.js +2 -0
- package/dist/cdn/DR6VZF53.js +2 -0
- package/dist/cdn/E5DWOMKZ.js +2 -0
- package/dist/cdn/EG75BB6B.js +2 -0
- package/dist/cdn/{DMDJK57V.js → EMJKLNR4.js} +1 -1
- package/dist/cdn/{6ZH5C6LA.js → EO5GCJJV.js} +1 -1
- package/dist/cdn/FC4DWB55.js +2 -0
- package/dist/cdn/{TW6ZPWM5.js → FNOFA6MK.js} +1 -1
- package/dist/cdn/{RNNM37GO.js → FOUAYGO6.js} +1 -1
- package/dist/cdn/{C3DQT3XL.js → FPKEUKFD.js} +1 -1
- package/dist/cdn/{KZV4YUNF.js → FSDARZEV.js} +1 -1
- package/dist/cdn/{RSTWTSXK.js → G7AWCCCH.js} +1 -1
- package/dist/cdn/GEIVQQFF.js +2 -0
- package/dist/cdn/GFNPHHGH.js +2 -0
- package/dist/cdn/{JKZNKJ4E.js → GJ2MIGPB.js} +1 -1
- package/dist/cdn/{4EKGFJEY.js → GNO6NIDO.js} +1 -1
- package/dist/cdn/GZ6K7LNT.js +2 -0
- package/dist/cdn/{Q5NGOFZW.js → HILQEGLN.js} +2 -2
- package/dist/cdn/HJAJCQ53.js +4 -0
- package/dist/cdn/HMIQEO2S.js +2 -0
- package/dist/cdn/HN7YLZ6M.js +2 -0
- package/dist/cdn/HW3UQOSI.js +2 -0
- package/dist/cdn/IAGRDQVJ.js +2 -0
- package/dist/cdn/{3FZCUBZ5.js → IDLD4TJI.js} +1 -1
- package/dist/cdn/{IHZTOERI.js → IGWUZHRW.js} +1 -1
- package/dist/cdn/{EBETKN7W.js → IJL7WHJH.js} +1 -1
- package/dist/cdn/{6LZSRXWZ.js → IXXA5MXT.js} +1 -1
- package/dist/cdn/{HJ2TBW6C.js → J2LJDPBH.js} +1 -1
- package/dist/cdn/{TEQEYTGC.js → JI243GXJ.js} +1 -1
- package/dist/cdn/{GUIMHKM6.js → JTRCCPJ2.js} +1 -1
- package/dist/cdn/K5XNTGK5.js +2 -0
- package/dist/cdn/{OEVO2RLE.js → K7F64AHY.js} +1 -1
- package/dist/cdn/KALRNYQ2.js +2 -0
- package/dist/cdn/{YLAVIMGA.js → KDRNERSH.js} +1 -1
- package/dist/cdn/{GIYRIRXI.js → KJVA6E2I.js} +1 -1
- package/dist/cdn/KSBS65AF.js +2 -0
- package/dist/cdn/{ZZKXTLEP.js → KUENIL4Q.js} +1 -1
- package/dist/cdn/KYXHUQO2.js +2 -0
- package/dist/cdn/{HZECPHN5.js → KZCGSXGE.js} +1 -1
- package/dist/cdn/LBECSCAI.js +2 -0
- package/dist/cdn/{UX4AYCFF.js → LIT2ZBYQ.js} +1 -1
- package/dist/cdn/LNNIQGL6.js +2 -0
- package/dist/cdn/{FWH3M3KQ.js → LRZIF5Z2.js} +1 -1
- package/dist/cdn/{GIOGHX6Y.js → LZAKOA3H.js} +1 -1
- package/dist/cdn/{P7COCJFG.js → LZKKDKO3.js} +1 -1
- package/dist/cdn/{OXEUDPTB.js → M5VNK3SL.js} +1 -1
- package/dist/cdn/M6F43LEL.js +2 -0
- package/dist/cdn/MJ3CNOP2.js +2 -0
- package/dist/cdn/{KXFAVNUY.js → MVXTNNYH.js} +1 -1
- package/dist/cdn/MYNLP4LV.js +2 -0
- package/dist/cdn/{DZ5ORZ4Q.js → NAU42FZ3.js} +1 -1
- package/dist/cdn/{5P6O6RLU.js → NGHLVZ5Z.js} +1 -1
- package/dist/cdn/NKYLFLID.js +2 -0
- package/dist/cdn/{2UHPDM22.js → NMP66VIP.js} +1 -1
- package/dist/cdn/{RP555FJ5.js → NU7ERMRB.js} +1 -1
- package/dist/cdn/OCNCRS4K.js +2 -0
- package/dist/cdn/OLQYSX3N.js +2 -0
- package/dist/cdn/{DRLHDQPQ.js → OT2IKALC.js} +1 -1
- package/dist/cdn/{WJHLGJ6O.js → OWWH7MYD.js} +1 -1
- package/dist/cdn/{GE4DYP44.js → PGIGDANJ.js} +1 -1
- package/dist/cdn/{7CBKFWUR.js → PO273LF4.js} +1 -1
- package/dist/cdn/{WNRXPDBD.js → PT6ADKEI.js} +1 -1
- package/dist/cdn/Q2O7NHUL.js +2 -0
- package/dist/cdn/QX6ER6VK.js +2 -0
- package/dist/cdn/{FC2NRQ3K.js → R4LVYLB2.js} +1 -1
- package/dist/cdn/R5KVVGDA.js +2 -0
- package/dist/cdn/{DMJB2C34.js → RSDXSUIF.js} +1 -1
- package/dist/cdn/{QXYIZ2BN.js → TDA6QWEL.js} +1 -1
- package/dist/cdn/THYUXLYU.js +2 -0
- package/dist/cdn/{PV7SEUP6.js → TYYJSPYN.js} +1 -1
- package/dist/cdn/{74RBOHVA.js → U5EPLWST.js} +1 -1
- package/dist/cdn/{64ZF22ED.js → UG7HIJW4.js} +1 -1
- package/dist/cdn/UNDK7VDZ.js +2 -0
- package/dist/cdn/{X6VUCHWA.js → VAATS4VT.js} +1 -1
- package/dist/cdn/VQVJN235.js +2 -0
- package/dist/cdn/W4A5PMYP.js +2 -0
- package/dist/cdn/{VZ5KSWMD.js → W5VKWHFZ.js} +1 -1
- package/dist/cdn/{7MFNGV4Q.js → X2VL5BEL.js} +1 -1
- package/dist/cdn/{XMSAQFKD.js → X5ULB62C.js} +1 -1
- package/dist/cdn/{VXTDQHCD.js → XTO65SGO.js} +1 -1
- package/dist/cdn/{M7KMYURY.js → XUYHFX7W.js} +1 -1
- package/dist/cdn/{P3RRIB6Y.js → XYW2MCB2.js} +1 -1
- package/dist/cdn/Y2U5TA3X.js +2 -0
- package/dist/cdn/{3OR2XXEV.js → YC4UPHSG.js} +1 -1
- package/dist/cdn/YGNRRM3Y.js +2 -0
- package/dist/cdn/YR3YYXCG.js +2 -0
- package/dist/cdn/YWPPHMLR.js +2 -0
- package/dist/cdn/Z2E6QX3D.js +2 -0
- package/dist/cdn/{KAXRYSAQ.js → ZQEGCVMZ.js} +1 -1
- package/dist/cdn/{BELEG27X.js → ZXODWFIV.js} +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/icon/bicycleTravelMode16.json +1 -0
- package/dist/cdn/assets/icon/bicycleTravelMode16F.json +1 -0
- package/dist/cdn/assets/icon/bicycleTravelMode24.json +1 -0
- package/dist/cdn/assets/icon/bicycleTravelMode24F.json +1 -0
- package/dist/cdn/assets/icon/bicycleTravelMode32.json +1 -0
- package/dist/cdn/assets/icon/bicycleTravelMode32F.json +1 -0
- package/dist/cdn/assets/icon/busTravelMode16.json +1 -0
- package/dist/cdn/assets/icon/busTravelMode16F.json +1 -0
- package/dist/cdn/assets/icon/busTravelMode24.json +1 -0
- package/dist/cdn/assets/icon/busTravelMode24F.json +1 -0
- package/dist/cdn/assets/icon/busTravelMode32.json +1 -0
- package/dist/cdn/assets/icon/busTravelMode32F.json +1 -0
- package/dist/cdn/assets/icon/carTravelMode16.json +1 -0
- package/dist/cdn/assets/icon/carTravelMode16F.json +1 -0
- package/dist/cdn/assets/icon/carTravelMode24.json +1 -0
- package/dist/cdn/assets/icon/carTravelMode24F.json +1 -0
- package/dist/cdn/assets/icon/carTravelMode32.json +1 -0
- package/dist/cdn/assets/icon/carTravelMode32F.json +1 -0
- package/dist/cdn/assets/icon/emergency16.json +1 -0
- package/dist/cdn/assets/icon/emergency16F.json +1 -0
- package/dist/cdn/assets/icon/emergency24.json +1 -0
- package/dist/cdn/assets/icon/emergency24F.json +1 -0
- package/dist/cdn/assets/icon/emergency32.json +1 -0
- package/dist/cdn/assets/icon/emergency32F.json +1 -0
- package/dist/cdn/assets/icon/eyedropper16.json +1 -1
- package/dist/cdn/assets/icon/eyedropper24.json +1 -1
- package/dist/cdn/assets/icon/eyedropper32.json +1 -1
- package/dist/cdn/assets/icon/fileBim16.json +1 -0
- package/dist/cdn/assets/icon/fileBim24.json +1 -0
- package/dist/cdn/assets/icon/fileBim32.json +1 -0
- package/dist/cdn/assets/icon/fileDwg16.json +1 -0
- package/dist/cdn/assets/icon/fileDwg24.json +1 -0
- package/dist/cdn/assets/icon/fileDwg32.json +1 -0
- package/dist/cdn/assets/icon/fileRvt16.json +1 -0
- package/dist/cdn/assets/icon/fileRvt24.json +1 -0
- package/dist/cdn/assets/icon/fileRvt32.json +1 -0
- package/dist/cdn/assets/icon/gradient16.json +1 -0
- package/dist/cdn/assets/icon/gradient24.json +1 -0
- package/dist/cdn/assets/icon/gradient32.json +1 -0
- package/dist/cdn/assets/icon/layerStreamSetting16.json +1 -0
- package/dist/cdn/assets/icon/layerStreamSetting24.json +1 -0
- package/dist/cdn/assets/icon/layerStreamSetting32.json +1 -0
- package/dist/cdn/assets/icon/mopedTravelMode16.json +1 -0
- package/dist/cdn/assets/icon/mopedTravelMode16F.json +1 -0
- package/dist/cdn/assets/icon/mopedTravelMode24.json +1 -0
- package/dist/cdn/assets/icon/mopedTravelMode24F.json +1 -0
- package/dist/cdn/assets/icon/mopedTravelMode32.json +1 -0
- package/dist/cdn/assets/icon/mopedTravelMode32F.json +1 -0
- package/dist/cdn/assets/icon/motorcycleTravelMode16.json +1 -0
- package/dist/cdn/assets/icon/motorcycleTravelMode16F.json +1 -0
- package/dist/cdn/assets/icon/motorcycleTravelMode24.json +1 -0
- package/dist/cdn/assets/icon/motorcycleTravelMode24F.json +1 -0
- package/dist/cdn/assets/icon/motorcycleTravelMode32.json +1 -0
- package/dist/cdn/assets/icon/motorcycleTravelMode32F.json +1 -0
- package/dist/cdn/assets/icon/publish16.json +1 -0
- package/dist/cdn/assets/icon/publish24.json +1 -0
- package/dist/cdn/assets/icon/publish32.json +1 -0
- package/dist/cdn/assets/icon/scooterTravelMode16.json +1 -0
- package/dist/cdn/assets/icon/scooterTravelMode16F.json +1 -0
- package/dist/cdn/assets/icon/scooterTravelMode24.json +1 -0
- package/dist/cdn/assets/icon/scooterTravelMode24F.json +1 -0
- package/dist/cdn/assets/icon/scooterTravelMode32.json +1 -0
- package/dist/cdn/assets/icon/scooterTravelMode32F.json +1 -0
- package/dist/cdn/assets/icon/shuttleTravelMode16.json +1 -0
- package/dist/cdn/assets/icon/shuttleTravelMode16F.json +1 -0
- package/dist/cdn/assets/icon/shuttleTravelMode24.json +1 -0
- package/dist/cdn/assets/icon/shuttleTravelMode24F.json +1 -0
- package/dist/cdn/assets/icon/shuttleTravelMode32.json +1 -0
- package/dist/cdn/assets/icon/shuttleTravelMode32F.json +1 -0
- package/dist/cdn/assets/icon/strollerTravelMode16.json +1 -0
- package/dist/cdn/assets/icon/strollerTravelMode16F.json +1 -0
- package/dist/cdn/assets/icon/strollerTravelMode24.json +1 -0
- package/dist/cdn/assets/icon/strollerTravelMode24F.json +1 -0
- package/dist/cdn/assets/icon/strollerTravelMode32.json +1 -0
- package/dist/cdn/assets/icon/strollerTravelMode32F.json +1 -0
- package/dist/cdn/assets/icon/trainTravelMode16.json +1 -0
- package/dist/cdn/assets/icon/trainTravelMode16F.json +1 -0
- package/dist/cdn/assets/icon/trainTravelMode24.json +1 -0
- package/dist/cdn/assets/icon/trainTravelMode24F.json +1 -0
- package/dist/cdn/assets/icon/trainTravelMode32.json +1 -0
- package/dist/cdn/assets/icon/trainTravelMode32F.json +1 -0
- package/dist/cdn/assets/icon/tramTravelMode16.json +1 -0
- package/dist/cdn/assets/icon/tramTravelMode16F.json +1 -0
- package/dist/cdn/assets/icon/tramTravelMode24.json +1 -0
- package/dist/cdn/assets/icon/tramTravelMode24F.json +1 -0
- package/dist/cdn/assets/icon/tramTravelMode32.json +1 -0
- package/dist/cdn/assets/icon/tramTravelMode32F.json +1 -0
- package/dist/cdn/assets/icon/truckTravelMode16.json +1 -0
- package/dist/cdn/assets/icon/truckTravelMode16F.json +1 -0
- package/dist/cdn/assets/icon/truckTravelMode24.json +1 -0
- package/dist/cdn/assets/icon/truckTravelMode24F.json +1 -0
- package/dist/cdn/assets/icon/truckTravelMode32.json +1 -0
- package/dist/cdn/assets/icon/truckTravelMode32F.json +1 -0
- package/dist/cdn/assets/icon/velocityServer16.json +1 -0
- package/dist/cdn/assets/icon/velocityServer24.json +1 -0
- package/dist/cdn/assets/icon/velocityServer32.json +1 -0
- package/dist/cdn/assets/icon/walkingTravelMode16.json +1 -0
- package/dist/cdn/assets/icon/walkingTravelMode16F.json +1 -0
- package/dist/cdn/assets/icon/walkingTravelMode24.json +1 -0
- package/dist/cdn/assets/icon/walkingTravelMode24F.json +1 -0
- package/dist/cdn/assets/icon/walkingTravelMode32.json +1 -0
- package/dist/cdn/assets/icon/walkingTravelMode32F.json +1 -0
- package/dist/cdn/assets/icon/wheelchairTravelMode16.json +1 -0
- package/dist/cdn/assets/icon/wheelchairTravelMode16F.json +1 -0
- package/dist/cdn/assets/icon/wheelchairTravelMode24.json +1 -0
- package/dist/cdn/assets/icon/wheelchairTravelMode24F.json +1 -0
- package/dist/cdn/assets/icon/wheelchairTravelMode32.json +1 -0
- package/dist/cdn/assets/icon/wheelchairTravelMode32F.json +1 -0
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/ExpandToggle.js +4 -5
- package/dist/chunks/dom.js +20 -26
- package/dist/chunks/floating-ui.js +3 -6
- package/dist/chunks/form.js +0 -1
- package/dist/chunks/label.js +1 -1
- package/dist/chunks/locale.js +29 -12
- package/dist/chunks/openCloseComponent.js +1 -1
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/useFocusTrap.js +1 -1
- package/dist/chunks/useForm.js +292 -0
- package/dist/chunks/useReferenceElement.js +505 -0
- package/dist/chunks/useSetFocus.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/components/calcite-accordion-item/customElement.d.ts +5 -5
- package/dist/components/calcite-accordion-item/customElement.js +4 -3
- package/dist/components/calcite-action/customElement.d.ts +7 -7
- package/dist/components/calcite-action-bar/customElement.d.ts +18 -1
- package/dist/components/calcite-action-bar/customElement.js +40 -13
- package/dist/components/calcite-action-group/customElement.d.ts +6 -0
- package/dist/components/calcite-action-group/customElement.js +38 -13
- package/dist/components/calcite-action-pad/customElement.js +4 -2
- package/dist/components/calcite-alert/customElement.js +2 -2
- package/dist/components/calcite-autocomplete/customElement.js +3 -1
- package/dist/components/calcite-avatar/customElement.js +1 -1
- package/dist/components/calcite-block/customElement.d.ts +3 -3
- package/dist/components/calcite-block/customElement.js +2 -2
- package/dist/components/calcite-block-group/customElement.js +1 -1
- package/dist/components/calcite-button/customElement.js +1 -1
- package/dist/components/calcite-card/customElement.d.ts +3 -3
- package/dist/components/calcite-card-group/customElement.d.ts +1 -1
- package/dist/components/calcite-carousel/customElement.js +27 -25
- package/dist/components/calcite-checkbox/customElement.d.ts +1 -1
- package/dist/components/calcite-checkbox/customElement.js +9 -9
- package/dist/components/calcite-chip/customElement.d.ts +1 -1
- package/dist/components/calcite-chip/customElement.js +1 -1
- package/dist/components/calcite-chip-group/customElement.js +1 -1
- package/dist/components/calcite-color-picker/customElement.js +4 -2
- package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
- package/dist/components/calcite-combobox/customElement.d.ts +13 -3
- package/dist/components/calcite-combobox/customElement.js +25 -18
- package/dist/components/calcite-combobox-item/customElement.d.ts +1 -1
- package/dist/components/calcite-combobox-item/customElement.js +10 -4
- package/dist/components/calcite-date-picker-month/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month-header/customElement.js +2 -2
- package/dist/components/calcite-dialog/customElement.d.ts +2 -0
- package/dist/components/calcite-dialog/customElement.js +2 -2
- package/dist/components/calcite-dropdown/customElement.d.ts +2 -2
- package/dist/components/calcite-dropdown/customElement.js +143 -82
- package/dist/components/calcite-dropdown-item/customElement.d.ts +1 -1
- package/dist/components/calcite-dropdown-item/customElement.js +14 -32
- package/dist/components/calcite-filter/customElement.js +4 -2
- package/dist/components/calcite-flow-item/customElement.d.ts +5 -3
- package/dist/components/calcite-flow-item/customElement.js +4 -4
- package/dist/components/calcite-icon/customElement.d.ts +1 -1
- package/dist/components/calcite-icon/customElement.js +4 -3
- package/dist/components/calcite-inline-editable/customElement.js +1 -1
- package/dist/components/calcite-input/customElement.d.ts +1 -1
- package/dist/components/calcite-input/customElement.js +19 -28
- package/dist/components/calcite-input-date-picker/customElement.d.ts +2 -2
- package/dist/components/calcite-input-date-picker/customElement.js +33 -14
- package/dist/components/calcite-input-message/customElement.d.ts +1 -1
- package/dist/components/calcite-input-message/customElement.js +1 -1
- package/dist/components/calcite-input-number/customElement.d.ts +1 -1
- package/dist/components/calcite-input-number/customElement.js +16 -28
- package/dist/components/calcite-input-text/customElement.d.ts +1 -1
- package/dist/components/calcite-input-text/customElement.js +15 -27
- package/dist/components/calcite-input-time-picker/customElement.d.ts +1 -1
- package/dist/components/calcite-input-time-picker/customElement.js +13 -11
- package/dist/components/calcite-link/customElement.js +4 -3
- package/dist/components/calcite-list/customElement.js +26 -4
- package/dist/components/calcite-list-item/customElement.js +5 -3
- package/dist/components/calcite-list-item-group/customElement.js +1 -1
- package/dist/components/calcite-loader/customElement.d.ts +1 -1
- package/dist/components/calcite-menu/customElement.js +1 -1
- package/dist/components/calcite-menu-item/customElement.js +4 -2
- package/dist/components/calcite-meter/customElement.d.ts +7 -1
- package/dist/components/calcite-meter/customElement.js +0 -4
- package/dist/components/calcite-navigation/customElement.d.ts +1 -1
- package/dist/components/calcite-notice/customElement.d.ts +2 -2
- package/dist/components/calcite-notice/customElement.js +1 -1
- package/dist/components/calcite-panel/customElement.d.ts +7 -5
- package/dist/components/calcite-panel/customElement.js +2 -2
- package/dist/components/calcite-popover/customElement.d.ts +6 -2
- package/dist/components/calcite-popover/customElement.js +16 -177
- package/dist/components/calcite-progress/customElement.js +3 -2
- package/dist/components/calcite-radio-button/customElement.js +3 -3
- package/dist/components/calcite-rating/customElement.d.ts +1 -1
- package/dist/components/calcite-rating/customElement.js +11 -4
- package/dist/components/calcite-scrim/customElement.js +1 -1
- package/dist/components/calcite-segmented-control/customElement.js +12 -8
- package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
- package/dist/components/calcite-select/customElement.d.ts +1 -1
- package/dist/components/calcite-select/customElement.js +7 -5
- package/dist/components/calcite-sheet/customElement.js +9 -6
- package/dist/components/calcite-shell/customElement.js +1 -1
- package/dist/components/calcite-shell-panel/customElement.js +7 -5
- package/dist/components/calcite-slider/customElement.d.ts +1 -1
- package/dist/components/calcite-slider/customElement.js +10 -7
- package/dist/components/calcite-sort-handle/customElement.d.ts +2 -2
- package/dist/components/calcite-sort-handle/customElement.js +44 -17
- package/dist/components/calcite-sortable-list/customElement.js +1 -1
- package/dist/components/calcite-split-button/customElement.d.ts +3 -3
- package/dist/components/calcite-stepper/customElement.d.ts +2 -2
- package/dist/components/calcite-stepper/customElement.js +31 -44
- package/dist/components/calcite-stepper-item/customElement.js +4 -10
- package/dist/components/calcite-swatch-group/customElement.js +1 -1
- package/dist/components/calcite-switch/customElement.d.ts +3 -3
- package/dist/components/calcite-switch/customElement.js +8 -7
- package/dist/components/calcite-tab/customElement.d.ts +1 -1
- package/dist/components/calcite-tab/customElement.js +1 -1
- package/dist/components/calcite-tab-nav/customElement.js +4 -2
- package/dist/components/calcite-tab-title/customElement.js +5 -3
- package/dist/components/calcite-table-cell/customElement.d.ts +5 -2
- package/dist/components/calcite-table-cell/customElement.js +3 -2
- package/dist/components/calcite-table-header/customElement.d.ts +1 -1
- package/dist/components/calcite-table-row/customElement.d.ts +7 -2
- package/dist/components/calcite-tabs/customElement.js +1 -1
- package/dist/components/calcite-text-area/customElement.d.ts +1 -1
- package/dist/components/calcite-text-area/customElement.js +30 -22
- package/dist/components/calcite-time-picker/customElement.js +3 -2
- package/dist/components/calcite-tooltip/customElement.d.ts +14 -1
- package/dist/components/calcite-tooltip/customElement.js +27 -316
- package/dist/components/calcite-tree/customElement.js +1 -1
- package/dist/components/calcite-tree-item/customElement.js +5 -4
- package/dist/controllers/useForm.d.ts +3 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/supported-browsers.json +1 -1
- package/dist/docs/translations.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +18 -18
- package/dist/types/lumina.d.ts +4 -3
- package/dist/types/preact.d.ts +4 -3
- package/dist/types/react.d.ts +4 -3
- package/dist/types/stencil.d.ts +4 -3
- package/package.json +13 -15
- package/dist/cdn/2U5PSAQA.js +0 -2
- package/dist/cdn/3ET26IGR.js +0 -2
- package/dist/cdn/3GZ2KUSD.js +0 -4
- package/dist/cdn/46JWP6QH.js +0 -2
- package/dist/cdn/4ET37OQN.js +0 -2
- package/dist/cdn/5YSE3JQB.js +0 -2
- package/dist/cdn/6HBOEH4L.js +0 -2
- package/dist/cdn/7D3UIKHB.js +0 -2
- package/dist/cdn/7G65TWZB.js +0 -2
- package/dist/cdn/7OLKRER5.js +0 -2
- package/dist/cdn/AAXLKIZ7.js +0 -2
- package/dist/cdn/AQRVO6YL.js +0 -2
- package/dist/cdn/B2FE5RJQ.js +0 -2
- package/dist/cdn/B4AHIOK6.js +0 -2
- package/dist/cdn/BGBGA5KM.js +0 -2
- package/dist/cdn/BGF7OBO4.js +0 -2
- package/dist/cdn/BPCJT3LK.js +0 -2
- package/dist/cdn/DJLQC7PY.js +0 -2
- package/dist/cdn/DUSXTN5B.js +0 -2
- package/dist/cdn/E4KO2JMO.js +0 -2
- package/dist/cdn/EHHFFQ5C.js +0 -2
- package/dist/cdn/EMG5J5GS.js +0 -2
- package/dist/cdn/GHELPXNP.js +0 -2
- package/dist/cdn/GKESRFN6.js +0 -2
- package/dist/cdn/GLNZPY7U.js +0 -2
- package/dist/cdn/GMX3WN5W.js +0 -2
- package/dist/cdn/HYSVC5WB.js +0 -2
- package/dist/cdn/JAEA43OM.js +0 -2
- package/dist/cdn/K42V3JMR.js +0 -2
- package/dist/cdn/K4M6Q6RD.js +0 -2
- package/dist/cdn/MDFIYOM5.js +0 -2
- package/dist/cdn/MUMMPHC7.js +0 -2
- package/dist/cdn/NFANMRDE.js +0 -2
- package/dist/cdn/NJ5HQYMV.js +0 -2
- package/dist/cdn/NUPSBSY7.js +0 -2
- package/dist/cdn/O6MXDJZR.js +0 -2
- package/dist/cdn/OIRHZD4H.js +0 -2
- package/dist/cdn/PBONW5I3.js +0 -2
- package/dist/cdn/PSEC7XXQ.js +0 -2
- package/dist/cdn/Q5DQBIB4.js +0 -2
- package/dist/cdn/QNC4EF2O.js +0 -2
- package/dist/cdn/QVTOF6TU.js +0 -2
- package/dist/cdn/QVXB52JH.js +0 -2
- package/dist/cdn/QW2CVMVB.js +0 -2
- package/dist/cdn/SX44SDYI.js +0 -2
- package/dist/cdn/TQRHJK6H.js +0 -2
- package/dist/cdn/TTKLVHBH.js +0 -2
- package/dist/cdn/UPHLM2X5.js +0 -2
- package/dist/cdn/UZIHBQZP.js +0 -2
- package/dist/cdn/VZPS55DG.js +0 -2
- package/dist/cdn/X2KQUG6U.js +0 -2
- package/dist/cdn/XXJROKIX.js +0 -2
- package/dist/cdn/XYKEEJWE.js +0 -2
- package/dist/cdn/YBRP4PI7.js +0 -2
- package/dist/cdn/YHK5UJDG.js +0 -2
- package/dist/cdn/Z7C2M7DB.js +0 -2
- package/dist/cdn/ZQIARG3S.js +0 -2
- package/dist/cdn/ZQLGBHLZ.js +0 -2
- package/dist/chunks/FloatingArrow.js +0 -24
- package/dist/chunks/input.js +0 -30
|
@@ -4,7 +4,8 @@ import { repeat } from "lit/directives/repeat.js";
|
|
|
4
4
|
import { css, nothing, html } from "lit";
|
|
5
5
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
6
6
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
|
-
import {
|
|
7
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
8
|
+
import { w as whenAnimationDone, a as slotChangeGetAssignedElements, f as focusElementInGroup } from "../../chunks/dom.js";
|
|
8
9
|
import { g as guid } from "../../chunks/guid.js";
|
|
9
10
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
10
11
|
import { b as breakpoints } from "../../chunks/responsive.js";
|
|
@@ -63,6 +64,7 @@ class Carousel extends LitElement {
|
|
|
63
64
|
};
|
|
64
65
|
this.containerRef = createRef();
|
|
65
66
|
this.containerId = IDS.host(guid());
|
|
67
|
+
this.direction = useDirection();
|
|
66
68
|
this.itemContainerRef = createRef();
|
|
67
69
|
this.resizeHandler = ({ contentRect: { width } }) => {
|
|
68
70
|
this.setMaxItemsToBreakpoint(width);
|
|
@@ -77,7 +79,7 @@ class Carousel extends LitElement {
|
|
|
77
79
|
if (notSuspended) {
|
|
78
80
|
if (time <= 0.01) {
|
|
79
81
|
time = 1;
|
|
80
|
-
this.
|
|
82
|
+
this.itemDirection = "forward";
|
|
81
83
|
this.nextItem(false);
|
|
82
84
|
} else {
|
|
83
85
|
time = time - 0.01;
|
|
@@ -90,7 +92,7 @@ class Carousel extends LitElement {
|
|
|
90
92
|
this.messages = useT9n();
|
|
91
93
|
this.focusSetter = useSetFocus()(this);
|
|
92
94
|
this.interactiveContainer = useInteractive(this);
|
|
93
|
-
this.
|
|
95
|
+
this.itemDirection = "standby";
|
|
94
96
|
this.hasMultiple = false;
|
|
95
97
|
this.items = [];
|
|
96
98
|
this.maxItems = centerItemsByBreakpoint.xxsmall;
|
|
@@ -113,7 +115,7 @@ class Carousel extends LitElement {
|
|
|
113
115
|
this.calciteCarouselStop = createEvent({ cancelable: false });
|
|
114
116
|
}
|
|
115
117
|
static {
|
|
116
|
-
this.properties = {
|
|
118
|
+
this.properties = { itemDirection: [16, {}, { state: true }], hasMultiple: [16, {}, { state: true }], items: [16, {}, { state: true }], maxItems: [16, {}, { state: true }], playing: [16, {}, { state: true }], selectedIndex: [16, {}, { state: true }], slideDurationRemaining: [16, {}, { state: true }], suspendedDueToFocus: [16, {}, { state: true }], suspendedDueToHover: [16, {}, { state: true }], suspendedSlideDurationRemaining: [16, {}, { state: true }], userPreventsSuspend: [16, {}, { state: true }], arrowType: [3, {}, { reflect: true }], autoplay: [3, {}, { reflect: true }], autoplayDuration: [11, {}, { type: Number, reflect: true }], controlOverlay: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], label: 1, messageOverrides: [0, {}, { attribute: false }], paginationDisabled: [5, {}, { type: Boolean }], paused: [5, {}, { type: Boolean }], selectedItem: [0, {}, { attribute: false }] };
|
|
117
119
|
}
|
|
118
120
|
static {
|
|
119
121
|
this.styles = styles;
|
|
@@ -151,8 +153,8 @@ class Carousel extends LitElement {
|
|
|
151
153
|
if (changes.has("autoplay") && this.hasUpdated) {
|
|
152
154
|
this.autoplayWatcher(this.autoplay);
|
|
153
155
|
}
|
|
154
|
-
if (changes.has("
|
|
155
|
-
this.
|
|
156
|
+
if (changes.has("itemDirection") && (this.hasUpdated || this.itemDirection !== "standby")) {
|
|
157
|
+
this.itemDirectionWatcher(this.itemDirection);
|
|
156
158
|
}
|
|
157
159
|
if (changes.has("playing") && (this.hasUpdated || this.playing !== false)) {
|
|
158
160
|
this.paused = !this.playing;
|
|
@@ -171,12 +173,12 @@ class Carousel extends LitElement {
|
|
|
171
173
|
this.handlePause(false);
|
|
172
174
|
}
|
|
173
175
|
}
|
|
174
|
-
async
|
|
175
|
-
if (
|
|
176
|
+
async itemDirectionWatcher(itemDirection) {
|
|
177
|
+
if (itemDirection === "standby" || !this.itemContainerRef.value) {
|
|
176
178
|
return;
|
|
177
179
|
}
|
|
178
|
-
await whenAnimationDone(this.itemContainerRef.value,
|
|
179
|
-
this.
|
|
180
|
+
await whenAnimationDone(this.itemContainerRef.value, itemDirection === "forward" ? "item-forward" : "item-backward");
|
|
181
|
+
this.itemDirection = "standby";
|
|
180
182
|
}
|
|
181
183
|
suspendWatcher() {
|
|
182
184
|
if (!this.suspendedDueToFocus && !this.suspendedDueToHover) {
|
|
@@ -271,15 +273,15 @@ class Carousel extends LitElement {
|
|
|
271
273
|
}
|
|
272
274
|
}
|
|
273
275
|
handleArrowClick(event) {
|
|
274
|
-
const direction = event.target.dataset.
|
|
276
|
+
const direction = event.target.dataset.itemDirection;
|
|
275
277
|
if (this.playing) {
|
|
276
278
|
this.handlePause(true);
|
|
277
279
|
}
|
|
278
280
|
if (direction === "next") {
|
|
279
|
-
this.
|
|
281
|
+
this.itemDirection = "forward";
|
|
280
282
|
this.nextItem(true);
|
|
281
283
|
} else if (direction === "previous") {
|
|
282
|
-
this.
|
|
284
|
+
this.itemDirection = "backward";
|
|
283
285
|
this.previousItem();
|
|
284
286
|
}
|
|
285
287
|
}
|
|
@@ -292,7 +294,7 @@ class Carousel extends LitElement {
|
|
|
292
294
|
if (this.playing) {
|
|
293
295
|
this.handlePause(true);
|
|
294
296
|
}
|
|
295
|
-
this.
|
|
297
|
+
this.itemDirection = requestedPosition > this.selectedIndex ? "forward" : "backward";
|
|
296
298
|
this.setSelectedItem(requestedPosition, true);
|
|
297
299
|
}
|
|
298
300
|
toggleRotation() {
|
|
@@ -361,7 +363,7 @@ class Carousel extends LitElement {
|
|
|
361
363
|
if (!this.hasMultiple) {
|
|
362
364
|
return;
|
|
363
365
|
}
|
|
364
|
-
this.
|
|
366
|
+
this.itemDirection = "forward";
|
|
365
367
|
this.nextItem(true);
|
|
366
368
|
break;
|
|
367
369
|
case "ArrowLeft":
|
|
@@ -369,7 +371,7 @@ class Carousel extends LitElement {
|
|
|
369
371
|
if (!this.hasMultiple) {
|
|
370
372
|
return;
|
|
371
373
|
}
|
|
372
|
-
this.
|
|
374
|
+
this.itemDirection = "backward";
|
|
373
375
|
this.previousItem();
|
|
374
376
|
break;
|
|
375
377
|
case "Home":
|
|
@@ -377,7 +379,7 @@ class Carousel extends LitElement {
|
|
|
377
379
|
if (this.selectedIndex === 0) {
|
|
378
380
|
return;
|
|
379
381
|
}
|
|
380
|
-
this.
|
|
382
|
+
this.itemDirection = "backward";
|
|
381
383
|
this.setSelectedItem(0, true);
|
|
382
384
|
break;
|
|
383
385
|
case "End":
|
|
@@ -385,7 +387,7 @@ class Carousel extends LitElement {
|
|
|
385
387
|
if (this.selectedIndex === lastItem) {
|
|
386
388
|
return;
|
|
387
389
|
}
|
|
388
|
-
this.
|
|
390
|
+
this.itemDirection = "forward";
|
|
389
391
|
this.setSelectedItem(lastItem, true);
|
|
390
392
|
break;
|
|
391
393
|
}
|
|
@@ -462,25 +464,25 @@ class Carousel extends LitElement {
|
|
|
462
464
|
};
|
|
463
465
|
return html`<div aria-live=off class=${safeClassMap(CSS.paginationAriaLive)} role=status>${messages.paginationStatus.replace("{current}", numberStringFormatter.localize(`${selectedIndex + 1}`)).replace("{total}", numberStringFormatter.localize(`${items.length}`))}</div>`;
|
|
464
466
|
}
|
|
465
|
-
renderArrow(
|
|
466
|
-
const isPrev =
|
|
467
|
-
const dir =
|
|
467
|
+
renderArrow(itemDirection) {
|
|
468
|
+
const isPrev = itemDirection === "previous";
|
|
469
|
+
const dir = this.direction;
|
|
468
470
|
const scale = this.arrowType === "edge" ? "m" : "s";
|
|
469
471
|
const css2 = isPrev ? CSS.pagePrevious : CSS.pageNext;
|
|
470
472
|
const title = isPrev ? this.messages.previous : this.messages.next;
|
|
471
473
|
const icon = isPrev ? ICONS.chevronLeft : ICONS.chevronRight;
|
|
472
|
-
return html`<button aria-controls=${this.containerId ?? nothing} class=${safeClassMap({ [CSS.paginationItem]: true, [css2]: true })} data-direction=${
|
|
474
|
+
return html`<button aria-controls=${this.containerId ?? nothing} class=${safeClassMap({ [CSS.paginationItem]: true, [css2]: true })} data-item-direction=${itemDirection ?? nothing} @click=${this.handleArrowClick} title=${title ?? nothing}><calcite-icon .flipRtl=${dir === "rtl"} .icon=${icon} .scale=${scale}></calcite-icon></button>`;
|
|
473
475
|
}
|
|
474
476
|
render() {
|
|
475
|
-
const {
|
|
477
|
+
const { itemDirection } = this;
|
|
476
478
|
return this.interactiveContainer({ disabled: this.disabled, children: html`<div .ariaLabel=${this.label} .ariaLive=${this.playing ? "off" : "polite"} .ariaRoleDescription=${this.messages.carousel} class=${safeClassMap({
|
|
477
479
|
[CSS.container]: true,
|
|
478
480
|
[CSS.containerOverlaid]: this.controlOverlay,
|
|
479
481
|
[CSS.containerEdged]: this.arrowType === "edge"
|
|
480
482
|
})} @focusin=${this.handleFocusIn} @focusout=${this.handleFocusOut} @keydown=${this.containerKeyDownHandler} @mouseenter=${this.handleMouseIn} @mouseleave=${this.handleMouseOut} role=group tabindex=0 ${ref(this.containerRef)}><section class=${safeClassMap({
|
|
481
483
|
[CSS.itemContainer]: true,
|
|
482
|
-
[CSS.itemContainerForward]:
|
|
483
|
-
[CSS.itemContainerBackward]:
|
|
484
|
+
[CSS.itemContainerForward]: itemDirection === "forward",
|
|
485
|
+
[CSS.itemContainerBackward]: itemDirection === "backward"
|
|
484
486
|
})} id=${this.containerId ?? nothing} ${ref(this.itemContainerRef)}><slot @slotchange=${this.handleSlotChange}></slot></section>${this.renderPaginationArea()}${this.arrowType === "edge" && this.hasMultiple && this.renderArrow("previous") || ""}${this.arrowType === "edge" && this.hasMultiple && this.renderArrow("next") || ""}</div>` });
|
|
485
487
|
}
|
|
486
488
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
-
import type { MutableValidityState } from "../../utils/form.js";
|
|
4
3
|
import type { Scale, Status } from "../interfaces.js";
|
|
4
|
+
import type { MutableValidityState } from "../../controllers/useForm.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @cssproperty [--calcite-checkbox-size] - Specifies the component's height and width.
|
|
@@ -3,14 +3,14 @@ import { C as CSS_UTILITY, c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, svg, html } from "lit";
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
5
|
import { LitElement, createEvent, safeClassMap, nothing } from "@arcgis/lumina";
|
|
6
|
-
import {
|
|
7
|
-
import { c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
|
|
6
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
8
7
|
import { i as isActivationKey } from "../../chunks/key.js";
|
|
9
8
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
|
|
10
9
|
import { I as InternalLabel } from "../../chunks/InternalLabel.js";
|
|
11
10
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
12
11
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
13
12
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
13
|
+
import { u as useForm } from "../../chunks/useForm.js";
|
|
14
14
|
const CSS = {
|
|
15
15
|
toggle: "toggle",
|
|
16
16
|
check: "check-svg"
|
|
@@ -20,6 +20,8 @@ class Checkbox extends LitElement {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
super();
|
|
22
22
|
this.checkedPath = "M5.5 12L2 8.689l.637-.636L5.5 10.727l8.022-7.87.637.637z";
|
|
23
|
+
this.direction = useDirection();
|
|
24
|
+
this.formSupport = useForm({ inputType: "checkbox" })(this);
|
|
23
25
|
this.indeterminatePath = "M13 8v1H3V8z";
|
|
24
26
|
this.onLabelClick = () => {
|
|
25
27
|
this.toggle();
|
|
@@ -57,6 +59,9 @@ class Checkbox extends LitElement {
|
|
|
57
59
|
static {
|
|
58
60
|
this.properties = { checked: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], hovered: [7, {}, { reflect: true, type: Boolean }], indeterminate: [7, {}, { reflect: true, type: Boolean }], label: 1, labelText: 1, messageOverrides: [0, {}, { attribute: false }], name: [3, {}, { reflect: true }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], validity: [0, {}, { attribute: false }], value: 1 };
|
|
59
61
|
}
|
|
62
|
+
static {
|
|
63
|
+
this.formAssociated = true;
|
|
64
|
+
}
|
|
60
65
|
static {
|
|
61
66
|
this.styles = styles;
|
|
62
67
|
}
|
|
@@ -66,15 +71,10 @@ class Checkbox extends LitElement {
|
|
|
66
71
|
connectedCallback() {
|
|
67
72
|
super.connectedCallback();
|
|
68
73
|
connectLabel(this);
|
|
69
|
-
connectForm(this);
|
|
70
74
|
}
|
|
71
75
|
disconnectedCallback() {
|
|
72
76
|
super.disconnectedCallback();
|
|
73
77
|
disconnectLabel(this);
|
|
74
|
-
disconnectForm(this);
|
|
75
|
-
}
|
|
76
|
-
syncHiddenFormInput(input) {
|
|
77
|
-
input.type = "checkbox";
|
|
78
78
|
}
|
|
79
79
|
getPath() {
|
|
80
80
|
return this.indeterminate ? this.indeterminatePath : this.checked ? this.checkedPath : "";
|
|
@@ -103,11 +103,11 @@ class Checkbox extends LitElement {
|
|
|
103
103
|
this.calciteInternalCheckboxFocus.emit(true);
|
|
104
104
|
}
|
|
105
105
|
render() {
|
|
106
|
-
const rtl =
|
|
106
|
+
const rtl = this.direction === "rtl";
|
|
107
107
|
return this.interactiveContainer({ disabled: this.disabled, children: html`<div .ariaChecked=${this.checked} .ariaLabel=${getLabelText(this)} .ariaRequired=${this.required} class=${safeClassMap({
|
|
108
108
|
[CSS.toggle]: true,
|
|
109
109
|
[CSS_UTILITY.rtl]: rtl
|
|
110
|
-
})} @blur=${this.onToggleBlur} @focus=${this.onToggleFocus} role=checkbox tabindex=${(this.disabled ? void 0 : 0) ?? nothing} ${ref(this.toggleRef)}><svg aria-hidden=true class=${safeClassMap(CSS.check)} viewBox="0 0 16 16">${svg`<path d=${this.getPath() ?? nothing} />`}</svg><slot></slot></div>${this.labelText && InternalLabel({ bottomSpacingDisabled: true, labelText: this.labelText, required: this.required, spacingInlineStart: true, tooltipText: this.messages.required }) || ""}
|
|
110
|
+
})} @blur=${this.onToggleBlur} @focus=${this.onToggleFocus} role=checkbox tabindex=${(this.disabled ? void 0 : 0) ?? nothing} ${ref(this.toggleRef)}><svg aria-hidden=true class=${safeClassMap(CSS.check)} viewBox="0 0 16 16">${svg`<path d=${this.getPath() ?? nothing} />`}</svg><slot></slot></div>${this.labelText && InternalLabel({ bottomSpacingDisabled: true, labelText: this.labelText, required: this.required, spacingInlineStart: true, tooltipText: this.messages.required }) || ""}` });
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
customElement("calcite-checkbox", Checkbox);
|
|
@@ -10,7 +10,7 @@ import type { IconName } from "../calcite-icon/interfaces.js";
|
|
|
10
10
|
* @cssproperty [--calcite-chip-corner-radius] - Specifies the component's corner radius.
|
|
11
11
|
* @cssproperty [--calcite-chip-icon-color] - Specifies the component's icon color.
|
|
12
12
|
* @cssproperty [--calcite-chip-select-icon-color-press] - Specifies the component's selection element icon color when active.
|
|
13
|
-
* @cssproperty [--calcite-chip-select-icon-color-pressed] - [Deprecated] Use `--calcite-chip-select-icon-color-press
|
|
13
|
+
* @cssproperty [--calcite-chip-select-icon-color-pressed] - [Deprecated] in v3.1.0, removal target v6.0.0 - Use `--calcite-chip-select-icon-color-press` instead. Specifies the component's selection element icon color when active.
|
|
14
14
|
* @cssproperty [--calcite-chip-select-icon-color] - Specifies the component's selection element icon color.
|
|
15
15
|
* @cssproperty [--calcite-chip-text-color] - Specifies the component's text color.
|
|
16
16
|
* @slot - A slot for adding text.
|
|
@@ -3,7 +3,7 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, isServer, html } from "lit";
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
5
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
6
|
-
import {
|
|
6
|
+
import { i as focusElement, s as slotChangeHasAssignedElement } from "../../chunks/dom.js";
|
|
7
7
|
import { i as isActivationKey } from "../../chunks/key.js";
|
|
8
8
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
9
9
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
@@ -3,7 +3,7 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
5
|
import { LitElement, createEvent } from "@arcgis/lumina";
|
|
6
|
-
import { f as focusElementInGroup,
|
|
6
|
+
import { f as focusElementInGroup, a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
7
7
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
8
8
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
9
9
|
const styles = css`: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{display:flex}.container{display:flex;inline-size:100%;flex-wrap:wrap;gap:.5rem}::slotted(calcite-chip){flex:none}:host([scale=s]) .container{gap:.25rem}:host([scale=l]) .container{gap:.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
@@ -7,7 +7,8 @@ import { throttle } from "es-toolkit";
|
|
|
7
7
|
import { css, html, nothing } from "lit";
|
|
8
8
|
import { LitElement, createEvent, safeClassMap, safeStyleMap } from "@arcgis/lumina";
|
|
9
9
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
10
|
-
import {
|
|
10
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
11
|
+
import { j as isPrimaryPointerButton } from "../../chunks/dom.js";
|
|
11
12
|
import { i as isActivationKey } from "../../chunks/key.js";
|
|
12
13
|
import { c as clamp, r as remap, a as closeToRangeEdge } from "../../chunks/math.js";
|
|
13
14
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
@@ -23,6 +24,7 @@ class ColorPicker extends LitElement {
|
|
|
23
24
|
super();
|
|
24
25
|
this._color = DEFAULT_COLOR;
|
|
25
26
|
this.colorFieldScopeRef = createRef();
|
|
27
|
+
this.direction = useDirection();
|
|
26
28
|
this.hueScopeRef = createRef();
|
|
27
29
|
this.internalColorUpdateContext = null;
|
|
28
30
|
this.isActiveChannelInputEmpty = false;
|
|
@@ -866,7 +868,7 @@ class ColorPicker extends LitElement {
|
|
|
866
868
|
const selected = channelMode === activeChannelMode;
|
|
867
869
|
const isRgb = channelMode === "rgb";
|
|
868
870
|
const channelAriaLabels = isRgb ? [messages.red, messages.green, messages.blue] : [messages.hue, messages.saturation, messages.value];
|
|
869
|
-
const direction =
|
|
871
|
+
const direction = this.direction;
|
|
870
872
|
const channelsToRender = alphaChannel ? channels : channels.slice(0, 3);
|
|
871
873
|
return keyed(channelMode, html`<calcite-tab class=${safeClassMap(CSS.control)} .selected=${selected}><div class=${safeClassMap(CSS.channels)} dir=ltr>${channelsToRender.map((channelValue, index) => {
|
|
872
874
|
const isAlphaChannel = index === 3;
|
|
@@ -4,7 +4,7 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
4
4
|
import Color from "color";
|
|
5
5
|
import { css, html, nothing, svg } from "lit";
|
|
6
6
|
import { LitElement, safeClassMap } from "@arcgis/lumina";
|
|
7
|
-
import {
|
|
7
|
+
import { d as getModeName } from "../../chunks/dom.js";
|
|
8
8
|
import { b as hexify } from "../../chunks/utils.js";
|
|
9
9
|
const CSS = {
|
|
10
10
|
swatch: "swatch",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
import type { FlipPlacement, LogicalPlacement, OverlayPositioning } from "../../utils/floating-ui.js";
|
|
4
|
-
import type {
|
|
5
|
-
import type { Scale, SelectionMode, Status } from "../interfaces.js";
|
|
4
|
+
import type { Scale, SelectionAppearance, SelectionMode, Status } from "../interfaces.js";
|
|
6
5
|
import type { IconName } from "../calcite-icon/interfaces.js";
|
|
7
6
|
import type { ComboboxItem as HTMLCalciteComboboxItemElement } from "../calcite-combobox-item/customElement.js";
|
|
7
|
+
import type { MutableValidityState } from "../../controllers/useForm.js";
|
|
8
8
|
import type { SelectionDisplay } from "./interfaces.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -61,7 +61,7 @@ export abstract class Combobox extends LitElement {
|
|
|
61
61
|
/** Specifies the component's label text. */
|
|
62
62
|
accessor labelText: string;
|
|
63
63
|
/**
|
|
64
|
-
* Specifies the maximum number of `calcite-combobox-item`s (including nested children) to display before displaying a scrollbar.
|
|
64
|
+
* Specifies the maximum number of `calcite-combobox-item-group`s & `calcite-combobox-item`s (including nested children) to display before displaying a scrollbar.
|
|
65
65
|
*
|
|
66
66
|
* @default 0
|
|
67
67
|
*/
|
|
@@ -140,6 +140,16 @@ export abstract class Combobox extends LitElement {
|
|
|
140
140
|
accessor selectAllEnabled: boolean;
|
|
141
141
|
/** The component's selected items. */
|
|
142
142
|
get selectedItems(): HTMLCalciteComboboxItemElement[];
|
|
143
|
+
/**
|
|
144
|
+
* Specifies the selection appearance, where
|
|
145
|
+
*
|
|
146
|
+
* `"icon"` displays a checkmark or dot, and
|
|
147
|
+
*
|
|
148
|
+
* `"highlight"` displays a background highlight.
|
|
149
|
+
*
|
|
150
|
+
* @default "icon"
|
|
151
|
+
*/
|
|
152
|
+
accessor selectionAppearance: Extract<"icon" | "highlight", SelectionAppearance>;
|
|
143
153
|
/**
|
|
144
154
|
* When `selectionMode` is `"ancestors"` or `"multiple"`, specifies the display of multiple `calcite-combobox-item` selections, where:
|
|
145
155
|
*
|
|
@@ -8,10 +8,10 @@ import { c as calciteSize48 } from "../../chunks/core.js";
|
|
|
8
8
|
import { nothing, html, css } from "lit";
|
|
9
9
|
import { ref, createRef } from "lit/directives/ref.js";
|
|
10
10
|
import { safeClassMap, LitElement, createEvent, stringOrBoolean } from "@arcgis/lumina";
|
|
11
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
11
12
|
import { f as filter } from "../../chunks/filter.js";
|
|
12
|
-
import {
|
|
13
|
+
import { k as getElementWidth, l as getTextWidth, i as focusElement } from "../../chunks/dom.js";
|
|
13
14
|
import { d as defaultMenuPlacement, r as reposition, c as connectFloatingUI, a as disconnectFloatingUI, f as filterValidFlipPlacements, h as hideFloatingUI, F as FloatingCSS } from "../../chunks/floating-ui.js";
|
|
14
|
-
import { c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm, s as submitForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
|
|
15
15
|
import { g as guid } from "../../chunks/guid.js";
|
|
16
16
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
|
|
17
17
|
import { c as createObserver, u as updateRefObserver } from "../../chunks/observers.js";
|
|
@@ -25,6 +25,7 @@ import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
|
25
25
|
import { u as useCancelable } from "../../chunks/useCancelable.js";
|
|
26
26
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
27
27
|
import { u as useTopLayer } from "../../chunks/useTopLayer.js";
|
|
28
|
+
import { u as useForm } from "../../chunks/useForm.js";
|
|
28
29
|
import { I as IDS, C as CSS$1, a as ComboboxItemSelector, b as ComboboxItemGroupSelector, c as ICONS } from "../../chunks/resources5.js";
|
|
29
30
|
import { h as hasActiveChildren, i as isSingleLike, g as getLabel, a as getItemAncestors, b as getItemChildren } from "../../chunks/utils2.js";
|
|
30
31
|
const CSS = {
|
|
@@ -41,6 +42,10 @@ class Combobox extends LitElement {
|
|
|
41
42
|
constructor() {
|
|
42
43
|
super();
|
|
43
44
|
this.closeButtonRef = createRef();
|
|
45
|
+
this.direction = useDirection();
|
|
46
|
+
this.formSupport = useForm({
|
|
47
|
+
inputType: "text"
|
|
48
|
+
})(this);
|
|
44
49
|
this.selectAllComboboxItemRef = createRef();
|
|
45
50
|
this.allSelectedIndicatorChipRef = createRef();
|
|
46
51
|
this.cancelable = useCancelable()(this);
|
|
@@ -138,6 +143,7 @@ class Combobox extends LitElement {
|
|
|
138
143
|
this.scale = "m";
|
|
139
144
|
this.selectAllEnabled = false;
|
|
140
145
|
this.selectionDisplay = "all";
|
|
146
|
+
this.selectionAppearance = "icon";
|
|
141
147
|
this.selectionMode = "multiple";
|
|
142
148
|
this.status = "idle";
|
|
143
149
|
this.topLayerDisabled = false;
|
|
@@ -167,7 +173,10 @@ class Combobox extends LitElement {
|
|
|
167
173
|
this.listen("click", this.comboboxFocusHandler);
|
|
168
174
|
}
|
|
169
175
|
static {
|
|
170
|
-
this.properties = { activeChipIndex: [16, {}, { state: true }], activeDescendant: [16, {}, { state: true }], activeItemIndex: [16, {}, { state: true }], compactSelectionDisplay: [16, {}, { state: true }], selectedHiddenChipsCount: [16, {}, { state: true }], selectedVisibleChipsCount: [16, {}, { state: true }], items: [16, {}, { state: true }], noMatchesFound: [16, {}, { state: true }], allowCustomValues: [7, {}, { reflect: true, type: Boolean }], clearDisabled: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], filterText: [3, {}, { reflect: true }], filterProps: [0, {}, { attribute: false }], filteredItems: [32, {}, { attribute: false, readOnly: true }], flipPlacements: [0, {}, { attribute: false }], form: [3, {}, { reflect: true }], label: 1, labelText: 1, maxItems: [11, {}, { reflect: true, type: Number }], messageOverrides: [0, {}, { attribute: false }], name: [3, {}, { reflect: true }], open: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: [3, {}, { reflect: true }], placeholder: 1, placeholderIcon: [3, { type: String }, { reflect: true }], placeholderIconFlipRtl: [7, {}, { reflect: true, type: Boolean }], placement: [3, {}, { reflect: true }], readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], selectAllEnabled: [7, {}, { reflect: true, type: Boolean }], selectedItems: [0, {}, { attribute: false }], selectionDisplay: [3, {}, { reflect: true }], selectionMode: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [0, {}, { attribute: false }], value: 1 };
|
|
176
|
+
this.properties = { activeChipIndex: [16, {}, { state: true }], activeDescendant: [16, {}, { state: true }], activeItemIndex: [16, {}, { state: true }], compactSelectionDisplay: [16, {}, { state: true }], selectedHiddenChipsCount: [16, {}, { state: true }], selectedVisibleChipsCount: [16, {}, { state: true }], items: [16, {}, { state: true }], noMatchesFound: [16, {}, { state: true }], allowCustomValues: [7, {}, { reflect: true, type: Boolean }], clearDisabled: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], filterText: [3, {}, { reflect: true }], filterProps: [0, {}, { attribute: false }], filteredItems: [32, {}, { attribute: false, readOnly: true }], flipPlacements: [0, {}, { attribute: false }], form: [3, {}, { reflect: true }], label: 1, labelText: 1, maxItems: [11, {}, { reflect: true, type: Number }], messageOverrides: [0, {}, { attribute: false }], name: [3, {}, { reflect: true }], open: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: [3, {}, { reflect: true }], placeholder: 1, placeholderIcon: [3, { type: String }, { reflect: true }], placeholderIconFlipRtl: [7, {}, { reflect: true, type: Boolean }], placement: [3, {}, { reflect: true }], readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], selectAllEnabled: [7, {}, { reflect: true, type: Boolean }], selectedItems: [0, {}, { attribute: false }], selectionDisplay: [3, {}, { reflect: true }], selectionAppearance: [3, {}, { reflect: true }], selectionMode: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [0, {}, { attribute: false }], value: 1 };
|
|
177
|
+
}
|
|
178
|
+
static {
|
|
179
|
+
this.formAssociated = true;
|
|
171
180
|
}
|
|
172
181
|
static {
|
|
173
182
|
this.styles = styles;
|
|
@@ -235,6 +244,7 @@ class Combobox extends LitElement {
|
|
|
235
244
|
async reposition(delayed = false) {
|
|
236
245
|
const { floatingEl, referenceEl, placement, overlayPositioning, filteredFlipPlacements } = this;
|
|
237
246
|
return reposition(this, {
|
|
247
|
+
direction: this.direction,
|
|
238
248
|
floatingEl,
|
|
239
249
|
referenceEl,
|
|
240
250
|
overlayPositioning,
|
|
@@ -253,10 +263,6 @@ class Combobox extends LitElement {
|
|
|
253
263
|
connectedCallback() {
|
|
254
264
|
super.connectedCallback();
|
|
255
265
|
connectLabel(this);
|
|
256
|
-
connectForm(this);
|
|
257
|
-
this.internalValueChangeFlag = true;
|
|
258
|
-
this.value = this.getValue();
|
|
259
|
-
this.internalValueChangeFlag = false;
|
|
260
266
|
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
261
267
|
this.setFilteredPlacements();
|
|
262
268
|
connectFloatingUI(this);
|
|
@@ -278,7 +284,7 @@ class Combobox extends LitElement {
|
|
|
278
284
|
if (changes.has("overlayPositioning") && (this.hasUpdated || this.overlayPositioning !== "absolute") || changes.has("placement") && (this.hasUpdated || this.placement !== defaultMenuPlacement)) {
|
|
279
285
|
this.reposition(true);
|
|
280
286
|
}
|
|
281
|
-
if (changes.has("selectionMode") || changes.has("scale")) {
|
|
287
|
+
if (changes.has("selectionMode") || changes.has("scale") || changes.has("selectionAppearance")) {
|
|
282
288
|
this.updateItems();
|
|
283
289
|
}
|
|
284
290
|
if (changes.has("flipPlacements")) {
|
|
@@ -286,7 +292,6 @@ class Combobox extends LitElement {
|
|
|
286
292
|
}
|
|
287
293
|
}
|
|
288
294
|
loaded() {
|
|
289
|
-
afterConnectDefaultValueSet(this, this.getValue());
|
|
290
295
|
connectFloatingUI(this);
|
|
291
296
|
this.updateItems();
|
|
292
297
|
this.filterItems(this.filterText, false, false);
|
|
@@ -296,7 +301,6 @@ class Combobox extends LitElement {
|
|
|
296
301
|
this.mutationObserver?.disconnect();
|
|
297
302
|
this.resizeObserver?.disconnect();
|
|
298
303
|
disconnectLabel(this);
|
|
299
|
-
disconnectForm(this);
|
|
300
304
|
disconnectFloatingUI(this);
|
|
301
305
|
}
|
|
302
306
|
emitComboboxChange() {
|
|
@@ -528,10 +532,9 @@ class Combobox extends LitElement {
|
|
|
528
532
|
} else if (this.allowCustomValues && this.filterText) {
|
|
529
533
|
this.addCustomChip(this.filterText, true);
|
|
530
534
|
event.preventDefault();
|
|
531
|
-
} else if (!event.defaultPrevented) {
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
}
|
|
535
|
+
} else if (!event.defaultPrevented && this.formSupport.active) {
|
|
536
|
+
event.preventDefault();
|
|
537
|
+
this.formSupport.requestSubmit();
|
|
535
538
|
}
|
|
536
539
|
break;
|
|
537
540
|
case "Delete":
|
|
@@ -715,7 +718,7 @@ class Combobox extends LitElement {
|
|
|
715
718
|
}
|
|
716
719
|
}
|
|
717
720
|
getMaxScrollerHeight() {
|
|
718
|
-
const allItemsAndGroups =
|
|
721
|
+
const allItemsAndGroups = this.getItemsAndGroups(true);
|
|
719
722
|
const items = allItemsAndGroups.filter((item) => !isHidden(item));
|
|
720
723
|
const { maxItems } = this;
|
|
721
724
|
let itemsToProcess = 0;
|
|
@@ -744,8 +747,11 @@ class Combobox extends LitElement {
|
|
|
744
747
|
const value = event.target.value;
|
|
745
748
|
this.filterText = value;
|
|
746
749
|
}
|
|
747
|
-
getItemsAndGroups() {
|
|
748
|
-
|
|
750
|
+
getItemsAndGroups(preserveOrder = false) {
|
|
751
|
+
if (!preserveOrder) {
|
|
752
|
+
return [...this.groupItems, ...this.items];
|
|
753
|
+
}
|
|
754
|
+
return Array.from(this.el.querySelectorAll(`${ComboboxItemSelector}, ${ComboboxItemGroupSelector}`));
|
|
749
755
|
}
|
|
750
756
|
toggleSelection(item, value) {
|
|
751
757
|
if (!item || this.selectionMode === "single-persist" && item.selected && item.value === this.value && !value) {
|
|
@@ -809,6 +815,7 @@ class Combobox extends LitElement {
|
|
|
809
815
|
updateItemProps() {
|
|
810
816
|
this.getItems(true).forEach((item) => {
|
|
811
817
|
item.selectionMode = this.selectionMode;
|
|
818
|
+
item.selectionAppearance = this.selectionAppearance;
|
|
812
819
|
item.scale = this.scale;
|
|
813
820
|
});
|
|
814
821
|
this.groupItems.forEach((groupItem, index) => (groupItem.scale = this.scale, groupItem.position = index));
|
|
@@ -1126,7 +1133,7 @@ class Combobox extends LitElement {
|
|
|
1126
1133
|
this.renderSelectedIndicatorChip(),
|
|
1127
1134
|
this.renderSelectedIndicatorChipCompact(),
|
|
1128
1135
|
this.renderAllSelectedIndicatorChip()
|
|
1129
|
-
] || ""}<label class=${safeClassMap(CSS$1.screenReadersOnly)} .htmlFor=${`${IDS.input(guid2)}`} .id=${`${IDS.label(guid2)}`}>${label}</label>${this.renderInput()}</div>`)}${!readOnly && isClearable ? keyed("close-button", XButton({ disabled: this.disabled, label: this.messages.clear, ref: this.closeButtonRef, scale: this.scale })) : null}${!readOnly && this.renderChevronIcon() || ""}</div><ul aria-labelledby=${`${IDS.label(guid2)}`} aria-multiselectable=true class=${safeClassMap(CSS$1.screenReadersOnly)} .id=${`${IDS.listbox(guid2)}`} role=listbox tabindex=-1>${this.renderListBoxOptions()}</ul>${this.renderFloatingUIContainer()}${
|
|
1136
|
+
] || ""}<label class=${safeClassMap(CSS$1.screenReadersOnly)} .htmlFor=${`${IDS.input(guid2)}`} .id=${`${IDS.label(guid2)}`}>${label}</label>${this.renderInput()}</div>`)}${!readOnly && isClearable ? keyed("close-button", XButton({ disabled: this.disabled, label: this.messages.clear, ref: this.closeButtonRef, scale: this.scale })) : null}${!readOnly && this.renderChevronIcon() || ""}</div><ul aria-labelledby=${`${IDS.label(guid2)}`} aria-multiselectable=true class=${safeClassMap(CSS$1.screenReadersOnly)} .id=${`${IDS.listbox(guid2)}`} role=listbox tabindex=-1>${this.renderListBoxOptions()}</ul>${this.renderFloatingUIContainer()}${this.validationMessage && this.status === "invalid" ? Validation({ icon: this.validationIcon, id: IDS.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
|
|
1130
1137
|
}
|
|
1131
1138
|
}
|
|
1132
1139
|
customElement("calcite-combobox", Combobox);
|
|
@@ -4,7 +4,7 @@ import type { ComboboxChildElement } from "../calcite-combobox/interfaces.js";
|
|
|
4
4
|
import type { IconName } from "../calcite-icon/interfaces.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* @cssproperty [--calcite-combobox-item-border-color] - [Deprecated] Specifies the component's border color.
|
|
7
|
+
* @cssproperty [--calcite-combobox-item-border-color] - [Deprecated] in v3.3.0, removal target v6.0.0 - Specifies the component's border color.
|
|
8
8
|
* @cssproperty [--calcite-combobox-text-color] - Specifies the component's text and `icon` color.
|
|
9
9
|
* @cssproperty [--calcite-combobox-text-color-hover] - Specifies the component's text and `icon` color when hovered.
|
|
10
10
|
* @cssproperty [--calcite-combobox-item-background-color-active] - When `active`, specifies the component's background color.
|
|
@@ -6,7 +6,7 @@ import { LitElement, createEvent, safeClassMap, safeStyleMap } from "@arcgis/lum
|
|
|
6
6
|
import { g as guid } from "../../chunks/guid.js";
|
|
7
7
|
import { c as getAncestors, i as isSingleLike, d as getDepth } from "../../chunks/utils2.js";
|
|
8
8
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
9
|
-
import {
|
|
9
|
+
import { m as slotChangeHasContent } from "../../chunks/dom.js";
|
|
10
10
|
import { h as highlightText } from "../../chunks/text.js";
|
|
11
11
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
12
12
|
const CSS = {
|
|
@@ -17,6 +17,7 @@ const CSS = {
|
|
|
17
17
|
description: "description",
|
|
18
18
|
icon: "icon",
|
|
19
19
|
label: "label",
|
|
20
|
+
containerHighlightSelected: "container--highlight-selected",
|
|
20
21
|
scale: (scale) => `scale--${scale}`,
|
|
21
22
|
shortText: "short-text",
|
|
22
23
|
single: "label--single",
|
|
@@ -35,7 +36,7 @@ const SLOTS = {
|
|
|
35
36
|
contentStart: "content-start"
|
|
36
37
|
};
|
|
37
38
|
const itemSpacingMultiplier = "--calcite-combobox-item-spacing-indent-multiplier";
|
|
38
|
-
const styles = css`: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([hidden]){display:none}[hidden]{display:none}.scale--s{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);--calcite-internal-combobox-item-spacing-unit-s: .25rem;--calcite-internal-combobox-item-spacing-unit-l: .5rem;--calcite-combobox-item-selector-icon-size: 1rem;--calcite-internal-combobox-item-description-font-size: var(--calcite-font-size-xs)}.scale--m{font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);--calcite-internal-combobox-item-spacing-unit-s: .375rem;--calcite-internal-combobox-item-spacing-unit-l: .75rem;--calcite-combobox-item-selector-icon-size: 1rem;--calcite-internal-combobox-item-description-font-size: var(--calcite-font-size-sm)}.scale--l{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);--calcite-internal-combobox-item-spacing-unit-s: .625rem;--calcite-internal-combobox-item-spacing-unit-l: 1rem;--calcite-combobox-item-selector-icon-size: 1.5rem;--calcite-internal-combobox-item-description-font-size: var(--calcite-font-size)}.container{--calcite-combobox-item-indent-value: calc( var(--calcite-internal-combobox-item-spacing-unit-l) * var(--calcite-combobox-item-spacing-indent-multiplier) )}:host(:focus){--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host,ul{margin:0;display:flex;flex-direction:column;padding:0}:host(:focus),ul:focus{outline:2px solid transparent;outline-offset:2px}.label{position:relative;box-sizing:border-box;display:flex;inline-size:100%;min-inline-size:100%;cursor:pointer;align-items:center;text-decoration-line:none;transition-timing-function:cubic-bezier(.4,0,.2,1);outline-color:transparent;word-wrap:break-word;word-break:break-word;justify-content:space-around;gap:var(--calcite-internal-combobox-item-spacing-unit-l);padding-block:var(--calcite-internal-combobox-item-spacing-unit-s);padding-inline-end:var(--calcite-internal-combobox-item-spacing-unit-l);padding-inline-start:var(--calcite-combobox-item-indent-value);color:var(--calcite-combobox-text-color, var(--calcite-color-text-3));transition-duration:var(--calcite-animation-timing)}:host([disabled]) .label{cursor:default}.label--active{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))))}.label:hover{background-color:var(--calcite-combobox-item-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-combobox-text-color-hover, var(--calcite-color-text-1))}.label:active{background-color:var(--calcite-combobox-item-background-color-active, var(--calcite-color-foreground-3))}:host([selected]) .label,.label:active{color:var(--calcite-combobox-text-color-hover, var(--calcite-color-text-1))}:host([selected]) .label .description,:host([selected]) .label .short-text,.label:active .description,.label:active .short-text{color:var(--calcite-combobox-description-text-color-press, var(--calcite-color-text-2))}.icon{display:inline-flex;transition-timing-function:cubic-bezier(.4,0,.2,1);color:var(--calcite-color-border-input)}:host([selected]) .icon,:host([indeterminate]) .icon{color:var(--calcite-combobox-selected-icon-color, var(--calcite-color-brand))}.icon--custom{margin-block-start:-1px}.center-content{display:flex;flex-direction:column;flex-grow:1;padding-block:0}.description{font-size:var(--calcite-internal-combobox-item-description-font-size)}.short-text{white-space:nowrap}.heading{color:var(--calcite-combobox-heading-text-color, var(--calcite-color-text-1))}.description,.short-text{color:var(--calcite-combobox-description-text-color, var(--calcite-color-text-3))}:host([selected]) .heading{font-weight:var(--calcite-font-weight-medium)}.heading,.description,.short-text{line-height:var(--calcite-font-line-height-relative-snug)}:host([item-hidden]){display:none}.text-match{background-color:transparent;color:inherit;font-weight:var(--calcite-font-weight-bold)}`;
|
|
39
|
+
const styles = css`: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([hidden]){display:none}[hidden]{display:none}.scale--s{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);--calcite-internal-combobox-item-spacing-unit-s: .25rem;--calcite-internal-combobox-item-spacing-unit-l: .5rem;--calcite-combobox-item-selector-icon-size: 1rem;--calcite-internal-combobox-item-description-font-size: var(--calcite-font-size-xs)}.scale--m{font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);--calcite-internal-combobox-item-spacing-unit-s: .375rem;--calcite-internal-combobox-item-spacing-unit-l: .75rem;--calcite-combobox-item-selector-icon-size: 1rem;--calcite-internal-combobox-item-description-font-size: var(--calcite-font-size-sm)}.scale--l{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);--calcite-internal-combobox-item-spacing-unit-s: .625rem;--calcite-internal-combobox-item-spacing-unit-l: 1rem;--calcite-combobox-item-selector-icon-size: 1.5rem;--calcite-internal-combobox-item-description-font-size: var(--calcite-font-size)}.container{--calcite-combobox-item-indent-value: calc( var(--calcite-internal-combobox-item-spacing-unit-l) * var(--calcite-combobox-item-spacing-indent-multiplier) )}:host(:focus){--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host,ul{margin:0;display:flex;flex-direction:column;padding:0}:host(:focus),ul:focus{outline:2px solid transparent;outline-offset:2px}.label{position:relative;box-sizing:border-box;display:flex;inline-size:100%;min-inline-size:100%;cursor:pointer;align-items:center;text-decoration-line:none;transition-timing-function:cubic-bezier(.4,0,.2,1);outline-color:transparent;word-wrap:break-word;word-break:break-word;justify-content:space-around;gap:var(--calcite-internal-combobox-item-spacing-unit-l);padding-block:var(--calcite-internal-combobox-item-spacing-unit-s);padding-inline-end:var(--calcite-internal-combobox-item-spacing-unit-l);padding-inline-start:var(--calcite-combobox-item-indent-value);color:var(--calcite-combobox-text-color, var(--calcite-color-text-3));transition-duration:var(--calcite-animation-timing)}:host([disabled]) .label{cursor:default}.label--active{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))))}.label:hover{background-color:var(--calcite-combobox-item-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-combobox-text-color-hover, var(--calcite-color-text-1))}.label:active{background-color:var(--calcite-combobox-item-background-color-active, var(--calcite-color-foreground-3))}:host([selected]) .label,.label:active{color:var(--calcite-combobox-text-color-hover, var(--calcite-color-text-1))}:host([selected]) .label .description,:host([selected]) .label .short-text,.label:active .description,.label:active .short-text{color:var(--calcite-combobox-description-text-color-press, var(--calcite-color-text-2))}.icon{display:inline-flex;transition-timing-function:cubic-bezier(.4,0,.2,1);color:var(--calcite-color-border-input)}:host([selected]) .icon,:host([indeterminate]) .icon{color:var(--calcite-combobox-selected-icon-color, var(--calcite-color-brand))}.icon--custom{margin-block-start:-1px}.center-content{display:flex;flex-direction:column;flex-grow:1;padding-block:0}.description{font-size:var(--calcite-internal-combobox-item-description-font-size)}.short-text{white-space:nowrap}.heading{color:var(--calcite-combobox-heading-text-color, var(--calcite-color-text-1))}.description,.short-text{color:var(--calcite-combobox-description-text-color, var(--calcite-color-text-3))}:host([selected]) .heading{font-weight:var(--calcite-font-weight-medium)}.heading,.description,.short-text{line-height:var(--calcite-font-line-height-relative-snug)}.container--highlight-selected{background-color:var(--calcite-color-surface-highlight)}:host([item-hidden]){display:none}.text-match{background-color:transparent;color:inherit;font-weight:var(--calcite-font-weight-bold)}`;
|
|
39
40
|
class ComboboxItem extends LitElement {
|
|
40
41
|
constructor() {
|
|
41
42
|
super(...arguments);
|
|
@@ -48,13 +49,14 @@ class ComboboxItem extends LitElement {
|
|
|
48
49
|
this.iconFlipRtl = false;
|
|
49
50
|
this.scale = "m";
|
|
50
51
|
this.selectionMode = "multiple";
|
|
52
|
+
this.selectionAppearance = "icon";
|
|
51
53
|
this.itemHidden = false;
|
|
52
54
|
this.indeterminate = false;
|
|
53
55
|
this.calciteComboboxItemChange = createEvent({ cancelable: false });
|
|
54
56
|
this.calciteInternalComboboxItemChange = createEvent({ cancelable: false });
|
|
55
57
|
}
|
|
56
58
|
static {
|
|
57
|
-
this.properties = { hasContent: [16, {}, { state: true }], active: [7, {}, { reflect: true, type: Boolean }], ancestors: [0, {}, { attribute: false }], description: 1, disabled: [7, {}, { reflect: true, type: Boolean }], filterDisabled: [7, {}, { reflect: true, type: Boolean }], filterTextMatchPattern: [3, {}, { reflect: true }], guid: [3, {}, { reflect: true }], heading: 1, icon: [3, { type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], label: 1, metadata: [0, {}, { attribute: false }], scale: 1, selected: [7, {}, { reflect: true, type: Boolean }], selectionMode: [3, {}, { reflect: true }], shortHeading: 1, value: [3, {}, { reflect: true }], itemHidden: [7, {}, { reflect: true, type: Boolean }], indeterminate: [7, {}, { reflect: true, type: Boolean }] };
|
|
59
|
+
this.properties = { hasContent: [16, {}, { state: true }], active: [7, {}, { reflect: true, type: Boolean }], ancestors: [0, {}, { attribute: false }], description: 1, disabled: [7, {}, { reflect: true, type: Boolean }], filterDisabled: [7, {}, { reflect: true, type: Boolean }], filterTextMatchPattern: [3, {}, { reflect: true }], guid: [3, {}, { reflect: true }], heading: 1, icon: [3, { type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], label: 1, metadata: [0, {}, { attribute: false }], scale: 1, selected: [7, {}, { reflect: true, type: Boolean }], selectionMode: [3, {}, { reflect: true }], selectionAppearance: [3, {}, { reflect: true }], shortHeading: 1, value: [3, {}, { reflect: true }], itemHidden: [7, {}, { reflect: true, type: Boolean }], indeterminate: [7, {}, { reflect: true, type: Boolean }] };
|
|
58
60
|
}
|
|
59
61
|
static {
|
|
60
62
|
this.styles = styles;
|
|
@@ -107,6 +109,9 @@ class ComboboxItem extends LitElement {
|
|
|
107
109
|
})} .flipRtl=${this.iconFlipRtl} .icon=${this.icon || iconPath} .scale=${getIconScale(this.scale)}></calcite-icon>`) : null;
|
|
108
110
|
}
|
|
109
111
|
renderSelectIndicator(icon) {
|
|
112
|
+
if (this.selectionAppearance === "highlight") {
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
110
115
|
return keyed("indicator", html`<calcite-icon class=${safeClassMap({
|
|
111
116
|
[CSS.icon]: true
|
|
112
117
|
})} .flipRtl=${this.iconFlipRtl} .icon=${icon} .scale=${getIconScale(this.scale)}></calcite-icon>`);
|
|
@@ -124,7 +129,8 @@ class ComboboxItem extends LitElement {
|
|
|
124
129
|
const classes = {
|
|
125
130
|
[CSS.label]: true,
|
|
126
131
|
[CSS.active]: this.active,
|
|
127
|
-
[CSS.single]: isSingleSelect
|
|
132
|
+
[CSS.single]: isSingleSelect,
|
|
133
|
+
[CSS.containerHighlightSelected]: this.selected && this.selectionAppearance === "highlight"
|
|
128
134
|
};
|
|
129
135
|
const depth = getDepth(this.el);
|
|
130
136
|
this.el.ariaHidden = "true";
|
|
@@ -332,7 +332,7 @@ class DatePickerMonth extends LitElement {
|
|
|
332
332
|
[CSS.currentDay]: currentDay,
|
|
333
333
|
[CSS.insideRangeHover]: this.isHoverInRange(),
|
|
334
334
|
[CSS.outsideRangeHover]: !this.isHoverInRange(),
|
|
335
|
-
[CSS.noncurrent]: this.range && !currentMonth
|
|
335
|
+
[CSS.noncurrent]: this.range && this.calendars === 2 && !currentMonth
|
|
336
336
|
})} .currentMonth=${currentMonth} .dateTimeFormat=${this.dateTimeFormat} .day=${day} .disabled=${!isDateInRange} .endOfRange=${this.isEndOfRange(date)} .highlighted=${this.betweenSelectedRange(date)} @calciteInternalDayHover=${this.dayHover} @calciteInternalDaySelect=${this.daySelect} .range=${!!this.startDate && !!this.endDate && !sameDate(this.startDate, this.endDate)} .rangeEdge=${dayInWeek === 0 ? "start" : dayInWeek === 6 ? "end" : void 0} .rangeHover=${isDateInRange && this.isRangeHover(date)} .scale=${this.scale} .selected=${this.isSelected(date)} .startOfRange=${this.isStartOfRange(date)} .value=${date} ${ref(this.storeDayRef)}></calcite-date-picker-day></div>`);
|
|
337
337
|
}
|
|
338
338
|
renderCalendar(weekDays, days, isEndCalendar = false) {
|