@arcgis/map-components 5.1.0-next.103 → 5.1.0-next.104

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 (118) hide show
  1. package/dist/cdn/37PU5RQF.js +2 -0
  2. package/dist/cdn/{FBVHVWJP.js → 4BUXOQ5X.js} +1 -1
  3. package/dist/cdn/7YEXZHW3.js +2 -0
  4. package/dist/cdn/CXPIQET3.js +2 -0
  5. package/dist/cdn/GFXNIWNG.js +2 -0
  6. package/dist/cdn/{M2ECO3EZ.js → LTUURA6B.js} +1 -1
  7. package/dist/cdn/MXXKVA3L.js +2 -0
  8. package/dist/cdn/{6HRKATQQ.js → S36YQI7W.js} +1 -1
  9. package/dist/cdn/assets/slider-time/t9n/messages.ar.json +1 -1
  10. package/dist/cdn/assets/slider-time/t9n/messages.bg.json +1 -1
  11. package/dist/cdn/assets/slider-time/t9n/messages.bs.json +1 -1
  12. package/dist/cdn/assets/slider-time/t9n/messages.ca.json +1 -1
  13. package/dist/cdn/assets/slider-time/t9n/messages.cs.json +1 -1
  14. package/dist/cdn/assets/slider-time/t9n/messages.da.json +1 -1
  15. package/dist/cdn/assets/slider-time/t9n/messages.de.json +1 -1
  16. package/dist/cdn/assets/slider-time/t9n/messages.el.json +1 -1
  17. package/dist/cdn/assets/slider-time/t9n/messages.es.json +1 -1
  18. package/dist/cdn/assets/slider-time/t9n/messages.et.json +1 -1
  19. package/dist/cdn/assets/slider-time/t9n/messages.fi.json +1 -1
  20. package/dist/cdn/assets/slider-time/t9n/messages.fr.json +1 -1
  21. package/dist/cdn/assets/slider-time/t9n/messages.he.json +1 -1
  22. package/dist/cdn/assets/slider-time/t9n/messages.hr.json +1 -1
  23. package/dist/cdn/assets/slider-time/t9n/messages.hu.json +1 -1
  24. package/dist/cdn/assets/slider-time/t9n/messages.id.json +1 -1
  25. package/dist/cdn/assets/slider-time/t9n/messages.it.json +1 -1
  26. package/dist/cdn/assets/slider-time/t9n/messages.ja.json +1 -1
  27. package/dist/cdn/assets/slider-time/t9n/messages.ko.json +1 -1
  28. package/dist/cdn/assets/slider-time/t9n/messages.lt.json +1 -1
  29. package/dist/cdn/assets/slider-time/t9n/messages.lv.json +1 -1
  30. package/dist/cdn/assets/slider-time/t9n/messages.nl.json +1 -1
  31. package/dist/cdn/assets/slider-time/t9n/messages.no.json +1 -1
  32. package/dist/cdn/assets/slider-time/t9n/messages.pl.json +1 -1
  33. package/dist/cdn/assets/slider-time/t9n/messages.pt-BR.json +1 -1
  34. package/dist/cdn/assets/slider-time/t9n/messages.pt-PT.json +1 -1
  35. package/dist/cdn/assets/slider-time/t9n/messages.ro.json +1 -1
  36. package/dist/cdn/assets/slider-time/t9n/messages.ru.json +1 -1
  37. package/dist/cdn/assets/slider-time/t9n/messages.sk.json +1 -1
  38. package/dist/cdn/assets/slider-time/t9n/messages.sl.json +1 -1
  39. package/dist/cdn/assets/slider-time/t9n/messages.sr.json +1 -1
  40. package/dist/cdn/assets/slider-time/t9n/messages.sv.json +1 -1
  41. package/dist/cdn/assets/slider-time/t9n/messages.th.json +1 -1
  42. package/dist/cdn/assets/slider-time/t9n/messages.tr.json +1 -1
  43. package/dist/cdn/assets/slider-time/t9n/messages.uk.json +1 -1
  44. package/dist/cdn/assets/slider-time/t9n/messages.vi.json +1 -1
  45. package/dist/cdn/assets/slider-time/t9n/messages.zh-CN.json +1 -1
  46. package/dist/cdn/assets/slider-time/t9n/messages.zh-HK.json +1 -1
  47. package/dist/cdn/assets/slider-time/t9n/messages.zh-TW.json +1 -1
  48. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.en.json +1 -1
  49. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.en.json +1 -1
  50. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ar.json +1 -1
  51. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.bg.json +1 -1
  52. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.bs.json +1 -1
  53. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ca.json +1 -1
  54. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.cs.json +1 -1
  55. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.da.json +1 -1
  56. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.de.json +1 -1
  57. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.el.json +1 -1
  58. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.es.json +1 -1
  59. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.et.json +1 -1
  60. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.fi.json +1 -1
  61. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.fr.json +1 -1
  62. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.he.json +1 -1
  63. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.hr.json +1 -1
  64. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.hu.json +1 -1
  65. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.id.json +1 -1
  66. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.it.json +1 -1
  67. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ja.json +1 -1
  68. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ko.json +1 -1
  69. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.lt.json +1 -1
  70. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.lv.json +1 -1
  71. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.nl.json +1 -1
  72. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.no.json +1 -1
  73. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pl.json +1 -1
  74. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pt-BR.json +1 -1
  75. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pt-PT.json +1 -1
  76. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ro.json +1 -1
  77. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ru.json +1 -1
  78. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sk.json +1 -1
  79. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sl.json +1 -1
  80. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sr.json +1 -1
  81. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sv.json +1 -1
  82. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.th.json +1 -1
  83. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.tr.json +1 -1
  84. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.uk.json +1 -1
  85. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.vi.json +1 -1
  86. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-CN.json +1 -1
  87. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-HK.json +1 -1
  88. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-TW.json +1 -1
  89. package/dist/cdn/index.js +1 -1
  90. package/dist/chunks/useArcgisViewReadyError.js +115 -56
  91. package/dist/components/arcgis-directions/customElement.js +4 -4
  92. package/dist/components/arcgis-link-chart/customElement.d.ts +1 -0
  93. package/dist/components/arcgis-link-chart/customElement.js +13 -10
  94. package/dist/components/arcgis-map/customElement.d.ts +1 -0
  95. package/dist/components/arcgis-map/customElement.js +13 -10
  96. package/dist/components/arcgis-scene/customElement.d.ts +1 -0
  97. package/dist/components/arcgis-scene/customElement.js +23 -20
  98. package/dist/components/arcgis-search/customElement.js +6 -6
  99. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +21 -21
  100. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +4 -4
  101. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +16 -16
  102. package/dist/components/arcgis-utility-network-validate-network-topology/customElement.d.ts +161 -35
  103. package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +5 -1
  104. package/dist/docs/api.json +1 -1
  105. package/dist/docs/docs.json +1 -1
  106. package/dist/docs/vscode.html-custom-data.json +1 -1
  107. package/dist/docs/web-types.json +1 -1
  108. package/dist/loader.js +3 -3
  109. package/dist/types/lumina.d.ts +1 -1
  110. package/dist/types/preact.d.ts +1 -1
  111. package/dist/types/react.d.ts +1 -1
  112. package/dist/types/stencil.d.ts +1 -1
  113. package/package.json +4 -4
  114. package/dist/cdn/4T6TILWS.js +0 -2
  115. package/dist/cdn/FM2ZJK25.js +0 -2
  116. package/dist/cdn/HIYCE253.js +0 -2
  117. package/dist/cdn/HW3D7A2P.js +0 -2
  118. package/dist/cdn/X6BCGFB3.js +0 -2
@@ -6,6 +6,101 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
6
6
  import type { ArcgisReferenceElement } from "../types.js";
7
7
  import type { T9nMeta } from "@arcgis/lumina/controllers";
8
8
 
9
+ /** Component state when validation is unavailable because the component cannot run. */
10
+ export interface Disabled {
11
+ type: "disabled";
12
+ }
13
+
14
+ /** Component state while utility network topology validation is currently running. */
15
+ export interface Executing {
16
+ type: "executing";
17
+ }
18
+
19
+ /** Component state while component dependencies are loading. */
20
+ export interface Loading {
21
+ type: "loading";
22
+ }
23
+
24
+ /** Component state when component dependencies are loaded and validation can execute. */
25
+ export interface Ready {
26
+ type: "ready";
27
+ }
28
+
29
+ /** Component state after validation completes successfully. */
30
+ export interface Success {
31
+ type: "success";
32
+ message: string;
33
+ }
34
+
35
+ /** Component state when validation or setup encounters an error. */
36
+ export interface ValidateNetworkTopologyError {
37
+ /**
38
+ * The type of error the component has encountered:
39
+ *
40
+ * - `error-disable-component`: The component is disabled because the component could not find a utility network in the map.
41
+ * - `error-disable-execute`: The component cannot run validation because the user lacks permissions or the dirty areas layer is missing from the map.
42
+ * - `error-info`: Some other error occurred while running validation. The error is displayed in the component.
43
+ */
44
+ type: "error-disable-component" | "error-disable-execute" | "error-info";
45
+ /** Additional information about the error the component has encountered. */
46
+ message: string;
47
+ }
48
+
49
+ /** The extent options for network topology validation. */
50
+ export type ExtentOption = "current" | "entire";
51
+
52
+ /** The current component workflow state. */
53
+ export type State = Disabled | Executing | Loading | Ready | Success | ValidateNetworkTopologyError;
54
+
55
+ /**
56
+ * ## Overview
57
+ *
58
+ * The Utility Network Validate Network Topology component validates dirty areas in a utility network after edits have been made.
59
+ * It provides an interface to choose a utility network (if applicable), choose the [extent](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-validate-network-topology/#extentToValidate) to validate, and perform validation.
60
+ * If successful, the result of the validation is available as [result](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-validate-network-topology/#result).
61
+ *
62
+ * ## Validation requirements
63
+ *
64
+ * - The component only supports a 2D [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/).
65
+ * - The utility network must be [stored in the map](https://developers.arcgis.com/javascript/latest/references/core/WebMap/#utilityNetworks) and the network topology must be enabled.
66
+ * - The active portal user must have the required user type extension to validate a network topology.
67
+ * - Validation fails in cases such as: no dirty areas in the target extent, inability to acquire a version lock, or insufficient permissions on the version.
68
+ *
69
+ * > [!WARNING]
70
+ * >
71
+ * > The Utility Network Validate Network Topology component does not support proxied feature services or feature services that utilize stored credentials.
72
+ *
73
+ * ## Examples
74
+ *
75
+ * This component can be used slotted into an [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/):
76
+ *
77
+ * ```html
78
+ * <arcgis-map item-id="471eb0bf37074b1fbb972b1da70fb310">
79
+ * <arcgis-utility-network-validate-network-topology slot="top-right"></arcgis-utility-network-validate-network-topology>
80
+ * </arcgis-map>
81
+ * ```
82
+ *
83
+ * Alternatively, this component can be used outside of a map by providing a [referenceElement](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-validate-network-topology/#referenceElement):
84
+ *
85
+ * ```html
86
+ * <calcite-shell>
87
+ * <calcite-shell-panel slot="panel-start" position="start" width-scale="l">
88
+ * <arcgis-utility-network-validate-network-topology reference-element="#map-element"></arcgis-utility-network-validate-network-topology>
89
+ * </calcite-shell-panel>
90
+ * <arcgis-map id="map-element" item-id="471eb0bf37074b1fbb972b1da70fb310"></arcgis-map>
91
+ * </calcite-shell>
92
+ * ```
93
+ *
94
+ * <video>
95
+ * <source src="https://developers.arcgis.com/javascript/latest/assets/references/core/components/utility-network-validate-network-topology/validate-topology-example.webm" autoplay loop muted playsinline type="video/webm">
96
+ * Your browser does not support the video tag.
97
+ * </video>
98
+ *
99
+ * @since 5.1
100
+ * @see [Network topology](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/about-network-topology.htm)
101
+ * @see [Validate a network topology](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/validate-a-network-topology.htm)
102
+ * @see [Dirty areas](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/dirty-areas-in-a-utility-network.htm)
103
+ */
9
104
  export abstract class ArcgisUtilityNetworkValidateNetworkTopology extends LitElement {
10
105
  /** @internal */
11
106
  protected _messages: {
@@ -72,16 +167,41 @@ export abstract class ArcgisUtilityNetworkValidateNetworkTopology extends LitEle
72
167
  };
73
168
  }>;
74
169
  /**
75
- * A function to run before validate utility network topology starts.
170
+ * A function to run before utility network topology validation starts.
171
+ *
172
+ * The function is awaited before the [@arcgisValidateNetworkTopologyStart](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-validate-network-topology/#event-arcgisValidateNetworkTopologyStart)
173
+ * event is emitted and before the validation request is sent.
174
+ * If the function rejects its Promise, validation does not start and the component displays an error. If the Promise was rejected with an [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error), the component displays the error.
76
175
  *
77
176
  * @internal
177
+ * @example
178
+ * ```js
179
+ * const validateNetworkTopologyElement = document.querySelector("arcgis-utility-network-validate-network-topology");
180
+ * validateNetworkTopologyElement.beforeValidateNetworkTopologyStart = async () => await doAsyncWork();
181
+ * ```
78
182
  */
79
183
  accessor beforeValidateNetworkTopologyStart: (() => Promise<void>) | undefined;
80
- /** @default false */
184
+ /**
185
+ * When true, the component is visually withdrawn and cannot receive user interaction.
186
+ *
187
+ * @default false
188
+ */
81
189
  accessor disabled: boolean;
82
- /** @default "current" */
190
+ /**
191
+ * Specifies the area to validate.
192
+ *
193
+ * Use `"current"` to validate the current view extent. Use `"entire"` to validate the utility network's full extent.
194
+ *
195
+ * @default "current"
196
+ */
83
197
  accessor extentToValidate: ExtentOption;
84
- /** @default false */
198
+ /**
199
+ * When true, hides the utility network selector.
200
+ *
201
+ * The selector is also hidden when the map has one utility network.
202
+ *
203
+ * @default false
204
+ */
85
205
  accessor hideUtilityNetworkSelect: boolean;
86
206
  /** The component's default label. */
87
207
  accessor label: string | undefined;
@@ -128,46 +248,52 @@ export abstract class ArcgisUtilityNetworkValidateNetworkTopology extends LitEle
128
248
  * @see [Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)
129
249
  */
130
250
  accessor referenceElement: ArcgisReferenceElement | string | undefined;
251
+ /**
252
+ * The result returned from the most recent successful utility network topology validation.
253
+ * This value is cleared when clicking the "Validate" action.
254
+ */
131
255
  accessor result: ValidateNetworkTopologyResult | undefined;
132
- accessor state: State;
256
+ /** The current component state. */
257
+ get state(): State;
258
+ /**
259
+ * The utility network to validate.
260
+ *
261
+ * If not provided, the component uses the first utility network stored in the map. When the map contains multiple
262
+ * utility networks and the selector is visible, the user can change this value from the component UI.
263
+ */
133
264
  accessor utilityNetwork: UtilityNetwork | undefined;
265
+ /**
266
+ * The target [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/).
267
+ *
268
+ * The component only supports 2D map views.
269
+ */
134
270
  accessor view: MapView | undefined;
271
+ /** Emitted when the component associated with a map or scene view is ready to be interacted with. */
135
272
  readonly arcgisReady: import("@arcgis/lumina").TargetedEvent<this, void>;
273
+ /**
274
+ * Fires after a validation workflow ends.
275
+ *
276
+ * This event fires after validation succeeds, fails, or is canceled by preventing the
277
+ * [@arcgisValidateNetworkTopologyStart](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-validate-network-topology/#event-arcgisValidateNetworkTopologyStart) event.
278
+ */
136
279
  readonly arcgisValidateNetworkTopologyEnd: import("@arcgis/lumina").TargetedEvent<this, void>;
280
+ /**
281
+ * Fires before the validation request is sent.
282
+ *
283
+ * This event can be prevented with `event.preventDefault()` to cancel validation.
284
+ *
285
+ * @example
286
+ * ```js
287
+ * const validateNetworkTopologyElement = document.querySelector("arcgis-utility-network-validate-network-topology");
288
+ * validateNetworkTopologyElement.addEventListener("arcgisValidateNetworkTopologyStart", (event) => {
289
+ * event.preventDefault();
290
+ * });
291
+ * ```
292
+ */
137
293
  readonly arcgisValidateNetworkTopologyStart: import("@arcgis/lumina").TargetedEvent<this, void>;
138
294
  readonly "@eventTypes": {
139
295
  arcgisReady: ArcgisUtilityNetworkValidateNetworkTopology["arcgisReady"]["detail"];
140
296
  arcgisValidateNetworkTopologyEnd: ArcgisUtilityNetworkValidateNetworkTopology["arcgisValidateNetworkTopologyEnd"]["detail"];
141
297
  arcgisValidateNetworkTopologyStart: ArcgisUtilityNetworkValidateNetworkTopology["arcgisValidateNetworkTopologyStart"]["detail"];
142
298
  };
143
- }
144
-
145
- export type ExtentOption = "current" | "entire";
146
-
147
- export type State = Disabled | Executing | Loading | Ready | Success | ValidateNetworkTopologyError;
148
-
149
- export interface Disabled {
150
- type: "disabled";
151
- }
152
-
153
- export interface Executing {
154
- type: "executing";
155
- }
156
-
157
- export interface Loading {
158
- type: "loading";
159
- }
160
-
161
- export interface Ready {
162
- type: "ready";
163
- }
164
-
165
- export interface Success {
166
- type: "success";
167
- message: string;
168
- }
169
-
170
- export interface ValidateNetworkTopologyError {
171
- type: "error-disable-component" | "error-disable-execute" | "error-info";
172
- message: string;
173
299
  }
@@ -8,9 +8,13 @@ import type { Icon } from "@esri/calcite-components/components/calcite-icon";
8
8
  import type { UtilityNetworkValidateTopologyViewModelState } from "@arcgis/core/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js";
9
9
 
10
10
  /**
11
- * The UtilityNetworkValidateTopology component simplifies the process of validating a DirtyArea within a utility network. It offers an intuitive user interface, reducing the complexity of working with utility network associations.
11
+ * > This component is **deprecated**. [arcgis-utility-network-validate-network-topology](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-validate-network-topology/) is the preferred component for validating utility network topology and should be used for all new development.
12
+ *
13
+ * The UtilityNetworkValidateTopology component simplifies the process of validating a DirtyArea within a utility network. It offers an intuitive user interface.
12
14
  *
13
15
  * > The UtilityNetworkValidateTopology Component does not support proxied feature services or feature services that utilize stored credentials.
16
+ *
17
+ * @deprecated since 5.1, use [arcgis-utility-network-validate-network-topology](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-validate-network-topology/) instead.
14
18
  */
15
19
  export abstract class ArcgisUtilityNetworkValidateTopology extends LitElement {
16
20
  /**