@arcgis/map-components 4.34.0-next.0 → 4.34.0-next.2
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/{66M6PGUD.js → 2DFTJYET.js} +2 -2
- package/dist/cdn/2HMQBLGX.js +4 -0
- package/dist/cdn/{3LZRPQXQ.js → 2ITL25LA.js} +2 -2
- package/dist/cdn/{FO4LJYGB.js → 2Z4KRGOJ.js} +1 -1
- package/dist/cdn/{25ZLVJE7.js → 3E5JGS7I.js} +2 -2
- package/dist/cdn/{5XI5LA6E.js → 3TIDM52T.js} +2 -2
- package/dist/cdn/{PXMI5T6V.js → 3ZGNCN4N.js} +2 -2
- package/dist/cdn/{F7THE4DM.js → 42ZLP4TO.js} +2 -2
- package/dist/cdn/{2VAIM3FU.js → 47WXI5OV.js} +2 -2
- package/dist/cdn/{5RD2D6IR.js → 4B65IRU5.js} +2 -2
- package/dist/cdn/{2TL4CO63.js → 4P26B2AA.js} +2 -2
- package/dist/cdn/{IUEPX5R7.js → 4WJ66SFY.js} +2 -2
- package/dist/cdn/{BAIEVERW.js → 54LBYLM4.js} +2 -2
- package/dist/cdn/{EBK2WHJG.js → 5APGWHKF.js} +2 -2
- package/dist/cdn/{S2ASRDHO.js → 5IGCHT4A.js} +2 -2
- package/dist/cdn/{LL3YO32K.js → 6ESK4QPA.js} +2 -2
- package/dist/cdn/{KOSM7A4X.js → 6KAI6YXC.js} +2 -2
- package/dist/cdn/{SC6GIUCI.js → 6QZWTGCD.js} +2 -2
- package/dist/cdn/{WTHC6CP4.js → 6X652SXL.js} +2 -2
- package/dist/cdn/{OUGBZ2II.js → 6YEXM7GA.js} +2 -2
- package/dist/cdn/{HIF454A6.js → 76V2F3M5.js} +2 -2
- package/dist/cdn/{VGCXVVGF.js → 7CVQJHEU.js} +2 -2
- package/dist/cdn/{6BAW6KAD.js → A5THM6EA.js} +2 -2
- package/dist/cdn/{SH5QUL2Z.js → AACC3FYE.js} +1 -1
- package/dist/cdn/{GDZND6S4.js → ARSEOYQC.js} +2 -2
- package/dist/cdn/AX6ZNG7O.js +4 -0
- package/dist/cdn/{O3LC2WQB.js → AXKSXWQK.js} +2 -2
- package/dist/cdn/{I5LECTBO.js → BBUM7LXZ.js} +2 -2
- package/dist/cdn/{5RKPITZX.js → BGVGYLIS.js} +2 -2
- package/dist/cdn/{2JDTH6IK.js → BL6FEQUL.js} +1 -1
- package/dist/cdn/{47GLP2TH.js → BOWV4BI5.js} +2 -2
- package/dist/cdn/{PWKNXSAS.js → BTB5CEYG.js} +2 -2
- package/dist/cdn/{4F7FQT3D.js → CUYQCXUJ.js} +2 -2
- package/dist/cdn/{ZWQX3SIB.js → D6KJDF5I.js} +2 -2
- package/dist/cdn/{SKTZD4WM.js → DH3QB5M5.js} +2 -2
- package/dist/cdn/{NCEC5CAZ.js → DHZBSCQC.js} +2 -2
- package/dist/cdn/{5FYXGIQ4.js → DKMOPJ25.js} +2 -2
- package/dist/cdn/{NCMFPUO5.js → DNMZ4O6N.js} +2 -2
- package/dist/cdn/{6IJMEK3V.js → DXPQND6H.js} +2 -2
- package/dist/cdn/{JIBEPAIR.js → E6EE4TT7.js} +1 -1
- package/dist/cdn/{RWSBSD7S.js → E77FQK43.js} +2 -2
- package/dist/cdn/{SWUUXW2V.js → ESEGUX5O.js} +2 -2
- package/dist/cdn/{5UCO3IN3.js → FG2UUN5Y.js} +2 -2
- package/dist/cdn/{NIIM2WOA.js → FMX5JKGL.js} +2 -2
- package/dist/cdn/{TJRBJPVS.js → FPQAF5U2.js} +2 -2
- package/dist/cdn/{B7LXRFIO.js → FQM7ZIUE.js} +2 -2
- package/dist/cdn/{JO7QIISV.js → FVCCBN6R.js} +2 -2
- package/dist/cdn/{OTTU32NZ.js → HDHYECZP.js} +1 -1
- package/dist/cdn/HP3N5VUA.js +4 -0
- package/dist/cdn/{NPE7BHDN.js → HRAFJUBY.js} +2 -2
- package/dist/cdn/{N4L7KK6S.js → HSYMUXB2.js} +2 -2
- package/dist/cdn/{5TO53QI5.js → IBKAQQBC.js} +2 -2
- package/dist/cdn/{DG5W6DSX.js → IE47QEIE.js} +2 -2
- package/dist/cdn/{4RQZABRE.js → JPZTEH2M.js} +2 -2
- package/dist/cdn/{BFGKPVUE.js → JSU4NS5T.js} +2 -2
- package/dist/cdn/{CCVU7P54.js → JXL7WD2E.js} +2 -2
- package/dist/cdn/{SFS5U7ZS.js → L3FVC43E.js} +2 -2
- package/dist/cdn/{736XFMFY.js → LE6LUZKM.js} +2 -2
- package/dist/cdn/{CIYB362S.js → LG2VTIMN.js} +2 -2
- package/dist/cdn/LIRUDJLH.js +4 -0
- package/dist/cdn/{3A7WRK6T.js → LLSIG464.js} +2 -2
- package/dist/cdn/{6ROAWCRZ.js → LQPNE6GS.js} +2 -2
- package/dist/cdn/{5YXWIVA4.js → LQXNDSAI.js} +2 -2
- package/dist/cdn/{Z3BQBKLS.js → LRCALZS4.js} +2 -2
- package/dist/cdn/{MHQH3W66.js → M67BOC6R.js} +2 -2
- package/dist/cdn/{RKWMZSSM.js → M6KBDQ4B.js} +2 -2
- package/dist/cdn/{MJZJUHXZ.js → MQJ7XLGK.js} +2 -2
- package/dist/cdn/{FFQWILNR.js → MSGRPQLQ.js} +2 -2
- package/dist/cdn/{J4HY27HP.js → N762OEGT.js} +2 -2
- package/dist/cdn/{K5CTLTAS.js → NBZE6Q5O.js} +1 -1
- package/dist/cdn/{UB636O6Q.js → NR7JLVJV.js} +2 -2
- package/dist/cdn/NTUHH5NA.js +4 -0
- package/dist/cdn/{DPFZ4VRU.js → O24P7Q3C.js} +2 -2
- package/dist/cdn/{56AQLE4X.js → O57FJWKG.js} +2 -2
- package/dist/cdn/{NQ7N6FPE.js → OBPKMGHI.js} +2 -2
- package/dist/cdn/{ADW7VOGC.js → OPRL4XLU.js} +2 -2
- package/dist/cdn/{X4YIURGH.js → OSL33XSZ.js} +2 -2
- package/dist/cdn/{KS5A6HUA.js → OZTG4AFE.js} +2 -2
- package/dist/cdn/{ZT5RGOS7.js → PNN554XV.js} +2 -2
- package/dist/cdn/{PPYUT3IU.js → PVCZG5NR.js} +2 -2
- package/dist/cdn/{LJR4MIXC.js → QDLWV3GL.js} +2 -2
- package/dist/cdn/{ENGHVAXC.js → QGDMGHZ3.js} +2 -2
- package/dist/cdn/{IDTLTUPF.js → QS6PLBTH.js} +2 -2
- package/dist/cdn/{RYZWSRNE.js → QTUCLDNK.js} +1 -1
- package/dist/cdn/{SCPPUTAP.js → QWVS3J6Z.js} +2 -2
- package/dist/cdn/{UIQBWX2Y.js → R42MVK6T.js} +2 -2
- package/dist/cdn/{LSCO7OIR.js → R63E5IDP.js} +2 -2
- package/dist/cdn/{V6BDP64E.js → R6KUTRWE.js} +2 -2
- package/dist/cdn/{UJZ676MO.js → RAN4WBBO.js} +2 -2
- package/dist/cdn/{BW6G7G3T.js → RKKLVIKS.js} +2 -2
- package/dist/cdn/{ZTFFVH7D.js → T356JENG.js} +2 -2
- package/dist/cdn/{24QR3GW2.js → T7VRSGAE.js} +2 -2
- package/dist/cdn/{UYKN2HMJ.js → TEM46PXT.js} +2 -2
- package/dist/cdn/{5EYHMRUQ.js → TV675TMD.js} +2 -2
- package/dist/cdn/{SENX6Y7C.js → U7HB3CPN.js} +2 -2
- package/dist/cdn/{QUZ4AO22.js → UJWLDNQL.js} +2 -2
- package/dist/cdn/{PGTB3MK7.js → V2GGQDQV.js} +2 -2
- package/dist/cdn/{OIXDTA7S.js → V4FN65Z4.js} +2 -2
- package/dist/cdn/{BQXTNFPW.js → VIU4ZSIY.js} +2 -2
- package/dist/cdn/{ZXRZF34O.js → VMDVUG52.js} +1 -1
- package/dist/cdn/VRX7IRTW.js +4 -0
- package/dist/cdn/{LWPWPSBT.js → WBS3PEXG.js} +2 -2
- package/dist/cdn/{7I5S2KDL.js → WIZ7RQYM.js} +2 -2
- package/dist/cdn/{7VNTS5KY.js → WXDH6ABX.js} +2 -2
- package/dist/cdn/{SIXWPY63.js → X5HMIK3S.js} +2 -2
- package/dist/cdn/{UIGI6CIH.js → X7Q6FQWN.js} +2 -2
- package/dist/cdn/{326G6F7E.js → XLHDAUF2.js} +2 -2
- package/dist/cdn/{NOHKYLD3.js → Y6UM5JRX.js} +2 -2
- package/dist/cdn/{OLJWVCJ4.js → YF5TCRIS.js} +2 -2
- package/dist/cdn/{WJRFH4BA.js → YL5UD5QK.js} +2 -2
- package/dist/cdn/{Z2KDC4K6.js → YM2YPJK6.js} +2 -2
- package/dist/cdn/{ZABMSQI7.js → YTQ5WKUI.js} +2 -2
- package/dist/cdn/{KDTLXJSX.js → YXIBBCVA.js} +2 -2
- package/dist/cdn/{QR2UOWNE.js → YXTLBEV3.js} +2 -2
- package/dist/cdn/{5A4SDVWM.js → Z4ZNKWSQ.js} +2 -2
- package/dist/cdn/{ZFEVOFXZ.js → Z5VECA2W.js} +2 -2
- package/dist/cdn/{INKJLNLE.js → ZB452APZ.js} +2 -2
- package/dist/cdn/{SCASOEMH.js → ZF2Y2DMS.js} +2 -2
- package/dist/cdn/{EDFKCNAU.js → ZV44DXHW.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/AnalysisViewModel.js +123 -128
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/createCloseEvent.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/AreaMeasurement3dViewModel.d.ts +2 -8
- package/dist/components/arcgis-area-measurement-3d/customElement.js +9 -9
- 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.d.ts +1 -0
- 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/DirectLineMeasurement3dViewModel.d.ts +2 -8
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +3 -3
- package/dist/components/arcgis-directional-pad/customElement.d.ts +3 -4
- 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-form/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.d.ts +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/LineOfSightViewModel.d.ts +2 -3
- package/dist/components/arcgis-line-of-sight/customElement.js +15 -15
- package/dist/components/arcgis-link-chart/customElement.d.ts +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.d.ts +1 -1
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.d.ts +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.d.ts +3 -4
- 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.d.ts +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.d.ts +1 -1
- package/dist/components/arcgis-scene/customElement.js +41 -28
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-search-result-renderer/customElement.d.ts +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/SliceViewModel.d.ts +3 -9
- package/dist/components/arcgis-slice/customElement.js +6 -3
- package/dist/components/arcgis-slider/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.d.ts +3 -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.d.ts +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.d.ts +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/docs/api.json +36 -24
- package/dist/docs/docs.json +28 -18
- package/dist/docs/vscode.html-custom-data.json +13 -13
- package/dist/docs/web-types.json +18 -18
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/support/AnalysisViewModel.d.ts +10 -13
- package/package.json +4 -4
- package/dist/cdn/4AXKPMRU.js +0 -4
- package/dist/cdn/7Y2UYB4A.js +0 -4
- package/dist/cdn/KDJUWWOF.js +0 -4
- package/dist/cdn/NDZKBR4F.js +0 -4
- package/dist/cdn/P3GKA22N.js +0 -4
- package/dist/cdn/X4DKUWKA.js +0 -4
|
@@ -1,72 +1,69 @@
|
|
|
1
1
|
import { forceInteractive as u } from "@arcgis/core/applications/Components/analysisUtils.js";
|
|
2
2
|
import d from "@arcgis/core/core/Accessor.js";
|
|
3
|
-
import { property as
|
|
3
|
+
import { property as a, subclass as v } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
4
4
|
import { ignoreAbortErrors as f } from "@arcgis/core/core/promiseUtils.js";
|
|
5
|
-
import { watch as
|
|
6
|
-
import { c as
|
|
5
|
+
import { when as V, watch as y, on as m, whenOnce as A } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
|
+
import { c as p, i as b, t as g, a as O } from "./async-utils.js";
|
|
7
7
|
import { a as l, r as w } from "./maybe.js";
|
|
8
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
10
|
-
v4.34.0-next.
|
|
11
|
-
var
|
|
12
|
-
for (var
|
|
13
|
-
(h =
|
|
14
|
-
return
|
|
10
|
+
v4.34.0-next.2 */
|
|
11
|
+
var U = Object.defineProperty, F = Object.getOwnPropertyDescriptor, i = (s, t, n, r) => {
|
|
12
|
+
for (var o = r > 1 ? void 0 : r ? F(t, n) : t, c = s.length - 1, h; c >= 0; c--)
|
|
13
|
+
(h = s[c]) && (o = (r ? h(t, n, o) : h(o)) || o);
|
|
14
|
+
return r && o && U(t, n, o), o;
|
|
15
15
|
};
|
|
16
|
-
let
|
|
17
|
-
constructor
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
// @ts-expect-error TODO - ignore
|
|
23
|
-
normalizeCtorArgs(t) {
|
|
24
|
-
const { analysis: e, ...s } = t;
|
|
25
|
-
return s;
|
|
16
|
+
let e = class extends d {
|
|
17
|
+
// No properties are set in the constructor. The component should support assignments at any time and component
|
|
18
|
+
// properties are only assigned after the view models is constructed.
|
|
19
|
+
constructor() {
|
|
20
|
+
super({}), this._ownsAnalysis = !1, this._operationState = "inactive", this._loggedUnsupportedErrorMessage = !1, this._changeFromReconnect = !1, this._startUserOperation = null;
|
|
26
21
|
}
|
|
27
22
|
initialize() {
|
|
23
|
+
this._set("analysis", this.constructAnalysis()), this._ownsAnalysis = !0;
|
|
24
|
+
const s = () => {
|
|
25
|
+
!this._changeFromReconnect && !this._viewHasAnalysis && (this._ownsAnalysis = !1);
|
|
26
|
+
const t = !this._changeFromReconnect;
|
|
27
|
+
this._changeFromReconnect = !1, t && this._scheduleViewReconnect();
|
|
28
|
+
};
|
|
28
29
|
this.addHandles([
|
|
29
|
-
|
|
30
|
-
() =>
|
|
31
|
-
(
|
|
32
|
-
|
|
30
|
+
V(
|
|
31
|
+
() => this.view != null && this.view.ready && !this.supported,
|
|
32
|
+
() => {
|
|
33
|
+
this._loggedUnsupportedErrorMessage || console.error(this.unsupportedErrorMessage);
|
|
33
34
|
},
|
|
34
35
|
{ sync: !0, initial: !0 }
|
|
35
36
|
),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
),
|
|
37
|
+
y(() => [this.analysis, this._viewHasAnalysis], s, { sync: !0 }),
|
|
38
|
+
m(
|
|
39
|
+
() => this.view,
|
|
40
|
+
"analysis-view-destroy",
|
|
41
41
|
(t) => {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
this._parentChangeFromReconnect = !1, e && this._scheduleViewReconnect();
|
|
45
|
-
},
|
|
46
|
-
{ sync: !0 }
|
|
42
|
+
t.analysis === this.analysis && s();
|
|
43
|
+
}
|
|
47
44
|
),
|
|
48
|
-
|
|
45
|
+
y(
|
|
49
46
|
() => ({
|
|
50
47
|
view: this.view,
|
|
51
48
|
ready: !!this.view?.ready,
|
|
52
49
|
supported: this.supported
|
|
53
50
|
}),
|
|
54
|
-
({ view: t },
|
|
55
|
-
const
|
|
56
|
-
t !==
|
|
51
|
+
({ view: t }, n) => {
|
|
52
|
+
const r = n?.view;
|
|
53
|
+
t !== r && (this._startUserOperation = l(this._startUserOperation), this._disconnectFromView(r)), this._scheduleViewReconnect();
|
|
57
54
|
},
|
|
58
55
|
{ sync: !0, initial: !0 }
|
|
59
56
|
)
|
|
60
57
|
]);
|
|
61
58
|
}
|
|
62
59
|
destroy() {
|
|
63
|
-
this._reconnectViewTask = l(this._reconnectViewTask), this._startUserOperation = l(this._startUserOperation), this._analysisView != null && (this._analysisView.visible = void 0), this._disconnectFromView(this.view), this._set("view", null), this.
|
|
60
|
+
this._reconnectViewTask = l(this._reconnectViewTask), this._startUserOperation = l(this._startUserOperation), this._analysisView != null && (this._analysisView.visible = void 0), this._disconnectFromView(this.view), this._set("view", null), this._ownsAnalysis && this.analysis?.destroy();
|
|
64
61
|
}
|
|
65
62
|
get supported() {
|
|
66
63
|
return this.view == null || this.view.type === this.supportedViewType;
|
|
67
64
|
}
|
|
68
|
-
set visible(
|
|
69
|
-
this._set("visible",
|
|
65
|
+
set visible(s) {
|
|
66
|
+
this._set("visible", s), this._analysisView != null && (this._analysisView.visible = s);
|
|
70
67
|
}
|
|
71
68
|
get active() {
|
|
72
69
|
return this._startUserOperation?.state === 2;
|
|
@@ -74,8 +71,8 @@ let i = class extends d {
|
|
|
74
71
|
get disabled() {
|
|
75
72
|
return this.view == null || !this.view.ready || !this.supported;
|
|
76
73
|
}
|
|
77
|
-
set analysis(
|
|
78
|
-
|
|
74
|
+
set analysis(s) {
|
|
75
|
+
s !== this._get("analysis") && (this._startUserOperation = l(this._startUserOperation), this._disconnectFromView(this.view), this._setExternalAnalysis(s), this._scheduleViewReconnect());
|
|
79
76
|
}
|
|
80
77
|
get analysisView() {
|
|
81
78
|
return this._analysisView;
|
|
@@ -86,8 +83,9 @@ let i = class extends d {
|
|
|
86
83
|
get connectingToView() {
|
|
87
84
|
return this._reconnectViewTask != null;
|
|
88
85
|
}
|
|
89
|
-
get
|
|
90
|
-
|
|
86
|
+
get _viewHasAnalysis() {
|
|
87
|
+
const { view: s } = this;
|
|
88
|
+
return s?.analyses.includes(this.analysis) === !0;
|
|
91
89
|
}
|
|
92
90
|
get operationState() {
|
|
93
91
|
return this._operationState;
|
|
@@ -101,26 +99,26 @@ let i = class extends d {
|
|
|
101
99
|
/**
|
|
102
100
|
* If analysis has unset inputs, start() will kick off the user operation to specify those inputs.
|
|
103
101
|
*/
|
|
104
|
-
async start(
|
|
102
|
+
async start(s) {
|
|
105
103
|
if (!this.visible) {
|
|
106
104
|
console.warn("Cannot start analysis when not visible");
|
|
107
105
|
return;
|
|
108
106
|
}
|
|
109
|
-
const
|
|
107
|
+
const t = {
|
|
110
108
|
task: null,
|
|
111
109
|
abort: null,
|
|
112
110
|
state: 0
|
|
113
111
|
/* PENDING */
|
|
114
|
-
},
|
|
115
|
-
if (
|
|
112
|
+
}, n = p(async (r) => {
|
|
113
|
+
if (t.state = 1, await A(() => this.ready, r), t.state = 2, this._analysisView == null || this.view == null)
|
|
116
114
|
return;
|
|
117
115
|
this._operationState = "active";
|
|
118
|
-
const
|
|
119
|
-
await f(
|
|
116
|
+
const o = s?.({ signal: r }) ?? this.place({ signal: r });
|
|
117
|
+
await f(o);
|
|
120
118
|
});
|
|
121
|
-
return
|
|
122
|
-
(this._startUserOperation ===
|
|
123
|
-
}),
|
|
119
|
+
return n.promise.finally(() => {
|
|
120
|
+
(this._startUserOperation === t || this._startUserOperation == null) && (this._operationState = "inactive");
|
|
121
|
+
}), t.task = n, t.abort = () => n.abort(), this._startUserOperation = t, await n.promise;
|
|
124
122
|
}
|
|
125
123
|
async startNewAnalysis() {
|
|
126
124
|
this.clear(), await this.start();
|
|
@@ -137,7 +135,7 @@ let i = class extends d {
|
|
|
137
135
|
* The function will be called each time the view becomes ready, the internal Layer of
|
|
138
136
|
* the view model has been added to the map and the analysis view of the analysis has been created.
|
|
139
137
|
*/
|
|
140
|
-
onConnectToAnalysisView(
|
|
138
|
+
onConnectToAnalysisView(s) {
|
|
141
139
|
}
|
|
142
140
|
/**
|
|
143
141
|
* A callback used by view models that manage an analysis.
|
|
@@ -149,97 +147,94 @@ let i = class extends d {
|
|
|
149
147
|
}
|
|
150
148
|
_scheduleViewReconnect() {
|
|
151
149
|
this._reconnectViewTask = l(this._reconnectViewTask);
|
|
152
|
-
const
|
|
150
|
+
const s = p(async (t) => {
|
|
153
151
|
try {
|
|
154
|
-
await this._reconnectView(
|
|
155
|
-
} catch (
|
|
156
|
-
if (
|
|
157
|
-
console.warn("Failed to use analysis in view model",
|
|
152
|
+
await this._reconnectView(t);
|
|
153
|
+
} catch (n) {
|
|
154
|
+
if (g(t), !O(n)) {
|
|
155
|
+
console.warn("Failed to use analysis in view model", n);
|
|
158
156
|
return;
|
|
159
157
|
}
|
|
160
|
-
throw
|
|
158
|
+
throw n;
|
|
161
159
|
} finally {
|
|
162
|
-
|
|
160
|
+
s === this._reconnectViewTask && (this._reconnectViewTask = void 0);
|
|
163
161
|
}
|
|
164
162
|
});
|
|
165
|
-
this._reconnectViewTask =
|
|
163
|
+
this._reconnectViewTask = s;
|
|
166
164
|
}
|
|
167
|
-
async _reconnectView(
|
|
168
|
-
const { view:
|
|
169
|
-
if (this._startUserOperation = _(this._startUserOperation), this._disconnectFromView(
|
|
165
|
+
async _reconnectView(s) {
|
|
166
|
+
const { view: t } = this, n = t != null && t.ready && this.supported, r = this.analysis;
|
|
167
|
+
if (this._startUserOperation = _(this._startUserOperation), this._disconnectFromView(t), !n || t == null || r == null)
|
|
170
168
|
return;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
this._parentChangeFromReconnect = !0, e.analyses.add(o);
|
|
177
|
-
}
|
|
178
|
-
const a = await e.whenAnalysisView(o);
|
|
179
|
-
if (this._analysisView = a, O(t)) {
|
|
169
|
+
this._ownsAnalysis && (this._changeFromReconnect = !0, t.analyses.add(r));
|
|
170
|
+
const o = await t.whenAnalysisView(r);
|
|
171
|
+
if (this._analysisView = o, b(s)) {
|
|
180
172
|
this._startUserOperation = _(this._startUserOperation);
|
|
181
173
|
return;
|
|
182
174
|
}
|
|
183
|
-
|
|
175
|
+
o.visible = this.visible, this._forceInteractiveHandle = u(o), this.addHandles(this._forceInteractiveHandle), this.onConnectToAnalysisView(o);
|
|
184
176
|
}
|
|
185
|
-
_disconnectFromView(
|
|
186
|
-
|
|
177
|
+
_disconnectFromView(s) {
|
|
178
|
+
s != null && this._ownsAnalysis && s.analyses.includes(this.analysis) && (this._changeFromReconnect = !0, this.analysis.clear(), s.analyses.remove(this.analysis)), this.onDisconnectFromAnalysisView(), this._forceInteractiveHandle = w(this._forceInteractiveHandle), this._analysisView = void 0;
|
|
187
179
|
}
|
|
188
|
-
_setExternalAnalysis(
|
|
189
|
-
this._analysisView != null && !this.
|
|
180
|
+
_setExternalAnalysis(s) {
|
|
181
|
+
this._analysisView != null && !this._ownsAnalysis && (this._analysisView.visible = void 0, this._forceInteractiveHandle = w(this._forceInteractiveHandle)), this._analysisView = void 0, this._ownsAnalysis = !1, this._set("analysis", s), this._changeFromReconnect = !1;
|
|
190
182
|
}
|
|
191
183
|
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
],
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
],
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
],
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
],
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
],
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
],
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
],
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
],
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
],
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
],
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
],
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
],
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
],
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
],
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
],
|
|
237
|
-
i
|
|
184
|
+
i([
|
|
185
|
+
a()
|
|
186
|
+
], e.prototype, "supported", 1);
|
|
187
|
+
i([
|
|
188
|
+
a()
|
|
189
|
+
], e.prototype, "view", 2);
|
|
190
|
+
i([
|
|
191
|
+
a({ type: Boolean, value: !0 })
|
|
192
|
+
], e.prototype, "visible", 1);
|
|
193
|
+
i([
|
|
194
|
+
a()
|
|
195
|
+
], e.prototype, "active", 1);
|
|
196
|
+
i([
|
|
197
|
+
a()
|
|
198
|
+
], e.prototype, "disabled", 1);
|
|
199
|
+
i([
|
|
200
|
+
a()
|
|
201
|
+
], e.prototype, "analysis", 1);
|
|
202
|
+
i([
|
|
203
|
+
a()
|
|
204
|
+
], e.prototype, "_analysisView", 2);
|
|
205
|
+
i([
|
|
206
|
+
a()
|
|
207
|
+
], e.prototype, "analysisView", 1);
|
|
208
|
+
i([
|
|
209
|
+
a()
|
|
210
|
+
], e.prototype, "ready", 1);
|
|
211
|
+
i([
|
|
212
|
+
a()
|
|
213
|
+
], e.prototype, "connectingToView", 1);
|
|
214
|
+
i([
|
|
215
|
+
a()
|
|
216
|
+
], e.prototype, "_ownsAnalysis", 2);
|
|
217
|
+
i([
|
|
218
|
+
a()
|
|
219
|
+
], e.prototype, "_viewHasAnalysis", 1);
|
|
220
|
+
i([
|
|
221
|
+
a()
|
|
222
|
+
], e.prototype, "_reconnectViewTask", 2);
|
|
223
|
+
i([
|
|
224
|
+
a()
|
|
225
|
+
], e.prototype, "_forceInteractiveHandle", 2);
|
|
226
|
+
i([
|
|
227
|
+
a()
|
|
228
|
+
], e.prototype, "_operationState", 2);
|
|
229
|
+
i([
|
|
230
|
+
a()
|
|
231
|
+
], e.prototype, "operationState", 1);
|
|
232
|
+
e = i([
|
|
238
233
|
v("esri.components.support.AnalysisViewModel")
|
|
239
|
-
],
|
|
240
|
-
function _(
|
|
241
|
-
return
|
|
234
|
+
], e);
|
|
235
|
+
function _(s) {
|
|
236
|
+
return s != null && s.state >= 2 ? (s.abort(), null) : s;
|
|
242
237
|
}
|
|
243
238
|
export {
|
|
244
|
-
|
|
239
|
+
e as A
|
|
245
240
|
};
|
|
@@ -4,7 +4,7 @@ import p from "@arcgis/core/core/Error.js";
|
|
|
4
4
|
import { a as f, r as _ } from "./maybe.js";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
7
|
-
v4.34.0-next.
|
|
7
|
+
v4.34.0-next.2 */
|
|
8
8
|
var v = Object.defineProperty, m = Object.getOwnPropertyDescriptor, i = (r, t, o, e) => {
|
|
9
9
|
for (var s = e > 1 ? void 0 : e ? m(t, o) : t, a = r.length - 1, u; a >= 0; a--)
|
|
10
10
|
(u = r[a]) && (s = (e ? u(t, o, s) : u(s)) || s);
|
|
@@ -1,6 +1,6 @@
|
|
|
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.2 */
|
|
4
4
|
const e = "esri-basemap-gallery", t = {
|
|
5
5
|
base: e,
|
|
6
6
|
sourceLoading: `${e}--source-loading`,
|
|
@@ -1,6 +1,6 @@
|
|
|
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.2 */
|
|
4
4
|
function N(e) {
|
|
5
5
|
e.el.childElem && (e.el.childElem.ownedBy = e.el);
|
|
6
6
|
const i = v(e);
|
|
@@ -2,7 +2,7 @@ import { makeGenericController as l } from "@arcgis/lumina/controllers";
|
|
|
2
2
|
import { createEvent as s } from "@arcgis/lumina";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
5
|
-
v4.34.0-next.
|
|
5
|
+
v4.34.0-next.2 */
|
|
6
6
|
const a = l((e, r) => (r.onLoaded(() => {
|
|
7
7
|
const t = e.el;
|
|
8
8
|
e.listenOn(t.childElem, "calciteFlowItemClose", () => {
|
package/dist/chunks/globalCss.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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.2 */
|
|
4
4
|
const e = {
|
|
5
5
|
disabled: "esri-disabled",
|
|
6
6
|
empty: "esri-widget__content--empty",
|
package/dist/chunks/heading.js
CHANGED
|
@@ -4,7 +4,7 @@ import { unsafeStatic as l, html as m } from "lit/static-html.js";
|
|
|
4
4
|
import { g as c } from "./globalCss.js";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
7
|
-
v4.34.0-next.
|
|
7
|
+
v4.34.0-next.2 */
|
|
8
8
|
function d({ level: a, class: t, children: e }) {
|
|
9
9
|
const n = g(a), s = `h${n}`, r = l(s);
|
|
10
10
|
return m`<${r} .ariaLevel=${String(n)} class=${o(i(c.heading, t))} role=heading>${e}</${r}>`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { css as i } from "@lit/reactive-element/css-tag.js";
|
|
2
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
v4.34.0-next.
|
|
4
|
+
v4.34.0-next.2 */
|
|
5
5
|
const t = i`@layer{arcgis-layer-list{display:block;.arcgis-layer-list{display:flex}.arcgis-layer-list__filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-spacing-lg)}.arcgis-layer-list__item{--calcite-list-item-icon-center: 8.5px}.arcgis-layer-list__item-table-icon,.arcgis-layer-list__item-catalog-icon{margin-inline-end:0}.arcgis-layer-list__item-action-image{flex:0 0 var(--calcite-spacing-xl);background-position:50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);text-align:center;font-size:var(--calcite-font-size)}.arcgis-layer-list__action-menu .arcgis-layer-list__action-group{display:none}.arcgis-layer-list__action-menu[open] .arcgis-layer-list__action-group{display:flex}.arcgis-layer-list__visible-icon{visibility:hidden}.arcgis-layer-list__item--active:hover,.arcgis-layer-list__item--active:focus,.arcgis-layer-list__item--active:focus-within{>.arcgis-layer-list__visible-toggle>.arcgis-layer-list__visible-icon{visibility:visible}}.arcgis-layer-list__status-indicator{visibility:hidden;margin-inline:0;color:transparent}.arcgis-layer-list__publishing{visibility:visible;color:var(--calcite-color-foreground-2);transform-origin:var(--calcite-list-item-icon-center) var(--calcite-list-item-icon-center);animation:arcgis-layer-list__publishing-anim 2s normal infinite}.arcgis-layer-list__updating{visibility:visible;animation:arcgis-layer-list__updating-anim 2s normal infinite}.arcgis-layer-list__connection-status{visibility:visible;margin-inline:calc(var(--calcite-spacing-lg) * .5);width:calc(var(--calcite-spacing-xxxl) * .5);height:calc(var(--calcite-spacing-xxxl) * .5);color:var(--calcite-color-status-danger)}.arcgis-layer-list__connection-status--connected{color:var(--calcite-color-status-success)}.arcgis-layer-list__item-content-bottom{margin:var(--calcite-spacing-md) var(--calcite-spacing-lg)}.arcgis-layer-list__item-content-bottom .arcgis-legend__service{padding:0 0 var(--calcite-spacing-md) 0}.arcgis-layer-list__item-message{margin:var(--calcite-spacing-md) var(--calcite-spacing-lg)}@keyframes arcgis-layer-list__updating-anim{0%,40%{color:transparent}50%,80%{color:var(--calcite-color-brand)}to{color:transparent}}@keyframes arcgis-layer-list__publishing-anim{0%,20%{transform:rotate(45deg)}80%,to{transform:rotate(135deg)}}}}`;
|
|
6
6
|
export {
|
|
7
7
|
t as s
|
|
@@ -1,6 +1,6 @@
|
|
|
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.2 */
|
|
4
4
|
const r = {
|
|
5
5
|
dragHorizontal: "esri-icon-drag-horizontal",
|
|
6
6
|
dragVertical: "esri-icon-drag-vertical"
|
package/dist/chunks/maybe.js
CHANGED
package/dist/chunks/runtime.js
CHANGED
|
@@ -2,7 +2,7 @@ import { makeRuntime as e } from "@arcgis/lumina";
|
|
|
2
2
|
import { trackAccess as s, createObservable as a, createTrackingTarget as r, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
5
|
-
v4.34.0-next.
|
|
5
|
+
v4.34.0-next.2 */
|
|
6
6
|
const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/next/map-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: d, setAssetPath: i } = t;
|
|
7
7
|
t.t = s;
|
|
8
8
|
t.o = a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { toFunction as i, Controller as n } from "@arcgis/lumina/controllers";
|
|
2
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
v4.34.0-next.
|
|
4
|
+
v4.34.0-next.2 */
|
|
5
5
|
class o {
|
|
6
6
|
constructor() {
|
|
7
7
|
this._groups = /* @__PURE__ */ new Map();
|
package/dist/chunks/useT9n.js
CHANGED
|
@@ -2,7 +2,7 @@ import { makeT9nController as o } from "@arcgis/lumina/controllers";
|
|
|
2
2
|
import { g as t } from "./runtime.js";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
5
|
-
v4.34.0-next.
|
|
5
|
+
v4.34.0-next.2 */
|
|
6
6
|
const s = o(t);
|
|
7
7
|
export {
|
|
8
8
|
s as u
|
package/dist/chunks/useView.js
CHANGED
|
@@ -4,7 +4,7 @@ import { signal as a } from "@arcgis/core/applications/Components/reactiveUtils.
|
|
|
4
4
|
import { a as i } from "./component-utils.js";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
7
|
-
v4.34.0-next.
|
|
7
|
+
v4.34.0-next.2 */
|
|
8
8
|
const v = (s) => m(s);
|
|
9
9
|
class d extends c {
|
|
10
10
|
#e = a(void 0);
|
|
@@ -5,7 +5,7 @@ import { V as m } from "./useView.js";
|
|
|
5
5
|
import { watch as p } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
6
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
7
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
8
|
-
v4.34.0-next.
|
|
8
|
+
v4.34.0-next.2 */
|
|
9
9
|
const v = (t, o) => (e) => a(e, t);
|
|
10
10
|
class r extends i {
|
|
11
11
|
#o = void 0;
|
package/dist/chunks/useWidget.js
CHANGED
|
@@ -5,7 +5,7 @@ import { V as g } from "./useView.js";
|
|
|
5
5
|
import { watch as m } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
6
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
7
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
8
|
-
v4.34.0-next.
|
|
8
|
+
v4.34.0-next.2 */
|
|
9
9
|
const I = (d, e) => (t) => P(t, d);
|
|
10
10
|
class f extends b {
|
|
11
11
|
#o = /* @__PURE__ */ new Map();
|
package/dist/chunks/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { formatNumber as r } from "@arcgis/core/intl.js";
|
|
2
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
v4.34.0-next.
|
|
4
|
+
v4.34.0-next.2 */
|
|
5
5
|
const s = /* @__PURE__ */ new Map([
|
|
6
6
|
["a3-landscape", "a3-landscape"],
|
|
7
7
|
["a3-portrait", "a3-portrait"],
|
|
@@ -6,7 +6,7 @@ import { m as r } from "../../chunks/useWidget.js";
|
|
|
6
6
|
import { css as n } from "@lit/reactive-element/css-tag.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
9
|
-
v4.34.0-next.
|
|
9
|
+
v4.34.0-next.2 */
|
|
10
10
|
const h = n`@layer{arcgis-area-measurement-2d{display:block}}`, l = r(
|
|
11
11
|
// Workaround for https://devtopia.esri.com/WebGIS/arcgis-js-api/issues/61559
|
|
12
12
|
s
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
2
|
import { default as AreaMeasurementAnalysis } from '@arcgis/core/analysis/AreaMeasurementAnalysis.js';
|
|
3
3
|
import { default as SceneView } from '@arcgis/core/views/SceneView';
|
|
4
|
-
import {
|
|
4
|
+
import { AnalysisViewModel } from '../../support/AnalysisViewModel';
|
|
5
5
|
import { MeasurementModeString, MeasurementState, MeasurementValue } from '../../support/measurementUtils';
|
|
6
|
-
interface ConstructProperties extends AnalysisViewModelConstructProperties<SceneView, AreaMeasurementAnalysis> {
|
|
7
|
-
unitOptions: __esri.SystemOrAreaUnit[];
|
|
8
|
-
unit: __esri.SystemOrAreaUnit;
|
|
9
|
-
}
|
|
10
6
|
export interface Measurement {
|
|
11
7
|
readonly mode: MeasurementModeString;
|
|
12
8
|
readonly area: MeasurementValue<__esri.Area>;
|
|
13
9
|
readonly perimeter: MeasurementValue<__esri.Length>;
|
|
14
10
|
}
|
|
15
|
-
export default class AreaMeasurement3dViewModel extends AnalysisViewModel<SceneView, AreaMeasurementAnalysis>
|
|
16
|
-
constructor(properties?: Partial<ConstructProperties>);
|
|
11
|
+
export default class AreaMeasurement3dViewModel extends AnalysisViewModel<SceneView, AreaMeasurementAnalysis> {
|
|
17
12
|
initialize(): void;
|
|
18
13
|
get state(): Exclude<MeasurementState, "unsupported">;
|
|
19
14
|
get displayState(): MeasurementState;
|
|
@@ -42,4 +37,3 @@ export default class AreaMeasurement3dViewModel extends AnalysisViewModel<SceneV
|
|
|
42
37
|
protected readonly unsupportedErrorMessage = "The Area Measurement 3D component is only supported in 3D views.";
|
|
43
38
|
protected constructAnalysis(): AreaMeasurementAnalysis;
|
|
44
39
|
}
|
|
45
|
-
export {};
|
|
@@ -4,18 +4,18 @@ import { LitElement as g, createEvent as f, noShadowRoot as w, nothing as v, saf
|
|
|
4
4
|
import { usePropertyChange as M } from "@arcgis/lumina/controllers";
|
|
5
5
|
import { u as O } from "../../chunks/useT9n.js";
|
|
6
6
|
import { m as $ } from "../../chunks/useViewModel.js";
|
|
7
|
-
import { g as
|
|
7
|
+
import { g as m } from "../../chunks/globalCss.js";
|
|
8
8
|
import { css as A } from "@lit/reactive-element/css-tag.js";
|
|
9
9
|
import U from "@arcgis/core/analysis/AreaMeasurementAnalysis.js";
|
|
10
10
|
import { getDefaultUnitForView as V } from "@arcgis/core/applications/Components/getDefaultUnits.js";
|
|
11
11
|
import { property as o, subclass as _ } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
12
12
|
import { watch as D } from "@arcgis/core/core/reactiveUtils.js";
|
|
13
13
|
import { A as C } from "../../chunks/AnalysisViewModel.js";
|
|
14
|
-
import { g as
|
|
14
|
+
import { g as p, a as d } from "../../chunks/measurementUtils.js";
|
|
15
15
|
import { hasValidAreaResult as L } from "@arcgis/core/applications/Components/analysisUtils.js";
|
|
16
16
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
17
17
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
18
|
-
v4.34.0-next.
|
|
18
|
+
v4.34.0-next.2 */
|
|
19
19
|
const P = A`@layer{arcgis-area-measurement-3d{display:block}.arcgis-area-measurement-3d{position:relative;padding:var(--esri-widget-padding);overflow-y:auto}}`;
|
|
20
20
|
var S = Object.defineProperty, E = Object.getOwnPropertyDescriptor, n = (e, t, s, a) => {
|
|
21
21
|
for (var r = a > 1 ? void 0 : a ? E(t, s) : t, l = e.length - 1, u; l >= 0; l--)
|
|
@@ -23,8 +23,8 @@ var S = Object.defineProperty, E = Object.getOwnPropertyDescriptor, n = (e, t, s
|
|
|
23
23
|
return a && r && S(t, s, r), r;
|
|
24
24
|
};
|
|
25
25
|
let i = class extends C {
|
|
26
|
-
constructor(
|
|
27
|
-
super(
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments), this.supportedViewType = "3d", this.unsupportedErrorMessage = "The Area Measurement 3D component is only supported in 3D views.";
|
|
28
28
|
}
|
|
29
29
|
initialize() {
|
|
30
30
|
this.addHandles(
|
|
@@ -61,8 +61,8 @@ let i = class extends C {
|
|
|
61
61
|
const { analysisView: e } = this, t = e?.result, s = t?.mode ?? "euclidean", a = e != null && L(e);
|
|
62
62
|
return {
|
|
63
63
|
mode: s,
|
|
64
|
-
area:
|
|
65
|
-
perimeter:
|
|
64
|
+
area: p(t?.area, a),
|
|
65
|
+
perimeter: p(t?.perimeter, a)
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
get unitOptions() {
|
|
@@ -152,8 +152,8 @@ class j extends g {
|
|
|
152
152
|
const { messages: t, unit: s, unitOptions: a, viewModel: r } = this, { measurement: l, state: u } = r;
|
|
153
153
|
return y`<div aria-label=${t.componentLabel ?? v} class=${b({
|
|
154
154
|
[x.base]: !0,
|
|
155
|
-
[
|
|
156
|
-
[
|
|
155
|
+
[m.widget]: !0,
|
|
156
|
+
[m.panel]: !0
|
|
157
157
|
})} role=presentation><arcgis-measurement-content .state=${r.displayState} .hintLabel=${t.hint} .unsupportedLabel=${t.unsupported} .items=${[
|
|
158
158
|
{
|
|
159
159
|
title: t.area,
|
|
@@ -6,7 +6,7 @@ import { m as o } from "../../chunks/useWidget.js";
|
|
|
6
6
|
import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
9
|
-
v4.34.0-next.
|
|
9
|
+
v4.34.0-next.2 */
|
|
10
10
|
const n = h`@layer{arcgis-attachments{display:block}}`, r = o(i);
|
|
11
11
|
class l extends s {
|
|
12
12
|
constructor() {
|
|
@@ -13,7 +13,7 @@ import { c as a } from "../../chunks/basemap-gallery-resources.js";
|
|
|
13
13
|
import { css as L } from "@lit/reactive-element/css-tag.js";
|
|
14
14
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
15
15
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
16
|
-
v4.34.0-next.
|
|
16
|
+
v4.34.0-next.2 */
|
|
17
17
|
const D = L`@layer{arcgis-basemap-gallery{display:block}}`, A = B(f), m = {
|
|
18
18
|
// Below this width, items are displayed as a single column and the thumbnail is placed above the title.
|
|
19
19
|
small: 200,
|