@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,36 +2,34 @@ import { c as M } from "../../chunks/runtime.js";
|
|
|
2
2
|
import { ref as g } from "lit-html/directives/ref.js";
|
|
3
3
|
import r from "dayjs/esm/index.js";
|
|
4
4
|
import k from "dayjs/esm/plugin/customParseFormat/index.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import $ from "dayjs/esm/plugin/localeData/index.js";
|
|
6
|
+
import C from "dayjs/esm/plugin/localizedFormat/index.js";
|
|
7
7
|
import Y from "dayjs/esm/plugin/preParsePostFormat/index.js";
|
|
8
8
|
import D from "dayjs/esm/plugin/updateLocale/index.js";
|
|
9
|
-
import { html as b, nothing as
|
|
10
|
-
import { LitElement as H, createEvent as
|
|
9
|
+
import { html as b, nothing as u } from "lit";
|
|
10
|
+
import { LitElement as H, createEvent as p, stringOrBoolean as V, safeClassMap as z } from "@arcgis/lumina";
|
|
11
11
|
import { c as x, d as E, s as O, H as w } from "../../chunks/form.js";
|
|
12
12
|
import { u as A, I as _ } from "../../chunks/interactive.js";
|
|
13
13
|
import { n as j } from "../../chunks/key.js";
|
|
14
14
|
import { c as B, d as U, g as W } from "../../chunks/label.js";
|
|
15
|
-
import { c as R
|
|
15
|
+
import { c as R } from "../../chunks/loadable.js";
|
|
16
16
|
import { n as f, l as v, b as I } from "../../chunks/locale.js";
|
|
17
|
-
import { i as L, t as
|
|
18
|
-
import { d as
|
|
19
|
-
import { g as
|
|
20
|
-
import { V as
|
|
21
|
-
import { h as
|
|
22
|
-
import { s as
|
|
23
|
-
import { u as
|
|
24
|
-
import { css as
|
|
25
|
-
/*!
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
const oe = ae`: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:inline-block;-webkit-user-select:none;user-select:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([scale=s]){--calcite-toggle-spacing: .5rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1rem)}:host([scale=m]){--calcite-toggle-spacing: .75rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1.5rem)}:host([scale=l]){--calcite-toggle-spacing: 1rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 2rem)}.input-wrapper{position:relative}.toggle-icon{position:absolute;display:flex;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing);--calcite-icon-color: var(--calcite-color-text-3)}.input-wrapper:hover .toggle-icon,calcite-input-text:focus+.toggle-icon{--calcite-icon-color: var(--calcite-color-text-1)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}:host([hidden]){display:none}[hidden]{display:none}`, le = {
|
|
17
|
+
import { i as L, t as F, d as T, h as q, j as N, k as P, f as S, n as G, e as K, o as J } from "../../chunks/time.js";
|
|
18
|
+
import { d as h } from "../../chunks/math.js";
|
|
19
|
+
import { g as Q } from "../../chunks/component.js";
|
|
20
|
+
import { V as X } from "../../chunks/Validation.js";
|
|
21
|
+
import { h as Z } from "../../chunks/dom.js";
|
|
22
|
+
import { s as ee } from "../../chunks/input.js";
|
|
23
|
+
import { u as te } from "../../chunks/useT9n.js";
|
|
24
|
+
import { css as ie } from "@lit/reactive-element/css-tag.js";
|
|
25
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
26
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
27
|
+
v3.0.0 */
|
|
28
|
+
const se = ie`: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:inline-block;-webkit-user-select:none;user-select:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([scale=s]){--calcite-toggle-spacing: .5rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1rem)}:host([scale=m]){--calcite-toggle-spacing: .75rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1.5rem)}:host([scale=l]){--calcite-toggle-spacing: 1rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 2rem)}.input-wrapper{position:relative}.toggle-icon{position:absolute;display:flex;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing);--calcite-icon-color: var(--calcite-color-text-3)}.input-wrapper:hover .toggle-icon,calcite-input-text:focus+.toggle-icon{--calcite-icon-color: var(--calcite-color-text-1)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}:host([hidden]){display:none}[hidden]{display:none}`, ae = {
|
|
31
29
|
toggleIcon: "toggle-icon"
|
|
32
30
|
}, y = {
|
|
33
31
|
validationMessage: "inputTimePickerValidationMessage"
|
|
34
|
-
},
|
|
32
|
+
}, oe = /* @__PURE__ */ new Map([
|
|
35
33
|
["ar", () => import("dayjs/esm/locale/ar.js")],
|
|
36
34
|
["bg", () => import("dayjs/esm/locale/bg.js")],
|
|
37
35
|
["bs", () => import("dayjs/esm/locale/bs.js")],
|
|
@@ -84,15 +82,15 @@ const oe = ae`:host([disabled]){cursor:default;-webkit-user-select:none;user-sel
|
|
|
84
82
|
["zh-tw", () => import("dayjs/esm/locale/zh-tw.js")]
|
|
85
83
|
]);
|
|
86
84
|
r.extend(k);
|
|
87
|
-
r.extend(C);
|
|
88
85
|
r.extend($);
|
|
86
|
+
r.extend(C);
|
|
89
87
|
r.extend(Y);
|
|
90
88
|
r.extend(D);
|
|
91
|
-
class
|
|
89
|
+
class le extends H {
|
|
92
90
|
// #endregion
|
|
93
91
|
// #region Lifecycle
|
|
94
92
|
constructor() {
|
|
95
|
-
super(), this.userChangedValue = !1, this._value = null, this.disabled = !1, this.focusTrapDisabled = !1, this.hourFormat = "user", this.messages =
|
|
93
|
+
super(), this.userChangedValue = !1, this._value = null, this.disabled = !1, this.focusTrapDisabled = !1, this.hourFormat = "user", this.messages = te(), this.open = !1, this.overlayPositioning = "absolute", this.placement = "auto", this.readOnly = !1, this.required = !1, this.scale = "m", this.status = "idle", this.step = 60, this.validity = {
|
|
96
94
|
valid: !1,
|
|
97
95
|
badInput: !1,
|
|
98
96
|
customError: !1,
|
|
@@ -104,7 +102,7 @@ class re extends H {
|
|
|
104
102
|
tooShort: !1,
|
|
105
103
|
typeMismatch: !1,
|
|
106
104
|
valueMissing: !1
|
|
107
|
-
}, this.calciteInputTimePickerBeforeClose =
|
|
105
|
+
}, this.calciteInputTimePickerBeforeClose = p({ cancelable: !1 }), this.calciteInputTimePickerBeforeOpen = p({ cancelable: !1 }), this.calciteInputTimePickerChange = p(), this.calciteInputTimePickerClose = p({ cancelable: !1 }), this.calciteInputTimePickerOpen = p({ cancelable: !1 }), this.setLocalizedInputValue = (e) => {
|
|
108
106
|
this.setInputValue(this.getLocalizedTimeString(e));
|
|
109
107
|
}, this.listen("blur", this.hostBlurHandler), this.listen("keydown", this.keyDownHandler);
|
|
110
108
|
}
|
|
@@ -115,7 +113,7 @@ class re extends H {
|
|
|
115
113
|
this.shadowRootOptions = { mode: "open", delegatesFocus: !0 };
|
|
116
114
|
}
|
|
117
115
|
static {
|
|
118
|
-
this.styles =
|
|
116
|
+
this.styles = se;
|
|
119
117
|
}
|
|
120
118
|
/** The time value in ISO (24-hour) format. */
|
|
121
119
|
get value() {
|
|
@@ -137,13 +135,13 @@ class re extends H {
|
|
|
137
135
|
}
|
|
138
136
|
/** Sets focus on the component. */
|
|
139
137
|
async setFocus() {
|
|
140
|
-
await R(this),
|
|
138
|
+
await R(this), Z(this.el);
|
|
141
139
|
}
|
|
142
140
|
connectedCallback() {
|
|
143
141
|
super.connectedCallback(), L(this.value) ? this.setValueDirectly(this.value) : this.value = void 0, B(this), x(this);
|
|
144
142
|
}
|
|
145
143
|
async load() {
|
|
146
|
-
|
|
144
|
+
await this.loadLocaleData(), this.updateLocale();
|
|
147
145
|
}
|
|
148
146
|
willUpdate(e) {
|
|
149
147
|
e.has("open") && (this.hasUpdated || this.open !== !1) && this.openHandler(), e.has("disabled") && (this.hasUpdated || this.disabled !== !1) && (this.disabled || (this.open = !1)), e.has("hourFormat") && this.updateLocale(), e.has("readOnly") && (this.hasUpdated || this.readOnly !== !1) && (this.readOnly || (this.open = !1)), e.has("messages") && this.langWatcher(), e.has("numberingSystem") && this.setLocalizedInputValue({ numberingSystem: e.get("numberingSystem") }), e.has("step") && (this.hasUpdated || this.step !== 60) && this.stepWatcher(this.step, e.get("step"));
|
|
@@ -152,7 +150,7 @@ class re extends H {
|
|
|
152
150
|
A(this);
|
|
153
151
|
}
|
|
154
152
|
loaded() {
|
|
155
|
-
|
|
153
|
+
L(this.value) && this.setLocalizedInputValue();
|
|
156
154
|
}
|
|
157
155
|
disconnectedCallback() {
|
|
158
156
|
super.disconnectedCallback(), U(this), E(this);
|
|
@@ -194,7 +192,7 @@ class re extends H {
|
|
|
194
192
|
timePickerChangeHandler(e) {
|
|
195
193
|
e.stopPropagation();
|
|
196
194
|
const i = e.target.value, s = this.shouldIncludeSeconds();
|
|
197
|
-
this.setValue(
|
|
195
|
+
this.setValue(F(i, s)), this.setLocalizedInputValue({ isoTimeString: i });
|
|
198
196
|
}
|
|
199
197
|
updateLocale(e = this.messages._lang) {
|
|
200
198
|
this.effectiveHourFormat = this.hourFormat === "user" ? T(this.messages._lang) : this.hourFormat, this.localeDefaultLTFormat = this.localeConfig.formats.LT, this.localeDefaultLTSFormat = this.localeConfig.formats.LTS, this.setLocalizedInputValue({ locale: e });
|
|
@@ -212,14 +210,14 @@ class re extends H {
|
|
|
212
210
|
e.stopPropagation(), this.calciteInputTimePickerClose.emit(), this.open = !1;
|
|
213
211
|
}
|
|
214
212
|
syncHiddenFormInput(e) {
|
|
215
|
-
|
|
213
|
+
ee("time", this, e);
|
|
216
214
|
}
|
|
217
215
|
delocalizeTimeString(e) {
|
|
218
216
|
r.locale(this.getSupportedDayjsLocale(this.messages._lang.toLowerCase()));
|
|
219
217
|
const t = this.delocalizeTimeStringToParts(e);
|
|
220
218
|
let i;
|
|
221
219
|
if (this.shouldIncludeFractionalSeconds()) {
|
|
222
|
-
const s =
|
|
220
|
+
const s = h(this.step), l = this.delocalizeTimeStringToParts(e, "S");
|
|
223
221
|
if (s === 1)
|
|
224
222
|
i = l.millisecond !== 0 ? this.getTimeStringFromParts(l) : this.getTimeStringFromParts(t);
|
|
225
223
|
else {
|
|
@@ -238,10 +236,10 @@ class re extends H {
|
|
|
238
236
|
delocalizeTimeStringToParts(e, t) {
|
|
239
237
|
const i = this.messages._lang;
|
|
240
238
|
let s = e;
|
|
241
|
-
const l =
|
|
239
|
+
const l = q(this.effectiveHourFormat, i) ? N(i) : T(i);
|
|
242
240
|
if (v.has(i) && l === "12") {
|
|
243
|
-
const n = v.get(i).am, a = v.get(i).pm, c =
|
|
244
|
-
s = s.includes(a) ? s.replaceAll(a,
|
|
241
|
+
const n = v.get(i).am, a = v.get(i).pm, c = P(i), m = c === c.toUpperCase() ? "AM" : "am", d = c === c.toUpperCase() ? "PM" : "pm";
|
|
242
|
+
s = s.includes(a) ? s.replaceAll(a, d) : s.replaceAll(n, m);
|
|
245
243
|
}
|
|
246
244
|
this.setLocaleTimeFormat({
|
|
247
245
|
fractionalSecondFormatToken: t,
|
|
@@ -265,7 +263,7 @@ class re extends H {
|
|
|
265
263
|
if (!e)
|
|
266
264
|
return t;
|
|
267
265
|
if (e.hour !== null && e.minute !== null && (t = `${S(e.hour)}:${S(e.minute)}`, this.shouldIncludeSeconds() && e.second !== null && (t += `:${S(e.second)}`, this.shouldIncludeFractionalSeconds() && e.millisecond !== null))) {
|
|
268
|
-
const i = (e.millisecond * 1e-3).toFixed(
|
|
266
|
+
const i = (e.millisecond * 1e-3).toFixed(h(this.step));
|
|
269
267
|
t += `.${i.toString().replace("0.", "")}`;
|
|
270
268
|
}
|
|
271
269
|
return t;
|
|
@@ -287,7 +285,7 @@ class re extends H {
|
|
|
287
285
|
async loadLocaleData() {
|
|
288
286
|
let e = I(this.messages._lang).toLowerCase();
|
|
289
287
|
e = this.getSupportedDayjsLocale(e);
|
|
290
|
-
const { default: t } = await
|
|
288
|
+
const { default: t } = await oe.get(e)();
|
|
291
289
|
this.localeConfig = t, r.locale(this.localeConfig, null, !0), r.updateLocale(e, this.getExtendedLocaleConfig(e));
|
|
292
290
|
}
|
|
293
291
|
getExtendedLocaleConfig(e) {
|
|
@@ -376,8 +374,8 @@ class re extends H {
|
|
|
376
374
|
}
|
|
377
375
|
getLocalizedTimeString(e) {
|
|
378
376
|
const t = e?.hourFormat === "12" || this.effectiveHourFormat && this.effectiveHourFormat === "12", i = e?.locale ?? this.messages._lang, s = e?.numberingSystem ?? this.numberingSystem, l = e?.isoTimeString ?? this.value;
|
|
379
|
-
return
|
|
380
|
-
fractionalSecondDigits:
|
|
377
|
+
return G({
|
|
378
|
+
fractionalSecondDigits: h(this.step),
|
|
381
379
|
hour12: t,
|
|
382
380
|
includeSeconds: this.shouldIncludeSeconds(),
|
|
383
381
|
locale: i,
|
|
@@ -392,7 +390,7 @@ class re extends H {
|
|
|
392
390
|
return this.step < 60;
|
|
393
391
|
}
|
|
394
392
|
shouldIncludeFractionalSeconds() {
|
|
395
|
-
return
|
|
393
|
+
return h(this.step) > 0;
|
|
396
394
|
}
|
|
397
395
|
setCalcitePopoverEl(e) {
|
|
398
396
|
this.popoverEl = e, this.openHandler();
|
|
@@ -407,8 +405,8 @@ class re extends H {
|
|
|
407
405
|
const i = this.messages._lang, s = T(i), l = /h+|H+/g, o = /\s+|a+|A+|\s+/g;
|
|
408
406
|
let n = this.localeConfig.formats.LT, a = this.localeConfig.formats.LTS;
|
|
409
407
|
if (t === "12" && s === "24") {
|
|
410
|
-
const m =
|
|
411
|
-
n = n.replaceAll(l, "h"), n = n.replaceAll(o, ""), n =
|
|
408
|
+
const m = P(i), d = K(i);
|
|
409
|
+
n = n.replaceAll(l, "h"), n = n.replaceAll(o, ""), n = d === 0 ? `${m}${n}` : `${n}${m}`, a = a.replaceAll(l, "h"), a = a.replaceAll(o, ""), a = d === 0 ? `${m}${a}` : `${a}${m}`;
|
|
412
410
|
} else t === "24" && s === "12" ? (n = n.replaceAll(l, "H"), n = n.replaceAll(o, ""), a = a.replaceAll(l, "H"), a = a.replaceAll(o, "")) : (n = this.localeDefaultLTFormat, a = this.localeDefaultLTSFormat);
|
|
413
411
|
const c = a?.match(/ss\.*(S+)/g);
|
|
414
412
|
if (e && this.shouldIncludeFractionalSeconds()) {
|
|
@@ -427,7 +425,7 @@ class re extends H {
|
|
|
427
425
|
* @param value The new value
|
|
428
426
|
*/
|
|
429
427
|
setValue(e) {
|
|
430
|
-
const t = this.value, i =
|
|
428
|
+
const t = this.value, i = J(e) || "";
|
|
431
429
|
if (i === t)
|
|
432
430
|
return;
|
|
433
431
|
this.userChangedValue = !0, this.value = i || "", this.calciteInputTimePickerChange.emit().defaultPrevented && (this.userChangedValue = !1, this.value = t, this.setLocalizedInputValue({ isoTimeString: t }));
|
|
@@ -440,7 +438,7 @@ class re extends H {
|
|
|
440
438
|
*/
|
|
441
439
|
setValueDirectly(e) {
|
|
442
440
|
const t = this.shouldIncludeSeconds();
|
|
443
|
-
this.value =
|
|
441
|
+
this.value = F(e, t), this.setLocalizedInputValue();
|
|
444
442
|
}
|
|
445
443
|
onInputWrapperClick() {
|
|
446
444
|
this.open = !this.open;
|
|
@@ -452,13 +450,13 @@ class re extends H {
|
|
|
452
450
|
// #region Rendering
|
|
453
451
|
render() {
|
|
454
452
|
const { disabled: e, messages: t, readOnly: i } = this;
|
|
455
|
-
return _({ disabled: this.disabled, children: b`<div class="input-wrapper" @click=${this.onInputWrapperClick}><calcite-input-text aria-errormessage=${y.validationMessage} aria-autocomplete=none aria-haspopup=dialog .ariaInvalid=${this.status === "invalid"} .disabled=${e} icon=clock .label=${W(this)} lang=${this.messages._lang ??
|
|
453
|
+
return _({ disabled: this.disabled, children: b`<div class="input-wrapper" @click=${this.onInputWrapperClick}><calcite-input-text aria-errormessage=${y.validationMessage} aria-autocomplete=none aria-haspopup=dialog .ariaInvalid=${this.status === "invalid"} .disabled=${e} icon=clock .label=${W(this)} lang=${this.messages._lang ?? u} @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextFocus=${this.calciteInternalInputFocusHandler} .readOnly=${i} role=combobox .scale=${this.scale} .status=${this.status} ${g(this.setInputEl)}>${!this.readOnly && this.renderToggleIcon(this.open) || ""}</calcite-input-text></div><calcite-popover auto-close .focusTrapDisabled=${this.focusTrapDisabled} .focusTrapOptions=${{ initialFocus: !1 }} .label=${t.chooseTime} lang=${this.messages._lang ?? u} @calcitePopoverBeforeClose=${this.popoverBeforeCloseHandler} @calcitePopoverBeforeOpen=${this.popoverBeforeOpenHandler} @calcitePopoverClose=${this.popoverCloseHandler} @calcitePopoverOpen=${this.popoverOpenHandler} .overlayPositioning=${this.overlayPositioning} .placement=${this.placement} .referenceElement=${this.calciteInputEl} trigger-disabled ${g(this.setCalcitePopoverEl)}><calcite-time-picker .hourFormat=${this.effectiveHourFormat} lang=${this.messages._lang ?? u} .messageOverrides=${this.messageOverrides} .numberingSystem=${this.numberingSystem} @calciteTimePickerChange=${this.timePickerChangeHandler} .scale=${this.scale} .step=${this.step} tabindex=${(this.open ? void 0 : -1) ?? u} .value=${this.value} ${g(this.setCalciteTimePickerEl)}></calcite-time-picker></calcite-popover>${w({ component: this })}${this.validationMessage && this.status === "invalid" ? X({ icon: this.validationIcon, id: y.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
|
|
456
454
|
}
|
|
457
455
|
renderToggleIcon(e) {
|
|
458
|
-
return b`<span class=${z(
|
|
456
|
+
return b`<span class=${z(ae.toggleIcon)} slot=action><calcite-icon .icon=${e ? "chevron-up" : "chevron-down"} .scale=${Q(this.scale)}></calcite-icon></span>`;
|
|
459
457
|
}
|
|
460
458
|
}
|
|
461
|
-
M("calcite-input-time-picker",
|
|
459
|
+
M("calcite-input-time-picker", le);
|
|
462
460
|
export {
|
|
463
|
-
|
|
461
|
+
le as InputTimePicker
|
|
464
462
|
};
|
|
@@ -1,44 +1,42 @@
|
|
|
1
1
|
import { c as M } from "../../chunks/runtime.js";
|
|
2
2
|
import { ref as R } from "lit-html/directives/ref.js";
|
|
3
|
-
import { repeat as
|
|
3
|
+
import { repeat as L } from "lit-html/directives/repeat.js";
|
|
4
4
|
import { keyed as k } from "lit-html/directives/keyed.js";
|
|
5
5
|
import { html as v, nothing as Z } from "lit";
|
|
6
|
-
import { LitElement as
|
|
6
|
+
import { LitElement as V, createEvent as g, stringOrBoolean as _, safeClassMap as U } from "@arcgis/lumina";
|
|
7
7
|
import { c as N, d as G } from "../../chunks/label.js";
|
|
8
8
|
import { u as H, I as q } from "../../chunks/interactive.js";
|
|
9
|
-
import { c as W
|
|
10
|
-
import { c as
|
|
11
|
-
import { u as
|
|
12
|
-
import { g as
|
|
13
|
-
import { css as
|
|
14
|
-
/*!
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*/
|
|
19
|
-
const oe = {
|
|
9
|
+
import { c as W } from "../../chunks/loadable.js";
|
|
10
|
+
import { c as j, a as A, d as K, H as J } from "../../chunks/form.js";
|
|
11
|
+
import { u as Q } from "../../chunks/useT9n.js";
|
|
12
|
+
import { g as X } from "../../chunks/locale.js";
|
|
13
|
+
import { css as Y } 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 ee = {
|
|
20
18
|
offset: "offset"
|
|
21
|
-
},
|
|
19
|
+
}, te = 60;
|
|
22
20
|
function x(t) {
|
|
23
21
|
return t.replace(":15", ".25").replace(":30", ".5").replace(":45", ".75").replace("−", "-");
|
|
24
22
|
}
|
|
25
|
-
function
|
|
23
|
+
function oe(t, e) {
|
|
26
24
|
const o = O(t, "en-US", e).replace("GMT", "");
|
|
27
|
-
return o === "" ? 0 : Number(x(o)) *
|
|
25
|
+
return o === "" ? 0 : Number(x(o)) * te;
|
|
28
26
|
}
|
|
29
|
-
function
|
|
27
|
+
function se() {
|
|
30
28
|
return (/* @__PURE__ */ new Date()).getTimezoneOffset() * -1;
|
|
31
29
|
}
|
|
32
|
-
function
|
|
30
|
+
function ae() {
|
|
33
31
|
return new Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
34
32
|
}
|
|
35
|
-
async function
|
|
33
|
+
async function ie(t) {
|
|
36
34
|
if (t === "offset")
|
|
37
35
|
return (o) => o;
|
|
38
36
|
const { normalize: e } = await import("timezone-groups/utils/time-zones");
|
|
39
37
|
return e;
|
|
40
38
|
}
|
|
41
|
-
async function
|
|
39
|
+
async function ne(t, e, o, s, n) {
|
|
42
40
|
if (o === "name") {
|
|
43
41
|
const { groupByName: a } = await import("timezone-groups/groupByName");
|
|
44
42
|
return (await a()).map(({ label: i }) => ({
|
|
@@ -61,8 +59,8 @@ async function re(t, e, o, s, n) {
|
|
|
61
59
|
return (await a()).map(({ label: m, tzs: u }) => (u.sort((d, h) => {
|
|
62
60
|
const T = I(d, e), C = I(h, e), p = "Etc/GMT";
|
|
63
61
|
if (d.startsWith(p) && h.startsWith(p)) {
|
|
64
|
-
const b = d.substring(p.length),
|
|
65
|
-
return (
|
|
62
|
+
const b = d.substring(p.length), F = h.substring(p.length), E = b === "" ? 0 : parseInt(b);
|
|
63
|
+
return (F === "" ? 0 : parseInt(F)) - E;
|
|
66
64
|
}
|
|
67
65
|
return T.localeCompare(C);
|
|
68
66
|
}), {
|
|
@@ -96,19 +94,19 @@ async function re(t, e, o, s, n) {
|
|
|
96
94
|
dateEngine: new P(),
|
|
97
95
|
groupDateRange: 1,
|
|
98
96
|
startDate: new Date(f).toISOString()
|
|
99
|
-
}), z = new Intl.ListFormat(t, { style: "long", type: "conjunction" }),
|
|
97
|
+
}), z = new Intl.ListFormat(t, { style: "long", type: "conjunction" }), S = ["Factory", "Etc/UTC"];
|
|
100
98
|
return w.forEach((a) => {
|
|
101
99
|
const c = [];
|
|
102
100
|
let i = 0;
|
|
103
101
|
a.tzs.forEach((l, m) => {
|
|
104
|
-
|
|
105
|
-
}), a.tzs = a.tzs.filter((l) => !
|
|
102
|
+
S.includes(l) && i++, c[m] = i;
|
|
103
|
+
}), a.tzs = a.tzs.filter((l) => !S.includes(l)), a.labelTzIdx = a.labelTzIdx.map((l) => l - c[l]).filter((l) => l >= 0 && l < a.tzs.length);
|
|
106
104
|
}), w.map(({ labelTzIdx: a, tzs: c }) => {
|
|
107
105
|
const i = c[0], l = x(
|
|
108
106
|
O(i, r, f)
|
|
109
|
-
), m =
|
|
107
|
+
), m = oe(i, f), u = a.map((h) => I(c[h], e));
|
|
110
108
|
return {
|
|
111
|
-
label:
|
|
109
|
+
label: ce(e, l, z.format(u)),
|
|
112
110
|
value: m,
|
|
113
111
|
metadata: {
|
|
114
112
|
filterValue: c.map((h) => D(h))
|
|
@@ -117,44 +115,44 @@ async function re(t, e, o, s, n) {
|
|
|
117
115
|
}).filter((a) => !!a).sort((a, c) => a.value - c.value);
|
|
118
116
|
}
|
|
119
117
|
function I(t, e) {
|
|
120
|
-
return e[t] ||
|
|
118
|
+
return e[t] || re(t);
|
|
121
119
|
}
|
|
122
|
-
function
|
|
120
|
+
function le(t, e, o) {
|
|
123
121
|
return o.timeZoneRegionLabel.replace("{city}", t).replace("{country}", $(o, e));
|
|
124
122
|
}
|
|
125
123
|
function $(t, e) {
|
|
126
124
|
return t[e] || e;
|
|
127
125
|
}
|
|
128
|
-
function
|
|
126
|
+
function re(t) {
|
|
129
127
|
return t.split("/").pop();
|
|
130
128
|
}
|
|
131
129
|
function D(t) {
|
|
132
130
|
return t.replace(/_/g, " ");
|
|
133
131
|
}
|
|
134
|
-
function
|
|
132
|
+
function ce(t, e, o) {
|
|
135
133
|
return t.timeZoneLabel.replace("{offset}", e).replace("{cities}", o);
|
|
136
134
|
}
|
|
137
135
|
function O(t, e, o = Date.now()) {
|
|
138
|
-
return t === "Factory" && (t = "Etc/GMT"),
|
|
136
|
+
return t === "Factory" && (t = "Etc/GMT"), X(e, { timeZone: t, timeZoneName: "shortOffset" }).formatToParts(o).find(({ type: r }) => r === "timeZoneName").value;
|
|
139
137
|
}
|
|
140
|
-
function
|
|
138
|
+
function me(t) {
|
|
141
139
|
return t.items !== void 0;
|
|
142
140
|
}
|
|
143
|
-
function
|
|
144
|
-
return
|
|
141
|
+
function de(t) {
|
|
142
|
+
return me(t[0]) ? t.flatMap((e) => e.items) : t;
|
|
145
143
|
}
|
|
146
144
|
function B(t, e, o) {
|
|
147
|
-
return o == null ? null :
|
|
145
|
+
return o == null ? null : de(t).find(
|
|
148
146
|
(s) => (
|
|
149
147
|
// intentional == to match string to number
|
|
150
148
|
s[e] == o
|
|
151
149
|
)
|
|
152
150
|
);
|
|
153
151
|
}
|
|
154
|
-
const
|
|
155
|
-
class
|
|
152
|
+
const he = Y`: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:block}.offset{white-space:nowrap}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}`;
|
|
153
|
+
class fe extends V {
|
|
156
154
|
constructor() {
|
|
157
|
-
super(...arguments), this.clearable = !1, this.disabled = !1, this.maxItems = 0, this.messages =
|
|
155
|
+
super(...arguments), this.clearable = !1, this.disabled = !1, this.maxItems = 0, this.messages = Q({ blocking: !0 }), this.mode = "offset", this.offsetStyle = "user", this.open = !1, this.overlayPositioning = "absolute", this.readOnly = !1, this.required = !1, this.scale = "m", this.status = "idle", this.validity = {
|
|
158
156
|
valid: !1,
|
|
159
157
|
badInput: !1,
|
|
160
158
|
customError: !1,
|
|
@@ -169,13 +167,13 @@ class pe extends U {
|
|
|
169
167
|
}, this.calciteInputTimeZoneBeforeClose = g({ cancelable: !1 }), this.calciteInputTimeZoneBeforeOpen = g({ cancelable: !1 }), this.calciteInputTimeZoneChange = g({ cancelable: !1 }), this.calciteInputTimeZoneClose = g({ cancelable: !1 }), this.calciteInputTimeZoneOpen = g({ cancelable: !1 });
|
|
170
168
|
}
|
|
171
169
|
static {
|
|
172
|
-
this.properties = { clearable: 7, disabled: 7, form: 3, maxItems: 11, messageOverrides: 0, mode: 3, name: 3, offsetStyle: 3, open: 7, overlayPositioning: 3, readOnly: 7, referenceDate: 1, required: 7, scale: 3, status: 3, validationIcon: [3, { converter:
|
|
170
|
+
this.properties = { clearable: 7, disabled: 7, form: 3, maxItems: 11, messageOverrides: 0, mode: 3, name: 3, offsetStyle: 3, open: 7, overlayPositioning: 3, readOnly: 7, referenceDate: 1, required: 7, scale: 3, status: 3, validationIcon: [3, { converter: _ }], validationMessage: 1, validity: 0, value: 1 };
|
|
173
171
|
}
|
|
174
172
|
static {
|
|
175
173
|
this.shadowRootOptions = { mode: "open", delegatesFocus: !0 };
|
|
176
174
|
}
|
|
177
175
|
static {
|
|
178
|
-
this.styles =
|
|
176
|
+
this.styles = he;
|
|
179
177
|
}
|
|
180
178
|
/**
|
|
181
179
|
* The component's value, where the value is the time zone offset or the difference, in minutes, between the selected time zone and UTC.
|
|
@@ -199,14 +197,14 @@ class pe extends U {
|
|
|
199
197
|
// #endregion
|
|
200
198
|
// #region Lifecycle
|
|
201
199
|
connectedCallback() {
|
|
202
|
-
super.connectedCallback(),
|
|
200
|
+
super.connectedCallback(), j(this), N(this);
|
|
203
201
|
}
|
|
204
202
|
async load() {
|
|
205
|
-
|
|
203
|
+
this.normalizer = await ie(this.mode), await this.updateTimeZoneItems();
|
|
206
204
|
const e = this.value, o = this.normalizeValue(e);
|
|
207
205
|
this.value = o || (e === "" ? o : void 0), this.updateTimeZoneSelection();
|
|
208
206
|
const s = this.selectedTimeZoneItem ? `${this.selectedTimeZoneItem.value}` : "";
|
|
209
|
-
|
|
207
|
+
A(this, s), this.value = s;
|
|
210
208
|
}
|
|
211
209
|
willUpdate(e) {
|
|
212
210
|
e.has("value") && this.hasUpdated && this.handleValueChange(this.value, e.get("value")), (e.has("messages") || e.has("mode") && (this.hasUpdated || this.mode !== "offset") || e.has("referenceDate")) && this.handleTimeZoneItemPropsChange(), e.has("open") && (this.hasUpdated || this.open !== !1) && this.openChanged();
|
|
@@ -215,10 +213,10 @@ class pe extends U {
|
|
|
215
213
|
H(this);
|
|
216
214
|
}
|
|
217
215
|
loaded() {
|
|
218
|
-
|
|
216
|
+
this.overrideSelectedLabelForRegion(this.open), this.openChanged();
|
|
219
217
|
}
|
|
220
218
|
disconnectedCallback() {
|
|
221
|
-
super.disconnectedCallback(),
|
|
219
|
+
super.disconnectedCallback(), K(this), G(this);
|
|
222
220
|
}
|
|
223
221
|
// #endregion
|
|
224
222
|
// #region Private Methods
|
|
@@ -261,7 +259,7 @@ class pe extends U {
|
|
|
261
259
|
if (this.mode !== "region" || !this.selectedTimeZoneItem)
|
|
262
260
|
return;
|
|
263
261
|
const { label: o, metadata: s } = this.selectedTimeZoneItem;
|
|
264
|
-
this.comboboxEl.selectedItems[0].textLabel = !s.country || e ? o :
|
|
262
|
+
this.comboboxEl.selectedItems[0].textLabel = !s.country || e ? o : le(o, s.country, this.messages);
|
|
265
263
|
}
|
|
266
264
|
onComboboxBeforeClose(e) {
|
|
267
265
|
e.stopPropagation(), this.overrideSelectedLabelForRegion(!1), this.calciteInputTimeZoneBeforeClose.emit();
|
|
@@ -299,11 +297,11 @@ class pe extends U {
|
|
|
299
297
|
this.selectedTimeZoneItem = null;
|
|
300
298
|
return;
|
|
301
299
|
}
|
|
302
|
-
const e = this.mode === "offset" ?
|
|
300
|
+
const e = this.mode === "offset" ? se() : ae(), o = this.value === "" || !this.value ? e : this.value;
|
|
303
301
|
this.selectedTimeZoneItem = this.findTimeZoneItem(o) || this.findTimeZoneItem(e);
|
|
304
302
|
}
|
|
305
303
|
async createTimeZoneItems() {
|
|
306
|
-
return !this.messages._lang || !this.messages ? [] :
|
|
304
|
+
return !this.messages._lang || !this.messages ? [] : ne(this.messages._lang, this.messages, this.mode, this.referenceDate instanceof Date ? this.referenceDate : new Date(this.referenceDate ?? Date.now()), this.offsetStyle);
|
|
307
305
|
}
|
|
308
306
|
normalizeValue(e) {
|
|
309
307
|
return e = e === void 0 ? "" : e, e && this.normalizer(e);
|
|
@@ -311,22 +309,22 @@ class pe extends U {
|
|
|
311
309
|
// #endregion
|
|
312
310
|
// #region Rendering
|
|
313
311
|
render() {
|
|
314
|
-
return q({ disabled: this.disabled, children: v`<calcite-combobox .clearDisabled=${!this.clearable} .disabled=${this.disabled} .label=${this.messages.chooseTimeZone} lang=${this.messages._lang ?? Z} .maxItems=${this.maxItems} @calciteComboboxBeforeClose=${this.onComboboxBeforeClose} @calciteComboboxBeforeOpen=${this.onComboboxBeforeOpen} @calciteComboboxChange=${this.onComboboxChange} @calciteComboboxClose=${this.onComboboxClose} @calciteComboboxOpen=${this.onComboboxOpen} .overlayPositioning=${this.overlayPositioning} .placeholder=${this.mode === "name" ? this.messages.namePlaceholder : this.mode === "offset" ? this.messages.offsetPlaceholder : this.messages.regionPlaceholder} placeholder-icon=search .readOnly=${this.readOnly} .scale=${this.scale} .selectionMode=${this.clearable ? "single" : "single-persist"} .status=${this.status} .validationIcon=${this.validationIcon} .validationMessage=${this.validationMessage} ${R(this.setComboboxRef)}>${this.renderItems()}</calcite-combobox>${
|
|
312
|
+
return q({ disabled: this.disabled, children: v`<calcite-combobox .clearDisabled=${!this.clearable} .disabled=${this.disabled} .label=${this.messages.chooseTimeZone} lang=${this.messages._lang ?? Z} .maxItems=${this.maxItems} @calciteComboboxBeforeClose=${this.onComboboxBeforeClose} @calciteComboboxBeforeOpen=${this.onComboboxBeforeOpen} @calciteComboboxChange=${this.onComboboxChange} @calciteComboboxClose=${this.onComboboxClose} @calciteComboboxOpen=${this.onComboboxOpen} .overlayPositioning=${this.overlayPositioning} .placeholder=${this.mode === "name" ? this.messages.namePlaceholder : this.mode === "offset" ? this.messages.offsetPlaceholder : this.messages.regionPlaceholder} placeholder-icon=search .readOnly=${this.readOnly} .scale=${this.scale} .selectionMode=${this.clearable ? "single" : "single-persist"} .status=${this.status} .validationIcon=${this.validationIcon} .validationMessage=${this.validationMessage} ${R(this.setComboboxRef)}>${this.renderItems()}</calcite-combobox>${J({ component: this })}` });
|
|
315
313
|
}
|
|
316
314
|
renderItems() {
|
|
317
|
-
return this.mode === "region" ? this.renderRegionItems() :
|
|
315
|
+
return this.mode === "region" ? this.renderRegionItems() : L(this.timeZoneItems, ({ label: e }) => e, (e) => {
|
|
318
316
|
const o = this.selectedTimeZoneItem === e, { label: s, metadata: n, value: r } = e;
|
|
319
317
|
return v`<calcite-combobox-item data-label=${s ?? Z} .metadata=${n} .selected=${o} .textLabel=${s} .value=${r}></calcite-combobox-item>`;
|
|
320
318
|
});
|
|
321
319
|
}
|
|
322
320
|
renderRegionItems() {
|
|
323
|
-
return this.timeZoneItems.flatMap(({ label: e, items: o }) => k(e, v`<calcite-combobox-item-group .label=${e}>${
|
|
321
|
+
return this.timeZoneItems.flatMap(({ label: e, items: o }) => k(e, v`<calcite-combobox-item-group .label=${e}>${L(o, ({ label: s }) => s, (s) => {
|
|
324
322
|
const n = this.selectedTimeZoneItem === s, { label: r, metadata: f, value: y } = s;
|
|
325
|
-
return v`<calcite-combobox-item data-label=${r ?? Z} .description=${f.country} .metadata=${f} .selected=${n} .textLabel=${r} .value=${y}><span class=${
|
|
323
|
+
return v`<calcite-combobox-item data-label=${r ?? Z} .description=${f.country} .metadata=${f} .selected=${n} .textLabel=${r} .value=${y}><span class=${U(ee.offset)} slot=content-end>${f.offset}</span></calcite-combobox-item>`;
|
|
326
324
|
})}</calcite-combobox-item-group>`));
|
|
327
325
|
}
|
|
328
326
|
}
|
|
329
|
-
M("calcite-input-time-zone",
|
|
327
|
+
M("calcite-input-time-zone", fe);
|
|
330
328
|
export {
|
|
331
|
-
|
|
329
|
+
fe as InputTimeZone
|
|
332
330
|
};
|
|
@@ -3,11 +3,9 @@ import { html as a } from "lit";
|
|
|
3
3
|
import { LitElement as l, createEvent as i, safeClassMap as n } from "@arcgis/lumina";
|
|
4
4
|
import { l as s, a as o, b as c } from "../../chunks/label.js";
|
|
5
5
|
import { css as r } from "@lit/reactive-element/css-tag.js";
|
|
6
|
-
/*!
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* v3.0.0-next.98
|
|
10
|
-
*/
|
|
6
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
7
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
8
|
+
v3.0.0 */
|
|
11
9
|
const d = {
|
|
12
10
|
container: "container"
|
|
13
11
|
}, m = r`: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}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .5rem)}:host([scale=m]) .container{gap:.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .75rem)}:host([scale=l]) .container{gap:.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1);color:var(--calcite-label-text-color, var(--calcite-color-text-1))}:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:.5rem}:host([layout=inline][scale=l]) .container{gap:.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity: 1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity: 0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
@@ -5,15 +5,13 @@ import { literal as s, html as b } from "lit-html/static.js";
|
|
|
5
5
|
import { LitElement as f, stringOrBoolean as k, safeClassMap as g, nothing as e } from "@arcgis/lumina";
|
|
6
6
|
import { b as y, g as v } from "../../chunks/dom.js";
|
|
7
7
|
import { u as x, I as $ } from "../../chunks/interactive.js";
|
|
8
|
-
import { c as E
|
|
9
|
-
import { css as
|
|
10
|
-
/*!
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
14
|
-
|
|
15
|
-
const R = 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:inline}:host a,:host span{position:relative;display:flex;cursor:pointer;align-items:center;justify-content:center;border-radius:0;border-style:none;font-family:inherit;text-decoration:none;line-height:inherit;font-size:inherit;-webkit-appearance:none;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,background-size;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}:host a:hover,:host span:hover{text-decoration:none}:host a,:host span{outline-color:transparent}:host a:focus,:host span: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))))}calcite-icon{inline-size:1em;block-size:1em;min-inline-size:unset;min-block-size:unset}.calcite-link--icon{vertical-align:middle;margin-block-start:-.25em}:host .calcite-link--icon.icon-start{margin-inline-end:.5rem}:host .calcite-link--icon.icon-end{margin-inline-start:.5rem}:host span,:host a{position:relative;display:inline;border-style:none;background-color:transparent;padding:0;color:var(--calcite-link-text-color, var(--calcite-color-text-link));line-height:inherit;white-space:initial;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px}:host span:hover,:host span:focus,:host a:hover,:host a:focus{background-size:100% 1px,100% 1px}:host span:active,:host a:active{background-size:100% 2px,100% 2px}:host span.calcite--rtl,:host a.calcite--rtl{background-position:100% 100%,100% 100%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
16
|
-
class T extends f {
|
|
8
|
+
import { c as E } from "../../chunks/loadable.js";
|
|
9
|
+
import { css as z } 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 */
|
|
13
|
+
const w = z`: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:inline}:host a,:host span{position:relative;display:flex;cursor:pointer;align-items:center;justify-content:center;border-radius:0;border-style:none;font-family:inherit;text-decoration:none;line-height:inherit;font-size:inherit;-webkit-appearance:none;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,background-size;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}:host a:hover,:host span:hover{text-decoration:none}:host a,:host span{outline-color:transparent}:host a:focus,:host span: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))))}calcite-icon{inline-size:1em;block-size:1em;min-inline-size:unset;min-block-size:unset}.calcite-link--icon{vertical-align:middle;margin-block-start:-.25em}:host .calcite-link--icon.icon-start{margin-inline-end:.5rem}:host .calcite-link--icon.icon-end{margin-inline-start:.5rem}:host span,:host a{position:relative;display:inline;border-style:none;background-color:transparent;padding:0;color:var(--calcite-link-text-color, var(--calcite-color-text-link));line-height:inherit;white-space:initial;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px}:host span:hover,:host span:focus,:host a:hover,:host a:focus{background-size:100% 1px,100% 1px}:host span:active,:host a:active{background-size:100% 2px,100% 2px}:host span.calcite--rtl,:host a.calcite--rtl{background-position:100% 100%,100% 100%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
14
|
+
class R extends f {
|
|
17
15
|
// #endregion
|
|
18
16
|
// #region Lifecycle
|
|
19
17
|
constructor() {
|
|
@@ -23,7 +21,7 @@ class T extends f {
|
|
|
23
21
|
this.properties = { disabled: 7, download: [3, { converter: k }], href: 3, iconEnd: 3, iconFlipRtl: 3, iconStart: 3, rel: 1, target: 1 };
|
|
24
22
|
}
|
|
25
23
|
static {
|
|
26
|
-
this.styles =
|
|
24
|
+
this.styles = w;
|
|
27
25
|
}
|
|
28
26
|
// #endregion
|
|
29
27
|
// #region Public Methods
|
|
@@ -32,13 +30,11 @@ class T extends f {
|
|
|
32
30
|
await E(this), y(this.childEl);
|
|
33
31
|
}
|
|
34
32
|
load() {
|
|
35
|
-
z(this);
|
|
36
33
|
}
|
|
37
34
|
updated() {
|
|
38
35
|
x(this);
|
|
39
36
|
}
|
|
40
37
|
loaded() {
|
|
41
|
-
C(this);
|
|
42
38
|
}
|
|
43
39
|
// #endregion
|
|
44
40
|
// #region Private Methods
|
|
@@ -58,7 +54,7 @@ class T extends f {
|
|
|
58
54
|
return this.el.role = "presentation", $({ disabled: this.disabled, children: b`<${o} class=${g({ [p.rtl]: l === "rtl" })} download=${(i === "a" ? t === !0 || t === "" ? "" : t || null : null) ?? e} href=${(i === "a" && this.href) ?? e} @click=${this.childElClickHandler} rel=${(i === "a" && this.rel) ?? e} .role=${d} tabindex=${h ?? e} target=${(i === "a" && this.target) ?? e} ${m(this.storeTagRef)}>${n`${this.iconStart ? c : null}<slot></slot>${this.iconEnd ? r : null}`}</${o}>` });
|
|
59
55
|
}
|
|
60
56
|
}
|
|
61
|
-
u("calcite-link",
|
|
57
|
+
u("calcite-link", R);
|
|
62
58
|
export {
|
|
63
|
-
|
|
59
|
+
R as Link
|
|
64
60
|
};
|