@arcgis/map-components 5.2.0-next.86 → 5.2.0-next.88
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/2GQ6KVNI.js +2 -0
- package/dist/cdn/3CFRD2EN.js +2 -0
- package/dist/cdn/{YXA3DG4H.js → 3W4IH5LQ.js} +1 -1
- package/dist/cdn/5L5UYV3H.js +2 -0
- package/dist/cdn/{7IWMEBK6.js → 6BNYO33V.js} +1 -1
- package/dist/cdn/6NGRUK5C.js +2 -0
- package/dist/cdn/BPHJ4VBC.js +2 -0
- package/dist/cdn/CFB4ZR5F.js +2 -0
- package/dist/cdn/D6MRDGUC.js +2 -0
- package/dist/cdn/EFUTKX2O.js +2 -0
- package/dist/cdn/{PNSES5YC.js → EGUVICJF.js} +1 -1
- package/dist/cdn/FXK4G4VK.js +2 -0
- package/dist/cdn/GNVPXNTX.js +2 -0
- package/dist/cdn/HTEIMRY6.js +2 -0
- package/dist/cdn/I2D75Q7M.js +2 -0
- package/dist/cdn/IMG5GOJB.js +2 -0
- package/dist/cdn/JXBEE5GW.js +2 -0
- package/dist/cdn/JZC42PXS.js +2 -0
- package/dist/cdn/K3N6NHJW.js +2 -0
- package/dist/cdn/KN4PG54T.js +2 -0
- package/dist/cdn/{56NINR5L.js → KNMMVZVV.js} +1 -1
- package/dist/cdn/M66G67OC.js +2 -0
- package/dist/cdn/MQX2F54G.js +2 -0
- package/dist/cdn/NB5DQKQY.js +2 -0
- package/dist/cdn/NFWFRHUT.js +2 -0
- package/dist/cdn/PCEAIDCB.js +2 -0
- package/dist/cdn/PMU2DO3P.js +2 -0
- package/dist/cdn/{LTGPFC6N.js → PWEF6IKF.js} +1 -1
- package/dist/cdn/{HWLBIEGO.js → RS5BEGC5.js} +1 -1
- package/dist/cdn/{K4V76SMR.js → TAIZWQYU.js} +1 -1
- package/dist/cdn/TPG3TU6B.js +2 -0
- package/dist/cdn/TRFWUKXA.js +2 -0
- package/dist/cdn/TSZ26CSX.js +2 -0
- package/dist/cdn/V4W4ZP6M.js +2 -0
- package/dist/cdn/XM2OBGXW.js +2 -0
- package/dist/cdn/assets/presentation/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-picker/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/constants2.js +6 -0
- package/dist/chunks/useArcgisViewReadyError.js +42 -27
- package/dist/components/arcgis-aggregated-features/customElement.js +0 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +10 -0
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +10 -0
- package/dist/components/arcgis-attachments/customElement.d.ts +10 -0
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +10 -0
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +23 -0
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +604 -51
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +2 -2
- package/dist/components/arcgis-basemap-layer-list-next/types.d.ts +39 -0
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +10 -0
- package/dist/components/arcgis-bookmarks/customElement.d.ts +20 -0
- package/dist/components/arcgis-bookmarks/customElement.js +0 -1
- package/dist/components/arcgis-building-explorer/customElement.d.ts +10 -0
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +23 -0
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +433 -59
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +2 -2
- package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +41 -6
- package/dist/components/arcgis-compass/customElement.d.ts +10 -0
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +10 -0
- package/dist/components/arcgis-coordinate-conversion-next/customElement.d.ts +10 -0
- package/dist/components/arcgis-daylight/customElement.d.ts +10 -0
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +10 -0
- package/dist/components/arcgis-directional-pad/customElement.d.ts +10 -0
- package/dist/components/arcgis-directions/customElement.d.ts +10 -0
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +10 -0
- package/dist/components/arcgis-editor/customElement.d.ts +10 -0
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +10 -0
- package/dist/components/arcgis-expand/customElement.d.ts +10 -0
- package/dist/components/arcgis-feature/customElement.d.ts +10 -0
- package/dist/components/arcgis-feature-form/customElement.d.ts +10 -0
- package/dist/components/arcgis-feature-next/customElement.d.ts +32 -1
- package/dist/components/arcgis-feature-next/customElement.js +4 -4
- package/dist/components/arcgis-feature-table/customElement.d.ts +10 -0
- package/dist/components/arcgis-feature-templates/customElement.d.ts +10 -0
- package/dist/components/arcgis-feature-templates-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-features/customElement.d.ts +20 -0
- package/dist/components/arcgis-features/customElement.js +3 -3
- package/dist/components/arcgis-features-next/customElement.d.ts +32 -1
- package/dist/components/arcgis-features-next/customElement.js +98 -86
- package/dist/components/arcgis-features-next/index.js +0 -1
- package/dist/components/arcgis-floor-filter/customElement.d.ts +10 -0
- package/dist/components/arcgis-grid-controls/customElement.d.ts +10 -0
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +10 -0
- package/dist/components/arcgis-home/customElement.d.ts +10 -0
- package/dist/components/arcgis-layer-list/customElement.d.ts +20 -0
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +285 -123
- package/dist/components/arcgis-layer-list-next/customElement.js +2 -3
- package/dist/components/arcgis-layer-list-next/types.d.ts +44 -6
- package/dist/components/arcgis-legend/customElement.d.ts +10 -0
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +10 -0
- package/dist/components/arcgis-link-chart/customElement.d.ts +19 -5
- package/dist/components/arcgis-link-chart/customElement.js +24 -18
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +10 -0
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +10 -0
- package/dist/components/arcgis-locate/customElement.d.ts +10 -0
- package/dist/components/arcgis-map/customElement.d.ts +19 -5
- package/dist/components/arcgis-map/customElement.js +19 -13
- package/dist/components/arcgis-measurement/customElement.d.ts +10 -0
- package/dist/components/arcgis-multi-feature-form/customElement.d.ts +25 -1
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +10 -0
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +10 -0
- package/dist/components/arcgis-oriented-imagery-viewer-non-panoramic-viewer/customElement.js +0 -2
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +15 -16
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.d.ts +10 -0
- package/dist/components/arcgis-paste/customElement.d.ts +10 -0
- package/dist/components/arcgis-paste/customElement.js +0 -1
- package/dist/components/arcgis-popup/customElement.d.ts +27 -7
- package/dist/components/arcgis-popup/customElement.js +11 -14
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +6 -0
- package/dist/components/arcgis-presentation/customElement.d.ts +18 -6
- package/dist/components/arcgis-presentation/customElement.js +197 -157
- package/dist/components/arcgis-presentation/index.js +2 -0
- package/dist/components/arcgis-presentation-captions/customElement.js +4 -4
- package/dist/components/arcgis-presentation-slide-list/customElement.js +49 -0
- package/dist/components/arcgis-presentation-slide-list/index.js +3 -0
- package/dist/components/arcgis-print/customElement.d.ts +10 -0
- package/dist/components/arcgis-scale-bar/customElement.d.ts +10 -0
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +10 -0
- package/dist/components/arcgis-scene/customElement.d.ts +19 -5
- package/dist/components/arcgis-scene/customElement.js +21 -15
- package/dist/components/arcgis-search/customElement.d.ts +10 -0
- package/dist/components/arcgis-search-result-renderer/customElement.d.ts +10 -0
- package/dist/components/arcgis-selection-toolbar/customElement.d.ts +10 -0
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +10 -0
- package/dist/components/arcgis-sketch/customElement.d.ts +10 -0
- package/dist/components/arcgis-slice/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-scale-range/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-snapping-controls/customElement.d.ts +10 -0
- package/dist/components/arcgis-swipe/customElement.d.ts +10 -0
- package/dist/components/arcgis-table-list/customElement.d.ts +102 -15
- package/dist/components/arcgis-table-list-next/customElement.d.ts +310 -44
- package/dist/components/arcgis-table-list-next/customElement.js +2 -3
- package/dist/components/arcgis-table-list-next/types.d.ts +37 -0
- package/dist/components/arcgis-template-image/customElement.js +0 -1
- package/dist/components/arcgis-time-bar/customElement.d.ts +10 -0
- package/dist/components/arcgis-time-bar/customElement.js +1 -1
- package/dist/components/arcgis-time-bar-slider/customElement.d.ts +10 -0
- package/dist/components/arcgis-time-slider/customElement.d.ts +10 -0
- package/dist/components/arcgis-track/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-associations/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-picker/customElement.d.ts +56 -0
- package/dist/components/arcgis-utility-network-picker/customElement.js +91 -0
- package/dist/components/arcgis-utility-network-picker/index.d.ts +1 -0
- package/dist/components/arcgis-utility-network-picker/index.js +7 -0
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +0 -1
- package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.js +0 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-trace-inputs-next/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-trace-inputs-next/customElement.js +123 -140
- package/dist/components/arcgis-utility-network-trace-inputs-next/index.js +2 -1
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-trace-location-next/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +0 -2
- package/dist/components/arcgis-utility-network-trace-results-next/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-trace-results-next/customElement.js +0 -2
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +0 -2
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +10 -0
- package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-version-management/customElement.d.ts +10 -0
- package/dist/components/arcgis-version-management-service-item/customElement.js +3 -4
- package/dist/components/arcgis-video/customElement.d.ts +15 -3
- package/dist/components/arcgis-video-player/customElement.d.ts +10 -0
- package/dist/components/arcgis-video-player-actions-group/customElement.js +6 -6
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +22 -1
- package/dist/components/arcgis-weather/customElement.d.ts +10 -0
- package/dist/components/arcgis-zoom/customElement.d.ts +10 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/loader.js +5 -3
- package/dist/types/lumina.d.ts +10 -3
- package/dist/types/preact.d.ts +11 -3
- package/dist/types/react.d.ts +12 -3
- package/dist/types/stencil.d.ts +10 -3
- package/package.json +7 -7
- package/dist/cdn/3UUQJCZL.js +0 -2
- package/dist/cdn/42TPQKQZ.js +0 -2
- package/dist/cdn/4T6ECCFH.js +0 -2
- package/dist/cdn/4UBDCXSK.js +0 -2
- package/dist/cdn/6MEC4BFN.js +0 -2
- package/dist/cdn/AJ7XRBWN.js +0 -2
- package/dist/cdn/ARVN7QLQ.js +0 -2
- package/dist/cdn/BVDQQOCR.js +0 -2
- package/dist/cdn/DKBC3UMW.js +0 -2
- package/dist/cdn/DSIL7TYR.js +0 -2
- package/dist/cdn/FZHWZNBO.js +0 -2
- package/dist/cdn/G2PAKIMS.js +0 -2
- package/dist/cdn/JOOHHKWH.js +0 -2
- package/dist/cdn/KS5TQB2A.js +0 -2
- package/dist/cdn/NAQYIBE5.js +0 -2
- package/dist/cdn/NBYN44GP.js +0 -2
- package/dist/cdn/NGB5WVIG.js +0 -2
- package/dist/cdn/PBNP6WFU.js +0 -2
- package/dist/cdn/RDARV7HC.js +0 -2
- package/dist/cdn/RXAUCQQC.js +0 -2
- package/dist/cdn/S22ZRUS7.js +0 -2
- package/dist/cdn/SVOAX4K6.js +0 -2
- package/dist/cdn/TI4BX367.js +0 -2
- package/dist/cdn/TUTTPXC5.js +0 -2
- package/dist/cdn/W5WXJT7N.js +0 -2
- package/dist/cdn/YTC3XBSZ.js +0 -2
|
@@ -42,6 +42,16 @@ export abstract class ArcgisTrack extends LitElement {
|
|
|
42
42
|
* prevent memory leaks.
|
|
43
43
|
*
|
|
44
44
|
* @default false
|
|
45
|
+
* @example
|
|
46
|
+
*
|
|
47
|
+
* ```html
|
|
48
|
+
* <arcgis-track auto-destroy-disabled></arcgis-track>
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* ```js
|
|
52
|
+
* trackElement.autoDestroyDisabled = true;
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
45
55
|
*/
|
|
46
56
|
accessor autoDestroyDisabled: boolean;
|
|
47
57
|
/**
|
|
@@ -41,6 +41,16 @@ export abstract class ArcgisUtilityNetworkAggregatedGeometry extends LitElement
|
|
|
41
41
|
* prevent memory leaks.
|
|
42
42
|
*
|
|
43
43
|
* @default false
|
|
44
|
+
* @example
|
|
45
|
+
*
|
|
46
|
+
* ```html
|
|
47
|
+
* <arcgis-utility-network-aggregated-geometry auto-destroy-disabled></arcgis-utility-network-aggregated-geometry>
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* ```js
|
|
51
|
+
* utilityNetworkAggregatedGeometryElement.autoDestroyDisabled = true;
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
44
54
|
*/
|
|
45
55
|
accessor autoDestroyDisabled: boolean;
|
|
46
56
|
/** @required */
|
package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/customElement.d.ts
CHANGED
|
@@ -39,6 +39,16 @@ export abstract class ArcgisUtilityNetworkAggregatedGeometryResultItem extends L
|
|
|
39
39
|
* prevent memory leaks.
|
|
40
40
|
*
|
|
41
41
|
* @default false
|
|
42
|
+
* @example
|
|
43
|
+
*
|
|
44
|
+
* ```html
|
|
45
|
+
* <arcgis-utility-network-aggregated-geometry-result-item auto-destroy-disabled></arcgis-utility-network-aggregated-geometry-result-item>
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* ```js
|
|
49
|
+
* utilityNetworkAggregatedGeometryResultItemElement.autoDestroyDisabled = true;
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
42
52
|
*/
|
|
43
53
|
accessor autoDestroyDisabled: boolean;
|
|
44
54
|
/**
|
|
@@ -22,6 +22,16 @@ export abstract class ArcgisUtilityNetworkAssociations extends LitElement {
|
|
|
22
22
|
* prevent memory leaks.
|
|
23
23
|
*
|
|
24
24
|
* @default false
|
|
25
|
+
* @example
|
|
26
|
+
*
|
|
27
|
+
* ```html
|
|
28
|
+
* <arcgis-utility-network-associations auto-destroy-disabled></arcgis-utility-network-associations>
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ```js
|
|
32
|
+
* utilityNetworkAssociationsElement.autoDestroyDisabled = true;
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
25
35
|
*/
|
|
26
36
|
accessor autoDestroyDisabled: boolean;
|
|
27
37
|
/**
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import type UtilityNetwork from "@arcgis/core/networks/UtilityNetwork.js";
|
|
3
|
+
import type MapView from "@arcgis/core/views/MapView.js";
|
|
4
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
5
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* This is a sub-component used by the **ArcgisUtilityNetworkTraceAnalysis** component.
|
|
9
|
+
* It allows users to select utility networks from the map.
|
|
10
|
+
*
|
|
11
|
+
* @since 5.2
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export abstract class ArcgisUtilityNetworkPicker extends LitElement {
|
|
15
|
+
/** @internal */
|
|
16
|
+
protected _messages: {
|
|
17
|
+
componentLabel: string;
|
|
18
|
+
errors: {
|
|
19
|
+
mapLoadFailed: string;
|
|
20
|
+
noUtilityNetwork: string;
|
|
21
|
+
noView: string;
|
|
22
|
+
utilityNetworkLoadFailed: string;
|
|
23
|
+
};
|
|
24
|
+
labels: { utilityNetwork: string; };
|
|
25
|
+
} & T9nMeta<{
|
|
26
|
+
componentLabel: string;
|
|
27
|
+
errors: {
|
|
28
|
+
mapLoadFailed: string;
|
|
29
|
+
noUtilityNetwork: string;
|
|
30
|
+
noView: string;
|
|
31
|
+
utilityNetworkLoadFailed: string;
|
|
32
|
+
};
|
|
33
|
+
labels: { utilityNetwork: string; };
|
|
34
|
+
}>;
|
|
35
|
+
accessor error: string | undefined;
|
|
36
|
+
accessor heading: string | undefined;
|
|
37
|
+
/** @default false */
|
|
38
|
+
accessor hideErrors: boolean;
|
|
39
|
+
/** @default false */
|
|
40
|
+
accessor hideLoader: boolean;
|
|
41
|
+
accessor selectedUtilityNetwork: UtilityNetwork | undefined;
|
|
42
|
+
/** @default "loading" */
|
|
43
|
+
accessor state: "error" | "loading" | "ready";
|
|
44
|
+
/**
|
|
45
|
+
* The view associated with the component.
|
|
46
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-picker component will be associated with a map or scene component rather than using the `view` property.
|
|
47
|
+
*/
|
|
48
|
+
accessor view: MapView | undefined;
|
|
49
|
+
/** Fires when an error occurs while loading the utility networks from the map. */
|
|
50
|
+
readonly arcgisError: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
51
|
+
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "selectedUtilityNetwork" | "state"; }>;
|
|
52
|
+
readonly "@eventTypes": {
|
|
53
|
+
arcgisError: ArcgisUtilityNetworkPicker["arcgisError"]["detail"];
|
|
54
|
+
arcgisPropertyChange: ArcgisUtilityNetworkPicker["arcgisPropertyChange"]["detail"];
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import { c } from "../../chunks/runtime.js";
|
|
3
|
+
import h from "@arcgis/core/core/Collection.js";
|
|
4
|
+
import { watch as d } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
+
import { LitElement as n, createEvent as m } from "@arcgis/lumina";
|
|
6
|
+
import { usePropertyChange as w } from "@arcgis/lumina/controllers";
|
|
7
|
+
import { log as o } from "@arcgis/toolkit/log";
|
|
8
|
+
import { css as y, html as s } from "lit";
|
|
9
|
+
import { l } from "../../chunks/async-utils.js";
|
|
10
|
+
import { u as g } from "../../chunks/useT9n.js";
|
|
11
|
+
const k = y`:host{height:100%;flex-grow:1}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block calcite-combobox,calcite-label{margin:0 var(--calcite-space-md)}calcite-block calcite-notice{margin:var(--calcite-space-md) var(--calcite-space-md) 0}calcite-notice{margin:var(--calcite-space-md)}`;
|
|
12
|
+
class u extends n {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments), this._messages = g({ blocking: !0 }), this.hideErrors = !1, this.hideLoader = !1, this.state = "loading", this.arcgisPropertyChange = w()("selectedUtilityNetwork", "state"), this.arcgisError = m();
|
|
15
|
+
}
|
|
16
|
+
static {
|
|
17
|
+
this.properties = { _utilityNetworks: 16, view: 0, hideErrors: 5, hideLoader: 5, state: 1, error: 1, selectedUtilityNetwork: 0, heading: 1 };
|
|
18
|
+
}
|
|
19
|
+
static {
|
|
20
|
+
this.styles = k;
|
|
21
|
+
}
|
|
22
|
+
load() {
|
|
23
|
+
this.#e(), this.manager.onLifecycle(() => [
|
|
24
|
+
d(() => this.view?.map, () => this.#e())
|
|
25
|
+
]);
|
|
26
|
+
}
|
|
27
|
+
willUpdate(t) {
|
|
28
|
+
t.has("_utilityNetworks") && this.#r(), t.has("selectedUtilityNetwork") && this.#s();
|
|
29
|
+
}
|
|
30
|
+
#t(t) {
|
|
31
|
+
this.error = t, this.state = "error", this.arcgisError.emit();
|
|
32
|
+
}
|
|
33
|
+
#e() {
|
|
34
|
+
if (this.error = void 0, this.state = "loading", !this.view?.map) {
|
|
35
|
+
o("error", this, this._messages.errors.noView), this._utilityNetworks = void 0, this.#t(this._messages.errors.noView);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const t = this.view.map;
|
|
39
|
+
this.#i(t);
|
|
40
|
+
}
|
|
41
|
+
async #i(t) {
|
|
42
|
+
try {
|
|
43
|
+
t.loaded || await t.load();
|
|
44
|
+
} catch (e) {
|
|
45
|
+
this.#t(this._messages.errors.mapLoadFailed), l(e, this, this._messages.errors.mapLoadFailed);
|
|
46
|
+
} finally {
|
|
47
|
+
this._utilityNetworks = t.utilityNetworks || new h();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
#r() {
|
|
51
|
+
const { selectedUtilityNetwork: t, _utilityNetworks: e } = this;
|
|
52
|
+
e?.length ? (!t || !e.includes(t)) && (this.selectedUtilityNetwork = e.at(0)) : (this.#t(this._messages.errors.noUtilityNetwork), o("error", this, this._messages.errors.noUtilityNetwork), this.selectedUtilityNetwork = void 0);
|
|
53
|
+
}
|
|
54
|
+
async #s() {
|
|
55
|
+
const { selectedUtilityNetwork: t } = this;
|
|
56
|
+
try {
|
|
57
|
+
t && !t.loaded && await t.load(), this.state = "ready";
|
|
58
|
+
} catch (e) {
|
|
59
|
+
l(e, this, this._messages.errors.utilityNetworkLoadFailed), this.#t(this._messages.errors.utilityNetworkLoadFailed);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
#o() {
|
|
63
|
+
return this.hideLoader ? null : s`<calcite-loader label=loading></calcite-loader>`;
|
|
64
|
+
}
|
|
65
|
+
#l(t, e = !1, i) {
|
|
66
|
+
return this.hideErrors ? null : s`<calcite-notice .closable=${e} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${t}</div></calcite-notice>`;
|
|
67
|
+
}
|
|
68
|
+
#a() {
|
|
69
|
+
const t = this._messages.labels.utilityNetwork, e = this._utilityNetworks?.map((i) => s`<calcite-combobox-item .value=${i.id} .heading=${i.title || i.id} .selected=${i.id === this.selectedUtilityNetwork?.id}></calcite-combobox-item>`);
|
|
70
|
+
return s`<calcite-combobox .label=${t} selection-mode=single-persist @calciteComboboxChange=${({ currentTarget: i }) => {
|
|
71
|
+
const r = i.selectedItems[0]?.value;
|
|
72
|
+
this.selectedUtilityNetwork?.id !== r && (this.selectedUtilityNetwork = this._utilityNetworks?.find((a) => a.id === r));
|
|
73
|
+
}}>${e}</calcite-combobox>`;
|
|
74
|
+
}
|
|
75
|
+
#c() {
|
|
76
|
+
const { selectedUtilityNetwork: t } = this;
|
|
77
|
+
return s`<calcite-label>${t?.title}</calcite-label>`;
|
|
78
|
+
}
|
|
79
|
+
#h(t) {
|
|
80
|
+
const e = this._messages.labels.utilityNetwork, i = this.heading || e, r = this._utilityNetworks?.length ? this._utilityNetworks?.length === 1 ? this.#c() : this.#a() : void 0;
|
|
81
|
+
return s`<calcite-block .heading=${i} .label=${e} expanded>${r}${t}</calcite-block>`;
|
|
82
|
+
}
|
|
83
|
+
render() {
|
|
84
|
+
const { error: t, state: e, selectedUtilityNetwork: i } = this, r = e === "error" && t ? this.#l(t, !1, "exclamation-mark-triangle") : void 0;
|
|
85
|
+
return !r && !i?.loaded && !i?.loadError ? this.#o() : e === "error" && r && !this._utilityNetworks?.length ? r : this.#h(r);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
c("arcgis-utility-network-picker", u);
|
|
89
|
+
export {
|
|
90
|
+
u as ArcgisUtilityNetworkPicker
|
|
91
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "@esri/calcite-components/components/calcite-loader";
|
|
2
|
+
import "@esri/calcite-components/components/calcite-notice";
|
|
3
|
+
import "@esri/calcite-components/components/calcite-combobox-item";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-combobox";
|
|
5
|
+
import "@esri/calcite-components/components/calcite-label";
|
|
6
|
+
import "@esri/calcite-components/components/calcite-block";
|
|
7
|
+
export * from "./customElement.js";
|
|
@@ -29,6 +29,16 @@ export abstract class ArcgisUtilityNetworkTrace extends LitElement {
|
|
|
29
29
|
* prevent memory leaks.
|
|
30
30
|
*
|
|
31
31
|
* @default false
|
|
32
|
+
* @example
|
|
33
|
+
*
|
|
34
|
+
* ```html
|
|
35
|
+
* <arcgis-utility-network-trace auto-destroy-disabled></arcgis-utility-network-trace>
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ```js
|
|
39
|
+
* utilityNetworkTraceElement.autoDestroyDisabled = true;
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
32
42
|
*/
|
|
33
43
|
accessor autoDestroyDisabled: boolean;
|
|
34
44
|
/**
|
|
@@ -159,6 +159,16 @@ export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {
|
|
|
159
159
|
* prevent memory leaks.
|
|
160
160
|
*
|
|
161
161
|
* @default false
|
|
162
|
+
* @example
|
|
163
|
+
*
|
|
164
|
+
* ```html
|
|
165
|
+
* <arcgis-utility-network-trace-analysis auto-destroy-disabled></arcgis-utility-network-trace-analysis>
|
|
166
|
+
* ```
|
|
167
|
+
*
|
|
168
|
+
* ```js
|
|
169
|
+
* utilityNetworkTraceAnalysisElement.autoDestroyDisabled = true;
|
|
170
|
+
* ```
|
|
171
|
+
*
|
|
162
172
|
*/
|
|
163
173
|
accessor autoDestroyDisabled: boolean;
|
|
164
174
|
/**
|
|
@@ -4,7 +4,6 @@ import { css as y, html as a } from "lit";
|
|
|
4
4
|
import { ref as g } from "lit/directives/ref.js";
|
|
5
5
|
import { keyed as u } from "lit/directives/keyed.js";
|
|
6
6
|
import d from "@arcgis/core/Color.js";
|
|
7
|
-
import "@arcgis/core/core/Error.js";
|
|
8
7
|
import { when as f } from "@arcgis/core/core/reactiveUtils.js";
|
|
9
8
|
import b from "@arcgis/core/networks/UtilityNetworkTraceAnalysis.js";
|
|
10
9
|
import { LitElement as w, createEvent as o } from "@arcgis/lumina";
|
|
@@ -172,6 +172,16 @@ export abstract class ArcgisUtilityNetworkTraceAnalysisNext extends LitElement {
|
|
|
172
172
|
* prevent memory leaks.
|
|
173
173
|
*
|
|
174
174
|
* @default false
|
|
175
|
+
* @example
|
|
176
|
+
*
|
|
177
|
+
* ```html
|
|
178
|
+
* <arcgis-utility-network-trace-analysis-next auto-destroy-disabled></arcgis-utility-network-trace-analysis-next>
|
|
179
|
+
* ```
|
|
180
|
+
*
|
|
181
|
+
* ```js
|
|
182
|
+
* utilityNetworkTraceAnalysisNextElement.autoDestroyDisabled = true;
|
|
183
|
+
* ```
|
|
184
|
+
*
|
|
175
185
|
*/
|
|
176
186
|
accessor autoDestroyDisabled: boolean;
|
|
177
187
|
/**
|
|
@@ -4,7 +4,6 @@ import { css as m, html as a } from "lit";
|
|
|
4
4
|
import { ref as g } from "lit/directives/ref.js";
|
|
5
5
|
import { keyed as u } from "lit/directives/keyed.js";
|
|
6
6
|
import y from "@arcgis/core/Color.js";
|
|
7
|
-
import "@arcgis/core/core/Error.js";
|
|
8
7
|
import { when as f } from "@arcgis/core/core/reactiveUtils.js";
|
|
9
8
|
import b from "@arcgis/core/networks/UtilityNetworkTraceAnalysis.js";
|
|
10
9
|
import { LitElement as w, createEvent as o } from "@arcgis/lumina";
|
|
@@ -115,6 +115,16 @@ export abstract class ArcgisUtilityNetworkTraceInputs extends LitElement {
|
|
|
115
115
|
* prevent memory leaks.
|
|
116
116
|
*
|
|
117
117
|
* @default false
|
|
118
|
+
* @example
|
|
119
|
+
*
|
|
120
|
+
* ```html
|
|
121
|
+
* <arcgis-utility-network-trace-inputs auto-destroy-disabled></arcgis-utility-network-trace-inputs>
|
|
122
|
+
* ```
|
|
123
|
+
*
|
|
124
|
+
* ```js
|
|
125
|
+
* utilityNetworkTraceInputsElement.autoDestroyDisabled = true;
|
|
126
|
+
* ```
|
|
127
|
+
*
|
|
118
128
|
*/
|
|
119
129
|
accessor autoDestroyDisabled: boolean;
|
|
120
130
|
/**
|
|
@@ -115,6 +115,16 @@ export abstract class ArcgisUtilityNetworkTraceInputsNext extends LitElement {
|
|
|
115
115
|
* prevent memory leaks.
|
|
116
116
|
*
|
|
117
117
|
* @default false
|
|
118
|
+
* @example
|
|
119
|
+
*
|
|
120
|
+
* ```html
|
|
121
|
+
* <arcgis-utility-network-trace-inputs-next auto-destroy-disabled></arcgis-utility-network-trace-inputs-next>
|
|
122
|
+
* ```
|
|
123
|
+
*
|
|
124
|
+
* ```js
|
|
125
|
+
* utilityNetworkTraceInputsNextElement.autoDestroyDisabled = true;
|
|
126
|
+
* ```
|
|
127
|
+
*
|
|
118
128
|
*/
|
|
119
129
|
accessor autoDestroyDisabled: boolean;
|
|
120
130
|
/**
|