@esri/calcite-components 6.0.0-next.4 → 6.0.0-next.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/THIRD-PARTY-NOTICES.md +0 -1
- package/dist/cdn/{KE3GJVSQ.js → 22NLVRMQ.js} +1 -1
- package/dist/cdn/2GCIY57V.js +2 -0
- package/dist/cdn/2SMJICOP.js +2 -0
- package/dist/cdn/{XWKUAYS3.js → 2ZG5MX5W.js} +1 -1
- package/dist/cdn/35EV72EN.js +2 -0
- package/dist/cdn/367B2I32.js +2 -0
- package/dist/cdn/3HB4YUMK.js +2 -0
- package/dist/cdn/3LB6SWLJ.js +2 -0
- package/dist/cdn/3XLCYFS4.js +2 -0
- package/dist/cdn/3Z464C3P.js +2 -0
- package/dist/cdn/42FUGDCZ.js +2 -0
- package/dist/cdn/47WLTGVK.js +2 -0
- package/dist/cdn/{273FNCX2.js → 4F4R7KYO.js} +1 -1
- package/dist/cdn/4JF4JQ3G.js +2 -0
- package/dist/cdn/4JZY2S4T.js +2 -0
- package/dist/cdn/4NEP7MDA.js +2 -0
- package/dist/cdn/4PMDXBZR.js +2 -0
- package/dist/cdn/{QJHTZDZ4.js → 4XQQHPVY.js} +1 -1
- package/dist/cdn/52BUFPBP.js +2 -0
- package/dist/cdn/5F3FNYI6.js +2 -0
- package/dist/cdn/5VOEKVT2.js +2 -0
- package/dist/cdn/{XDGVGNRC.js → 6FZVJGKC.js} +1 -1
- package/dist/cdn/6GGPZWII.js +2 -0
- package/dist/cdn/6KD347WK.js +2 -0
- package/dist/cdn/{7YEZVXC4.js → 6RCNPDD6.js} +1 -1
- package/dist/cdn/6SP6MBYJ.js +2 -0
- package/dist/cdn/6TP6A2OR.js +2 -0
- package/dist/cdn/6YPKPDEO.js +2 -0
- package/dist/cdn/7B3I4PXA.js +2 -0
- package/dist/cdn/{PSZFFDJN.js → 7GQ4J3D5.js} +1 -1
- package/dist/cdn/7TLCWO7F.js +2 -0
- package/dist/cdn/{DPRLR4WC.js → 7XS2SBMV.js} +1 -1
- package/dist/cdn/A2E2RMXZ.js +2 -0
- package/dist/cdn/{Z7O3I7DG.js → A3WI4PSX.js} +1 -1
- package/dist/cdn/AMHAEN2D.js +2 -0
- package/dist/cdn/{NBOTH5XL.js → ASXRP7XI.js} +1 -1
- package/dist/cdn/{KRVMZWGR.js → AU5A2EFG.js} +1 -1
- package/dist/cdn/{K6CFHHN3.js → B26BEKKF.js} +1 -1
- package/dist/cdn/{E457IIIS.js → B3NWUOCA.js} +1 -1
- package/dist/cdn/{NY4HO46K.js → BBSSYLOF.js} +1 -1
- package/dist/cdn/{U7YCVXZ3.js → BJAWDVEF.js} +1 -1
- package/dist/cdn/BPZZDPGH.js +2 -0
- package/dist/cdn/{LFONRFPI.js → C6M4JCTV.js} +1 -1
- package/dist/cdn/{QQJAAD4D.js → C75XSIWC.js} +1 -1
- package/dist/cdn/CAP6VV44.js +2 -0
- package/dist/cdn/CMAORR3S.js +2 -0
- package/dist/cdn/{3QMCKVET.js → CN5XJCFI.js} +1 -1
- package/dist/cdn/{KAADRWY5.js → CNNZUX2A.js} +1 -1
- package/dist/cdn/{PVZFKCPV.js → CRCNMQ6U.js} +1 -1
- package/dist/cdn/CUZJMKIC.js +2 -0
- package/dist/cdn/{QBAGIYAO.js → DA2CFUDW.js} +1 -1
- package/dist/cdn/{UE76JFYY.js → DOIHMBBW.js} +1 -1
- package/dist/cdn/{737AN2CX.js → DQIUIZK3.js} +1 -1
- package/dist/cdn/{FRQNEXXQ.js → DRDMWION.js} +1 -1
- package/dist/cdn/DXBUUX4R.js +2 -0
- package/dist/cdn/{RPL2NUDX.js → ECGXFZZG.js} +1 -1
- package/dist/cdn/{SH5GZATG.js → EGPFQBLQ.js} +1 -1
- package/dist/cdn/{M3WLFNIP.js → EKEFELZY.js} +1 -1
- package/dist/cdn/{PCE7HFW3.js → EM3FYCIO.js} +1 -1
- package/dist/cdn/EONA7IQ2.js +2 -0
- package/dist/cdn/EU27AWSQ.js +2 -0
- package/dist/cdn/EWU2U6MC.js +2 -0
- package/dist/cdn/EXXPHOSM.js +2 -0
- package/dist/cdn/FKWUANWM.js +2 -0
- package/dist/cdn/{G7RVPH4C.js → FQF5KOVN.js} +1 -1
- package/dist/cdn/{SXAW7MNS.js → FR6PIDS2.js} +1 -1
- package/dist/cdn/FS4CDB52.js +2 -0
- package/dist/cdn/G6KVCV55.js +2 -0
- package/dist/cdn/GB3II6II.js +2 -0
- package/dist/cdn/GC7HHWM2.js +2 -0
- package/dist/cdn/GHJJBYGW.js +2 -0
- package/dist/cdn/GOMLXKOV.js +2 -0
- package/dist/cdn/{YEZUNQI7.js → GUVISGOX.js} +1 -1
- package/dist/cdn/{H3OZBFHA.js → GZAODZ7D.js} +1 -1
- package/dist/cdn/{XKHMRAUY.js → HBWRRDGG.js} +1 -1
- package/dist/cdn/{ZDSVHHRM.js → HJHRSII7.js} +1 -1
- package/dist/cdn/HYPKFMZ3.js +2 -0
- package/dist/cdn/I3GU5EWI.js +2 -0
- package/dist/cdn/{XJEHZIQK.js → IBYELTDA.js} +1 -1
- package/dist/cdn/IKQBABTT.js +2 -0
- package/dist/cdn/{2ZGOGJF6.js → IR2A2F5H.js} +1 -1
- package/dist/cdn/IUWTLP2K.js +2 -0
- package/dist/cdn/IZXK3GYR.js +2 -0
- package/dist/cdn/{L52YMQCF.js → J2OH4U4P.js} +1 -1
- package/dist/cdn/{W7LOH7YG.js → J7J7UGUE.js} +1 -1
- package/dist/cdn/{G4ZDADNH.js → JAAJDAHF.js} +1 -1
- package/dist/cdn/JBM25QJA.js +2 -0
- package/dist/cdn/JMNAWSFE.js +2 -0
- package/dist/cdn/JXSOJ2CG.js +2 -0
- package/dist/cdn/JZBMGMJ6.js +2 -0
- package/dist/cdn/{ICBFDB6W.js → K3GWWDZW.js} +1 -1
- package/dist/cdn/{YWJV2ZJH.js → K4N2EM4F.js} +1 -1
- package/dist/cdn/KNHRMOQB.js +2 -0
- package/dist/cdn/{5BEQH3KY.js → KQRVATI2.js} +1 -1
- package/dist/cdn/{VQ6O6MX4.js → KSKKX3DQ.js} +1 -1
- package/dist/cdn/KTPGBIFO.js +2 -0
- package/dist/cdn/{4EKF6YYR.js → KYTSS3US.js} +1 -1
- package/dist/cdn/KZBLHQQN.js +2 -0
- package/dist/cdn/KZX3OXDQ.js +2 -0
- package/dist/cdn/L2BMSVLY.js +2 -0
- package/dist/cdn/L4UI7VRQ.js +2 -0
- package/dist/cdn/L6ZUP2OC.js +2 -0
- package/dist/cdn/{FFZWAZRX.js → LBEYZAKV.js} +1 -1
- package/dist/cdn/{2VWRHF4A.js → LGWYCDSW.js} +1 -1
- package/dist/cdn/{TFXE44AF.js → LKDPHRCA.js} +1 -1
- package/dist/cdn/MA6IXTYF.js +2 -0
- package/dist/cdn/MHL3UPMJ.js +2 -0
- package/dist/cdn/MHPHYJXB.js +2 -0
- package/dist/cdn/{X7RM6O4Y.js → MOMCWSCN.js} +1 -1
- package/dist/cdn/{JZDJIMV5.js → MPKVEQNU.js} +1 -1
- package/dist/cdn/NKSITX36.js +2 -0
- package/dist/cdn/NLPDVREC.js +2 -0
- package/dist/cdn/NYRCHRKX.js +2 -0
- package/dist/cdn/NZF6JBBG.js +2 -0
- package/dist/cdn/O4BLHHTK.js +2 -0
- package/dist/cdn/O66WVUJB.js +2 -0
- package/dist/cdn/OBFQT2GF.js +2 -0
- package/dist/cdn/{LHJS25PA.js → ODU6JYNH.js} +1 -1
- package/dist/cdn/OEBG7JC5.js +2 -0
- package/dist/cdn/OFHGVQJU.js +2 -0
- package/dist/cdn/OGL53PGD.js +2 -0
- package/dist/cdn/OLFEED6X.js +2 -0
- package/dist/cdn/OOL2PGGX.js +4 -0
- package/dist/cdn/{CTFG7BKR.js → OS5XNQXP.js} +1 -1
- package/dist/cdn/{6GU5XOTF.js → OUGIMZJ3.js} +1 -1
- package/dist/cdn/P2NQUMRE.js +2 -0
- package/dist/cdn/P4NLNAM7.js +2 -0
- package/dist/cdn/PMJTOAVA.js +2 -0
- package/dist/cdn/{SZGZMUFH.js → PN3VHKDB.js} +1 -1
- package/dist/cdn/PS7GD743.js +2 -0
- package/dist/cdn/Q4HXK7F6.js +2 -0
- package/dist/cdn/QSOJGKN5.js +2 -0
- package/dist/cdn/QSXVAPM2.js +2 -0
- package/dist/cdn/{4XVKHJ2X.js → QYVKOLJZ.js} +1 -1
- package/dist/cdn/QZECX3D7.js +2 -0
- package/dist/cdn/RCXRIJLO.js +2 -0
- package/dist/cdn/RFFJLQZY.js +2 -0
- package/dist/cdn/RKSSARIJ.js +2 -0
- package/dist/cdn/RRBGCYLX.js +2 -0
- package/dist/cdn/{S6SOE6SW.js → RVPCZP2Z.js} +1 -1
- package/dist/cdn/{JXFU337Q.js → S44H7S42.js} +1 -1
- package/dist/cdn/SL6PX7BU.js +2 -0
- package/dist/cdn/{KBDX2A3F.js → SPMNI4RN.js} +1 -1
- package/dist/cdn/{YKOI3XVI.js → SRUYXOUG.js} +1 -1
- package/dist/cdn/SSG7KCBE.js +2 -0
- package/dist/cdn/T2WOUUIS.js +2 -0
- package/dist/cdn/TAS2OYGT.js +2 -0
- package/dist/cdn/{GGSZVPKI.js → TCKPQTAT.js} +1 -1
- package/dist/cdn/{AYRJ7NYC.js → TJGNWJF6.js} +1 -1
- package/dist/cdn/TQFPQLA2.js +2 -0
- package/dist/cdn/TVCVWX6M.js +2 -0
- package/dist/cdn/TYSXXADY.js +2 -0
- package/dist/cdn/UIDGAGC2.js +2 -0
- package/dist/cdn/{TSRJNTZU.js → UJEP6JO7.js} +1 -1
- package/dist/cdn/{C4CTOJCY.js → UUEFYLY2.js} +1 -1
- package/dist/cdn/{MAJASTGO.js → UUSIBLEF.js} +1 -1
- package/dist/cdn/V2KQR2XN.js +2 -0
- package/dist/cdn/V5QAUYXS.js +2 -0
- package/dist/cdn/{PJA4IGX2.js → VCNXTZIB.js} +1 -1
- package/dist/cdn/WRKKUQQU.js +2 -0
- package/dist/cdn/WTNYMVTD.js +2 -0
- package/dist/cdn/WWTG7ZPG.js +4 -0
- package/dist/cdn/X3U2KQAT.js +2 -0
- package/dist/cdn/{ECJJHTCC.js → XIERF7M3.js} +1 -1
- package/dist/cdn/{4PHF55TA.js → XISVSABU.js} +1 -1
- package/dist/cdn/{RUGBI54D.js → XY2NGASJ.js} +1 -1
- package/dist/cdn/Y2QT4M6Q.js +2 -0
- package/dist/cdn/{3C5E5V4N.js → YBAOD7UZ.js} +1 -1
- package/dist/cdn/{UMXCNNGF.js → YEVJGQUY.js} +1 -1
- package/dist/cdn/{ICKYHJSB.js → YIVDEL6M.js} +1 -1
- package/dist/cdn/YQ7YVAUO.js +2 -0
- package/dist/cdn/YXQZ7UHS.js +2 -0
- package/dist/cdn/{N2GYC335.js → ZS6NXVE5.js} +1 -1
- package/dist/cdn/{G7U3ZS2Z.js → ZSBKEWEI.js} +1 -1
- package/dist/cdn/assets/icon/alignBottom16.json +1 -1
- package/dist/cdn/assets/icon/alignBottom24.json +1 -1
- package/dist/cdn/assets/icon/alignBottom32.json +1 -1
- package/dist/cdn/assets/icon/alignCenterHorizontal16.json +1 -1
- package/dist/cdn/assets/icon/alignCenterHorizontal24.json +1 -1
- package/dist/cdn/assets/icon/alignCenterHorizontal32.json +1 -1
- package/dist/cdn/assets/icon/alignCenterVertical16.json +1 -1
- package/dist/cdn/assets/icon/alignCenterVertical24.json +1 -1
- package/dist/cdn/assets/icon/alignCenterVertical32.json +1 -1
- package/dist/cdn/assets/icon/alignLeft16.json +1 -1
- package/dist/cdn/assets/icon/alignLeft24.json +1 -1
- package/dist/cdn/assets/icon/alignLeft32.json +1 -1
- package/dist/cdn/assets/icon/alignRight16.json +1 -1
- package/dist/cdn/assets/icon/alignRight24.json +1 -1
- package/dist/cdn/assets/icon/alignRight32.json +1 -1
- package/dist/cdn/assets/icon/alignTop16.json +1 -1
- package/dist/cdn/assets/icon/alignTop24.json +1 -1
- package/dist/cdn/assets/icon/alignTop32.json +1 -1
- package/dist/cdn/assets/icon/diamondGem16.json +1 -0
- package/dist/cdn/assets/icon/diamondGem24.json +1 -0
- package/dist/cdn/assets/icon/diamondGem32.json +1 -0
- package/dist/cdn/assets/icon/filterX16.json +1 -0
- package/dist/cdn/assets/icon/filterX24.json +1 -0
- package/dist/cdn/assets/icon/filterX32.json +1 -0
- package/dist/cdn/assets/icon/spaceBetweenHorizontal16.json +1 -1
- package/dist/cdn/assets/icon/stretchHorizontal16.json +1 -1
- package/dist/cdn/assets/icon/stretchHorizontal24.json +1 -1
- package/dist/cdn/assets/icon/stretchHorizontal32.json +1 -1
- package/dist/cdn/assets/icon/stretchVertical16.json +1 -1
- package/dist/cdn/assets/icon/stretchVertical24.json +1 -1
- package/dist/cdn/assets/icon/stretchVertical32.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/input-time-zone/t9n/messages.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/table/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +2 -2
- package/dist/chunks/aria.js +5 -0
- package/dist/chunks/dom.js +33 -32
- package/dist/chunks/header.js +1 -1
- package/dist/chunks/locale.js +11 -14
- package/dist/chunks/manager.js +13 -1
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/resources10.js +6 -56
- package/dist/chunks/resources11.js +21 -5
- package/dist/chunks/resources12.js +1 -1
- package/dist/chunks/resources13.js +1 -1
- package/dist/chunks/resources15.js +1 -1
- package/dist/chunks/resources17.js +1 -1
- package/dist/chunks/resources18.js +1 -1
- package/dist/chunks/resources2.js +18 -22
- package/dist/chunks/resources20.js +1 -1
- package/dist/chunks/resources21.js +1 -1
- package/dist/chunks/resources22.js +1 -1
- package/dist/chunks/resources23.js +1 -1
- package/dist/chunks/resources24.js +1 -1
- package/dist/chunks/resources25.js +1 -1
- package/dist/chunks/resources26.js +2 -3
- package/dist/chunks/resources27.js +1 -1
- package/dist/chunks/resources28.js +1 -1
- package/dist/chunks/resources29.js +1 -1
- package/dist/chunks/resources3.js +19 -18
- package/dist/chunks/resources30.js +1 -1
- package/dist/chunks/resources31.js +1 -1
- package/dist/chunks/resources32.js +1 -2
- package/dist/chunks/resources33.js +1 -1
- package/dist/chunks/resources34.js +1 -1
- package/dist/chunks/resources4.js +9 -19
- package/dist/chunks/resources5.js +19 -7
- package/dist/chunks/resources6.js +39 -13
- package/dist/chunks/resources7.js +20 -38
- package/dist/chunks/resources8.js +23 -21
- package/dist/chunks/resources9.js +52 -27
- package/dist/chunks/responsive.js +2 -2
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/sortable.js +1 -1
- package/dist/chunks/useFocusable.js +25 -2
- package/dist/chunks/useSizeOverride.js +2 -2
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils3.js +4 -4
- package/dist/chunks/utils4.js +1 -2
- package/dist/components/calcite-accordion/customElement.d.ts +1 -0
- package/dist/components/calcite-accordion/customElement.js +1 -1
- package/dist/components/calcite-accordion-item/customElement.d.ts +2 -0
- package/dist/components/calcite-accordion-item/customElement.js +2 -2
- package/dist/components/calcite-action/customElement.d.ts +5 -45
- package/dist/components/calcite-action/customElement.js +8 -11
- package/dist/components/calcite-action-bar/customElement.d.ts +1 -7
- package/dist/components/calcite-action-bar/customElement.js +418 -59
- package/dist/components/calcite-action-group/customElement.d.ts +8 -0
- package/dist/components/calcite-action-group/customElement.js +62 -32
- package/dist/components/calcite-action-menu/customElement.js +219 -60
- package/dist/components/calcite-alert/customElement.d.ts +0 -3
- package/dist/components/calcite-alert/customElement.js +4 -4
- package/dist/components/calcite-autocomplete/customElement.d.ts +1 -0
- package/dist/components/calcite-autocomplete/customElement.js +10 -10
- package/dist/components/calcite-autocomplete-item/customElement.d.ts +2 -0
- package/dist/components/calcite-autocomplete-item/customElement.js +2 -2
- package/dist/components/calcite-autocomplete-item-group/customElement.d.ts +5 -1
- package/dist/components/calcite-autocomplete-item-group/customElement.js +4 -4
- package/dist/components/calcite-avatar/customElement.js +1 -1
- package/dist/components/calcite-block/customElement.d.ts +1 -53
- package/dist/components/calcite-block/customElement.js +5 -34
- package/dist/components/calcite-block/index.js +1 -1
- package/dist/components/calcite-block-group/customElement.d.ts +4 -8
- package/dist/components/calcite-block-group/customElement.js +6 -7
- package/dist/components/calcite-block-section/customElement.d.ts +2 -0
- package/dist/components/calcite-block-section/customElement.js +1 -1
- package/dist/components/calcite-button/customElement.d.ts +4 -5
- package/dist/components/calcite-button/customElement.js +7 -7
- package/dist/components/calcite-card/customElement.d.ts +1 -0
- package/dist/components/calcite-card/customElement.js +3 -3
- package/dist/components/calcite-card-group/customElement.d.ts +4 -1
- package/dist/components/calcite-card-group/customElement.js +4 -4
- package/dist/components/calcite-carousel/customElement.d.ts +4 -1
- package/dist/components/calcite-carousel/customElement.js +3 -3
- package/dist/components/calcite-carousel-item/customElement.d.ts +5 -1
- package/dist/components/calcite-checkbox/customElement.js +2 -2
- package/dist/components/calcite-chip/customElement.d.ts +1 -0
- package/dist/components/calcite-chip/customElement.js +3 -3
- package/dist/components/calcite-chip-group/customElement.d.ts +4 -1
- package/dist/components/calcite-chip-group/customElement.js +4 -4
- package/dist/components/calcite-color-picker/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker/customElement.js +3 -3
- package/dist/components/calcite-color-picker/utils.d.ts +4 -4
- package/dist/components/calcite-color-picker-hex-input/customElement.js +2 -2
- package/dist/components/calcite-combobox/customElement.d.ts +1 -0
- package/dist/components/calcite-combobox/customElement.js +5 -5
- package/dist/components/calcite-combobox-item/customElement.d.ts +2 -0
- package/dist/components/calcite-combobox-item/customElement.js +2 -2
- package/dist/components/calcite-combobox-item-group/customElement.d.ts +5 -1
- package/dist/components/calcite-date-picker/customElement.js +1 -1
- package/dist/components/calcite-date-picker-day/customElement.js +2 -2
- package/dist/components/calcite-date-picker-month-header/customElement.js +9 -6
- package/dist/components/calcite-dialog/customElement.d.ts +7 -3
- package/dist/components/calcite-dialog/customElement.js +4 -4
- package/dist/components/calcite-dropdown/customElement.d.ts +3 -4
- package/dist/components/calcite-dropdown/customElement.js +378 -103
- package/dist/components/calcite-dropdown-group/customElement.d.ts +5 -1
- package/dist/components/calcite-dropdown-item/customElement.d.ts +6 -1
- package/dist/components/calcite-dropdown-item/customElement.js +13 -9
- package/dist/components/calcite-fab/customElement.d.ts +1 -0
- package/dist/components/calcite-fab/customElement.js +2 -2
- package/dist/components/calcite-filter/customElement.js +2 -2
- package/dist/components/calcite-flow/customElement.d.ts +4 -1
- package/dist/components/calcite-flow/customElement.js +2 -2
- package/dist/components/calcite-flow-item/customElement.d.ts +8 -4
- package/dist/components/calcite-flow-item/customElement.js +1 -1
- package/dist/components/calcite-icon/customElement.js +1 -1
- package/dist/components/calcite-inline-editable/customElement.js +3 -3
- package/dist/components/calcite-input/customElement.d.ts +1 -0
- package/dist/components/calcite-input/customElement.js +3 -3
- package/dist/components/calcite-input-date-picker/customElement.d.ts +4 -7
- package/dist/components/calcite-input-date-picker/customElement.js +6 -6
- package/dist/components/calcite-input-message/customElement.d.ts +1 -1
- package/dist/components/calcite-input-message/customElement.js +2 -2
- package/dist/components/calcite-input-number/customElement.d.ts +1 -0
- package/dist/components/calcite-input-number/customElement.js +3 -3
- package/dist/components/calcite-input-text/customElement.d.ts +1 -0
- package/dist/components/calcite-input-text/customElement.js +3 -3
- package/dist/components/calcite-input-time-picker/customElement.d.ts +4 -1
- package/dist/components/calcite-input-time-picker/customElement.js +3 -3
- package/dist/components/calcite-input-time-zone/customElement.d.ts +4 -2
- package/dist/components/calcite-input-time-zone/customElement.js +10 -8
- package/dist/components/calcite-label/customElement.d.ts +1 -3
- package/dist/components/calcite-label/customElement.js +1 -1
- package/dist/components/calcite-link/customElement.d.ts +3 -9
- package/dist/components/calcite-link/customElement.js +4 -4
- package/dist/components/calcite-list/customElement.d.ts +3 -12
- package/dist/components/calcite-list/customElement.js +8 -8
- package/dist/components/calcite-list/index.js +1 -1
- package/dist/components/calcite-list-item/customElement.d.ts +13 -1
- package/dist/components/calcite-list-item/customElement.js +3 -3
- package/dist/components/calcite-list-item-group/customElement.d.ts +5 -1
- package/dist/components/calcite-list-item-group/customElement.js +1 -1
- package/dist/components/calcite-loader/customElement.d.ts +0 -6
- package/dist/components/calcite-loader/customElement.js +1 -1
- package/dist/components/calcite-menu/customElement.d.ts +1 -0
- package/dist/components/calcite-menu/customElement.js +3 -3
- package/dist/components/calcite-menu-item/customElement.d.ts +5 -1
- package/dist/components/calcite-menu-item/customElement.js +3 -3
- package/dist/components/calcite-meter/customElement.js +2 -2
- package/dist/components/calcite-navigation/customElement.d.ts +1 -6
- package/dist/components/calcite-navigation/customElement.js +3 -3
- package/dist/components/calcite-navigation-logo/customElement.d.ts +4 -0
- package/dist/components/calcite-navigation-logo/customElement.js +2 -2
- package/dist/components/calcite-navigation-user/customElement.d.ts +4 -0
- package/dist/components/calcite-navigation-user/customElement.js +2 -2
- package/dist/components/calcite-notice/customElement.d.ts +1 -8
- package/dist/components/calcite-notice/customElement.js +4 -4
- package/dist/components/calcite-option/customElement.d.ts +4 -0
- package/dist/components/calcite-option-group/customElement.d.ts +5 -1
- package/dist/components/calcite-pagination/customElement.js +2 -2
- package/dist/components/calcite-panel/customElement.d.ts +4 -2
- package/dist/components/calcite-panel/customElement.js +9 -7
- package/dist/components/calcite-popover/customElement.d.ts +2 -4
- package/dist/components/calcite-popover/customElement.js +2 -2
- package/dist/components/calcite-progress/customElement.js +1 -1
- package/dist/components/calcite-radio-button/customElement.d.ts +1 -0
- package/dist/components/calcite-radio-button/customElement.js +2 -2
- package/dist/components/calcite-radio-button-group/customElement.d.ts +1 -0
- package/dist/components/calcite-radio-button-group/customElement.js +1 -1
- package/dist/components/calcite-rating/customElement.js +8 -8
- package/dist/components/calcite-scrim/customElement.js +2 -2
- package/dist/components/calcite-segmented-control/customElement.d.ts +1 -2
- package/dist/components/calcite-segmented-control/customElement.js +3 -3
- package/dist/components/calcite-segmented-control-item/customElement.d.ts +4 -0
- package/dist/components/calcite-segmented-control-item/customElement.js +2 -2
- package/dist/components/calcite-select/customElement.d.ts +2 -3
- package/dist/components/calcite-select/customElement.js +3 -3
- package/dist/components/calcite-sheet/customElement.d.ts +4 -4
- package/dist/components/calcite-sheet/customElement.js +24 -20
- package/dist/components/calcite-shell/customElement.d.ts +1 -0
- package/dist/components/calcite-shell/customElement.js +5 -3
- package/dist/components/calcite-shell-panel/customElement.d.ts +7 -6
- package/dist/components/calcite-shell-panel/customElement.js +11 -3
- package/dist/components/calcite-shell-panel/types.d.ts +1 -1
- package/dist/components/calcite-slider/customElement.js +3 -3
- package/dist/components/calcite-sort-handle/customElement.js +2 -2
- package/dist/components/calcite-split-button/customElement.d.ts +5 -4
- package/dist/components/calcite-split-button/customElement.js +2 -2
- package/dist/components/calcite-stack/customElement.js +1 -1
- package/dist/components/calcite-stepper/customElement.d.ts +8 -13
- package/dist/components/calcite-stepper/customElement.js +3 -3
- package/dist/components/calcite-stepper-item/customElement.d.ts +5 -1
- package/dist/components/calcite-stepper-item/customElement.js +7 -6
- package/dist/components/calcite-swatch/customElement.d.ts +4 -1
- package/dist/components/calcite-swatch/customElement.js +2 -2
- package/dist/components/calcite-swatch-group/customElement.d.ts +4 -1
- package/dist/components/calcite-swatch-group/customElement.js +3 -3
- package/dist/components/calcite-switch/customElement.js +2 -2
- package/dist/components/calcite-tab/customElement.d.ts +5 -7
- package/dist/components/calcite-tab/customElement.js +2 -2
- package/dist/components/calcite-tab-nav/customElement.d.ts +5 -1
- package/dist/components/calcite-tab-nav/customElement.js +1 -1
- package/dist/components/calcite-tab-title/customElement.d.ts +2 -2
- package/dist/components/calcite-tab-title/customElement.js +2 -2
- package/dist/components/calcite-table/customElement.d.ts +12 -0
- package/dist/components/calcite-table/customElement.js +17 -8
- package/dist/components/calcite-table-cell/customElement.d.ts +5 -19
- package/dist/components/calcite-table-cell/customElement.js +6 -8
- package/dist/components/calcite-table-header/customElement.d.ts +4 -19
- package/dist/components/calcite-table-header/customElement.js +5 -7
- package/dist/components/calcite-table-row/customElement.d.ts +5 -7
- package/dist/components/calcite-table-row/customElement.js +7 -6
- package/dist/components/calcite-tabs/customElement.d.ts +1 -0
- package/dist/components/calcite-tabs/customElement.js +1 -1
- package/dist/components/calcite-text/customElement.js +7 -7
- package/dist/components/calcite-text-area/customElement.js +2 -2
- package/dist/components/calcite-tile/customElement.d.ts +1 -0
- package/dist/components/calcite-tile/customElement.js +2 -5
- package/dist/components/calcite-tile-group/customElement.d.ts +5 -3
- package/dist/components/calcite-tile-group/customElement.js +2 -2
- package/dist/components/calcite-time-picker/customElement.js +1 -1
- package/dist/components/calcite-tooltip/customElement.d.ts +2 -4
- package/dist/components/calcite-tooltip/customElement.js +2 -3
- package/dist/components/calcite-tree/customElement.d.ts +4 -1
- package/dist/components/calcite-tree/customElement.js +1 -1
- package/dist/components/calcite-tree-item/customElement.d.ts +2 -0
- package/dist/components/calcite-tree-item/customElement.js +3 -3
- 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/index.d.ts +0 -44
- package/dist/loader.js +11 -16
- package/dist/types/lumina.d.ts +10 -49
- package/dist/types/preact.d.ts +10 -54
- package/dist/types/react.d.ts +10 -59
- package/dist/types/stencil.d.ts +10 -49
- package/package.json +18 -23
- package/dist/cdn/2GM6VSBK.js +0 -2
- package/dist/cdn/2HJZM6EG.js +0 -2
- package/dist/cdn/2M4ETWZU.js +0 -2
- package/dist/cdn/2PXBLTE6.js +0 -2
- package/dist/cdn/2YTXIUS3.js +0 -2
- package/dist/cdn/37VOUMLH.js +0 -2
- package/dist/cdn/3IQSX27G.js +0 -2
- package/dist/cdn/3NDG636H.js +0 -2
- package/dist/cdn/3UY5ICXV.js +0 -2
- package/dist/cdn/45IJ7FUS.js +0 -2
- package/dist/cdn/4DQBCTK5.js +0 -2
- package/dist/cdn/4ON7ZTK7.js +0 -2
- package/dist/cdn/4XFFUGOD.js +0 -2
- package/dist/cdn/55AKET4C.js +0 -2
- package/dist/cdn/5743VD4G.js +0 -4
- package/dist/cdn/5ACY5UBQ.js +0 -2
- package/dist/cdn/5PNWYEEY.js +0 -2
- package/dist/cdn/5ZM6FTOY.js +0 -2
- package/dist/cdn/6FOAXS7O.js +0 -2
- package/dist/cdn/6KRUT27K.js +0 -2
- package/dist/cdn/6NL2WFUI.js +0 -2
- package/dist/cdn/7ZSUR25F.js +0 -2
- package/dist/cdn/A5OQTYIZ.js +0 -2
- package/dist/cdn/AFIAZFW4.js +0 -2
- package/dist/cdn/ANMTSCVI.js +0 -2
- package/dist/cdn/B3OV6FHO.js +0 -2
- package/dist/cdn/BELAU7IF.js +0 -2
- package/dist/cdn/BEWFO5SP.js +0 -2
- package/dist/cdn/CNICF5R7.js +0 -2
- package/dist/cdn/COIYJGY3.js +0 -2
- package/dist/cdn/CUQFRIXD.js +0 -2
- package/dist/cdn/CZEIENQ5.js +0 -2
- package/dist/cdn/DILMLK3A.js +0 -2
- package/dist/cdn/DLH3I2XA.js +0 -2
- package/dist/cdn/DXSJU7AB.js +0 -2
- package/dist/cdn/EDZZAZ77.js +0 -2
- package/dist/cdn/EEYODLYG.js +0 -2
- package/dist/cdn/EFEEOJBA.js +0 -2
- package/dist/cdn/EFJCP6GN.js +0 -2
- package/dist/cdn/EY5IBO3K.js +0 -2
- package/dist/cdn/FAX7MLUS.js +0 -2
- package/dist/cdn/FFVBMRZH.js +0 -2
- package/dist/cdn/G4SO25HB.js +0 -2
- package/dist/cdn/GIDLAHLK.js +0 -2
- package/dist/cdn/GJQV4QS2.js +0 -2
- package/dist/cdn/GNWBCUHB.js +0 -2
- package/dist/cdn/H4GMT3ER.js +0 -2
- package/dist/cdn/I3B4IUE7.js +0 -2
- package/dist/cdn/I3JJAZ32.js +0 -2
- package/dist/cdn/I3OJ2ZKV.js +0 -2
- package/dist/cdn/IUALDVGB.js +0 -2
- package/dist/cdn/IYJ63MSS.js +0 -2
- package/dist/cdn/JGRVTCEV.js +0 -2
- package/dist/cdn/JI5RWOTK.js +0 -2
- package/dist/cdn/JXBER3AH.js +0 -2
- package/dist/cdn/JZPIO4HI.js +0 -2
- package/dist/cdn/KC3HPUBC.js +0 -2
- package/dist/cdn/KFBRBQZN.js +0 -2
- package/dist/cdn/KLE3V3CF.js +0 -2
- package/dist/cdn/KOVMPB5C.js +0 -2
- package/dist/cdn/LATMH7WP.js +0 -2
- package/dist/cdn/LCDMTPNS.js +0 -2
- package/dist/cdn/LCGJYWUI.js +0 -2
- package/dist/cdn/MPXXZ3PD.js +0 -2
- package/dist/cdn/MWY6QW2M.js +0 -2
- package/dist/cdn/NKO6GRK2.js +0 -2
- package/dist/cdn/NW3DISVM.js +0 -2
- package/dist/cdn/NXAHD7I5.js +0 -2
- package/dist/cdn/OJZULP3X.js +0 -2
- package/dist/cdn/OKOUOYSC.js +0 -2
- package/dist/cdn/OWD3EZFQ.js +0 -2
- package/dist/cdn/P6FLLKCS.js +0 -2
- package/dist/cdn/PSIQCBZR.js +0 -2
- package/dist/cdn/QAGUFFMJ.js +0 -2
- package/dist/cdn/QHU2XNFA.js +0 -2
- package/dist/cdn/QMKRDFTT.js +0 -2
- package/dist/cdn/QVTVXD2Y.js +0 -2
- package/dist/cdn/R5WW6S36.js +0 -2
- package/dist/cdn/RD5Y3PMG.js +0 -2
- package/dist/cdn/RESNI2B3.js +0 -2
- package/dist/cdn/RRD77H4X.js +0 -2
- package/dist/cdn/RSX7ODLK.js +0 -2
- package/dist/cdn/RVYQL2ED.js +0 -2
- package/dist/cdn/RWOTJOMV.js +0 -2
- package/dist/cdn/RY4BFU3C.js +0 -2
- package/dist/cdn/S5FYNDQO.js +0 -2
- package/dist/cdn/SJMC5UNY.js +0 -2
- package/dist/cdn/SU26FZJZ.js +0 -2
- package/dist/cdn/TCSHBIAN.js +0 -2
- package/dist/cdn/TYGNYH5X.js +0 -2
- package/dist/cdn/U55DKTN7.js +0 -4
- package/dist/cdn/UDWDNPXT.js +0 -2
- package/dist/cdn/UR6CICBP.js +0 -2
- package/dist/cdn/UTKIEYUU.js +0 -2
- package/dist/cdn/UVWUDMAR.js +0 -2
- package/dist/cdn/V3OYH7LM.js +0 -2
- package/dist/cdn/VXMATHDL.js +0 -2
- package/dist/cdn/W2WHRNRJ.js +0 -2
- package/dist/cdn/W7ATXQEB.js +0 -2
- package/dist/cdn/X35VZHCC.js +0 -2
- package/dist/cdn/YDASGEAW.js +0 -2
- package/dist/cdn/YF7W5TNY.js +0 -2
- package/dist/cdn/YFPVLHGR.js +0 -2
- package/dist/cdn/YSW3EMMW.js +0 -2
- package/dist/cdn/YV4JKSOA.js +0 -2
- package/dist/cdn/Z2VDHBHO.js +0 -2
- package/dist/cdn/ZRMG7WZS.js +0 -2
- package/dist/cdn/ZXJEVARI.js +0 -2
- package/dist/cdn/assets/action-pad/t9n/messages.ar.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.bg.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.bs.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ca.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.cs.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.da.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.de.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.el.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.es.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.et.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.fi.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.fr.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.he.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.hr.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.hu.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.id.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.it.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ja.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ko.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.lt.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.lv.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.nl.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.no.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.pl.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.pt-BR.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.pt-PT.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ro.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ru.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.sk.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.sl.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.sr.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.sv.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.th.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.tr.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.uk.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.vi.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.zh-CN.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.zh-HK.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.zh-TW.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ar.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.bg.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.bs.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ca.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.cs.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.da.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.de.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.el.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.es.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.et.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.fi.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.fr.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.he.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.hr.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.hu.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.id.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.it.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ja.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ko.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.lt.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.lv.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.nl.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.no.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.pl.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.pt-BR.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.pt-PT.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ro.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ru.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.sk.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.sl.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.sr.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.sv.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.th.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.tr.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.uk.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.vi.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.zh-CN.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.zh-HK.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.zh-TW.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.ar.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.bg.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.bs.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.ca.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.cs.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.da.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.de.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.el.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.es.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.et.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.fi.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.fr.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.he.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.hr.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.hu.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.id.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.it.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.ja.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.ko.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.lt.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.lv.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.nl.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.no.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.pl.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.pt-BR.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.pt-PT.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.ro.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.ru.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.sk.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.sl.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.sr.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.sv.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.th.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.tr.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.uk.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.vi.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.zh-CN.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.zh-HK.json +0 -1
- package/dist/cdn/assets/table-cell/t9n/messages.zh-TW.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.ar.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.bg.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.bs.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.ca.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.cs.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.da.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.de.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.el.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.es.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.et.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.fi.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.fr.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.he.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.hr.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.hu.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.id.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.it.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.ja.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.ko.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.lt.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.lv.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.nl.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.no.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.pl.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.pt-BR.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.pt-PT.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.ro.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.ru.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.sk.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.sl.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.sr.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.sv.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.th.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.tr.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.uk.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.vi.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.zh-CN.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.zh-HK.json +0 -1
- package/dist/cdn/assets/table-header/t9n/messages.zh-TW.json +0 -1
- package/dist/chunks/ExpandToggle.js +0 -48
- package/dist/components/calcite-action-pad/customElement.d.ts +0 -96
- package/dist/components/calcite-action-pad/customElement.js +0 -185
- package/dist/components/calcite-action-pad/index.d.ts +0 -1
- package/dist/components/calcite-action-pad/index.js +0 -3
- package/dist/components/calcite-color-picker-swatch/customElement.d.ts +0 -25
- package/dist/components/calcite-color-picker-swatch/customElement.js +0 -104
- package/dist/components/calcite-color-picker-swatch/index.d.ts +0 -1
- package/dist/components/calcite-color-picker-swatch/index.js +0 -1
- package/dist/components/calcite-focus-trap/customElement.d.ts +0 -53
- package/dist/components/calcite-focus-trap/customElement.js +0 -61
- package/dist/components/calcite-focus-trap/index.d.ts +0 -1
- package/dist/components/calcite-focus-trap/index.js +0 -1
- package/dist/components/calcite-handle/customElement.d.ts +0 -66
- package/dist/components/calcite-handle/customElement.js +0 -128
- package/dist/components/calcite-handle/index.d.ts +0 -1
- package/dist/components/calcite-handle/index.js +0 -2
- package/dist/components/calcite-handle/types.d.ts +0 -3
- package/dist/components/calcite-list/resources.d.ts +0 -1
- package/dist/components/calcite-sortable-list/customElement.d.ts +0 -52
- package/dist/components/calcite-sortable-list/customElement.js +0 -133
- package/dist/components/calcite-sortable-list/index.d.ts +0 -1
- package/dist/components/calcite-sortable-list/index.js +0 -1
- /package/dist/cdn/{ZZDNIBT7.js → 2IM7ZZ7U.js} +0 -0
- /package/dist/cdn/{NYT7VOUO.js → TIIRIEHJ.js} +0 -0
|
@@ -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 { m 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";
|
|
@@ -17,7 +17,7 @@ import { u as useFocusTrap } from "../../chunks/useFocusTrap.js";
|
|
|
17
17
|
import { u as useFocusable } from "../../chunks/useFocusable.js";
|
|
18
18
|
import { u as useTopLayer } from "../../chunks/useTopLayer.js";
|
|
19
19
|
import { I as ICONS, a as IDS, C as CSS } from "../../chunks/resources24.js";
|
|
20
|
-
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([modal-disabled]),:host([modal-disabled]) .container{pointer-events:none}: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-theme-color-surface-2, 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-theme-corner-radius-sm, var(--calcite-corner-radius-round)))}:host([display-mode=float]) .container{padding:var(--calcite-theme-space-md, 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-theme-color-surface-4, 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-theme-color-surface-1, 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-theme-corner-radius-sm, var(--calcite-corner-radius-round)));border-end-end-radius:var(--calcite-sheet-corner-radius, var(--calcite-theme-corner-radius-sm, 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-theme-corner-radius-sm, var(--calcite-corner-radius-round)));border-start-end-radius:var(--calcite-sheet-corner-radius, var(--calcite-theme-corner-radius-sm, 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}`;
|
|
20
|
+
const styles = css`:host{display:flex;position:absolute;inset:var(--calcite-space-none);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)}.container{box-sizing:border-box;position:fixed;display:flex;opacity:0;visibility:hidden;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(:not([modal])),:host(:not([modal])) .container{pointer-events:none}: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:var(--calcite-space-none);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{display:flex;position:relative;box-sizing:border-box;padding:var(--calcite-space-none);max-inline-size:100%;background-color:var(--calcite-sheet-background-color, var(--calcite-theme-color-surface-2, 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{display:flex;flex:1 1 0%;position:relative;max-block-size:100%;max-inline-size:100%;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-theme-corner-radius-sm, var(--calcite-corner-radius-round)))}:host([display-mode=float]) .container{padding:var(--calcite-theme-space-md, var(--calcite-spacing-md))}.container--open{opacity:var(--calcite-opacity-full);visibility:visible;transition-delay:0ms}.container--open .content{pointer-events:auto;visibility:visible;opacity:var(--calcite-opacity-full);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{outline:var(--calcite-border-width-md) solid transparent;outline-offset:var(--calcite-border-width-md);position:absolute;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;box-sizing:border-box;--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-theme-color-surface-4, var(--calcite-color-foreground-3)))}.resize-handle-bar{display:flex;justify-content:center;align-items:center;pointer-events:none;color:var(--calcite-sheet-resize-icon-color, var(--calcite-color-border-input));background-color:var(--calcite-sheet-resize-background-color, var(--calcite-theme-color-surface-1, var(--calcite-color-background)))}.resize-handle:focus .resize-handle-bar{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-theme-corner-radius-sm, var(--calcite-corner-radius-round)));border-end-end-radius:var(--calcite-sheet-corner-radius, var(--calcite-theme-corner-radius-sm, 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:var(--calcite-space-2xs);border-end-start-radius:var(--calcite-space-2xs)}: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:var(--calcite-space-2xs);border-end-start-radius:var(--calcite-space-2xs)}: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-theme-corner-radius-sm, var(--calcite-corner-radius-round)));border-start-end-radius:var(--calcite-sheet-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)))}:host([position]) .container--embedded{position:absolute;pointer-events:auto;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}`;
|
|
21
21
|
class Sheet extends LitElement {
|
|
22
22
|
constructor() {
|
|
23
23
|
super();
|
|
@@ -27,7 +27,7 @@ class Sheet extends LitElement {
|
|
|
27
27
|
triggerProp: "open",
|
|
28
28
|
focusTrapOptions: {
|
|
29
29
|
// scrim closes on click, so we let it take over
|
|
30
|
-
clickOutsideDeactivates: () => this.
|
|
30
|
+
clickOutsideDeactivates: () => !this.modal || this.embedded,
|
|
31
31
|
escapeDeactivates: (event) => {
|
|
32
32
|
if (!event.defaultPrevented && !this.escapeDisabled) {
|
|
33
33
|
this.open = false;
|
|
@@ -40,12 +40,11 @@ class Sheet extends LitElement {
|
|
|
40
40
|
this.usePreventDocumentScroll = usePreventDocumentScroll()(this);
|
|
41
41
|
this.messages = useT9n();
|
|
42
42
|
this.mutationObserver = createObserver("mutation", () => this.handleMutationObserver());
|
|
43
|
-
this._modalDisabled = false;
|
|
44
43
|
this._open = false;
|
|
45
44
|
this.openProp = "opened";
|
|
46
45
|
this.transitionProp = "opacity";
|
|
47
46
|
this.transitionRef = createRef();
|
|
48
|
-
this.focusSetter = useFocusable()(this);
|
|
47
|
+
this.focusSetter = useFocusable()(this).setFocus;
|
|
49
48
|
this.keyDownHandler = (event) => {
|
|
50
49
|
const { defaultPrevented, key } = event;
|
|
51
50
|
if (!defaultPrevented && !this.escapeDisabled && this.open && key === "Escape") {
|
|
@@ -80,6 +79,7 @@ class Sheet extends LitElement {
|
|
|
80
79
|
this.escapeDisabled = false;
|
|
81
80
|
this.focusTrapDisabled = false;
|
|
82
81
|
this.heightScale = "m";
|
|
82
|
+
this.modal = false;
|
|
83
83
|
this.opened = false;
|
|
84
84
|
this.outsideCloseDisabled = false;
|
|
85
85
|
this.position = "inline-start";
|
|
@@ -93,24 +93,13 @@ class Sheet extends LitElement {
|
|
|
93
93
|
this.listen("keydown", this.keyDownHandler);
|
|
94
94
|
}
|
|
95
95
|
static {
|
|
96
|
-
this.properties = { resizeValues: [16, {}, { state: true }], beforeClose: [0, {}, { attribute: false }], displayMode: [3, {}, { reflect: true }], embedded: [7, {}, { reflect: true, type: Boolean }], escapeDisabled: [7, {}, { reflect: true, type: Boolean }], focusTrapDisabled: [7, {}, { reflect: true, type: Boolean }], focusTrapOptions: [0, {}, { attribute: false }], heightScale: [3, {}, { reflect: true }], height: [3, {}, { reflect: true }], label: 1, messageOverrides: [0, {}, { attribute: false }],
|
|
96
|
+
this.properties = { resizeValues: [16, {}, { state: true }], beforeClose: [0, {}, { attribute: false }], displayMode: [3, {}, { reflect: true }], embedded: [7, {}, { reflect: true, type: Boolean }], escapeDisabled: [7, {}, { reflect: true, type: Boolean }], focusTrapDisabled: [7, {}, { reflect: true, type: Boolean }], focusTrapOptions: [0, {}, { attribute: false }], heightScale: [3, {}, { reflect: true }], height: [3, {}, { reflect: true }], label: 1, messageOverrides: [0, {}, { attribute: false }], modal: [7, {}, { reflect: true, type: Boolean }], open: [7, {}, { reflect: true, type: Boolean }], opened: [7, {}, { reflect: true, type: Boolean }], outsideCloseDisabled: [7, {}, { reflect: true, type: Boolean }], position: [3, {}, { reflect: true }], resizable: [7, {}, { reflect: true, type: Boolean }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }], widthScale: [3, {}, { reflect: true }], width: [3, {}, { reflect: true }] };
|
|
97
97
|
}
|
|
98
98
|
static {
|
|
99
99
|
this.styles = styles;
|
|
100
100
|
}
|
|
101
101
|
get preventDocumentScroll() {
|
|
102
|
-
return !this.embedded &&
|
|
103
|
-
}
|
|
104
|
-
get modalDisabled() {
|
|
105
|
-
return this._modalDisabled;
|
|
106
|
-
}
|
|
107
|
-
set modalDisabled(value) {
|
|
108
|
-
if (value === this._modalDisabled) {
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
const oldPreventDocumentScroll = this.preventDocumentScroll;
|
|
112
|
-
this._modalDisabled = value;
|
|
113
|
-
this.requestUpdate("preventDocumentScroll", oldPreventDocumentScroll);
|
|
102
|
+
return !this.embedded && this.modal;
|
|
114
103
|
}
|
|
115
104
|
get open() {
|
|
116
105
|
return this._open;
|
|
@@ -142,10 +131,22 @@ class Sheet extends LitElement {
|
|
|
142
131
|
if (changes.has("opened") && (this.hasUpdated || this.opened !== false) && this.transitionRef.value) {
|
|
143
132
|
toggleOpenClose(this);
|
|
144
133
|
}
|
|
134
|
+
if (changes.has("modal") && this.hasUpdated) {
|
|
135
|
+
this.requestUpdate("preventDocumentScroll", !this.embedded && changes.get("modal"));
|
|
136
|
+
}
|
|
145
137
|
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")) {
|
|
146
138
|
this.refreshResize();
|
|
147
139
|
}
|
|
148
140
|
}
|
|
141
|
+
updated(changes) {
|
|
142
|
+
if (!changes.has("open") && (changes.has("focusTrapDisabled") || changes.has("modal")) && this.open) {
|
|
143
|
+
if (this.focusTrapDisabledOverride()) {
|
|
144
|
+
this.focusTrap.deactivate();
|
|
145
|
+
} else {
|
|
146
|
+
this.focusTrap.activate();
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
149
150
|
disconnectedCallback() {
|
|
150
151
|
super.disconnectedCallback();
|
|
151
152
|
this.mutationObserver?.disconnect();
|
|
@@ -301,13 +302,16 @@ class Sheet extends LitElement {
|
|
|
301
302
|
handleMutationObserver() {
|
|
302
303
|
this.focusTrap.updateContainerElements();
|
|
303
304
|
}
|
|
305
|
+
focusTrapDisabledOverride() {
|
|
306
|
+
return !this.modal && this.focusTrapDisabled;
|
|
307
|
+
}
|
|
304
308
|
render() {
|
|
305
309
|
const { resizable, position, resizeValues } = this;
|
|
306
310
|
const dir = this.direction;
|
|
307
311
|
const isBlockPosition = position === "block-start" || position === "block-end";
|
|
308
312
|
setAttribute(this.el, "aria-describedby", IDS.sheetContent);
|
|
309
313
|
this.el.ariaLabel = this.label;
|
|
310
|
-
this.el.ariaModal = this.
|
|
314
|
+
this.el.ariaModal = this.modal ? "true" : "false";
|
|
311
315
|
this.el.role = "dialog";
|
|
312
316
|
return html`<div class=${safeClassMap({
|
|
313
317
|
[CSS.container]: true,
|
|
@@ -316,7 +320,7 @@ class Sheet extends LitElement {
|
|
|
316
320
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
317
321
|
[getDimensionClass("width", this.width, this.widthScale)]: !!(this.width || this.widthScale),
|
|
318
322
|
[getDimensionClass("height", this.height, this.heightScale)]: !!(this.height || this.heightScale)
|
|
319
|
-
})} .popover=${!this.embedded ? "manual" : void 0} ${ref(this.transitionRef)}>${this.
|
|
323
|
+
})} .popover=${!this.embedded ? "manual" : void 0} ${ref(this.transitionRef)}>${this.modal ? html`<calcite-scrim class=${safeClassMap(CSS.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>` : null}<div class=${safeClassMap(CSS.content)} id=${IDS.sheetContent} ${ref(this.contentRef)}><div class=${safeClassMap(CSS.contentContainer)}><slot></slot></div>${resizable ? keyed("resize-handle", html`<div .ariaLabel=${this.messages.resizeEnabled} .ariaOrientation=${isBlockPosition ? "vertical" : "horizontal"} .ariaValueMax=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.maxBlockSize, resizeValues.maxInlineSize)} .ariaValueMin=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.minBlockSize, resizeValues.minInlineSize)} .ariaValueNow=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.blockSize, resizeValues.inlineSize)} class=${safeClassMap(CSS.resizeHandle)} @keydown=${this.handleKeyDown} role=separator tabindex=0 touch-action=none ${ref(this.setResizeHandleEl)}><div class=${safeClassMap(CSS.resizeHandleBar)}><calcite-icon .icon=${this.getResizeIcon()} scale=s></calcite-icon></div></div>`) : null}</div></div>`;
|
|
320
324
|
}
|
|
321
325
|
}
|
|
322
326
|
customElement("calcite-sheet", Sheet);
|
|
@@ -23,6 +23,7 @@ export interface DeclareCssProperties {
|
|
|
23
23
|
* @slot [dialogs] - A slot for adding `calcite-dialog` components. When placed in this slot, the dialog position will be constrained to the extent of the `calcite-shell`.
|
|
24
24
|
* @slot [alerts] - A slot for adding `calcite-alert` components. When placed in this slot, the alert position will be constrained to the extent of the `calcite-shell`.
|
|
25
25
|
* @slot [sheets] - A slot for adding `calcite-sheet` components. When placed in this slot, the sheet position will be constrained to the extent of the `calcite-shell`.
|
|
26
|
+
* @docGroup Shell
|
|
26
27
|
*/
|
|
27
28
|
export abstract class Shell extends LitElement {
|
|
28
29
|
/**
|
|
@@ -3,13 +3,14 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { keyed } from "lit/directives/keyed.js";
|
|
4
4
|
import { css, html } from "lit";
|
|
5
5
|
import { LitElement, safeClassMap } from "@arcgis/lumina";
|
|
6
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
6
7
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
|
-
import { s as slotChangeHasAssignedElement,
|
|
8
|
+
import { s as slotChangeHasAssignedElement, d as slotChangeGetAssignedElements, m as getStylePixelValue } from "../../chunks/dom.js";
|
|
8
9
|
import { i as isAlert } from "../../chunks/resources13.js";
|
|
9
10
|
import { b as isDialog } from "../../chunks/resources15.js";
|
|
10
11
|
import { i as isSheet } from "../../chunks/resources24.js";
|
|
11
12
|
import { i as isShellPanel } from "../../chunks/resources25.js";
|
|
12
|
-
const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1));color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:absolute;inset:
|
|
13
|
+
const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1));color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:absolute;inset:var(--calcite-space-none);display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:var(--calcite-shell-corner-radius);box-shadow:var(--calcite-shell-shadow)}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto;justify-content:space-between}.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:var(--calcite-space-none);border-width:var(--calcite-space-none);z-index:calc(var(--calcite-z-index) - 1);display:initial}.content--non-interactive{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;pointer-events:none}::slotted(calcite-shell-panel){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal))}slot[name=panel-start]::slotted(calcite-shell-panel),slot[name=panel-end]::slotted(calcite-shell-panel){position:relative;z-index:calc(var(--calcite-z-index) + 1)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-panel),::slotted(calcite-flow){border-width:var(--calcite-border-width-sm);border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-none);border-inline-end-width:var(--calcite-border-width-none);border-style:solid}slot[name=panel-top]::slotted(calcite-shell-panel:not([display-mode^=float])),slot[name=panel-bottom]::slotted(calcite-shell-panel:not([display-mode^=float])){border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-sm);border-inline-end-width:var(--calcite-border-width-sm)}.center-content{display:flex;flex-direction:column;justify-content:space-between;block-size:100%;inline-size:100%;min-inline-size:0}.content-bottom{justify-content:flex-end}::slotted(calcite-shell-panel){flex:none;align-self:stretch}@keyframes in-up{0%{opacity:0;transform:translate3D(0,5px,0)}to{opacity:var(--calcite-opacity-full);transform:translateZ(0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;box-shadow:var(--calcite-shadow-md);position:absolute;box-sizing:border-box;border-radius:var(--calcite-corner-radius-sm);z-index:var(--calcite-z-index-toast);inset-block-end:.5rem;inset-inline:var(--calcite-shell-tip-spacing, 26vw)}slot[name=panel-bottom]::slotted(calcite-shell-panel){margin-block-start:auto}slot[name=panel-top]::slotted(calcite-shell-panel){margin-block-end:auto}.position-wrapper{position:absolute;pointer-events:none;inset:0}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
13
14
|
const CSS = {
|
|
14
15
|
main: "main",
|
|
15
16
|
content: "content",
|
|
@@ -34,6 +35,7 @@ const SLOTS = {
|
|
|
34
35
|
class Shell extends LitElement {
|
|
35
36
|
constructor() {
|
|
36
37
|
super();
|
|
38
|
+
this.direction = useDirection();
|
|
37
39
|
this.defaultSlotRef = createRef();
|
|
38
40
|
this.panelBottomSlotRef = createRef();
|
|
39
41
|
this.panelEndSlotRef = createRef();
|
|
@@ -136,7 +138,7 @@ class Shell extends LitElement {
|
|
|
136
138
|
};
|
|
137
139
|
}
|
|
138
140
|
const defaultSlotMinSize = this.getDefaultSlotMinSize(axis);
|
|
139
|
-
const isRTL =
|
|
141
|
+
const isRTL = this.direction === "rtl";
|
|
140
142
|
let availableOccupiedSize;
|
|
141
143
|
if (axis === "inline") {
|
|
142
144
|
const isStart = panel.position === "start";
|
|
@@ -11,11 +11,11 @@ export interface DeclareCssProperties {
|
|
|
11
11
|
"--calcite-shell-panel-border-color": "*";
|
|
12
12
|
/** When `displayMode` is `"float-all"`, specifies the component's corner radius. */
|
|
13
13
|
"--calcite-shell-panel-corner-radius": "*";
|
|
14
|
-
/** When `layout` is `horizontal`, or `layout` is `vertical` and `displayMode` is `float-content` or `float
|
|
14
|
+
/** When `layout` is `horizontal`, or `layout` is `vertical` and `displayMode` is `float-content` or `float-all`, specifies the component's height. */
|
|
15
15
|
"--calcite-shell-panel-height": "*";
|
|
16
|
-
/** When `layout` is `horizontal`, or `layout` is `vertical` and `displayMode` is `float-content
|
|
16
|
+
/** When `layout` is `horizontal`, or `layout` is `vertical` and `displayMode` is `float-content`, specifies the component's maximum height. */
|
|
17
17
|
"--calcite-shell-panel-max-height": "*";
|
|
18
|
-
/** When `layout` is `horizontal`, or `layout` is `vertical` and `displayMode` is `float-content
|
|
18
|
+
/** When `layout` is `horizontal`, or `layout` is `vertical` and `displayMode` is `float-content`, specifies the component's minimum height. */
|
|
19
19
|
"--calcite-shell-panel-min-height": "*";
|
|
20
20
|
/** Specifies the component's maximum width. */
|
|
21
21
|
"--calcite-shell-panel-max-width": "*";
|
|
@@ -35,6 +35,8 @@ export interface DeclareCssProperties {
|
|
|
35
35
|
/**
|
|
36
36
|
* @slot - A slot for adding custom content.
|
|
37
37
|
* @slot [action-bar] - A slot for adding a `calcite-action-bar` to the component.
|
|
38
|
+
* @docGroup Shell
|
|
39
|
+
* @parent calcite-shell
|
|
38
40
|
*/
|
|
39
41
|
export abstract class ShellPanel extends LitElement {
|
|
40
42
|
/**
|
|
@@ -50,7 +52,6 @@ export abstract class ShellPanel extends LitElement {
|
|
|
50
52
|
* - `"overlay"` displays at full height on top of center content.
|
|
51
53
|
* - `"float-content"` does not display at full height with content separately detached from `calcite-action-bar` on top of center content.
|
|
52
54
|
* - `"float-all"` detaches the `calcite-panel` and `calcite-action-bar` on top of center content.
|
|
53
|
-
* - `"float"` does not display at full height with content separately detached from `calcite-action-bar` on top of center content. [Deprecated] in v2.11.0, removal target v6.0.0 - use `"float-content"` instead.
|
|
54
55
|
*
|
|
55
56
|
* @default "dock"
|
|
56
57
|
*/
|
|
@@ -66,7 +67,7 @@ export abstract class ShellPanel extends LitElement {
|
|
|
66
67
|
/**
|
|
67
68
|
* Specifies the component's direction.
|
|
68
69
|
*
|
|
69
|
-
* @deprecated in v5.0.0, removal target
|
|
70
|
+
* @deprecated in v5.0.0, removal target v7.0.0 - No longer necessary.
|
|
70
71
|
* @default "vertical"
|
|
71
72
|
*/
|
|
72
73
|
accessor layout: Extract<"horizontal" | "vertical", Layout>;
|
|
@@ -79,7 +80,7 @@ export abstract class ShellPanel extends LitElement {
|
|
|
79
80
|
/**
|
|
80
81
|
* Specifies the component's position. Will be flipped when the element direction is right-to-left (`"rtl"`).
|
|
81
82
|
*
|
|
82
|
-
* @deprecated in v5.0.0, removal target
|
|
83
|
+
* @deprecated in v5.0.0, removal target v7.0.0 - No longer necessary.
|
|
83
84
|
* @default "start"
|
|
84
85
|
*/
|
|
85
86
|
accessor position: Extract<"start" | "end", Position>;
|
|
@@ -6,14 +6,14 @@ import { css, html } from "lit";
|
|
|
6
6
|
import { LitElement, createEvent, 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 { m as getStylePixelValue, d as slotChangeGetAssignedElements, s as slotChangeHasAssignedElement } from "../../chunks/dom.js";
|
|
10
10
|
import { g as getDimensionClass } from "../../chunks/dynamicClasses.js";
|
|
11
11
|
import { a as ariaValueFromSize } from "../../chunks/aria.js";
|
|
12
12
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
13
13
|
import { i as isActionBar } from "../../chunks/resources12.js";
|
|
14
14
|
import { I as ICONS, S as SLOTS, C as CSS } from "../../chunks/resources25.js";
|
|
15
15
|
const styles$1 = css`.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@keyframes in{0%{opacity:0}to{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0,-5px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0,5px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(.95,.95,1)}to{opacity:1;transform:scaleZ(1)}}`;
|
|
16
|
-
const styles = css`:host{pointer-events:none;position:relative;display:flex;flex:0 1 auto;align-items:stretch;z-index:var(--calcite-shell-panel-z-index, var(--calcite-z-index));--calcite-shell-panel-max-height: unset;--calcite-internal-shell-panel-shadow-block-start: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-block-end: 0 -4px 8px -1px rgba(0, 0, 0, .08), 0 -2px 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-start: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-end: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04)}.calcite--rtl.content--overlay{--calcite-internal-shell-panel-shadow-inline-start: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-end: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04)}:host([layout=vertical]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-z-index) + 1))}:host([layout=vertical][display-mode=overlay]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-z-index-header) + 1))}:host([layout=vertical][display-mode=float-all]) .content{flex:2}:host([layout=vertical]:not([display-mode=float-all])) .width-s{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 12vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 300px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 150px)}:host([layout=vertical][display-mode=float-all]) .width-s{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 12vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 150px)}:host([layout=vertical]:not([display-mode=float-all])) .width-m{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 20vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 420px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 240px)}:host([layout=vertical][display-mode=float-all]) .width-m{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 20vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 240px)}:host([layout=vertical]:not([display-mode=float-all])) .width-l{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 45vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 680px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 340px)}:host([layout=vertical][display-mode=float-all]) .width-l{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 45vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 340px)}:host([layout=horizontal]) .content{--calcite-internal-shell-panel-height: var(--calcite-shell-panel-height);--calcite-internal-shell-panel-min-height: var(--calcite-shell-panel-min-height, 5vh);--calcite-internal-shell-panel-max-height: var(--calcite-shell-panel-max-height, 30vh)}:host([layout=horizontal]) .height-s{--calcite-internal-shell-panel-height: var(--calcite-shell-panel-height);--calcite-internal-shell-panel-min-height: var(--calcite-shell-panel-min-height, 5vh);--calcite-internal-shell-panel-max-height: var(--calcite-shell-panel-max-height, 20vh)}:host([layout=horizontal]) .height-l{--calcite-internal-shell-panel-height: var(--calcite-shell-panel-height);--calcite-internal-shell-panel-min-height: var(--calcite-shell-panel-min-height, 5vh);--calcite-internal-shell-panel-max-height: var(--calcite-shell-panel-max-height, 40vh)}:host([display-mode=float-all][height=s]),:host([display-mode=float-all][height-scale=s]) .content{min-block-size:var(--calcite-shell-panel-height, 20vh)}:host([display-mode=float-all][height=m]),:host([display-mode=float-all][height-scale=m]) .content{min-block-size:var(--calcite-shell-panel-height, 30vh)}:host([display-mode=float-all][height=l]),:host([display-mode=float-all][height-scale=l]) .content{min-block-size:var(--calcite-shell-panel-height, 40vh)}.container{pointer-events:none;box-sizing:border-box;display:flex;block-size:100%;flex:1 1 auto;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size-relative-base);color:var(--calcite-shell-panel-text-color, var(--calcite-color-text-2))}.container *{box-sizing:border-box}.container.float-all{margin-block:var(--calcite-theme-space-sm, var(--calcite-spacing-sm));margin-inline:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}.float-all{max-block-size:var(--calcite-internal-shell-panel-max-height, calc(100% - 1rem) );box-shadow:var(--calcite-shell-panel-shadow, var(--calcite-shadow-sm));border-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)));overflow:hidden}:host([layout=vertical][position=start]) .float-all{border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-shell-panel-border-color, var(--calcite-color-border-3))}:host([layout=vertical][position=end]) .float-all{border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-shell-border-color, var(--calcite-shell-panel-border-color, var(--calcite-color-border-3)))}:host([layout=horizontal]) .float-all{border-inline:var(--calcite-border-width-sm) solid var(--calcite-shell-border-color, var(--calcite-shell-panel-border-color, var(--calcite-color-border-3)))}:host([layout=horizontal]) .container{block-size:auto;inline-size:100%;flex-direction:column}.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-shell-panel-resize-handle-offset: calc( (var(--calcite-size-fixed-xxl) - var(--calcite-size-fixed-sm-plus)) / 2 * -1 );z-index:var(--calcite-z-index-header);touch-action:none}.resize-handle:active .resize-handle-bar,.resize-handle:hover .resize-handle-bar{color:var(--calcite-shell-panel-resize-icon-color, var(--calcite-color-text-1));background-color:var(--calcite-shell-panel-resize-background-color, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)))}.resize-handle-bar{pointer-events:none;display:flex;align-items:center;justify-content:center;color:var(--calcite-shell-panel-resize-icon-color, var(--calcite-color-border-input));background-color:var(--calcite-shell-panel-resize-background-color, var(--calcite-theme-color-surface-1, 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=start][layout=vertical]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);inset-inline-end:var(--calcite-internal-shell-panel-resize-handle-offset);block-size:100%}:host([position=start][layout=vertical]) .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-shell-border-color, var(--calcite-color-border-3))}:host([position=start][layout=vertical]):host([display-mode^=float]) .resize-handle-bar{border-start-end-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)));border-end-end-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)))}:host([position=end][layout=vertical]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);inset-inline-start:var(--calcite-internal-shell-panel-resize-handle-offset);block-size:100%}:host([position=end][layout=vertical]) .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-shell-border-color, var(--calcite-color-border-3))}:host([position=end][layout=vertical]):host([display-mode^=float]) .resize-handle-bar{border-start-start-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)));border-end-start-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)))}:host([position=start][layout=horizontal]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-end:var(--calcite-internal-shell-panel-resize-handle-offset)}:host([position=start][layout=horizontal]) .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-shell-border-color, var(--calcite-color-border-3))}:host([position=start][layout=horizontal]):host([display-mode^=float]) .resize-handle-bar{border-end-end-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)));border-end-start-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)))}:host([position=end][layout=horizontal]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-start:var(--calcite-internal-shell-panel-resize-handle-offset)}:host([position=end][layout=horizontal]) .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-shell-border-color, var(--calcite-color-border-3))}:host([position=end][layout=horizontal]):host([display-mode^=float]) .resize-handle-bar{border-start-start-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)));border-start-end-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)))}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%;inline-size:100%;flex:1 1 auto;max-block-size:unset;max-inline-size:unset}.action-bar-container{pointer-events:auto;box-sizing:border-box;display:flex;flex:1 1 auto}.content-container{position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;align-items:stretch;align-self:stretch}:host([layout=horizontal]) .action-bar-container,:host([layout=horizontal]) .content-container{flex-direction:column}.content{pointer-events:auto;position:relative;box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-self:stretch;padding:0;background-color:var(--calcite-shell-panel-background-color, var(--calcite-theme-color-surface-1, var(--calcite-color-background)));transition:max-block-size var(--calcite-animation-timing),max-inline-size var(--calcite-animation-timing)}:host([layout=vertical]:not([display-mode=float-all])) .content{inline-size:var(--calcite-internal-shell-panel-width);max-inline-size:var(--calcite-internal-shell-panel-max-width);min-inline-size:var(--calcite-internal-shell-panel-min-width)}:host([layout=vertical][display-mode=float-all]) .content{inline-size:var(--calcite-internal-shell-panel-width);min-inline-size:var(--calcite-internal-shell-panel-min-width)}:host([layout=horizontal]) .content{block-size:var(--calcite-internal-shell-panel-height);max-block-size:var(--calcite-internal-shell-panel-max-height);min-block-size:var(--calcite-internal-shell-panel-min-height)}:host([resizable][layout=vertical][position=start]) .content{padding-inline-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][layout=vertical][position=end]) .content{padding-inline-start:var(--calcite-size-fixed-sm-plus)}:host([resizable][layout=horizontal][position=start]) .content{padding-block-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][layout=horizontal][position=end]) .content{padding-block-start:var(--calcite-size-fixed-sm-plus)}.content__header{display:flex;flex:0 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.content--overlay{position:absolute;box-shadow:var(--calcite-shell-panel-shadow, var(--calcite-shadow-sm))}:host([layout=vertical]) .content--overlay{inset-block-start:0px;block-size:100%}:host([layout=horizontal]) .content--overlay{inset-inline-start:0px;inline-size:100%}:host([layout=vertical][position=start]) .content--overlay{inset-inline-start:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-inline-start)}:host([layout=vertical][position=end]) .content--overlay{inset-inline-end:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-inline-end)}:host([layout=horizontal][position=start]) .content--overlay{inset-block-start:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-block-start)}:host([layout=horizontal][position=end]) .content--overlay{inset-block-end:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-block-end)}.float--content{margin-block-end:auto;block-size:auto;overflow:hidden;box-shadow:var(--calcite-shell-panel-shadow, var(--calcite-shadow-sm));border-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)));margin-inline:var(--calcite-theme-space-sm, var(--calcite-spacing-sm));margin-block-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm));max-block-size:var(--calcite-internal-shell-panel-max-height, calc(100% - 1rem) )}.float--content ::slotted(calcite-panel),.float--content ::slotted(calcite-flow){max-block-size:unset}:host([layout=horizontal]) .float--content{margin-block:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([position=start]) .float--content ::slotted(calcite-panel),:host([position=start]) .float--content ::slotted(calcite-flow),:host([position=end]) .float--content ::slotted(calcite-panel),:host([position=end]) .float--content ::slotted(calcite-flow){border-style:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel:not([closed])){border:var(--calcite-border-width-sm) solid var(--calcite-shell-border-color, var(--calcite-color-border-3))}:host([position=start]:not([slot=panel-end])) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]:not([slot=panel-end])) .content ::slotted(calcite-flow),:host([position=start]:not([slot=panel-end])) .content ::slotted(calcite-panel),:host([position=end][slot=panel-start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end][slot=panel-start]) .content ::slotted(calcite-flow),:host([position=end][slot=panel-start]) .content ::slotted(calcite-panel){border-inline-start:none}:host([resizable][layout=vertical]) .content ::slotted(calcite-flow),:host([resizable][layout=vertical]) .content ::slotted(calcite-panel){border-inline-start:none;border-inline-end:none}:host([resizable][layout=horizontal]) .content ::slotted(calcite-flow),:host([resizable][layout=horizontal]) .content ::slotted(calcite-panel){border-block-start:none;border-block-end:none}:host([position=end]:not([slot=panel-start])) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]:not([slot=panel-start])) .content ::slotted(calcite-flow),:host([position=end]:not([slot=panel-start])) .content ::slotted(calcite-panel),:host([position=start][slot=panel-end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start][slot=panel-end]) .content ::slotted(calcite-flow),:host([position=start][slot=panel-end]) .content ::slotted(calcite-panel){border-inline-end:none}:host([layout=horizontal]) slot[name=action-bar]::slotted(calcite-action-bar){border-inline:0}:host([layout=horizontal][position=start]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=start]) .content ::slotted(calcite-panel){border-inline:0;border-block-start:0}:host([layout=horizontal][position=end]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=end]) .content ::slotted(calcite-panel){border-inline:0;border-block-end:0}:host([display-mode=dock]) .resize-handle-bar,:host([display-mode=float-all]) .resize-handle-bar,:host([display-mode=overlay]) .resize-handle-bar{border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
16
|
+
const styles = css`:host{position:relative;pointer-events:none;display:flex;flex:0 1 auto;align-items:stretch;z-index:var(--calcite-shell-panel-z-index, var(--calcite-z-index));--calcite-shell-panel-max-height: unset;--calcite-internal-shell-panel-shadow-block-start: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-block-end: 0 -4px 8px -1px rgba(0, 0, 0, .08), 0 -2px 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-start: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-end: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04)}.calcite--rtl.content--overlay{--calcite-internal-shell-panel-shadow-inline-start: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-end: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04)}:host([layout=vertical]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-z-index) + 1))}:host([layout=vertical][display-mode=overlay]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-z-index-header) + 1))}:host([layout=vertical][display-mode=float-all]) .content{flex:2}:host([layout=vertical]:not([display-mode=float-all])) .width-s{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 12vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 300px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 150px)}:host([layout=vertical][display-mode=float-all]) .width-s{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 12vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 150px)}:host([layout=vertical]:not([display-mode=float-all])) .width-m{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 20vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 420px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 240px)}:host([layout=vertical][display-mode=float-all]) .width-m{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 20vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 240px)}:host([layout=vertical]:not([display-mode=float-all])) .width-l{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 45vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 680px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 340px)}:host([layout=vertical][display-mode=float-all]) .width-l{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 45vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 340px)}:host([layout=horizontal]) .content{--calcite-internal-shell-panel-height: var(--calcite-shell-panel-height);--calcite-internal-shell-panel-min-height: var(--calcite-shell-panel-min-height, 5vh);--calcite-internal-shell-panel-max-height: var(--calcite-shell-panel-max-height, 30vh)}:host([layout=horizontal]) .height-s{--calcite-internal-shell-panel-height: var(--calcite-shell-panel-height);--calcite-internal-shell-panel-min-height: var(--calcite-shell-panel-min-height, 5vh);--calcite-internal-shell-panel-max-height: var(--calcite-shell-panel-max-height, 20vh)}:host([layout=horizontal]) .height-l{--calcite-internal-shell-panel-height: var(--calcite-shell-panel-height);--calcite-internal-shell-panel-min-height: var(--calcite-shell-panel-min-height, 5vh);--calcite-internal-shell-panel-max-height: var(--calcite-shell-panel-max-height, 40vh)}:host([display-mode=float-all][height=s]),:host([display-mode=float-all][height-scale=s]) .content{min-block-size:var(--calcite-shell-panel-height, 20vh)}:host([display-mode=float-all][height=m]),:host([display-mode=float-all][height-scale=m]) .content{min-block-size:var(--calcite-shell-panel-height, 30vh)}:host([display-mode=float-all][height=l]),:host([display-mode=float-all][height-scale=l]) .content{min-block-size:var(--calcite-shell-panel-height, 40vh)}.container{font-size:var(--calcite-font-size-relative-base);pointer-events:none;box-sizing:border-box;display:flex;flex:1 1 auto;align-items:stretch;background-color:var(--calcite-color-transparent);block-size:100%;color:var(--calcite-shell-panel-text-color, var(--calcite-color-text-2))}.container *{box-sizing:border-box}.container.float-all{margin-block:var(--calcite-theme-space-sm, var(--calcite-spacing-sm));margin-inline:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}.float-all{max-block-size:var(--calcite-internal-shell-panel-max-height, calc(100% - 1rem) );box-shadow:var(--calcite-shell-panel-shadow, var(--calcite-shadow-sm));border-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)));overflow:hidden}:host([layout=vertical][position=start]) .float-all{border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-shell-panel-border-color, var(--calcite-color-border-3))}:host([layout=vertical][position=end]) .float-all{border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-shell-border-color, var(--calcite-shell-panel-border-color, var(--calcite-color-border-3)))}:host([layout=horizontal]) .float-all{border-inline:var(--calcite-border-width-sm) solid var(--calcite-shell-border-color, var(--calcite-shell-panel-border-color, var(--calcite-color-border-3)))}:host([layout=horizontal]) .container{inline-size:100%;block-size:auto;flex-direction:column}.resize-handle{outline:var(--calcite-border-width-md) solid transparent;outline-offset:var(--calcite-border-width-md);position:absolute;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;box-sizing:border-box;--calcite-internal-shell-panel-resize-handle-offset: calc( (var(--calcite-size-fixed-xxl) - var(--calcite-size-fixed-sm-plus)) / 2 * -1 );z-index:var(--calcite-z-index-header);touch-action:none}.resize-handle:active .resize-handle-bar,.resize-handle:hover .resize-handle-bar{color:var(--calcite-shell-panel-resize-icon-color, var(--calcite-color-text-1));background-color:var(--calcite-shell-panel-resize-background-color, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)))}.resize-handle-bar{display:flex;justify-content:center;align-items:center;pointer-events:none;color:var(--calcite-shell-panel-resize-icon-color, var(--calcite-color-border-input));background-color:var(--calcite-shell-panel-resize-background-color, var(--calcite-theme-color-surface-1, var(--calcite-color-background)))}.resize-handle:focus .resize-handle-bar{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)))}:host([position=start][layout=vertical]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);inset-inline-end:var(--calcite-internal-shell-panel-resize-handle-offset);block-size:100%}:host([position=start][layout=vertical]) .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-shell-border-color, var(--calcite-color-border-3))}:host([position=start][layout=vertical]):host([display-mode^=float]) .resize-handle-bar{border-start-end-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)));border-end-end-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)))}:host([position=end][layout=vertical]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);inset-inline-start:var(--calcite-internal-shell-panel-resize-handle-offset);block-size:100%}:host([position=end][layout=vertical]) .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-shell-border-color, var(--calcite-color-border-3))}:host([position=end][layout=vertical]):host([display-mode^=float]) .resize-handle-bar{border-start-start-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)));border-end-start-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)))}:host([position=start][layout=horizontal]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-end:var(--calcite-internal-shell-panel-resize-handle-offset)}:host([position=start][layout=horizontal]) .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-shell-border-color, var(--calcite-color-border-3))}:host([position=start][layout=horizontal]):host([display-mode^=float]) .resize-handle-bar{border-end-end-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)));border-end-start-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)))}:host([position=end][layout=horizontal]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-start:var(--calcite-internal-shell-panel-resize-handle-offset)}:host([position=end][layout=horizontal]) .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-shell-border-color, var(--calcite-color-border-3))}:host([position=end][layout=horizontal]):host([display-mode^=float]) .resize-handle-bar{border-start-start-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)));border-start-end-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)))}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%;inline-size:100%;flex:1 1 auto;max-block-size:unset;max-inline-size:unset}.action-bar-container{pointer-events:auto;display:flex;flex:1 1 auto;box-sizing:border-box}.content-container{display:flex;flex:1 1 auto;align-items:stretch;align-self:stretch;position:relative;box-sizing:border-box;inline-size:100%;block-size:100%}:host([layout=horizontal]) .action-bar-container,:host([layout=horizontal]) .content-container{flex-direction:column}.content{pointer-events:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-self:stretch;padding:var(--calcite-space-none);position:relative;box-sizing:border-box;flex:1 1 auto;background-color:var(--calcite-shell-panel-background-color, var(--calcite-theme-color-surface-1, var(--calcite-color-background)));transition:max-block-size var(--calcite-animation-timing),max-inline-size var(--calcite-animation-timing)}:host([layout=vertical]:not([display-mode=float-all])) .content{inline-size:var(--calcite-internal-shell-panel-width);max-inline-size:var(--calcite-internal-shell-panel-max-width);min-inline-size:var(--calcite-internal-shell-panel-min-width)}:host([layout=vertical][display-mode=float-all]) .content{inline-size:var(--calcite-internal-shell-panel-width);min-inline-size:var(--calcite-internal-shell-panel-min-width)}:host([layout=horizontal]) .content{block-size:var(--calcite-internal-shell-panel-height);max-block-size:var(--calcite-internal-shell-panel-max-height);min-block-size:var(--calcite-internal-shell-panel-min-height)}:host([resizable][layout=vertical][position=start]) .content{padding-inline-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][layout=vertical][position=end]) .content{padding-inline-start:var(--calcite-size-fixed-sm-plus)}:host([resizable][layout=horizontal][position=start]) .content{padding-block-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][layout=horizontal][position=end]) .content{padding-block-start:var(--calcite-size-fixed-sm-plus)}.content__header{display:flex;flex:0 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.content--overlay{position:absolute;box-shadow:var(--calcite-shell-panel-shadow, var(--calcite-shadow-sm))}:host([layout=vertical]) .content--overlay{inset-block-start:var(--calcite-space-none);block-size:100%}:host([layout=horizontal]) .content--overlay{inset-inline-start:var(--calcite-space-none);inline-size:100%}:host([layout=vertical][position=start]) .content--overlay{inset-inline-start:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-inline-start)}:host([layout=vertical][position=end]) .content--overlay{inset-inline-end:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-inline-end)}:host([layout=horizontal][position=start]) .content--overlay{inset-block-start:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-block-start)}:host([layout=horizontal][position=end]) .content--overlay{inset-block-end:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-block-end)}.float--content{margin-block-end:auto;block-size:auto;overflow:hidden;box-shadow:var(--calcite-shell-panel-shadow, var(--calcite-shadow-sm));border-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-theme-corner-radius-sm, var(--calcite-corner-radius-round)));margin-inline:var(--calcite-theme-space-sm, var(--calcite-spacing-sm));margin-block-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm));max-block-size:var(--calcite-internal-shell-panel-max-height, calc(100% - 1rem) )}.float--content ::slotted(calcite-panel),.float--content ::slotted(calcite-flow){max-block-size:unset}:host([layout=horizontal]) .float--content{margin-block:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([position=start]) .float--content ::slotted(calcite-panel),:host([position=start]) .float--content ::slotted(calcite-flow),:host([position=end]) .float--content ::slotted(calcite-panel),:host([position=end]) .float--content ::slotted(calcite-flow){border-style:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel:not([closed])){border:var(--calcite-border-width-sm) solid var(--calcite-shell-border-color, var(--calcite-color-border-3))}:host([position=start]:not([slot=panel-end])) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]:not([slot=panel-end])) .content ::slotted(calcite-flow),:host([position=start]:not([slot=panel-end])) .content ::slotted(calcite-panel),:host([position=end][slot=panel-start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end][slot=panel-start]) .content ::slotted(calcite-flow),:host([position=end][slot=panel-start]) .content ::slotted(calcite-panel){border-inline-start:none}:host([resizable][layout=vertical]) .content ::slotted(calcite-flow),:host([resizable][layout=vertical]) .content ::slotted(calcite-panel){border-inline-start:none;border-inline-end:none}:host([resizable][layout=horizontal]) .content ::slotted(calcite-flow),:host([resizable][layout=horizontal]) .content ::slotted(calcite-panel){border-block-start:none;border-block-end:none}:host([position=end]:not([slot=panel-start])) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]:not([slot=panel-start])) .content ::slotted(calcite-flow),:host([position=end]:not([slot=panel-start])) .content ::slotted(calcite-panel),:host([position=start][slot=panel-end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start][slot=panel-end]) .content ::slotted(calcite-flow),:host([position=start][slot=panel-end]) .content ::slotted(calcite-panel){border-inline-end:none}:host([layout=horizontal]) slot[name=action-bar]::slotted(calcite-action-bar){border-inline:0}:host([layout=horizontal][position=start]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=start]) .content ::slotted(calcite-panel){border-inline:0;border-block-start:0}:host([layout=horizontal][position=end]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=end]) .content ::slotted(calcite-panel){border-inline:0;border-block-end:0}:host([display-mode=dock]) .resize-handle-bar,:host([display-mode=float-all]) .resize-handle-bar,:host([display-mode=overlay]) .resize-handle-bar{border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
17
17
|
class ShellPanel extends LitElement {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
@@ -68,6 +68,9 @@ class ShellPanel extends LitElement {
|
|
|
68
68
|
this.refreshResize();
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
+
load() {
|
|
72
|
+
this.listenOn(window, "resize", this.handleWindowResize);
|
|
73
|
+
}
|
|
71
74
|
willUpdate(changes) {
|
|
72
75
|
let shouldRefreshResize = false;
|
|
73
76
|
if (changes.has("layout") && (this.hasUpdated || this.layout !== "vertical")) {
|
|
@@ -99,6 +102,11 @@ class ShellPanel extends LitElement {
|
|
|
99
102
|
super.disconnectedCallback();
|
|
100
103
|
this.cleanUpInteractions();
|
|
101
104
|
}
|
|
105
|
+
handleWindowResize() {
|
|
106
|
+
if (this.resizable && !this.collapsed) {
|
|
107
|
+
this.refreshResize();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
102
110
|
updateSizeInternal(size) {
|
|
103
111
|
if (!this.contentRef.value) {
|
|
104
112
|
return;
|
|
@@ -306,7 +314,7 @@ class ShellPanel extends LitElement {
|
|
|
306
314
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
307
315
|
[CSS.content]: true,
|
|
308
316
|
[CSS.contentOverlay]: displayMode === "overlay",
|
|
309
|
-
[CSS.floatContent]: displayMode === "float-content"
|
|
317
|
+
[CSS.floatContent]: displayMode === "float-content",
|
|
310
318
|
[CSS_UTILITY.calciteAnimate]: displayMode === "overlay",
|
|
311
319
|
[getAnimationDir()]: displayMode === "overlay",
|
|
312
320
|
[getDimensionClass("width", this.width, this.widthScale)]: !!(this.width || this.widthScale),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type DisplayMode = "dock" | "
|
|
1
|
+
export type DisplayMode = "dock" | "overlay" | "float-content" | "float-all";
|
|
@@ -6,7 +6,7 @@ import { LitElement, createEvent, stringOrBoolean, setAttribute, safeClassMap, s
|
|
|
6
6
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
7
|
import { useDirection } from "@arcgis/lumina/controllers";
|
|
8
8
|
import { g as guid } from "../../chunks/guid.js";
|
|
9
|
-
import {
|
|
9
|
+
import { j as isPrimaryPointerButton, A as intersects } from "../../chunks/dom.js";
|
|
10
10
|
import { I as InternalLabel } from "../../chunks/InternalLabel.js";
|
|
11
11
|
import { V as Validation } from "../../chunks/Validation.js";
|
|
12
12
|
import { i as isActivationKey } from "../../chunks/key.js";
|
|
@@ -54,7 +54,7 @@ const IDS = {
|
|
|
54
54
|
host: (id) => `${idPrefix}-${id}`
|
|
55
55
|
};
|
|
56
56
|
const maxTickElementThreshold = 250;
|
|
57
|
-
const styles = css`@charset "UTF-8";:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}.scale--s{--calcite-slider-handle-size: var(--calcite-space-sm-plus);--calcite-slider-handle-extension-height: .4rem;--calcite-slider-container-font-size: var(--calcite-font-size--3)}.scale--s .handle__label,.scale--s .tick__label{line-height:.75rem}.scale--m{--calcite-slider-handle-size: .875rem;--calcite-slider-handle-extension-height: .5rem;--calcite-slider-container-font-size: var(--calcite-font-size--2)}.scale--m .handle__label,.scale--m .tick__label{line-height:1rem}.scale--l{--calcite-slider-handle-size: 1rem;--calcite-slider-handle-extension-height: .65rem;--calcite-slider-container-font-size: var(--calcite-font-size--1)}.scale--l .handle__label,.scale--l .tick__label{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-slider-text-color, var(--calcite-color-text-2));font-size:var(--calcite-slider-container-font-size)}:host{display:block;inline-size:100%;min-inline-size:0}:host .validation-container{padding-block-start:0!important}.container{position:relative;display:block;overflow-wrap:normal;word-break:normal;padding-inline:calc(var(--calcite-slider-handle-size) * .5);padding-block:calc(var(--calcite-slider-handle-size) * .5);margin-block:calc(var(--calcite-slider-handle-size) * .5);margin-inline:0;--calcite-slider-full-handle-height: calc( var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height) );touch-action:none;-webkit-user-select:none;user-select:none}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-color-text-3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset: -.375rem}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset: -.5rem}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset: -.55rem}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset: calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-inline-size:100%}.thumb{--calcite-slider-thumb-x-offset: calc(var(--calcite-slider-handle-size) * .5);position:absolute;margin:0;display:flex;cursor:pointer;flex-direction:column;align-items:center;border-style:none;background-color:transparent;padding:0;font-family:inherit;outline:2px solid transparent;outline-offset:2px;transform:translate(var(--calcite-slider-thumb-x-offset),var(--calcite-slider-thumb-y-offset))}.thumb .handle__label{white-space:nowrap}.thumb .handle__label.static,.thumb .handle__label.transformed{position:absolute;inset-block:0px;opacity:0}.thumb .handle__label.hyphen:after{content:"—";display:inline-block;inline-size:1em}.thumb .handle__label.hyphen--wrap{display:flex}.thumb .handle{box-sizing:border-box;border-radius:9999px;outline-color:transparent;background-color:var(--calcite-slider-handle-fill-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));block-size:var(--calcite-slider-handle-size);inline-size:var(--calcite-slider-handle-size);box-shadow:0 0 0 2px var(--calcite-color-text-3) inset;transition:border var(--calcite-internal-animation-timing-medium) ease,background-color var(--calcite-internal-animation-timing-medium) ease,box-shadow var(--calcite-animation-timing) ease}.thumb .handle-extension{inline-size:.125rem;block-size:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-slider-handle-extension-color, var(--calcite-color-text-3))}.thumb:hover .handle{box-shadow:0 0 0 3px var(--calcite-color-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-slider-accent-color, var(--calcite-color-brand))}.thumb:focus .handle{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-theme-space-base, var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.thumb:focus .handle-extension{background-color:var(--calcite-slider-accent-color, var(--calcite-color-brand))}.thumb.thumb--minValue{transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1),var(--calcite-slider-thumb-y-offset))}.thumb.thumb--precise{--calcite-slider-thumb-y-offset: -.125rem}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset: 50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset: -1.4375rem}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset: -1.875rem}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset: -2rem}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{margin-block-start:.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{margin-block-end:.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset: -2.075rem}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset: -2.75rem}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset: -3.0625rem}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-slider-accent-color, var(--calcite-color-brand));box-shadow:0 0 8px #00000029}.thumb:hover.thumb--precise:after,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-slider-accent-color, var(--calcite-color-brand))}.track{position:relative;block-size:.125rem;background-color:var(--calcite-slider-track-color, var(--calcite-color-border-2));transition:all var(--calcite-internal-animation-timing-medium) ease-in;border-radius:var(--calcite-corner-radius)}.track__range{position:absolute;inset-block-start:0px;block-size:.125rem;background-color:var(--calcite-slider-track-fill-color, var(--calcite-color-brand));border-radius:var(--calcite-corner-radius)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{position:absolute;inline-size:100%;content:"";inset-block-start:calc(var(--calcite-slider-full-handle-height) * .5 * -1);block-size:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}@media(forced-colors:active){.thumb{outline-width:0;outline-offset:0}.handle{outline:2px solid transparent;outline-offset:2px}.thumb:focus .handle,.thumb .handle-extension,.thumb:hover .handle-extension,.thumb:focus .handle-extension,.thumb:active .handle-extension{background-color:canvasText}.track{background-color:canvasText}.track__range{background-color:highlight}}.tick{position:absolute;block-size:.25rem;inline-size:.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-slider-tick-color, var(--calcite-color-border-input));border-color:var(--calcite-slider-tick-border-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));inset-block-start:-2px;pointer-events:none;margin-inline-start:-.125rem}.tick--active{background-color:var(--calcite-slider-tick-selected-color, var(--calcite-color-brand))}.tick__label{pointer-events:none;margin-block-start:.875rem;display:flex;justify-content:center}.tick__label--min{transition:opacity var(--calcite-animation-timing)}.tick__label--max{transition:opacity var(--calcite-internal-animation-timing-fast)}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max,:host([has-histogram][precise]) .tick__label--min,:host([has-histogram][precise]) .tick__label--max{font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));color:var(--calcite-color-text-3)}.graph{color:var(--calcite-slider-graph-color, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)));block-size:48px}:host([label-ticks][ticks]) .container{padding-block-end:calc(.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{padding-block-end:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{padding-block-end:calc(var(--calcite-slider-handle-size) * .5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{padding-block-end:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{padding-block-start:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{padding-block-end:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{padding-block-start:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{padding-block-start:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container--range{padding-block-end:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}.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-theme-space-base, 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-theme-space-2xs, var(--calcite-spacing-xxs))}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-sm, 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-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-sm, 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-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-md, 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}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
57
|
+
const styles = css`@charset "UTF-8";:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}.scale--s{--calcite-slider-handle-size: var(--calcite-space-sm-plus);--calcite-slider-handle-extension-height: .4rem;--calcite-slider-container-font-size: var(--calcite-font-size--3)}.scale--s .handle__label,.scale--s .tick__label{line-height:.75rem}.scale--m{--calcite-slider-handle-size: .875rem;--calcite-slider-handle-extension-height: .5rem;--calcite-slider-container-font-size: var(--calcite-font-size--2)}.scale--m .handle__label,.scale--m .tick__label{line-height:1rem}.scale--l{--calcite-slider-handle-size: 1rem;--calcite-slider-handle-extension-height: .65rem;--calcite-slider-container-font-size: var(--calcite-font-size--1)}.scale--l .handle__label,.scale--l .tick__label{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-slider-text-color, var(--calcite-color-text-2));font-size:var(--calcite-slider-container-font-size)}:host{display:block;inline-size:100%;min-inline-size:0}:host .validation-container{padding-block-start:0!important}.container{position:relative;display:block;overflow-wrap:normal;word-break:normal;padding-inline:calc(var(--calcite-slider-handle-size) * .5);padding-block:calc(var(--calcite-slider-handle-size) * .5);margin-block:calc(var(--calcite-slider-handle-size) * .5);margin-inline:0;--calcite-slider-full-handle-height: calc( var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height) );touch-action:none;-webkit-user-select:none;user-select:none}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-color-text-3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset: -.375rem}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset: -.5rem}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset: -.55rem}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset: calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-inline-size:100%}.thumb{--calcite-slider-thumb-x-offset: calc(var(--calcite-slider-handle-size) * .5);outline:var(--calcite-border-width-md) solid transparent;outline-offset:var(--calcite-border-width-md);font-family:inherit;position:absolute;margin:var(--calcite-space-none);display:flex;cursor:pointer;flex-direction:column;align-items:center;border-style:none;background-color:var(--calcite-color-transparent);padding:var(--calcite-space-none);transform:translate(var(--calcite-slider-thumb-x-offset),var(--calcite-slider-thumb-y-offset))}.thumb .handle__label{white-space:nowrap}.thumb .handle__label.static,.thumb .handle__label.transformed{position:absolute;inset-block:var(--calcite-space-none);opacity:0}.thumb .handle__label.hyphen:after{content:"—";display:inline-block;inline-size:1em}.thumb .handle__label.hyphen--wrap{display:flex}.thumb .handle{outline-color:var(--calcite-color-transparent);box-sizing:border-box;border-radius:var(--calcite-corner-radius-pill);background-color:var(--calcite-slider-handle-fill-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));block-size:var(--calcite-slider-handle-size);inline-size:var(--calcite-slider-handle-size);box-shadow:0 0 0 2px var(--calcite-color-text-3) inset;transition:border var(--calcite-internal-animation-timing-medium) ease,background-color var(--calcite-internal-animation-timing-medium) ease,box-shadow var(--calcite-animation-timing) ease}.thumb .handle-extension{inline-size:.125rem;block-size:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-slider-handle-extension-color, var(--calcite-color-text-3))}.thumb:hover .handle{box-shadow:0 0 0 3px var(--calcite-color-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-slider-accent-color, var(--calcite-color-brand))}.thumb:focus .handle{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-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}.thumb:focus .handle-extension{background-color:var(--calcite-slider-accent-color, var(--calcite-color-brand))}.thumb.thumb--minValue{transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1),var(--calcite-slider-thumb-y-offset))}.thumb.thumb--precise{--calcite-slider-thumb-y-offset: -.125rem}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset: 50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset: -1.4375rem}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset: -1.875rem}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset: -2rem}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{margin-block-start:.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{margin-block-end:.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset: -2.075rem}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset: -2.75rem}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset: -3.0625rem}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-slider-accent-color, var(--calcite-color-brand));box-shadow:0 0 8px #00000029}.thumb:hover.thumb--precise:after,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-slider-accent-color, var(--calcite-color-brand))}.track{position:relative;block-size:.125rem;background-color:var(--calcite-slider-track-color, var(--calcite-color-border-2));transition:all var(--calcite-internal-animation-timing-medium) ease-in;border-radius:var(--calcite-corner-radius)}.track__range{position:absolute;inset-block-start:var(--calcite-space-none);block-size:.125rem;background-color:var(--calcite-slider-track-fill-color, var(--calcite-color-brand));border-radius:var(--calcite-corner-radius)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{position:absolute;inline-size:100%;content:"";inset-block-start:calc(var(--calcite-slider-full-handle-height) * .5 * -1);block-size:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}@media(forced-colors:active){.thumb{outline-width:0;outline-offset:0}.handle{outline:var(--calcite-border-width-md) solid transparent;outline-offset:var(--calcite-border-width-md)}.thumb:focus .handle,.thumb .handle-extension,.thumb:hover .handle-extension,.thumb:focus .handle-extension,.thumb:active .handle-extension{background-color:canvasText}.track{background-color:canvasText}.track__range{background-color:highlight}}.tick{position:absolute;block-size:var(--calcite-space-2xs);inline-size:.125rem;border-width:var(--calcite-border-width-sm);border-style:solid;background-color:var(--calcite-slider-tick-color, var(--calcite-color-border-input));border-color:var(--calcite-slider-tick-border-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));inset-block-start:-2px;pointer-events:none;margin-inline-start:-.125rem}.tick--active{background-color:var(--calcite-slider-tick-selected-color, var(--calcite-color-brand))}.tick__label{pointer-events:none;margin-block-start:var(--calcite-space-md-plus);display:flex;justify-content:center}.tick__label--min{transition:opacity var(--calcite-animation-timing)}.tick__label--max{transition:opacity var(--calcite-internal-animation-timing-fast)}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max,:host([has-histogram][precise]) .tick__label--min,:host([has-histogram][precise]) .tick__label--max{color:var(--calcite-color-text-3);font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal))}.graph{color:var(--calcite-slider-graph-color, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)));block-size:48px}:host([label-ticks][ticks]) .container{padding-block-end:calc(.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{padding-block-end:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{padding-block-end:calc(var(--calcite-slider-handle-size) * .5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{padding-block-end:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{padding-block-start:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{padding-block-end:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{padding-block-start:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{padding-block-start:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container--range{padding-block-end:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}.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-theme-space-base, 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-theme-space-2xs, var(--calcite-spacing-xxs))}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-sm, 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-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-sm, 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-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-md, 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}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
58
58
|
function isRange(value) {
|
|
59
59
|
return Array.isArray(value);
|
|
60
60
|
}
|
|
@@ -149,7 +149,7 @@ class Slider extends LitElement {
|
|
|
149
149
|
this.dragEnd(event);
|
|
150
150
|
};
|
|
151
151
|
this.trackRef = createRef();
|
|
152
|
-
this.focusSetter = useFocusable()(this);
|
|
152
|
+
this.focusSetter = useFocusable()(this).setFocus;
|
|
153
153
|
this.interactiveContainer = useInteractive(this);
|
|
154
154
|
this._value = defaultValue;
|
|
155
155
|
this.activeProp = "value";
|
|
@@ -30,11 +30,11 @@ const IDS = {
|
|
|
30
30
|
move: "move",
|
|
31
31
|
reorder: "reorder"
|
|
32
32
|
};
|
|
33
|
-
const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none
|
|
33
|
+
const styles = css`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}.dropdown{block-size:100%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
34
34
|
class SortHandle extends LitElement {
|
|
35
35
|
constructor() {
|
|
36
36
|
super(...arguments);
|
|
37
|
-
this.focusSetter = useFocusable()(this);
|
|
37
|
+
this.focusSetter = useFocusable()(this).setFocus;
|
|
38
38
|
this.interactiveContainer = useInteractive(this);
|
|
39
39
|
this.disabled = false;
|
|
40
40
|
this.messages = useT9n({ blocking: true });
|
|
@@ -38,7 +38,10 @@ export interface DeclareCssProperties {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* @slot - A slot for adding `calcite-dropdown` content.
|
|
43
|
+
* @docGroup Buttons
|
|
44
|
+
*/
|
|
42
45
|
export abstract class SplitButton extends LitElement {
|
|
43
46
|
/**
|
|
44
47
|
* Specifies the appearance style of the component.
|
|
@@ -138,11 +141,9 @@ export abstract class SplitButton extends LitElement {
|
|
|
138
141
|
/**
|
|
139
142
|
* Specifies the width of the component.
|
|
140
143
|
*
|
|
141
|
-
* [Deprecated] The `"half"` value is deprecated in v3.0.0, removal target v6.0.0 - use `"full"` instead.
|
|
142
|
-
*
|
|
143
144
|
* @default "auto"
|
|
144
145
|
*/
|
|
145
|
-
accessor width: Extract<Width, "auto" | "
|
|
146
|
+
accessor width: Extract<Width, "auto" | "full">;
|
|
146
147
|
/**
|
|
147
148
|
* Sets focus on the component's first focusable element.
|
|
148
149
|
*
|
|
@@ -18,11 +18,11 @@ const ICONS = {
|
|
|
18
18
|
ellipsis: "ellipsis",
|
|
19
19
|
handleVertical: "handle-vertical"
|
|
20
20
|
};
|
|
21
|
-
const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none
|
|
21
|
+
const styles = css`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block}:host([width=auto]){inline-size:auto}:host([width=full]){inline-size:100%}:host([kind=brand]){--calcite-internal-split-button-divider-border-color: var(--calcite-color-brand);--calcite-internal-split-button-divider-color: var( --calcite-theme-color-surface-2, var(--calcite-color-foreground-1) )}:host([kind=danger]){--calcite-internal-split-button-divider-border-color: var(--calcite-color-status-danger);--calcite-internal-split-button-divider-color: var( --calcite-theme-color-surface-2, var(--calcite-color-foreground-1) )}:host([kind=neutral]){--calcite-internal-split-button-divider-border-color: var( --calcite-theme-color-surface-4, var(--calcite-color-foreground-3) );--calcite-internal-split-button-divider-color: var(--calcite-color-text-1)}:host([kind=inverse]){--calcite-internal-split-button-divider-border-color: var(--calcite-color-inverse);--calcite-internal-split-button-divider-color: var( --calcite-theme-color-surface-2, var(--calcite-color-foreground-1) )}:host([appearance=transparent]){--calcite-internal-split-button-divider-border-color: transparent}:host([appearance=transparent]):host([kind=brand]){--calcite-internal-split-button-divider-color: var(--calcite-color-brand)}:host([appearance=transparent]):host([kind=danger]){--calcite-internal-split-button-divider-color: var(--calcite-color-status-danger)}:host([appearance=transparent]):host([kind=neutral]){--calcite-internal-split-button-divider-color: var(--calcite-color-text-1)}:host([appearance=transparent]):host([kind=inverse]){--calcite-internal-split-button-divider-color: var( --calcite-theme-color-surface-2, var(--calcite-color-foreground-1) )}:host([appearance=outline]):host([kind=brand]),:host([appearance=outline]):host([kind=danger]),:host([appearance=outline]):host([kind=neutral]),:host([appearance=outline]):host([kind=inverse]){--calcite-internal-split-button-divider-border-color: transparent}:host([appearance=outline-fill]):host([kind=brand]),:host([appearance=outline-fill]):host([kind=danger]),:host([appearance=outline-fill]):host([kind=neutral]),:host([appearance=outline-fill]):host([kind=inverse]){--calcite-internal-split-button-divider-border-color: var( --calcite-theme-color-surface-1, var(--calcite-color-background) )}:host([appearance=outline]):host([kind=brand]),:host([appearance=outline-fill]):host([kind=brand]){--calcite-internal-split-button-divider-color: var(--calcite-color-brand)}:host([appearance=outline]):host([kind=danger]),:host([appearance=outline-fill]):host([kind=danger]){--calcite-internal-split-button-divider-color: var(--calcite-color-status-danger)}:host([appearance=outline]):host([kind=neutral]),:host([appearance=outline-fill]):host([kind=neutral]){--calcite-internal-split-button-divider-color: var(--calcite-color-border-1)}:host([appearance=outline]):host([kind=inverse]),:host([appearance=outline-fill]):host([kind=inverse]){--calcite-internal-split-button-divider-color: var(--calcite-color-inverse)}.container{display:flex;align-items:stretch}.container>calcite-dropdown>calcite-button{block-size:100%;vertical-align:top}.divider-container{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;display:flex;inline-size:var(--calcite-space-px);align-items:stretch;background-color:var(--calcite-split-button-divider-color, var(--calcite-internal-split-button-divider-border-color))}.divider{margin-block:var(--calcite-space-2xs);display:inline-block;inline-size:var(--calcite-space-px);background-color:var(--calcite-split-button-divider-border-color, var(--calcite-internal-split-button-divider-color))}:host([appearance=outline-fill]) .divider-container,:host([appearance=outline]) .divider-container{border-block:1px solid var(--calcite-internal-split-button-divider-color)}:host([appearance=outline-fill]):hover .divider-container,:host([appearance=outline]):hover .divider-container{background-color:var(--calcite-internal-split-button-divider-color)}:host([appearance=outline-fill]:hover) .divider-container,:host([appearance=outline]:hover) .divider-container{background-color:var(--calcite-internal-split-button-divider-color)}:host([appearance=outline-fill]:focus-within):host([kind=brand]),:host([appearance=outline]:focus-within):host([kind=brand]){--calcite-internal-split-button-divider-color: var(--calcite-color-brand-press)}:host([appearance=outline-fill]:focus-within):host([kind=danger]),:host([appearance=outline]:focus-within):host([kind=danger]){--calcite-internal-split-button-divider-color: var(--calcite-color-danger-press)}:host([appearance=outline-fill]:focus-within) .divider-container,:host([appearance=outline]:focus-within) .divider-container{background-color:var(--calcite-internal-split-button-divider-color)}calcite-button[split-child=primary],calcite-button[split-child=secondary]{--calcite-button-background-color: var(--calcite-split-button-background-color);--calcite-button-border-color: var(--calcite-split-button-border-color);--calcite-button-text-color: var(--calcite-split-button-text-color);--calcite-button-icon-color: var(--calcite-split-button-icon-color);--calcite-button-loading-color: var(--calcite-split-button-loading-color);--calcite-button-shadow: var(--calcite-split-button-shadow)}calcite-button[split-child=primary]:hover,calcite-button[split-child=secondary]:hover{--calcite-button-background-color: var(--calcite-split-button-background-color-hover)}calcite-button[split-child=primary]:focus,calcite-button[split-child=secondary]:focus{--calcite-button-background-color: var(--calcite-split-button-background-color-focus)}calcite-button[split-child=primary]:active,calcite-button[split-child=secondary]:active{--calcite-button-background-color: var(--calcite-split-button-background-color-press)}calcite-button[split-child=primary]{--calcite-button-corner-radius: var(--calcite-split-button-corner-radius, var(--calcite-corner-radius)) var(--calcite-corner-radius-none) var(--calcite-corner-radius-none) var(--calcite-split-button-corner-radius, var(--calcite-corner-radius))}calcite-button[split-child=secondary]{--calcite-button-corner-radius: var(--calcite-corner-radius-none) var(--calcite-split-button-corner-radius, var(--calcite-corner-radius)) var(--calcite-split-button-corner-radius, var(--calcite-corner-radius)) var(--calcite-corner-radius-none)}calcite-dropdown{--calcite-dropdown-shadow: var(--calcite-split-button-dropdown-shadow);--calcite-dropdown-background-color: var(--calcite-split-button-dropdown-background-color);--calcite-dropdown-width: var(--calcite-split-button-dropdown-width)}:host([disabled]) calcite-dropdown>calcite-button{pointer-events:none}:host([disabled]):host([appearance=outline-fill]) .divider-container{background-color:var(--calcite-theme-color-surface-1, var(--calcite-color-background))}:host([disabled]):host([appearance=outline]) .divider-container{background-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
22
22
|
class SplitButton extends LitElement {
|
|
23
23
|
constructor() {
|
|
24
24
|
super(...arguments);
|
|
25
|
-
this.focusSetter = useFocusable()(this);
|
|
25
|
+
this.focusSetter = useFocusable()(this).setFocus;
|
|
26
26
|
this.interactiveContainer = useInteractive(this);
|
|
27
27
|
this.active = false;
|
|
28
28
|
this.appearance = "solid";
|
|
@@ -5,7 +5,7 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
5
5
|
import { LitElement, safeClassMap } from "@arcgis/lumina";
|
|
6
6
|
import { s as slotChangeHasAssignedElement } from "../../chunks/dom.js";
|
|
7
7
|
import { S as SLOTS, C as CSS } from "../../chunks/resources19.js";
|
|
8
|
-
const styles = css`:host([disabled]) .content{cursor:default;-webkit-user-select:none;user-select:none
|
|
8
|
+
const styles = css`:host([disabled]) .content{opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) .content *,:host([disabled]) .content ::slotted(*){pointer-events:none}:host{display:flex;flex-direction:column;flex:1 1 0%}.container{color:var(--calcite-color-text-2);display:flex;flex:1 1 auto;font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));align-items:stretch}.content{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;padding-inline:var(--calcite-stack-padding-inline, .75rem);padding-block:var(--calcite-stack-padding-block, .5rem)}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:0 1 auto}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){align-self:center;margin-inline:var(--calcite-space-md)}.actions-start,.actions-end,.content-start,.content-end{display:flex;align-items:center}.actions-start ::slotted(calcite-action),.actions-start ::slotted(calcite-action-menu),.actions-start ::slotted(calcite-sort-handle),.actions-start ::slotted(calcite-dropdown),.actions-end ::slotted(calcite-action),.actions-end ::slotted(calcite-action-menu),.actions-end ::slotted(calcite-sort-handle),.actions-end ::slotted(calcite-dropdown){align-self:stretch;color:inherit}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
9
9
|
class Stack extends LitElement {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments);
|