@esri/calcite-components 5.1.0-next.6 → 5.1.0-next.60
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/dist/cdn/{L62IP5MG.js → 2JC63UBS.js} +1 -1
- package/dist/cdn/2PQRUWNS.js +2 -0
- package/dist/cdn/{YGKHTZ4V.js → 2W7I2RRR.js} +1 -1
- package/dist/cdn/33NBRPD5.js +2 -0
- package/dist/cdn/{TR56QFJC.js → 34NMNGJX.js} +1 -1
- package/dist/cdn/{YBIQF3JQ.js → 36V2SAYV.js} +1 -1
- package/dist/cdn/3RKYV4EU.js +2 -0
- package/dist/cdn/4C4TYQBB.js +2 -0
- package/dist/cdn/{27S7SCHF.js → 4DTIKF3X.js} +1 -1
- package/dist/cdn/4X7777BM.js +2 -0
- package/dist/cdn/{DNYQCUGR.js → 53ELH3LP.js} +1 -1
- package/dist/cdn/5GPET3LM.js +2 -0
- package/dist/cdn/5ICBDVRX.js +2 -0
- package/dist/cdn/5IEGYEGX.js +2 -0
- package/dist/cdn/{HAVRDDW3.js → 5NQFTJZK.js} +1 -1
- package/dist/cdn/5TGQPSUE.js +2 -0
- package/dist/cdn/{ZCJDNXK2.js → 6EKA77FA.js} +1 -1
- package/dist/cdn/{XI7FVSES.js → 6FN7HUWQ.js} +1 -1
- package/dist/cdn/{HBRWGV2Z.js → 6KAHTFCR.js} +1 -1
- package/dist/cdn/{56V6AANR.js → 6N2EIPRN.js} +1 -1
- package/dist/cdn/6REHHP67.js +2 -0
- package/dist/cdn/6ULZKAI4.js +2 -0
- package/dist/cdn/77KENABW.js +2 -0
- package/dist/cdn/{AECJNJ7Y.js → 77N34KNA.js} +1 -1
- package/dist/cdn/7JEZPJH4.js +2 -0
- package/dist/cdn/{RZSXCJTK.js → 7QL3YAQN.js} +1 -1
- package/dist/cdn/{HJRA23WV.js → 7XXNWTI2.js} +1 -1
- package/dist/cdn/ABV5DIAC.js +3 -0
- package/dist/cdn/ACPNEYIL.js +2 -0
- package/dist/cdn/ADSGKQWL.js +2 -0
- package/dist/cdn/AWVSUBJI.js +2 -0
- package/dist/cdn/AXYMVOBP.js +2 -0
- package/dist/cdn/B5A5VFJH.js +2 -0
- package/dist/cdn/BCQGOHCH.js +2 -0
- package/dist/cdn/{44K6CFSA.js → BM5NT2QG.js} +1 -1
- package/dist/cdn/{QMSQZWET.js → BXB2IHL5.js} +1 -1
- package/dist/cdn/CE6T3SFL.js +2 -0
- package/dist/cdn/CEDX246E.js +2 -0
- package/dist/cdn/CHD3ILKJ.js +2 -0
- package/dist/cdn/CHZZ2RYJ.js +2 -0
- package/dist/cdn/CXYCOZWQ.js +2 -0
- package/dist/cdn/{EHIAXJAL.js → DCWL5FUH.js} +1 -1
- package/dist/cdn/{PKKVWQIA.js → DDV63NHR.js} +1 -1
- package/dist/cdn/{P3W4A5BT.js → DJNFR4QI.js} +1 -1
- package/dist/cdn/{W5HANC6S.js → DLTF566J.js} +1 -1
- package/dist/cdn/{2M3L5CHC.js → DN3KX247.js} +1 -1
- package/dist/cdn/{YNGZPTWY.js → DOAP6WCZ.js} +1 -1
- package/dist/cdn/{6UH6TKTT.js → DRJLGXXO.js} +1 -1
- package/dist/cdn/{633FBLBS.js → DXY4C23A.js} +1 -1
- package/dist/cdn/{OSCPBA6O.js → DYDCVPOI.js} +1 -1
- package/dist/cdn/EGAAH6TG.js +2 -0
- package/dist/cdn/EJJQX4ML.js +2 -0
- package/dist/cdn/{GCGNKBZK.js → ENVIXFZU.js} +1 -1
- package/dist/cdn/{JVNG2BRO.js → EQU5P7SN.js} +1 -1
- package/dist/cdn/ESARDC6W.js +4 -0
- package/dist/cdn/ETIRLUPQ.js +2 -0
- package/dist/cdn/EYD2BXTW.js +2 -0
- package/dist/cdn/{7KPHVGVG.js → FE5OXGG4.js} +1 -1
- package/dist/cdn/G2HH5QEA.js +2 -0
- package/dist/cdn/G4U3PZ4V.js +2 -0
- package/dist/cdn/{ZB7NSHVW.js → G56X4IMP.js} +1 -1
- package/dist/cdn/GAAMXPVO.js +2 -0
- package/dist/cdn/GZJW26MB.js +2 -0
- package/dist/cdn/{6E6JZIDL.js → HBUIHCQ3.js} +1 -1
- package/dist/cdn/HH2LOAD2.js +2 -0
- package/dist/cdn/HSZGLDOY.js +2 -0
- package/dist/cdn/HYNLQ4YH.js +2 -0
- package/dist/cdn/IFEA2KUL.js +2 -0
- package/dist/cdn/IHLWEKHE.js +2 -0
- package/dist/cdn/IJVKNIVS.js +2 -0
- package/dist/cdn/IR5JNEWB.js +2 -0
- package/dist/cdn/IU5CF77N.js +2 -0
- package/dist/cdn/{JN5O4TLZ.js → IYHZBXVJ.js} +1 -1
- package/dist/cdn/IZ5V7N6A.js +2 -0
- package/dist/cdn/{XZX7ZHUA.js → JG5UHKQX.js} +1 -1
- package/dist/cdn/{IYMANB2G.js → JYLOZBNI.js} +1 -1
- package/dist/cdn/{O24SM7OF.js → KAQIINQ5.js} +1 -1
- package/dist/cdn/{JX4VBEH7.js → KBWDP7P5.js} +1 -1
- package/dist/cdn/{KJ42NLHR.js → KJBAHESF.js} +1 -1
- package/dist/cdn/KME5K4QX.js +2 -0
- package/dist/cdn/KNF3VDEF.js +2 -0
- package/dist/cdn/KTZXSDRQ.js +2 -0
- package/dist/cdn/{3HLHTUY5.js → KVPCYSF3.js} +1 -1
- package/dist/cdn/KZTXVBNL.js +2 -0
- package/dist/cdn/L7NZTBLE.js +2 -0
- package/dist/cdn/LQAE2SIH.js +2 -0
- package/dist/cdn/LUT36ST7.js +2 -0
- package/dist/cdn/LY62ZB2S.js +2 -0
- package/dist/cdn/M3HCHRLK.js +2 -0
- package/dist/cdn/{TWXMFG7A.js → M7SC44EX.js} +1 -1
- package/dist/cdn/{27KIJJVA.js → MBCDO7AO.js} +1 -1
- package/dist/cdn/{JQY63BDJ.js → MEBYN4KS.js} +1 -1
- package/dist/cdn/MYBWQ74T.js +2 -0
- package/dist/cdn/{3GV45XL7.js → MYDCGCGV.js} +1 -1
- package/dist/cdn/N4CKEM5T.js +2 -0
- package/dist/cdn/NKP6IMXA.js +2 -0
- package/dist/cdn/{REPXOUSM.js → NOF5PWPK.js} +1 -1
- package/dist/cdn/NSGUDIUD.js +2 -0
- package/dist/cdn/OJFAV7QX.js +2 -0
- package/dist/cdn/OPPGSVL7.js +2 -0
- package/dist/cdn/P62ELMRK.js +2 -0
- package/dist/cdn/{NLVQFJ3Z.js → PIKQITD7.js} +1 -1
- package/dist/cdn/{46ATGQXN.js → PPIX3XNI.js} +1 -1
- package/dist/cdn/PSCB2XXW.js +2 -0
- package/dist/cdn/{WE2SWJDR.js → PZ2LNZ7Q.js} +1 -1
- package/dist/cdn/PZ32GCPB.js +2 -0
- package/dist/cdn/Q3D6A7JD.js +2 -0
- package/dist/cdn/Q77UTH6Y.js +2 -0
- package/dist/cdn/{CSXVZ7IA.js → QAP4EE6I.js} +1 -1
- package/dist/cdn/{MCSIAIDA.js → QEDFI5NC.js} +1 -1
- package/dist/cdn/{526JZ6Y2.js → QIACXKZX.js} +1 -1
- package/dist/cdn/{4HL2Z5HN.js → QR33PARD.js} +1 -1
- package/dist/cdn/QTQYMKX6.js +2 -0
- package/dist/cdn/{FIYBHBE3.js → QY422VCO.js} +1 -1
- package/dist/cdn/{QX54642B.js → RDN36IJS.js} +1 -1
- package/dist/cdn/RLASUYQO.js +4 -0
- package/dist/cdn/ROENLRQS.js +2 -0
- package/dist/cdn/S2ICXQXT.js +2 -0
- package/dist/cdn/{CILYQWNA.js → SE3IOYSI.js} +1 -1
- package/dist/cdn/SJYIDE3P.js +2 -0
- package/dist/cdn/{AELSFDTC.js → SNGWW3DM.js} +1 -1
- package/dist/cdn/SZS6IBW7.js +2 -0
- package/dist/cdn/{PT5LBDUL.js → TGMGVOQH.js} +1 -1
- package/dist/cdn/{3N3YST3P.js → U75VROWX.js} +1 -1
- package/dist/cdn/UFPOH4DH.js +2 -0
- package/dist/cdn/UJIEG7DT.js +2 -0
- package/dist/cdn/{ETPCGFQN.js → UX7WP7OG.js} +1 -1
- package/dist/cdn/VEM5ZVQY.js +2 -0
- package/dist/cdn/VT6TY3DQ.js +2 -0
- package/dist/cdn/VWG4LTDM.js +2 -0
- package/dist/cdn/WAYYJNXJ.js +2 -0
- package/dist/cdn/WFBKZENT.js +2 -0
- package/dist/cdn/{RH6ZIP65.js → WGGFNK4Z.js} +1 -1
- package/dist/cdn/{B4SHCCW6.js → WUYBJO7J.js} +1 -1
- package/dist/cdn/{BVFHM66P.js → WWBUXJER.js} +1 -1
- package/dist/cdn/XFDDRAT2.js +2 -0
- package/dist/cdn/{NU744SVB.js → XKU4UAGF.js} +1 -1
- package/dist/cdn/{D2EYC7T6.js → XP2EMBHK.js} +1 -1
- package/dist/cdn/{OS5HZHBU.js → XVXDBX77.js} +1 -1
- package/dist/cdn/{57UFQM3M.js → YH26LJXE.js} +1 -1
- package/dist/cdn/{JVZSWSGV.js → YLYJ5GXE.js} +1 -1
- package/dist/cdn/YMO6IP7V.js +2 -0
- package/dist/cdn/YSS6A2ND.js +2 -0
- package/dist/cdn/{NCCVRAIB.js → ZANCD4RO.js} +1 -1
- package/dist/cdn/{THSY4EQU.js → ZHJNYGAU.js} +1 -1
- package/dist/cdn/{NGDCIJ3J.js → ZK2T6DXD.js} +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/icon/arcgisQuickcapture16.json +1 -0
- package/dist/cdn/assets/icon/arcgisQuickcapture24.json +1 -0
- package/dist/cdn/assets/icon/arcgisQuickcapture32.json +1 -0
- package/dist/cdn/assets/icon/arcgisSurvey12316.json +1 -0
- package/dist/cdn/assets/icon/arcgisSurvey12324.json +1 -0
- package/dist/cdn/assets/icon/arcgisSurvey12332.json +1 -0
- package/dist/cdn/assets/icon/buttons16.json +1 -0
- package/dist/cdn/assets/icon/buttons24.json +1 -0
- package/dist/cdn/assets/icon/buttons32.json +1 -0
- package/dist/cdn/assets/icon/entityTypes16.json +1 -0
- package/dist/cdn/assets/icon/entityTypes24.json +1 -0
- package/dist/cdn/assets/icon/entityTypes32.json +1 -0
- package/dist/cdn/assets/icon/gpsReceiver16.json +1 -0
- package/dist/cdn/assets/icon/gpsReceiver24.json +1 -0
- package/dist/cdn/assets/icon/gpsReceiver32.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/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/returnToDefault16.json +1 -0
- package/dist/cdn/assets/icon/returnToDefault24.json +1 -0
- package/dist/cdn/assets/icon/returnToDefault32.json +1 -0
- package/dist/cdn/assets/icon/reviewMap16.json +1 -0
- package/dist/cdn/assets/icon/reviewMap24.json +1 -0
- package/dist/cdn/assets/icon/reviewMap32.json +1 -0
- package/dist/cdn/assets/icon/totalStation16.json +1 -0
- package/dist/cdn/assets/icon/totalStation24.json +1 -0
- package/dist/cdn/assets/icon/totalStation32.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/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/ClearButton.js +16 -0
- package/dist/chunks/ExpandToggle.js +2 -2
- package/dist/chunks/Heading.js +3 -3
- package/dist/chunks/component.js +1 -1
- package/dist/chunks/dom.js +49 -28
- package/dist/chunks/floating-ui.js +2 -5
- package/dist/chunks/locale.js +29 -12
- package/dist/chunks/manager.js +505 -0
- package/dist/chunks/resources5.js +2 -1
- package/dist/chunks/resources6.js +2 -0
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/useFocusTrap.js +25 -0
- package/dist/chunks/useForm.js +327 -0
- package/dist/chunks/useFormTrigger.js +25 -0
- package/dist/chunks/{sortableComponent.js → useSortable.js} +70 -44
- package/dist/chunks/utils.js +6 -6
- package/dist/chunks/utils3.js +18 -3
- package/dist/components/calcite-accordion-item/customElement.d.ts +6 -6
- package/dist/components/calcite-action/customElement.d.ts +20 -12
- package/dist/components/calcite-action/customElement.js +10 -15
- package/dist/components/calcite-action-bar/customElement.d.ts +4 -4
- package/dist/components/calcite-action-bar/customElement.js +12 -6
- package/dist/components/calcite-action-group/customElement.d.ts +12 -6
- package/dist/components/calcite-action-group/customElement.js +2 -1
- package/dist/components/calcite-action-menu/customElement.d.ts +2 -2
- package/dist/components/calcite-action-pad/customElement.d.ts +3 -3
- package/dist/components/calcite-action-pad/customElement.js +12 -7
- package/dist/components/calcite-alert/customElement.d.ts +2 -2
- package/dist/components/calcite-alert/customElement.js +1 -1
- package/dist/components/calcite-autocomplete/customElement.d.ts +16 -13
- package/dist/components/calcite-autocomplete/customElement.js +21 -32
- package/dist/components/calcite-autocomplete-item/customElement.d.ts +6 -0
- package/dist/components/calcite-autocomplete-item/customElement.js +9 -4
- package/dist/components/calcite-block/customElement.d.ts +11 -7
- package/dist/components/calcite-block/customElement.js +1 -1
- package/dist/components/calcite-block-group/customElement.d.ts +1 -1
- package/dist/components/calcite-block-group/customElement.js +4 -11
- package/dist/components/calcite-block-group/interfaces.d.ts +2 -6
- package/dist/components/calcite-block-section/customElement.d.ts +1 -1
- package/dist/components/calcite-button/customElement.d.ts +6 -6
- package/dist/components/calcite-button/customElement.js +10 -22
- package/dist/components/calcite-card/customElement.d.ts +11 -5
- package/dist/components/calcite-card/customElement.js +5 -3
- package/dist/components/calcite-card-group/customElement.d.ts +9 -3
- package/dist/components/calcite-card-group/customElement.js +11 -1
- package/dist/components/calcite-carousel/customElement.d.ts +8 -2
- package/dist/components/calcite-carousel/customElement.js +11 -8
- package/dist/components/calcite-carousel/interfaces.d.ts +3 -1
- package/dist/components/calcite-checkbox/customElement.d.ts +4 -5
- package/dist/components/calcite-checkbox/customElement.js +8 -22
- package/dist/components/calcite-chip/customElement.d.ts +2 -2
- package/dist/components/calcite-chip/customElement.js +1 -1
- package/dist/components/calcite-chip-group/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker/customElement.d.ts +2 -2
- package/dist/components/calcite-color-picker/customElement.js +2 -2
- package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
- package/dist/components/calcite-color-picker-swatch/customElement.d.ts +1 -1
- package/dist/components/calcite-combobox/customElement.d.ts +5 -5
- package/dist/components/calcite-combobox/customElement.js +195 -108
- package/dist/components/calcite-combobox/index.js +2 -1
- package/dist/components/calcite-combobox-item/customElement.d.ts +1 -1
- package/dist/components/calcite-combobox-item/customElement.js +1 -1
- package/dist/components/calcite-date-picker/customElement.d.ts +1 -1
- package/dist/components/calcite-date-picker/customElement.js +4 -14
- package/dist/components/calcite-date-picker-day/customElement.d.ts +1 -1
- package/dist/components/calcite-date-picker-day/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month/customElement.js +2 -2
- package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
- package/dist/components/calcite-dialog/customElement.d.ts +7 -5
- package/dist/components/calcite-dialog/customElement.js +4 -2
- package/dist/components/calcite-dropdown/customElement.d.ts +15 -5
- package/dist/components/calcite-dropdown/customElement.js +166 -91
- package/dist/components/calcite-dropdown-item/customElement.d.ts +2 -2
- package/dist/components/calcite-dropdown-item/customElement.js +14 -32
- package/dist/components/calcite-fab/customElement.d.ts +1 -1
- package/dist/components/calcite-fab/customElement.js +2 -2
- package/dist/components/calcite-filter/customElement.d.ts +1 -1
- package/dist/components/calcite-flow/customElement.d.ts +1 -1
- package/dist/components/calcite-flow-item/customElement.d.ts +8 -5
- package/dist/components/calcite-flow-item/customElement.js +4 -2
- package/dist/components/calcite-graph/customElement.js +1 -1
- package/dist/components/calcite-handle/customElement.d.ts +1 -1
- package/dist/components/calcite-icon/customElement.d.ts +1 -1
- package/dist/components/calcite-inline-editable/customElement.d.ts +2 -2
- package/dist/components/calcite-inline-editable/customElement.js +1 -1
- package/dist/components/calcite-input/customElement.d.ts +17 -18
- package/dist/components/calcite-input/customElement.js +26 -49
- package/dist/components/calcite-input/index.js +1 -0
- package/dist/components/calcite-input-date-picker/customElement.d.ts +6 -7
- package/dist/components/calcite-input-date-picker/customElement.js +67 -76
- package/dist/components/calcite-input-message/customElement.d.ts +1 -1
- package/dist/components/calcite-input-number/customElement.d.ts +13 -14
- package/dist/components/calcite-input-number/customElement.js +22 -48
- package/dist/components/calcite-input-number/index.js +1 -0
- package/dist/components/calcite-input-text/customElement.d.ts +11 -12
- package/dist/components/calcite-input-text/customElement.js +8 -179
- package/dist/components/calcite-input-text/index.js +1 -0
- package/dist/components/calcite-input-time-picker/customElement.d.ts +6 -7
- package/dist/components/calcite-input-time-picker/customElement.js +11 -23
- package/dist/components/calcite-input-time-zone/customElement.d.ts +5 -6
- package/dist/components/calcite-input-time-zone/customElement.js +21 -19
- package/dist/components/calcite-label/customElement.js +1 -1
- package/dist/components/calcite-link/customElement.d.ts +9 -9
- package/dist/components/calcite-link/customElement.js +28 -23
- package/dist/components/calcite-list/customElement.d.ts +1 -1
- package/dist/components/calcite-list/customElement.js +41 -17
- package/dist/components/calcite-list/interfaces.d.ts +2 -6
- package/dist/components/calcite-list-item/customElement.d.ts +2 -2
- package/dist/components/calcite-list-item/customElement.js +7 -4
- package/dist/components/calcite-list-item-group/customElement.js +7 -1
- package/dist/components/calcite-loader/customElement.d.ts +1 -1
- package/dist/components/calcite-menu/customElement.d.ts +1 -1
- package/dist/components/calcite-menu/customElement.js +1 -1
- package/dist/components/calcite-menu-item/customElement.d.ts +3 -3
- package/dist/components/calcite-menu-item/customElement.js +1 -1
- package/dist/components/calcite-meter/customElement.d.ts +7 -1
- package/dist/components/calcite-meter/customElement.js +4 -8
- package/dist/components/calcite-navigation/customElement.d.ts +9 -2
- package/dist/components/calcite-navigation/customElement.js +56 -3
- package/dist/components/calcite-navigation-logo/customElement.d.ts +3 -3
- package/dist/components/calcite-navigation-logo/customElement.js +4 -3
- package/dist/components/calcite-navigation-user/customElement.d.ts +2 -2
- package/dist/components/calcite-navigation-user/customElement.js +11 -6
- package/dist/components/calcite-notice/customElement.d.ts +3 -3
- package/dist/components/calcite-notice/customElement.js +1 -1
- package/dist/components/calcite-pagination/customElement.d.ts +1 -1
- package/dist/components/calcite-pagination/customElement.js +1 -1
- package/dist/components/calcite-panel/customElement.d.ts +7 -5
- package/dist/components/calcite-panel/customElement.js +20 -8
- package/dist/components/calcite-popover/customElement.d.ts +2 -2
- package/dist/components/calcite-popover/customElement.js +12 -176
- package/dist/components/calcite-radio-button/customElement.d.ts +16 -1
- package/dist/components/calcite-radio-button/customElement.js +10 -18
- package/dist/components/calcite-radio-button-group/customElement.d.ts +1 -1
- package/dist/components/calcite-rating/customElement.d.ts +3 -4
- package/dist/components/calcite-rating/customElement.js +12 -18
- package/dist/components/calcite-segmented-control/customElement.d.ts +3 -4
- package/dist/components/calcite-segmented-control/customElement.js +8 -19
- package/dist/components/calcite-segmented-control-item/customElement.d.ts +0 -1
- package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
- package/dist/components/calcite-select/customElement.d.ts +3 -4
- package/dist/components/calcite-select/customElement.js +9 -20
- package/dist/components/calcite-sheet/customElement.d.ts +3 -3
- package/dist/components/calcite-sheet/customElement.js +3 -7
- package/dist/components/calcite-shell-panel/customElement.d.ts +4 -4
- package/dist/components/calcite-shell-panel/customElement.js +59 -30
- package/dist/components/calcite-slider/customElement.d.ts +3 -4
- package/dist/components/calcite-slider/customElement.js +12 -22
- package/dist/components/calcite-sort-handle/customElement.d.ts +4 -4
- package/dist/components/calcite-sort-handle/customElement.js +44 -17
- package/dist/components/calcite-sortable-list/customElement.d.ts +1 -1
- package/dist/components/calcite-sortable-list/customElement.js +3 -3
- package/dist/components/calcite-split-button/customElement.d.ts +8 -8
- package/dist/components/calcite-stepper/customElement.d.ts +2 -2
- package/dist/components/calcite-stepper/customElement.js +29 -42
- package/dist/components/calcite-stepper-item/customElement.d.ts +1 -1
- package/dist/components/calcite-stepper-item/customElement.js +2 -8
- package/dist/components/calcite-swatch/customElement.d.ts +1 -1
- package/dist/components/calcite-switch/customElement.d.ts +4 -4
- package/dist/components/calcite-switch/customElement.js +9 -8
- 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 +1 -1
- package/dist/components/calcite-tab-title/customElement.js +1 -1
- package/dist/components/calcite-table/customElement.js +1 -1
- package/dist/components/calcite-table-cell/customElement.d.ts +2 -2
- package/dist/components/calcite-table-header/customElement.d.ts +2 -2
- package/dist/components/calcite-table-row/customElement.d.ts +1 -1
- package/dist/components/calcite-tabs/customElement.js +1 -1
- package/dist/components/calcite-text-area/customElement.d.ts +13 -14
- package/dist/components/calcite-text-area/customElement.js +32 -37
- package/dist/components/calcite-tile/customElement.d.ts +1 -1
- package/dist/components/calcite-time-picker/customElement.d.ts +1 -1
- package/dist/components/calcite-time-picker/customElement.js +2 -2
- package/dist/components/calcite-tooltip/customElement.d.ts +15 -2
- package/dist/components/calcite-tooltip/customElement.js +24 -315
- package/dist/components/calcite-tree/customElement.js +1 -1
- package/dist/components/calcite-tree-item/customElement.js +2 -3
- package/dist/controllers/useSortable.d.ts +7 -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 +28 -28
- package/dist/types/lumina.d.ts +9 -9
- package/dist/types/preact.d.ts +9 -9
- package/dist/types/react.d.ts +9 -9
- package/dist/types/stencil.d.ts +9 -9
- package/package.json +22 -23
- package/dist/cdn/232WBXIW.js +0 -2
- package/dist/cdn/2CV466KR.js +0 -2
- package/dist/cdn/2XWHTJYS.js +0 -2
- package/dist/cdn/3OCOXFJX.js +0 -2
- package/dist/cdn/3ZTULMLE.js +0 -2
- package/dist/cdn/5D32LNQR.js +0 -2
- package/dist/cdn/5G2KVW4P.js +0 -2
- package/dist/cdn/5H7EBO5K.js +0 -2
- package/dist/cdn/5HB4KJ7Y.js +0 -2
- package/dist/cdn/66YZFACX.js +0 -2
- package/dist/cdn/672VGWH7.js +0 -2
- package/dist/cdn/67O6G5DT.js +0 -2
- package/dist/cdn/6CKEQZO7.js +0 -2
- package/dist/cdn/6XNHTAM2.js +0 -2
- package/dist/cdn/7MRH7XSL.js +0 -2
- package/dist/cdn/7UOYXJ3K.js +0 -2
- package/dist/cdn/AKVWZOJU.js +0 -2
- package/dist/cdn/ARN4B4IT.js +0 -2
- package/dist/cdn/BCO3LX7A.js +0 -2
- package/dist/cdn/BRMCZ6ZG.js +0 -2
- package/dist/cdn/BRXJTIAG.js +0 -2
- package/dist/cdn/C44ME3U7.js +0 -2
- package/dist/cdn/EMOZ2DH3.js +0 -2
- package/dist/cdn/FC5MLLP5.js +0 -2
- package/dist/cdn/FO3VFHYC.js +0 -2
- package/dist/cdn/HGX7LZAA.js +0 -2
- package/dist/cdn/HMZKLPV5.js +0 -2
- package/dist/cdn/IBP55ZGE.js +0 -2
- package/dist/cdn/IIYUSLAE.js +0 -2
- package/dist/cdn/K724PPGV.js +0 -2
- package/dist/cdn/KP6U3OB3.js +0 -2
- package/dist/cdn/KT4JL3GM.js +0 -2
- package/dist/cdn/KZ5EXCXL.js +0 -2
- package/dist/cdn/L3TZLATI.js +0 -2
- package/dist/cdn/LCHIHTFT.js +0 -2
- package/dist/cdn/LKQBHGZ7.js +0 -2
- package/dist/cdn/LOPKPGRY.js +0 -2
- package/dist/cdn/LRM2CLPW.js +0 -2
- package/dist/cdn/LRM7ZHT5.js +0 -2
- package/dist/cdn/LSDUQPFS.js +0 -2
- package/dist/cdn/LTLVP6R6.js +0 -2
- package/dist/cdn/MFSDYV4U.js +0 -2
- package/dist/cdn/NXCII3YU.js +0 -2
- package/dist/cdn/O535TZZ6.js +0 -2
- package/dist/cdn/O7YWW6X6.js +0 -2
- package/dist/cdn/OIYWPY2M.js +0 -2
- package/dist/cdn/OX5RYOW4.js +0 -2
- package/dist/cdn/Q5SNHQHW.js +0 -2
- package/dist/cdn/QID335AW.js +0 -2
- package/dist/cdn/RJSLWYFJ.js +0 -2
- package/dist/cdn/RTJOU72W.js +0 -2
- package/dist/cdn/S3FVUTIY.js +0 -2
- package/dist/cdn/SJYYS7RH.js +0 -2
- package/dist/cdn/SMSVNRM4.js +0 -2
- package/dist/cdn/SSQXPR3D.js +0 -2
- package/dist/cdn/TBVIBCHL.js +0 -2
- package/dist/cdn/TT5S3S4L.js +0 -4
- package/dist/cdn/U3AOFOT7.js +0 -2
- package/dist/cdn/UPE6RIV2.js +0 -2
- package/dist/cdn/V4NX2X3B.js +0 -2
- package/dist/cdn/V6NB5CGO.js +0 -2
- package/dist/cdn/VESBDAE7.js +0 -2
- package/dist/cdn/VKQJIDXT.js +0 -2
- package/dist/cdn/VMMRWNOB.js +0 -3
- package/dist/cdn/W4HQGAKN.js +0 -2
- package/dist/cdn/W5FGAVGO.js +0 -2
- package/dist/cdn/WBP5XEJH.js +0 -2
- package/dist/cdn/WJXZ7BPV.js +0 -2
- package/dist/cdn/WNADDPUF.js +0 -2
- package/dist/cdn/XGRU4PI2.js +0 -2
- package/dist/cdn/XRGPWSUO.js +0 -2
- package/dist/cdn/Y36WJADK.js +0 -2
- package/dist/cdn/Y555OQ57.js +0 -2
- package/dist/cdn/YGHVUKLM.js +0 -2
- package/dist/cdn/YPOMUQHV.js +0 -3
- package/dist/cdn/YWIQC7RF.js +0 -2
- package/dist/cdn/ZHOHVRUX.js +0 -2
- package/dist/cdn/ZQLGBHLZ.js +0 -2
- package/dist/chunks/form.js +0 -268
- package/dist/chunks/input.js +0 -40
- package/dist/controllers/useForm.d.ts +0 -3
- package/dist/utils/form.d.ts +0 -3
- package/dist/utils/sortableComponent.d.ts +0 -7
|
@@ -1,7 +1,6 @@
|
|
|
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";
|
|
@@ -23,7 +22,7 @@ import type { DatePicker } from "../calcite-date-picker/customElement.js";
|
|
|
23
22
|
* @cssproperty [--calcite-input-date-picker-calendar-current-day-text-color] - Specifies the text color of the component's calendar current day element.
|
|
24
23
|
* @cssproperty [--calcite-input-date-picker-calendar-day-background-color] - Specifies the background color of the component's calendar day elements.
|
|
25
24
|
* @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
|
|
25
|
+
* @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
26
|
* @cssproperty [--calcite-input-date-picker-calendar-day-range-background-color] - Specifies the background color of the component's calendar selected day range.
|
|
28
27
|
* @cssproperty [--calcite-input-date-picker-calendar-day-range-text-color] - Specifies the text color of the component's calendar selected day range.
|
|
29
28
|
* @cssproperty [--calcite-input-date-picker-calendar-day-text-color-selected] - Specifies the text color of component's calendar selected day.
|
|
@@ -157,7 +156,7 @@ export abstract class InputDatePicker extends LitElement {
|
|
|
157
156
|
* When `true`, the component's `value` can be read, but controls are not accessible and the `value` cannot be modified.
|
|
158
157
|
*
|
|
159
158
|
* @default false
|
|
160
|
-
* @
|
|
159
|
+
* @see [MDN - readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
161
160
|
*/
|
|
162
161
|
accessor readOnly: boolean;
|
|
163
162
|
/**
|
|
@@ -185,7 +184,7 @@ export abstract class InputDatePicker extends LitElement {
|
|
|
185
184
|
* Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
|
|
186
185
|
*
|
|
187
186
|
* @default false
|
|
188
|
-
* @
|
|
187
|
+
* @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
|
|
189
188
|
*/
|
|
190
189
|
accessor topLayerDisabled: boolean;
|
|
191
190
|
/** Specifies the validation icon to display under the component. */
|
|
@@ -195,9 +194,9 @@ export abstract class InputDatePicker extends LitElement {
|
|
|
195
194
|
/**
|
|
196
195
|
* The component's current validation state.
|
|
197
196
|
*
|
|
198
|
-
* @
|
|
197
|
+
* @see [MDN - ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)
|
|
199
198
|
*/
|
|
200
|
-
get validity():
|
|
199
|
+
get validity(): ValidityState;
|
|
201
200
|
/** Selected date as a string in ISO format (`"yyyy-mm-dd"`). */
|
|
202
201
|
accessor value: string | string[];
|
|
203
202
|
/** The component's `value` as a full date object. */
|
|
@@ -213,7 +212,7 @@ export abstract class InputDatePicker extends LitElement {
|
|
|
213
212
|
* Sets focus on the component.
|
|
214
213
|
*
|
|
215
214
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
216
|
-
* @
|
|
215
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
217
216
|
*/
|
|
218
217
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
219
218
|
/** Fires when the component is requested to be closed and before the closing transition begins. */
|
|
@@ -5,24 +5,23 @@ import { createRef, ref } from "lit/directives/ref.js";
|
|
|
5
5
|
import { LitElement, createEvent, stringOrBoolean, safeClassMap } from "@arcgis/lumina";
|
|
6
6
|
import { useDirection } from "@arcgis/lumina/controllers";
|
|
7
7
|
import { u as useFocusTrap } from "../../chunks/useFocusTrap.js";
|
|
8
|
-
import { l as datePartsFromISO, d as dateFromISO,
|
|
8
|
+
import { l as datePartsFromISO, d as dateFromISO, a as dateToISO, b as dateFromRange, m as datePartsFromLocalizedString, o as dateFromLocalizedString, i as inRange } from "../../chunks/date.js";
|
|
9
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";
|
|
10
|
-
import { c as connectForm, d as disconnectForm, s as submitForm, H as HiddenFormInputSlot } from "../../chunks/form.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 { g as getIconScale } from "../../chunks/component.js";
|
|
14
13
|
import { b as getSupportedNumberingSystem, c as getDateFormatSupportedLocale, n as numberStringFormatter } from "../../chunks/locale.js";
|
|
15
14
|
import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
16
|
-
import { g as
|
|
15
|
+
import { g as getMinMaxSource, a as getValueAsDateRange, b as applyLocaleOverride, c as getLocaleData } from "../../chunks/utils3.js";
|
|
17
16
|
import { g as guid } from "../../chunks/guid.js";
|
|
18
17
|
import { I as InternalLabel } from "../../chunks/InternalLabel.js";
|
|
19
18
|
import { V as Validation } from "../../chunks/Validation.js";
|
|
20
|
-
import { s as syncHiddenFormInput } from "../../chunks/input.js";
|
|
21
19
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
22
20
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
23
21
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
24
22
|
import { u as useTopLayer } from "../../chunks/useTopLayer.js";
|
|
25
|
-
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}`;
|
|
23
|
+
import { u as useForm } from "../../chunks/useForm.js";
|
|
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-md))}: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}`;
|
|
26
25
|
const CSS = {
|
|
27
26
|
assistiveText: "assistive-text",
|
|
28
27
|
calendarWrapper: "calendar-wrapper",
|
|
@@ -95,6 +94,9 @@ class InputDatePicker extends LitElement {
|
|
|
95
94
|
}
|
|
96
95
|
}
|
|
97
96
|
})(this);
|
|
97
|
+
this.formSupport = useForm({
|
|
98
|
+
inputType: "date"
|
|
99
|
+
})(this);
|
|
98
100
|
this.transitionProp = "opacity";
|
|
99
101
|
this.placeholderTextId = IDS.placeholder(guid());
|
|
100
102
|
this.rangeStartValueChangedByUser = false;
|
|
@@ -125,19 +127,6 @@ class InputDatePicker extends LitElement {
|
|
|
125
127
|
this.scale = "m";
|
|
126
128
|
this.status = "idle";
|
|
127
129
|
this.topLayerDisabled = false;
|
|
128
|
-
this.validity = {
|
|
129
|
-
valid: false,
|
|
130
|
-
badInput: false,
|
|
131
|
-
customError: false,
|
|
132
|
-
patternMismatch: false,
|
|
133
|
-
rangeOverflow: false,
|
|
134
|
-
rangeUnderflow: false,
|
|
135
|
-
stepMismatch: false,
|
|
136
|
-
tooLong: false,
|
|
137
|
-
tooShort: false,
|
|
138
|
-
typeMismatch: false,
|
|
139
|
-
valueMissing: false
|
|
140
|
-
};
|
|
141
130
|
this.calciteInputDatePickerBeforeClose = createEvent({ cancelable: false });
|
|
142
131
|
this.calciteInputDatePickerBeforeOpen = createEvent({ cancelable: false });
|
|
143
132
|
this.calciteInputDatePickerChange = createEvent({ cancelable: false });
|
|
@@ -148,7 +137,10 @@ class InputDatePicker extends LitElement {
|
|
|
148
137
|
this.handleDateTimeFormatChange();
|
|
149
138
|
}
|
|
150
139
|
static {
|
|
151
|
-
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: [
|
|
140
|
+
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: [32, {}, { readOnly: true, attribute: false }], value: 1, valueAsDate: [0, {}, { attribute: false }] };
|
|
141
|
+
}
|
|
142
|
+
static {
|
|
143
|
+
this.formAssociated = true;
|
|
152
144
|
}
|
|
153
145
|
static {
|
|
154
146
|
this.shadowRootOptions = { mode: "open", delegatesFocus: true };
|
|
@@ -188,40 +180,13 @@ class InputDatePicker extends LitElement {
|
|
|
188
180
|
if (open) {
|
|
189
181
|
this.openHandler();
|
|
190
182
|
}
|
|
191
|
-
if (this.min) {
|
|
192
|
-
this.minAsDate = dateFromISO(this.min);
|
|
193
|
-
}
|
|
194
|
-
if (this.max) {
|
|
195
|
-
this.maxAsDate = dateFromISO(this.max);
|
|
196
|
-
}
|
|
197
|
-
if (Array.isArray(this.value)) {
|
|
198
|
-
this.valueAsDate = getValueAsDateRange(this.value);
|
|
199
|
-
} else if (this.value) {
|
|
200
|
-
try {
|
|
201
|
-
const date = dateFromISO(this.value);
|
|
202
|
-
const dateInRange = dateFromRange(date, this.minAsDate, this.maxAsDate);
|
|
203
|
-
this.valueAsDate = dateInRange;
|
|
204
|
-
} catch {
|
|
205
|
-
this.warnAboutInvalidValue(this.value);
|
|
206
|
-
this.value = "";
|
|
207
|
-
}
|
|
208
|
-
} else if (this.valueAsDate) {
|
|
209
|
-
if (this.range && Array.isArray(this.valueAsDate)) {
|
|
210
|
-
this.value = [dateToISO(this.valueAsDate[0]), dateToISO(this.valueAsDate[1])];
|
|
211
|
-
} else if (!this.range && !Array.isArray(this.valueAsDate)) {
|
|
212
|
-
this.value = dateToISO(this.valueAsDate);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
183
|
connectLabel(this);
|
|
216
|
-
connectForm(this);
|
|
217
184
|
this.setFilteredPlacements();
|
|
218
185
|
connectFloatingUI(this);
|
|
219
186
|
}
|
|
220
187
|
async load() {
|
|
221
188
|
this.handleDateTimeFormatChange();
|
|
222
189
|
await this.loadLocaleData();
|
|
223
|
-
this.onMinChanged(this.min);
|
|
224
|
-
this.onMaxChanged(this.max);
|
|
225
190
|
}
|
|
226
191
|
willUpdate(changes) {
|
|
227
192
|
if (changes.has("disabled") && (this.hasUpdated || this.disabled !== false)) {
|
|
@@ -230,17 +195,26 @@ class InputDatePicker extends LitElement {
|
|
|
230
195
|
if (changes.has("readOnly") && (this.hasUpdated || this.readOnly !== false)) {
|
|
231
196
|
this.handleDisabledAndReadOnlyChange(this.readOnly);
|
|
232
197
|
}
|
|
233
|
-
if (changes.has("valueAsDate")) {
|
|
234
|
-
this.valueAsDateWatcher(this.valueAsDate);
|
|
235
|
-
}
|
|
236
198
|
if (changes.has("flipPlacements")) {
|
|
237
199
|
this.flipPlacementsHandler();
|
|
238
200
|
}
|
|
239
|
-
|
|
240
|
-
|
|
201
|
+
const minSource = getMinMaxSource(changes, "min");
|
|
202
|
+
const maxSource = getMinMaxSource(changes, "max");
|
|
203
|
+
if (minSource === "min") {
|
|
204
|
+
this.minAsDate = dateFromISO(this.min);
|
|
205
|
+
} else if (minSource === "minAsDate") {
|
|
206
|
+
this.minAsDate = dateFromISO(dateToISO(this.minAsDate));
|
|
241
207
|
}
|
|
242
|
-
if (
|
|
243
|
-
this.
|
|
208
|
+
if (maxSource === "max") {
|
|
209
|
+
this.maxAsDate = dateFromISO(this.max);
|
|
210
|
+
} else if (maxSource === "maxAsDate") {
|
|
211
|
+
this.maxAsDate = dateFromISO(dateToISO(this.maxAsDate));
|
|
212
|
+
}
|
|
213
|
+
if ((minSource || maxSource) && !Array.isArray(this.valueAsDate)) {
|
|
214
|
+
const validValueAsDate = dateFromRange(this.valueAsDate, this.minAsDate, this.maxAsDate);
|
|
215
|
+
if (validValueAsDate !== this.valueAsDate) {
|
|
216
|
+
this.valueAsDate = validValueAsDate;
|
|
217
|
+
}
|
|
244
218
|
}
|
|
245
219
|
if (changes.has("open") && (this.hasUpdated || this.open !== false)) {
|
|
246
220
|
this.openHandler();
|
|
@@ -254,8 +228,12 @@ class InputDatePicker extends LitElement {
|
|
|
254
228
|
if (changes.has("layout") && (this.hasUpdated || this.layout !== "horizontal")) {
|
|
255
229
|
this.setReferenceEl();
|
|
256
230
|
}
|
|
231
|
+
if (changes.has("valueAsDate")) {
|
|
232
|
+
this.valueAsDateWatcher(this.valueAsDate);
|
|
233
|
+
}
|
|
257
234
|
if (changes.has("messages")) {
|
|
258
235
|
this.loadLocaleData();
|
|
236
|
+
this.localizeInputValues();
|
|
259
237
|
}
|
|
260
238
|
}
|
|
261
239
|
loaded() {
|
|
@@ -265,7 +243,6 @@ class InputDatePicker extends LitElement {
|
|
|
265
243
|
disconnectedCallback() {
|
|
266
244
|
super.disconnectedCallback();
|
|
267
245
|
disconnectLabel(this);
|
|
268
|
-
disconnectForm(this);
|
|
269
246
|
disconnectFloatingUI(this);
|
|
270
247
|
}
|
|
271
248
|
handleDisabledAndReadOnlyChange(value) {
|
|
@@ -276,12 +253,19 @@ class InputDatePicker extends LitElement {
|
|
|
276
253
|
valueWatcher(newValue) {
|
|
277
254
|
if (!this.userChangedValue) {
|
|
278
255
|
let newValueAsDate;
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
256
|
+
try {
|
|
257
|
+
if (Array.isArray(newValue)) {
|
|
258
|
+
newValueAsDate = getValueAsDateRange(newValue);
|
|
259
|
+
} else if (newValue) {
|
|
260
|
+
newValueAsDate = dateFromISO(newValue);
|
|
261
|
+
} else {
|
|
262
|
+
newValueAsDate = void 0;
|
|
263
|
+
}
|
|
264
|
+
} catch {
|
|
265
|
+
if (!Array.isArray(newValue)) {
|
|
266
|
+
this.warnAboutInvalidValue(newValue);
|
|
267
|
+
this.value = "";
|
|
268
|
+
}
|
|
285
269
|
}
|
|
286
270
|
if (!this.valueAsDateChangedExternally && newValueAsDate !== this.valueAsDate) {
|
|
287
271
|
this.valueAsDate = newValueAsDate;
|
|
@@ -303,12 +287,6 @@ class InputDatePicker extends LitElement {
|
|
|
303
287
|
this.setFilteredPlacements();
|
|
304
288
|
this.reposition(true);
|
|
305
289
|
}
|
|
306
|
-
onMinChanged(min) {
|
|
307
|
-
this.minAsDate = dateFromISO(min);
|
|
308
|
-
}
|
|
309
|
-
onMaxChanged(max) {
|
|
310
|
-
this.maxAsDate = dateFromISO(max);
|
|
311
|
-
}
|
|
312
290
|
openHandler() {
|
|
313
291
|
if (this.disabled || this.readOnly) {
|
|
314
292
|
return;
|
|
@@ -390,9 +368,6 @@ class InputDatePicker extends LitElement {
|
|
|
390
368
|
this.datePickerEl?.reset();
|
|
391
369
|
this.topLayer.hide();
|
|
392
370
|
}
|
|
393
|
-
syncHiddenFormInput(input) {
|
|
394
|
-
syncHiddenFormInput("date", this, input);
|
|
395
|
-
}
|
|
396
371
|
blurHandler() {
|
|
397
372
|
this.open = false;
|
|
398
373
|
}
|
|
@@ -444,15 +419,31 @@ class InputDatePicker extends LitElement {
|
|
|
444
419
|
}
|
|
445
420
|
const targetHasSelect = event.composedPath().some((el) => el.tagName === "CALCITE-SELECT");
|
|
446
421
|
if (key === "Enter") {
|
|
447
|
-
|
|
422
|
+
const preCommitValue = this.value;
|
|
448
423
|
this.commitValue();
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
424
|
+
const focusRangeEnd = this.shouldFocusRangeEnd();
|
|
425
|
+
const focusRangeStart = !focusRangeEnd && this.shouldFocusRangeStart();
|
|
426
|
+
if (focusRangeEnd || focusRangeStart) {
|
|
427
|
+
event.preventDefault();
|
|
428
|
+
if (focusRangeEnd) {
|
|
429
|
+
this.endInputRef.value?.setFocus();
|
|
430
|
+
} else if (focusRangeStart) {
|
|
431
|
+
this.startInputRef.value?.setFocus();
|
|
432
|
+
}
|
|
433
|
+
return;
|
|
453
434
|
}
|
|
454
|
-
if (
|
|
435
|
+
if (this.open) {
|
|
455
436
|
this.restoreInputFocus(true);
|
|
437
|
+
event.preventDefault();
|
|
438
|
+
} else {
|
|
439
|
+
const formActive = this.formSupport.active;
|
|
440
|
+
const handledKey = preCommitValue !== this.value || formActive;
|
|
441
|
+
if (handledKey) {
|
|
442
|
+
event.preventDefault();
|
|
443
|
+
}
|
|
444
|
+
if (formActive) {
|
|
445
|
+
this.formSupport.requestSubmit();
|
|
446
|
+
}
|
|
456
447
|
}
|
|
457
448
|
} else if ((key === "ArrowDown" || key === "ArrowUp") && !targetHasSelect) {
|
|
458
449
|
this.open = true;
|
|
@@ -666,7 +657,7 @@ class InputDatePicker extends LitElement {
|
|
|
666
657
|
[CSS.inputNoTopBorder]: this.layout === "vertical" && this.range,
|
|
667
658
|
[CSS.inputNoLeftBorder]: this.layout === "horizontal" && this.range,
|
|
668
659
|
[CSS.inputNoRightBorder]: this.layout === "vertical" && this.range
|
|
669
|
-
})} .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>${
|
|
660
|
+
})} .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}` });
|
|
670
661
|
}
|
|
671
662
|
renderToggleIcon(open) {
|
|
672
663
|
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.
|
|
@@ -1,7 +1,6 @@
|
|
|
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";
|
|
@@ -41,7 +40,7 @@ export abstract class InputNumber extends LitElement {
|
|
|
41
40
|
* Specifies the type of content to autocomplete, for use in forms.
|
|
42
41
|
* Read the native attribute's documentation on MDN for more info.
|
|
43
42
|
*
|
|
44
|
-
* @
|
|
43
|
+
* @see [MDN - autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
|
|
45
44
|
*/
|
|
46
45
|
accessor autocomplete: AutoFill;
|
|
47
46
|
/**
|
|
@@ -54,7 +53,7 @@ export abstract class InputNumber extends LitElement {
|
|
|
54
53
|
* When `true`, prevents interaction and decreases the component's opacity.
|
|
55
54
|
*
|
|
56
55
|
* @default false
|
|
57
|
-
* @
|
|
56
|
+
* @see [MDN - disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled)
|
|
58
57
|
*/
|
|
59
58
|
accessor disabled: boolean;
|
|
60
59
|
/**
|
|
@@ -101,7 +100,7 @@ export abstract class InputNumber extends LitElement {
|
|
|
101
100
|
* When the component resides in a form,
|
|
102
101
|
* specifies the maximum `value`.
|
|
103
102
|
*
|
|
104
|
-
* @
|
|
103
|
+
* @see [MDN - max](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max)
|
|
105
104
|
*/
|
|
106
105
|
accessor max: number;
|
|
107
106
|
/**
|
|
@@ -109,7 +108,7 @@ export abstract class InputNumber extends LitElement {
|
|
|
109
108
|
* specifies the maximum length of text for the component's `value`.
|
|
110
109
|
*
|
|
111
110
|
* @deprecated in v3.0.0, removal target v6.0.0 - This property has no effect on the component.
|
|
112
|
-
* @
|
|
111
|
+
* @see [MDN - maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength)
|
|
113
112
|
*/
|
|
114
113
|
accessor maxLength: number;
|
|
115
114
|
/** Overrides individual strings used by the component. */
|
|
@@ -122,7 +121,7 @@ export abstract class InputNumber extends LitElement {
|
|
|
122
121
|
* When the component resides in a form,
|
|
123
122
|
* specifies the minimum `value`.
|
|
124
123
|
*
|
|
125
|
-
* @
|
|
124
|
+
* @see [MDN - min](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min)
|
|
126
125
|
*/
|
|
127
126
|
accessor min: number;
|
|
128
127
|
/**
|
|
@@ -130,7 +129,7 @@ export abstract class InputNumber extends LitElement {
|
|
|
130
129
|
* specifies the minimum length of text for the component's `value`.
|
|
131
130
|
*
|
|
132
131
|
* @deprecated in v3.0.0, removal target v6.0.0 - This property has no effect on the component.
|
|
133
|
-
* @
|
|
132
|
+
* @see [MDN - minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength)
|
|
134
133
|
*/
|
|
135
134
|
accessor minLength: number;
|
|
136
135
|
/**
|
|
@@ -138,7 +137,7 @@ export abstract class InputNumber extends LitElement {
|
|
|
138
137
|
*
|
|
139
138
|
* Required to pass the component's `value` on form submission.
|
|
140
139
|
*
|
|
141
|
-
* @
|
|
140
|
+
* @see [MDN - name](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name)
|
|
142
141
|
*/
|
|
143
142
|
accessor name: string;
|
|
144
143
|
/**
|
|
@@ -152,7 +151,7 @@ export abstract class InputNumber extends LitElement {
|
|
|
152
151
|
/**
|
|
153
152
|
* Specifies the component's placeholder text.
|
|
154
153
|
*
|
|
155
|
-
* @
|
|
154
|
+
* @see [MDN - placeholder](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder)
|
|
156
155
|
*/
|
|
157
156
|
accessor placeholder: string;
|
|
158
157
|
/** Specifies text to display at the start of the component. */
|
|
@@ -161,7 +160,7 @@ export abstract class InputNumber extends LitElement {
|
|
|
161
160
|
* When `true`, the component's `value` can be read, but cannot be modified.
|
|
162
161
|
*
|
|
163
162
|
* @default false
|
|
164
|
-
* @
|
|
163
|
+
* @see [MDN - readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
165
164
|
*/
|
|
166
165
|
accessor readOnly: boolean;
|
|
167
166
|
/**
|
|
@@ -186,7 +185,7 @@ export abstract class InputNumber extends LitElement {
|
|
|
186
185
|
/**
|
|
187
186
|
* Specifies the granularity that the component's `value` must adhere to.
|
|
188
187
|
*
|
|
189
|
-
* @
|
|
188
|
+
* @see [MDN - step](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step)
|
|
190
189
|
*/
|
|
191
190
|
accessor step: number | "any";
|
|
192
191
|
/** Specifies text to display at the end of the component. */
|
|
@@ -198,9 +197,9 @@ export abstract class InputNumber extends LitElement {
|
|
|
198
197
|
/**
|
|
199
198
|
* The component's current validation state.
|
|
200
199
|
*
|
|
201
|
-
* @
|
|
200
|
+
* @see [MDN - ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)
|
|
202
201
|
*/
|
|
203
|
-
get validity():
|
|
202
|
+
get validity(): ValidityState;
|
|
204
203
|
/** The component's value. */
|
|
205
204
|
accessor value: string;
|
|
206
205
|
/** Selects the text of the component's `value`. */
|
|
@@ -209,7 +208,7 @@ export abstract class InputNumber extends LitElement {
|
|
|
209
208
|
* Sets focus on the component.
|
|
210
209
|
*
|
|
211
210
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
212
|
-
* @
|
|
211
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
213
212
|
*/
|
|
214
213
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
215
214
|
/** Fires each time a new `value` is typed and committed. */
|