@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,7 @@ import { keyed } from "lit/directives/keyed.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
8
|
import { S as SLOTS$1 } from "../../chunks/resources6.js";
|
|
9
9
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
10
10
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
@@ -30,12 +30,13 @@ const SLOTS = {
|
|
|
30
30
|
footerEnd: "footer-end",
|
|
31
31
|
footerStart: "footer-start"
|
|
32
32
|
};
|
|
33
|
-
const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:none;inline-size:100%;flex:1 1 auto;overflow:hidden}:host([selected]){display:flex}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}calcite-panel{--calcite-panel-background-color: var(--calcite-flow-background-color);--calcite-panel-border-color: var(--calcite-flow-border-color, var(--calcite-flow-item-header-border-block-end));--calcite-panel-corner-radius: var(--calcite-flow-corner-radius);--calcite-panel-description-text-color: var(--calcite-flow-description-text-color);--calcite-panel-footer-background-color: var(--calcite-flow-footer-background-color);--calcite-panel-footer-space: var(--calcite-flow-footer-space, var(--calcite-flow-item-footer-padding));--calcite-panel-header-action-background-color-hover: var(--calcite-flow-header-action-background-color-hover);--calcite-panel-header-action-background-color-press: var(--calcite-flow-header-action-background-color-press);--calcite-panel-header-action-background-color: var(--calcite-flow-header-action-background-color);--calcite-panel-header-action-indicator-color: var(--calcite-flow-header-action-indicator-color);--calcite-panel-header-action-text-color-press: var(--calcite-flow-header-action-text-color-press);--calcite-panel-header-action-text-color: var(--calcite-flow-header-action-text-color);--calcite-panel-header-background-color: var(--calcite-flow-header-background-color);--calcite-panel-header-content-space: var(--calcite-flow-header-content-space);--calcite-panel-heading-text-color: var(--calcite-flow-heading-text-color);--calcite-panel-icon-color: var(--calcite-flow-icon-color);--calcite-panel-space: var(--calcite-flow-space)}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
33
|
+
const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:none;inline-size:100%;flex:1 1 auto;overflow:hidden}:host([selected]){display:flex}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}calcite-panel{--calcite-panel-background-color: var(--calcite-flow-background-color);--calcite-panel-border-color: var(--calcite-flow-border-color, var(--calcite-flow-item-header-border-block-end));--calcite-panel-corner-radius: var(--calcite-flow-corner-radius);--calcite-panel-description-text-color: var(--calcite-flow-description-text-color);--calcite-panel-footer-background-color: var(--calcite-flow-footer-background-color);--calcite-panel-footer-space: var(--calcite-flow-footer-space, var(--calcite-flow-item-footer-padding));--calcite-panel-header-action-background-color-hover: var(--calcite-flow-header-action-background-color-hover);--calcite-panel-header-action-background-color-press: var(--calcite-flow-header-action-background-color-press);--calcite-panel-header-action-background-color: var(--calcite-flow-header-action-background-color);--calcite-panel-header-action-indicator-color: var(--calcite-flow-header-action-indicator-color);--calcite-panel-header-action-text-color-press: var(--calcite-flow-header-action-text-color-press);--calcite-panel-header-action-text-color: var(--calcite-flow-header-action-text-color);--calcite-panel-header-background-color: var(--calcite-flow-header-background-color);--calcite-panel-header-content-space: var(--calcite-flow-header-content-space);--calcite-panel-heading-text-color: var(--calcite-flow-heading-text-color);--calcite-panel-icon-color: var(--calcite-flow-icon-color);--calcite-panel-space: var(--calcite-flow-space);--calcite-panel-content-top-space: var(--calcite-flow-content-top-space);--calcite-panel-content-bottom-space: var(--calcite-flow-content-bottom-space)}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
34
34
|
class FlowItem extends LitElement {
|
|
35
35
|
constructor() {
|
|
36
36
|
super(...arguments);
|
|
37
37
|
this.backButtonRef = createRef();
|
|
38
38
|
this.containerRef = createRef();
|
|
39
|
+
this.direction = useDirection();
|
|
39
40
|
this.messages = useT9n();
|
|
40
41
|
this.focusSetter = useSetFocus()(this);
|
|
41
42
|
this.interactiveContainer = useInteractive(this);
|
|
@@ -112,8 +113,7 @@ class FlowItem extends LitElement {
|
|
|
112
113
|
this.calciteFlowItemBack.emit();
|
|
113
114
|
}
|
|
114
115
|
renderBackButton() {
|
|
115
|
-
const
|
|
116
|
-
const rtl = getElementDir(el) === "rtl";
|
|
116
|
+
const rtl = this.direction === "rtl";
|
|
117
117
|
const { showBackButton, backButtonClick, messages } = this;
|
|
118
118
|
const label = messages.back;
|
|
119
119
|
const icon = rtl ? ICONS.backRight : ICONS.backLeft;
|
|
@@ -4,7 +4,7 @@ import type { Scale } from "../interfaces.js";
|
|
|
4
4
|
import type { IconName } from "./interfaces.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* @cssproperty [--calcite-ui-icon-color] - [Deprecated] Use `--calcite-icon-color
|
|
7
|
+
* @cssproperty [--calcite-ui-icon-color] - [Deprecated] in v2.13.0, removal target v6.0.0 - Use `--calcite-icon-color` instead. Specifies the component's color. Defaults to current color.
|
|
8
8
|
* @cssproperty [--calcite-icon-color] - Specifies the component's color. Defaults to current color.
|
|
9
9
|
*/
|
|
10
10
|
export abstract class Icon extends LitElement {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { g as getAssetPath, c as customElement } from "../../chunks/runtime.js";
|
|
3
3
|
import { css, isServer, nothing, svg, html } from "lit";
|
|
4
4
|
import { LitElement, safeClassMap } from "@arcgis/lumina";
|
|
5
|
-
import {
|
|
5
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
6
6
|
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
7
7
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
8
8
|
import { l as logger } from "../../chunks/logger.js";
|
|
@@ -68,6 +68,7 @@ const styles = css`:host{display:inline-flex;color:var(--calcite-icon-color, var
|
|
|
68
68
|
class Icon extends LitElement {
|
|
69
69
|
constructor() {
|
|
70
70
|
super(...arguments);
|
|
71
|
+
this.direction = useDirection();
|
|
71
72
|
this.visible = false;
|
|
72
73
|
this.flipRtl = false;
|
|
73
74
|
this.icon = null;
|
|
@@ -133,8 +134,8 @@ class Icon extends LitElement {
|
|
|
133
134
|
this.intersectionObserver.observe(this.el);
|
|
134
135
|
}
|
|
135
136
|
render() {
|
|
136
|
-
const {
|
|
137
|
-
const dir =
|
|
137
|
+
const { flipRtl, pathData, scale, textLabel } = this;
|
|
138
|
+
const dir = this.direction;
|
|
138
139
|
const size = scaleToPx[scale];
|
|
139
140
|
const semantic = !!textLabel;
|
|
140
141
|
const paths = [].concat(pathData || "");
|
|
@@ -4,7 +4,7 @@ import { css, html } from "lit";
|
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
5
|
import { LitElement, createEvent, safeClassMap, nothing } from "@arcgis/lumina";
|
|
6
6
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
|
|
7
|
-
import {
|
|
7
|
+
import { a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
8
8
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
9
9
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
10
10
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
import type { Alignment, Scale, Status } from "../interfaces.js";
|
|
4
|
-
import type { MutableValidityState } from "../../utils/form.js";
|
|
5
4
|
import type { NumberingSystem } from "../../utils/locale.js";
|
|
6
5
|
import type { IconName } from "../calcite-icon/interfaces.js";
|
|
6
|
+
import type { MutableValidityState } from "../../controllers/useForm.js";
|
|
7
7
|
import type { InputPlacement } from "./interfaces.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -5,9 +5,8 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
5
5
|
import { css, html, nothing } from "lit";
|
|
6
6
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
7
|
import { LitElement, createEvent, stringOrBoolean, safeClassMap } from "@arcgis/lumina";
|
|
8
|
-
import { useWatchAttributes } from "@arcgis/lumina/controllers";
|
|
9
|
-
import {
|
|
10
|
-
import { c as connectForm, i as internalHiddenInputInputEvent, d as disconnectForm, s as submitForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
|
|
8
|
+
import { useWatchAttributes, useDirection } from "@arcgis/lumina/controllers";
|
|
9
|
+
import { b as setRequestedIcon, j as isPrimaryPointerButton } from "../../chunks/dom.js";
|
|
11
10
|
import { n as numberKeys } from "../../chunks/key.js";
|
|
12
11
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
|
|
13
12
|
import { i as isValidNumber, B as BigDecimal, n as numberStringFormatter, p as parseNumberString, s as sanitizeNumberString, a as addLocalizedTrailingDecimalZeros } from "../../chunks/locale.js";
|
|
@@ -17,7 +16,7 @@ import { V as Validation } from "../../chunks/Validation.js";
|
|
|
17
16
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
18
17
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
19
18
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
20
|
-
import {
|
|
19
|
+
import { u as useForm } from "../../chunks/useForm.js";
|
|
21
20
|
const CSS = {
|
|
22
21
|
loader: "loader",
|
|
23
22
|
clearButton: "clear-button",
|
|
@@ -67,21 +66,15 @@ class Input extends LitElement {
|
|
|
67
66
|
this.attributeWatch = useWatchAttributes(["autofocus", "enterkeyhint", "inputmode", "spellcheck"], this.handleGlobalAttributesChanged);
|
|
68
67
|
this.childRef = createRef();
|
|
69
68
|
this.childNumberRef = createRef();
|
|
69
|
+
this.direction = useDirection();
|
|
70
|
+
this.formSupport = useForm({
|
|
71
|
+
inputType: "text"
|
|
72
|
+
})(this);
|
|
70
73
|
this.inputWrapperRef = createRef();
|
|
71
|
-
this.onHiddenFormInputInput = (event) => {
|
|
72
|
-
if (event.target.name === this.name) {
|
|
73
|
-
this.setValue({
|
|
74
|
-
value: event.target.value,
|
|
75
|
-
origin: "direct"
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
this.setFocus();
|
|
79
|
-
event.stopPropagation();
|
|
80
|
-
};
|
|
81
74
|
this.previousValueOrigin = "initial";
|
|
82
75
|
this.userChangedValue = false;
|
|
83
76
|
this._value = "";
|
|
84
|
-
this.messages = useT9n();
|
|
77
|
+
this.messages = useT9n({ blocking: true });
|
|
85
78
|
this.focusSetter = useSetFocus()(this);
|
|
86
79
|
this.interactiveContainer = useInteractive(this);
|
|
87
80
|
this.slottedActionElDisabledInternally = false;
|
|
@@ -123,6 +116,9 @@ class Input extends LitElement {
|
|
|
123
116
|
static {
|
|
124
117
|
this.properties = { displayedValue: [16, {}, { state: true }], slottedActionElDisabledInternally: [16, {}, { state: true }], accept: 1, alignment: [3, {}, { reflect: true }], autocomplete: 1, clearable: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], editingEnabled: [7, {}, { reflect: true, type: Boolean }], files: [0, {}, { attribute: false }], form: [3, {}, { reflect: true }], groupSeparator: [7, {}, { reflect: true, type: Boolean }], icon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], label: 1, labelText: 1, loading: [7, {}, { reflect: true, type: Boolean }], localeFormat: [5, {}, { type: Boolean }], max: [11, {}, { reflect: true, type: Number }], maxLength: [11, {}, { reflect: true, type: Number }], messageOverrides: [0, {}, { attribute: false }], min: [11, {}, { reflect: true, type: Number }], minLength: [11, {}, { reflect: true, type: Number }], multiple: [5, {}, { type: Boolean }], name: [3, {}, { reflect: true }], numberButtonType: [3, {}, { reflect: true }], numberingSystem: [3, {}, { reflect: true }], pattern: 1, placeholder: 1, prefixText: 1, readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], step: [3, {}, { reflect: true }], suffixText: 1, type: [3, {}, { reflect: true }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [0, {}, { attribute: false }], value: 1 };
|
|
125
118
|
}
|
|
119
|
+
static {
|
|
120
|
+
this.formAssociated = true;
|
|
121
|
+
}
|
|
126
122
|
static {
|
|
127
123
|
this.styles = styles;
|
|
128
124
|
}
|
|
@@ -159,8 +155,6 @@ class Input extends LitElement {
|
|
|
159
155
|
this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
|
|
160
156
|
}
|
|
161
157
|
connectLabel(this);
|
|
162
|
-
connectForm(this);
|
|
163
|
-
this.el.addEventListener(internalHiddenInputInputEvent, this.onHiddenFormInputInput);
|
|
164
158
|
}
|
|
165
159
|
async load() {
|
|
166
160
|
this.maxString = this.max?.toString();
|
|
@@ -194,13 +188,14 @@ class Input extends LitElement {
|
|
|
194
188
|
if (changes.has("readOnly")) {
|
|
195
189
|
this.stopNudging();
|
|
196
190
|
}
|
|
191
|
+
if (changes.has("type") && (this.hasUpdated || this.type !== "text")) {
|
|
192
|
+
this.formSupport.overrideInputType(this.type);
|
|
193
|
+
}
|
|
197
194
|
}
|
|
198
195
|
disconnectedCallback() {
|
|
199
196
|
super.disconnectedCallback();
|
|
200
197
|
disconnectLabel(this);
|
|
201
|
-
disconnectForm(this);
|
|
202
198
|
this.stopNudging();
|
|
203
|
-
this.el.removeEventListener(internalHiddenInputInputEvent, this.onHiddenFormInputInput);
|
|
204
199
|
}
|
|
205
200
|
stopNudging() {
|
|
206
201
|
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
@@ -232,10 +227,9 @@ class Input extends LitElement {
|
|
|
232
227
|
this.clearInputValue(event);
|
|
233
228
|
event.preventDefault();
|
|
234
229
|
}
|
|
235
|
-
if (event.key === "Enter") {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}
|
|
230
|
+
if (event.key === "Enter" && this.formSupport.active) {
|
|
231
|
+
event.preventDefault();
|
|
232
|
+
this.formSupport.requestSubmit();
|
|
239
233
|
}
|
|
240
234
|
}
|
|
241
235
|
onLabelClick() {
|
|
@@ -448,9 +442,6 @@ class Input extends LitElement {
|
|
|
448
442
|
this.nudgeNumberValue(direction, event);
|
|
449
443
|
}
|
|
450
444
|
}
|
|
451
|
-
syncHiddenFormInput(input) {
|
|
452
|
-
syncHiddenFormInput(this.type, this, input);
|
|
453
|
-
}
|
|
454
445
|
setInputValue(newInputValue) {
|
|
455
446
|
const target = this.type === "number" ? this.childNumberRef : this.childRef;
|
|
456
447
|
if (target.value) {
|
|
@@ -514,7 +505,7 @@ class Input extends LitElement {
|
|
|
514
505
|
}
|
|
515
506
|
}
|
|
516
507
|
render() {
|
|
517
|
-
const dir =
|
|
508
|
+
const dir = this.direction;
|
|
518
509
|
const loader = html`<div class=${safeClassMap(CSS.loader)}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`;
|
|
519
510
|
const inputClearButton = html`<button .ariaLabel=${this.messages.clear} class=${safeClassMap(CSS.clearButton)} .disabled=${this.disabled || this.readOnly} @click=${this.clearInputValue} tabindex=-1 title=${this.messages.clear ?? nothing} type=button><calcite-icon .icon=${ICONS.close} .scale=${getIconScale(this.scale)}></calcite-icon></button>`;
|
|
520
511
|
const iconEl = html`<calcite-icon class=${safeClassMap(CSS.inputIcon)} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${getIconScale(this.scale)}></calcite-icon>`;
|
|
@@ -546,7 +537,7 @@ class Input extends LitElement {
|
|
|
546
537
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
547
538
|
[CSS.hasSuffix]: this.suffixText,
|
|
548
539
|
[CSS.hasPrefix]: this.prefixText
|
|
549
|
-
})} ${ref(this.inputWrapperRef)}>${this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly ? numberButtonsHorizontalDown : null}${this.prefixText ? prefixText : null}<div class=${safeClassMap(CSS.wrapper)}>${localeNumberInput}${childEl}${this.isClearable ? inputClearButton : null}${this.requestedIcon ? iconEl : null}${this.loading ? loader : null}</div><div class=${safeClassMap(CSS.actionWrapper)} ${ref(this.actionWrapperRef)}><slot name=${SLOTS.action}></slot></div>${this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null}${this.suffixText ? suffixText : null}${this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly ? numberButtonsHorizontalUp : null}
|
|
540
|
+
})} ${ref(this.inputWrapperRef)}>${this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly ? numberButtonsHorizontalDown : null}${this.prefixText ? prefixText : null}<div class=${safeClassMap(CSS.wrapper)}>${localeNumberInput}${childEl}${this.isClearable ? inputClearButton : null}${this.requestedIcon ? iconEl : null}${this.loading ? loader : null}</div><div class=${safeClassMap(CSS.actionWrapper)} ${ref(this.actionWrapperRef)}><slot name=${SLOTS.action}></slot></div>${this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null}${this.suffixText ? suffixText : null}${this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly ? numberButtonsHorizontalUp : null}</div>${this.validationMessage && this.status === "invalid" ? Validation({ icon: this.validationIcon, id: IDS.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
|
|
550
541
|
}
|
|
551
542
|
}
|
|
552
543
|
customElement("calcite-input", Input);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
import type { FlipPlacement, MenuPlacement, OverlayPositioning } from "../../utils/floating-ui.js";
|
|
4
|
-
import type { MutableValidityState } from "../../utils/form.js";
|
|
5
4
|
import type { NumberingSystem } from "../../utils/locale.js";
|
|
6
5
|
import type { HeadingLevel } from "../functional/Heading.js";
|
|
7
6
|
import type { Status } from "../interfaces.js";
|
|
8
7
|
import type { IconName } from "../calcite-icon/interfaces.js";
|
|
9
8
|
import type { DatePicker } from "../calcite-date-picker/customElement.js";
|
|
9
|
+
import type { MutableValidityState } from "../../controllers/useForm.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @cssproperty [--calcite-input-date-picker-actions-icon-color] - Specifies the component's actions icon color.
|
|
@@ -23,7 +23,7 @@ import type { DatePicker } from "../calcite-date-picker/customElement.js";
|
|
|
23
23
|
* @cssproperty [--calcite-input-date-picker-calendar-current-day-text-color] - Specifies the text color of the component's calendar current day element.
|
|
24
24
|
* @cssproperty [--calcite-input-date-picker-calendar-day-background-color] - Specifies the background color of the component's calendar day elements.
|
|
25
25
|
* @cssproperty [--calcite-input-date-picker-calendar-day-background-color-hover] - Specifies the background color of the component's calendar day elements when hovered.
|
|
26
|
-
* @cssproperty [--calcite-input-date-picker-calendar-day-current-text-color] - [Deprecated] Use `--calcite-input-date-picker-calendar-current-day-text-color
|
|
26
|
+
* @cssproperty [--calcite-input-date-picker-calendar-day-current-text-color] - [Deprecated] in v3.3.1, removal target v6.0.0 - Use `--calcite-input-date-picker-calendar-current-day-text-color` instead. Specifies the text color of current day of the component's date-picker.
|
|
27
27
|
* @cssproperty [--calcite-input-date-picker-calendar-day-range-background-color] - Specifies the background color of the component's calendar selected day range.
|
|
28
28
|
* @cssproperty [--calcite-input-date-picker-calendar-day-range-text-color] - Specifies the text color of the component's calendar selected day range.
|
|
29
29
|
* @cssproperty [--calcite-input-date-picker-calendar-day-text-color-selected] - Specifies the text color of component's calendar selected day.
|
|
@@ -3,10 +3,10 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, isServer, nothing, html } from "lit";
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
5
|
import { LitElement, createEvent, stringOrBoolean, safeClassMap } from "@arcgis/lumina";
|
|
6
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
6
7
|
import { u as useFocusTrap } from "../../chunks/useFocusTrap.js";
|
|
7
8
|
import { l as datePartsFromISO, d as dateFromISO, b as dateFromRange, a as dateToISO, m as datePartsFromLocalizedString, o as dateFromLocalizedString, i as inRange } from "../../chunks/date.js";
|
|
8
9
|
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";
|
|
9
|
-
import { c as connectForm, d as disconnectForm, s as submitForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
|
|
10
10
|
import { n as numberKeys } from "../../chunks/key.js";
|
|
11
11
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
|
|
12
12
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
@@ -16,11 +16,11 @@ import { g as getValueAsDateRange, a as applyLocaleOverride, b as getLocaleData
|
|
|
16
16
|
import { g as guid } from "../../chunks/guid.js";
|
|
17
17
|
import { I as InternalLabel } from "../../chunks/InternalLabel.js";
|
|
18
18
|
import { V as Validation } from "../../chunks/Validation.js";
|
|
19
|
-
import { s as syncHiddenFormInput } from "../../chunks/input.js";
|
|
20
19
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
21
20
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
22
21
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
23
22
|
import { u as useTopLayer } from "../../chunks/useTopLayer.js";
|
|
23
|
+
import { u as useForm } from "../../chunks/useForm.js";
|
|
24
24
|
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 .menu-container[popover]{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;display:none}:host .menu-container:popover-open{display:block}:host .menu-container .calcite-floating-ui-anim{position:relative;transition-duration:var(--calcite-floating-ui-transition);transition-property:inset-block-start,left,opacity,display;transition-behavior:allow-discrete;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}:host .menu-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}:host .menu-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}:host .menu-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}:host .menu-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}@starting-style{:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:0}}:host{position:relative;display:inline-block;width:100%;overflow:visible;vertical-align:top;box-shadow:var(--calcite-input-date-picker-shadow, var(--calcite-shadow-none))}:host .menu-container .calcite-floating-ui-anim{box-shadow:var(--calcite-input-date-picker-calendar-shadow, var(--calcite-shadow-sm))}:host([scale=s]){--calcite-internal-date-picker-toggle-spacing: var(--calcite-spacing-sm);--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-internal-date-picker-toggle-spacing) + var(--calcite-spacing-lg))}:host([scale=m]){--calcite-internal-date-picker-toggle-spacing: var(--calcite-spacing-md);--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-internal-date-picker-toggle-spacing) + var(--calcite-spacing-xxl))}:host([scale=l]){--calcite-internal-date-picker-toggle-spacing: var(--calcite-spacing-lg);--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-internal-date-picker-toggle-spacing) + var(--calcite-spacing-xxxl))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.calendar-wrapper{box-shadow:var(--calcite-input-date-picker-calendar-shadow, var(--calcite-shadow-none));transform:translateZ(0)}.input-wrapper{position:relative}.input-wrapper .chevron-icon{color:var(--calcite-input-date-picker-actions-icon-color, var(--calcite-color-text-3))}.input-wrapper:focus-within .chevron-icon,.input-wrapper:active .chevron-icon,.input-wrapper:hover .chevron-icon{color:var(--calcite-input-date-picker-actions-icon-color-hover, var(--calcite-color-text-1))}.input-wrapper:focus-within~.input-wrapper .chevron-icon,.input-wrapper:active~.input-wrapper .chevron-icon,.input-wrapper:hover~.input-wrapper .chevron-icon{color:var(--calcite-input-date-picker-actions-icon-color-hover, var(--calcite-color-text-1))}.toggle-icon{position:absolute;display:flex;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-internal-date-picker-toggle-spacing)}:host([range]) .container{display:flex}:host([range]) .input-container{display:flex;flex:1 1 auto}:host([range]) .input-wrapper{flex:1 1 auto}.divider-container{display:flex;align-items:stretch;border-width:1px;border-left-width:0px;border-right-width:0px;border-style:solid;background-color:var(--calcite-input-date-picker-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-input-date-picker-border-color, var(--calcite-color-border-input))}:host([layout=horizontal]) .divider-container{inline-size:var(--calcite-spacing-px)}.divider{display:inline-block;margin-block:var(--calcite-spacing-xxs);background-color:var(--calcite-input-date-picker-divider-color, var(--calcite-color-border-2));inline-size:var(--calcite-spacing-px)}:host([layout=vertical]) .divider-container{height:1px;width:100%;border-top-width:0px;border-bottom-width:0px;border-inline-start-width:var(--calcite-border-width-sm);border-inline-end-width:var(--calcite-border-width-none);padding-inline:var(--calcite-spacing-md)}:host([layout=vertical]) .divider-container .divider{margin-top:0;margin-bottom:0;height:1px;width:100%}:host([range][layout=vertical]) .input-wrapper{width:100%}:host([range][layout=vertical]) .input-container{flex-direction:column;align-items:flex-start}.menu-container{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown);inline-size:max-content;display:none;max-inline-size:100vw;max-block-size:100vh;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}@starting-style{.menu-container{opacity:0;inset-block-start:0;left:0}}.menu-container[popover]{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;display:none}.menu-container:popover-open{display:block}.menu-container .calcite-floating-ui-anim{position:relative;transition-duration:var(--calcite-floating-ui-transition);transition-property:inset-block-start,left,opacity,display;transition-behavior:allow-discrete;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.menu-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.menu-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.menu-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.menu-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}@starting-style{.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:0}}.input .calcite-input__wrapper{margin-top:0}.vertical-chevron-container{display:flex;align-items:center;border-width:1px;border-style:solid;padding-inline:var(--calcite-spacing-md);background-color:var(--calcite-input-date-picker-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-input-date-picker-border-color, var(--calcite-color-border-input));border-inline-start-width:0}.vertical-chevron-container calcite-icon{color:var(--calcite-input-date-picker-actions-icon-color, var(--calcite-color-text-3))}.vertical-chevron-container calcite-icon:hover{color:var(--calcite-input-date-picker-actions-icon-color-hover, var(--calcite-color-text-1))}:host([range][layout=vertical][scale=s]) .vertical-chevron-container,:host([range][layout=vertical][scale=s]) .divider-container{padding-inline:var(--calcite-spacing-sm)}:host([range][layout=vertical][scale=l]) .vertical-chevron-container,:host([range][layout=vertical][scale=l]) .divider-container{padding-inline:var(--calcite-spacing-lg)}.container:focus-within .vertical-chevron-container calcite-icon,.container:active .vertical-chevron-container calcite-icon,.container:hover .vertical-chevron-container calcite-icon{color:var(--calcite-input-date-picker-actions-icon-color-hover, var(--calcite-color-text-1))}.input{--calcite-input-text-background-color: var(--calcite-input-date-picker-background-color);--calcite-input-text-border-color: var(--calcite-input-date-picker-border-color);--calcite-input-text-corner-radius: var(--calcite-input-date-picker-corner-radius);--calcite-input-text-shadow: var(--calcite-input-date-picker-shadow);--calcite-input-text-icon-color: var(--calcite-input-date-picker-icon-color);--calcite-input-text-text-color: var(--calcite-input-date-picker-text-color);--calcite-input-text-placeholder-text-color: var(--calcite-input-date-picker-placeholder-text-color)}calcite-date-picker{--calcite-date-picker-border-color: var(--calcite-input-date-picker-calendar-border-color);--calcite-date-picker-corner-radius: var(--calcite-input-date-picker-calendar-corner-radius);--calcite-date-picker-range-calendar-divider-color: var(--calcite-input-date-picker-calendar-range-divider-color);--calcite-date-picker-week-header-text-color: var(--calcite-input-date-picker-calendar-text-color);--calcite-date-picker-header-action-background-color: var( --calcite-input-date-picker-calendar-actions-background-color );--calcite-date-picker-header-action-background-color-hover: var( --calcite-input-date-picker-calendar-actions-background-color-hover );--calcite-date-picker-header-action-background-color-press: var( --calcite-input-date-picker-calendar-actions-background-color-press );--calcite-date-picker-header-action-text-color: var(--calcite-input-date-picker-calendar-actions-text-color);--calcite-date-picker-header-action-text-color-press: var( --calcite-input-date-picker-calendar-actions-text-color-press );--calcite-date-picker-year-text-color: var(--calcite-input-date-picker-calendar-text-color);--calcite-date-picker-month-select-text-color: var(--calcite-input-date-picker-calendar-month-select-text-color);--calcite-date-picker-month-select-icon-color: var(--calcite-input-date-picker-calendar-icon-color);--calcite-date-picker-month-select-icon-color-hover: var(--calcite-input-date-picker-calendar-icon-color-hover);--calcite-date-picker-day-background-color: var(--calcite-input-date-picker-calendar-day-background-color);--calcite-date-picker-day-background-color-hover: var( --calcite-input-date-picker-calendar-day-background-color-hover );--calcite-date-picker-day-background-color-selected: var( --calcite-input-date-picker-calendar-selected-background-color );--calcite-date-picker-day-text-color: var(--calcite-input-date-picker-calendar-day-text-color);--calcite-date-picker-day-text-color-hover: var(--calcite-input-date-picker-calendar-day-text-color-hover);--calcite-date-picker-day-text-color-selected: var(--calcite-input-date-picker-calendar-day-text-color-selected);--calcite-date-picker-current-day-text-color: var( --calcite-input-date-picker-calendar-current-day-text-color, var(--calcite-input-date-picker-calendar-day-current-text-color) );--calcite-date-picker-day-range-text-color: var(--calcite-input-date-picker-calendar-day-range-text-color);--calcite-date-picker-day-range-background-color: var( --calcite-input-date-picker-calendar-day-range-background-color );--calcite-date-picker-day-outside-range-background-color-hover: var( --calcite-input-date-picker-calendar-day-outside-range-background-color-hover );--calcite-date-picker-day-outside-range-text-color-hover: var( --calcite-input-date-picker-calendar-day-outside-range-text-color-hover )}.assistive-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
25
25
|
const CSS = {
|
|
26
26
|
assistiveText: "assistive-text",
|
|
@@ -72,6 +72,7 @@ class InputDatePicker extends LitElement {
|
|
|
72
72
|
super();
|
|
73
73
|
this.commonDateSeparators = [".", "-", "/"];
|
|
74
74
|
this.dialogId = IDS.dialog(guid());
|
|
75
|
+
this.direction = useDirection();
|
|
75
76
|
this.endInputRef = createRef();
|
|
76
77
|
this.focusOnOpen = false;
|
|
77
78
|
this.focusTrap = useFocusTrap({
|
|
@@ -93,6 +94,9 @@ class InputDatePicker extends LitElement {
|
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
96
|
})(this);
|
|
97
|
+
this.formSupport = useForm({
|
|
98
|
+
inputType: "date"
|
|
99
|
+
})(this);
|
|
96
100
|
this.transitionProp = "opacity";
|
|
97
101
|
this.placeholderTextId = IDS.placeholder(guid());
|
|
98
102
|
this.rangeStartValueChangedByUser = false;
|
|
@@ -148,6 +152,9 @@ class InputDatePicker extends LitElement {
|
|
|
148
152
|
static {
|
|
149
153
|
this.properties = { datePickerActiveDate: [16, {}, { state: true }], focusedInput: [16, {}, { state: true }], localeData: [16, {}, { state: true }], calendars: [11, {}, { type: Number, reflect: true }], disabled: [7, {}, { reflect: true, type: Boolean }], flipPlacements: [0, {}, { attribute: false }], focusTrapDisabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], headingLevel: [11, {}, { type: Number, reflect: true }], label: 1, labelText: 1, layout: [3, {}, { reflect: true }], max: [3, {}, { reflect: true }], maxAsDate: [0, {}, { attribute: false }], messageOverrides: [0, {}, { attribute: false }], min: [3, {}, { reflect: true }], minAsDate: [0, {}, { attribute: false }], monthStyle: 1, name: [3, {}, { reflect: true }], numberingSystem: [3, {}, { reflect: true }], open: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: [3, {}, { reflect: true }], placement: [3, {}, { reflect: true }], proximitySelectionDisabled: [5, {}, { type: Boolean }], range: [7, {}, { reflect: true, type: Boolean }], readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [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, valueAsDate: [0, {}, { attribute: false }] };
|
|
150
154
|
}
|
|
155
|
+
static {
|
|
156
|
+
this.formAssociated = true;
|
|
157
|
+
}
|
|
151
158
|
static {
|
|
152
159
|
this.shadowRootOptions = { mode: "open", delegatesFocus: true };
|
|
153
160
|
}
|
|
@@ -168,6 +175,7 @@ class InputDatePicker extends LitElement {
|
|
|
168
175
|
async reposition(delayed = false) {
|
|
169
176
|
const { floatingEl, referenceEl, placement, overlayPositioning, filteredFlipPlacements } = this;
|
|
170
177
|
return reposition(this, {
|
|
178
|
+
direction: this.direction,
|
|
171
179
|
floatingEl,
|
|
172
180
|
referenceEl,
|
|
173
181
|
overlayPositioning,
|
|
@@ -210,7 +218,6 @@ class InputDatePicker extends LitElement {
|
|
|
210
218
|
}
|
|
211
219
|
}
|
|
212
220
|
connectLabel(this);
|
|
213
|
-
connectForm(this);
|
|
214
221
|
this.setFilteredPlacements();
|
|
215
222
|
connectFloatingUI(this);
|
|
216
223
|
}
|
|
@@ -262,7 +269,6 @@ class InputDatePicker extends LitElement {
|
|
|
262
269
|
disconnectedCallback() {
|
|
263
270
|
super.disconnectedCallback();
|
|
264
271
|
disconnectLabel(this);
|
|
265
|
-
disconnectForm(this);
|
|
266
272
|
disconnectFloatingUI(this);
|
|
267
273
|
}
|
|
268
274
|
handleDisabledAndReadOnlyChange(value) {
|
|
@@ -387,9 +393,6 @@ class InputDatePicker extends LitElement {
|
|
|
387
393
|
this.datePickerEl?.reset();
|
|
388
394
|
this.topLayer.hide();
|
|
389
395
|
}
|
|
390
|
-
syncHiddenFormInput(input) {
|
|
391
|
-
syncHiddenFormInput("date", this, input);
|
|
392
|
-
}
|
|
393
396
|
blurHandler() {
|
|
394
397
|
this.open = false;
|
|
395
398
|
}
|
|
@@ -441,15 +444,31 @@ class InputDatePicker extends LitElement {
|
|
|
441
444
|
}
|
|
442
445
|
const targetHasSelect = event.composedPath().some((el) => el.tagName === "CALCITE-SELECT");
|
|
443
446
|
if (key === "Enter") {
|
|
444
|
-
|
|
447
|
+
const preCommitValue = this.value;
|
|
445
448
|
this.commitValue();
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
449
|
+
const focusRangeEnd = this.shouldFocusRangeEnd();
|
|
450
|
+
const focusRangeStart = !focusRangeEnd && this.shouldFocusRangeStart();
|
|
451
|
+
if (focusRangeEnd || focusRangeStart) {
|
|
452
|
+
event.preventDefault();
|
|
453
|
+
if (focusRangeEnd) {
|
|
454
|
+
this.endInputRef.value?.setFocus();
|
|
455
|
+
} else if (focusRangeStart) {
|
|
456
|
+
this.startInputRef.value?.setFocus();
|
|
457
|
+
}
|
|
458
|
+
return;
|
|
450
459
|
}
|
|
451
|
-
if (
|
|
460
|
+
if (this.open) {
|
|
452
461
|
this.restoreInputFocus(true);
|
|
462
|
+
event.preventDefault();
|
|
463
|
+
} else {
|
|
464
|
+
const formActive = this.formSupport.active;
|
|
465
|
+
const handledKey = preCommitValue !== this.value || formActive;
|
|
466
|
+
if (handledKey) {
|
|
467
|
+
event.preventDefault();
|
|
468
|
+
}
|
|
469
|
+
if (formActive) {
|
|
470
|
+
this.formSupport.requestSubmit();
|
|
471
|
+
}
|
|
453
472
|
}
|
|
454
473
|
} else if ((key === "ArrowDown" || key === "ArrowUp") && !targetHasSelect) {
|
|
455
474
|
this.open = true;
|
|
@@ -663,7 +682,7 @@ class InputDatePicker extends LitElement {
|
|
|
663
682
|
[CSS.inputNoTopBorder]: this.layout === "vertical" && this.range,
|
|
664
683
|
[CSS.inputNoLeftBorder]: this.layout === "horizontal" && this.range,
|
|
665
684
|
[CSS.inputNoRightBorder]: this.layout === "vertical" && this.range
|
|
666
|
-
})} .disabled=${disabled} .icon=${ICONS.calendar} .label=${this.messages.endDate} @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextBlur=${this.calciteInternalInputBlurHandler} @calciteInternalInputTextFocus=${this.endInputFocus} .placeholder=${this.localeData?.placeholder} .readOnly=${readOnly} role=combobox .scale=${this.scale} .status=${this.status} ${ref(this.endInputRef)}></calcite-input-text>${!this.readOnly && this.layout === "horizontal" && this.renderToggleIcon(this.open) || ""}</div>` || ""}</div>${this.range && this.layout === "vertical" && html`<div class=${safeClassMap(CSS.verticalChevronContainer)}><calcite-icon .icon=${this.open ? ICONS.chevronUp : ICONS.chevronDown} .scale=${getIconScale(this.scale)}></calcite-icon></div>` || ""}</div>${
|
|
685
|
+
})} .disabled=${disabled} .icon=${ICONS.calendar} .label=${this.messages.endDate} @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextBlur=${this.calciteInternalInputBlurHandler} @calciteInternalInputTextFocus=${this.endInputFocus} .placeholder=${this.localeData?.placeholder} .readOnly=${readOnly} role=combobox .scale=${this.scale} .status=${this.status} ${ref(this.endInputRef)}></calcite-input-text>${!this.readOnly && this.layout === "horizontal" && this.renderToggleIcon(this.open) || ""}</div>` || ""}</div>${this.range && this.layout === "vertical" && html`<div class=${safeClassMap(CSS.verticalChevronContainer)}><calcite-icon .icon=${this.open ? ICONS.chevronUp : ICONS.chevronDown} .scale=${getIconScale(this.scale)}></calcite-icon></div>` || ""}</div>${this.validationMessage && this.status === "invalid" ? Validation({ icon: this.validationIcon, id: IDS.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
|
|
667
686
|
}
|
|
668
687
|
renderToggleIcon(open) {
|
|
669
688
|
return html`<span class=${safeClassMap(CSS.toggleIcon)} tabindex=-1><calcite-icon class=${safeClassMap(CSS.chevronIcon)} .icon=${open ? ICONS.chevronUp : ICONS.chevronDown} .scale=${getIconScale(this.scale)}></calcite-icon></span>`;
|
|
@@ -5,7 +5,7 @@ import type { IconName } from "../calcite-icon/interfaces.js";
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated in v5.0.0, removal target v6.0.0 - Use the `calcite-notice` component with `appearance="transparent"` instead.
|
|
8
|
-
* @cssproperty [--calcite-input-message-spacing-value] - [Deprecated] Use `--calcite-input-message-spacing
|
|
8
|
+
* @cssproperty [--calcite-input-message-spacing-value] - [Deprecated] in v3.2.0, removal target v6.0.0 - Use `--calcite-input-message-spacing` instead. Specifies the margin spacing at the top of the component.
|
|
9
9
|
* @cssproperty [--calcite-input-message-spacing] - Specifies the component's top margin spacing.
|
|
10
10
|
* @cssproperty [--calcite-input-message-icon-color] - Specifies the component's icon color.
|
|
11
11
|
* @slot - A slot for adding text.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement, stringOrBoolean, setAttribute, safeClassMap } from "@arcgis/lumina";
|
|
5
|
-
import {
|
|
5
|
+
import { b as setRequestedIcon } from "../../chunks/dom.js";
|
|
6
6
|
const StatusIconDefaults = {
|
|
7
7
|
valid: "check-circle",
|
|
8
8
|
invalid: "exclamation-mark-triangle",
|
|
@@ -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 { Alignment, Scale, Status } from "../interfaces.js";
|
|
4
|
-
import type { MutableValidityState } from "../../utils/form.js";
|
|
5
4
|
import type { NumberingSystem } from "../../utils/locale.js";
|
|
6
5
|
import type { InputPlacement } from "../calcite-input/interfaces.js";
|
|
7
6
|
import type { IconName } from "../calcite-icon/interfaces.js";
|
|
7
|
+
import type { MutableValidityState } from "../../controllers/useForm.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @cssproperty [--calcite-input-actions-background-color] - Specifies the background color of the component's `clearable` and `number-button-type` elements.
|
|
@@ -5,19 +5,18 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
5
5
|
import { css, html, nothing } from "lit";
|
|
6
6
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
7
|
import { LitElement, createEvent, stringOrBoolean, safeClassMap } from "@arcgis/lumina";
|
|
8
|
-
import { useWatchAttributes } from "@arcgis/lumina/controllers";
|
|
9
|
-
import {
|
|
10
|
-
import { c as connectForm, i as internalHiddenInputInputEvent, d as disconnectForm, s as submitForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
|
|
8
|
+
import { useWatchAttributes, useDirection } from "@arcgis/lumina/controllers";
|
|
9
|
+
import { b as setRequestedIcon, j as isPrimaryPointerButton } from "../../chunks/dom.js";
|
|
11
10
|
import { n as numberKeys } from "../../chunks/key.js";
|
|
12
11
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
|
|
13
12
|
import { i as isValidNumber, n as numberStringFormatter, B as BigDecimal, p as parseNumberString, s as sanitizeNumberString, a as addLocalizedTrailingDecimalZeros } from "../../chunks/locale.js";
|
|
14
13
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
15
14
|
import { I as InternalLabel } from "../../chunks/InternalLabel.js";
|
|
16
15
|
import { V as Validation } from "../../chunks/Validation.js";
|
|
17
|
-
import { s as syncHiddenFormInput } from "../../chunks/input.js";
|
|
18
16
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
19
17
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
20
18
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
19
|
+
import { u as useForm } from "../../chunks/useForm.js";
|
|
21
20
|
const CSS = {
|
|
22
21
|
loader: "loader",
|
|
23
22
|
clearButton: "clear-button",
|
|
@@ -57,21 +56,15 @@ class InputNumber extends LitElement {
|
|
|
57
56
|
this.actionWrapperRef = createRef();
|
|
58
57
|
this.attributeWatch = useWatchAttributes(["autofocus", "enterkeyhint", "inputmode"], this.handleGlobalAttributesChanged);
|
|
59
58
|
this.childNumberRef = createRef();
|
|
59
|
+
this.direction = useDirection();
|
|
60
|
+
this.formSupport = useForm({
|
|
61
|
+
inputType: "number"
|
|
62
|
+
})(this);
|
|
60
63
|
this.inputWrapperRef = createRef();
|
|
61
|
-
this.onHiddenFormInputInput = (event) => {
|
|
62
|
-
if (event.target.name === this.name) {
|
|
63
|
-
this.setNumberValue({
|
|
64
|
-
value: event.target.value,
|
|
65
|
-
origin: "direct"
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
this.setFocus();
|
|
69
|
-
event.stopPropagation();
|
|
70
|
-
};
|
|
71
64
|
this.previousValueOrigin = "initial";
|
|
72
65
|
this.userChangedValue = false;
|
|
73
66
|
this._value = "";
|
|
74
|
-
this.messages = useT9n();
|
|
67
|
+
this.messages = useT9n({ blocking: true });
|
|
75
68
|
this.focusSetter = useSetFocus()(this);
|
|
76
69
|
this.interactiveContainer = useInteractive(this);
|
|
77
70
|
this.slottedActionElDisabledInternally = false;
|
|
@@ -112,6 +105,9 @@ class InputNumber extends LitElement {
|
|
|
112
105
|
static {
|
|
113
106
|
this.properties = { displayedValue: [16, {}, { state: true }], slottedActionElDisabledInternally: [16, {}, { state: true }], alignment: [3, {}, { reflect: true }], autocomplete: 1, clearable: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], editingEnabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], groupSeparator: [7, {}, { reflect: true, type: Boolean }], icon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], integer: [5, {}, { type: Boolean }], label: 1, labelText: 1, loading: [7, {}, { reflect: true, type: Boolean }], localeFormat: [5, {}, { type: Boolean }], max: [11, {}, { reflect: true, type: Number }], maxLength: [11, {}, { reflect: true, type: Number }], messageOverrides: [0, {}, { attribute: false }], min: [11, {}, { reflect: true, type: Number }], minLength: [11, {}, { reflect: true, type: Number }], name: [3, {}, { reflect: true }], numberButtonType: [3, {}, { reflect: true }], numberingSystem: [3, {}, { reflect: true }], placeholder: 1, prefixText: 1, readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], step: [3, {}, { reflect: true }], suffixText: 1, validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [0, {}, { attribute: false }], value: 1 };
|
|
114
107
|
}
|
|
108
|
+
static {
|
|
109
|
+
this.formAssociated = true;
|
|
110
|
+
}
|
|
115
111
|
static {
|
|
116
112
|
this.styles = styles;
|
|
117
113
|
}
|
|
@@ -147,8 +143,6 @@ class InputNumber extends LitElement {
|
|
|
147
143
|
this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
|
|
148
144
|
}
|
|
149
145
|
connectLabel(this);
|
|
150
|
-
connectForm(this);
|
|
151
|
-
this.el.addEventListener(internalHiddenInputInputEvent, this.onHiddenFormInputInput);
|
|
152
146
|
}
|
|
153
147
|
async load() {
|
|
154
148
|
this.maxString = this.max?.toString();
|
|
@@ -191,9 +185,7 @@ class InputNumber extends LitElement {
|
|
|
191
185
|
disconnectedCallback() {
|
|
192
186
|
super.disconnectedCallback();
|
|
193
187
|
disconnectLabel(this);
|
|
194
|
-
disconnectForm(this);
|
|
195
188
|
this.stopNudging();
|
|
196
|
-
this.el.removeEventListener(internalHiddenInputInputEvent, this.onHiddenFormInputInput);
|
|
197
189
|
}
|
|
198
190
|
stopNudging() {
|
|
199
191
|
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
@@ -225,10 +217,9 @@ class InputNumber extends LitElement {
|
|
|
225
217
|
this.clearInputValue(event);
|
|
226
218
|
event.preventDefault();
|
|
227
219
|
}
|
|
228
|
-
if (event.key === "Enter") {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
}
|
|
220
|
+
if (event.key === "Enter" && this.formSupport.active) {
|
|
221
|
+
this.formSupport.requestSubmit();
|
|
222
|
+
event.preventDefault();
|
|
232
223
|
}
|
|
233
224
|
}
|
|
234
225
|
onLabelClick() {
|
|
@@ -428,9 +419,6 @@ class InputNumber extends LitElement {
|
|
|
428
419
|
this.nudgeNumberValue(direction, event);
|
|
429
420
|
}
|
|
430
421
|
}
|
|
431
|
-
syncHiddenFormInput(input) {
|
|
432
|
-
syncHiddenFormInput("number", this, input);
|
|
433
|
-
}
|
|
434
422
|
setInputNumberValue(newInputValue) {
|
|
435
423
|
if (!this.childNumberRef.value) {
|
|
436
424
|
return;
|
|
@@ -513,7 +501,7 @@ class InputNumber extends LitElement {
|
|
|
513
501
|
}
|
|
514
502
|
}
|
|
515
503
|
render() {
|
|
516
|
-
const dir =
|
|
504
|
+
const dir = this.direction;
|
|
517
505
|
const loader = html`<div class=${safeClassMap(CSS.loader)}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`;
|
|
518
506
|
const inputClearButton = html`<button .ariaLabel=${this.messages.clear} class=${safeClassMap(CSS.clearButton)} .disabled=${this.disabled || this.readOnly} @click=${this.clearInputValue} tabindex=-1 type=button><calcite-icon .icon=${ICONS.clear} .scale=${getIconScale(this.scale)}></calcite-icon></button>`;
|
|
519
507
|
const iconEl = html`<calcite-icon class=${safeClassMap(CSS.inputIcon)} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${getIconScale(this.scale)}></calcite-icon>`;
|
|
@@ -536,7 +524,7 @@ class InputNumber extends LitElement {
|
|
|
536
524
|
[CSS.hasSuffix]: this.suffixText,
|
|
537
525
|
[CSS.hasPrefix]: this.prefixText,
|
|
538
526
|
[CSS.clearable]: this.isClearable
|
|
539
|
-
})} ${ref(this.inputWrapperRef)}>${this.numberButtonType === "horizontal" && !this.readOnly ? numberButtonsHorizontalDown : null}${this.prefixText ? prefixText : null}<div class=${safeClassMap(CSS.wrapper)}>${childEl}${this.isClearable ? inputClearButton : null}${this.requestedIcon ? iconEl : null}${this.loading ? loader : null}</div><div class=${safeClassMap(CSS.actionWrapper)} ${ref(this.actionWrapperRef)}><slot name=${SLOTS.action}></slot></div>${this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null}${this.suffixText ? suffixText : null}${this.numberButtonType === "horizontal" && !this.readOnly ? numberButtonsHorizontalUp : null}
|
|
527
|
+
})} ${ref(this.inputWrapperRef)}>${this.numberButtonType === "horizontal" && !this.readOnly ? numberButtonsHorizontalDown : null}${this.prefixText ? prefixText : null}<div class=${safeClassMap(CSS.wrapper)}>${childEl}${this.isClearable ? inputClearButton : null}${this.requestedIcon ? iconEl : null}${this.loading ? loader : null}</div><div class=${safeClassMap(CSS.actionWrapper)} ${ref(this.actionWrapperRef)}><slot name=${SLOTS.action}></slot></div>${this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null}${this.suffixText ? suffixText : null}${this.numberButtonType === "horizontal" && !this.readOnly ? numberButtonsHorizontalUp : null}</div>${this.validationMessage && this.status === "invalid" ? Validation({ icon: this.validationIcon, id: IDS.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
|
|
540
528
|
}
|
|
541
529
|
}
|
|
542
530
|
customElement("calcite-input-number", InputNumber);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
-
import type { MutableValidityState } from "../../
|
|
3
|
+
import type { MutableValidityState } from "../../controllers/useForm.js";
|
|
4
4
|
import type { Alignment, Scale, Status } from "../interfaces.js";
|
|
5
5
|
import type { IconName } from "../calcite-icon/interfaces.js";
|
|
6
6
|
|