@arcgis/map-components 5.2.0-next.19 → 5.2.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.
- package/dist/cdn/37CSW5WZ.js +2 -0
- package/dist/cdn/474ENJV3.js +2 -0
- package/dist/cdn/6PH76ATO.js +2 -0
- package/dist/cdn/7MBRM6UK.js +2 -0
- package/dist/cdn/{JAANZHBL.js → BMYM5GUH.js} +1 -1
- package/dist/cdn/{2LRS7XSQ.js → CEQVLPP2.js} +1 -1
- package/dist/cdn/{UADZMW3G.js → EFRTVN3U.js} +1 -1
- package/dist/cdn/{GX45UPO4.js → GMIKKUI5.js} +1 -1
- package/dist/cdn/K23ECU7I.js +2 -0
- package/dist/cdn/MUVEIVYN.js +4 -0
- package/dist/cdn/{XMYIWNY6.js → RQNFEF4Y.js} +1 -1
- package/dist/cdn/{OO3T24WP.js → SIZFSGGL.js} +1 -1
- package/dist/cdn/T4OPNOZJ.js +2 -0
- package/dist/cdn/{QCAVCJOJ.js → T5KVNE3U.js} +2 -2
- package/dist/cdn/{WA7IUOYU.js → ZKI5D5XC.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-daylight/customElement.d.ts +38 -3
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +32 -29
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/cdn/462X4ZCG.js +0 -2
- package/dist/cdn/6N6IQMKG.js +0 -2
- package/dist/cdn/CW7J5L5W.js +0 -2
- package/dist/cdn/HXDS4O7D.js +0 -2
- package/dist/cdn/RTXUWGJJ.js +0 -2
- package/dist/cdn/TQYGI7O4.js +0 -4
- package/dist/cdn/U6FG3DCW.js +0 -2
- /package/dist/cdn/{WBNMJ4VE.js → 2AXUQSPF.js} +0 -0
- /package/dist/cdn/{PU6QKY7I.js → 3ERU3RSV.js} +0 -0
- /package/dist/cdn/{B5D6OPEJ.js → 3FKUTL66.js} +0 -0
- /package/dist/cdn/{CGISH4NH.js → 4XLX32SH.js} +0 -0
- /package/dist/cdn/{DJ3VJDLN.js → 5RMF6NQH.js} +0 -0
- /package/dist/cdn/{LM6ZA4HA.js → 6NXVOGBD.js} +0 -0
- /package/dist/cdn/{VKIVTDAN.js → 74ZIEI3T.js} +0 -0
- /package/dist/cdn/{6DVVJ6UQ.js → 7NFOSEAK.js} +0 -0
- /package/dist/cdn/{C436KPG7.js → 7V5OX7NX.js} +0 -0
- /package/dist/cdn/{UJA6BLTS.js → BWGRL4DG.js} +0 -0
- /package/dist/cdn/{2SUHVYCI.js → DRLKUZST.js} +0 -0
- /package/dist/cdn/{HAADLXJX.js → DSK73NEI.js} +0 -0
- /package/dist/cdn/{EFUEICKE.js → FBPT7ZQQ.js} +0 -0
- /package/dist/cdn/{5DCYVSSO.js → FRWIY4ZW.js} +0 -0
- /package/dist/cdn/{DVZKG2WC.js → H73K347O.js} +0 -0
- /package/dist/cdn/{DIZDIIUN.js → HDVXHIXT.js} +0 -0
- /package/dist/cdn/{2KJOV5HK.js → HOZPGWGN.js} +0 -0
- /package/dist/cdn/{HQZQCK6J.js → INYT5TOO.js} +0 -0
- /package/dist/cdn/{B4A4RH4L.js → ITQUWYTW.js} +0 -0
- /package/dist/cdn/{F7DW6VHH.js → JMZ4HLL6.js} +0 -0
- /package/dist/cdn/{O4PQUMJR.js → JONRM3RR.js} +0 -0
- /package/dist/cdn/{ELJCC3WK.js → LMM7CA6W.js} +0 -0
- /package/dist/cdn/{5UPND3OG.js → LZ5UPVXI.js} +0 -0
- /package/dist/cdn/{2IJFHZMD.js → M6YEWPWS.js} +0 -0
- /package/dist/cdn/{FBXUEXNZ.js → NHJKCOD6.js} +0 -0
- /package/dist/cdn/{3JMCA4ZR.js → NYPCIHNR.js} +0 -0
- /package/dist/cdn/{4GKDVLBA.js → PMVPYHRO.js} +0 -0
- /package/dist/cdn/{L3L24SIA.js → PR37XCRY.js} +0 -0
- /package/dist/cdn/{YJMFI5UV.js → PTEBMWLB.js} +0 -0
- /package/dist/cdn/{6CGHMQTL.js → QL3Z3YGW.js} +0 -0
- /package/dist/cdn/{FZYHVESP.js → RT46BLCV.js} +0 -0
- /package/dist/cdn/{C3LA23CB.js → SLHRX525.js} +0 -0
- /package/dist/cdn/{LXZ2GZTN.js → TFCUOETX.js} +0 -0
- /package/dist/cdn/{TW24OEJB.js → TFWFBDDB.js} +0 -0
- /package/dist/cdn/{UUCYWMS2.js → U3Y5DKUV.js} +0 -0
- /package/dist/cdn/{AQB6HLVS.js → UFXJQRMV.js} +0 -0
- /package/dist/cdn/{EPLP4YMK.js → UUOJ32OM.js} +0 -0
- /package/dist/cdn/{WGGJPXPR.js → V5OSAAJ7.js} +0 -0
- /package/dist/cdn/{YLLLSHFK.js → VPY4ZWB2.js} +0 -0
- /package/dist/cdn/{4XU4I5VY.js → XPFNISJZ.js} +0 -0
- /package/dist/cdn/{DF5Q25A7.js → XUQDVXFA.js} +0 -0
- /package/dist/cdn/{2YXRZJMN.js → Y7MR7D3R.js} +0 -0
- /package/dist/cdn/{O263Z4SH.js → YEYBFIOW.js} +0 -0
|
@@ -22,6 +22,16 @@ import type { Icon as Icon } from "@esri/calcite-components/components/calcite-i
|
|
|
22
22
|
* [date](https://developers.arcgis.com/javascript/latest/references/core/views/3d/environment/SunLighting/#date) property of
|
|
23
23
|
* [arcgis-scene.environment](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#environment).
|
|
24
24
|
*
|
|
25
|
+
* **How date, time, and timezone work**
|
|
26
|
+
*
|
|
27
|
+
* In sunlight mode, `SunLighting.date` is the source of truth for the scene lighting instant. The daylight component's
|
|
28
|
+
* `utcOffset` controls how that instant is displayed (date and slider time) and how user-entered local values are
|
|
29
|
+
* converted back to UTC.
|
|
30
|
+
*
|
|
31
|
+
* This means changing only [utcOffset](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-daylight/#utcOffset) updates the displayed local date/time but
|
|
32
|
+
* preserves the same lighting instant. Changing [localDate](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-daylight/#localDate) and/or
|
|
33
|
+
* [timeSliderPosition](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-daylight/#timeSliderPosition) writes a new `SunLighting.date` instant.
|
|
34
|
+
*
|
|
25
35
|
* [](https://developers.arcgis.com/javascript/latest/sample-code/daylight/)
|
|
26
36
|
*
|
|
27
37
|
* The component has an option to select the timezone. When the user makes any adjustments here, a new time
|
|
@@ -54,14 +64,14 @@ import type { Icon as Icon } from "@esri/calcite-components/components/calcite-i
|
|
|
54
64
|
* **Things to consider**
|
|
55
65
|
*
|
|
56
66
|
* * Daylight is only supported in a 3D [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/) component.
|
|
57
|
-
* * The Daylight component uses UTC
|
|
67
|
+
* * The Daylight component uses a numeric UTC offset and does not track an IANA time zone. It does not account for daylight saving time transitions in different countries and regions.
|
|
58
68
|
* * When using the [virtual light](https://developers.arcgis.com/javascript/latest/references/core/views/3d/environment/VirtualLighting/),
|
|
59
69
|
* setting the time and date programmatically does not have an influence on the lighting conditions of the scene.
|
|
60
70
|
* * When using the [sunlight](https://developers.arcgis.com/javascript/latest/references/core/views/3d/environment/SunLighting/),
|
|
61
71
|
* the time slider and time zone automatically react to the changes of the camera (e.g., position, rotation, pan, zoom) because the position of the simulated sun
|
|
62
72
|
* is updated to maintain a consistent solar time of day based on the camera's current longitude. This can be adjusted using the
|
|
63
73
|
* [cameraTrackingEnabled](https://developers.arcgis.com/javascript/latest/references/core/views/3d/environment/SunLighting/#cameraTrackingEnabled)
|
|
64
|
-
* property on [arcgis-scene.environment](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#environment).
|
|
74
|
+
* property on [arcgis-scene.environment](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#environment). This camera-based timezone behavior is an approximation based on longitude.
|
|
65
75
|
*
|
|
66
76
|
* @see [arcgis-scene.environment](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#environment)
|
|
67
77
|
* @see [SunLighting](https://developers.arcgis.com/javascript/latest/references/core/views/3d/environment/SunLighting/)
|
|
@@ -97,6 +107,9 @@ export abstract class ArcgisDaylight extends LitElement {
|
|
|
97
107
|
* Starts or pauses the daytime animation cycling through the minutes of the day.
|
|
98
108
|
* Set the property to `true` to start the animation and to `false` to pause it.
|
|
99
109
|
*
|
|
110
|
+
* `dayPlaying` and [yearPlaying](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-daylight/#yearPlaying) are mutually exclusive.
|
|
111
|
+
* When virtual lighting is active, playback is stopped.
|
|
112
|
+
*
|
|
100
113
|
* @default false
|
|
101
114
|
*/
|
|
102
115
|
accessor dayPlaying: boolean;
|
|
@@ -130,6 +143,9 @@ export abstract class ArcgisDaylight extends LitElement {
|
|
|
130
143
|
/**
|
|
131
144
|
* The calendar date in the timezone given by [utcOffset](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-daylight/#utcOffset).
|
|
132
145
|
*
|
|
146
|
+
* Date-only ISO strings in `YYYY-MM-DD` format are preserved as-is to avoid day shifts in negative local
|
|
147
|
+
* timezones. Other valid `Date`, `number`, and `string` values are normalized to canonical `YYYY-MM-DD`.
|
|
148
|
+
*
|
|
133
149
|
* @example
|
|
134
150
|
* ```js
|
|
135
151
|
* daylight.localDate = new Date("2005-08-25");
|
|
@@ -214,7 +230,7 @@ export abstract class ArcgisDaylight extends LitElement {
|
|
|
214
230
|
/**
|
|
215
231
|
* Slider position for the time of day in the timezone
|
|
216
232
|
* given by [utcOffset](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-daylight/#utcOffset). The position represents the time
|
|
217
|
-
* of the day in minutes.
|
|
233
|
+
* of the day in minutes. Values are normalized to a single day (0-1439).
|
|
218
234
|
*
|
|
219
235
|
* @example
|
|
220
236
|
* ```js
|
|
@@ -246,12 +262,25 @@ export abstract class ArcgisDaylight extends LitElement {
|
|
|
246
262
|
/**
|
|
247
263
|
* The difference in hours between UTC time and the time displayed in the component.
|
|
248
264
|
*
|
|
265
|
+
* In sunlight mode, changing only this property preserves the current `SunLighting.date` instant and recomputes
|
|
266
|
+
* displayed local date/time in the new offset. When this property changes together with
|
|
267
|
+
* [localDate](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-daylight/#localDate) and/or [timeSliderPosition](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-daylight/#timeSliderPosition),
|
|
268
|
+
* the date/time values are applied as one local selection and a new lighting instant is written.
|
|
269
|
+
*
|
|
249
270
|
* @example
|
|
250
271
|
* ```js
|
|
272
|
+
* // Change display timezone while preserving the same scene lighting instant.
|
|
251
273
|
* daylight.utcOffset = -8;
|
|
252
274
|
* ```
|
|
253
275
|
* @example
|
|
254
276
|
* ```js
|
|
277
|
+
* // Apply timezone and local date/time together to write a new lighting instant.
|
|
278
|
+
* daylight.utcOffset = -8;
|
|
279
|
+
* daylight.localDate = "2025-01-15";
|
|
280
|
+
* daylight.timeSliderPosition = 16 * 60;
|
|
281
|
+
* ```
|
|
282
|
+
* @example
|
|
283
|
+
* ```js
|
|
255
284
|
* // Alternatively, the UTC offset can be set by configuring the `displayUTCOffset` property of `SunLighting`.
|
|
256
285
|
* viewElement.environment.lighting = new SunLighting({
|
|
257
286
|
* displayUTCOffset: -8
|
|
@@ -269,6 +298,9 @@ export abstract class ArcgisDaylight extends LitElement {
|
|
|
269
298
|
* Starts or pauses the date animation cycling through the months of the year.
|
|
270
299
|
* Set the property to `true` to start the animation and to `false` to pause it.
|
|
271
300
|
*
|
|
301
|
+
* `yearPlaying` and [dayPlaying](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-daylight/#dayPlaying) are mutually exclusive.
|
|
302
|
+
* When virtual lighting is active, playback is stopped.
|
|
303
|
+
*
|
|
272
304
|
* @default false
|
|
273
305
|
*/
|
|
274
306
|
accessor yearPlaying: boolean;
|
|
@@ -283,6 +315,9 @@ export abstract class ArcgisDaylight extends LitElement {
|
|
|
283
315
|
* Fires when the user changes the date or time in the component by interacting with the slider, the date picker, the
|
|
284
316
|
* season selector or the play buttons.
|
|
285
317
|
*
|
|
318
|
+
* This event is user-action only. It does not fire for internal synchronization (for example, initial state sync
|
|
319
|
+
* when the view becomes ready).
|
|
320
|
+
*
|
|
286
321
|
* @since 4.33
|
|
287
322
|
*/
|
|
288
323
|
readonly arcgisUserDateTimeChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
@@ -5,12 +5,12 @@ import "@arcgis/core/core/Error.js";
|
|
|
5
5
|
import "@arcgis/core/Graphic.js";
|
|
6
6
|
import { LitElement as f, createEvent as o } from "@arcgis/lumina";
|
|
7
7
|
import { log as d, composeMissingPropertyMessage as h, composeEmptyPropertyMessage as _ } from "@arcgis/toolkit/log";
|
|
8
|
-
import { css as v, html as
|
|
8
|
+
import { css as v, html as i } from "lit";
|
|
9
9
|
import { createRef as b, ref as u } from "lit/directives/ref.js";
|
|
10
10
|
import { u as R } from "../../chunks/useT9n.js";
|
|
11
|
-
import { l as
|
|
12
|
-
import { q as w, c as
|
|
13
|
-
const E = v`:host{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}arcgis-features{height:100%}calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.white-panel-background{--calcite-panel-background-color: var(--calcite-color-foreground-1)}.aggregated-geometry-container{display:flex;justify-content:space-between;
|
|
11
|
+
import { l as $ } from "../../chunks/async-utils.js";
|
|
12
|
+
import { q as w, c as C } from "../../chunks/layer-utils.js";
|
|
13
|
+
const E = v`:host{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}arcgis-features{height:100%}calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.white-panel-background{--calcite-panel-background-color: var(--calcite-color-foreground-1)}.aggregated-geometry-container{display:flex;justify-content:space-between;margin:0 var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-md)}#elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);margin:0 var(--calcite-spacing-sm)}.no-selectable-results{margin:0 var(--calcite-spacing-md);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.results-heading{display:flex;flex-direction:column;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-xs)}.results-heading .results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.results-heading .results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.functions-heading{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-xxs) var(--calcite-spacing-md);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-sm) var(--calcite-spacing-xl) var(--calcite-spacing-xl) var(--calcite-spacing-xl);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`, g = {
|
|
14
14
|
dirtyAreasDiscovered: -2147208511,
|
|
15
15
|
noValidControllers: -2147208935,
|
|
16
16
|
pathNotFound: -2147208444
|
|
@@ -23,13 +23,13 @@ class F extends f {
|
|
|
23
23
|
this._elementsWithoutLayer.push(...r);
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
const { features: n } = await w(s,
|
|
26
|
+
const l = s.createQuery();
|
|
27
|
+
l.gdbVersion = this.utilityNetwork?.gdbVersion, l.objectIds = r.map((c) => c.objectId), l.outFields = ["*"];
|
|
28
|
+
const { features: n } = await w(s, l);
|
|
29
29
|
n.forEach((c) => {
|
|
30
30
|
const m = c.layer;
|
|
31
31
|
c.getEffectivePopupTemplate(this._defaultPopupTemplateEnabled) || (c.popupTemplate = m.createPopupTemplate());
|
|
32
|
-
}),
|
|
32
|
+
}), C(s) ? n.forEach((c) => this._addOrCreateMapValue(this._subtypeCodeToFeatures, c.layer.subtypeCode, c)) : this._layerIdToFeatures.set(a, n);
|
|
33
33
|
}, this._aggregateGeometryRefChange = (e) => {
|
|
34
34
|
e && (this._aggregatedGeometryComponentElement = e);
|
|
35
35
|
}, this._featuresRefChange = (e) => {
|
|
@@ -93,12 +93,12 @@ class F extends f {
|
|
|
93
93
|
try {
|
|
94
94
|
t.loaded || (this.state = "loading", await t.load());
|
|
95
95
|
} catch (r) {
|
|
96
|
-
|
|
96
|
+
$(r, this, "Error while loading the selected utility network");
|
|
97
97
|
}
|
|
98
98
|
this._unLayers = e.filter((r) => t.isUtilityLayer(r));
|
|
99
99
|
const s = this._unLayers.filter((r) => !r.loaded).map((r) => r.load());
|
|
100
|
-
s.length > 0 && (this.state = "loading", (await Promise.allSettled(s)).forEach((
|
|
101
|
-
|
|
100
|
+
s.length > 0 && (this.state = "loading", (await Promise.allSettled(s)).forEach((l) => {
|
|
101
|
+
l.status === "rejected" && d("error", this, `Failed to load layer. Reason: ${l.reason}`);
|
|
102
102
|
}));
|
|
103
103
|
}
|
|
104
104
|
async _queryTraceResultsFeatures() {
|
|
@@ -107,10 +107,10 @@ class F extends f {
|
|
|
107
107
|
return;
|
|
108
108
|
this.state = "loading";
|
|
109
109
|
const t = e.map(this._queryFeaturesOnLayer);
|
|
110
|
-
(await Promise.allSettled(t)).forEach((
|
|
111
|
-
if (
|
|
110
|
+
(await Promise.allSettled(t)).forEach((l, n) => {
|
|
111
|
+
if (l.status === "rejected") {
|
|
112
112
|
const [c] = e[n];
|
|
113
|
-
d("error", this, `Failed to query features for source ${c}. Reason: ${
|
|
113
|
+
d("error", this, `Failed to query features for source ${c}. Reason: ${l.reason}`);
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
const s = Array.from(this._layerIdToFeatures.values()), r = Array.from(this._subtypeCodeToFeatures.values());
|
|
@@ -125,39 +125,42 @@ class F extends f {
|
|
|
125
125
|
return this._renderErrorLanding(e);
|
|
126
126
|
if (!t)
|
|
127
127
|
return this._renderNoTraceLanding();
|
|
128
|
-
const { elements: a, globalFunctionResults: s, aggregatedGeometry: r } = t,
|
|
129
|
-
return
|
|
128
|
+
const { elements: a, globalFunctionResults: s, aggregatedGeometry: r } = t, l = !a.length && !s.length && !r, n = a.length > 0 && !s.length && !r;
|
|
129
|
+
return l ? this._renderNoResultsLanding() : this.state === "loading" ? this._renderGettingResults() : this.hideFeatureResults && n ? this._renderFeaturesAreHiddenLanding() : this.isElementsSelected || n ? i`<arcgis-features-next .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} .features=${this.traceResultFeatures} .hideActionBar=${this.hideActionBar} .hideCloseButton=${n} hide-select-feature initial-display-mode=list @arcgisClose=${() => this.isElementsSelected = !1} open .referenceElement=${this.referenceElement} .view=${this.view} ${u(this._featuresRefChange)}></arcgis-features-next>` : this._renderLanding(t);
|
|
130
130
|
}
|
|
131
131
|
_renderGettingResults() {
|
|
132
|
-
return
|
|
132
|
+
return i`<calcite-panel class="white-panel-background"><calcite-loader .label=${this._messages.gettingResults} .text=${this._messages.gettingResults}></calcite-loader></calcite-panel>`;
|
|
133
133
|
}
|
|
134
134
|
_renderLanding(e) {
|
|
135
135
|
const { elements: t, globalFunctionResults: a, aggregatedGeometry: s } = e;
|
|
136
|
-
return
|
|
136
|
+
return i`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}${s != null ? this._renderAggregatedGeometry(s) : null}${s != null && !t.length ? this._renderNoSelectableResults() : null}${t.length > 0 ? this.hideFeatureResults ? this._renderFeaturesAreHidden() : this._renderElementsResults() : null}${a.length > 0 ? this._renderFunctionsResults(a) : null}</calcite-panel>`;
|
|
137
137
|
}
|
|
138
138
|
_renderAggregatedGeometry(e) {
|
|
139
|
-
return
|
|
139
|
+
return i`<div class="aggregated-geometry-container"><arcgis-utility-network-aggregated-geometry .graphicsColor=${this.aggregatedGeometryGraphicsColor} .geometry=${e} .view=${this.view} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} auto-destroy-disabled ${u(this._aggregateGeometryRefChange)}></arcgis-utility-network-aggregated-geometry><calcite-swatch id=geometry-color-swatch .label=${this._messages.labels.aggregatedGeometryGraphicsColor} .color=${this.aggregatedGeometryGraphicsColor.toCss()} .disabled=${this._aggregatedGeometryDisabled}></calcite-swatch><calcite-popover .heading=${this._messages.headings.setColor} .label=${this._messages.headings.setColor} reference-element=geometry-color-swatch closable ${u(this._popoverRef)}><calcite-color-picker alpha-channel channels-disabled clearable hex-disabled saved-disabled .value=${this.aggregatedGeometryGraphicsColor} @calciteColorPickerChange=${(t) => {
|
|
140
140
|
const a = t.target.value;
|
|
141
141
|
this.arcgisAggregatedGeometryGraphicsColorChange.emit(a);
|
|
142
142
|
}} .disabled=${this._aggregatedGeometryDisabled}></calcite-color-picker></calcite-popover></div>`;
|
|
143
143
|
}
|
|
144
|
+
_renderFeaturesAreHiddenLanding() {
|
|
145
|
+
return i`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}${this._renderFeaturesAreHidden()}</calcite-panel>`;
|
|
146
|
+
}
|
|
144
147
|
_renderFeaturesAreHidden() {
|
|
145
|
-
return
|
|
148
|
+
return i`<div class="no-selectable-results">${this._messages.resultFeaturesAreHidden}</div>`;
|
|
146
149
|
}
|
|
147
150
|
_renderNoSelectableResults() {
|
|
148
|
-
return
|
|
151
|
+
return i`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`;
|
|
149
152
|
}
|
|
150
153
|
_renderElementsResults() {
|
|
151
|
-
return
|
|
154
|
+
return i`<calcite-list .label=${this._messages.headings.traceResultsGeneric}><calcite-list-item id=elements-list-item .label=${this._messages.headings.features} @calciteListItemSelect=${() => this.isElementsSelected = !0}><calcite-chip .label=${this._messages.labels.numFeatures} scale=s slot=content-end>${this.numResults}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
|
|
152
155
|
}
|
|
153
156
|
_renderFunctionsResults(e) {
|
|
154
|
-
return
|
|
155
|
-
const { functionName: a, networkAttributeName: s, functionType: r, result:
|
|
156
|
-
return
|
|
157
|
+
return i`<div class="functions-heading">${this._messages.headings.functions}</div><calcite-table .caption=${this._messages.labels.functionResults}>${e.filter((t) => t.networkAttributeName != null && t.result != null && t.functionType != null).map((t) => {
|
|
158
|
+
const { functionName: a, networkAttributeName: s, functionType: r, result: l } = t, n = a || `${s} ${r}`;
|
|
159
|
+
return i`<calcite-table-row><calcite-table-cell>${n}</calcite-table-cell><calcite-table-cell>${l}</calcite-table-cell></calcite-table-row>`;
|
|
157
160
|
})}</calcite-table>`;
|
|
158
161
|
}
|
|
159
162
|
_renderTraceResultsHeading() {
|
|
160
|
-
return
|
|
163
|
+
return i`<div class="results-heading"><div class="results-heading-title">${this._messages.headings.traceResultsGeneric}</div>${this.traceConfigTitle ? i`<div class="results-heading-subtitle">${this.traceConfigTitle}</div>` : null}</div>`;
|
|
161
164
|
}
|
|
162
165
|
_renderErrorLanding(e) {
|
|
163
166
|
let t = e.message;
|
|
@@ -172,13 +175,13 @@ class F extends f {
|
|
|
172
175
|
t = this._messages.traceErrors.pathNotFound;
|
|
173
176
|
break;
|
|
174
177
|
}
|
|
175
|
-
return
|
|
178
|
+
return i`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${this._messages.traceFailedHeading}</div><div class="no-results-description">${this._messages.traceFailedDescription}</div><div class="no-results-description">${t}</div></div></calcite-panel>`;
|
|
176
179
|
}
|
|
177
180
|
_renderNoResultsLanding() {
|
|
178
|
-
return
|
|
181
|
+
return i`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${this._messages.noResultsHeading}</div><div class="no-results-description">${this._messages.noResultsDescription}</div></div></calcite-panel>`;
|
|
179
182
|
}
|
|
180
183
|
_renderNoTraceLanding() {
|
|
181
|
-
return
|
|
184
|
+
return i`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${this._messages.noTraceConfigHeading}</div><div class="no-results-description">${this._messages.noTraceConfigDescription}</div></div></calcite-panel>`;
|
|
182
185
|
}
|
|
183
186
|
}
|
|
184
187
|
p("arcgis-utility-network-trace-results", F);
|