@esri/calcite-components 3.0.0-next.115 → 3.0.0-next.117
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/{MYDQXIYW.js → 26DNRHEP.js} +2 -2
- package/dist/calcite/{BTTWUBBE.js → 27Y67DBI.js} +2 -2
- package/dist/calcite/{I4RTBZDX.js → 2GFKZ4SX.js} +2 -2
- package/dist/calcite/{DNUG3USD.js → 2LCGDIQP.js} +2 -2
- package/dist/calcite/{6IAQFRDM.js → 2YOGCLLU.js} +2 -2
- package/dist/calcite/{25NS55HK.js → 3DKONFQG.js} +2 -2
- package/dist/calcite/{ZBPUBZJ2.js → 3T65VSUF.js} +2 -2
- package/dist/calcite/{5QEV4QON.js → 3UCZVSNW.js} +2 -2
- package/dist/calcite/{SDO6C7TF.js → 3VZJMF6G.js} +2 -2
- package/dist/calcite/{4PSKWPD6.js → 46R3PPKK.js} +1 -1
- package/dist/calcite/{ERURQZLE.js → 4A7AWENG.js} +2 -2
- package/dist/calcite/{CWT7PXCA.js → 4HTYUPVC.js} +2 -2
- package/dist/calcite/{7PVVLVDW.js → 4KGGSPBN.js} +2 -2
- package/dist/calcite/{2VPXP5BP.js → 4LJESZAP.js} +2 -2
- package/dist/calcite/{L62IFDKA.js → 4NKURAVQ.js} +2 -2
- package/dist/calcite/{3E2SDF6A.js → 4ON2KN6V.js} +2 -2
- package/dist/calcite/{Z6FVE576.js → 4UFZECXF.js} +1 -1
- package/dist/calcite/{STJ25RWR.js → 534KXK53.js} +2 -2
- package/dist/calcite/{3QFOP4ZU.js → 563JOO5R.js} +2 -2
- package/dist/calcite/{OZEYNZT4.js → 5E3IQS4O.js} +2 -2
- package/dist/calcite/{Z5BRDTPF.js → 5HTVLFU4.js} +2 -2
- package/dist/calcite/{7PCJ2BHX.js → 5KWWP33G.js} +2 -2
- package/dist/calcite/{I23ECZLB.js → 5P6T6G2T.js} +2 -2
- package/dist/calcite/{R7NL3CMC.js → 5PCQ2NLK.js} +2 -2
- package/dist/calcite/{T7X6CLRG.js → 5W5YEGRA.js} +2 -2
- package/dist/calcite/{IMY6DMH4.js → 5YWMVFC5.js} +2 -2
- package/dist/calcite/{N2JZXDZC.js → 5ZK2S2KP.js} +1 -1
- package/dist/calcite/{VT7GLU2J.js → 634PTTUG.js} +1 -1
- package/dist/calcite/{GZJIGTO2.js → 64WLUKE5.js} +2 -2
- package/dist/calcite/{JUJHD7K3.js → 6CTVFBAN.js} +2 -2
- package/dist/calcite/{25HSDJMY.js → 6ECQUEVC.js} +2 -2
- package/dist/calcite/{PAO3LFRP.js → 6F36NQFM.js} +2 -2
- package/dist/calcite/{GXD45MYM.js → 6OPI6JYB.js} +1 -1
- package/dist/calcite/{NIW223G4.js → 6WE2Y4FR.js} +2 -2
- package/dist/calcite/{Y2HDLLXA.js → 6WLLA3MH.js} +2 -2
- package/dist/calcite/{PLHFG2Q3.js → 745TZ3E6.js} +2 -2
- package/dist/calcite/{J73AOQTB.js → 7DWUDE2F.js} +2 -2
- package/dist/calcite/{GLUIN3SS.js → 7FTOQDD3.js} +2 -2
- package/dist/calcite/{5SKCQOD6.js → 7FXUFA4W.js} +2 -2
- package/dist/calcite/{BDXPLRQH.js → 7KSIHYEF.js} +1 -1
- package/dist/calcite/{SWC27EPN.js → 7UGMRND6.js} +2 -2
- package/dist/calcite/{MSMG3HEO.js → 7XWRKRGF.js} +2 -2
- package/dist/calcite/{7IUHJGUA.js → A3DUHMRS.js} +2 -2
- package/dist/calcite/{TCGRSWYT.js → A6YBHUQ3.js} +2 -2
- package/dist/calcite/{FS6M6I6O.js → AA6RG5TX.js} +2 -2
- package/dist/calcite/{JNAIWCIS.js → AD4JINGW.js} +2 -2
- package/dist/calcite/{7MQIJ3FY.js → AFTGSBJK.js} +2 -2
- package/dist/calcite/{FBZZHW7F.js → ANTTFXC6.js} +2 -2
- package/dist/calcite/{AHWM6UKV.js → AR2VLFGI.js} +2 -2
- package/dist/calcite/{NL3DG33P.js → AY3J3BC6.js} +2 -2
- package/dist/calcite/{FDERIJG4.js → AYLUSRPY.js} +2 -2
- package/dist/calcite/{3ANCN5JV.js → BEV36OHY.js} +2 -2
- package/dist/calcite/{CQ33ZETJ.js → BRMYFTGC.js} +2 -2
- package/dist/calcite/{IYNJP6F4.js → BVGSTO4M.js} +2 -2
- package/dist/calcite/{XNHDC74A.js → BYIZJMNN.js} +2 -2
- package/dist/calcite/{3QET7SYF.js → C2RWWHVF.js} +2 -2
- package/dist/calcite/{E4BELKUH.js → C3NLTU6R.js} +2 -2
- package/dist/calcite/{C27BM6X2.js → CAAH3B6E.js} +2 -2
- package/dist/calcite/{P3TSLQ6O.js → CJ6TB6XD.js} +2 -2
- package/dist/calcite/{BKT4POYM.js → CKDBMASY.js} +2 -2
- package/dist/calcite/{JYL4PWGK.js → CPZAOVKQ.js} +2 -2
- package/dist/calcite/{SBYPUNID.js → CSWYWYVP.js} +2 -2
- package/dist/calcite/{BHAWA5LB.js → CVFUCRWE.js} +1 -1
- package/dist/calcite/{VJACTNEX.js → CYXEBPI4.js} +2 -2
- package/dist/calcite/{TVXE2ILK.js → DESMINW2.js} +2 -2
- package/dist/calcite/{EQMAPP4J.js → DEXHDHOZ.js} +2 -2
- package/dist/calcite/{DIXOHUVY.js → DHLXSIGM.js} +2 -2
- package/dist/calcite/{JUHE7JY7.js → DHM7XYAK.js} +2 -2
- package/dist/calcite/{XNL4BXEP.js → DL275CND.js} +2 -2
- package/dist/calcite/{R5VJDZJ4.js → DLOCUWPD.js} +2 -2
- package/dist/calcite/{OK6QLXEF.js → DMDX6GNA.js} +2 -2
- package/dist/calcite/{ZO3NAXSO.js → DPQN6X55.js} +2 -2
- package/dist/calcite/{4JIFPE4T.js → DR6CGSQN.js} +2 -2
- package/dist/calcite/{6QX7XXFR.js → DRPTNBLM.js} +2 -2
- package/dist/calcite/{LXZEDWK6.js → E2FKHOP6.js} +2 -2
- package/dist/calcite/{ZXJW3ODE.js → E2YOMR2W.js} +2 -2
- package/dist/calcite/{OEDILKI4.js → E3EFBQN7.js} +2 -2
- package/dist/calcite/{EXASF7R6.js → EI3J7BKZ.js} +2 -2
- package/dist/calcite/{MG26L5EB.js → EKZ2EGLF.js} +2 -2
- package/dist/calcite/{VP2RPXRI.js → EOB4X23O.js} +1 -1
- package/dist/calcite/{TNJJI7BR.js → EOGNEZVJ.js} +2 -2
- package/dist/calcite/{GPITTJVP.js → EOUHKOWE.js} +2 -2
- package/dist/calcite/{CKSVTWX4.js → EWVW6R52.js} +2 -2
- package/dist/calcite/{QJKSTOIV.js → F2SFBFAO.js} +2 -2
- package/dist/calcite/{7BX6CSTO.js → F542WAVE.js} +2 -2
- package/dist/calcite/{C6KIAIQY.js → FCHTJ55R.js} +2 -2
- package/dist/calcite/{3IUVYIKO.js → FGZRCB33.js} +2 -2
- package/dist/calcite/{H6WT3FRG.js → FIQKSN3O.js} +2 -2
- package/dist/calcite/{342PCF2N.js → FJHQZ3GW.js} +2 -2
- package/dist/calcite/{R5BOZUPH.js → FKYBMABD.js} +2 -2
- package/dist/calcite/{FVW47M67.js → FV5TS2HW.js} +2 -2
- package/dist/calcite/{3LPEOVKH.js → GPOM2HML.js} +2 -2
- package/dist/calcite/{H6DPZ75G.js → GRCKTRIN.js} +2 -2
- package/dist/calcite/{7FKPOKGN.js → GRHJDQ4Q.js} +1 -1
- package/dist/calcite/{W2X5SIQR.js → H3KYK676.js} +1 -1
- package/dist/calcite/{OAKTBXMM.js → HAJNBKVT.js} +2 -2
- package/dist/calcite/{EYLMLIPK.js → HGUSZYHZ.js} +2 -2
- package/dist/calcite/{AR6GQ2WW.js → HIKWG4PH.js} +2 -2
- package/dist/calcite/{X3O6PU5J.js → HIYCH2NP.js} +2 -2
- package/dist/calcite/{E5ZRIKNM.js → HMAN2KSJ.js} +2 -2
- package/dist/calcite/{XTUJDFJM.js → HQO7D3VD.js} +2 -2
- package/dist/calcite/{YB2EAMPW.js → HVZIJVBP.js} +2 -2
- package/dist/calcite/{H363UDZY.js → HXNVEZFH.js} +2 -2
- package/dist/calcite/{SIBKVO2L.js → IC4LGBFJ.js} +2 -2
- package/dist/calcite/{ZQS6INMV.js → IM5RPHL6.js} +2 -2
- package/dist/calcite/{5C6L7SKL.js → INEIK2KV.js} +2 -2
- package/dist/calcite/{MFASNI2B.js → IQCFUIRO.js} +2 -2
- package/dist/calcite/{DY5YEFVR.js → IXEKVJSY.js} +2 -2
- package/dist/calcite/{72FIBQ7L.js → IXI2GVXN.js} +2 -2
- package/dist/calcite/{FY4ADXTA.js → J3M774JG.js} +2 -2
- package/dist/calcite/{NG5U2LV7.js → JKGOP3EZ.js} +1 -1
- package/dist/calcite/{6JLGGGRA.js → JMEUMAMW.js} +2 -2
- package/dist/calcite/{KFRAMVTA.js → JNQ5QXYQ.js} +2 -2
- package/dist/calcite/{WCDA4U6R.js → JPFQP5XA.js} +2 -2
- package/dist/calcite/{4RX2Y2FT.js → JQVB7BXO.js} +2 -2
- package/dist/calcite/{YOODFGSF.js → JSX2EDV7.js} +2 -2
- package/dist/calcite/{MD3XJ5HY.js → K2DIYAZH.js} +2 -2
- package/dist/calcite/{DFUEVUDK.js → K2GXDH7E.js} +2 -2
- package/dist/calcite/{BKE7J4KB.js → K62MZBTB.js} +2 -2
- package/dist/calcite/{RRI7RXMA.js → K7U6OQYF.js} +2 -2
- package/dist/calcite/{Q7YRIW7I.js → KANGHNJ3.js} +2 -2
- package/dist/calcite/{EFDGZXU5.js → KDWTLVFK.js} +1 -1
- package/dist/calcite/{KK5LHYJA.js → KFROMN7D.js} +1 -1
- package/dist/calcite/{RRILJL23.js → KGR43D26.js} +2 -2
- package/dist/calcite/KNVBBKIX.js +4 -0
- package/dist/calcite/{Y53GMR3Z.js → KUHHMDOR.js} +2 -2
- package/dist/calcite/{OIYGW2GS.js → L4SSG3DU.js} +2 -2
- package/dist/calcite/{ULB5LUM6.js → L73EYULO.js} +2 -2
- package/dist/calcite/{5IMHDP3J.js → LV242TE5.js} +2 -2
- package/dist/calcite/{4VAZC557.js → M5336Y3O.js} +2 -2
- package/dist/calcite/{JEUFDJ3C.js → MBCUJU6O.js} +1 -1
- package/dist/calcite/{UNYOKW5Q.js → MDTRDR5W.js} +2 -2
- package/dist/calcite/{DWJCPE23.js → MFLR2QZ7.js} +2 -2
- package/dist/calcite/{5C3PNLYB.js → MWDGICST.js} +2 -2
- package/dist/calcite/{33CKM54K.js → N2UP23QZ.js} +2 -2
- package/dist/calcite/{UXSBWUF5.js → NICYSC2T.js} +2 -2
- package/dist/calcite/{5KM2JXNW.js → NKZQUPU5.js} +1 -1
- package/dist/calcite/{CCF6JAOC.js → NPJ7LKS7.js} +2 -2
- package/dist/calcite/{ZVKMHA3V.js → NSKYQYS3.js} +2 -2
- package/dist/calcite/{RK2MCQ5Y.js → O4H4JKZ5.js} +2 -2
- package/dist/calcite/{7IXAGZGO.js → O6CRB6W3.js} +2 -2
- package/dist/calcite/{TOJ52I6R.js → OMPDDTUJ.js} +2 -2
- package/dist/calcite/{LOAMPNPD.js → OT7AQANC.js} +2 -2
- package/dist/calcite/{SKRNCPP3.js → OV57BL2M.js} +2 -2
- package/dist/calcite/{TKPAX3FQ.js → P5BSTYTB.js} +2 -2
- package/dist/calcite/{3BHBN3ZE.js → PAHXQKML.js} +2 -2
- package/dist/calcite/{L3OKJT5V.js → PC3ZRB4G.js} +2 -2
- package/dist/calcite/{ACACXL7R.js → PGV6RVMU.js} +2 -2
- package/dist/calcite/{Y3MUGB3P.js → PGYSNFK3.js} +1 -1
- package/dist/calcite/{BEC4OF4X.js → PNZDSZXS.js} +2 -2
- package/dist/calcite/{FZYCPZLR.js → PO7TZP4E.js} +1 -1
- package/dist/calcite/{RIATGHMI.js → PR7W6C7J.js} +2 -2
- package/dist/calcite/{UMZAREC2.js → PRPKTHNQ.js} +2 -2
- package/dist/calcite/{HTFHD5Q7.js → PVD54QQX.js} +2 -2
- package/dist/calcite/{ZEZE3EY4.js → Q26O2WFR.js} +2 -2
- package/dist/calcite/{YAERIWC2.js → Q7SJ5XBZ.js} +2 -2
- package/dist/calcite/{OIAWMQAX.js → QCGD6PEP.js} +2 -2
- package/dist/calcite/{TLF5ZYAB.js → QCS4JM7S.js} +2 -2
- package/dist/calcite/{RSR3Z5VI.js → QE5PKBII.js} +2 -2
- package/dist/calcite/{5CXH5GBQ.js → QLFK5DON.js} +2 -2
- package/dist/calcite/{ZTJWK6GN.js → QOESLYGD.js} +2 -2
- package/dist/calcite/{6ULPRTTC.js → QOICPBGV.js} +2 -2
- package/dist/calcite/{TF5M7ERE.js → QP6OTKEJ.js} +2 -2
- package/dist/calcite/{DOYICD4Q.js → QQVI4OYK.js} +2 -2
- package/dist/calcite/{7A6UMXRE.js → QYXLUOSH.js} +1 -1
- package/dist/calcite/{PSER5XY6.js → RH74FKLX.js} +2 -2
- package/dist/calcite/{ON6XMNLP.js → RHPHNRGG.js} +2 -2
- package/dist/calcite/{OKP4YVE5.js → RKWMVDGT.js} +2 -2
- package/dist/calcite/{W3V2QHUL.js → RKYSIEXF.js} +2 -2
- package/dist/calcite/{O2FLF3WF.js → RLS4FZXL.js} +2 -2
- package/dist/calcite/{M7JBDY4E.js → RPZTDWCU.js} +2 -2
- package/dist/calcite/{QFRUZ6IN.js → RQYKV726.js} +2 -2
- package/dist/calcite/{56VQSS5B.js → RRSYXUIE.js} +2 -2
- package/dist/calcite/{M4IZ3C5T.js → RSVGKS4B.js} +2 -2
- package/dist/calcite/{T3ULYAVJ.js → RVZYS6PQ.js} +1 -1
- package/dist/calcite/{U2GT2WNE.js → RW4HIGUP.js} +2 -2
- package/dist/calcite/{QR6OOE44.js → S5GXWYYF.js} +2 -2
- package/dist/calcite/{KNG5I6DR.js → S5JAIGJP.js} +2 -2
- package/dist/calcite/{2UN2MKHY.js → S5NYK5W4.js} +2 -2
- package/dist/calcite/{YSAPT6CV.js → SPCWHAVF.js} +2 -2
- package/dist/calcite/{JDAYZMSC.js → SVQM6EN5.js} +2 -2
- package/dist/calcite/{C553AIVR.js → SYZBZJ53.js} +2 -2
- package/dist/calcite/{XWLS7YUN.js → T5QIRIOX.js} +2 -2
- package/dist/calcite/{YYRBOYQC.js → T64C6J7J.js} +2 -2
- package/dist/calcite/TKCKVPPX.js +4 -0
- package/dist/calcite/{TIODDQRY.js → TOPOZYH4.js} +2 -2
- package/dist/calcite/{ZY2OM67K.js → TRFPSDJR.js} +2 -2
- package/dist/calcite/{F3XLUT6Q.js → TRSTTKWQ.js} +2 -2
- package/dist/calcite/{2XCRKCT5.js → TU5MM3R3.js} +2 -2
- package/dist/calcite/{NIN4I65G.js → U6ZLEGP3.js} +2 -2
- package/dist/calcite/{JHDJVNQQ.js → UADCZ24S.js} +2 -2
- package/dist/calcite/{IOSM2XUO.js → ULN2CSFT.js} +2 -2
- package/dist/calcite/{F3UQBHWL.js → V3VCAGPQ.js} +2 -2
- package/dist/calcite/{5OH3LC3C.js → V7JD2V5Q.js} +2 -2
- package/dist/calcite/{3JE4Y47R.js → VIXAEFSH.js} +2 -2
- package/dist/calcite/{ZM7RI4RK.js → VJVRUELF.js} +2 -2
- package/dist/calcite/{BP4Q5TOA.js → VLPN7B6D.js} +2 -2
- package/dist/calcite/{BGNNGTHH.js → VR54XTN4.js} +2 -2
- package/dist/calcite/{BZ3U4ZZE.js → VUL2YGMP.js} +2 -2
- package/dist/calcite/{NK4WTAEC.js → W7RW7CSV.js} +2 -2
- package/dist/calcite/{VZTLSC3P.js → WDZD6NUM.js} +2 -2
- package/dist/calcite/{SWEJU54F.js → WK4U7KMU.js} +2 -2
- package/dist/calcite/{GP67YIFS.js → WQDXNF2B.js} +2 -2
- package/dist/calcite/{KIM4QWYQ.js → WVRS5L6R.js} +2 -2
- package/dist/calcite/{7N2442C6.js → X4DQAZOC.js} +2 -2
- package/dist/calcite/{ZAPRUNIN.js → X6VKEYG3.js} +2 -2
- package/dist/calcite/{JJNX4P5D.js → XHIN4LUA.js} +2 -2
- package/dist/calcite/{LLI3LPWK.js → XRJRUKLW.js} +2 -2
- package/dist/calcite/{2SZEMBJQ.js → XSSWERGM.js} +2 -2
- package/dist/calcite/{EKUXBB4C.js → XXJHSQIN.js} +2 -2
- package/dist/calcite/{NNHXE5DK.js → XXUT65DB.js} +2 -2
- package/dist/calcite/{YI5MLODJ.js → YKMAO2WC.js} +1 -1
- package/dist/calcite/{WOZZT2MQ.js → YXC4AMQQ.js} +2 -2
- package/dist/calcite/{2NDK4ONK.js → YYDJLXFJ.js} +1 -1
- package/dist/calcite/{KLP7HTCL.js → YYRRMFXX.js} +2 -2
- package/dist/calcite/{K7UPA5BJ.js → Z5HOQ67L.js} +1 -1
- package/dist/calcite/{3B4EMNX3.js → Z5SL36IN.js} +2 -2
- package/dist/calcite/{GTPOJ7KP.js → Z6VTHLRZ.js} +2 -2
- package/dist/calcite/{KSWRCNSX.js → ZC4AG4PL.js} +2 -2
- package/dist/calcite/{E3H6H2XE.js → ZPRSJNVM.js} +2 -2
- package/dist/calcite/{MLA5LDRP.js → ZWYXFLX7.js} +2 -2
- package/dist/calcite/{ZXQML5IL.js → ZXGY7N4S.js} +2 -2
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/chunks/ExpandToggle.js +1 -1
- package/dist/chunks/FloatingArrow.js +1 -1
- package/dist/chunks/Heading.js +1 -1
- package/dist/chunks/Validation.js +1 -1
- package/dist/chunks/_commonjsHelpers.js +1 -1
- package/dist/chunks/array.js +1 -1
- package/dist/chunks/component.js +1 -1
- package/dist/chunks/core.js +1 -1
- package/dist/chunks/date.js +1 -1
- package/dist/chunks/dom.js +1 -1
- package/dist/chunks/dynamicClasses.js +1 -1
- package/dist/chunks/filter.js +1 -1
- package/dist/chunks/floating-ui.js +1 -1
- package/dist/chunks/focusTrapComponent.js +1 -1
- package/dist/chunks/form.js +1 -1
- package/dist/chunks/global.js +1 -1
- package/dist/chunks/guid.js +1 -1
- package/dist/chunks/input.js +1 -1
- package/dist/chunks/interact.min.js +1 -1
- package/dist/chunks/interactive.js +1 -1
- package/dist/chunks/key.js +1 -1
- package/dist/chunks/label.js +1 -1
- package/dist/chunks/loadable.js +1 -1
- package/dist/chunks/locale.js +1 -1
- package/dist/chunks/logger.js +1 -1
- package/dist/chunks/math.js +1 -1
- package/dist/chunks/observers.js +1 -1
- package/dist/chunks/openCloseComponent.js +1 -1
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/resources2.js +1 -1
- package/dist/chunks/resources3.js +1 -1
- package/dist/chunks/resources4.js +1 -1
- package/dist/chunks/resources5.js +1 -1
- package/dist/chunks/resources6.js +1 -1
- package/dist/chunks/resources7.js +1 -1
- package/dist/chunks/responsive.js +1 -1
- package/dist/chunks/runtime.js +6 -6
- package/dist/chunks/sortableComponent.js +1 -1
- package/dist/chunks/text.js +1 -1
- package/dist/chunks/time.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/utils3.js +1 -1
- package/dist/chunks/utils4.js +1 -1
- package/dist/components/calcite-accordion/customElement.js +1 -1
- package/dist/components/calcite-accordion-item/customElement.js +1 -1
- package/dist/components/calcite-action/customElement.js +1 -1
- package/dist/components/calcite-action-bar/customElement.js +1 -1
- package/dist/components/calcite-action-group/customElement.js +1 -1
- package/dist/components/calcite-action-menu/customElement.js +1 -1
- package/dist/components/calcite-action-pad/customElement.js +1 -1
- package/dist/components/calcite-alert/customElement.js +1 -1
- package/dist/components/calcite-autocomplete/customElement.js +1 -1
- package/dist/components/calcite-autocomplete-item/customElement.js +1 -1
- package/dist/components/calcite-autocomplete-item-group/customElement.js +1 -1
- package/dist/components/calcite-avatar/customElement.js +1 -1
- package/dist/components/calcite-block/customElement.js +1 -1
- package/dist/components/calcite-block-section/customElement.js +1 -1
- package/dist/components/calcite-button/customElement.js +1 -1
- package/dist/components/calcite-card/customElement.js +1 -1
- package/dist/components/calcite-card-group/customElement.js +1 -1
- package/dist/components/calcite-carousel/customElement.js +1 -1
- package/dist/components/calcite-carousel-item/customElement.js +1 -1
- package/dist/components/calcite-checkbox/customElement.js +1 -1
- package/dist/components/calcite-chip/customElement.js +1 -1
- package/dist/components/calcite-chip-group/customElement.js +1 -1
- package/dist/components/calcite-color-picker/customElement.js +1 -1
- package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
- package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
- package/dist/components/calcite-combobox/customElement.js +1 -1
- package/dist/components/calcite-combobox-item/customElement.js +1 -1
- package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
- package/dist/components/calcite-date-picker/customElement.js +1 -1
- package/dist/components/calcite-date-picker-day/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
- package/dist/components/calcite-dialog/customElement.d.ts +2 -1
- package/dist/components/calcite-dialog/customElement.js +34 -33
- package/dist/components/calcite-dialog/resources.d.ts +1 -0
- package/dist/components/calcite-dropdown/customElement.js +1 -1
- package/dist/components/calcite-dropdown-group/customElement.js +1 -1
- package/dist/components/calcite-dropdown-item/customElement.js +1 -1
- package/dist/components/calcite-fab/customElement.js +1 -1
- package/dist/components/calcite-filter/customElement.js +1 -1
- package/dist/components/calcite-flow/customElement.js +1 -1
- package/dist/components/calcite-flow-item/customElement.js +1 -1
- package/dist/components/calcite-graph/customElement.js +1 -1
- package/dist/components/calcite-handle/customElement.js +1 -1
- package/dist/components/calcite-icon/customElement.js +1 -1
- package/dist/components/calcite-inline-editable/customElement.js +1 -1
- package/dist/components/calcite-input/customElement.js +1 -1
- package/dist/components/calcite-input-date-picker/customElement.js +1 -1
- package/dist/components/calcite-input-message/customElement.js +1 -1
- package/dist/components/calcite-input-number/customElement.js +1 -1
- package/dist/components/calcite-input-text/customElement.js +1 -1
- package/dist/components/calcite-input-time-picker/customElement.js +1 -1
- package/dist/components/calcite-input-time-zone/customElement.js +1 -1
- package/dist/components/calcite-label/customElement.js +1 -1
- package/dist/components/calcite-link/customElement.js +1 -1
- package/dist/components/calcite-list/customElement.js +1 -1
- package/dist/components/calcite-list-item/customElement.js +1 -1
- package/dist/components/calcite-list-item-group/customElement.js +1 -1
- package/dist/components/calcite-loader/customElement.js +1 -1
- package/dist/components/calcite-menu/customElement.js +1 -1
- package/dist/components/calcite-menu-item/customElement.js +1 -1
- package/dist/components/calcite-meter/customElement.js +9 -9
- package/dist/components/calcite-modal/customElement.js +1 -1
- package/dist/components/calcite-navigation/customElement.js +1 -1
- package/dist/components/calcite-navigation-logo/customElement.js +1 -1
- package/dist/components/calcite-navigation-user/customElement.js +1 -1
- package/dist/components/calcite-notice/customElement.js +1 -1
- package/dist/components/calcite-option/customElement.js +1 -1
- package/dist/components/calcite-option-group/customElement.js +1 -1
- package/dist/components/calcite-pagination/customElement.js +1 -1
- package/dist/components/calcite-panel/customElement.js +1 -1
- package/dist/components/calcite-popover/customElement.js +1 -1
- package/dist/components/calcite-progress/customElement.js +1 -1
- package/dist/components/calcite-radio-button/customElement.js +1 -1
- package/dist/components/calcite-radio-button-group/customElement.js +1 -1
- package/dist/components/calcite-rating/customElement.js +1 -1
- package/dist/components/calcite-scrim/customElement.js +1 -1
- package/dist/components/calcite-segmented-control/customElement.js +1 -1
- package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
- package/dist/components/calcite-select/customElement.js +1 -1
- package/dist/components/calcite-sheet/customElement.js +1 -1
- package/dist/components/calcite-shell/customElement.js +1 -1
- package/dist/components/calcite-shell-center-row/customElement.js +1 -1
- package/dist/components/calcite-shell-panel/customElement.js +1 -1
- package/dist/components/calcite-slider/customElement.js +1 -1
- package/dist/components/calcite-sort-handle/customElement.js +1 -1
- package/dist/components/calcite-sortable-list/customElement.js +1 -1
- package/dist/components/calcite-split-button/customElement.js +1 -1
- package/dist/components/calcite-stack/customElement.js +1 -1
- package/dist/components/calcite-stepper/customElement.js +1 -1
- package/dist/components/calcite-stepper-item/customElement.js +1 -1
- package/dist/components/calcite-switch/customElement.js +1 -1
- package/dist/components/calcite-tab/customElement.js +1 -1
- package/dist/components/calcite-tab-nav/customElement.js +1 -1
- package/dist/components/calcite-tab-title/customElement.js +1 -1
- package/dist/components/calcite-table/customElement.js +1 -1
- package/dist/components/calcite-table-cell/customElement.js +1 -1
- package/dist/components/calcite-table-header/customElement.js +1 -1
- package/dist/components/calcite-table-row/customElement.js +1 -1
- package/dist/components/calcite-tabs/customElement.js +1 -1
- package/dist/components/calcite-text-area/customElement.js +1 -1
- package/dist/components/calcite-tile/customElement.js +1 -1
- package/dist/components/calcite-tile-group/customElement.js +1 -1
- package/dist/components/calcite-tile-select/customElement.js +1 -1
- package/dist/components/calcite-tile-select-group/customElement.js +1 -1
- package/dist/components/calcite-time-picker/customElement.js +1 -1
- package/dist/components/calcite-tip/customElement.js +1 -1
- package/dist/components/calcite-tip-group/customElement.js +1 -1
- package/dist/components/calcite-tip-manager/customElement.js +1 -1
- package/dist/components/calcite-tooltip/customElement.js +1 -1
- package/dist/components/calcite-tree/customElement.js +1 -1
- package/dist/components/calcite-tree-item/customElement.js +1 -1
- package/dist/docs/api.json +6 -2
- package/dist/docs/docs.json +6 -2
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +7 -3
- package/dist/extras/vscode-data.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +2 -2
- package/dist/calcite/7XJEQXWN.js +0 -4
- package/dist/calcite/LPIWDZGX.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{b as m}from"./
|
|
3
|
+
v3.0.0-next.117 */
|
|
4
|
+
import{b as m}from"./ANTTFXC6.js";import"./PO7TZP4E.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,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{c}from"./
|
|
3
|
+
v3.0.0-next.117 */
|
|
4
|
+
import{c}from"./QP6OTKEJ.js";import{h as i}from"./CJ6TB6XD.js";import{J as s}from"./EKZ2EGLF.js";var a={},r={};async function f(t){let n=i(t);if(a[n])return a[n];r[n]||(r[n]=fetch(s(`./assets/date-picker/nls/${n}.json`)).then(e=>e.json()).catch(()=>(console.error(`Translations for "${n}" not found or invalid, falling back to english`),f("en"))));let o=await r[n];return a[n]=o,o}function u(t){return t.map((n,o)=>c(n,o===1))}export{f as a,u as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{a as x,h as v,k as B,l as f,m as $,n as p,o as m,p as y,q as o,r as c,s as T}from"./
|
|
3
|
+
v3.0.0-next.117 */
|
|
4
|
+
import{a as x,h as v,k as B,l as f,m as $,n as p,o as m,p as y,q as o,r as c,s as T}from"./4NKURAVQ.js";import"./RVZYS6PQ.js";import{a as k}from"./RHPHNRGG.js";import{b as d}from"./ZXGY7N4S.js";import{l as D}from"./DESMINW2.js";import{b as E}from"./EWVW6R52.js";import"./4UFZECXF.js";import{I as V,d as F,e as C,u as O,v as S,w as I}from"./EKZ2EGLF.js";var g={container:"container",hexInput:"hex-input",opacityInput:"opacity-input"},U=F`:host{display:block}.container{display:flex;inline-size:100%;flex-wrap:nowrap;align-items:center}.hex-input{flex-grow:1;text-transform:uppercase}.opacity-input{inline-size:100px;margin-inline-start:-1px}:host([hidden]){display:none}[hidden]{display:none}`,b=x(),N=class extends S{constructor(){super(...arguments),this.internalColor=b,this.alphaChannel=!1,this.allowEmpty=!1,this.hexLabel="Hex",this.scale="m",this.value=o(c(b,this.alphaChannel),this.alphaChannel,!0),this.calciteColorPickerHexInputChange=O({cancelable:!1})}static{this.properties={internalColor:16,alphaChannel:5,allowEmpty:5,hexLabel:1,messages:0,numberingSystem:1,scale:3,value:3}}static{this.styles=U}async setFocus(){return await E(this),D(this.hexInputNode)}connectedCallback(){super.connectedCallback(),this.previousNonNullValue=this.value;let{allowEmpty:t,alphaChannel:e,value:a}=this;if(a){let n=o(a,e);p(n,e)&&this.internalSetValue(n,n,!1);return}t&&this.internalSetValue(void 0,void 0,!1)}load(){}willUpdate(t){t.has("value")&&(this.hasUpdated||this.value!==o(c(b,this.alphaChannel),this.alphaChannel,!0))&&this.internalSetValue(this.value,t.get("value"),!1)}loaded(){}onHexInputBlur(){let t=this.hexInputNode,e=t.value,a=`#${e}`,{allowEmpty:n,internalColor:i}=this,s=n&&!e,l=y(a);(m(a,!0)||m(a,!1))&&this.onHexInputChange(),!(s||p(a)&&l)&&(t.value=n&&!i?"":this.formatHexForInternalInput(T(i.object())))}onOpacityInputBlur(){let t=this.opacityInputNode,e=t.value,{allowEmpty:a,internalColor:n}=this;a&&!e||(t.value=a&&!n?"":this.formatOpacityForInternalInput(n))}onOpacityInputInput(){this.onOpacityInputChange()}onHexInputChange(){let t=this.hexInputNode.value;if(t){let e=o(t,!1);if(p(e)&&this.alphaChannel&&this.internalColor){let a=o(this.internalColor.hexa(),!0).slice(-2);t=`${e+a}`}}this.internalSetValue(t,this.value)}onOpacityInputChange(){let t=this.opacityInputNode,e;if(!t.value)e=t.value;else{let a=$(Number(t.value));e=this.internalColor?.alpha(a).hexa()}this.internalSetValue(e,this.value)}onInputFocus(t){t.type==="calciteInternalInputTextFocus"?this.hexInputNode.selectText():this.opacityInputNode.selectText()}onHexInputInput(){let t=`#${this.hexInputNode.value}`,e=this.value;p(t,this.alphaChannel)&&y(t,this.alphaChannel)&&this.internalSetValue(t,e)}onInputKeyDown(t){let{altKey:e,ctrlKey:a,metaKey:n,shiftKey:i}=t,{alphaChannel:s,hexInputNode:l,internalColor:r,value:u}=this,{key:h}=t,w=t.composedPath();if(h==="Tab"&&m(u,this.alphaChannel)||h==="Enter"){w.includes(l)?this.onHexInputChange():this.onOpacityInputChange(),h==="Enter"&&t.preventDefault();return}let K=h==="ArrowDown"||h==="ArrowUp",H=this.value;if(K){if(!u){this.internalSetValue(this.previousNonNullValue,H),t.preventDefault();return}let A=h==="ArrowUp"?1:-1,z=i?10:1;this.internalSetValue(c(this.nudgeRGBChannels(r,z*A,w.includes(l)?"rgb":"a"),s),H),t.preventDefault();return}let P=e||a||n,R=h.length===1,L=B.test(h);R&&!P&&!L&&t.preventDefault()}onHexInputPaste(t){let e=t.clipboardData.getData("text");p(e,this.alphaChannel)&&y(e,this.alphaChannel)&&(t.preventDefault(),this.hexInputNode.value=e.slice(1),this.internalSetValue(e,this.value))}internalSetValue(t,e,a=!0){if(t){let{alphaChannel:n}=this,i=o(t,n,n);if(p(i,n)){let{internalColor:s}=this,l=x(i),r=o(c(l,n),n),u=!s||r!==o(c(s,n),n);this.internalColor=l,this.previousNonNullValue=r,this.value=r,u&&a&&this.calciteColorPickerHexInputChange.emit();return}}else if(this.allowEmpty){this.internalColor=void 0,this.value=void 0,a&&this.calciteColorPickerHexInputChange.emit();return}this.value=e}storeHexInputRef(t){this.hexInputNode=t}storeOpacityInputRef(t){this.opacityInputNode=t}formatHexForInternalInput(t){return t?t.replace("#","").slice(0,6):""}formatOpacityForInternalInput(t){return t?`${f(t.alpha())}`:""}nudgeRGBChannels(t,e,a){let n,i=t.array(),s=i.slice(0,3);if(a==="rgb")n=[...s.map(l=>l+e),this.alphaChannel?i[3]:void 0];else{let l=$(f(t.alpha())+e);n=[...s,l]}return x(n)}render(){let{alphaChannel:t,hexLabel:e,internalColor:a,messages:n,scale:i,value:s}=this,l=this.formatHexForInternalInput(s),r=this.formatOpacityForInternalInput(a),u=i==="l"?"m":"s";return C`<div class=${I(g.container)}><calcite-input-text class=${I(g.hexInput)} .label=${n?.hex||e} .maxLength=${this.alphaChannel?8:6} @keydown=${this.onInputKeyDown} @paste=${this.onHexInputPaste} @calciteInputTextChange=${this.onHexInputChange} @calciteInputTextInput=${this.onHexInputInput} @calciteInternalInputTextBlur=${this.onHexInputBlur} @calciteInternalInputTextFocus=${this.onInputFocus} prefix-text=# .scale=${u} .value=${l} ${d(this.storeHexInputRef)}></calcite-input-text>${t?k("opacity-input",C`<calcite-input-number class=${I(g.opacityInput)} .label=${n?.opacity} .max=${v.max} max-length=3 .min=${v.min} number-button-type=none .numberingSystem=${this.numberingSystem} @keydown=${this.onInputKeyDown} @calciteInputNumberInput=${this.onOpacityInputInput} @calciteInternalInputNumberBlur=${this.onOpacityInputBlur} @calciteInternalInputNumberFocus=${this.onInputFocus} .scale=${u} suffix-text=% .value=${r} ${d(this.storeOpacityInputRef)}></calcite-input-number>`):null}</div>`}};V("calcite-color-picker-hex-input",N);export{N as ColorPickerHexInput};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{r as g,s as b}from"./
|
|
3
|
+
v3.0.0-next.117 */
|
|
4
|
+
import{r as g,s as b}from"./DESMINW2.js";import"./4UFZECXF.js";import{I as m,d as s,e as o,u as d,v as h,w as i}from"./EKZ2EGLF.js";var p={input:"input"},l={label:"label",labelScale:r=>`label--scale-${r}`,labelHorizontal:"label--horizontal",labelOutline:"label--outline",labelOutlineFill:"label--outline-fill",icon:"icon",iconSolo:"icon--solo"},f=s`:host{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-font-weight-normal);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out,border-color var(--calcite-animation-timing) ease-in-out}:host label{pointer-events:none;margin:.125rem;box-sizing:border-box;display:flex;flex:1 1 0%;align-items:center;color:var(--calcite-color-text-3);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out,border-color var(--calcite-internal-animation-timing-fast) ease-in-out,color var(--calcite-internal-animation-timing-fast) ease-in-out}.label--horizontal{justify-content:center}:host{outline-color:transparent}:host(: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:-1px}.label--scale-s{padding-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-block:.125rem}.label--scale-m{padding-inline:.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-block:.375rem}.label--scale-l{padding-inline:1rem;padding-block:.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host(:hover) label{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}:host(:active) label{background-color:var(--calcite-color-foreground-3)}:host([checked]) label{cursor:default;border-color:var(--calcite-color-brand);background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}:host([checked]) .label--outline,:host([checked]) .label--outline-fill{border-color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);box-shadow:inset 0 0 0 1px var(--calcite-color-brand);color:var(--calcite-color-brand)}:host([checked]) .label--outline{background-color:transparent}::slotted(input){display:none}@media (forced-colors: active){:host([checked]) label{background-color:highlight}:host([checked]) .label--outline,:host([checked]) .label--outline-fill{outline:2px solid transparent;outline-offset:2px}:host([checked]) label:not([class~=label--outline]) .icon{color:highlightText}}.icon{position:relative;margin:0;display:inline-flex;line-height:inherit;margin-inline-start:var(--calcite-internal-segmented-control-icon-margin-start);margin-inline-end:var(--calcite-internal-segmented-control-icon-margin-end)}:host([icon-start]) .label--scale-s{--calcite-internal-segmented-control-icon-margin-end: .5rem}:host([icon-end]) .label--scale-s{--calcite-internal-segmented-control-icon-margin-start: .5rem}:host([icon-start]) .label--scale-m{--calcite-internal-segmented-control-icon-margin-end: .75rem}:host([icon-end]) .label--scale-m{--calcite-internal-segmented-control-icon-margin-start: .75rem}:host([icon-start]) .label--scale-l{--calcite-internal-segmented-control-icon-margin-end: 1rem}:host([icon-end]) .label--scale-l{--calcite-internal-segmented-control-icon-margin-start: 1rem}.label .icon--solo{--calcite-internal-segmented-control-icon-margin-start: 0;--calcite-internal-segmented-control-icon-margin-end: 0}:host([hidden]){display:none}[hidden]{display:none}`,c=class extends h{constructor(){super(...arguments),this.hasSlottedContent=!1,this.appearance="solid",this.checked=!1,this.iconFlipRtl=!1,this.layout="horizontal",this.scale="m",this.calciteInternalSegmentedControlItemChange=d({cancelable:!1})}static{this.properties={hasSlottedContent:16,appearance:1,checked:7,iconEnd:3,iconFlipRtl:7,iconStart:3,layout:1,scale:1,value:1}}static{this.styles=f}willUpdate(e){e.has("checked")&&(this.hasUpdated||this.checked!==!1)&&this.calciteInternalSegmentedControlItemChange.emit()}handleSlotChange(e){this.hasSlottedContent=b(e)}renderIcon(e,t=!1){return e?o`<calcite-icon class=${i({[l.icon]:!0,[l.iconSolo]:t})} .flipRtl=${this.iconFlipRtl} .icon=${e} scale=s></calcite-icon>`:null}render(){let{appearance:e,checked:t,layout:n,scale:a,value:u}=this;return this.el.ariaChecked=g(t),this.el.ariaLabel=u,this.el.role="radio",o`<label class=${i({[l.label]:!0,[l.labelScale(a)]:!0,[l.labelHorizontal]:n==="horizontal",[l.labelOutline]:e==="outline",[l.labelOutlineFill]:e==="outline-fill"})}>${this.renderContent()}</label>`}renderContent(){let{hasSlottedContent:e,iconEnd:t,iconStart:n}=this,a=n||t;return!e&&a?[this.renderIcon(a,!0),o`<slot @slotchange=${this.handleSlotChange}></slot>`]:[this.renderIcon(n),o`<slot @slotchange=${this.handleSlotChange}></slot>`,o`<slot name=${p.input}></slot>`,this.renderIcon(t)]}};m("calcite-segmented-control-item",c);export{c as SegmentedControlItem};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{a as U}from"./
|
|
3
|
+
v3.0.0-next.117 */
|
|
4
|
+
import{a as U}from"./SYZBZJ53.js";import{c as S,e as A,f as M,h as D}from"./RKYSIEXF.js";import{c as k,d as x}from"./5PCQ2NLK.js";import{a as b,b as C}from"./4HTYUPVC.js";import{e as w,v as y}from"./DESMINW2.js";import{b as I}from"./EWVW6R52.js";import"./4UFZECXF.js";import{A as f,F as g,I as v,d as h,e as c,u as m,v as p,w as u}from"./EKZ2EGLF.js";var $={itemWrapper:"item-wrapper"},E={validationMessage:"segmentedControlValidationMessage"},z=h`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-direction:column}.item-wrapper{display:flex;background-color:var(--calcite-color-foreground-1);inline-size:fit-content;outline:1px solid var(--calcite-color-border-input);outline-offset:-1px}:host([appearance=outline])>.item-wrapper{background-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([layout=vertical])>.item-wrapper{flex-direction:column;align-items:flex-start;align-self:flex-start}:host([width=full])>.item-wrapper{inline-size:100%;min-inline-size:fit-content}:host([width=full])>.item-wrapper ::slotted(calcite-segmented-control-item){flex:1 1 auto}:host([width=full][layout=vertical])>.item-wrapper ::slotted(calcite-segmented-control-item){justify-content:flex-start}.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}:host([hidden]){display:none}[hidden]{display:none}`,d=class extends p{constructor(){super(),this.items=[],this.appearance="solid",this.disabled=!1,this.layout="horizontal",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.value=null,this.width="auto",this.calciteSegmentedControlChange=m({cancelable:!1}),this.listen("calciteInternalSegmentedControlItemChange",this.handleSelected),this.listen("keydown",this.handleKeyDown),this.listen("click",this.handleClick)}static{this.properties={appearance:3,disabled:7,form:3,layout:3,name:3,required:7,scale:3,selectedItem:0,status:3,validationIcon:[3,{converter:f}],validationMessage:1,validity:0,value:1,width:3}}static{this.styles=z}async setFocus(){await I(this),(this.selectedItem||this.items[0])?.focus()}connectedCallback(){super.connectedCallback(),k(this),S(this)}load(){}willUpdate(t){(t.has("appearance")&&(this.hasUpdated||this.appearance!=="solid")||t.has("layout")&&(this.hasUpdated||this.layout!=="horizontal")||t.has("scale")&&(this.hasUpdated||this.scale!=="m"))&&this.handleItemPropChange(),t.has("value")&&(this.hasUpdated||this.value!==null)&&this.valueHandler(this.value),t.has("selectedItem")&&this.handleSelectedItemChange(this.selectedItem,t.get("selectedItem"))}updated(){b(this)}loaded(){M(this,this.value)}disconnectedCallback(){super.disconnectedCallback(),x(this),A(this)}valueHandler(t){let{items:e}=this;e.forEach(a=>a.checked=a.value===t)}handleSelectedItemChange(t,e){if(this.value=t?.value,t===e)return;let{items:a}=this,s=a.filter(i=>i===t).pop();s?this.selectItem(s):a[0]&&(a[0].tabIndex=0)}handleClick(t){this.disabled||t.target.localName==="calcite-segmented-control-item"&&this.selectItem(t.target,!0)}handleSelected(t){t.preventDefault();let e=t.target;e.checked&&this.selectItem(e),t.stopPropagation()}handleKeyDown(t){let e=["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "],{key:a}=t,{el:s,selectedItem:i}=this;if(e.indexOf(a)===-1)return;let l=a;w(s)==="rtl"&&(a==="ArrowRight"&&(l="ArrowLeft"),a==="ArrowLeft"&&(l="ArrowRight"));let{items:o}=this,n=-1;switch(o.forEach((r,L)=>{r===i&&(n=L)}),l){case"ArrowLeft":case"ArrowUp":{t.preventDefault();let r=n<1?o[o.length-1]:o[n-1];this.selectItem(r,!0);return}case"ArrowRight":case"ArrowDown":{t.preventDefault();let r=n===-1?o[1]:o[n+1]||o[0];this.selectItem(r,!0);return}case" ":t.preventDefault(),this.selectItem(t.target,!0);return;default:return}}handleItemPropChange(){let{items:t}=this;t.forEach(e=>{e.appearance=this.appearance,e.layout=this.layout,e.scale=this.scale})}handleSelectedItem(){let{items:t}=this,e=t.filter(a=>a.checked).pop();e?this.selectItem(e):t[0]&&(t[0].tabIndex=0)}async handleDefaultSlotChange(t){let e=y(t).filter(a=>a.matches("calcite-segmented-control-item"));await Promise.all(e.map(a=>a.componentOnReady())),this.items=e,this.handleSelectedItem(),this.handleItemPropChange()}onLabelClick(){this.setFocus()}async selectItem(t,e=!1){if(t===this.selectedItem)return;let{items:a}=this,s=null;a.forEach(i=>{let l=i===t;(l&&!i.checked||!l&&i.checked)&&(i.checked=l),i.tabIndex=l?0:-1,l&&(s=i)}),this.selectedItem=s,s&&e&&(await this.updateComplete,this.calciteSegmentedControlChange.emit()),g()&&s&&s.focus()}render(){return this.el.role="radiogroup",c`<div aria-errormessage=${E.validationMessage} .ariaInvalid=${this.status==="invalid"} class=${u($.itemWrapper)}>${C({disabled:this.disabled,children:c`<slot @slotchange=${this.handleDefaultSlotChange}></slot>${D({component:this})}`})}</div>${this.validationMessage&&this.status==="invalid"?U({icon:this.validationIcon,id:E.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`}};v("calcite-segmented-control",d);export{d as SegmentedControl};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{c as m}from"./
|
|
3
|
+
v3.0.0-next.117 */
|
|
4
|
+
import{c as m}from"./PNZDSZXS.js";import"./RSVGKS4B.js";import{a as y}from"./QCS4JM7S.js";import{a as z}from"./TU5MM3R3.js";import{b as I}from"./ZXGY7N4S.js";import{v as A,z as l}from"./DESMINW2.js";import{a as S}from"./4UFZECXF.js";import{I as f,d as b,e as a,f as g,i as h,u as c,v,w as r}from"./EKZ2EGLF.js";var p={actionIcon:"action-icon",actionIconStart:"action-icon--start",actionIconEnd:"action-icon--end",actionContainer:"action-container",stepBarContainer:"step-bar-container",singleView:"single-view"},o={stepBar:"step-bar",stepBarActive:"step-bar--active",stepBarComplete:"step-bar--complete",stepBarDisabled:"step-bar--disabled",stepBarError:"step-bar--error",stepBarInActive:"step-bar--inactive"},P=({disabled:u,active:t,complete:e,error:i})=>a`<svg class=${r({[o.stepBar]:!0})}>${g`<rect class=${r({[o.stepBarActive]:t,[o.stepBarComplete]:e,[o.stepBarDisabled]:u,[o.stepBarError]:i,[o.stepBarInActive]:!0})} width=100% x=0 y=0 />`}</svg>`,$=b`:host([scale=s]){--calcite-internal-stepper-item-spacing-unit-s: .25rem;--calcite-internal-stepper-action-block-size: 2.75rem;--calcite-internal-stepper-action-inline-size: 2rem;--calcite-internal-step-bar-gap: .25rem}:host([scale=m]){--calcite-internal-stepper-item-spacing-unit-s: .5rem;--calcite-internal-stepper-action-block-size: 3.25rem;--calcite-internal-stepper-action-inline-size: 2.5rem}:host([scale=l]){--calcite-internal-stepper-item-spacing-unit-s: .75rem;--calcite-internal-stepper-action-block-size: 4rem;--calcite-internal-stepper-action-inline-size: 3rem;--calcite-internal-step-bar-gap: .75rem}:host{display:flex}.container{position:relative;display:flex;inline-size:100%;min-inline-size:fit-content;flex-direction:row;flex-wrap:wrap;align-items:stretch;justify-content:space-between}:host([layout=vertical]) .container{flex:1 1 auto;flex-direction:column}:host([layout=horizontal]) .container,:host([layout=horizontal-single]) .container{display:grid;grid-template-areas:"items" "content";gap:.5rem var(--calcite-internal-stepper-item-spacing-unit-s)}:host([layout=horizontal][scale=s]) .container,:host([layout=horizontal-single][scale=s]) .container{gap:.25rem var(--calcite-internal-stepper-item-spacing-unit-s)}:host([layout=horizontal][scale=l]) .container,:host([layout=horizontal-single][scale=l]) .container{gap:.75rem var(--calcite-internal-stepper-item-spacing-unit-s)}:host([layout=horizontal]) .container.single-view{display:flex;grid-template-columns:none}.action-icon{position:relative;display:flex;flex-grow:0;block-size:var(--calcite-internal-stepper-action-block-size);inline-size:var(--calcite-internal-stepper-action-inline-size)}.action-container{position:absolute;display:flex;justify-content:space-between;padding-block:.25rem;inline-size:100%}.step-bar{display:flex;block-size:100%;inline-size:100%}.step-bar-container{position:absolute;display:flex;align-items:flex-start;justify-content:space-between;block-size:.125rem;inline-size:100%;gap:var(--calcite-internal-step-bar-gap, .5rem)}.step-bar--inactive{fill:var(--calcite-color-border-3, #dfdfdf);fill-opacity:1;block-size:100%}.step-bar--active{fill:var(--calcite-color-brand)}.step-bar--complete{fill:var(--calcite-color-brand);fill-opacity:.5}.step-bar--error{fill:var(--calcite-color-status-danger)}.step-bar--disabled{opacity:.5}:host([hidden]){display:none}[hidden]{display:none}`,d=class extends v{constructor(){super(),this.enabledItems=[],this.guid=`calcite-stepper-action-${S()}`,this.itemMap=new Map,this.items=[],this.multipleViewMode=!1,this.mutationObserver=y("mutation",()=>this.updateItems()),this.icon=!1,this.layout="horizontal",this.messages=z(),this.numbered=!1,this.scale="m",this.selectedItem=null,this.calciteInternalStepperItemChange=c({cancelable:!1}),this.calciteStepperChange=c({cancelable:!1}),this.calciteStepperItemChange=c({cancelable:!1}),this.listen("calciteInternalStepperItemKeyEvent",this.calciteInternalStepperItemKeyEvent),this.listen("calciteInternalStepperItemRegister",this.registerItem),this.listen("calciteInternalStepperItemSelect",this.updateItem),this.listen("calciteStepperItemSelect",this.handleItemSelect)}static{this.properties={currentActivePosition:16,icon:7,layout:3,messageOverrides:0,numbered:7,numberingSystem:3,scale:3,selectedItem:0}}static{this.styles=$}async endStep(){let t=this.getEnabledStepIndex(this.items.length-1,"previous");typeof t=="number"&&this.updateStep(t)}async goToStep(t){let e=t-1;this.currentActivePosition!==e&&this.updateStep(e)}async nextStep(){let t=this.getEnabledStepIndex(this.currentActivePosition+1,"next");typeof t=="number"&&this.updateStep(t)}async prevStep(){let t=this.getEnabledStepIndex(this.currentActivePosition-1,"previous");typeof t=="number"&&this.updateStep(t)}async startStep(){let t=this.getEnabledStepIndex(0,"next");typeof t=="number"&&this.updateStep(t)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0}),this.updateItems()}willUpdate(t){(t.has("icon")&&(this.hasUpdated||this.icon!==!1)||t.has("layout")&&(this.hasUpdated||this.layout!=="horizontal")||t.has("numbered")&&(this.hasUpdated||this.numbered!==!1)||t.has("scale")&&(this.hasUpdated||this.scale!=="m"))&&(this.updateItems(),this.determineActiveStepper()),t.has("numberingSystem")&&this.setStepperItemNumberingSystem(),t.has("currentActivePosition")&&requestAnimationFrame(()=>{this.determineActiveStepper()})}loaded(){if(typeof this.currentActivePosition!="number"){let t=this.getFirstEnabledStepperPosition();t===0&&(this.currentActivePosition=t),this.calciteInternalStepperItemChange.emit({position:t})}}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}calciteInternalStepperItemKeyEvent(t){let e=t.detail.item,i=t.target;switch(e.key){case"ArrowDown":case"ArrowRight":l(this.enabledItems,i,"next");break;case"ArrowUp":case"ArrowLeft":l(this.enabledItems,i,"previous");break;case"Home":l(this.enabledItems,i,"first");break;case"End":l(this.enabledItems,i,"last");break}t.stopPropagation()}registerItem(t){let e=t.target,{content:i,position:s}=t.detail;this.itemMap.set(e,{position:s,content:i}),this.enabledItems=this.filterItems(),t.stopPropagation()}updateItem(t){let{position:e}=t.detail;typeof e=="number"&&(this.currentActivePosition=e,this.selectedItem=t.target),this.calciteInternalStepperItemChange.emit({position:e})}handleItemSelect(){this.emitItemSelect()}emitItemSelect(){this.calciteStepperItemChange.emit(),this.calciteStepperChange.emit()}updateItems(){this.el.querySelectorAll("calcite-stepper-item").forEach(t=>{t.icon=this.icon,t.numbered=this.numbered,t.layout=this.layout,t.scale=this.scale})}determineActiveStepper(){let{items:t}=this;if(t.length<2)return;let{currentActivePosition:e,layout:i}=this;this.multipleViewMode=i!=="horizontal-single",t.forEach((s,n)=>{s.itemHidden=i==="horizontal-single"&&n!==(e||0)})}getEnabledStepIndex(t,e="next"){let{items:i,currentActivePosition:s}=this,n=t;for(;i[n]?.disabled&&this.layout!=="horizontal-single";)n=n+(e==="previous"?-1:1);return n!==s&&n<i.length&&n>=0?n:null}updateStep(t){this.currentActivePosition=t,this.calciteInternalStepperItemChange.emit({position:t})}filterItems(){return this.items.filter(t=>!t.disabled&&!m(t))}setStepperItemNumberingSystem(){this.items.forEach(t=>{t.numberingSystem=this.numberingSystem})}handleActionClick(t){let e=this.currentActivePosition;t.target.getAttribute("data-position")==="start"?this.prevStep():this.nextStep(),typeof this.currentActivePosition=="number"&&e!==this.currentActivePosition&&!this.items[this.currentActivePosition].disabled&&this.emitItemSelect()}getFirstEnabledStepperPosition(){let t=this.items.findIndex(e=>!e.disabled);return t>-1?t:0}setContainerEl(t){this.containerEl=t}handleDefaultSlotChange(t){let e=A(t).filter(s=>s?.tagName==="CALCITE-STEPPER-ITEM"&&!m(s));this.items=e;let i=Array(e.length).fill("1fr").join(" ");this.containerEl.style.gridTemplateAreas=i,this.containerEl.style.gridTemplateColumns=i,this.setStepperItemNumberingSystem()}render(){return this.el.ariaLabel=this.messages.label,this.el.role="region",a`<div class=${r({container:!0,[p.singleView]:this.layout==="horizontal-single"})} ${I(this.setContainerEl)}>${this.layout==="horizontal-single"&&a`<div class=${r({[p.stepBarContainer]:!0})}>${this.items.map((t,e)=>P({active:e===this.currentActivePosition,complete:t.complete&&e!==this.currentActivePosition&&!t.error,disabled:t.disabled&&e!==this.currentActivePosition,error:t.error&&e!==this.currentActivePosition}))}</div>`||""}${this.layout==="horizontal-single"&&a`<div class=${r({[p.actionContainer]:!0})}>${this.renderAction("start")}${this.renderAction("end")}</div>`||""}<slot @slotchange=${this.handleDefaultSlotChange}></slot></div>`}renderAction(t){let e=t==="start",i=e?"chevron-left":"chevron-right",{currentActivePosition:s,multipleViewMode:n,layout:x}=this,C=this.items.length,E=`${this.guid}-${e?"start":"end"}`;return x==="horizontal-single"&&!n?a`<calcite-action alignment=center appearance=transparent class=${r({[p.actionIcon]:!0})} compact data-position=${t??h} .disabled=${s===0&&e||s===C-1&&!e} .icon=${i} icon-flip-rtl id=${E??h} @click=${this.handleActionClick} .scale=${this.scale} .text=${e?this.messages.previousStep:this.messages.nextStep}></calcite-action>`:null}};f("calcite-stepper",d);export{d as Stepper};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{c as z,e as A,h as E}from"./
|
|
3
|
+
v3.0.0-next.117 */
|
|
4
|
+
import{c as z,e as A,h as E}from"./RKYSIEXF.js";import{c as C,d as R,e as I}from"./5PCQ2NLK.js";import{a as w,b as B}from"./4HTYUPVC.js";import{a as d}from"./MBCUJU6O.js";import{b as v}from"./ZXGY7N4S.js";import{e as x,l as g}from"./DESMINW2.js";import{b as y}from"./EWVW6R52.js";import"./4UFZECXF.js";import{I as k,d as u,e as p,i as b,u as a,v as f,w as m}from"./EKZ2EGLF.js";var q={container:"container"},F=u`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;cursor:pointer}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host .radio{cursor:pointer;border-radius:9999px;background-color:var(--calcite-color-foreground-1);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;box-shadow:inset 0 0 0 1px var(--calcite-color-border-input)}:host([hovered]) .radio,:host(:not([checked])[focused]:not([disabled])) .radio{box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host([focused]) .radio{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([disabled]) .radio{cursor:default;opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hovered][disabled]) .radio{box-shadow:inset 0 0 0 1px var(--calcite-color-border-input)}:host([scale=s]){--calcite-radio-size: var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size: var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size: var(--calcite-font-size-0)}.radio{block-size:var(--calcite-radio-size);max-inline-size:var(--calcite-radio-size);min-inline-size:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{box-shadow:inset 0 0 0 4px var(--calcite-color-brand)}:host([scale=s][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 4px var(--calcite-color-brand),0 0 0 2px var(--calcite-color-foreground-1)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{box-shadow:inset 0 0 0 5px var(--calcite-color-brand)}:host([scale=m][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 5px var(--calcite-color-brand),0 0 0 2px var(--calcite-color-foreground-1)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{box-shadow:inset 0 0 0 6px var(--calcite-color-brand)}:host([scale=l][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 6px var(--calcite-color-brand),0 0 0 2px var(--calcite-color-foreground-1)}@media (forced-colors: active){:host([checked]) .radio:after,:host([checked][disabled]) .radio:after{content:"";inline-size:var(--calcite-radio-size);block-size:var(--calcite-radio-size);background-color:windowText;display:block}}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`,l=class extends f{constructor(){super(),this.checked=!1,this.disabled=!1,this.focused=!1,this.hovered=!1,this.required=!1,this.scale="m",this.calciteInternalRadioButtonBlur=a({cancelable:!1}),this.calciteInternalRadioButtonCheckedChange=a({cancelable:!1}),this.calciteInternalRadioButtonFocus=a({cancelable:!1}),this.calciteRadioButtonChange=a({cancelable:!1}),this.listen("pointerenter",this.pointerEnterHandler),this.listen("pointerleave",this.pointerLeaveHandler),this.listen("click",this.clickHandler),this.listen("keydown",this.handleKeyDown)}static{this.properties={checked:7,disabled:7,focused:7,form:3,hovered:7,label:1,name:3,required:7,scale:3,value:1}}static{this.styles=F}async emitCheckedChange(){this.calciteInternalRadioButtonCheckedChange.emit()}async setFocus(){await y(this),this.disabled||g(this.containerEl)}connectedCallback(){this.rootNode=this.el.getRootNode(),this.name&&this.checkLastRadioButton(),C(this),z(this),this.updateTabIndexOfOtherRadioButtonsInGroup(),super.connectedCallback()}load(){}willUpdate(e){this.hasUpdated&&e.has("checked")&&this.checkedChanged(this.checked),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.updateTabIndexOfOtherRadioButtonsInGroup(),e.has("name")&&this.checkLastRadioButton()}updated(){w(this)}loaded(){this.focused&&!this.disabled&&this.setFocus()}disconnectedCallback(){super.disconnectedCallback(),R(this),A(this),this.updateTabIndexOfOtherRadioButtonsInGroup()}checkedChanged(e){e&&this.uncheckOtherRadioButtonsInGroup(),this.calciteInternalRadioButtonCheckedChange.emit()}syncHiddenFormInput(e){e.type="radio"}selectItem(e,o){e[o].click()}queryButtons(){return Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden])")).filter(e=>e.name===this.name)}isFocusable(){let e=this.queryButtons(),o=e.find(i=>!i.disabled),t=e.find(i=>i.checked);return o===this.el&&!t}check(){this.disabled||(this.focused=!0,this.setFocus(),!this.checked&&(this.uncheckAllRadioButtonsInGroup(),this.checked=!0,this.calciteRadioButtonChange.emit()))}clickHandler(){this.disabled||this.check()}onLabelClick(e){if(this.disabled||this.el.hidden)return;let o=e.currentTarget,t=o.for?this.rootNode.querySelector(`calcite-radio-button[id="${o.for}"]`):o.querySelector(`calcite-radio-button[name="${this.name}"]`);t&&(t.focused=!0,this.setFocus(),!t.checked&&(this.uncheckOtherRadioButtonsInGroup(),t.checked=!0,this.calciteRadioButtonChange.emit()))}checkLastRadioButton(){let e=this.queryButtons().filter(o=>o.checked);if(e?.length>1){let o=e[e.length-1];e.filter(t=>t!==o).forEach(t=>{t.checked=!1,t.emitCheckedChange()})}}setContainerEl(e){this.containerEl=e}uncheckAllRadioButtonsInGroup(){this.queryButtons().forEach(e=>{e.checked&&(e.checked=!1,e.focused=!1)})}uncheckOtherRadioButtonsInGroup(){this.queryButtons().filter(e=>e!==this.el).forEach(e=>{e.checked&&(e.checked=!1,e.focused=!1)})}updateTabIndexOfOtherRadioButtonsInGroup(){this.queryButtons().filter(e=>e!==this.el&&!e.disabled).forEach(e=>{e.manager?.component.requestUpdate()})}getTabIndex(){if(!this.disabled)return this.checked||this.isFocusable()?0:-1}pointerEnterHandler(){this.disabled||(this.hovered=!0)}pointerLeaveHandler(){this.disabled||(this.hovered=!1)}handleKeyDown(e){let o=["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "],{key:t}=e,{el:i}=this;if(o.indexOf(t)===-1)return;if(t===" "){this.check(),e.preventDefault();return}let c=t;x(i)==="rtl"&&(t==="ArrowRight"&&(c="ArrowLeft"),t==="ArrowLeft"&&(c="ArrowRight"));let s=Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden])")).filter(n=>n.name===this.name),r=0,h=s.length;switch(s.some((n,L)=>{if(n.checked)return r=L,!0}),c){case"ArrowLeft":case"ArrowUp":e.preventDefault(),this.selectItem(s,d(Math.max(r-1,-1),h));return;case"ArrowRight":case"ArrowDown":e.preventDefault(),this.selectItem(s,d(r+1,h));return;default:return}}onContainerBlur(){this.focused=!1,this.calciteInternalRadioButtonBlur.emit()}onContainerFocus(){this.disabled||(this.focused=!0,this.calciteInternalRadioButtonFocus.emit())}render(){let e=this.getTabIndex();return B({disabled:this.disabled,children:p`<div .ariaChecked=${this.checked} .ariaLabel=${I(this)} class=${m(q.container)} @blur=${this.onContainerBlur} @focus=${this.onContainerFocus} role=radio tabindex=${e??b} ${v(this.setContainerEl)}><div class="radio"></div></div>${E({component:this})}`})}};k("calcite-radio-button",l);export{l as RadioButton};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{b as s}from"./
|
|
3
|
+
v3.0.0-next.117 */
|
|
4
|
+
import{b as s}from"./ANTTFXC6.js";import"./PO7TZP4E.js";function m(r){return r>1&&r<5&&~~(r/10)!==1}function n(r,e,t,a){var _=r+" ";switch(t){case"s":return e||a?"p\xE1r sek\xFAnd":"p\xE1r sekundami";case"m":return e?"min\xFAta":a?"min\xFAtu":"min\xFAtou";case"mm":return e||a?_+(m(r)?"min\xFAty":"min\xFAt"):_+"min\xFAtami";case"h":return e?"hodina":a?"hodinu":"hodinou";case"hh":return e||a?_+(m(r)?"hodiny":"hod\xEDn"):_+"hodinami";case"d":return e||a?"de\u0148":"d\u0148om";case"dd":return e||a?_+(m(r)?"dni":"dn\xED"):_+"d\u0148ami";case"M":return e||a?"mesiac":"mesiacom";case"MM":return e||a?_+(m(r)?"mesiace":"mesiacov"):_+"mesiacmi";case"y":return e||a?"rok":"rokom";case"yy":return e||a?_+(m(r)?"roky":"rokov"):_+"rokmi"}}var o={name:"sk",weekdays:"nede\u013Ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),months:"janu\xE1r_febru\xE1r_marec_apr\xEDl_m\xE1j_j\xFAn_j\xFAl_august_september_okt\xF3ber_november_december".split("_"),monthsShort:"jan_feb_mar_apr_m\xE1j_j\xFAn_j\xFAl_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"pred %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};s.locale(o,null,!0);var c=o;export{c as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
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"./BDXPLRQH.js";import{a as Dt}from"./7A6UMXRE.js";import{e as Lt}from"./TVXE2ILK.js";import{C as pt,F as xt}from"./MG26L5EB.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};
|
|
3
|
+
v3.0.0-next.117 */
|
|
4
|
+
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"./7KSIHYEF.js";import{a as Dt}from"./QYXLUOSH.js";import{e as Lt}from"./DESMINW2.js";import{C as pt,F as xt}from"./EKZ2EGLF.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,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
3
|
+
v3.0.0-next.117 */
|
|
4
4
|
var a=class{constructor(){this._formatterCache=new Map,this._commonDateTimeFormatterOptions={year:"numeric",month:"2-digit",day:"2-digit",timeZoneName:"shortOffset"}}get name(){return"native"}create(t){return new Date(t)}increase(t){return new Date(t.getTime()+864e5)}formatToIsoDateString(t){let e=t.getFullYear(),n=t.getMonth()+1,r=t.getDate();return`${e}-${n.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}`}isoToTimeZone(t,e){let n=this._toDate(t),o=this._getFormatter(e).formatToParts(n),[i]=o.filter(({type:s})=>s==="timeZoneName").map(({value:s})=>s),m=this._getTimeZoneOffsetInMins(i),c=n.getMinutes()-(n.getTimezoneOffset()-m);return n.setMinutes(c),n}same(t,e){return t.getTime()===e.getTime()}_toDate(t){return new Date(t)}_getFormatter(t){t==="Factory"&&(t="Etc/GMT");let e=this._formatterCache.get(t);return e||(e=new Intl.DateTimeFormat("en-US",{timeZone:t,...this._commonDateTimeFormatterOptions}),this._formatterCache.set(t,e)),e}_getTimeZoneOffsetInMins(t){let[e,...n]=t.slice(3),[r,o]=n.join("").split(":");return(e==="+"?1:-1)*(Number(r)*60+Number(o||0))}};export{a as DateEngine};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{b as l,c}from"./
|
|
3
|
+
v3.0.0-next.117 */
|
|
4
|
+
import{b as l,c}from"./QYXLUOSH.js";var b=(n,f,i)=>{let u=l(f),p=new RegExp(u,"i");n.length===0&&console.warn(`No data was passed to the filter function.
|
|
5
5
|
The data argument should be an array of objects`);let o=(r,a,s)=>{if(r?.constant||r?.filterDisabled)return!0;let e=!1;return c(r,(t,d)=>{typeof t=="function"||t==null||s&&!s.includes(d)||(Array.isArray(t)||typeof t=="object"&&t!==null?o(t,a)&&(e=!0):a.test(t)&&(e=!0))}),e};return n.filter(r=>o(r,p,i))};export{b as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{e as i,w as o}from"./
|
|
3
|
+
v3.0.0-next.117 */
|
|
4
|
+
import{e as i,w as o}from"./EKZ2EGLF.js";function l(){let{disabled:t}=this;t||HTMLElement.prototype.click.call(this)}function a(t){t.target.disabled&&t.preventDefault()}var r=["mousedown","mouseup","click"];function c(t){t.target.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}var n={capture:!0};function b(t){if(t.disabled){t.el.setAttribute("aria-disabled","true"),t.el.contains(document.activeElement)&&document.activeElement.blur(),s(t);return}u(t),t.el.removeAttribute("aria-disabled")}function s(t){t.el.click=l,d(t.el)}function d(t){t.addEventListener("pointerdown",a,n),r.forEach(e=>t.addEventListener(e,c,n))}function u(t){delete t.el.click,m(t.el)}function m(t){t.removeEventListener("pointerdown",a,n),r.forEach(e=>t.removeEventListener(e,c,n))}var f={container:"interaction-container"},E=({children:t,disabled:e})=>i`<div class=${o(f.container)} .inert=${e}>${t}</div>`;export{b as a,E as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{b as d}from"./
|
|
3
|
+
v3.0.0-next.117 */
|
|
4
|
+
import{b as d}from"./ANTTFXC6.js";import"./PO7TZP4E.js";function a(n){return n>1&&n<5&&~~(n/10)!==1}function _(n,e,m,r){var s=n+" ";switch(m){case"s":return e||r?"p\xE1r sekund":"p\xE1r sekundami";case"m":return e?"minuta":r?"minutu":"minutou";case"mm":return e||r?s+(a(n)?"minuty":"minut"):s+"minutami";case"h":return e?"hodina":r?"hodinu":"hodinou";case"hh":return e||r?s+(a(n)?"hodiny":"hodin"):s+"hodinami";case"d":return e||r?"den":"dnem";case"dd":return e||r?s+(a(n)?"dny":"dn\xED"):s+"dny";case"M":return e||r?"m\u011Bs\xEDc":"m\u011Bs\xEDcem";case"MM":return e||r?s+(a(n)?"m\u011Bs\xEDce":"m\u011Bs\xEDc\u016F"):s+"m\u011Bs\xEDci";case"y":return e||r?"rok":"rokem";case"yy":return e||r?s+(a(n)?"roky":"let"):s+"lety"}}var t={name:"cs",weekdays:"ned\u011Ble_pond\u011Bl\xED_\xFAter\xFD_st\u0159eda_\u010Dtvrtek_p\xE1tek_sobota".split("_"),weekdaysShort:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),weekdaysMin:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),months:"leden_\xFAnor_b\u0159ezen_duben_kv\u011Bten_\u010Derven_\u010Dervenec_srpen_z\xE1\u0159\xED_\u0159\xEDjen_listopad_prosinec".split("_"),monthsShort:"led_\xFAno_b\u0159e_dub_kv\u011B_\u010Dvn_\u010Dvc_srp_z\xE1\u0159_\u0159\xEDj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:_,m:_,mm:_,h:_,hh:_,d:_,dd:_,M:_,MM:_,y:_,yy:_}};d.locale(t,null,!0);var o=t;export{o as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{c as a,l as S,r as T,v as C}from"./
|
|
3
|
+
v3.0.0-next.117 */
|
|
4
|
+
import{c as a,l as S,r as T,v as C}from"./DESMINW2.js";import"./4UFZECXF.js";import{I as b,d as y,e as E,u as A,v as I,z as M}from"./EKZ2EGLF.js";function v(h){return h?.tagName==="CALCITE-TREE-ITEM"}function w(h){return Array.from(h.querySelectorAll("calcite-tree-item:not([disabled])")).filter(e=>{let t=e;for(;t!==h&&t!==void 0;){let l=t.parentElement;if(!(!v(l)||!l.hasChildren||l.expanded))return!1;t=t.parentElement}return!0})}var D=y`:host{display:block}:host(:focus){outline:2px solid transparent;outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}`,x=class extends I{constructor(){super(),this.items=[],this.lines=!1,this.parentExpanded=!1,this.scale="m",this.selectedItems=[],this.selectionMode="single",this.calciteTreeSelect=A({cancelable:!1}),this.listen("focus",this.onFocus),this.listen("focusin",this.onFocusIn),this.listen("focusout",this.onFocusOut),this.listen("calciteInternalTreeItemSelect",this.onInternalTreeItemSelect),this.listen("keydown",this.keyDownHandler)}static{this.properties={child:7,lines:7,parentExpanded:5,scale:3,selectedItems:0,selectionMode:3}}static{this.styles=D}willUpdate(e){e.has("parentExpanded")&&(this.hasUpdated||this.parentExpanded!==!1)&&this.updateItems();let t=this.el.parentElement?.closest("calcite-tree");this.lines=t?t.lines:this.lines,this.scale=t?t.scale:this.scale,this.selectionMode=t?t.selectionMode:this.selectionMode,this.child=!!t}onFocus(){if(!this.child){let e=this.el.querySelector("calcite-tree-item[selected]:not([disabled])")||this.el.querySelector("calcite-tree-item:not([disabled])");S(e)}}onFocusIn(e){(e.relatedTarget===this.el||!this.el.contains(e.relatedTarget))&&this.el.removeAttribute("tabindex")}onFocusOut(e){!this.el.contains(e.relatedTarget)&&(this.el.tabIndex=this.getRootTabIndex())}onInternalTreeItemSelect(e){if(this.child)return;let t=e.target,l=a(t.querySelectorAll("calcite-tree-item"));if(e.preventDefault(),e.stopPropagation(),this.selectionMode==="ancestors"){this.updateAncestorTree(e);return}let r=this.selectionMode==="none",n=this.selectionMode!==null&&(!t.hasChildren||t.hasChildren&&(this.selectionMode==="children"||this.selectionMode==="multichildren")),s=this.selectionMode==="multichildren"&&t.hasChildren,u=!r&&e.detail.modifyCurrentSelection&&(this.selectionMode==="multiple"||this.selectionMode==="multichildren"),g=!u&&((this.selectionMode==="single"||this.selectionMode==="multiple")&&l.length<=0||this.selectionMode==="children"||this.selectionMode==="multichildren"||this.selectionMode==="single-persist"&&!t.hasChildren),d=["multiple","none","single","single-persist"].includes(this.selectionMode)&&t.hasChildren,c=[];n&&c.push(t),g&&a(this.el.querySelectorAll("calcite-tree-item[selected]")).forEach(i=>{c.includes(i)||(i.selected=!1)}),d&&["multiple","none","single","single-persist"].includes(this.selectionMode)&&(t.expanded=!t.expanded),s&&l.forEach(i=>{i.selected=!1,i.hasChildren&&(i.expanded=!1)}),u&&window.getSelection().removeAllRanges(),u&&t.selected?c.forEach(i=>{i.disabled||(i.selected=!1)}):r||c.forEach(i=>{i.disabled||(i.selected=this.selectionMode!=="single"||!i.selected)}),this.selectedItems=r?[]:a(this.el.querySelectorAll("calcite-tree-item")).filter(i=>i.selected),this.calciteTreeSelect.emit(),e.stopPropagation()}keyDownHandler(e){if(this.child)return;let t=this.el,l=e.target,r=["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End","Tab"];if(!(v(l)&&this.el.contains(l))||!r.includes(e.key))return;let n=w(t);if(e.key==="Tab"){n.forEach(s=>s.tabIndex=-1);return}if(e.key==="ArrowDown"){let s=n.indexOf(l);n[s+1]?.focus(),e.preventDefault();return}if(e.key==="ArrowUp"){let s=n.indexOf(l);n[s-1]?.focus(),e.preventDefault();return}if(e.key==="ArrowLeft"){if(l.hasChildren&&l.expanded){l.expanded=!1,e.preventDefault();return}n.slice(0,n.indexOf(l)).reverse().find(s=>s.depth===l.depth-1)?.focus(),e.preventDefault();return}if(e.key==="ArrowRight"){if(!l.disabled&&l.hasChildren)if(!l.expanded)l.expanded=!0,e.preventDefault();else{let s=n.indexOf(l);n[s+1]?.focus(),e.preventDefault()}return}if(e.key==="Home"){let s=n.shift();s&&(s.focus(),e.preventDefault());return}if(e.key==="End"){let s=n.pop();s&&(s.focus(),e.preventDefault());return}}updateAncestorTree(e){let t=e.target,l=e.detail.updateItem;if(t.disabled||t.indeterminate&&!l)return;let r=[],n=t.parentElement.closest("calcite-tree-item");for(;n;)r.push(n),n=n.parentElement.closest("calcite-tree-item");let s=Array.from(t.querySelectorAll("calcite-tree-item:not([disabled])")),u=s.filter(i=>!i.hasChildren),g=s.filter(i=>i.hasChildren),d;l?d=t.hasChildren?!(t.selected||t.indeterminate):!t.selected:d=t.selected,u.forEach(i=>{i.selected=d,i.indeterminate=!1});function c(i,o){let f=i.filter(p=>p.selected),m=i.filter(p=>!p.selected);o.selected=f.length===i.length,o.indeterminate=f.length>0&&m.length>0}g.reverse().forEach(i=>{let o=Array.from(i.querySelectorAll(":scope > calcite-tree > calcite-tree-item"));c(o,i)}),l&&(t.hasChildren?c(s,t):(t.selected=d,t.indeterminate=!1)),r.forEach(i=>{let o=a(i.querySelectorAll("calcite-tree-item")),f=o.filter(p=>p.selected);if(f.length===0){i.selected=!1,i.indeterminate=!1;return}let m=f.length<o.length;i.indeterminate=m,i.selected=!m}),this.selectedItems=a(this.el.querySelectorAll("calcite-tree-item")).filter(i=>i.selected),l&&this.calciteTreeSelect.emit()}updateItems(){this.items.forEach(e=>e.parentExpanded=this.parentExpanded)}handleDefaultSlotChange(e){let t=C(e).filter(l=>l.matches("calcite-tree-item"));this.items=t,this.updateItems()}getRootTabIndex(){return this.child?-1:0}render(){return this.el.ariaMultiSelectable=this.child?void 0:T(this.selectionMode==="multiple"||this.selectionMode==="multichildren"),this.el.role=this.child?void 0:"tree",M(this.el,"tabIndex",this.getRootTabIndex()),E`<slot @slotchange=${this.handleDefaultSlotChange}></slot>`}};b("calcite-tree",x);export{x as Tree};
|