@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
|
@@ -3,7 +3,6 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { live } from "lit/directives/live.js";
|
|
4
4
|
import { html, css } from "lit";
|
|
5
5
|
import { safeClassMap, LitElement, createEvent, stringOrBoolean, nothing, safeStyleMap } from "@arcgis/lumina";
|
|
6
|
-
import { c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
|
|
7
6
|
import { g as guid } from "../../chunks/guid.js";
|
|
8
7
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
|
|
9
8
|
import { I as InternalLabel } from "../../chunks/InternalLabel.js";
|
|
@@ -11,6 +10,7 @@ import { V as Validation } from "../../chunks/Validation.js";
|
|
|
11
10
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
12
11
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
13
12
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
13
|
+
import { u as useForm } from "../../chunks/useForm.js";
|
|
14
14
|
const StarIcon = ({ full, scale, partial }) => html`<calcite-icon class=${safeClassMap(partial ? void 0 : "icon")} .icon=${full ? "star-f" : "star"} .scale=${scale}></calcite-icon>`;
|
|
15
15
|
const CSS = {
|
|
16
16
|
fieldSet: "fieldset",
|
|
@@ -31,6 +31,12 @@ class Rating extends LitElement {
|
|
|
31
31
|
constructor() {
|
|
32
32
|
super();
|
|
33
33
|
this.emit = false;
|
|
34
|
+
this.formSupport = useForm({
|
|
35
|
+
inputType: "number",
|
|
36
|
+
getValue: () => {
|
|
37
|
+
return this.value === 0 ? "" : this.value;
|
|
38
|
+
}
|
|
39
|
+
})(this);
|
|
34
40
|
this.guid = IDS.host(guid());
|
|
35
41
|
this.isKeyboardInteraction = true;
|
|
36
42
|
this.labelElements = [];
|
|
@@ -45,26 +51,16 @@ class Rating extends LitElement {
|
|
|
45
51
|
this.scale = "m";
|
|
46
52
|
this.showChip = false;
|
|
47
53
|
this.status = "idle";
|
|
48
|
-
this.validity = {
|
|
49
|
-
valid: false,
|
|
50
|
-
badInput: false,
|
|
51
|
-
customError: false,
|
|
52
|
-
patternMismatch: false,
|
|
53
|
-
rangeOverflow: false,
|
|
54
|
-
rangeUnderflow: false,
|
|
55
|
-
stepMismatch: false,
|
|
56
|
-
tooLong: false,
|
|
57
|
-
tooShort: false,
|
|
58
|
-
typeMismatch: false,
|
|
59
|
-
valueMissing: false
|
|
60
|
-
};
|
|
61
54
|
this.calciteRatingChange = createEvent({ cancelable: false });
|
|
62
55
|
this.listen("keydown", this.handleHostKeyDown);
|
|
63
56
|
this.listen("pointerout", this.handleRatingPointerOut);
|
|
64
57
|
this.listen("pointerover", this.handleRatingPointerOver);
|
|
65
58
|
}
|
|
66
59
|
static {
|
|
67
|
-
this.properties = { hoverValue: [16, {}, { state: true }], average: [11, {}, { reflect: true, type: Number }], count: [11, {}, { reflect: true, type: Number }], disabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], labelText: 1, messageOverrides: [0, {}, { attribute: false }], name: [3, {}, { reflect: true }], readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], showChip: [7, {}, { reflect: true, type: Boolean }], status: [3, {}, { reflect: true }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [
|
|
60
|
+
this.properties = { hoverValue: [16, {}, { state: true }], average: [11, {}, { reflect: true, type: Number }], count: [11, {}, { reflect: true, type: Number }], disabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], labelText: 1, messageOverrides: [0, {}, { attribute: false }], name: [3, {}, { reflect: true }], readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], showChip: [7, {}, { reflect: true, type: Boolean }], status: [3, {}, { reflect: true }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [32, {}, { readOnly: true, attribute: false }], value: [11, {}, { reflect: true, type: Number }] };
|
|
61
|
+
}
|
|
62
|
+
static {
|
|
63
|
+
this.formAssociated = true;
|
|
68
64
|
}
|
|
69
65
|
static {
|
|
70
66
|
this.styles = styles;
|
|
@@ -87,7 +83,6 @@ class Rating extends LitElement {
|
|
|
87
83
|
connectedCallback() {
|
|
88
84
|
super.connectedCallback();
|
|
89
85
|
connectLabel(this);
|
|
90
|
-
connectForm(this);
|
|
91
86
|
}
|
|
92
87
|
async load() {
|
|
93
88
|
this.requestUpdate("value");
|
|
@@ -122,7 +117,6 @@ class Rating extends LitElement {
|
|
|
122
117
|
disconnectedCallback() {
|
|
123
118
|
super.disconnectedCallback();
|
|
124
119
|
disconnectLabel(this);
|
|
125
|
-
disconnectForm(this);
|
|
126
120
|
}
|
|
127
121
|
handleValueUpdate(newValue) {
|
|
128
122
|
this.hoverValue = newValue;
|
|
@@ -233,7 +227,7 @@ class Rating extends LitElement {
|
|
|
233
227
|
average,
|
|
234
228
|
partial
|
|
235
229
|
})} data-value=${value ?? nothing} for=${id ?? nothing} @click=${this.handleLabelClick} @focus=${this.handleLabelFocus} @keydown=${this.handleLabelKeyDown} @pointerdown=${this.handleLabelPointerDown} @pointerover=${this.handleLabelPointerOver} tabindex=${tabIndex ?? nothing}><input aria-errormessage=${IDS.validationMessage} .ariaInvalid=${this.status === "invalid"} .ariaLabel=${getLabelText(this)} .ariaRequired=${this.required} .checked=${checked} class=${safeClassMap(CSS.visuallyHidden)} .disabled=${this.disabled || this.readOnly} id=${id ?? nothing} name=${this.guid ?? nothing} @change=${this.handleInputChange} tabindex=-1 type=radio .value=${live(value ?? "")}>${StarIcon({ full: selected || average || hovered, scale: this.scale })}${partial && html`<div class=${safeClassMap(CSS.fraction)} style=${safeStyleMap({ width: `${fraction * 100}%` })}>${StarIcon({ full: true, partial: true, scale: this.scale })}</div>` || ""}<span class=${safeClassMap(CSS.visuallyHidden)}>${this.messages.stars.replace("{num}", `${value}`)}</span></label>`;
|
|
236
|
-
})}${(this.count || this.average) && this.showChip ? html`<calcite-chip .label=${countString} .scale=${this.scale} .value=${countString}>${!!this.average && html`<span class=${safeClassMap(CSS.numberAverage)}>${this.average.toString()}</span>` || ""}${!!this.count && html`<span class=${safeClassMap(CSS.numberCount)}>(${countString})</span>` || ""}</calcite-chip>` : null}</fieldset>${
|
|
230
|
+
})}${(this.count || this.average) && this.showChip ? html`<calcite-chip .label=${countString} .scale=${this.scale} .value=${countString}>${!!this.average && html`<span class=${safeClassMap(CSS.numberAverage)}>${this.average.toString()}</span>` || ""}${!!this.count && html`<span class=${safeClassMap(CSS.numberCount)}>(${countString})</span>` || ""}</calcite-chip>` : null}</fieldset>${this.validationMessage && this.status === "invalid" ? Validation({ icon: this.validationIcon, id: IDS.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}</span>` });
|
|
237
231
|
}
|
|
238
232
|
}
|
|
239
233
|
customElement("calcite-rating", Rating);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
-
import type { MutableValidityState } from "../../utils/form.js";
|
|
4
3
|
import type { Appearance, Layout, Scale, Status, Width } from "../interfaces.js";
|
|
5
4
|
import type { IconName } from "../calcite-icon/interfaces.js";
|
|
6
5
|
import type { SegmentedControlItem } from "../calcite-segmented-control-item/customElement.js";
|
|
@@ -69,9 +68,9 @@ export abstract class SegmentedControl extends LitElement {
|
|
|
69
68
|
/**
|
|
70
69
|
* The component's current validation state.
|
|
71
70
|
*
|
|
72
|
-
* @
|
|
71
|
+
* @see [MDN - ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)
|
|
73
72
|
*/
|
|
74
|
-
get validity():
|
|
73
|
+
get validity(): ValidityState;
|
|
75
74
|
/** The component's `selectedItem` value. */
|
|
76
75
|
accessor value: string;
|
|
77
76
|
/**
|
|
@@ -84,7 +83,7 @@ export abstract class SegmentedControl extends LitElement {
|
|
|
84
83
|
* Sets focus on the component.
|
|
85
84
|
*
|
|
86
85
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
87
|
-
* @
|
|
86
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
88
87
|
*/
|
|
89
88
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
90
89
|
/** Fires when the `calcite-segmented-control-item` selection changes. */
|
|
@@ -4,13 +4,13 @@ import { css, isServer, nothing, html } from "lit";
|
|
|
4
4
|
import { LitElement, createEvent, stringOrBoolean, safeClassMap } from "@arcgis/lumina";
|
|
5
5
|
import { useDirection } from "@arcgis/lumina/controllers";
|
|
6
6
|
import { a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
7
|
-
import { c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
|
|
8
7
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
|
|
9
8
|
import { I as InternalLabel } from "../../chunks/InternalLabel.js";
|
|
10
9
|
import { V as Validation } from "../../chunks/Validation.js";
|
|
11
10
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
12
11
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
13
12
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
13
|
+
import { u as useForm } from "../../chunks/useForm.js";
|
|
14
14
|
const CSS = {
|
|
15
15
|
itemWrapper: "item-wrapper"
|
|
16
16
|
};
|
|
@@ -22,6 +22,7 @@ class SegmentedControl extends LitElement {
|
|
|
22
22
|
constructor() {
|
|
23
23
|
super();
|
|
24
24
|
this.direction = useDirection();
|
|
25
|
+
this.formSupport = useForm({ inputType: "text" })(this);
|
|
25
26
|
this.items = [];
|
|
26
27
|
this.messages = useT9n();
|
|
27
28
|
this.focusSetter = useSetFocus()(this);
|
|
@@ -32,19 +33,6 @@ class SegmentedControl extends LitElement {
|
|
|
32
33
|
this.required = false;
|
|
33
34
|
this.scale = "m";
|
|
34
35
|
this.status = "idle";
|
|
35
|
-
this.validity = {
|
|
36
|
-
valid: false,
|
|
37
|
-
badInput: false,
|
|
38
|
-
customError: false,
|
|
39
|
-
patternMismatch: false,
|
|
40
|
-
rangeOverflow: false,
|
|
41
|
-
rangeUnderflow: false,
|
|
42
|
-
stepMismatch: false,
|
|
43
|
-
tooLong: false,
|
|
44
|
-
tooShort: false,
|
|
45
|
-
typeMismatch: false,
|
|
46
|
-
valueMissing: false
|
|
47
|
-
};
|
|
48
36
|
this.value = null;
|
|
49
37
|
this.width = "auto";
|
|
50
38
|
this.calciteSegmentedControlChange = createEvent({ cancelable: false });
|
|
@@ -53,7 +41,10 @@ class SegmentedControl extends LitElement {
|
|
|
53
41
|
this.listen("click", this.handleClick);
|
|
54
42
|
}
|
|
55
43
|
static {
|
|
56
|
-
this.properties = { appearance: [3, {}, { reflect: true }], disabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], layout: [3, {}, { reflect: true }], labelText: 1, messageOverrides: [0, {}, { attribute: false }], name: [3, {}, { reflect: true }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], selectedItem: [0, {}, { attribute: false }], status: [3, {}, { reflect: true }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [
|
|
44
|
+
this.properties = { appearance: [3, {}, { reflect: true }], disabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], layout: [3, {}, { reflect: true }], labelText: 1, messageOverrides: [0, {}, { attribute: false }], name: [3, {}, { reflect: true }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], selectedItem: [0, {}, { attribute: false }], status: [3, {}, { reflect: true }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [32, {}, { readOnly: true, attribute: false }], value: 1, width: [3, {}, { reflect: true }] };
|
|
45
|
+
}
|
|
46
|
+
static {
|
|
47
|
+
this.formAssociated = true;
|
|
57
48
|
}
|
|
58
49
|
static {
|
|
59
50
|
this.styles = styles;
|
|
@@ -64,7 +55,6 @@ class SegmentedControl extends LitElement {
|
|
|
64
55
|
connectedCallback() {
|
|
65
56
|
super.connectedCallback();
|
|
66
57
|
connectLabel(this);
|
|
67
|
-
connectForm(this);
|
|
68
58
|
}
|
|
69
59
|
willUpdate(changes) {
|
|
70
60
|
if (changes.has("appearance") && (this.hasUpdated || this.appearance !== "solid") || changes.has("layout") && (this.hasUpdated || this.layout !== "horizontal") || changes.has("scale") && (this.hasUpdated || this.scale !== "m")) {
|
|
@@ -78,12 +68,11 @@ class SegmentedControl extends LitElement {
|
|
|
78
68
|
}
|
|
79
69
|
}
|
|
80
70
|
loaded() {
|
|
81
|
-
|
|
71
|
+
this.formSupport.overrideDefaultValue(this.value);
|
|
82
72
|
}
|
|
83
73
|
disconnectedCallback() {
|
|
84
74
|
super.disconnectedCallback();
|
|
85
75
|
disconnectLabel(this);
|
|
86
|
-
disconnectForm(this);
|
|
87
76
|
}
|
|
88
77
|
valueHandler(value) {
|
|
89
78
|
const { items } = this;
|
|
@@ -218,7 +207,7 @@ class SegmentedControl extends LitElement {
|
|
|
218
207
|
}
|
|
219
208
|
render() {
|
|
220
209
|
this.el.role = "radiogroup";
|
|
221
|
-
return html`${this.labelText && InternalLabel({ labelText: this.labelText, onClick: this.onLabelClick, required: this.required, tooltipText: this.messages.required }) || ""}<div aria-errormessage=${IDS.validationMessage} aria-label=${getLabelText(this) ?? nothing} .ariaInvalid=${this.status === "invalid"} .ariaRequired=${this.required} class=${safeClassMap(CSS.itemWrapper)}>${this.interactiveContainer({ disabled: this.disabled, children: html`<slot @slotchange=${this.handleDefaultSlotChange}></slot
|
|
210
|
+
return html`${this.labelText && InternalLabel({ labelText: this.labelText, onClick: this.onLabelClick, required: this.required, tooltipText: this.messages.required }) || ""}<div aria-errormessage=${IDS.validationMessage} aria-label=${getLabelText(this) ?? nothing} .ariaInvalid=${this.status === "invalid"} .ariaRequired=${this.required} class=${safeClassMap(CSS.itemWrapper)}>${this.interactiveContainer({ disabled: this.disabled, children: html`<slot @slotchange=${this.handleDefaultSlotChange}></slot>` })}</div>${this.validationMessage && this.status === "invalid" ? Validation({ icon: this.validationIcon, id: IDS.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}`;
|
|
222
211
|
}
|
|
223
212
|
}
|
|
224
213
|
customElement("calcite-segmented-control", SegmentedControl);
|
|
@@ -5,7 +5,6 @@ import type { IconName } from "../calcite-icon/interfaces.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @cssproperty [--calcite-segmented-control-color] - Specifies the component's color.
|
|
7
7
|
* @cssproperty [--calcite-segmented-control-background-color] - Specifies the component's background color.
|
|
8
|
-
* @cssproperty [--calcite-segmented-control-border-color] - Specifies the component's border color.
|
|
9
8
|
* @cssproperty [--calcite-segmented-control-shadow] - Specifies the component's shadow.
|
|
10
9
|
* @cssproperty [--calcite-segmented-control-icon-color] - Specifies the icons's color.
|
|
11
10
|
*/
|
|
@@ -16,7 +16,7 @@ const CSS = {
|
|
|
16
16
|
icon: "icon",
|
|
17
17
|
iconSolo: "icon--solo"
|
|
18
18
|
};
|
|
19
|
-
const styles = css`:host{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-font-weight-normal);outline-color:transparent;transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out
|
|
19
|
+
const styles = css`:host{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-font-weight-normal);outline-color:transparent;transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out}.label{pointer-events:none;margin:.125rem;box-sizing:border-box;display:flex;flex:1 1 0%;align-items:center;color:var(--calcite-segmented-control-color, var(--calcite-color-text-3));background-color:var(--calcite-segmented-control-background-color);box-shadow:var(--calcite-segmented-control-shadow);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out,color var(--calcite-internal-animation-timing-fast) ease-in-out}.label--horizontal{justify-content:center}:host(:focus){outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))));outline-offset:-1px;z-index:var(--calcite-z-index)}.label--scale-s{padding-inline:.5rem;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);padding-block:.125rem}.label--scale-m{padding-inline:.75rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);padding-block:.375rem}.label--scale-l{padding-inline:1rem;padding-block:var(--calcite-space-sm-plus);font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host(:hover) .label{background-color:var(--calcite-segmented-control-background-color, var(--calcite-color-foreground-2));color:var(--calcite-segmented-control-color, var(--calcite-color-text-1))}:host(:active) .label{background-color:var(--calcite-segmented-control-background-color, var(--calcite-color-foreground-3))}:host([checked]) .label{cursor:default;background-color:var(--calcite-segmented-control-background-color, var(--calcite-color-brand));color:var(--calcite-segmented-control-color, var(--calcite-color-text-inverse))}:host([checked]) .label--outline,:host([checked]) .label--outline-fill{background-color:var(--calcite-segmented-control-background-color, var(--calcite-color-foreground-1));box-shadow:var(--calcite-segmented-control-shadow, inset 0 0 0 1px var(--calcite-color-brand));color:var(--calcite-segmented-control-color, var(--calcite-color-brand))}:host([checked]) .label--outline{background-color:var(--calcite-segmented-control-background-color, transparent)}::slotted(input){display:none}@media(forced-colors:active){:host([checked]) .label{background-color:highlight}:host([checked]) .label--outline,:host([checked]) .label--outline-fill{outline:2px solid transparent;outline-offset:2px}:host([checked]) .label:not([class~=label--outline]) .icon{color:highlightText}}.icon{position:relative;margin:0;display:inline-flex;line-height:inherit;margin-inline-start:var(--calcite-internal-segmented-control-icon-margin-start);margin-inline-end:var(--calcite-internal-segmented-control-icon-margin-end);--calcite-icon-color: var(--calcite-segmented-control-icon-color)}:host([icon-start]) .label--scale-s{--calcite-internal-segmented-control-icon-margin-end: .5rem}:host([icon-end]) .label--scale-s{--calcite-internal-segmented-control-icon-margin-start: .5rem}:host([icon-start]) .label--scale-m{--calcite-internal-segmented-control-icon-margin-end: .75rem}:host([icon-end]) .label--scale-m{--calcite-internal-segmented-control-icon-margin-start: .75rem}:host([icon-start]) .label--scale-l{--calcite-internal-segmented-control-icon-margin-end: 1rem}:host([icon-end]) .label--scale-l{--calcite-internal-segmented-control-icon-margin-start: 1rem}.label .icon--solo{--calcite-internal-segmented-control-icon-margin-start: 0;--calcite-internal-segmented-control-icon-margin-end: 0}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
20
20
|
class SegmentedControlItem extends LitElement {
|
|
21
21
|
constructor() {
|
|
22
22
|
super(...arguments);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
-
import type { MutableValidityState } from "../../utils/form.js";
|
|
4
3
|
import type { Scale, Status, Width } from "../interfaces.js";
|
|
5
4
|
import type { IconName } from "../calcite-icon/interfaces.js";
|
|
6
5
|
import type { Option } from "../calcite-option/customElement.js";
|
|
@@ -70,9 +69,9 @@ export abstract class Select extends LitElement {
|
|
|
70
69
|
/**
|
|
71
70
|
* The component's current validation state.
|
|
72
71
|
*
|
|
73
|
-
* @
|
|
72
|
+
* @see [MDN - ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)
|
|
74
73
|
*/
|
|
75
|
-
get validity():
|
|
74
|
+
get validity(): ValidityState;
|
|
76
75
|
/** The component's `selectedOption` value. */
|
|
77
76
|
accessor value: string;
|
|
78
77
|
/**
|
|
@@ -85,7 +84,7 @@ export abstract class Select extends LitElement {
|
|
|
85
84
|
* Sets focus on the component.
|
|
86
85
|
*
|
|
87
86
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
88
|
-
* @
|
|
87
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
89
88
|
*/
|
|
90
89
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
91
90
|
/** Fires when the `selectedOption` changes. */
|
|
@@ -4,7 +4,6 @@ import { css, html } from "lit";
|
|
|
4
4
|
import { LitElement, createEvent, stringOrBoolean, safeClassMap } from "@arcgis/lumina";
|
|
5
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
6
6
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
7
|
-
import { c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
|
|
8
7
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
|
|
9
8
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
10
9
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
@@ -12,7 +11,8 @@ import { I as InternalLabel } from "../../chunks/InternalLabel.js";
|
|
|
12
11
|
import { V as Validation } from "../../chunks/Validation.js";
|
|
13
12
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
14
13
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
15
|
-
|
|
14
|
+
import { u as useForm } from "../../chunks/useForm.js";
|
|
15
|
+
const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-direction:column;font-size:var(--calcite-select-font-size);font-weight:var(--calcite-internal-select-font-weight, var(--calcite-font-weight-regular))}.wrapper{position:relative;display:flex;align-items:stretch;inline-size:var(--select-width);block-size:var(--calcite-internal-select-block-size, 32px)}.wrapper:focus-within .icon,.wrapper:active .icon,.wrapper:hover .icon{color:var(--calcite-select-icon-color-hover, var(--calcite-color-text-1))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){--calcite-internal-select-font-size: var(--calcite-font-size-relative-sm);--calcite-internal-select-spacing-inline: var(--calcite-space-sm) var(--calcite-space-2xl);--calcite-internal-select-icon-container-padding-inline: var(--calcite-space-2xs);--calcite-internal-select-block-size: 24px}:host([scale=m]){--calcite-internal-select-font-size: var(--calcite-font-size-relative-base);--calcite-internal-select-spacing-inline: var(--calcite-space-md) var(--calcite-space-3xl);--calcite-internal-select-icon-container-padding-inline: var(--calcite-space-sm)}:host([scale=l]){--calcite-internal-select-font-size: var(--calcite-font-size-relative-md);--calcite-internal-select-spacing-inline: var(--calcite-space-lg) var(--calcite-space-4xl);--calcite-internal-select-icon-container-padding-inline: var(--calcite-space-sm-plus);--calcite-internal-select-block-size: 44px}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}.select{margin:0;box-sizing:border-box;inline-size:100%;cursor:pointer;appearance:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-style:solid;font-family:inherit;outline-color:transparent;font-weight:inherit;font-size:var(--calcite-select-font-size, var(--calcite-internal-select-font-size));color:var(--calcite-select-text-color, var(--calcite-color-text-2));border-color:var(--calcite-select-border-color, var(--calcite-color-border-input));border-width:var(--calcite-select-internal-border-width, var(--calcite-border-width-sm));padding-inline:var(--calcite-internal-select-spacing-inline);padding-block:var(--calcite-internal-select-spacing-block);border-inline-end-width:0;line-height:var(--calcite-internal-select-line-height, normal);background-color:var(--calcite-select-background-color, var(--calcite-color-foreground-1));border-radius:var(--calcite-select-corner-radius, var(--calcite-corner-radius-none));box-shadow:var(--calcite-select-shadow, var(--calcite-shadow-none))}.select:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}select:disabled{border-color:var(--calcite-color-border-input);--tw-bg-opacity: 1}.icon-container{pointer-events:none;position:absolute;inset-block:0px;display:flex;align-items:center;border-width:0px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:transparent;color:var(--calcite-color-text-2);inset-inline-end:0px;border-start-start-radius:var(--calcite-select-corner-radius, var(--calcite-corner-radius-none));border-start-end-radius:var(--calcite-select-corner-radius, var(--calcite-corner-radius-none));border-end-start-radius:var(--calcite-select-corner-radius, var(--calcite-corner-radius-none));border-end-end-radius:var(--calcite-select-corner-radius, var(--calcite-corner-radius-none));border-color:var(--calcite-select-border-color, var(--calcite-color-border-input));border-inline-width:0 var(--calcite-select-internal-icon-border-inline-end-width, var(--calcite-border-width-sm));padding-inline:var(--calcite-internal-select-icon-container-padding-inline)}.icon-container .icon{color:var(--calcite-select-icon-color, var(--calcite-color-text-3))}:host([status=invalid]) select,:host([status=invalid]) .icon-container{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) select:focus,:host([status=invalid]) .icon-container:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.select:focus~.icon-container{border-color:transparent}.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)}.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}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
16
16
|
const CSS = {
|
|
17
17
|
icon: "icon",
|
|
18
18
|
iconContainer: "icon-container",
|
|
@@ -32,6 +32,7 @@ class Select extends LitElement {
|
|
|
32
32
|
constructor() {
|
|
33
33
|
super();
|
|
34
34
|
this.componentToNativeEl = /* @__PURE__ */ new Map();
|
|
35
|
+
this.formSupport = useForm({ inputType: "text" })(this);
|
|
35
36
|
this.mutationObserver = createObserver("mutation", () => this.populateInternalSelect());
|
|
36
37
|
this.selectRef = createRef();
|
|
37
38
|
this.messages = useT9n();
|
|
@@ -41,19 +42,6 @@ class Select extends LitElement {
|
|
|
41
42
|
this.required = false;
|
|
42
43
|
this.scale = "m";
|
|
43
44
|
this.status = "idle";
|
|
44
|
-
this.validity = {
|
|
45
|
-
valid: false,
|
|
46
|
-
badInput: false,
|
|
47
|
-
customError: false,
|
|
48
|
-
patternMismatch: false,
|
|
49
|
-
rangeOverflow: false,
|
|
50
|
-
rangeUnderflow: false,
|
|
51
|
-
stepMismatch: false,
|
|
52
|
-
tooLong: false,
|
|
53
|
-
tooShort: false,
|
|
54
|
-
typeMismatch: false,
|
|
55
|
-
valueMissing: false
|
|
56
|
-
};
|
|
57
45
|
this.value = null;
|
|
58
46
|
this.width = "auto";
|
|
59
47
|
this.calciteSelectChange = createEvent({ cancelable: false });
|
|
@@ -61,7 +49,10 @@ class Select extends LitElement {
|
|
|
61
49
|
this.listen("calciteInternalOptionGroupChange", this.handleOptionOrGroupChange);
|
|
62
50
|
}
|
|
63
51
|
static {
|
|
64
|
-
this.properties = { disabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], label: 1, labelText: 1, name: [3, {}, { reflect: true }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], selectedOption: [0, {}, { attribute: false }], status: [3, {}, { reflect: true }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [
|
|
52
|
+
this.properties = { disabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], label: 1, labelText: 1, name: [3, {}, { reflect: true }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], selectedOption: [0, {}, { attribute: false }], status: [3, {}, { reflect: true }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [32, {}, { readOnly: true, attribute: false }], value: 1, width: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }] };
|
|
53
|
+
}
|
|
54
|
+
static {
|
|
55
|
+
this.formAssociated = true;
|
|
65
56
|
}
|
|
66
57
|
static {
|
|
67
58
|
this.styles = styles;
|
|
@@ -76,7 +67,6 @@ class Select extends LitElement {
|
|
|
76
67
|
childList: true
|
|
77
68
|
});
|
|
78
69
|
connectLabel(this);
|
|
79
|
-
connectForm(this);
|
|
80
70
|
}
|
|
81
71
|
willUpdate(changes) {
|
|
82
72
|
if (changes.has("value") && (this.hasUpdated || this.value !== null)) {
|
|
@@ -93,13 +83,12 @@ class Select extends LitElement {
|
|
|
93
83
|
this.populateInternalSelect();
|
|
94
84
|
const selected = this.selectRef.value?.selectedOptions[0];
|
|
95
85
|
this.selectFromNativeOption(selected);
|
|
96
|
-
|
|
86
|
+
this.formSupport.overrideDefaultValue(this.selectedOption?.value ?? "");
|
|
97
87
|
}
|
|
98
88
|
disconnectedCallback() {
|
|
99
89
|
super.disconnectedCallback();
|
|
100
90
|
this.mutationObserver?.disconnect();
|
|
101
91
|
disconnectLabel(this);
|
|
102
|
-
disconnectForm(this);
|
|
103
92
|
}
|
|
104
93
|
handleInternalSelectChange() {
|
|
105
94
|
const selected = this.selectRef.value.selectedOptions[0];
|
|
@@ -196,7 +185,7 @@ class Select extends LitElement {
|
|
|
196
185
|
}
|
|
197
186
|
render() {
|
|
198
187
|
const { disabled } = this;
|
|
199
|
-
return this.interactiveContainer({ disabled, children: html`${this.labelText && InternalLabel({ labelText: this.labelText, onClick: this.onLabelClick, required: this.required, tooltipText: this.messages.required }) || ""}<div class=${safeClassMap(CSS.wrapper)}><select aria-errormessage=${IDS.validationMessage} .ariaInvalid=${this.status === "invalid"} .ariaLabel=${getLabelText(this)} class=${safeClassMap(CSS.select)} .disabled=${disabled} @change=${this.handleInternalSelectChange} .required=${this.required} ${ref(this.selectRef)}><slot></slot></select>${this.renderChevron()}
|
|
188
|
+
return this.interactiveContainer({ disabled, children: html`${this.labelText && InternalLabel({ labelText: this.labelText, onClick: this.onLabelClick, required: this.required, tooltipText: this.messages.required }) || ""}<div class=${safeClassMap(CSS.wrapper)}><select aria-errormessage=${IDS.validationMessage} .ariaInvalid=${this.status === "invalid"} .ariaLabel=${getLabelText(this)} class=${safeClassMap(CSS.select)} .disabled=${disabled} @change=${this.handleInternalSelectChange} .required=${this.required} ${ref(this.selectRef)}><slot></slot></select>${this.renderChevron()}</div>${this.validationMessage && this.status === "invalid" ? Validation({ icon: this.validationIcon, id: IDS.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
|
|
200
189
|
}
|
|
201
190
|
}
|
|
202
191
|
customElement("calcite-select", Select);
|
|
@@ -102,7 +102,7 @@ export abstract class Sheet extends LitElement {
|
|
|
102
102
|
* Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
|
|
103
103
|
*
|
|
104
104
|
* @default false
|
|
105
|
-
* @
|
|
105
|
+
* @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
|
|
106
106
|
*/
|
|
107
107
|
accessor topLayerDisabled: boolean;
|
|
108
108
|
/** Specifies the component's width. */
|
|
@@ -118,7 +118,7 @@ export abstract class Sheet extends LitElement {
|
|
|
118
118
|
* Sets focus on the component's "close" button - the first focusable item.
|
|
119
119
|
*
|
|
120
120
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
121
|
-
* @
|
|
121
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
122
122
|
*/
|
|
123
123
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
124
124
|
/**
|
|
@@ -130,7 +130,7 @@ export abstract class Sheet extends LitElement {
|
|
|
130
130
|
/**
|
|
131
131
|
* Updates the component's size by setting its inline and/or block dimensions.
|
|
132
132
|
*
|
|
133
|
-
* Use this method to programmatically override the
|
|
133
|
+
* Use this method to programmatically override the component's width (inline) and/or height (block).
|
|
134
134
|
* Pass `null` to clear the override and revert to the default or CSS variable size.
|
|
135
135
|
*
|
|
136
136
|
* @param size
|
|
@@ -6,7 +6,7 @@ import { css, html } from "lit";
|
|
|
6
6
|
import { LitElement, createEvent, setAttribute, safeClassMap } from "@arcgis/lumina";
|
|
7
7
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
8
8
|
import { useDirection } from "@arcgis/lumina/controllers";
|
|
9
|
-
import {
|
|
9
|
+
import { B as ensureId, g as getStylePixelValue } from "../../chunks/dom.js";
|
|
10
10
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
11
11
|
import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
12
12
|
import { g as getDimensionClass } from "../../chunks/dynamicClasses.js";
|
|
@@ -33,7 +33,7 @@ const ICONS = {
|
|
|
33
33
|
dragVertical: "drag-resize-vertical",
|
|
34
34
|
dragHorizontal: "drag-resize-horizontal"
|
|
35
35
|
};
|
|
36
|
-
const styles = css`:host{position:absolute;inset:0;display:flex;visibility:hidden!important;--calcite-sheet-scrim-background-internal: rgba(0, 0, 0, .85);--calcite-scrim-shadow-block-start-internal: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-block-end-internal: 0 -4px 8px -1px rgba(0, 0, 0, .08), 0 -2px 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-start-internal: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-end-internal: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04)}:host([embedded]){z-index:var(--calcite-z-index-overlay)}.calcite--rtl{--calcite-scrim-shadow-inline-start-internal: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-end-internal: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04)}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.container{visibility:hidden;position:fixed;box-sizing:border-box;display:flex;opacity:0;color:var(--calcite-sheet-text-color, var(--calcite-color-text-2));transition:visibility 0ms linear var(--calcite-internal-animation-timing-medium),opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88)}:host([top-layer-disabled]) .container,:host([embedded]) .container{z-index:var(--calcite-z-index-overlay)}:host([position=inline-start]) .container{justify-content:flex-start;inset-block:0;inset-inline:0 auto;--calcite-sheet-hidden-position-internal: translate3d(-1rem, 0, 0)}:host([position=inline-end]) .container{justify-content:flex-end;inset-block:0;inset-inline:auto 0;--calcite-sheet-hidden-position-internal: translate3d(1rem, 0, 0)}:host([position=block-start]) .container{align-items:flex-start;inset-block:0 auto;inset-inline:0;--calcite-sheet-hidden-position-internal: translate3d(0, -1rem, 0)}:host([position=block-end]) .container{align-items:flex-end;inset-block:auto 0;inset-inline:0;--calcite-sheet-hidden-position-internal: translate3d(0, 1rem, 0)}:host([display-mode=float]) .content{--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--calcite-sheet-shadow, var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow))}:host([display-mode=overlay][position=inline-start]) .container{box-shadow:var(--calcite-scrim-shadow-inline-start-internal)}:host([display-mode=overlay][position=inline-end]) .container{box-shadow:var(--calcite-scrim-shadow-inline-end-internal)}:host([display-mode=overlay][position=block-start]) .container{box-shadow:var(--calcite-scrim-shadow-block-start-internal)}:host([display-mode=overlay][position=block-end]) .container{box-shadow:var(--calcite-scrim-shadow-block-end-internal)}:host([position^=inline]) .content{inline-size:var(--calcite-sheet-width-internal);max-inline-size:var(--calcite-sheet-max-width-internal);min-inline-size:var(--calcite-sheet-min-width-internal)}:host([position^=block]) .content{block-size:var(--calcite-sheet-height-internal);max-block-size:var(--calcite-sheet-max-height-internal);min-block-size:var(--calcite-sheet-min-height-internal)}:host([position^=inline]) .width-s{--calcite-sheet-width-internal: var(--calcite-sheet-width, 15vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 360px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 260px)}:host([position^=inline]) .width-m{--calcite-sheet-width-internal: var(--calcite-sheet-width, 25vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 420px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 300px)}:host([position^=inline]) .width-l{--calcite-sheet-width-internal: var(--calcite-sheet-width, 45vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 680px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 340px)}:host([position^=block]) .height-s{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 160px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 30vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 30vh)}:host([position^=block]) .height-m{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 200px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 45vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 50vh)}:host([position^=block]) .height-l{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 240px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 60vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 70vh)}.scrim{--calcite-scrim-background: var(--calcite-sheet-scrim-background, var(--calcite-sheet-scrim-background-internal));position:fixed;inset:0;display:flex;overflow:hidden;z-index:calc(var(--calcite-z-index) * -1)}:host([top-layer-disabled]) .scrim{z-index:unset}[popover]{padding:0;margin:0;border:none;background-color:transparent;position:fixed;display:flex;inline-size:100%;block-size:100%}[popover]:popover-open{display:flex}:host([opened]){visibility:visible!important}.content{position:relative;box-sizing:border-box;display:flex;max-inline-size:100%;padding:0;background-color:var(--calcite-sheet-background-color, var(--calcite-color-foreground-1));max-block-size:100%;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear var(--calcite-internal-animation-timing-medium),opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88);transform:var(--calcite-sheet-hidden-position-internal)}:host([top-layer-disabled]),:host([top-layer-disabled]) .content,:host([embedded]) .content{z-index:var(--calcite-z-index-modal)}.content-container{position:relative;display:flex;max-block-size:100%;max-inline-size:100%;flex:1 1 0%;overflow:hidden}.content-container ::slotted(*){block-size:auto}.container--open .content{transform:translateZ(0)}:host([display-mode=float]) .content,:host([display-mode=float]) .container,:host([display-mode=float]) .content-container{border-radius:var(--calcite-sheet-corner-radius, var(--calcite-corner-radius-round))}:host([display-mode=float]) .container{padding:var(--calcite-spacing-md)}.container--open{visibility:visible;opacity:1;transition-delay:0ms}.container--open .content{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear,opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),max-inline-size var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),max-block-size var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88);transition-delay:0ms}:host([position=inline-start]) .content,:host([position=inline-end]) .content{block-size:100%}:host([position=inline-start]) .content{flex-direction:row}:host([position=inline-end]) .content{flex-direction:row-reverse}:host([position=block-start]) .content,:host([position=block-end]) .content{inline-size:100%}:host([position=block-start]) .content{flex-direction:column}:host([position=block-end]) .content{flex-direction:column-reverse}:host([resizable][position=inline-start]) .content{padding-inline-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=inline-end]) .content{padding-inline-start:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=block-start]) .content{padding-block-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=block-end]) .content{padding-block-start:var(--calcite-size-fixed-sm-plus)}.resize-handle{position:absolute;box-sizing:border-box;display:flex;-webkit-user-select:none;user-select:none;align-items:center;justify-content:center;outline:2px solid transparent;outline-offset:2px;--calcite-internal-sheet-resize-handle-offset: calc( (var(--calcite-size-fixed-xxl) - var(--calcite-size-fixed-sm-plus)) / 2 * -1 );z-index:var(--calcite-z-index-header)}.resize-handle:active .resize-handle-bar,.resize-handle:hover .resize-handle-bar{color:var(--calcite-sheet-resize-icon-color, var(--calcite-color-text-1));background-color:var(--calcite-sheet-resize-background-color, var(--calcite-color-foreground-3))}.resize-handle-bar{pointer-events:none;display:flex;align-items:center;justify-content:center;color:var(--calcite-sheet-resize-icon-color, var(--calcite-color-border-input));background-color:var(--calcite-sheet-resize-background-color, var(--calcite-color-background))}.resize-handle:focus .resize-handle-bar{outline-color:transparent;outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)))}:host([position=inline-start]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);inset-inline-end:var(--calcite-internal-sheet-resize-handle-offset);block-size:100%}:host([position=inline-start]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-sheet-border-color, var(--calcite-color-border-3))}:host([position=inline-start]):host([display-mode=float]) .resize-handle-bar{border-start-end-radius:var(--calcite-sheet-corner-radius, var(--calcite-corner-radius-round));border-end-end-radius:var(--calcite-sheet-corner-radius, var(--calcite-corner-radius-round))}:host([position=inline-end]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);inset-inline-start:var(--calcite-internal-sheet-resize-handle-offset);block-size:100%}:host([position=inline-end]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-sheet-border-color, var(--calcite-color-border-3))}:host([position=inline-end]):host([display-mode=float]) .resize-handle-bar{border-start-start-radius:.25rem;border-end-start-radius:.25rem}:host([position=block-start]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-end:var(--calcite-internal-sheet-resize-handle-offset)}:host([position=block-start]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-start:var(--calcite-border-width-sm) solid var(--calcite-sheet-border-color, var(--calcite-color-border-3))}:host([position=block-start]):host([display-mode=float]) .resize-handle-bar{border-end-end-radius:.25rem;border-end-start-radius:.25rem}:host([position=block-end]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-start:var(--calcite-internal-sheet-resize-handle-offset)}:host([position=block-end]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-end:var(--calcite-border-width-sm) solid var(--calcite-sheet-border-color, var(--calcite-color-border-3))}:host([position=block-end]):host([display-mode=float]) .resize-handle-bar{border-start-start-radius:var(--calcite-sheet-corner-radius, var(--calcite-corner-radius-round));border-start-end-radius:var(--calcite-sheet-corner-radius, var(--calcite-corner-radius-round))}:host([position]) .container--embedded{pointer-events:auto;position:absolute;inline-size:100%;max-inline-size:100%;min-inline-size:100%;block-size:100%;max-block-size:100%;min-block-size:100%}:host([position]) .container--embedded calcite-scrim{position:absolute}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
36
|
+
const styles = css`:host{position:absolute;inset:0;display:flex;visibility:hidden!important;--calcite-sheet-scrim-background-internal: rgba(0, 0, 0, .85);--calcite-scrim-shadow-block-start-internal: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-block-end-internal: 0 -4px 8px -1px rgba(0, 0, 0, .08), 0 -2px 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-start-internal: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-end-internal: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04)}:host([embedded]){z-index:var(--calcite-z-index-overlay)}.calcite--rtl{--calcite-scrim-shadow-inline-start-internal: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-end-internal: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04)}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.container{visibility:hidden;position:fixed;box-sizing:border-box;display:flex;opacity:0;color:var(--calcite-sheet-text-color, var(--calcite-color-text-2));transition:visibility 0ms linear var(--calcite-internal-animation-timing-medium),opacity var(--calcite-internal-animation-timing-medium) ease-in-out}:host([top-layer-disabled]) .container,:host([embedded]) .container{z-index:var(--calcite-z-index-overlay)}:host([position=inline-start]) .container{justify-content:flex-start;inset-block:0;inset-inline:0 auto;--calcite-sheet-hidden-position-internal: translate3d(-1rem, 0, 0)}:host([position=inline-end]) .container{justify-content:flex-end;inset-block:0;inset-inline:auto 0;--calcite-sheet-hidden-position-internal: translate3d(1rem, 0, 0)}:host([position=block-start]) .container{align-items:flex-start;inset-block:0 auto;inset-inline:0;--calcite-sheet-hidden-position-internal: translate3d(0, -1rem, 0)}:host([position=block-end]) .container{align-items:flex-end;inset-block:auto 0;inset-inline:0;--calcite-sheet-hidden-position-internal: translate3d(0, 1rem, 0)}:host([display-mode=float]) .content{box-shadow:var(--calcite-sheet-shadow, var(--calcite-shadow-sm))}:host([display-mode=overlay][position=inline-start]) .content{box-shadow:var(--calcite-scrim-shadow-inline-start-internal)}:host([display-mode=overlay][position=inline-end]) .content{box-shadow:var(--calcite-scrim-shadow-inline-end-internal)}:host([display-mode=overlay][position=block-start]) .content{box-shadow:var(--calcite-scrim-shadow-block-start-internal)}:host([display-mode=overlay][position=block-end]) .content{box-shadow:var(--calcite-scrim-shadow-block-end-internal)}:host([position^=inline]) .content{inline-size:var(--calcite-sheet-width-internal);max-inline-size:var(--calcite-sheet-max-width-internal);min-inline-size:var(--calcite-sheet-min-width-internal)}:host([position^=block]) .content{block-size:var(--calcite-sheet-height-internal);max-block-size:var(--calcite-sheet-max-height-internal);min-block-size:var(--calcite-sheet-min-height-internal)}:host([position^=inline]) .width-s{--calcite-sheet-width-internal: var(--calcite-sheet-width, 15vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 360px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 260px)}:host([position^=inline]) .width-m{--calcite-sheet-width-internal: var(--calcite-sheet-width, 25vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 420px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 300px)}:host([position^=inline]) .width-l{--calcite-sheet-width-internal: var(--calcite-sheet-width, 45vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 680px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 340px)}:host([position^=block]) .height-s{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 160px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 30vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 30vh)}:host([position^=block]) .height-m{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 200px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 45vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 50vh)}:host([position^=block]) .height-l{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 240px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 60vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 70vh)}.scrim{--calcite-scrim-background: var(--calcite-sheet-scrim-background, var(--calcite-sheet-scrim-background-internal));position:fixed;inset:0;display:flex;overflow:hidden;z-index:calc(var(--calcite-z-index) * -1)}:host([top-layer-disabled]) .scrim{z-index:unset}[popover]{padding:0;margin:0;border:none;background-color:transparent;position:fixed;display:flex;inline-size:100%;block-size:100%}[popover]:popover-open{display:flex}:host([opened]){visibility:visible!important}.content{position:relative;box-sizing:border-box;display:flex;max-inline-size:100%;padding:0;background-color:var(--calcite-sheet-background-color, var(--calcite-color-foreground-1));max-block-size:100%;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-medium) ease-in-out,visibility 0ms linear var(--calcite-internal-animation-timing-medium),opacity var(--calcite-internal-animation-timing-medium) ease-in-out;transform:var(--calcite-sheet-hidden-position-internal)}:host([top-layer-disabled]),:host([top-layer-disabled]) .content,:host([embedded]) .content{z-index:var(--calcite-z-index-modal)}.content-container{position:relative;display:flex;max-block-size:100%;max-inline-size:100%;flex:1 1 0%;overflow:hidden}.content-container ::slotted(*){block-size:auto}.container--open .content{transform:translateZ(0)}:host([display-mode=float]) .content,:host([display-mode=float]) .container,:host([display-mode=float]) .content-container{border-radius:var(--calcite-sheet-corner-radius, var(--calcite-corner-radius-round))}:host([display-mode=float]) .container{padding:var(--calcite-spacing-md)}.container--open{visibility:visible;opacity:1;transition-delay:0ms}.container--open .content{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-medium) ease-in-out,visibility 0ms linear,opacity var(--calcite-internal-animation-timing-medium) ease-in-out,max-inline-size var(--calcite-internal-animation-timing-medium) ease-in-out,max-block-size var(--calcite-internal-animation-timing-medium) ease-in-out;transition-delay:0ms}@starting-style{.container--open{opacity:0;visibility:hidden}}:host([position=inline-start]) .content,:host([position=inline-end]) .content{block-size:100%}:host([position=inline-start]) .content{flex-direction:row}:host([position=inline-end]) .content{flex-direction:row-reverse}:host([position=block-start]) .content,:host([position=block-end]) .content{inline-size:100%}:host([position=block-start]) .content{flex-direction:column}:host([position=block-end]) .content{flex-direction:column-reverse}:host([resizable][position=inline-start]) .content{padding-inline-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=inline-end]) .content{padding-inline-start:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=block-start]) .content{padding-block-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=block-end]) .content{padding-block-start:var(--calcite-size-fixed-sm-plus)}.resize-handle{position:absolute;box-sizing:border-box;display:flex;-webkit-user-select:none;user-select:none;align-items:center;justify-content:center;outline:2px solid transparent;outline-offset:2px;--calcite-internal-sheet-resize-handle-offset: calc( (var(--calcite-size-fixed-xxl) - var(--calcite-size-fixed-sm-plus)) / 2 * -1 );z-index:var(--calcite-z-index-header)}.resize-handle:active .resize-handle-bar,.resize-handle:hover .resize-handle-bar{color:var(--calcite-sheet-resize-icon-color, var(--calcite-color-text-1));background-color:var(--calcite-sheet-resize-background-color, var(--calcite-color-foreground-3))}.resize-handle-bar{pointer-events:none;display:flex;align-items:center;justify-content:center;color:var(--calcite-sheet-resize-icon-color, var(--calcite-color-border-input));background-color:var(--calcite-sheet-resize-background-color, var(--calcite-color-background))}.resize-handle:focus .resize-handle-bar{outline-color:transparent;outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)))}:host([position=inline-start]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);inset-inline-end:var(--calcite-internal-sheet-resize-handle-offset);block-size:100%}:host([position=inline-start]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-sheet-border-color, var(--calcite-color-border-3))}:host([position=inline-start]):host([display-mode=float]) .resize-handle-bar{border-start-end-radius:var(--calcite-sheet-corner-radius, var(--calcite-corner-radius-round));border-end-end-radius:var(--calcite-sheet-corner-radius, var(--calcite-corner-radius-round))}:host([position=inline-end]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);inset-inline-start:var(--calcite-internal-sheet-resize-handle-offset);block-size:100%}:host([position=inline-end]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-sheet-border-color, var(--calcite-color-border-3))}:host([position=inline-end]):host([display-mode=float]) .resize-handle-bar{border-start-start-radius:.25rem;border-end-start-radius:.25rem}:host([position=block-start]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-end:var(--calcite-internal-sheet-resize-handle-offset)}:host([position=block-start]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-start:var(--calcite-border-width-sm) solid var(--calcite-sheet-border-color, var(--calcite-color-border-3))}:host([position=block-start]):host([display-mode=float]) .resize-handle-bar{border-end-end-radius:.25rem;border-end-start-radius:.25rem}:host([position=block-end]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-start:var(--calcite-internal-sheet-resize-handle-offset)}:host([position=block-end]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-end:var(--calcite-border-width-sm) solid var(--calcite-sheet-border-color, var(--calcite-color-border-3))}:host([position=block-end]):host([display-mode=float]) .resize-handle-bar{border-start-start-radius:var(--calcite-sheet-corner-radius, var(--calcite-corner-radius-round));border-start-end-radius:var(--calcite-sheet-corner-radius, var(--calcite-corner-radius-round))}:host([position]) .container--embedded{pointer-events:auto;position:absolute;inline-size:100%;max-inline-size:100%;min-inline-size:100%;block-size:100%;max-block-size:100%;min-block-size:100%}:host([position]) .container--embedded calcite-scrim{position:absolute}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
37
37
|
class Sheet extends LitElement {
|
|
38
38
|
constructor() {
|
|
39
39
|
super();
|
|
@@ -144,7 +144,7 @@ class Sheet extends LitElement {
|
|
|
144
144
|
if (changes.has("opened") && (this.hasUpdated || this.opened !== false) && this.transitionRef.value) {
|
|
145
145
|
toggleOpenClose(this);
|
|
146
146
|
}
|
|
147
|
-
if (changes.has("open") && (this.hasUpdated || this.open !== false) || changes.has("position") && (this.hasUpdated || this.position !== "inline-start") || changes.has("resizable") && (this.hasUpdated || this.resizable !== false)) {
|
|
147
|
+
if (changes.has("open") && (this.hasUpdated || this.open !== false) || changes.has("position") && (this.hasUpdated || this.position !== "inline-start") || changes.has("resizable") && (this.hasUpdated || this.resizable !== false) || changes.has("direction")) {
|
|
148
148
|
this.setupInteractions();
|
|
149
149
|
}
|
|
150
150
|
if (this.contentRef.value) {
|
|
@@ -232,10 +232,6 @@ class Sheet extends LitElement {
|
|
|
232
232
|
}
|
|
233
233
|
cleanupInteractions() {
|
|
234
234
|
this.interaction?.unset();
|
|
235
|
-
this.updateSizeInternal({
|
|
236
|
-
inline: null,
|
|
237
|
-
block: null
|
|
238
|
-
});
|
|
239
235
|
}
|
|
240
236
|
async setupInteractions() {
|
|
241
237
|
this.cleanupInteractions();
|
|
@@ -12,7 +12,7 @@ import type { DisplayMode } from "./interfaces.js";
|
|
|
12
12
|
* @cssproperty [--calcite-shell-panel-min-height] - When `layout` is `horizontal`, or `layout` is `vertical` and `displayMode` is `float-content` or `float`, specifies the component's minimum height.
|
|
13
13
|
* @cssproperty [--calcite-shell-panel-max-width] - Specifies the component's maximum width.
|
|
14
14
|
* @cssproperty [--calcite-shell-panel-resize-icon-color] - Specifies the resize handle's text color.
|
|
15
|
-
* @cssproperty [--calcite-shell-panel-shadow] - When `displayMode` is `
|
|
15
|
+
* @cssproperty [--calcite-shell-panel-shadow] - When `displayMode` is `float-all`, `float-content`, or `overlay`, specifies the component's shadow.
|
|
16
16
|
* @cssproperty [--calcite-shell-panel-text-color] - Specifies the component's text color.
|
|
17
17
|
* @cssproperty [--calcite-shell-panel-width] - Specifies the component's width.
|
|
18
18
|
* @cssproperty [--calcite-shell-panel-z-index] - Specifies the component's z-index value.
|
|
@@ -53,7 +53,7 @@ export abstract class ShellPanel extends LitElement {
|
|
|
53
53
|
/**
|
|
54
54
|
* Specifies the component's direction.
|
|
55
55
|
*
|
|
56
|
-
* @deprecated in
|
|
56
|
+
* @deprecated in v5.0.0, removal target v6.0.0 - No longer necessary.
|
|
57
57
|
* @default "vertical"
|
|
58
58
|
*/
|
|
59
59
|
accessor layout: Extract<"horizontal" | "vertical", Layout>;
|
|
@@ -62,7 +62,7 @@ export abstract class ShellPanel extends LitElement {
|
|
|
62
62
|
/**
|
|
63
63
|
* Specifies the component's position. Will be flipped when the element direction is right-to-left (`"rtl"`).
|
|
64
64
|
*
|
|
65
|
-
* @deprecated in
|
|
65
|
+
* @deprecated in v5.0.0, removal target v6.0.0 - No longer necessary.
|
|
66
66
|
* @default "start"
|
|
67
67
|
*/
|
|
68
68
|
accessor position: Extract<"start" | "end", Position>;
|
|
@@ -84,7 +84,7 @@ export abstract class ShellPanel extends LitElement {
|
|
|
84
84
|
/**
|
|
85
85
|
* Updates the component's size by setting its inline and/or block dimensions.
|
|
86
86
|
*
|
|
87
|
-
* Use this method to programmatically override the
|
|
87
|
+
* Use this method to programmatically override the component's width (inline) and/or height (block).
|
|
88
88
|
* Pass `null` to clear the override and revert to the default or CSS variable size.
|
|
89
89
|
*
|
|
90
90
|
* @param size
|