@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
|
@@ -2,14 +2,12 @@ import { c as R } from "../../chunks/runtime.js";
|
|
|
2
2
|
import { ref as A } from "lit-html/directives/ref.js";
|
|
3
3
|
import { keyed as H } from "lit-html/directives/keyed.js";
|
|
4
4
|
import { html as f } from "lit";
|
|
5
|
-
import { LitElement as I, createEvent as
|
|
6
|
-
import {
|
|
5
|
+
import { LitElement as I, createEvent as v, safeClassMap as u } from "@arcgis/lumina";
|
|
6
|
+
import { b as y, i as M, s as o, k as S, m as F, n as C } from "../../chunks/date.js";
|
|
7
7
|
import { css as P } from "@lit/reactive-element/css-tag.js";
|
|
8
|
-
/*!
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* v3.0.0-next.98
|
|
12
|
-
*/
|
|
8
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
9
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
10
|
+
v3.0.0 */
|
|
13
11
|
const D = {
|
|
14
12
|
calendar: "calendar",
|
|
15
13
|
calendarContainer: "calendar-container",
|
|
@@ -23,12 +21,12 @@ const D = {
|
|
|
23
21
|
weekDays: "week-days",
|
|
24
22
|
weekHeader: "week-header",
|
|
25
23
|
weekHeaderContainer: "week-header-container"
|
|
26
|
-
}, E = P`:host([hidden]){display:none}[hidden]{display:none}.calendar-container{display:flex;inline-size:100%}:host([range][layout=vertical]) .calendar-container{flex-direction:column}.calendar{inline-size:100%}.week-header-container{display:flex;block-size:16px;padding-inline:var(--calcite-spacing-sm);padding-block:var(--calcite-spacing-md)}.week-header{display:flex;align-items:center;justify-content:center;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-3)
|
|
24
|
+
}, E = P`:host([hidden]){display:none}[hidden]{display:none}.calendar-container{display:flex;inline-size:100%}:host([range][layout=vertical]) .calendar-container{flex-direction:column}.calendar{inline-size:100%}.week-header-container{display:flex;block-size:16px;padding-inline:var(--calcite-spacing-sm);padding-block:var(--calcite-spacing-md)}.week-header{display:flex;align-items:center;justify-content:center;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-bold);inline-size:14.2857142857%;color:var(--calcite-date-picker-week-header-text-color, var(--calcite-color-text-3))}.day-container{display:flex;inline-size:100%;min-inline-size:0px;justify-content:center}.day-container calcite-date-picker-day{inline-size:100%}.week-days{display:grid;grid-template-columns:repeat(7,1fr);grid-auto-rows:1fr;padding-inline:var(--calcite-spacing-sm);padding-block-end:var(--calcite-spacing-sm)}.month-header{display:flex;inline-size:100%;justify-content:space-between}.month{display:flex;inline-size:100%;flex-direction:column;justify-content:space-between}.day{font-size:var(--calcite-font-size)}:host([scale=s]) .week-days{padding-inline:var(--calcite-spacing-xs);padding-block-end:var(--calcite-spacing-xs)}:host([scale=s]) .week-header-container{padding-inline:var(--calcite-spacing-xs);padding-block:var(--calcite-spacing-sm)}:host([scale=s]) .day{font-size:var(--calcite-font-size-sm)}:host([scale=l]) .week-header{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .week-days{padding-inline:var(--calcite-spacing-md);padding-block-end:var(--calcite-spacing-md)}:host([scale=l]) .week-header-container{padding-inline:var(--calcite-spacing-md);padding-block:var(--calcite-spacing-md-plus)}:host([scale=l]) .day{font-size:var(--calcite-font-size-md)}.calendar--start{border-width:0px;border-style:solid;border-color:var(--calcite-date-picker-range-calendar-divider-color, var(--calcite-color-border-1))}:host([range][layout=horizontal]) .calendar--start{border-inline-end-width:var(--calcite-border-width-sm)}:host([range][layout=vertical]) .calendar--start{border-block-end-width:var(--calcite-border-width-sm)}.noncurrent{pointer-events:none;opacity:0}`, m = 7, k = 6;
|
|
27
25
|
class z extends I {
|
|
28
26
|
// #endregion
|
|
29
27
|
// #region Lifecycle
|
|
30
28
|
constructor() {
|
|
31
|
-
super(), this.activeDate = /* @__PURE__ */ new Date(), this.range = !1, this.calciteInternalDatePickerDayHover =
|
|
29
|
+
super(), this.activeDate = /* @__PURE__ */ new Date(), this.range = !1, this.calciteInternalDatePickerDayHover = v({ cancelable: !1 }), this.calciteInternalDatePickerDaySelect = v({ cancelable: !1 }), this.calciteInternalDatePickerMonthActiveDateChange = v({ cancelable: !1 }), this.calciteInternalDatePickerMonthChange = v({ cancelable: !1 }), this.calciteInternalDatePickerMonthMouseOut = v({ cancelable: !1 }), this.listen("pointerout", this.pointerOutHandler), this.listen("focusout", this.disableActiveFocus);
|
|
32
30
|
}
|
|
33
31
|
static {
|
|
34
32
|
this.properties = { focusedDate: 16, activeDate: 0, dateTimeFormat: 0, endDate: 0, headingLevel: 11, hoverRange: 0, layout: 3, localeData: 0, max: 0, messages: 0, min: 0, monthStyle: 1, range: 7, scale: 3, selectedDate: 0, startDate: 0 };
|
|
@@ -45,7 +43,7 @@ class z extends I {
|
|
|
45
43
|
// #endregion
|
|
46
44
|
// #region Private Methods
|
|
47
45
|
updateFocusedDateWithActive(e) {
|
|
48
|
-
this.selectedDate || (this.focusedDate = M(e, this.min, this.max) ? e :
|
|
46
|
+
this.selectedDate || (this.focusedDate = M(e, this.min, this.max) ? e : y(e, this.min, this.max));
|
|
49
47
|
}
|
|
50
48
|
keyDownHandler(e) {
|
|
51
49
|
if (e.defaultPrevented)
|
|
@@ -102,7 +100,7 @@ class z extends I {
|
|
|
102
100
|
*/
|
|
103
101
|
addMonths(e, a) {
|
|
104
102
|
const t = new Date(a);
|
|
105
|
-
t.setMonth(a.getMonth() + e), this.calciteInternalDatePickerMonthActiveDateChange.emit(
|
|
103
|
+
t.setMonth(a.getMonth() + e), this.calciteInternalDatePickerMonthActiveDateChange.emit(y(t, this.min, this.max)), this.focusedDate = y(t, this.min, this.max), this.activeFocus = !0, this.calciteInternalDatePickerDayHover.emit(t);
|
|
106
104
|
}
|
|
107
105
|
/**
|
|
108
106
|
* Add n days to the current date
|
|
@@ -112,7 +110,7 @@ class z extends I {
|
|
|
112
110
|
*/
|
|
113
111
|
addDays(e = 0, a) {
|
|
114
112
|
const t = new Date(a);
|
|
115
|
-
t.setDate(a.getDate() + e), this.calciteInternalDatePickerMonthActiveDateChange.emit(
|
|
113
|
+
t.setDate(a.getDate() + e), this.calciteInternalDatePickerMonthActiveDateChange.emit(y(t, this.min, this.max)), this.focusedDate = y(t, this.min, this.max), this.activeFocus = !0, this.calciteInternalDatePickerDayHover.emit(t);
|
|
116
114
|
}
|
|
117
115
|
/**
|
|
118
116
|
* Get dates for last days of the previous month
|
|
@@ -122,13 +120,13 @@ class z extends I {
|
|
|
122
120
|
* @param startOfWeek
|
|
123
121
|
*/
|
|
124
122
|
getPreviousMonthDays(e, a, t) {
|
|
125
|
-
const s = new Date(a, e, 0),
|
|
126
|
-
if (
|
|
123
|
+
const s = new Date(a, e, 0), i = s.getDate(), n = s.getDay(), r = [];
|
|
124
|
+
if (n === (t + k) % m)
|
|
127
125
|
return r;
|
|
128
|
-
if (
|
|
129
|
-
return [
|
|
130
|
-
for (let c = (m +
|
|
131
|
-
r.push(
|
|
126
|
+
if (n === t)
|
|
127
|
+
return [i];
|
|
128
|
+
for (let c = (m + n - t) % m; c >= 0; c--)
|
|
129
|
+
r.push(i - c);
|
|
132
130
|
return r;
|
|
133
131
|
}
|
|
134
132
|
/**
|
|
@@ -139,8 +137,8 @@ class z extends I {
|
|
|
139
137
|
*/
|
|
140
138
|
getCurrentMonthDays(e, a) {
|
|
141
139
|
const t = new Date(a, e + 1, 0).getDate(), s = [];
|
|
142
|
-
for (let
|
|
143
|
-
s.push(
|
|
140
|
+
for (let i = 0; i < t; i++)
|
|
141
|
+
s.push(i + 1);
|
|
144
142
|
return s;
|
|
145
143
|
}
|
|
146
144
|
/**
|
|
@@ -151,12 +149,12 @@ class z extends I {
|
|
|
151
149
|
* @param startOfWeek
|
|
152
150
|
*/
|
|
153
151
|
getNextMonthDays(e, a, t) {
|
|
154
|
-
const s = new Date(a, e + 1, 0).getDay(),
|
|
152
|
+
const s = new Date(a, e + 1, 0).getDay(), i = [];
|
|
155
153
|
if (s === (t + k) % m)
|
|
156
|
-
return
|
|
157
|
-
for (let
|
|
158
|
-
|
|
159
|
-
return
|
|
154
|
+
return i;
|
|
155
|
+
for (let n = 0; n < (k - (s - t)) % m; n++)
|
|
156
|
+
i.push(n + 1);
|
|
157
|
+
return i;
|
|
160
158
|
}
|
|
161
159
|
/**
|
|
162
160
|
* Determine if the date is in between the start and end dates
|
|
@@ -199,27 +197,27 @@ class z extends I {
|
|
|
199
197
|
isHoverInRange() {
|
|
200
198
|
if (!this.hoverRange || !this.startDate)
|
|
201
199
|
return !1;
|
|
202
|
-
const { start: e, end: a } = this.hoverRange, t = this.isFocusedOnStart(), s = this.startDate && a > this.startDate,
|
|
200
|
+
const { start: e, end: a } = this.hoverRange, t = this.isFocusedOnStart(), s = this.startDate && a > this.startDate, i = this.endDate && a < this.endDate, n = this.startDate && e > this.startDate, r = this.endDate && e < this.endDate, c = !t && this.startDate && s && (!this.endDate || i), h = t && this.startDate && n && r;
|
|
203
201
|
return c || h;
|
|
204
202
|
}
|
|
205
203
|
isRangeHover(e) {
|
|
206
204
|
if (!this.hoverRange)
|
|
207
205
|
return !1;
|
|
208
|
-
const { start: a, end: t } = this.hoverRange, s = this.isFocusedOnStart(),
|
|
209
|
-
if (
|
|
206
|
+
const { start: a, end: t } = this.hoverRange, s = this.isFocusedOnStart(), i = this.isHoverInRange(), n = e > a && e < this.startDate, r = e < t && e > this.endDate, c = e > t && e < this.endDate, h = e < a && e > this.startDate, g = e < t && e > this.startDate, d = e > a && e < this.endDate, l = this.startDate && this.endDate;
|
|
207
|
+
if (i) {
|
|
210
208
|
if (l)
|
|
211
|
-
return s ? e < this.endDate && (h ||
|
|
209
|
+
return s ? e < this.endDate && (h || n) : c || r;
|
|
212
210
|
if (this.startDate && !this.endDate)
|
|
213
|
-
return s ?
|
|
211
|
+
return s ? n : g;
|
|
214
212
|
if (!this.startDate && this.endDate)
|
|
215
213
|
return s ? d : r;
|
|
216
214
|
} else if (l)
|
|
217
|
-
return s ?
|
|
215
|
+
return s ? n : r;
|
|
218
216
|
}
|
|
219
217
|
getDays(e, a, t, s = "start") {
|
|
220
|
-
let
|
|
221
|
-
const
|
|
222
|
-
|
|
218
|
+
let i = this.activeDate.getMonth();
|
|
219
|
+
const n = i + 1;
|
|
220
|
+
i = s === "end" ? n : i;
|
|
223
221
|
let r = 0;
|
|
224
222
|
const c = () => r++ % 7, h = this.activeDate.getFullYear();
|
|
225
223
|
return [
|
|
@@ -227,10 +225,10 @@ class z extends I {
|
|
|
227
225
|
active: !1,
|
|
228
226
|
day: d,
|
|
229
227
|
dayInWeek: c(),
|
|
230
|
-
date: new Date(h,
|
|
228
|
+
date: new Date(h, i - 1, d)
|
|
231
229
|
})),
|
|
232
230
|
...a.map((d) => {
|
|
233
|
-
const l = new Date(h,
|
|
231
|
+
const l = new Date(h, i, d), p = o(l, /* @__PURE__ */ new Date());
|
|
234
232
|
return {
|
|
235
233
|
active: this.focusedDate && this.focusedDate !== this.startDate && this.focusedDate !== this.endDate ? o(l, this.focusedDate) : o(l, this.startDate) || o(l, this.endDate),
|
|
236
234
|
currentMonth: !0,
|
|
@@ -245,7 +243,7 @@ class z extends I {
|
|
|
245
243
|
active: !1,
|
|
246
244
|
day: d,
|
|
247
245
|
dayInWeek: c(),
|
|
248
|
-
date: new Date(h,
|
|
246
|
+
date: new Date(h, n, d)
|
|
249
247
|
}))
|
|
250
248
|
];
|
|
251
249
|
}
|
|
@@ -262,7 +260,7 @@ class z extends I {
|
|
|
262
260
|
// #endregion
|
|
263
261
|
// #region Rendering
|
|
264
262
|
render() {
|
|
265
|
-
const e = this.activeDate.getMonth(), a = this.activeDate.getFullYear(), t = this.localeData.weekStart % 7, { abbreviated: s, short:
|
|
263
|
+
const e = this.activeDate.getMonth(), a = this.activeDate.getFullYear(), t = this.localeData.weekStart % 7, { abbreviated: s, short: i, narrow: n } = this.localeData.days, r = this.scale === "s" ? n || i || s : i || s || n, c = [...r.slice(t, 7), ...r.slice(0, t)], h = this.getCurrentMonthDays(e, a), g = this.getPreviousMonthDays(e, a, t), d = this.getNextMonthDays(e, a, t), l = e + 1, p = this.getPreviousMonthDays(l, a, t), w = this.getCurrentMonthDays(l, a), b = this.getNextMonthDays(l, a, t), $ = this.getDays(g, h, d), x = this.getDays(p, w, b, "end");
|
|
266
264
|
return f`<div class=${u({ [D.calendarContainer]: !0 })} role=grid>${this.renderCalendar(c, $)}${this.range && this.renderCalendar(c, x, !0) || ""}</div>`;
|
|
267
265
|
}
|
|
268
266
|
/**
|
|
@@ -283,14 +281,14 @@ class z extends I {
|
|
|
283
281
|
* @param key
|
|
284
282
|
* @param active.currentDay
|
|
285
283
|
*/
|
|
286
|
-
renderDateDay({ active: e, currentMonth: a, currentDay: t, date: s, day:
|
|
284
|
+
renderDateDay({ active: e, currentMonth: a, currentDay: t, date: s, day: i, dayInWeek: n, ref: r }, c) {
|
|
287
285
|
const h = M(s, this.min, this.max);
|
|
288
286
|
return H(c, f`<div class=${u({ [D.dayContainer]: !0 })} role=gridcell><calcite-date-picker-day .active=${e} class=${u({
|
|
289
287
|
[D.currentDay]: t,
|
|
290
288
|
[D.insideRangeHover]: this.isHoverInRange(),
|
|
291
289
|
[D.outsideRangeHover]: !this.isHoverInRange(),
|
|
292
290
|
[D.noncurrent]: this.range && !a
|
|
293
|
-
})} .currentMonth=${a} .dateTimeFormat=${this.dateTimeFormat} .day=${
|
|
291
|
+
})} .currentMonth=${a} .dateTimeFormat=${this.dateTimeFormat} .day=${i} .disabled=${!h} .endOfRange=${this.isEndOfRange(s)} .highlighted=${this.betweenSelectedRange(s)} @calciteInternalDayHover=${this.dayHover} @calciteInternalDaySelect=${this.daySelect} .range=${!!this.startDate && !!this.endDate && !o(this.startDate, this.endDate)} .rangeEdge=${n === 0 ? "start" : n === 6 ? "end" : void 0} .rangeHover=${h && this.isRangeHover(s)} .scale=${this.scale} .selected=${this.isSelected(s)} .startOfRange=${this.isStartOfRange(s)} .value=${s} ${A((g) => {
|
|
294
292
|
r && e && this.activeFocus && g?.setFocus();
|
|
295
293
|
})}></calcite-date-picker-day></div>`);
|
|
296
294
|
}
|
|
@@ -301,7 +299,7 @@ class z extends I {
|
|
|
301
299
|
})}><calcite-date-picker-month-header .activeDate=${t ? C(this.activeDate) : this.activeDate} data-test-calendar=${t ? "end" : "start"} .headingLevel=${this.headingLevel} .localeData=${this.localeData} .max=${this.max} .messages=${this.messages} .min=${this.min} .monthStyle=${this.monthStyle} @calciteInternalDatePickerMonthHeaderSelectChange=${this.monthHeaderSelectChange} .position=${t ? "end" : this.range ? "start" : null} .scale=${this.scale} .selectedDate=${this.selectedDate}></calcite-date-picker-month-header>${this.renderMonthCalendar(e, a, t)}</div>`;
|
|
302
300
|
}
|
|
303
301
|
renderMonthCalendar(e, a, t = !1) {
|
|
304
|
-
return f`<div class=${u({ [D.month]: !0 })} @keydown=${this.keyDownHandler}><div class=${u({ [D.weekHeaderContainer]: !0 })} role=row>${e.map((
|
|
302
|
+
return f`<div class=${u({ [D.month]: !0 })} @keydown=${this.keyDownHandler}><div class=${u({ [D.weekHeaderContainer]: !0 })} role=row>${e.map((i) => f`<span class=${u({ [D.weekHeader]: !0 })} role=columnheader>${i}</span>`)}</div><div class=${u({ [D.weekDays]: !0 })} role=row>${a.map((i, n) => this.renderDateDay(i, t ? 50 + n : n))}</div></div>`;
|
|
305
303
|
}
|
|
306
304
|
}
|
|
307
305
|
R("calcite-date-picker-month", z);
|
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { live as
|
|
3
|
-
import {
|
|
1
|
+
import { c as $ } from "../../chunks/runtime.js";
|
|
2
|
+
import { live as C } from "lit-html/directives/live.js";
|
|
3
|
+
import { e as z, f as Y, g as S } from "../../chunks/global.js";
|
|
4
4
|
import { html as o, nothing as w } from "lit";
|
|
5
|
-
import { createRef as
|
|
5
|
+
import { createRef as u, ref as f } from "lit-html/directives/ref.js";
|
|
6
6
|
import { LitElement as P, createEvent as I, safeClassMap as r } from "@arcgis/lumina";
|
|
7
|
-
import { b as h, n as
|
|
8
|
-
import { k as F, A as
|
|
9
|
-
import { i as
|
|
10
|
-
import { n as
|
|
11
|
-
import { css as
|
|
12
|
-
/*!
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
const L = W`:host{display:block;--calcite-select-internal-border-width: 0;--calcite-select-internal-icon-border-inline-end-width: 0;--calcite-internal-select-font-weight: var(--calcite-font-weight-medium);--calcite-select-text-color: var(--calcite-color-text-1)}.header{display:flex;block-size:100%;align-items:center;justify-content:space-between}.chevron-container{display:flex;align-items:center}:host([scale=s]){block-size:24px;margin:var(--calcite-spacing-xs);margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .chevron-container,:host([scale=s]) .chevron{min-inline-size:24px;block-size:24px}:host([scale=m]){block-size:32px;margin:var(--calcite-spacing-sm);margin-inline-start:var(--calcite-spacing-sm-plus)}:host([scale=m]) .chevron-container,:host([scale=m]) .chevron{min-inline-size:32px;block-size:32px;--calcite-internal-action-padding-block: var(--calcite-spacing-xxs)}:host([scale=l]){block-size:44px;margin:var(--calcite-spacing-xs);margin-inline-start:var(--calcite-spacing-sm)}:host([scale=l]) .chevron-container,:host([scale=l]) .chevron{min-inline-size:44px;block-size:44px;--calcite-internal-action-padding-block: var(--calcite-spacing-sm-plus)}.chevron{box-sizing:content-box;display:flex;block-size:100%;inline-size:100%;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);outline:2px solid transparent;outline-offset:2px;outline-color:transparent;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;--calcite-internal-action-padding-block: 0}.chevron: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))))}.chevron:hover,.chevron:focus{background-color:var(--calcite-color-foreground-2);fill:var(--calcite-color-text-1);color:var(--calcite-color-text-1)}.chevron:active{background-color:var(--calcite-color-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none}.month-year-container{display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;align-items:center;justify-content:flex-start;text-align:center;line-height:1;gap:var(--calcite-spacing-xxs)}.month-year-container.range-calendar{justify-content:center}.year-container{position:relative;display:flex;block-size:100%}.suffix{display:flex;align-items:center}.year,.suffix{background-color:var(--calcite-color-foreground-1);margin-inline:var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-fixed-lg)}.year{position:relative;display:inline-block;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent;inline-size:44px}.year:hover{transition-duration:.1s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:outline-color;outline:2px solid var(--calcite-color-border-2);outline-offset:-2px}.year: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))))}.month-select{--calcite-select-spacing-inline: var(--calcite-spacing-xxs);--calcite-internal-select-spacing-block: var(--calcite-spacing-xxs);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-xxs);--calcite-select-font-size: var(--calcite-font-size-md);--calcite-select-line-height: var(--calcite-font-line-height-fixed-lg)}:host([scale=s]) .month-year-container .month-select{--calcite-select-spacing-inline: var(--calcite-spacing-base);--calcite-internal-select-spacing-block: var(--calcite-spacing-base);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-base);--calcite-internal-select-block-size: 24px;--calcite-select-font-size: var(--calcite-font-size);--calcite-select-line-height: var(--calcite-font-line-height-fixed-base)}:host([scale=s]) .month-year-container .year{inline-size:40px}:host([scale=s]) .month-year-container .year,:host([scale=s]) .month-year-container .suffix{font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-fixed-base)}:host([scale=l]) .month-year-container .month-select{--calcite-select-spacing-inline: var(--calcite-spacing-sm);--calcite-internal-select-spacing-block: var(--calcite-spacing-sm);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-sm);--calcite-internal-select-block-size: 44px;--calcite-select-font-size: var(--calcite-font-size-lg);--calcite-select-line-height: var(--calcite-font-line-height-fixed-xl)}:host([scale=l]) .month-year-container .year{inline-size:48px}:host([scale=l]) .month-year-container .year,:host([scale=l]) .month-year-container .suffix{font-size:var(--calcite-font-size-lg);line-height:var(--calcite-font-line-height-fixed-xl)}:host([hidden]){display:none}[hidden]{display:none}`, s = {
|
|
7
|
+
import { b as h, n as x, p as k, g as A, h as E, j as y, i as g, k as p, l as O } from "../../chunks/date.js";
|
|
8
|
+
import { k as F, A as W } from "../../chunks/dom.js";
|
|
9
|
+
import { i as b } from "../../chunks/key.js";
|
|
10
|
+
import { n as m } from "../../chunks/locale.js";
|
|
11
|
+
import { css as R } from "@lit/reactive-element/css-tag.js";
|
|
12
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
13
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
14
|
+
v3.0.0 */
|
|
15
|
+
const N = R`:host{display:block}.header{display:flex;block-size:100%;align-items:center;justify-content:space-between}.chevron-container{display:flex;align-items:center}:host([scale=s]){block-size:24px;margin:var(--calcite-spacing-xs);margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .chevron-container,:host([scale=s]) .chevron{min-inline-size:24px;block-size:24px}:host([scale=m]){block-size:32px;margin:var(--calcite-spacing-sm);margin-inline-start:var(--calcite-spacing-sm-plus)}:host([scale=m]) .chevron-container,:host([scale=m]) .chevron{min-inline-size:32px;block-size:32px;--calcite-internal-action-padding-block: var(--calcite-spacing-xxs)}:host([scale=l]){block-size:44px;margin:var(--calcite-spacing-xs);margin-inline-start:var(--calcite-spacing-sm)}:host([scale=l]) .chevron-container,:host([scale=l]) .chevron{min-inline-size:44px;block-size:44px;--calcite-internal-action-padding-block: var(--calcite-spacing-sm-plus)}.chevron{box-sizing:content-box;display:flex;block-size:100%;inline-size:100%;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;outline-color:transparent;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;--calcite-internal-action-padding-block: 0;--calcite-action-background-color: var(--calcite-date-picker-header-action-background-color);--calcite-action-background-color-hover: var(--calcite-date-picker-header-action-background-color-hover);--calcite-action-background-color-press: var(--calcite-date-picker-header-action-background-color-press);--calcite-action-text-color: var(--calcite-date-picker-header-action-text-color);--calcite-action-text-color-press: var(--calcite-date-picker-header-action-text-color-press)}.chevron: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))))}.chevron[aria-disabled=true]{pointer-events:none}.month-year-container{display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;align-items:center;justify-content:flex-start;text-align:center;line-height:1;gap:var(--calcite-spacing-xxs)}.month-year-container.range-calendar{justify-content:center}.year-container{position:relative;display:flex;block-size:100%}.suffix{display:flex;align-items:center}.year,.suffix{margin-inline:var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-date-picker-year-text-color, var(--calcite-color-text-1));font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-fixed-lg)}.year{position:relative;display:inline-block;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent;inline-size:44px}.year:hover{transition-duration:.1s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:outline-color;outline:2px solid var(--calcite-color-border-2);outline-offset:-2px}.year: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))))}.month-select{--calcite-select-internal-border-width: 0;--calcite-select-internal-icon-border-inline-end-width: 0;--calcite-select-spacing-inline: var(--calcite-spacing-xxs);--calcite-select-font-size: var(--calcite-date-picker-month-select-font-size, var(--calcite-font-size-md));--calcite-select-text-color: var(--calcite-date-picker-month-select-text-color, var(--calcite-color-text-1));--calcite-select-icon-color: var(--calcite-date-picker-month-select-icon-color);--calcite-select-icon-color-hover: var(--calcite-date-picker-month-select-icon-color-hover);--calcite-internal-select-spacing-block: var(--calcite-spacing-xxs);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-xxs);--calcite-internal-select-line-height: var(--calcite-font-line-height-fixed-lg);--calcite-internal-select-font-weight: var(--calcite-font-weight-medium)}:host([scale=s]) .month-year-container .month-select{--calcite-select-spacing-inline: var(--calcite-spacing-base);--calcite-select-font-size: var(--calcite-date-picker-month-select-font-size, var(--calcite-font-size));--calcite-internal-select-spacing-block: var(--calcite-spacing-base);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-base);--calcite-internal-select-block-size: 24px;--calcite-internal-select-line-height: var(--calcite-font-line-height-fixed-base)}:host([scale=s]) .month-year-container .year{inline-size:40px}:host([scale=s]) .month-year-container .year,:host([scale=s]) .month-year-container .suffix{font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-fixed-base)}:host([scale=l]) .month-year-container .month-select{--calcite-select-spacing-inline: var(--calcite-spacing-sm);--calcite-select-font-size: var(--calcite-date-picker-month-select-font-size, var(--calcite-font-size-lg));--calcite-internal-select-spacing-block: var(--calcite-spacing-sm);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-sm);--calcite-internal-select-block-size: 44px;--calcite-internal-select-line-height: var(--calcite-font-line-height-fixed-xl)}:host([scale=l]) .month-year-container .year{inline-size:48px}:host([scale=l]) .month-year-container .year,:host([scale=l]) .month-year-container .suffix{font-size:var(--calcite-font-size-lg);line-height:var(--calcite-font-line-height-fixed-xl)}:host([hidden]){display:none}[hidden]{display:none}`, s = {
|
|
18
16
|
header: "header",
|
|
19
17
|
chevron: "chevron",
|
|
20
18
|
chevronContainer: "chevron-container",
|
|
21
|
-
chevronContainerLeft: "chevron-container--left",
|
|
22
|
-
chevronContainerRight: "chevron-container--right",
|
|
23
19
|
monthYearContainer: "month-year-container",
|
|
24
20
|
monthPicker: "month-select",
|
|
25
21
|
rangeCalendar: "range-calendar",
|
|
@@ -28,16 +24,16 @@ const L = W`:host{display:block;--calcite-select-internal-border-width: 0;--calc
|
|
|
28
24
|
}, M = {
|
|
29
25
|
chevronLeft: "chevron-left",
|
|
30
26
|
chevronRight: "chevron-right"
|
|
31
|
-
},
|
|
27
|
+
}, L = 16;
|
|
32
28
|
class H extends P {
|
|
33
29
|
constructor() {
|
|
34
|
-
super(...arguments), this.monthPickerEl =
|
|
30
|
+
super(...arguments), this.monthPickerEl = u(), this.yearInputEl = u(), this.calciteInternalDatePickerMonthHeaderSelectChange = I({ cancelable: !1 });
|
|
35
31
|
}
|
|
36
32
|
static {
|
|
37
33
|
this.properties = { nextMonthDate: 16, prevMonthDate: 16, activeDate: 0, headingLevel: 9, localeData: 0, max: 0, messages: 0, min: 0, monthStyle: 1, position: 1, scale: 3, selectedDate: 0 };
|
|
38
34
|
}
|
|
39
35
|
static {
|
|
40
|
-
this.styles =
|
|
36
|
+
this.styles = N;
|
|
41
37
|
}
|
|
42
38
|
// #endregion
|
|
43
39
|
// #region Lifecycle
|
|
@@ -56,7 +52,7 @@ class H extends P {
|
|
|
56
52
|
// #endregion
|
|
57
53
|
// #region Private Methods
|
|
58
54
|
setNextPrevMonthDates() {
|
|
59
|
-
this.activeDate && (this.nextMonthDate = h(
|
|
55
|
+
this.activeDate && (this.nextMonthDate = h(x(this.activeDate), this.min, this.max), this.prevMonthDate = h(k(this.activeDate), this.min, this.max));
|
|
60
56
|
}
|
|
61
57
|
/**
|
|
62
58
|
* Increment year on UP/DOWN keys
|
|
@@ -75,10 +71,10 @@ class H extends P {
|
|
|
75
71
|
}
|
|
76
72
|
}
|
|
77
73
|
formatCalendarYear(e) {
|
|
78
|
-
return
|
|
74
|
+
return m.localize(`${A(e, this.localeData)}`);
|
|
79
75
|
}
|
|
80
76
|
parseCalendarYear(e) {
|
|
81
|
-
return
|
|
77
|
+
return m.localize(`${E(Number(m.delocalize(e)), this.localeData)}`);
|
|
82
78
|
}
|
|
83
79
|
onYearChange(e) {
|
|
84
80
|
this.setYear({
|
|
@@ -95,13 +91,13 @@ class H extends P {
|
|
|
95
91
|
this.handleArrowClick(e, this.prevMonthDate);
|
|
96
92
|
}
|
|
97
93
|
prevMonthKeydown(e) {
|
|
98
|
-
|
|
94
|
+
b(e.key) && this.prevMonthClick(e);
|
|
99
95
|
}
|
|
100
96
|
nextMonthClick(e) {
|
|
101
97
|
this.handleArrowClick(e, this.nextMonthDate);
|
|
102
98
|
}
|
|
103
99
|
nextMonthKeydown(e) {
|
|
104
|
-
|
|
100
|
+
b(e.key) && this.nextMonthClick(e);
|
|
105
101
|
}
|
|
106
102
|
async handleArrowClick(e, t) {
|
|
107
103
|
e.preventDefault(), await this.handlePenultimateValidMonth(e), this.calciteInternalDatePickerMonthHeaderSelectChange.emit(t);
|
|
@@ -109,13 +105,13 @@ class H extends P {
|
|
|
109
105
|
handleMonthChange(e) {
|
|
110
106
|
const t = e.target, { abbreviated: i, wide: a } = this.localeData.months, n = (this.monthStyle === "wide" ? a : i).indexOf(t.value);
|
|
111
107
|
let l = y(this.activeDate, n);
|
|
112
|
-
|
|
108
|
+
g(l, this.min, this.max) || (l = h(l, this.min, this.max)), this.calciteInternalDatePickerMonthHeaderSelectChange.emit(l), this.setYearSelectMenuWidth();
|
|
113
109
|
}
|
|
114
110
|
getInRangeDate({ localizedYear: e, offset: t = 0 }) {
|
|
115
|
-
const { min: i, max: a, activeDate: c } = this, n = Number(
|
|
111
|
+
const { min: i, max: a, activeDate: c } = this, n = Number(m.delocalize(e)), l = n.toString().length, d = isNaN(n) ? !1 : n + t, D = d && (!i || i.getFullYear() <= d) && (!a || a.getFullYear() >= d);
|
|
116
112
|
if (d && D && l === e.length) {
|
|
117
|
-
const
|
|
118
|
-
return
|
|
113
|
+
const v = new Date(c);
|
|
114
|
+
return v.setFullYear(d), h(v, i, a);
|
|
119
115
|
}
|
|
120
116
|
}
|
|
121
117
|
/**
|
|
@@ -132,28 +128,28 @@ class H extends P {
|
|
|
132
128
|
n && this.calciteInternalDatePickerMonthHeaderSelectChange.emit(n), t && (a.value = this.formatCalendarYear((n || c).getFullYear()));
|
|
133
129
|
}
|
|
134
130
|
setYearSelectWidthOffset() {
|
|
135
|
-
this.yearSelectWidthOffset =
|
|
131
|
+
this.yearSelectWidthOffset = L + 3 * parseInt(this.getYearSelectPadding()), this.setYearSelectMenuWidth();
|
|
136
132
|
}
|
|
137
133
|
setYearSelectMenuWidth() {
|
|
138
134
|
const e = this.monthPickerEl.value;
|
|
139
135
|
e && requestAnimationFrame(() => {
|
|
140
|
-
const t = getComputedStyle(e), i = `${t.fontStyle} ${t.fontVariant} ${t.fontWeight} ${t.fontSize}/${t.lineHeight} ${t.fontFamily}`, c = this.localeData.months[this.monthStyle][this.activeDate.getMonth()], n = Math.ceil(
|
|
136
|
+
const t = getComputedStyle(e), i = `${t.fontStyle} ${t.fontVariant} ${t.fontWeight} ${t.fontSize}/${t.lineHeight} ${t.fontFamily}`, c = this.localeData.months[this.monthStyle][this.activeDate.getMonth()], n = Math.ceil(W(c, i));
|
|
141
137
|
e.style.width = `${n + this.yearSelectWidthOffset}px`;
|
|
142
138
|
});
|
|
143
139
|
}
|
|
144
140
|
isMonthInRange(e) {
|
|
145
141
|
const t = y(this.activeDate, e);
|
|
146
|
-
return !this.min && !this.max
|
|
142
|
+
return !this.min && !this.max || g(t, this.min, this.max) ? !0 : p(t, this.max) || p(t, this.min);
|
|
147
143
|
}
|
|
148
144
|
async handlePenultimateValidMonth(e) {
|
|
149
145
|
const a = e.target.getAttribute("data-direction") === "left";
|
|
150
146
|
let c;
|
|
151
147
|
if (a && this.min) {
|
|
152
|
-
const n = h(
|
|
153
|
-
c =
|
|
148
|
+
const n = h(k(this.activeDate), this.min, this.max);
|
|
149
|
+
c = p(n, this.min);
|
|
154
150
|
} else if (this.max) {
|
|
155
|
-
const n = h(
|
|
156
|
-
c =
|
|
151
|
+
const n = h(x(this.activeDate), this.min, this.max);
|
|
152
|
+
c = p(n, this.max);
|
|
157
153
|
}
|
|
158
154
|
c && (this.position ? this.yearInputEl.value.focus() : await (a ? this.nextMonthAction.setFocus() : this.prevMonthAction.setFocus()));
|
|
159
155
|
}
|
|
@@ -168,10 +164,10 @@ class H extends P {
|
|
|
168
164
|
e = S;
|
|
169
165
|
break;
|
|
170
166
|
case "s":
|
|
171
|
-
e =
|
|
167
|
+
e = Y;
|
|
172
168
|
break;
|
|
173
169
|
default:
|
|
174
|
-
e =
|
|
170
|
+
e = z;
|
|
175
171
|
break;
|
|
176
172
|
}
|
|
177
173
|
return this.getPx(e);
|
|
@@ -187,7 +183,7 @@ class H extends P {
|
|
|
187
183
|
return null;
|
|
188
184
|
if (this.parentDatePickerEl) {
|
|
189
185
|
const { numberingSystem: c, lang: n } = this.parentDatePickerEl;
|
|
190
|
-
|
|
186
|
+
m.numberFormatOptions = {
|
|
191
187
|
useGrouping: !1,
|
|
192
188
|
...c && { numberingSystem: c },
|
|
193
189
|
...n && { locale: n }
|
|
@@ -204,20 +200,20 @@ class H extends P {
|
|
|
204
200
|
}
|
|
205
201
|
renderMonthPicker() {
|
|
206
202
|
const e = this.activeDate.getMonth(), t = this.localeData.months[this.monthStyle];
|
|
207
|
-
return o`<calcite-select class=${r(s.monthPicker)} .label=${this.messages.monthMenu} @calciteSelectChange=${this.handleMonthChange} width=auto ${
|
|
203
|
+
return o`<calcite-select class=${r(s.monthPicker)} .label=${this.messages.monthMenu} @calciteSelectChange=${this.handleMonthChange} width=auto ${f(this.monthPickerEl)}>${t.map((i, a) => o`<calcite-option .disabled=${!this.isMonthInRange(a)} .selected=${a === e} .value=${i}>${i}</calcite-option>`)}</calcite-select>`;
|
|
208
204
|
}
|
|
209
205
|
renderYearInput() {
|
|
210
206
|
const e = this.localeData.year?.suffix, t = this.formatCalendarYear(this.activeDate.getFullYear());
|
|
211
207
|
return o`<span class=${r(s.yearContainer)}><input .ariaLabel=${this.messages.year} class=${r({
|
|
212
208
|
year: !0
|
|
213
|
-
})} inputmode=numeric maxlength=4 minlength=1 @change=${this.onYearChange} @input=${this.onYearInput} @keydown=${this.onYearKey} pattern=\\d* type=text .value=${
|
|
209
|
+
})} inputmode=numeric maxlength=4 minlength=1 @change=${this.onYearChange} @input=${this.onYearInput} @keydown=${this.onYearKey} pattern=\\d* type=text .value=${C(t ?? "")} ${f(this.yearInputEl)}>${e && o`<span class=${r(s.suffix)}>${e}</span>` || ""}</span>`;
|
|
214
210
|
}
|
|
215
211
|
renderChevron(e) {
|
|
216
|
-
const t = e === "right", i =
|
|
217
|
-
return o`<calcite-action alignment=center .ariaDisabled=${i} .ariaLabel=${t ? this.messages.nextMonth : this.messages.prevMonth} class=${r(s.chevron)} compact data-direction=${e ?? w} .disabled=${i} .icon=${t ? M.chevronRight : M.chevronLeft} icon-flip-rtl @click=${t ? this.nextMonthClick : this.prevMonthClick} @keydown=${t ? this.nextMonthKeydown : this.prevMonthKeydown} role=button .scale=${this.scale === "l" ? "l" : "m"} .text=${t ? this.messages.nextMonth : this.messages.prevMonth} ${
|
|
212
|
+
const t = e === "right", i = p(t ? this.nextMonthDate : this.prevMonthDate, this.activeDate) || !g(this.activeDate, this.min, this.max);
|
|
213
|
+
return o`<calcite-action alignment=center .ariaDisabled=${i} .ariaLabel=${t ? this.messages.nextMonth : this.messages.prevMonth} class=${r(s.chevron)} compact data-direction=${e ?? w} .disabled=${i} .icon=${t ? M.chevronRight : M.chevronLeft} icon-flip-rtl @click=${t ? this.nextMonthClick : this.prevMonthClick} @keydown=${t ? this.nextMonthKeydown : this.prevMonthKeydown} role=button .scale=${this.scale === "l" ? "l" : "m"} .text=${t ? this.messages.nextMonth : this.messages.prevMonth} ${f((a) => t ? this.nextMonthAction = a : this.prevMonthAction = a)}></calcite-action>`;
|
|
218
214
|
}
|
|
219
215
|
}
|
|
220
|
-
|
|
216
|
+
$("calcite-date-picker-month-header", H);
|
|
221
217
|
export {
|
|
222
218
|
H as DatePickerMonthHeader
|
|
223
219
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
/// <reference types="../../index.d.ts" />
|
|
2
2
|
import { PropertyValues } from 'lit';
|
|
3
3
|
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
4
|
-
import { FocusTrap, FocusTrapComponent } from '../../utils/focusTrapComponent';
|
|
5
4
|
import { LoadableComponent } from '../../utils/loadable';
|
|
6
5
|
import { OpenCloseComponent } from '../../utils/openCloseComponent';
|
|
7
6
|
import { Kind, Scale, Width } from '../interfaces';
|
|
8
7
|
import { HeadingLevel } from '../functional/Heading';
|
|
9
8
|
import { OverlayPositioning } from '../../utils/floating-ui';
|
|
9
|
+
import { FocusTrapOptions } from '../../controllers/useFocusTrap';
|
|
10
10
|
import { DialogPlacement } from './interfaces';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @slot - A slot for adding content.
|
|
14
|
-
* @slot content -
|
|
14
|
+
* @slot content - [Deprecated] Use `custom-content` slot instead.
|
|
15
|
+
* @slot custom-content - A slot for displaying custom content. Will prevent the rendering of any default Dialog UI, except for `box-shadow` and `corner-radius`.
|
|
15
16
|
* @slot action-bar - A slot for adding a `calcite-action-bar` to the component.
|
|
16
17
|
* @slot alerts - A slot for adding `calcite-alert`s to the component.
|
|
17
18
|
* @slot content-bottom - A slot for adding content below the unnamed (default) slot and - if populated - the `footer` slot.
|
|
@@ -42,6 +43,15 @@ export declare class Dialog extends LitElement {
|
|
|
42
43
|
* @see [Dialog Accessibility](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog#accessibility).
|
|
43
44
|
*/
|
|
44
45
|
escapeDisabled: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Specifies custom focus trap configuration on the component, where
|
|
48
|
+
*
|
|
49
|
+
* `"allowOutsideClick`" allows outside clicks,
|
|
50
|
+
* `"initialFocus"` enables initial focus,
|
|
51
|
+
* `"returnFocusOnDeactivate"` returns focus when not active, and
|
|
52
|
+
* `"extraContainers"` specifies additional focusable elements external to the trap (e.g., 3rd-party components appending elements to the document body).
|
|
53
|
+
*/
|
|
54
|
+
focusTrapOptions: Partial<FocusTrapOptions>;
|
|
45
55
|
/** The component header text. */
|
|
46
56
|
heading: string;
|
|
47
57
|
/** Specifies the heading level of the component's `heading` for proper document structure, without affecting visual styling. */
|
|
@@ -70,6 +80,8 @@ export declare class Dialog extends LitElement {
|
|
|
70
80
|
}>;
|
|
71
81
|
/** When `true`, displays a scrim blocking interaction underneath the component. */
|
|
72
82
|
modal: boolean;
|
|
83
|
+
/** When `true` and `modal` is `false`, prevents focus trapping. */
|
|
84
|
+
focusTrapDisabled: boolean;
|
|
73
85
|
/** When `true`, displays and positions the component. */
|
|
74
86
|
get open(): boolean;
|
|
75
87
|
set open(open: boolean);
|
|
@@ -116,8 +128,12 @@ export declare class Dialog extends LitElement {
|
|
|
116
128
|
* @returns {Promise<void>} - A promise that is resolved when the operation has completed.
|
|
117
129
|
*/
|
|
118
130
|
setFocus(): Promise<void>;
|
|
119
|
-
/**
|
|
120
|
-
|
|
131
|
+
/**
|
|
132
|
+
* Updates the element(s) that are included in the focus-trap of the component.
|
|
133
|
+
*
|
|
134
|
+
* @param extraContainers - Additional elements to include in the focus trap. This is useful for including elements that may have related parts rendered outside the main focus trapping element.
|
|
135
|
+
*/
|
|
136
|
+
updateFocusTrapElements(extraContainers?: FocusTrapOptions["extraContainers"]): Promise<void>;
|
|
121
137
|
/** Fires when the component is requested to be closed and before the closing transition begins. */
|
|
122
138
|
readonly calciteDialogBeforeClose: TargetedEvent<this, undefined>;
|
|
123
139
|
/** Fires when the component is added to the DOM but not rendered, and before the opening transition begins. */
|