@esri/calcite-components 3.0.0-next.98 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/22RQB3WE.js +4 -0
- package/dist/calcite/{YGZZRAVL.js → 24SER2VV.js} +4 -6
- package/dist/calcite/2BGMAPSV.js +4 -0
- package/dist/calcite/2JKKAEPM.js +4 -0
- package/dist/calcite/{DMND3N53.js → 2M4WCGKG.js} +4 -6
- package/dist/calcite/2YAXZHP2.js +4 -0
- package/dist/calcite/{7D6Q26CZ.js → 345Q4UHX.js} +4 -6
- package/dist/calcite/{LPR4PB3U.js → 36DMRAV2.js} +4 -6
- package/dist/calcite/{XTM45ICH.js → 3DGJ6ZQI.js} +4 -6
- package/dist/calcite/3GICXOBQ.js +4 -0
- package/dist/calcite/3IV6JSC2.js +4 -0
- package/dist/calcite/{DOD4WFTZ.js → 3TOVZEQB.js} +4 -6
- package/dist/calcite/45GA6INB.js +4 -0
- package/dist/calcite/46U4MKUU.js +4 -0
- package/dist/calcite/4BSCJ722.js +4 -0
- package/dist/calcite/4SEPDFCP.js +5 -0
- package/dist/calcite/{EU3H7BCA.js → 4TQLSUKH.js} +4 -6
- package/dist/calcite/4YZ27QWL.js +4 -0
- package/dist/calcite/4Z7JRTON.js +4 -0
- package/dist/calcite/5AVZLE2Q.js +4 -0
- package/dist/calcite/{3AK4X5OV.js → 5EPP4MG3.js} +4 -6
- package/dist/calcite/{FPFTHRY6.js → 66B2H27W.js} +4 -6
- package/dist/calcite/6LW27BEV.js +4 -0
- package/dist/calcite/6OZRZ36X.js +4 -0
- package/dist/calcite/6X2SD2PW.js +4 -0
- package/dist/calcite/{ZGJB2ECH.js → 6XTYGXNG.js} +4 -6
- package/dist/calcite/6ZTWHW63.js +4 -0
- package/dist/calcite/{YFZLUYQJ.js → 7D3VEEUX.js} +4 -6
- package/dist/calcite/7E342YOK.js +4 -0
- package/dist/calcite/{3XOYD44L.js → 7KSGVDSR.js} +4 -6
- package/dist/calcite/{6FWANW5T.js → 7PWETOIU.js} +4 -6
- package/dist/calcite/7QHUEK5R.js +4 -0
- package/dist/calcite/{NSKFJMNX.js → 7SX3RD7P.js} +4 -6
- package/dist/calcite/7U7FF3Y4.js +4 -0
- package/dist/calcite/7WG5I3MP.js +4 -0
- package/dist/calcite/{ADB3AYG3.js → A5GGYTUQ.js} +4 -6
- package/dist/calcite/{BRBFCQO2.js → AI3R3SU6.js} +5 -7
- package/dist/calcite/ARHYATTG.js +4 -0
- package/dist/calcite/{WMVGOOU2.js → ATHBUWBY.js} +4 -6
- package/dist/calcite/AXXJNFKZ.js +4 -0
- package/dist/calcite/{FG7MNK63.js → AYZ73RWQ.js} +4 -6
- package/dist/calcite/{NWOFVES6.js → BAHIPAHM.js} +4 -6
- package/dist/calcite/BRTDMTZ3.js +4 -0
- package/dist/calcite/BRTESQOJ.js +4 -0
- package/dist/calcite/{67NDJDQ5.js → BSRMWMHQ.js} +4 -6
- package/dist/calcite/{AZIIYZ5O.js → BZKF5ZXQ.js} +4 -6
- package/dist/calcite/C46JYVUP.js +4 -0
- package/dist/calcite/C54C5E23.js +4 -0
- package/dist/calcite/CBSMKHOY.js +4 -0
- package/dist/calcite/CFRBQXK4.js +4 -0
- package/dist/calcite/CIV3PH3Z.js +4 -0
- package/dist/calcite/CJYTY62F.js +4 -0
- package/dist/calcite/CK6HQQX6.js +4 -0
- package/dist/calcite/CMO3X257.js +4 -0
- package/dist/calcite/{SKMMQQJV.js → CNO6NFH5.js} +4 -6
- package/dist/calcite/CWPRBG3T.js +4 -0
- package/dist/calcite/CY6C2FDZ.js +4 -0
- package/dist/calcite/D2HDFE7S.js +22 -0
- package/dist/calcite/D36VWSDW.js +4 -0
- package/dist/calcite/{DALSMKYG.js → DBVNMM6Q.js} +4 -6
- package/dist/calcite/{HOWCGXPH.js → DDJ75RTI.js} +4 -6
- package/dist/calcite/DH4ISGHV.js +4 -0
- package/dist/calcite/{L6U5SH5H.js → DNYBIAUI.js} +4 -6
- package/dist/calcite/DT67ZFPX.js +4 -0
- package/dist/calcite/{TMHRMF76.js → DTL2LM6T.js} +4 -6
- package/dist/calcite/E3R5SMVW.js +4 -0
- package/dist/calcite/{MZ3KHKD7.js → E4NMFIKN.js} +4 -6
- package/dist/calcite/{KVSVZ6K7.js → EAML4EDI.js} +4 -6
- package/dist/calcite/{AJSU4WDN.js → ECEZ4R6E.js} +4 -6
- package/dist/calcite/EFI2G5WL.js +4 -0
- package/dist/calcite/EHZCT5YZ.js +4 -0
- package/dist/calcite/{NHHVXBWF.js → EOHVH6PN.js} +4 -6
- package/dist/calcite/ESBOJTBS.js +4 -0
- package/dist/calcite/F6EGRKXW.js +4 -0
- package/dist/calcite/FCN5RMLA.js +4 -0
- package/dist/calcite/FDIM6DYL.js +4 -0
- package/dist/calcite/FE3A3YUN.js +4 -0
- package/dist/calcite/FHBFGCTR.js +4 -0
- package/dist/calcite/FNFWOOMR.js +4 -0
- package/dist/calcite/{X4JV7QBZ.js → FNM4DZZH.js} +3 -5
- package/dist/calcite/G2KHDAZD.js +4 -0
- package/dist/calcite/{4YTV42YC.js → G3LH75CQ.js} +4 -6
- package/dist/calcite/{TJJNESY6.js → G3ZJ2KQT.js} +4 -6
- package/dist/calcite/{V7O3TS4K.js → G7WFYVUC.js} +4 -6
- package/dist/calcite/{C6D6T2QL.js → GAAXSGWK.js} +4 -6
- package/dist/calcite/{GIWNYIWI.js → GE63ETFI.js} +4 -6
- package/dist/calcite/{JAQBT7O2.js → GFC7NS6P.js} +4 -6
- package/dist/calcite/GGO5TMB4.js +4 -0
- package/dist/calcite/GKKCWEZX.js +4 -0
- package/dist/calcite/GN5CPLSJ.js +4 -0
- package/dist/calcite/GNUSLZWJ.js +4 -0
- package/dist/calcite/{7XR7JSFK.js → GOOHYN3D.js} +4 -6
- package/dist/calcite/GPUFLCIT.js +4 -0
- package/dist/calcite/GSXEMGSW.js +4 -0
- package/dist/calcite/GYQTRH4V.js +4 -0
- package/dist/calcite/HFIRIAQA.js +4 -0
- package/dist/calcite/{UR74R23Y.js → HGTV36FX.js} +4 -6
- package/dist/calcite/HKHPJJ34.js +4 -0
- package/dist/calcite/{Q2QY7ZFK.js → HMVKZP47.js} +4 -6
- package/dist/calcite/I2OIH73C.js +4 -0
- package/dist/calcite/{4GZ2XBON.js → I32TMNTO.js} +3 -5
- package/dist/calcite/{OEZ2ZO2E.js → I62DUDHI.js} +4 -6
- package/dist/calcite/IH4RXHJJ.js +4 -0
- package/dist/calcite/{YUH32F6Q.js → IJCTXZQB.js} +4 -6
- package/dist/calcite/{SIKDPHI3.js → IXRMDUEL.js} +4 -6
- package/dist/calcite/IYDN67SF.js +4 -0
- package/dist/calcite/JCWM5Z43.js +4 -0
- package/dist/calcite/{OVBCCJSO.js → JEX42CPR.js} +4 -6
- package/dist/calcite/JFYDLHH7.js +4 -0
- package/dist/calcite/JLZYAYOL.js +4 -0
- package/dist/calcite/{YADF4OR7.js → JUNCR7R2.js} +4 -6
- package/dist/calcite/{AOOHSCUM.js → JVNEJ36Z.js} +4 -6
- package/dist/calcite/K3ZBW4GY.js +4 -0
- package/dist/calcite/{LRWFZNMG.js → KBDXI6DJ.js} +4 -6
- package/dist/calcite/{RXVA6IDK.js → KBNS3CCT.js} +4 -6
- package/dist/calcite/KI2NOBMU.js +4 -0
- package/dist/calcite/KSNEQFZX.js +4 -0
- package/dist/calcite/KSVYAIHK.js +4 -0
- package/dist/calcite/KULDQOV2.js +4 -0
- package/dist/calcite/KVSCG5E3.js +6 -0
- package/dist/calcite/{QMAVVMZX.js → KW57BHXD.js} +4 -6
- package/dist/calcite/{USPGSZKI.js → KWOOGTG2.js} +4 -6
- package/dist/calcite/L5FDXQMT.js +4 -0
- package/dist/calcite/{D6VMYOIF.js → LB5ATL5Q.js} +4 -6
- package/dist/calcite/LH7KSBQC.js +4 -0
- package/dist/calcite/{LELS4MNY.js → LHSAAMYQ.js} +4 -6
- package/dist/calcite/LILDCWFX.js +4 -0
- package/dist/calcite/LLSB73WA.js +4 -0
- package/dist/calcite/{4MHQTNLP.js → LOZEGKG2.js} +4 -6
- package/dist/calcite/{VB2CZH2R.js → MBQZPRQ5.js} +4 -6
- package/dist/calcite/MCSX2S5T.js +4 -0
- package/dist/calcite/{IVBFSESV.js → MIKGJ3NM.js} +4 -6
- package/dist/calcite/MPAVJ7UH.js +4 -0
- package/dist/calcite/{MZKQ2IE5.js → MPX2M2VX.js} +4 -6
- package/dist/calcite/{VUI2CUZB.js → MQYH4ONZ.js} +3 -5
- package/dist/calcite/MUWK32IE.js +4 -0
- package/dist/calcite/{34JGX2UT.js → MZRO54UT.js} +4 -6
- package/dist/calcite/N2BVYYYP.js +4 -0
- package/dist/calcite/{3LRPQHGC.js → N4MN6VQ7.js} +4 -6
- package/dist/calcite/{NOOS5KYH.js → N55N67N5.js} +4 -6
- package/dist/calcite/NODC2JA6.js +4 -0
- package/dist/calcite/{3REOX2WD.js → NVBNX55L.js} +4 -6
- package/dist/calcite/{6KHZB5QM.js → NWVCPRVB.js} +3 -5
- package/dist/calcite/{36NZNZAH.js → O4O3TSE5.js} +4 -6
- package/dist/calcite/OE2AH2NC.js +4 -0
- package/dist/calcite/OGED6PPP.js +4 -0
- package/dist/calcite/{P4HQU6WZ.js → OHOS32IT.js} +4 -6
- package/dist/calcite/{M66YCIAJ.js → OLMX7G3J.js} +3 -5
- package/dist/calcite/OOSULFCY.js +4 -0
- package/dist/calcite/OPBQNK7J.js +4 -0
- package/dist/calcite/OTHVFLNW.js +4 -0
- package/dist/calcite/{MDXVE52Q.js → OTUG3NVT.js} +4 -6
- package/dist/calcite/PNHR5K2L.js +4 -0
- package/dist/calcite/{M3DNGO5Z.js → PT2XMADA.js} +3 -5
- package/dist/calcite/PZLVQQMT.js +4 -0
- package/dist/calcite/{PVA5CRLN.js → QAYSDI3M.js} +3 -5
- package/dist/calcite/QCGLMLKW.js +4 -0
- package/dist/calcite/QHASLHZN.js +4 -0
- package/dist/calcite/QK2H5T7J.js +4 -0
- package/dist/calcite/QLKHJI4P.js +4 -0
- package/dist/calcite/QQ67AVDV.js +4 -0
- package/dist/calcite/{U7CNRHVY.js → QU33PBBI.js} +4 -6
- package/dist/calcite/QYGED6CL.js +4 -0
- package/dist/calcite/R3HMG2D6.js +4 -0
- package/dist/calcite/{2ILRHKYA.js → R4RMVIKH.js} +4 -6
- package/dist/calcite/R6GNPMSV.js +4 -0
- package/dist/calcite/{RCCGU5MD.js → RAFCSOOQ.js} +4 -6
- package/dist/calcite/{OKBJXUSY.js → RAQWKUOJ.js} +4 -6
- package/dist/calcite/RESHLE2Y.js +4 -0
- package/dist/calcite/RJLKHCRB.js +4 -0
- package/dist/calcite/RLSQLIV6.js +4 -0
- package/dist/calcite/{3EX47ZJ7.js → RMGYRZXR.js} +4 -6
- package/dist/calcite/RSAEDAEX.js +4 -0
- package/dist/calcite/{L4QPHNYB.js → RUTUU2EH.js} +4 -6
- package/dist/calcite/{GSK6RQ3K.js → RVMVJW6K.js} +4 -6
- package/dist/calcite/RVQMJBNS.js +4 -0
- package/dist/calcite/{IU2I5NQH.js → S76CXQTI.js} +4 -6
- package/dist/calcite/SBZ6VJ75.js +4 -0
- package/dist/calcite/SJKTCGW6.js +4 -0
- package/dist/calcite/{OZT7IOB4.js → SKDMJE3X.js} +3 -5
- package/dist/calcite/SMUXJLDL.js +4 -0
- package/dist/calcite/SYEQSDHG.js +4 -0
- package/dist/calcite/T3NRBBZP.js +4 -0
- package/dist/calcite/T5UPGHU3.js +4 -0
- package/dist/calcite/{J2OJW5GP.js → T6HODD4B.js} +4 -6
- package/dist/calcite/TNR5VZG2.js +4 -0
- package/dist/calcite/TQIVV2F7.js +4 -0
- package/dist/calcite/{FZ4CSZA4.js → TQTAM3XB.js} +4 -6
- package/dist/calcite/{XYFCDRYI.js → TSJJLMPA.js} +3 -5
- package/dist/calcite/{2WAX46W7.js → TVDZM7WT.js} +4 -6
- package/dist/calcite/U3WK4DZT.js +4 -0
- package/dist/calcite/U725E4ID.js +4 -0
- package/dist/calcite/UELGJSYH.js +4 -0
- package/dist/calcite/UJL3BWDH.js +4 -0
- package/dist/calcite/{5BEC7VI2.js → URM3R65T.js} +4 -6
- package/dist/calcite/US3PQV6O.js +4 -0
- package/dist/calcite/{LB35U4RB.js → V4JZRN7T.js} +4 -6
- package/dist/calcite/{AXDFDSSW.js → VCSXFNPO.js} +4 -6
- package/dist/calcite/VG7BJBFG.js +4 -0
- package/dist/calcite/{XB45LF7D.js → VJD4CRQ3.js} +4 -6
- package/dist/calcite/VMRLYKNI.js +4 -0
- package/dist/calcite/{J7S4FBW6.js → VNQNKQ2J.js} +4 -6
- package/dist/calcite/VST65PDC.js +4 -0
- package/dist/calcite/WKTGTKRJ.js +4 -0
- package/dist/calcite/WPAMFFBY.js +4 -0
- package/dist/calcite/{EMKF6OLE.js → WSGL37LB.js} +4 -6
- package/dist/calcite/{5NJCKLIQ.js → WWUBU6N5.js} +4 -6
- package/dist/calcite/{EW526JIT.js → X2UHFJHG.js} +4 -6
- package/dist/calcite/XBZLGRRI.js +4 -0
- package/dist/calcite/XOVG6UH3.js +4 -0
- package/dist/calcite/{HYEIYTTY.js → XT32TCZG.js} +3 -5
- package/dist/calcite/XXZIOSXQ.js +4 -0
- package/dist/calcite/{B4XI5JOK.js → Y6VF7HSM.js} +4 -6
- package/dist/calcite/YA5A7PJR.js +4 -0
- package/dist/calcite/{5I3PI5EW.js → YMRTHS5X.js} +4 -6
- package/dist/calcite/{SKJ5S6CA.js → YTRT5XZT.js} +4 -6
- package/dist/calcite/{PBQGOCJH.js → YXLQFMOA.js} +4 -6
- package/dist/calcite/{FCUAMZTR.js → YYJSHQR3.js} +3 -5
- package/dist/calcite/{5QSUEEHT.js → Z6GA347Y.js} +4 -6
- package/dist/calcite/{G76AKBKS.js → Z7VNUC77.js} +4 -6
- package/dist/calcite/ZA76CHET.js +4 -0
- package/dist/calcite/ZGXTLCGJ.js +4 -0
- package/dist/calcite/{57K4SYWS.js → ZQO6E4FO.js} +4 -6
- package/dist/calcite/ZV442E6X.js +4 -0
- package/dist/calcite/assets/icon/crosshair16.json +1 -0
- package/dist/calcite/assets/icon/crosshair24.json +1 -0
- package/dist/calcite/assets/icon/crosshair32.json +1 -0
- package/dist/calcite/assets/icon/dualImageArea16.json +1 -0
- package/dist/calcite/assets/icon/dualImageArea24.json +1 -0
- package/dist/calcite/assets/icon/dualImageArea32.json +1 -0
- package/dist/calcite/assets/icon/dualImageDistance16.json +1 -0
- package/dist/calcite/assets/icon/dualImageDistance24.json +1 -0
- package/dist/calcite/assets/icon/dualImageDistance32.json +1 -0
- package/dist/calcite/assets/icon/dualImageLocation16.json +1 -0
- package/dist/calcite/assets/icon/dualImageLocation24.json +1 -0
- package/dist/calcite/assets/icon/dualImageLocation32.json +1 -0
- package/dist/calcite/assets/icon/hammerCoin16.json +1 -0
- package/dist/calcite/assets/icon/hammerCoin24.json +1 -0
- package/dist/calcite/assets/icon/hammerCoin32.json +1 -0
- package/dist/calcite/assets/icon/hammerLock16.json +1 -0
- package/dist/calcite/assets/icon/hammerLock24.json +1 -0
- package/dist/calcite/assets/icon/hammerLock32.json +1 -0
- package/dist/calcite/assets/icon/utilityNetworkLayer16.json +1 -0
- package/dist/calcite/assets/icon/utilityNetworkLayer24.json +1 -0
- package/dist/calcite/assets/icon/utilityNetworkLayer32.json +1 -0
- package/dist/calcite/calcite.css +1 -1
- package/dist/calcite/calcite.esm.js +4 -6
- package/dist/chunks/ExpandToggle.js +3 -5
- package/dist/chunks/FloatingArrow.js +6 -8
- package/dist/chunks/Heading.js +3 -5
- package/dist/chunks/Validation.js +3 -5
- package/dist/chunks/_commonjsHelpers.js +3 -5
- package/dist/chunks/array.js +3 -5
- package/dist/chunks/component.js +13 -11
- package/dist/chunks/core.js +3 -5
- package/dist/chunks/date.js +3 -5
- package/dist/chunks/dom.js +218 -234
- package/dist/chunks/dynamicClasses.js +3 -5
- package/dist/chunks/filter.js +3 -5
- package/dist/chunks/floating-ui.js +61 -65
- package/dist/chunks/focusTrapComponent.js +25 -30
- package/dist/chunks/form.js +19 -21
- package/dist/chunks/global.js +14 -14
- package/dist/chunks/guid.js +3 -5
- package/dist/chunks/input.js +3 -5
- package/dist/chunks/interact.min.js +3 -5
- package/dist/chunks/interactive.js +3 -5
- package/dist/chunks/key.js +3 -5
- package/dist/chunks/label.js +7 -9
- package/dist/chunks/loadable.js +11 -22
- package/dist/chunks/locale.js +3 -5
- package/dist/chunks/logger.js +3 -5
- package/dist/chunks/math.js +3 -5
- package/dist/chunks/observers.js +3 -5
- package/dist/chunks/openCloseComponent.js +5 -7
- package/dist/chunks/resources.js +3 -5
- package/dist/chunks/resources2.js +3 -5
- package/dist/chunks/resources3.js +8 -14
- package/dist/chunks/resources4.js +3 -5
- package/dist/chunks/resources5.js +3 -5
- package/dist/chunks/resources6.js +3 -5
- package/dist/chunks/resources7.js +3 -5
- package/dist/chunks/responsive.js +9 -12
- package/dist/chunks/runtime.js +39 -43
- package/dist/chunks/sortableComponent.js +49 -39
- package/dist/chunks/text.js +3 -5
- package/dist/chunks/time.js +12 -14
- package/dist/chunks/useFocusTrap.js +49 -0
- package/dist/chunks/useT9n.js +3 -5
- package/dist/chunks/utils.js +19 -17
- package/dist/chunks/utils2.js +3 -5
- package/dist/chunks/utils3.js +15 -16
- package/dist/chunks/utils4.js +264 -271
- package/dist/components/calcite-accordion/customElement.js +3 -5
- package/dist/components/calcite-accordion-item/customElement.js +10 -14
- package/dist/components/calcite-action/customElement.js +17 -21
- package/dist/components/calcite-action-bar/customElement.js +24 -27
- package/dist/components/calcite-action-group/customElement.js +20 -24
- package/dist/components/calcite-action-menu/customElement.js +14 -18
- package/dist/components/calcite-action-pad/customElement.js +21 -25
- package/dist/components/calcite-alert/customElement.js +50 -63
- package/dist/components/calcite-autocomplete/customElement.d.ts +10 -4
- package/dist/components/calcite-autocomplete/customElement.js +50 -52
- package/dist/components/calcite-autocomplete-item/customElement.js +17 -21
- package/dist/components/calcite-autocomplete-item-group/customElement.js +3 -5
- package/dist/components/calcite-avatar/customElement.js +8 -10
- package/dist/components/calcite-block/customElement.d.ts +18 -1
- package/dist/components/calcite-block/customElement.js +54 -40
- package/dist/components/calcite-block/index.d.ts +1 -1
- package/dist/components/calcite-block/index.js +1 -1
- package/dist/components/calcite-block/utils.d.ts +2 -0
- package/dist/components/calcite-block-group/customElement.d.ts +50 -0
- package/dist/components/calcite-block-group/customElement.js +177 -0
- package/dist/components/calcite-block-group/index.d.ts +2 -0
- package/dist/components/calcite-block-group/index.js +2 -0
- package/dist/components/calcite-block-group/interfaces.d.ts +14 -0
- package/dist/components/calcite-block-group/resources.d.ts +8 -0
- package/dist/components/calcite-block-group/utils.d.ts +1 -0
- package/dist/components/calcite-block-section/customElement.js +19 -23
- package/dist/components/calcite-button/customElement.js +28 -30
- package/dist/components/calcite-card/customElement.js +17 -23
- package/dist/components/calcite-card-group/customElement.js +15 -18
- package/dist/components/calcite-carousel/customElement.js +29 -32
- package/dist/components/calcite-carousel-item/customElement.js +3 -5
- package/dist/components/calcite-checkbox/customElement.d.ts +4 -1
- package/dist/components/calcite-checkbox/customElement.js +18 -22
- package/dist/components/calcite-chip/customElement.js +42 -44
- package/dist/components/calcite-chip-group/customElement.js +10 -14
- package/dist/components/calcite-color-picker/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker/customElement.js +200 -178
- package/dist/components/calcite-color-picker/resources.d.ts +7 -16
- package/dist/components/calcite-color-picker/utils.d.ts +4 -3
- package/dist/components/calcite-color-picker-hex-input/customElement.js +27 -31
- package/dist/components/calcite-color-picker-swatch/customElement.js +3 -5
- package/dist/components/calcite-combobox/customElement.d.ts +5 -3
- package/dist/components/calcite-combobox/customElement.js +166 -160
- package/dist/components/calcite-combobox/resources.d.ts +1 -0
- package/dist/components/calcite-combobox-item/customElement.d.ts +2 -1
- package/dist/components/calcite-combobox-item/customElement.js +47 -38
- package/dist/components/calcite-combobox-item-group/customElement.js +13 -15
- package/dist/components/calcite-date-picker/customElement.d.ts +8 -2
- package/dist/components/calcite-date-picker/customElement.js +28 -31
- package/dist/components/calcite-date-picker-day/customElement.js +16 -19
- package/dist/components/calcite-date-picker-month/customElement.js +39 -41
- package/dist/components/calcite-date-picker-month-header/customElement.js +40 -44
- package/dist/components/calcite-dialog/customElement.d.ts +20 -4
- package/dist/components/calcite-dialog/customElement.js +78 -72
- package/dist/components/calcite-dialog/resources.d.ts +1 -0
- package/dist/components/calcite-dropdown/customElement.d.ts +1 -1
- package/dist/components/calcite-dropdown/customElement.js +63 -70
- package/dist/components/calcite-dropdown/resources.d.ts +1 -0
- package/dist/components/calcite-dropdown-group/customElement.js +4 -6
- package/dist/components/calcite-dropdown-item/customElement.js +20 -23
- package/dist/components/calcite-fab/customElement.js +19 -23
- package/dist/components/calcite-filter/customElement.js +20 -25
- package/dist/components/calcite-flow/customElement.js +19 -22
- package/dist/components/calcite-flow-item/customElement.js +26 -30
- package/dist/components/calcite-graph/customElement.js +52 -50
- package/dist/components/calcite-graph/interfaces.d.ts +1 -5
- package/dist/components/calcite-graph/resources.d.ts +5 -0
- package/dist/components/calcite-handle/customElement.d.ts +3 -0
- package/dist/components/calcite-handle/customElement.js +20 -18
- package/dist/components/calcite-icon/customElement.js +23 -25
- package/dist/components/calcite-inline-editable/customElement.js +25 -29
- package/dist/components/calcite-input/customElement.d.ts +14 -6
- package/dist/components/calcite-input/customElement.js +26 -29
- package/dist/components/calcite-input-date-picker/customElement.d.ts +12 -3
- package/dist/components/calcite-input-date-picker/customElement.js +84 -88
- package/dist/components/calcite-input-message/customElement.js +3 -5
- package/dist/components/calcite-input-number/customElement.d.ts +12 -5
- package/dist/components/calcite-input-number/customElement.js +30 -36
- package/dist/components/calcite-input-text/customElement.d.ts +10 -4
- package/dist/components/calcite-input-text/customElement.js +61 -65
- package/dist/components/calcite-input-time-picker/customElement.d.ts +8 -3
- package/dist/components/calcite-input-time-picker/customElement.js +45 -47
- package/dist/components/calcite-input-time-zone/customElement.js +53 -55
- package/dist/components/calcite-label/customElement.js +3 -5
- package/dist/components/calcite-link/customElement.js +10 -14
- package/dist/components/calcite-list/customElement.js +67 -70
- package/dist/components/calcite-list-item/customElement.js +66 -85
- package/dist/components/calcite-list-item/utils.d.ts +1 -0
- package/dist/components/calcite-list-item-group/customElement.js +3 -5
- package/dist/components/calcite-loader/customElement.js +3 -7
- package/dist/components/calcite-menu/customElement.js +12 -16
- package/dist/components/calcite-menu-item/customElement.js +12 -16
- package/dist/components/calcite-meter/customElement.js +26 -28
- package/dist/components/calcite-modal/customElement.d.ts +16 -3
- package/dist/components/calcite-modal/customElement.js +61 -61
- package/dist/components/calcite-navigation/customElement.js +17 -21
- package/dist/components/calcite-navigation-logo/customElement.js +12 -16
- package/dist/components/calcite-navigation-user/customElement.js +10 -14
- package/dist/components/calcite-notice/customElement.js +25 -28
- package/dist/components/calcite-option/customElement.js +3 -5
- package/dist/components/calcite-option-group/customElement.js +3 -5
- package/dist/components/calcite-pagination/customElement.js +15 -17
- package/dist/components/calcite-panel/customElement.js +45 -48
- package/dist/components/calcite-popover/customElement.d.ts +10 -7
- package/dist/components/calcite-popover/customElement.js +70 -79
- package/dist/components/calcite-progress/customElement.js +3 -5
- package/dist/components/calcite-radio-button/customElement.d.ts +4 -1
- package/dist/components/calcite-radio-button/customElement.js +17 -20
- package/dist/components/calcite-radio-button-group/customElement.d.ts +4 -1
- package/dist/components/calcite-radio-button-group/customElement.js +14 -17
- package/dist/components/calcite-rating/customElement.js +21 -23
- package/dist/components/calcite-scrim/customElement.js +3 -5
- package/dist/components/calcite-segmented-control/customElement.d.ts +4 -1
- package/dist/components/calcite-segmented-control/customElement.js +14 -17
- package/dist/components/calcite-segmented-control-item/customElement.js +28 -30
- package/dist/components/calcite-select/customElement.d.ts +4 -1
- package/dist/components/calcite-select/customElement.js +19 -22
- package/dist/components/calcite-sheet/customElement.d.ts +17 -3
- package/dist/components/calcite-sheet/customElement.js +59 -62
- package/dist/components/calcite-shell/customElement.js +3 -6
- package/dist/components/calcite-shell-center-row/customElement.js +3 -5
- package/dist/components/calcite-shell-panel/customElement.js +16 -20
- package/dist/components/calcite-slider/customElement.d.ts +4 -1
- package/dist/components/calcite-slider/customElement.js +18 -21
- package/dist/components/calcite-sort-handle/customElement.js +45 -35
- package/dist/components/calcite-sort-handle/index.d.ts +1 -1
- package/dist/components/calcite-sort-handle/index.js +1 -1
- package/dist/components/calcite-sortable-list/customElement.d.ts +4 -1
- package/dist/components/calcite-sortable-list/customElement.js +21 -16
- package/dist/components/calcite-split-button/customElement.js +13 -20
- package/dist/components/calcite-stack/customElement.js +4 -6
- package/dist/components/calcite-stepper/customElement.js +36 -39
- package/dist/components/calcite-stepper-item/customElement.js +23 -22
- package/dist/components/calcite-switch/customElement.js +10 -14
- package/dist/components/calcite-tab/customElement.js +3 -5
- package/dist/components/calcite-tab-nav/customElement.js +3 -5
- package/dist/components/calcite-tab-title/customElement.js +3 -5
- package/dist/components/calcite-table/customElement.js +44 -47
- package/dist/components/calcite-table-cell/customElement.js +22 -25
- package/dist/components/calcite-table-header/customElement.js +18 -21
- package/dist/components/calcite-table-row/customElement.js +6 -8
- package/dist/components/calcite-tabs/customElement.js +3 -5
- package/dist/components/calcite-text-area/customElement.d.ts +10 -3
- package/dist/components/calcite-text-area/customElement.js +30 -37
- package/dist/components/calcite-tile/customElement.js +16 -20
- package/dist/components/calcite-tile-group/customElement.js +3 -5
- package/dist/components/calcite-tile-select/customElement.js +17 -22
- package/dist/components/calcite-tile-select-group/customElement.js +3 -5
- package/dist/components/calcite-time-picker/customElement.d.ts +1 -0
- package/dist/components/calcite-time-picker/customElement.js +19 -23
- package/dist/components/calcite-tip/customElement.js +3 -5
- package/dist/components/calcite-tip-group/customElement.js +3 -5
- package/dist/components/calcite-tip-manager/customElement.js +3 -5
- package/dist/components/calcite-tooltip/customElement.js +41 -40
- package/dist/components/calcite-tree/customElement.js +3 -5
- package/dist/components/calcite-tree-item/customElement.js +16 -14
- package/dist/components/interfaces.d.ts +4 -0
- package/dist/controllers/useFocusTrap.d.ts +67 -0
- package/dist/custom-theme/block.d.ts +4 -5
- package/dist/custom-theme/calcite-shell-panel.d.ts +13 -0
- package/dist/custom-theme/date-picker.d.ts +28 -0
- package/dist/custom-theme/flow.d.ts +21 -0
- package/dist/custom-theme/graph.d.ts +4 -0
- package/dist/custom-theme/inline-editable.d.ts +10 -0
- package/dist/custom-theme/segmented-control.d.ts +7 -0
- package/dist/docs/api.json +1141 -159
- package/dist/docs/docs.json +1093 -126
- package/dist/docs/supported-browsers.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +315 -7
- package/dist/docs/vscode.html-custom-data.json +107 -60
- package/dist/docs/web-types.json +659 -119
- package/dist/extras/vscode-data.json +107 -60
- package/dist/index.d.ts +25 -0
- package/dist/index.js +3 -5
- package/dist/loader.js +16 -17
- package/dist/types/lumina.d.ts +18 -6
- package/dist/types/preact.d.ts +19 -6
- package/dist/types/react.d.ts +180 -165
- package/dist/types/stencil.d.ts +18 -6
- package/dist/utils/component.d.ts +4 -0
- package/dist/utils/focusTrapComponent.d.ts +9 -0
- package/dist/utils/loadable.d.ts +26 -43
- package/dist/utils/openCloseComponent.d.ts +17 -18
- package/hydrate/index.d.ts +1 -0
- package/hydrate/index.js +1 -0
- package/hydrate/index.mjs +1 -0
- package/package.json +11 -12
- package/readme.md +5 -69
- package/dist/calcite/22HJHGFC.js +0 -6
- package/dist/calcite/24UHHCGZ.js +0 -6
- package/dist/calcite/26RYXNTM.js +0 -6
- package/dist/calcite/2BDE5BE5.js +0 -6
- package/dist/calcite/2Z66C2UQ.js +0 -6
- package/dist/calcite/32ZUDEFF.js +0 -6
- package/dist/calcite/33ZHAQAN.js +0 -6
- package/dist/calcite/344WUQSU.js +0 -6
- package/dist/calcite/36QANWE7.js +0 -6
- package/dist/calcite/3BABRTZ7.js +0 -6
- package/dist/calcite/3GVUXBN3.js +0 -6
- package/dist/calcite/3ISRG7GL.js +0 -6
- package/dist/calcite/43FXUJG7.js +0 -6
- package/dist/calcite/43U3QOKZ.js +0 -6
- package/dist/calcite/45C26CGA.js +0 -6
- package/dist/calcite/4DYITTEZ.js +0 -6
- package/dist/calcite/4GJIQCDB.js +0 -6
- package/dist/calcite/4TQWOYN3.js +0 -6
- package/dist/calcite/525CSK55.js +0 -6
- package/dist/calcite/5J3KIS2Y.js +0 -6
- package/dist/calcite/5LBOUCUR.js +0 -6
- package/dist/calcite/5YNUO5U6.js +0 -6
- package/dist/calcite/635OBWKC.js +0 -6
- package/dist/calcite/7LNOTS5J.js +0 -6
- package/dist/calcite/7VTS46YY.js +0 -6
- package/dist/calcite/7XAMYDVB.js +0 -6
- package/dist/calcite/7ZVYZ7HI.js +0 -6
- package/dist/calcite/AG2N2DRD.js +0 -6
- package/dist/calcite/AO43UELW.js +0 -6
- package/dist/calcite/BG2AISBE.js +0 -6
- package/dist/calcite/BGH5AJN6.js +0 -6
- package/dist/calcite/BXSIT4FA.js +0 -6
- package/dist/calcite/CCQRH5OE.js +0 -6
- package/dist/calcite/CNNNSCMZ.js +0 -6
- package/dist/calcite/DAXZUZG7.js +0 -6
- package/dist/calcite/DVDIWJH7.js +0 -6
- package/dist/calcite/EXJCK3HG.js +0 -6
- package/dist/calcite/F6OUTEHV.js +0 -6
- package/dist/calcite/FJAWVMYN.js +0 -6
- package/dist/calcite/FLX3VOM5.js +0 -6
- package/dist/calcite/G2QEEOO5.js +0 -6
- package/dist/calcite/H7BZS7IR.js +0 -6
- package/dist/calcite/HKNIHKIM.js +0 -6
- package/dist/calcite/HLG6DGAF.js +0 -6
- package/dist/calcite/HMVW5COC.js +0 -6
- package/dist/calcite/IAG3EJCS.js +0 -6
- package/dist/calcite/IBJ3DPFM.js +0 -6
- package/dist/calcite/IDSRWSZS.js +0 -6
- package/dist/calcite/IGFOWO7X.js +0 -6
- package/dist/calcite/IKWE7O4V.js +0 -6
- package/dist/calcite/JGO64K4G.js +0 -6
- package/dist/calcite/JVXIBINH.js +0 -6
- package/dist/calcite/K5OJ3522.js +0 -6
- package/dist/calcite/KDABXPKT.js +0 -6
- package/dist/calcite/KLKV3NO5.js +0 -6
- package/dist/calcite/KNU6MVIX.js +0 -6
- package/dist/calcite/KOX7NSUX.js +0 -6
- package/dist/calcite/KTIDLP6I.js +0 -24
- package/dist/calcite/KUQLVV3G.js +0 -6
- package/dist/calcite/L75EPU72.js +0 -6
- package/dist/calcite/LJ5WXSCB.js +0 -6
- package/dist/calcite/M7JLEFAV.js +0 -6
- package/dist/calcite/MDJ7KIEH.js +0 -6
- package/dist/calcite/MNPVC4UV.js +0 -6
- package/dist/calcite/MTZJ3QEO.js +0 -6
- package/dist/calcite/N5RAGKSV.js +0 -6
- package/dist/calcite/N7S4KMZ3.js +0 -6
- package/dist/calcite/NKJ53SP5.js +0 -6
- package/dist/calcite/NP6XKXNB.js +0 -6
- package/dist/calcite/NPTTGQKZ.js +0 -6
- package/dist/calcite/NU7YASJY.js +0 -6
- package/dist/calcite/NWVRCTA3.js +0 -6
- package/dist/calcite/OANTC65T.js +0 -6
- package/dist/calcite/ORFOJQIT.js +0 -6
- package/dist/calcite/OZ2EM7PB.js +0 -6
- package/dist/calcite/P2EHUODO.js +0 -6
- package/dist/calcite/P2OWRZWS.js +0 -6
- package/dist/calcite/PLIJBDJE.js +0 -6
- package/dist/calcite/PNUVZ3BZ.js +0 -6
- package/dist/calcite/PRLNQU3I.js +0 -6
- package/dist/calcite/QFRCFN5B.js +0 -6
- package/dist/calcite/QMW634ML.js +0 -6
- package/dist/calcite/QVFO4PCF.js +0 -6
- package/dist/calcite/R4GMIOLL.js +0 -6
- package/dist/calcite/RAABIUMQ.js +0 -6
- package/dist/calcite/RBAXDZGX.js +0 -6
- package/dist/calcite/RRXQBAP5.js +0 -6
- package/dist/calcite/RTAW5CIS.js +0 -6
- package/dist/calcite/RVTHJSK4.js +0 -7
- package/dist/calcite/RXLZN3RA.js +0 -6
- package/dist/calcite/SGUPIHES.js +0 -6
- package/dist/calcite/SM3PON4U.js +0 -6
- package/dist/calcite/SR6BSZKM.js +0 -6
- package/dist/calcite/SVA572F6.js +0 -6
- package/dist/calcite/SYEFY3RF.js +0 -6
- package/dist/calcite/T2I3BMFS.js +0 -6
- package/dist/calcite/T2RQHQ4J.js +0 -6
- package/dist/calcite/T4BRARRE.js +0 -6
- package/dist/calcite/TOVFIM35.js +0 -6
- package/dist/calcite/TUOQB4BF.js +0 -6
- package/dist/calcite/TXKCK2GX.js +0 -6
- package/dist/calcite/UASDTDDX.js +0 -6
- package/dist/calcite/UBUBAUNX.js +0 -6
- package/dist/calcite/UDBTSID6.js +0 -6
- package/dist/calcite/UIH7UV4G.js +0 -6
- package/dist/calcite/UJNTMRHF.js +0 -6
- package/dist/calcite/UT5IDNAH.js +0 -6
- package/dist/calcite/UW7IANT6.js +0 -6
- package/dist/calcite/V6S33OQR.js +0 -6
- package/dist/calcite/VB3C3KGQ.js +0 -6
- package/dist/calcite/WJ4C7WEL.js +0 -6
- package/dist/calcite/WW6NBCNW.js +0 -6
- package/dist/calcite/WWC5WLZF.js +0 -8
- package/dist/calcite/WYJTKFJS.js +0 -6
- package/dist/calcite/XFA5FHFI.js +0 -6
- package/dist/calcite/YMSUL5GP.js +0 -6
- package/dist/calcite/YQFENTI7.js +0 -6
- package/dist/calcite/YRI6AGQS.js +0 -6
- package/dist/calcite/YROEPZIT.js +0 -6
- package/dist/calcite/Z67HNIVB.js +0 -6
- package/dist/calcite/ZEO7P3BE.js +0 -6
- package/dist/calcite/ZEOCUBLO.js +0 -6
- package/dist/calcite/ZVVUEEVN.js +0 -6
|
@@ -1,39 +1,37 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as z } from "../../chunks/runtime.js";
|
|
2
2
|
import { keyed as r } from "lit-html/directives/keyed.js";
|
|
3
|
-
import { html as
|
|
4
|
-
import { createRef as
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { a as
|
|
7
|
-
import { u as
|
|
8
|
-
import { c as
|
|
9
|
-
import { u as
|
|
3
|
+
import { html as o, nothing as M } from "lit";
|
|
4
|
+
import { createRef as b, ref as v } from "lit-html/directives/ref.js";
|
|
5
|
+
import { LitElement as D, createEvent as d, safeClassMap as i } from "@arcgis/lumina";
|
|
6
|
+
import { a as C, x as T, g as P } from "../../chunks/dom.js";
|
|
7
|
+
import { u as U, I as F } from "../../chunks/interactive.js";
|
|
8
|
+
import { c as R } from "../../chunks/loadable.js";
|
|
9
|
+
import { u as G } from "../../chunks/useT9n.js";
|
|
10
10
|
import { g as $ } from "../../chunks/component.js";
|
|
11
|
-
import { l as
|
|
12
|
-
import { a as
|
|
13
|
-
import { css as
|
|
14
|
-
/*!
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
* v3.0.0-next.98
|
|
18
|
-
|
|
19
|
-
const Q = J`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-direction:column}:host([filter-hidden]),:host([closed]){display:none}.wrapper--bordered{border-block-end:1px solid var(--calcite-list-border-color, var(--calcite-color-border-3))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{box-sizing:border-box;display:flex;flex:1 1 0%;overflow:hidden;background-color:var(--calcite-list-background-color, var(--calcite-color-foreground-1))}.container *{box-sizing:border-box}.container--hover:hover{cursor:pointer;background-color:var(--calcite-list-background-color-hover, var(--calcite-color-foreground-2))}.container:active{background-color:var(--calcite-list-background-color-press, var(--calcite-color-foreground-1))}.container--border-selected{box-shadow:inset 4px 0 0 0 var(--calcite-list-selection-border-color, var(--calcite-color-brand))}.container--border-unselected{box-shadow:inset 4px 0 0 0 transparent}.container:hover.container--border-unselected{box-shadow:inset 4px 0 0 0 var(--calcite-list-selection-border-color, var(--calcite-color-border-1))}.nested-container{display:none;flex-direction:column;border-width:0px;border-style:solid;border-color:1px solid var(--calcite-list-border-color, var(--calcite-color-border-3));margin-inline-start:var(--calcite-list-spacing-indent, 1.5rem)}.nested-container--open{display:flex}.selection-container{display:flex;padding-block:0px;color:var(--calcite-list-icon-color, var(--calcite-color-border-input))}:host(:not([disabled]):not([selected])) .container:hover .selection-container--single{color:var(--calcite-list-icon-color, var(--calcite-color-border-input))}:host([selected]:hover) .selection-container,:host([selected]:hover) .selection-container--single,:host([selected]) .selection-container{color:var(--calcite-list-icon-color, var(--calcite-color-brand))}.content-container-wrapper{display:flex;flex:1 1 auto}.content-container-wrapper--bordered{border-block-end:1px solid var(--calcite-list-border-color, var(--calcite-color-border-3))}.content-container{display:flex;flex:1 1 auto;-webkit-user-select:none;user-select:none;align-items:stretch;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-list-content-text-color, var(--calcite-color-text-2))}.content-container--unavailable{opacity:var(--calcite-opacity-disabled)}.row,.grid-cell{outline-color:transparent}.row{position:relative}.row:focus,.grid-cell:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.content,.custom-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;line-height:var(--calcite-font-line-height-relative-snug)}.label{color:var(--calcite-list-label-text-color, var(--calcite-color-text-1))}.description{color:var(--calcite-list-description-text-color, var(--calcite-color-text-3))}.icon{align-self:center;color:var(--calcite-list-icon-color, var(--calcite-color-text-3))}:host([display-mode=flat][drag-handle]:is([selection-mode=none],[selection-appearance=border])) .drag-container{padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=s]) .actions-start{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .content-container{gap:var(--calcite-spacing-sm);min-block-size:32px;padding-block:var(--calcite-spacing-xxs);padding-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .content,:host([scale=s]) .custom-content,:host([scale=s]) .label{font-size:var(--calcite-font-size--2)}:host([scale=s]) .description{font-size:var(--calcite-font-size--3)}:host([scale=s][display-mode=flat]:not([drag-handle])) .container{padding-inline-start:var(--calcite-spacing-sm)}:host([scale=s][display-mode=flat]:not([drag-handle])) .selection-container{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=s][display-mode=flat][drag-handle]) .selection-container{padding-inline:var(--calcite-spacing-xxs) var(--calcite-spacing-sm)}:host([scale=s][display-mode=nested]) .selection-container{padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=s][display-mode=nested][selection-appearance=icon]:not([selection-mode=none]):not([drag-handle])) .container{padding-inline-start:var(--calcite-spacing-sm)}:host([scale=s][display-mode=nested][selection-appearance=icon]:not([selection-mode=none]):not([drag-handle])) .selection-container{padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=s][display-mode=nested][drag-handle]) .selection-container{padding-inline:var(--calcite-spacing-xxs)}:host([scale=m]) .actions-start{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .content-container{gap:var(--calcite-spacing-sm);min-block-size:40px;padding-block:var(--calcite-spacing-sm);padding-inline-end:var(--calcite-spacing-md)}:host([scale=m]) .content,:host([scale=m]) .custom-content{font-size:var(--calcite-font-size--2)}:host([scale=m]) .label{font-size:var(--calcite-font-size--1)}:host([scale=m]) .description{font-size:var(--calcite-font-size--2)}:host([scale=m][display-mode=flat]) .container{padding-inline-start:var(--calcite-spacing-md)}:host([scale=m][display-mode=flat]) .selection-container{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=m][display-mode=flat][drag-handle]) .container{padding-inline-start:0}:host([scale=m][display-mode=flat][drag-handle]) .selection-container{padding-inline:var(--calcite-spacing-xxs) var(--calcite-spacing-sm)}:host([scale=m][display-mode=nested]) .container{padding-inline-start:var(--calcite-spacing-xxs)}:host([scale=m][display-mode=nested]) .selection-container{padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=m][display-mode=nested][selection-appearance=icon]:not([selection-mode=none]):not([drag-handle])) .container{padding-inline-start:var(--calcite-spacing-md)}:host([scale=m][display-mode=nested][drag-handle]) .container{padding-inline-start:0}:host([scale=m][display-mode=nested][drag-handle]) .selection-container{padding-inline:var(--calcite-spacing-xxs)}:host([scale=l]) .actions-start{padding-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .content-container{gap:var(--calcite-spacing-md);min-block-size:56px;padding-block:.625rem;padding-inline-end:var(--calcite-spacing-lg)}:host([scale=l]) .content,:host([scale=l]) .custom-content,:host([scale=l]) .label{font-size:var(--calcite-font-size-0)}:host([scale=l]) .description{font-size:var(--calcite-font-size--1)}:host([scale=l]) .nested-container{margin-inline-start:1.75rem}:host([scale=l][display-mode=flat]) .container{padding-inline-start:var(--calcite-spacing-lg)}:host([scale=l][display-mode=flat]) .selection-container{padding-inline-end:var(--calcite-spacing-md)}:host([scale=l][display-mode=flat][drag-handle]) .container{padding-inline-start:0}:host([scale=l][display-mode=flat][drag-handle]) .selection-container{padding-inline-end:var(--calcite-spacing-md)}:host([scale=l][display-mode=nested]) .container{padding-inline-start:var(--calcite-spacing-xxs)}:host([scale=l][display-mode=nested][drag-handle]) .container{padding-inline-start:0}:host([scale=l][display-mode=nested][selection-appearance=icon]:not([selection-mode=none]):not([drag-handle])) .container{padding-inline-start:var(--calcite-spacing-lg)}.label,.description,.content-bottom{font-family:var(--calcite-font-family);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}:host([selected]) .label{font-weight:var(--calcite-font-weight-medium)}:host([selected]) .icon{color:var(--calcite-list-icon-color, var(--calcite-color-text-1))}:host([selected]) .description{color:var(--calcite-list-description-text-color, var(--calcite-color-text-2))}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:1 1 auto}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){align-self:center}.content-bottom{display:flex;flex-direction:column}.content-container--has-center-content .content-start,.content-container--has-center-content .content-end{flex:0 1 auto}.open-container{color:var(--calcite-list-icon-color, var(--calcite-color-text-3));padding-inline:var(--calcite-spacing-xxs)}:host(:not([disabled])) .container:hover .open-container{color:var(--calcite-list-icon-color, var(--calcite-color-text-1))}.actions-start,.actions-end,.content-start,.content-end,.selection-container,.drag-container,.open-container{display:flex;align-items:center}.actions-start calcite-action,.actions-start calcite-sort-handle,.actions-end calcite-action,.actions-end calcite-sort-handle,.content-start calcite-action,.content-start calcite-sort-handle,.content-end calcite-action,.content-end calcite-sort-handle,.selection-container calcite-action,.selection-container calcite-sort-handle,.drag-container calcite-action,.drag-container calcite-sort-handle,.open-container calcite-action,.open-container calcite-sort-handle{align-self:stretch}.open-container,.selection-container{cursor:pointer}.actions-start,.actions-end{position:relative;padding:0}.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}.row:focus .actions-start,.row:focus .actions-end{inset-block:.125rem}.row:focus .actions-start .close,.row:focus .actions-start ::slotted(calcite-action),.row:focus .actions-start ::slotted(calcite-action-menu),.row:focus .actions-start ::slotted(calcite-sort-handle),.row:focus .actions-start ::slotted(calcite-dropdown),.row:focus .actions-end .close,.row:focus .actions-end ::slotted(calcite-action),.row:focus .actions-end ::slotted(calcite-action-menu),.row:focus .actions-end ::slotted(calcite-sort-handle),.row:focus .actions-end ::slotted(calcite-dropdown){block-size:calc(100% - .25rem)}.row:focus:after,.row:focus:before{position:absolute;content:"";inline-size:.125rem;z-index:var(--calcite-z-index-header);background-color:var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));inset-block:0}.row:focus:before{inset-inline-start:0}.row:focus:after{inset-inline-end:0}.container--border:focus:before{display:none}::slotted(calcite-list:empty){border-block-start-width:0px}:host([hidden]){display:none}[hidden]{display:none}`, I = /* @__PURE__ */ new Map();
|
|
20
|
-
class V extends T {
|
|
11
|
+
import { l as K, g as j, a as N } from "../../chunks/utils.js";
|
|
12
|
+
import { a as w, I as u, C as a, S } from "../../chunks/resources5.js";
|
|
13
|
+
import { css as W } from "@lit/reactive-element/css-tag.js";
|
|
14
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
15
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
16
|
+
v3.0.0 */
|
|
17
|
+
const q = W`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-direction:column}:host([filter-hidden]),:host([closed]){display:none}.wrapper--bordered{border-block-end:1px solid var(--calcite-list-border-color, var(--calcite-color-border-3))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{box-sizing:border-box;display:flex;flex:1 1 0%;overflow:hidden;background-color:var(--calcite-list-background-color, var(--calcite-color-foreground-1))}.container *{box-sizing:border-box}.container--hover:hover{cursor:pointer;background-color:var(--calcite-list-background-color-hover, var(--calcite-color-foreground-2))}.container:active{background-color:var(--calcite-list-background-color-press, var(--calcite-color-foreground-1))}.container--border{position:relative}.container--border:before{position:absolute;inline-size:var(--calcite-border-width-lg);inset-block:0;inset-inline-start:0;background-color:transparent;content:""}.container--border-selected:before{background-color:var(--calcite-list-selection-border-color, var(--calcite-color-brand))}.container:hover.container--border-unselected:before{background-color:var(--calcite-list-selection-border-color, var(--calcite-color-border-1))}.nested-container{display:none;flex-direction:column;border-width:0px;border-style:solid;border-color:1px solid var(--calcite-list-border-color, var(--calcite-color-border-3));margin-inline-start:var(--calcite-list-spacing-indent, 1.5rem)}.nested-container--open{display:flex}.selection-container{display:flex;padding-block:0px;color:var(--calcite-list-icon-color, var(--calcite-color-border-input))}:host(:not([disabled]):not([selected])) .container:hover .selection-container--single{color:var(--calcite-list-icon-color, var(--calcite-color-border-input))}:host([selected]:hover) .selection-container,:host([selected]:hover) .selection-container--single,:host([selected]) .selection-container{color:var(--calcite-list-icon-color, var(--calcite-color-brand))}.content-container-wrapper{display:flex;flex:1 1 auto}.content-container-wrapper--bordered{border-block-end:1px solid var(--calcite-list-border-color, var(--calcite-color-border-3))}.content-container{display:flex;flex:1 1 auto;-webkit-user-select:none;user-select:none;align-items:stretch;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-list-content-text-color, var(--calcite-color-text-2))}.content-container--unavailable{opacity:var(--calcite-opacity-disabled)}.row,.grid-cell{outline-color:transparent}.row{position:relative}.row:focus,.grid-cell:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.content,.custom-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;line-height:var(--calcite-font-line-height-relative-snug)}.label{color:var(--calcite-list-label-text-color, var(--calcite-color-text-1))}.description{color:var(--calcite-list-description-text-color, var(--calcite-color-text-3))}.icon{align-self:center;color:var(--calcite-list-icon-color, var(--calcite-color-text-3))}:host([display-mode=flat][drag-handle]:is([selection-mode=none],[selection-appearance=border])) .drag-container{padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=s]) .actions-start{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .content-container{gap:var(--calcite-spacing-sm);min-block-size:32px;padding-block:var(--calcite-spacing-xxs);padding-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .content,:host([scale=s]) .custom-content,:host([scale=s]) .label{font-size:var(--calcite-font-size--2)}:host([scale=s]) .description{font-size:var(--calcite-font-size--3)}:host([scale=s][display-mode=flat]:not([drag-handle])) .container{padding-inline-start:var(--calcite-spacing-sm)}:host([scale=s][display-mode=flat]:not([drag-handle])) .selection-container{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=s][display-mode=flat][drag-handle]) .selection-container{padding-inline:var(--calcite-spacing-xxs) var(--calcite-spacing-sm)}:host([scale=s][display-mode=nested]) .selection-container{padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=s][display-mode=nested][selection-appearance=icon]:not([selection-mode=none]):not([drag-handle])) .container{padding-inline-start:var(--calcite-spacing-sm)}:host([scale=s][display-mode=nested][selection-appearance=icon]:not([selection-mode=none]):not([drag-handle])) .selection-container{padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=s][display-mode=nested][drag-handle]) .selection-container{padding-inline:var(--calcite-spacing-xxs)}:host([scale=m]) .actions-start{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .content-container{gap:var(--calcite-spacing-sm);min-block-size:40px;padding-block:var(--calcite-spacing-sm);padding-inline-end:var(--calcite-spacing-md)}:host([scale=m]) .content,:host([scale=m]) .custom-content{font-size:var(--calcite-font-size--2)}:host([scale=m]) .label{font-size:var(--calcite-font-size--1)}:host([scale=m]) .description{font-size:var(--calcite-font-size--2)}:host([scale=m][display-mode=flat]) .container{padding-inline-start:var(--calcite-spacing-md)}:host([scale=m][display-mode=flat]) .selection-container{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=m][display-mode=flat][drag-handle]) .container{padding-inline-start:0}:host([scale=m][display-mode=flat][drag-handle]) .selection-container{padding-inline:var(--calcite-spacing-xxs) var(--calcite-spacing-sm)}:host([scale=m][display-mode=nested]) .container{padding-inline-start:var(--calcite-spacing-xxs)}:host([scale=m][display-mode=nested]) .selection-container{padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=m][display-mode=nested][selection-appearance=icon]:not([selection-mode=none]):not([drag-handle])) .container{padding-inline-start:var(--calcite-spacing-md)}:host([scale=m][display-mode=nested][drag-handle]) .container{padding-inline-start:0}:host([scale=m][display-mode=nested][drag-handle]) .selection-container{padding-inline:var(--calcite-spacing-xxs)}:host([scale=l]) .actions-start{padding-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .content-container{gap:var(--calcite-spacing-md);min-block-size:56px;padding-block:.625rem;padding-inline-end:var(--calcite-spacing-lg)}:host([scale=l]) .content,:host([scale=l]) .custom-content,:host([scale=l]) .label{font-size:var(--calcite-font-size-0)}:host([scale=l]) .description{font-size:var(--calcite-font-size--1)}:host([scale=l]) .nested-container{margin-inline-start:1.75rem}:host([scale=l][display-mode=flat]) .container{padding-inline-start:var(--calcite-spacing-lg)}:host([scale=l][display-mode=flat]) .selection-container{padding-inline-end:var(--calcite-spacing-md)}:host([scale=l][display-mode=flat][drag-handle]) .container{padding-inline-start:0}:host([scale=l][display-mode=flat][drag-handle]) .selection-container{padding-inline-end:var(--calcite-spacing-md)}:host([scale=l][display-mode=nested]) .container{padding-inline-start:var(--calcite-spacing-xxs)}:host([scale=l][display-mode=nested][drag-handle]) .container{padding-inline-start:0}:host([scale=l][display-mode=nested][selection-appearance=icon]:not([selection-mode=none]):not([drag-handle])) .container{padding-inline-start:var(--calcite-spacing-lg)}.label,.description,.content-bottom{font-family:var(--calcite-font-family);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}:host([selected]) .label{font-weight:var(--calcite-font-weight-medium)}:host([selected]) .icon{color:var(--calcite-list-icon-color, var(--calcite-color-text-1))}:host([selected]) .description{color:var(--calcite-list-description-text-color, var(--calcite-color-text-2))}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:1 1 auto}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){align-self:center}.content-bottom{display:flex;flex-direction:column}.content-container--has-center-content .content-start,.content-container--has-center-content .content-end{flex:0 1 auto}.open-container{color:var(--calcite-list-icon-color, var(--calcite-color-text-3));padding-inline:var(--calcite-spacing-xxs)}:host(:not([disabled])) .container:hover .open-container{color:var(--calcite-list-icon-color, var(--calcite-color-text-1))}.actions-start,.actions-end,.content-start,.content-end,.selection-container,.drag-container,.open-container{display:flex;align-items:center}.actions-start calcite-action,.actions-start calcite-sort-handle,.actions-end calcite-action,.actions-end calcite-sort-handle,.content-start calcite-action,.content-start calcite-sort-handle,.content-end calcite-action,.content-end calcite-sort-handle,.selection-container calcite-action,.selection-container calcite-sort-handle,.drag-container calcite-action,.drag-container calcite-sort-handle,.open-container calcite-action,.open-container calcite-sort-handle{align-self:stretch}.open-container,.selection-container{cursor:pointer}.actions-start,.actions-end{position:relative;padding:0}.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}.row:focus .actions-start,.row:focus .actions-end{inset-block:.125rem}.row:focus .actions-start .close,.row:focus .actions-start ::slotted(calcite-action),.row:focus .actions-start ::slotted(calcite-action-menu),.row:focus .actions-start ::slotted(calcite-sort-handle),.row:focus .actions-start ::slotted(calcite-dropdown),.row:focus .actions-end .close,.row:focus .actions-end ::slotted(calcite-action),.row:focus .actions-end ::slotted(calcite-action-menu),.row:focus .actions-end ::slotted(calcite-sort-handle),.row:focus .actions-end ::slotted(calcite-dropdown){block-size:calc(100% - .25rem)}.row:focus:after,.row:focus:before{position:absolute;content:"";inline-size:.125rem;z-index:var(--calcite-z-index-header);background-color:var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));inset-block:0}.row:focus:before{inset-inline-start:0}.row:focus:after{inset-inline-end:0}.container--border:focus:before{display:none}::slotted(calcite-list:empty){border-block-start-width:0px}:host([hidden]){display:none}[hidden]{display:none}`, I = /* @__PURE__ */ new Map();
|
|
18
|
+
class J extends D {
|
|
21
19
|
// #endregion
|
|
22
20
|
// #region Lifecycle
|
|
23
21
|
constructor() {
|
|
24
|
-
super(), this.actionsEndEl =
|
|
22
|
+
super(), this.actionsEndEl = b(), this.actionsStartEl = b(), this.containerEl = b(), this.contentEl = b(), this.defaultSlotEl = b(), this.handleGridEl = b(), this.hasActionsEnd = !1, this.hasActionsStart = !1, this.hasContentBottom = !1, this.hasContentEnd = !1, this.hasContentStart = !1, this.hasCustomContent = !1, this.level = null, this.openable = !1, this.active = !1, this.bordered = !1, this.closable = !1, this.closed = !1, this.disabled = !1, this.dragDisabled = !1, this.dragHandle = !1, this.filterHidden = !1, this.interactionMode = null, this.messages = G(), this.displayMode = "flat", this.moveToItems = [], this.open = !1, this.scale = "m", this.selected = !1, this.selectionAppearance = null, this.selectionMode = null, this.setPosition = null, this.setSize = null, this.sortHandleOpen = !1, this.unavailable = !1, this.calciteInternalFocusPreviousItem = d({ cancelable: !1 }), this.calciteInternalListItemActive = d({ cancelable: !1 }), this.calciteInternalListItemChange = d({ cancelable: !1 }), this.calciteInternalListItemSelect = d({ cancelable: !1 }), this.calciteInternalListItemSelectMultiple = d({ cancelable: !1 }), this.calciteInternalListItemToggle = d({ cancelable: !1 }), this.calciteListItemClose = d({ cancelable: !1 }), this.calciteListItemSelect = d({ cancelable: !1 }), this.calciteListItemSortHandleBeforeClose = d({ cancelable: !1 }), this.calciteListItemSortHandleBeforeOpen = d({ cancelable: !1 }), this.calciteListItemSortHandleClose = d({ cancelable: !1 }), this.calciteListItemSortHandleOpen = d({ cancelable: !1 }), this.calciteListItemToggle = d({ cancelable: !1 }), this.listen("calciteInternalListItemGroupDefaultSlotChange", this.handleCalciteInternalListDefaultSlotChanges), this.listen("calciteInternalListDefaultSlotChange", this.handleCalciteInternalListDefaultSlotChanges);
|
|
25
23
|
}
|
|
26
24
|
static {
|
|
27
|
-
this.properties = { hasActionsEnd: 16, hasActionsStart: 16, hasContentBottom: 16, hasContentEnd: 16, hasContentStart: 16, hasCustomContent: 16, level: 16, openable: 16, parentListEl: 16, active: 5, bordered: 5, closable: 7, closed: 7, description: 1, disabled: 7, dragDisabled: 7, dragHandle: 7, filterHidden: 7, interactionMode: 1, label: 1, messageOverrides: 0, metadata: 0, displayMode: 3, moveToItems: 0, open: 7, scale: 3, selected: 7, selectionAppearance: 3, selectionMode: 3, setPosition: 9, setSize: 9, sortHandleOpen:
|
|
25
|
+
this.properties = { hasActionsEnd: 16, hasActionsStart: 16, hasContentBottom: 16, hasContentEnd: 16, hasContentStart: 16, hasCustomContent: 16, level: 16, openable: 16, parentListEl: 16, active: 5, bordered: 5, closable: 7, closed: 7, description: 1, disabled: 7, dragDisabled: 7, dragHandle: 7, filterHidden: 7, interactionMode: 1, label: 1, messageOverrides: 0, metadata: 0, displayMode: 3, moveToItems: 0, open: 7, scale: 3, selected: 7, selectionAppearance: 3, selectionMode: 3, setPosition: 9, setSize: 9, sortHandleOpen: 7, unavailable: 7, value: 1, iconStart: 3, iconEnd: 3, iconFlipRtl: 3 };
|
|
28
26
|
}
|
|
29
27
|
static {
|
|
30
|
-
this.styles =
|
|
28
|
+
this.styles = q;
|
|
31
29
|
}
|
|
32
30
|
// #endregion
|
|
33
31
|
// #region Public Methods
|
|
34
32
|
/** Sets focus on the component. */
|
|
35
33
|
async setFocus() {
|
|
36
|
-
await
|
|
34
|
+
await R(this);
|
|
37
35
|
const { containerEl: { value: e }, parentListEl: t } = this, n = I.get(t);
|
|
38
36
|
if (typeof n == "number") {
|
|
39
37
|
const l = this.getGridCells();
|
|
@@ -45,10 +43,9 @@ class V extends T {
|
|
|
45
43
|
connectedCallback() {
|
|
46
44
|
super.connectedCallback();
|
|
47
45
|
const { el: e } = this;
|
|
48
|
-
this.parentListEl = e.closest(
|
|
46
|
+
this.parentListEl = e.closest(K), this.level = j(e) + 1, this.setSelectionDefaults();
|
|
49
47
|
}
|
|
50
48
|
async load() {
|
|
51
|
-
R(this);
|
|
52
49
|
}
|
|
53
50
|
/**
|
|
54
51
|
* TODO: [MIGRATION] Consider inlining some of the watch functions called inside of this method to reduce boilerplate code
|
|
@@ -59,10 +56,9 @@ class V extends T {
|
|
|
59
56
|
e.has("active") && (this.hasUpdated || this.active !== !1) && this.activeHandler(this.active), e.has("closed") && (this.hasUpdated || this.closed !== !1) && this.handleClosedChange(), e.has("disabled") && (this.hasUpdated || this.disabled !== !1) && this.handleDisabledChange(), e.has("open") && (this.hasUpdated || this.open !== !1) && this.handleOpenChange(), e.has("selected") && (this.hasUpdated || this.selected !== !1) && this.handleSelectedChange(), e.has("sortHandleOpen") && (this.hasUpdated || this.sortHandleOpen !== !1) && this.sortHandleOpenHandler(), e.has("displayMode") && this.hasUpdated && this.handleOpenableChange(this.defaultSlotEl.value);
|
|
60
57
|
}
|
|
61
58
|
updated() {
|
|
62
|
-
|
|
59
|
+
U(this);
|
|
63
60
|
}
|
|
64
61
|
loaded() {
|
|
65
|
-
K(this);
|
|
66
62
|
}
|
|
67
63
|
// #endregion
|
|
68
64
|
// #region Private Methods
|
|
@@ -105,18 +101,6 @@ class V extends T {
|
|
|
105
101
|
emitInternalListItemActive() {
|
|
106
102
|
this.calciteInternalListItemActive.emit();
|
|
107
103
|
}
|
|
108
|
-
focusCellHandle() {
|
|
109
|
-
this.handleCellFocusIn(this.handleGridEl.value);
|
|
110
|
-
}
|
|
111
|
-
focusCellActionsStart() {
|
|
112
|
-
this.handleCellFocusIn(this.actionsStartEl.value);
|
|
113
|
-
}
|
|
114
|
-
focusCellContent() {
|
|
115
|
-
this.handleCellFocusIn(this.contentEl.value);
|
|
116
|
-
}
|
|
117
|
-
focusCellActionsEnd() {
|
|
118
|
-
this.handleCellFocusIn(this.actionsEndEl.value);
|
|
119
|
-
}
|
|
120
104
|
emitCalciteInternalListItemToggle() {
|
|
121
105
|
this.calciteInternalListItemToggle.emit();
|
|
122
106
|
}
|
|
@@ -127,22 +111,22 @@ class V extends T {
|
|
|
127
111
|
this.closed = !0, this.calciteListItemClose.emit();
|
|
128
112
|
}
|
|
129
113
|
handleContentSlotChange(e) {
|
|
130
|
-
this.hasCustomContent =
|
|
114
|
+
this.hasCustomContent = C(e);
|
|
131
115
|
}
|
|
132
116
|
handleActionsStartSlotChange(e) {
|
|
133
|
-
this.hasActionsStart =
|
|
117
|
+
this.hasActionsStart = C(e);
|
|
134
118
|
}
|
|
135
119
|
handleActionsEndSlotChange(e) {
|
|
136
|
-
this.hasActionsEnd =
|
|
120
|
+
this.hasActionsEnd = C(e);
|
|
137
121
|
}
|
|
138
122
|
handleContentStartSlotChange(e) {
|
|
139
|
-
this.hasContentStart =
|
|
123
|
+
this.hasContentStart = C(e);
|
|
140
124
|
}
|
|
141
125
|
handleContentEndSlotChange(e) {
|
|
142
|
-
this.hasContentEnd =
|
|
126
|
+
this.hasContentEnd = C(e);
|
|
143
127
|
}
|
|
144
128
|
handleContentBottomSlotChange(e) {
|
|
145
|
-
this.hasContentBottom =
|
|
129
|
+
this.hasContentBottom = C(e);
|
|
146
130
|
}
|
|
147
131
|
setSelectionDefaults() {
|
|
148
132
|
const { parentListEl: e, selectionMode: t, selectionAppearance: n } = this;
|
|
@@ -151,7 +135,7 @@ class V extends T {
|
|
|
151
135
|
handleOpenableChange(e) {
|
|
152
136
|
if (!e)
|
|
153
137
|
return;
|
|
154
|
-
const t =
|
|
138
|
+
const t = N(e);
|
|
155
139
|
t.lists.forEach((n) => {
|
|
156
140
|
n.displayMode = this.displayMode;
|
|
157
141
|
}), this.openable = this.displayMode === "nested" && (t.lists.length > 0 || t.items.length > 0);
|
|
@@ -185,101 +169,98 @@ class V extends T {
|
|
|
185
169
|
handleItemKeyDown(e) {
|
|
186
170
|
if (e.defaultPrevented)
|
|
187
171
|
return;
|
|
188
|
-
const { key: t } = e, n = e.composedPath(), { containerEl: { value: l }, actionsStartEl: { value: h }, actionsEndEl: { value:
|
|
189
|
-
if (t === "Enter" && !n.includes(h) && !n.includes(
|
|
172
|
+
const { key: t } = e, n = e.composedPath(), { containerEl: { value: l }, actionsStartEl: { value: h }, actionsEndEl: { value: s }, open: g, openable: m } = this, c = this.getGridCells(), p = c.findIndex((f) => n.includes(f));
|
|
173
|
+
if (t === "Enter" && !n.includes(h) && !n.includes(s))
|
|
190
174
|
e.preventDefault(), this.toggleSelected(e.shiftKey);
|
|
191
175
|
else if (t === "ArrowRight") {
|
|
192
176
|
e.preventDefault();
|
|
193
177
|
const f = p + 1;
|
|
194
|
-
p === -1 ? !
|
|
178
|
+
p === -1 ? !g && m ? (this.toggle(!0), this.focusCell(null)) : c[0] && this.focusCell(c[0]) : c[p] && c[f] && this.focusCell(c[f]);
|
|
195
179
|
} else if (t === "ArrowLeft") {
|
|
196
180
|
e.preventDefault();
|
|
197
181
|
const f = p - 1;
|
|
198
|
-
p === -1 ? (this.focusCell(null),
|
|
182
|
+
p === -1 ? (this.focusCell(null), g && m ? this.toggle(!1) : this.calciteInternalFocusPreviousItem.emit()) : p === 0 ? (this.focusCell(null), l.focus()) : c[p] && c[f] && this.focusCell(c[f]);
|
|
199
183
|
}
|
|
200
184
|
}
|
|
201
185
|
focusCellNull() {
|
|
202
186
|
this.focusCell(null);
|
|
203
187
|
}
|
|
204
|
-
handleCellFocusIn(e) {
|
|
205
|
-
this.setFocusCell(e, w(e), !0);
|
|
206
|
-
}
|
|
207
188
|
setFocusCell(e, t, n) {
|
|
208
189
|
const { parentListEl: l } = this;
|
|
209
190
|
n && I.set(l, null);
|
|
210
191
|
const h = this.getGridCells();
|
|
211
|
-
h.forEach((
|
|
212
|
-
|
|
213
|
-
}), e && (e
|
|
192
|
+
h.forEach((s) => {
|
|
193
|
+
s.removeAttribute("tabindex"), s.removeAttribute(w);
|
|
194
|
+
}), e && (e === t ? e.tabIndex = 0 : e.removeAttribute("tabindex"), e.setAttribute(w, ""), n && I.set(l, h.indexOf(e)));
|
|
214
195
|
}
|
|
215
196
|
focusCell(e, t = !0) {
|
|
216
|
-
const n =
|
|
197
|
+
const n = T(e);
|
|
217
198
|
this.setFocusCell(e, n, t), n?.focus();
|
|
218
199
|
}
|
|
219
200
|
// #endregion
|
|
220
201
|
// #region Rendering
|
|
221
202
|
renderSelected() {
|
|
222
203
|
const { selected: e, selectionMode: t, selectionAppearance: n } = this;
|
|
223
|
-
return t === "none" || n === "border" ? null : r("selection-container",
|
|
204
|
+
return t === "none" || n === "border" ? null : r("selection-container", o`<div class=${i({
|
|
224
205
|
[a.selectionContainer]: !0,
|
|
225
206
|
[a.selectionContainerSingle]: t === "single" || t === "single-persist"
|
|
226
|
-
})} @click=${this.handleItemClick}><calcite-icon .icon=${e ? t === "multiple" ?
|
|
207
|
+
})} @click=${this.handleItemClick}><calcite-icon .icon=${e ? t === "multiple" ? u.selectedMultiple : u.selectedSingle : t === "multiple" ? u.unselectedMultiple : u.unselectedSingle} .scale=${$(this.scale)}></calcite-icon></div>`);
|
|
227
208
|
}
|
|
228
209
|
renderDragHandle() {
|
|
229
|
-
const { label: e, dragHandle: t, dragDisabled: n, setPosition: l, setSize: h, moveToItems:
|
|
230
|
-
return t ? r("drag-handle-container",
|
|
210
|
+
const { label: e, dragHandle: t, dragDisabled: n, setPosition: l, setSize: h, moveToItems: s } = this;
|
|
211
|
+
return t ? r("drag-handle-container", o`<div .ariaLabel=${e} class=${i({ [a.dragContainer]: !0, [a.gridCell]: !0 })} role=gridcell ${v(this.handleGridEl)}><calcite-sort-handle .disabled=${n} .label=${e} .moveToItems=${s} @calciteSortHandleBeforeClose=${this.handleSortHandleBeforeClose} @calciteSortHandleBeforeOpen=${this.handleSortHandleBeforeOpen} @calciteSortHandleClose=${this.handleSortHandleClose} @calciteSortHandleOpen=${this.handleSortHandleOpen} overlay-positioning=fixed .scale=${this.scale} .setPosition=${l} .setSize=${h} ${v(this.setSortHandleEl)}></calcite-sort-handle></div>`) : null;
|
|
231
212
|
}
|
|
232
213
|
renderOpen() {
|
|
233
|
-
const { el: e, open: t, openable: n, messages: l, displayMode: h, scale:
|
|
214
|
+
const { el: e, open: t, openable: n, messages: l, displayMode: h, scale: s } = this;
|
|
234
215
|
if (h !== "nested")
|
|
235
216
|
return null;
|
|
236
|
-
const
|
|
237
|
-
return r("open-container",
|
|
217
|
+
const g = P(e), m = n ? t ? u.open : g === "rtl" ? u.closedRTL : u.closedLTR : u.blank, c = $(s), p = n ? t ? l.collapse : l.expand : void 0, f = n ? this.handleToggleClick : void 0;
|
|
218
|
+
return r("open-container", o`<div class=${i(a.openContainer)} @click=${f} title=${p ?? M}>${r(m, o`<calcite-icon .icon=${m} .scale=${c}></calcite-icon>`)}</div>`);
|
|
238
219
|
}
|
|
239
220
|
renderActionsStart() {
|
|
240
221
|
const { label: e, hasActionsStart: t } = this;
|
|
241
|
-
return r("actions-start-container",
|
|
222
|
+
return r("actions-start-container", o`<div .ariaLabel=${e} class=${i({ [a.actionsStart]: !0, [a.gridCell]: !0 })} .hidden=${!t} role=gridcell ${v(this.actionsStartEl)}><slot name=${S.actionsStart} @slotchange=${this.handleActionsStartSlotChange}></slot></div>`);
|
|
242
223
|
}
|
|
243
224
|
renderActionsEnd() {
|
|
244
225
|
const { label: e, hasActionsEnd: t, closable: n, messages: l } = this;
|
|
245
|
-
return r("actions-end-container",
|
|
226
|
+
return r("actions-end-container", o`<div .ariaLabel=${e} class=${i({ [a.actionsEnd]: !0, [a.gridCell]: !0 })} .hidden=${!(t || n)} role=gridcell ${v(this.actionsEndEl)}><slot name=${S.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot>${n ? r("close-action", o`<calcite-action appearance=transparent class=${i(a.close)} .icon=${u.close} .label=${l.close} @click=${this.handleCloseClick} .scale=${this.scale} .text=${l.close}></calcite-action>`) : null}</div>`);
|
|
246
227
|
}
|
|
247
228
|
renderContentStart() {
|
|
248
229
|
const { hasContentStart: e } = this;
|
|
249
|
-
return
|
|
230
|
+
return o`<div class=${i(a.contentStart)} .hidden=${!e}><slot name=${S.contentStart} @slotchange=${this.handleContentStartSlotChange}></slot></div>`;
|
|
250
231
|
}
|
|
251
232
|
renderCustomContent() {
|
|
252
233
|
const { hasCustomContent: e } = this;
|
|
253
|
-
return
|
|
234
|
+
return o`<div class=${i(a.customContent)} .hidden=${!e}><slot name=${S.content} @slotchange=${this.handleContentSlotChange}></slot></div>`;
|
|
254
235
|
}
|
|
255
236
|
renderIconStart() {
|
|
256
237
|
const { iconStart: e, iconFlipRtl: t, scale: n } = this;
|
|
257
|
-
return e ? r("icon-start",
|
|
238
|
+
return e ? r("icon-start", o`<calcite-icon class=${i(a.icon)} .flipRtl=${t === "both" || t === "start"} .icon=${e} .scale=${$(n)}></calcite-icon>`) : null;
|
|
258
239
|
}
|
|
259
240
|
renderIconEnd() {
|
|
260
241
|
const { iconEnd: e, iconFlipRtl: t, scale: n } = this;
|
|
261
|
-
return e ? r("icon-end",
|
|
242
|
+
return e ? r("icon-end", o`<calcite-icon class=${i(a.icon)} .flipRtl=${t === "both" || t === "end"} .icon=${e} .scale=${$(n)}></calcite-icon>`) : null;
|
|
262
243
|
}
|
|
263
244
|
renderContentEnd() {
|
|
264
245
|
const { hasContentEnd: e } = this;
|
|
265
|
-
return
|
|
246
|
+
return o`<div class=${i(a.contentEnd)} .hidden=${!e}><slot name=${S.contentEnd} @slotchange=${this.handleContentEndSlotChange}></slot></div>`;
|
|
266
247
|
}
|
|
267
248
|
renderContentBottom() {
|
|
268
249
|
const { hasContentBottom: e } = this;
|
|
269
|
-
return
|
|
250
|
+
return o`<div class=${i(a.contentBottom)} .hidden=${!e}><slot name=${S.contentBottom} @slotchange=${this.handleContentBottomSlotChange}></slot></div>`;
|
|
270
251
|
}
|
|
271
252
|
renderDefaultContainer() {
|
|
272
|
-
return
|
|
253
|
+
return o`<div class=${i({
|
|
273
254
|
[a.nestedContainer]: !0,
|
|
274
255
|
[a.nestedContainerOpen]: this.openable && this.open
|
|
275
256
|
})}><slot @slotchange=${this.handleDefaultSlotChange} ${v(this.defaultSlotEl)}></slot></div>`;
|
|
276
257
|
}
|
|
277
258
|
renderContentProperties() {
|
|
278
259
|
const { label: e, description: t, hasCustomContent: n } = this;
|
|
279
|
-
return !n && (e || t) ? r("content",
|
|
260
|
+
return !n && (e || t) ? r("content", o`<div class=${i(a.content)}>${e ? r("label", o`<div class=${i(a.label)}>${e}</div>`) : null}${t ? r("description", o`<div class=${i(a.description)}>${t}</div>`) : null}</div>`) : null;
|
|
280
261
|
}
|
|
281
262
|
renderContentContainer() {
|
|
282
|
-
const { description: e, label: t, selectionMode: n, hasCustomContent: l, unavailable: h } = this,
|
|
263
|
+
const { description: e, label: t, selectionMode: n, hasCustomContent: l, unavailable: h } = this, s = l || !!t || !!e, g = [
|
|
283
264
|
this.renderContentStart(),
|
|
284
265
|
this.renderCustomContent(),
|
|
285
266
|
this.renderIconStart(),
|
|
@@ -287,30 +268,30 @@ class V extends T {
|
|
|
287
268
|
this.renderIconEnd(),
|
|
288
269
|
this.renderContentEnd()
|
|
289
270
|
];
|
|
290
|
-
return r("content-container",
|
|
271
|
+
return r("content-container", o`<div .ariaLabel=${t} class=${i({
|
|
291
272
|
[a.gridCell]: !0,
|
|
292
273
|
[a.contentContainer]: !0,
|
|
293
274
|
[a.contentContainerUnavailable]: h,
|
|
294
275
|
[a.contentContainerSelectable]: n !== "none",
|
|
295
|
-
[a.contentContainerHasCenterContent]:
|
|
296
|
-
})} @click=${this.handleItemClick}
|
|
276
|
+
[a.contentContainerHasCenterContent]: s
|
|
277
|
+
})} @click=${this.handleItemClick} role=gridcell ${v(this.contentEl)}>${g}</div>`);
|
|
297
278
|
}
|
|
298
279
|
render() {
|
|
299
|
-
const { openable: e, open: t, level: n, active: l, label: h, selected:
|
|
300
|
-
return
|
|
280
|
+
const { openable: e, open: t, level: n, active: l, label: h, selected: s, selectionAppearance: g, selectionMode: m, interactionMode: c, closed: p, filterHidden: f, bordered: y, disabled: L, hasContentBottom: E } = this, H = y && E, k = y && !E, x = m !== "none" && g === "border", A = x && s, O = x && !s, B = c === "interactive" || c === "static" && m !== "none" && g === "border";
|
|
281
|
+
return F({ disabled: L, children: o`<div class=${i({ [a.wrapper]: !0, [a.wrapperBordered]: H })}><div .ariaExpanded=${e ? t : null} .ariaLabel=${h} .ariaLevel=${n} .ariaSelected=${s} class=${i({
|
|
301
282
|
[a.row]: !0,
|
|
302
283
|
[a.container]: !0,
|
|
303
|
-
[a.containerHover]:
|
|
284
|
+
[a.containerHover]: B,
|
|
304
285
|
[a.containerBorder]: x,
|
|
305
|
-
[a.containerBorderSelected]:
|
|
306
|
-
[a.containerBorderUnselected]:
|
|
286
|
+
[a.containerBorderSelected]: A,
|
|
287
|
+
[a.containerBorderUnselected]: O
|
|
307
288
|
})} .hidden=${p || f} @focus=${this.focusCellNull} @focusin=${this.emitInternalListItemActive} @keydown=${this.handleItemKeyDown} role=row .tabIndex=${l ? 0 : -1} ${v(this.containerEl)}>${this.renderDragHandle()}${this.renderSelected()}${this.renderOpen()}<div class=${i({
|
|
308
289
|
[a.contentContainerWrapper]: !0,
|
|
309
|
-
[a.contentContainerWrapperBordered]:
|
|
290
|
+
[a.contentContainerWrapperBordered]: k
|
|
310
291
|
})}>${this.renderActionsStart()}${this.renderContentContainer()}${this.renderActionsEnd()}</div></div>${this.renderContentBottom()}</div>${this.renderDefaultContainer()}` });
|
|
311
292
|
}
|
|
312
293
|
}
|
|
313
|
-
|
|
294
|
+
z("calcite-list-item", J);
|
|
314
295
|
export {
|
|
315
|
-
|
|
296
|
+
J as ListItem
|
|
316
297
|
};
|
|
@@ -10,3 +10,4 @@ export declare function getListItemChildren(slotEl: HTMLSlotElement): {
|
|
|
10
10
|
};
|
|
11
11
|
export declare function updateListItemChildren(slotEl: HTMLSlotElement): void;
|
|
12
12
|
export declare function getDepth(element: HTMLElement, includeGroup?: boolean): number;
|
|
13
|
+
export declare function isListItem(element: Element): element is HTMLCalciteListItemElement;
|
|
@@ -4,11 +4,9 @@ import { LitElement as c, createEvent as n, safeClassMap as e } from "@arcgis/lu
|
|
|
4
4
|
import { u as o, I as r } from "../../chunks/interactive.js";
|
|
5
5
|
import { M as d } from "../../chunks/resources5.js";
|
|
6
6
|
import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
7
|
-
/*!
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* v3.0.0-next.98
|
|
11
|
-
*/
|
|
7
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
8
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
9
|
+
v3.0.0 */
|
|
12
10
|
const t = {
|
|
13
11
|
container: "container",
|
|
14
12
|
heading: "heading"
|
|
@@ -4,14 +4,10 @@ import { LitElement as z, setAttribute as u, safeClassMap as d, safeStyleMap as
|
|
|
4
4
|
import { g as x } from "../../chunks/guid.js";
|
|
5
5
|
import { u as y } from "../../chunks/useT9n.js";
|
|
6
6
|
import { css as b } from "@lit/reactive-element/css-tag.js";
|
|
7
|
-
/*!
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* v3.0.0-next.98
|
|
11
|
-
*/
|
|
7
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
8
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
9
|
+
v3.0.0 */
|
|
12
10
|
const a = {
|
|
13
|
-
container: "container",
|
|
14
|
-
loader: "loader",
|
|
15
11
|
percentage: "percentage",
|
|
16
12
|
progressRing: "ring--progress",
|
|
17
13
|
ring: "ring",
|
|
@@ -3,20 +3,18 @@ import { html as o } from "lit";
|
|
|
3
3
|
import { LitElement as n } from "@arcgis/lumina";
|
|
4
4
|
import { useWatchAttributes as u } from "@arcgis/components-controllers";
|
|
5
5
|
import { h as r, d as a, s as h, b as m } from "../../chunks/dom.js";
|
|
6
|
-
import { c
|
|
7
|
-
import { u as
|
|
8
|
-
import { css as
|
|
9
|
-
/*!
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const b = y`:host{display:flex}ul{margin:0;display:inline-flex;block-size:100%;align-items:center;padding:0}:host([layout=vertical]) ul{display:flex;inline-size:100%;flex-direction:column}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
15
|
-
class g extends n {
|
|
6
|
+
import { c } from "../../chunks/loadable.js";
|
|
7
|
+
import { u as f } from "../../chunks/useT9n.js";
|
|
8
|
+
import { css as p } from "@lit/reactive-element/css-tag.js";
|
|
9
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
10
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
11
|
+
v3.0.0 */
|
|
12
|
+
const d = p`:host{display:flex}ul{margin:0;display:inline-flex;block-size:100%;align-items:center;padding:0}:host([layout=vertical]) ul{display:flex;inline-size:100%;flex-direction:column}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
13
|
+
class y extends n {
|
|
16
14
|
// #endregion
|
|
17
15
|
// #region Lifecycle
|
|
18
16
|
constructor() {
|
|
19
|
-
super(), this.attributeWatch = u(["role"], this.handleGlobalAttributesChanged), this.menuItems = [], this.layout = "horizontal", this.messages =
|
|
17
|
+
super(), this.attributeWatch = u(["role"], this.handleGlobalAttributesChanged), this.menuItems = [], this.layout = "horizontal", this.messages = f(), this.listen("calciteInternalMenuItemKeyEvent", this.calciteInternalNavMenuItemKeyEvent);
|
|
20
18
|
}
|
|
21
19
|
static {
|
|
22
20
|
this.properties = { label: 1, layout: 3, messageOverrides: 0 };
|
|
@@ -25,7 +23,7 @@ class g extends n {
|
|
|
25
23
|
this.shadowRootOptions = { mode: "open", delegatesFocus: !0 };
|
|
26
24
|
}
|
|
27
25
|
static {
|
|
28
|
-
this.styles =
|
|
26
|
+
this.styles = d;
|
|
29
27
|
}
|
|
30
28
|
// #endregion
|
|
31
29
|
// #region Public Methods
|
|
@@ -34,13 +32,11 @@ class g extends n {
|
|
|
34
32
|
await c(this), r(this.menuItems[0]);
|
|
35
33
|
}
|
|
36
34
|
async load() {
|
|
37
|
-
f(this);
|
|
38
35
|
}
|
|
39
36
|
willUpdate(e) {
|
|
40
37
|
e.has("layout") && (this.hasUpdated || this.layout !== "horizontal") && this.setMenuItemLayout(this.menuItems, this.layout);
|
|
41
38
|
}
|
|
42
39
|
loaded() {
|
|
43
|
-
p(this);
|
|
44
40
|
}
|
|
45
41
|
// #endregion
|
|
46
42
|
// #region Private Methods
|
|
@@ -72,7 +68,7 @@ class g extends n {
|
|
|
72
68
|
return o`<ul .ariaLabel=${this.label} .role=${this.getEffectiveRole()}><slot @slotchange=${this.handleMenuSlotChange}></slot></ul>`;
|
|
73
69
|
}
|
|
74
70
|
}
|
|
75
|
-
l("calcite-menu",
|
|
71
|
+
l("calcite-menu", y);
|
|
76
72
|
export {
|
|
77
|
-
|
|
73
|
+
y as Menu
|
|
78
74
|
};
|
|
@@ -4,14 +4,12 @@ import { keyed as l } from "lit-html/directives/keyed.js";
|
|
|
4
4
|
import { createRef as m, ref as p } from "lit-html/directives/ref.js";
|
|
5
5
|
import { LitElement as g, createEvent as v, safeClassMap as r, nothing as u } from "@arcgis/lumina";
|
|
6
6
|
import { s as y, g as w } from "../../chunks/dom.js";
|
|
7
|
-
import { c as x
|
|
8
|
-
import { u as
|
|
9
|
-
import { css as
|
|
10
|
-
/*!
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* v3.0.0-next.98
|
|
14
|
-
*/
|
|
7
|
+
import { c as x } from "../../chunks/loadable.js";
|
|
8
|
+
import { u as I } from "../../chunks/useT9n.js";
|
|
9
|
+
import { css as $ } from "@lit/reactive-element/css-tag.js";
|
|
10
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
11
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
12
|
+
v3.0.0 */
|
|
15
13
|
const t = {
|
|
16
14
|
container: "container",
|
|
17
15
|
content: "content",
|
|
@@ -30,18 +28,18 @@ const t = {
|
|
|
30
28
|
open: "open",
|
|
31
29
|
nested: "nested",
|
|
32
30
|
textContainer: "text-container"
|
|
33
|
-
},
|
|
34
|
-
class
|
|
31
|
+
}, k = $`:host{position:relative;box-sizing:border-box;display:flex;align-items:center;flex-shrink:0}:host .container,:host .item-content,:host .content{min-block-size:3rem}:host([layout=vertical]){inline-size:100%}:host(:not([layout=vertical])){block-size:100%}.container,.item-content{display:flex;block-size:100%;inline-size:100%;flex-direction:row;align-items:stretch}.content{position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;align-items:center;justify-content:center;padding-inline:1rem;font-size:var(--calcite-font-size-0);outline:2px solid transparent;outline-offset:2px;text-decoration:none;padding-block-start:.125rem;border-block-end:.125rem solid var(--calcite-color-transparent);background-color:var(--calcite-menu-background-color, var(--calcite-internal-menu-background-color, var(--calcite-color-foreground-1)));color:var(--calcite-menu-text-color, var(--calcite-internal-menu-text-color, var(--calcite-color-text-2)))}.content:hover{border-block-end-color:var(--calcite-menu-item-accent-color, var(--calcite-color-border-2))}.content:focus{border-block-end-width:4px;outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))));padding-block-start:.25rem;border-block-end-width:.25rem}.content:active{--calcite-internal-menu-background-color: var(--calcite-color-foreground-3);--calcite-internal-menu-text-color: var(--calcite-color-text-1)}.content span{display:inline-flex}.content.layout--vertical{display:flex;inline-size:100%;justify-content:flex-start;padding-block:1rem;border-block-end:0;border-inline-end:.25rem solid var(--calcite-color-transparent)}:host([layout=vertical]) .content{padding-inline:.75rem}:host([active]) .content{--calcite-internal-menu-text-color: var(--calcite-color-text-1);border-color:var(--calcite-menu-item-accent-color, var(--calcite-color-brand))}:host([active]) .icon{--calcite-internal-menu-item-icon-color: var(--calcite-color-brand)}.icon{color:var(--calcite-menu-text-color, var(--calcite-icon-color, var(--calcite-internal-menu-item-icon-color, var(--calcite-color-text-3))))}.icon--start{margin-inline-end:.75rem}.icon--end{margin-inline-start:.75rem}:host([layout=vertical]) .icon--end{margin-inline-start:auto;padding-inline-start:.75rem}.icon--dropdown{position:relative;margin-inline-start:auto;margin-inline-end:0px;padding-inline-start:.5rem}:host([layout=vertical]) .icon--end~.icon--dropdown{margin-inline-start:.75rem}:host([layout=vertical]) .hover-href-icon{padding-inline-start:.5rem}:host([layout=vertical]) .hover-href-icon~.icon--end{margin-inline-start:.5rem}:host([layout=vertical]) .hover-href-icon~.icon--breadcrumb{margin-inline-start:.75rem}.icon--breadcrumb{margin-inline-end:0px;padding-inline-start:.5rem}:host([layout=vertical]) .icon--breadcrumb{margin-inline-start:auto}:host([layout=vertical]) .icon--breadcrumb~.icon--dropdown{margin-inline-start:.5rem}:host([layout=vertical]) .icon--end~.icon--breadcrumb{margin-inline-start:.5rem}:host([breadcrumb]) .content{padding-inline-end:.75rem}calcite-action{position:relative;block-size:auto;border-inline-start:1px solid var(--calcite-color-foreground-1);--calcite-action-background-color: var(--calcite-menu-background-color);--calcite-action-text-color: var(--calcite-menu-text-color)}calcite-action:after{position:absolute;inset-inline-start:-1px;display:block;inline-size:1px;content:"";inset-block:.75rem;background-color:var(--calcite-color-border-3)}calcite-action:hover:after{block-size:100%;inset-block:0}calcite-action:active{--calcite-action-background-color-press: var(--calcite-menu-background-color)}.content:focus~calcite-action,.content:hover~calcite-action{--calcite-action-text-color: var(--calcite-menu-text-color, var(--calcite-color-text-1))}.content:focus~calcite-action:after,.content:hover~calcite-action:after{block-size:100%;inset-block:0}.dropdown-menu-items{position:absolute;display:none;block-size:auto;min-inline-size:100%;flex-direction:column;overflow:visible;border:1px solid var(--calcite-menu-item-sub-menu-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-menu-item-sub-menu-corner-radius, var(--calcite-corner-radius));inset-block-start:100%;z-index:var(--calcite-z-index-dropdown)}.dropdown-menu-items.open{display:block}.dropdown-menu-items.nested{position:absolute;inset-block-start:-1px;transform:translate(calc(100% - 2px))}.parent--vertical{flex-direction:column}.dropdown--vertical.dropdown-menu-items{position:relative;box-shadow:none;inset-block-start:0;transform:none}.dropdown--vertical.dropdown-menu-items:last-of-type{border-inline:0}:host([layout=vertical]:last-of-type) .dropdown-menu-items{border-block-end:0}:host([slot=submenu-item]) .parent--vertical{padding-inline-start:1.5rem}.dropdown-menu-items.nested.calcite--rtl{transform:translate(calc(-100% + 2px))}.dropdown--vertical.dropdown-menu-items.nested.calcite--rtl{transform:none}.hover-href-icon{position:relative;inset-inline-end:.25rem;margin-inline-start:auto;opacity:0;transition:all var(--calcite-internal-animation-timing-medium) ease-in-out}.content:focus .hover-href-icon,.content:hover .hover-href-icon{inset-inline-end:-.25rem;opacity:1}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
32
|
+
class L extends g {
|
|
35
33
|
// #endregion
|
|
36
34
|
// #region Lifecycle
|
|
37
35
|
constructor() {
|
|
38
|
-
super(), this.anchorEl = m(), this.dropdownActionEl = m(), this.hasSubmenu = !1, this.isTopLevelItem = !1, this.messages =
|
|
36
|
+
super(), this.anchorEl = m(), this.dropdownActionEl = m(), this.hasSubmenu = !1, this.isTopLevelItem = !1, this.messages = I(), this.open = !1, this.calciteInternalMenuItemKeyEvent = v(), this.calciteMenuItemSelect = v(), this.listenOn(window, "click", this.handleClickOut), this.listen("focusout", this.handleFocusOut), this.listen("blur", this.blurHandler), this.listen("focus", this.focusHandler);
|
|
39
37
|
}
|
|
40
38
|
static {
|
|
41
39
|
this.properties = { hasSubmenu: 16, submenuItems: 16, active: 7, breadcrumb: 7, href: 1, iconEnd: 3, iconFlipRtl: 3, iconStart: 3, isTopLevelItem: 5, label: 1, layout: 3, messageOverrides: 0, open: 7, rel: 3, target: 3, text: 1, topLevelMenuLayout: 1 };
|
|
42
40
|
}
|
|
43
41
|
static {
|
|
44
|
-
this.styles =
|
|
42
|
+
this.styles = k;
|
|
45
43
|
}
|
|
46
44
|
// #endregion
|
|
47
45
|
// #region Public Methods
|
|
@@ -50,10 +48,8 @@ class S extends g {
|
|
|
50
48
|
await x(this), this.anchorEl.value.focus();
|
|
51
49
|
}
|
|
52
50
|
async load() {
|
|
53
|
-
I(this);
|
|
54
51
|
}
|
|
55
52
|
loaded() {
|
|
56
|
-
$(this);
|
|
57
53
|
}
|
|
58
54
|
// #endregion
|
|
59
55
|
// #region Private Methods
|
|
@@ -164,7 +160,7 @@ class S extends g {
|
|
|
164
160
|
})} role=none><div class=${r(t.itemContent)}><a .ariaCurrent=${this.isFocused ? "page" : !1} .ariaExpanded=${this.open} .ariaHasPopup=${this.hasSubmenu} .ariaLabel=${this.label} class=${r({ [t.layoutVertical]: this.layout === "vertical", [t.content]: !0 })} href=${this.href ?? u} @click=${this.clickHandler} @keydown=${this.keyDownHandler} rel=${this.rel ?? u} role=menuitem .tabIndex=${this.isTopLevelItem ? 0 : -1} target=${this.target ?? u} ${p(this.anchorEl)}>${this.renderItemContent(e)}</a>${this.href && this.hasSubmenu ? this.renderDropdownAction(e) : null}</div>${this.renderSubmenuItems(e)}</li>`;
|
|
165
161
|
}
|
|
166
162
|
}
|
|
167
|
-
f("calcite-menu-item",
|
|
163
|
+
f("calcite-menu-item", L);
|
|
168
164
|
export {
|
|
169
|
-
|
|
165
|
+
L as MenuItem
|
|
170
166
|
};
|