@esri/calcite-components 3.0.0-next.99 → 3.1.0-next.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/23MOV6NG.js +4 -0
- package/dist/calcite/2OOLECPX.js +4 -0
- package/dist/calcite/{L4IJ6KQT.js → 34MV5U4O.js} +4 -6
- package/dist/calcite/373CZCGO.js +4 -0
- package/dist/calcite/{4TWMM7Z6.js → 3AXOI2C3.js} +4 -6
- package/dist/calcite/3B2PP7OF.js +4 -0
- package/dist/calcite/{UPY24BFQ.js → 3SGAAJUZ.js} +3 -5
- package/dist/calcite/3WJNCOPC.js +4 -0
- package/dist/calcite/{JLIVSPKC.js → 4OCELM2X.js} +4 -6
- package/dist/calcite/{SYOTV4D4.js → 4UTJZXPD.js} +4 -6
- package/dist/calcite/{DF7SVAJW.js → 4YQ5JTFA.js} +4 -6
- package/dist/calcite/5FHBAB7Y.js +4 -0
- package/dist/calcite/{XOA2TSHC.js → 5M6HCNZZ.js} +4 -6
- package/dist/calcite/{BNYX7IBO.js → 5V63WOMD.js} +4 -6
- package/dist/calcite/{RWW7CETF.js → 5WY3RA4V.js} +4 -6
- package/dist/calcite/62IMSXF5.js +4 -0
- package/dist/calcite/{57L4ZYLO.js → 6D6N2CCC.js} +4 -6
- package/dist/calcite/{G4Q2QH6B.js → 6I7N4DJM.js} +4 -6
- package/dist/calcite/6IFDRSQV.js +4 -0
- package/dist/calcite/{3QV5TGZD.js → 6MMOWRSM.js} +4 -6
- package/dist/calcite/{4JU7BKXB.js → 6QGNNBZ5.js} +4 -6
- package/dist/calcite/6R5C57P5.js +4 -0
- package/dist/calcite/6T6UMXEG.js +4 -0
- package/dist/calcite/{5MEU7SU4.js → 6WT3NQTF.js} +4 -6
- package/dist/calcite/{6YQ42X6L.js → 6XUNN5BD.js} +4 -6
- package/dist/calcite/73JHMQAR.js +4 -0
- package/dist/calcite/75U2CEI2.js +4 -0
- package/dist/calcite/77VX6TWS.js +4 -0
- package/dist/calcite/7A7OCUYH.js +4 -0
- package/dist/calcite/{N7NWH5SX.js → 7HBBL4ZM.js} +3 -5
- package/dist/calcite/7IHFMVXN.js +4 -0
- package/dist/calcite/7LGBDOYP.js +4 -0
- package/dist/calcite/7OPWGOIH.js +4 -0
- package/dist/calcite/7VOKVNOX.js +4 -0
- package/dist/calcite/A3KUHAYH.js +4 -0
- package/dist/calcite/{6LWRLBVD.js → A77PTXQI.js} +4 -6
- package/dist/calcite/A7BIZKUQ.js +4 -0
- package/dist/calcite/{XEW3B3B5.js → A7KPG75H.js} +4 -6
- package/dist/calcite/A7WWDVJQ.js +5 -0
- package/dist/calcite/{J7RY7DXT.js → AFBGRNF3.js} +3 -5
- package/dist/calcite/{3PJ42556.js → AFI5OSXD.js} +4 -6
- package/dist/calcite/AFQ7CFQT.js +4 -0
- package/dist/calcite/AIRWHAUT.js +4 -0
- package/dist/calcite/{VM4VUQ54.js → AM6UJWJO.js} +4 -6
- package/dist/calcite/{KA53KK35.js → ARAAYSPA.js} +3 -5
- package/dist/calcite/B22OHVZA.js +4 -0
- package/dist/calcite/B5JXHWI4.js +4 -0
- package/dist/calcite/{P64WY2HI.js → BAWLIDLU.js} +4 -6
- package/dist/calcite/BB5G2FKE.js +4 -0
- package/dist/calcite/{W3WKINVO.js → BCUBPURC.js} +4 -6
- package/dist/calcite/BECCYK7I.js +4 -0
- package/dist/calcite/BGBHXXSC.js +4 -0
- package/dist/calcite/{AFH6KP7M.js → BHOEIDXT.js} +4 -6
- package/dist/calcite/BOLBKIM3.js +4 -0
- package/dist/calcite/BUB7E4GE.js +4 -0
- package/dist/calcite/BUHVYEME.js +4 -0
- package/dist/calcite/{MYJH43DB.js → BY2VIVYE.js} +4 -6
- package/dist/calcite/{3JQJ24PZ.js → CHQYILCK.js} +4 -6
- package/dist/calcite/{BGQR3WLU.js → CKLM3NH3.js} +4 -6
- package/dist/calcite/{VP4IW6MN.js → CPLZSNMW.js} +4 -6
- package/dist/calcite/CPWCVFVX.js +4 -0
- package/dist/calcite/CQ5FVCCX.js +4 -0
- package/dist/calcite/CU6QKL4W.js +4 -0
- package/dist/calcite/{2YSVELPG.js → CVPHYVRS.js} +3 -5
- package/dist/calcite/CYK3MWM4.js +4 -0
- package/dist/calcite/D2PRGKAG.js +4 -0
- package/dist/calcite/{UFV4E5V5.js → D44V6PEO.js} +4 -6
- package/dist/calcite/DSNK4E4G.js +4 -0
- package/dist/calcite/DUM56X2O.js +4 -0
- package/dist/calcite/DXGYOB2C.js +4 -0
- package/dist/calcite/DY75E5TM.js +4 -0
- package/dist/calcite/{LR6EXHT2.js → E7MBDJGE.js} +4 -6
- package/dist/calcite/{ZWGCNMZF.js → EBHSG7RJ.js} +4 -6
- package/dist/calcite/{7NVGCG7Q.js → EEUCEFXG.js} +3 -5
- package/dist/calcite/{UZAQE6XP.js → EKQYW7GE.js} +4 -6
- package/dist/calcite/{Z2ZTWA3F.js → ERNMRUWX.js} +3 -5
- package/dist/calcite/EY2PLOMF.js +4 -0
- package/dist/calcite/{KWWKG3YN.js → F3Y2S6BF.js} +4 -6
- package/dist/calcite/F7CJI6MB.js +4 -0
- package/dist/calcite/FE2QRVI7.js +4 -0
- package/dist/calcite/FF4V4NT7.js +4 -0
- package/dist/calcite/{3KND2KKH.js → FSSFZBVO.js} +4 -6
- package/dist/calcite/{3LYDW23E.js → FZJ3BTYV.js} +4 -6
- package/dist/calcite/{EUXG27WD.js → GK5DGLYC.js} +4 -6
- package/dist/calcite/H4E2N4X2.js +4 -0
- package/dist/calcite/H7E2HITF.js +4 -0
- package/dist/calcite/H7RTEVRM.js +4 -0
- package/dist/calcite/HBNQRYUU.js +4 -0
- package/dist/calcite/HD5RZV7I.js +4 -0
- package/dist/calcite/{K3F2CI4A.js → HIRSIKVC.js} +4 -6
- package/dist/calcite/HLORIHBB.js +4 -0
- package/dist/calcite/{6FI3WN2Y.js → HSU2J7U7.js} +4 -6
- package/dist/calcite/{WIGL5RKK.js → HTI57FLV.js} +4 -6
- package/dist/calcite/HU25GIR3.js +4 -0
- package/dist/calcite/HX44FXR7.js +4 -0
- package/dist/calcite/I2OX63UC.js +4 -0
- package/dist/calcite/I2YUGRNE.js +4 -0
- package/dist/calcite/IJV4X7J7.js +4 -0
- package/dist/calcite/IOPDSOMP.js +4 -0
- package/dist/calcite/IPEYLL4T.js +6 -0
- package/dist/calcite/IRMEFP5V.js +4 -0
- package/dist/calcite/{XR2WLB7D.js → ISKYJPVP.js} +3 -5
- package/dist/calcite/{KHDHQPVO.js → IUOGAZKX.js} +4 -6
- package/dist/calcite/JAPR4FNO.js +4 -0
- package/dist/calcite/JHE67SX5.js +4 -0
- package/dist/calcite/JM3OLLIG.js +4 -0
- package/dist/calcite/JQIN4FNX.js +4 -0
- package/dist/calcite/K72IV53Z.js +4 -0
- package/dist/calcite/{26ES3CRO.js → KFZDQQV4.js} +4 -6
- package/dist/calcite/KLBMM5PO.js +4 -0
- package/dist/calcite/KM6NLV33.js +4 -0
- package/dist/calcite/KQUGBIWA.js +4 -0
- package/dist/calcite/LEH7GP3V.js +4 -0
- package/dist/calcite/LN56JZD3.js +4 -0
- package/dist/calcite/LONQYMAY.js +4 -0
- package/dist/calcite/{ESS6BUTG.js → M2BP427U.js} +4 -6
- package/dist/calcite/{CM4U5UKC.js → M7GV7Q4M.js} +4 -6
- package/dist/calcite/{2UYJUU43.js → MBZP2G7S.js} +4 -6
- package/dist/calcite/{4OYBMKUB.js → MGMKRHPK.js} +4 -6
- package/dist/calcite/MJPRNCRR.js +4 -0
- package/dist/calcite/{EBQYJBDQ.js → MKSN35K2.js} +4 -6
- package/dist/calcite/{3ATQZBKY.js → MM3U5UFW.js} +4 -6
- package/dist/calcite/{OU4N4K2U.js → MNKK2ILQ.js} +4 -6
- package/dist/calcite/{W4D5O4P2.js → MRYPQXG2.js} +3 -5
- package/dist/calcite/{G27BUJJG.js → MW55GFZV.js} +3 -5
- package/dist/calcite/MYKRE5QO.js +4 -0
- package/dist/calcite/{S6AE7RHT.js → N6OZM4AJ.js} +4 -6
- package/dist/calcite/NBCCD7Z4.js +4 -0
- package/dist/calcite/{XFHDAVBK.js → NEZR6N4L.js} +4 -6
- package/dist/calcite/{I2N2BRJR.js → NKVV542U.js} +3 -5
- package/dist/calcite/{6EFD6XES.js → NTQTXOKH.js} +4 -6
- package/dist/calcite/{SZP7YBVQ.js → NW2QKL4A.js} +4 -6
- package/dist/calcite/{DO5AYUNU.js → O6U5C56E.js} +4 -6
- package/dist/calcite/{KBVTFWRR.js → OKSDNORT.js} +4 -6
- package/dist/calcite/{GIRDDKPZ.js → OLXJRGIR.js} +4 -6
- package/dist/calcite/{3SE2Z2VK.js → OQYQHRZJ.js} +5 -7
- package/dist/calcite/P2EJXRHM.js +4 -0
- package/dist/calcite/{QFH3VN2R.js → P37UOGXI.js} +4 -6
- package/dist/calcite/PC7WLS5Q.js +4 -0
- package/dist/calcite/PD3WNH5L.js +4 -0
- package/dist/calcite/{ZQSF4K7D.js → PER743YE.js} +4 -6
- package/dist/calcite/PMGM7JNH.js +4 -0
- package/dist/calcite/{QLJX2F4K.js → PUMTLS4E.js} +4 -6
- package/dist/calcite/Q3M6KGKZ.js +4 -0
- package/dist/calcite/{LQ5ITYNE.js → Q4MKOMJK.js} +4 -6
- package/dist/calcite/{3RLXG3NR.js → Q52B4SR4.js} +4 -6
- package/dist/calcite/{VFBPWVKE.js → QC3KYLNZ.js} +4 -6
- package/dist/calcite/QFOLYCWD.js +4 -0
- package/dist/calcite/QGOU2BEZ.js +4 -0
- package/dist/calcite/QI2ELYU3.js +4 -0
- package/dist/calcite/QIZGHNZY.js +4 -0
- package/dist/calcite/QJRMWXHQ.js +22 -0
- package/dist/calcite/{G75XVKLZ.js → QQR6TKYE.js} +4 -6
- package/dist/calcite/{FMI6FJW4.js → QR6G6AB2.js} +4 -6
- package/dist/calcite/QUUKOZWD.js +4 -0
- package/dist/calcite/R3EBVVN3.js +4 -0
- package/dist/calcite/{3Z3RDAUW.js → R3FLP5QS.js} +4 -6
- package/dist/calcite/R6M6HES6.js +4 -0
- package/dist/calcite/{MRVEUN2O.js → RAA7AM6M.js} +4 -6
- package/dist/calcite/RDOVN276.js +4 -0
- package/dist/calcite/RFATQCOE.js +4 -0
- package/dist/calcite/RHR5F4HO.js +4 -0
- package/dist/calcite/RISOP66W.js +4 -0
- package/dist/calcite/{JFBHBHJE.js → RSMRASRN.js} +4 -6
- package/dist/calcite/{FSQJ72IH.js → RTH7YVQR.js} +4 -6
- package/dist/calcite/RWRS2NU2.js +4 -0
- package/dist/calcite/{AASA6526.js → S23GFP6K.js} +4 -6
- package/dist/calcite/{O2KBYT33.js → S6HVF75Y.js} +4 -6
- package/dist/calcite/S74LMG36.js +4 -0
- package/dist/calcite/SADM47KH.js +4 -0
- package/dist/calcite/SLKTWE3W.js +4 -0
- package/dist/calcite/{ELXZUEDC.js → SLTDIENT.js} +4 -6
- package/dist/calcite/SYGGMDPD.js +4 -0
- package/dist/calcite/T4MBSEJN.js +4 -0
- package/dist/calcite/TCIPD6BI.js +4 -0
- package/dist/calcite/TD2M3HXH.js +4 -0
- package/dist/calcite/TFDQPWTN.js +4 -0
- package/dist/calcite/{QNGBOTGF.js → TO5FCIUA.js} +4 -6
- package/dist/calcite/TX2VI5MW.js +4 -0
- package/dist/calcite/U3HEL4RD.js +4 -0
- package/dist/calcite/{KMLCSDZJ.js → UELJS6PF.js} +4 -6
- package/dist/calcite/UFYDUU52.js +4 -0
- package/dist/calcite/{5LAQP62T.js → UP7SL3CK.js} +4 -6
- package/dist/calcite/UT6FICQ3.js +4 -0
- package/dist/calcite/V6AMPSCT.js +4 -0
- package/dist/calcite/VEJRRMKU.js +4 -0
- package/dist/calcite/VFVGGH4O.js +4 -0
- package/dist/calcite/{O7B4THLC.js → VQ4LSZKF.js} +4 -6
- package/dist/calcite/VW4FPITC.js +4 -0
- package/dist/calcite/{CTQ5YHOP.js → WACTC6C2.js} +4 -6
- package/dist/calcite/{XFKIMAJU.js → WFNPLZZD.js} +4 -6
- package/dist/calcite/WOZ3YSMM.js +4 -0
- package/dist/calcite/WQI63ENU.js +4 -0
- package/dist/calcite/WX25GXOJ.js +4 -0
- package/dist/calcite/X2CKUJNY.js +4 -0
- package/dist/calcite/{2JRSKQML.js → X3XUDYZK.js} +4 -6
- package/dist/calcite/{Y5IWWVKB.js → X4HIU64B.js} +4 -6
- package/dist/calcite/{GU2SFYM4.js → X6MOGC7A.js} +4 -6
- package/dist/calcite/{AUEN6VFD.js → XBMJE2HA.js} +4 -6
- package/dist/calcite/{SFWNFANJ.js → XEB3PVUL.js} +4 -6
- package/dist/calcite/{MNBTRJLH.js → XENH6L4X.js} +4 -6
- package/dist/calcite/{OMBBOPRI.js → XJJ7H5YN.js} +4 -6
- package/dist/calcite/XPXLWH7X.js +4 -0
- package/dist/calcite/XRGQWCOT.js +4 -0
- package/dist/calcite/{AGLAEQKV.js → XU4G32CA.js} +4 -6
- package/dist/calcite/XYTAOAJQ.js +4 -0
- package/dist/calcite/XZVQKECK.js +4 -0
- package/dist/calcite/{B77QRUX7.js → YBPOJHA7.js} +4 -6
- package/dist/calcite/YCJABBGV.js +4 -0
- package/dist/calcite/YDLXSG4W.js +4 -0
- package/dist/calcite/YICY6VCM.js +4 -0
- package/dist/calcite/YLJ43EVG.js +4 -0
- package/dist/calcite/{QBG5T6W3.js → YMHBAMWI.js} +4 -6
- package/dist/calcite/YSGHAVSA.js +4 -0
- package/dist/calcite/{BZOCG27F.js → YUGL6WTS.js} +4 -6
- package/dist/calcite/YWEFWGI7.js +4 -0
- package/dist/calcite/{EWQKTTIO.js → YYWIZXXK.js} +4 -6
- package/dist/calcite/Z6W6VEP2.js +4 -0
- package/dist/calcite/{ARFAFPKS.js → Z7SGWG6G.js} +4 -6
- package/dist/calcite/{UCGUHOUO.js → ZBOL56TZ.js} +4 -6
- package/dist/calcite/ZCCUSDNB.js +4 -0
- package/dist/calcite/ZFTPOTKI.js +4 -0
- package/dist/calcite/ZTKKB3EW.js +4 -0
- package/dist/calcite/ZUF4UFWX.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 +38 -42
- 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 +54 -73
- 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 +8 -10
- 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/2AZY343I.js +0 -6
- package/dist/calcite/2CPZ6K5L.js +0 -6
- package/dist/calcite/2M35C4DF.js +0 -6
- package/dist/calcite/2VVNNU7Q.js +0 -6
- package/dist/calcite/2XACBT2N.js +0 -6
- package/dist/calcite/32P7BAVF.js +0 -6
- package/dist/calcite/3HC2LTHR.js +0 -6
- package/dist/calcite/455MOJA6.js +0 -6
- package/dist/calcite/4DVWRXRA.js +0 -6
- package/dist/calcite/4TF5UO7R.js +0 -6
- package/dist/calcite/572RARTY.js +0 -6
- package/dist/calcite/5I36CFLM.js +0 -6
- package/dist/calcite/5OJMVZTI.js +0 -6
- package/dist/calcite/5YZTHYBK.js +0 -6
- package/dist/calcite/6L5EBECQ.js +0 -6
- package/dist/calcite/73JK3C3F.js +0 -6
- package/dist/calcite/7557S5FH.js +0 -6
- package/dist/calcite/7FJOFJBG.js +0 -6
- package/dist/calcite/7KUN772K.js +0 -6
- package/dist/calcite/7LABYE24.js +0 -6
- package/dist/calcite/7NPWRWEK.js +0 -6
- package/dist/calcite/7PQTHMQD.js +0 -6
- package/dist/calcite/AEIISXUM.js +0 -6
- package/dist/calcite/AT2QAEKC.js +0 -6
- package/dist/calcite/BHLCJMB4.js +0 -6
- package/dist/calcite/BOMPAJVU.js +0 -6
- package/dist/calcite/BYURAML5.js +0 -6
- package/dist/calcite/CRBGPV2Y.js +0 -6
- package/dist/calcite/CY2QE4I2.js +0 -6
- package/dist/calcite/D26RI2OE.js +0 -6
- package/dist/calcite/DCAWR655.js +0 -6
- package/dist/calcite/DSYDJ57C.js +0 -6
- package/dist/calcite/E2PVAX5K.js +0 -6
- package/dist/calcite/EH7S4XKL.js +0 -6
- package/dist/calcite/FGCHRTFU.js +0 -6
- package/dist/calcite/FIJQNNLL.js +0 -6
- package/dist/calcite/FIVGOTUL.js +0 -6
- package/dist/calcite/FPZSDG22.js +0 -6
- package/dist/calcite/FQJWCM6B.js +0 -6
- package/dist/calcite/FRK56FXW.js +0 -6
- package/dist/calcite/FSORFWYW.js +0 -6
- package/dist/calcite/FWSMKN2T.js +0 -6
- package/dist/calcite/GGQW5H6B.js +0 -6
- package/dist/calcite/GHY53YEU.js +0 -6
- package/dist/calcite/GWGCBSIN.js +0 -6
- package/dist/calcite/HH5FL6GD.js +0 -6
- package/dist/calcite/HNNE5R46.js +0 -6
- package/dist/calcite/HRVN7KZA.js +0 -6
- package/dist/calcite/I3TEC7IS.js +0 -6
- package/dist/calcite/I5SQS3SN.js +0 -6
- package/dist/calcite/I74ZLJFG.js +0 -6
- package/dist/calcite/I7SBXLRM.js +0 -6
- package/dist/calcite/IEJMBPJU.js +0 -6
- package/dist/calcite/IK3QCAZN.js +0 -6
- package/dist/calcite/IKOOMPAX.js +0 -6
- package/dist/calcite/IPDH2LDG.js +0 -6
- package/dist/calcite/IUBUCDD6.js +0 -6
- package/dist/calcite/JCMCWR7J.js +0 -6
- package/dist/calcite/JHGP2C56.js +0 -6
- package/dist/calcite/JMNIVK3R.js +0 -6
- package/dist/calcite/KDCUMRGX.js +0 -6
- package/dist/calcite/KEFBUO23.js +0 -6
- package/dist/calcite/KHNXDA3R.js +0 -6
- package/dist/calcite/KLEV3IGL.js +0 -6
- package/dist/calcite/LIT6HBCV.js +0 -6
- package/dist/calcite/LKXA7MRG.js +0 -6
- package/dist/calcite/LMTPIXJD.js +0 -6
- package/dist/calcite/M3MFRN64.js +0 -6
- package/dist/calcite/M5MPF4VA.js +0 -6
- package/dist/calcite/MWGGE65N.js +0 -6
- package/dist/calcite/MXNAKF47.js +0 -6
- package/dist/calcite/NNKZWGGT.js +0 -6
- package/dist/calcite/NVQN43XK.js +0 -6
- package/dist/calcite/OHLVZUJX.js +0 -6
- package/dist/calcite/OHR7IMVY.js +0 -6
- package/dist/calcite/OJ5D52RG.js +0 -6
- package/dist/calcite/OJ5H4H4N.js +0 -6
- package/dist/calcite/OTT2SAVW.js +0 -6
- package/dist/calcite/OTYNRKUI.js +0 -6
- package/dist/calcite/PB4E6L52.js +0 -6
- package/dist/calcite/PO4EKM6H.js +0 -6
- package/dist/calcite/PPU55N5C.js +0 -6
- package/dist/calcite/PRGXXMHF.js +0 -6
- package/dist/calcite/PZ34QZ44.js +0 -6
- package/dist/calcite/PZ65523C.js +0 -6
- package/dist/calcite/PZGFP3J5.js +0 -6
- package/dist/calcite/Q2OAKI4L.js +0 -7
- package/dist/calcite/QIOSM7C2.js +0 -6
- package/dist/calcite/QS2B427U.js +0 -6
- package/dist/calcite/QVG465DZ.js +0 -6
- package/dist/calcite/RJU34JMH.js +0 -6
- package/dist/calcite/RL6ENWBS.js +0 -6
- package/dist/calcite/RWRTOY74.js +0 -6
- package/dist/calcite/S66ATD4V.js +0 -6
- package/dist/calcite/SHIZHTEP.js +0 -6
- package/dist/calcite/SY776R43.js +0 -6
- package/dist/calcite/T2M3KJPZ.js +0 -6
- package/dist/calcite/T7AHSVKE.js +0 -6
- package/dist/calcite/TBZM4XEW.js +0 -6
- package/dist/calcite/THTH4FYX.js +0 -6
- package/dist/calcite/TI4ZYY5Y.js +0 -6
- package/dist/calcite/TKE6VYZT.js +0 -6
- package/dist/calcite/TR3TLSTJ.js +0 -6
- package/dist/calcite/TSUCKRY4.js +0 -6
- package/dist/calcite/TWZNPBFB.js +0 -6
- package/dist/calcite/U5AZRHO7.js +0 -6
- package/dist/calcite/UE43U5QZ.js +0 -6
- package/dist/calcite/UHCCT74Q.js +0 -6
- package/dist/calcite/USP47AIY.js +0 -6
- package/dist/calcite/V3ZZW4SK.js +0 -6
- package/dist/calcite/WBOLRFTK.js +0 -6
- package/dist/calcite/WH3NETOG.js +0 -6
- package/dist/calcite/WHD4MFC3.js +0 -6
- package/dist/calcite/WJ6LOMWZ.js +0 -6
- package/dist/calcite/WKI76QXV.js +0 -6
- package/dist/calcite/WRQMW4QF.js +0 -24
- package/dist/calcite/X4RLJXN2.js +0 -6
- package/dist/calcite/XDGCDDNX.js +0 -8
- package/dist/calcite/XL6QBGWC.js +0 -6
- package/dist/calcite/XVBU5M6P.js +0 -6
- package/dist/calcite/Z4XCJ5VE.js +0 -6
- package/dist/calcite/ZQERQE2F.js +0 -6
- package/dist/calcite/ZYUUIPOD.js +0 -6
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v3.1.0-next.0 */
|
|
4
|
+
import{b as P}from"./BUB7E4GE.js";import"./OLXJRGIR.js";import{b as O}from"./5V63WOMD.js";import"./CVPHYVRS.js";import{a as E}from"./D2PRGKAG.js";import{a as y,b as B}from"./RAA7AM6M.js";import{a as H}from"./RSMRASRN.js";import{a as s}from"./CQ5FVCCX.js";import"./ERNMRUWX.js";import{a as w}from"./MYKRE5QO.js";import{b as x}from"./WACTC6C2.js";import{n as S,u as d}from"./FE2QRVI7.js";import{b as C}from"./7VOKVNOX.js";import"./7LGBDOYP.js";import{J as k,e as f,f as a,j as u,v as l,w as $,x as i}from"./IPEYLL4T.js";var c={content:"content",toggle:"toggle",header:"header"},t={actionsEnd:"actions-end",container:"container",content:"content",contentStart:"content-start",controlContainer:"control-container",description:"description",header:"header",headerContainer:"header-container",headerHasText:"header--has-text",heading:"heading",icon:"icon",iconStart:"icon--start",iconEnd:"icon--end",iconEndContainer:"icon-end-container",invalid:"invalid",statusIcon:"status-icon",title:"title",toggle:"toggle",toggleIcon:"toggle-icon",valid:"valid"},h={actionsEnd:"actions-end",contentStart:"content-start",control:"control",headerMenuActions:"header-menu-actions",icon:"icon"},b={opened:"chevron-up",closed:"chevron-down",valid:"check-circle",invalid:"exclamation-mark-triangle"},U=f`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{--calcite-icon-size: 1rem;--calcite-spacing-eighth: .125rem;--calcite-spacing-quarter: .25rem;--calcite-spacing-half: .5rem;--calcite-spacing-three-quarters: .75rem;--calcite-spacing: 1rem;--calcite-spacing-plus-quarter: 1.25rem;--calcite-spacing-plus-half: 1.5rem;--calcite-spacing-double: 2rem;--calcite-menu-min-width: 10rem;--calcite-header-min-height: 3rem;--calcite-footer-min-height: 3rem}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;border-width:0px;border-block-end-width:1px;border-style:solid;padding:0;transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-timing-function:cubic-bezier(.215,.44,.42,.88);flex-basis:auto;transition-duration:var(--calcite-animation-timing);border-color:var(--calcite-block-border-color, var(--calcite-color-border-3))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{margin:0;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0;padding:0;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:.5rem}.header{justify-content:flex-start}.header--has-text{padding:var(--calcite-spacing-md)}.header,.toggle{grid-area:header}.header-container{display:grid;align-items:stretch;grid-template:auto/auto 1fr auto auto;grid-template-areas:"handle header control menu actions-end";grid-column:header-start/actions-end;grid-row:1/2}.content-start,.icon,.icon--start,.icon--end{margin-inline-end:var(--calcite-spacing-md)}.icon calcite-loader{margin-inline-end:var(--calcite-spacing-xxxs)}.icon--start,.icon--end{color:var(--calcite-block-text-color, var(--calcite-color-text-3))}.actions-end{grid-area:actions-end}.toggle{margin:0;display:flex;cursor:pointer;flex-wrap:nowrap;align-items:center;justify-content:space-between;border-style:none;padding:0;font-family:var(--calcite-font-family);outline-color:transparent;text-align:initial;background-color:var(--calcite-block-header-background-color, transparent)}.toggle:hover{background-color:var(--calcite-block-header-background-color-hover, var(--calcite-color-foreground-2))}.toggle: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-loader[inline]{grid-area:control;align-self:center}calcite-handle{grid-area:handle}.title{margin:0}.header .title .heading{padding:0;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;transition-property:color;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);word-wrap:break-word;word-break:break-word;color:var(--calcite-block-heading-text-color, var(--calcite-color-text-2))}.description{margin-block-start:.125rem;padding:0;font-size:var(--calcite-font-size--2);line-height:1.375;word-wrap:break-word;word-break:break-word;color:var(--calcite-block-text-color, var(--calcite-color-text-3))}.icon{display:flex}.status-icon.valid{color:var(--calcite-color-status-success)}.status-icon.invalid{color:var(--calcite-color-status-danger)}@keyframes spin{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}.icon-end-container{display:flex;align-items:center;margin-inline-start:auto}.toggle-icon{align-self:center;justify-self:end;transition-property:color;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);margin-inline-end:var(--calcite-spacing-md);color:var(--calcite-block-text-color, var(--calcite-color-text-3))}.toggle:hover .toggle-icon{color:var(--calcite-block-heading-text-color-press, var(--calcite-color-text-1))}.container{position:relative;display:flex;block-size:100%;flex-direction:column}.content{position:relative;min-block-size:0px;flex:1 1 0%}@keyframes in{0%{opacity:0}to{opacity:1}}.content{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;padding-block:var(--calcite-block-padding, var(--calcite-spacing-sm));padding-inline:var(--calcite-block-padding, var(--calcite-spacing-md))}.content-start{display:flex;align-items:center;color:var(--calcite-block-text-color, var(--calcite-color-text-3))}.control-container{margin:0;display:flex;grid-area:control}calcite-action-menu{grid-area:menu}.actions-end{display:flex;align-items:stretch}:host([open]){margin-block:.5rem}:host([open]) .header .title .heading{color:var(--calcite-block-heading-text-color-press, var(--calcite-color-text-1))}:host([hidden]){display:none}[hidden]{display:none}`,v=class extends ${constructor(){super(...arguments),this.transitionProp="margin-top",this.hasContentStart=!1,this.hasControl=!1,this.hasEndActions=!1,this.hasIcon=!1,this.hasMenuActions=!1,this.collapsible=!1,this.disabled=!1,this.dragDisabled=!1,this.dragHandle=!1,this.loading=!1,this.menuPlacement=O,this.messages=w(),this.moveToItems=[],this.open=!1,this.overlayPositioning="absolute",this.setPosition=null,this.setSize=null,this.sortHandleOpen=!1,this.calciteBlockBeforeClose=l({cancelable:!1}),this.calciteBlockBeforeOpen=l({cancelable:!1}),this.calciteBlockClose=l({cancelable:!1}),this.calciteBlockOpen=l({cancelable:!1}),this.calciteBlockSortHandleBeforeClose=l({cancelable:!1}),this.calciteBlockSortHandleBeforeOpen=l({cancelable:!1}),this.calciteBlockSortHandleClose=l({cancelable:!1}),this.calciteBlockSortHandleOpen=l({cancelable:!1}),this.calciteBlockToggle=l({cancelable:!1})}static{this.properties={hasContentStart:16,hasControl:16,hasEndActions:16,hasIcon:16,hasMenuActions:16,collapsible:7,description:1,disabled:7,dragDisabled:7,dragHandle:7,heading:1,headingLevel:11,iconEnd:3,iconFlipRtl:3,iconStart:3,loading:7,label:1,menuFlipPlacements:0,menuPlacement:3,messageOverrides:0,moveToItems:0,open:7,overlayPositioning:3,setPosition:9,setSize:9,sortHandleOpen:7,status:3}}static{this.styles=U}async setFocus(){await C(this),S(this.el)}connectedCallback(){super.connectedCallback(),this.transitionEl=this.el}load(){!this.heading&&!this.label&&H.warn(`${this.el.tagName} is missing both heading & label. Please provide a heading or label for the component to be accessible.`)}willUpdate(e){e.has("open")&&(this.hasUpdated||this.open!==!1)&&E(this),e.has("sortHandleOpen")&&(this.hasUpdated||this.sortHandleOpen!==!1)&&this.sortHandleOpenHandler()}updated(){y(this)}loaded(){}onBeforeOpen(){this.calciteBlockBeforeOpen.emit()}onOpen(){this.calciteBlockOpen.emit()}onBeforeClose(){this.calciteBlockBeforeClose.emit()}onClose(){this.calciteBlockClose.emit()}sortHandleOpenHandler(){this.sortHandleEl&&(this.sortHandleEl.open=this.sortHandleOpen)}setSortHandleEl(e){this.sortHandleEl=e,this.sortHandleOpenHandler()}handleSortHandleBeforeOpen(e){e.stopPropagation(),this.calciteBlockSortHandleBeforeOpen.emit()}handleSortHandleBeforeClose(e){e.stopPropagation(),this.calciteBlockSortHandleBeforeClose.emit()}handleSortHandleClose(e){e.stopPropagation(),this.sortHandleOpen=!1,this.calciteBlockSortHandleClose.emit()}handleSortHandleOpen(e){e.stopPropagation(),this.sortHandleOpen=!0,this.calciteBlockSortHandleOpen.emit()}onHeaderClick(){this.open=!this.open,this.calciteBlockToggle.emit()}controlSlotChangeHandler(e){this.hasControl=d(e)}menuActionsSlotChangeHandler(e){this.hasMenuActions=d(e)}iconSlotChangeHandler(e){this.hasIcon=d(e)}actionsEndSlotChangeHandler(e){this.hasEndActions=d(e)}handleContentStartSlotChange(e){this.hasContentStart=d(e)}renderScrim(){let{loading:e}=this,o=a`<slot></slot>`;return[e?a`<calcite-scrim .loading=${e}></calcite-scrim>`:null,o]}renderLoaderStatusIcon(){let{loading:e,messages:o,status:n}=this;return e?s("loader",a`<div class=${i(t.icon)}><calcite-loader inline .label=${o.loading}></calcite-loader></div>`):n?s("status-icon",a`<div class=${i(t.icon)}><calcite-icon class=${i({[t.statusIcon]:!0,[t.valid]:n=="valid",[t.invalid]:n=="invalid"})} .icon=${b[n]} scale=s></calcite-icon></div>`):s("icon-slot",a`<div class=${i(t.icon)} .hidden=${!this.hasIcon}>${s("icon-slot",a`<slot name=${h.icon} @slotchange=${this.iconSlotChangeHandler}></slot>`)}</div>`)}renderActionsEnd(){return a`<div class=${i(t.actionsEnd)} .hidden=${!this.hasEndActions}><slot name=${h.actionsEnd} @slotchange=${this.actionsEndSlotChangeHandler}></slot></div>`}renderContentStart(){return a`<div class=${i(t.contentStart)} .hidden=${!this.hasContentStart}><slot name=${h.contentStart} @slotchange=${this.handleContentStartSlotChange}></slot></div>`}renderTitle(){let{heading:e,headingLevel:o,description:n}=this;return e||n?a`<div class=${i(t.title)}>${P({class:t.heading,level:o,children:e})}${n?a`<div class=${i(t.description)}>${n}</div>`:null}</div>`:null}renderIcon(e){let{iconFlipRtl:o}=this,n=o==="both"||e==="start"?o==="start":o==="end",r=e==="start"?this.iconStart:this.iconEnd,g=e==="start"?t.iconStart:t.iconEnd;if(r)return s(r,a`<calcite-icon class=${i(g)} .flipRtl=${n} .icon=${r} scale=s></calcite-icon>`)}render(){let{collapsible:e,loading:o,open:n,label:r,heading:g,messages:p,description:z,menuFlipPlacements:I,menuPlacement:A,moveToItems:T,setPosition:M,setSize:F,dragDisabled:L}=this,j=n?p.collapse:p.expand,m=a`<header class=${i({[t.header]:!0,[t.headerHasText]:!!(g||z)})} id=${c.header}>${this.renderIcon("start")}${this.renderContentStart()}${this.renderLoaderStatusIcon()}${this.renderTitle()}</header>`,D=n?b.opened:b.closed,R=a`<div class=${i(t.headerContainer)}>${this.dragHandle?a`<calcite-sort-handle .disabled=${L} .label=${g||r} .moveToItems=${T} @calciteSortHandleBeforeClose=${this.handleSortHandleBeforeClose} @calciteSortHandleBeforeOpen=${this.handleSortHandleBeforeOpen} @calciteSortHandleClose=${this.handleSortHandleClose} @calciteSortHandleOpen=${this.handleSortHandleOpen} overlay-positioning=fixed .setPosition=${M} .setSize=${F} ${x(this.setSortHandleEl)}></calcite-sort-handle>`:null}${e?a`<button aria-controls=${c.content} aria-describedby=${c.header} .ariaExpanded=${e?n:null} class=${i(t.toggle)} id=${c.toggle} @click=${this.onHeaderClick} title=${j??u}>${m}<div class=${i(t.iconEndContainer)}>${this.renderIcon("end")}<calcite-icon class=${i(t.toggleIcon)} .icon=${D} scale=s></calcite-icon></div></button>`:this.iconEnd?a`<div>${m}<div class=${i(t.iconEndContainer)}>${this.renderIcon("end")}</div></div>`:m}<div aria-labelledby=${c.header} class=${i(t.controlContainer)} .hidden=${!this.hasControl}><slot name=${h.control} @slotchange=${this.controlSlotChangeHandler}></slot></div><calcite-action-menu .flipPlacements=${I??["top","bottom"]} .hidden=${!this.hasMenuActions} .label=${p.options} .overlayPositioning=${this.overlayPositioning} .placement=${A}><slot name=${h.headerMenuActions} @slotchange=${this.menuActionsSlotChangeHandler}></slot></calcite-action-menu>${this.renderActionsEnd()}</div>`;return B({disabled:this.disabled,children:a`<article aria-label=${r??u} .ariaBusy=${o} class=${i({[t.container]:!0})}>${R}<section aria-labelledby=${c.toggle} class=${i(t.content)} .hidden=${!n} id=${c.content}>${this.renderScrim()}</section></article>`})}};k("calcite-block",v);export{v as Block};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v3.1.0-next.0 */
|
|
4
|
+
import{a as y,r as w}from"./6T6UMXEG.js";import"./ARAAYSPA.js";import"./62IMSXF5.js";import{a as z}from"./CQ5FVCCX.js";import{d as S}from"./FE2QRVI7.js";import"./7LGBDOYP.js";import{J as f,e as k,f as m,g as c,j as t,w as u,x as l}from"./IPEYLL4T.js";var n={swatch:"swatch",noColorSwatch:"swatch--no-color",checker:"checker"},x={borderLight:"rgba(0, 0, 0, 0.3)",borderDark:"rgba(255, 255, 255, 0.15)"},C=4,i={squareSize:C,size:C*2},v=k`:host{position:relative;display:inline-flex}:host([scale=s]){block-size:1.25rem;inline-size:1.25rem}:host([scale=m]){block-size:1.5rem;inline-size:1.5rem}:host([scale=l]){block-size:2rem;inline-size:2rem}.swatch{overflow:hidden;block-size:inherit;inline-size:inherit}.swatch rect{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.swatch--no-color rect{fill:var(--calcite-color-foreground-1)}.swatch--no-color line{stroke:var(--calcite-color-status-danger)}.checker{fill:#cacaca}:host([hidden]){display:none}[hidden]{display:none}`,g=class extends u{constructor(){super(...arguments),this.active=!1,this.scale="m"}static{this.properties={active:7,color:1,scale:3}}static{this.styles=v}load(){this.handleColorChange(this.color)}willUpdate(e){e.has("color")&&this.handleColorChange(this.color)}handleColorChange(e){this.internalColor=e?y(e):null}render(){let e=!this.internalColor,h={[n.swatch]:!0,[n.noColorSwatch]:e};return m`<svg class=${l(h)} xmlns=http://www.w3.org/2000/svg>${this.renderSwatch()}</svg>`}renderSwatch(){let{active:e,el:h,internalColor:s}=this,o=e?"100%":"0",d=S(h)==="light"?x.borderLight:x.borderDark,p=!s,r={height:"100%",rx:o,stroke:d,strokeWidth:"2",width:"100%"};if(p)return c`<clipPath id=shape><rect height=100% rx=${o??t} width=100% /></clipPath>${this.renderSwatchRect({clipPath:`inset(0 round ${o})`,...r})}<line clip-path=url(#shape) stroke-width=3 x1=100% x2=0 y1=0 y2=100% />`;let a=s.alpha(),b=w(s),$=w(s,a<1);return c`<title>${$}</title><defs><pattern height=${i.size} id=checker patternUnits=userSpaceOnUse width=${i.size} x=0 y=0><rect class=${l(n.checker)} height=${i.squareSize} width=${i.squareSize} x=0 y=0 /><rect class=${l(n.checker)} height=${i.squareSize} width=${i.squareSize} x=${i.squareSize} y=${i.squareSize} /></pattern></defs>${this.renderSwatchRect({fill:"url(#checker)",rx:r.rx,height:r.height,width:r.width})}${this.renderSwatchRect({clipPath:a<1?"polygon(100% 0, 0 0, 0 100%)":`inset(0 round ${o})`,fill:b,...r})}${a<1?this.renderSwatchRect({clipPath:"polygon(100% 0, 100% 100%, 0 100%)",fill:$,key:"opacity-fill",...r}):null}`}renderSwatchRect({clipPath:e,fill:h,height:s,key:o,rx:d,stroke:p,strokeWidth:r,width:a}){return z(o,c`<rect clip-path=${e??t} fill=${h??t} height=${s??t} rx=${d??t} stroke=${p??t} stroke-width=${r??t} width=${a??t} />`)}};f("calcite-color-picker-swatch",g);export{g as ColorPickerSwatch};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
import{b as r}from"./6LWRLBVD.js";import"./J7RY7DXT.js";var _={name:"sv",weekdays:"s\xF6ndag_m\xE5ndag_tisdag_onsdag_torsdag_fredag_l\xF6rdag".split("_"),weekdaysShort:"s\xF6n_m\xE5n_tis_ons_tor_fre_l\xF6r".split("_"),weekdaysMin:"s\xF6_m\xE5_ti_on_to_fr_l\xF6".split("_"),months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(a){var e=a%10,m=e===1||e===2?"a":"e";return"["+a+m+"]"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},relativeTime:{future:"om %s",past:"f\xF6r %s sedan",s:"n\xE5gra sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xE5nad",MM:"%d m\xE5nader",y:"ett \xE5r",yy:"%d \xE5r"}};r.locale(_,null,!0);var n=_;export{n as default};
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v3.1.0-next.0 */
|
|
4
|
+
import{b as r}from"./A77PTXQI.js";import"./AFBGRNF3.js";var _={name:"sv",weekdays:"s\xF6ndag_m\xE5ndag_tisdag_onsdag_torsdag_fredag_l\xF6rdag".split("_"),weekdaysShort:"s\xF6n_m\xE5n_tis_ons_tor_fre_l\xF6r".split("_"),weekdaysMin:"s\xF6_m\xE5_ti_on_to_fr_l\xF6".split("_"),months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(a){var e=a%10,m=e===1||e===2?"a":"e";return"["+a+m+"]"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},relativeTime:{future:"om %s",past:"f\xF6r %s sedan",s:"n\xE5gra sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xE5nad",MM:"%d m\xE5nader",y:"ett \xE5r",yy:"%d \xE5r"}};r.locale(_,null,!0);var n=_;export{n as default};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v3.1.0-next.0 */
|
|
4
|
+
import{a as ot}from"./MRYPQXG2.js";import{b as rt,d as P,e as x}from"./A7WWDVJQ.js";import{a as nt,b as D}from"./6QGNNBZ5.js";import{a as it,b as I,c as l,d as C,g as st,h as c,i as F}from"./CKLM3NH3.js";import{g as L,i as U,k as v}from"./6I7N4DJM.js";import{a as at}from"./UFYDUU52.js";import{a as Q,c as X,e as tt,h as et}from"./YYWIZXXK.js";import{c as J,d as K}from"./BAWLIDLU.js";import{a as q,c as k,d as Y,e as G,f as j,g as y,h as Z}from"./5V63WOMD.js";import"./CVPHYVRS.js";import{a as _}from"./D2PRGKAG.js";import{a as M,b as N}from"./RAA7AM6M.js";import{a as $}from"./WQI63ENU.js";import"./RSMRASRN.js";import"./ERNMRUWX.js";import{b as A}from"./YSGHAVSA.js";import{a as H}from"./MYKRE5QO.js";import{b as d}from"./WACTC6C2.js";import{n as B}from"./FE2QRVI7.js";import{b as W}from"./7VOKVNOX.js";import{a as w}from"./7LGBDOYP.js";import{B as S,G as z,J as R,e as E,f as u,j as m,v as g,w as V,x as o}from"./IPEYLL4T.js";var ct=E`:host{--calcite-icon-size: 1rem;--calcite-spacing-eighth: .125rem;--calcite-spacing-quarter: .25rem;--calcite-spacing-half: .5rem;--calcite-spacing-three-quarters: .75rem;--calcite-spacing: 1rem;--calcite-spacing-plus-quarter: 1.25rem;--calcite-spacing-plus-half: 1.5rem;--calcite-spacing-double: 2rem;--calcite-menu-min-width: 10rem;--calcite-header-min-height: 3rem;--calcite-footer-min-height: 3rem}: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{position:relative;display:inline-block;width:100%;overflow:visible;vertical-align:top;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:host .menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}:host .menu-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}:host .menu-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}:host .menu-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}:host .menu-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}: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)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.calendar-wrapper{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transform:translateZ(0)}.input-wrapper{position:relative}.input-wrapper .chevron-icon{color:var(--calcite-color-text-3)}.input-wrapper:focus-within .chevron-icon,.input-wrapper:active .chevron-icon,.input-wrapper:hover .chevron-icon{color:var(--calcite-color-text-1)}.input-wrapper:focus-within~.input-wrapper .chevron-icon,.input-wrapper:active~.input-wrapper .chevron-icon,.input-wrapper:hover~.input-wrapper .chevron-icon{color:var(--calcite-color-text-1)}.toggle-icon{position:absolute;display:flex;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing)}:host([range]) .container{display:flex}:host([range]) .input-container{display:flex;flex:1 1 auto}:host([range]) .input-wrapper{flex:1 1 auto}.divider-container{display:flex;align-items:stretch;border-width:1px;border-left-width:0px;border-right-width:0px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1)}:host([layout=horizontal]) .divider-container{width:1px}.divider{display:inline-block;width:1px;margin-block:var(--calcite-spacing-xxs);background-color:var(--calcite-color-border-2)}:host([layout=vertical]) .divider-container{height:1px;width:100%;border-top-width:0px;border-bottom-width:0px;border-left-width:1px;border-right-width:0px;padding-inline:var(--calcite-spacing-md)}:host([layout=vertical]) .divider-container .divider{margin-top:0;margin-bottom:0;height:1px;width:100%}:host([range][layout=vertical]) .input-wrapper{width:100%}:host([range][layout=vertical]) .input-container{flex-direction:column;align-items:flex-start}.menu-container{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown);inline-size:max-content;display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.menu-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.menu-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.menu-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.menu-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}.input .calcite-input__wrapper{margin-top:0}.vertical-chevron-container{display:flex;align-items:center;border-width:1px;border-left-width:0px;border-style:solid;border-color:var(--calcite-color-border-input);padding-inline:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}.vertical-chevron-container calcite-icon{color:var(--calcite-color-text-3)}.vertical-chevron-container calcite-icon:hover{color:var(--calcite-color-text-1)}:host([range][layout=vertical][scale=s]) .vertical-chevron-container,:host([range][layout=vertical][scale=s]) .divider-container{padding-inline:var(--calcite-spacing-sm)}:host([range][layout=vertical][scale=l]) .vertical-chevron-container,:host([range][layout=vertical][scale=l]) .divider-container{padding-inline:var(--calcite-spacing-lg)}.container:focus-within .vertical-chevron-container calcite-icon,.container:active .vertical-chevron-container calcite-icon,.container:hover .vertical-chevron-container 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}::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}.assistive-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}`,n={assistiveText:"assistive-text",calendarWrapper:"calendar-wrapper",container:"container",dividerContainer:"divider-container",divider:"divider",inputContainer:"input-container",inputNoBottomBorder:"input--no-bottom-border",inputNoRightBorder:"input--no-right-border",inputNoTopBorder:"input--no-top-border",inputNoLeftBorder:"input--no-left-border",inputWrapper:"input-wrapper",input:"input",menu:"menu-container",toggleIcon:"toggle-icon",verticalChevronContainer:"vertical-chevron-container",chevronIcon:"chevron-icon"},lt={validationMessage:"inputDatePickerValidationMessage"};function ht(f){if(!f)return!1;let{year:t}=F(f);return Number(t)<100}function dt(f){let t=new Date().getFullYear();return Math.floor(t/100)*100+f}var O=class extends V{constructor(){super(),this.commonDateSeparators=[".","-","/"],this.dialogId=`date-picker-dialog--${w()}`,this.focusOnOpen=!1,this.focusTrapDeactivates=()=>{this.open=!1},this.transitionProp="opacity",this.placeholderTextId=`calcite-input-date-picker-placeholder-${w()}`,this.rangeStartValueChangedByUser=!1,this.userChangedValue=!1,this._value="",this.valueAsDateChangedExternally=!1,this.focusedInput="start",this.disabled=!1,this.focusTrapDisabled=!1,this.layout="horizontal",this.messages=H({blocking:!0}),this.monthStyle="wide",this.open=!1,this.overlayPositioning="absolute",this.placement=q,this.proximitySelectionDisabled=!1,this.range=!1,this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputDatePickerBeforeClose=g({cancelable:!1}),this.calciteInputDatePickerBeforeOpen=g({cancelable:!1}),this.calciteInputDatePickerChange=g({cancelable:!1}),this.calciteInputDatePickerClose=g({cancelable:!1}),this.calciteInputDatePickerOpen=g({cancelable:!1}),this.listen("blur",this.blurHandler),this.listen("keydown",this.keyDownHandler),this.handleDateTimeFormatChange()}static{this.properties={datePickerActiveDate:16,focusedInput:16,localeData:16,disabled:7,flipPlacements:0,focusTrapDisabled:7,form:3,headingLevel:11,layout:3,max:3,maxAsDate:0,messageOverrides:0,min:3,minAsDate:0,monthStyle:1,name:3,numberingSystem:3,open:7,overlayPositioning:3,placement:3,proximitySelectionDisabled:5,range:7,readOnly:7,required:7,scale:3,status:3,validationIcon:[3,{converter:S}],validationMessage:1,validity:0,value:1,valueAsDate:0}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=ct}get value(){return this._value}set value(t){let e=this._value;t!==e&&(this._value=t,this.valueWatcher(t))}async reposition(t=!1){let{floatingEl:e,referenceEl:a,placement:i,overlayPositioning:s,filteredFlipPlacements:r}=this;return G(this,{floatingEl:e,referenceEl:a,overlayPositioning:s,placement:i,flipPlacements:r,type:"menu"},t)}async setFocus(){await W(this),B(this.el)}connectedCallback(){super.connectedCallback();let{open:t}=this;if(t&&this.openHandler(),this.min&&(this.minAsDate=l(this.min)),this.max&&(this.maxAsDate=l(this.max)),Array.isArray(this.value))this.valueAsDate=D(this.value);else if(this.value)try{let e=l(this.value),a=I(e,this.minAsDate,this.maxAsDate);this.valueAsDate=a}catch{this.warnAboutInvalidValue(this.value),this.value=""}else this.valueAsDate&&(this.range&&Array.isArray(this.valueAsDate)?this.value=[c(this.valueAsDate[0]),c(this.valueAsDate[1])]:!this.range&&!Array.isArray(this.valueAsDate)&&(this.value=c(this.valueAsDate)));J(this),X(this),this.setFilteredPlacements(),v.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.messages._lang,useGrouping:!1},y(this)}async load(){this.handleDateTimeFormatChange(),await this.loadLocaleData(),this.onMinChanged(this.min),this.onMaxChanged(this.max)}willUpdate(t){t.has("focusTrapDisabled")&&(this.hasUpdated||this.focusTrapDisabled!==!1)&&this.handleFocusTrapDisabled(this.focusTrapDisabled),t.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.handleDisabledAndReadOnlyChange(this.disabled),t.has("readOnly")&&(this.hasUpdated||this.readOnly!==!1)&&this.handleDisabledAndReadOnlyChange(this.readOnly),t.has("valueAsDate")&&this.valueAsDateWatcher(this.valueAsDate),t.has("flipPlacements")&&this.flipPlacementsHandler(),t.has("min")&&this.onMinChanged(this.min),t.has("max")&&this.onMaxChanged(this.max),t.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),t.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")&&this.reposition(!0),(t.has("numberingSystem")||t.has("messages"))&&this.handleDateTimeFormatChange(),t.has("layout")&&(this.hasUpdated||this.layout!=="horizontal")&&this.setReferenceEl(),t.has("messages")&&this.loadLocaleData()}updated(){M(this)}loaded(){this.localizeInputValues(),y(this)}disconnectedCallback(){super.disconnectedCallback(),x(this),K(this),tt(this),Z(this)}handleFocusTrapDisabled(t){this.open&&(t?x(this):P(this))}handleDisabledAndReadOnlyChange(t){t||(this.open=!1)}valueWatcher(t){if(!this.userChangedValue){let e;Array.isArray(t)?e=D(t):t?e=l(t):e=void 0,!this.valueAsDateChangedExternally&&e!==this.valueAsDate&&(this.valueAsDate=e),this.localizeInputValues()}this.userChangedValue=!1}valueAsDateWatcher(t){let e=Array.isArray(t)?[c(t[0]),c(t[1])]:c(t);this.datePickerActiveDate=Array.isArray(t)?t[0]:t,this.value!==e&&(this.valueAsDateChangedExternally=!0,this.value=e,this.valueAsDateChangedExternally=!1)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMinChanged(t){this.minAsDate=l(t)}onMaxChanged(t){this.maxAsDate=l(t)}openHandler(){_(this),!(this.disabled||this.readOnly)&&this.reposition(!0)}calciteInternalInputInputHandler(t){let e=t.target,a=e.value,i=this.parseNumerals(a),s=this.formatNumerals(i);e.value=s;let{year:r}=st(a,this.localeData);if(r&&r.length<4)return;let h=C(a,this.localeData);it(h,this.min,this.max)&&(this.datePickerActiveDate=h)}calciteInternalInputBlurHandler(){this.commitValue()}handleDateTimeFormatChange(){let t={numberingSystem:L(this.numberingSystem)};this.dateTimeFormat=new Intl.DateTimeFormat(U(this.messages._lang),t)}setReferenceEl(){let{focusedInput:t,layout:e,endWrapper:a,startWrapper:i}=this;this.referenceEl=t==="end"||e==="vertical"?a||i:i||a,requestAnimationFrame(()=>y(this))}onInputWrapperPointerDown(){this.currentOpenInput=this.focusedInput}onInputWrapperClick(t){let{range:e,endInput:a,startInput:i,currentOpenInput:s}=this,r=t.currentTarget.getAttribute("data-position");t.composedPath().find(h=>h.classList?.contains(n.toggleIcon))&&(r==="start"?i:a).setFocus(),(!e||!this.open||s===r)&&(this.open=!this.open)}setFilteredPlacements(){let{el:t,flipPlacements:e}=this;this.filteredFlipPlacements=e?Y(e,t):null}setTransitionEl(t){this.transitionEl=t}onLabelClick(){this.setFocus()}onBeforeOpen(){this.calciteInputDatePickerBeforeOpen.emit()}onOpen(){P(this,{onActivate:()=>{this.focusOnOpen&&(this.datePickerEl?.setFocus(),this.focusOnOpen=!1)}}),this.calciteInputDatePickerOpen.emit()}onBeforeClose(){this.calciteInputDatePickerBeforeClose.emit()}onClose(){this.calciteInputDatePickerClose.emit(),j(this),x(this),this.focusOnOpen=!1,this.datePickerEl?.reset()}syncHiddenFormInput(t){ot("date",this,t)}setStartInput(t){this.startInput=t}setEndInput(t){this.endInput=t}blurHandler(){this.open=!1}commitValue(){let{focusedInput:t,value:e}=this,a=`${t}Input`,i=this[a].value,s=C(i,this.localeData),r=c(s),h=Array.isArray(e);if(this.range){let p=t==="start"?0:1;if(h){if(r===e[p])return;s?(this.setRangeValue([t==="start"?s:l(e[0]),t==="end"?s:l(e[1])]),this.localizeInputValues()):this.setRangeValue([t==="end"&&l(e[0]),t==="start"&&l(e[1])])}else s&&(this.setRangeValue([t==="start"?s:l(e[0]),t==="end"?s:l(e[1])]),this.localizeInputValues())}else{if(r===e)return;this.setValue(s),this.localizeInputValues()}}keyDownHandler(t){let{defaultPrevented:e,key:a}=t;if(e)return;let i=t.composedPath().some(s=>s.tagName==="CALCITE-SELECT");a==="Enter"?(t.preventDefault(),this.commitValue(),this.shouldFocusRangeEnd()?this.endInput?.setFocus():this.shouldFocusRangeStart()&&this.startInput?.setFocus(),Q(this)&&this.restoreInputFocus(!0)):(a==="ArrowDown"||a==="ArrowUp")&&!i?(this.open=!0,this.focusOnOpen=!0,t.preventDefault()):this.open&&a==="Escape"&&(this.open=!1,t.preventDefault(),this.restoreInputFocus(!0))}startInputFocus(){this.focusedInput="start"}endInputFocus(){this.focusedInput="end"}setFloatingEl(t){this.floatingEl=t,y(this)}setStartWrapper(t){this.startWrapper=t,this.setReferenceEl()}setEndWrapper(t){this.endWrapper=t,this.setReferenceEl()}setDatePickerRef(t){this.datePickerEl=t,rt(this,{focusTrapEl:t,focusTrapOptions:{allowOutsideClick:!0,clickOutsideDeactivates:!1,initialFocus:!1,setReturnFocus:!1,onDeactivate:this.focusTrapDeactivates}})}async loadLocaleData(){z()&&(v.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.messages._lang,useGrouping:!1},this.localeData=await nt(this.messages._lang),this.localizeInputValues())}handleDateChange(t){this.range||(t.stopPropagation(),this.setValue(t.target.valueAsDate),this.localizeInputValues(),this.restoreInputFocus())}shouldFocusRangeStart(){let t=this.value[0];return!!(this.value[1]&&!t&&this.focusedInput==="end"&&this.startInput)}shouldFocusRangeEnd(){let t=this.value[0],e=this.value[1];return!!(t&&!e&&this.focusedInput==="start"&&this.endInput)}handleDateRangeChange(t){if(!this.range)return;t.stopPropagation();let e=t.target.valueAsDate;this.setRangeValue(e),this.localizeInputValues(),this.restoreInputFocus()}restoreInputFocus(t=!1){if(!this.range){this.startInput.setFocus(),this.open=!1;return}if(t){this.focusInput();return}this.rangeStartValueChangedByUser=this.focusedInput==="start",this.focusedInput="end",!(this.shouldFocusRangeStart()||this.rangeStartValueChangedByUser)&&(this.open=!1,this.focusInput())}localizeInputValues(){let t=I(this.range?Array.isArray(this.valueAsDate)&&this.valueAsDate[0]||void 0:this.valueAsDate,this.minAsDate,this.maxAsDate),e=this.range?I(Array.isArray(this.valueAsDate)&&this.valueAsDate[1]||void 0,this.minAsDate,this.maxAsDate):null;this.setInputValue((t&&this.dateTimeFormat.format(t))??"","start"),this.setInputValue((this.range&&e&&this.dateTimeFormat.format(e))??"","end")}setInputValue(t,e="start"){let a=this[`${e}Input`];a&&(a.value=t)}setRangeValue(t){if(!this.range)return;let{value:e}=this,a=Array.isArray(e),i=Array.isArray(t),s=i?t[0]:null,r=i?c(s):"";r&&(r=this.getNormalizedDate(r));let h=i?t[1]:null,p=i?c(h):"";p&&(p=this.getNormalizedDate(p));let b=r||p?[r,p]:"";if(b===e)return;this.userChangedValue=!0,this.value=b,this.valueAsDate=b?D(b):void 0;let T=this.calciteInputDatePickerChange.emit();T&&T.defaultPrevented&&(this.value=e,a?(this.setInputValue(e[0],"start"),this.setInputValue(e[1],"end")):(this.value=e,this.setInputValue(e)))}setValue(t){if(this.range)return;let e=this.value,a=c(t);a=this.getNormalizedDate(a),a!==e&&(this.userChangedValue=!0,this.valueAsDate=a?l(a):void 0,this.value=a||"",this.calciteInputDatePickerChange.emit().defaultPrevented&&(this.value=e,this.setInputValue(e)))}warnAboutInvalidValue(t){console.warn(`The specified value "${t}" does not conform to the required format, "YYYY-MM-DD".`)}formatNumerals(t){return t?t.split("").map(e=>this.commonDateSeparators?.includes(e)?this.localeData?.separator:A?.includes(e)?v?.numberFormatter?.format(Number(e)):e).join(""):""}parseNumerals(t){return t?t.split("").map(e=>A.includes(e)?v.delocalize(e):e).join(""):""}getNormalizedDate(t){if(!t)return"";if(!ht(t))return t;let{day:e,month:a,year:i}=F(t);return`${dt(Number(i))}-${a}-${e}`}focusInput(){(this.focusedInput==="start"?this.startInput:this.endInput).setFocus()}render(){let{disabled:t,messages:{_lang:e},messages:a,numberingSystem:i,readOnly:s}=this;return v.numberFormatOptions={numberingSystem:i,locale:e,useGrouping:!1},N({disabled:this.disabled,children:u`${this.localeData&&u`<div class=${o(n.container)}><div class=${o(n.inputContainer)}><div class=${o(n.inputWrapper)} data-position=start @click=${this.onInputWrapperClick} @pointerdown=${this.onInputWrapperPointerDown} ${d(this.setStartWrapper)}><calcite-input-text aria-controls=${this.dialogId??m} aria-describedby=${this.placeholderTextId??m} aria-errormessage=${lt.validationMessage} aria-autocomplete=none .ariaExpanded=${this.open} aria-haspopup=dialog .ariaInvalid=${this.status==="invalid"} class=${o({[n.input]:!0,[n.inputNoBottomBorder]:this.layout==="vertical"&&this.range,[n.inputNoRightBorder]:this.range})} .disabled=${t} icon=calendar @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextBlur=${this.calciteInternalInputBlurHandler} @calciteInternalInputTextFocus=${this.startInputFocus} .placeholder=${this.localeData?.placeholder} .readOnly=${s} role=combobox .scale=${this.scale} .status=${this.status} ${d(this.setStartInput)}></calcite-input-text>${!this.readOnly&&!this.range&&this.renderToggleIcon(this.open&&this.focusedInput==="start")||""}<span aria-hidden=true class=${o(n.assistiveText)} id=${this.placeholderTextId??m}>${a.dateFormat.replace("{format}",this.localeData?.placeholder)}</span></div><div .ariaHidden=${!this.open} .ariaLabel=${a.chooseDate} aria-live=polite aria-modal=true class=${o(n.menu)} id=${this.dialogId??m} role=dialog ${d(this.setFloatingEl)}><div class=${o({[n.calendarWrapper]:!0,[k.animation]:!0,[k.animationActive]:this.open})} ${d(this.setTransitionEl)}><calcite-date-picker .activeDate=${this.datePickerActiveDate} .activeRange=${this.focusedInput} .headingLevel=${this.headingLevel} .layout=${this.layout} .max=${this.max} .maxAsDate=${this.maxAsDate} .messageOverrides=${this.messageOverrides} .min=${this.min} .minAsDate=${this.minAsDate} .monthStyle=${this.monthStyle} .numberingSystem=${i} @calciteDatePickerChange=${this.handleDateChange} @calciteDatePickerRangeChange=${this.handleDateRangeChange} .proximitySelectionDisabled=${this.proximitySelectionDisabled} .range=${this.range} .scale=${this.scale} tabindex=${(this.open?void 0:-1)??m} .valueAsDate=${this.valueAsDate} ${d(this.setDatePickerRef)}></calcite-date-picker></div></div>${this.range&&u`<div class=${o(n.dividerContainer)}><div class=${o(n.divider)}></div></div>`||""}${this.range&&u`<div class=${o(n.inputWrapper)} data-position=end @click=${this.onInputWrapperClick} @pointerdown=${this.onInputWrapperPointerDown} ${d(this.setEndWrapper)}><calcite-input-text aria-controls=${this.dialogId??m} aria-autocomplete=none .ariaExpanded=${this.open} aria-haspopup=dialog class=${o({[n.input]:!0,[n.inputNoTopBorder]:this.layout==="vertical"&&this.range,[n.inputNoLeftBorder]:this.layout==="horizontal"&&this.range,[n.inputNoRightBorder]:this.layout==="vertical"&&this.range})} .disabled=${t} icon=calendar @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextBlur=${this.calciteInternalInputBlurHandler} @calciteInternalInputTextFocus=${this.endInputFocus} .placeholder=${this.localeData?.placeholder} .readOnly=${s} role=combobox .scale=${this.scale} .status=${this.status} ${d(this.setEndInput)}></calcite-input-text>${!this.readOnly&&this.layout==="horizontal"&&this.renderToggleIcon(this.open)||""}</div>`||""}</div>${this.range&&this.layout==="vertical"&&u`<div class=${o(n.verticalChevronContainer)}><calcite-icon .icon=${this.open?"chevron-up":"chevron-down"} .scale=${$(this.scale)}></calcite-icon></div>`||""}</div>`||""}${et({component:this})}${this.validationMessage&&this.status==="invalid"?at({icon:this.validationIcon,id:lt.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}renderToggleIcon(t){return u`<span class=${o(n.toggleIcon)} tabindex=-1><calcite-icon class=${o(n.chevronIcon)} .icon=${t?"chevron-up":"chevron-down"} .scale=${$(this.scale)}></calcite-icon></span>`}};R("calcite-input-date-picker",O);export{O as InputDatePicker};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
import{b as m}from"./6LWRLBVD.js";import"./J7RY7DXT.js";var a="\u044F\u043D\u0432\u0430\u0440\u044F_\u0444\u0435\u0432\u0440\u0430\u043B\u044F_\u043C\u0430\u0440\u0442\u0430_\u0430\u043F\u0440\u0435\u043B\u044F_\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F_\u043E\u043A\u0442\u044F\u0431\u0440\u044F_\u043D\u043E\u044F\u0431\u0440\u044F_\u0434\u0435\u043A\u0430\u0431\u0440\u044F".split("_"),i="\u044F\u043D\u0432\u0430\u0440\u044C_\u0444\u0435\u0432\u0440\u0430\u043B\u044C_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0435\u043B\u044C_\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C_\u043E\u043A\u0442\u044F\u0431\u0440\u044C_\u043D\u043E\u044F\u0431\u0440\u044C_\u0434\u0435\u043A\u0430\u0431\u0440\u044C".split("_"),s="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440._\u0430\u043F\u0440._\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),l="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440\u0442_\u0430\u043F\u0440._\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),M=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function f(r,_){var t=r.split("_");return _%10===1&&_%100!==11?t[0]:_%10>=2&&_%10<=4&&(_%100<10||_%100>=20)?t[1]:t[2]}function e(r,_,t){var d={mm:_?"\u043C\u0438\u043D\u0443\u0442\u0430_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442":"\u043C\u0438\u043D\u0443\u0442\u0443_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043E\u0432",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u044F_\u0434\u043D\u0435\u0439",MM:"\u043C\u0435\u0441\u044F\u0446_\u043C\u0435\u0441\u044F\u0446\u0430_\u043C\u0435\u0441\u044F\u0446\u0435\u0432",yy:"\u0433\u043E\u0434_\u0433\u043E\u0434\u0430_\u043B\u0435\u0442"};return t==="m"?_?"\u043C\u0438\u043D\u0443\u0442\u0430":"\u043C\u0438\u043D\u0443\u0442\u0443":r+" "+f(d[t],+r)}var o=function(_,t){return M.test(t)?a[_.month()]:i[_.month()]};o.s=i;o.f=a;var n=function(_,t){return M.test(t)?s[_.month()]:l[_.month()]};n.s=l;n.f=s;var h={name:"ru",weekdays:"\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043E\u0442\u0430".split("_"),weekdaysShort:"\u0432\u0441\u043A_\u043F\u043D\u0434_\u0432\u0442\u0440_\u0441\u0440\u0434_\u0447\u0442\u0432_\u043F\u0442\u043D_\u0441\u0431\u0442".split("_"),weekdaysMin:"\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),months:o,monthsShort:n,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043D\u0430\u0437\u0430\u0434",s:"\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434",m:e,mm:e,h:"\u0447\u0430\u0441",hh:e,d:"\u0434\u0435\u043D\u044C",dd:e,M:"\u043C\u0435\u0441\u044F\u0446",MM:e,y:"\u0433\u043E\u0434",yy:e},ordinal:function(_){return _},meridiem:function(_){return _<4?"\u043D\u043E\u0447\u0438":_<12?"\u0443\u0442\u0440\u0430":_<17?"\u0434\u043D\u044F":"\u0432\u0435\u0447\u0435\u0440\u0430"}};m.locale(h,null,!0);var Y=h;export{Y as default};
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v3.1.0-next.0 */
|
|
4
|
+
import{b as m}from"./A77PTXQI.js";import"./AFBGRNF3.js";var a="\u044F\u043D\u0432\u0430\u0440\u044F_\u0444\u0435\u0432\u0440\u0430\u043B\u044F_\u043C\u0430\u0440\u0442\u0430_\u0430\u043F\u0440\u0435\u043B\u044F_\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F_\u043E\u043A\u0442\u044F\u0431\u0440\u044F_\u043D\u043E\u044F\u0431\u0440\u044F_\u0434\u0435\u043A\u0430\u0431\u0440\u044F".split("_"),i="\u044F\u043D\u0432\u0430\u0440\u044C_\u0444\u0435\u0432\u0440\u0430\u043B\u044C_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0435\u043B\u044C_\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C_\u043E\u043A\u0442\u044F\u0431\u0440\u044C_\u043D\u043E\u044F\u0431\u0440\u044C_\u0434\u0435\u043A\u0430\u0431\u0440\u044C".split("_"),s="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440._\u0430\u043F\u0440._\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),l="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440\u0442_\u0430\u043F\u0440._\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),M=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function f(r,_){var t=r.split("_");return _%10===1&&_%100!==11?t[0]:_%10>=2&&_%10<=4&&(_%100<10||_%100>=20)?t[1]:t[2]}function e(r,_,t){var d={mm:_?"\u043C\u0438\u043D\u0443\u0442\u0430_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442":"\u043C\u0438\u043D\u0443\u0442\u0443_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043E\u0432",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u044F_\u0434\u043D\u0435\u0439",MM:"\u043C\u0435\u0441\u044F\u0446_\u043C\u0435\u0441\u044F\u0446\u0430_\u043C\u0435\u0441\u044F\u0446\u0435\u0432",yy:"\u0433\u043E\u0434_\u0433\u043E\u0434\u0430_\u043B\u0435\u0442"};return t==="m"?_?"\u043C\u0438\u043D\u0443\u0442\u0430":"\u043C\u0438\u043D\u0443\u0442\u0443":r+" "+f(d[t],+r)}var o=function(_,t){return M.test(t)?a[_.month()]:i[_.month()]};o.s=i;o.f=a;var n=function(_,t){return M.test(t)?s[_.month()]:l[_.month()]};n.s=l;n.f=s;var h={name:"ru",weekdays:"\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043E\u0442\u0430".split("_"),weekdaysShort:"\u0432\u0441\u043A_\u043F\u043D\u0434_\u0432\u0442\u0440_\u0441\u0440\u0434_\u0447\u0442\u0432_\u043F\u0442\u043D_\u0441\u0431\u0442".split("_"),weekdaysMin:"\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),months:o,monthsShort:n,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043D\u0430\u0437\u0430\u0434",s:"\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434",m:e,mm:e,h:"\u0447\u0430\u0441",hh:e,d:"\u0434\u0435\u043D\u044C",dd:e,M:"\u043C\u0435\u0441\u044F\u0446",MM:e,y:"\u0433\u043E\u0434",yy:e},ordinal:function(_){return _},meridiem:function(_){return _<4?"\u043D\u043E\u0447\u0438":_<12?"\u0443\u0442\u0440\u0430":_<17?"\u0434\u043D\u044F":"\u0432\u0435\u0447\u0435\u0440\u0430"}};m.locale(h,null,!0);var Y=h;export{Y as default};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v3.1.0-next.0 */
|
|
4
|
+
import{a as S,b as O,d as T}from"./YYWIZXXK.js";import{c as $,d as C,e as E}from"./BAWLIDLU.js";import{b as l,c as R}from"./OLXJRGIR.js";import{a as w,b as y}from"./RAA7AM6M.js";import{a as i}from"./WQI63ENU.js";import"./RSMRASRN.js";import{a as r}from"./R3FLP5QS.js";import{a as z}from"./MYKRE5QO.js";import{a as f,b as c}from"./WACTC6C2.js";import{t as m}from"./FE2QRVI7.js";import{b as x}from"./7VOKVNOX.js";import"./7LGBDOYP.js";import{B as v,G as g,J as k,c as b,e as p,f as o,w as h,x as a,z as e}from"./IPEYLL4T.js";var n={buttonLoader:"calcite-button--loader",content:"content",contentSlotted:"content--slotted",icon:"icon",iconStart:"icon--start",iconEnd:"icon--end",loadingIn:"loading-in",loadingOut:"loading-out",iconStartEmpty:"icon-start-empty",iconEndEmpty:"icon-end-empty",buttonPadding:"button-padding",buttonPaddingShrunk:"button-padding--shrunk"},P=p`: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;inline-size:auto;vertical-align:middle;border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, 0))}:host a,:host button{--calcite-internal-button-content-margin: .5rem;--calcite-internal-button-padding-x: 7px;--calcite-internal-button-padding-y-internal: 3px;position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;align-items:center;justify-content:center;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;outline-color:transparent;background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color, var(--calcite-color-transparent)));border-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent)));border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, 0));color:var(--calcite-button-text-color, var(--calcite-internal-button-text-color, currentColor));padding-block:var(--calcite-internal-button-padding-y-internal);padding-inline:var(--calcite-internal-button-padding-x);transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}:host a:hover,:host button:hover{text-decoration-line:none}:host a:focus,:host button: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))))}:host a span,:host button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host a calcite-loader,:host button calcite-loader{color:var(--calcite-button-loader-color, var(--calcite-internal-button-loader-color, currentColor))}:host([round]){--calcite-internal-button-corner-radius: 50px}.content{margin-inline:var(--calcite-internal-button-content-margin)}.icon-start-empty .content{margin-inline-start:unset}.icon-end-empty .content{margin-inline-end:unset}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-content-margin: .75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-internal-button-content-margin: 1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-inline-end:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-inline-start:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:var(--calcite-internal-button-content-margin)}.icon{position:relative;margin:0;display:inline-flex;font-weight:var(--calcite-font-weight-normal);line-height:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(.5)}to{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}to{inline-size:0;opacity:0;transform:scale(.5)}}.calcite-button--loader{display:flex}.calcite-button--loader calcite-loader{margin:0}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{margin-inline-end:var(--calcite-internal-button-content-margin)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance]) button,:host([appearance]) a{--calcite-internal-button-border-color: var(--calcite-color-transparent);border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([kind=brand]) button,:host([kind=brand]) a{--calcite-internal-button-text-color: var(--calcite-color-text-inverse);--calcite-internal-button-background-color: var(--calcite-color-brand)}:host([kind=brand]) button:hover,:host([kind=brand]) button:focus,:host([kind=brand]) a:hover,:host([kind=brand]) a:focus{--calcite-internal-button-background-color: var(--calcite-color-brand-hover)}:host([kind=brand]) button:active,:host([kind=brand]) a:active{--calcite-internal-button-background-color: var(--calcite-color-brand-press)}:host([kind=danger]) button,:host([kind=danger]) a{--calcite-internal-button-text-color: var(--calcite-color-text-inverse);--calcite-internal-button-background-color: var(--calcite-color-status-danger)}:host([kind=danger]) button:hover,:host([kind=danger]) button:focus,:host([kind=danger]) a:hover,:host([kind=danger]) a:focus{--calcite-internal-button-background-color: var(--calcite-color-status-danger-hover)}:host([kind=danger]) button:active,:host([kind=danger]) a:active{--calcite-internal-button-background-color: var(--calcite-color-status-danger-press)}:host([kind=neutral]) button,:host([kind=neutral]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-background-color: var(--calcite-color-foreground-3)}:host([kind=neutral]) button:hover,:host([kind=neutral]) button:focus,:host([kind=neutral]) a:hover,:host([kind=neutral]) a:focus{--calcite-internal-button-background-color: var(--calcite-color-foreground-2)}:host([kind=neutral]) button:active,:host([kind=neutral]) a:active{--calcite-internal-button-background-color: var(--calcite-color-foreground-1)}:host([kind=inverse]) button,:host([kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-inverse);--calcite-internal-button-background-color: var(--calcite-color-inverse)}:host([kind=inverse]) button:hover,:host([kind=inverse]) button:focus,:host([kind=inverse]) a:hover,:host([kind=inverse]) a:focus{--calcite-internal-button-background-color: var(--calcite-color-inverse-hover)}:host([kind=inverse]) button:active,:host([kind=inverse]) a:active{--calcite-internal-button-background-color: var(--calcite-color-inverse-press)}:host([appearance=outline-fill]) a,:host([appearance=outline-fill]) button,:host([appearance=outline]) a,:host([appearance=outline]) button{box-shadow:inset 0 0 0 1px var(--calcite-button-shadow-color, var(--calcite-internal-button-shadow-color, transparent))}:host([appearance=outline-fill]) a:hover,:host([appearance=outline-fill]) button:hover,:host([appearance=outline]) a:hover,:host([appearance=outline]) button:hover{box-shadow:inset 0 0 0 1px var(--calcite-button-shadow-color, var(--calcite-internal-button-shadow-color, var(--calcite-color-foreground-3)))}:host([appearance=outline-fill]) a:focus,:host([appearance=outline-fill]) a:active,:host([appearance=outline-fill]) button:focus,:host([appearance=outline-fill]) button:active,:host([appearance=outline]) a:focus,:host([appearance=outline]) a:active,:host([appearance=outline]) button:focus,:host([appearance=outline]) button:active{box-shadow:inset 0 0 0 2px var(--calcite-button-shadow-color, var(--calcite-internal-button-shadow-color, var(--calcite-color-foreground-3)))}:host([appearance=outline-fill]) button,:host([appearance=outline-fill]) a{--calcite-internal-button-background-color: var(--calcite-color-foreground-1);border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline-fill][kind=brand]) button,:host([appearance=outline-fill][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-background-color: var(--calcite-color-foreground-1)}:host([appearance=outline-fill][kind=brand]) button:hover,:host([appearance=outline-fill][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover);--calcite-internal-button-shadow-color: var(--calcite-color-brand-hover)}:host([appearance=outline-fill][kind=brand]) button:focus,:host([appearance=outline-fill][kind=brand]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-shadow-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:active,:host([appearance=outline-fill][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press);--calcite-internal-button-shadow-color: var(--calcite-color-brand-press)}:host([appearance=outline-fill][kind=brand]) button calcite-loader,:host([appearance=outline-fill][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=danger]) button,:host([appearance=outline-fill][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-background-color: var(--calcite-color-foreground-1);--calcite-internal-button-text-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:hover,:host([appearance=outline-fill][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline-fill][kind=danger]) button:focus,:host([appearance=outline-fill][kind=danger]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:active,:host([appearance=outline-fill][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger-press)}:host([appearance=outline-fill][kind=danger]) button calcite-loader,:host([appearance=outline-fill][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=neutral]) button,:host([appearance=outline-fill][kind=neutral]) a{--calcite-internal-button-border-color: var(--calcite-color-border-1);--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-background-color: var(--calcite-color-foreground-1)}:host([appearance=outline-fill][kind=neutral]) button:hover,:host([appearance=outline-fill][kind=neutral]) a:hover{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:focus,:host([appearance=outline-fill][kind=neutral]) a:focus{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:active,:host([appearance=outline-fill][kind=neutral]) a:active{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=inverse]) button,:host([appearance=outline-fill][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-background-color: var(--calcite-color-foreground-1);--calcite-internal-button-border-color: var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:hover,:host([appearance=outline-fill][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover);--calcite-internal-button-shadow-color: var(--calcite-color-inverse-hover)}:host([appearance=outline-fill][kind=inverse]) button:focus,:host([appearance=outline-fill][kind=inverse]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-shadow-color: var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:active,:host([appearance=outline-fill][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press);--calcite-internal-button-shadow-color: var(--calcite-color-inverse-press)}:host([appearance=outline]) button,:host([appearance=outline]) a{--calcite-internal-button-background-color: var(--calcite-color-transparent);border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline][kind=brand]) button,:host([appearance=outline][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-background-color: var(--calcite-color-transparent)}:host([appearance=outline][kind=brand]) button:hover,:host([appearance=outline][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover);--calcite-internal-button-shadow-color: var(--calcite-color-brand-hover)}:host([appearance=outline][kind=brand]) button:focus,:host([appearance=outline][kind=brand]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-shadow-color: var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:active,:host([appearance=outline][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press);--calcite-internal-button-shadow-color: var(--calcite-color-brand-press)}:host([appearance=outline][kind=brand]) button calcite-loader,:host([appearance=outline][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline][kind=danger]) button,:host([appearance=outline][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-background-color: var(--calcite-color-transparent)}:host([appearance=outline][kind=danger]) button:hover,:host([appearance=outline][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline][kind=danger]) button:focus,:host([appearance=outline][kind=danger]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:active,:host([appearance=outline][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger-press)}:host([appearance=outline][kind=danger]) button calcite-loader,:host([appearance=outline][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=neutral]) button,:host([appearance=outline][kind=neutral]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-background-color: var(--calcite-color-transparent);--calcite-internal-button-border-color: var(--calcite-color-border-1)}:host([appearance=outline][kind=neutral]) button:hover,:host([appearance=outline][kind=neutral]) a:hover{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:focus,:host([appearance=outline][kind=neutral]) a:focus{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:active,:host([appearance=outline][kind=neutral]) a:active{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3)}:host([appearance=outline][kind=inverse]) button,:host([appearance=outline][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-background-color: var(--calcite-color-transparent);--calcite-internal-button-border-color: var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:hover,:host([appearance=outline][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover);--calcite-internal-button-shadow-color: var(--calcite-color-inverse-hover)}:host([appearance=outline][kind=inverse]) button:focus,:host([appearance=outline][kind=inverse]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-shadow-color: var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:active,:host([appearance=outline][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press);--calcite-internal-button-shadow-color: var(--calcite-color-inverse-press)}:host([appearance=outline-fill][split-child=primary]) button,:host([appearance=outline][split-child=primary]) button{border-inline-end-width:0;border-inline-start-width:1px}:host([appearance=outline-fill][split-child=secondary]) button,:host([appearance=outline][split-child=secondary]) button{border-inline-start-width:0;border-inline-end-width:1px}:host([appearance=transparent]:not(.enable-editing-button)) button,:host([appearance=transparent]:not(.enable-editing-button)) a{background-color:var(--calcite-color-transparent)}:host([appearance=transparent]:not(.enable-editing-button)) button:hover,:host([appearance=transparent]:not(.enable-editing-button)) button:focus,:host([appearance=transparent]:not(.enable-editing-button)) a:hover,:host([appearance=transparent]:not(.enable-editing-button)) a:focus{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]:not(.enable-editing-button)) button:active,:host([appearance=transparent]:not(.enable-editing-button)) a:active{background-color:var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=brand]) button,:host([appearance=transparent][kind=brand]) a{--calcite-internal-button-text-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:hover,:host([appearance=transparent][kind=brand]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=transparent][kind=brand]) button:focus,:host([appearance=transparent][kind=brand]) a:focus{--calcite-internal-button-text-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:active,:host([appearance=transparent][kind=brand]) a:active{--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=transparent][kind=brand]) button calcite-loader,:host([appearance=transparent][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=danger]) button,:host([appearance=transparent][kind=danger]) a{--calcite-internal-button-text-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:hover,:host([appearance=transparent][kind=danger]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=transparent][kind=danger]) button:focus,:host([appearance=transparent][kind=danger]) a:focus{--calcite-internal-button-text-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:active,:host([appearance=transparent][kind=danger]) a:active{--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=transparent][kind=danger]) button calcite-loader,:host([appearance=transparent][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button{--calcite-internal-button-text-color: var(--calcite-color-text-3);border-block-start-width:1px;border-block-end-width:1px;color:var(--calcite-color-text-3);border-block-start-color:var(--calcite-color-border-input);border-block-end-color:var(--calcite-color-border-input);border-block-style:solid}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:not(.content--slotted){--calcite-internal-button-padding-y-internal: 0}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover{--calcite-internal-button-text-color: var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].enable-editing-button) button{background-color:transparent}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][kind=inverse]) button,:host([appearance=transparent][kind=inverse]) a,:host([appearance=transparent][kind=inverse]) calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .5rem}:host([scale=s]) button,:host([scale=s]) a{--calcite-internal-button-padding-y-internal: 3px}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-internal-button-padding-x: 11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-padding-y-internal: 7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .75rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-internal-button-padding-x: 15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .button-padding{--calcite-internal-button-padding-x: 1rem;--calcite-internal-button-padding-y-internal: 11px}:host([scale=l]) .button-padding--shrunk{--calcite-internal-button-padding-y-internal: 9px}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y-internal: 3px;inline-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:1.5rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y-internal: 7px;inline-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y-internal: 9px;inline-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2.75rem}:host(:is([scale=s],[scale=m],[scale=l])[width=full]) a:not(.content--slotted),:host(:is([scale=s],[scale=m],[scale=l])[width=full]) button:not(.content--slotted){inline-size:var(--calcite-container-size-content-fluid)}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-y-internal: .625rem}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 23px;block-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2rem;block-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 43px;block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2.75rem}:host([hidden]){display:none}[hidden]{display:none}`,s=class extends h{constructor(){super(...arguments),this.attributeWatch=b(["aria-expanded"],this.handleGlobalAttributesChanged),this.contentEl=f(),this.mutationObserver=r("mutation",()=>this.updateHasContent()),this.resizeObserver=r("resize",()=>this.setTooltipText()),this.hasContent=!1,this.alignment="center",this.appearance="solid",this.disabled=!1,this.download=!1,this.kind="brand",this.loading=!1,this.messages=z(),this.round=!1,this.scale="m",this.splitChild=!1,this.type="button",this.width="auto"}static{this.properties={hasContent:16,tooltipText:16,alignment:3,appearance:3,disabled:7,download:[3,{converter:v}],form:3,href:3,iconEnd:3,iconFlipRtl:3,iconStart:3,kind:3,label:1,loading:7,messageOverrides:0,name:3,rel:3,round:7,scale:3,splitChild:3,target:3,type:3,width:3}}static{this.styles=P}async setFocus(){await x(this),this.childEl?.focus()}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),$(this),this.formEl=T(this)}async load(){g()&&this.updateHasContent()}updated(){w(this)}loaded(){this.setTooltipText()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),C(this),this.resizeObserver?.disconnect(),this.formEl=null}handleGlobalAttributesChanged(){this.requestUpdate()}updateHasContent(){this.hasContent=m(this.el)}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}onLabelClick(){this.handleClick(),this.setFocus()}handleClick(){let{type:t}=this;this.href||(t==="submit"?S(this):t==="reset"&&O(this))}setTooltipText(){let{contentEl:{value:t}}=this;t&&(this.tooltipText=t.offsetWidth<t.scrollWidth&&this.el.innerText||null)}setChildEl(t){this.childEl=t,t&&this.resizeObserver?.observe(t)}render(){let t=this.href?"a":"button",d=this.href?l`a`:l`button`,F=this.loading?o`<div class=${a(n.buttonLoader)}><calcite-loader class=${a(this.loading?n.loadingIn:n.loadingOut)} inline .label=${this.messages.loading} .scale=${this.scale==="l"?"m":"s"}></calcite-loader></div>`:null,u=!this.iconStart&&!this.iconEnd,L=o`<calcite-icon class=${a({[n.icon]:!0,[n.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${i(this.scale)}></calcite-icon>`,j=o`<calcite-icon class=${a({[n.icon]:!0,[n.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${i(this.scale)}></calcite-icon>`,I=o`<span class=${a(n.content)} ${c(this.contentEl)}><slot></slot></span>`;return y({disabled:this.disabled,children:R`<${d} .ariaBusy=${this.loading} .ariaExpanded=${this.el.ariaExpanded?this.el.ariaExpanded:null} .ariaLabel=${this.loading?this.messages.loading:E(this)} aria-live=polite class=${a({[n.buttonPadding]:u,[n.buttonPaddingShrunk]:!u,[n.contentSlotted]:this.hasContent,[n.iconStartEmpty]:!this.iconStart,[n.iconEndEmpty]:!this.iconEnd})} .disabled=${t==="button"?this.disabled:null} download=${(t==="a"?this.download===!0||this.download===""?"":this.download||null:null)??e} href=${(t==="a"&&this.href)??e} name=${(t==="button"&&this.name)??e} @click=${this.handleClick} rel=${(t==="a"&&this.rel)??e} tabindex=${(this.disabled?-1:null)??e} target=${(t==="a"&&this.target)??e} title=${this.tooltipText??e} type=${(t==="button"?this.type:null)??e} ${c(this.setChildEl)}>${F}${this.iconStart?L:null}${this.hasContent?I:null}${this.iconEnd?j:null}</${d}>`})}};k("calcite-button",s);export{s as Button};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* v3.0.0-next.99
|
|
5
|
-
*/
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v3.1.0-next.0 */
|
|
6
4
|
var n={container:"container",containerNone:"container--none-selection",icon:"dropdown-item-icon",iconEnd:"dropdown-item-icon--end",iconStart:"dropdown-item-icon--start",itemContent:"dropdown-item-content",link:"dropdown-link"};export{n as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v3.1.0-next.0 */
|
|
4
|
+
import{a as de,d as j,e as pe}from"./ISKYJPVP.js";import{a as le}from"./TX2VI5MW.js";import{A as re,B as N,C as ce,D as he,a as b,b as s,c as m,d as F,e as $,f as p,g as L,h as S,i as k,j as U,l as O,m as H,q as P,r as y,t as ne,u as se,w as K,x as E,y as W,z as D}from"./6T6UMXEG.js";import"./ARAAYSPA.js";import"./62IMSXF5.js";import{a as te,b as ie}from"./RAA7AM6M.js";import{a as A}from"./CQ5FVCCX.js";import{d as M}from"./ERNMRUWX.js";import{a as oe}from"./YSGHAVSA.js";import{a as Y}from"./R3FLP5QS.js";import{a as ae}from"./MYKRE5QO.js";import{b as f}from"./WACTC6C2.js";import{e as Q,n as Z,x as R}from"./FE2QRVI7.js";import{b as ee}from"./7VOKVNOX.js";import"./7LGBDOYP.js";import{J,e as X,f as C,j as w,v as z,w as G,x as c,y as x}from"./IPEYLL4T.js";var ke=X`: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;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal);inline-size:var(--calcite-internal-color-picker-min-width);min-inline-size:var(--calcite-internal-color-picker-min-width)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){--calcite-internal-color-picker-min-width: 200px;--calcite-color-picker-spacing: 8px}:host([scale=s]) .saved-colors{gap:.25rem;grid-template-columns:repeat(auto-fill,20px)}:host([scale=m]){--calcite-internal-color-picker-min-width: 240px;--calcite-color-picker-spacing: 12px}:host([scale=l]){--calcite-internal-color-picker-min-width: 304px;--calcite-color-picker-spacing: 16px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill,32px)}:host([scale=l]) .control-section{display:flex;flex-direction:column;flex-wrap:wrap;align-items:baseline}:host([scale=l]) .color-hex-options{inline-size:100%;display:flex;flex-shrink:1;flex-direction:column;justify-content:space-around}:host([scale=l]) .color-mode-container{flex-shrink:3}.container{background-color:var(--calcite-color-foreground-1);display:flex;flex-direction:column;block-size:min-content;border:1px solid var(--calcite-color-border-1)}.control-and-scope{position:relative;display:flex;cursor:pointer;touch-action:none}.color-field,.control-and-scope{-webkit-user-select:none;user-select:none}.scope{pointer-events:none;position:absolute;z-index:var(--calcite-z-index);block-size:1px;inline-size:1px;border-radius:9999px;background-color:transparent;font-size:var(--calcite-font-size--1);outline-color:transparent}.scope: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))));outline-offset:6px}.hex-and-channels-group{display:flex;inline-size:100%;flex-direction:column;flex-wrap:wrap}.section{padding-block:0 var(--calcite-color-picker-spacing);padding-inline:var(--calcite-color-picker-spacing)}.section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}.sliders{display:flex;flex-direction:column;justify-content:space-between;margin-inline-start:var(--calcite-color-picker-spacing);gap:var(--calcite-spacing-xxs)}.preview-and-sliders{display:flex;align-items:center;padding:var(--calcite-color-picker-spacing)}.color-hex-options,.section--split{flex-grow:1}.header{display:flex;align-items:center;justify-content:space-between;color:var(--calcite-color-text-1)}.color-mode-container{padding-block-start:var(--calcite-color-picker-spacing)}.channels{display:flex}.channel{flex-grow:1}.channel[data-channel-index="3"]{margin-inline-start:-1px;min-inline-size:81px}:host([scale=s]) .channel[data-channel-index="3"]{min-inline-size:68px}:host([scale=l]) .channel[data-channel-index="3"]{min-inline-size:88px}.saved-colors{display:grid;gap:.5rem;padding-block-start:var(--calcite-color-picker-spacing);grid-template-columns:repeat(auto-fill,24px)}.saved-colors-buttons{display:flex}.saved-color{outline-offset:0;outline-color:transparent;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.saved-color:hover{transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;outline:2px solid var(--calcite-color-border-2);outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}`,ue=16,V=class extends G{constructor(){super(),this._color=m,this.internalColorUpdateContext=null,this.isActiveChannelInputEmpty=!1,this.mode=K.HEX,this.resizeObserver=Y("resize",e=>this.resizeCanvas(e)),this.shiftKeyChannelAdjustment=0,this.upOrDownArrowKeyTracker=null,this._valueWasSet=!1,this.channelMode="rgb",this.channels=this.toChannels(m),this.staticDimensions=k.m,this.savedColors=[],this.allowEmpty=!1,this.alphaChannel=!1,this.channelsDisabled=!1,this.clearable=!1,this.disabled=!1,this.format="auto",this.hexDisabled=!1,this.messages=ae({blocking:!0}),this.savedDisabled=!1,this.scale="m",this.calciteColorPickerChange=z({cancelable:!1}),this.calciteColorPickerInput=z({cancelable:!1}),this.captureColorFieldColor=(e,t,i=!0)=>{let{width:a,height:o}=this.dynamicDimensions.colorField,l=Math.round(p.s/a*e),n=Math.round(p.v/o*(o-t));this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(l).value(n),i)},this.drawColorControls=M((e="all")=>{(e==="all"||e==="color-field")&&this.colorFieldRenderingContext&&this.drawColorField(),(e==="all"||e==="hue-slider")&&this.hueSliderRenderingContext&&this.drawHueSlider(),this.alphaChannel&&(e==="all"||e==="opacity-slider")&&this.opacitySliderRenderingContext&&this.drawOpacitySlider()},ue),this.globalPointerMoveHandler=e=>{let{activeCanvasInfo:t,el:i}=this;if(!i.isConnected||!t)return;let{context:a,bounds:o}=t,l,n,{clientX:r,clientY:h}=e;a.canvas.matches(":hover")?(l=r-o.x,n=h-o.y):(r<o.x+o.width&&r>o.x?l=r-o.x:r<o.x?l=0:l=o.width,h<o.y+o.height&&h>o.y?n=h-o.y:h<o.y?n=0:n=o.height),a===this.colorFieldRenderingContext?this.captureColorFieldColor(l,n,!1):a===this.hueSliderRenderingContext?this.captureHueSliderColor(l):a===this.opacitySliderRenderingContext&&this.captureOpacitySliderValue(l)},this.globalPointerUpHandler=e=>{if(!R(e))return;let t=this.activeCanvasInfo;this.activeCanvasInfo=null,this.drawColorControls(),t&&this.calciteColorPickerChange.emit()},this.resizeCanvas=M(e=>{if(!this.hasUpdated)return;let[t]=e,i=Math.floor(t.contentBoxSize[0].inlineSize);this.dynamicDimensions.colorField.width!==i&&(this.updateDynamicDimensions(i),this.updateCanvasSize(),this.drawColorControls())},ue),this.updateDynamicDimensions=e=>{let t={width:ce(e,this.staticDimensions,this.alphaChannel),height:this.staticDimensions.slider.height};this.dynamicDimensions={colorField:he(e),slider:t}},this.listen("keydown",this.handleChannelKeyUpOrDown,{capture:!0}),this.listen("keyup",this.handleChannelKeyUpOrDown,{capture:!0})}static{this.properties={channelMode:16,channels:16,colorFieldScopeLeft:16,colorFieldScopeTop:16,staticDimensions:16,hueScopeLeft:16,opacityScopeLeft:16,savedColors:16,scopeOrientation:16,allowEmpty:7,alphaChannel:5,channelsDisabled:5,clearable:7,color:0,disabled:7,format:3,hexDisabled:5,messageOverrides:0,numberingSystem:3,savedDisabled:7,scale:3,storageId:3,value:1}}static{this.styles=ke}get baseColorFieldColor(){return this.color||this.previousColor||m}get effectiveSliderWidth(){return this.dynamicDimensions.slider.width}get color(){return this._color}set color(e){let t=this._color;this._color=e,this.handleColorChange(e,t)}get value(){return this._value}set value(e){let t=this._value;this._value=e,this.handleValueChange(e,t),this._valueWasSet=!0}async setFocus(){await ee(this),Z(this.el)}connectedCallback(){super.connectedCallback(),this.observeResize()}async load(){this._valueWasSet||(this._value??=P(y(m,this.alphaChannel))),this.handleAllowEmptyOrClearableChange();let{isClearable:e,color:t,format:i,value:a}=this,o=e&&!a,l=E(a),n=o||i==="auto"&&l||i===l,r=o?null:n?b(a):t;n||this.showIncompatibleColorWarning(a,i),this.setMode(i,!1),this.internalColorSet(r,!1,"initial"),this.updateStaticDimensions(this.scale),this.updateDynamicDimensions(k[this.scale].minWidth);let h=`${F}${this.storageId}`;this.storageId&&localStorage.getItem(h)&&(this.savedColors=JSON.parse(localStorage.getItem(h)))}willUpdate(e){(e.has("allowEmpty")&&(this.hasUpdated||this.allowEmpty!==!1)||e.has("clearable")&&(this.hasUpdated||this.clearable!==!1))&&this.handleAllowEmptyOrClearableChange(),e.has("alphaChannel")&&(this.hasUpdated||this.alphaChannel!==!1)&&this.handleAlphaChannelChange(this.alphaChannel),this.hasUpdated&&(e.has("alphaChannel")&&this.alphaChannel!==!1||e.has("staticDimensions")&&this.staticDimensions!==k.m)&&this.handleAlphaChannelDimensionsChange(),(e.has("alphaChannel")&&(this.hasUpdated||this.alphaChannel!==!1)||e.has("format")&&(this.hasUpdated||this.format!=="auto"))&&this.handleFormatOrAlphaChannelChange(),e.has("scale")&&(this.hasUpdated||this.scale!=="m")&&this.handleScaleChange(this.scale)}updated(){te(this)}loaded(){this.handleAlphaChannelDimensionsChange()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("pointermove",this.globalPointerMoveHandler),window.removeEventListener("pointerup",this.globalPointerUpHandler),this.resizeObserver?.disconnect()}observeResize(){this.resizeObserver?.observe(this.el)}handleAllowEmptyOrClearableChange(){this.isClearable=this.clearable||this.allowEmpty}handleAlphaChannelChange(e){let{format:t}=this;e&&t!=="auto"&&!D(t)&&(console.warn(`ignoring alphaChannel as the current format (${t}) does not support alpha`),this.alphaChannel=!1)}handleAlphaChannelDimensionsChange(){this.drawColorControls()}handleColorChange(e,t){this.drawColorControls(),this.updateChannelsFromColor(e),this.previousColor=t}handleFormatOrAlphaChannelChange(){this.setMode(this.format),this.internalColorSet(this.color,!1,"internal")}handleScaleChange(e="m"){this.updateStaticDimensions(e),this.updateCanvasSize(),this.drawColorControls()}handleValueChange(e,t){let{isClearable:i,format:a}=this,o=!i||e,l=!1;if(o){let d=E(e);if(!d||a!=="auto"&&d!==a){this.showIncompatibleColorWarning(e,a),this._value=t;return}l=this.mode!==d,this.setMode(d,this.internalColorUpdateContext===null)}let n=this.activeCanvasInfo;if(this.internalColorUpdateContext==="initial")return;if(this.internalColorUpdateContext==="user-interaction"){this.calciteColorPickerInput.emit(),n||this.calciteColorPickerChange.emit();return}let r=i&&!e?null:b(e!=null&&typeof e=="object"&&D(this.mode)?se(e):e),h=!W(r,this.color);(l||h)&&this.internalColorSet(r,this.alphaChannel&&!(this.mode.endsWith("a")||this.mode.endsWith("a-css"))||this.internalColorUpdateContext==="internal","internal")}handleTabActivate(e){this.channelMode=e.currentTarget.getAttribute("data-color-mode"),this.updateChannelsFromColor(this.color)}handleColorFieldScopeKeyDown(e){let{key:t}=e,i={ArrowUp:{x:0,y:-10},ArrowRight:{x:10,y:0},ArrowDown:{x:0,y:10},ArrowLeft:{x:-10,y:0}};i[t]&&(e.preventDefault(),this.scopeOrientation=t==="ArrowDown"||t==="ArrowUp"?"vertical":"horizontal",this.captureColorFieldColor(this.colorFieldScopeLeft+i[t].x||0,this.colorFieldScopeTop+i[t].y||0,!1))}handleHueScopeKeyDown(e){let t=e.shiftKey?10:1,{key:i}=e,a={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1};if(a[i]){e.preventDefault();let o=a[i]*t,l=this.baseColorFieldColor.hue(),n=this.baseColorFieldColor.hue(l+o);this.internalColorSet(n,!1)}}handleHexInputChange(e){e.stopPropagation();let{isClearable:t,color:i}=this,a=e.target.value;if(t&&!a){this.internalColorSet(null);return}let o=i&&P(y(i,D(this.mode)));a!==o&&this.internalColorSet(b(a))}handleSavedColorSelect(e){let t=e.currentTarget;this.internalColorSet(b(t.color))}handleChannelInput(e){let t=e.currentTarget,i=Number(t.getAttribute("data-channel-index")),a=i===3?S.max:this.channelMode==="rgb"?$[Object.keys($)[i]]:p[Object.keys(p)[i]],o;if(!t.value)o="",this.isActiveChannelInputEmpty=!0,this.upOrDownArrowKeyTracker=null;else{let l=Number(t.value)+this.shiftKeyChannelAdjustment;o=de(l,0,a).toString()}t.value=o,o!==""&&this.shiftKeyChannelAdjustment!==0?this.handleChannelChange(e):o!==""&&this.handleChannelChange(e)}handleChannelBlur(e){let t=e.currentTarget,i=Number(t.getAttribute("data-channel-index")),a=[...this.channels];!t.value&&!this.isClearable&&(t.value=a[i]?.toString())}handleChannelFocus(e){e.currentTarget.selectText()}handleChannelKeyUpOrDown(e){this.shiftKeyChannelAdjustment=0;let{key:t}=e;if(t!=="ArrowUp"&&t!=="ArrowDown"||!e.composedPath().some(o=>o.classList?.contains(s.channel)))return;let{shiftKey:i}=e;if(e.preventDefault(),!this.color){this.internalColorSet(this.previousColor),e.stopPropagation();return}let a=9;this.shiftKeyChannelAdjustment=t==="ArrowUp"&&i?a:t==="ArrowDown"&&i?-9:0,t==="ArrowUp"&&(this.upOrDownArrowKeyTracker="up"),t==="ArrowDown"&&(this.upOrDownArrowKeyTracker="down")}getChannelInputLimit(e){return this.channelMode==="rgb"?$[Object.keys($)[e]]:p[Object.keys(p)[e]]}handleChannelChange(e){let t=e.currentTarget,i=Number(t.getAttribute("data-channel-index")),a=[...this.channels];if(this.isClearable&&!t.value){this.channels=[null,null,null,null],this.internalColorSet(null);return}let o=i===3;this.isActiveChannelInputEmpty&&this.upOrDownArrowKeyTracker&&(t.value=this.upOrDownArrowKeyTracker==="up"?(a[i]+1<=this.getChannelInputLimit(i)?a[i]+1:this.getChannelInputLimit(i)).toString():(a[i]-1>=0?a[i]-1:0).toString(),this.isActiveChannelInputEmpty=!1,this.upOrDownArrowKeyTracker=null);let l=t.value?Number(t.value):a[i];a[i]=o?H(l):l,this.updateColorFromChannels(a)}handleSavedColorKeyDown(e){oe(e.key)&&(e.preventDefault(),this.handleSavedColorSelect(e))}handleColorFieldPointerDown(e){this.handleCanvasControlPointerDown(e,this.colorFieldRenderingContext,this.captureColorFieldColor,this.colorFieldScopeNode)}focusScope(e){requestAnimationFrame(()=>{e.focus()})}handleHueSliderPointerDown(e){this.handleCanvasControlPointerDown(e,this.hueSliderRenderingContext,this.captureHueSliderColor,this.hueScopeNode)}handleOpacitySliderPointerDown(e){this.handleCanvasControlPointerDown(e,this.opacitySliderRenderingContext,this.captureOpacitySliderValue,this.opacityScopeNode)}handleCanvasControlPointerDown(e,t,i,a){R(e)&&(window.addEventListener("pointermove",this.globalPointerMoveHandler),window.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:t,bounds:t.canvas.getBoundingClientRect()},i.call(this,e.offsetX,e.offsetY),this.focusScope(a))}storeColorFieldScope(e){this.colorFieldScopeNode=e}storeHueScope(e){this.hueScopeNode=e}handleKeyDown(e){e.key==="Enter"&&e.preventDefault()}showIncompatibleColorWarning(e,t){console.warn(`ignoring color value (${e}) as it is not compatible with the current format (${t})`)}setMode(e,t=!0){let i=e==="auto"?this.mode:e;this.mode=this.ensureCompatibleMode(i,t)}ensureCompatibleMode(e,t){let{alphaChannel:i}=this,a=D(e);if(i&&!a){let o=re(e);return t&&console.warn(`setting format to (${o}) as the provided one (${e}) does not support alpha`),o}if(!i&&a){let o=N(e);return t&&console.warn(`setting format to (${o}) as the provided one (${e}) does not support alpha`),o}return e}captureHueSliderColor(e){let t=L/this.effectiveSliderWidth*e;this.internalColorSet(this.baseColorFieldColor.hue(t),!1)}captureOpacitySliderValue(e){let t=H(S.max/this.effectiveSliderWidth*e);this.internalColorSet(this.baseColorFieldColor.alpha(t),!1)}internalColorSet(e,t=!0,i="user-interaction"){t&&W(e,this.color)||(this.internalColorUpdateContext=i,this.color=e,this.value=this.toValue(e),this.internalColorUpdateContext=null)}toValue(e,t=this.mode){if(!e)return null;if(t.includes("hex")){let a=t===K.HEXA;return P(y(e.round(),a),a)}if(t.includes("-css")){let a=e[t.replace("-css","").replace("a","")]().round().string();if((t.endsWith("a")||t.endsWith("a-css"))&&e.alpha()===1){let o=a.slice(0,3),l=a.slice(4,-1);return`${o}a(${l}, ${e.alpha()})`}return a}let i=e[N(t)]().round().object();return t.endsWith("a")?ne(i):i}getSliderCapSpacing(){let{staticDimensions:{slider:{height:e},thumb:{radius:t}}}=this;return t*2-e}updateStaticDimensions(e="m"){this.staticDimensions=k[e]}deleteColor(){let e=y(this.color,this.alphaChannel);if(!(this.savedColors.indexOf(e)>-1))return;let t=this.savedColors.filter(a=>a!==e);this.savedColors=t;let i=`${F}${this.storageId}`;this.storageId&&localStorage.setItem(i,JSON.stringify(t))}saveColor(){let e=y(this.color,this.alphaChannel);if(this.savedColors.indexOf(e)>-1)return;let t=[...this.savedColors,e];this.savedColors=t;let i=`${F}${this.storageId}`;this.storageId&&localStorage.setItem(i,JSON.stringify(t))}drawColorField(){let e=this.colorFieldRenderingContext,{width:t,height:i}=this.dynamicDimensions.colorField;e.fillStyle=this.baseColorFieldColor.hsv().saturationv(100).value(100).alpha(1).string(),e.fillRect(0,0,t,i);let a=e.createLinearGradient(0,0,t,0);a.addColorStop(0,"rgba(255,255,255,1)"),a.addColorStop(1,"rgba(255,255,255,0)"),e.fillStyle=a,e.fillRect(0,0,t,i);let o=e.createLinearGradient(0,0,0,i);o.addColorStop(0,"rgba(0,0,0,0)"),o.addColorStop(1,"rgba(0,0,0,1)"),e.fillStyle=o,e.fillRect(0,0,t,i),this.drawActiveColorFieldColor()}setCanvasContextSize(e,{height:t,width:i}){if(!e)return;let a=window.devicePixelRatio||1;e.width=i*a,e.height=t*a,e.style.height=`${t}px`,e.style.width=`${i}px`,e.getContext("2d").scale(a,a)}initColorField(e){e&&(this.colorFieldRenderingContext=e.getContext("2d"),this.updateCanvasSize("color-field"),this.drawColorControls())}initHueSlider(e){e&&(this.hueSliderRenderingContext=e.getContext("2d"),this.updateCanvasSize("hue-slider"),this.drawHueSlider())}initOpacitySlider(e){e&&(this.opacitySliderRenderingContext=e.getContext("2d"),this.updateCanvasSize("opacity-slider"),this.drawOpacitySlider())}updateCanvasSize(e="all"){let{dynamicDimensions:t,staticDimensions:i}=this;(e==="all"||e==="color-field")&&this.setCanvasContextSize(this.colorFieldRenderingContext?.canvas,t.colorField);let a={width:this.effectiveSliderWidth,height:i.slider.height+(i.thumb.radius-t.slider.height/2)*2};(e==="all"||e==="hue-slider")&&this.setCanvasContextSize(this.hueSliderRenderingContext?.canvas,a),(e==="all"||e==="opacity-slider")&&this.setCanvasContextSize(this.opacitySliderRenderingContext?.canvas,a)}drawActiveColorFieldColor(){let{color:e}=this;if(!e)return;let t=e.hsv(),{staticDimensions:{thumb:{radius:i}}}=this,{width:a,height:o}=this.dynamicDimensions.colorField,l=t.saturationv()/(p.s/a),n=o-t.value()/(p.v/o);requestAnimationFrame(()=>{this.colorFieldScopeLeft=l,this.colorFieldScopeTop=n}),this.drawThumb(this.colorFieldRenderingContext,i,l,n,t,!1)}drawThumb(e,t,i,a,o,l){let n=2*Math.PI,r=1;if(e.beginPath(),e.arc(i,a,t,0,n),e.fillStyle="#fff",e.fill(),e.strokeStyle="rgba(0,0,0,0.3)",e.lineWidth=r,e.stroke(),l&&o.alpha()<1){let d=e.createPattern(this.getCheckeredBackgroundPattern(),"repeat");e.beginPath(),e.arc(i,a,t-3,0,n),e.fillStyle=d,e.fill()}e.globalCompositeOperation="source-atop",e.beginPath(),e.arc(i,a,t-3,0,n);let h=l?o.alpha():1;e.fillStyle=o.rgb().alpha(h).string(),e.fill(),e.globalCompositeOperation="source-over"}drawActiveHueSliderColor(){let{color:e}=this;if(!e)return;let t=e.hsv().saturationv(100).value(100),{staticDimensions:{thumb:{radius:i}}}=this,a=this.effectiveSliderWidth,o=t.hue()/(L/a),l=i,n=this.getSliderBoundX(o,a,i);requestAnimationFrame(()=>{this.hueScopeLeft=n}),this.drawThumb(this.hueSliderRenderingContext,i,n,l,t,!1)}drawHueSlider(){let e=this.hueSliderRenderingContext,{staticDimensions:{slider:{height:t},thumb:{radius:i}}}=this,a=0,o=i-t/2,l=this.effectiveSliderWidth,n=e.createLinearGradient(0,0,l,0),r=["red","yellow","lime","cyan","blue","magenta","#ff0004"],h=1/(r.length-1),d=0;r.forEach(u=>{n.addColorStop(d,b(u).string()),d+=h}),e.clearRect(0,0,l,t+this.getSliderCapSpacing()*2),this.drawSliderPath(e,t,l,a,o),e.fillStyle=n,e.fill(),e.strokeStyle="rgba(0,0,0,0.3)",e.lineWidth=1,e.stroke(),this.drawActiveHueSliderColor()}drawOpacitySlider(){let e=this.opacitySliderRenderingContext,{baseColorFieldColor:t,staticDimensions:{slider:{height:i},thumb:{radius:a}}}=this,o=0,l=a-i/2,n=this.effectiveSliderWidth;e.clearRect(0,0,n,i+this.getSliderCapSpacing()*2);let r=e.createLinearGradient(0,l,n,0),h=t.rgb().alpha(0),d=t.rgb().alpha(.5),u=t.rgb().alpha(1);r.addColorStop(0,h.string()),r.addColorStop(.5,d.string()),r.addColorStop(1,u.string()),this.drawSliderPath(e,i,n,o,l);let g=e.createPattern(this.getCheckeredBackgroundPattern(),"repeat");e.fillStyle=g,e.fill(),e.fillStyle=r,e.fill(),e.strokeStyle="rgba(0,0,0,0.3)",e.lineWidth=1,e.stroke(),this.drawActiveOpacitySliderColor()}drawSliderPath(e,t,i,a,o){let l=t/2+1;e.beginPath(),e.moveTo(a+l,o),e.lineTo(a+i-l,o),e.quadraticCurveTo(a+i,o,a+i,o+l),e.lineTo(a+i,o+t-l),e.quadraticCurveTo(a+i,o+t,a+i-l,o+t),e.lineTo(a+l,o+t),e.quadraticCurveTo(a,o+t,a,o+t-l),e.lineTo(a,o+l),e.quadraticCurveTo(a,o,a+l,o),e.closePath()}getCheckeredBackgroundPattern(){if(this.checkerPattern)return this.checkerPattern;let e=document.createElement("canvas");e.width=10,e.height=10;let t=e.getContext("2d");return t.fillStyle="#ccc",t.fillRect(0,0,10,10),t.fillStyle="#fff",t.fillRect(0,0,5,5),t.fillRect(5,5,5,5),this.checkerPattern=e,e}drawActiveOpacitySliderColor(){let{color:e}=this;if(!e)return;let t=e,{staticDimensions:{thumb:{radius:i}}}=this,a=this.effectiveSliderWidth,o=O(t.alpha())/(S.max/a),l=i,n=this.getSliderBoundX(o,a,i);requestAnimationFrame(()=>{this.opacityScopeLeft=n}),this.drawThumb(this.opacitySliderRenderingContext,i,n,l,t,!0)}getSliderBoundX(e,t,i){let a=pe(e,t,i);return a===0?e:a===-1?j(e,0,t,i,i*2):j(e,0,t,t-i*2,t-i)}storeOpacityScope(e){this.opacityScopeNode=e}handleOpacityScopeKeyDown(e){let t=e.shiftKey?10:1,{key:i}=e,a={ArrowUp:.01,ArrowRight:.01,ArrowDown:-.01,ArrowLeft:-.01};if(a[i]){e.preventDefault();let o=a[i]*t,l=this.baseColorFieldColor.alpha(),n=this.baseColorFieldColor.alpha(l+o);this.internalColorSet(n,!1)}}updateColorFromChannels(e){this.internalColorSet(b(e,this.channelMode))}updateChannelsFromColor(e){this.channels=e?this.toChannels(e):[null,null,null,null]}toChannels(e){let{channelMode:t}=this,i=e[t]().array().map((a,o)=>o===3?a:Math.floor(a));return i.length===3&&i.push(1),i}getAdjustedScopePosition(e,t){return[e-U/2,t-U/2]}render(){let{channelsDisabled:e,color:t,colorFieldScopeLeft:i,colorFieldScopeTop:a,staticDimensions:{thumb:{radius:o}},hexDisabled:l,hueScopeLeft:n,messages:r,alphaChannel:h,opacityScopeLeft:d,savedColors:u,savedDisabled:g,scale:v,scopeOrientation:Ce}=this,_=this.effectiveSliderWidth,B=t?y(t,h):null,me=o,ve=n??_*m.hue()/p.h,ge=o,fe=d??_*O(m.alpha())/S.max,q=t===void 0,T=Ce==="vertical",[be,Se]=this.getAdjustedScopePosition(i,a),[ye,we]=this.getAdjustedScopePosition(ve,me),[xe,$e]=this.getAdjustedScopePosition(fe,ge);return ie({disabled:this.disabled,children:C`<div class=${c(s.container)}><div class=${c(s.controlAndScope)}><canvas class=${c(s.colorField)} @pointerdown=${this.handleColorFieldPointerDown} ${f(this.initColorField)}></canvas><div .ariaLabel=${T?r.value:r.saturation} .ariaValueMax=${T?p.v:p.s} aria-valuemin=0 .ariaValueNow=${(T?t?.saturationv():t?.value())||"0"} class=${c({[s.scope]:!0,[s.colorFieldScope]:!0})} @keydown=${this.handleColorFieldScopeKeyDown} role=slider style=${x({top:`${Se||0}px`,left:`${be||0}px`})} tabindex=0 ${f(this.storeColorFieldScope)}></div></div><div class=${c(s.previewAndSliders)}><calcite-color-picker-swatch class=${c(s.preview)} .color=${B} .scale=${this.alphaChannel?"l":this.scale}></calcite-color-picker-swatch><div class=${c(s.sliders)}><div class=${c(s.controlAndScope)}><canvas class=${c({[s.slider]:!0,[s.hueSlider]:!0})} @pointerdown=${this.handleHueSliderPointerDown} ${f(this.initHueSlider)}></canvas><div .ariaLabel=${r.hue} .ariaValueMax=${p.h} aria-valuemin=0 .ariaValueNow=${t?.round().hue()||m.round().hue()} class=${c({[s.scope]:!0,[s.hueScope]:!0})} @keydown=${this.handleHueScopeKeyDown} role=slider style=${x({top:`${we}px`,left:`${ye}px`})} tabindex=0 ${f(this.storeHueScope)}></div></div>${h?C`<div class=${c(s.controlAndScope)}><canvas class=${c({[s.slider]:!0,[s.opacitySlider]:!0})} @pointerdown=${this.handleOpacitySliderPointerDown} ${f(this.initOpacitySlider)}></canvas><div .ariaLabel=${r.opacity} .ariaValueMax=${S.max} .ariaValueMin=${S.min} .ariaValueNow=${(t||m).round().alpha()} class=${c({[s.scope]:!0,[s.opacityScope]:!0})} @keydown=${this.handleOpacityScopeKeyDown} role=slider style=${x({top:`${$e}px`,left:`${xe}px`})} tabindex=0 ${f(this.storeOpacityScope)}></div></div>`:null}</div></div>${l&&e?null:C`<div class=${c({[s.controlSection]:!0,[s.section]:!0})}><div class=${c(s.hexAndChannelsGroup)}>${l?null:C`<div class=${c(s.hexOptions)}><calcite-color-picker-hex-input .allowEmpty=${this.isClearable} .alphaChannel=${h} class=${c(s.control)} .messages=${r} .numberingSystem=${this.numberingSystem} @calciteColorPickerHexInputChange=${this.handleHexInputChange} .scale=${v} .value=${B}></calcite-color-picker-hex-input></div>`}${e?null:C`<calcite-tabs class=${c({[s.colorModeContainer]:!0,[s.splitSection]:!0})} .scale=${v==="l"?"m":"s"}><calcite-tab-nav slot=title-group>${this.renderChannelsTabTitle("rgb")}${this.renderChannelsTabTitle("hsv")}</calcite-tab-nav>${this.renderChannelsTab("rgb")}${this.renderChannelsTab("hsv")}</calcite-tabs>`}</div></div>`}${g?null:C`<div class=${c({[s.savedColorsSection]:!0,[s.section]:!0})}><div class=${c(s.header)}><label>${r.saved}</label><div class=${c(s.savedColorsButtons)}><calcite-button appearance=transparent class=${c(s.deleteColor)} .disabled=${q} icon-start=minus kind=neutral .label=${r.deleteColor} @click=${this.deleteColor} .scale=${v} type=button></calcite-button><calcite-button appearance=transparent class=${c(s.saveColor)} .disabled=${q} icon-start=plus kind=neutral .label=${r.saveColor} @click=${this.saveColor} .scale=${v} type=button></calcite-button></div></div>${u.length>0?C`<div class=${c(s.savedColors)}>${le(u,I=>I,I=>C`<calcite-color-picker-swatch class=${c(s.savedColor)} .color=${I} @click=${this.handleSavedColorSelect} @keydown=${this.handleSavedColorKeyDown} .scale=${v} tabindex=0></calcite-color-picker-swatch>`)}</div>`:null}</div>`}</div>`})}renderChannelsTabTitle(e){let{channelMode:t,messages:i}=this,a=e===t,o=e==="rgb"?i.rgb:i.hsv;return A(e,C`<calcite-tab-title class=${c(s.colorMode)} data-color-mode=${e??w} @calciteTabsActivate=${this.handleTabActivate} .selected=${a}>${o}</calcite-tab-title>`)}renderChannelsTab(e){let{isClearable:t,channelMode:i,channels:a,messages:o,alphaChannel:l}=this,n=e===i,r=e==="rgb"?[o.red,o.green,o.blue]:[o.hue,o.saturation,o.value],h=Q(this.el),d=l?a:a.slice(0,3);return A(e,C`<calcite-tab class=${c(s.control)} .selected=${n}><div class=${c(s.channels)} dir=ltr>${d.map((u,g)=>{let v=g===3;return v&&(u=t&&!u?u:O(u)),this.renderChannel(u,g,r[g],h,v?"%":"")})}</div></calcite-tab>`)}renderChannel(e,t,i,a,o){return A(t,C`<calcite-input-number class=${c(s.channel)} data-channel-index=${t??w} dir=${a??w} .label=${i} lang=${this.messages._lang??w} number-button-type=none .numberingSystem=${this.numberingSystem} @keydown=${this.handleKeyDown} @calciteInputNumberChange=${this.handleChannelChange} @calciteInputNumberInput=${this.handleChannelInput} @calciteInternalInputNumberBlur=${this.handleChannelBlur} @calciteInternalInputNumberFocus=${this.handleChannelFocus} .scale=${this.scale==="l"?"m":"s"} style=${x({marginLeft:t>0&&!(this.scale==="s"&&this.alphaChannel&&t===3)?"-1px":""})} .suffixText=${o} .value=${e?.toString()}></calcite-input-number>`)}};J("calcite-color-picker",V);export{V as ColorPicker};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
import{b as e}from"./6LWRLBVD.js";import"./J7RY7DXT.js";var _={name:"es-mx",weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},ordinal:function(o){return o+"\xBA"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"}};e.locale(_,null,!0);var a=_;export{a as default};
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v3.1.0-next.0 */
|
|
4
|
+
import{b as e}from"./A77PTXQI.js";import"./AFBGRNF3.js";var _={name:"es-mx",weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},ordinal:function(o){return o+"\xBA"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"}};e.locale(_,null,!0);var a=_;export{a as default};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
import{b as a}from"./6LWRLBVD.js";import"./J7RY7DXT.js";var M={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function e(r,t,_){var n=M[_];return Array.isArray(n)&&(n=n[t?0:1]),n.replace("%d",r)}var i={name:"de-at",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"J\xE4nner_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xE4n._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(t){return t+"."},weekStart:1,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e}};a.locale(i,null,!0);var d=i;export{d as default};
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v3.1.0-next.0 */
|
|
4
|
+
import{b as a}from"./A77PTXQI.js";import"./AFBGRNF3.js";var M={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function e(r,t,_){var n=M[_];return Array.isArray(n)&&(n=n[t?0:1]),n.replace("%d",r)}var i={name:"de-at",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"J\xE4nner_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xE4n._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(t){return t+"."},weekStart:1,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e}};a.locale(i,null,!0);var d=i;export{d as default};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
import{b as T}from"./PZ34QZ44.js";import"./GIRDDKPZ.js";import{a as x}from"./DCAWR655.js";import{a as y}from"./JFBHBHJE.js";import{a as v}from"./3Z3RDAUW.js";import{a as $}from"./3HC2LTHR.js";import{b}from"./CTQ5YHOP.js";import{e as k}from"./QIOSM7C2.js";import"./OJ5D52RG.js";import{I as u,d as g,e as c,u as m,v as f,w as a}from"./XDGCDDNX.js";var t={header:"header",heading:"heading",close:"close",container:"container",tipContainer:"tip-container",tipContainerAdvancing:"tip-container--advancing",tipContainerRetreating:"tip-container--retreating",pagination:"pagination",pagePosition:"page-position",pageNext:"page-next",pagePrevious:"page-previous"},s={chevronLeft:"chevron-left",chevronRight:"chevron-right",close:"x"},w=g`:host{box-sizing:border-box;display:block;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2);--calcite-tip-manager-height: 19vh}:host *{box-sizing:border-box}:host([closed]){display:none}.header{margin:0;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0;padding:0;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:.5rem}.header{border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);padding-block:0px;padding-inline-end:0px;padding-inline-start:1rem}.header .heading{padding:0;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}.container{position:relative;overflow:hidden;outline-color:transparent;min-block-size:150px}.container: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))))}.tip-container{margin-block-start:1px;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:1rem;outline-color:transparent;animation-name:none;animation-duration:var(--calcite-animation-timing);block-size:var(--calcite-tip-manager-height)}.tip-container: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))))}::slotted(calcite-tip){margin:0;border-style:none;max-inline-size:var(--calcite-tip-max-width)}.tip-container--advancing{animation-name:tip-advance}.tip-container--retreating{animation-name:tip-retreat}.pagination{display:flex;align-items:center;justify-content:center;padding-inline:0px;padding-block:.75rem .5rem}.page-position{margin-block:0px;margin-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}@keyframes tip-advance{0%{opacity:0;transform:translate3d(50px,0,0) scale(.99)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes tip-retreat{0%{opacity:0;transform:translate3d(-50px,0,0) scale(.99)}to{opacity:1;transform:translateZ(0) scale(1)}}:host([hidden]){display:none}[hidden]{display:none}`,h=class extends f{constructor(){super(...arguments),this.messages=$(),this.mutationObserver=v("mutation",()=>this.setUpTips()),this.closed=!1,this.calciteTipManagerClose=m({cancelable:!1})}static{this.properties={direction:16,groupTitle:16,selectedIndex:16,tips:16,total:16,closed:7,headingLevel:11,messageOverrides:0}}static{this.styles=w}async nextTip(){this.direction="advancing";let e=this.selectedIndex+1;this.selectedIndex=(e+this.total)%this.total}async previousTip(){this.direction="retreating";let e=this.selectedIndex-1;this.selectedIndex=(e+this.total)%this.total}connectedCallback(){super.connectedCallback(),this.setUpTips(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async load(){y.deprecated("component",{name:"tip-manager",removalVersion:4,suggested:"carousel"})}willUpdate(e){e.has("closed")&&(this.hasUpdated||this.closed!==!1)&&(this.direction=null),e.has("selectedIndex")&&this.selectedChangeHandler(),e.has("messages")&&this.updateGroupTitle()}loaded(){this.updateGroupTitle()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}selectedChangeHandler(){this.showSelectedTip(),this.updateGroupTitle()}setUpTips(){let e=Array.from(this.el.querySelectorAll("calcite-tip"));if(this.total=e.length,this.total===0)return;let i=this.el.querySelector("calcite-tip[selected]");this.tips=e,this.selectedIndex=i?e.indexOf(i):0,e.forEach(n=>{n.closeDisabled=!0}),this.showSelectedTip()}hideTipManager(){this.closed=!0,this.calciteTipManagerClose.emit()}showSelectedTip(){this.tips.forEach((e,i)=>{let n=this.selectedIndex===i;e.selected=n,e.hidden=!n})}updateGroupTitle(){if(this.tips){let e=this.tips[this.selectedIndex].closest("calcite-tip-group");this.groupTitle=e?.groupTitle||this.messages?.defaultGroupTitle}}previousClicked(){this.previousTip()}nextClicked(){this.nextTip()}tipManagerKeyDownHandler(e){if(e.target===this.container)switch(e.key){case"ArrowRight":e.preventDefault(),this.nextTip();break;case"ArrowLeft":e.preventDefault(),this.previousTip();break;case"Home":e.preventDefault(),this.selectedIndex=0;break;case"End":e.preventDefault(),this.selectedIndex=this.total-1;break}}storeContainerRef(e){this.container=e}renderPagination(){let e=k(this.el),{selectedIndex:i,tips:n,total:r,messages:o}=this,l=o.next,d=o.previous,p=o.defaultPaginationLabel;return n.length>1?c`<footer class=${a(t.pagination)}><calcite-action class=${a(t.pagePrevious)} .icon=${e==="ltr"?s.chevronLeft:s.chevronRight} @click=${this.previousClicked} scale=m .text=${d}></calcite-action><span class=${a(t.pagePosition)}>${`${p} ${i+1}/${r}`}</span><calcite-action class=${a(t.pageNext)} .icon=${e==="ltr"?s.chevronRight:s.chevronLeft} @click=${this.nextClicked} scale=m .text=${l}></calcite-action></footer>`:null}render(){let{closed:e,direction:i,headingLevel:n,groupTitle:r,selectedIndex:o,messages:l,total:d}=this,p=l.close;return d===0?null:c`<section .ariaHidden=${e} class=${a(t.container)} .hidden=${e} @keydown=${this.tipManagerKeyDownHandler} tabindex=0 ${b(this.storeContainerRef)}><header class=${a(t.header)}>${T({class:t.heading,level:n,children:r})}<calcite-action class=${a(t.close)} @click=${this.hideTipManager} scale=m .text=${p}><calcite-icon .icon=${s.close} scale=m></calcite-icon></calcite-action></header>${x(o,c`<div class=${a({[t.tipContainer]:!0,[t.tipContainerAdvancing]:!e&&i==="advancing",[t.tipContainerRetreating]:!e&&i==="retreating"})} tabindex=0><slot></slot></div>`)}${this.renderPagination()}</section>`}};u("calcite-tip-manager",h);export{h as TipManager};
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v3.1.0-next.0 */
|
|
4
|
+
import{b as T}from"./BUB7E4GE.js";import"./OLXJRGIR.js";import{a as y}from"./RSMRASRN.js";import{a as x}from"./CQ5FVCCX.js";import{a as v}from"./R3FLP5QS.js";import{a as $}from"./MYKRE5QO.js";import{b}from"./WACTC6C2.js";import{e as k}from"./FE2QRVI7.js";import"./7LGBDOYP.js";import{J as u,e as g,f as c,v as m,w as f,x as a}from"./IPEYLL4T.js";var t={header:"header",heading:"heading",close:"close",container:"container",tipContainer:"tip-container",tipContainerAdvancing:"tip-container--advancing",tipContainerRetreating:"tip-container--retreating",pagination:"pagination",pagePosition:"page-position",pageNext:"page-next",pagePrevious:"page-previous"},s={chevronLeft:"chevron-left",chevronRight:"chevron-right",close:"x"},w=g`:host{box-sizing:border-box;display:block;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2);--calcite-tip-manager-height: 19vh}:host *{box-sizing:border-box}:host([closed]){display:none}.header{margin:0;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0;padding:0;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:.5rem}.header{border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);padding-block:0px;padding-inline-end:0px;padding-inline-start:1rem}.header .heading{padding:0;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}.container{position:relative;overflow:hidden;outline-color:transparent;min-block-size:150px}.container: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))))}.tip-container{margin-block-start:1px;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:1rem;outline-color:transparent;animation-name:none;animation-duration:var(--calcite-animation-timing);block-size:var(--calcite-tip-manager-height)}.tip-container: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))))}::slotted(calcite-tip){margin:0;border-style:none;max-inline-size:var(--calcite-tip-max-width)}.tip-container--advancing{animation-name:tip-advance}.tip-container--retreating{animation-name:tip-retreat}.pagination{display:flex;align-items:center;justify-content:center;padding-inline:0px;padding-block:.75rem .5rem}.page-position{margin-block:0px;margin-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}@keyframes tip-advance{0%{opacity:0;transform:translate3d(50px,0,0) scale(.99)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes tip-retreat{0%{opacity:0;transform:translate3d(-50px,0,0) scale(.99)}to{opacity:1;transform:translateZ(0) scale(1)}}:host([hidden]){display:none}[hidden]{display:none}`,h=class extends f{constructor(){super(...arguments),this.messages=$(),this.mutationObserver=v("mutation",()=>this.setUpTips()),this.closed=!1,this.calciteTipManagerClose=m({cancelable:!1})}static{this.properties={direction:16,groupTitle:16,selectedIndex:16,tips:16,total:16,closed:7,headingLevel:11,messageOverrides:0}}static{this.styles=w}async nextTip(){this.direction="advancing";let e=this.selectedIndex+1;this.selectedIndex=(e+this.total)%this.total}async previousTip(){this.direction="retreating";let e=this.selectedIndex-1;this.selectedIndex=(e+this.total)%this.total}connectedCallback(){super.connectedCallback(),this.setUpTips(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async load(){y.deprecated("component",{name:"tip-manager",removalVersion:4,suggested:"carousel"})}willUpdate(e){e.has("closed")&&(this.hasUpdated||this.closed!==!1)&&(this.direction=null),e.has("selectedIndex")&&this.selectedChangeHandler(),e.has("messages")&&this.updateGroupTitle()}loaded(){this.updateGroupTitle()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}selectedChangeHandler(){this.showSelectedTip(),this.updateGroupTitle()}setUpTips(){let e=Array.from(this.el.querySelectorAll("calcite-tip"));if(this.total=e.length,this.total===0)return;let i=this.el.querySelector("calcite-tip[selected]");this.tips=e,this.selectedIndex=i?e.indexOf(i):0,e.forEach(n=>{n.closeDisabled=!0}),this.showSelectedTip()}hideTipManager(){this.closed=!0,this.calciteTipManagerClose.emit()}showSelectedTip(){this.tips.forEach((e,i)=>{let n=this.selectedIndex===i;e.selected=n,e.hidden=!n})}updateGroupTitle(){if(this.tips){let e=this.tips[this.selectedIndex].closest("calcite-tip-group");this.groupTitle=e?.groupTitle||this.messages?.defaultGroupTitle}}previousClicked(){this.previousTip()}nextClicked(){this.nextTip()}tipManagerKeyDownHandler(e){if(e.target===this.container)switch(e.key){case"ArrowRight":e.preventDefault(),this.nextTip();break;case"ArrowLeft":e.preventDefault(),this.previousTip();break;case"Home":e.preventDefault(),this.selectedIndex=0;break;case"End":e.preventDefault(),this.selectedIndex=this.total-1;break}}storeContainerRef(e){this.container=e}renderPagination(){let e=k(this.el),{selectedIndex:i,tips:n,total:r,messages:o}=this,l=o.next,d=o.previous,p=o.defaultPaginationLabel;return n.length>1?c`<footer class=${a(t.pagination)}><calcite-action class=${a(t.pagePrevious)} .icon=${e==="ltr"?s.chevronLeft:s.chevronRight} @click=${this.previousClicked} scale=m .text=${d}></calcite-action><span class=${a(t.pagePosition)}>${`${p} ${i+1}/${r}`}</span><calcite-action class=${a(t.pageNext)} .icon=${e==="ltr"?s.chevronRight:s.chevronLeft} @click=${this.nextClicked} scale=m .text=${l}></calcite-action></footer>`:null}render(){let{closed:e,direction:i,headingLevel:n,groupTitle:r,selectedIndex:o,messages:l,total:d}=this,p=l.close;return d===0?null:c`<section .ariaHidden=${e} class=${a(t.container)} .hidden=${e} @keydown=${this.tipManagerKeyDownHandler} tabindex=0 ${b(this.storeContainerRef)}><header class=${a(t.header)}>${T({class:t.heading,level:n,children:r})}<calcite-action class=${a(t.close)} @click=${this.hideTipManager} scale=m .text=${p}><calcite-icon .icon=${s.close} scale=m></calcite-icon></calcite-action></header>${x(o,c`<div class=${a({[t.tipContainer]:!0,[t.tipContainerAdvancing]:!e&&i==="advancing",[t.tipContainerRetreating]:!e&&i==="retreating"})} tabindex=0><slot></slot></div>`)}${this.renderPagination()}</section>`}};u("calcite-tip-manager",h);export{h as TipManager};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v3.1.0-next.0 */
|
|
4
|
+
import{b as u}from"./BUB7E4GE.js";import"./OLXJRGIR.js";import{a as s}from"./CQ5FVCCX.js";import{b as m}from"./7VOKVNOX.js";import{J as f,e as p,f as o,w as v,x as t,z as e}from"./IPEYLL4T.js";var i={container:"container",containerLink:"container--link",textContainer:"text-container",heading:"heading",description:"description",image:"image",standalone:"standalone",icon:"icon"},x=p`:host{display:inline-flex}.container{margin:0;display:flex;align-items:center;justify-content:center;font-size:var(--calcite-font-size-0);line-height:1.25rem;background-color:var(--calcite-navigation-background-color, var(--calcite-internal-navigation-logo-background-color, var(--calcite-color-foreground-1)));border-block-end:2px solid var(--calcite-color-transparent);transition-property:background-color;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.container--link{cursor:pointer;text-decoration-line:none;outline-color:transparent}:host(:focus) .container--link{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))))}.image,.icon{margin:0;display:flex;block-size:1.75rem;padding-inline:1rem;color:var(--calcite-navigation-logo-text-color, var(--calcite-icon-color, var(--calcite-internal-navigation-logo-text-color, inherit)))}.image~.icon{padding-inline-start:0px}.image~.text-container,.icon~.text-container{padding-inline-start:0px}:host([href]:hover),:host([href]:focus){--calcite-internal-navigation-logo-background-color: var(--calcite-color-foreground-2)}:host([href]:active){--calcite-internal-navigation-logo-background-color: var(--calcite-color-foreground-3)}:host([active]) .container{border-block-end-color:var(--calcite-navigation-accent-color, var(--calcite-color-brand))}:host([active]),:host([href]:active){--calcite-internal-navigation-logo-text-color: var(--calcite-color-brand)}.text-container{margin-block-start:.125rem;display:flex;flex-direction:column;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-inline:1rem;text-align:start}.heading{margin-inline-start:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-navigation-logo-heading-text-color, var(--calcite-color-text-1))}.standalone{font-size:var(--calcite-font-size-1)}.description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-color-text-2);color:var(--calcite-navigation-logo-text-color, var(--calcite-color-text-2));font-size:var(--calcite-font-size--1)}:host([hidden]){display:none}[hidden]{display:none}`,d=class extends v{constructor(){super(...arguments),this.iconFlipRtl=!1}static{this.properties={active:7,description:1,heading:1,headingLevel:11,href:3,icon:3,iconFlipRtl:7,label:1,rel:3,target:3,thumbnail:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=x}async setFocus(){await m(this),this.href&&this.el.focus()}load(){}loaded(){}renderIcon(){return o`<calcite-icon class=${t(i.icon)} .flipRtl=${this.iconFlipRtl} .icon=${this.icon} scale=l></calcite-icon>`}renderHeaderContent(){let{heading:n,headingLevel:a,description:r}=this,c=n?s(i.heading,u({class:{[i.heading]:!0,[i.standalone]:!this.description},level:a,children:n})):null,l=r?s(i.description,o`<span class=${t(i.description)}>${r}</span>`):null;return c||l?s(i.textContainer,o`<div class=${t(i.textContainer)}>${c}${l}</div>`):null}render(){let{icon:n,href:a,label:r,rel:c,target:l,thumbnail:g}=this,h=o`${g&&o`<img alt=${(r||"")??e} class=${t(i.image)} src=${g??e}>`||""}${n&&this.renderIcon()||""}${this.renderHeaderContent()}`;return a?o`<a class=${t({[i.container]:!0,[i.containerLink]:!0})} href=${a??e} rel=${c??e} target=${l??e}>${h}</a>`:o`<div class=${t(i.container)}>${h}</div>`}};f("calcite-navigation-logo",d);export{d as NavigationLogo};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
import{b as Y}from"./6LWRLBVD.js";import"./J7RY7DXT.js";var m={name:"ja",weekdays:"\u65E5\u66DC\u65E5_\u6708\u66DC\u65E5_\u706B\u66DC\u65E5_\u6C34\u66DC\u65E5_\u6728\u66DC\u65E5_\u91D1\u66DC\u65E5_\u571F\u66DC\u65E5".split("_"),weekdaysShort:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),weekdaysMin:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(_){return _+"\u65E5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5(ddd) HH:mm"},meridiem:function(_){return _<12?"\u5348\u524D":"\u5348\u5F8C"},relativeTime:{future:"%s\u5F8C",past:"%s\u524D",s:"\u6570\u79D2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65E5",dd:"%d\u65E5",M:"1\u30F6\u6708",MM:"%d\u30F6\u6708",y:"1\u5E74",yy:"%d\u5E74"}};Y.locale(m,null,!0);var e=m;export{e as default};
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v3.1.0-next.0 */
|
|
4
|
+
import{b as Y}from"./A77PTXQI.js";import"./AFBGRNF3.js";var m={name:"ja",weekdays:"\u65E5\u66DC\u65E5_\u6708\u66DC\u65E5_\u706B\u66DC\u65E5_\u6C34\u66DC\u65E5_\u6728\u66DC\u65E5_\u91D1\u66DC\u65E5_\u571F\u66DC\u65E5".split("_"),weekdaysShort:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),weekdaysMin:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(_){return _+"\u65E5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5(ddd) HH:mm"},meridiem:function(_){return _<12?"\u5348\u524D":"\u5348\u5F8C"},relativeTime:{future:"%s\u5F8C",past:"%s\u524D",s:"\u6570\u79D2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65E5",dd:"%d\u65E5",M:"1\u30F6\u6708",MM:"%d\u30F6\u6708",y:"1\u5E74",yy:"%d\u5E74"}};Y.locale(m,null,!0);var e=m;export{e as default};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* v3.0.0-next.99
|
|
5
|
-
*/
|
|
6
|
-
import{a as ct,b as I,c as D,d as k,e as W,f as lt,g as kt,h as at,i as Z,j as Mt,k as wt,l as tt,m as M,n as et,o as G,q as ft,r as yt}from"./2YSVELPG.js";import{a as Dt}from"./Z2ZTWA3F.js";import{e as Lt}from"./QIOSM7C2.js";import{C as pt,F as xt}from"./XDGCDDNX.js";var vt=["top","right","bottom","left"],Ft=["start","end"],bt=vt.reduce((t,e)=>t.concat(e,e+"-"+Ft[0],e+"-"+Ft[1]),[]),j=Math.min,N=Math.max,ot=Math.round,st=Math.floor,E=t=>({x:t,y:t}),pe={left:"right",right:"left",bottom:"top",top:"bottom"},xe={start:"end",end:"start"};function ut(t,e,n){return N(t,j(e,n))}function _(t,e){return typeof t=="function"?t(e):t}function F(t){return t.split("-")[0]}function S(t){return t.split("-")[1]}function At(t){return t==="x"?"y":"x"}function dt(t){return t==="y"?"height":"width"}function U(t){return["top","bottom"].includes(F(t))?"y":"x"}function mt(t){return At(U(t))}function Ot(t,e,n){n===void 0&&(n=!1);let i=S(t),o=mt(t),r=dt(o),s=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=it(s)),[s,it(s)]}function Bt(t){let e=it(t);return[nt(t),e,nt(e)]}function nt(t){return t.replace(/start|end/g,e=>xe[e])}function we(t,e,n){let i=["left","right"],o=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?r:s;default:return[]}}function $t(t,e,n,i){let o=S(t),r=we(F(t),n==="start",i);return o&&(r=r.map(s=>s+"-"+o),e&&(r=r.concat(r.map(nt)))),r}function it(t){return t.replace(/left|right|bottom|top/g,e=>pe[e])}function ye(t){return{top:0,right:0,bottom:0,left:0,...t}}function Rt(t){return typeof t!="number"?ye(t):{top:t,right:t,bottom:t,left:t}}function q(t){let{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function Wt(t,e,n){let{reference:i,floating:o}=t,r=U(e),s=mt(e),c=dt(s),l=F(e),a=r==="y",d=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,m=i[c]/2-o[c]/2,f;switch(l){case"top":f={x:d,y:i.y-o.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:u};break;case"left":f={x:i.x-o.width,y:u};break;default:f={x:i.x,y:i.y}}switch(S(e)){case"start":f[s]-=m*(n&&a?-1:1);break;case"end":f[s]+=m*(n&&a?-1:1);break}return f}var zt=async(t,e,n)=>{let{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e)),a=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:u}=Wt(a,i,l),m=i,f={},g=0;for(let p=0;p<c.length;p++){let{name:x,fn:h}=c[p],{x:w,y,data:b,reset:v}=await h({x:d,y:u,initialPlacement:i,placement:m,strategy:o,middlewareData:f,rects:a,platform:s,elements:{reference:t,floating:e}});d=w??d,u=y??u,f={...f,[x]:{...f[x],...b}},v&&g<=50&&(g++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):v.rects),{x:d,y:u}=Wt(a,m,l)),p=-1)}return{x:d,y:u,placement:m,strategy:o,middlewareData:f}};async function J(t,e){var n;e===void 0&&(e={});let{x:i,y:o,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:f=0}=_(e,t),g=Rt(f),x=c[m?u==="floating"?"reference":"floating":u],h=q(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(x)))==null||n?x:x.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:d,strategy:l})),w=u==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),b=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},v=q(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:y,strategy:l}):w);return{top:(h.top-v.top+g.top)/b.y,bottom:(v.bottom-h.bottom+g.bottom)/b.y,left:(h.left-v.left+g.left)/b.x,right:(v.right-h.right+g.right)/b.x}}var Vt=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:o,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:d=0}=_(t,e)||{};if(a==null)return{};let u=Rt(d),m={x:n,y:i},f=mt(o),g=dt(f),p=await s.getDimensions(a),x=f==="y",h=x?"top":"left",w=x?"bottom":"right",y=x?"clientHeight":"clientWidth",b=r.reference[g]+r.reference[f]-m[f]-r.floating[g],v=m[f]-r.reference[f],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a)),O=R?R[y]:0;(!O||!await(s.isElement==null?void 0:s.isElement(R)))&&(O=c.floating[y]||r.floating[g]);let H=b/2-v/2,T=O/2-p[g]/2-1,A=j(u[h],T),C=j(u[w],T),B=A,Y=O-p[g]-C,P=O/2-p[g]/2+H,K=ut(B,P,Y),$=!l.arrow&&S(o)!=null&&P!==K&&r.reference[g]/2-(P<B?A:C)-p[g]/2<0,L=$?P<B?P-B:P-Y:0;return{[f]:m[f]+L,data:{[f]:K,centerOffset:P-K-L,...$&&{alignmentOffset:L}},reset:$}}});function ve(t,e,n){return(t?[...n.filter(o=>S(o)===t),...n.filter(o=>S(o)!==t)]:n.filter(o=>F(o)===o)).filter(o=>t?S(o)===t||(e?nt(o)!==o:!1):!0)}var It=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,o;let{rects:r,middlewareData:s,placement:c,platform:l,elements:a}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:m=bt,autoAlignment:f=!0,...g}=_(t,e),p=u!==void 0||m===bt?ve(u||null,f,m):m,x=await J(e,g),h=((n=s.autoPlacement)==null?void 0:n.index)||0,w=p[h];if(w==null)return{};let y=Ot(w,r,await(l.isRTL==null?void 0:l.isRTL(a.floating)));if(c!==w)return{reset:{placement:p[0]}};let b=[x[F(w)],x[y[0]],x[y[1]]],v=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:w,overflows:b}],R=p[h+1];if(R)return{data:{index:h+1,overflows:v},reset:{placement:R}};let O=v.map(A=>{let C=S(A.placement);return[A.placement,C&&d?A.overflows.slice(0,2).reduce((B,Y)=>B+Y,0):A.overflows[0],A.overflows]}).sort((A,C)=>A[1]-C[1]),T=((o=O.filter(A=>A[2].slice(0,S(A[0])?2:3).every(C=>C<=0))[0])==null?void 0:o[0])||O[0][0];return T!==c?{data:{index:h+1,overflows:v},reset:{placement:T}}:{}}}},jt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;let{placement:o,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...x}=_(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};let h=F(o),w=U(c),y=F(c)===c,b=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(y||!p?[it(c)]:Bt(c)),R=g!=="none";!m&&R&&v.push(...$t(c,p,g,b));let O=[c,...v],H=await J(e,x),T=[],A=((i=r.flip)==null?void 0:i.overflows)||[];if(d&&T.push(H[h]),u){let P=Ot(o,s,b);T.push(H[P[0]],H[P[1]])}if(A=[...A,{placement:o,overflows:T}],!T.every(P=>P<=0)){var C,B;let P=(((C=r.flip)==null?void 0:C.index)||0)+1,K=O[P];if(K)return{data:{index:P,overflows:A},reset:{placement:K}};let $=(B=A.filter(L=>L.overflows[0]<=0).sort((L,z)=>L.overflows[1]-z.overflows[1])[0])==null?void 0:B.placement;if(!$)switch(f){case"bestFit":{var Y;let L=(Y=A.filter(z=>{if(R){let V=U(z.placement);return V===w||V==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(V=>V>0).reduce((V,he)=>V+he,0)]).sort((z,V)=>z[1]-V[1])[0])==null?void 0:Y[0];L&&($=L);break}case"initialPlacement":$=c;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Nt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ht(t){return vt.some(e=>t[e]>=0)}var _t=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:i="referenceHidden",...o}=_(t,e);switch(i){case"referenceHidden":{let r=await J(e,{...o,elementContext:"reference"}),s=Nt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ht(s)}}}case"escaped":{let r=await J(e,{...o,altBoundary:!0}),s=Nt(r,n.floating);return{data:{escapedOffsets:s,escaped:Ht(s)}}}default:return{}}}}};async function be(t,e){let{placement:n,platform:i,elements:o}=t,r=await(i.isRTL==null?void 0:i.isRTL(o.floating)),s=F(n),c=S(n),l=U(n)==="y",a=["left","top"].includes(s)?-1:1,d=r&&l?-1:1,u=_(e,t),{mainAxis:m,crossAxis:f,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof g=="number"&&(f=c==="end"?g*-1:g),l?{x:f*d,y:m*a}:{x:m*a,y:f*d}}var Yt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:o,y:r,placement:s,middlewareData:c}=e,l=await be(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:s}}}}},Ut=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:o}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:x=>{let{x:h,y:w}=x;return{x:h,y:w}}},...l}=_(t,e),a={x:n,y:i},d=await J(e,l),u=U(F(o)),m=At(u),f=a[m],g=a[u];if(r){let x=m==="y"?"top":"left",h=m==="y"?"bottom":"right",w=f+d[x],y=f-d[h];f=ut(w,f,y)}if(s){let x=u==="y"?"top":"left",h=u==="y"?"bottom":"right",w=g+d[x],y=g-d[h];g=ut(w,g,y)}let p=c.fn({...e,[m]:f,[u]:g});return{...p,data:{x:p.x-n,y:p.y-i,enabled:{[m]:r,[u]:s}}}}}};function Kt(t){let e=M(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=W(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,c=ot(n)!==r||ot(i)!==s;return c&&(n=r,i=s),{width:n,height:i,$:c}}function Ct(t){return k(t)?t:t.contextElement}function Q(t){let e=Ct(t);if(!W(e))return E(1);let n=e.getBoundingClientRect(),{width:i,height:o,$:r}=Kt(e),s=(r?ot(n.width):n.width)/i,c=(r?ot(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Ae=E(0);function Gt(t){let e=I(t);return!wt()||!e.visualViewport?Ae:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Oe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==I(t)?!1:e}function X(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);let o=t.getBoundingClientRect(),r=Ct(t),s=E(1);e&&(i?k(i)&&(s=Q(i)):s=Q(t));let c=Oe(r,n,i)?Gt(r):E(0),l=(o.left+c.x)/s.x,a=(o.top+c.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(r){let m=I(r),f=i&&k(i)?I(i):i,g=m,p=yt(g);for(;p&&i&&f!==g;){let x=Q(p),h=p.getBoundingClientRect(),w=M(p),y=h.left+(p.clientLeft+parseFloat(w.paddingLeft))*x.x,b=h.top+(p.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,a*=x.y,d*=x.x,u*=x.y,l+=y,a+=b,g=I(p),p=yt(g)}}return q({width:d,height:u,x:l,y:a})}function Et(t,e){let n=et(t).scrollLeft;return e?e.left+n:X(D(t)).left+n}function Jt(t,e,n){n===void 0&&(n=!1);let i=t.getBoundingClientRect(),o=i.left+e.scrollLeft-(n?0:Et(t,i)),r=i.top+e.scrollTop;return{x:o,y:r}}function Re(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t,r=o==="fixed",s=D(i),c=e?at(e.floating):!1;if(i===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},a=E(1),d=E(0),u=W(i);if((u||!u&&!r)&&((ct(i)!=="body"||lt(s))&&(l=et(i)),W(i))){let f=X(i);a=Q(i),d.x=f.x+i.clientLeft,d.y=f.y+i.clientTop}let m=s&&!u&&!r?Jt(s,l,!0):E(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+d.x+m.x,y:n.y*a.y-l.scrollTop*a.y+d.y+m.y}}function Pe(t){return Array.from(t.getClientRects())}function Ce(t){let e=D(t),n=et(t),i=t.ownerDocument.body,o=N(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=N(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+Et(t),c=-n.scrollTop;return M(i).direction==="rtl"&&(s+=N(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:c}}function Ee(t,e){let n=I(t),i=D(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,c=0,l=0;if(o){r=o.width,s=o.height;let a=wt();(!a||a&&e==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:c,y:l}}function Se(t,e){let n=X(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=W(t)?Q(t):E(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=o*r.x,a=i*r.y;return{width:s,height:c,x:l,y:a}}function qt(t,e,n){let i;if(e==="viewport")i=Ee(t,n);else if(e==="document")i=Ce(D(t));else if(k(e))i=Se(e,n);else{let o=Gt(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return q(i)}function Qt(t,e){let n=G(t);return n===e||!k(n)||tt(n)?!1:M(n).position==="fixed"||Qt(n,e)}function Te(t,e){let n=e.get(t);if(n)return n;let i=ft(t,[],!1).filter(c=>k(c)&&ct(c)!=="body"),o=null,r=M(t).position==="fixed",s=r?G(t):t;for(;k(s)&&!tt(s);){let c=M(s),l=Z(s);!l&&c.position==="fixed"&&(o=null),(r?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||lt(s)&&!l&&Qt(t,s))?i=i.filter(d=>d!==s):o=c,s=G(s)}return e.set(t,i),i}function Le(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t,s=[...n==="clippingAncestors"?at(e)?[]:Te(e,this._c):[].concat(n),i],c=s[0],l=s.reduce((a,d)=>{let u=qt(e,d,o);return a.top=N(u.top,a.top),a.right=j(u.right,a.right),a.bottom=j(u.bottom,a.bottom),a.left=N(u.left,a.left),a},qt(e,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function De(t){let{width:e,height:n}=Kt(t);return{width:e,height:n}}function ke(t,e,n){let i=W(e),o=D(e),r=n==="fixed",s=X(t,!0,r,e),c={scrollLeft:0,scrollTop:0},l=E(0);if(i||!i&&!r)if((ct(e)!=="body"||lt(o))&&(c=et(e)),i){let m=X(e,!0,r,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else o&&(l.x=Et(o));let a=o&&!i&&!r?Jt(o,c):E(0),d=s.left+c.scrollLeft-l.x-a.x,u=s.top+c.scrollTop-l.y-a.y;return{x:d,y:u,width:s.width,height:s.height}}function Pt(t){return M(t).position==="static"}function Xt(t,e){if(!W(t)||M(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return D(t)===n&&(n=n.ownerDocument.body),n}function Zt(t,e){let n=I(t);if(at(t))return n;if(!W(t)){let o=G(t);for(;o&&!tt(o);){if(k(o)&&!Pt(o))return o;o=G(o)}return n}let i=Xt(t,e);for(;i&&kt(i)&&Pt(i);)i=Xt(i,e);return i&&tt(i)&&Pt(i)&&!Z(i)?n:i||Mt(t)||n}var Me=async function(t){let e=this.getOffsetParent||Zt,n=this.getDimensions,i=await n(t.floating);return{reference:ke(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Fe(t){return M(t).direction==="rtl"}var gt={convertOffsetParentRelativeRectToViewportRelativeRect:Re,getDocumentElement:D,getClippingRect:Le,getOffsetParent:Zt,getElementRects:Me,getClientRects:Pe,getDimensions:De,getScale:Q,isElement:k,isRTL:Fe};function te(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Be(t,e){let n=null,i,o=D(t);function r(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();let a=t.getBoundingClientRect(),{left:d,top:u,width:m,height:f}=a;if(c||e(),!m||!f)return;let g=st(u),p=st(o.clientWidth-(d+m)),x=st(o.clientHeight-(u+f)),h=st(d),y={rootMargin:-g+"px "+-p+"px "+-x+"px "+-h+"px",threshold:N(0,j(1,l))||1},b=!0;function v(R){let O=R[0].intersectionRatio;if(O!==l){if(!b)return s();O?s(!1,O):i=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!te(a,t.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(v,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(v,y)}n.observe(t)}return s(!0),r}function ee(t,e,n,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,a=Ct(t),d=o||r?[...a?ft(a):[],...ft(e)]:[];d.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),r&&h.addEventListener("resize",n)});let u=a&&c?Be(a,n):null,m=-1,f=null;s&&(f=new ResizeObserver(h=>{let[w]=h;w&&w.target===a&&f&&(f.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(e)})),n()}),a&&!l&&f.observe(a),f.observe(e));let g,p=l?X(t):null;l&&x();function x(){let h=X(t);p&&!te(p,h)&&n(),p=h,g=requestAnimationFrame(x)}return n(),()=>{var h;d.forEach(w=>{o&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),u?.(),(h=f)==null||h.disconnect(),f=null,l&&cancelAnimationFrame(g)}}var ne=Yt,ie=It,oe=Ut,St=jt;var se=_t,re=Vt;var ce=(t,e,n)=>{let i=new Map,o={platform:gt,...n},r={...o.platform,_c:i};return zt(t,e,{...o,platform:r})};function le(t){return $e(t)}function Tt(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function $e(t){for(let e=t;e;e=Tt(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Tt(t);e;e=Tt(e)){if(!(e instanceof Element))continue;let n=getComputedStyle(e);if(n.display!=="contents"&&(n.position!=="static"||Z(n)||e.tagName==="BODY"))return e}return null}(function(){if(xt()){let t=gt.getOffsetParent;gt.getOffsetParent=e=>t(e,le)}})();function ae(t){let e=window.devicePixelRatio||1;return Math.round(t*e)/e}var me=async(t,{referenceEl:e,floatingEl:n,overlayPositioning:i="absolute",placement:o,flipDisabled:r,flipPlacements:s,offsetDistance:c,offsetSkidding:l,arrowEl:a,type:d})=>{if(!e||!n)return;let u=Lt(n)==="rtl",{x:m,y:f,placement:g,strategy:p,middlewareData:x}=await ce(e,n,{strategy:i,placement:o==="auto"||o==="auto-start"||o==="auto-end"?void 0:ue(o,u),middleware:Ne({placement:o,flipDisabled:r,flipPlacements:s?.map(y=>ue(y,u)),offsetDistance:c,offsetSkidding:l,arrowEl:a,type:d})});if(a&&x.arrow){let{x:y,y:b}=x.arrow,v=g.split("-")[0],R=y!=null?"left":"top",O=ze[v],H={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout=v==="left"||v==="right"?"horizontal":"vertical"),Object.assign(a.style,{...H,[R]:`${R=="left"?y:b}px`,[v]:"100%",transform:O})}let h=x.hide?.referenceHidden?"hidden":null,w=h?"none":null;n.setAttribute(We,g),Object.assign(n.style,{pointerEvents:w,position:p,transform:`translate(${ae(m)}px,${ae(f)}px)`,visibility:h})},We="data-placement",fe=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end","leading","trailing","leading-start","leading-end","trailing-start","trailing-end"],ln="bottom-start",an="bottom-end",fn={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active",arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"};function Ne({placement:t,flipDisabled:e,flipPlacements:n,offsetDistance:i,offsetSkidding:o,arrowEl:r,type:s}){let c=[oe(),se()];if(s==="menu")return[...c,St({fallbackPlacements:n||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if(s==="popover"||s==="tooltip"){let l=[...c,ne({mainAxis:typeof i=="number"?i:0,crossAxis:typeof o=="number"?o:0})];return t==="auto"||t==="auto-start"||t==="auto-end"?l.push(ie({alignment:t==="auto-start"?"start":t==="auto-end"?"end":null})):e||l.push(St(n?{fallbackPlacements:n}:{})),r&&l.push(re({element:r})),l}return[]}function un(t,e){let n=t.filter(i=>fe.includes(i));return n.length!==t.length&&console.warn(`${e.tagName}: Invalid value found in: flipPlacements. Try any of these: ${fe.map(i=>`"${i}"`).join(", ").trim()}`,{el:e}),n}function ue(t,e=!1){let n=["left","right"];return e&&n.reverse(),t.replace(/leading/gi,n[0]).replace(/trailing/gi,n[1])}async function dn(t,e,n=!1){if(!(!t.open||!e.floatingEl||!e.referenceEl)){if(Object.assign(e.floatingEl.style,{display:"block",position:e.overlayPositioning??"absolute"}),!rt.get(t))return ge(t);await(n?He(t):me)(t,e)}}function He(t){let e=ht.get(t);return e||(e=Dt(me,pt.reposition,{leading:!0,maxWait:pt.reposition}),ht.set(t,e),e)}var ze={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},rt=new WeakMap,ht=new WeakMap;async function ge(t){let{referenceEl:e,floatingEl:n}=t;if(!n.isConnected)return;let i=xt()?ee:(s,c,l)=>(l(),()=>{});rt.set(t,{state:"pending"});let o,r=i(e,n,()=>{let s=t.reposition();o||(o=s)});return rt.set(t,{state:"active",cleanUp:r}),o}function Ve(t){let{floatingEl:e}=t;e&&Object.assign(e.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}async function mn(t){let{floatingEl:e,referenceEl:n}=t;if(Ve(t),!(!e||!n)&&(Ie(t),!!t.open))return ge(t)}function Ie(t){let{floatingEl:e,referenceEl:n}=t;if(!e||!n)return;let i=rt.get(t);i?.state==="active"&&i.cleanUp(),rt.delete(t),ht.get(t)?.cancel(),ht.delete(t)}var de=4,gn=Math.ceil(Math.hypot(de,de));export{ln as a,an as b,fn as c,un as d,dn as e,Ve as f,mn as g,Ie as h,gn as i};
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v3.1.0-next.0 */
|
|
4
|
+
import{a as ct,b as I,c as D,d as M,e as W,f as lt,g as Mt,h as at,i as Z,j as kt,k as wt,l as tt,m as k,n as et,o as G,q as ft,r as yt}from"./CVPHYVRS.js";import{a as Dt}from"./ERNMRUWX.js";import{e as Lt}from"./FE2QRVI7.js";import{D as pt,G as xt}from"./IPEYLL4T.js";var vt=["top","right","bottom","left"],Ft=["start","end"],bt=vt.reduce((t,e)=>t.concat(e,e+"-"+Ft[0],e+"-"+Ft[1]),[]),j=Math.min,N=Math.max,ot=Math.round,st=Math.floor,E=t=>({x:t,y:t}),pe={left:"right",right:"left",bottom:"top",top:"bottom"},xe={start:"end",end:"start"};function ut(t,e,n){return N(t,j(e,n))}function _(t,e){return typeof t=="function"?t(e):t}function F(t){return t.split("-")[0]}function S(t){return t.split("-")[1]}function At(t){return t==="x"?"y":"x"}function dt(t){return t==="y"?"height":"width"}function U(t){return["top","bottom"].includes(F(t))?"y":"x"}function mt(t){return At(U(t))}function Ot(t,e,n){n===void 0&&(n=!1);let i=S(t),o=mt(t),r=dt(o),s=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=it(s)),[s,it(s)]}function Bt(t){let e=it(t);return[nt(t),e,nt(e)]}function nt(t){return t.replace(/start|end/g,e=>xe[e])}function we(t,e,n){let i=["left","right"],o=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?r:s;default:return[]}}function $t(t,e,n,i){let o=S(t),r=we(F(t),n==="start",i);return o&&(r=r.map(s=>s+"-"+o),e&&(r=r.concat(r.map(nt)))),r}function it(t){return t.replace(/left|right|bottom|top/g,e=>pe[e])}function ye(t){return{top:0,right:0,bottom:0,left:0,...t}}function Rt(t){return typeof t!="number"?ye(t):{top:t,right:t,bottom:t,left:t}}function q(t){let{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function Wt(t,e,n){let{reference:i,floating:o}=t,r=U(e),s=mt(e),c=dt(s),l=F(e),a=r==="y",d=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,m=i[c]/2-o[c]/2,f;switch(l){case"top":f={x:d,y:i.y-o.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:u};break;case"left":f={x:i.x-o.width,y:u};break;default:f={x:i.x,y:i.y}}switch(S(e)){case"start":f[s]-=m*(n&&a?-1:1);break;case"end":f[s]+=m*(n&&a?-1:1);break}return f}var zt=async(t,e,n)=>{let{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e)),a=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:u}=Wt(a,i,l),m=i,f={},g=0;for(let p=0;p<c.length;p++){let{name:x,fn:h}=c[p],{x:w,y,data:b,reset:v}=await h({x:d,y:u,initialPlacement:i,placement:m,strategy:o,middlewareData:f,rects:a,platform:s,elements:{reference:t,floating:e}});d=w??d,u=y??u,f={...f,[x]:{...f[x],...b}},v&&g<=50&&(g++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):v.rects),{x:d,y:u}=Wt(a,m,l)),p=-1)}return{x:d,y:u,placement:m,strategy:o,middlewareData:f}};async function J(t,e){var n;e===void 0&&(e={});let{x:i,y:o,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:f=0}=_(e,t),g=Rt(f),x=c[m?u==="floating"?"reference":"floating":u],h=q(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(x)))==null||n?x:x.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:d,strategy:l})),w=u==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),b=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},v=q(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:y,strategy:l}):w);return{top:(h.top-v.top+g.top)/b.y,bottom:(v.bottom-h.bottom+g.bottom)/b.y,left:(h.left-v.left+g.left)/b.x,right:(v.right-h.right+g.right)/b.x}}var Vt=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:o,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:d=0}=_(t,e)||{};if(a==null)return{};let u=Rt(d),m={x:n,y:i},f=mt(o),g=dt(f),p=await s.getDimensions(a),x=f==="y",h=x?"top":"left",w=x?"bottom":"right",y=x?"clientHeight":"clientWidth",b=r.reference[g]+r.reference[f]-m[f]-r.floating[g],v=m[f]-r.reference[f],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a)),O=R?R[y]:0;(!O||!await(s.isElement==null?void 0:s.isElement(R)))&&(O=c.floating[y]||r.floating[g]);let H=b/2-v/2,T=O/2-p[g]/2-1,A=j(u[h],T),C=j(u[w],T),B=A,Y=O-p[g]-C,P=O/2-p[g]/2+H,K=ut(B,P,Y),$=!l.arrow&&S(o)!=null&&P!==K&&r.reference[g]/2-(P<B?A:C)-p[g]/2<0,L=$?P<B?P-B:P-Y:0;return{[f]:m[f]+L,data:{[f]:K,centerOffset:P-K-L,...$&&{alignmentOffset:L}},reset:$}}});function ve(t,e,n){return(t?[...n.filter(o=>S(o)===t),...n.filter(o=>S(o)!==t)]:n.filter(o=>F(o)===o)).filter(o=>t?S(o)===t||(e?nt(o)!==o:!1):!0)}var It=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,o;let{rects:r,middlewareData:s,placement:c,platform:l,elements:a}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:m=bt,autoAlignment:f=!0,...g}=_(t,e),p=u!==void 0||m===bt?ve(u||null,f,m):m,x=await J(e,g),h=((n=s.autoPlacement)==null?void 0:n.index)||0,w=p[h];if(w==null)return{};let y=Ot(w,r,await(l.isRTL==null?void 0:l.isRTL(a.floating)));if(c!==w)return{reset:{placement:p[0]}};let b=[x[F(w)],x[y[0]],x[y[1]]],v=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:w,overflows:b}],R=p[h+1];if(R)return{data:{index:h+1,overflows:v},reset:{placement:R}};let O=v.map(A=>{let C=S(A.placement);return[A.placement,C&&d?A.overflows.slice(0,2).reduce((B,Y)=>B+Y,0):A.overflows[0],A.overflows]}).sort((A,C)=>A[1]-C[1]),T=((o=O.filter(A=>A[2].slice(0,S(A[0])?2:3).every(C=>C<=0))[0])==null?void 0:o[0])||O[0][0];return T!==c?{data:{index:h+1,overflows:v},reset:{placement:T}}:{}}}},jt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;let{placement:o,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...x}=_(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};let h=F(o),w=U(c),y=F(c)===c,b=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(y||!p?[it(c)]:Bt(c)),R=g!=="none";!m&&R&&v.push(...$t(c,p,g,b));let O=[c,...v],H=await J(e,x),T=[],A=((i=r.flip)==null?void 0:i.overflows)||[];if(d&&T.push(H[h]),u){let P=Ot(o,s,b);T.push(H[P[0]],H[P[1]])}if(A=[...A,{placement:o,overflows:T}],!T.every(P=>P<=0)){var C,B;let P=(((C=r.flip)==null?void 0:C.index)||0)+1,K=O[P];if(K)return{data:{index:P,overflows:A},reset:{placement:K}};let $=(B=A.filter(L=>L.overflows[0]<=0).sort((L,z)=>L.overflows[1]-z.overflows[1])[0])==null?void 0:B.placement;if(!$)switch(f){case"bestFit":{var Y;let L=(Y=A.filter(z=>{if(R){let V=U(z.placement);return V===w||V==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(V=>V>0).reduce((V,he)=>V+he,0)]).sort((z,V)=>z[1]-V[1])[0])==null?void 0:Y[0];L&&($=L);break}case"initialPlacement":$=c;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Nt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ht(t){return vt.some(e=>t[e]>=0)}var _t=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:i="referenceHidden",...o}=_(t,e);switch(i){case"referenceHidden":{let r=await J(e,{...o,elementContext:"reference"}),s=Nt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ht(s)}}}case"escaped":{let r=await J(e,{...o,altBoundary:!0}),s=Nt(r,n.floating);return{data:{escapedOffsets:s,escaped:Ht(s)}}}default:return{}}}}};async function be(t,e){let{placement:n,platform:i,elements:o}=t,r=await(i.isRTL==null?void 0:i.isRTL(o.floating)),s=F(n),c=S(n),l=U(n)==="y",a=["left","top"].includes(s)?-1:1,d=r&&l?-1:1,u=_(e,t),{mainAxis:m,crossAxis:f,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof g=="number"&&(f=c==="end"?g*-1:g),l?{x:f*d,y:m*a}:{x:m*a,y:f*d}}var Yt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:o,y:r,placement:s,middlewareData:c}=e,l=await be(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:s}}}}},Ut=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:o}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:x=>{let{x:h,y:w}=x;return{x:h,y:w}}},...l}=_(t,e),a={x:n,y:i},d=await J(e,l),u=U(F(o)),m=At(u),f=a[m],g=a[u];if(r){let x=m==="y"?"top":"left",h=m==="y"?"bottom":"right",w=f+d[x],y=f-d[h];f=ut(w,f,y)}if(s){let x=u==="y"?"top":"left",h=u==="y"?"bottom":"right",w=g+d[x],y=g-d[h];g=ut(w,g,y)}let p=c.fn({...e,[m]:f,[u]:g});return{...p,data:{x:p.x-n,y:p.y-i,enabled:{[m]:r,[u]:s}}}}}};function Kt(t){let e=k(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=W(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,c=ot(n)!==r||ot(i)!==s;return c&&(n=r,i=s),{width:n,height:i,$:c}}function Ct(t){return M(t)?t:t.contextElement}function Q(t){let e=Ct(t);if(!W(e))return E(1);let n=e.getBoundingClientRect(),{width:i,height:o,$:r}=Kt(e),s=(r?ot(n.width):n.width)/i,c=(r?ot(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Ae=E(0);function Gt(t){let e=I(t);return!wt()||!e.visualViewport?Ae:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Oe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==I(t)?!1:e}function X(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);let o=t.getBoundingClientRect(),r=Ct(t),s=E(1);e&&(i?M(i)&&(s=Q(i)):s=Q(t));let c=Oe(r,n,i)?Gt(r):E(0),l=(o.left+c.x)/s.x,a=(o.top+c.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(r){let m=I(r),f=i&&M(i)?I(i):i,g=m,p=yt(g);for(;p&&i&&f!==g;){let x=Q(p),h=p.getBoundingClientRect(),w=k(p),y=h.left+(p.clientLeft+parseFloat(w.paddingLeft))*x.x,b=h.top+(p.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,a*=x.y,d*=x.x,u*=x.y,l+=y,a+=b,g=I(p),p=yt(g)}}return q({width:d,height:u,x:l,y:a})}function Et(t,e){let n=et(t).scrollLeft;return e?e.left+n:X(D(t)).left+n}function Jt(t,e,n){n===void 0&&(n=!1);let i=t.getBoundingClientRect(),o=i.left+e.scrollLeft-(n?0:Et(t,i)),r=i.top+e.scrollTop;return{x:o,y:r}}function Re(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t,r=o==="fixed",s=D(i),c=e?at(e.floating):!1;if(i===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},a=E(1),d=E(0),u=W(i);if((u||!u&&!r)&&((ct(i)!=="body"||lt(s))&&(l=et(i)),W(i))){let f=X(i);a=Q(i),d.x=f.x+i.clientLeft,d.y=f.y+i.clientTop}let m=s&&!u&&!r?Jt(s,l,!0):E(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+d.x+m.x,y:n.y*a.y-l.scrollTop*a.y+d.y+m.y}}function Pe(t){return Array.from(t.getClientRects())}function Ce(t){let e=D(t),n=et(t),i=t.ownerDocument.body,o=N(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=N(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+Et(t),c=-n.scrollTop;return k(i).direction==="rtl"&&(s+=N(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:c}}function Ee(t,e){let n=I(t),i=D(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,c=0,l=0;if(o){r=o.width,s=o.height;let a=wt();(!a||a&&e==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:c,y:l}}function Se(t,e){let n=X(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=W(t)?Q(t):E(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=o*r.x,a=i*r.y;return{width:s,height:c,x:l,y:a}}function qt(t,e,n){let i;if(e==="viewport")i=Ee(t,n);else if(e==="document")i=Ce(D(t));else if(M(e))i=Se(e,n);else{let o=Gt(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return q(i)}function Qt(t,e){let n=G(t);return n===e||!M(n)||tt(n)?!1:k(n).position==="fixed"||Qt(n,e)}function Te(t,e){let n=e.get(t);if(n)return n;let i=ft(t,[],!1).filter(c=>M(c)&&ct(c)!=="body"),o=null,r=k(t).position==="fixed",s=r?G(t):t;for(;M(s)&&!tt(s);){let c=k(s),l=Z(s);!l&&c.position==="fixed"&&(o=null),(r?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||lt(s)&&!l&&Qt(t,s))?i=i.filter(d=>d!==s):o=c,s=G(s)}return e.set(t,i),i}function Le(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t,s=[...n==="clippingAncestors"?at(e)?[]:Te(e,this._c):[].concat(n),i],c=s[0],l=s.reduce((a,d)=>{let u=qt(e,d,o);return a.top=N(u.top,a.top),a.right=j(u.right,a.right),a.bottom=j(u.bottom,a.bottom),a.left=N(u.left,a.left),a},qt(e,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function De(t){let{width:e,height:n}=Kt(t);return{width:e,height:n}}function Me(t,e,n){let i=W(e),o=D(e),r=n==="fixed",s=X(t,!0,r,e),c={scrollLeft:0,scrollTop:0},l=E(0);if(i||!i&&!r)if((ct(e)!=="body"||lt(o))&&(c=et(e)),i){let m=X(e,!0,r,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else o&&(l.x=Et(o));let a=o&&!i&&!r?Jt(o,c):E(0),d=s.left+c.scrollLeft-l.x-a.x,u=s.top+c.scrollTop-l.y-a.y;return{x:d,y:u,width:s.width,height:s.height}}function Pt(t){return k(t).position==="static"}function Xt(t,e){if(!W(t)||k(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return D(t)===n&&(n=n.ownerDocument.body),n}function Zt(t,e){let n=I(t);if(at(t))return n;if(!W(t)){let o=G(t);for(;o&&!tt(o);){if(M(o)&&!Pt(o))return o;o=G(o)}return n}let i=Xt(t,e);for(;i&&Mt(i)&&Pt(i);)i=Xt(i,e);return i&&tt(i)&&Pt(i)&&!Z(i)?n:i||kt(t)||n}var ke=async function(t){let e=this.getOffsetParent||Zt,n=this.getDimensions,i=await n(t.floating);return{reference:Me(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Fe(t){return k(t).direction==="rtl"}var gt={convertOffsetParentRelativeRectToViewportRelativeRect:Re,getDocumentElement:D,getClippingRect:Le,getOffsetParent:Zt,getElementRects:ke,getClientRects:Pe,getDimensions:De,getScale:Q,isElement:M,isRTL:Fe};function te(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Be(t,e){let n=null,i,o=D(t);function r(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();let a=t.getBoundingClientRect(),{left:d,top:u,width:m,height:f}=a;if(c||e(),!m||!f)return;let g=st(u),p=st(o.clientWidth-(d+m)),x=st(o.clientHeight-(u+f)),h=st(d),y={rootMargin:-g+"px "+-p+"px "+-x+"px "+-h+"px",threshold:N(0,j(1,l))||1},b=!0;function v(R){let O=R[0].intersectionRatio;if(O!==l){if(!b)return s();O?s(!1,O):i=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!te(a,t.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(v,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(v,y)}n.observe(t)}return s(!0),r}function ee(t,e,n,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,a=Ct(t),d=o||r?[...a?ft(a):[],...ft(e)]:[];d.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),r&&h.addEventListener("resize",n)});let u=a&&c?Be(a,n):null,m=-1,f=null;s&&(f=new ResizeObserver(h=>{let[w]=h;w&&w.target===a&&f&&(f.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(e)})),n()}),a&&!l&&f.observe(a),f.observe(e));let g,p=l?X(t):null;l&&x();function x(){let h=X(t);p&&!te(p,h)&&n(),p=h,g=requestAnimationFrame(x)}return n(),()=>{var h;d.forEach(w=>{o&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),u?.(),(h=f)==null||h.disconnect(),f=null,l&&cancelAnimationFrame(g)}}var ne=Yt,ie=It,oe=Ut,St=jt;var se=_t,re=Vt;var ce=(t,e,n)=>{let i=new Map,o={platform:gt,...n},r={...o.platform,_c:i};return zt(t,e,{...o,platform:r})};function le(t){return $e(t)}function Tt(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function $e(t){for(let e=t;e;e=Tt(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Tt(t);e;e=Tt(e)){if(!(e instanceof Element))continue;let n=getComputedStyle(e);if(n.display!=="contents"&&(n.position!=="static"||Z(n)||e.tagName==="BODY"))return e}return null}(function(){if(xt()){let t=gt.getOffsetParent;gt.getOffsetParent=e=>t(e,le)}})();function ae(t){let e=window.devicePixelRatio||1;return Math.round(t*e)/e}var me=async(t,{referenceEl:e,floatingEl:n,overlayPositioning:i="absolute",placement:o,flipDisabled:r,flipPlacements:s,offsetDistance:c,offsetSkidding:l,arrowEl:a,type:d})=>{if(!e||!n)return;let u=Lt(n)==="rtl",{x:m,y:f,placement:g,strategy:p,middlewareData:x}=await ce(e,n,{strategy:i,placement:o==="auto"||o==="auto-start"||o==="auto-end"?void 0:ue(o,u),middleware:Ne({placement:o,flipDisabled:r,flipPlacements:s?.map(y=>ue(y,u)),offsetDistance:c,offsetSkidding:l,arrowEl:a,type:d})});if(a&&x.arrow){let{x:y,y:b}=x.arrow,v=g.split("-")[0],R=y!=null?"left":"top",O=ze[v],H={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout=v==="left"||v==="right"?"horizontal":"vertical"),Object.assign(a.style,{...H,[R]:`${R=="left"?y:b}px`,[v]:"100%",transform:O})}let h=x.hide?.referenceHidden?"hidden":null,w=h?"none":null;n.setAttribute(We,g),Object.assign(n.style,{pointerEvents:w,position:p,transform:`translate(${ae(m)}px,${ae(f)}px)`,visibility:h})},We="data-placement",fe=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end","leading","trailing","leading-start","leading-end","trailing-start","trailing-end"],ln="bottom-start",an="bottom-end",fn={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active"};function Ne({placement:t,flipDisabled:e,flipPlacements:n,offsetDistance:i,offsetSkidding:o,arrowEl:r,type:s}){let c=[oe(),se()];if(s==="menu")return[...c,St({fallbackPlacements:n||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if(s==="popover"||s==="tooltip"){let l=[...c,ne({mainAxis:typeof i=="number"?i:0,crossAxis:typeof o=="number"?o:0})];return t==="auto"||t==="auto-start"||t==="auto-end"?l.push(ie({alignment:t==="auto-start"?"start":t==="auto-end"?"end":null})):e||l.push(St(n?{fallbackPlacements:n}:{})),r&&l.push(re({element:r})),l}return[]}function un(t,e){let n=t.filter(i=>fe.includes(i));return n.length!==t.length&&console.warn(`${e.tagName}: Invalid value found in: flipPlacements. Try any of these: ${fe.map(i=>`"${i}"`).join(", ").trim()}`,{el:e}),n}function ue(t,e=!1){let n=["left","right"];return e&&n.reverse(),t.replace(/leading/gi,n[0]).replace(/trailing/gi,n[1])}async function dn(t,e,n=!1){if(!(!t.open||!e.floatingEl||!e.referenceEl)){if(Object.assign(e.floatingEl.style,{display:"block",position:e.overlayPositioning??"absolute"}),!rt.get(t))return ge(t);await(n?He(t):me)(t,e)}}function He(t){let e=ht.get(t);return e||(e=Dt(me,pt.reposition,{leading:!0,maxWait:pt.reposition}),ht.set(t,e),e)}var ze={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},rt=new WeakMap,ht=new WeakMap;async function ge(t){let{referenceEl:e,floatingEl:n}=t;if(!n.isConnected)return;let i=xt()?ee:(s,c,l)=>(l(),()=>{});rt.set(t,{state:"pending"});let o,r=i(e,n,()=>{let s=t.reposition();o||(o=s)});return rt.set(t,{state:"active",cleanUp:r}),o}function Ve(t){let{floatingEl:e}=t;e&&Object.assign(e.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}async function mn(t){let{floatingEl:e,referenceEl:n}=t;if(Ve(t),!(!e||!n)&&(Ie(t),!!t.open))return ge(t)}function Ie(t){let{floatingEl:e,referenceEl:n}=t;if(!e||!n)return;let i=rt.get(t);i?.state==="active"&&i.cleanUp(),rt.delete(t),ht.get(t)?.cancel(),ht.delete(t)}var de=4,gn=Math.ceil(Math.hypot(de,de));export{ln as a,an as b,fn as c,un as d,dn as e,Ve as f,mn as g,Ie as h,gn as i};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
import{a,b as d}from"./MRVEUN2O.js";import{a as l}from"./JFBHBHJE.js";import{I as o,d as t,e as s,v as i}from"./XDGCDDNX.js";var r=t`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-wrap:wrap}:host ::slotted(calcite-tile-select){margin-block-end:1px;margin-inline-end:1px}:host([layout=vertical]){flex-direction:column}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,e=class extends i{constructor(){super(...arguments),this.disabled=!1,this.layout="horizontal"}static{this.properties={disabled:7,layout:3}}static{this.styles=r}load(){l.deprecated("component",{name:"tile-select-group",removalVersion:4,suggested:["tile","tile-group"]})}updated(){a(this)}render(){return d({disabled:this.disabled,children:s`<slot></slot>`})}};o("calcite-tile-select-group",e);export{e as TileSelectGroup};
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v3.1.0-next.0 */
|
|
4
|
+
import{a,b as d}from"./RAA7AM6M.js";import{a as l}from"./RSMRASRN.js";import{J as o,e as t,f as s,w as i}from"./IPEYLL4T.js";var r=t`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-wrap:wrap}:host ::slotted(calcite-tile-select){margin-block-end:1px;margin-inline-end:1px}:host([layout=vertical]){flex-direction:column}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,e=class extends i{constructor(){super(...arguments),this.disabled=!1,this.layout="horizontal"}static{this.properties={disabled:7,layout:3}}static{this.styles=r}load(){l.deprecated("component",{name:"tile-select-group",removalVersion:4,suggested:["tile","tile-group"]})}updated(){a(this)}render(){return d({disabled:this.disabled,children:s`<slot></slot>`})}};o("calcite-tile-select-group",e);export{e as TileSelectGroup};
|