@arcgis/map-components 4.34.0-next.55 → 4.34.0-next.57
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/{KADMWCKC.js → 2ICWHD5Z.js} +2 -2
- package/dist/cdn/{KU2JWU5Z.js → 2KBR3NII.js} +2 -2
- package/dist/cdn/{7JAEHFEQ.js → 2N7COHPM.js} +2 -2
- package/dist/cdn/{UVXWLARX.js → 2OW3QJWO.js} +1 -1
- package/dist/cdn/{QQAQLUKJ.js → 33SVUBXF.js} +2 -2
- package/dist/cdn/{5H52P562.js → 35XJUMQT.js} +2 -2
- package/dist/cdn/{SG3FHYQY.js → 3DMXNRHN.js} +2 -2
- package/dist/cdn/{IUQXYIYQ.js → 3FM6YRK6.js} +1 -1
- package/dist/cdn/{OF57MK25.js → 3IXWX3AD.js} +2 -2
- package/dist/cdn/{V5AA6D4K.js → 3RYJFBPO.js} +2 -2
- package/dist/cdn/{GVTFWXKC.js → 3YZ76GSA.js} +2 -2
- package/dist/cdn/{53OU6WQ4.js → 47GWPCYS.js} +2 -2
- package/dist/cdn/{ENYBVSUD.js → 4CZPPHUT.js} +2 -2
- package/dist/cdn/{4BMGR7KL.js → 4FBZTVPA.js} +2 -2
- package/dist/cdn/{XJO2NRAU.js → 4OCMVVAG.js} +2 -2
- package/dist/cdn/{QZ73JBVG.js → 4PQ4WAT6.js} +2 -2
- package/dist/cdn/{TKDN3L4V.js → 4URT6FNE.js} +1 -1
- package/dist/cdn/{AIVCEHH7.js → 4WBTCD2F.js} +2 -2
- package/dist/cdn/{JI4HBPXK.js → 4ZTT3HIZ.js} +2 -2
- package/dist/cdn/{YFZSXNOY.js → 5MT7Z5BD.js} +2 -2
- package/dist/cdn/{QGF35FVP.js → 5OBNU2NS.js} +2 -2
- package/dist/cdn/{J2QYS4B5.js → 5UDECJFB.js} +2 -2
- package/dist/cdn/{LUN4EN67.js → 63V6KLR6.js} +1 -1
- package/dist/cdn/{T23CF64A.js → 6CF3PJIR.js} +2 -2
- package/dist/cdn/{O7LMMFDK.js → 6DEX64UQ.js} +2 -2
- package/dist/cdn/{TGRT6JSJ.js → 6MRWNLZI.js} +2 -2
- package/dist/cdn/{IHERF5V4.js → 6W56LTZ2.js} +2 -2
- package/dist/cdn/{SM2SYRXI.js → 6YJFYPNJ.js} +2 -2
- package/dist/cdn/{FJTK2OAY.js → 6ZOKXXMO.js} +2 -2
- package/dist/cdn/{KPGPCZIX.js → 77FU2M54.js} +2 -2
- package/dist/cdn/{62UFAOH6.js → 7A3AXTP6.js} +2 -2
- package/dist/cdn/{NSSEO2MN.js → 7GFBDN43.js} +2 -2
- package/dist/cdn/{EJAW7LU5.js → 7JR5VWP2.js} +2 -2
- package/dist/cdn/{QKRC7HOB.js → 7JSQWBND.js} +2 -2
- package/dist/cdn/{6EJMXELH.js → 7TBSASKF.js} +2 -2
- package/dist/cdn/{AX6QUI2O.js → A6QM7SNK.js} +2 -2
- package/dist/cdn/{7IQTVCF6.js → AGW64KAU.js} +2 -2
- package/dist/cdn/{UUYX3NGV.js → AJY74367.js} +2 -2
- package/dist/cdn/{5S7QYWX4.js → AKPQKXGB.js} +2 -2
- package/dist/cdn/{NX6LCW5W.js → AYZMX55D.js} +2 -2
- package/dist/cdn/{ISMVUITU.js → BDHI2T6Q.js} +2 -2
- package/dist/cdn/{3B7IIL55.js → BL2N6A6G.js} +2 -2
- package/dist/cdn/{D476FSJS.js → CF6NPEOZ.js} +2 -2
- package/dist/cdn/{CQVD6Q2Y.js → CM6P6Y5Y.js} +2 -2
- package/dist/cdn/{XSG3DRU4.js → CRBJU743.js} +2 -2
- package/dist/cdn/{O2JT5R4O.js → CU5AVSAW.js} +2 -2
- package/dist/cdn/{NUMMW53B.js → DCE7YSQI.js} +2 -2
- package/dist/cdn/{CU6SWNAS.js → DJRAAAPT.js} +2 -2
- package/dist/cdn/{OHU5CH5R.js → DK43NE65.js} +2 -2
- package/dist/cdn/{7RLK3JDQ.js → E2INRTXD.js} +2 -2
- package/dist/cdn/{5PUKO3LV.js → E4CMMHWL.js} +2 -2
- package/dist/cdn/{6DGNDW4B.js → EINW7GI2.js} +1 -1
- package/dist/cdn/{VBDUX2KA.js → EJGPB5YW.js} +2 -2
- package/dist/cdn/{DYH6DIVO.js → EJGQCHMA.js} +2 -2
- package/dist/cdn/{OJ7ZFU5H.js → EKCYWVLQ.js} +2 -2
- package/dist/cdn/{CSCIJXQQ.js → EWOFN5AL.js} +2 -2
- package/dist/cdn/{4C6THD47.js → F7AIVX43.js} +3 -3
- package/dist/cdn/{BICNLFWL.js → FD3THPY3.js} +2 -2
- package/dist/cdn/{NLPQK7AF.js → FF5MEXK3.js} +2 -2
- package/dist/cdn/{D4VI7QKI.js → FPHSDC6B.js} +2 -2
- package/dist/cdn/{EZ4SJLX3.js → GD773MTO.js} +2 -2
- package/dist/cdn/{VDPH7Z3U.js → GDHPLWAO.js} +2 -2
- package/dist/cdn/{NL2KGHIS.js → GEO4YB5B.js} +2 -2
- package/dist/cdn/{W2LSEHD5.js → GFJTP7GW.js} +2 -2
- package/dist/cdn/{DHKNGMNQ.js → GHFUQ3M3.js} +2 -2
- package/dist/cdn/{7BI6CS2S.js → GSI5JMHH.js} +2 -2
- package/dist/cdn/{QZD5XVHC.js → GSNU26SH.js} +1 -1
- package/dist/cdn/{Z4P2O5VR.js → GXA5NVJD.js} +2 -2
- package/dist/cdn/{C2IBBLV2.js → H7RFNQF4.js} +2 -2
- package/dist/cdn/{PT2FVQGS.js → HAGTOXOP.js} +2 -2
- package/dist/cdn/{IYGPHYSM.js → HDSYB4DV.js} +2 -2
- package/dist/cdn/{B6IHTAH4.js → HLLZFN4A.js} +2 -2
- package/dist/cdn/{D7CX7P3U.js → I3LXUBVO.js} +2 -2
- package/dist/cdn/{X7ZVKFHK.js → IS3CBLAO.js} +2 -2
- package/dist/cdn/{7IUZKHZI.js → ISNRSTGX.js} +2 -2
- package/dist/cdn/{QMIKX4JF.js → J4G4ADYL.js} +2 -2
- package/dist/cdn/{KEMHUE4C.js → JCSAL55L.js} +1 -1
- package/dist/cdn/{LBCJYM54.js → JKEB2HCJ.js} +2 -2
- package/dist/cdn/{IW3KV2PJ.js → JSJZ4BND.js} +2 -2
- package/dist/cdn/{J4HRPZQA.js → JWUOYTXE.js} +2 -2
- package/dist/cdn/{DMDGS2Z2.js → KQBQGOMX.js} +2 -2
- package/dist/cdn/{C6KSWCWD.js → KUIXM2I2.js} +2 -2
- package/dist/cdn/{S6CEUD7B.js → KVY7REMI.js} +2 -2
- package/dist/cdn/{NY7XSLMD.js → KWKXCWK6.js} +1 -1
- package/dist/cdn/{UYWNC4R3.js → L44LGBEN.js} +2 -2
- package/dist/cdn/{XHHYX7GT.js → L4XYAH6A.js} +2 -2
- package/dist/cdn/{BOXM2NHN.js → L7ACJUNT.js} +2 -2
- package/dist/cdn/{Y5V54UB6.js → LBKX4EWM.js} +2 -2
- package/dist/cdn/{VPNHUOW2.js → LGUMXWBP.js} +2 -2
- package/dist/cdn/{URD3JCID.js → LH4YNJ3A.js} +2 -2
- package/dist/cdn/{U6SCMJJT.js → LHPLYRX7.js} +2 -2
- package/dist/cdn/{S5AP5PQY.js → LJTM3MF5.js} +2 -2
- package/dist/cdn/{3BXBAM6L.js → LLPZCS7M.js} +2 -2
- package/dist/cdn/{3NT3IJIM.js → LPMNUTDI.js} +2 -2
- package/dist/cdn/{AWGDE4Y3.js → LQ6M6PQM.js} +2 -2
- package/dist/cdn/{BGTKG252.js → LUGPCZUS.js} +2 -2
- package/dist/cdn/{CXG6EM7B.js → LV7IPSZM.js} +2 -2
- package/dist/cdn/{RX5HLDNB.js → M4QP4DOD.js} +2 -2
- package/dist/cdn/{U6RYRZTV.js → M6CAJ4RU.js} +2 -2
- package/dist/cdn/{UXKWBQII.js → M6P7I2FJ.js} +2 -2
- package/dist/cdn/{ZP65KKWE.js → M7QZCR2D.js} +2 -2
- package/dist/cdn/{GZ5QE6JY.js → MHZULCM2.js} +2 -2
- package/dist/cdn/{UDCTPGSD.js → MKRLF3ZS.js} +2 -2
- package/dist/cdn/{FU6ONCUJ.js → MMXOVPRH.js} +2 -2
- package/dist/cdn/{J65P7E6A.js → MPLSRODS.js} +2 -2
- package/dist/cdn/{LVDZD2BD.js → NHRVORY2.js} +2 -2
- package/dist/cdn/{4LB63KTZ.js → NNP5YHAD.js} +2 -2
- package/dist/cdn/{IMS2QXA6.js → NQEI5RDH.js} +2 -2
- package/dist/cdn/{DJFJPXWW.js → OFJ2YUXM.js} +2 -2
- package/dist/cdn/{W44AL3VM.js → OKG24FXU.js} +2 -2
- package/dist/cdn/{TEXGN7JG.js → OLFW62PA.js} +2 -2
- package/dist/cdn/{QD7NDZWI.js → OO47UJ66.js} +2 -2
- package/dist/cdn/{2MRDW5HB.js → OPWT5SIQ.js} +2 -2
- package/dist/cdn/OWAYEQAG.js +4 -0
- package/dist/cdn/{MQLJISSA.js → OX735E7P.js} +2 -2
- package/dist/cdn/{ZCBYXEST.js → P5DFYJ66.js} +2 -2
- package/dist/cdn/{LSZ7JHDY.js → P66RK43K.js} +2 -2
- package/dist/cdn/{LNLKGD5W.js → P7HLF6OL.js} +1 -1
- package/dist/cdn/{WB6BO7XU.js → PEODFJ6W.js} +2 -2
- package/dist/cdn/{AD7LSLRB.js → PQ36IGMO.js} +2 -2
- package/dist/cdn/{7DAP54QC.js → PXHVTRIE.js} +2 -2
- package/dist/cdn/{QGJ7ASZO.js → QCJVYDZU.js} +2 -2
- package/dist/cdn/{MFN65HVC.js → QF2CEJBA.js} +2 -2
- package/dist/cdn/{RLSR7S4O.js → QGUIHPTS.js} +2 -2
- package/dist/cdn/{QRA2VVSC.js → QWMBKNPG.js} +2 -2
- package/dist/cdn/{5A7FQCQ7.js → QYDGTIWK.js} +2 -2
- package/dist/cdn/{CNPJAPNX.js → R7VPVAAB.js} +2 -2
- package/dist/cdn/{S5HU4A7S.js → RAMQ5WN6.js} +2 -2
- package/dist/cdn/{2SKJP324.js → REZ7Q54U.js} +2 -2
- package/dist/cdn/{NCFG2OKG.js → RFUHE5HQ.js} +2 -2
- package/dist/cdn/{VTTP4J5V.js → RM7ZSOUS.js} +2 -2
- package/dist/cdn/{44GJQP6M.js → RNXHPIFI.js} +2 -2
- package/dist/cdn/{3GFT7LDU.js → RZ23ZAVE.js} +2 -2
- package/dist/cdn/{IX6JO766.js → S5PC72RX.js} +2 -2
- package/dist/cdn/{BW2FOSUY.js → SBRK5GNX.js} +2 -2
- package/dist/cdn/{MHC4VSTY.js → SDEHUAKQ.js} +2 -2
- package/dist/cdn/{RJRSPCAX.js → SKCHMKXW.js} +2 -2
- package/dist/cdn/{XYUWBUBD.js → SKNNP5PM.js} +2 -2
- package/dist/cdn/{S35T62A2.js → SKUIL7WM.js} +2 -2
- package/dist/cdn/{CG3I7YER.js → SPIXBJHA.js} +2 -2
- package/dist/cdn/{7JUEX2IL.js → STYDFD4N.js} +2 -2
- package/dist/cdn/{GKUDSBI6.js → TFKAQVK2.js} +2 -2
- package/dist/cdn/{IFVYZQCT.js → TPXEYOK4.js} +2 -2
- package/dist/cdn/{3UN3QU7E.js → TVBKRHRS.js} +2 -2
- package/dist/cdn/{UENSOEJG.js → TYQVWIBZ.js} +2 -2
- package/dist/cdn/{7534J333.js → TZIXQOH6.js} +2 -2
- package/dist/cdn/{L2KH244D.js → U5HJ6FQN.js} +2 -2
- package/dist/cdn/{PGJ24UGW.js → UFIXQ6EE.js} +2 -2
- package/dist/cdn/{TRRZTQYD.js → UOSCPLKT.js} +2 -2
- package/dist/cdn/{QIPYRCIE.js → URHSEL4I.js} +1 -1
- package/dist/cdn/{RR7LCANQ.js → UTOLOKUN.js} +2 -2
- package/dist/cdn/{ED463COC.js → UWER5IDB.js} +2 -2
- package/dist/cdn/{O3BKWFMI.js → UYVXKLTO.js} +2 -2
- package/dist/cdn/{BUJL2RD2.js → V2KJ5LMW.js} +2 -2
- package/dist/cdn/{OMT7RBBS.js → VGOFRQLW.js} +2 -2
- package/dist/cdn/{TBJRF62S.js → VQVWKYDC.js} +2 -2
- package/dist/cdn/{UYHI4H2P.js → VXVAVQ3W.js} +2 -2
- package/dist/cdn/{O5MM3XX2.js → W4UPY4CV.js} +2 -2
- package/dist/cdn/{UBYISVNZ.js → W5BZCSP7.js} +2 -2
- package/dist/cdn/{BSO4NE73.js → WAEMKP63.js} +2 -2
- package/dist/cdn/{T7GGYDVX.js → WF3E62TM.js} +1 -1
- package/dist/cdn/{A7NQXE3Q.js → WJKRZ4WT.js} +2 -2
- package/dist/cdn/{AVWWTVZL.js → WNGVGAUX.js} +2 -2
- package/dist/cdn/{ZRC6TASH.js → WVEDKLYW.js} +2 -2
- package/dist/cdn/{7LRYVKEK.js → XBRLQQ3G.js} +2 -2
- package/dist/cdn/{BVBJPTG7.js → XD6VXZUU.js} +2 -2
- package/dist/cdn/{HFJGRTHX.js → XQXXIBR5.js} +2 -2
- package/dist/cdn/{V5SVFQY4.js → Y3GTPIFM.js} +2 -2
- package/dist/cdn/{K52D6HBJ.js → Y4S7NG3Z.js} +2 -2
- package/dist/cdn/{JD6QFG6A.js → YC5ZZX3D.js} +2 -2
- package/dist/cdn/{JIZXREBL.js → YDFOPKUI.js} +2 -2
- package/dist/cdn/{IRUXXHDB.js → YFVMQCKM.js} +1 -1
- package/dist/cdn/{SGCQ7YLF.js → YNDAP337.js} +2 -2
- package/dist/cdn/{QGRK2NMP.js → YOTDWWQD.js} +2 -2
- package/dist/cdn/{U6OLBYQU.js → YWEU7TWB.js} +2 -2
- package/dist/cdn/{CNKNZD3U.js → YWG7XYFY.js} +2 -2
- package/dist/cdn/{5OJURXZO.js → YYBW43H3.js} +2 -2
- package/dist/cdn/{OJFRTV2E.js → ZARHZ5Y2.js} +2 -2
- package/dist/cdn/{4IYPDSSX.js → ZJGK7PWP.js} +2 -2
- package/dist/cdn/{ZPFZZ54P.js → ZSCRPYP6.js} +2 -2
- package/dist/cdn/{RMILHGGZ.js → ZT7IQDJX.js} +2 -2
- package/dist/cdn/{7BIW75NF.js → ZUQ7365L.js} +2 -2
- package/dist/cdn/{T3O2RVRZ.js → ZXP5JU3E.js} +2 -2
- package/dist/cdn/{YKBXEFVU.js → ZYGM5MJB.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/AnalysisViewModel.js +1 -1
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/chart-utils.js +1 -1
- package/dist/chunks/chartCommon.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/createCloseEvent.js +1 -1
- package/dist/chunks/feature-utils.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/layer-list.js +1 -1
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +1 -1
- package/dist/chunks/measurementUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/useHandles.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useView.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
- package/dist/components/arcgis-feature-content/customElement.js +1 -1
- package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +1 -1
- package/dist/components/arcgis-feature-fields/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-media/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-measurement-content/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-placement/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-exported-link/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
- package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-slider/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-unit-select/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.js +1 -1
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/controllers/useViewModel.d.ts +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +4 -4
- package/dist/cdn/AVI6VTL3.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import g from"./
|
|
3
|
+
v4.34.0-next.57 */
|
|
4
|
+
import g from"./5UDECJFB.js";import d from"./RNXHPIFI.js";import"./63V6KLR6.js";import c from"./DK43NE65.js";import{a as $}from"./SBRK5GNX.js";import{a as h}from"./4URT6FNE.js";import b from"./REZ7Q54U.js";import a from"./OX735E7P.js";import{f as w}from"./SKUIL7WM.js";import"./CF6NPEOZ.js";import"./GSNU26SH.js";import{D as m,G as f,R as v,S as e,W as _,t as u,u as l}from"./YFVMQCKM.js";import"./WF3E62TM.js";export default $arcgis.t(([A,{property:O,subclass:C},,,b,,x])=>{var k=u`@layer{arcgis-line-of-sight{display:block}.arcgis-line-of-sight__container{display:flex;position:relative;flex-flow:column;gap:var(--calcite-spacing-md);padding:var(--esri-widget-padding);overflow-y:auto}.arcgis-line-of-sight__error{color:var(--calcite-color-status-danger)}.arcgis-line-of-sight__hint{display:flex;flex-direction:column;gap:var(--calcite-spacing-md)}.arcgis-line-of-sight__error,.arcgis-line-of-sight__hint{overflow:hidden;animation:arcgis-line-of-sight-fade-in .25s ease-in-out;p{margin:0;padding:0}}.arcgis-line-of-sight__actions{display:flex;flex-flow:column;gap:var(--calcite-spacing-xxs);justify-content:center}@keyframes arcgis-line-of-sight-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}}`,r="arcgis-line-of-sight",n={base:r,actions:`${r}__actions`,container:`${r}__container`,error:`${r}__error`,hint:`${r}__hint`,hintText:`${r}__hint-text`,newAnalysisButton:`${r}__new-analysis-button`},D=Object.defineProperty,S=Object.getOwnPropertyDescriptor,M=(t,s,a,o)=>{for(var i=o>1?void 0:o?S(s,a):s,d=t.length-1,p;d>=0;d--)(p=t[d])&&(i=(o?p(s,a,i):p(i))||i);return o&&i&&D(s,a,i),i},c=class extends x{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Line Of Sight component is only supported in 3D views."}get state(){return this.disabled||!this.ready?"disabled":this.operationState==="active"?"creating":this.analysis.valid?"created":"ready"}constructAnalysis(){return new A}clearAnalysis(){this.analysis.observer=null,this.analysis.targets.removeAll()}async place(t){await this.analysisView?.place(t)}};M([O({readOnly:!0})],c.prototype,"state",1);c=M([C("esri.components.LineOfSight.LineOfSightViewModel")],c);var L=b(c),y=class extends v{constructor(){super(...arguments),this.viewModel=L(this),this._messages=$({blocking:!0}),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.icon="line-of-sight",this.position="bottom-left",this.arcgisPropertyChange=w()("analysis","state"),this.arcgisReady=m()}static{this.properties={analysis:0,autoDestroyDisabled:5,icon:3,label:1,messageOverrides:0,position:1,referenceElement:1,state:35,_supported:16}}static{this.shadowRootOptions=f}static{this.styles=k}get state(){return this.viewModel.state}get _supported(){return this.view==null||this.view.type==="3d"}async clear(){this.viewModel.clear()}async continue(){this.viewModel.start()}async destroy(){await this.manager.destroy()}async start(){this.viewModel.startNewAnalysis()}async stop(){this.viewModel.stop()}render(){return l`<div class=${e({[n.base]:!0,[h.widget]:!0,[h.panel]:!0})} role=presentation>${this._renderContainerNode()}</div>`}_renderContainerNode(){if(!this._supported)return l`<div class=${e(n.error)}><p>${this._messages.unsupported}</p></div>`;let s=this.viewModel.state,a=s==="creating";return l`<div class=${e(n.container)}>${a?l`<div class=${e(n.hint)}><p class=${e(n.hintText)}>${this._messages.hint}</p></div>`:null}<div class=${e(n.actions)}>${s==="creating"?g({onClick:()=>{this.stop()},children:this._messages.done}):null}${s==="created"?g({onClick:()=>{this.continue()},children:this._messages.continueAnalysis}):null}${g({className:n.newAnalysisButton,onClick:()=>{this.start()},primary:!0,disabled:s==="disabled",children:this._messages.newAnalysis})}</div></div>`}};function g({className:t,onClick:s,primary:a,disabled:o,children:i}){return l`<calcite-button .appearance=${a?"solid":"outline-fill"} class=${e(t)} .disabled=${o} @click=${s}>${i}</calcite-button>`}_("arcgis-line-of-sight",y);return y},"analysis/LineOfSightAnalysis","core/accessorSupport/decorators",a,b,c,d,g)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import{a as c,b as h,h as d,i as s}from"./
|
|
3
|
+
v4.34.0-next.57 */
|
|
4
|
+
import{a as c,b as h,h as d,i as s}from"./GSNU26SH.js";import{D as n,G as r,R as a,W as l,t as o}from"./YFVMQCKM.js";import"./WF3E62TM.js";var m=o`@layer{arcgis-placement{display:flex;pointer-events:auto;box-shadow:none}.arcgis-placement__container{display:block}}`,i=class extends a{constructor(){super(),this._observer=void 0,this._moveChildren=()=>{if(s(this).parentElement!==this.el)for(let t=this.el.firstElementChild;t!==null;t=this.el.firstElementChild)s(this).append(t)},this.position="bottom-left",this.arcgisReady=n();let e=this;e.el.childElem=document.createElement("div"),e.el.childElem.classList.add("arcgis-placement__container"),this.listen("arcgisReady",this._startObserving,{once:!0})}static{this.properties={position:1,referenceElement:1}}static{this.shadowRootOptions=r}static{this.styles=m}connectedCallback(){super.connectedCallback(),this.el.view&&this._startObserving()}willUpdate(e){e.has("referenceElement")&&d(this,this.referenceElement);let t=s(this);e.has("position")&&t&&this.position!==void 0&&this.el.view?.ui?.move(t,this.position)}loaded(){h(this),c(this)}disconnectedCallback(){super.disconnectedCallback();let e=s(this);e&&this.el.view?.ui?.remove(e),this._observer?.disconnect()}_startObserving(){this._moveChildren(),this._observer=new MutationObserver(this._moveChildren),this._observer.observe(this.el,{childList:!0})}};l("arcgis-placement",i);export{i as ArcgisPlacement};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import"./UVXWLARX.js";import{b as g}from"./C6KSWCWD.js";import{a as d}from"./LUN4EN67.js";import e from"./OHU5CH5R.js";import{a as C}from"./BW2FOSUY.js";import{a as x}from"./TKDN3L4V.js";import c from"./2SKJP324.js";import a from"./MQLJISSA.js";import{f as $}from"./S35T62A2.js";import"./D476FSJS.js";import"./QZD5XVHC.js";import{D as w,G as S,R as M,S as l,U as f,W as b,a as m,t as _,u as o,z as v}from"./IRUXXHDB.js";import"./T7GGYDVX.js";export default $arcgis.t(([A,{isAbortError:D},{substitute:T},{watch:E},,{a:a},R])=>{var h="arcgis-search",u={base:h,autocomplete:`${h}__autocomplete`,dropdown:`${h}__dropdown`,container:`${h}__container`,form:`${h}__form`},I=_`@layer{arcgis-search{display:block}.arcgis-search{--arcgis-internal-search-width: 240px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;width:var(--arcgis-internal-search-width)}.arcgis-search__dropdown{--calcite-color-border-1: var(--calcite-color-border-input);--calcite-dropdown-width: var(--arcgis-internal-search-width);width:31px}.arcgis-search__autocomplete{flex:1}.arcgis-search__container{display:flex;position:relative;flex:1 0 100%;flex-flow:row nowrap;align-items:stretch}.arcgis-search__form{display:flex;flex:1 0;flex-flow:row nowrap;align-items:stretch;margin:0;padding:0}}`,N=R(A),p=class extends M{constructor(){super(...arguments),this.viewModel=N(this),this._currentLocationValue="search-use-current-location",this._autocompleteEl=void 0,this._searchResultRendererContainerEl=document.createElement("div"),this._searchResultRendererEl=void 0,this._suggestController=void 0,this._searchController=void 0,this._lastSearchTerm="",this.messages=C({}),this._setSearchResultRendererRef=e=>{this._searchResultRendererEl=e},this._locateFailed=!1,this._showNoResults=!1,this.position="top-left",this.goToOverride=this.viewModel.goToOverride,this.icon="search",this.activeMenu="none",this.activeSourceIndex=this.viewModel.activeSourceIndex,this.allPlaceholder=this.viewModel.allPlaceholder,this.allSources=this.viewModel.allSources,this.autoNavigateDisabled=this.viewModel.autoNavigate,this.autoSelectDisabled=this.viewModel.autoSelect,this.defaultSources=this.viewModel.defaultSources,this.disabled=!1,this.includeDefaultSourcesDisabled=this.viewModel.includeDefaultSources,this.locationDisabled=this.viewModel.locationEnabled,this.maxResults=this.viewModel.maxResults,this.maxSuggestions=this.viewModel.maxSuggestions,this.minSuggestCharacters=this.viewModel.minSuggestCharacters,this.popupDisabled=this.viewModel.popupEnabled,this.popupTemplate=this.viewModel.popupTemplate,this.portal=this.viewModel.portal,this.resultGraphic=this.viewModel.resultGraphic,this.resultGraphicDisabled=this.viewModel.resultGraphicEnabled,this.results=this.viewModel.results,this.searchAllDisabled=this.viewModel.searchAllEnabled,this.searchTerm=this.viewModel.searchTerm,this.selectedResult=this.viewModel.selectedResult,this.sources=this.viewModel.sources,this.suggestions=this.viewModel.suggestions,this.suggestionsDisabled=this.viewModel.suggestionsEnabled,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=$()("state"),this.arcgisReady=w(),this.arcgisSearchClear=a(()=>this.viewModel,"search-clear"),this.arcgisSearchComplete=a(()=>this.viewModel,"search-complete"),this.arcgisSearchStart=a(()=>this.viewModel,"search-start"),this.arcgisSelectResult=a(()=>this.viewModel,"select-result"),this.arcgisSuggestComplete=a(()=>this.viewModel,"suggest-complete"),this.arcgisSuggestStart=a(()=>this.viewModel,"suggest-start")}static{this.properties={_locateFailed:16,_showNoResults:16,_isDisabled:16,_showCurrentLocation:16,_effectiveActiveMenu:16,referenceElement:1,position:3,goToOverride:0,icon:1,activeMenu:1,activeSource:32,activeSourceIndex:9,allPlaceholder:1,allSources:0,autoNavigateDisabled:5,autoSelectDisabled:5,defaultSources:0,disabled:5,includeDefaultSourcesDisabled:5,locationDisabled:5,maxResults:9,maxSuggestions:9,minSuggestCharacters:9,popupDisabled:5,popupTemplate:0,portal:0,resultGraphic:0,resultGraphicDisabled:5,results:0,searchAllDisabled:5,searchTerm:1,selectedResult:0,sources:0,suggestions:0,suggestionsDisabled:5,autoDestroyDisabled:5,messageOverrides:0,label:1,state:3}}static{this.styles=I}static{this.shadowRootOptions=S}get _isDisabled(){let{state:e}=this.viewModel;return e==="disabled"||e==="loading"||this.disabled}get _showCurrentLocation(){return!this.locationDisabled&&!this.searchTerm?.trim()}get _effectiveActiveMenu(){return this._isDisabled?"none":this.activeMenu}get activeSource(){return this.viewModel?.activeSource}clear(){this._locateFailed=!1,this.viewModel.clear()}async destroy(){await this.manager.destroy(),await this._searchResultRendererEl?.destroy(),this._cancelQueries()}async search(e){this._cancelQueries();let t=new AbortController,{signal:s}=t;this._searchController=t;try{let i=await this.viewModel.search(e,{signal:s});return this._searchController!==t?void 0:(i?.numResults||(this._showNoResults=!0,this.activeMenu="suggestion"),this._searchController=void 0,i)}catch{if(this._searchController!==t)return;this._searchController=void 0;return}}async suggest(e){this._cancelSuggest();let t=new AbortController,{signal:s}=t;this._suggestController=t;try{let i=await this.viewModel.suggest(e,null,{signal:s});return this._suggestController!==t?void 0:(this._suggestController=void 0,i?.numResults&&(this.activeMenu="suggestion",this._scrollToTopSuggestion()),i)}catch{return this._suggestController!==t||(this._suggestController=void 0),null}}async setFocus(){await this._autocompleteEl?.setFocus()}loaded(){this.manager.onLifecycle(()=>E(()=>this.viewModel?.defaultPopupTemplate,e=>{if(e){let t=document.createElement("div");t.appendChild(this._searchResultRendererContainerEl),e.content=t}},{initial:!0}))}_addSearchResultRenderer(){v(o`<arcgis-search-result-renderer auto-destroy-disabled .messages=${this.messages} .viewModel=${this.viewModel} ${g(this._setSearchResultRendererRef)}></arcgis-search-result-renderer>`,this._searchResultRendererContainerEl)}_handleInputKeydown(e){e.key==="Tab"&&this._cancelSuggest()}_handleAutocompleteCreate(e){this._autocompleteEl=e}_handleCalciteAutocompleteTextInput(e){let t=e.target.inputValue;t!==this.viewModel.searchTerm&&(this.viewModel.searchTerm=t,t||this.clear(),this.suggest())}_handleAutocompleteOpen(){this.activeMenu="suggestion"}_handleAutocompleteClose(){this.activeMenu==="suggestion"&&(this.activeMenu="none")}_handleCalciteAutocompleteChange(e){let t=e.target.value;if(t===this._currentLocationValue){this._useCurrentLocation();return}let s=JSON.parse(t),i=this.viewModel.suggestions?.find(({sourceIndex:r})=>r===s.sourceIndex)?.results?.find(({key:r})=>`${r}`==`${s.key}`);i&&this.search(i)}async _useCurrentLocation(){this._cancelQueries();let e=new AbortController,{signal:t}=e;this._searchController=e;try{await this.viewModel.searchNearby({signal:t})}catch(s){D(s)||(this._locateFailed=!0,this.activeMenu="suggestion")}finally{this._searchController=void 0}}_handleSourceOpen(){this.activeMenu="source"}_handleSourceClose(){this.activeMenu==="source"&&(this.activeMenu="none")}_handleSourceSelect(e){let t=e.target.selectedItems[0].getAttribute("data-source-index");t&&(this.viewModel.activeSourceIndex=Number.parseInt(t,10))}_cancelSuggest(){this.activeMenu="none",this._locateFailed=!1,this._showNoResults=!1,this._suggestController=d(this._suggestController)}_cancelQueries(){this._cancelSuggest(),this._searchController=d(this._searchController)}_scrollToTopSuggestion(){this._autocompleteEl?.scrollContentTo({top:0})}_formSubmit(e){e.preventDefault(),this.activeMenu="none",this._lastSearchTerm=this.searchTerm,this.searchTerm&&this.search()}_getSourceName(e){let{messages:t}=this,{allSources:s}=this.viewModel,i=s.at(e);return(e===-1?t.all:i?.name||t.untitledSource)||""}render(){return this._addSearchResultRenderer(),o`<div class=${l(m(u.base,x.widget))}><div class=${l(u.container)}>${this._renderSourcesMenu()}${this._renderForm()}</div></div>`}_renderSourcesMenu(){let{messages:e,_isDisabled:t,_effectiveActiveMenu:s}=this,{allSources:i,searchAllEnabled:r}=this.viewModel;return i.length>1?o`<calcite-dropdown class=${l(u.dropdown)} .disabled=${t} .open=${s==="source"} overlay-positioning=fixed @calciteDropdownClose=${this._handleSourceClose} @calciteDropdownOpen=${this._handleSourceOpen} @calciteDropdownSelect=${this._handleSourceSelect}><calcite-button appearance=outline-fill icon-start=caret-down kind=neutral .label=${e.searchIn} slot=trigger></calcite-button><calcite-dropdown-group .groupTitle=${e.searchIn}>${r?this._renderSource(-1):null}${i.map((c,n)=>this._renderSource(n)).toArray()}</calcite-dropdown-group></calcite-dropdown>`:null}_renderUseCurrentLocation(){let{_currentLocationValue:e}=this;return o`<calcite-autocomplete-item .heading=${this.messages.useCurrentLocation??""} icon-start=gps-on .value=${e}></calcite-autocomplete-item>`}_renderAutocomplete(){let{_effectiveActiveMenu:e,messages:t,_isDisabled:s}=this,{maxInputLength:i,placeholder:r,searchTerm:c,state:n}=this.viewModel,y=this.label??t.searchButtonTitle??"";return o`<calcite-autocomplete .autocomplete=${"off"} class=${l(u.autocomplete)} .disabled=${s} .icon=${this.icon||!1} .inputValue=${c} .label=${y} .loading=${n==="searching"} .maxLength=${i} .name=${this.el.id} @keydown=${this._handleInputKeydown} .open=${e==="suggestion"} overlay-positioning=fixed .placeholder=${r} title=${(c?"":r)??f} @calciteAutocompleteChange=${this._handleCalciteAutocompleteChange} @calciteAutocompleteClose=${this._handleAutocompleteClose} @calciteAutocompleteOpen=${this._handleAutocompleteOpen} @calciteAutocompleteTextChange=${this._handleCalciteAutocompleteTextInput} @calciteAutocompleteTextInput=${this._handleCalciteAutocompleteTextInput} ${g(this._handleAutocompleteCreate)}>${this._renderSuggestions()}${this._renderNotices()}</calcite-autocomplete>`}_renderForm(){return o`<form class=${l(u.form)} @submit=${this._formSubmit} role=search>${this._renderAutocomplete()}</form>`}_renderSuggestGroup(e){return e.results?.map(t=>this._renderSuggestion(t))}_renderSuggestions(){let{suggestions:e}=this.viewModel;return this._showNoResults?null:this._showCurrentLocation?this._renderUseCurrentLocation():e?.map(t=>this._renderSuggestResults(t))}_renderSuggestResults(e){let{allSources:t,activeSourceIndex:s}=this.viewModel,{sourceIndex:i}=e,r=e.results?.length,c=t.length>1&&s===-1,n=this._getSourceName(i);return r&&c?o`<calcite-autocomplete-item-group .heading=${n}>${this._renderSuggestGroup(e)}</calcite-autocomplete-item-group>`:this._renderSuggestGroup(e)}_renderSuggestion({key:e,sourceIndex:t,text:s}){let i={key:e,sourceIndex:t};return o`<calcite-autocomplete-item .heading=${s??this.messages.untitledResult??""} .value=${JSON.stringify(i)}></calcite-autocomplete-item>`}_renderSource(e){let t=this._getSourceName(e);return o`<calcite-dropdown-item data-source-index=${`${e}`} .selected=${e===this.viewModel.activeSourceIndex}>${t}</calcite-dropdown-item>`}_renderNoResultsWarning(e){let{messages:t}=this,s=e?T(t.noResultsFoundForValue??"",{value:`"${e}"`}):t.noResultsFound;return o`<calcite-notice icon=exclamation-mark-triangle kind=warning open slot=content-bottom><div slot=title>${t.noResults}</div><div slot=message>${s}</div></calcite-notice>`}_renderLocateError(){return o`<calcite-notice icon=exclamation-mark-circle kind=danger open slot=content-bottom><div slot=message>${this.messages.locateError}</div></calcite-notice>`}_renderNotices(){return this._locateFailed?this._renderLocateError():this._showNoResults?this._renderNoResultsWarning(this._lastSearchTerm??this.viewModel.searchTerm):null}};b("arcgis-search",p);return p},"widgets/Search/SearchViewModel","core/promiseUtils","intl","core/reactiveUtils",a,c,e)
|
|
3
|
+
v4.34.0-next.57 */
|
|
4
|
+
import"./2OW3QJWO.js";import{b as g}from"./KUIXM2I2.js";import{a as d}from"./63V6KLR6.js";import e from"./DK43NE65.js";import{a as C}from"./SBRK5GNX.js";import{a as x}from"./4URT6FNE.js";import c from"./REZ7Q54U.js";import a from"./OX735E7P.js";import{f as $}from"./SKUIL7WM.js";import"./CF6NPEOZ.js";import"./GSNU26SH.js";import{D as w,G as S,R as M,S as l,U as f,W as b,a as m,t as _,u as o,z as v}from"./YFVMQCKM.js";import"./WF3E62TM.js";export default $arcgis.t(([A,{isAbortError:D},{substitute:T},{watch:E},,{a:a},R])=>{var h="arcgis-search",u={base:h,autocomplete:`${h}__autocomplete`,dropdown:`${h}__dropdown`,container:`${h}__container`,form:`${h}__form`},I=_`@layer{arcgis-search{display:block}.arcgis-search{--arcgis-internal-search-width: 240px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;width:var(--arcgis-internal-search-width)}.arcgis-search__dropdown{--calcite-color-border-1: var(--calcite-color-border-input);--calcite-dropdown-width: var(--arcgis-internal-search-width);width:31px}.arcgis-search__autocomplete{flex:1}.arcgis-search__container{display:flex;position:relative;flex:1 0 100%;flex-flow:row nowrap;align-items:stretch}.arcgis-search__form{display:flex;flex:1 0;flex-flow:row nowrap;align-items:stretch;margin:0;padding:0}}`,N=R(A),p=class extends M{constructor(){super(...arguments),this.viewModel=N(this),this._currentLocationValue="search-use-current-location",this._autocompleteEl=void 0,this._searchResultRendererContainerEl=document.createElement("div"),this._searchResultRendererEl=void 0,this._suggestController=void 0,this._searchController=void 0,this._lastSearchTerm="",this.messages=C({}),this._setSearchResultRendererRef=e=>{this._searchResultRendererEl=e},this._locateFailed=!1,this._showNoResults=!1,this.position="top-left",this.goToOverride=this.viewModel.goToOverride,this.icon="search",this.activeMenu="none",this.activeSourceIndex=this.viewModel.activeSourceIndex,this.allPlaceholder=this.viewModel.allPlaceholder,this.allSources=this.viewModel.allSources,this.autoNavigateDisabled=this.viewModel.autoNavigate,this.autoSelectDisabled=this.viewModel.autoSelect,this.defaultSources=this.viewModel.defaultSources,this.disabled=!1,this.includeDefaultSourcesDisabled=this.viewModel.includeDefaultSources,this.locationDisabled=this.viewModel.locationEnabled,this.maxResults=this.viewModel.maxResults,this.maxSuggestions=this.viewModel.maxSuggestions,this.minSuggestCharacters=this.viewModel.minSuggestCharacters,this.popupDisabled=this.viewModel.popupEnabled,this.popupTemplate=this.viewModel.popupTemplate,this.portal=this.viewModel.portal,this.resultGraphic=this.viewModel.resultGraphic,this.resultGraphicDisabled=this.viewModel.resultGraphicEnabled,this.results=this.viewModel.results,this.searchAllDisabled=this.viewModel.searchAllEnabled,this.searchTerm=this.viewModel.searchTerm,this.selectedResult=this.viewModel.selectedResult,this.sources=this.viewModel.sources,this.suggestions=this.viewModel.suggestions,this.suggestionsDisabled=this.viewModel.suggestionsEnabled,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=$()("state"),this.arcgisReady=w(),this.arcgisSearchClear=a(()=>this.viewModel,"search-clear"),this.arcgisSearchComplete=a(()=>this.viewModel,"search-complete"),this.arcgisSearchStart=a(()=>this.viewModel,"search-start"),this.arcgisSelectResult=a(()=>this.viewModel,"select-result"),this.arcgisSuggestComplete=a(()=>this.viewModel,"suggest-complete"),this.arcgisSuggestStart=a(()=>this.viewModel,"suggest-start")}static{this.properties={_locateFailed:16,_showNoResults:16,_isDisabled:16,_showCurrentLocation:16,_effectiveActiveMenu:16,referenceElement:1,position:3,goToOverride:0,icon:1,activeMenu:1,activeSource:32,activeSourceIndex:9,allPlaceholder:1,allSources:0,autoNavigateDisabled:5,autoSelectDisabled:5,defaultSources:0,disabled:5,includeDefaultSourcesDisabled:5,locationDisabled:5,maxResults:9,maxSuggestions:9,minSuggestCharacters:9,popupDisabled:5,popupTemplate:0,portal:0,resultGraphic:0,resultGraphicDisabled:5,results:0,searchAllDisabled:5,searchTerm:1,selectedResult:0,sources:0,suggestions:0,suggestionsDisabled:5,autoDestroyDisabled:5,messageOverrides:0,label:1,state:3}}static{this.styles=I}static{this.shadowRootOptions=S}get _isDisabled(){let{state:e}=this.viewModel;return e==="disabled"||e==="loading"||this.disabled}get _showCurrentLocation(){return!this.locationDisabled&&!this.searchTerm?.trim()}get _effectiveActiveMenu(){return this._isDisabled?"none":this.activeMenu}get activeSource(){return this.viewModel?.activeSource}clear(){this._locateFailed=!1,this.viewModel.clear()}async destroy(){await this.manager.destroy(),await this._searchResultRendererEl?.destroy(),this._cancelQueries()}async search(e){this._cancelQueries();let t=new AbortController,{signal:s}=t;this._searchController=t;try{let i=await this.viewModel.search(e,{signal:s});return this._searchController!==t?void 0:(i?.numResults||(this._showNoResults=!0,this.activeMenu="suggestion"),this._searchController=void 0,i)}catch{if(this._searchController!==t)return;this._searchController=void 0;return}}async suggest(e){this._cancelSuggest();let t=new AbortController,{signal:s}=t;this._suggestController=t;try{let i=await this.viewModel.suggest(e,null,{signal:s});return this._suggestController!==t?void 0:(this._suggestController=void 0,i?.numResults&&(this.activeMenu="suggestion",this._scrollToTopSuggestion()),i)}catch{return this._suggestController!==t||(this._suggestController=void 0),null}}async setFocus(){await this._autocompleteEl?.setFocus()}loaded(){this.manager.onLifecycle(()=>E(()=>this.viewModel?.defaultPopupTemplate,e=>{if(e){let t=document.createElement("div");t.appendChild(this._searchResultRendererContainerEl),e.content=t}},{initial:!0}))}_addSearchResultRenderer(){v(o`<arcgis-search-result-renderer auto-destroy-disabled .messages=${this.messages} .viewModel=${this.viewModel} ${g(this._setSearchResultRendererRef)}></arcgis-search-result-renderer>`,this._searchResultRendererContainerEl)}_handleInputKeydown(e){e.key==="Tab"&&this._cancelSuggest()}_handleAutocompleteCreate(e){this._autocompleteEl=e}_handleCalciteAutocompleteTextInput(e){let t=e.target.inputValue;t!==this.viewModel.searchTerm&&(this.viewModel.searchTerm=t,t||this.clear(),this.suggest())}_handleAutocompleteOpen(){this.activeMenu="suggestion"}_handleAutocompleteClose(){this.activeMenu==="suggestion"&&(this.activeMenu="none")}_handleCalciteAutocompleteChange(e){let t=e.target.value;if(t===this._currentLocationValue){this._useCurrentLocation();return}let s=JSON.parse(t),i=this.viewModel.suggestions?.find(({sourceIndex:r})=>r===s.sourceIndex)?.results?.find(({key:r})=>`${r}`==`${s.key}`);i&&this.search(i)}async _useCurrentLocation(){this._cancelQueries();let e=new AbortController,{signal:t}=e;this._searchController=e;try{await this.viewModel.searchNearby({signal:t})}catch(s){D(s)||(this._locateFailed=!0,this.activeMenu="suggestion")}finally{this._searchController=void 0}}_handleSourceOpen(){this.activeMenu="source"}_handleSourceClose(){this.activeMenu==="source"&&(this.activeMenu="none")}_handleSourceSelect(e){let t=e.target.selectedItems[0].getAttribute("data-source-index");t&&(this.viewModel.activeSourceIndex=Number.parseInt(t,10))}_cancelSuggest(){this.activeMenu="none",this._locateFailed=!1,this._showNoResults=!1,this._suggestController=d(this._suggestController)}_cancelQueries(){this._cancelSuggest(),this._searchController=d(this._searchController)}_scrollToTopSuggestion(){this._autocompleteEl?.scrollContentTo({top:0})}_formSubmit(e){e.preventDefault(),this.activeMenu="none",this._lastSearchTerm=this.searchTerm,this.searchTerm&&this.search()}_getSourceName(e){let{messages:t}=this,{allSources:s}=this.viewModel,i=s.at(e);return(e===-1?t.all:i?.name||t.untitledSource)||""}render(){return this._addSearchResultRenderer(),o`<div class=${l(m(u.base,x.widget))}><div class=${l(u.container)}>${this._renderSourcesMenu()}${this._renderForm()}</div></div>`}_renderSourcesMenu(){let{messages:e,_isDisabled:t,_effectiveActiveMenu:s}=this,{allSources:i,searchAllEnabled:r}=this.viewModel;return i.length>1?o`<calcite-dropdown class=${l(u.dropdown)} .disabled=${t} .open=${s==="source"} overlay-positioning=fixed @calciteDropdownClose=${this._handleSourceClose} @calciteDropdownOpen=${this._handleSourceOpen} @calciteDropdownSelect=${this._handleSourceSelect}><calcite-button appearance=outline-fill icon-start=caret-down kind=neutral .label=${e.searchIn} slot=trigger></calcite-button><calcite-dropdown-group .groupTitle=${e.searchIn}>${r?this._renderSource(-1):null}${i.map((c,n)=>this._renderSource(n)).toArray()}</calcite-dropdown-group></calcite-dropdown>`:null}_renderUseCurrentLocation(){let{_currentLocationValue:e}=this;return o`<calcite-autocomplete-item .heading=${this.messages.useCurrentLocation??""} icon-start=gps-on .value=${e}></calcite-autocomplete-item>`}_renderAutocomplete(){let{_effectiveActiveMenu:e,messages:t,_isDisabled:s}=this,{maxInputLength:i,placeholder:r,searchTerm:c,state:n}=this.viewModel,y=this.label??t.searchButtonTitle??"";return o`<calcite-autocomplete .autocomplete=${"off"} class=${l(u.autocomplete)} .disabled=${s} .icon=${this.icon||!1} .inputValue=${c} .label=${y} .loading=${n==="searching"} .maxLength=${i} .name=${this.el.id} @keydown=${this._handleInputKeydown} .open=${e==="suggestion"} overlay-positioning=fixed .placeholder=${r} title=${(c?"":r)??f} @calciteAutocompleteChange=${this._handleCalciteAutocompleteChange} @calciteAutocompleteClose=${this._handleAutocompleteClose} @calciteAutocompleteOpen=${this._handleAutocompleteOpen} @calciteAutocompleteTextChange=${this._handleCalciteAutocompleteTextInput} @calciteAutocompleteTextInput=${this._handleCalciteAutocompleteTextInput} ${g(this._handleAutocompleteCreate)}>${this._renderSuggestions()}${this._renderNotices()}</calcite-autocomplete>`}_renderForm(){return o`<form class=${l(u.form)} @submit=${this._formSubmit} role=search>${this._renderAutocomplete()}</form>`}_renderSuggestGroup(e){return e.results?.map(t=>this._renderSuggestion(t))}_renderSuggestions(){let{suggestions:e}=this.viewModel;return this._showNoResults?null:this._showCurrentLocation?this._renderUseCurrentLocation():e?.map(t=>this._renderSuggestResults(t))}_renderSuggestResults(e){let{allSources:t,activeSourceIndex:s}=this.viewModel,{sourceIndex:i}=e,r=e.results?.length,c=t.length>1&&s===-1,n=this._getSourceName(i);return r&&c?o`<calcite-autocomplete-item-group .heading=${n}>${this._renderSuggestGroup(e)}</calcite-autocomplete-item-group>`:this._renderSuggestGroup(e)}_renderSuggestion({key:e,sourceIndex:t,text:s}){let i={key:e,sourceIndex:t};return o`<calcite-autocomplete-item .heading=${s??this.messages.untitledResult??""} .value=${JSON.stringify(i)}></calcite-autocomplete-item>`}_renderSource(e){let t=this._getSourceName(e);return o`<calcite-dropdown-item data-source-index=${`${e}`} .selected=${e===this.viewModel.activeSourceIndex}>${t}</calcite-dropdown-item>`}_renderNoResultsWarning(e){let{messages:t}=this,s=e?T(t.noResultsFoundForValue??"",{value:`"${e}"`}):t.noResultsFound;return o`<calcite-notice icon=exclamation-mark-triangle kind=warning open slot=content-bottom><div slot=title>${t.noResults}</div><div slot=message>${s}</div></calcite-notice>`}_renderLocateError(){return o`<calcite-notice icon=exclamation-mark-circle kind=danger open slot=content-bottom><div slot=message>${this.messages.locateError}</div></calcite-notice>`}_renderNotices(){return this._locateFailed?this._renderLocateError():this._showNoResults?this._renderNoResultsWarning(this._lastSearchTerm??this.viewModel.searchTerm):null}};b("arcgis-search",p);return p},"widgets/Search/SearchViewModel","core/promiseUtils","intl","core/reactiveUtils",a,c,e)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
3
|
+
v4.34.0-next.57 */
|
|
4
4
|
function b(n){n.el.childElem&&(n.el.childElem.ownedBy=n.el);let e=w(n);if(!e){let t=m(n);if(!t){p(n);return}return u(t,n,!0),t}return v(e,n.el.parent)||(n.el.parent=e,e.localName==="arcgis-expand"?y(e,n):e.localName==="arcgis-placement"?h(e,n):u(e,n,!1)),e}function w({el:n}){for(let e=n.parentElement;e;e=e?.parentElement??null){if(d.has(e.localName))return e;if("ownedBy"in e&&e.ownedBy instanceof HTMLElement&&d.has(e.ownedBy.localName))return e.ownedBy}}var d=new Set(["arcgis-map","arcgis-scene","arcgis-link-chart","arcgis-expand","arcgis-placement"]);function v(n,e){if(n!==e)return!1;let t=n.localName;return t==="arcgis-expand"||t==="arcgis-placement"}function r(n,e,t="arcgisReady"){let o=n;if(o.view)e(o.view);else{let i=function(c){c.target===n&&(r(n,e,t),n.removeEventListener(t,i))};n.addEventListener(t,i)}}var y=(n,e)=>r(n,t=>{e.el.childElem&&n.content!=null&&n.content.append(e.el.childElem),n.expandIcon=e.icon||e.widget?.icon||n.expandIcon,e.position=n.position,e.el.view=t}),h=(n,e)=>r(n,t=>{e.el.childElem&&e.el.append(e.el.childElem),e.position=n.position,e.el.view=t}),u=(n,e,t)=>r(n,o=>{t?p(e):e.el.childElem&&E(n,e),e.el.view=o},"arcgisViewReadyChange");function E(n,e){let t=e.el.childElem??e.el,o=n?.childElem,i=[...n.children],c={};for(let l of i){if(l===o)continue;let a=l.position??"manual";c[a]??=[],c[a].push({child:l,position:a,index:i.indexOf(l)})}let g=c[e.position??"manual"]?.findIndex(({child:l})=>l===e.el),s=n.view.ui;s.remove(t),s.add(t,{position:e.position,index:g})}function N(n){let e=!1,t=n.el.view,o=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(n.el),"view")??{get:()=>t,set:i=>t=i};Object.defineProperty(n.el,"view",{get:o.get.bind(n.el),set:i=>{o.set.call(n.el,i),i&&!e&&(e=!0,n.arcgisReady.emit())},configurable:!0,enumerable:!0}),t&&(n.el.view=t)}function O(n){return n==null||n===""}function B(n,e){return e!=null&&n?.position===e.position&&n?.heading===e.heading&&n?.tilt===e.tilt&&n?.fov===e.fov}function L(n,e){return e===void 0||n?.targetGeometry!==e?.targetGeometry||n?.rotation!==e?.rotation||n?.scale!==e?.scale}function R(n,e){return f(e?.center,n)}function f(n,e){if(typeof e=="string")return f(n,e.split(",").map(Number));if(!n)return e;if(Array.isArray(e)){let t=e[0],o=e[1],i=e.length>2?e[2]:void 0;if(t!==n.longitude||o!==n.latitude||i!==n.z)return e}else if(e&&!n?.equals(e))return e}async function P(n,e){e!=null&&(typeof e=="string"?n.el.view=await x(n,e):n.widget&&(n.el.view=e.view))}async function x(n,e){let t=m(n,e);return await new Promise(o=>{typeof t?.view?.ready=="boolean"?o(t.view):t&&t.addEventListener("arcgisViewReadyChange",()=>o(t.view),{once:!0})})}function p(n){n.el.childElem&&(n.el.shadowRoot??n.el).append(n.el.childElem)}function m(n,e){let t=e??n.referenceElement;if(typeof t!="string")return t??void 0;let o=t.includes("#")||t.includes(".")||t.includes("["),i=n.el.getRootNode();return(o?void 0:i.querySelector(`#${t}`))??i.querySelector(t)??void 0}var F=n=>n.el.childElem;async function S(n){let e=typeof n=="function"?n():n;e&&("setFocus"in e&&typeof e.setFocus=="function"?await e.setFocus():e instanceof HTMLElement&&e.focus())}export{b as a,N as b,O as c,B as d,L as e,R as f,f as g,P as h,F as i,S as j};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v4.34.0-next.57 */
|
|
4
|
+
import"./WF3E62TM.js";var a={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"n. e.",_era_bc:"p. n. e.",A:"prijepodne",P:"popodne",AM:"AM",PM:"PM","A.M.":"prijepodne","P.M.":"popodne",January:"januar",February:"februar",March:"mart",April:"april",May:"maj",June:"juni",July:"juli",August:"august",September:"septembar",October:"oktobar",November:"novembar",December:"decembar",Jan:"jan",Feb:"feb",Mar:"mar",Apr:"apr","May(short)":"maj",Jun:"jun",Jul:"jul",Aug:"aug",Sep:"sep",Oct:"okt",Nov:"nov",Dec:"dec",Sunday:"nedjelja",Monday:"ponedjeljak",Tuesday:"utorak",Wednesday:"srijeda",Thursday:"\u010Detvrtak",Friday:"petak",Saturday:"subota",Sun:"ned",Mon:"pon",Tue:"uto",Wed:"sri",Thu:"\u010Det",Fri:"pet",Sat:"sub",_dateOrd:function(_){let e="th";if(_<11||_>13)switch(_%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},"Zoom Out":"Pove\u0107aj",Play:"Reproduciraj",Stop:"Zaustavi",Legend:"Legenda","Press ENTER to toggle":"",Loading:"U\u010Ditavanje",Home:"Po\u010Detna",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Ispis",Image:"Slika",Data:"Podaci",Print:"Ispis","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Od %1 do %2","From %1":"Od %1","To %1":"Do %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""};export{a as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import{R as r,S as t,W as c,a as n,t as o,u as e}from"./
|
|
3
|
+
v4.34.0-next.57 */
|
|
4
|
+
import{R as r,S as t,W as c,a as n,t as o,u as e}from"./YFVMQCKM.js";import"./WF3E62TM.js";var x=o`.arcgis-print__export-section--centered{text-align:center}.esri-print__panel-container{display:flex;flex:1 0;flex-direction:column;gap:var(--calcite-spacing-sm)}.arcgis-print__exported-files-empty{display:flex;flex-direction:column;align-items:center;padding:var(--calcite-spacing-lg) var(--calcite-spacing-sm);font-size:small}.arcgis-print__export-title{font-weight:700;font-size:var(--calcite-font-size)}`,i="arcgis-print",s={exportSection:`${i}__export-section`,panelContainer:`${i}__panel-container`,exportedFilesEmpty:`${i}__exported-files-empty`,exportedFilesTitle:`${i}__export-title`,exportSectionCentered:`${i}__export-section--centered`},l=class extends r{static{this.properties={saveAsButtonCallback:0,viewModel:0,messages:0,allowedFormatsForSaving:1}}static{this.styles=x}loaded(){this.manager.onLifecycle(()=>[this.viewModel.exportedLinks.on("change",()=>this.requestUpdate())])}render(){let a=this.viewModel.exportedLinks,p={[s.exportSectionCentered]:!a.length};return e`<section class=${t(n(s.exportSection,p))} role=tabpanel><div class=${t(s.panelContainer)}>${a.length===0?e`<div class=${t(s.exportedFilesEmpty)}><calcite-icon icon=file scale=l></calcite-icon><div><p class=${t(s.exportedFilesTitle)}>${this.messages.noExportedFiles}</p><div>${this.messages.exportHint}</div></div></div>`:e`<calcite-list .filterEnabled=${a.length>10} .label=${this.messages.exportedLinksList}>${a.map(d=>e`<arcgis-print-exported-link .exportedLink=${d} .viewModel=${this.viewModel} .messages=${this.messages} .allowedFormatsForSaving=${this.allowedFormatsForSaving} .saveAsButtonCallback=${this.saveAsButtonCallback}></arcgis-print-exported-link>`)}</calcite-list>`}</div></section>`}};c("arcgis-print-exports-panel",l);export{l as PrintExportsPanel};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v4.34.0-next.57 */
|
|
4
|
+
import"./WF3E62TM.js";var r={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"K",_big_number_suffix_6:"Mio",_big_number_suffix_9:"Mrd",_big_number_suffix_12:"Bio",_big_number_suffix_15:"Brd",_big_number_suffix_18:"Trill",_big_number_suffix_21:"Trd",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - dd. MMM, yyyy",_date_hour:"HH:mm",_date_hour_full:"HH:mm - dd. MMM, yyyy",_date_day:"dd. MMM",_date_day_full:"dd. MMM, yyyy",_date_week:"ww",_date_week_full:"dd. MMM, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_second:"ss",_duration_minute:"mm",_duration_hour:"hh",_duration_day:"dd",_duration_week:"ww",_duration_month:"MM",_duration_year:"yyyy",_era_ad:"v. Chr.",_era_bc:"n. Chr.",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"Januar",February:"Februar",March:"M\xE4rz",April:"April",May:"Mai",June:"Juni",July:"Juli",August:"August",September:"September",October:"Oktober",November:"November",December:"Dezember",Jan:"Jan.",Feb:"Febr.",Mar:"M\xE4rz",Apr:"Apr.","May(short)":"Mai",Jun:"Juni",Jul:"Juli",Aug:"Aug.",Sep:"Sept.",Oct:"Okt.",Nov:"Nov.",Dec:"Dez.",Sunday:"Sonntag",Monday:"Montag",Tuesday:"Dienstag",Wednesday:"Mittwoch",Thursday:"Donnerstag",Friday:"Freitag",Saturday:"Samstag",Sun:"So.",Mon:"Mo.",Tue:"Di.",Wed:"Mi.",Thu:"Do.",Fri:"Fr.",Sat:"Sa.",_dateOrd:function(e){return e+"."},"Zoom Out":"Herauszoomen",Play:"Abspielen",Stop:"Stop",Legend:"Legende","Press ENTER to toggle":"Klicken, tippen oder ENTER dr\xFCcken zum Umschalten",Loading:"Wird geladen",Home:"Home",Chart:"Diagramm","Serial chart":"Seriendiagramm","X/Y chart":"X-Y-Diagramm","Pie chart":"Kreisdiagramm","Gauge chart":"Messdiagramm","Radar chart":"Netzdiagramm","Sankey diagram":"Sankey-Diagramm","Chord diagram":"","Flow diagram":"Flussdiagramm","TreeMap chart":"Baumdiagramm",Series:"Serie","Candlestick Series":"Kerzendiagramm","Column Series":"Balkendiagramm","Line Series":"Liniendiagramm","Pie Slice Series":"Kreisdiagramm","X/Y Series":"Punktdiagramm",Map:"Karte","Press ENTER to zoom in":"Dr\xFCcke ENTER zum Hereinzoomen","Press ENTER to zoom out":"Dr\xFCcke ENTER zum Herauszoomen","Use arrow keys to zoom in and out":"Benutze die Pfeiltasten zum Zoomen","Use plus and minus keys on your keyboard to zoom in and out":"Benutze Plus- und Minustasten zum Zoomen",Export:"Export",Image:"Bild",Data:"Daten",Print:"Drucken","Press ENTER to open":"Zum \xD6ffnen klicken, tippen oder ENTER dr\xFCcken","Press ENTER to print.":"Zum Drucken klicken, tippen oder ENTER dr\xFCcken.","Press ENTER to export as %1.":"Klicken, tippen oder ENTER dr\xFCcken um als %1 zu exportieren","(Press ESC to close this message)":"ESC dr\xFCcken um diese Nachricht zu schlie\xDFen","Image Export Complete":"Bildexport komplett","Export operation took longer than expected. Something might have gone wrong.":"Der Export dauert l\xE4nger als geplant. Vielleicht ist etwas schiefgelaufen.","Saved from":"Gespeichert von",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"TAB nutzen, um Ankerpunkte auszuw\xE4hlen oder linke und rechte Pfeiltaste um die Auswahl zu \xE4ndern","Use left and right arrows to move selection":"Linke und rechte Pfeiltaste nutzen um die Auswahl zu verschieben","Use left and right arrows to move left selection":"Linke und rechte Pfeiltaste nutzen um die linke Auswahl zu verschieben","Use left and right arrows to move right selection":"Linke und rechte Pfeiltaste nutzen um die rechte Auswahl zu verschieben","Use TAB select grip buttons or up and down arrows to change selection":"TAB nutzen, um Ankerpunkte auszuw\xE4hlen oder Pfeiltaste nach oben und unten dr\xFCcken, um die Auswahl zu \xE4ndern","Use up and down arrows to move selection":"Pfeiltaste nach oben und unten dr\xFCcken, um die Auswahl zu verschieben","Use up and down arrows to move lower selection":"Pfeiltaste nach oben und unten dr\xFCcken, um die untere Auswahl zu verschieben","Use up and down arrows to move upper selection":"Pfeiltaste nach oben und unten dr\xFCcken, um die obere Auswahl zu verschieben","From %1 to %2":"Von %1 bis %2","From %1":"Von %1","To %1":"Bis %1","No parser available for file: %1":"Kein Parser f\xFCr Datei %1 verf\xFCgbar","Error parsing file: %1":"Fehler beim Parsen von Datei %1","Unable to load file: %1":"Datei %1 konnte nicht geladen werden","Invalid date":"Kein Datum"};export{r as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v4.34.0-next.57 */
|
|
4
|
+
import"./WF3E62TM.js";var r={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"d.Hr.",_era_bc:"\xEE.Hr.",A:"a.m.",P:"p.m.",AM:"a.m.",PM:"p.m.","A.M.":"a.m.","P.M.":"p.m.",January:"ianuarie",February:"februarie",March:"martie",April:"aprilie",May:"mai",June:"iunie",July:"iulie",August:"august",September:"septembrie",October:"octombrie",November:"noiembrie",December:"decembrie",Jan:"ian.",Feb:"feb.",Mar:"mar.",Apr:"apr.","May(short)":"mai",Jun:"iun.",Jul:"iul.",Aug:"aug.",Sep:"sept.",Oct:"oct.",Nov:"nov.",Dec:"dec.",Sunday:"duminic\u0103",Monday:"luni",Tuesday:"mar\u021Bi",Wednesday:"miercuri",Thursday:"joi",Friday:"vineri",Saturday:"s\xE2mb\u0103t\u0103",Sun:"dum.",Mon:"lun.",Tue:"mar.",Wed:"mie.",Thu:"joi",Fri:"vin.",Sat:"s\xE2m.",_dateOrd:function(_){let e="th";if(_<11||_>13)switch(_%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},"Zoom Out":"Zoom",Play:"Redare",Stop:"Oprire",Legend:"Legend\u0103","Press ENTER to toggle":"",Loading:"Se \xEEncarc\u0103",Home:"Pagina principal\u0103",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Imprimare",Image:"Imagine",Data:"Date",Print:"Imprimare","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Din %1 la %2","From %1":"Din %1","To %1":"La %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""};export{r as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import b from"./
|
|
3
|
+
v4.34.0-next.57 */
|
|
4
|
+
import b from"./3FM6YRK6.js";import a from"./RNXHPIFI.js";import{a as T}from"./63V6KLR6.js";import{G as C,R as M,S as k,W as J,t as A,u as m}from"./YFVMQCKM.js";import"./WF3E62TM.js";export default $arcgis.t(([{watch:Q,when:X},Y,Z,ee,{compileExpression:te},{a:x,d:j},{n:N}])=>{var ie=typeof global=="object"&&global&&global.Object===Object&&global,ne=typeof self=="object"&&self&&self.Object===Object&&self,q=ie||ne||Function("return this")(),b=q.Symbol,z=Object.prototype,ae=z.hasOwnProperty,re=z.toString,y=b?b.toStringTag:void 0;function se(e){var t=ae.call(e,y),n=e[y];try{e[y]=void 0;var i=!0}catch{}var a=re.call(e);return i&&(t?e[y]=n:delete e[y]),a}var oe=Object.prototype,le=oe.toString;function ce(e){return le.call(e)}var ue="[object Null]",fe="[object Undefined]",R=b?b.toStringTag:void 0;function pe(e){return e==null?e===void 0?fe:ue:R&&R in Object(e)?se(e):ce(e)}function de(e){return e!=null&&typeof e=="object"}var he="[object Symbol]";function me(e){return typeof e=="symbol"||de(e)&&pe(e)==he}var ve=/\s/;function ge(e){for(var t=e.length;t--&&ve.test(e.charAt(t)););return t}var ye=/^\s+/;function _e(e){return e&&e.slice(0,ge(e)+1).replace(ye,"")}function $(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var W=NaN,Te=/^[-+]0x[0-9a-f]+$/i,xe=/^0b[01]+$/i,be=/^0o[0-7]+$/i,$e=parseInt;function F(e){if(typeof e=="number")return e;if(me(e))return W;if($(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=$(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_e(e);var n=xe.test(e);return n||be.test(e)?$e(e.slice(2),n?2:8):Te.test(e)?W:+e}var I=function(){return q.Date.now()},we="Expected a function",ke=Math.max,je=Math.min;function Ie(e,t,n){var i,a,o,l,r,c,f=0,v=!1,p=!1,h=!0;if(typeof e!="function")throw new TypeError(we);t=F(t)||0,$(n)&&(v=!!n.leading,p="maxWait"in n,o=p?ke(F(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function u(s){var d=i,g=a;return i=a=void 0,f=s,l=e.apply(g,d),l}function B(s){return f=s,r=setTimeout(_,t),v?u(s):l}function G(s){var d=s-c,g=s-f,L=t-d;return p?je(L,o-g):L}function S(s){var d=s-c,g=s-f;return c===void 0||d>=t||d<0||p&&g>=o}function _(){var s=I();if(S(s))return E(s);r=setTimeout(_,G(s))}function E(s){return r=void 0,h&&i?u(s):(i=a=void 0,l)}function H(){r!==void 0&&clearTimeout(r),f=0,i=c=a=r=void 0}function K(){return r===void 0?l:E(I())}function w(){var s=I(),d=S(s);if(i=arguments,a=this,c=s,d){if(r===void 0)return B(c);if(p)return clearTimeout(r),r=setTimeout(_,t),u(c)}return r===void 0&&(r=setTimeout(_,t)),l}return w.cancel=H,w.flush=K,w}var Oe="Expected a function";function V(e,t,n){var i=!0,a=!0;if(typeof e!="function")throw new TypeError(Oe);return $(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),Ie(e,t,{leading:i,maxWait:t,trailing:a})}var Se=A`@layer{arcgis-feature-expression{display:block}.arcgis-feature-expression__loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}}`,D=1,P="arcgis-feature",U={base:`${P}-expression`,loadingSpinnerContainer:`${P}__loading-container`},O=class extends M{constructor(){super(...arguments),this._compileThrottled=V(this._startCompile,D),this._evaluateThrottled=V(this._startEvaluate,D),this.headingLevel=2}static{this.properties={_compileTask:16,_evaluateTask:16,values:0,fieldInfoMap:0,expressionInfo:0,graphic:0,headingLevel:9,interceptor:0,location:0,messages:0,spatialReference:0,map:0,view:0}}static{this.styles=Se}static{this.shadowRootOptions=C}loaded(){this.manager.onLifecycle(()=>[Q(()=>[this.expressionInfo,this.graphic],()=>this._compileThrottled(),{initial:!0}),X(()=>{if(!this._compileTask?.finished)return null;let t=this._compileTask.value,n=t?.dependencies,{view:i}=this;return[t,this.spatialReference,this.map,i,n?.has("view-scale")&&i&&"scale"in i?i.scale:null,n?.has("view-time-extent")?i?.timeExtent?.start:null,n?.has("view-time-extent")?i?.timeExtent?.end:null]},([t])=>this._evaluateThrottled(t)),{remove:()=>this._cancelThrottles()}])}_cancelThrottles(){this._compileThrottled.cancel(),this._evaluateThrottled.cancel()}_startCompile(){this._evaluateTask=T(this._evaluateTask),this._compileTask=T(this._compileTask),this._compileTask=j(async t=>{let{expressionInfo:n,graphic:i}=this,a=n?.expression;if(!a||!i)return null;let o=await te({expression:a,graphic:i});return x(t),o})}_startEvaluate(t){this._evaluateTask=T(this._evaluateTask),this._evaluateTask=j(async n=>{let{graphic:i}=this;if(!t||!i)return null;let{interceptor:a,spatialReference:o,map:l,location:r,view:c}=this,f=await t.evaluate({graphic:i,interceptor:a,location:r,map:l,options:{signal:n},spatialReference:o,view:c});x(n);let v=f&&"castAsJsonAsync"in f&&typeof f.castAsJsonAsync=="function"?f:null;if(!v)return null;let p=await v.castAsJsonAsync(n);x(n);let h=p?.type,u=h==="media"?Y.fromJSON(p):h==="text"?ee.fromJSON(p):h==="fields"?Z.fromJSON(p):null;return!u||u.type==="media"&&!u.mediaInfos||u.type==="fields"&&!u.fieldInfos||u.type==="text"&&!u.text?null:u})}render(){let t=!this._compileTask?.finished||!this._evaluateTask?.finished;return m`<div class=${k(U.base)}>${t?this._renderLoading():this._evaluateTask?.value?this._renderContent():null}</div>`}_renderContent(){let{values:t,fieldInfoMap:n}=this,i=this._evaluateTask?.value,a=i?.type;if(!a)return null;if(a==="text"){let o=N({values:t,fieldInfoMap:n??new Map,globalValues:t??{},layer:void 0,text:i.text});return m`<arcgis-feature-content .creator=${o} .graphic=${this.graphic}></arcgis-feature-content>`}else if(a==="media"){let{title:o,description:l,mediaInfos:r}=i;if(!r?.length)return null;let c={...t,...i.attributes};return m`<arcgis-feature-media .heading=${o??""} .values=${c} .formattedValues=${c} .description=${l??""} .mediaInfos=${r} .messages=${this.messages} .headingLevel=${this.headingLevel}></arcgis-feature-media>`}else if(a==="fields"){let{title:o,description:l,fieldInfos:r}=i;return r?.length?m`<arcgis-feature-fields .fieldInfos=${r} .heading=${o??""} .description=${l??""} .headingLevel=${this.headingLevel} .messages=${this.messages}></arcgis-feature-fields>`:null}return null}_renderLoading(){return m`<div class=${k(U.loadingSpinnerContainer)}><calcite-loader inline label></calcite-loader></div>`}};J("arcgis-feature-expression",O);return O},"core/reactiveUtils","popup/content/MediaContent","popup/content/FieldsContent","popup/content/TextContent","applications/Components/arcadeFeatureUtils",a,b)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import{a as f}from"./
|
|
3
|
+
v4.34.0-next.57 */
|
|
4
|
+
import{a as f}from"./SBRK5GNX.js";import{a as m}from"./4URT6FNE.js";import b from"./OX735E7P.js";import{d as v,f as x}from"./SKUIL7WM.js";import"./CF6NPEOZ.js";import"./GSNU26SH.js";import{D as p,G as _,R as g,S as a,U as c,W as u,a as r,t as h,u as n}from"./YFVMQCKM.js";import"./WF3E62TM.js";export default $arcgis.t(([{when:z,watch:D},{a:$}])=>{var w=h`@layer{.arcgis-time-zone-label{display:inline-flex;background-color:var(--calcite-color-foreground-1)}.arcgis-time-zone-label__badge{display:flex;padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-1)}.arcgis-time-zone-label__badge--disabled{opacity:var(--calcite-opacity-disabled)}.arcgis-time-zone-label__badge--hidden{display:none}.arcgis-time-zone-label__badge-icon{align-self:center}.arcgis-time-zone-label__name{--calcite-color-background: transparent;--calcite-color-border-input: transparent;--calcite-font-weight-medium: normal;pointer-events:none}.arcgis-time-zone-label__name--hidden{display:none}.arcgis-time-zone-label__label{--calcite-label-margin-bottom: 0;align-items:center;padding-inline:var(--calcite-spacing-sm)}.arcgis-time-zone-label__label--disabled{opacity:var(--calcite-opacity-disabled)}.arcgis-time-zone-label__label--hidden{display:none}}`,i="esri-time-zone-label",t={base:i,badge:`${i}__badge`,badgeDisabled:`${i}__badge--disabled`,badgeHidden:`${i}__badge--hidden`,badgeIcon:`${i}__badge-icon`,expander:`${i}__expander`,label:`${i}__label`,labelDisabled:`${i}__label--disabled`,labelHidden:`${i}__label--hidden`,name:`${i}__name`,nameHidden:`${i}__name--hidden`},b=class extends g{constructor(){super(...arguments),this._messages=f({blocking:!0}),this._onExpanderClick=()=>{this.expanded=!this.expanded},this.view=$(this),this._direction=v(),this.state="disabled",this.position="top-left",this.disabled=!1,this.expanded=!1,this.arcgisPropertyChange=x()("state"),this.arcgisReady=p()}static{this.properties={_interactive:16,_direction:16,_expandDirection:16,_timeZone:16,state:3,referenceElement:1,position:3,disabled:7,expandDirection:3,expanded:7,messageOverrides:0,label:1}}static{this.styles=w}static{this.shadowRootOptions=_}get _interactive(){return!(this.disabled||this.state==="disabled")}get expandDirection(){return this._expandDirection??this._computeExpandDirection()}set expandDirection(e){this._expandDirection=e}loaded(){this.state=this.view?.ready?"ready":"disabled",this.manager.onLifecycle(()=>[z(()=>this.view?.ready,e=>{this.state=e?"ready":"disabled"}),D(()=>this.view?.timeZone,e=>{this._timeZone=e})])}_computeExpandDirection(){if(!this.referenceElement)return"end";switch(this.position){case"top-right":case"bottom-right":case"top-trailing":case"bottom-trailing":return this._direction==="ltr"?"start":"end";case"top-left":case"bottom-left":case"top-leading":case"bottom-leading":return this._direction==="ltr"?"end":"start";default:return"end"}}_getIcon(){let{expanded:e,expandDirection:s}=this;return e?this._direction==="rtl"?s==="start"?"chevrons-left":"chevrons-right":s==="start"?"chevrons-right":"chevrons-left":"time-zone"}render(){let e=r(t.base,m.widget,!this._interactive&&m.disabled),s=this._renderExpander(),l=this._renderName(),d=this._renderBadge(),o=[s,l,d];return this.expandDirection==="start"&&o.reverse(),n`<div aria-label=${this.label??c} class=${a(e)}>${o}</div>`}_renderExpander(){let e=this._getIcon();return n`<calcite-action class=${a(t.expander)} .disabled=${!this._interactive} .icon=${e} @click=${this._onExpanderClick} scale=s .text=${this.label??""} title=${this.label??""??c}></calcite-action>`}_renderBadge(){return n`<div class=${a(r(t.badge,!this.expanded&&t.badgeHidden,!this._interactive&&t.badgeDisabled))}><calcite-icon class=${a(t.badgeIcon)} icon=time-zone scale=s></calcite-icon></div>`}_renderName(){let e="system",s="unknown",l=this._timeZone===e||this._timeZone==null?Intl.DateTimeFormat().resolvedOptions().timeZone:this._timeZone,d=this._timeZone===s,o=n`<calcite-label class=${a(r(t.label,(!this.expanded||!d)&&t.labelHidden,!this._interactive&&t.labelDisabled))}>${this._messages.noAdjustment}</calcite-label>`,y=n`<calcite-input-time-zone class=${a(r(t.name,(!this.expanded||!l||d)&&t.nameHidden))} .disabled=${!this._interactive} mode=region read-only .value=${l}></calcite-input-time-zone>`;return[o,y]}};u("arcgis-time-zone-label",b);return b},"core/reactiveUtils",b)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import d from"./
|
|
3
|
+
v4.34.0-next.57 */
|
|
4
|
+
import d from"./6CF3PJIR.js";import c from"./REZ7Q54U.js";import b from"./OX735E7P.js";import{f as r}from"./SKUIL7WM.js";import"./CF6NPEOZ.js";import"./GSNU26SH.js";import{D as i,G as e,R as a,W as o,t as s}from"./YFVMQCKM.js";import"./WF3E62TM.js";export default $arcgis.t(([h,,,n])=>{var p=s`@layer{arcgis-area-measurement-2d{display:block}}`,c=n(h),t=class extends a{constructor(){super(...arguments),this.widget=c(this),this.viewModel=this.widget.viewModel,this.autoDestroyDisabled=!1,this.icon=this.widget.icon,this.label=this.widget.label,this.position="bottom-left",this.snappingOptions=this.widget.snappingOptions,this.state=this.viewModel.state,this.unit=this.widget.unit,this.unitOptions=this.widget.unitOptions,this.arcgisPropertyChange=r()("state"),this.arcgisReady=i()}static{this.properties={autoDestroyDisabled:5,icon:1,label:1,position:1,referenceElement:1,snappingOptions:0,state:3,unit:1,unitOptions:0}}static{this.shadowRootOptions=e}static{this.styles=p}async clear(){this.viewModel?.clear()}async destroy(){await this.manager.destroy()}async start(){this.viewModel?.start()}};o("arcgis-area-measurement-2d",t);return t},"widgets/AreaMeasurement2D",b,c,d)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import{a as y,b as N}from"./C6KSWCWD.js";import c from"./OHU5CH5R.js";import{a as C}from"./BW2FOSUY.js";import b from"./2SKJP324.js";import a from"./MQLJISSA.js";import"./S35T62A2.js";import"./D476FSJS.js";import"./QZD5XVHC.js";import{D as f,G as E,R as S,S as L,W as _,t as w,u as d,z as V}from"./IRUXXHDB.js";import"./T7GGYDVX.js";export default $arcgis.t(([{once:A,watch:R},O,,,P])=>{var T=w`@layer{.arcgis-version-management{.component-container-flow{width:300px}.invalid-initial-version-notice{margin-bottom:1rem}.service-items-panel{z-index:unset!important}calcite-block{margin:0}}}`,U=P(O),F="map-components:version-management",u=class extends S{constructor(){super(...arguments),this.flowElement=y(),this.messages=C({blocking:!0}),this.viewModel=U(this),this._isInitialVersionInvalid=new Map,this._initialVersionInfos=[],this._showInvalidFeatureServiceNotice=!1,this.allowEditingDisabled=!1,this.autoDestroyDisabled=!1,this.closable=!1,this.pageSize=5,this.position="top-right",this.state=this.viewModel.state,this.versioningStates=this.viewModel.versioningStates,this.arcgisReady=f(),this.arcgisVersioningStateChanged=f()}static{this.properties={versionList:16,_showInvalidFeatureServiceNotice:16,allowEditingDisabled:5,autoDestroyDisabled:5,closable:7,initialVersionInfos:0,icon:1,label:3,messageOverrides:0,mode:1,pageSize:9,position:1,referenceElement:1,state:3,versioningStates:0}}static{this.styles=T}static{this.shadowRootOptions=E}get initialVersionInfos(){return this._initialVersionInfos}set initialVersionInfos(e){this._initialVersionInfos=e.map(i=>({...i,url:this._removeTrailingSlash(i.url)}))}async destroy(){await this.manager.destroy()}async load(){A(()=>this.viewModel.state==="ready").then(()=>{this.initialVersionInfos.forEach(e=>{try{this._changeToInitialVersion(e)}catch(i){console.error(i)}})}),this.manager.onLifecycle(()=>[R(()=>this.viewModel.state,e=>{let{flowElement:{value:i},versionList:t}=this,s=i?.getElementsByTagName("arcgis-version-management-version-properties")[0];if(e==="disabled"&&i){s&&this._removeVersionPropertiesFlowItem(i),t&&this._removeVersionListFlowItem(i);return}t&&(t.versionListElementProps={...t.versionListElementProps,executionError:this.viewModel.executionError},t.versionListElementProps={...t.versionListElementProps,state:e}),s&&(s.versionPropertiesElementProps={...s.versionPropertiesElementProps,state:e})})])}disconnectedCallback(){super.disconnectedCallback(),this.versionPropertiesContainer?.remove()}_removeTrailingSlash(e){return e.replace(/\/+$/u,"")}_createVersionPropertiesFlowItem(e,i){let{closable:t,viewModel:s,viewModel:{state:n}}=this,o={closable:t,currentUser:s.userLookup.get(e),isVersionAdministrator:s.versionAdministratorLookup.get(e),serviceUrl:e,state:n,strings:this.messages,versionInfo:i};this.versionPropertiesContainer=document.createElement("div");let r=V(d`<arcgis-version-management-version-properties .versionPropertiesElementProps=${o} selected show-back-button></arcgis-version-management-version-properties>`,this.versionPropertiesContainer),a=Array.from(r.parentNode.childNodes).find(c=>c.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES");return this.listenOn(a,"arcgisFlowItemBack",()=>{this._removeVersionPropertiesFlowItem(this.flowElement.value)}),this.listenOn(a,"calciteFlowItemBack",c=>{c.preventDefault(),this._removeVersionPropertiesFlowItem(this.flowElement.value),this.versionList&&(this.versionList.selected=!0)}),this.listenOn(a,"calciteFlowItemClose",this._handleFlowItemClose),this.listenOn(a,"arcgisCreateVersion",this._handleCreateVersion),this.listenOn(a,"arcgisAlterVersion",this._handleAlterVersion),a}_getLoadError(e){let{messages:i}=this;switch(e){case"no-feature-services":return i.loadErrors.noFeatureServices;case"no-view-property":return i.loadErrors.noViewProperty;default:return e}}async _handleAlterVersion(e){let{flowElement:{value:i},viewModel:t}=this,{alterVersionParameters:s}=e.detail;await t.alterVersion(s).then(async n=>{n&&this.arcgisVersioningStateChanged.emit({type:"version-changed",versionIdentifier:s.versionIdentifier,versioningState:t.versioningStateLookup.get(s.featureServerUrl)}),await this._refreshVersionList(s.featureServerUrl)}).finally(()=>{i&&this._removeVersionPropertiesFlowItem(i)})}_handleCreateVersion(e){let{flowElement:{value:i},viewModel:t}=this,{createVersionParameters:s,switchToVersion:n}=e.detail;t.createVersion(s).then(async o=>{o&&this.arcgisVersioningStateChanged.emit({type:"version-created",versionIdentifier:o.versionIdentifier,versioningState:t.versioningStateLookup.get(s.featureServerUrl)}),n&&await this.viewModel.changeVersion(s.featureServerUrl,o.versionIdentifier.name,o.versionIdentifier.guid).then(r=>{r&&this.arcgisVersioningStateChanged.emit({type:"version-switched",versionIdentifier:o.versionIdentifier,versioningState:t.versioningStateLookup.get(s.featureServerUrl)})}),await this._refreshVersionList(s.featureServerUrl)}).finally(()=>{i&&this._removeVersionPropertiesFlowItem(i)})}_changeToInitialVersion(e){let{_isInitialVersionInvalid:i,viewModel:t}=this,{url:s,name:n}=e,o=t.versioningStateLookup.get(s);if(!o)throw this._showInvalidFeatureServiceNotice=!0,new Error(`${F} - no versioning state found for feature service ${s}`);let r=o?.versionInfos.find(h=>h.versionIdentifier.name===n);if(!r)throw i.set(s,!0),new Error(`${F} - version ${n} not found in the versioning state for feature service ${s}`);let a=r.versionIdentifier,c=o?.currentVersionInfo?.versionIdentifier;a.guid!==c?.guid&&t.changeVersion(s,a.name,a.guid)}_handleFlowItemClose(){let e=document.querySelector("arcgis-version-management");e.parentElement?.removeChild(e)}async _handleNewVersionAction(e){let i=this._createVersionPropertiesFlowItem(e.detail.serviceUrl,void 0);this.flowElement.value?.appendChild(i),this.versionList&&(this.versionList.selected=!1)}async _handleManageVersionAction(e){let{actionType:i,serviceUrl:t,versionInfo:s}=e.detail,{viewModel:n,flowElement:o}=this;switch(i){case"changeVersion":{n.changeVersion(t,s.versionIdentifier.name,s.versionIdentifier.guid).then(r=>{r&&this.arcgisVersioningStateChanged.emit({type:"version-switched",versionIdentifier:s.versionIdentifier,versioningState:n.versioningStateLookup.get(t)});let{versionList:a}=this;a&&(a.versionListElementProps={...a.versionListElementProps,currentVersionIdentifier:n.versioningStateLookup.get(t).currentVersionInfo.versionIdentifier})});break}case"deleteVersion":{n.deleteVersion(t,s.versionIdentifier.name,s.versionIdentifier.guid).then(async r=>{r&&this.arcgisVersioningStateChanged.emit({type:"version-deleted",versionIdentifier:s.versionIdentifier,versioningState:n.versioningStateLookup.get(t)}),await this._refreshVersionList(t)});break}case"editVersion":{let r=this._createVersionPropertiesFlowItem(t,s);o.value?.appendChild(r),this.versionList&&(this.versionList.selected=!1);break}}}async _refreshVersionList(e){let{flowElement:{value:i},versionList:t,viewModel:s}=this;if(i){let n=await s.getVersionInfos(e),o=i.getElementsByTagName("arcgis-version-management-service-item");for(let r of o)r.serviceItemElementProps.serviceUrl===e&&(r.serviceItemElementProps={...r.serviceItemElementProps,versionInfos:n});t&&(t.versionListElementProps={...t.versionListElementProps,currentVersionIdentifier:s.versioningStateLookup.get(e).currentVersionInfo.versionIdentifier,versionInfos:n})}}_removeVersionListFlowItem(e){for(let i of e.childNodes)i.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-LIST"&&(e.removeChild(i),this.versionList=void 0),i.nodeName.toUpperCase()==="CALCITE-FLOW-ITEM"&&(i.hidden=!1)}_removeVersionPropertiesFlowItem(e){for(let i of e.childNodes)i.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES"&&e.removeChild(i)}render(){let{allowEditingDisabled:e,closable:i,flowElement:{value:t},initialVersionInfos:s,_isInitialVersionInvalid:n,label:o,messages:r,mode:a,pageSize:c,versionList:h,viewModel:v,viewModel:{loadError:I,state:m}}=this,b=Array.from(v.serviceNameLookup,([l,g])=>({url:l,name:g})),k=m!=="disabled"?b.map(l=>{let g={allowEditing:!e,closable:i,currentUser:v.userLookup.get(l.url),currentVersionIdentifier:v.versioningStateLookup.get(l.url).currentVersionInfo.versionIdentifier,executionError:void 0,flowElement:t,heading:o,initialVersionInfos:s,isInitialVersionInvalid:n,isVersionAdministrator:v.versionAdministratorLookup.get(l.url),isVersioningApiAvailable:(v.serverVersionLookup.get(l.url)??0)>=11.2,mode:a,pageSize:c,serviceName:l.name,state:m,serviceUrl:l.url,strings:r,versionInfos:v.versioningStateLookup.get(l.url)?.versionInfos??[]};return d`<arcgis-version-management-service-item .serviceItemElementProps=${g} @arcgisFlowItemBack=${()=>{t&&(this._removeVersionListFlowItem(t),this.versionList=void 0)}} @arcgisFlowItemClose=${()=>this._handleFlowItemClose()} @arcgisGetVersions=${async p=>{await this._refreshVersionList(p.detail.serviceUrl)}} @arcgisManageVersion=${this._handleManageVersionAction} @arcgisNewVersion=${this._handleNewVersionAction} @arcgisCreateVersionList=${p=>this.versionList=p.detail}></arcgis-version-management-service-item>`}):void 0,M=m==="disabled"&&I!=null?d`<calcite-notice class="notice" kind=warning open scale=s slot=footer width=full><div slot=message>${this._getLoadError(I)}</div></calcite-notice>`:void 0,$=this._showInvalidFeatureServiceNotice?d`<calcite-notice closable kind=warning open scale=s slot=content-top width=full icon @calciteNoticeClose=${()=>this._showInvalidFeatureServiceNotice=!1}><div slot=title>${r.headers.invalidInitialFeatureService}</div><div slot=message>${r.loadErrors.invalidInitialFeatureService}</div></calcite-notice>`:void 0;return d`<div class="arcgis-version-management"><calcite-flow custom-item-selectors="arcgis-version-management-version-list, arcgis-version-management-version-properties" class=${L(this.mode==="dialog"?"":"component-container-flow")} ${N(this.flowElement)}><calcite-flow-item .closable=${this.closable} .heading=${o??void 0} @calciteFlowItemClose=${()=>this._handleFlowItemClose()} .selected=${!h}>${$}<calcite-panel class="service-items-panel" .loading=${m==="loading"||m==="executing"}>${k}${M}</calcite-panel></calcite-flow-item></calcite-flow></div>`}};_("arcgis-version-management",u);return u},"core/reactiveUtils","widgets/VersionManagement/VersionManagementViewModel",a,b,c)
|
|
3
|
+
v4.34.0-next.57 */
|
|
4
|
+
import{a as y,b as N}from"./KUIXM2I2.js";import c from"./DK43NE65.js";import{a as C}from"./SBRK5GNX.js";import b from"./REZ7Q54U.js";import a from"./OX735E7P.js";import"./SKUIL7WM.js";import"./CF6NPEOZ.js";import"./GSNU26SH.js";import{D as f,G as E,R as S,S as L,W as _,t as w,u as d,z as V}from"./YFVMQCKM.js";import"./WF3E62TM.js";export default $arcgis.t(([{once:A,watch:R},O,,,P])=>{var T=w`@layer{.arcgis-version-management{.component-container-flow{width:300px}.invalid-initial-version-notice{margin-bottom:1rem}.service-items-panel{z-index:unset!important}calcite-block{margin:0}}}`,U=P(O),F="map-components:version-management",u=class extends S{constructor(){super(...arguments),this.flowElement=y(),this.messages=C({blocking:!0}),this.viewModel=U(this),this._isInitialVersionInvalid=new Map,this._initialVersionInfos=[],this._showInvalidFeatureServiceNotice=!1,this.allowEditingDisabled=!1,this.autoDestroyDisabled=!1,this.closable=!1,this.pageSize=5,this.position="top-right",this.state=this.viewModel.state,this.versioningStates=this.viewModel.versioningStates,this.arcgisReady=f(),this.arcgisVersioningStateChanged=f()}static{this.properties={versionList:16,_showInvalidFeatureServiceNotice:16,allowEditingDisabled:5,autoDestroyDisabled:5,closable:7,initialVersionInfos:0,icon:1,label:3,messageOverrides:0,mode:1,pageSize:9,position:1,referenceElement:1,state:3,versioningStates:0}}static{this.styles=T}static{this.shadowRootOptions=E}get initialVersionInfos(){return this._initialVersionInfos}set initialVersionInfos(e){this._initialVersionInfos=e.map(i=>({...i,url:this._removeTrailingSlash(i.url)}))}async destroy(){await this.manager.destroy()}async load(){A(()=>this.viewModel.state==="ready").then(()=>{this.initialVersionInfos.forEach(e=>{try{this._changeToInitialVersion(e)}catch(i){console.error(i)}})}),this.manager.onLifecycle(()=>[R(()=>this.viewModel.state,e=>{let{flowElement:{value:i},versionList:t}=this,s=i?.getElementsByTagName("arcgis-version-management-version-properties")[0];if(e==="disabled"&&i){s&&this._removeVersionPropertiesFlowItem(i),t&&this._removeVersionListFlowItem(i);return}t&&(t.versionListElementProps={...t.versionListElementProps,executionError:this.viewModel.executionError},t.versionListElementProps={...t.versionListElementProps,state:e}),s&&(s.versionPropertiesElementProps={...s.versionPropertiesElementProps,state:e})})])}disconnectedCallback(){super.disconnectedCallback(),this.versionPropertiesContainer?.remove()}_removeTrailingSlash(e){return e.replace(/\/+$/u,"")}_createVersionPropertiesFlowItem(e,i){let{closable:t,viewModel:s,viewModel:{state:n}}=this,o={closable:t,currentUser:s.userLookup.get(e),isVersionAdministrator:s.versionAdministratorLookup.get(e),serviceUrl:e,state:n,strings:this.messages,versionInfo:i};this.versionPropertiesContainer=document.createElement("div");let r=V(d`<arcgis-version-management-version-properties .versionPropertiesElementProps=${o} selected show-back-button></arcgis-version-management-version-properties>`,this.versionPropertiesContainer),a=Array.from(r.parentNode.childNodes).find(c=>c.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES");return this.listenOn(a,"arcgisFlowItemBack",()=>{this._removeVersionPropertiesFlowItem(this.flowElement.value)}),this.listenOn(a,"calciteFlowItemBack",c=>{c.preventDefault(),this._removeVersionPropertiesFlowItem(this.flowElement.value),this.versionList&&(this.versionList.selected=!0)}),this.listenOn(a,"calciteFlowItemClose",this._handleFlowItemClose),this.listenOn(a,"arcgisCreateVersion",this._handleCreateVersion),this.listenOn(a,"arcgisAlterVersion",this._handleAlterVersion),a}_getLoadError(e){let{messages:i}=this;switch(e){case"no-feature-services":return i.loadErrors.noFeatureServices;case"no-view-property":return i.loadErrors.noViewProperty;default:return e}}async _handleAlterVersion(e){let{flowElement:{value:i},viewModel:t}=this,{alterVersionParameters:s}=e.detail;await t.alterVersion(s).then(async n=>{n&&this.arcgisVersioningStateChanged.emit({type:"version-changed",versionIdentifier:s.versionIdentifier,versioningState:t.versioningStateLookup.get(s.featureServerUrl)}),await this._refreshVersionList(s.featureServerUrl)}).finally(()=>{i&&this._removeVersionPropertiesFlowItem(i)})}_handleCreateVersion(e){let{flowElement:{value:i},viewModel:t}=this,{createVersionParameters:s,switchToVersion:n}=e.detail;t.createVersion(s).then(async o=>{o&&this.arcgisVersioningStateChanged.emit({type:"version-created",versionIdentifier:o.versionIdentifier,versioningState:t.versioningStateLookup.get(s.featureServerUrl)}),n&&await this.viewModel.changeVersion(s.featureServerUrl,o.versionIdentifier.name,o.versionIdentifier.guid).then(r=>{r&&this.arcgisVersioningStateChanged.emit({type:"version-switched",versionIdentifier:o.versionIdentifier,versioningState:t.versioningStateLookup.get(s.featureServerUrl)})}),await this._refreshVersionList(s.featureServerUrl)}).finally(()=>{i&&this._removeVersionPropertiesFlowItem(i)})}_changeToInitialVersion(e){let{_isInitialVersionInvalid:i,viewModel:t}=this,{url:s,name:n}=e,o=t.versioningStateLookup.get(s);if(!o)throw this._showInvalidFeatureServiceNotice=!0,new Error(`${F} - no versioning state found for feature service ${s}`);let r=o?.versionInfos.find(h=>h.versionIdentifier.name===n);if(!r)throw i.set(s,!0),new Error(`${F} - version ${n} not found in the versioning state for feature service ${s}`);let a=r.versionIdentifier,c=o?.currentVersionInfo?.versionIdentifier;a.guid!==c?.guid&&t.changeVersion(s,a.name,a.guid)}_handleFlowItemClose(){let e=document.querySelector("arcgis-version-management");e.parentElement?.removeChild(e)}async _handleNewVersionAction(e){let i=this._createVersionPropertiesFlowItem(e.detail.serviceUrl,void 0);this.flowElement.value?.appendChild(i),this.versionList&&(this.versionList.selected=!1)}async _handleManageVersionAction(e){let{actionType:i,serviceUrl:t,versionInfo:s}=e.detail,{viewModel:n,flowElement:o}=this;switch(i){case"changeVersion":{n.changeVersion(t,s.versionIdentifier.name,s.versionIdentifier.guid).then(r=>{r&&this.arcgisVersioningStateChanged.emit({type:"version-switched",versionIdentifier:s.versionIdentifier,versioningState:n.versioningStateLookup.get(t)});let{versionList:a}=this;a&&(a.versionListElementProps={...a.versionListElementProps,currentVersionIdentifier:n.versioningStateLookup.get(t).currentVersionInfo.versionIdentifier})});break}case"deleteVersion":{n.deleteVersion(t,s.versionIdentifier.name,s.versionIdentifier.guid).then(async r=>{r&&this.arcgisVersioningStateChanged.emit({type:"version-deleted",versionIdentifier:s.versionIdentifier,versioningState:n.versioningStateLookup.get(t)}),await this._refreshVersionList(t)});break}case"editVersion":{let r=this._createVersionPropertiesFlowItem(t,s);o.value?.appendChild(r),this.versionList&&(this.versionList.selected=!1);break}}}async _refreshVersionList(e){let{flowElement:{value:i},versionList:t,viewModel:s}=this;if(i){let n=await s.getVersionInfos(e),o=i.getElementsByTagName("arcgis-version-management-service-item");for(let r of o)r.serviceItemElementProps.serviceUrl===e&&(r.serviceItemElementProps={...r.serviceItemElementProps,versionInfos:n});t&&(t.versionListElementProps={...t.versionListElementProps,currentVersionIdentifier:s.versioningStateLookup.get(e).currentVersionInfo.versionIdentifier,versionInfos:n})}}_removeVersionListFlowItem(e){for(let i of e.childNodes)i.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-LIST"&&(e.removeChild(i),this.versionList=void 0),i.nodeName.toUpperCase()==="CALCITE-FLOW-ITEM"&&(i.hidden=!1)}_removeVersionPropertiesFlowItem(e){for(let i of e.childNodes)i.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES"&&e.removeChild(i)}render(){let{allowEditingDisabled:e,closable:i,flowElement:{value:t},initialVersionInfos:s,_isInitialVersionInvalid:n,label:o,messages:r,mode:a,pageSize:c,versionList:h,viewModel:v,viewModel:{loadError:I,state:m}}=this,b=Array.from(v.serviceNameLookup,([l,g])=>({url:l,name:g})),k=m!=="disabled"?b.map(l=>{let g={allowEditing:!e,closable:i,currentUser:v.userLookup.get(l.url),currentVersionIdentifier:v.versioningStateLookup.get(l.url).currentVersionInfo.versionIdentifier,executionError:void 0,flowElement:t,heading:o,initialVersionInfos:s,isInitialVersionInvalid:n,isVersionAdministrator:v.versionAdministratorLookup.get(l.url),isVersioningApiAvailable:(v.serverVersionLookup.get(l.url)??0)>=11.2,mode:a,pageSize:c,serviceName:l.name,state:m,serviceUrl:l.url,strings:r,versionInfos:v.versioningStateLookup.get(l.url)?.versionInfos??[]};return d`<arcgis-version-management-service-item .serviceItemElementProps=${g} @arcgisFlowItemBack=${()=>{t&&(this._removeVersionListFlowItem(t),this.versionList=void 0)}} @arcgisFlowItemClose=${()=>this._handleFlowItemClose()} @arcgisGetVersions=${async p=>{await this._refreshVersionList(p.detail.serviceUrl)}} @arcgisManageVersion=${this._handleManageVersionAction} @arcgisNewVersion=${this._handleNewVersionAction} @arcgisCreateVersionList=${p=>this.versionList=p.detail}></arcgis-version-management-service-item>`}):void 0,M=m==="disabled"&&I!=null?d`<calcite-notice class="notice" kind=warning open scale=s slot=footer width=full><div slot=message>${this._getLoadError(I)}</div></calcite-notice>`:void 0,$=this._showInvalidFeatureServiceNotice?d`<calcite-notice closable kind=warning open scale=s slot=content-top width=full icon @calciteNoticeClose=${()=>this._showInvalidFeatureServiceNotice=!1}><div slot=title>${r.headers.invalidInitialFeatureService}</div><div slot=message>${r.loadErrors.invalidInitialFeatureService}</div></calcite-notice>`:void 0;return d`<div class="arcgis-version-management"><calcite-flow custom-item-selectors="arcgis-version-management-version-list, arcgis-version-management-version-properties" class=${L(this.mode==="dialog"?"":"component-container-flow")} ${N(this.flowElement)}><calcite-flow-item .closable=${this.closable} .heading=${o??void 0} @calciteFlowItemClose=${()=>this._handleFlowItemClose()} .selected=${!h}>${$}<calcite-panel class="service-items-panel" .loading=${m==="loading"||m==="executing"}>${k}${M}</calcite-panel></calcite-flow-item></calcite-flow></div>`}};_("arcgis-version-management",u);return u},"core/reactiveUtils","widgets/VersionManagement/VersionManagementViewModel",a,b,c)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import c from"./
|
|
3
|
+
v4.34.0-next.57 */
|
|
4
|
+
import c from"./6CF3PJIR.js";import b from"./REZ7Q54U.js";import a from"./OX735E7P.js";import{f as n}from"./SKUIL7WM.js";import"./CF6NPEOZ.js";import"./GSNU26SH.js";import{D as e,G as s,R as o,W as h,t as i}from"./YFVMQCKM.js";import"./WF3E62TM.js";export default $arcgis.t(([l,,,r])=>{var a=i`@layer{arcgis-elevation-profile{display:block}}`,d=r(l),t=class extends o{constructor(){super(...arguments),this.widget=d(this),this.viewModel=this.widget.viewModel,this.autoDestroyDisabled=!1,this.effectiveUnits=this.viewModel.effectiveUnits,this.hideChart=this.widget.visibleElements.chart,this.hideClearButton=this.widget.visibleElements.clearButton,this.hideLegend=this.widget.visibleElements.legend,this.hideSelectButton=this.widget.visibleElements.selectButton,this.hideSettingsButton=this.widget.visibleElements.settingsButton,this.hideSketchButton=this.widget.visibleElements.sketchButton,this.hideUniformChartScalingToggle=this.widget.visibleElements.uniformChartScalingToggle,this.hideUnitSelector=this.widget.visibleElements.unitSelector,this.highlightEnabled=this.viewModel.highlightEnabled,this.hoveredChartPosition=this.viewModel.hoveredChartPosition,this.icon=this.widget.icon,this.input=this.widget.input,this.label=this.widget.label,this.position="bottom-left",this.profiles=this.widget.profiles,this.progress=this.viewModel.progress,this.state=this.viewModel.state,this.uniformChartScaling=this.viewModel.uniformChartScaling,this.unit=this.widget.unit,this.unitOptions=this.widget.unitOptions,this.arcgisPropertyChange=n()("input","effectiveUnits","progress","state"),this.arcgisReady=e()}static{this.properties={autoDestroyDisabled:5,effectiveUnits:0,hideChart:5,hideClearButton:5,hideLegend:5,hideSelectButton:5,hideSettingsButton:5,hideSketchButton:5,hideUniformChartScalingToggle:5,hideUnitSelector:5,highlightEnabled:5,hoveredChartPosition:9,icon:1,input:0,label:1,position:1,profiles:0,progress:8,referenceElement:1,state:3,uniformChartScaling:5,unit:1,unitOptions:0}}static{this.shadowRootOptions=s}static{this.styles=a}async destroy(){await this.manager.destroy()}async start(){this.widget.viewModel.start()}async stop(){this.widget.viewModel.stop()}};h("arcgis-elevation-profile",t);return t},"widgets/ElevationProfile",a,b,c)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
3
|
+
v4.34.0-next.57 */
|
|
4
4
|
var r={dragHorizontal:"esri-icon-drag-horizontal",dragVertical:"esri-icon-drag-vertical"};export{r as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import f from"./
|
|
3
|
+
v4.34.0-next.57 */
|
|
4
|
+
import f from"./DK43NE65.js";import{a as u}from"./SBRK5GNX.js";import{a as i}from"./4URT6FNE.js";import b from"./REZ7Q54U.js";import a from"./OX735E7P.js";import{f as g}from"./SKUIL7WM.js";import"./CF6NPEOZ.js";import"./GSNU26SH.js";import{D as l,G as d,R as h,S as s,T as m,U as e,W as p,a as r,t as n,u as c}from"./YFVMQCKM.js";import"./WF3E62TM.js";export default $arcgis.t(([$,,,v])=>{var b=n`@layer{arcgis-compass{display:block}}`,f="esri-compass",y={base:f,iconContainer:`${f}__icon-container`},C=v($),o=class extends h{constructor(){super(...arguments),this.messages=u(),this.viewModel=C(this),this.autoDestroyDisabled=!1,this.goToOverride=this.viewModel.goToOverride,this.orientation=this.viewModel.orientation,this.position="top-left",this.state=this.viewModel.state,this.arcgisPropertyChange=g()("state","orientation"),this.arcgisReady=l()}static{this.properties={autoDestroyDisabled:5,goToOverride:0,icon:3,label:1,messageOverrides:0,orientation:0,position:3,referenceElement:1,state:3}}static{this.shadowRootOptions=d}static{this.styles=b}get icon(){return this._icon??(this.state==="rotation"?"arrow-up":"compass-needle")}set icon(t){this._icon=t}async destroy(){await this.manager.destroy()}async reset(){this.viewModel.reset()}_reset(){this.viewModel.reset()}render(){let{messages:t,icon:w}=this;return c`<div class=${s(r(y.base,i.widget))}><calcite-button class=${s(i.widgetButton)} .disabled=${this.state==="disabled"} kind=neutral .label=${t.reset} @click=${this._reset} round scale=s title=${t.reset??e}><div aria-hidden=true class=${s(y.iconContainer)} title=${t.reset??e}><calcite-icon .icon=${w} style=${m(M(this.orientation))}></calcite-icon></div></calcite-button></div>`}},M=a=>({transform:`rotateZ(${a.z}deg)`});p("arcgis-compass",o);return o},"widgets/Compass/CompassViewModel",a,b,f)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import{a as q}from"./U6RYRZTV.js";import"./UVXWLARX.js";import{b as p}from"./C6KSWCWD.js";import{a as R}from"./GVTFWXKC.js";import"./NCFG2OKG.js";import c from"./OHU5CH5R.js";import{a as O}from"./BW2FOSUY.js";import{a as T}from"./TKDN3L4V.js";import b from"./2SKJP324.js";import a from"./MQLJISSA.js";import{f as N}from"./S35T62A2.js";import"./D476FSJS.js";import"./QZD5XVHC.js";import{D as E,G as A,R as M,S as l,U as v,W as L,a as w,g as D,t as U,u as r}from"./IRUXXHDB.js";import"./T7GGYDVX.js";export default $arcgis.t(([Z,{formatDate:V,convertDateFormatToIntlOptions:H},{isHTTPSProtocol:$,isDataProtocol:x},{watch:S},z,{property:g,subclass:j},,,P])=>{var m="arcgis-bookmarks",y=`${m}__authoring`,C=`${m}__bookmark`,c={base:m,empty:`${m}__empty`,noBookmarksHeader:`${m}__no-bookmarks-heading`,noBookmarksDescription:`${m}__no-bookmarks-description`,form:`${m}__form`,list:`${m}__list`,loader:`${m}__loader`,filterNoResults:`${m}__filter-no-results`,formContent:`${m}__form-content`,addBookmarkButton:`${m}__add-bookmark-button`,editBookmarkInput:`${m}__edit-bookmark-input`,addBookmarkInput:`${m}__add-bookmark-input`,dragEnabled:`${m}--drag-enabled`,bookmarkImage:`${m}__image`,bookmarkImageContainer:`${C}-image-container`,bookmarkContent:`${C}-content`,bookmarkContentLabel:`${C}-content-label`,authoring:y,authoringImageContainer:`${y}-image-container`,authoringRefreshThumbnailButton:`${y}-refresh-thumbnail-button`},G=U`@layer{arcgis-bookmarks{display:block}.arcgis-bookmarks{display:flex;background-color:transparent}.arcgis-bookmarks__empty{display:flex;flex-flow:column wrap;align-items:center;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);text-align:center;color:var(--calcite-color-text-1)}.arcgis-bookmarks .arcgis-widget__content--empty{background-color:var(--calcite-color-foreground-2)}.arcgis-bookmarks calcite-flow-item[loading]{min-height:150px}.arcgis-bookmarks__loader{margin-inline-end:0}.arcgis-bookmarks__filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-spacing-lg)}.arcgis-bookmarks__bookmark-image-container{display:flex;position:relative;margin:0;margin-inline-start:var(--calcite-spacing-xs);min-width:16px;min-height:16px}.arcgis-bookmarks__bookmark-image-container .arcgis-bookmarks__image{max-width:64px;overflow:hidden}.arcgis-bookmarks--drag-enabled .arcgis-bookmarks__bookmark-image-container{margin-inline-start:0}.arcgis-bookmarks__no-bookmarks-heading{margin:0;margin-block-start:var(--calcite-spacing-md);font-size:16px;font-weight:400}.arcgis-bookmarks__authoring{display:flex;flex-direction:column}.arcgis-bookmarks__authoring-image-container{display:flex;align-items:middle;justify-content:center;margin-block-end:var(--calcite-spacing-md);margin-inline-end:var(--calcite-spacing-lg);background-image:repeating-conic-gradient(#ccc 0% 25%,#fff 0% 50%);background-position:0 0,10px 10px;background-size:20px 20px;background-color:#fff;width:128px;height:128px;text-align:center}.arcgis-bookmarks__authoring-image-container .arcgis-bookmarks__image{max-width:128px;max-height:128px}.arcgis-bookmarks__form{display:flex;height:100%}.arcgis-bookmarks__form-content{padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg)}.arcgis-bookmarks__authoring-refresh-thumbnail-button{margin-block-end:var(--calcite-spacing-md)}.arcgis-bookmarks__bookmark-content-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--2)}.arcgis-bookmarks__bookmark-content calcite-table{margin-inline-start:-.25rem}.arcgis-bookmarks__bookmark-content calcite-table,.arcgis-bookmarks__bookmark-content calcite-table-row{--calcite-color-border-3: transparent;--calcite-color-text-1: var(--calcite-color-text-3);--calcite-internal-table-row-background: transparent;pointer-events:none}}`,J=Object.defineProperty,K=Object.getOwnPropertyDescriptor,h=(n,e,t,i)=>{for(var a=i>1?void 0:i?K(e,t):e,o=n.length-1,s;o>=0;o--)(s=n[o])&&(a=(i?s(e,t,a):s(a))||a);return i&&a&&J(e,t,a),a},u=class extends z{constructor(n){super(n)}get editedBookmark(){let{bookmark:n}=this;return n?this._get("editedBookmark")||n.clone():null}get customUrl(){if(this._customUrl)return this._customUrl;let n=this.editedBookmark?.thumbnail?.url??"";return n??($(n)?n:null)}set customUrl(n){this._customUrl=n}get screenshotUrl(){if(this._screenshotUrl)return this._screenshotUrl;let n=this.editedBookmark?.thumbnail?.url??"";return n??(x(n)?n:null)}set screenshotUrl(n){this._screenshotUrl=n}get state(){return this._get("state")}set state(n){this.validationState=void 0,this.creatingBookmark=void 0,this._set("state",n)}get thumbnailState(){if(this._thumbnailState)return this._thumbnailState;let n=this.editedBookmark?.thumbnail?.url;return n?$(n)?"url":"screenshot":"none"}set thumbnailState(n){this._thumbnailState=n}};h([g()],u.prototype,"bookmark",2);h([g({readOnly:!0})],u.prototype,"editedBookmark",1);h([g()],u.prototype,"_customUrl",2);h([g()],u.prototype,"customUrl",1);h([g()],u.prototype,"_screenshotUrl",2);h([g()],u.prototype,"screenshotUrl",1);h([g()],u.prototype,"state",1);h([g()],u.prototype,"_thumbnailState",2);h([g()],u.prototype,"thumbnailState",1);h([g()],u.prototype,"validationState",2);h([g()],u.prototype,"creatingBookmark",2);u=h([j("UserState")],u);var Q=P(Z),F=class extends M{constructor(){super(...arguments),this._guid=D(),this._addInputNode=null,this._editInputNode=null,this._urlEditInputNode=null,this._lastDragDetail=null,this.messages=O({}),this.viewModel=Q(this),this._storeEditFlowItemNode=e=>{this._editFlowItemEl=e},this._storeRootFlowItem=e=>{this._rootFlowItemEl=e},this._storeAddFlowItemNode=e=>{this._addFlowItemEl=e},this._userState=null,this._userCreatingBookmark=!1,this.editIncludeTimeExtent=!1,this.position="top-left",this.icon="icon",this.closed=!1,this.defaultCreateOptions=this.viewModel.defaultCreateOptions,this.defaultEditOptions=this.viewModel.defaultEditOptions,this.bookmarks=this.viewModel.bookmarks,this.disabled=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.goToOverride=this.viewModel.goToOverride,this.showAddBookmarkButton=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showEditBookmarkButton=!1,this.showFilter=!1,this.hideFlow=!1,this.showHeading=!1,this.hideThumbnail=!1,this.hideTime=!1,this.timeDisabled=this.viewModel.capabilities.time,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.arcgisBookmarkEdit=E(),this.arcgisBookmarkSelect=E(),this.arcgisPropertyChange=N()("state"),this.arcgisReady=E()}static{this.properties={_userState:16,_userStateValue:16,_userValidationState:16,_userThumbnailState:16,_userCreatingBookmark:16,editIncludeTimeExtent:16,referenceElement:1,position:3,icon:1,closed:5,defaultCreateOptions:0,defaultEditOptions:0,bookmarks:0,disabled:5,dragEnabled:5,filterPlaceholder:1,filterText:1,headingLevel:9,goToOverride:0,showAddBookmarkButton:5,showCloseButton:5,showCollapseButton:5,showEditBookmarkButton:5,showFilter:5,hideFlow:5,showHeading:5,hideThumbnail:5,hideTime:5,timeDisabled:5,autoDestroyDisabled:5,messageOverrides:0,label:1,state:3}}static{this.styles=G}static{this.shadowRootOptions=A}async destroy(){await this.manager.destroy()}goTo(e){return this.viewModel.goTo(e)}loaded(){this.manager.onLifecycle(()=>[this.viewModel.on("bookmark-select",this.arcgisBookmarkSelect.emit),this.viewModel.on("bookmark-edit",this.arcgisBookmarkEdit.emit),S(()=>this._userState?.state,e=>this._userStateValue=e,{initial:!0}),S(()=>this._userState?.validationState,e=>this._userValidationState=e,{initial:!0}),S(()=>this._userState?.thumbnailState,e=>this._userThumbnailState=e,{initial:!0}),S(()=>this._userState?.creatingBookmark,e=>this._userCreatingBookmark=!!e,{initial:!0})])}startAddBookmark(){this._userState=new u({state:"add"}),requestAnimationFrame(()=>{this._addFlowItemEl?.setFocus()})}_clearState(){this._userState=null}_getTimeExtentStrings(e){let{hideTime:t}=this,{timeExtent:i}=e;if(!i)return{};let{start:a,end:o}=i,s=o!=null&&(a==null||a.getTime()!==o.getTime()),d=a?this._formatDate(a):"",b=a&&!t?this._formatTime(a):"";if(!s)return{startDate:d,startTime:b};let f=this._formatDate(o),k=t?"":this._formatTime(o);return{startDate:d,startTime:b,endDate:f,endTime:k}}_handleUrlEditInputChange(){let{_userState:e,_urlEditInputNode:t}=this,i=t?.value;if(!e?.editedBookmark||!i)return;e.validationState=void 0,x(e.editedBookmark.thumbnail?.url??"")&&(e.screenshotUrl=e.editedBookmark.thumbnail?.url);let a={url:i};$(a.url)&&(e.customUrl=i,e.editedBookmark.thumbnail=a)}_getBookmarkTitle(e){return(e?.name||this.messages.untitled)??""}_formatDate(e){if(!e)return"";let t=this.viewModel.view,i=t&&"timeZone"in t?t.timeZone:"system";return V(e,{...H("short-date"),timeZone:i})}_formatTime(e){if(!e)return"";let t=this.viewModel.view,i=t&&"timeZone"in t?t.timeZone:"system";return V(e,{...H("long-time"),timeZone:i})}_onCalciteListOrderChange(e){let{_lastDragDetail:t,bookmarks:i}=this,{toEl:a,fromEl:o,dragEl:s,newIndex:d}=e;if(!i.length)return;let b=t?.newIndex===d&&t?.dragEl===s&&t?.toEl===a&&t?.fromEl===o;if(!o||!a||b)return;this._lastDragDetail=e;let f=Array.from(o.children).filter(k=>k?.matches("calcite-list-item")).map(k=>k.value);i.sort((k,I)=>{let B=f.indexOf(k.uid),_=f.indexOf(I.uid);return B>_?1:B<_?-1:0})}_endAddBookmark(){this._clearState(),this._focusRootFlowItem()}_showEditBookmarkForm(e){e&&(this.editIncludeTimeExtent=!!e.timeExtent,this._userState=new u({bookmark:e,state:"edit"}),requestAnimationFrame(()=>{this._editFlowItemEl?.setFocus()}),this.viewModel.goTo(e))}async _createNewScreenshotUrl(){return(await this.viewModel.createBookmark()).thumbnail?.url??null}_storeCurrentUrl(){let{_userState:e}=this,t=e?.editedBookmark?.thumbnail?.url;t&&($(t)?e.customUrl=t:x(t)&&(e.screenshotUrl=t))}async _handleThumbnailTypeSelect(e){let{_userState:t}=this;if(!t)return;let{screenshotUrl:i,customUrl:a,editedBookmark:o}=t,s=e==="screenshot"?i??await this._createNewScreenshotUrl():e==="url"&&a?a:null;this._storeCurrentUrl(),o&&s&&(o.thumbnail={url:s}),t.validationState=void 0,t.thumbnailState=e}_focusRootFlowItem(){requestAnimationFrame(()=>{this._rootFlowItemEl?.setFocus()})}_closeEditBookmarkForm(){this._clearState(),this._focusRootFlowItem()}_addBookmarkSubmitClick(e){e.preventDefault(),this._addBookmarkSubmit()}async _addBookmarkSubmit(){let{_addInputNode:e,_userState:t,viewModel:i,viewModel:{bookmarks:a}}=this;if(!t)return;let o=e?e.value.trim():null;if(!o){t.validationState="name-required";return}t.creatingBookmark=!0;let s=await i.createBookmark();s.name=o,a.add(s),this._endAddBookmark()}async _editBookmarkAndClose(e,t){let{viewModel:i,viewModel:{defaultEditOptions:a}}=this;await i.editBookmark(e,{...a,...t}),this._closeEditBookmarkForm()}_editBookmarkSubmit(e){e.preventDefault();let{_userState:t,_editInputNode:i,editIncludeTimeExtent:a,_urlEditInputNode:o}=this;if(!t?.bookmark||!t.editedBookmark)return;t.validationState=void 0,t.customUrl=void 0,t.screenshotUrl=void 0;let s=i?.value.trim();if(!s){t.validationState="name-required";return}if(t.bookmark.name=s,t.bookmark.thumbnail=t.editedBookmark.thumbnail,a||(t.bookmark.timeExtent=null),t.thumbnailState==="url"&&o){let d={url:o.value};if(!$(d.url)){t.validationState="absolute-url-required";return}t.bookmark.thumbnail=d}else t.thumbnailState==="none"&&(t.bookmark.thumbnail=null);this._editBookmarkAndClose(t.bookmark,{takeScreenshot:!1,captureTimeExtent:a})}_storeEditInput(e){this._editInputNode=e}_storeAddInput(e){this._addInputNode=e}_storeUrlEditInput(e){this._urlEditInputNode=e}_deleteBookmark(e){this._closeEditBookmarkForm(),e&&(this.viewModel.bookmarks.remove(e),e.destroy())}_goToBookmark(e){this._clearState(),this.viewModel.goTo(e)}async _updateThumbnail(){let{_userState:e,viewModel:t}=this;e&&(e.validationState=void 0,await t.editBookmark(e.editedBookmark,{takeScreenshot:!0,captureViewpoint:!1,captureRotation:!1,captureScale:!1,captureTimeExtent:!1}))}_handleCalciteListDragEnd(e){let{fromEl:t,dragEl:i,oldIndex:a}=e;t.insertBefore(i,t.children[a])}render(){return r`<div class=${l(w(c.base,T.widget,{[T.panel]:!this.closed}))}>${this._renderBookmarksContainer()}</div>`}_renderNoBookmarksContainer(e){let{messages:t,viewModel:{state:i}}=this;return!e.length&&i!=="loading"?r`<div class=${l(c.empty)}><calcite-icon icon=bookmark scale=l></calcite-icon>${R({class:w(T.heading,c.noBookmarksHeader),level:this.headingLevel,children:t.noBookmarksHeading})}<p class=${l(c.noBookmarksDescription)}>${t.noBookmarksDescription}</p></div>`:null}_renderEditBookmarkFlowItems(){let e=this._userStateValue==="edit",t=this._userState?.editedBookmark;return!t||!e?[]:this._renderEditingBookmark(t)}_renderBookmarkItems(e){return e?e.toArray().map(t=>this._renderBookmark(t)):[]}_renderBookmarksContainer(){let{viewModel:{state:e,bookmarks:t},dragEnabled:i,messages:a,disabled:o,filterPlaceholder:s,filterText:d,closed:b,headingLevel:f}=this,k=t.filter(_=>_!=null),I=k.length?r`<calcite-list class=${l(c.list)} display-mode=flat .dragEnabled=${i} .filterEnabled=${this.showFilter} .filterPlaceholder=${s} .filterProps=${["label","description","metadata"]} .filterText=${d} .group=${`bookmarks-${this._guid}`} .label=${a.componentLabel??""} selection-appearance=border selection-mode=none @calciteListDragEnd=${_=>this._handleCalciteListDragEnd(_.detail)} @calciteListFilter=${_=>this.filterText=_.currentTarget?.filterText??""} @calciteListOrderChange=${_=>this._onCalciteListOrderChange(_.detail)}>${this._renderBookmarkItems(k)}${this.showFilter?r`<div class=${l(c.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full><div slot=message>${a.noBookmarksHeading}</div>;</calcite-notice></div>`:null}</calcite-list>`:null,B=[r`<calcite-flow-item .closable=${this.showCloseButton} .closed=${b} .collapsible=${this.showCollapseButton} .disabled=${o} .heading=${this.showHeading?a.componentLabel:void 0} .headingLevel=${f} .loading=${e==="loading"} .selected=${!this._userStateValue} @calciteFlowItemClose=${()=>this.closed=!0} ${p(this._storeRootFlowItem)}>${this._renderNoBookmarksContainer(k)}${I}${this._renderAddBookmarkButton()}</calcite-flow-item>`,this._renderAddingBookmark(),this._renderEditBookmarkFlowItems()];return b?null:this.hideFlow?B:r`<calcite-flow>${B}</calcite-flow>`}_renderAddBookmarkButton(){let{messages:e,disabled:t,viewModel:{view:i,state:a}}=this,o=this._userCreatingBookmark;return i&&a!=="loading"&&this.showAddBookmarkButton?r`<calcite-fab appearance=outline-fill class=${l(c.addBookmarkButton)} .disabled=${t||o} icon=plus kind=neutral .loading=${o} @click=${this.startAddBookmark} slot=fab .text=${e.addBookmark} text-enabled title=${e.addBookmark??v}></calcite-fab>`:null}_renderEditContainer(e){let{messages:t}=this,i=`${t.edit} ${this._getBookmarkTitle(e)}`;return this.showEditBookmarkButton?r`<calcite-action appearance=transparent icon=pencil @click=${()=>this._showEditBookmarkForm(e)} slot=actions-end .text=${i} title=${i??v}></calcite-action>`:null}_renderBookmarkImage(e,t){return t?r`<img alt class=${l(c.bookmarkImage)} src=${e.thumbnail?.url??v}>`:null}_renderBookmarkTimeSwitch(e){let{messages:t,viewModel:{view:i}}=this,{timeExtent:a}=e;return i?.timeExtent??a?r`<calcite-label layout=inline-space-between>${t.includeTimeExtent}<calcite-switch .checked=${!!a} @calciteSwitchChange=${o=>{this.editIncludeTimeExtent=!!o.currentTarget.checked}}></calcite-switch></calcite-label>`:null}_renderEditBookmarkTimeExtent(e){return this.editIncludeTimeExtent?this._renderBookmarkTimeExtent(e):null}_renderTimeExtentDescription(e){let{startDate:t,startTime:i,endDate:a,endTime:o}=this._getTimeExtentStrings(e);if(!t)return"";let s=`${t} ${i}`,d=`${a} ${o}`;return a?`${s} - ${d}`:s}_renderBookmarkTimeExtent(e,t=!1){let{messages:i}=this,{startDate:a,startTime:o,endDate:s,endTime:d}=this._getTimeExtentStrings(e),b=t?null:r`<calcite-table-row slot=table-header><calcite-table-header .heading=${i.startDate}></calcite-table-header>${s?r`<calcite-table-header .heading=${i.endDate}></calcite-table-header>`:null}</calcite-table-row>`;return a?r`<calcite-table .caption=${i.timeExtent??""} scale=s>${b}<calcite-table-row><calcite-table-cell>${a} ${o?[r`<br>`,o]:null}</calcite-table-cell>${s?r`<calcite-table-cell>${s}${d?[r`<br>`,d]:null}</calcite-table-cell>`:null}</calcite-table-row></calcite-table>`:null}_renderBookmarkActiveScrim(e,t){return this.viewModel.activeBookmark===e&&t?r`<calcite-scrim loading></calcite-scrim>`:null}_renderBookmarkActiveLoader(e,t){return this.viewModel.activeBookmark===e&&!t?r`<calcite-loader class=${l(c.loader)} inline .label=${this.messages.loading??""}></calcite-loader>`:null}_renderBookmarkImageIcon(e,t){return this.viewModel.activeBookmark!==e&&!t?r`<calcite-icon icon=bookmark scale=s></calcite-icon>`:null}_renderBookmarkThumbnail(e){let t=!this.hideThumbnail&&!!e.thumbnail?.url;return r`<div class=${l(c.bookmarkImageContainer)} slot=content-start>${this._renderBookmarkActiveScrim(e,t)}${this._renderBookmarkImage(e,t)}${this._renderBookmarkActiveLoader(e,t)}${this._renderBookmarkImageIcon(e,t)}</div>`}_renderBookmark(e){return q(e.uid,r`<calcite-list-item class=${l(w({[c.dragEnabled]:this.dragEnabled}))} .description=${this._renderTimeExtentDescription(e)} .label=${this._getBookmarkTitle(e)} .value=${e.uid} @calciteListItemSelect=${()=>this._goToBookmark(e)}>${this._renderBookmarkThumbnail(e)}${this._renderBookmarkContent(e)}${this._renderEditContainer(e)}</calcite-list-item>`)}_renderBookmarkContent(e){return r`<div class=${l(c.bookmarkContent)} slot=content><span class=${l(c.bookmarkContentLabel)}>${this._getBookmarkTitle(e)}</span>${this._renderBookmarkTimeExtent(e,!0)}</div>`}_renderEditingBookmarkName(e){let{messages:t}=this,i=this._userValidationState==="name-required";return r`<calcite-label>${t.title}<calcite-input class=${l(c.editBookmarkInput)} name=bookmark-name .placeholder=${t.titlePlaceholder} required type=text .value=${e.name} ${p(this._storeEditInput)}></calcite-input>${i?r`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${t.invalidTitle}</calcite-input-message>`:null}</calcite-label>`}_renderEditingBookmarkActions(){let{messages:e,_userState:t}=this,i=t?.bookmark;return[r`<calcite-button appearance=transparent kind=danger @click=${()=>this._deleteBookmark(i)} slot=footer type=button width=full>${e.delete}</calcite-button>`,r`<calcite-button appearance=outline @click=${this._closeEditBookmarkForm} slot=footer type=button width=full>${e.cancel}</calcite-button>`,r`<calcite-button slot=footer type=submit width=full>${e.save}</calcite-button>`]}_renderEditingTimeExtent(e){let{capabilities:t,view:i}=this.viewModel,{timeExtent:a}=e;return t.time&&(i?.timeExtent??a)?r`<div>${this._renderBookmarkTimeSwitch(e)}${this._renderEditBookmarkTimeExtent(e)}</div>`:null}_renderEditingBookmarkImage(e){let{_userThumbnailState:t}=this,i=e.thumbnail?.url??"",a=$(i)?t==="url":x(i)?t==="screenshot":null;if(a)return this._renderBookmarkImage(e,a)}_renderEditingThumbnail(e){let{_userThumbnailState:t,hideThumbnail:i}=this;return!i&&t!=="none"?r`<div class=${l(c.authoringImageContainer)}>${this._renderEditingBookmarkImage(e)}</div>`:null}_renderUpdateThumbnailButton(){let{hideThumbnail:e,messages:t,_userThumbnailState:i}=this;return!e&&i==="screenshot"?r`<calcite-button appearance=outline class=${l(c.authoringRefreshThumbnailButton)} icon-start=refresh kind=neutral @click=${()=>void this._updateThumbnail()} width=full>${t.updateThumbnail}</calcite-button>`:null}_renderEditingBookmarkUrlInput(e){let{messages:t,_userValidationState:i,_userThumbnailState:a}=this,o=e.thumbnail?.url??"",s=$(o)?o:void 0,d=o&&i==="absolute-url-required";return a==="url"?r`<calcite-label><calcite-input name=bookmark-thumbnail-url pattern=https://.* .placeholder=${t?`https://<${t.imageUrlPlaceholder}>`:void 0} required title=${t.imageUrlTooltip??v} type=text .value=${s} @calciteInputChange=${this._handleUrlEditInputChange} @calciteInputInput=${this._handleUrlEditInputChange} ${p(this._storeUrlEditInput)}></calcite-input>${d?r`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${t.invalidImageUrl}</calcite-input-message>`:null}</calcite-label>`:null}_renderThumbnailSelector(){let{hideThumbnail:e,messages:t,_userThumbnailState:i}=this;return e?null:r`<calcite-label>${t.thumbnail}<calcite-chip-group .label=${t.thumbnail??""} selection-mode=single-persist @calciteChipGroupSelect=${a=>this._handleThumbnailTypeSelect(a.currentTarget.selectedItems[0].value)}><calcite-chip .label=${t.screenshot??""} .selected=${i==="screenshot"} value=screenshot>${t.screenshot}</calcite-chip><calcite-chip .label=${t.url??""} .selected=${i==="url"} value=url>${t.url}</calcite-chip><calcite-chip .label=${t.none??""} .selected=${i==="none"} value=none>${t.none}</calcite-chip></calcite-chip-group></calcite-label>`}_renderEditingBookmark(e){let{disabled:t,messages:i,headingLevel:a}=this;return e?r`<form class=${l(c.form)} @submit=${this._editBookmarkSubmit}><calcite-flow-item .disabled=${t} .heading=${i.edit??""} .headingLevel=${a} .selected=${this._userStateValue==="edit"} @calciteFlowItemBack=${o=>{o.preventDefault(),this._closeEditBookmarkForm()}} ${p(this._storeEditFlowItemNode)}><div class=${l(c.formContent)}><div class=${l(c.authoring)}>${this._renderEditingBookmarkName(e)}${this._renderThumbnailSelector()}${this._renderEditingThumbnail(e)}${this._renderEditingBookmarkUrlInput(e)}${this._renderUpdateThumbnailButton()}${this._renderEditingTimeExtent(e)}</div></div>${this._renderEditingBookmarkActions()}</calcite-flow-item></form>`:null}_renderAddingBookmarkName(){let{messages:e}=this,t=this._userValidationState==="name-required";return r`<calcite-label>${e.title}<calcite-input class=${l(c.addBookmarkInput)} name=bookmark-name .placeholder=${e.titlePlaceholder} required type=text value ${p(this._storeAddInput)}></calcite-input>${t?r`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${e.invalidTitle}</calcite-input-message>`:null}</calcite-label>`}_renderAddingBookmarkActions(){let{messages:e}=this;return[r`<calcite-button appearance=outline @click=${this._endAddBookmark} slot=footer type=button width=full>${e.cancel}</calcite-button>`,r`<calcite-button slot=footer type=submit width=full>${e.add}</calcite-button>`]}_renderAddingBookmark(){let{disabled:e,messages:t,headingLevel:i,_userStateValue:a}=this;return a==="add"?r`<form class=${l(c.form)} @submit=${this._addBookmarkSubmitClick}><calcite-flow-item .disabled=${e} .heading=${t.addBookmark} .headingLevel=${i} selected @calciteFlowItemBack=${o=>{o.preventDefault(),this._endAddBookmark()}} ${p(this._storeAddFlowItemNode)}><div class=${l(c.formContent)}>${this._renderAddingBookmarkName()}</div>${this._renderAddingBookmarkActions()}</calcite-flow-item></form>`:null}};L("arcgis-bookmarks",F);return F},"widgets/Bookmarks/BookmarksViewModel","intl","core/urlUtils","core/reactiveUtils","core/Accessor","core/accessorSupport/decorators",a,b,c)
|
|
3
|
+
v4.34.0-next.57 */
|
|
4
|
+
import{a as q}from"./M6CAJ4RU.js";import"./2OW3QJWO.js";import{b as p}from"./KUIXM2I2.js";import{a as R}from"./3YZ76GSA.js";import"./RFUHE5HQ.js";import c from"./DK43NE65.js";import{a as O}from"./SBRK5GNX.js";import{a as T}from"./4URT6FNE.js";import b from"./REZ7Q54U.js";import a from"./OX735E7P.js";import{f as N}from"./SKUIL7WM.js";import"./CF6NPEOZ.js";import"./GSNU26SH.js";import{D as E,G as A,R as M,S as l,U as v,W as L,a as w,g as D,t as U,u as r}from"./YFVMQCKM.js";import"./WF3E62TM.js";export default $arcgis.t(([Z,{formatDate:V,convertDateFormatToIntlOptions:H},{isHTTPSProtocol:$,isDataProtocol:x},{watch:S},z,{property:g,subclass:j},,,P])=>{var m="arcgis-bookmarks",y=`${m}__authoring`,C=`${m}__bookmark`,c={base:m,empty:`${m}__empty`,noBookmarksHeader:`${m}__no-bookmarks-heading`,noBookmarksDescription:`${m}__no-bookmarks-description`,form:`${m}__form`,list:`${m}__list`,loader:`${m}__loader`,filterNoResults:`${m}__filter-no-results`,formContent:`${m}__form-content`,addBookmarkButton:`${m}__add-bookmark-button`,editBookmarkInput:`${m}__edit-bookmark-input`,addBookmarkInput:`${m}__add-bookmark-input`,dragEnabled:`${m}--drag-enabled`,bookmarkImage:`${m}__image`,bookmarkImageContainer:`${C}-image-container`,bookmarkContent:`${C}-content`,bookmarkContentLabel:`${C}-content-label`,authoring:y,authoringImageContainer:`${y}-image-container`,authoringRefreshThumbnailButton:`${y}-refresh-thumbnail-button`},G=U`@layer{arcgis-bookmarks{display:block}.arcgis-bookmarks{display:flex;background-color:transparent}.arcgis-bookmarks__empty{display:flex;flex-flow:column wrap;align-items:center;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);text-align:center;color:var(--calcite-color-text-1)}.arcgis-bookmarks .arcgis-widget__content--empty{background-color:var(--calcite-color-foreground-2)}.arcgis-bookmarks calcite-flow-item[loading]{min-height:150px}.arcgis-bookmarks__loader{margin-inline-end:0}.arcgis-bookmarks__filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-spacing-lg)}.arcgis-bookmarks__bookmark-image-container{display:flex;position:relative;margin:0;margin-inline-start:var(--calcite-spacing-xs);min-width:16px;min-height:16px}.arcgis-bookmarks__bookmark-image-container .arcgis-bookmarks__image{max-width:64px;overflow:hidden}.arcgis-bookmarks--drag-enabled .arcgis-bookmarks__bookmark-image-container{margin-inline-start:0}.arcgis-bookmarks__no-bookmarks-heading{margin:0;margin-block-start:var(--calcite-spacing-md);font-size:16px;font-weight:400}.arcgis-bookmarks__authoring{display:flex;flex-direction:column}.arcgis-bookmarks__authoring-image-container{display:flex;align-items:middle;justify-content:center;margin-block-end:var(--calcite-spacing-md);margin-inline-end:var(--calcite-spacing-lg);background-image:repeating-conic-gradient(#ccc 0% 25%,#fff 0% 50%);background-position:0 0,10px 10px;background-size:20px 20px;background-color:#fff;width:128px;height:128px;text-align:center}.arcgis-bookmarks__authoring-image-container .arcgis-bookmarks__image{max-width:128px;max-height:128px}.arcgis-bookmarks__form{display:flex;height:100%}.arcgis-bookmarks__form-content{padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg)}.arcgis-bookmarks__authoring-refresh-thumbnail-button{margin-block-end:var(--calcite-spacing-md)}.arcgis-bookmarks__bookmark-content-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--2)}.arcgis-bookmarks__bookmark-content calcite-table{margin-inline-start:-.25rem}.arcgis-bookmarks__bookmark-content calcite-table,.arcgis-bookmarks__bookmark-content calcite-table-row{--calcite-color-border-3: transparent;--calcite-color-text-1: var(--calcite-color-text-3);--calcite-internal-table-row-background: transparent;pointer-events:none}}`,J=Object.defineProperty,K=Object.getOwnPropertyDescriptor,h=(n,e,t,i)=>{for(var a=i>1?void 0:i?K(e,t):e,o=n.length-1,s;o>=0;o--)(s=n[o])&&(a=(i?s(e,t,a):s(a))||a);return i&&a&&J(e,t,a),a},u=class extends z{constructor(n){super(n)}get editedBookmark(){let{bookmark:n}=this;return n?this._get("editedBookmark")||n.clone():null}get customUrl(){if(this._customUrl)return this._customUrl;let n=this.editedBookmark?.thumbnail?.url??"";return n??($(n)?n:null)}set customUrl(n){this._customUrl=n}get screenshotUrl(){if(this._screenshotUrl)return this._screenshotUrl;let n=this.editedBookmark?.thumbnail?.url??"";return n??(x(n)?n:null)}set screenshotUrl(n){this._screenshotUrl=n}get state(){return this._get("state")}set state(n){this.validationState=void 0,this.creatingBookmark=void 0,this._set("state",n)}get thumbnailState(){if(this._thumbnailState)return this._thumbnailState;let n=this.editedBookmark?.thumbnail?.url;return n?$(n)?"url":"screenshot":"none"}set thumbnailState(n){this._thumbnailState=n}};h([g()],u.prototype,"bookmark",2);h([g({readOnly:!0})],u.prototype,"editedBookmark",1);h([g()],u.prototype,"_customUrl",2);h([g()],u.prototype,"customUrl",1);h([g()],u.prototype,"_screenshotUrl",2);h([g()],u.prototype,"screenshotUrl",1);h([g()],u.prototype,"state",1);h([g()],u.prototype,"_thumbnailState",2);h([g()],u.prototype,"thumbnailState",1);h([g()],u.prototype,"validationState",2);h([g()],u.prototype,"creatingBookmark",2);u=h([j("UserState")],u);var Q=P(Z),F=class extends M{constructor(){super(...arguments),this._guid=D(),this._addInputNode=null,this._editInputNode=null,this._urlEditInputNode=null,this._lastDragDetail=null,this.messages=O({}),this.viewModel=Q(this),this._storeEditFlowItemNode=e=>{this._editFlowItemEl=e},this._storeRootFlowItem=e=>{this._rootFlowItemEl=e},this._storeAddFlowItemNode=e=>{this._addFlowItemEl=e},this._userState=null,this._userCreatingBookmark=!1,this.editIncludeTimeExtent=!1,this.position="top-left",this.icon="icon",this.closed=!1,this.defaultCreateOptions=this.viewModel.defaultCreateOptions,this.defaultEditOptions=this.viewModel.defaultEditOptions,this.bookmarks=this.viewModel.bookmarks,this.disabled=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.goToOverride=this.viewModel.goToOverride,this.showAddBookmarkButton=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showEditBookmarkButton=!1,this.showFilter=!1,this.hideFlow=!1,this.showHeading=!1,this.hideThumbnail=!1,this.hideTime=!1,this.timeDisabled=this.viewModel.capabilities.time,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.arcgisBookmarkEdit=E(),this.arcgisBookmarkSelect=E(),this.arcgisPropertyChange=N()("state"),this.arcgisReady=E()}static{this.properties={_userState:16,_userStateValue:16,_userValidationState:16,_userThumbnailState:16,_userCreatingBookmark:16,editIncludeTimeExtent:16,referenceElement:1,position:3,icon:1,closed:5,defaultCreateOptions:0,defaultEditOptions:0,bookmarks:0,disabled:5,dragEnabled:5,filterPlaceholder:1,filterText:1,headingLevel:9,goToOverride:0,showAddBookmarkButton:5,showCloseButton:5,showCollapseButton:5,showEditBookmarkButton:5,showFilter:5,hideFlow:5,showHeading:5,hideThumbnail:5,hideTime:5,timeDisabled:5,autoDestroyDisabled:5,messageOverrides:0,label:1,state:3}}static{this.styles=G}static{this.shadowRootOptions=A}async destroy(){await this.manager.destroy()}goTo(e){return this.viewModel.goTo(e)}loaded(){this.manager.onLifecycle(()=>[this.viewModel.on("bookmark-select",this.arcgisBookmarkSelect.emit),this.viewModel.on("bookmark-edit",this.arcgisBookmarkEdit.emit),S(()=>this._userState?.state,e=>this._userStateValue=e,{initial:!0}),S(()=>this._userState?.validationState,e=>this._userValidationState=e,{initial:!0}),S(()=>this._userState?.thumbnailState,e=>this._userThumbnailState=e,{initial:!0}),S(()=>this._userState?.creatingBookmark,e=>this._userCreatingBookmark=!!e,{initial:!0})])}startAddBookmark(){this._userState=new u({state:"add"}),requestAnimationFrame(()=>{this._addFlowItemEl?.setFocus()})}_clearState(){this._userState=null}_getTimeExtentStrings(e){let{hideTime:t}=this,{timeExtent:i}=e;if(!i)return{};let{start:a,end:o}=i,s=o!=null&&(a==null||a.getTime()!==o.getTime()),d=a?this._formatDate(a):"",b=a&&!t?this._formatTime(a):"";if(!s)return{startDate:d,startTime:b};let f=this._formatDate(o),k=t?"":this._formatTime(o);return{startDate:d,startTime:b,endDate:f,endTime:k}}_handleUrlEditInputChange(){let{_userState:e,_urlEditInputNode:t}=this,i=t?.value;if(!e?.editedBookmark||!i)return;e.validationState=void 0,x(e.editedBookmark.thumbnail?.url??"")&&(e.screenshotUrl=e.editedBookmark.thumbnail?.url);let a={url:i};$(a.url)&&(e.customUrl=i,e.editedBookmark.thumbnail=a)}_getBookmarkTitle(e){return(e?.name||this.messages.untitled)??""}_formatDate(e){if(!e)return"";let t=this.viewModel.view,i=t&&"timeZone"in t?t.timeZone:"system";return V(e,{...H("short-date"),timeZone:i})}_formatTime(e){if(!e)return"";let t=this.viewModel.view,i=t&&"timeZone"in t?t.timeZone:"system";return V(e,{...H("long-time"),timeZone:i})}_onCalciteListOrderChange(e){let{_lastDragDetail:t,bookmarks:i}=this,{toEl:a,fromEl:o,dragEl:s,newIndex:d}=e;if(!i.length)return;let b=t?.newIndex===d&&t?.dragEl===s&&t?.toEl===a&&t?.fromEl===o;if(!o||!a||b)return;this._lastDragDetail=e;let f=Array.from(o.children).filter(k=>k?.matches("calcite-list-item")).map(k=>k.value);i.sort((k,I)=>{let B=f.indexOf(k.uid),_=f.indexOf(I.uid);return B>_?1:B<_?-1:0})}_endAddBookmark(){this._clearState(),this._focusRootFlowItem()}_showEditBookmarkForm(e){e&&(this.editIncludeTimeExtent=!!e.timeExtent,this._userState=new u({bookmark:e,state:"edit"}),requestAnimationFrame(()=>{this._editFlowItemEl?.setFocus()}),this.viewModel.goTo(e))}async _createNewScreenshotUrl(){return(await this.viewModel.createBookmark()).thumbnail?.url??null}_storeCurrentUrl(){let{_userState:e}=this,t=e?.editedBookmark?.thumbnail?.url;t&&($(t)?e.customUrl=t:x(t)&&(e.screenshotUrl=t))}async _handleThumbnailTypeSelect(e){let{_userState:t}=this;if(!t)return;let{screenshotUrl:i,customUrl:a,editedBookmark:o}=t,s=e==="screenshot"?i??await this._createNewScreenshotUrl():e==="url"&&a?a:null;this._storeCurrentUrl(),o&&s&&(o.thumbnail={url:s}),t.validationState=void 0,t.thumbnailState=e}_focusRootFlowItem(){requestAnimationFrame(()=>{this._rootFlowItemEl?.setFocus()})}_closeEditBookmarkForm(){this._clearState(),this._focusRootFlowItem()}_addBookmarkSubmitClick(e){e.preventDefault(),this._addBookmarkSubmit()}async _addBookmarkSubmit(){let{_addInputNode:e,_userState:t,viewModel:i,viewModel:{bookmarks:a}}=this;if(!t)return;let o=e?e.value.trim():null;if(!o){t.validationState="name-required";return}t.creatingBookmark=!0;let s=await i.createBookmark();s.name=o,a.add(s),this._endAddBookmark()}async _editBookmarkAndClose(e,t){let{viewModel:i,viewModel:{defaultEditOptions:a}}=this;await i.editBookmark(e,{...a,...t}),this._closeEditBookmarkForm()}_editBookmarkSubmit(e){e.preventDefault();let{_userState:t,_editInputNode:i,editIncludeTimeExtent:a,_urlEditInputNode:o}=this;if(!t?.bookmark||!t.editedBookmark)return;t.validationState=void 0,t.customUrl=void 0,t.screenshotUrl=void 0;let s=i?.value.trim();if(!s){t.validationState="name-required";return}if(t.bookmark.name=s,t.bookmark.thumbnail=t.editedBookmark.thumbnail,a||(t.bookmark.timeExtent=null),t.thumbnailState==="url"&&o){let d={url:o.value};if(!$(d.url)){t.validationState="absolute-url-required";return}t.bookmark.thumbnail=d}else t.thumbnailState==="none"&&(t.bookmark.thumbnail=null);this._editBookmarkAndClose(t.bookmark,{takeScreenshot:!1,captureTimeExtent:a})}_storeEditInput(e){this._editInputNode=e}_storeAddInput(e){this._addInputNode=e}_storeUrlEditInput(e){this._urlEditInputNode=e}_deleteBookmark(e){this._closeEditBookmarkForm(),e&&(this.viewModel.bookmarks.remove(e),e.destroy())}_goToBookmark(e){this._clearState(),this.viewModel.goTo(e)}async _updateThumbnail(){let{_userState:e,viewModel:t}=this;e&&(e.validationState=void 0,await t.editBookmark(e.editedBookmark,{takeScreenshot:!0,captureViewpoint:!1,captureRotation:!1,captureScale:!1,captureTimeExtent:!1}))}_handleCalciteListDragEnd(e){let{fromEl:t,dragEl:i,oldIndex:a}=e;t.insertBefore(i,t.children[a])}render(){return r`<div class=${l(w(c.base,T.widget,{[T.panel]:!this.closed}))}>${this._renderBookmarksContainer()}</div>`}_renderNoBookmarksContainer(e){let{messages:t,viewModel:{state:i}}=this;return!e.length&&i!=="loading"?r`<div class=${l(c.empty)}><calcite-icon icon=bookmark scale=l></calcite-icon>${R({class:w(T.heading,c.noBookmarksHeader),level:this.headingLevel,children:t.noBookmarksHeading})}<p class=${l(c.noBookmarksDescription)}>${t.noBookmarksDescription}</p></div>`:null}_renderEditBookmarkFlowItems(){let e=this._userStateValue==="edit",t=this._userState?.editedBookmark;return!t||!e?[]:this._renderEditingBookmark(t)}_renderBookmarkItems(e){return e?e.toArray().map(t=>this._renderBookmark(t)):[]}_renderBookmarksContainer(){let{viewModel:{state:e,bookmarks:t},dragEnabled:i,messages:a,disabled:o,filterPlaceholder:s,filterText:d,closed:b,headingLevel:f}=this,k=t.filter(_=>_!=null),I=k.length?r`<calcite-list class=${l(c.list)} display-mode=flat .dragEnabled=${i} .filterEnabled=${this.showFilter} .filterPlaceholder=${s} .filterProps=${["label","description","metadata"]} .filterText=${d} .group=${`bookmarks-${this._guid}`} .label=${a.componentLabel??""} selection-appearance=border selection-mode=none @calciteListDragEnd=${_=>this._handleCalciteListDragEnd(_.detail)} @calciteListFilter=${_=>this.filterText=_.currentTarget?.filterText??""} @calciteListOrderChange=${_=>this._onCalciteListOrderChange(_.detail)}>${this._renderBookmarkItems(k)}${this.showFilter?r`<div class=${l(c.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full><div slot=message>${a.noBookmarksHeading}</div>;</calcite-notice></div>`:null}</calcite-list>`:null,B=[r`<calcite-flow-item .closable=${this.showCloseButton} .closed=${b} .collapsible=${this.showCollapseButton} .disabled=${o} .heading=${this.showHeading?a.componentLabel:void 0} .headingLevel=${f} .loading=${e==="loading"} .selected=${!this._userStateValue} @calciteFlowItemClose=${()=>this.closed=!0} ${p(this._storeRootFlowItem)}>${this._renderNoBookmarksContainer(k)}${I}${this._renderAddBookmarkButton()}</calcite-flow-item>`,this._renderAddingBookmark(),this._renderEditBookmarkFlowItems()];return b?null:this.hideFlow?B:r`<calcite-flow>${B}</calcite-flow>`}_renderAddBookmarkButton(){let{messages:e,disabled:t,viewModel:{view:i,state:a}}=this,o=this._userCreatingBookmark;return i&&a!=="loading"&&this.showAddBookmarkButton?r`<calcite-fab appearance=outline-fill class=${l(c.addBookmarkButton)} .disabled=${t||o} icon=plus kind=neutral .loading=${o} @click=${this.startAddBookmark} slot=fab .text=${e.addBookmark} text-enabled title=${e.addBookmark??v}></calcite-fab>`:null}_renderEditContainer(e){let{messages:t}=this,i=`${t.edit} ${this._getBookmarkTitle(e)}`;return this.showEditBookmarkButton?r`<calcite-action appearance=transparent icon=pencil @click=${()=>this._showEditBookmarkForm(e)} slot=actions-end .text=${i} title=${i??v}></calcite-action>`:null}_renderBookmarkImage(e,t){return t?r`<img alt class=${l(c.bookmarkImage)} src=${e.thumbnail?.url??v}>`:null}_renderBookmarkTimeSwitch(e){let{messages:t,viewModel:{view:i}}=this,{timeExtent:a}=e;return i?.timeExtent??a?r`<calcite-label layout=inline-space-between>${t.includeTimeExtent}<calcite-switch .checked=${!!a} @calciteSwitchChange=${o=>{this.editIncludeTimeExtent=!!o.currentTarget.checked}}></calcite-switch></calcite-label>`:null}_renderEditBookmarkTimeExtent(e){return this.editIncludeTimeExtent?this._renderBookmarkTimeExtent(e):null}_renderTimeExtentDescription(e){let{startDate:t,startTime:i,endDate:a,endTime:o}=this._getTimeExtentStrings(e);if(!t)return"";let s=`${t} ${i}`,d=`${a} ${o}`;return a?`${s} - ${d}`:s}_renderBookmarkTimeExtent(e,t=!1){let{messages:i}=this,{startDate:a,startTime:o,endDate:s,endTime:d}=this._getTimeExtentStrings(e),b=t?null:r`<calcite-table-row slot=table-header><calcite-table-header .heading=${i.startDate}></calcite-table-header>${s?r`<calcite-table-header .heading=${i.endDate}></calcite-table-header>`:null}</calcite-table-row>`;return a?r`<calcite-table .caption=${i.timeExtent??""} scale=s>${b}<calcite-table-row><calcite-table-cell>${a} ${o?[r`<br>`,o]:null}</calcite-table-cell>${s?r`<calcite-table-cell>${s}${d?[r`<br>`,d]:null}</calcite-table-cell>`:null}</calcite-table-row></calcite-table>`:null}_renderBookmarkActiveScrim(e,t){return this.viewModel.activeBookmark===e&&t?r`<calcite-scrim loading></calcite-scrim>`:null}_renderBookmarkActiveLoader(e,t){return this.viewModel.activeBookmark===e&&!t?r`<calcite-loader class=${l(c.loader)} inline .label=${this.messages.loading??""}></calcite-loader>`:null}_renderBookmarkImageIcon(e,t){return this.viewModel.activeBookmark!==e&&!t?r`<calcite-icon icon=bookmark scale=s></calcite-icon>`:null}_renderBookmarkThumbnail(e){let t=!this.hideThumbnail&&!!e.thumbnail?.url;return r`<div class=${l(c.bookmarkImageContainer)} slot=content-start>${this._renderBookmarkActiveScrim(e,t)}${this._renderBookmarkImage(e,t)}${this._renderBookmarkActiveLoader(e,t)}${this._renderBookmarkImageIcon(e,t)}</div>`}_renderBookmark(e){return q(e.uid,r`<calcite-list-item class=${l(w({[c.dragEnabled]:this.dragEnabled}))} .description=${this._renderTimeExtentDescription(e)} .label=${this._getBookmarkTitle(e)} .value=${e.uid} @calciteListItemSelect=${()=>this._goToBookmark(e)}>${this._renderBookmarkThumbnail(e)}${this._renderBookmarkContent(e)}${this._renderEditContainer(e)}</calcite-list-item>`)}_renderBookmarkContent(e){return r`<div class=${l(c.bookmarkContent)} slot=content><span class=${l(c.bookmarkContentLabel)}>${this._getBookmarkTitle(e)}</span>${this._renderBookmarkTimeExtent(e,!0)}</div>`}_renderEditingBookmarkName(e){let{messages:t}=this,i=this._userValidationState==="name-required";return r`<calcite-label>${t.title}<calcite-input class=${l(c.editBookmarkInput)} name=bookmark-name .placeholder=${t.titlePlaceholder} required type=text .value=${e.name} ${p(this._storeEditInput)}></calcite-input>${i?r`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${t.invalidTitle}</calcite-input-message>`:null}</calcite-label>`}_renderEditingBookmarkActions(){let{messages:e,_userState:t}=this,i=t?.bookmark;return[r`<calcite-button appearance=transparent kind=danger @click=${()=>this._deleteBookmark(i)} slot=footer type=button width=full>${e.delete}</calcite-button>`,r`<calcite-button appearance=outline @click=${this._closeEditBookmarkForm} slot=footer type=button width=full>${e.cancel}</calcite-button>`,r`<calcite-button slot=footer type=submit width=full>${e.save}</calcite-button>`]}_renderEditingTimeExtent(e){let{capabilities:t,view:i}=this.viewModel,{timeExtent:a}=e;return t.time&&(i?.timeExtent??a)?r`<div>${this._renderBookmarkTimeSwitch(e)}${this._renderEditBookmarkTimeExtent(e)}</div>`:null}_renderEditingBookmarkImage(e){let{_userThumbnailState:t}=this,i=e.thumbnail?.url??"",a=$(i)?t==="url":x(i)?t==="screenshot":null;if(a)return this._renderBookmarkImage(e,a)}_renderEditingThumbnail(e){let{_userThumbnailState:t,hideThumbnail:i}=this;return!i&&t!=="none"?r`<div class=${l(c.authoringImageContainer)}>${this._renderEditingBookmarkImage(e)}</div>`:null}_renderUpdateThumbnailButton(){let{hideThumbnail:e,messages:t,_userThumbnailState:i}=this;return!e&&i==="screenshot"?r`<calcite-button appearance=outline class=${l(c.authoringRefreshThumbnailButton)} icon-start=refresh kind=neutral @click=${()=>void this._updateThumbnail()} width=full>${t.updateThumbnail}</calcite-button>`:null}_renderEditingBookmarkUrlInput(e){let{messages:t,_userValidationState:i,_userThumbnailState:a}=this,o=e.thumbnail?.url??"",s=$(o)?o:void 0,d=o&&i==="absolute-url-required";return a==="url"?r`<calcite-label><calcite-input name=bookmark-thumbnail-url pattern=https://.* .placeholder=${t?`https://<${t.imageUrlPlaceholder}>`:void 0} required title=${t.imageUrlTooltip??v} type=text .value=${s} @calciteInputChange=${this._handleUrlEditInputChange} @calciteInputInput=${this._handleUrlEditInputChange} ${p(this._storeUrlEditInput)}></calcite-input>${d?r`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${t.invalidImageUrl}</calcite-input-message>`:null}</calcite-label>`:null}_renderThumbnailSelector(){let{hideThumbnail:e,messages:t,_userThumbnailState:i}=this;return e?null:r`<calcite-label>${t.thumbnail}<calcite-chip-group .label=${t.thumbnail??""} selection-mode=single-persist @calciteChipGroupSelect=${a=>this._handleThumbnailTypeSelect(a.currentTarget.selectedItems[0].value)}><calcite-chip .label=${t.screenshot??""} .selected=${i==="screenshot"} value=screenshot>${t.screenshot}</calcite-chip><calcite-chip .label=${t.url??""} .selected=${i==="url"} value=url>${t.url}</calcite-chip><calcite-chip .label=${t.none??""} .selected=${i==="none"} value=none>${t.none}</calcite-chip></calcite-chip-group></calcite-label>`}_renderEditingBookmark(e){let{disabled:t,messages:i,headingLevel:a}=this;return e?r`<form class=${l(c.form)} @submit=${this._editBookmarkSubmit}><calcite-flow-item .disabled=${t} .heading=${i.edit??""} .headingLevel=${a} .selected=${this._userStateValue==="edit"} @calciteFlowItemBack=${o=>{o.preventDefault(),this._closeEditBookmarkForm()}} ${p(this._storeEditFlowItemNode)}><div class=${l(c.formContent)}><div class=${l(c.authoring)}>${this._renderEditingBookmarkName(e)}${this._renderThumbnailSelector()}${this._renderEditingThumbnail(e)}${this._renderEditingBookmarkUrlInput(e)}${this._renderUpdateThumbnailButton()}${this._renderEditingTimeExtent(e)}</div></div>${this._renderEditingBookmarkActions()}</calcite-flow-item></form>`:null}_renderAddingBookmarkName(){let{messages:e}=this,t=this._userValidationState==="name-required";return r`<calcite-label>${e.title}<calcite-input class=${l(c.addBookmarkInput)} name=bookmark-name .placeholder=${e.titlePlaceholder} required type=text value ${p(this._storeAddInput)}></calcite-input>${t?r`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${e.invalidTitle}</calcite-input-message>`:null}</calcite-label>`}_renderAddingBookmarkActions(){let{messages:e}=this;return[r`<calcite-button appearance=outline @click=${this._endAddBookmark} slot=footer type=button width=full>${e.cancel}</calcite-button>`,r`<calcite-button slot=footer type=submit width=full>${e.add}</calcite-button>`]}_renderAddingBookmark(){let{disabled:e,messages:t,headingLevel:i,_userStateValue:a}=this;return a==="add"?r`<form class=${l(c.form)} @submit=${this._addBookmarkSubmitClick}><calcite-flow-item .disabled=${e} .heading=${t.addBookmark} .headingLevel=${i} selected @calciteFlowItemBack=${o=>{o.preventDefault(),this._endAddBookmark()}} ${p(this._storeAddFlowItemNode)}><div class=${l(c.formContent)}>${this._renderAddingBookmarkName()}</div>${this._renderAddingBookmarkActions()}</calcite-flow-item></form>`:null}};L("arcgis-bookmarks",F);return F},"widgets/Bookmarks/BookmarksViewModel","intl","core/urlUtils","core/reactiveUtils","core/Accessor","core/accessorSupport/decorators",a,b,c)
|