@arcgis/map-components 5.1.0-next.76 → 5.1.0-next.78
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/cdn/{CACNO7RL.js → 2KPAIYFL.js} +1 -1
- package/dist/cdn/3C7OR3CF.js +2 -0
- package/dist/cdn/{KA7TWJWF.js → 3S5CHU4A.js} +1 -1
- package/dist/cdn/{CYQO4QP4.js → 3STORKVK.js} +1 -1
- package/dist/cdn/{I4N2D54J.js → 3SYWMT6T.js} +1 -1
- package/dist/cdn/{LB4DADJX.js → 3WKBZDRG.js} +1 -1
- package/dist/cdn/{HWEEHWOD.js → 3XD6T77C.js} +1 -1
- package/dist/cdn/{43K6WHJE.js → 3Z2IGTFN.js} +1 -1
- package/dist/cdn/{DLWIT4TY.js → 4ADMY4RI.js} +1 -1
- package/dist/cdn/{UWDVCS4E.js → 4CHI5XSE.js} +1 -1
- package/dist/cdn/{6W4FXBBQ.js → 4MXDYPC4.js} +1 -1
- package/dist/cdn/{FOUN5D3O.js → 4TV5HESM.js} +1 -1
- package/dist/cdn/{T66WG4I4.js → 52O6WSI4.js} +1 -1
- package/dist/cdn/{STRMIFOQ.js → 52QFTNJG.js} +1 -1
- package/dist/cdn/{SE6RRFBA.js → 57WSL6RK.js} +1 -1
- package/dist/cdn/{OTC6TYTF.js → 5FVIW7SW.js} +1 -1
- package/dist/cdn/{5J37HLFL.js → 5K7ZMOEQ.js} +1 -1
- package/dist/cdn/{3AX3SJK2.js → 5NMJSOMR.js} +1 -1
- package/dist/cdn/{WINS52AG.js → 5T4NN5A3.js} +1 -1
- package/dist/cdn/{FE3BYRUX.js → 5VYKZV6B.js} +1 -1
- package/dist/cdn/{SJDBMERA.js → 5YLOV5ME.js} +1 -1
- package/dist/cdn/{NNZFQ3A4.js → 63DNMQT4.js} +1 -1
- package/dist/cdn/{B2S3QOVD.js → 6BZE3KO2.js} +1 -1
- package/dist/cdn/{G42P3KQ6.js → 6EHFB5MX.js} +1 -1
- package/dist/cdn/{XF6IFR2Q.js → 6SQQGMCG.js} +1 -1
- package/dist/cdn/{JKJ4FQKL.js → 6VS456TO.js} +1 -1
- package/dist/cdn/{UHALHKHT.js → 6WK62PKO.js} +1 -1
- package/dist/cdn/{NIBNK3Z5.js → 6YTWFGYC.js} +1 -1
- package/dist/cdn/{W2TSRBOS.js → 754HIIHN.js} +1 -1
- package/dist/cdn/{YWYIVDCG.js → 7ECV2B3N.js} +1 -1
- package/dist/cdn/{W7UFIVEB.js → 7L4BYCIR.js} +1 -1
- package/dist/cdn/{MEGP2NPD.js → 7QA6YHUU.js} +1 -1
- package/dist/cdn/{NJW26JFU.js → 7ZHMWLGY.js} +1 -1
- package/dist/cdn/{72CK3WCR.js → 7ZPROKEE.js} +1 -1
- package/dist/cdn/{M7RBOMBN.js → A3LEKJKR.js} +1 -1
- package/dist/cdn/{GT6Q5IY3.js → A4AU5MP3.js} +1 -1
- package/dist/cdn/{ZJ22ILAI.js → A4PJCQZZ.js} +1 -1
- package/dist/cdn/{APKTL7SO.js → A7UALTCV.js} +1 -1
- package/dist/cdn/{ZJKDFPY4.js → ACNNN424.js} +1 -1
- package/dist/cdn/{P7GBGAFM.js → AZHR5D3O.js} +1 -1
- package/dist/cdn/{ZBT5NH2L.js → B776JQDT.js} +1 -1
- package/dist/cdn/{E7EA5XDB.js → BC3ME4FG.js} +1 -1
- package/dist/cdn/{NLRDVW4V.js → BJXBU27X.js} +1 -1
- package/dist/cdn/{A26DRZN4.js → BUBHE53F.js} +1 -1
- package/dist/cdn/{S6KYM3LN.js → BUVEEFU7.js} +1 -1
- package/dist/cdn/{SCPCX6UA.js → BXUZLV3P.js} +1 -1
- package/dist/cdn/C5DLADWD.js +4 -0
- package/dist/cdn/{PHRWTXE2.js → CCCV6EBK.js} +1 -1
- package/dist/cdn/{AG7LUCV3.js → CI7CWSV2.js} +1 -1
- package/dist/cdn/{7TFFI5XQ.js → CIAIK3BO.js} +1 -1
- package/dist/cdn/{S4U6RD3Z.js → CK2WVOTW.js} +1 -1
- package/dist/cdn/{CHMQU4DQ.js → CLRZU7WX.js} +1 -1
- package/dist/cdn/{V2HLEYHF.js → CRPUZSLJ.js} +1 -1
- package/dist/cdn/{UFPVVX5A.js → D53MCPSK.js} +1 -1
- package/dist/cdn/DHJSJAAW.js +2 -0
- package/dist/cdn/{N7VR7H4O.js → DNQTYLNU.js} +1 -1
- package/dist/cdn/{KIK5PKO7.js → DSILOGA4.js} +1 -1
- package/dist/cdn/{CRYOAY2H.js → DVO4VBDY.js} +1 -1
- package/dist/cdn/DWH2AQRZ.js +2 -0
- package/dist/cdn/{CQRMBQPI.js → EH65OLD4.js} +1 -1
- package/dist/cdn/{SD7DMWPD.js → EHCSSPND.js} +1 -1
- package/dist/cdn/{WFCPCKWY.js → EL3TOQXJ.js} +1 -1
- package/dist/cdn/ENZU463G.js +2 -0
- package/dist/cdn/{IHQLTHJE.js → EP34L6YR.js} +1 -1
- package/dist/cdn/{GFIX4VIP.js → ESRT2LM3.js} +1 -1
- package/dist/cdn/{WO2BX7U2.js → F3ZBOUVA.js} +1 -1
- package/dist/cdn/{Q4M2HATT.js → FFG3KEF2.js} +1 -1
- package/dist/cdn/{OCARRD2E.js → FMFI64MN.js} +1 -1
- package/dist/cdn/{L5MVC2NA.js → FRDIRDV2.js} +1 -1
- package/dist/cdn/{MELR5RGE.js → FYYOO2SP.js} +1 -1
- package/dist/cdn/{KET53JUE.js → FZ234X2S.js} +1 -1
- package/dist/cdn/{X3FFVKWE.js → G5BZ2XDI.js} +1 -1
- package/dist/cdn/{ASX42Z23.js → G7ABQLKM.js} +1 -1
- package/dist/cdn/{ZZ2PNMQH.js → GDRDTQNF.js} +1 -1
- package/dist/cdn/{YQEDXRJA.js → GHNXMTEW.js} +1 -1
- package/dist/cdn/{3I5WS3FR.js → GXJXCDAV.js} +1 -1
- package/dist/cdn/{5N7UWAVE.js → H5PYEVJK.js} +1 -1
- package/dist/cdn/{QDEWCM6X.js → HENNZAPX.js} +1 -1
- package/dist/cdn/{NHFOFAFP.js → HG7ZXBAM.js} +1 -1
- package/dist/cdn/{X4K6UDSU.js → HLAS4IJN.js} +1 -1
- package/dist/cdn/{WIBXC4YU.js → I4FQEN2E.js} +1 -1
- package/dist/cdn/{S5JVHVOR.js → I56NMUHZ.js} +1 -1
- package/dist/cdn/{OLEXEPTK.js → IE6ZIKTS.js} +1 -1
- package/dist/cdn/{NORRVFXR.js → IHYP7TNI.js} +1 -1
- package/dist/cdn/{RJ6ZGPF4.js → IJ23I4O5.js} +1 -1
- package/dist/cdn/{DJOFGKNV.js → IJTP75DN.js} +1 -1
- package/dist/cdn/{2ELCZVYD.js → IKJ4QOOE.js} +1 -1
- package/dist/cdn/{Z5OWX3WN.js → ILL73PSY.js} +1 -1
- package/dist/cdn/{IP6NIPH4.js → ISHFOB43.js} +1 -1
- package/dist/cdn/{6D72H6LD.js → J752EZTH.js} +1 -1
- package/dist/cdn/{FZQCY3ZG.js → JAFF7K7J.js} +1 -1
- package/dist/cdn/{FUQTYVGG.js → JEMHSKQB.js} +1 -1
- package/dist/cdn/{EVY34LST.js → JGWD2EFI.js} +1 -1
- package/dist/cdn/{CZ4AD53F.js → JI4OTEL5.js} +1 -1
- package/dist/cdn/{MNXYDKVS.js → JJJFLSQG.js} +1 -1
- package/dist/cdn/{IUC4DIX3.js → JML2AIAF.js} +1 -1
- package/dist/cdn/{ECFM6HYM.js → JV35L4KZ.js} +1 -1
- package/dist/cdn/{FJZK7WV6.js → JVFKWD4H.js} +1 -1
- package/dist/cdn/{NZJR4L2B.js → KCUBKBVC.js} +1 -1
- package/dist/cdn/{BEHN6I6X.js → KJIFTTVI.js} +1 -1
- package/dist/cdn/{APYGTRF2.js → KYAZDACR.js} +1 -1
- package/dist/cdn/{OEYAER33.js → L2IH77R2.js} +1 -1
- package/dist/cdn/{WEH7CANO.js → L2ZRXLAY.js} +1 -1
- package/dist/cdn/{3HOI2V7M.js → L63YI34J.js} +1 -1
- package/dist/cdn/{BH32Z76H.js → LGHCANK6.js} +1 -1
- package/dist/cdn/{5LX733ME.js → LLXBBPLP.js} +1 -1
- package/dist/cdn/{2F2MGL4Q.js → LODZ4FPE.js} +1 -1
- package/dist/cdn/{K2DVP6DU.js → LT6MLTBE.js} +1 -1
- package/dist/cdn/{CFXRUQAL.js → LUXDVDWQ.js} +1 -1
- package/dist/cdn/{BHFAEIHA.js → LY5ME2JV.js} +1 -1
- package/dist/cdn/{LHINF2SX.js → LYJ2YSMR.js} +1 -1
- package/dist/cdn/{QKG6UT42.js → N65HO77B.js} +1 -1
- package/dist/cdn/{VRTVUSGY.js → N6EZNANB.js} +1 -1
- package/dist/cdn/{TXGJSCLD.js → NC4U36XU.js} +1 -1
- package/dist/cdn/{PP7ZT3L2.js → NE7URSJE.js} +1 -1
- package/dist/cdn/{2NOPYDQS.js → NH55ZRSN.js} +1 -1
- package/dist/cdn/{5UNQDPZJ.js → NHZAMO5I.js} +1 -1
- package/dist/cdn/{FAQRULFP.js → NJ45FAUA.js} +1 -1
- package/dist/cdn/NJ5PJX47.js +2 -0
- package/dist/cdn/{JR4KXCXH.js → NNI6LGQD.js} +1 -1
- package/dist/cdn/{ADEVZ6VO.js → NRSGW66G.js} +1 -1
- package/dist/cdn/{RO7G7YI6.js → O26UZS77.js} +1 -1
- package/dist/cdn/{TXDD3LFB.js → OF557DVT.js} +1 -1
- package/dist/cdn/{LWQZWUXM.js → ONFQOLB7.js} +1 -1
- package/dist/cdn/{AOJHIQTX.js → OR3ZMOGW.js} +1 -1
- package/dist/cdn/{6OM4BUVD.js → OU2KFEK7.js} +1 -1
- package/dist/cdn/{OOWF5FYH.js → OVVNERWE.js} +1 -1
- package/dist/cdn/{6G2BU2BR.js → OWMOCBP5.js} +1 -1
- package/dist/cdn/{QW4QGAIG.js → OXTLJPNZ.js} +1 -1
- package/dist/cdn/{LJZ2SOPU.js → PBACFJHC.js} +1 -1
- package/dist/cdn/{OED5NC6N.js → PDJZAHR3.js} +1 -1
- package/dist/cdn/{N3OPOJCY.js → PH7MF23O.js} +1 -1
- package/dist/cdn/{V3BMEZZP.js → PPXAIUP5.js} +1 -1
- package/dist/cdn/{3SFEMBVV.js → PV3EMYHQ.js} +1 -1
- package/dist/cdn/{6UX4Z6VU.js → PYCPKGFF.js} +1 -1
- package/dist/cdn/{RVJNTIZ7.js → Q2HMS3UI.js} +1 -1
- package/dist/cdn/{W63VCIHF.js → Q5XUBNES.js} +1 -1
- package/dist/cdn/{FMHQLHWM.js → Q7DJZTZS.js} +1 -1
- package/dist/cdn/{ULEVE3UM.js → QDNEMQDL.js} +1 -1
- package/dist/cdn/{6PKEUXSO.js → QLYIU55V.js} +1 -1
- package/dist/cdn/{LZUWGRAM.js → RC3W33TY.js} +1 -1
- package/dist/cdn/{VXFUINRN.js → RKE44TXA.js} +1 -1
- package/dist/cdn/{MNLNBW3S.js → RROMCPSS.js} +1 -1
- package/dist/cdn/{XM5NRBJO.js → RTMJCNEQ.js} +1 -1
- package/dist/cdn/{JBTN4GL2.js → RUN2XYMY.js} +1 -1
- package/dist/cdn/{JE27PKO6.js → RVWQECCR.js} +1 -1
- package/dist/cdn/{DXHOQGVA.js → RYAQ3K3R.js} +1 -1
- package/dist/cdn/{Y6J3KKIJ.js → RYTRWCXZ.js} +1 -1
- package/dist/cdn/{7KWU54HM.js → STZRQJUZ.js} +1 -1
- package/dist/cdn/{QVQGIR6D.js → SVZ5TS47.js} +1 -1
- package/dist/cdn/{Y5JWTIP4.js → SXGAGZZF.js} +1 -1
- package/dist/cdn/{J7CQ6QTI.js → SZYFJ2ME.js} +1 -1
- package/dist/cdn/{BAJLAC4A.js → T5SQSJ4I.js} +1 -1
- package/dist/cdn/{QCDIKENQ.js → TDGOH2O5.js} +1 -1
- package/dist/cdn/{HAKD7266.js → TG26NB3V.js} +1 -1
- package/dist/cdn/{A47GCJWF.js → TKV5RNCX.js} +1 -1
- package/dist/cdn/{WULZBTNW.js → TLSINA7Z.js} +1 -1
- package/dist/cdn/TQMA4OZB.js +2 -0
- package/dist/cdn/{XOTOQOK6.js → TRFQEBXS.js} +1 -1
- package/dist/cdn/{QZBFM3AA.js → U244HQF3.js} +1 -1
- package/dist/cdn/{CFIG2V7L.js → U3YXUZHJ.js} +1 -1
- package/dist/cdn/{VNWKALDY.js → U4FOT7ER.js} +1 -1
- package/dist/cdn/{FL6CHMPH.js → UCML2746.js} +1 -1
- package/dist/cdn/{NOCKD7KH.js → UD6QF2NI.js} +1 -1
- package/dist/cdn/{X7JSA5PG.js → UL4XLLGI.js} +1 -1
- package/dist/cdn/{NMP4CEPM.js → UODEI64R.js} +1 -1
- package/dist/cdn/{MZ2TWQRP.js → UUGR43RO.js} +1 -1
- package/dist/cdn/{RZ3PYHOX.js → UUSDRN34.js} +1 -1
- package/dist/cdn/{HAWDOVIO.js → UVAO2IEE.js} +1 -1
- package/dist/cdn/{CIDI6EZW.js → V2BJHPKN.js} +1 -1
- package/dist/cdn/{SM7CZ2LG.js → V45TGYWX.js} +1 -1
- package/dist/cdn/{33HHEIDJ.js → VCA3DNKP.js} +1 -1
- package/dist/cdn/{N2ZR7Q6F.js → VMVHTLRD.js} +1 -1
- package/dist/cdn/{KCMHFNRQ.js → VOO3RMI7.js} +1 -1
- package/dist/cdn/{IVKWYER5.js → VPOSSFKR.js} +1 -1
- package/dist/cdn/{LBBPRMIN.js → VSHOU5LO.js} +1 -1
- package/dist/cdn/{2LHTH7PU.js → WBDPNTXV.js} +1 -1
- package/dist/cdn/{W5DCESH4.js → WBPFDTEJ.js} +1 -1
- package/dist/cdn/{MF7JPFJ4.js → WGYO5OR6.js} +1 -1
- package/dist/cdn/WMCZM6D4.js +2 -0
- package/dist/cdn/{TL3BHZ3H.js → WNAVM6XX.js} +1 -1
- package/dist/cdn/{AG6LWZ63.js → WX2MMWLH.js} +1 -1
- package/dist/cdn/{PGZSF2NC.js → XF56AAZA.js} +1 -1
- package/dist/cdn/{DDRAWHZU.js → XHN4O3NF.js} +1 -1
- package/dist/cdn/{3ATNVL7S.js → YGUNBANA.js} +1 -1
- package/dist/cdn/{ZRBPUXRN.js → YKWANHMZ.js} +1 -1
- package/dist/cdn/{JWH3UFIH.js → YSVPE3RI.js} +1 -1
- package/dist/cdn/{JO7B2R5F.js → YTQQDJUX.js} +1 -1
- package/dist/cdn/{O6JPYYGF.js → ZD53HSIG.js} +1 -1
- package/dist/cdn/{HL4M23YL.js → ZEOBDRTD.js} +1 -1
- package/dist/cdn/{D3LKHYLJ.js → ZOJOWYGT.js} +1 -1
- package/dist/cdn/{YFXHW7I2.js → ZQDX6D67.js} +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.de.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.d.ts +9 -0
- package/dist/components/arcgis-feature-table/customElement.js +2 -2
- package/dist/components/arcgis-features/customElement.js +2 -2
- package/dist/components/arcgis-popup/customElement.js +105 -105
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +5 -1
- package/dist/components/arcgis-presentation/customElement.d.ts +15 -8
- package/dist/components/arcgis-presentation/customElement.js +249 -196
- package/dist/components/arcgis-presentation-captions/customElement.js +21 -15
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +49 -52
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +3 -3
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +4 -4
- package/dist/cdn/5CKHTWHC.js +0 -2
- package/dist/cdn/65CSQYOK.js +0 -2
- package/dist/cdn/DSHFA5OM.js +0 -2
- package/dist/cdn/GRYRJF75.js +0 -4
- package/dist/cdn/ILA4VRUF.js +0 -2
- package/dist/cdn/UVGSA7KM.js +0 -2
- package/dist/cdn/YLKEVZLN.js +0 -2
- package/dist/cdn/ZVDWGIFU.js +0 -2
|
@@ -1,53 +1,84 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as z } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as O, html as u } from "lit";
|
|
4
|
-
import { GenericController as
|
|
5
|
-
import { LitElement as M, createEvent as
|
|
6
|
-
import { u as
|
|
7
|
-
import { m as
|
|
8
|
-
import { property as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { ignoreAbortErrors as
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
4
|
+
import { GenericController as F, proxyExports as R, useDirection as G } from "@arcgis/lumina/controllers";
|
|
5
|
+
import { LitElement as M, createEvent as I, nothing as S } from "@arcgis/lumina";
|
|
6
|
+
import { u as $ } from "../../chunks/useT9n.js";
|
|
7
|
+
import { m as N } from "../../chunks/useViewModel.js";
|
|
8
|
+
import { property as c, subclass as B } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
9
|
+
import E from "@arcgis/core/core/Accessor.js";
|
|
10
|
+
import y from "@arcgis/core/core/Collection.js";
|
|
11
|
+
import { ignoreAbortErrors as T } from "@arcgis/core/core/promiseUtils.js";
|
|
12
|
+
import { watch as g, on as H, whenOnce as v } from "@arcgis/core/core/reactiveUtils.js";
|
|
13
|
+
import D from "@arcgis/core/Graphic.js";
|
|
14
|
+
import V from "@arcgis/core/layers/Layer.js";
|
|
15
|
+
import k from "@arcgis/core/graphic/CSVGraphicOrigin.js";
|
|
16
16
|
import j from "@arcgis/core/graphic/GeoJSONGraphicOrigin.js";
|
|
17
17
|
import W from "@arcgis/core/graphic/SceneGraphicOrigin.js";
|
|
18
18
|
import K from "@arcgis/core/graphic/WFSGraphicOrigin.js";
|
|
19
19
|
import U from "@arcgis/core/graphic/BuildingGraphicOrigin.js";
|
|
20
20
|
import Q from "@arcgis/core/graphic/FeatureGraphicOrigin.js";
|
|
21
|
-
import { fetchPopupFeaturesFromGraphics as
|
|
22
|
-
import { s as
|
|
21
|
+
import { fetchPopupFeaturesFromGraphics as A } from "@arcgis/core/applications/SceneViewer/sceneViewerUtils.js";
|
|
22
|
+
import { s as _ } from "../../chunks/resources.js";
|
|
23
23
|
const q = O`:host{width:100%;height:100%;padding:var(--calcite-spacing-none);margin:var(--calcite-spacing-none);display:flex}p{padding:0;margin:0}.root{--internal-attribution-height: 16px;pointer-events:auto;display:flex;align-items:center;gap:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);box-shadow:var(--arcgis-internal-box-shadow);align-self:flex-end;margin-block:auto calc(var(--calcite-spacing-fixed-xl) + var(--internal-attribution-height));margin-inline-start:var(--calcite-spacing-fixed-xl)}.slide-counter-text{display:flex;align-items:center;justify-content:center;gap:var(--calcite-spacing-base);min-width:64px}.slide-counter-text-element{box-sizing:border-box;max-width:28px;margin:0;padding:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums}`;
|
|
24
|
-
var J = Object.defineProperty, X = Object.getOwnPropertyDescriptor,
|
|
25
|
-
for (var r =
|
|
26
|
-
(o =
|
|
27
|
-
return
|
|
24
|
+
var J = Object.defineProperty, X = Object.getOwnPropertyDescriptor, l = (i, e, t, s) => {
|
|
25
|
+
for (var r = s > 1 ? void 0 : s ? X(e, t) : e, n = i.length - 1, o; n >= 0; n--)
|
|
26
|
+
(o = i[n]) && (r = (s ? o(e, t, r) : o(r)) || r);
|
|
27
|
+
return s && r && J(e, t, r), r;
|
|
28
28
|
};
|
|
29
|
-
let
|
|
29
|
+
let a = class extends E {
|
|
30
|
+
//endregion
|
|
30
31
|
//#region Lifecycle
|
|
31
|
-
constructor(
|
|
32
|
-
super(
|
|
33
|
-
this.
|
|
34
|
-
const
|
|
35
|
-
this.addHandles(
|
|
32
|
+
constructor(i) {
|
|
33
|
+
super(i), this.transitionActive = !1, this.keyboardNavigationEnabled = !1, this._subscribeToSlideEvents = (e) => {
|
|
34
|
+
this._unsubscribeToSlideEvents(e), e.forEach((t) => {
|
|
35
|
+
const s = t.on("apply-slide-start", () => this._onApplySlideStart(t)), r = t.on("apply-slide-complete", () => this._onApplySlideComplete(t)), n = t.on("apply-slide-cancel", () => this._onApplySlideCancel(t));
|
|
36
|
+
this.addHandles(s, t.id), this.addHandles(r, t.id), this.addHandles(n, t.id);
|
|
36
37
|
});
|
|
37
|
-
}, this.
|
|
38
|
+
}, this._unsubscribeToSlideEvents = (e) => {
|
|
38
39
|
e.forEach((t) => {
|
|
39
40
|
this.hasHandles(t.id) && this.removeHandles(t.id);
|
|
40
41
|
});
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
44
|
initialize() {
|
|
44
|
-
this.
|
|
45
|
+
this.addHandles(
|
|
46
|
+
g(
|
|
47
|
+
() => this.view?.map,
|
|
48
|
+
(i, e) => {
|
|
49
|
+
if (this.hasHandles("sceneLoaded") && this.removeHandles("sceneLoaded"), e) {
|
|
50
|
+
const t = e.presentation?.slides;
|
|
51
|
+
t && t.length > 0 && this._unsubscribeToSlideEvents(t);
|
|
52
|
+
}
|
|
53
|
+
i && this.addHandles(
|
|
54
|
+
g(
|
|
55
|
+
() => i.loaded,
|
|
56
|
+
(t) => {
|
|
57
|
+
t && (this.removeHandles("sceneLoaded"), this._startWatchSlides(), this._slideId && this._applySlideById(this._slideId));
|
|
58
|
+
},
|
|
59
|
+
{ initial: !0 }
|
|
60
|
+
),
|
|
61
|
+
"sceneLoaded"
|
|
62
|
+
);
|
|
63
|
+
},
|
|
64
|
+
{ initial: !0 }
|
|
65
|
+
)
|
|
66
|
+
);
|
|
45
67
|
}
|
|
46
68
|
destroy() {
|
|
47
|
-
this.
|
|
69
|
+
this._unsubscribeToSlideEvents(this.slides);
|
|
70
|
+
}
|
|
71
|
+
get slideId() {
|
|
72
|
+
return this._slideId;
|
|
73
|
+
}
|
|
74
|
+
set slideId(i) {
|
|
75
|
+
i === void 0 || !this.view?.map?.loaded ? this._slideId = i : this._applySlideById(i);
|
|
48
76
|
}
|
|
49
77
|
get visibleSlides() {
|
|
50
|
-
return this.view?.map?.presentation?.slides?.filter((
|
|
78
|
+
return this.view?.map?.presentation?.slides?.filter((i) => !i.hidden) ?? new y();
|
|
79
|
+
}
|
|
80
|
+
get slides() {
|
|
81
|
+
return this.view?.map?.presentation?.slides ?? new y();
|
|
51
82
|
}
|
|
52
83
|
get lastSlideSelected() {
|
|
53
84
|
return this.getSlideIndexBySlideId(this.slideId) === this.visibleSlides.length - 1;
|
|
@@ -64,106 +95,128 @@ let d = class extends T {
|
|
|
64
95
|
get slideIndex() {
|
|
65
96
|
return this.getSlideIndexBySlideId(this.slideId);
|
|
66
97
|
}
|
|
67
|
-
getSlideIndexBySlideId(
|
|
98
|
+
getSlideIndexBySlideId(i) {
|
|
68
99
|
let e = -1;
|
|
69
|
-
return
|
|
100
|
+
return i && (e = this.visibleSlides.findIndex((t) => t.id === i)), e;
|
|
70
101
|
}
|
|
71
|
-
navigateInPresentation(
|
|
72
|
-
const e = this.slideIndex +
|
|
102
|
+
navigateInPresentation(i) {
|
|
103
|
+
const e = this.slideIndex + i;
|
|
73
104
|
let t = this._getSlideBySlideIndex(e);
|
|
74
105
|
t ??= this._getSlideBySlideIndex(0), t && this._applySlide(t);
|
|
75
106
|
}
|
|
76
|
-
captureArrowKeysForNavigation(
|
|
107
|
+
captureArrowKeysForNavigation(i, e) {
|
|
77
108
|
const t = ["ArrowLeft", "ArrowRight", "PageUp", "PageDown"];
|
|
78
|
-
if (document.activeElement?.nodeName.toLowerCase() === "arcgis-scene" || !t.includes(
|
|
109
|
+
if (document.activeElement?.nodeName.toLowerCase() === "arcgis-scene" || !t.includes(i.code))
|
|
79
110
|
return;
|
|
80
|
-
const r = e === "rtl" ? "ArrowRight" : "ArrowLeft", o =
|
|
111
|
+
const r = e === "rtl" ? "ArrowRight" : "ArrowLeft", o = i.code === r || i.code === "PageUp" ? -1 : 1;
|
|
81
112
|
this.navigateInPresentation(o);
|
|
82
113
|
}
|
|
83
114
|
//#endregion
|
|
84
115
|
//#region Private Methods
|
|
85
|
-
_getSlideBySlideIndex(
|
|
86
|
-
if (
|
|
87
|
-
return this.visibleSlides.getItemAt(
|
|
116
|
+
_getSlideBySlideIndex(i) {
|
|
117
|
+
if (i != null && i >= 0 && i < this.visibleSlides.length)
|
|
118
|
+
return this.visibleSlides.getItemAt(i);
|
|
119
|
+
}
|
|
120
|
+
async _applySlideById(i) {
|
|
121
|
+
const e = i ? this._getSlideBySlideId(i) : void 0;
|
|
122
|
+
e && await this._applySlide(e);
|
|
88
123
|
}
|
|
89
|
-
|
|
90
|
-
this.
|
|
124
|
+
_getSlideBySlideId(i) {
|
|
125
|
+
return this.visibleSlides.find((e) => e.id === i);
|
|
91
126
|
}
|
|
92
|
-
|
|
93
|
-
this.
|
|
94
|
-
|
|
95
|
-
|
|
127
|
+
async _applySlide(i) {
|
|
128
|
+
this.view && await T(i.applyTo(this.view));
|
|
129
|
+
}
|
|
130
|
+
_startWatchSlides() {
|
|
131
|
+
this._subscribeToSlideEvents(this.slides), this.addHandles(
|
|
132
|
+
H(
|
|
133
|
+
() => this.slides,
|
|
96
134
|
"change",
|
|
97
|
-
(
|
|
98
|
-
this._subscribeToSlideEvents(new
|
|
135
|
+
(i) => {
|
|
136
|
+
this._subscribeToSlideEvents(new y(i.added)), this._unsubscribeToSlideEvents(new y(i.removed));
|
|
99
137
|
},
|
|
100
138
|
{
|
|
101
139
|
onListenerAdd: this._subscribeToSlideEvents,
|
|
102
|
-
onListenerRemove: this.
|
|
140
|
+
onListenerRemove: this._unsubscribeToSlideEvents
|
|
103
141
|
}
|
|
104
142
|
)
|
|
105
143
|
);
|
|
106
144
|
}
|
|
107
|
-
_onApplySlideStart(
|
|
108
|
-
this.
|
|
145
|
+
_onApplySlideStart(i) {
|
|
146
|
+
this._slideId = i.id, this.transitionActive = !0, this.onApplySlideStart?.(i);
|
|
147
|
+
}
|
|
148
|
+
_onApplySlideComplete(i) {
|
|
149
|
+
this.transitionActive = !1, this.onApplySlideComplete?.(i);
|
|
109
150
|
}
|
|
110
|
-
|
|
111
|
-
this.
|
|
151
|
+
_onApplySlideCancel(i) {
|
|
152
|
+
this.transitionActive = !1, this.onApplySlideCancel?.(i);
|
|
112
153
|
}
|
|
113
154
|
//#endregion
|
|
114
155
|
};
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
],
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
],
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
],
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
],
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
],
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
],
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
],
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
],
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
],
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
],
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
],
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
],
|
|
151
|
-
|
|
156
|
+
l([
|
|
157
|
+
c()
|
|
158
|
+
], a.prototype, "_slideId", 2);
|
|
159
|
+
l([
|
|
160
|
+
c()
|
|
161
|
+
], a.prototype, "view", 2);
|
|
162
|
+
l([
|
|
163
|
+
c()
|
|
164
|
+
], a.prototype, "slideId", 1);
|
|
165
|
+
l([
|
|
166
|
+
c()
|
|
167
|
+
], a.prototype, "transitionActive", 2);
|
|
168
|
+
l([
|
|
169
|
+
c()
|
|
170
|
+
], a.prototype, "keyboardNavigationEnabled", 2);
|
|
171
|
+
l([
|
|
172
|
+
c()
|
|
173
|
+
], a.prototype, "visibleSlides", 1);
|
|
174
|
+
l([
|
|
175
|
+
c()
|
|
176
|
+
], a.prototype, "slides", 1);
|
|
177
|
+
l([
|
|
178
|
+
c()
|
|
179
|
+
], a.prototype, "lastSlideSelected", 1);
|
|
180
|
+
l([
|
|
181
|
+
c()
|
|
182
|
+
], a.prototype, "firstSlideSelected", 1);
|
|
183
|
+
l([
|
|
184
|
+
c()
|
|
185
|
+
], a.prototype, "slideSelected", 1);
|
|
186
|
+
l([
|
|
187
|
+
c()
|
|
188
|
+
], a.prototype, "hasOnlyOneSlide", 1);
|
|
189
|
+
l([
|
|
190
|
+
c()
|
|
191
|
+
], a.prototype, "onApplySlideStart", 2);
|
|
192
|
+
l([
|
|
193
|
+
c()
|
|
194
|
+
], a.prototype, "onApplySlideComplete", 2);
|
|
195
|
+
l([
|
|
196
|
+
c()
|
|
197
|
+
], a.prototype, "onApplySlideCancel", 2);
|
|
198
|
+
l([
|
|
199
|
+
c()
|
|
200
|
+
], a.prototype, "getSlideIndexBySlideId", 1);
|
|
201
|
+
a = l([
|
|
202
|
+
B("components.presentation.PresentationViewModel")
|
|
203
|
+
], a);
|
|
204
|
+
class Y extends F {
|
|
152
205
|
constructor(e) {
|
|
153
206
|
super(e);
|
|
154
207
|
}
|
|
155
208
|
hostLoaded() {
|
|
156
209
|
this.component.manager.onLifecycle(() => {
|
|
157
210
|
const e = this.component;
|
|
158
|
-
|
|
211
|
+
v(() => e.referenceElement).then((t) => {
|
|
159
212
|
this._isArcgisScene(t) && (this._sceneRef = t);
|
|
160
213
|
});
|
|
161
214
|
});
|
|
162
215
|
}
|
|
163
216
|
openPopup(e) {
|
|
164
217
|
this.component.view && this.component.slideId === e.id && e.elements.popupInfo != null && this._preparePopupFeature(this.component.view, e.elements.popupInfo).then(
|
|
165
|
-
({ success: t, features:
|
|
166
|
-
this.component.slideId === e.id && (t ? this._handlePopupFeatureFound(e,
|
|
218
|
+
({ success: t, features: s, popupInfo: r }) => {
|
|
219
|
+
this.component.slideId === e.id && (t ? this._handlePopupFeatureFound(e, s, r) : this.component.arcgisPopupFeatureNotFound.emit({ slide: e }));
|
|
167
220
|
}
|
|
168
221
|
);
|
|
169
222
|
}
|
|
@@ -172,67 +225,67 @@ class Y extends A {
|
|
|
172
225
|
return e === void 0 || typeof e == "string" ? !1 : "tagName" in e && e.tagName === "ARCGIS-SCENE";
|
|
173
226
|
}
|
|
174
227
|
closePopup() {
|
|
175
|
-
this.component.
|
|
228
|
+
this.component.slidePopupDisabled || this._sceneRef?.closePopup();
|
|
176
229
|
}
|
|
177
|
-
async _handlePopupFeatureFound(e, t,
|
|
178
|
-
const r =
|
|
179
|
-
this.component.arcgisPopupFeaturesRetrieved.emit({ slide: e, features: t, location: r }), this.component.
|
|
230
|
+
async _handlePopupFeatureFound(e, t, s) {
|
|
231
|
+
const r = s?.location ?? void 0;
|
|
232
|
+
this.component.arcgisPopupFeaturesRetrieved.emit({ slide: e, features: t, location: r }), this.component.slidePopupDisabled || await this._sceneRef?.openPopup({
|
|
180
233
|
features: t,
|
|
181
234
|
location: r
|
|
182
235
|
});
|
|
183
236
|
}
|
|
184
237
|
async _preparePopupFeature(e, t) {
|
|
185
|
-
let
|
|
238
|
+
let s = [];
|
|
186
239
|
if (!t.features?.length || t.features.length === 0)
|
|
187
|
-
return { success: !1, features:
|
|
240
|
+
return { success: !1, features: s };
|
|
188
241
|
const r = t.features?.getItemAt(t.selectedFeatureIndex)?.layerReference;
|
|
189
242
|
if (r?.layerId == null)
|
|
190
|
-
return { success: !1, features:
|
|
243
|
+
return { success: !1, features: s };
|
|
191
244
|
const { layer: n, sublayer: o } = this._getLayersFromView(e, r.layerId, r?.sublayerId);
|
|
192
245
|
if (!n)
|
|
193
|
-
return { success: !1, features:
|
|
194
|
-
const
|
|
195
|
-
if (!
|
|
196
|
-
return { success: !1, features:
|
|
197
|
-
if (
|
|
198
|
-
const
|
|
199
|
-
return this._setFallbackPopupTemplate(
|
|
246
|
+
return { success: !1, features: s };
|
|
247
|
+
const d = o ?? n;
|
|
248
|
+
if (!d || !this._layerTypeSupportsCapturePopup(d))
|
|
249
|
+
return { success: !1, features: s };
|
|
250
|
+
if (s = await this._fetchFeaturesFromQueryable(e, t, n, o, d), s && this._featureHasBeenFilledWithAttributes(s)) {
|
|
251
|
+
const p = s[0];
|
|
252
|
+
return this._setFallbackPopupTemplate(p, o, n), this._setFallbackGeometry(p, t?.location), { success: !0, features: s, popupInfo: t };
|
|
200
253
|
}
|
|
201
|
-
return { success: !1, features:
|
|
254
|
+
return { success: !1, features: s };
|
|
202
255
|
}
|
|
203
|
-
_getLayersFromView(e, t,
|
|
204
|
-
const r = e.map?.findLayerById(t) ?? void 0, n = this._getBuildingSceneLayerSublayer(r,
|
|
256
|
+
_getLayersFromView(e, t, s) {
|
|
257
|
+
const r = e.map?.findLayerById(t) ?? void 0, n = this._getBuildingSceneLayerSublayer(r, s);
|
|
205
258
|
return { layer: r, sublayer: n };
|
|
206
259
|
}
|
|
207
260
|
_getBuildingSceneLayerSublayer(e, t) {
|
|
208
|
-
let
|
|
209
|
-
return e && this._isLayer(e) && this._isBuildingSceneLayer(e) && t != null && (
|
|
261
|
+
let s;
|
|
262
|
+
return e && this._isLayer(e) && this._isBuildingSceneLayer(e) && t != null && (s = e.allSublayers.find(
|
|
210
263
|
(r) => r.id === t && r.type === "building-component"
|
|
211
|
-
)),
|
|
264
|
+
)), s;
|
|
212
265
|
}
|
|
213
266
|
_featureHasBeenFilledWithAttributes(e) {
|
|
214
267
|
return e && e.length > 0 && e[0].attributes && Object.entries(e[0].attributes)?.length > 1;
|
|
215
268
|
}
|
|
216
|
-
async _fetchFeaturesFromQueryable(e, t,
|
|
269
|
+
async _fetchFeaturesFromQueryable(e, t, s, r, n) {
|
|
217
270
|
const o = t.features?.getItemAt(t.selectedFeatureIndex);
|
|
218
271
|
if (o?.id == null)
|
|
219
272
|
return await Promise.resolve([]);
|
|
220
|
-
const
|
|
221
|
-
await
|
|
222
|
-
const
|
|
223
|
-
await
|
|
224
|
-
const
|
|
225
|
-
let
|
|
226
|
-
return this._featureHasBeenFilledWithAttributes(
|
|
227
|
-
}
|
|
228
|
-
_tryGetBuildingComponentSublayerView(e, t,
|
|
273
|
+
const d = await e.whenLayerView(s);
|
|
274
|
+
await v(() => !d.updating);
|
|
275
|
+
const h = this._tryGetBuildingComponentSublayerView(s, r, d) ?? d;
|
|
276
|
+
await v(() => !h.updating);
|
|
277
|
+
const f = this._createFeatureGraphic(s, r, n, o.id);
|
|
278
|
+
let x = await A(h, [f]);
|
|
279
|
+
return this._featureHasBeenFilledWithAttributes(x) || (await v(() => !e.updating), x = await A(h, [f])), x;
|
|
280
|
+
}
|
|
281
|
+
_tryGetBuildingComponentSublayerView(e, t, s) {
|
|
229
282
|
let r;
|
|
230
|
-
return this._isLayer(e) && this._isBuildingSceneLayer(e) && t != null && (r =
|
|
283
|
+
return this._isLayer(e) && this._isBuildingSceneLayer(e) && t != null && (r = s.sublayerViews.find(
|
|
231
284
|
(n) => n.sublayer.id === t.id
|
|
232
285
|
)), r;
|
|
233
286
|
}
|
|
234
|
-
_setFallbackPopupTemplate(e, t,
|
|
235
|
-
e.popupTemplate == null && (e.popupTemplate = t?.popupTemplate ? t.popupTemplate :
|
|
287
|
+
_setFallbackPopupTemplate(e, t, s) {
|
|
288
|
+
e.popupTemplate == null && (e.popupTemplate = t?.popupTemplate ? t.popupTemplate : s.popupTemplate);
|
|
236
289
|
}
|
|
237
290
|
/**
|
|
238
291
|
* If there is no geometry of the feature in the service,
|
|
@@ -245,14 +298,14 @@ class Y extends A {
|
|
|
245
298
|
_setFallbackGeometry(e, t) {
|
|
246
299
|
e.geometry == null && t && (e.geometry = t.clone());
|
|
247
300
|
}
|
|
248
|
-
_createFeatureGraphic(e, t,
|
|
249
|
-
const n = this._getGlobalIdFieldNameFromLayer(
|
|
250
|
-
return
|
|
301
|
+
_createFeatureGraphic(e, t, s, r) {
|
|
302
|
+
const n = this._getGlobalIdFieldNameFromLayer(s), o = r.type === "global-id" && n ? n : s.objectIdField, d = this._getGraphicOrigin(e, t), p = new D({ attributes: {}, layer: e, origin: d });
|
|
303
|
+
return p.attributes[o] = r.value, p;
|
|
251
304
|
}
|
|
252
305
|
_getGraphicOrigin(e, t) {
|
|
253
306
|
switch (e.type) {
|
|
254
307
|
case "csv":
|
|
255
|
-
return new
|
|
308
|
+
return new k(e);
|
|
256
309
|
case "feature":
|
|
257
310
|
return new Q(e);
|
|
258
311
|
case "geojson":
|
|
@@ -271,7 +324,7 @@ class Y extends A {
|
|
|
271
324
|
return e != null && ["csv", "feature", "geojson", "wfs", "scene", "building-component"].includes(e.type);
|
|
272
325
|
}
|
|
273
326
|
_isLayer(e) {
|
|
274
|
-
return !!e && e instanceof
|
|
327
|
+
return !!e && e instanceof V;
|
|
275
328
|
}
|
|
276
329
|
_isBuildingSceneLayer(e) {
|
|
277
330
|
return e?.type === "building-scene";
|
|
@@ -281,68 +334,68 @@ class Y extends A {
|
|
|
281
334
|
}
|
|
282
335
|
//#endregion
|
|
283
336
|
}
|
|
284
|
-
const Z = (
|
|
285
|
-
topLeft: { ...
|
|
286
|
-
topRight: { ...
|
|
287
|
-
bottomLeft: { ...
|
|
288
|
-
bottomRight: { ...
|
|
289
|
-
}), C = (
|
|
290
|
-
topLeft: { ...
|
|
291
|
-
topRight: { ...
|
|
292
|
-
bottomLeft: { ...
|
|
293
|
-
bottomRight: { ...
|
|
294
|
-
}), L = (
|
|
295
|
-
let e =
|
|
337
|
+
const Z = (i) => new Y(i), w = Object.freeze({ width: 0, height: 0 }), b = /* @__PURE__ */ new WeakMap(), m = () => ({
|
|
338
|
+
topLeft: { ...w },
|
|
339
|
+
topRight: { ...w },
|
|
340
|
+
bottomLeft: { ...w },
|
|
341
|
+
bottomRight: { ...w }
|
|
342
|
+
}), C = (i) => ({
|
|
343
|
+
topLeft: { ...i.topLeft },
|
|
344
|
+
topRight: { ...i.topRight },
|
|
345
|
+
bottomLeft: { ...i.bottomLeft },
|
|
346
|
+
bottomRight: { ...i.bottomRight }
|
|
347
|
+
}), L = (i) => {
|
|
348
|
+
let e = b.get(i);
|
|
296
349
|
return e || (e = {
|
|
297
350
|
observedGroups: /* @__PURE__ */ new Map(),
|
|
298
|
-
observedSizes:
|
|
351
|
+
observedSizes: m(),
|
|
299
352
|
subscribers: /* @__PURE__ */ new Set()
|
|
300
|
-
},
|
|
301
|
-
}, ee = (
|
|
302
|
-
const e =
|
|
303
|
-
return e && t &&
|
|
353
|
+
}, b.set(i, e)), e;
|
|
354
|
+
}, ee = (i) => {
|
|
355
|
+
const e = i?.topLeft.value, t = i?.topRight.value, s = i?.bottomLeft.value, r = i?.bottomRight.value;
|
|
356
|
+
return e && t && s && r ? {
|
|
304
357
|
topLeft: e,
|
|
305
358
|
topRight: t,
|
|
306
|
-
bottomLeft:
|
|
359
|
+
bottomLeft: s,
|
|
307
360
|
bottomRight: r
|
|
308
361
|
} : null;
|
|
309
|
-
}, te = (
|
|
310
|
-
const e = C(
|
|
311
|
-
|
|
312
|
-
}, se = (
|
|
313
|
-
const t =
|
|
362
|
+
}, te = (i, e) => _.every((t) => i.get(t) === e[t]), ie = (i) => {
|
|
363
|
+
const e = C(i.observedSizes);
|
|
364
|
+
i.subscribers.forEach((t) => t(e));
|
|
365
|
+
}, se = (i, e) => {
|
|
366
|
+
const t = b.get(i);
|
|
314
367
|
if (!t)
|
|
315
368
|
return;
|
|
316
|
-
let
|
|
369
|
+
let s = !1;
|
|
317
370
|
e.forEach((r) => {
|
|
318
|
-
const n =
|
|
371
|
+
const n = _.find((f) => t.observedGroups.get(f) === r.target);
|
|
319
372
|
if (!n)
|
|
320
373
|
return;
|
|
321
|
-
const { width: o, height:
|
|
322
|
-
|
|
323
|
-
}),
|
|
324
|
-
}, P = (
|
|
325
|
-
const t = L(
|
|
374
|
+
const { width: o, height: d } = r.contentRect, p = { width: o, height: d }, h = t.observedSizes[n];
|
|
375
|
+
h.width === p.width && h.height === p.height || (t.observedSizes[n] = p, s = !0);
|
|
376
|
+
}), s && ie(t);
|
|
377
|
+
}, P = (i, e) => {
|
|
378
|
+
const t = L(i);
|
|
326
379
|
t.resizeObserver || (t.resizeObserver = new ResizeObserver((r) => {
|
|
327
|
-
se(
|
|
380
|
+
se(i, r);
|
|
328
381
|
}));
|
|
329
|
-
const
|
|
330
|
-
if (!
|
|
382
|
+
const s = ee(e);
|
|
383
|
+
if (!s) {
|
|
331
384
|
t.observedGroups.size > 0 && (t.resizeObserver.disconnect(), t.observedGroups.clear());
|
|
332
385
|
return;
|
|
333
386
|
}
|
|
334
|
-
te(t.observedGroups,
|
|
335
|
-
const n =
|
|
387
|
+
te(t.observedGroups, s) || (t.resizeObserver.disconnect(), t.observedGroups.clear(), _.forEach((r) => {
|
|
388
|
+
const n = s[r];
|
|
336
389
|
t.observedGroups.set(r, n), t.resizeObserver?.observe(n);
|
|
337
390
|
}));
|
|
338
|
-
}, re = (
|
|
339
|
-
const t = L(
|
|
391
|
+
}, re = (i, e) => {
|
|
392
|
+
const t = L(i);
|
|
340
393
|
return t.subscribers.add(e), e(C(t.observedSizes)), () => {
|
|
341
|
-
const
|
|
342
|
-
|
|
394
|
+
const s = b.get(i);
|
|
395
|
+
s && (s.subscribers.delete(e), s.subscribers.size === 0 && (s.resizeObserver?.disconnect(), s.observedGroups.clear(), b.delete(i)));
|
|
343
396
|
};
|
|
344
397
|
};
|
|
345
|
-
class ne extends
|
|
398
|
+
class ne extends F {
|
|
346
399
|
// References to the slot group elements owned by the host component.
|
|
347
400
|
#t;
|
|
348
401
|
#e;
|
|
@@ -353,29 +406,29 @@ class ne extends A {
|
|
|
353
406
|
* @param component The host component that owns the slot group elements.
|
|
354
407
|
*/
|
|
355
408
|
constructor(e) {
|
|
356
|
-
super(e), this.exports =
|
|
409
|
+
super(e), this.exports = m();
|
|
357
410
|
}
|
|
358
411
|
hostDisconnected() {
|
|
359
|
-
this.#i?.(), this.#i = void 0, this.#e = void 0, this.#t = void 0, this.exports =
|
|
412
|
+
this.#i?.(), this.#i = void 0, this.#e = void 0, this.#t = void 0, this.exports = m();
|
|
360
413
|
}
|
|
361
414
|
hostLifecycle() {
|
|
362
415
|
return [
|
|
363
|
-
|
|
416
|
+
g(
|
|
364
417
|
() => this.#s(),
|
|
365
418
|
(t) => {
|
|
366
419
|
if (this.#e !== t) {
|
|
367
420
|
if (this.#i?.(), this.#i = void 0, this.#e = t, this.#t = t?.slotGroupRefs, !t) {
|
|
368
|
-
this.exports =
|
|
421
|
+
this.exports = m();
|
|
369
422
|
return;
|
|
370
423
|
}
|
|
371
|
-
this.#i = re(t, (
|
|
372
|
-
this.#r(
|
|
424
|
+
this.#i = re(t, (s) => {
|
|
425
|
+
this.#r(s) || (this.exports = s);
|
|
373
426
|
}), P(t, this.#t);
|
|
374
427
|
}
|
|
375
428
|
},
|
|
376
429
|
{ sync: !0, initial: !0 }
|
|
377
430
|
),
|
|
378
|
-
|
|
431
|
+
g(
|
|
379
432
|
() => this.#s()?.slotGroupRefs,
|
|
380
433
|
(t) => {
|
|
381
434
|
this.#t = t, this.#e && t && P(this.#e, t);
|
|
@@ -393,26 +446,26 @@ class ne extends A {
|
|
|
393
446
|
}
|
|
394
447
|
// Compares the newly measured sizes against the currently exported values.
|
|
395
448
|
#r(e) {
|
|
396
|
-
const t = this.exports ??
|
|
397
|
-
return
|
|
398
|
-
const r = t[
|
|
449
|
+
const t = this.exports ?? m();
|
|
450
|
+
return _.every((s) => {
|
|
451
|
+
const r = t[s], n = e[s];
|
|
399
452
|
return r.width === n.width && r.height === n.height;
|
|
400
453
|
});
|
|
401
454
|
}
|
|
402
455
|
}
|
|
403
|
-
const oe = R(ne), ae =
|
|
456
|
+
const oe = R(ne), ae = N(a);
|
|
404
457
|
class le extends M {
|
|
405
458
|
constructor() {
|
|
406
|
-
super(...arguments), this._messages =
|
|
459
|
+
super(...arguments), this._messages = $(), this.viewModel = ae(this), this._direction = G(), this._captureArrowKeysForNavigation = (e) => {
|
|
407
460
|
this.viewModel.captureArrowKeysForNavigation(e, this._direction);
|
|
408
461
|
}, this._useFeatureRefPopup = Z(this), this._handleApplySlideStart = () => {
|
|
409
462
|
this._useFeatureRefPopup.closePopup();
|
|
410
463
|
}, this._handleApplySlideComplete = (e) => {
|
|
411
464
|
this._useFeatureRefPopup.openPopup(e);
|
|
412
|
-
}, this.autoDestroyDisabled = !1, this.view = this.viewModel.view, this.scale = "m", this.keyboardNavigationEnabled = !1, this.
|
|
465
|
+
}, this.autoDestroyDisabled = !1, this.view = this.viewModel.view, this.scale = "m", this.keyboardNavigationEnabled = !1, this.slidePopupDisabled = !1, this.slideCaptionsDisabled = !1, this.arcgisPopupFeatureNotFound = I(), this.arcgisPopupFeaturesRetrieved = I(), this.arcgisReady = I();
|
|
413
466
|
}
|
|
414
467
|
static {
|
|
415
|
-
this.properties = { _slotSizesController: 16, slideId: 1, autoDestroyDisabled: 5, view: 0, scale: 1, keyboardNavigationEnabled: 5,
|
|
468
|
+
this.properties = { _slotSizesController: 16, slideId: 1, autoDestroyDisabled: 5, view: 0, scale: 1, keyboardNavigationEnabled: 5, slidePopupDisabled: 5, slideCaptionsDisabled: 5 };
|
|
416
469
|
}
|
|
417
470
|
static {
|
|
418
471
|
this.styles = q;
|
|
@@ -428,11 +481,11 @@ class le extends M {
|
|
|
428
481
|
}
|
|
429
482
|
loaded() {
|
|
430
483
|
this.manager.onLifecycle(() => {
|
|
431
|
-
this.viewModel.onApplySlideStart = this._handleApplySlideStart, this.viewModel.onApplySlideComplete = this._handleApplySlideComplete, this._keyboardHandle =
|
|
484
|
+
this.viewModel.onApplySlideStart = this._handleApplySlideStart, this.viewModel.onApplySlideComplete = this._handleApplySlideComplete, this._keyboardHandle = g(() => this.keyboardNavigationEnabled, (t) => {
|
|
432
485
|
document.removeEventListener("keydown", this._captureArrowKeysForNavigation), t && document.addEventListener("keydown", this._captureArrowKeysForNavigation);
|
|
433
486
|
}, { initial: !0 });
|
|
434
487
|
const e = this;
|
|
435
|
-
|
|
488
|
+
v(() => e.referenceElement).then((t) => {
|
|
436
489
|
this._isArcgisScene(t) && (this._slotSizesController = oe(this), this._watchSceneViewSlotSizes());
|
|
437
490
|
}), this.manager.onDisconnected(() => {
|
|
438
491
|
document.removeEventListener("keydown", this._captureArrowKeysForNavigation), this._keyboardHandle?.remove();
|
|
@@ -443,30 +496,30 @@ class le extends M {
|
|
|
443
496
|
return e === void 0 || typeof e == "string" ? !1 : "tagName" in e && e.tagName === "ARCGIS-SCENE";
|
|
444
497
|
}
|
|
445
498
|
_watchSceneViewSlotSizes() {
|
|
446
|
-
return
|
|
499
|
+
return g(() => this._slotSizesController, (e) => this._updatePresentationCaptionsPadding(e?.topLeft, e?.topRight, e?.bottomLeft, e?.bottomRight), { initial: !0 });
|
|
447
500
|
}
|
|
448
|
-
_updatePresentationCaptionsPadding(e, t,
|
|
449
|
-
const n = this._direction === "ltr" ? e?.width ?? 0 : t?.width ?? 0, o = this._direction === "ltr" ? t?.width ?? 0 : e?.width ?? 0,
|
|
501
|
+
_updatePresentationCaptionsPadding(e, t, s, r) {
|
|
502
|
+
const n = this._direction === "ltr" ? e?.width ?? 0 : t?.width ?? 0, o = this._direction === "ltr" ? t?.width ?? 0 : e?.width ?? 0, d = Math.max(e?.height ?? 0, t?.height ?? 0), p = Math.max(s?.height ?? 0, r?.height ?? 0);
|
|
450
503
|
this.el.style.setProperty("--arcgis-internal-presentation-captions-padding-start", `${n.toString()}px`), this.el.style.setProperty("--arcgis-internal-presentation-captions-padding-end", `${o.toString()}px`);
|
|
451
|
-
const
|
|
452
|
-
this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-top",
|
|
504
|
+
const h = n <= Math.max(d, p) && o <= Math.max(d, p);
|
|
505
|
+
this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-top", h ? "0" : `${d}px`), this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-bottom", h ? "0" : `${p}px`), this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-start", h ? `${n}px` : "0"), this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-end", h ? `${o}px` : "0");
|
|
453
506
|
}
|
|
454
507
|
render() {
|
|
455
508
|
if (this.viewModel.visibleSlides.length === 0)
|
|
456
509
|
return u`<div></div>`;
|
|
457
|
-
const e = this.viewModel.visibleSlides.find((r) => r.id === this.slideId), t = this._renderNavigation(),
|
|
458
|
-
return u`${
|
|
510
|
+
const e = this.viewModel.visibleSlides.find((r) => r.id === this.slideId), t = this._renderNavigation(), s = this._renderCaptions(e);
|
|
511
|
+
return u`${s}${t}`;
|
|
459
512
|
}
|
|
460
513
|
_renderNavigation() {
|
|
461
|
-
const e = this.viewModel.lastSlideSelected && !this.viewModel.hasOnlyOneSlide, t = this._direction === "rtl",
|
|
462
|
-
return u`<div class="root"><calcite-button appearance=transparent icon-start=${
|
|
514
|
+
const e = this.viewModel.lastSlideSelected && !this.viewModel.hasOnlyOneSlide, t = this._direction === "rtl", s = t ? "chevron-right" : "chevron-left", r = t ? "chevron-left" : "chevron-right";
|
|
515
|
+
return u`<div class="root"><calcite-button appearance=transparent icon-start=${s ?? S} kind=neutral .scale=${this.scale} .disabled=${this.viewModel.firstSlideSelected || !this.viewModel.slideSelected} .label=${this._messages.previous} title=${this._messages.previous ?? S} @click=${() => this.viewModel.navigateInPresentation(-1)}></calcite-button><div class="slide-counter-text">${this._renderSlideCounter()}</div><calcite-button appearance=transparent icon-start=${(e ? "reset" : r) ?? S} kind=neutral .scale=${this.scale} .label=${e ? this._messages.restart : this._messages.next} title=${(e ? this._messages.restart : this._messages.next) ?? S} @click=${() => this.viewModel.navigateInPresentation(1)}></calcite-button></div>`;
|
|
463
516
|
}
|
|
464
517
|
_renderSlideCounter() {
|
|
465
518
|
const e = this.viewModel.slideIndex + 1, t = this._messages?.slideNavAriaText?.replace("${index}", e.toString()).replace("${numberOfSlides}", this.viewModel.visibleSlides.length.toString());
|
|
466
|
-
return this.viewModel.slideSelected ? u`<p role=banner aria-label=${t ??
|
|
519
|
+
return this.viewModel.slideSelected ? u`<p role=banner aria-label=${t ?? S} aria-live=polite><div class="slide-counter-text-element" data-testId=arcgis-map-presentation-slideIndex>${e}</div><div class="slide-counter-text-element">/</div><p class="slide-counter-text-element" data-testId=arcgis-map-presentation-numberOfSlides>${this.viewModel.visibleSlides.length}</p></p>` : u`<p role=banner data-testId=arcgis-map-presentation-numberOfSlides>${this.viewModel.visibleSlides?.length} ${this._messages?.slides}</p>`;
|
|
467
520
|
}
|
|
468
521
|
_renderCaptions(e) {
|
|
469
|
-
return u`<arcgis-presentation-captions .slide=${e}></arcgis-presentation-captions>`;
|
|
522
|
+
return this.slideCaptionsDisabled ? null : u`<arcgis-presentation-captions .slide=${e} .transitionActive=${this.viewModel.transitionActive}></arcgis-presentation-captions>`;
|
|
470
523
|
}
|
|
471
524
|
}
|
|
472
525
|
z("arcgis-presentation", le);
|