@arcgis/map-components 6.0.0-next.19 → 6.0.0-next.20

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.
Files changed (102) hide show
  1. package/dist/cdn/{54252KWO.js → 4CLSMFD2.js} +1 -1
  2. package/dist/cdn/5RCFYMHK.js +2 -0
  3. package/dist/cdn/{WZL4TRBL.js → 6DDIOOI6.js} +1 -1
  4. package/dist/cdn/7FA44B44.js +2 -0
  5. package/dist/cdn/{ZJPWEZXZ.js → AXJE2SZV.js} +1 -1
  6. package/dist/cdn/{ECYWLMDD.js → CD2XIXN5.js} +1 -1
  7. package/dist/cdn/{P3AEIHWE.js → ELAKAKPE.js} +1 -1
  8. package/dist/cdn/{ODSZ7JZM.js → EVJFKABL.js} +1 -1
  9. package/dist/cdn/{HZDWPWBH.js → EWM5PERI.js} +1 -1
  10. package/dist/cdn/{AQ4GVWNJ.js → GD4XR5XA.js} +1 -1
  11. package/dist/cdn/{3LU4FSJG.js → J7VECW7F.js} +1 -1
  12. package/dist/cdn/{U3R2OX36.js → JPFLHUNR.js} +1 -1
  13. package/dist/cdn/{Z5GIFGHJ.js → KM7PWRG2.js} +1 -1
  14. package/dist/cdn/{GFYLYX2V.js → L4HKKYNC.js} +1 -1
  15. package/dist/cdn/{SAIBFBPE.js → LXLZB2JC.js} +1 -1
  16. package/dist/cdn/{77Q4KCLS.js → M2HYKS62.js} +1 -1
  17. package/dist/cdn/{35YLXOQ5.js → OBQUHPHJ.js} +1 -1
  18. package/dist/cdn/{4VNMYUM4.js → QPHKPPYM.js} +1 -1
  19. package/dist/cdn/ROHGHCK6.js +2 -0
  20. package/dist/cdn/{F72OTEK2.js → T2ONRGQX.js} +1 -1
  21. package/dist/cdn/{WC2N2XG6.js → TFXSKVB7.js} +1 -1
  22. package/dist/cdn/{NMGC3KRM.js → WV2GLDRQ.js} +1 -1
  23. package/dist/cdn/{ZS5IADYN.js → Y3S6WJN2.js} +1 -1
  24. package/dist/cdn/{NUZBBPNE.js → Z24QDG3E.js} +2 -2
  25. package/dist/cdn/ZPA5JUPD.js +2 -0
  26. package/dist/cdn/assets/feature-form-next/t9n/messages.en.json +1 -1
  27. package/dist/cdn/index.js +1 -1
  28. package/dist/chunks/attachment-utils.js +5 -5
  29. package/dist/components/arcgis-add-attachment-view/customElement.d.ts +9 -9
  30. package/dist/components/arcgis-attachment-detail-view/customElement.d.ts +9 -9
  31. package/dist/components/arcgis-attachment-preview/customElement.d.ts +9 -9
  32. package/dist/components/arcgis-attachment-thumbnail/customElement.d.ts +9 -9
  33. package/dist/components/arcgis-attachment-validation-view/customElement.d.ts +9 -9
  34. package/dist/components/arcgis-coordinate-conversion-next/customElement.js +29 -29
  35. package/dist/components/arcgis-feature-form-field/customElement.d.ts +9 -9
  36. package/dist/components/arcgis-link-chart/customElement.d.ts +7 -4
  37. package/dist/components/arcgis-map/customElement.d.ts +7 -4
  38. package/dist/components/arcgis-scene/customElement.d.ts +7 -4
  39. package/dist/components/arcgis-search/customElement.d.ts +1 -2
  40. package/dist/components/arcgis-selection-list/customElement.js +1 -1
  41. package/dist/components/arcgis-slider-scale-range/customElement.d.ts +12 -4
  42. package/dist/components/arcgis-slider-scale-range/spriteSheetsUtils.d.ts +8 -3
  43. package/dist/components/arcgis-swipe/customElement.d.ts +10 -9
  44. package/dist/components/arcgis-swipe/customElement.js +246 -46
  45. package/dist/components/arcgis-swipe/types.d.ts +3 -0
  46. package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +100 -20
  47. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +0 -1
  48. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +117 -29
  49. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +10 -10
  50. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +56 -9
  51. package/dist/docs/api.json +1 -1
  52. package/dist/docs/docs.json +1 -1
  53. package/dist/docs/vscode.html-custom-data.json +1 -1
  54. package/dist/docs/web-types.json +1 -1
  55. package/package.json +8 -8
  56. package/dist/cdn/2U3VASQT.js +0 -2
  57. package/dist/cdn/LYYBCY4N.js +0 -2
  58. package/dist/cdn/TN6WTZA2.js +0 -2
  59. package/dist/cdn/ZGOAZB5L.js +0 -2
  60. /package/dist/cdn/{YMN2Q7CW.js → 23L5GSFN.js} +0 -0
  61. /package/dist/cdn/{MQL4JTYG.js → 33LESQ6T.js} +0 -0
  62. /package/dist/cdn/{7QUHJ4F6.js → 6LUCQLB7.js} +0 -0
  63. /package/dist/cdn/{QYMZT7OC.js → 7SDUVBEL.js} +0 -0
  64. /package/dist/cdn/{NUCXXE6V.js → AKAOYYJ7.js} +0 -0
  65. /package/dist/cdn/{37Z3E4ZM.js → BP7H6IBX.js} +0 -0
  66. /package/dist/cdn/{SYIOPNRF.js → CEVISDMV.js} +0 -0
  67. /package/dist/cdn/{TS32SDVT.js → DQDUD556.js} +0 -0
  68. /package/dist/cdn/{EIQ3BKQI.js → DQRQZK5Y.js} +0 -0
  69. /package/dist/cdn/{O2VAKVIY.js → DRD2FAEC.js} +0 -0
  70. /package/dist/cdn/{7YXE3BUX.js → DWQQDLIU.js} +0 -0
  71. /package/dist/cdn/{GXIGMIXV.js → EGD2CSA7.js} +0 -0
  72. /package/dist/cdn/{C4EAONGF.js → ENHMLZOY.js} +0 -0
  73. /package/dist/cdn/{RGECACLD.js → FIYZBOAN.js} +0 -0
  74. /package/dist/cdn/{6MRDTILE.js → GE4QV5JC.js} +0 -0
  75. /package/dist/cdn/{72FJMPJ2.js → GGUWUNUA.js} +0 -0
  76. /package/dist/cdn/{T62G5MRK.js → ITRBNYSS.js} +0 -0
  77. /package/dist/cdn/{2JLC2JV7.js → JAH2AKJ5.js} +0 -0
  78. /package/dist/cdn/{CTVCZ2FU.js → KZUUBMYO.js} +0 -0
  79. /package/dist/cdn/{LCTJF3NT.js → LFSVKJXI.js} +0 -0
  80. /package/dist/cdn/{YASANB6O.js → MGE3J5KE.js} +0 -0
  81. /package/dist/cdn/{Y7KMV2PI.js → MPIIQAQO.js} +0 -0
  82. /package/dist/cdn/{LGPNRKDT.js → ONSMVZAM.js} +0 -0
  83. /package/dist/cdn/{JZSRPSRH.js → P3ZJLVKC.js} +0 -0
  84. /package/dist/cdn/{MM4N6C4V.js → PBXO27K2.js} +0 -0
  85. /package/dist/cdn/{YRYYWFPY.js → PSD74QRS.js} +0 -0
  86. /package/dist/cdn/{7P23WI52.js → PST64E7E.js} +0 -0
  87. /package/dist/cdn/{AE26KT54.js → S5MD2X3H.js} +0 -0
  88. /package/dist/cdn/{RENVCO3U.js → SFMD5PPC.js} +0 -0
  89. /package/dist/cdn/{VNY7TNRC.js → SIIF27TS.js} +0 -0
  90. /package/dist/cdn/{EULM4L53.js → T5XVILYA.js} +0 -0
  91. /package/dist/cdn/{OLEIOWZX.js → TT57O767.js} +0 -0
  92. /package/dist/cdn/{ORS7OWLJ.js → UN65FKRA.js} +0 -0
  93. /package/dist/cdn/{LNZRHKHG.js → V3HQQ6TJ.js} +0 -0
  94. /package/dist/cdn/{EVCKANRW.js → V7OBQRSG.js} +0 -0
  95. /package/dist/cdn/{KDO2EJA3.js → VCJ6M3PX.js} +0 -0
  96. /package/dist/cdn/{5ZLCMYZU.js → VWHNYGBM.js} +0 -0
  97. /package/dist/cdn/{53PKFG2U.js → WQIIAMYV.js} +0 -0
  98. /package/dist/cdn/{YN6VG7UO.js → X5RVRRKO.js} +0 -0
  99. /package/dist/cdn/{UCHDAO3V.js → Z66I2FAE.js} +0 -0
  100. /package/dist/cdn/{XJIILB3W.js → ZO5WNVFD.js} +0 -0
  101. /package/dist/cdn/{Y4D3Q4G7.js → ZQL4CTJK.js} +0 -0
  102. /package/dist/cdn/{P3BAHG4Q.js → ZUYPKJYL.js} +0 -0
@@ -1,10 +1,11 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import type SwipeViewModel from "@arcgis/core/widgets/Swipe/SwipeViewModel.js";
2
+ import type Collection from "@arcgis/core/core/Collection.js";
3
+ import type Layer from "@arcgis/core/layers/Layer.js";
3
4
  import type MapView from "@arcgis/core/views/MapView.js";
4
5
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
5
6
  import type { ArcgisReferenceElement } from "../types.js";
7
+ import type { SwipeDirection, SwipeState } from "./types.js";
6
8
  import type { T9nMeta } from "@arcgis/lumina/controllers";
7
- import type { Direction, State } from "@arcgis/core/widgets/Swipe/types.js";
8
9
 
9
10
  /**
10
11
  * The Swipe component provides a tool to show a portion of a layer or layers
@@ -50,7 +51,7 @@ export abstract class ArcgisSwipe extends LitElement {
50
51
  *
51
52
  * @default "horizontal"
52
53
  */
53
- accessor direction: Direction;
54
+ accessor direction: SwipeDirection;
54
55
  /**
55
56
  * When true, the component is visually de-emphasized and does not accept user interaction.
56
57
  *
@@ -63,7 +64,7 @@ export abstract class ArcgisSwipe extends LitElement {
63
64
  * @see [trailingLayers](https://developers.arcgis.com/javascript/latest/references/core/widgets/Swipe/SwipeViewModel/#trailingLayers)
64
65
  * @since 5.0
65
66
  */
66
- accessor endLayers: SwipeViewModel["trailingLayers"];
67
+ accessor endLayers: Collection<Layer>;
67
68
  /**
68
69
  * When `true`, the divider between the leading and trailing layers will be hidden.
69
70
  *
@@ -96,7 +97,7 @@ export abstract class ArcgisSwipe extends LitElement {
96
97
  * @deprecated since 5.0, use [startLayers](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-swipe/#startLayers) instead.
97
98
  * @see [leadingLayers](https://developers.arcgis.com/javascript/latest/references/core/widgets/Swipe/SwipeViewModel/#leadingLayers)
98
99
  */
99
- accessor leadingLayers: SwipeViewModel["leadingLayers"];
100
+ accessor leadingLayers: Collection<Layer>;
100
101
  /**
101
102
  * Replace localized message strings with your own strings.
102
103
  *
@@ -134,13 +135,13 @@ export abstract class ArcgisSwipe extends LitElement {
134
135
  * @see [leadingLayers](https://developers.arcgis.com/javascript/latest/references/core/widgets/Swipe/SwipeViewModel/#leadingLayers)
135
136
  * @since 5.0
136
137
  */
137
- accessor startLayers: SwipeViewModel["leadingLayers"];
138
+ accessor startLayers: Collection<Layer>;
138
139
  /**
139
140
  * The current state of the component.
140
141
  *
141
142
  * @default "disabled"
142
143
  */
143
- get state(): State;
144
+ get state(): SwipeState;
144
145
  /**
145
146
  * The position of the Swipe component. This determines what percentage
146
147
  * of the view will be taken up by the [startLayers](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-swipe/#startLayers).
@@ -155,12 +156,12 @@ export abstract class ArcgisSwipe extends LitElement {
155
156
  * @deprecated since 5.0, use [endLayers](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-swipe/#endLayers) instead.
156
157
  * @see [trailingLayers](https://developers.arcgis.com/javascript/latest/references/core/widgets/Swipe/SwipeViewModel/#trailingLayers)
157
158
  */
158
- accessor trailingLayers: SwipeViewModel["trailingLayers"];
159
+ accessor trailingLayers: Collection<Layer>;
159
160
  /**
160
161
  * The view associated with the component.
161
162
  * > **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-swipe component will be associated with a map or scene component rather than using the `view` property.
162
163
  */
163
- accessor view: MapView | null | undefined;
164
+ accessor view: MapView | undefined;
164
165
  /** Permanently destroy the component. */
165
166
  destroy(): Promise<void>;
166
167
  /** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
@@ -1,29 +1,229 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as x } from "../../chunks/runtime.js";
3
- import { css as _, html as d } from "lit";
4
- import { classes as g } from "@arcgis/toolkit/dom";
5
- import C from "@arcgis/core/widgets/Swipe/SwipeViewModel.js";
6
- import { LitElement as L, createEvent as v, safeClassMap as u, safeStyleMap as w, nothing as D } from "@arcgis/lumina";
7
- import { usePropertyChange as M } from "@arcgis/lumina/controllers";
8
- import { createRef as P, ref as $ } from "lit/directives/ref.js";
9
- import { u as K } from "../../chunks/useT9n.js";
10
- import { m as A } from "../../chunks/useViewModel.js";
11
- import { g as m } from "../../chunks/globalCss.js";
12
- import { l as b } from "../../chunks/legacyIcon.js";
13
- const S = _`:host{position:absolute;margin:0;background:transparent!important;padding:0;width:100%;height:100%;overflow:hidden;user-select:none;--arcgis-internal-swipe-handle-color-background: var(--calcite-color-background);--arcgis-internal-swipe-divider-color-background: var(--calcite-color-background)}.root{width:100%;height:100%;overflow:hidden;user-select:none}.root,.arcgis-ui .root{pointer-events:none!important}.container{position:absolute;z-index:1;margin:0;outline:0;border:0;padding:0;overflow:hidden;pointer-events:auto;touch-action:none;outline-color:transparent}.horizontal .container{margin-left:calc(var(--calcite-spacing-xxxl) / 2 * -1);cursor:col-resize;height:100%}.vertical .container{margin-top:calc(var(--calcite-spacing-xxxl) / 2 * -1);cursor:row-resize;width:100%}.disabled .container{cursor:default;pointer-events:none}.divider{position:absolute;background-color:var(--arcgis-internal-swipe-divider-color-background)}.horizontal .divider{top:0;left:calc(var(--calcite-spacing-xxxl) / 2);margin-left:calc(var(--calcite-border-width-lg) * .5 * -1);border-right:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-left:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);width:var(--calcite-border-width-lg);height:100%}.vertical .divider{top:calc(var(--calcite-spacing-xxxl) / 2);left:0;margin-top:calc(var(--calcite-border-width-lg) * .5 * -1);border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);width:100%;height:var(--calcite-border-width-lg)}.handle{display:flex;position:relative;align-items:center;justify-content:center;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-radius:var(--calcite-corner-radius-round);background-color:var(--arcgis-internal-swipe-handle-color-background);width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);color:var(--calcite-color-text-3)}.handle-hidden{visibility:hidden}.vertical .handle{rotate:90deg}.handle-icon{position:relative;z-index:2}.handle-icon:before{content:"|||";color:inherit}.horizontal .handle{top:calc(50% - calc(var(--calcite-spacing-xxxl) / 2))}.vertical .handle{left:calc(50% - calc(var(--calcite-spacing-xxxl) / 2))}.container:focus .handle,.container:focus .divider{outline:inset 2px var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)))}.container:focus .handle{outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}`, k = A(C);
14
- class z extends L {
2
+ import { c as z } from "../../chunks/runtime.js";
3
+ import { css as A, html as y } from "lit";
4
+ import { classes as b } from "@arcgis/toolkit/dom";
5
+ import { LitElement as K, createEvent as L, safeClassMap as C, safeStyleMap as D, nothing as E } from "@arcgis/lumina";
6
+ import { usePropertyChange as O } from "@arcgis/lumina/controllers";
7
+ import { createRef as S, ref as H } from "lit/directives/ref.js";
8
+ import { u as k } from "../../chunks/useT9n.js";
9
+ import { m as U } from "../../chunks/useViewModel.js";
10
+ import { g as P } from "../../chunks/globalCss.js";
11
+ import { l as $ } from "../../chunks/legacyIcon.js";
12
+ import I from "@arcgis/core/core/Accessor.js";
13
+ import f from "@arcgis/core/core/Collection.js";
14
+ import T from "@arcgis/core/core/Error.js";
15
+ import { property as p, subclass as j } from "@arcgis/core/core/accessorSupport/decorators.js";
16
+ import { watch as x } from "@arcgis/core/core/reactiveUtils.js";
17
+ import { c as R, i as X, l as Y } from "../../chunks/async-utils.js";
18
+ var B = Object.defineProperty, N = Object.getOwnPropertyDescriptor, d = (t, e, i, r) => {
19
+ for (var s = r > 1 ? void 0 : r ? N(e, i) : e, o = t.length - 1, a; o >= 0; o--)
20
+ (a = t[o]) && (s = (r ? a(e, i, s) : a(s)) || s);
21
+ return r && s && B(e, i, s), s;
22
+ };
23
+ const w = {
24
+ left: 0,
25
+ right: 0,
26
+ top: 0,
27
+ bottom: 0
28
+ }, M = {
29
+ leading: /* @__PURE__ */ Symbol("leading-clips"),
30
+ trailing: /* @__PURE__ */ Symbol("trailing-clips")
31
+ };
32
+ function V(t) {
33
+ return "clips" in t;
34
+ }
35
+ function F(t, e) {
36
+ const i = 10 ** e;
37
+ return Math.round(t * i) / i;
38
+ }
39
+ let l = class extends I {
40
+ constructor(t) {
41
+ super(t), this._leadingClips = /* @__PURE__ */ new Map(), this._trailingClips = /* @__PURE__ */ new Map(), this.direction = "horizontal", this.max = 100, this.min = 0, this.precision = 4, this.step = 0.5, this.stepMultiplier = 10, this.leadingLayers = new f(), this.trailingLayers = new f();
42
+ }
43
+ initialize() {
44
+ this.addHandles([
45
+ x(
46
+ () => [this.view, this.view?.ready, this.position, this.direction],
47
+ () => this._clipLayers(),
48
+ { initial: !0 }
49
+ ),
50
+ x(
51
+ () => this.leadingLayers.toArray(),
52
+ () => this._clipLeadingLayers(),
53
+ { initial: !0 }
54
+ ),
55
+ x(
56
+ () => this.trailingLayers.toArray(),
57
+ () => this._clipTrailingLayers(),
58
+ { initial: !0 }
59
+ )
60
+ ]);
61
+ }
62
+ destroy() {
63
+ this._removeExistingClips();
64
+ }
65
+ get leadingLayers() {
66
+ return this._get("leadingLayers");
67
+ }
68
+ set leadingLayers(t) {
69
+ this._set("leadingLayers", t instanceof f ? t : new f(t));
70
+ }
71
+ get position() {
72
+ return 25;
73
+ }
74
+ set position(t) {
75
+ const { precision: e, min: i, max: r } = this;
76
+ this._set("position", F(Math.max(Math.min(t, r), i), e));
77
+ }
78
+ get state() {
79
+ return this.view?.ready ? "ready" : "disabled";
80
+ }
81
+ get trailingLayers() {
82
+ return this._get("trailingLayers");
83
+ }
84
+ set trailingLayers(t) {
85
+ this._set("trailingLayers", t instanceof f ? t : new f(t));
86
+ }
87
+ _clipLayers() {
88
+ this._clipLeadingLayers(), this._clipTrailingLayers();
89
+ }
90
+ _clipLeadingLayers() {
91
+ this._removeClips("leading");
92
+ const { leadingLayers: t } = this;
93
+ t.forEach((e) => {
94
+ this.addHandles(
95
+ R((i) => this._clipLayer({ layer: e, type: "leading" }, i)),
96
+ M.leading
97
+ );
98
+ });
99
+ }
100
+ _clipTrailingLayers() {
101
+ this._removeClips("trailing");
102
+ const { trailingLayers: t } = this;
103
+ t.forEach((e) => {
104
+ this.addHandles(
105
+ R((i) => this._clipLayer({ layer: e, type: "trailing" }, i)),
106
+ M.trailing
107
+ );
108
+ });
109
+ }
110
+ async _getLayerView(t) {
111
+ const { view: e } = this;
112
+ if (!t || !e)
113
+ return null;
114
+ const i = await e.whenLayerView(t);
115
+ return V(i) ? i : null;
116
+ }
117
+ _getVerticalClipRect(t) {
118
+ const { position: e } = this;
119
+ return t === "leading" ? {
120
+ type: "rect",
121
+ ...w,
122
+ bottom: `${100 - e}%`
123
+ } : t === "trailing" ? {
124
+ type: "rect",
125
+ ...w,
126
+ top: `${e}%`
127
+ } : null;
128
+ }
129
+ _getHorizontalClipRect(t) {
130
+ const { position: e } = this;
131
+ return t === "leading" ? {
132
+ type: "rect",
133
+ ...w,
134
+ right: `${100 - e}%`
135
+ } : t === "trailing" ? {
136
+ type: "rect",
137
+ ...w,
138
+ left: `${e}%`
139
+ } : null;
140
+ }
141
+ _getClipRect(t) {
142
+ const { direction: e } = this;
143
+ return e === "vertical" ? this._getVerticalClipRect(t) : e === "horizontal" ? this._getHorizontalClipRect(t) : null;
144
+ }
145
+ async _clipLayer(t, e) {
146
+ const { _leadingClips: i, _trailingClips: r, view: s } = this, { layer: o, type: a } = t, c = a === "trailing" ? r : a === "leading" ? i : null;
147
+ try {
148
+ const n = await this._getLayerView(o);
149
+ if (e.aborted || this.destroyed || s !== this.view || !n || !c || !(a === "leading" ? this.leadingLayers : this.trailingLayers).includes(o))
150
+ return;
151
+ const g = c.get(n);
152
+ g && n.clips.remove(g);
153
+ const v = this._getClipRect(a);
154
+ if (v) {
155
+ const m = n.clips.length;
156
+ n.clips.add(v);
157
+ const u = n.clips.at(m);
158
+ u && c.set(n, u);
159
+ }
160
+ } catch (n) {
161
+ if (e.aborted || X(n) || n instanceof T && n.name === "view:no-layerview-for-layer")
162
+ return;
163
+ Y(n, this.declaredClass, "Failed to clip layer");
164
+ }
165
+ }
166
+ _removeClips(t) {
167
+ this.removeHandles(M[t]);
168
+ const { _leadingClips: e, _trailingClips: i } = this, r = t === "trailing" ? i : t === "leading" ? e : null;
169
+ r && (r.forEach((s, o) => {
170
+ V(o) && o.clips.remove(s);
171
+ }), r.clear());
172
+ }
173
+ _removeExistingClips() {
174
+ this._removeClips("leading"), this._removeClips("trailing");
175
+ }
176
+ };
177
+ d([
178
+ p()
179
+ ], l.prototype, "direction", 2);
180
+ d([
181
+ p()
182
+ ], l.prototype, "leadingLayers", 1);
183
+ d([
184
+ p({ readOnly: !0 })
185
+ ], l.prototype, "max", 2);
186
+ d([
187
+ p({ readOnly: !0 })
188
+ ], l.prototype, "min", 2);
189
+ d([
190
+ p()
191
+ ], l.prototype, "position", 1);
192
+ d([
193
+ p()
194
+ ], l.prototype, "precision", 2);
195
+ d([
196
+ p({ readOnly: !0 })
197
+ ], l.prototype, "state", 1);
198
+ d([
199
+ p()
200
+ ], l.prototype, "step", 2);
201
+ d([
202
+ p()
203
+ ], l.prototype, "stepMultiplier", 2);
204
+ d([
205
+ p()
206
+ ], l.prototype, "trailingLayers", 1);
207
+ d([
208
+ p()
209
+ ], l.prototype, "view", 2);
210
+ l = d([
211
+ j("map-components.swipe.SwipeViewModel")
212
+ ], l);
213
+ const W = A`:host{position:absolute;margin:0;background:transparent!important;padding:0;width:100%;height:100%;overflow:hidden;user-select:none;--arcgis-internal-swipe-handle-color-background: var(--calcite-color-background);--arcgis-internal-swipe-divider-color-background: var(--calcite-color-background)}.root{width:100%;height:100%;overflow:hidden;user-select:none}.root,.arcgis-ui .root{pointer-events:none!important}.container{position:absolute;z-index:1;margin:0;outline:0;border:0;padding:0;overflow:hidden;pointer-events:auto;touch-action:none;outline-color:transparent}.horizontal .container{margin-left:calc(var(--calcite-spacing-xxxl) / 2 * -1);cursor:col-resize;height:100%}.vertical .container{margin-top:calc(var(--calcite-spacing-xxxl) / 2 * -1);cursor:row-resize;width:100%}.disabled .container{cursor:default;pointer-events:none}.divider{position:absolute;background-color:var(--arcgis-internal-swipe-divider-color-background)}.horizontal .divider{top:0;left:calc(var(--calcite-spacing-xxxl) / 2);margin-left:calc(var(--calcite-border-width-lg) * .5 * -1);border-right:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-left:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);width:var(--calcite-border-width-lg);height:100%}.vertical .divider{top:calc(var(--calcite-spacing-xxxl) / 2);left:0;margin-top:calc(var(--calcite-border-width-lg) * .5 * -1);border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);width:100%;height:var(--calcite-border-width-lg)}.handle{display:flex;position:relative;align-items:center;justify-content:center;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-radius:var(--calcite-corner-radius-round);background-color:var(--arcgis-internal-swipe-handle-color-background);width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);color:var(--calcite-color-text-3)}.handle-hidden{visibility:hidden}.vertical .handle{rotate:90deg}.handle-icon{position:relative;z-index:2}.handle-icon:before{content:"|||";color:inherit}.horizontal .handle{top:calc(50% - calc(var(--calcite-spacing-xxxl) / 2))}.vertical .handle{left:calc(50% - calc(var(--calcite-spacing-xxxl) / 2))}.container:focus .handle,.container:focus .divider{outline:inset 2px var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)))}.container:focus .handle{outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}`, q = U(l);
214
+ class G extends K {
15
215
  constructor() {
16
- super(...arguments), this._container = null, this._containerRef = P(), this._swiping = !1, this._positionChanged = !1, this.messages = K({}), this._pointerOffset = 0, this.viewModel = k(this), this._onContainerPointerDown = (e) => {
216
+ super(...arguments), this._containerRef = S(), this._swiping = !1, this._positionChanged = !1, this.messages = k({}), this._pointerOffset = 0, this.viewModel = q(this), this._onContainerPointerDown = (e) => {
17
217
  e.preventDefault();
18
- const { _container: i } = this;
218
+ const i = this._containerRef.value;
19
219
  i && document.activeElement !== this.el && i.focus(), this._swiping = !0, this._calculatePointerOffset(e);
20
- }, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.direction = this.viewModel.direction, this.disabled = !1, this.hideDivider = !1, this.hideHandle = !1, this.icon = "compare", this.label = this.messages.componentLabel, this.position = this.viewModel.position, this.state = this.viewModel.state, this.arcgisPropertyChange = M()("state"), this.arcgisReady = v(), this.arcgisSwipeChange = v(), this.arcgisSwipeInput = v();
220
+ }, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.direction = this.viewModel.direction, this.disabled = !1, this.hideDivider = !1, this.hideHandle = !1, this.icon = "compare", this.label = this.messages.componentLabel, this.position = this.viewModel.position, this.state = this.viewModel.state, this.arcgisPropertyChange = O()("state"), this.arcgisReady = L(), this.arcgisSwipeChange = L(), this.arcgisSwipeInput = L();
21
221
  }
22
222
  static {
23
223
  this.properties = { view: 0, autoDestroyDisabled: 5, direction: 3, disabled: 7, endLayers: 0, hideDivider: 7, hideHandle: 7, icon: 1, label: 1, leadingLayers: 0, messageOverrides: 0, position: 9, startLayers: 0, swipePosition: 9, referenceElement: 1, state: 32, trailingLayers: 0 };
24
224
  }
25
225
  static {
26
- this.styles = S;
226
+ this.styles = W;
27
227
  }
28
228
  get endLayers() {
29
229
  return this.viewModel.trailingLayers;
@@ -62,8 +262,8 @@ class z extends L {
62
262
  this.listenOn(document, "pointermove", this._onContainerPointerMove), this.listenOn(document, "pointerup", this._onContainerPointerUp);
63
263
  }
64
264
  _calculatePointerOffset(e) {
65
- const { direction: i } = this, t = this._containerRef.value, r = (i === "vertical" ? t.clientHeight : t.clientWidth) / 2, o = t.getBoundingClientRect(), n = e.clientX - o.left, c = e.clientY - o.top;
66
- this._pointerOffset = i === "vertical" ? c - r : n - r;
265
+ const { direction: i } = this, r = this._containerRef.value, s = (i === "vertical" ? r.clientHeight : r.clientWidth) / 2, o = r.getBoundingClientRect(), a = e.clientX - o.left, c = e.clientY - o.top;
266
+ this._pointerOffset = i === "vertical" ? c - s : a - s;
67
267
  }
68
268
  _onContainerPointerUp(e) {
69
269
  this._swiping && (e.preventDefault(), this._positionChanged && (this.arcgisSwipeChange.emit(), this._positionChanged = !1), this._swiping = !1);
@@ -72,56 +272,56 @@ class z extends L {
72
272
  if (!this._swiping)
73
273
  return;
74
274
  e.preventDefault();
75
- const { _pointerOffset: i, el: t, direction: r } = this, { clientX: o, clientY: n } = e, { top: c, left: s, width: a, height: l } = t.getBoundingClientRect(), f = r === "vertical" ? l : a, h = (r === "vertical" ? n - c - i : o - s - i) / f * 100;
76
- this.position !== h && (this.position = h, this._positionChanged = !0, this.arcgisSwipeInput.emit());
275
+ const { _pointerOffset: i, el: r, direction: s } = this, { clientX: o, clientY: a } = e, { top: c, left: n, width: h, height: g } = r.getBoundingClientRect(), v = s === "vertical" ? g : h, u = (s === "vertical" ? a - c - i : o - n - i) / v * 100;
276
+ this.position !== u && (this.position = u, this._positionChanged = !0, this.arcgisSwipeInput.emit());
77
277
  }
78
278
  _getKeyPosition(e) {
79
- const { key: i } = e, { position: t } = this, { max: r, min: o, step: n, stepMultiplier: c, direction: s } = this.viewModel, a = n * c;
80
- if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"].includes(i) && (e.preventDefault(), e.stopPropagation()), s === "vertical" ? i === "ArrowDown" || i === "ArrowRight" : i === "ArrowUp" || i === "ArrowRight") {
81
- const p = e.shiftKey ? a : n;
82
- return t + p;
279
+ const { key: i } = e, { position: r } = this, { max: s, min: o, step: a, stepMultiplier: c, direction: n } = this.viewModel, h = a * c;
280
+ if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"].includes(i) && (e.preventDefault(), e.stopPropagation()), n === "vertical" ? i === "ArrowDown" || i === "ArrowRight" : i === "ArrowUp" || i === "ArrowRight") {
281
+ const _ = e.shiftKey ? h : a;
282
+ return r + _;
83
283
  }
84
- if (s === "vertical" ? i === "ArrowUp" || i === "ArrowLeft" : i === "ArrowDown" || i === "ArrowLeft") {
85
- const p = e.shiftKey ? a : n;
86
- return t - p;
284
+ if (n === "vertical" ? i === "ArrowUp" || i === "ArrowLeft" : i === "ArrowDown" || i === "ArrowLeft") {
285
+ const _ = e.shiftKey ? h : a;
286
+ return r - _;
87
287
  }
88
- return i === "Home" ? o : i === "End" ? r : (s === "vertical" ? i === "PageDown" : i === "PageUp") ? t + a : (s === "vertical" ? i === "PageUp" : i === "PageDown") ? t - a : null;
288
+ return i === "Home" ? o : i === "End" ? s : (n === "vertical" ? i === "PageDown" : i === "PageUp") ? r + h : (n === "vertical" ? i === "PageUp" : i === "PageDown") ? r - h : null;
89
289
  }
90
290
  _onContainerKeyDown(e) {
91
291
  const i = this._getKeyPosition(e);
92
292
  typeof i == "number" && this.position !== i && (this.position = i, this.arcgisSwipeInput.emit(), this.arcgisSwipeChange.emit());
93
293
  }
94
294
  render() {
95
- const { state: e, direction: i } = this.viewModel, t = e === "disabled" || this.disabled, r = {
96
- [m.disabled]: t,
97
- disabled: t,
295
+ const { state: e, direction: i } = this.viewModel, r = e === "disabled" || this.disabled, s = {
296
+ [P.disabled]: r,
297
+ disabled: r,
98
298
  vertical: i === "vertical",
99
299
  horizontal: i === "horizontal"
100
300
  };
101
- return d`<div class=${u(g("root", m.widget, r))}>${e === "disabled" ? null : this._renderContainer()}</div>`;
301
+ return y`<div class=${C(b("root", P.widget, s))}>${e === "disabled" ? null : this._renderContainer()}</div>`;
102
302
  }
103
303
  _renderHandle() {
104
- const { direction: e } = this.viewModel, { hideHandle: i } = this, t = {
105
- [b.dragHorizontal]: e === "vertical",
106
- [b.dragVertical]: e === "horizontal"
107
- }, r = g("handle", !!i && "handle-hidden");
108
- return d`<div class=${u(r)} role=presentation><span aria-hidden=true class=${u(g("handle-icon", t))}></span></div>`;
304
+ const { direction: e } = this.viewModel, { hideHandle: i } = this, r = {
305
+ [$.dragHorizontal]: e === "vertical",
306
+ [$.dragVertical]: e === "horizontal"
307
+ }, s = b("handle", !!i && "handle-hidden");
308
+ return y`<div class=${C(s)} role=presentation><span aria-hidden=true class=${C(b("handle-icon", r))}></span></div>`;
109
309
  }
110
310
  _renderDivider() {
111
- return this.hideDivider ? null : d`<div class="divider" role=presentation></div>`;
311
+ return this.hideDivider ? null : y`<div class="divider" role=presentation></div>`;
112
312
  }
113
313
  _renderContent() {
114
314
  return [this._renderDivider(), this._renderHandle()];
115
315
  }
116
316
  _renderContainer() {
117
- const { disabled: e, viewModel: i } = this, { max: t, min: r, direction: o, position: n } = i, c = this.label ?? this.messages.dragLabel ?? "", s = `${n}%`, a = {
118
- top: o === "vertical" ? s : void 0,
119
- left: o === "vertical" ? void 0 : s
120
- }, l = this._renderContent();
121
- return e ? d`<div class="container" role=presentation style=${w(a)}>${l}</div>` : d`<div @pointerdown=${this._onContainerPointerDown} .ariaLabel=${c} .ariaOrientation=${o} .ariaValueMax=${`${t}`} .ariaValueMin=${`${r}`} .ariaValueNow=${`${n}`} .ariaValueText=${s} class="container" @keydown=${this._onContainerKeyDown} role=slider style=${w(a)} tabindex=0 title=${c ?? D} touch-action=none ${$(this._containerRef)}>${l}</div>`;
317
+ const { disabled: e, viewModel: i } = this, { max: r, min: s, direction: o, position: a } = i, c = this.label ?? this.messages.dragLabel ?? "", n = `${a}%`, h = {
318
+ top: o === "vertical" ? n : void 0,
319
+ left: o === "vertical" ? void 0 : n
320
+ }, g = this._renderContent();
321
+ return e ? y`<div class="container" role=presentation style=${D(h)}>${g}</div>` : y`<div @pointerdown=${this._onContainerPointerDown} .ariaLabel=${c} .ariaOrientation=${o} .ariaValueMax=${`${r}`} .ariaValueMin=${`${s}`} .ariaValueNow=${`${a}`} .ariaValueText=${n} class="container" @keydown=${this._onContainerKeyDown} role=slider style=${D(h)} tabindex=0 title=${c ?? E} touch-action=none ${H(this._containerRef)}>${g}</div>`;
122
322
  }
123
323
  }
124
- x("arcgis-swipe", z);
324
+ z("arcgis-swipe", G);
125
325
  export {
126
- z as ArcgisSwipe
326
+ G as ArcgisSwipe
127
327
  };
@@ -0,0 +1,3 @@
1
+ export type SwipeDirection = "horizontal" | "vertical";
2
+
3
+ export type SwipeState = "disabled" | "ready";
@@ -9,9 +9,62 @@ import type { UtilityNetworkTraceResultItemState } from "../arcgis-utility-netwo
9
9
  import type { T9nMeta } from "@arcgis/lumina/controllers";
10
10
 
11
11
  /**
12
- * Trace result item for displaying [aggregated geometry](https://developers.arcgis.com/javascript/latest/references/core/rest/networks/support/TraceResult/#aggregatedGeometry) results from a trace.
12
+ * The Utility Network Trace Aggregated Geometry Result Item component displays the
13
+ * [aggregated geometry](https://developers.arcgis.com/javascript/latest/references/core/rest/networks/support/TraceResult/#aggregatedGeometry)
14
+ * returned by a utility network trace. It creates graphics for the result's line, multipoint, and polygon geometries
15
+ * and displays them in the view. Provides options to show or hide the graphics, change their color and size.
16
+ *
17
+ * Add this component directly to the default slot of [arcgis-utility-network-trace-results](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/).
18
+ * The parent supplies the required read-only properties for the
19
+ * [trace result](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#traceResult) and
20
+ * [MapView](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#view).
21
+ *
22
+ * By default, the [arcgis-utility-network-trace-results](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/) component displays the
23
+ * [aggregated geometry](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/),
24
+ * [elements](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-elements-result-item/), and
25
+ * [functions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-functions-result-item/) result items for the result types
26
+ * returned by the trace. Adding content to its default slot replaces all default result items. Add each result item
27
+ * that the custom configuration should display.
28
+ *
29
+ * By default, the component creates and manages a graphics layer. Set
30
+ * [graphicsLayer](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#graphicsLayer) to render the
31
+ * aggregated geometry graphics in an existing layer instead.
13
32
  *
14
33
  * @since 5.2
34
+ * @example
35
+ * The following example displays aggregated geometry in a custom set of trace result items.
36
+ * Providing result items in the default slot replaces the parent's default result items.
37
+ * This example displays only aggregated geometry results.
38
+ * ```html
39
+ * <arcgis-map item-id="471eb0bf37074b1fbb972b1da70fb310">
40
+ * <arcgis-utility-network-trace-analysis slot="bottom-left">
41
+ * <arcgis-utility-network-trace-results slot="results">
42
+ * <arcgis-utility-network-trace-aggregated-geometry-result-item>
43
+ * </arcgis-utility-network-trace-aggregated-geometry-result-item>
44
+ * </arcgis-utility-network-trace-results>
45
+ * </arcgis-utility-network-trace-analysis>
46
+ * </arcgis-map>
47
+ * ```
48
+ * @example
49
+ * Customize the color and size of the aggregated geometry graphics. Setting `hide-graphics` initially hides the
50
+ * graphics from the map. Users can show them with the component's toggle.
51
+ * ```html
52
+ * <arcgis-map item-id="471eb0bf37074b1fbb972b1da70fb310">
53
+ * <arcgis-utility-network-trace-analysis slot="bottom-left">
54
+ * <arcgis-utility-network-trace-results slot="results">
55
+ * <arcgis-utility-network-trace-aggregated-geometry-result-item
56
+ * graphics-color="rgba(0, 122, 194, 0.6)"
57
+ * selection-size="8"
58
+ * hide-graphics
59
+ * ></arcgis-utility-network-trace-aggregated-geometry-result-item>
60
+ * </arcgis-utility-network-trace-results>
61
+ * </arcgis-utility-network-trace-analysis>
62
+ * </arcgis-map>
63
+ * ```
64
+ * @see [arcgis-utility-network-trace-results](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/)
65
+ * @see [arcgis-utility-network-trace-analysis](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/)
66
+ * @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/)
67
+ * @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/)
15
68
  * @see [Result types](https://doc.esri.com/en/arcgis-pro/latest/help/data/utility-network/configure-a-trace.html#DA5)
16
69
  */
17
70
  export abstract class ArcgisUtilityNetworkTraceAggregatedGeometryResultItem extends LitElement {
@@ -57,23 +110,39 @@ export abstract class ArcgisUtilityNetworkTraceAggregatedGeometryResultItem exte
57
110
  * @default false
58
111
  */
59
112
  get emitsArcgisResultReady(): true;
60
- /** The graphics which represent the aggregated geometry results from the trace. */
113
+ /**
114
+ * The graphics created from the line, multipoint, and polygon geometries in the aggregated geometry result.
115
+ *
116
+ * Read this property after
117
+ * [@arcgisResultReady](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#event-arcgisResultReady) fires.
118
+ */
61
119
  get geometryGraphics(): Graphic[];
62
120
  /**
63
- * The color used for the aggregated geometry graphics.
64
- * Default value is #FFFF00.
121
+ * The color of the aggregated geometry graphics.
122
+ * The default is yellow with 0.6 opacity.
123
+ *
124
+ * @see [Color constructor](https://developers.arcgis.com/javascript/latest/references/core/Color/#constructors-summary)
65
125
  */
66
126
  accessor graphicsColor: Color;
67
127
  /**
68
- * The layer used to render the graphics which represent the aggregated geometry result.
69
- * If this property is not specified, a new layer will be created on the map.
128
+ * The layer used to render the aggregated geometry graphics.
129
+ *
130
+ * When the result is cleared or the component is destroyed:
131
+ *
132
+ * - If the layer is provided by the application, the component removes only the aggregated geometry graphics it
133
+ * created. The layer and any other graphics remain unchanged.
134
+ * - If no layer is provided, the component creates and manages a layer. It removes the aggregated geometry graphics
135
+ * and the component-owned layer from the map.
70
136
  */
71
137
  accessor graphicsLayer: GraphicsLayer | undefined;
72
- /** The heading of the result item. */
138
+ /** The heading displayed above the aggregated geometry controls. */
73
139
  accessor heading: string | undefined;
74
140
  /**
75
- * 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)
76
- * from the map when the trace result contains aggregated geometry results.
141
+ * Whether to hide the aggregated geometry graphics from the map.
142
+ *
143
+ * When true, the graphics remain available through
144
+ * [geometryGraphics](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#geometryGraphics) but are removed
145
+ * from the [graphicsLayer](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#graphicsLayer).
77
146
  *
78
147
  * @default false
79
148
  */
@@ -92,28 +161,36 @@ export abstract class ArcgisUtilityNetworkTraceAggregatedGeometryResultItem exte
92
161
  showGraphics?: string | undefined;
93
162
  };
94
163
  /**
95
- * The size of the aggregated geometry graphics to render, in points.
164
+ * The marker size and line or polygon-outline width of the aggregated geometry graphics, in points.
165
+ * The default is 12.
96
166
  *
97
167
  * @default 12
98
168
  */
99
169
  accessor selectionSize: number;
100
170
  /**
101
- * Whether the component has finished adding aggregated geometry graphics to the map.
171
+ * The processing state of the aggregated geometry result item: `"loading"` while processing a trace result and
172
+ * `"ready"` when no processing is in progress.
102
173
  *
103
174
  * @default "ready"
104
175
  */
105
176
  get state(): UtilityNetworkTraceResultItemState;
106
- /** The trace result containing the aggregated geometry result to render graphics for. */
177
+ /** The trace result containing the aggregated geometry to display. */
107
178
  get traceResult(): TraceResult | undefined;
108
179
  /**
109
- * The view associated with the component.
110
- * > **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-trace-aggregated-geometry-result-item component will be associated with a map or scene component rather than using the `view` property.
180
+ * The MapView supplied by the parent [arcgis-utility-network-trace-results](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/) component.
181
+ * Used to display the aggregated geometry graphics.
111
182
  */
112
183
  get view(): MapView | undefined;
113
184
  /**
114
185
  * Removes the aggregated geometry graphics from the
115
186
  * [graphicsLayer](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#graphicsLayer).
116
- * If the layer was created by the component, it is also removed from the map.
187
+ * If the layer was created by the component, it is also removed from the map. The method clears
188
+ * [geometryGraphics](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#geometryGraphics) and resets
189
+ * [state](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#state) to `"ready"`.
190
+ *
191
+ * This method does not clear the parent-provided
192
+ * [traceResult](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#traceResult) or emit
193
+ * [@arcgisResultReady](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#event-arcgisResultReady).
117
194
  */
118
195
  clearResult(): void;
119
196
  /** Permanently destroy the component. */
@@ -121,13 +198,16 @@ export abstract class ArcgisUtilityNetworkTraceAggregatedGeometryResultItem exte
121
198
  /** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
122
199
  readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "hideGraphics" | "geometryGraphics" | "graphicsColor" | "selectionSize" | "state"; }>;
123
200
  /**
124
- * Fires when the component finishes processing the aggregated geometry results.
201
+ * Fires when the component finishes processing the current trace result.
125
202
  *
126
- * If the component has a valid trace result with aggregated geometry results, this fires
127
- * when the aggregated geometry graphics have been added to the map.
203
+ * For a result with aggregated geometry, the event fires after the graphics are created and, unless
204
+ * [hideGraphics](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#hideGraphics) is `true`, added to
205
+ * the map. The event also fires when processing completes without graphics because the result, aggregated geometry,
206
+ * or map view is unavailable.
128
207
  *
129
- * If the component does not have a valid map or trace result, this fires when the
130
- * component has finished loading.
208
+ * Clearing a result with
209
+ * [clearResult()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#clearResult) does not emit this
210
+ * event.
131
211
  */
132
212
  readonly arcgisResultReady: import("@arcgis/lumina").TargetedEvent<this, void>;
133
213
  readonly "@eventTypes": {
@@ -93,7 +93,6 @@ import type { UtilityNetworkTraceAnalysisState } from "@arcgis/core/networks/Uti
93
93
  * @slot
94
94
  * [results] - Slot for instances of [arcgis-utility-network-trace-results](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/),
95
95
  * for displaying the results of one or more traces.
96
- * @internal
97
96
  * @since 5.0
98
97
  */
99
98
  export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {