@esri/calcite-components 5.1.0-next.5 → 5.1.0-next.50
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/{ZKCFISUX.js → 2BQNKQRI.js} +1 -1
- package/dist/cdn/{EY4MG3NU.js → 2DYDJPQW.js} +1 -1
- package/dist/cdn/2IX7I5VV.js +2 -0
- package/dist/cdn/{2QARK4VJ.js → 2MRHM2BO.js} +1 -1
- package/dist/cdn/{2GS6R2BX.js → 2YDPGI4H.js} +1 -1
- package/dist/cdn/3OJIBSJJ.js +2 -0
- package/dist/cdn/{NT6RQTF7.js → 454O35TR.js} +1 -1
- package/dist/cdn/{PYD5GHXA.js → 4DFUGGYA.js} +1 -1
- package/dist/cdn/{3L2WKJUB.js → 4RG7C5Q7.js} +1 -1
- package/dist/cdn/{22IPJDDL.js → 5CDQW3XO.js} +1 -1
- package/dist/cdn/5CXXZEDF.js +2 -0
- package/dist/cdn/{ZVFZSDLX.js → 5G7AIDBP.js} +1 -1
- package/dist/cdn/5YECELO5.js +2 -0
- package/dist/cdn/5YJJRPPC.js +2 -0
- package/dist/cdn/{ALC6PGDZ.js → 6553ZRIF.js} +1 -1
- package/dist/cdn/{Q52IY7SS.js → 65UCZN4U.js} +1 -1
- package/dist/cdn/65ZXNKAP.js +2 -0
- package/dist/cdn/6BFAW3N5.js +2 -0
- package/dist/cdn/{QVTLP2LK.js → 6EO6DYWC.js} +1 -1
- package/dist/cdn/6TIKVRXP.js +2 -0
- package/dist/cdn/7DLX3CKP.js +2 -0
- package/dist/cdn/{Z6LSD6MR.js → 7FSTHS3X.js} +1 -1
- package/dist/cdn/{2Z4Z3NMS.js → 7L5FWUMX.js} +1 -1
- package/dist/cdn/{ZKPCUAN2.js → 7V26OEC7.js} +1 -1
- package/dist/cdn/AEVSXNU2.js +2 -0
- package/dist/cdn/{KVPLQQ75.js → B44D3FDA.js} +1 -1
- package/dist/cdn/{YQOYGBGD.js → B6HC5XUY.js} +1 -1
- package/dist/cdn/BHD66HV4.js +2 -0
- package/dist/cdn/{NNSUCRNU.js → BIILZIGG.js} +1 -1
- package/dist/cdn/{Y5FMVLYP.js → BVKQYKOO.js} +1 -1
- package/dist/cdn/CUG5IRRL.js +2 -0
- package/dist/cdn/CZFHMF2K.js +2 -0
- package/dist/cdn/{DY6SXW3X.js → CZOONFMH.js} +1 -1
- package/dist/cdn/D4A7Q4YZ.js +2 -0
- package/dist/cdn/{EHIAXJAL.js → DCWL5FUH.js} +1 -1
- package/dist/cdn/DP6TNJTM.js +2 -0
- package/dist/cdn/DPTRTPLD.js +2 -0
- package/dist/cdn/DVC6MD2D.js +2 -0
- package/dist/cdn/E24GSGDD.js +2 -0
- package/dist/cdn/E4SS3COX.js +2 -0
- package/dist/cdn/{VB7GHJWK.js → E6J6DZZY.js} +1 -1
- package/dist/cdn/EGBQZVDX.js +2 -0
- package/dist/cdn/{D7UER3G6.js → EI4MHNNW.js} +1 -1
- package/dist/cdn/{IU4TJIME.js → F4BSA6GV.js} +1 -1
- package/dist/cdn/F6B6A3DE.js +2 -0
- package/dist/cdn/{25YVFVC7.js → FDEO2JWC.js} +1 -1
- package/dist/cdn/FN4TGSRQ.js +2 -0
- package/dist/cdn/FOQFSSLB.js +2 -0
- package/dist/cdn/FOZK3QI2.js +2 -0
- package/dist/cdn/{X53XDNBL.js → FZG3OQC4.js} +1 -1
- package/dist/cdn/G66UIFSH.js +2 -0
- package/dist/cdn/GETFOPRM.js +2 -0
- package/dist/cdn/{MM6LZCYO.js → GGEKSHUC.js} +1 -1
- package/dist/cdn/GKYLNL37.js +2 -0
- package/dist/cdn/GOK6UUVH.js +3 -0
- package/dist/cdn/GX4FOIRJ.js +2 -0
- package/dist/cdn/{TZFOTRCX.js → H2IZGMRU.js} +1 -1
- package/dist/cdn/H4LW5M3U.js +2 -0
- package/dist/cdn/{ODOOWGRW.js → H5V4CXEU.js} +1 -1
- package/dist/cdn/HANIE3A7.js +2 -0
- package/dist/cdn/HM2N2CCW.js +2 -0
- package/dist/cdn/{C25VFIND.js → HTCOSUPK.js} +1 -1
- package/dist/cdn/IDO7UXCH.js +2 -0
- package/dist/cdn/{G4QI7VSJ.js → ISHR72IK.js} +1 -1
- package/dist/cdn/ITEJJJZW.js +2 -0
- package/dist/cdn/{SVHI2LRC.js → J35A7ZYK.js} +1 -1
- package/dist/cdn/JB775TAO.js +2 -0
- package/dist/cdn/{AJKEEG2Z.js → JDSHUV34.js} +1 -1
- package/dist/cdn/JRU4MCKT.js +2 -0
- package/dist/cdn/JTQY42ZT.js +2 -0
- package/dist/cdn/{B55VO4LW.js → KJMOIYCM.js} +1 -1
- package/dist/cdn/{O75ZRZLS.js → KPR2DKVI.js} +1 -1
- package/dist/cdn/{T2MUZ4UN.js → KRIRNHSC.js} +1 -1
- package/dist/cdn/{FWEFFYYZ.js → L5OBVKJN.js} +1 -1
- package/dist/cdn/LFYW7HOL.js +2 -0
- package/dist/cdn/{RRNEZXM4.js → LOGLKFMU.js} +1 -1
- package/dist/cdn/{5TCLHXAD.js → LWAXAU2P.js} +1 -1
- package/dist/cdn/M5WSXZ4R.js +2 -0
- package/dist/cdn/MKRCEA57.js +2 -0
- package/dist/cdn/{K4R3HUW3.js → MVW4F7DQ.js} +1 -1
- package/dist/cdn/MXB4VAMW.js +2 -0
- package/dist/cdn/{3GV45XL7.js → MYDCGCGV.js} +1 -1
- package/dist/cdn/N4QQO5F7.js +2 -0
- package/dist/cdn/NGIVBXHW.js +2 -0
- package/dist/cdn/NNXI6WVD.js +2 -0
- package/dist/cdn/{5J2UYJYX.js → O55WIRUD.js} +1 -1
- package/dist/cdn/{PNXNTD3R.js → O6M5DBBM.js} +1 -1
- package/dist/cdn/ODBJ5WTT.js +2 -0
- package/dist/cdn/{UYYGQ6AY.js → ODDLX4A2.js} +1 -1
- package/dist/cdn/ONOJ67SI.js +2 -0
- package/dist/cdn/{BPSXK66S.js → OYIADDSA.js} +1 -1
- package/dist/cdn/OYL2S57T.js +2 -0
- package/dist/cdn/{SP22KLIK.js → P3DUED3C.js} +1 -1
- package/dist/cdn/PGYGTX6H.js +2 -0
- package/dist/cdn/{HUNZU2OF.js → PKL245LP.js} +1 -1
- package/dist/cdn/{OGOI7JTF.js → PT6XDY4O.js} +1 -1
- package/dist/cdn/PXGUVRKO.js +2 -0
- package/dist/cdn/Q2QMINL7.js +2 -0
- package/dist/cdn/Q572T7QY.js +2 -0
- package/dist/cdn/{NIBBUVHR.js → QE5Z7QLF.js} +1 -1
- package/dist/cdn/{42NQN6DY.js → QP6TVAJM.js} +1 -1
- package/dist/cdn/{NMIBGEIB.js → R25OYM2I.js} +1 -1
- package/dist/cdn/R2VFBL44.js +2 -0
- package/dist/cdn/RI3BPIUH.js +2 -0
- package/dist/cdn/RNRXZGW3.js +4 -0
- package/dist/cdn/RXLGGOGW.js +2 -0
- package/dist/cdn/{GNDNKP2Q.js → SC27WKHW.js} +1 -1
- package/dist/cdn/SFQJT6YW.js +2 -0
- package/dist/cdn/SOOH6THK.js +4 -0
- package/dist/cdn/{5SU52VYR.js → SRA4ON3Z.js} +1 -1
- package/dist/cdn/{HHOMMC4H.js → SRZOMG32.js} +1 -1
- package/dist/cdn/{NAFJ5ZYO.js → SWQWT6UY.js} +1 -1
- package/dist/cdn/{HGRVTRR3.js → T2BIGOOU.js} +1 -1
- package/dist/cdn/T5IAEO6K.js +2 -0
- package/dist/cdn/{RGKOGN5W.js → TGXINM27.js} +1 -1
- package/dist/cdn/{H77SNVVI.js → THCVDEDQ.js} +1 -1
- package/dist/cdn/{IFLPCKYL.js → TSUGHZGP.js} +1 -1
- package/dist/cdn/U2S2OJXD.js +2 -0
- package/dist/cdn/U4BLA4YQ.js +2 -0
- package/dist/cdn/UETXOCGM.js +2 -0
- package/dist/cdn/{UVJ3XYK5.js → UISO27PN.js} +1 -1
- package/dist/cdn/V3OD3OAU.js +2 -0
- package/dist/cdn/{ZPJ4FGXO.js → VJ7EX6PH.js} +1 -1
- package/dist/cdn/VO3JGHAF.js +2 -0
- package/dist/cdn/{752PQ7IA.js → VQKHXIXM.js} +1 -1
- package/dist/cdn/{CWQZDXHH.js → VY5SOQAQ.js} +1 -1
- package/dist/cdn/{MQMNX7AM.js → W4ULMZZ6.js} +1 -1
- package/dist/cdn/W7ADR7QV.js +2 -0
- package/dist/cdn/WF6FXY63.js +2 -0
- package/dist/cdn/WFNTQKEK.js +2 -0
- package/dist/cdn/{RH6ZIP65.js → WGGFNK4Z.js} +1 -1
- package/dist/cdn/WGVSYIK4.js +2 -0
- package/dist/cdn/{3LOKHBAB.js → WK36AMAE.js} +1 -1
- package/dist/cdn/WNBAMEP4.js +2 -0
- package/dist/cdn/WZ2EOOBW.js +2 -0
- package/dist/cdn/XDF2XRSP.js +2 -0
- package/dist/cdn/XOFNZQVZ.js +2 -0
- package/dist/cdn/{3NNVHOGK.js → XVNZ5DWM.js} +1 -1
- package/dist/cdn/{UUHRTJGO.js → YDNLNQTM.js} +1 -1
- package/dist/cdn/YG62SKHE.js +2 -0
- package/dist/cdn/{5L7CGWWD.js → YPJFB3G7.js} +1 -1
- package/dist/cdn/{IJP6ZKHZ.js → YQONJA6H.js} +1 -1
- package/dist/cdn/YUUGBEJE.js +2 -0
- package/dist/cdn/{6XJYCX76.js → ZDYWF5EE.js} +1 -1
- package/dist/cdn/{DR7JKZAI.js → ZQ4LGVDF.js} +1 -1
- package/dist/cdn/ZUAXYEB6.js +2 -0
- 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/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 +3 -3
- 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 +14 -12
- package/dist/components/calcite-action/customElement.js +8 -14
- package/dist/components/calcite-action-bar/customElement.d.ts +12 -3
- package/dist/components/calcite-action-bar/customElement.js +47 -16
- 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 +11 -6
- 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 +20 -31
- 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 +5 -5
- 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 +1 -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-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 +165 -90
- 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 +1 -1
- 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 +66 -75
- 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 +33 -14
- 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 +2 -2
- package/dist/components/calcite-list-item-group/customElement.js +1 -1
- package/dist/components/calcite-loader/customElement.d.ts +1 -1
- package/dist/components/calcite-menu/customElement.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-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 +42 -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 +11 -175
- 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.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 +3 -3
- package/dist/components/calcite-shell-panel/customElement.js +4 -0
- 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-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 +8 -8
- package/dist/types/preact.d.ts +8 -8
- package/dist/types/react.d.ts +8 -8
- package/dist/types/stencil.d.ts +8 -8
- package/package.json +15 -16
- package/dist/cdn/25CWB6HX.js +0 -2
- package/dist/cdn/3KLZFJXW.js +0 -2
- package/dist/cdn/3WLFK4RW.js +0 -2
- package/dist/cdn/462JN5WF.js +0 -2
- package/dist/cdn/464S36UH.js +0 -2
- package/dist/cdn/4ALKCXNH.js +0 -2
- package/dist/cdn/4GQPJFUJ.js +0 -2
- package/dist/cdn/4GVH7HTQ.js +0 -2
- package/dist/cdn/4J6YW6EK.js +0 -2
- package/dist/cdn/52ZOO5HQ.js +0 -2
- package/dist/cdn/5HTRQR7F.js +0 -2
- package/dist/cdn/6NEHFZMJ.js +0 -2
- package/dist/cdn/6VRXKEA7.js +0 -2
- package/dist/cdn/7RSGSW76.js +0 -2
- package/dist/cdn/7UOYXJ3K.js +0 -2
- package/dist/cdn/A2UZRUUF.js +0 -2
- package/dist/cdn/A7IQIXR3.js +0 -2
- package/dist/cdn/AEUCGVU4.js +0 -2
- package/dist/cdn/BIEIKUB2.js +0 -2
- package/dist/cdn/BS22M3WT.js +0 -2
- package/dist/cdn/BWDCDFXW.js +0 -2
- package/dist/cdn/CXVISA7Y.js +0 -2
- package/dist/cdn/ED7SQQHM.js +0 -3
- package/dist/cdn/EFNE45MK.js +0 -2
- package/dist/cdn/EGK4PSW5.js +0 -2
- package/dist/cdn/EJCQCHH7.js +0 -2
- package/dist/cdn/ENCYKNKN.js +0 -4
- package/dist/cdn/EZW5GK73.js +0 -2
- package/dist/cdn/GEQ3EBJO.js +0 -2
- package/dist/cdn/GLJVCFQW.js +0 -2
- package/dist/cdn/HAUWZRL4.js +0 -2
- package/dist/cdn/HBUNMGZ3.js +0 -2
- package/dist/cdn/HFGDCX3I.js +0 -2
- package/dist/cdn/J42TNDHM.js +0 -2
- package/dist/cdn/J4J65DN5.js +0 -2
- package/dist/cdn/KBHLSIAR.js +0 -2
- package/dist/cdn/KKMGV3S6.js +0 -2
- package/dist/cdn/KUC6KV4R.js +0 -2
- package/dist/cdn/KVRUYI63.js +0 -2
- package/dist/cdn/MLQDQZZR.js +0 -2
- package/dist/cdn/N47CSPB7.js +0 -2
- package/dist/cdn/O6ZRTXVO.js +0 -2
- package/dist/cdn/OCFKSX5L.js +0 -2
- package/dist/cdn/OO556Q5A.js +0 -2
- package/dist/cdn/PGUOVY7V.js +0 -2
- package/dist/cdn/PJ3GHZ7T.js +0 -2
- package/dist/cdn/Q4EG6G7W.js +0 -2
- package/dist/cdn/QEPJF6TC.js +0 -3
- package/dist/cdn/QHZAKDI7.js +0 -2
- package/dist/cdn/QIUVPLV2.js +0 -2
- package/dist/cdn/R3DLH5BB.js +0 -2
- package/dist/cdn/R5DGN3O6.js +0 -2
- package/dist/cdn/RU3YCR42.js +0 -2
- package/dist/cdn/SF7SFEKA.js +0 -2
- package/dist/cdn/SKOYS4HM.js +0 -2
- package/dist/cdn/TAS3P2HU.js +0 -2
- package/dist/cdn/TBA5ATIB.js +0 -2
- package/dist/cdn/TW2SRS2O.js +0 -2
- package/dist/cdn/V2PPBU7J.js +0 -2
- package/dist/cdn/VIMF6KPF.js +0 -2
- package/dist/cdn/VYSJFEY6.js +0 -2
- package/dist/cdn/WI7KEIGV.js +0 -2
- package/dist/cdn/WJXZ7BPV.js +0 -2
- package/dist/cdn/WOJJ53FN.js +0 -2
- package/dist/cdn/WSRLM2TQ.js +0 -2
- package/dist/cdn/XPXJW5E3.js +0 -2
- package/dist/cdn/XXVIE4SD.js +0 -2
- package/dist/cdn/YBZVV5BN.js +0 -2
- package/dist/cdn/Z3B276DZ.js +0 -2
- package/dist/cdn/ZDZGWD2Y.js +0 -2
- package/dist/cdn/ZIKLLQSU.js +0 -2
- package/dist/cdn/ZQLGBHLZ.js +0 -2
- package/dist/cdn/ZZ746O36.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
|
@@ -64,13 +64,42 @@ class SortHandle extends LitElement {
|
|
|
64
64
|
return typeof this.setPosition === "number" && typeof this.setSize === "number";
|
|
65
65
|
}
|
|
66
66
|
get hasValidSetInfo() {
|
|
67
|
-
return this.hasSetInfo ? this.setPosition > 0 && this.setSize >
|
|
67
|
+
return this.hasSetInfo ? this.setPosition > 0 && this.setPosition <= this.setSize && this.setSize > 0 : true;
|
|
68
68
|
}
|
|
69
69
|
get hasReorderItems() {
|
|
70
70
|
return !this.sortDisabled && this.hasValidSetInfo;
|
|
71
71
|
}
|
|
72
|
+
get hasMoveToItems() {
|
|
73
|
+
return this.moveToItems.length > 0;
|
|
74
|
+
}
|
|
75
|
+
get hasAddToItems() {
|
|
76
|
+
return this.addToItems.length > 0;
|
|
77
|
+
}
|
|
78
|
+
get reorderGroupTitle() {
|
|
79
|
+
return this.hasMoveToItems || this.hasAddToItems ? this.messages.reorder : "";
|
|
80
|
+
}
|
|
72
81
|
get hasNoItems() {
|
|
73
|
-
return !this.hasReorderItems && this.
|
|
82
|
+
return !this.hasReorderItems && !this.hasMoveToItems && !this.hasAddToItems;
|
|
83
|
+
}
|
|
84
|
+
get hasAllReorderItemsDisabled() {
|
|
85
|
+
return this.hasReorderItems && this.isTopReorderDisabled && this.isUpReorderDisabled && this.isDownReorderDisabled && this.isBottomReorderDisabled;
|
|
86
|
+
}
|
|
87
|
+
get hasOnlyDisabledReorderItems() {
|
|
88
|
+
return this.hasReorderItems && !this.hasMoveToItems && !this.hasAddToItems && this.hasAllReorderItemsDisabled;
|
|
89
|
+
}
|
|
90
|
+
get isTopReorderDisabled() {
|
|
91
|
+
const { setPosition } = this;
|
|
92
|
+
return setPosition === 1 || setPosition === 2;
|
|
93
|
+
}
|
|
94
|
+
get isUpReorderDisabled() {
|
|
95
|
+
return this.setPosition === 1;
|
|
96
|
+
}
|
|
97
|
+
get isDownReorderDisabled() {
|
|
98
|
+
return this.setPosition === this.setSize;
|
|
99
|
+
}
|
|
100
|
+
get isBottomReorderDisabled() {
|
|
101
|
+
const { setPosition, setSize } = this;
|
|
102
|
+
return setPosition === setSize || setPosition === setSize - 1;
|
|
74
103
|
}
|
|
75
104
|
async setFocus(options) {
|
|
76
105
|
return this.focusSetter(() => this.dropdownEl, options);
|
|
@@ -139,9 +168,9 @@ class SortHandle extends LitElement {
|
|
|
139
168
|
this.calciteSortHandleAdd.emit({ addTo });
|
|
140
169
|
}
|
|
141
170
|
render() {
|
|
142
|
-
const { disabled, flipPlacements, open, overlayPositioning, placement, scale, widthScale, hasNoItems } = this;
|
|
171
|
+
const { disabled, flipPlacements, hasOnlyDisabledReorderItems, open, overlayPositioning, placement, scale, widthScale, hasNoItems } = this;
|
|
143
172
|
const text = this.getLabel();
|
|
144
|
-
const isDisabled = disabled || hasNoItems;
|
|
173
|
+
const isDisabled = disabled || hasNoItems || hasOnlyDisabledReorderItems;
|
|
145
174
|
return this.interactiveContainer({ disabled, children: html`<calcite-dropdown class=${safeClassMap(CSS.dropdown)} .disabled=${isDisabled} .flipPlacements=${flipPlacements} @calciteDropdownBeforeClose=${this.handleBeforeClose} @calciteDropdownBeforeOpen=${this.handleBeforeOpen} @calciteDropdownClose=${this.handleClose} @calciteDropdownOpen=${this.handleOpen} .overlayPositioning=${overlayPositioning} .placement=${placement} .scale=${scale} .topLayerDisabled=${this.topLayerDisabled} .widthScale=${widthScale} ${ref(this.setDropdownEl)}><calcite-action .active=${open} .aria=${{ expanded: open }} class=${safeClassMap(CSS.handle)} .dragHandle=${true} .icon=${disabled ? ICONS.blank : ICONS.drag} .label=${text} .scale=${scale} slot=${SLOTS.trigger} .text=${text} title=${text ?? nothing}></calcite-action>${this.renderReorderGroup()}${this.renderMoveToGroup()}${this.renderAddToGroup()}</calcite-dropdown>` });
|
|
146
175
|
}
|
|
147
176
|
renderAddToItem(addToItem) {
|
|
@@ -151,32 +180,30 @@ class SortHandle extends LitElement {
|
|
|
151
180
|
return keyed(moveToItem.id, html`<calcite-dropdown-item data-id=${moveToItem.id ?? nothing} .label=${moveToItem.label} @calciteDropdownItemSelect=${this.handleMoveTo}>${moveToItem.label}</calcite-dropdown-item>`);
|
|
152
181
|
}
|
|
153
182
|
renderReorderGroup() {
|
|
154
|
-
return this.hasReorderItems ? keyed("reorder", html`<calcite-dropdown-group .groupTitle=${this.
|
|
183
|
+
return this.hasReorderItems ? keyed("reorder", html`<calcite-dropdown-group .groupTitle=${this.reorderGroupTitle} id=${IDS.reorder} .scale=${this.scale} selection-mode=none>${this.renderTop()}${this.renderUp()}${this.renderDown()}${this.renderBottom()}</calcite-dropdown-group>`) : null;
|
|
155
184
|
}
|
|
156
185
|
renderAddToGroup() {
|
|
157
|
-
const { messages, addToItems, scale } = this;
|
|
158
|
-
return
|
|
186
|
+
const { messages, addToItems, scale, hasAddToItems } = this;
|
|
187
|
+
return hasAddToItems ? keyed("add-to-items", html`<calcite-dropdown-group .groupTitle=${messages.addTo} id=${IDS.add} .scale=${scale} selection-mode=none>${addToItems.map((addToItem) => this.renderAddToItem(addToItem))}</calcite-dropdown-group>`) : null;
|
|
159
188
|
}
|
|
160
189
|
renderMoveToGroup() {
|
|
161
|
-
const { messages, moveToItems, scale } = this;
|
|
162
|
-
return
|
|
190
|
+
const { messages, moveToItems, scale, hasMoveToItems } = this;
|
|
191
|
+
return hasMoveToItems ? keyed("move-to-items", html`<calcite-dropdown-group .groupTitle=${messages.moveTo} id=${IDS.move} .scale=${scale} selection-mode=none>${moveToItems.map((moveToItem) => this.renderMoveToItem(moveToItem))}</calcite-dropdown-group>`) : null;
|
|
163
192
|
}
|
|
164
|
-
renderDropdownItem(positionIndex, label) {
|
|
165
|
-
return keyed(REORDER_VALUES[positionIndex], html`<calcite-dropdown-item data-value=${REORDER_VALUES[positionIndex] ?? nothing} .label=${label} @calciteDropdownItemSelect=${this.handleReorder}>${label}</calcite-dropdown-item>`);
|
|
193
|
+
renderDropdownItem(positionIndex, label, disabled = false) {
|
|
194
|
+
return keyed(REORDER_VALUES[positionIndex], html`<calcite-dropdown-item data-value=${REORDER_VALUES[positionIndex] ?? nothing} .disabled=${disabled} .label=${label} @calciteDropdownItemSelect=${this.handleReorder}>${label}</calcite-dropdown-item>`);
|
|
166
195
|
}
|
|
167
196
|
renderTop() {
|
|
168
|
-
|
|
169
|
-
return setPosition !== 1 && setPosition !== 2 ? this.renderDropdownItem(0, this.messages.moveToTop) : null;
|
|
197
|
+
return this.renderDropdownItem(0, this.messages.moveToTop, this.isTopReorderDisabled);
|
|
170
198
|
}
|
|
171
199
|
renderUp() {
|
|
172
|
-
return this.
|
|
200
|
+
return this.renderDropdownItem(1, this.messages.moveUp, this.isUpReorderDisabled);
|
|
173
201
|
}
|
|
174
202
|
renderDown() {
|
|
175
|
-
return this.
|
|
203
|
+
return this.renderDropdownItem(2, this.messages.moveDown, this.isDownReorderDisabled);
|
|
176
204
|
}
|
|
177
205
|
renderBottom() {
|
|
178
|
-
|
|
179
|
-
return setPosition !== setSize && setPosition !== setSize - 1 ? this.renderDropdownItem(3, this.messages.moveToBottom) : null;
|
|
206
|
+
return this.renderDropdownItem(3, this.messages.moveToBottom, this.isBottomReorderDisabled);
|
|
180
207
|
}
|
|
181
208
|
}
|
|
182
209
|
customElement("calcite-sort-handle", SortHandle);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
import type { Layout } from "../interfaces.js";
|
|
4
|
-
import type { DragDetail } from "../../
|
|
4
|
+
import type { DragDetail } from "../../controllers/useSortable.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Use the `calcite-block-group` component instead.
|
|
@@ -3,10 +3,10 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
5
5
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
6
|
-
import { d as disconnectSortableComponent, c as connectSortableComponent } from "../../chunks/sortableComponent.js";
|
|
7
6
|
import { i as focusElement } from "../../chunks/dom.js";
|
|
8
7
|
import { l as logger } from "../../chunks/logger.js";
|
|
9
8
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
9
|
+
import { u as useSortable } from "../../chunks/useSortable.js";
|
|
10
10
|
const CSS = {
|
|
11
11
|
container: "container",
|
|
12
12
|
containerHorizontal: "container--horizontal",
|
|
@@ -21,6 +21,7 @@ class SortableList extends LitElement {
|
|
|
21
21
|
this.mutationObserver = createObserver("mutation", () => {
|
|
22
22
|
this.setUpSorting();
|
|
23
23
|
});
|
|
24
|
+
this.sortable = useSortable()(this);
|
|
24
25
|
this.interactiveContainer = useInteractive(this);
|
|
25
26
|
this.disabled = false;
|
|
26
27
|
this.handleSelector = "calcite-handle";
|
|
@@ -50,7 +51,6 @@ class SortableList extends LitElement {
|
|
|
50
51
|
}
|
|
51
52
|
disconnectedCallback() {
|
|
52
53
|
super.disconnectedCallback();
|
|
53
|
-
disconnectSortableComponent(this);
|
|
54
54
|
this.endObserving();
|
|
55
55
|
}
|
|
56
56
|
calciteHandleNudgeNextHandler(event) {
|
|
@@ -110,7 +110,7 @@ class SortableList extends LitElement {
|
|
|
110
110
|
}
|
|
111
111
|
setUpSorting() {
|
|
112
112
|
this.items = Array.from(this.el.children);
|
|
113
|
-
|
|
113
|
+
this.sortable.reset();
|
|
114
114
|
}
|
|
115
115
|
beginObserving() {
|
|
116
116
|
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
-
import type { FlipPlacement,
|
|
3
|
+
import type { FlipPlacement, LogicalPlacement, OverlayPositioning } from "../../utils/floating-ui.js";
|
|
4
4
|
import type { DropdownIconType } from "../calcite-button/interfaces.js";
|
|
5
5
|
import type { Appearance, FlipContext, Kind, Scale, Width } from "../interfaces.js";
|
|
6
6
|
import type { IconName } from "../calcite-icon/interfaces.js";
|
|
@@ -42,7 +42,7 @@ export abstract class SplitButton extends LitElement {
|
|
|
42
42
|
* Without a value, the browser will suggest a filename/extension.
|
|
43
43
|
*
|
|
44
44
|
* @default false
|
|
45
|
-
* @see [Global download attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download).
|
|
45
|
+
* @see [MDN - Global download attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download).
|
|
46
46
|
*/
|
|
47
47
|
accessor download: string | boolean;
|
|
48
48
|
/**
|
|
@@ -84,21 +84,21 @@ export abstract class SplitButton extends LitElement {
|
|
|
84
84
|
*
|
|
85
85
|
* @default "bottom-end"
|
|
86
86
|
*/
|
|
87
|
-
accessor placement:
|
|
87
|
+
accessor placement: LogicalPlacement;
|
|
88
88
|
/** Specifies an icon to display at the end of the primary button. */
|
|
89
89
|
accessor primaryIconEnd: IconName;
|
|
90
90
|
/** Displays the `primaryIconStart` and/or `primaryIconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
|
|
91
91
|
accessor primaryIconFlipRtl: FlipContext;
|
|
92
92
|
/** Specifies an icon to display at the start of the primary button. */
|
|
93
93
|
accessor primaryIconStart: IconName;
|
|
94
|
-
/**
|
|
94
|
+
/** Specifies an accessible name for the primary button. */
|
|
95
95
|
accessor primaryLabel: string;
|
|
96
96
|
/** Specifies the text displayed in the primary button. */
|
|
97
97
|
accessor primaryText: string;
|
|
98
98
|
/**
|
|
99
99
|
* Defines the relationship between the `href` value and the current document.
|
|
100
100
|
*
|
|
101
|
-
* @
|
|
101
|
+
* @see [MDN - rel](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel)
|
|
102
102
|
*/
|
|
103
103
|
accessor rel: string;
|
|
104
104
|
/**
|
|
@@ -110,7 +110,7 @@ export abstract class SplitButton extends LitElement {
|
|
|
110
110
|
/**
|
|
111
111
|
* Specifies where to open the linked document defined in the `href` property.
|
|
112
112
|
*
|
|
113
|
-
* @
|
|
113
|
+
* @see [MDN - target](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target)
|
|
114
114
|
*/
|
|
115
115
|
accessor target: string;
|
|
116
116
|
/**
|
|
@@ -119,7 +119,7 @@ export abstract class SplitButton extends LitElement {
|
|
|
119
119
|
* Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
|
|
120
120
|
*
|
|
121
121
|
* @default false
|
|
122
|
-
* @
|
|
122
|
+
* @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
|
|
123
123
|
*/
|
|
124
124
|
accessor topLayerDisabled: boolean;
|
|
125
125
|
/**
|
|
@@ -132,7 +132,7 @@ export abstract class SplitButton extends LitElement {
|
|
|
132
132
|
* Sets focus on the component's first focusable element.
|
|
133
133
|
*
|
|
134
134
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
135
|
-
* @
|
|
135
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
136
136
|
*/
|
|
137
137
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
138
138
|
/** Fires when the primary button is clicked. */
|
|
@@ -7,8 +7,8 @@ import type { StepperLayout } from "./interfaces.js";
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @cssproperty [--calcite-stepper-bar-gap] - Specifies the space between the component's `calcite-stepper-item`s.
|
|
10
|
-
* @cssproperty [--calcite-stepper-bar-inactive-fill-color] - Specifies the `calcite-stepper-item`s' bar fill color of the component's `calcite-stepper-item`s.
|
|
11
|
-
* @cssproperty [--calcite-stepper-bar-active-fill-color] - Specifies the `calcite-stepper-item`s' bar fill color of the component's active `calcite-stepper-item`s.
|
|
10
|
+
* @cssproperty [--calcite-stepper-bar-inactive-fill-color] - [Deprecated] in 5.1.0, removal target v6.0.0 - Use `--calcite-stepper-bar-fill-color` instead. Specifies the `calcite-stepper-item`s' bar fill color of the component's `calcite-stepper-item`s.
|
|
11
|
+
* @cssproperty [--calcite-stepper-bar-active-fill-color] - [Deprecated] in 5.1.0, removal target v6.0.0 - Use `--calcite-stepper-bar-selected-fill-color` instead. Specifies the `calcite-stepper-item`s' bar fill color of the component's active `calcite-stepper-item`s.
|
|
12
12
|
* @cssproperty [--calcite-stepper-bar-complete-fill-color] - When `calcite-stepper-item`s are `complete`, specifies the component's `calcite-stepper-item`s' bar fill color.
|
|
13
13
|
* @cssproperty [--calcite-stepper-bar-error-fill-color] - When `calcite-stepper-item`s contain an `error`, specifies the component's `calcite-stepper-item`s' bar fill color.
|
|
14
14
|
* @slot - A slot for adding `calcite-stepper-item`s.
|
|
@@ -7,7 +7,6 @@ import { f as focusElementInGroup, a as slotChangeGetAssignedElements } from "..
|
|
|
7
7
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
8
8
|
import { g as guid } from "../../chunks/guid.js";
|
|
9
9
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
10
|
-
import { i as isHidden } from "../../chunks/component.js";
|
|
11
10
|
const CSS$1 = {
|
|
12
11
|
actionIcon: "action-icon",
|
|
13
12
|
actionContainer: "action-container",
|
|
@@ -44,9 +43,9 @@ class Stepper extends LitElement {
|
|
|
44
43
|
constructor() {
|
|
45
44
|
super();
|
|
46
45
|
this.containerRef = createRef();
|
|
47
|
-
this.
|
|
46
|
+
this.visibleItems = [];
|
|
47
|
+
this.focusableItems = [];
|
|
48
48
|
this.guid = guid();
|
|
49
|
-
this.itemMap = /* @__PURE__ */ new Map();
|
|
50
49
|
this.items = [];
|
|
51
50
|
this.multipleViewMode = false;
|
|
52
51
|
this.mutationObserver = createObserver("mutation", () => this.updateItems());
|
|
@@ -61,7 +60,10 @@ class Stepper extends LitElement {
|
|
|
61
60
|
});
|
|
62
61
|
this.calciteStepperChange = createEvent({ cancelable: false });
|
|
63
62
|
this.listen("calciteInternalStepperItemKeyEvent", this.calciteInternalStepperItemKeyEvent);
|
|
64
|
-
this.listen("
|
|
63
|
+
this.listen("calciteInternalStepperItemUpdate", (event) => {
|
|
64
|
+
event.stopPropagation();
|
|
65
|
+
this.updateItems();
|
|
66
|
+
});
|
|
65
67
|
this.listen("calciteInternalStepperItemSelect", this.updateItem);
|
|
66
68
|
this.listen("calciteStepperItemSelect", this.handleItemSelect);
|
|
67
69
|
}
|
|
@@ -72,7 +74,7 @@ class Stepper extends LitElement {
|
|
|
72
74
|
this.styles = styles;
|
|
73
75
|
}
|
|
74
76
|
async endStep() {
|
|
75
|
-
const enabledStepIndex = this.getEnabledStepIndex(this.
|
|
77
|
+
const enabledStepIndex = this.getEnabledStepIndex(this.visibleItems.length - 1, "previous");
|
|
76
78
|
if (typeof enabledStepIndex !== "number") {
|
|
77
79
|
return;
|
|
78
80
|
}
|
|
@@ -111,12 +113,8 @@ class Stepper extends LitElement {
|
|
|
111
113
|
this.updateItems();
|
|
112
114
|
}
|
|
113
115
|
willUpdate(changes) {
|
|
114
|
-
if (changes.has("
|
|
116
|
+
if (changes.has("layout") && (this.hasUpdated || this.layout !== "horizontal") || changes.has("icon") && (this.hasUpdated || this.icon !== false) || changes.has("numbered") && (this.hasUpdated || this.numbered !== false) || changes.has("scale") && (this.hasUpdated || this.scale !== "m") || changes.has("numberingSystem") && (this.hasUpdated || this.numberingSystem !== void 0)) {
|
|
115
117
|
this.updateItems();
|
|
116
|
-
this.determineActiveStepper();
|
|
117
|
-
}
|
|
118
|
-
if (changes.has("numberingSystem")) {
|
|
119
|
-
this.setStepperItemNumberingSystem();
|
|
120
118
|
}
|
|
121
119
|
if (changes.has("currentActivePosition")) {
|
|
122
120
|
requestAnimationFrame(() => {
|
|
@@ -145,28 +143,21 @@ class Stepper extends LitElement {
|
|
|
145
143
|
switch (item.key) {
|
|
146
144
|
case "ArrowDown":
|
|
147
145
|
case "ArrowRight":
|
|
148
|
-
focusElementInGroup(this.
|
|
146
|
+
focusElementInGroup(this.focusableItems, itemToFocus, "next");
|
|
149
147
|
break;
|
|
150
148
|
case "ArrowUp":
|
|
151
149
|
case "ArrowLeft":
|
|
152
|
-
focusElementInGroup(this.
|
|
150
|
+
focusElementInGroup(this.focusableItems, itemToFocus, "previous");
|
|
153
151
|
break;
|
|
154
152
|
case "Home":
|
|
155
|
-
focusElementInGroup(this.
|
|
153
|
+
focusElementInGroup(this.focusableItems, itemToFocus, "first");
|
|
156
154
|
break;
|
|
157
155
|
case "End":
|
|
158
|
-
focusElementInGroup(this.
|
|
156
|
+
focusElementInGroup(this.focusableItems, itemToFocus, "last");
|
|
159
157
|
break;
|
|
160
158
|
}
|
|
161
159
|
event.stopPropagation();
|
|
162
160
|
}
|
|
163
|
-
registerItem(event) {
|
|
164
|
-
const item = event.target;
|
|
165
|
-
const { content, position } = event.detail;
|
|
166
|
-
this.itemMap.set(item, { position, content });
|
|
167
|
-
this.enabledItems = this.filterItems();
|
|
168
|
-
event.stopPropagation();
|
|
169
|
-
}
|
|
170
161
|
updateItem(event) {
|
|
171
162
|
const { position } = event.detail;
|
|
172
163
|
if (typeof position === "number") {
|
|
@@ -184,31 +175,35 @@ class Stepper extends LitElement {
|
|
|
184
175
|
this.calciteStepperChange.emit();
|
|
185
176
|
}
|
|
186
177
|
updateItems() {
|
|
187
|
-
this.
|
|
178
|
+
this.visibleItems = this.items.filter((item) => !item.hidden);
|
|
179
|
+
this.determineActiveStepper();
|
|
180
|
+
this.focusableItems = this.visibleItems.filter((item) => !item.disabled && !item.itemHidden);
|
|
181
|
+
this.items.forEach((item) => {
|
|
188
182
|
item.icon = this.icon;
|
|
189
183
|
item.numbered = this.numbered;
|
|
190
184
|
item.layout = this.layout;
|
|
191
185
|
item.scale = this.scale;
|
|
186
|
+
item.numberingSystem = this.numberingSystem;
|
|
192
187
|
});
|
|
193
188
|
}
|
|
194
189
|
determineActiveStepper() {
|
|
195
|
-
const {
|
|
196
|
-
if (
|
|
190
|
+
const { visibleItems } = this;
|
|
191
|
+
if (visibleItems.length < 2) {
|
|
197
192
|
return;
|
|
198
193
|
}
|
|
199
194
|
const { currentActivePosition, layout } = this;
|
|
200
195
|
this.multipleViewMode = layout !== "horizontal-single";
|
|
201
|
-
|
|
196
|
+
visibleItems.forEach((item, index) => {
|
|
202
197
|
item.itemHidden = layout === "horizontal-single" && index !== (currentActivePosition || 0);
|
|
203
198
|
});
|
|
204
199
|
}
|
|
205
200
|
getEnabledStepIndex(startIndex, direction = "next") {
|
|
206
|
-
const {
|
|
201
|
+
const { visibleItems, currentActivePosition } = this;
|
|
207
202
|
let newIndex = startIndex;
|
|
208
|
-
while (newIndex >= 0 && newIndex <
|
|
203
|
+
while (newIndex >= 0 && newIndex < visibleItems.length && visibleItems[newIndex]?.disabled) {
|
|
209
204
|
newIndex = newIndex + (direction === "previous" ? -1 : 1);
|
|
210
205
|
}
|
|
211
|
-
return newIndex !== currentActivePosition && newIndex <
|
|
206
|
+
return newIndex !== currentActivePosition && newIndex < visibleItems.length && newIndex >= 0 ? newIndex : null;
|
|
212
207
|
}
|
|
213
208
|
updateStep(position) {
|
|
214
209
|
this.currentActivePosition = position;
|
|
@@ -216,14 +211,6 @@ class Stepper extends LitElement {
|
|
|
216
211
|
position
|
|
217
212
|
});
|
|
218
213
|
}
|
|
219
|
-
filterItems() {
|
|
220
|
-
return this.items.filter((item) => !item.disabled && !isHidden(item));
|
|
221
|
-
}
|
|
222
|
-
setStepperItemNumberingSystem() {
|
|
223
|
-
this.items.forEach((item) => {
|
|
224
|
-
item.numberingSystem = this.numberingSystem;
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
214
|
handleActionClick(event) {
|
|
228
215
|
const currentActivePosition = this.currentActivePosition;
|
|
229
216
|
const target = event.target;
|
|
@@ -232,29 +219,29 @@ class Stepper extends LitElement {
|
|
|
232
219
|
} else {
|
|
233
220
|
this.nextStep();
|
|
234
221
|
}
|
|
235
|
-
if (typeof this.currentActivePosition === "number" && currentActivePosition !== this.currentActivePosition && !this.
|
|
222
|
+
if (typeof this.currentActivePosition === "number" && currentActivePosition !== this.currentActivePosition && this.visibleItems[this.currentActivePosition] && !this.visibleItems[this.currentActivePosition].disabled) {
|
|
236
223
|
this.emitItemSelect();
|
|
237
224
|
}
|
|
238
225
|
}
|
|
239
226
|
getFirstEnabledStepperPosition() {
|
|
240
|
-
const enabledStepIndex = this.
|
|
227
|
+
const enabledStepIndex = this.visibleItems.findIndex((item) => !item.disabled);
|
|
241
228
|
if (enabledStepIndex > -1) {
|
|
242
229
|
return enabledStepIndex;
|
|
243
230
|
}
|
|
244
231
|
return 0;
|
|
245
232
|
}
|
|
246
233
|
handleDefaultSlotChange(event) {
|
|
247
|
-
const items = slotChangeGetAssignedElements(event).filter((el) => el?.tagName === "CALCITE-STEPPER-ITEM"
|
|
234
|
+
const items = slotChangeGetAssignedElements(event).filter((el) => el?.tagName === "CALCITE-STEPPER-ITEM");
|
|
248
235
|
this.items = items;
|
|
249
|
-
|
|
236
|
+
this.updateItems();
|
|
237
|
+
const spacing = Array(this.visibleItems.length).fill("1fr").join(" ");
|
|
250
238
|
this.containerRef.value.style.gridTemplateAreas = spacing;
|
|
251
239
|
this.containerRef.value.style.gridTemplateColumns = spacing;
|
|
252
|
-
this.setStepperItemNumberingSystem();
|
|
253
240
|
}
|
|
254
241
|
render() {
|
|
255
242
|
this.el.ariaLabel = this.messages.label;
|
|
256
243
|
this.el.role = "region";
|
|
257
|
-
return html`<div class=${safeClassMap({ container: true, [CSS$1.singleView]: this.layout === "horizontal-single" })} ${ref(this.containerRef)}>${this.layout === "horizontal-single" && html`<div class=${safeClassMap({ [CSS$1.stepBarContainer]: true })}>${this.
|
|
244
|
+
return html`<div class=${safeClassMap({ container: true, [CSS$1.singleView]: this.layout === "horizontal-single" })} ${ref(this.containerRef)}>${this.layout === "horizontal-single" && html`<div class=${safeClassMap({ [CSS$1.stepBarContainer]: true })}>${this.visibleItems.map((item, index) => StepBar({ active: index === this.currentActivePosition, complete: item.complete && index !== this.currentActivePosition && !item.error, disabled: item.disabled && index !== this.currentActivePosition, error: item.error && index !== this.currentActivePosition }))}</div>` || ""}${this.layout === "horizontal-single" && html`<div class=${safeClassMap({ [CSS$1.actionContainer]: true })}>${this.renderAction("start")}${this.renderAction("end")}</div>` || ""}<slot @slotchange=${this.handleDefaultSlotChange}></slot></div>`;
|
|
258
245
|
}
|
|
259
246
|
renderAction(position) {
|
|
260
247
|
const isPositionStart = position === "start";
|
|
@@ -67,7 +67,7 @@ export abstract class StepperItem extends LitElement {
|
|
|
67
67
|
* Sets focus on the component.
|
|
68
68
|
*
|
|
69
69
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
70
|
-
* @
|
|
70
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
71
71
|
*/
|
|
72
72
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
73
73
|
/** Fires when the active `calcite-stepper-item` changes. */
|
|
@@ -47,7 +47,7 @@ class StepperItem extends LitElement {
|
|
|
47
47
|
this.calciteInternalStepperItemKeyEvent = createEvent({
|
|
48
48
|
cancelable: false
|
|
49
49
|
});
|
|
50
|
-
this.
|
|
50
|
+
this.calciteInternalStepperItemUpdate = createEvent({ cancelable: false });
|
|
51
51
|
this.calciteInternalStepperItemSelect = createEvent({ cancelable: false });
|
|
52
52
|
this.calciteStepperItemSelect = createEvent({ cancelable: false });
|
|
53
53
|
this.listenOn(document.body, "calciteInternalStepperItemChange", this.updateActiveItemOnChange);
|
|
@@ -66,7 +66,6 @@ class StepperItem extends LitElement {
|
|
|
66
66
|
async load() {
|
|
67
67
|
this.parentStepperEl = this.el.parentElement;
|
|
68
68
|
this.itemPosition = this.getItemPosition();
|
|
69
|
-
this.registerStepperItem();
|
|
70
69
|
if (this.selected) {
|
|
71
70
|
this.emitRequestedItem();
|
|
72
71
|
}
|
|
@@ -76,7 +75,7 @@ class StepperItem extends LitElement {
|
|
|
76
75
|
this.selectedHandler();
|
|
77
76
|
}
|
|
78
77
|
if (changes.has("disabled") && (this.hasUpdated || this.disabled !== false)) {
|
|
79
|
-
this.
|
|
78
|
+
this.calciteInternalStepperItemUpdate.emit();
|
|
80
79
|
}
|
|
81
80
|
if (changes.has("messages")) {
|
|
82
81
|
this.effectiveLocaleWatcher(this.messages._lang);
|
|
@@ -126,11 +125,6 @@ class StepperItem extends LitElement {
|
|
|
126
125
|
determineSelectedItem() {
|
|
127
126
|
this.selected = !this.disabled && this.itemPosition === this.selectedPosition;
|
|
128
127
|
}
|
|
129
|
-
registerStepperItem() {
|
|
130
|
-
this.calciteInternalStepperItemRegister.emit({
|
|
131
|
-
position: this.itemPosition
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
128
|
handleItemClick(event) {
|
|
135
129
|
if (this.disabled || isHidden(this.el) || this.layout === "horizontal" && event.composedPath().some((el) => el.classList?.contains("stepper-item-content"))) {
|
|
136
130
|
return;
|
|
@@ -10,7 +10,7 @@ export abstract class Swatch extends LitElement {
|
|
|
10
10
|
/**
|
|
11
11
|
* Specifies the component's color
|
|
12
12
|
*
|
|
13
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
|
|
13
|
+
* @see [MDN - CSS color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value)
|
|
14
14
|
*/
|
|
15
15
|
accessor color: string;
|
|
16
16
|
/**
|
|
@@ -5,11 +5,11 @@ import type { Scale } from "../interfaces.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @cssproperty [--calcite-switch-background-color] - Specifies the component's background color.
|
|
7
7
|
* @cssproperty [--calcite-switch-background-color-hover] - Specifies the component's background color when hovered or pressed.
|
|
8
|
-
* @cssproperty [--calcite-switch-border-color] - [Deprecated] No longer necessary. Specifies the component's border color.
|
|
8
|
+
* @cssproperty [--calcite-switch-border-color] - [Deprecated] in v3.2.0, removal target v6.0.0 - No longer necessary. Specifies the component's border color.
|
|
9
9
|
* @cssproperty [--calcite-switch-corner-radius] - Specifies the component's corner radius.
|
|
10
10
|
* @cssproperty [--calcite-switch-handle-background-color] - Specifies the handle's background color.
|
|
11
|
-
* @cssproperty [--calcite-switch-handle-border-color] - [Deprecated] No longer necessary. Specifies the handle's border color.
|
|
12
|
-
* @cssproperty [--calcite-switch-handle-shadow] - [Deprecated] No longer necessary. Specifies the handle's shadow.
|
|
11
|
+
* @cssproperty [--calcite-switch-handle-border-color] - [Deprecated] in v3.2.0, removal target v6.0.0 - No longer necessary. Specifies the handle's border color.
|
|
12
|
+
* @cssproperty [--calcite-switch-handle-shadow] - [Deprecated] in v3.2.0, removal target v6.0.0 - No longer necessary. Specifies the handle's shadow.
|
|
13
13
|
*/
|
|
14
14
|
export abstract class Switch extends LitElement {
|
|
15
15
|
/**
|
|
@@ -50,7 +50,7 @@ export abstract class Switch extends LitElement {
|
|
|
50
50
|
* Sets focus on the component.
|
|
51
51
|
*
|
|
52
52
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
53
|
-
* @
|
|
53
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
54
54
|
*/
|
|
55
55
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
56
56
|
/** Fires when the `checked` value has changed. */
|
|
@@ -3,21 +3,24 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
5
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
6
|
-
import { c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
|
|
7
6
|
import { i as isActivationKey } from "../../chunks/key.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 { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
11
10
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
11
|
+
import { u as useForm } from "../../chunks/useForm.js";
|
|
12
12
|
const CSS = {
|
|
13
13
|
container: "container",
|
|
14
14
|
track: "track",
|
|
15
15
|
handle: "handle"
|
|
16
16
|
};
|
|
17
|
-
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([scale=s]) .container{block-size:.75rem}:host([scale=s]) .track{block-size:.75rem;inline-size:1.5rem}:host([scale=s]) .handle{block-size:.5rem;inline-size:.5rem}:host([scale=m]) .container{block-size:1rem}:host([scale=m]) .track{block-size:1rem;inline-size:2rem}:host([scale=m]) .handle{block-size:.75rem;inline-size:.75rem}:host([scale=l]) .container{block-size:1.5rem}:host([scale=l]) .track{block-size:1.5rem;inline-size:3rem}:host([scale=l]) .handle{block-size:1.25rem;inline-size:1.25rem}:host{position:relative;display:inline-block;inline-size:auto;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{outline
|
|
17
|
+
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([scale=s]) .container{block-size:.75rem}:host([scale=s]) .track{block-size:.75rem;inline-size:1.5rem}:host([scale=s]) .handle{block-size:.5rem;inline-size:.5rem}:host([scale=m]) .container{block-size:1rem}:host([scale=m]) .track{block-size:1rem;inline-size:2rem}:host([scale=m]) .handle{block-size:.75rem;inline-size:.75rem}:host([scale=l]) .container{block-size:1.5rem}:host([scale=l]) .track{block-size:1.5rem;inline-size:3rem}:host([scale=l]) .handle{block-size:1.25rem;inline-size:1.25rem}:host{position:relative;display:inline-block;inline-size:auto;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{outline:none;display:flex}.track{pointer-events:none;position:relative;box-sizing:border-box;display:inline-block;vertical-align:top;outline-color:transparent;border-radius:var(--calcite-switch-corner-radius, 9999px);border-color:var(--calcite-switch-border-color);background-color:var(--calcite-switch-background-color, var(--calcite-color-border-input))}.container:focus .track{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.container:hover .track{background-color:var(--calcite-switch-background-color-hover, var(--calcite-color-text-3))}.handle{pointer-events:none;position:absolute;display:block;transition-property:all;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);inset-block-start:var(--calcite-spacing-base);inset-inline:var(--calcite-spacing-base) auto;background-color:var(--calcite-switch-handle-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-switch-handle-border-color);border-radius:var(--calcite-switch-corner-radius, 9999px);box-shadow:var(--calcite-switch-handle-shadow)}:host([checked]) .track{background-color:var(--calcite-switch-background-color, var(--calcite-color-brand))}:host([checked]) .handle{inset-inline:auto var(--calcite-spacing-base)}:host([checked]):host(:hover:not([disabled])) .track{background-color:var(--calcite-switch-background-color-hover, var(--calcite-color-brand-hover))}@media(forced-colors:active){:host([checked]) .track{background-color:canvasText}}.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)}::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}`;
|
|
18
18
|
class Switch extends LitElement {
|
|
19
19
|
constructor() {
|
|
20
20
|
super();
|
|
21
|
+
this.formSupport = useForm({
|
|
22
|
+
inputType: "checkbox"
|
|
23
|
+
})(this);
|
|
21
24
|
this.switchRef = createRef();
|
|
22
25
|
this.focusSetter = useSetFocus()(this);
|
|
23
26
|
this.interactiveContainer = useInteractive(this);
|
|
@@ -31,6 +34,9 @@ class Switch extends LitElement {
|
|
|
31
34
|
static {
|
|
32
35
|
this.properties = { checked: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], label: 1, labelTextEnd: 1, labelTextStart: 1, name: [3, {}, { reflect: true }], scale: [3, {}, { reflect: true }], value: 1 };
|
|
33
36
|
}
|
|
37
|
+
static {
|
|
38
|
+
this.formAssociated = true;
|
|
39
|
+
}
|
|
34
40
|
static {
|
|
35
41
|
this.styles = styles;
|
|
36
42
|
}
|
|
@@ -40,15 +46,10 @@ class Switch extends LitElement {
|
|
|
40
46
|
connectedCallback() {
|
|
41
47
|
super.connectedCallback();
|
|
42
48
|
connectLabel(this);
|
|
43
|
-
connectForm(this);
|
|
44
49
|
}
|
|
45
50
|
disconnectedCallback() {
|
|
46
51
|
super.disconnectedCallback();
|
|
47
52
|
disconnectLabel(this);
|
|
48
|
-
disconnectForm(this);
|
|
49
|
-
}
|
|
50
|
-
syncHiddenFormInput(input) {
|
|
51
|
-
input.type = "checkbox";
|
|
52
53
|
}
|
|
53
54
|
keyDownHandler(event) {
|
|
54
55
|
if (!this.disabled && isActivationKey(event.key)) {
|
|
@@ -73,7 +74,7 @@ class Switch extends LitElement {
|
|
|
73
74
|
this.toggle();
|
|
74
75
|
}
|
|
75
76
|
render() {
|
|
76
|
-
return this.interactiveContainer({ disabled: this.disabled, children: html`<div .ariaChecked=${this.checked} .ariaLabel=${getLabelText(this)} class=${safeClassMap(CSS.container)} role=switch tabindex=0 ${ref(this.switchRef)}>${this.labelTextStart && InternalLabel({ alignmentCenter: true, bottomSpacingDisabled: true, labelText: this.labelTextStart, spacingInlineEnd: true }) || ""}<div class=${safeClassMap(CSS.track)}><div class=${safeClassMap(CSS.handle)}></div></div>${this.labelTextEnd && InternalLabel({ alignmentCenter: true, bottomSpacingDisabled: true, labelText: this.labelTextEnd, spacingInlineStart: true }) || ""}
|
|
77
|
+
return this.interactiveContainer({ disabled: this.disabled, children: html`<div .ariaChecked=${this.checked} .ariaLabel=${getLabelText(this)} class=${safeClassMap(CSS.container)} role=switch tabindex=0 ${ref(this.switchRef)}>${this.labelTextStart && InternalLabel({ alignmentCenter: true, bottomSpacingDisabled: true, labelText: this.labelTextStart, spacingInlineEnd: true }) || ""}<div class=${safeClassMap(CSS.track)}><div class=${safeClassMap(CSS.handle)}></div></div>${this.labelTextEnd && InternalLabel({ alignmentCenter: true, bottomSpacingDisabled: true, labelText: this.labelTextEnd, spacingInlineStart: true }) || ""}</div>` });
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
customElement("calcite-switch", Switch);
|
|
@@ -3,7 +3,7 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @cssproperty [--calcite-tab-content-space-y] - Specifies the vertical space between the component's content in the `default` slot.
|
|
6
|
-
* @cssproperty [--calcite-tab-content-block-padding] - [Deprecated] Use `--calcite-tab-content-space-y` instead. Specifies the block padding of the component's content in the `default` slot.
|
|
6
|
+
* @cssproperty [--calcite-tab-content-block-padding] - [Deprecated] in v3.2.0, removal target v6.0.0 - Use `--calcite-tab-content-space-y` instead. Specifies the block padding of the component's content in the `default` slot.
|
|
7
7
|
* @slot - A slot for adding custom content.
|
|
8
8
|
*/
|
|
9
9
|
export abstract class Tab extends LitElement {
|
|
@@ -12,7 +12,7 @@ const CSS = {
|
|
|
12
12
|
const IDS = {
|
|
13
13
|
tabTitleId: (id) => `calcite-tab-title-${id}`
|
|
14
14
|
};
|
|
15
|
-
const styles = css`:host{display:none}:host,.container,.content{block-size:100%;inline-size:100%}:host([selected]),:host([selected]) .container{display:flex;flex-direction:column}.content{box-sizing:border-box;padding-block:var(--calcite-tab-content-space-y, var(--calcite-tab-content-block-padding, var(--calcite-internal-tab-content-space-y)))}.scale-s{--calcite-internal-tab-content-space-y: .25rem;font-size:var(--calcite-font-size-sm);line-height:1rem}.scale-m{--calcite-internal-tab-content-space-y: .5rem;font-size:var(--calcite-font-size);line-height:1rem}.scale-l{--calcite-internal-tab-content-space-y:
|
|
15
|
+
const styles = css`:host{display:none}:host,.container,.content{block-size:100%;inline-size:100%}:host([selected]),:host([selected]) .container{display:flex;flex-direction:column}.content{box-sizing:border-box;padding-block:var(--calcite-tab-content-space-y, var(--calcite-tab-content-block-padding, var(--calcite-internal-tab-content-space-y)))}.scale-s{--calcite-internal-tab-content-space-y: .25rem;font-size:var(--calcite-font-size-sm);line-height:1rem}.scale-m{--calcite-internal-tab-content-space-y: .5rem;font-size:var(--calcite-font-size);line-height:1rem}.scale-l{--calcite-internal-tab-content-space-y: var(--calcite-space-sm-plus);font-size:var(--calcite-font-size-md);line-height:1.25rem}.container{display:none;block-size:100%;inline-size:100%;overflow:auto;outline-color:transparent}.container: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))))}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
16
16
|
class Tab extends LitElement {
|
|
17
17
|
constructor() {
|
|
18
18
|
super();
|
|
@@ -6,7 +6,7 @@ import { a as calciteSize24, b as calciteSize32, d as calciteSize44 } from "../.
|
|
|
6
6
|
import { css, html } from "lit";
|
|
7
7
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
8
8
|
import { useDirection } from "@arcgis/lumina/controllers";
|
|
9
|
-
import {
|
|
9
|
+
import { C as filterDirectChildren, f as focusElementInGroup, i as focusElement } from "../../chunks/dom.js";
|
|
10
10
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
11
11
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
12
12
|
const ICON = {
|