@arcgis/map-components 6.0.0-next.22 → 6.0.0-next.24
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/{WUWF6ZDM.js → 2Z36ICJZ.js} +1 -1
- package/dist/cdn/{GQQTIX2X.js → 3HI5IZSQ.js} +1 -1
- package/dist/cdn/3KAC2MKA.js +2 -0
- package/dist/cdn/{2NM6UWC4.js → 47CFYOUT.js} +1 -1
- package/dist/cdn/4N4XDCDQ.js +2 -0
- package/dist/cdn/{7ZWBGSCM.js → 4NG7CALI.js} +1 -1
- package/dist/cdn/{NTHSQXKG.js → 5DEJDR4W.js} +1 -1
- package/dist/cdn/{LUW2PXWZ.js → 5PPYHS6V.js} +1 -1
- package/dist/cdn/{M5OK7RKI.js → 66GRDX36.js} +1 -1
- package/dist/cdn/{SAQ5BNZJ.js → 6CKQPMJB.js} +1 -1
- package/dist/cdn/6GE2WBKV.js +2 -0
- package/dist/cdn/6GGKA7MT.js +2 -0
- package/dist/cdn/{XPBFBRSY.js → 6K4IASNK.js} +1 -1
- package/dist/cdn/{7LO6ACC7.js → 6VV5SX76.js} +1 -1
- package/dist/cdn/{Y3E2FJPQ.js → 74WM2EIB.js} +1 -1
- package/dist/cdn/{4I6F64B2.js → 7U2V3LDM.js} +1 -1
- package/dist/cdn/{3GN3DAON.js → A7YFCO3R.js} +1 -1
- package/dist/cdn/{3SXQLU4S.js → APFZ2FVO.js} +1 -1
- package/dist/cdn/{VLHURRRU.js → BM3FQ4OG.js} +1 -1
- package/dist/cdn/{LWVYNWD5.js → CGE6E3O3.js} +1 -1
- package/dist/cdn/CVLOQWUD.js +2 -0
- package/dist/cdn/{NORQIOSX.js → DGXTCH6B.js} +1 -1
- package/dist/cdn/{JUYPQUPQ.js → E5CGORXN.js} +1 -1
- package/dist/cdn/E5X5BYWA.js +2 -0
- package/dist/cdn/ECF4B24M.js +2 -0
- package/dist/cdn/EJVFK7JX.js +2 -0
- package/dist/cdn/{BUH3AQ7E.js → FTLNYN3G.js} +1 -1
- package/dist/cdn/{BJ35LPCU.js → G7BWEBJH.js} +1 -1
- package/dist/cdn/GIQT67VT.js +2 -0
- package/dist/cdn/{V7DMA5ZO.js → GZ6UBR6R.js} +1 -1
- package/dist/cdn/{AOGDXJ2J.js → H66E4VOY.js} +1 -1
- package/dist/cdn/HADZXZIE.js +2 -0
- package/dist/cdn/{BDZHLGVT.js → HL6WL2YA.js} +1 -1
- package/dist/cdn/HTCPPGCR.js +2 -0
- package/dist/cdn/HTONXZBP.js +2 -0
- package/dist/cdn/{F2DTKJTK.js → HUWIY53T.js} +1 -1
- package/dist/cdn/{UE6EBLH3.js → IKVGZFZ6.js} +1 -1
- package/dist/cdn/{NKFAPBY3.js → JRO4IBJP.js} +1 -1
- package/dist/cdn/KXDLX4RE.js +2 -0
- package/dist/cdn/LHYI2QBZ.js +2 -0
- package/dist/cdn/{LXJURAXP.js → NLG5U5ZN.js} +1 -1
- package/dist/cdn/{BLYXYNGB.js → PPGKQRNY.js} +1 -1
- package/dist/cdn/{DS6EUOYE.js → PW3QCZXY.js} +1 -1
- package/dist/cdn/{7EIN5VCY.js → Q2GYNZYQ.js} +1 -1
- package/dist/cdn/{SJGQALDG.js → Q2ZQOGM2.js} +1 -1
- package/dist/cdn/{UFK7DHVC.js → QBRGIFBY.js} +1 -1
- package/dist/cdn/{ZC5YVHZ3.js → QQLN6RWA.js} +1 -1
- package/dist/cdn/QXEOEFF3.js +2 -0
- package/dist/cdn/{BJJZGYBG.js → R6ARQKAY.js} +1 -1
- package/dist/cdn/RFO3M46K.js +2 -0
- package/dist/cdn/{YBXCTOS7.js → RQPOCDJS.js} +1 -1
- package/dist/cdn/{CNJSDHZI.js → RT53VCER.js} +1 -1
- package/dist/cdn/{AIF4MCBB.js → RXKIZFNQ.js} +1 -1
- package/dist/cdn/{SKAZPI3A.js → TTERKXN5.js} +1 -1
- package/dist/cdn/{LKGURYDH.js → TTWQ7RNF.js} +1 -1
- package/dist/cdn/{VHZM25YV.js → UB6BQW3G.js} +1 -1
- package/dist/cdn/{DGSTI5DI.js → UJURQACP.js} +1 -1
- package/dist/cdn/{UHDJ2SI5.js → VW35MSDL.js} +1 -1
- package/dist/cdn/{IQGL3AGV.js → WU4NDBMC.js} +1 -1
- package/dist/cdn/{FRX4ZT35.js → XKGD4N75.js} +1 -1
- package/dist/cdn/{3B4VHD67.js → XN3MG6YU.js} +1 -1
- package/dist/cdn/{PFMWLSWQ.js → XWBR6FXI.js} +1 -1
- package/dist/cdn/{B2TICPHR.js → Y5ZZCA3R.js} +1 -1
- package/dist/cdn/YITBBUPR.js +2 -0
- package/dist/cdn/{4IG6WUCI.js → YTZZRJ7Z.js} +1 -1
- package/dist/cdn/{OQ6SYZBT.js → YXIJXXTK.js} +1 -1
- package/dist/cdn/{L6FLCEH6.js → Z3674FMT.js} +1 -1
- package/dist/cdn/assets/video-player/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +155 -151
- package/dist/chunks/useViewModel.js +7 -7
- package/dist/chunks/utils.js +17 -17
- package/dist/chunks/utils5.js +2 -2
- package/dist/components/arcgis-basemap-gallery/customElement.js +17 -17
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +5 -0
- package/dist/components/arcgis-coordinate-conversion-next/customElement.d.ts +6 -5
- package/dist/components/arcgis-feature-attachments/customElement.js +18 -18
- package/dist/components/arcgis-feature-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-features-next/customElement.js +14 -15
- package/dist/components/arcgis-scale-bar/customElement.js +11 -11
- package/dist/components/arcgis-search/customElement.d.ts +12 -0
- package/dist/components/arcgis-search/customElement.js +3 -0
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.d.ts +0 -22
- package/dist/components/arcgis-swipe/customElement.js +47 -65
- package/dist/components/arcgis-time-bar/customElement.d.ts +486 -409
- package/dist/components/arcgis-time-bar/types.d.ts +36 -15
- package/dist/components/arcgis-time-bar-slider/customElement.d.ts +179 -162
- package/dist/components/arcgis-time-slider/customElement.d.ts +1 -0
- package/dist/components/arcgis-time-slider/customElement.js +8 -7
- package/dist/components/arcgis-track/customElement.d.ts +12 -3
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +7 -0
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +8 -5
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +45 -2
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +23 -20
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +125 -12
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +9 -2
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +60 -57
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +7 -0
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +12 -9
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +217 -14
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +119 -108
- package/dist/components/arcgis-utility-network-trace-locations/customElement.d.ts +155 -8
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +9 -73
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +132 -125
- package/dist/components/arcgis-utility-network-trace-results-pane/customElement.d.ts +161 -2
- package/dist/components/arcgis-video-player/customElement.d.ts +18 -0
- package/dist/components/arcgis-video-player/customElement.js +72 -72
- package/dist/components/arcgis-video-player/index.js +4 -4
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-previews/customElement.js +159 -0
- package/dist/components/arcgis-video-player-settings/customElement.js +17 -16
- package/dist/components/arcgis-video-player-slider/customElement.js +23 -12
- package/dist/components/arcgis-video-player-slider/index.js +1 -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 +0 -20
- package/dist/loader.js +6 -7
- package/dist/types/lumina.d.ts +2 -23
- package/dist/types/preact.d.ts +2 -25
- package/dist/types/react.d.ts +2 -27
- package/dist/types/stencil.d.ts +2 -23
- package/package.json +6 -6
- package/dist/cdn/2WJ53TNR.js +0 -2
- package/dist/cdn/5A7LDBDR.js +0 -2
- package/dist/cdn/COSETVX4.js +0 -2
- package/dist/cdn/F74YQZ2X.js +0 -2
- package/dist/cdn/H4BTVLCG.js +0 -2
- package/dist/cdn/KXD4VEKE.js +0 -2
- package/dist/cdn/MNL7ONFB.js +0 -2
- package/dist/cdn/NHMHVWNB.js +0 -2
- package/dist/cdn/NQ3COROI.js +0 -2
- package/dist/cdn/OJJSIN3V.js +0 -2
- package/dist/cdn/P3565WG3.js +0 -2
- package/dist/cdn/QAOT2TJ6.js +0 -2
- package/dist/cdn/QVJ2FUNW.js +0 -2
- package/dist/cdn/SIT5NBLS.js +0 -2
- package/dist/cdn/SU2SAOBL.js +0 -2
- package/dist/cdn/UI4IEVSV.js +0 -2
- package/dist/cdn/VEV3AAVP.js +0 -2
- package/dist/cdn/YYCTSS52.js +0 -2
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +0 -158
- package/dist/components/arcgis-scale-range-slider/customElement.js +0 -26
- package/dist/components/arcgis-scale-range-slider/index.d.ts +0 -1
- package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +0 -73
- package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +0 -642
- package/dist/components/arcgis-value-picker-legacy/customElement.js +0 -39
- package/dist/components/arcgis-value-picker-legacy/index.d.ts +0 -1
- package/dist/components/arcgis-value-picker-legacy/index.js +0 -1
- /package/dist/components/{arcgis-scale-range-slider → arcgis-video-player-previews}/index.js +0 -0
|
@@ -52,18 +52,8 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
|
52
52
|
*
|
|
53
53
|
* ## Use in a custom app outside the trace analysis component
|
|
54
54
|
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* that display multiple trace results at once or configure each results component independently. Add one trace results
|
|
58
|
-
* component for each trace result and set its properties directly. The pane provides the results container; it does
|
|
59
|
-
* not run traces or synchronize the results components' properties. Your application supplies each component's
|
|
60
|
-
* `traceResult`, `traceError`, `utilityNetwork`, and `view` and manages clearing them.
|
|
61
|
-
*
|
|
62
|
-
* The [view](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#view) property is required for elements and aggregated
|
|
63
|
-
* geometry results. The [utilityNetwork](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#utilityNetwork) property is required
|
|
64
|
-
* to query features for elements results.
|
|
65
|
-
*
|
|
66
|
-
* See the [multiple trace results example](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#multiple-trace-results-example).
|
|
55
|
+
* See [arcgis-utility-network-trace-results-pane](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results-pane/) for guidance and examples
|
|
56
|
+
* of displaying multiple trace results outside the trace analysis component.
|
|
67
57
|
*
|
|
68
58
|
* @slot
|
|
69
59
|
* - Default slot for adding trace result items or custom content.
|
|
@@ -110,64 +100,6 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
|
110
100
|
* console.log("Result items ready:", results.traceResultFeatures);
|
|
111
101
|
* });
|
|
112
102
|
* ```
|
|
113
|
-
* @example
|
|
114
|
-
* <span id="multiple-trace-results-example"></span>
|
|
115
|
-
*
|
|
116
|
-
* Display two trace results in the default slot of a results pane, without a trace analysis component.
|
|
117
|
-
* Each results component has its own heading and display settings. Unlike the first example, neither component
|
|
118
|
-
* uses `slot="results"` because both are assigned to the pane's default slot.
|
|
119
|
-
* ```html
|
|
120
|
-
* <arcgis-utility-network-trace-results-pane id="trace-results-pane">
|
|
121
|
-
* <arcgis-utility-network-trace-results
|
|
122
|
-
* id="upstream-results"
|
|
123
|
-
* heading="Upstream trace"
|
|
124
|
-
* expandable
|
|
125
|
-
* expanded
|
|
126
|
-
* hide-action-bar
|
|
127
|
-
* ></arcgis-utility-network-trace-results>
|
|
128
|
-
* <arcgis-utility-network-trace-results
|
|
129
|
-
* id="downstream-results"
|
|
130
|
-
* heading="Downstream trace"
|
|
131
|
-
* expandable
|
|
132
|
-
* expanded
|
|
133
|
-
* disable-highlight-feature-results
|
|
134
|
-
* ></arcgis-utility-network-trace-results>
|
|
135
|
-
* </arcgis-utility-network-trace-results-pane>
|
|
136
|
-
* <calcite-button id="clear-trace-results">Clear results</calcite-button>
|
|
137
|
-
* ```
|
|
138
|
-
*
|
|
139
|
-
* In the following JavaScript, `view` is the application's ready MapView, `utilityNetwork` is its loaded utility
|
|
140
|
-
* network, and `upstreamTraceResult` and `downstreamTraceResult` are `TraceResult` objects returned by the application's
|
|
141
|
-
* trace workflow. Set the view and utility network before assigning each trace result.
|
|
142
|
-
* ```js
|
|
143
|
-
* const pane = document.getElementById("trace-results-pane");
|
|
144
|
-
* const upstreamResults = document.getElementById("upstream-results");
|
|
145
|
-
* const downstreamResults = document.getElementById("downstream-results");
|
|
146
|
-
* const resultsComponents = [upstreamResults, downstreamResults];
|
|
147
|
-
*
|
|
148
|
-
* await Promise.all([pane.componentOnReady(), ...resultsComponents.map((results) => results.componentOnReady())]);
|
|
149
|
-
*
|
|
150
|
-
* for (const results of resultsComponents) {
|
|
151
|
-
* results.view = view;
|
|
152
|
-
* results.utilityNetwork = utilityNetwork;
|
|
153
|
-
* }
|
|
154
|
-
*
|
|
155
|
-
* upstreamResults.traceResult = upstreamTraceResult;
|
|
156
|
-
* downstreamResults.traceResult = downstreamTraceResult;
|
|
157
|
-
*
|
|
158
|
-
* document.getElementById("clear-trace-results").addEventListener("click", () => {
|
|
159
|
-
* for (const results of resultsComponents) {
|
|
160
|
-
* results.clearResults();
|
|
161
|
-
* results.traceResult = undefined;
|
|
162
|
-
* results.traceError = undefined;
|
|
163
|
-
* }
|
|
164
|
-
* pane.flowItems.removeAll();
|
|
165
|
-
* });
|
|
166
|
-
* ```
|
|
167
|
-
*
|
|
168
|
-
* If a trace fails, clear the corresponding component's `traceResult` and assign the error to its `traceError`
|
|
169
|
-
* property. The other results component can continue displaying its result. Before displaying a subsequent
|
|
170
|
-
* successful result, reset that component's `traceError` to `undefined`.
|
|
171
103
|
* @see [arcgis-utility-network-trace-analysis](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/)
|
|
172
104
|
* @see [arcgis-utility-network-trace-results-pane](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results-pane/)
|
|
173
105
|
* @see [arcgis-utility-network-trace-aggregated-geometry-result-item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/)
|
|
@@ -285,10 +217,12 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
|
285
217
|
/** The description displayed below the component's localized trace results heading. */
|
|
286
218
|
accessor heading: string | undefined;
|
|
287
219
|
/**
|
|
288
|
-
* Whether to hide the action bar
|
|
289
|
-
*
|
|
220
|
+
* Whether to hide the action bar that holds the feature's
|
|
221
|
+
* [arcgis-features-next.actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#actions) when viewing trace result features.
|
|
290
222
|
*
|
|
291
223
|
* @default false
|
|
224
|
+
* @see [arcgis-features-next.actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#actions)
|
|
225
|
+
* @see [arcgis-features-next.hideActionBar](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#hideActionBar)
|
|
292
226
|
*/
|
|
293
227
|
accessor hideActionBar: boolean;
|
|
294
228
|
/**
|
|
@@ -322,9 +256,11 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
|
322
256
|
*/
|
|
323
257
|
accessor hidePlaceholder: boolean;
|
|
324
258
|
/**
|
|
325
|
-
* Whether
|
|
259
|
+
* Whether default actions are disabled (hidden) when viewing trace result features.
|
|
260
|
+
* This property must be set to `true` to disable default actions.
|
|
326
261
|
*
|
|
327
262
|
* @default false
|
|
263
|
+
* @see [arcgis-features-next.includeDefaultActionsDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#includeDefaultActionsDisabled)
|
|
328
264
|
*/
|
|
329
265
|
accessor includeDefaultActionsDisabled: boolean;
|
|
330
266
|
/**
|
|
@@ -1,141 +1,149 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as $ } from "../../chunks/runtime.js";
|
|
3
|
-
import { ref as
|
|
4
|
-
import
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { usePropertyChange as C, bypassReadOnly as
|
|
7
|
-
import { slotChangeGetAssignedElements as
|
|
8
|
-
import { log as G, composeMissingPropertyMessage as
|
|
3
|
+
import { ref as d } from "lit/directives/ref.js";
|
|
4
|
+
import u from "@arcgis/core/Color.js";
|
|
5
|
+
import { LitElement as b, createEvent as c, safeClassMap as E } from "@arcgis/lumina";
|
|
6
|
+
import { usePropertyChange as C, bypassReadOnly as g } from "@arcgis/lumina/controllers";
|
|
7
|
+
import { slotChangeGetAssignedElements as w } from "@arcgis/toolkit/dom/slots";
|
|
8
|
+
import { log as G, composeMissingPropertyMessage as _ } from "@arcgis/toolkit/log";
|
|
9
9
|
import { css as D, html as r } from "lit";
|
|
10
10
|
import { u as F } from "../../chunks/useT9n.js";
|
|
11
|
-
import { l as
|
|
12
|
-
import { a as
|
|
13
|
-
import { g as
|
|
14
|
-
const
|
|
11
|
+
import { l as f } from "../../chunks/async-utils.js";
|
|
12
|
+
import { a as R, b as o } from "../../chunks/types.js";
|
|
13
|
+
import { g as a, b as y, c as p, d as A, e as v, f as S, h as k, j as x } from "../../chunks/utils5.js";
|
|
14
|
+
const L = D`:host{height:100%}slot:not([hidden]),.default-result-items:not([hidden]){display:flex;flex-direction:column;gap:var(--calcite-spacing-md)}.results-block{height:var(--arcgis-internal-trace-results-height, auto);margin-top:0;margin-bottom:0;&.features-list-active{--calcite-block-content-space: 0}}.no-selectable-results{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`, m = {
|
|
15
15
|
dirtyAreasDiscovered: -2147208511,
|
|
16
16
|
noValidControllers: -2147208935,
|
|
17
17
|
pathNotFound: -2147208444
|
|
18
18
|
};
|
|
19
|
-
class
|
|
19
|
+
class P extends b {
|
|
20
20
|
constructor() {
|
|
21
|
-
super(...arguments), this._messages = F({ blocking: !0 }), this.#
|
|
21
|
+
super(...arguments), this._messages = F({ blocking: !0 }), this.#s = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Set(), this.#i = /* @__PURE__ */ new Map(), this.#a = [], this.#r = /* @__PURE__ */ new Map(), this.#o = /* @__PURE__ */ new Set(), this.#g = (e) => {
|
|
22
22
|
const { detail: t, target: s } = e;
|
|
23
23
|
if (t.name === "isFeaturesListShown") {
|
|
24
24
|
const i = s[t.name];
|
|
25
|
-
!this.#e && i ? (this.#e = s, this.#
|
|
26
|
-
}
|
|
27
|
-
}, this._slottedDefaultResultItems = [], this.aggregatedGeometryResultsGraphicsColor = new
|
|
25
|
+
!this.#e && i ? (this.#e = s, this.#f(a(this.el))) : s === this.#e && !i && (this.#e = void 0, this.#d()), this.requestUpdate();
|
|
26
|
+
} else t.name === "hasContent" && this.requestUpdate();
|
|
27
|
+
}, this._slottedDefaultResultItems = [], this.aggregatedGeometryResultsGraphicsColor = new u(R), this.aggregatedGeometryResultsSize = 12, this.autoDestroyDisabled = !1, this.disableHighlightFeatureResults = !1, this.expandable = !1, this.expanded = !1, this.hideActionBar = !1, this.hideGraphics = !1, this.hidePlaceholder = !1, this.hideFeatureResults = !1, this.includeDefaultActionsDisabled = !1, this.layers = [], this.state = "ready", this.arcgisPropertyChange = C()("aggregatedGeometryResultsGraphicsColor", "aggregatedGeometryResultsSize", "hideGraphics", "state", "traceError", "traceResult", "utilityNetwork", "view"), this.arcgisResultsReady = c(), this.arcgisTraceResultClear = c(), this.arcgisTriggerAction = c();
|
|
28
28
|
}
|
|
29
29
|
static {
|
|
30
|
-
this.properties = { _slottedDefaultResultItems: 16, actions: 0, aggregatedGeometryResultsGraphicsColor: [1, { converter: {
|
|
31
|
-
fromAttribute: (e) =>
|
|
30
|
+
this.properties = { _defaultAggregatedGeometryResultsItem: 16, _defaultElementsResultItem: 16, _defaultFunctionsResultItem: 16, _slottedDefaultResultItems: 16, actions: 0, aggregatedGeometryResultsGraphicsColor: [1, { converter: {
|
|
31
|
+
fromAttribute: (e) => u.fromString(e) ?? new u(R)
|
|
32
32
|
} }], aggregatedGeometryResultsSize: 9, autoDestroyDisabled: 5, disableHighlightFeatureResults: 5, expandable: 5, expanded: 5, heading: 1, hideActionBar: 5, hideGraphics: 5, hidePlaceholder: 5, hideFeatureResults: 5, includeDefaultActionsDisabled: 5, layers: 0, messageOverrides: 0, numFeatureResults: 32, referenceElement: 1, state: 32, traceError: 0, traceResult: 0, traceResultFeatures: 32, utilityNetwork: 0, view: 0 };
|
|
33
33
|
}
|
|
34
34
|
static {
|
|
35
|
-
this.styles =
|
|
35
|
+
this.styles = L;
|
|
36
36
|
}
|
|
37
37
|
#e;
|
|
38
|
-
#
|
|
38
|
+
#s;
|
|
39
39
|
#t;
|
|
40
|
-
#g;
|
|
41
40
|
#i;
|
|
42
|
-
#s;
|
|
43
|
-
#r;
|
|
44
|
-
#l;
|
|
45
41
|
#a;
|
|
46
|
-
#
|
|
47
|
-
#
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
#r;
|
|
43
|
+
#o;
|
|
44
|
+
#g;
|
|
45
|
+
get #m() {
|
|
46
|
+
const e = this.#l ? this._slottedDefaultResultItems : [
|
|
47
|
+
this._defaultAggregatedGeometryResultsItem,
|
|
48
|
+
this._defaultElementsResultItem,
|
|
49
|
+
this._defaultFunctionsResultItem
|
|
50
|
+
].filter((t) => t !== void 0);
|
|
51
|
+
return this.#h || e.some((t) => t.hasContent);
|
|
50
52
|
}
|
|
51
|
-
get #
|
|
52
|
-
return
|
|
53
|
+
get #h() {
|
|
54
|
+
return a(this.el).filter((e) => !y(e)).length > 0;
|
|
53
55
|
}
|
|
54
|
-
get #
|
|
55
|
-
return
|
|
56
|
+
get #l() {
|
|
57
|
+
return a(this.el).length > 0;
|
|
56
58
|
}
|
|
57
|
-
get #
|
|
58
|
-
|
|
59
|
+
get #E() {
|
|
60
|
+
return this.traceResult ? this.#l ? a(this.el).filter(p) : this.#D(this.traceResult) : [];
|
|
61
|
+
}
|
|
62
|
+
get #C() {
|
|
63
|
+
return !!this.traceResult && !this.traceError && (this.#n || this.#l);
|
|
64
|
+
}
|
|
65
|
+
get #R() {
|
|
66
|
+
if (!this.traceResult || !this.#n)
|
|
59
67
|
return !1;
|
|
60
|
-
if (
|
|
68
|
+
if (this.#h)
|
|
61
69
|
return !0;
|
|
62
|
-
const { aggregatedGeometry:
|
|
63
|
-
return this._slottedDefaultResultItems.some((
|
|
70
|
+
const { aggregatedGeometry: e, elements: t, globalFunctionResults: s } = this.traceResult;
|
|
71
|
+
return this._slottedDefaultResultItems.some((i) => e != null && A(i) || t.length > 0 && v(i) || s.length > 0 && S(i));
|
|
64
72
|
}
|
|
65
|
-
get #
|
|
73
|
+
get #n() {
|
|
66
74
|
if (!this.traceResult)
|
|
67
75
|
return !1;
|
|
68
76
|
const { elements: e, globalFunctionResults: t, aggregatedGeometry: s } = this.traceResult;
|
|
69
77
|
return !!(e.length || t.length || s);
|
|
70
78
|
}
|
|
71
79
|
get numFeatureResults() {
|
|
72
|
-
return this
|
|
80
|
+
return this._defaultElementsResultItem ? this._defaultElementsResultItem.numResults : this.#a[0]?.numResults ?? 0;
|
|
73
81
|
}
|
|
74
82
|
get traceResultFeatures() {
|
|
75
|
-
return this
|
|
83
|
+
return this._defaultElementsResultItem ? this._defaultElementsResultItem.features : this.#a[0]?.features ?? [];
|
|
76
84
|
}
|
|
77
85
|
clearResults() {
|
|
78
|
-
this.#
|
|
86
|
+
this.#y(), this.arcgisTraceResultClear.emit();
|
|
79
87
|
}
|
|
80
88
|
async destroy() {
|
|
81
|
-
const e =
|
|
89
|
+
const e = a(this.el).filter(k), t = await Promise.allSettled([
|
|
82
90
|
...e.map(async (s) => await s.destroy()),
|
|
83
|
-
this
|
|
84
|
-
this
|
|
85
|
-
this
|
|
91
|
+
this._defaultAggregatedGeometryResultsItem?.destroy(),
|
|
92
|
+
this._defaultElementsResultItem?.destroy(),
|
|
93
|
+
this._defaultFunctionsResultItem?.destroy()
|
|
86
94
|
]);
|
|
87
95
|
for (const s of t)
|
|
88
|
-
s.status === "rejected" &&
|
|
96
|
+
s.status === "rejected" && f(s.reason, this, "Error while destroying trace result item");
|
|
89
97
|
await this.manager.destroy();
|
|
90
98
|
}
|
|
91
99
|
load() {
|
|
92
100
|
this.manager.onLifecycle(() => {
|
|
93
|
-
const e =
|
|
94
|
-
return this
|
|
101
|
+
const e = a(this.el);
|
|
102
|
+
return this.#$(e), this.#I(e), () => {
|
|
103
|
+
for (const t of this.#i.keys())
|
|
104
|
+
this.#v(t);
|
|
95
105
|
for (const t of this.#r.keys())
|
|
96
|
-
this
|
|
97
|
-
|
|
98
|
-
this.#b(t);
|
|
99
|
-
this.#h();
|
|
106
|
+
this.#p(t);
|
|
107
|
+
this.#d();
|
|
100
108
|
};
|
|
101
109
|
});
|
|
102
110
|
}
|
|
103
111
|
willUpdate(e) {
|
|
104
|
-
e.has("traceResult") && (this.#
|
|
112
|
+
e.has("traceResult") && (this.#y(), this.#C ? this.#P() : this.traceResult && !this.traceError && !this.#n && this.#u());
|
|
105
113
|
}
|
|
106
114
|
loaded() {
|
|
107
|
-
this.traceResult && (this.view || G("warn", this,
|
|
115
|
+
this.traceResult && (this.view || G("warn", this, _("view")));
|
|
108
116
|
}
|
|
109
|
-
#
|
|
110
|
-
for (const e of this.#
|
|
117
|
+
#d() {
|
|
118
|
+
for (const e of this.#s)
|
|
111
119
|
e.removeAttribute("hidden");
|
|
112
|
-
this.#
|
|
120
|
+
this.#s.clear();
|
|
113
121
|
}
|
|
114
|
-
#
|
|
115
|
-
const e =
|
|
122
|
+
#y() {
|
|
123
|
+
const e = a(this.el).filter(x);
|
|
116
124
|
for (const t of e)
|
|
117
125
|
try {
|
|
118
126
|
t.clearResult();
|
|
119
127
|
} catch (s) {
|
|
120
|
-
|
|
128
|
+
f(s, this, "Error while clearing trace result item");
|
|
121
129
|
}
|
|
122
|
-
this
|
|
130
|
+
this._defaultAggregatedGeometryResultsItem?.clearResult(), this._defaultElementsResultItem?.clearResult(), this._defaultFunctionsResultItem?.clearResult(), this.#t.clear(), g(() => this.state = "ready");
|
|
123
131
|
}
|
|
124
|
-
#
|
|
125
|
-
|
|
132
|
+
#w(e) {
|
|
133
|
+
this._defaultAggregatedGeometryResultsItem = e;
|
|
126
134
|
}
|
|
127
135
|
#G(e) {
|
|
128
|
-
this.#e && this.#e === this
|
|
136
|
+
this.#e && this.#e === this._defaultElementsResultItem && e !== this._defaultElementsResultItem && (this.#e = void 0, this.#d()), this._defaultElementsResultItem = e, !this.#e && e?.isFeaturesListShown && (this.#e = e, this.#f(a(this.el)));
|
|
129
137
|
}
|
|
130
|
-
#
|
|
131
|
-
|
|
138
|
+
#_(e) {
|
|
139
|
+
this._defaultFunctionsResultItem = e;
|
|
132
140
|
}
|
|
133
|
-
#
|
|
134
|
-
|
|
141
|
+
#u() {
|
|
142
|
+
g(() => this.state = "ready"), this.arcgisResultsReady.emit();
|
|
135
143
|
}
|
|
136
144
|
#D(e) {
|
|
137
|
-
const { elements: t, globalFunctionResults: s, aggregatedGeometry: i } = e, [
|
|
138
|
-
return i != null && n.push(
|
|
145
|
+
const { elements: t, globalFunctionResults: s, aggregatedGeometry: i } = e, [h, l, I] = o, n = [];
|
|
146
|
+
return i != null && n.push(h), t != null && n.push(l), s.length > 0 && n.push(I), n;
|
|
139
147
|
}
|
|
140
148
|
#F(e) {
|
|
141
149
|
e.stopPropagation(), this.arcgisTriggerAction.emit(e.detail);
|
|
@@ -144,81 +152,80 @@ class T extends E {
|
|
|
144
152
|
const { detail: t, target: s } = e;
|
|
145
153
|
t.name === "hideGraphics" ? (e.stopPropagation(), this.hideGraphics = s[t.name]) : t.name === "graphicsColor" ? (e.stopPropagation(), this.aggregatedGeometryResultsGraphicsColor = s[t.name]) : t.name === "selectionSize" && (e.stopPropagation(), this.aggregatedGeometryResultsSize = s[t.name]);
|
|
146
154
|
}
|
|
155
|
+
#S() {
|
|
156
|
+
this.#c(o[0]);
|
|
157
|
+
}
|
|
147
158
|
#k() {
|
|
148
|
-
this.#
|
|
159
|
+
this.#c(o[1]);
|
|
149
160
|
}
|
|
150
161
|
#x() {
|
|
151
|
-
this.#
|
|
162
|
+
this.#c(o[2]);
|
|
152
163
|
}
|
|
153
|
-
#L() {
|
|
154
|
-
|
|
164
|
+
#L(e) {
|
|
165
|
+
const t = w(e);
|
|
166
|
+
this.#$(t), this.#I(t);
|
|
155
167
|
}
|
|
156
|
-
#
|
|
157
|
-
const t = I(e);
|
|
158
|
-
this.#w(t), this.#E(t);
|
|
159
|
-
}
|
|
160
|
-
#R(e) {
|
|
168
|
+
#f(e) {
|
|
161
169
|
e.forEach((t) => {
|
|
162
|
-
t !== this.#e && !t.hasAttribute("hidden") ? (t.setAttribute("hidden", ""), this.#
|
|
170
|
+
t !== this.#e && !t.hasAttribute("hidden") ? (t.setAttribute("hidden", ""), this.#s.add(t)) : t === this.#e && this.#s.has(t) && (t.removeAttribute("hidden"), this.#s.delete(t));
|
|
163
171
|
});
|
|
164
172
|
}
|
|
165
|
-
#
|
|
166
|
-
this.#
|
|
167
|
-
}
|
|
168
|
-
#z(e) {
|
|
169
|
-
if (this.#a.has(e))
|
|
170
|
-
return;
|
|
171
|
-
const t = (s) => this.#m(s);
|
|
172
|
-
this.#a.set(e, t), e.addEventListener("arcgisPropertyChange", t);
|
|
173
|
+
#P() {
|
|
174
|
+
this.#t = new Set(this.#E), this.#t.size === 0 ? this.#u() : g(() => this.state = "loading");
|
|
173
175
|
}
|
|
174
|
-
#
|
|
176
|
+
#T(e) {
|
|
175
177
|
if (this.#r.has(e))
|
|
176
178
|
return;
|
|
177
|
-
const t = (
|
|
178
|
-
this.#r.set(e, t), e.addEventListener("
|
|
179
|
+
const t = (s) => this.#g(s);
|
|
180
|
+
this.#r.set(e, t), e.addEventListener("arcgisPropertyChange", t);
|
|
179
181
|
}
|
|
180
|
-
#
|
|
181
|
-
|
|
182
|
-
|
|
182
|
+
#z(e) {
|
|
183
|
+
if (this.#i.has(e))
|
|
184
|
+
return;
|
|
185
|
+
const t = ({ target: s }) => this.#c(s);
|
|
186
|
+
this.#i.set(e, t), e.addEventListener("arcgisResultReady", t);
|
|
183
187
|
}
|
|
184
|
-
|
|
188
|
+
#p(e) {
|
|
185
189
|
const t = this.#r.get(e);
|
|
186
|
-
t && (e.removeEventListener("
|
|
187
|
-
}
|
|
188
|
-
#
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
190
|
+
t && (e.removeEventListener("arcgisPropertyChange", t), this.#r.delete(e));
|
|
191
|
+
}
|
|
192
|
+
#v(e) {
|
|
193
|
+
const t = this.#i.get(e);
|
|
194
|
+
t && (e.removeEventListener("arcgisResultReady", t), this.#i.delete(e));
|
|
195
|
+
}
|
|
196
|
+
#I(e) {
|
|
197
|
+
for (const i of this.#s)
|
|
198
|
+
e.includes(i) || (i.removeAttribute("hidden"), this.#s.delete(i));
|
|
199
|
+
const t = e.filter(v);
|
|
200
|
+
for (const i of this.#a)
|
|
201
|
+
t.includes(i) || this.#p(i);
|
|
194
202
|
for (const i of t)
|
|
195
|
-
this.#
|
|
203
|
+
this.#T(i);
|
|
196
204
|
const s = this.#e;
|
|
197
|
-
s && (!s.isFeaturesListShown || s !== this
|
|
205
|
+
s && (!s.isFeaturesListShown || s !== this._defaultElementsResultItem && !t.includes(s)) && (this.#e = void 0, this.#d()), this.#e ??= t.find((i) => i.isFeaturesListShown), this.#e && this.#f(e), this.#a = t, this.requestUpdate();
|
|
198
206
|
}
|
|
199
|
-
|
|
200
|
-
const t = new Set(e.filter(
|
|
201
|
-
for (const s of this.#
|
|
202
|
-
t.has(s) || (this
|
|
207
|
+
#$(e) {
|
|
208
|
+
const t = new Set(e.filter(p));
|
|
209
|
+
for (const s of this.#o)
|
|
210
|
+
t.has(s) || (this.#v(s), this.#t.delete(s));
|
|
203
211
|
for (const s of t)
|
|
204
|
-
this.#
|
|
205
|
-
this.#
|
|
212
|
+
this.#z(s), this.state === "loading" && !this.#o.has(s) && this.#t.add(s);
|
|
213
|
+
this.#o = t, this._slottedDefaultResultItems = e.filter(y), this.state === "loading" && this.#t.size === 0 && this.#u();
|
|
206
214
|
}
|
|
207
|
-
#
|
|
208
|
-
this.#
|
|
215
|
+
#c(e) {
|
|
216
|
+
this.#t.delete(e), this.state === "loading" && this.#t.size === 0 && this.#u();
|
|
209
217
|
}
|
|
210
218
|
render() {
|
|
211
|
-
const { traceError: e, traceResult: t } = this
|
|
212
|
-
let
|
|
213
|
-
|
|
214
|
-
return e ? s = this.#O(e) : t ? this.#o ? this.#f ? this.#p || (s = this.#N()) : s = this.#H(t) : s = this.#B() : s = this.#U(), r`<calcite-block class=${w({
|
|
219
|
+
const { traceError: e, traceResult: t } = this, s = !e && t && this.#n && !this.#l ? this.#H(t) : void 0, i = !!t && !e && this.#m && (this.#h || this.#R), h = r`<slot .hidden=${!i} @slotchange=${this.#L}></slot>`;
|
|
220
|
+
let l;
|
|
221
|
+
return e ? l = this.#O(e) : t ? !this.#n && !this.#h ? l = this.#b() : this.state === "ready" && !this.#m && (l = this.#l && this._slottedDefaultResultItems.length && !this.#R ? this.#N() : this.#b()) : l = this.#B(), r`<calcite-block class=${E({
|
|
215
222
|
"results-block": !0,
|
|
216
223
|
"features-list-active": !!this.#e
|
|
217
|
-
})} .description=${this.heading} .expandable=${this.expandable} .expanded=${this.expanded} .heading=${this._messages.headings.traceResultsGeneric} .label=${this._messages.headings.traceResultsGeneric} .loading=${this.state === "loading"}>${
|
|
224
|
+
})} .description=${this.heading} .expandable=${this.expandable} .expanded=${this.expanded} .heading=${this._messages.headings.traceResultsGeneric} .label=${this._messages.headings.traceResultsGeneric} .loading=${this.state === "loading"}>${h}${s}${l}</calcite-block>`;
|
|
218
225
|
}
|
|
219
226
|
#H(e) {
|
|
220
227
|
const { elements: t, globalFunctionResults: s, aggregatedGeometry: i } = e;
|
|
221
|
-
return r`<div class="default-result-items">${i != null ? r`<arcgis-utility-network-trace-aggregated-geometry-result-item auto-destroy-disabled .graphicsColor=${this.aggregatedGeometryResultsGraphicsColor} .hideGraphics=${this.hideGraphics} .hidden=${!!this.#e} .messageOverrides=${this.messageOverrides} .selectionSize=${this.aggregatedGeometryResultsSize} @arcgisPropertyChange=${this.#A} @arcgisResultReady=${this.#
|
|
228
|
+
return r`<div class="default-result-items" .hidden=${!this.#m}>${i != null ? r`<arcgis-utility-network-trace-aggregated-geometry-result-item auto-destroy-disabled .graphicsColor=${this.aggregatedGeometryResultsGraphicsColor} .hideGraphics=${this.hideGraphics} .hidden=${!!this.#e} .messageOverrides=${this.messageOverrides} .selectionSize=${this.aggregatedGeometryResultsSize} @arcgisPropertyChange=${this.#A} @arcgisResultReady=${this.#S} ${d(this.#w)}></arcgis-utility-network-trace-aggregated-geometry-result-item>${!t.length && !this.#e ? this.#M() : null}` : null}${t != null ? r`<arcgis-utility-network-trace-elements-result-item .actions=${this.actions} auto-destroy-disabled .disableHighlight=${this.disableHighlightFeatureResults} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .hidePlaceholder=${this.hidePlaceholder} .hidden=${!t.length} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .layers=${this.layers} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} @arcgisPropertyChange=${this.#g} @arcgisResultReady=${this.#k} @arcgisTriggerAction=${this.#F} ${d(this.#G)}></arcgis-utility-network-trace-elements-result-item>` : null}${s.length > 0 ? r`<arcgis-utility-network-trace-functions-result-item auto-destroy-disabled .heading=${this._messages.headings.functions} .hidden=${!!this.#e} .messageOverrides=${this.messageOverrides} @arcgisResultReady=${this.#x} ${d(this.#_)}></arcgis-utility-network-trace-functions-result-item>` : null}</div>`;
|
|
222
229
|
}
|
|
223
230
|
#N() {
|
|
224
231
|
return r`<div class="no-selectable-results">${this._messages.noMatchingResultItems}</div>`;
|
|
@@ -230,28 +237,28 @@ class T extends E {
|
|
|
230
237
|
const { _messages: t } = this;
|
|
231
238
|
let s = e.message;
|
|
232
239
|
switch (e.details?.raw?.extendedCode) {
|
|
233
|
-
case
|
|
240
|
+
case m.dirtyAreasDiscovered:
|
|
234
241
|
s = t.traceErrors.dirtyAreasDiscovered;
|
|
235
242
|
break;
|
|
236
|
-
case
|
|
243
|
+
case m.noValidControllers:
|
|
237
244
|
s = t.traceErrors.noValidControllers;
|
|
238
245
|
break;
|
|
239
|
-
case
|
|
246
|
+
case m.pathNotFound:
|
|
240
247
|
s = t.traceErrors.pathNotFound;
|
|
241
248
|
break;
|
|
242
249
|
}
|
|
243
250
|
return r`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${t.traceFailedHeading}</div><div class="no-results-description">${t.traceFailedDescription}</div><div class="no-results-description">${s}</div></div>`;
|
|
244
251
|
}
|
|
245
|
-
#
|
|
252
|
+
#b() {
|
|
246
253
|
const { _messages: e } = this;
|
|
247
254
|
return r`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${e.noResultsHeading}</div><div class="no-results-description">${e.noResultsDescription}</div></div>`;
|
|
248
255
|
}
|
|
249
|
-
#
|
|
256
|
+
#B() {
|
|
250
257
|
const { _messages: e } = this;
|
|
251
258
|
return r`<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${e.noTraceConfigHeading}</div><div class="no-results-description">${e.noTraceConfigDescription}</div></div>`;
|
|
252
259
|
}
|
|
253
260
|
}
|
|
254
|
-
$("arcgis-utility-network-trace-results",
|
|
261
|
+
$("arcgis-utility-network-trace-results", P);
|
|
255
262
|
export {
|
|
256
|
-
|
|
263
|
+
P as ArcgisUtilityNetworkTraceResults
|
|
257
264
|
};
|