@arcgis/map-components 6.0.0-next.16 → 6.0.0-next.17
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/{3QTYVBA3.js → 5Y45LLBY.js} +1 -1
- package/dist/cdn/DSIYRWN2.js +2 -0
- package/dist/cdn/{GMEXAEOI.js → HWRPCOVE.js} +1 -1
- package/dist/cdn/O7ZXS622.js +2 -0
- package/dist/cdn/TIUFHDP2.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/loader-utils.js +28 -26
- package/dist/components/arcgis-features/customElement.js +12 -11
- package/dist/components/arcgis-features-next/customElement.d.ts +8 -2
- package/dist/components/arcgis-features-next/customElement.js +58 -59
- package/dist/components/arcgis-popup/customElement.d.ts +8 -2
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +237 -32
- 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/package.json +7 -7
- package/dist/cdn/33B22YZ5.js +0 -2
- package/dist/cdn/BYYCKI2P.js +0 -2
- package/dist/cdn/U6NHJKIM.js +0 -2
|
@@ -17,11 +17,164 @@ import type { ArcgisUtilityNetworkTraceFunctionsResultItem } from "../arcgis-uti
|
|
|
17
17
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
20
|
+
* The Utility Network Trace Results component displays the outcome of a single utility network trace, including its
|
|
21
|
+
* results, an empty result, or an error.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* This component displays results for the following trace result types:
|
|
24
|
+
* [elements](https://developers.arcgis.com/javascript/latest/references/core/rest/networks/support/TraceResult/#elements),
|
|
25
|
+
* [aggregated geometries](https://developers.arcgis.com/javascript/latest/references/core/rest/networks/support/TraceResult/#aggregatedGeometry),
|
|
26
|
+
* and [functions](https://developers.arcgis.com/javascript/latest/references/core/rest/networks/support/TraceResult/#globalFunctionResults).
|
|
27
|
+
*
|
|
28
|
+
* Each result type is displayed by a result item component. By default, this component displays the
|
|
29
|
+
* result items for the result types returned by the trace. To choose which result items are displayed
|
|
30
|
+
* or configure their properties individually, add the
|
|
31
|
+
* [elements result item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-elements-result-item/),
|
|
32
|
+
* [aggregated geometry result item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/), or
|
|
33
|
+
* [functions result item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-functions-result-item/) to this component's default slot.
|
|
34
|
+
* When the default slot has content, the component displays the slotted content instead of the default result items.
|
|
35
|
+
*
|
|
36
|
+
* ## Use in the trace analysis component's results slot
|
|
37
|
+
*
|
|
38
|
+
* By default, the [arcgis-utility-network-trace-analysis](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/) component displays aggregated geometry,
|
|
39
|
+
* elements, and functions in its results tab when those result types are returned by the trace.
|
|
40
|
+
* You do not need to slot a results component for this default display configuration. Only slot this component into
|
|
41
|
+
* the trace analysis component's `results` slot when you want to customize the result items in the results tab:
|
|
42
|
+
* choose which items are displayed, configure their properties, or add custom result items.
|
|
43
|
+
*
|
|
44
|
+
* When this component is slotted into the `results` slot of the trace analysis component,
|
|
45
|
+
* the parent trace analysis component sets the
|
|
46
|
+
* [trace result](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#traceResult),
|
|
47
|
+
* [trace error](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#traceError),
|
|
48
|
+
* [utility network](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#utilityNetwork), and
|
|
49
|
+
* [view](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#view) properties.
|
|
50
|
+
*
|
|
51
|
+
* See the [custom result items example](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#custom-result-items-example).
|
|
52
|
+
*
|
|
53
|
+
* ## Use in a custom app outside the trace analysis component
|
|
54
|
+
*
|
|
55
|
+
* To use the component outside of the trace analysis component, slot it into the default slot of
|
|
56
|
+
* [arcgis-utility-network-trace-results-pane](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results-pane/). This is useful in custom trace workflow applications
|
|
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).
|
|
67
|
+
*
|
|
68
|
+
* @slot
|
|
69
|
+
* - Default slot for adding trace result items or custom content.
|
|
70
|
+
* Slotted content replaces the component's default result items.
|
|
24
71
|
* @since 5.2
|
|
72
|
+
* @example
|
|
73
|
+
* <span id="custom-result-items-example"></span>
|
|
74
|
+
*
|
|
75
|
+
* The following example customizes the display of element results. Other result types are not displayed because the
|
|
76
|
+
* component's default slot contains only an element result item.
|
|
77
|
+
* ```html
|
|
78
|
+
* <arcgis-map item-id="471eb0bf37074b1fbb972b1da70fb310">
|
|
79
|
+
* <arcgis-utility-network-trace-analysis slot="bottom-left">
|
|
80
|
+
* <arcgis-utility-network-trace-results slot="results">
|
|
81
|
+
* <arcgis-utility-network-trace-elements-result-item
|
|
82
|
+
* heading="Feature results"
|
|
83
|
+
* hide-action-bar
|
|
84
|
+
* ></arcgis-utility-network-trace-elements-result-item>
|
|
85
|
+
* </arcgis-utility-network-trace-results>
|
|
86
|
+
* </arcgis-utility-network-trace-analysis>
|
|
87
|
+
* </arcgis-map>
|
|
88
|
+
* ```
|
|
89
|
+
* @example
|
|
90
|
+
* Using the markup above, register these listeners before running a trace to respond to result and error changes and
|
|
91
|
+
* access queried features after all result items finish processing.
|
|
92
|
+
* ```js
|
|
93
|
+
* const results = document.querySelector("arcgis-utility-network-trace-results");
|
|
94
|
+
*
|
|
95
|
+
* results.addEventListener("arcgisPropertyChange", (event) => {
|
|
96
|
+
* if (event.target !== results) {
|
|
97
|
+
* return;
|
|
98
|
+
* }
|
|
99
|
+
*
|
|
100
|
+
* if (event.detail.name === "traceResult") {
|
|
101
|
+
* console.log("Trace result:", results.traceResult);
|
|
102
|
+
* } else if (event.detail.name === "traceError") {
|
|
103
|
+
* if (results.traceError) {
|
|
104
|
+
* console.error("Trace error:", results.traceError);
|
|
105
|
+
* }
|
|
106
|
+
* }
|
|
107
|
+
* });
|
|
108
|
+
*
|
|
109
|
+
* results.addEventListener("arcgisResultsReady", () => {
|
|
110
|
+
* console.log("Result items ready:", results.traceResultFeatures);
|
|
111
|
+
* });
|
|
112
|
+
* ```
|
|
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
|
+
* @see [arcgis-utility-network-trace-analysis](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/)
|
|
172
|
+
* @see [arcgis-utility-network-trace-results-pane](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results-pane/)
|
|
173
|
+
* @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/)
|
|
174
|
+
* @see [arcgis-utility-network-trace-elements-result-item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-elements-result-item/)
|
|
175
|
+
* @see [arcgis-utility-network-trace-functions-result-item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-functions-result-item/)
|
|
176
|
+
* @see [Trace a utility network](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/trace-utility-network.htm)
|
|
177
|
+
* @see [Result types](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/configure-a-trace.htm#ESRI_SECTION1_9F21343F66554B65B42A3359477D0D2E)
|
|
25
178
|
*/
|
|
26
179
|
export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
27
180
|
/** @internal */
|
|
@@ -77,14 +230,14 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
|
77
230
|
* [Color](https://developers.arcgis.com/javascript/latest/references/core/Color/) object.
|
|
78
231
|
*
|
|
79
232
|
* Aggregated geometry is only rendered if the trace configuration specifies aggregated geometry as a result type.
|
|
80
|
-
*
|
|
81
|
-
* Default color is #FFFF00.
|
|
233
|
+
* The default is yellow with 0.6 opacity.
|
|
82
234
|
*/
|
|
83
235
|
accessor aggregatedGeometryResultsGraphicsColor: Color;
|
|
84
236
|
/**
|
|
85
237
|
* The size in points used to render graphics for aggregated geometries in trace results.
|
|
86
238
|
*
|
|
87
239
|
* Aggregated geometry is only rendered if the trace configuration specifies aggregated geometry as a result type.
|
|
240
|
+
* The default is `12`.
|
|
88
241
|
*
|
|
89
242
|
* @default 12
|
|
90
243
|
*/
|
|
@@ -110,37 +263,41 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
|
110
263
|
accessor autoDestroyDisabled: boolean;
|
|
111
264
|
/**
|
|
112
265
|
* Whether to disable highlighting trace result features on the map.
|
|
113
|
-
*
|
|
266
|
+
*
|
|
267
|
+
* Disabling highlights does not prevent the component from querying features or affect aggregated geometry graphics.
|
|
114
268
|
*
|
|
115
269
|
* @default false
|
|
116
270
|
*/
|
|
117
271
|
accessor disableHighlightFeatureResults: boolean;
|
|
118
272
|
/**
|
|
119
|
-
*
|
|
273
|
+
* Whether the component can be expanded and collapsed.
|
|
120
274
|
*
|
|
121
275
|
* @default false
|
|
122
276
|
*/
|
|
123
277
|
accessor expandable: boolean;
|
|
124
278
|
/**
|
|
125
|
-
*
|
|
279
|
+
* Whether the component and its contents are expanded when
|
|
280
|
+
* [expandable](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#expandable) is `true`.
|
|
126
281
|
*
|
|
127
282
|
* @default false
|
|
128
283
|
*/
|
|
129
284
|
accessor expanded: boolean;
|
|
130
|
-
/**
|
|
285
|
+
/** The description displayed below the component's localized trace results heading. */
|
|
131
286
|
accessor heading: string | undefined;
|
|
132
287
|
/**
|
|
133
|
-
*
|
|
134
|
-
* [
|
|
288
|
+
* Whether to hide the action bar when viewing trace result features.
|
|
289
|
+
* The action bar contains the feature's [actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#actions).
|
|
135
290
|
*
|
|
136
291
|
* @default false
|
|
137
292
|
*/
|
|
138
293
|
accessor hideActionBar: boolean;
|
|
139
294
|
/**
|
|
140
|
-
* Whether to hide
|
|
295
|
+
* Whether to hide the elements result item and its features list.
|
|
141
296
|
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
297
|
+
* When `true`, the component displays a placeholder instead. Features are still queried and remain available from
|
|
298
|
+
* [traceResultFeatures](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#traceResultFeatures). This property does not disable
|
|
299
|
+
* highlighting; use [disableHighlightFeatureResults](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#disableHighlightFeatureResults) to hide
|
|
300
|
+
* feature highlights.
|
|
144
301
|
*
|
|
145
302
|
* @default false
|
|
146
303
|
*/
|
|
@@ -149,11 +306,13 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
|
149
306
|
* Whether to hide the aggregated geometry [graphics](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#geometryGraphics)
|
|
150
307
|
* from the map when the trace result contains aggregated geometry results.
|
|
151
308
|
*
|
|
309
|
+
* Hidden graphics remain available from the [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/) component.
|
|
310
|
+
*
|
|
152
311
|
* @default false
|
|
153
312
|
*/
|
|
154
313
|
accessor hideGraphics: boolean;
|
|
155
314
|
/**
|
|
156
|
-
* Whether to hide the placeholder
|
|
315
|
+
* Whether to hide the placeholder shown when feature results are hidden.
|
|
157
316
|
*
|
|
158
317
|
* When this property and [hideFeatureResults](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#hideFeatureResults) are both set to `true`,
|
|
159
318
|
* nothing is rendered for trace result elements. However, features are still queried and are available through
|
|
@@ -163,13 +322,21 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
|
163
322
|
*/
|
|
164
323
|
accessor hidePlaceholder: boolean;
|
|
165
324
|
/**
|
|
166
|
-
*
|
|
167
|
-
* This property must be set to `true` to disable default actions.
|
|
325
|
+
* Whether to hide the default actions when viewing trace result features.
|
|
168
326
|
*
|
|
169
327
|
* @default false
|
|
170
328
|
*/
|
|
171
329
|
accessor includeDefaultActionsDisabled: boolean;
|
|
172
|
-
/**
|
|
330
|
+
/**
|
|
331
|
+
* The utility network layers and tables used to query trace result features.
|
|
332
|
+
*
|
|
333
|
+
* When the array is empty, the component uses layers and tables in the map that belong to
|
|
334
|
+
* [utilityNetwork](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#utilityNetwork). Entries that do not belong to that utility
|
|
335
|
+
* network are ignored.
|
|
336
|
+
*
|
|
337
|
+
* Set this property before assigning a trace result. Changing it does not requery the current result or restrict
|
|
338
|
+
* highlighting.
|
|
339
|
+
*/
|
|
173
340
|
accessor layers: Layer[];
|
|
174
341
|
/**
|
|
175
342
|
* Replace localized message strings with your own strings.
|
|
@@ -196,11 +363,13 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
|
196
363
|
traceFailedHeading?: string | undefined;
|
|
197
364
|
};
|
|
198
365
|
/**
|
|
199
|
-
* The number of
|
|
366
|
+
* The number of successfully queried features plus unique trace elements without a matching layer in the map.
|
|
200
367
|
*
|
|
201
|
-
* If
|
|
202
|
-
* this property returns the
|
|
203
|
-
*
|
|
368
|
+
* If the default slot contains multiple [arcgis-utility-network-trace-elements-result-item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-elements-result-item/)
|
|
369
|
+
* components, this property returns the
|
|
370
|
+
* [result count](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-elements-result-item/#numResults) from the first one.
|
|
371
|
+
* This value can be lower than the number of elements returned by the trace when feature queries fail or return no
|
|
372
|
+
* matching features.
|
|
204
373
|
*/
|
|
205
374
|
get numFeatureResults(): number;
|
|
206
375
|
/**
|
|
@@ -210,34 +379,70 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
|
210
379
|
*/
|
|
211
380
|
accessor referenceElement: ArcgisReferenceElement | string | undefined;
|
|
212
381
|
/**
|
|
213
|
-
* The
|
|
382
|
+
* The processing state of the component: `"loading"` while result items process a trace result and `"ready"` when no
|
|
383
|
+
* processing is in progress. A `"ready"` state does not necessarily mean that every result item succeeded.
|
|
214
384
|
*
|
|
215
385
|
* @default "ready"
|
|
216
386
|
*/
|
|
217
387
|
get state(): UtilityNetworkTraceResultItemState;
|
|
218
|
-
/**
|
|
388
|
+
/**
|
|
389
|
+
* The error returned when the trace could not be completed.
|
|
390
|
+
*
|
|
391
|
+
* When set, the component displays the error instead of [traceResult](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#traceResult).
|
|
392
|
+
* Changes emit [@arcgisPropertyChange](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#event-arcgisPropertyChange).
|
|
393
|
+
*/
|
|
219
394
|
accessor traceError: EsriError<TraceErrorDetails> | undefined;
|
|
220
|
-
/**
|
|
395
|
+
/**
|
|
396
|
+
* The trace result to display.
|
|
397
|
+
*
|
|
398
|
+
* Assigning a new value clears side effects from the previous result and starts a new processing cycle. It does not
|
|
399
|
+
* emit [@arcgisTraceResultClear](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#event-arcgisTraceResultClear). Changes emit
|
|
400
|
+
* [@arcgisPropertyChange](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#event-arcgisPropertyChange).
|
|
401
|
+
*/
|
|
221
402
|
accessor traceResult: TraceResult | undefined;
|
|
222
403
|
/**
|
|
223
|
-
* The features
|
|
224
|
-
*
|
|
225
|
-
*
|
|
404
|
+
* The features successfully queried for the current trace result elements.
|
|
405
|
+
*
|
|
406
|
+
* Read this property after [@arcgisResultsReady](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#event-arcgisResultsReady) fires.
|
|
407
|
+
* Elements without a matching query layer are not included. If the default slot contains multiple
|
|
408
|
+
* [arcgis-utility-network-trace-elements-result-item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-elements-result-item/) components, this property returns features
|
|
409
|
+
* from the first one.
|
|
226
410
|
*/
|
|
227
411
|
get traceResultFeatures(): Graphic[];
|
|
228
|
-
/** The utility network used to
|
|
412
|
+
/** The utility network used to resolve trace result elements to features. */
|
|
229
413
|
accessor utilityNetwork: UtilityNetwork | undefined;
|
|
414
|
+
/** The [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/) used to display and highlight trace results. */
|
|
415
|
+
accessor view: MapView | undefined;
|
|
230
416
|
/**
|
|
231
|
-
*
|
|
232
|
-
*
|
|
417
|
+
* Clears side effects created by the result items, resets
|
|
418
|
+
* [state](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#state) to `"ready"`, and emits
|
|
419
|
+
* [@arcgisTraceResultClear](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#event-arcgisTraceResultClear).
|
|
420
|
+
*
|
|
421
|
+
* When this component is managed by [arcgis-utility-network-trace-analysis](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/), using the parent
|
|
422
|
+
* component's clear results action also clears its synchronized
|
|
423
|
+
* [traceResult](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#traceResult) and
|
|
424
|
+
* [traceError](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#traceError) values. Calling this method directly does not
|
|
425
|
+
* change those properties; set them to `undefined` when using this component independently.
|
|
233
426
|
*/
|
|
234
|
-
accessor view: MapView | undefined;
|
|
235
427
|
clearResults(): void;
|
|
236
428
|
/** Permanently destroy the component. */
|
|
237
429
|
destroy(): Promise<void>;
|
|
238
430
|
/** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
|
|
239
431
|
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "aggregatedGeometryResultsGraphicsColor" | "aggregatedGeometryResultsSize" | "hideGraphics" | "state" | "traceError" | "traceResult" | "utilityNetwork" | "view"; }>;
|
|
432
|
+
/**
|
|
433
|
+
* Fires when all participating result items finish processing the current
|
|
434
|
+
* [traceResult](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#traceResult), including when processing produces no results
|
|
435
|
+
* or a result item fails.
|
|
436
|
+
*
|
|
437
|
+
* Calling [clearResults()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#clearResults) during processing does not emit this
|
|
438
|
+
* event.
|
|
439
|
+
*/
|
|
240
440
|
readonly arcgisResultsReady: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
441
|
+
/**
|
|
442
|
+
* Fires when [clearResults()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#clearResults) is called.
|
|
443
|
+
* Replacing or clearing [traceResult](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#traceResult) directly does not emit
|
|
444
|
+
* this event.
|
|
445
|
+
*/
|
|
241
446
|
readonly arcgisTraceResultClear: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
242
447
|
/** Emitted when an action is triggered on the component. */
|
|
243
448
|
readonly arcgisTriggerAction: import("@arcgis/lumina").TargetedEvent<this, ActionEvent>;
|