@arcgis/map-components 5.2.0-next.75 → 5.2.0-next.76
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/3MDNGD5N.js +2 -0
- package/dist/cdn/4RYR4YDD.js +2 -0
- package/dist/cdn/{Y52XLS45.js → 4ULHWCEQ.js} +1 -1
- package/dist/cdn/{4IYAEXT6.js → 5AQ2DLHA.js} +1 -1
- package/dist/cdn/5GD232OU.js +2 -0
- package/dist/cdn/6C542P4V.js +2 -0
- package/dist/cdn/6XJLNNXF.js +2 -0
- package/dist/cdn/AYJ4XEW3.js +2 -0
- package/dist/cdn/BZZONX7U.js +2 -0
- package/dist/cdn/CO4UDHQO.js +5 -0
- package/dist/cdn/DXRIB5HU.js +2 -0
- package/dist/cdn/{AXEUVRDP.js → GYD6SJRD.js} +1 -1
- package/dist/cdn/HSRSC5A3.js +2 -0
- package/dist/cdn/KKN5ZNLH.js +2 -0
- package/dist/cdn/LCWKOR7D.js +2 -0
- package/dist/cdn/LFEMVA6D.js +2 -0
- package/dist/cdn/LWGNINKF.js +2 -0
- package/dist/cdn/{6T4SNDWL.js → N7YPGWHZ.js} +1 -1
- package/dist/cdn/NAW2XY64.js +2 -0
- package/dist/cdn/{RNUWRSX7.js → NESU6NXH.js} +1 -1
- package/dist/cdn/NVYQR4DS.js +2 -0
- package/dist/cdn/QO6WDURE.js +2 -0
- package/dist/cdn/RIZHD5EC.js +2 -0
- package/dist/cdn/UYF6TF6U.js +2 -0
- package/dist/cdn/WD25DNJL.js +2 -0
- package/dist/cdn/assets/utility-network-aggregated-geometry-result-item/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/utility-network-trace-results-next/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/titleUtils.js +40 -0
- package/dist/chunks/utils2.js +36 -71
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-element/customElement.js +34 -33
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +11 -11
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +9 -9
- package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +15 -15
- package/dist/components/arcgis-legend-classic-element/customElement.js +39 -35
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +5 -4
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +6 -6
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +3 -3
- package/dist/components/arcgis-legend-classic-view/customElement.js +41 -18
- package/dist/components/arcgis-legend-relationship-ramp/customElement.js +8 -8
- package/dist/components/arcgis-legend-spike-ramp/customElement.js +13 -13
- package/dist/components/arcgis-scene/customElement.d.ts +1 -0
- package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/customElement.d.ts +105 -0
- package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/customElement.js +125 -0
- package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/index.js +5 -0
- package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.d.ts +6 -0
- package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.js +9 -9
- package/dist/components/arcgis-utility-network-trace-analysis-next/types.d.ts +5 -4
- package/dist/components/arcgis-utility-network-trace-results-next/customElement.d.ts +4 -25
- package/dist/components/arcgis-utility-network-trace-results-next/customElement.js +86 -86
- package/dist/components/arcgis-utility-network-trace-results-next/index.js +1 -4
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.d.ts +19 -0
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +129 -86
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/loader.js +3 -3
- package/dist/types/lumina.d.ts +6 -5
- package/dist/types/preact.d.ts +7 -6
- package/dist/types/react.d.ts +8 -7
- package/dist/types/stencil.d.ts +6 -5
- package/package.json +5 -5
- package/dist/cdn/2O6GHHUY.js +0 -2
- package/dist/cdn/7THMBHKF.js +0 -2
- package/dist/cdn/A6CH2UFJ.js +0 -2
- package/dist/cdn/AZSWPMSD.js +0 -2
- package/dist/cdn/CQV2TQUQ.js +0 -2
- package/dist/cdn/D75QAAQT.js +0 -5
- package/dist/cdn/GG4ZP72A.js +0 -2
- package/dist/cdn/GOIKNGEI.js +0 -2
- package/dist/cdn/HZR3HENL.js +0 -2
- package/dist/cdn/IIYUVBKU.js +0 -2
- package/dist/cdn/KUR5PBEN.js +0 -2
- package/dist/cdn/LIEZSWE4.js +0 -2
- package/dist/cdn/MOOIQJP4.js +0 -2
- package/dist/cdn/NJ4CBOJN.js +0 -2
- package/dist/cdn/SWDOEOEG.js +0 -2
- package/dist/cdn/TZTJY3L5.js +0 -2
- package/dist/cdn/X3TEGOBL.js +0 -2
- package/dist/cdn/XLAW24IV.js +0 -2
- package/dist/cdn/ZMLP2ZB4.js +0 -2
- package/dist/cdn/assets/utility-network-aggregated-geometry-next/t9n/messages.en.json +0 -1
- package/dist/components/arcgis-utility-network-aggregated-geometry-next/customElement.d.ts +0 -63
- package/dist/components/arcgis-utility-network-aggregated-geometry-next/customElement.js +0 -109
- package/dist/components/arcgis-utility-network-aggregated-geometry-next/index.js +0 -2
- /package/dist/components/{arcgis-utility-network-aggregated-geometry-next → arcgis-utility-network-aggregated-geometry-result-item}/index.d.ts +0 -0
package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/customElement.d.ts
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import type Color from "@arcgis/core/Color.js";
|
|
3
|
+
import type Graphic from "@arcgis/core/Graphic.js";
|
|
4
|
+
import type GraphicsLayer from "@arcgis/core/layers/GraphicsLayer.js";
|
|
5
|
+
import type TraceResult from "@arcgis/core/rest/networks/support/TraceResult.js";
|
|
6
|
+
import type MapView from "@arcgis/core/views/MapView.js";
|
|
7
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
8
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* * 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
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
* @since 5.2
|
|
15
|
+
* @see [Result types](https://doc.esri.com/en/arcgis-pro/latest/help/data/utility-network/configure-a-trace.html#DA5)
|
|
16
|
+
*/
|
|
17
|
+
export abstract class ArcgisUtilityNetworkAggregatedGeometryResultItem extends LitElement {
|
|
18
|
+
/** @internal */
|
|
19
|
+
protected _messages: {
|
|
20
|
+
headings: { setColor: string; };
|
|
21
|
+
labels: {
|
|
22
|
+
aggregatedGeometryGraphicsColor: string;
|
|
23
|
+
showGraphicsToggle: string;
|
|
24
|
+
};
|
|
25
|
+
showGraphics: string;
|
|
26
|
+
} & T9nMeta<{
|
|
27
|
+
headings: { setColor: string; };
|
|
28
|
+
labels: {
|
|
29
|
+
aggregatedGeometryGraphicsColor: string;
|
|
30
|
+
showGraphicsToggle: string;
|
|
31
|
+
};
|
|
32
|
+
showGraphics: string;
|
|
33
|
+
}>;
|
|
34
|
+
/**
|
|
35
|
+
* If true, the component will not be destroyed automatically when it is
|
|
36
|
+
* disconnected from the document. This is useful when you want to move the
|
|
37
|
+
* component to a different place on the page, or temporarily hide it. If this
|
|
38
|
+
* is set, make sure to call the [destroy()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-aggregated-geometry-result-item/#destroy) method when you are done to
|
|
39
|
+
* prevent memory leaks.
|
|
40
|
+
*
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
accessor autoDestroyDisabled: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* The size of the aggregated geometry graphics to render, in points.
|
|
46
|
+
*
|
|
47
|
+
* @default 12
|
|
48
|
+
*/
|
|
49
|
+
accessor defaultSelectionSize: number;
|
|
50
|
+
/** The graphics which represent the aggregated geometry results from the trace. */
|
|
51
|
+
get geometryGraphics(): Graphic[];
|
|
52
|
+
/**
|
|
53
|
+
* The color used for the aggregated geometry graphics.
|
|
54
|
+
* Default value is #FFFF00.
|
|
55
|
+
*/
|
|
56
|
+
accessor graphicsColor: Color;
|
|
57
|
+
/**
|
|
58
|
+
* The layer used to render the graphics which represent the aggregated geometry result.
|
|
59
|
+
* If this property is not specified, a new layer will be created on the map.
|
|
60
|
+
*/
|
|
61
|
+
accessor graphicsLayer: GraphicsLayer | undefined;
|
|
62
|
+
/** The heading of the result item. */
|
|
63
|
+
accessor heading: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Whether or not the aggregated geometry graphics are hidden on the map.
|
|
66
|
+
*
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
accessor hideGraphics: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* The trace result containing the aggregated geometry result to render graphics for.
|
|
72
|
+
*
|
|
73
|
+
* @required
|
|
74
|
+
*/
|
|
75
|
+
accessor traceResult: TraceResult | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* The view associated with the component.
|
|
78
|
+
* > **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-aggregated-geometry-result-item component will be associated with a map or scene component rather than using the `view` property.
|
|
79
|
+
*
|
|
80
|
+
* @required
|
|
81
|
+
*/
|
|
82
|
+
accessor view: MapView | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Removes the [layer](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-aggregated-geometry-result-item/#graphicsLayer)
|
|
85
|
+
* containing the aggregated geometry graphics from the map.
|
|
86
|
+
*/
|
|
87
|
+
clearResult(): void;
|
|
88
|
+
/** Permanently destroy the component. */
|
|
89
|
+
destroy(): Promise<void>;
|
|
90
|
+
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "defaultSelectionSize" | "geometryGraphics" | "hideGraphics" | "graphicsColor"; }>;
|
|
91
|
+
/**
|
|
92
|
+
* Fires when the component finishes processing the aggrgegated geometry results.
|
|
93
|
+
*
|
|
94
|
+
* If the component has a valid trace result with aggregated geometry results, this fires
|
|
95
|
+
* when the aggregated geometry graphics have been added to the map.
|
|
96
|
+
*
|
|
97
|
+
* If the component does not have a valid map or trace result, this fires when the
|
|
98
|
+
* component has finished loading.
|
|
99
|
+
*/
|
|
100
|
+
readonly arcgisResultReady: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
101
|
+
readonly "@eventTypes": {
|
|
102
|
+
arcgisPropertyChange: ArcgisUtilityNetworkAggregatedGeometryResultItem["arcgisPropertyChange"]["detail"];
|
|
103
|
+
arcgisResultReady: ArcgisUtilityNetworkAggregatedGeometryResultItem["arcgisResultReady"]["detail"];
|
|
104
|
+
};
|
|
105
|
+
}
|
package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/customElement.js
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import { c as p } from "../../chunks/runtime.js";
|
|
3
|
+
import l from "@arcgis/core/Color.js";
|
|
4
|
+
import m from "@arcgis/core/Graphic.js";
|
|
5
|
+
import d from "@arcgis/core/layers/GraphicsLayer.js";
|
|
6
|
+
import n from "@arcgis/core/symbols/SimpleFillSymbol.js";
|
|
7
|
+
import y from "@arcgis/core/symbols/SimpleLineSymbol.js";
|
|
8
|
+
import u from "@arcgis/core/symbols/SimpleMarkerSymbol.js";
|
|
9
|
+
import { LitElement as f, createEvent as w, nothing as v } from "@arcgis/lumina";
|
|
10
|
+
import { usePropertyChange as G, bypassReadOnly as b } from "@arcgis/lumina/controllers";
|
|
11
|
+
import { log as s, composeMissingPropertyMessage as o } from "@arcgis/toolkit/log";
|
|
12
|
+
import { css as R, html as g } from "lit";
|
|
13
|
+
import { createRef as L, ref as C } from "lit/directives/ref.js";
|
|
14
|
+
import { u as S } from "../../chunks/useT9n.js";
|
|
15
|
+
import { a as h, i as $ } from "../../chunks/layer-utils.js";
|
|
16
|
+
const k = R`.aggregated-geometry-container{display:flex;justify-content:space-between;margin:0 var(--calcite-space-md) var(--calcite-space-md)}.geometry-heading{margin:var(--calcite-space-md);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}`;
|
|
17
|
+
class z extends f {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments), this._messages = S({ blocking: !0 }), this.#t = "arcgis-utility-network-aggregated-geometry-result-item-graphics", this.#e = L(), this.defaultSelectionSize = 12, this.geometryGraphics = [], this.hideGraphics = !1, this.graphicsColor = new l([255, 255, 0, 0.6]), this.autoDestroyDisabled = !1, this.arcgisPropertyChange = G()("defaultSelectionSize", "geometryGraphics", "hideGraphics", "graphicsColor"), this.arcgisResultReady = w();
|
|
20
|
+
}
|
|
21
|
+
static {
|
|
22
|
+
this.properties = { defaultSelectionSize: 9, heading: 1, traceResult: 0, geometryGraphics: 32, hideGraphics: 5, graphicsColor: 0, graphicsLayer: 0, view: 0, autoDestroyDisabled: 5 };
|
|
23
|
+
}
|
|
24
|
+
static {
|
|
25
|
+
this.styles = k;
|
|
26
|
+
}
|
|
27
|
+
#t;
|
|
28
|
+
#e;
|
|
29
|
+
clearResult() {
|
|
30
|
+
this.view?.map && this.graphicsLayer && this.view.map.remove(this.graphicsLayer);
|
|
31
|
+
}
|
|
32
|
+
async destroy() {
|
|
33
|
+
this.clearResult(), await this.manager.destroy();
|
|
34
|
+
}
|
|
35
|
+
connectedCallback() {
|
|
36
|
+
super.connectedCallback(), this.view && this.graphicsLayer && (h(this.view, this.graphicsLayer), this.arcgisResultReady.emit());
|
|
37
|
+
}
|
|
38
|
+
load() {
|
|
39
|
+
if (!this.traceResult?.aggregatedGeometry || !this.view?.map) {
|
|
40
|
+
this.arcgisResultReady.emit();
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
this.graphicsLayer || this.#a(this.view);
|
|
44
|
+
}
|
|
45
|
+
willUpdate(e) {
|
|
46
|
+
if (e.has("hideGraphics") && this.#s(), e.has("graphicsColor") && this.#h(), e.has("traceResult") && (this.graphicsLayer?.removeAll(), this.traceResult?.aggregatedGeometry && this.view && (this.#i(this.traceResult.aggregatedGeometry), this.arcgisResultReady.emit())), e.has("view")) {
|
|
47
|
+
const t = e.get("view");
|
|
48
|
+
t?.map && this.graphicsLayer && (t.map.remove(this.graphicsLayer), this.traceResult?.aggregatedGeometry && this.view && (h(this.view, this.graphicsLayer), this.#i(this.traceResult.aggregatedGeometry), this.arcgisResultReady.emit()));
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
loaded() {
|
|
52
|
+
this.traceResult ? this.traceResult.aggregatedGeometry || s("error", this, o("The property `traceResult` was provided, but `traceResult.aggregatedGeometry` is null. Cannot draw aggregated geometry.")) : s("error", this, o("traceResult")), this.view ? this.view.map || s("error", this, o("The property `view` was provided, but `view.map` is null. Cannot draw aggregated geometry.")) : s("error", this, o("view"));
|
|
53
|
+
}
|
|
54
|
+
#i(e) {
|
|
55
|
+
const { line: t, multipoint: i, polygon: r } = e;
|
|
56
|
+
b(() => {
|
|
57
|
+
this.geometryGraphics = [t, i, r].filter((a) => a != null).map((a) => this.#o(a));
|
|
58
|
+
}), this.graphicsLayer?.addMany(this.geometryGraphics);
|
|
59
|
+
}
|
|
60
|
+
#a(e) {
|
|
61
|
+
const t = this.#t, i = e.map?.findLayerById(t);
|
|
62
|
+
if (i && $(i)) {
|
|
63
|
+
this.graphicsLayer = i;
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
this.graphicsLayer = new d({
|
|
67
|
+
id: t,
|
|
68
|
+
listMode: "hide",
|
|
69
|
+
title: t
|
|
70
|
+
}), h(e, this.graphicsLayer);
|
|
71
|
+
}
|
|
72
|
+
#s() {
|
|
73
|
+
this.hideGraphics ? (this.graphicsLayer?.removeAll(), this.#e.value?.open && (this.#e.value.open = !1)) : this.graphicsLayer?.addMany(this.geometryGraphics);
|
|
74
|
+
}
|
|
75
|
+
#o(e) {
|
|
76
|
+
return new m({
|
|
77
|
+
geometry: e,
|
|
78
|
+
symbol: this.#r(e)
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
#r(e) {
|
|
82
|
+
const { defaultSelectionSize: t, graphicsColor: i } = this;
|
|
83
|
+
switch (e.type) {
|
|
84
|
+
case "multipoint":
|
|
85
|
+
return new u({
|
|
86
|
+
color: i,
|
|
87
|
+
size: t,
|
|
88
|
+
outline: {
|
|
89
|
+
color: i,
|
|
90
|
+
width: 0
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
case "polygon":
|
|
94
|
+
return new n({
|
|
95
|
+
color: i,
|
|
96
|
+
outline: {
|
|
97
|
+
color: i,
|
|
98
|
+
width: t
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
case "polyline":
|
|
102
|
+
return new y({
|
|
103
|
+
color: i,
|
|
104
|
+
width: t
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
#h() {
|
|
109
|
+
this.graphicsLayer?.graphics.forEach((e) => {
|
|
110
|
+
const t = e.geometry;
|
|
111
|
+
e.symbol = this.#r(t);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
render() {
|
|
115
|
+
const { graphicsColor: e, heading: t, hideGraphics: i, _messages: r } = this;
|
|
116
|
+
return g`${t && g`<div class="geometry-heading">${t}</div>` || ""}<div class="aggregated-geometry-container"><calcite-switch .checked=${!i} .label=${r.labels.showGraphicsToggle} label-text-end=${r.showGraphics ?? v} @calciteSwitchChange=${() => this.hideGraphics = !this.hideGraphics}></calcite-switch><calcite-swatch .color=${e.toCss()} .disabled=${i} id=geometry-color-swatch .label=${r.labels.aggregatedGeometryGraphicsColor}></calcite-swatch><calcite-popover closable .heading=${r.headings.setColor} .label=${r.headings.setColor} reference-element=geometry-color-swatch ${C(this.#e)}><calcite-color-picker alpha-channel channels-disabled clearable .disabled=${i} hex-disabled saved-disabled .value=${e.toCss()} @calciteColorPickerChange=${(a) => {
|
|
117
|
+
const c = a.target.value;
|
|
118
|
+
c && (this.graphicsColor = new l(c));
|
|
119
|
+
}}></calcite-color-picker></calcite-popover></div>`;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
p("arcgis-utility-network-aggregated-geometry-result-item", z);
|
|
123
|
+
export {
|
|
124
|
+
z as ArcgisUtilityNetworkAggregatedGeometryResultItem
|
|
125
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "@esri/calcite-components/components/calcite-switch";
|
|
2
|
+
import "@esri/calcite-components/components/calcite-swatch";
|
|
3
|
+
import "@esri/calcite-components/components/calcite-popover";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-color-picker";
|
|
5
|
+
export * from "./customElement.js";
|
|
@@ -155,6 +155,12 @@ export abstract class ArcgisUtilityNetworkTraceAnalysisNext extends LitElement {
|
|
|
155
155
|
*
|
|
156
156
|
* Default color is #FFFF00.
|
|
157
157
|
*
|
|
158
|
+
* @example
|
|
159
|
+
* Set the default aggregated geometry graphics color to lime green.
|
|
160
|
+
* ```js
|
|
161
|
+
* const traceElement = document.querySelector("arcgis-utility-network-trace-analysis-next");
|
|
162
|
+
* traceElement.aggregatedGeometryGraphicsColor = new Color("lime");
|
|
163
|
+
* ```
|
|
158
164
|
* @see [Color constructor](https://developers.arcgis.com/javascript/latest/references/core/Color/#constructors-summary)
|
|
159
165
|
*/
|
|
160
166
|
accessor aggregatedGeometryGraphicsColor: Color;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as p } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as m, html as a } from "lit";
|
|
4
4
|
import { ref as g } from "lit/directives/ref.js";
|
|
5
5
|
import { keyed as u } from "lit/directives/keyed.js";
|
|
6
|
-
import
|
|
6
|
+
import y from "@arcgis/core/Color.js";
|
|
7
7
|
import "@arcgis/core/core/Error.js";
|
|
8
8
|
import { when as f } from "@arcgis/core/core/reactiveUtils.js";
|
|
9
9
|
import b from "@arcgis/core/networks/UtilityNetworkTraceAnalysis.js";
|
|
@@ -12,10 +12,10 @@ import { log as v } from "@arcgis/toolkit/log";
|
|
|
12
12
|
import { u as T } from "../../chunks/useT9n.js";
|
|
13
13
|
import { m as $ } from "../../chunks/useViewModel.js";
|
|
14
14
|
import { l as _ } from "../../chunks/async-utils.js";
|
|
15
|
-
const R =
|
|
15
|
+
const R = m`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}arcgis-utility-network-trace-inputs-next[mode=default]{height:auto}calcite-tabs{display:flex;flex-direction:column;height:100%}calcite-tab{--calcite-tab-content-space-y: 0;min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-tab:not([selected]){flex:0}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-notice{margin:var(--calcite-spacing-md)}.inputs-tab-container{display:flex;flex-direction:column;height:100%}.trace-inputs-warning{flex:none;height:fit-content;calcite-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0}}`, x = $(b);
|
|
16
16
|
class C extends w {
|
|
17
17
|
constructor() {
|
|
18
|
-
super(...arguments), this._messages = T({ blocking: !0 }), this.#t = x(this), this.#s = [], this._activeTab = "input", this._showMissingTerminalWarning = !1, this._showNoStartingPointsWarning = !1, this._mode = "default", this.autoDestroyDisabled = !1, this.aggregatedGeometryGraphicsColor = new
|
|
18
|
+
super(...arguments), this._messages = T({ blocking: !0 }), this.#t = x(this), this.#s = [], this._activeTab = "input", this._showMissingTerminalWarning = !1, this._showNoStartingPointsWarning = !1, this._mode = "default", this.autoDestroyDisabled = !1, this.aggregatedGeometryGraphicsColor = new y([255, 255, 0, 0.6]), this.disableHighlightFeatureResults = !1, this.hideActionBar = !1, this.hideFeatureResults = !1, this.state = this.#t.state, this.view = this.#t.view, this.arcgisHideGraphicsChange = o(), this.arcgisReady = o(), this.arcgisTraceLocationSelectEnd = o(), this.arcgisTraceLocationSelectStart = o(), this.arcgisTraceResultClear = o(), this.arcgisTraceResultFeaturesReady = o();
|
|
19
19
|
}
|
|
20
20
|
static {
|
|
21
21
|
this.properties = { _activeTab: 16, _traceError: 16, _traceResult: 16, _showMissingTerminalWarning: 16, _showNoStartingPointsWarning: 16, _mode: 16, autoDestroyDisabled: 5, beforeTraceLocationSelectStart: 0, aggregatedGeometryGraphicsColor: 0, disableHighlightFeatureResults: 5, hideActionBar: 5, hideFeatureResults: 5, label: 3, messageOverrides: 0, traceResultFeatures: 32, referenceElement: 1, state: 32, view: 0 };
|
|
@@ -84,8 +84,8 @@ class C extends w {
|
|
|
84
84
|
const c = e.allLayerViews.find((n) => {
|
|
85
85
|
const h = n.layer;
|
|
86
86
|
if (r.isUtilityLayer(h)) {
|
|
87
|
-
const
|
|
88
|
-
return h.layerId ===
|
|
87
|
+
const d = Number(i.layerUrl.split("/").pop());
|
|
88
|
+
return h.layerId === d;
|
|
89
89
|
}
|
|
90
90
|
return !1;
|
|
91
91
|
});
|
|
@@ -137,7 +137,7 @@ class C extends w {
|
|
|
137
137
|
}
|
|
138
138
|
#T(t) {
|
|
139
139
|
const e = t.detail;
|
|
140
|
-
this.aggregatedGeometryGraphicsColor =
|
|
140
|
+
this.aggregatedGeometryGraphicsColor = e;
|
|
141
141
|
}
|
|
142
142
|
#$() {
|
|
143
143
|
this._showNoStartingPointsWarning = !1, this._showMissingTerminalWarning = !1;
|
|
@@ -180,7 +180,7 @@ class C extends w {
|
|
|
180
180
|
return a`<calcite-panel><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @click=${() => this.#a("input")} .selected=${t === "input"}>${this._messages.tabs.inputTab}</calcite-tab-title><calcite-tab-title @click=${() => this.#a("results")} .selected=${t === "results"} .disabled=${e === "disabled" || e === "loading"}>${this._messages.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.#S()}${this.#C()}</calcite-tabs>${t === "input" ? this.#N() : null}${t === "results" ? this.#k() : null}</calcite-panel>`;
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
|
|
183
|
+
p("arcgis-utility-network-trace-analysis-next", C);
|
|
184
184
|
export {
|
|
185
185
|
C as ArcgisUtilityNetworkTraceAnalysisNext
|
|
186
186
|
};
|
|
@@ -10,17 +10,18 @@ export type UtilityNetworkTraceAnalysisDisplayMode = "add-spatial-feature" | "ad
|
|
|
10
10
|
*
|
|
11
11
|
* @internal
|
|
12
12
|
* @since 5.2
|
|
13
|
-
* @knipIgnore
|
|
14
13
|
*/
|
|
15
14
|
export interface UtilityNetworkTraceResultItem {
|
|
16
15
|
/** The layers used by the result item. */
|
|
17
|
-
layers
|
|
18
|
-
/** The
|
|
19
|
-
|
|
16
|
+
layers?: Layer[];
|
|
17
|
+
/** The heading of the result item. */
|
|
18
|
+
heading?: string;
|
|
20
19
|
/** The trace result used by the result item. */
|
|
21
20
|
traceResult?: TraceResult;
|
|
22
21
|
/** The utility network used by the result item. */
|
|
23
22
|
utilityNetwork?: UtilityNetwork;
|
|
24
23
|
/** The MapView used by the result item. */
|
|
25
24
|
view?: MapView;
|
|
25
|
+
/** A method to clean up side effects from the result item. */
|
|
26
|
+
clearResult?: () => void;
|
|
26
27
|
}
|
|
@@ -23,20 +23,14 @@ export abstract class ArcgisUtilityNetworkTraceResultsNext extends LitElement {
|
|
|
23
23
|
protected _messages: {
|
|
24
24
|
gettingResults: string;
|
|
25
25
|
headings: {
|
|
26
|
+
aggregatedGeometry: string;
|
|
26
27
|
features: string;
|
|
27
28
|
functions: string;
|
|
28
|
-
setColor: string;
|
|
29
|
-
totalFeatures: string;
|
|
30
|
-
traceResultsCustom: string;
|
|
31
29
|
traceResultsGeneric: string;
|
|
32
30
|
};
|
|
33
31
|
labels: {
|
|
34
|
-
aggregatedGeometryGraphicsColor: string;
|
|
35
32
|
functionResults: string;
|
|
36
|
-
numElements: string;
|
|
37
33
|
numFeatures: string;
|
|
38
|
-
numFunctions: string;
|
|
39
|
-
traceResultElementsByLayer: string;
|
|
40
34
|
};
|
|
41
35
|
noResultsDescription: string;
|
|
42
36
|
noResultsHeading: string;
|
|
@@ -51,24 +45,17 @@ export abstract class ArcgisUtilityNetworkTraceResultsNext extends LitElement {
|
|
|
51
45
|
};
|
|
52
46
|
traceFailedDescription: string;
|
|
53
47
|
traceFailedHeading: string;
|
|
54
|
-
unknown: string;
|
|
55
48
|
} & T9nMeta<{
|
|
56
49
|
gettingResults: string;
|
|
57
50
|
headings: {
|
|
51
|
+
aggregatedGeometry: string;
|
|
58
52
|
features: string;
|
|
59
53
|
functions: string;
|
|
60
|
-
setColor: string;
|
|
61
|
-
totalFeatures: string;
|
|
62
|
-
traceResultsCustom: string;
|
|
63
54
|
traceResultsGeneric: string;
|
|
64
55
|
};
|
|
65
56
|
labels: {
|
|
66
|
-
aggregatedGeometryGraphicsColor: string;
|
|
67
57
|
functionResults: string;
|
|
68
|
-
numElements: string;
|
|
69
58
|
numFeatures: string;
|
|
70
|
-
numFunctions: string;
|
|
71
|
-
traceResultElementsByLayer: string;
|
|
72
59
|
};
|
|
73
60
|
noResultsDescription: string;
|
|
74
61
|
noResultsHeading: string;
|
|
@@ -83,7 +70,6 @@ export abstract class ArcgisUtilityNetworkTraceResultsNext extends LitElement {
|
|
|
83
70
|
};
|
|
84
71
|
traceFailedDescription: string;
|
|
85
72
|
traceFailedHeading: string;
|
|
86
|
-
unknown: string;
|
|
87
73
|
}>;
|
|
88
74
|
accessor aggregatedGeometryGraphicsColor: Color;
|
|
89
75
|
/**
|
|
@@ -114,20 +100,14 @@ export abstract class ArcgisUtilityNetworkTraceResultsNext extends LitElement {
|
|
|
114
100
|
accessor messageOverrides: NonNullable<ArcgisFeaturesNext["messageOverrides"]> & {
|
|
115
101
|
gettingResults?: string | undefined;
|
|
116
102
|
headings?: {
|
|
103
|
+
aggregatedGeometry?: string | undefined;
|
|
117
104
|
features?: string | undefined;
|
|
118
105
|
functions?: string | undefined;
|
|
119
|
-
setColor?: string | undefined;
|
|
120
|
-
totalFeatures?: string | undefined;
|
|
121
|
-
traceResultsCustom?: string | undefined;
|
|
122
106
|
traceResultsGeneric?: string | undefined;
|
|
123
107
|
} | undefined;
|
|
124
108
|
labels?: {
|
|
125
|
-
aggregatedGeometryGraphicsColor?: string | undefined;
|
|
126
109
|
functionResults?: string | undefined;
|
|
127
|
-
numElements?: string | undefined;
|
|
128
110
|
numFeatures?: string | undefined;
|
|
129
|
-
numFunctions?: string | undefined;
|
|
130
|
-
traceResultElementsByLayer?: string | undefined;
|
|
131
111
|
} | undefined;
|
|
132
112
|
noResultsDescription?: string | undefined;
|
|
133
113
|
noResultsHeading?: string | undefined;
|
|
@@ -142,7 +122,6 @@ export abstract class ArcgisUtilityNetworkTraceResultsNext extends LitElement {
|
|
|
142
122
|
} | undefined;
|
|
143
123
|
traceFailedDescription?: string | undefined;
|
|
144
124
|
traceFailedHeading?: string | undefined;
|
|
145
|
-
unknown?: string | undefined;
|
|
146
125
|
};
|
|
147
126
|
get numResults(): number;
|
|
148
127
|
/**
|
|
@@ -166,7 +145,7 @@ export abstract class ArcgisUtilityNetworkTraceResultsNext extends LitElement {
|
|
|
166
145
|
clearAggregatedGeometryGraphics(): void;
|
|
167
146
|
/** Permanently destroy the component. */
|
|
168
147
|
destroy(): Promise<void>;
|
|
169
|
-
readonly arcgisAggregatedGeometryGraphicsColorChange: import("@arcgis/lumina").TargetedEvent<this,
|
|
148
|
+
readonly arcgisAggregatedGeometryGraphicsColorChange: import("@arcgis/lumina").TargetedEvent<this, Color>;
|
|
170
149
|
readonly arcgisHideGraphicsChange: import("@arcgis/lumina").TargetedEvent<this, boolean>;
|
|
171
150
|
readonly arcgisSelectedResultTypeChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
172
151
|
readonly arcgisTraceResultFeaturesReady: import("@arcgis/lumina").TargetedEvent<this, void>;
|