@arcgis/map-components 5.1.0-next.102 → 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.
- package/dist/cdn/37PU5RQF.js +2 -0
- package/dist/cdn/{3EF4MN6L.js → 42YT33SI.js} +1 -1
- package/dist/cdn/{FBVHVWJP.js → 4BUXOQ5X.js} +1 -1
- package/dist/cdn/{J3MFZHTJ.js → 4P5SOHAK.js} +1 -1
- package/dist/cdn/{SFXP3DOP.js → 5CVCIDET.js} +1 -1
- package/dist/cdn/{H43ZBRJO.js → 5F4QQFMV.js} +1 -1
- package/dist/cdn/{IQHG6OT4.js → 5FHYTVXJ.js} +1 -1
- package/dist/cdn/{SEJ6JCXN.js → 6SLFSRO3.js} +1 -1
- package/dist/cdn/{5AY6FU6R.js → 6U7WM64M.js} +1 -1
- package/dist/cdn/{MFXNJZSL.js → 7MG2HVHJ.js} +1 -1
- package/dist/cdn/7YEXZHW3.js +2 -0
- package/dist/cdn/{7UZP3RBC.js → AWQHNAWY.js} +1 -1
- package/dist/cdn/{TZKT637Q.js → C5RCUSYN.js} +1 -1
- package/dist/cdn/CXPIQET3.js +2 -0
- package/dist/cdn/{GHISRID5.js → D4ATYXZL.js} +1 -1
- package/dist/cdn/{5FEFHUMM.js → DWWDCRDK.js} +1 -1
- package/dist/cdn/{6QTNDMTM.js → EE4OHTHH.js} +1 -1
- package/dist/cdn/{ZYG4YNMK.js → GAWULXAQ.js} +1 -1
- package/dist/cdn/{CY5MXN4Q.js → GBHDATFS.js} +1 -1
- package/dist/cdn/GFXNIWNG.js +2 -0
- package/dist/cdn/{MGLV5EEI.js → HVKDLP74.js} +1 -1
- package/dist/cdn/{K6JERTMI.js → I7HKS77T.js} +1 -1
- package/dist/cdn/ICIX7OQK.js +2 -0
- package/dist/cdn/JW6K33EY.js +2 -0
- package/dist/cdn/LFFZNI4J.js +2 -0
- package/dist/cdn/{P27CM5PI.js → LTUURA6B.js} +1 -1
- package/dist/cdn/{T5YUD4HI.js → MLD4FBFB.js} +1 -1
- package/dist/cdn/MXXKVA3L.js +2 -0
- package/dist/cdn/{SBWTPIZH.js → NWLO4YJB.js} +1 -1
- package/dist/cdn/{KEKKHAC3.js → OGV2KLWY.js} +1 -1
- package/dist/cdn/{RQQW45SO.js → P36R3KMU.js} +1 -1
- package/dist/cdn/{7KIORSA4.js → PO4N3MEU.js} +1 -1
- package/dist/cdn/{6HRKATQQ.js → S36YQI7W.js} +1 -1
- package/dist/cdn/{KGWDZNHG.js → SKRNQKVO.js} +1 -1
- package/dist/cdn/{DU33A6QD.js → T2RNAPRO.js} +1 -1
- package/dist/cdn/{2M7OVKOX.js → UCPJMQPU.js} +1 -1
- package/dist/cdn/{YNGHIC64.js → UNFS72TS.js} +1 -1
- package/dist/cdn/{HYNB4OPZ.js → VDSKVXIQ.js} +1 -1
- package/dist/cdn/{PWCOBDBK.js → VSZ3LZA2.js} +1 -1
- package/dist/cdn/{CUJU6FOW.js → YGYGCNWI.js} +1 -1
- package/dist/cdn/{ZVTZRBDZ.js → Z5RIW77H.js} +1 -1
- package/dist/cdn/ZDOE5UWP.js +2 -0
- package/dist/cdn/assets/search/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/slider-time/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/unit-select/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/async-utils.js +63 -51
- package/dist/chunks/time-utils.js +27 -15
- package/dist/chunks/useArcgisViewReadyError.js +115 -56
- package/dist/components/arcgis-bookmarks/customElement.d.ts +3 -0
- package/dist/components/arcgis-coordinate-conversion/customElement.js +6 -6
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +4 -4
- package/dist/components/arcgis-link-chart/customElement.d.ts +1 -0
- package/dist/components/arcgis-link-chart/customElement.js +13 -10
- package/dist/components/arcgis-map/customElement.d.ts +1 -0
- package/dist/components/arcgis-map/customElement.js +13 -10
- package/dist/components/arcgis-scene/customElement.d.ts +1 -0
- package/dist/components/arcgis-scene/customElement.js +23 -20
- package/dist/components/arcgis-search/customElement.d.ts +3 -0
- package/dist/components/arcgis-search/customElement.js +6 -6
- package/dist/components/arcgis-slider-time/customElement.d.ts +868 -0
- package/dist/components/arcgis-slider-time/customElement.js +740 -0
- package/dist/components/arcgis-slider-time/index.d.ts +1 -0
- package/dist/components/arcgis-slider-time/index.js +8 -0
- package/dist/components/arcgis-slider-time/types.d.ts +147 -0
- package/dist/components/arcgis-time-slider/customElement.d.ts +2 -1
- package/dist/components/arcgis-time-slider/customElement.js +2 -2
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +18 -6
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +21 -21
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +4 -4
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +16 -16
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +3 -0
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +13 -9
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.d.ts +161 -35
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +5 -1
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +1 -3
- 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 +10 -0
- package/dist/loader.js +5 -4
- package/dist/types/lumina.d.ts +10 -2
- package/dist/types/preact.d.ts +11 -2
- package/dist/types/react.d.ts +12 -2
- package/dist/types/stencil.d.ts +10 -2
- package/package.json +4 -4
- package/dist/cdn/6E3T7FRP.js +0 -2
- package/dist/cdn/HIYCE253.js +0 -2
- package/dist/cdn/HW3D7A2P.js +0 -2
- package/dist/cdn/IQPGSWSL.js +0 -2
- package/dist/cdn/IU2X5JKR.js +0 -2
- package/dist/cdn/L7LTDZU6.js +0 -2
- package/dist/cdn/OSRU2RUW.js +0 -2
- package/dist/cdn/X6BCGFB3.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "@esri/calcite-components/components/calcite-action-menu";
|
|
2
|
+
import "@esri/calcite-components/components/calcite-action";
|
|
3
|
+
import "@arcgis/common-components/components/arcgis-ticks";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-label";
|
|
5
|
+
import "@esri/calcite-components/components/calcite-button";
|
|
6
|
+
import "@arcgis/common-components/components/arcgis-slider";
|
|
7
|
+
import "@esri/calcite-components/components/calcite-icon";
|
|
8
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import type TimeExtent from "@arcgis/core/time/TimeExtent.js";
|
|
2
|
+
import type TimeInterval from "@arcgis/core/time/TimeInterval.js";
|
|
3
|
+
import type { IconName } from "../types.js";
|
|
4
|
+
|
|
5
|
+
/** Defines the layout options for the time slider component. */
|
|
6
|
+
export type Layout = "auto" | "compact" | "wide";
|
|
7
|
+
|
|
8
|
+
/** Defines the different modes of the time slider component. */
|
|
9
|
+
export type Mode = "cumulative-from-end" | "cumulative-from-start" | "instant" | "time-window";
|
|
10
|
+
|
|
11
|
+
/** Defines the different states of the time slider component. */
|
|
12
|
+
export type State = "disabled" | "playing" | "ready";
|
|
13
|
+
|
|
14
|
+
/** Stops are positioned at specific dates. */
|
|
15
|
+
export interface StopsByDates {
|
|
16
|
+
dates: Date[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** Stops are positioned at regular intervals defined by a [time interval](https://developers.arcgis.com/javascript/latest/references/core/time/TimeInterval). */
|
|
20
|
+
export interface StopsByInterval {
|
|
21
|
+
/** The interval at which stops will be created. */
|
|
22
|
+
interval: TimeInterval;
|
|
23
|
+
/** The time extent over which the stops will be distributed. */
|
|
24
|
+
timeExtent?: TimeExtent;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Stops are positioned at a specific number of evenly spaced locations along the time slider.
|
|
29
|
+
* The exact positions of the stops will be calculated based on the provided count and the time extent of the slider.
|
|
30
|
+
*/
|
|
31
|
+
export interface StopsByCount {
|
|
32
|
+
/** The number of stops to create along the time slider. */
|
|
33
|
+
count: number;
|
|
34
|
+
/** The time extent over which the stops will be distributed. */
|
|
35
|
+
timeExtent?: TimeExtent;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type Stops = StopsByCount | StopsByDates | StopsByInterval;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* An action that can be performed by the user in the time slider component.
|
|
42
|
+
* Actions are displayed in a menu that appears when the user clicks the ellipsis button in the component.
|
|
43
|
+
*/
|
|
44
|
+
export interface Action {
|
|
45
|
+
/** Unique identifier of the action. */
|
|
46
|
+
id: string;
|
|
47
|
+
/**
|
|
48
|
+
* The name of the icon to display.
|
|
49
|
+
* The value of this property must match the icon name from
|
|
50
|
+
* [Calcite UI Icons](https://developers.arcgis.com/calcite-design-system/icons/).
|
|
51
|
+
*/
|
|
52
|
+
icon: IconName;
|
|
53
|
+
/** The title of the action that will be displayed in the menu. */
|
|
54
|
+
title: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Time slider settings derived from a
|
|
59
|
+
* [timeSlider widget](https://developers.arcgis.com/javascript/latest/references/core/webdoc/Widgets/#timeSlider) in a
|
|
60
|
+
* [web map](https://developers.arcgis.com/javascript/latest/references/core/WebMap) or
|
|
61
|
+
* [web scene](https://developers.arcgis.com/javascript/latest/references/core/WebScene).
|
|
62
|
+
*/
|
|
63
|
+
export interface TimeSliderSettings {
|
|
64
|
+
/**
|
|
65
|
+
* The temporal extent of the entire slider.
|
|
66
|
+
*
|
|
67
|
+
* @see [arcgis-slider-time.fullTimeExtent](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-time/#fullTimeExtent)
|
|
68
|
+
*/
|
|
69
|
+
fullTimeExtent?: TimeExtent | null;
|
|
70
|
+
/**
|
|
71
|
+
* When `true`, the arcgis-slider-time will play its animation in a loop.
|
|
72
|
+
*
|
|
73
|
+
* @see [arcgis-slider-time.loop](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-time/#loop)
|
|
74
|
+
*/
|
|
75
|
+
loop: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* The time slider mode.
|
|
78
|
+
*
|
|
79
|
+
* @see [arcgis-slider-time.mode](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-time/#mode)
|
|
80
|
+
*/
|
|
81
|
+
mode?: Mode;
|
|
82
|
+
/**
|
|
83
|
+
* The time (in milliseconds) between animation steps.
|
|
84
|
+
*
|
|
85
|
+
* @see [arcgis-slider-time.playRate](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-time/#playRate)
|
|
86
|
+
*/
|
|
87
|
+
playRate?: number;
|
|
88
|
+
/**
|
|
89
|
+
* Defines specific locations on the time slider where thumbs will snap to when manipulated.
|
|
90
|
+
*
|
|
91
|
+
* @see [arcgis-slider-time.stops](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-time/#stops)
|
|
92
|
+
*/
|
|
93
|
+
stops?: Stops | null;
|
|
94
|
+
/**
|
|
95
|
+
* The current time extent of the time slider.
|
|
96
|
+
*
|
|
97
|
+
* @see [arcgis-slider-time.timeExtent](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-time/#timeExtent)
|
|
98
|
+
*/
|
|
99
|
+
timeExtent?: TimeExtent | null;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** Event payload for the trigger-action event. */
|
|
103
|
+
export interface TriggerActionEvent {
|
|
104
|
+
/** The action that was clicked. */
|
|
105
|
+
action: Action;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** Describes the type of date label that is being formatted by the date label formatter function. */
|
|
109
|
+
export type DateLabelType = "extent" | "max" | "min";
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* A function that formats the date labels displayed on the time slider.
|
|
113
|
+
*
|
|
114
|
+
* @param value
|
|
115
|
+
* @param type
|
|
116
|
+
* @param element
|
|
117
|
+
* @param layout
|
|
118
|
+
*/
|
|
119
|
+
export type DateLabelFormatter = (value: Date | [Date | null | undefined, Date | null | undefined] | null | undefined, type: DateLabelType, element: HTMLElement, layout: Exclude<Layout, "auto">) => void;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Given a tick value, this function returns the label to display for that tick.
|
|
123
|
+
*
|
|
124
|
+
* @param value
|
|
125
|
+
*/
|
|
126
|
+
export type TickLabelFormatter = (value: number) => string;
|
|
127
|
+
|
|
128
|
+
/** This type defines how tick values are interpreted and positioned along the time slider component. */
|
|
129
|
+
export type TickMode = "count" | "percent" | "position";
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Tick mark and label configuration for the time slider component.
|
|
133
|
+
* Each tick configuration includes a `mode` that determines how the tick values are calculated, and a `labelFormatFunction` that formats the tick labels.
|
|
134
|
+
*/
|
|
135
|
+
export interface TickConfig {
|
|
136
|
+
/** If `labelsVisible` is `true`, this function will be used to format the labels for the ticks based on their values. */
|
|
137
|
+
labelFormatFunction?: TickLabelFormatter;
|
|
138
|
+
/**
|
|
139
|
+
* If `true`, labels will be rendered for the ticks based on their values and the provided `labelFormatFunction`.
|
|
140
|
+
* If `false`, only tick marks will be rendered without labels.
|
|
141
|
+
*/
|
|
142
|
+
labelsVisible?: boolean;
|
|
143
|
+
/** The mode or method of positioning ticks. */
|
|
144
|
+
mode: TickMode;
|
|
145
|
+
/** The value or values for the ticks. */
|
|
146
|
+
values: number[] | number;
|
|
147
|
+
}
|
|
@@ -8,7 +8,7 @@ import type { TimeSliderViewModelTriggerActionEvent } from "@arcgis/core/widgets
|
|
|
8
8
|
import type { TimeSliderSettings, Action, TimeSliderMode, TimeSliderState, Stops } from "@arcgis/core/widgets/TimeSlider/types.js";
|
|
9
9
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
10
10
|
import type { Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
11
|
-
import type { TimeSliderLayout } from "@arcgis/core/widgets/TimeSlider.js";
|
|
11
|
+
import type { DateLabelFormatter, TimeSliderLayout } from "@arcgis/core/widgets/TimeSlider.js";
|
|
12
12
|
import type { TickConfig } from "@arcgis/core/widgets/Slider/types.js";
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -151,6 +151,7 @@ export abstract class ArcgisTimeSlider extends LitElement {
|
|
|
151
151
|
* @since 4.11
|
|
152
152
|
*/
|
|
153
153
|
accessor label: string;
|
|
154
|
+
accessor labelFormatFunction: DateLabelFormatter | null | undefined;
|
|
154
155
|
/**
|
|
155
156
|
* Determines the layout used by the TimeSlider component.
|
|
156
157
|
*
|
|
@@ -10,10 +10,10 @@ import { when as d } from "@arcgis/core/core/reactiveUtils.js";
|
|
|
10
10
|
const c = n`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-button{box-sizing:border-box;cursor:pointer;white-space:normal;word-break:normal;color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info);justify-content:center;align-items:center;width:100%;min-height:var(--calcite-spacing-xxxl);padding:6px 7px;font-family:inherit;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out,border .125s ease-in-out;display:flex;overflow:hidden;&:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info-hover);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info-hover)}}.esri-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-text-2);border:1px solid var(--calcite-color-text-2)}.esri-button.esri-button--small{min-height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size-sm)}.esri-button.esri-button--half{width:50%;display:inline-block}.esri-button.esri-button--third{width:33%;display:inline-block}.esri-button--secondary{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-button--tertiary{color:var(--calcite-color-brand);background-color:var(--calcite-color-transparent);border-color:var(--calcite-color-transparent)}.esri-button--tertiary:hover{color:var(--calcite-color-brand-hover);background-color:var(--calcite-color-foreground-2);border-color:var(--calcite-color-transparent)}.esri-button--disabled{opacity:.4;pointer-events:none}.esri-button--drill-in{outline-offset:-4px;cursor:pointer;text-align:unset;background-color:var(--calcite-color-foreground-1);border:none;border-radius:2px;justify-content:space-between;align-items:center;margin:var(--calcite-spacing-md) 7px;padding:var(--calcite-spacing-md) 7px;text-decoration:none;transition:background-color .125s ease-in-out;display:flex;box-shadow:0 0 0 1px #adadad4d}.esri-button--drill-in:hover,.esri-button--drill-in:focus{background-color:var(--calcite-color-foreground-2)}.esri-button--drill-in__title{font-size:var(--calcite-font-size)}.esri-button--drill-in [class^=esri-icon-],.esri-button--drill-in [class*=" esri-icon-"]{padding:0 7px}.esri-widget--button{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);flex-flow:row;justify-content:center;align-items:center;width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;overflow:hidden}.esri-widget--button:is(calcite-button):not(:hover){--calcite-icon-color: var(--calcite-color-text-3)}.esri-widget--button:not([appearance]),.esri-widget--button[appearance=solid]{--calcite-color-foreground-3: var(--calcite-color-foreground-1)}.esri-widget--button:is(calcite-button){--calcite-offset-invert-focus: 1}.esri-widget--button calcite-loader[inline]{margin:auto}.esri-button--secondary{color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);&:hover{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-status-info);border:1px solid var(--calcite-color-status-info)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}.esri-time-slider{min-width:375px;box-shadow:0 1px 2px #0000004d}.esri-time-slider__layout--wide .esri-time-slider__row{height:88px}.esri-time-slider__layout--wide .esri-time-slider__playback-controls{direction:ltr;flex:auto;display:flex}.esri-time-slider__layout--wide .esri-time-slider__play{width:64px}.esri-time-slider__layout--wide .esri-time-slider__time-extent{flex-flow:column;justify-content:center;align-items:center;width:110px;display:flex}.esri-time-slider__layout--wide .esri-time-slider__time-extent-separator{opacity:var(--calcite-opacity-disabled);margin-top:var(--calcite-spacing-fixed-xxs);margin-bottom:var(--calcite-spacing-fixed-xs);background-color:var(--calcite-color-brand);width:75px;height:var(--calcite-size-px)}.esri-time-slider__layout--wide .esri-time-slider__time-extent,.esri-time-slider__layout--wide .esri-time-slider__min,.esri-time-slider__layout--wide .esri-time-slider__previous,.esri-time-slider__layout--wide .esri-time-slider__actions{border-left:var(--calcite-border-width-sm) solid var(--calcite-color-border-1)}.esri-time-slider__layout--wide .esri-time-slider__min,.esri-time-slider__layout--wide .esri-time-slider__max{align-items:center;width:110px}.esri-time-slider__layout--wide .esri-time-slider__slider{flex:auto;overflow:hidden}.esri-time-slider__layout--wide .esri-time-slider__previous,.esri-time-slider__layout--wide .esri-time-slider__next{width:42px}.esri-time-slider__layout--wide .esri-time-slider__warning{flex-flow:column}.esri-time-slider__layout--compact.esri-time-slider--has-actions .esri-time-slider__time-extent{padding-inline-start:48px}.esri-time-slider__layout--compact .esri-time-slider__row:first-child,.esri-time-slider__layout--compact .esri-time-slider__row:nth-child(3){height:36px}.esri-time-slider__layout--compact .esri-time-slider__row:nth-child(2){height:88px;overflow:hidden}.esri-time-slider__layout--compact .esri-time-slider__play{width:35px}.esri-time-slider__layout--compact .esri-time-slider__time-extent{flex-flow:row;flex:auto;justify-content:center;align-items:center;display:flex}.esri-time-slider__layout--compact .esri-time-slider__time-extent-separator{opacity:var(--calcite-opacity-disabled);background-color:var(--calcite-color-brand);width:var(--calcite-size-px);height:var(--calcite-spacing-xxl);margin-inline:7px}.esri-time-slider__layout--compact .esri-time-slider__min,.esri-time-slider__layout--compact .esri-time-slider__max,.esri-time-slider__layout--compact .esri-time-slider__slider{flex:auto}.esri-time-slider__layout--compact .esri-time-slider__min{align-items:flex-start;margin-inline-start:35px}.esri-time-slider__layout--compact .esri-time-slider__max{align-items:flex-end;margin-inline-end:35px}.esri-time-slider__layout--compact .esri-time-slider__previous,.esri-time-slider__layout--compact .esri-time-slider__next{width:35px}.esri-time-slider__layout--compact .esri-time-slider__warning{flex-flow:row}.esri-time-slider__layout--compact .esri-time-slider__warning-label{margin-inline-start:var(--calcite-spacing-xs)}.esri-time-slider__row{display:flex}.esri-time-slider__mode--instant .esri-slider__segment-0,.esri-time-slider__mode--instant .esri-slider__segment-1{background-color:var(--calcite-color-border-input)}.esri-time-slider__mode--time-window .esri-slider__segment-1{background-color:var(--calcite-color-brand);height:var(--calcite-spacing-xs);margin-top:-1px}.esri-time-slider__mode--time-window .esri-slider__segment-0,.esri-time-slider__mode--time-window .esri-slider__segment-2{background-color:var(--calcite-color-border-input)}.esri-time-slider__mode--time-window.esri-time-slider--out-of-bounds .esri-slider__segment-1{background-color:var(--calcite-color-status-danger)}.esri-time-slider__mode--cumulative-from-start .esri-slider__segment-0{background-color:var(--calcite-color-brand);height:var(--calcite-spacing-xs);margin-top:-1px}.esri-time-slider__mode--cumulative-from-start .esri-slider__segment-1{background-color:var(--calcite-color-border-input)}.esri-time-slider__mode--cumulative-from-start.esri-time-slider--out-of-bounds .esri-slider__segment-0{background-color:var(--calcite-color-status-danger)}.esri-time-slider__mode--cumulative-from-end .esri-slider__segment-0{background-color:var(--calcite-color-border-input)}.esri-time-slider__mode--cumulative-from-end .esri-slider__segment-1{background-color:var(--calcite-color-brand);height:var(--calcite-spacing-xs);margin-top:-1px}.esri-time-slider__mode--cumulative-from-end.esri-time-slider--out-of-bounds .esri-slider__segment-1{background-color:var(--calcite-color-status-danger)}.esri-time-slider__time-extent-start-group,.esri-time-slider__time-extent-end-group{flex-flow:column;align-items:center;display:flex}.esri-time-slider__time-extent-start-date,.esri-time-slider__time-extent-start-time,.esri-time-slider__time-extent-end-date,.esri-time-slider__time-extent-end-time{--calcite-label-margin-bottom: 0;--calcite-label-text-color: var(--calcite-color-brand)}.esri-time-slider__time-extent-start-date,.esri-time-slider__time-extent-end-date{font-weight:var(--calcite-font-weight-bold)}.esri-time-slider__min,.esri-time-slider__max{flex-flow:column;justify-content:center;display:flex}.esri-time-slider__min-date,.esri-time-slider__max-date{font-weight:var(--calcite-font-weight-bold)}.esri-time-slider__min-date,.esri-time-slider__min-time,.esri-time-slider__max-date,.esri-time-slider__max-time{--calcite-label-margin-bottom: 0}.esri-time-slider__slider{background-color:var(--calcite-color-foreground-2);padding:0 40px}.esri-time-slider__slider .esri-slider{background-color:var(--calcite-color-foreground-2);margin-top:-19px}.esri-time-slider__slider .esri-slider__thumb{border-width:3px;top:-6px}.esri-time-slider__slider .esri-slider__tick-label{white-space:nowrap;font-size:var(--calcite-font-size--2);margin-top:23px}.esri-time-slider__slider .esri-slider__tick{background:var(--calcite-color-border-input);width:1px}.esri-time-slider__slider .esri-slider__tick.minorTick{height:4px}.esri-time-slider__slider .esri-slider__tick.majorTick{height:var(--calcite-spacing-sm)}.esri-time-slider__slider .esri-slider__ticks{margin-top:var(--calcite-spacing-xl)}.esri-time-slider__slider .esri-slider__track{height:var(--calcite-spacing-xxs)}.esri-time-slider__warning{justify-content:center;align-items:center;display:flex}.esri-time-slider__warning-label{--calcite-label-margin-bottom: 0;--calcite-label-text-color: var(--calcite-color-status-danger)}.esri-time-slider__warning-icon{--calcite-icon-color: var(--calcite-color-status-danger)}.esri-time-slider--out-of-bounds .esri-slider__thumb{border-color:var(--calcite-color-status-danger)}.esri-time-slider--disabled .esri-time-slider__max-date,.esri-time-slider--disabled .esri-time-slider__max-time,.esri-time-slider--disabled .esri-time-slider__min-date,.esri-time-slider--disabled .esri-time-slider__min-time,.esri-time-slider--disabled .esri-time-slider__time-extent-end-date,.esri-time-slider--disabled .esri-time-slider__time-extent-end-time,.esri-time-slider--disabled .esri-time-slider__time-extent-separator,.esri-time-slider--disabled .esri-time-slider__time-extent-start-date,.esri-time-slider--disabled .esri-time-slider__time-extent-start-time{opacity:var(--calcite-opacity-disabled)}:dir(rtl) .esri-time-slider__max-date,:dir(rtl) .esri-time-slider__max-time,:dir(rtl) .esri-time-slider__min-date,:dir(rtl) .esri-time-slider__min-time,:dir(rtl) .esri-time-slider__time-extent-end-date,:dir(rtl) .esri-time-slider__time-extent-end-time,:dir(rtl) .esri-time-slider__time-extent-start-date,:dir(rtl) .esri-time-slider__time-extent-start-time{direction:rtl}:dir(rtl) .esri-time-slider__layout--compact .esri-time-slider__row:nth-child(3),:dir(rtl) .esri-time-slider__layout--wide .esri-time-slider__playback-controls{direction:ltr}:dir(rtl) .esri-time-slider__layout--wide.esri-time-slider--has-actions .esri-time-slider__actions{border-left:none}:dir(rtl) .esri-time-slider__layout--wide.esri-time-slider--has-actions .esri-time-slider__play{border-left:var(--calcite-border-width-sm) solid var(--calcite-color-border-1)}`, m = l(o);
|
|
11
11
|
class _ extends s {
|
|
12
12
|
constructor() {
|
|
13
|
-
super(...arguments), this.widget = m(this), this.viewModel = this.widget.viewModel, this.view = this.widget.view, this.actions = this.widget.actions, this.autoDestroyDisabled = !1, this.disabled = this.widget.disabled, this.effectiveStops = this.widget.effectiveStops, this.fullTimeExtent = this.widget.fullTimeExtent, this.icon = this.widget.icon, this.label = this.widget.label, this.layout = this.widget.layout, this.loop = this.widget.loop, this.mode = this.widget.mode, this.playRate = this.widget.playRate, this.state = this.viewModel.state, this.stops = this.widget.stops, this.tickConfigs = this.widget.tickConfigs, this.timeExtent = this.widget.timeExtent, this.timeVisible = this.widget.timeVisible, this.timeZone = this.widget.timeZone, this.arcgisPropertyChange = r()("effectiveStops", "fullTimeExtent", "timeExtent", "state"), this.arcgisReady = a(), this.arcgisTriggerAction = t(() => this.widget, "trigger-action");
|
|
13
|
+
super(...arguments), this.widget = m(this), this.viewModel = this.widget.viewModel, this.view = this.widget.view, this.actions = this.widget.actions, this.autoDestroyDisabled = !1, this.disabled = this.widget.disabled, this.effectiveStops = this.widget.effectiveStops, this.fullTimeExtent = this.widget.fullTimeExtent, this.icon = this.widget.icon, this.label = this.widget.label, this.labelFormatFunction = this.widget.labelFormatFunction, this.layout = this.widget.layout, this.loop = this.widget.loop, this.mode = this.widget.mode, this.playRate = this.widget.playRate, this.state = this.viewModel.state, this.stops = this.widget.stops, this.tickConfigs = this.widget.tickConfigs, this.timeExtent = this.widget.timeExtent, this.timeVisible = this.widget.timeVisible, this.timeZone = this.widget.timeZone, this.arcgisPropertyChange = r()("effectiveStops", "fullTimeExtent", "timeExtent", "state"), this.arcgisReady = a(), this.arcgisTriggerAction = t(() => this.widget, "trigger-action");
|
|
14
14
|
}
|
|
15
15
|
static {
|
|
16
|
-
this.properties = { view: 0, actions: 0, autoDestroyDisabled: 5, disabled: 7, effectiveStops: 32, fullTimeExtent: 0, icon: 1, label: 1, layout: 1, loop: 5, mode: 1, playRate: 9, referenceElement: 1, state: 32, stops: 0, tickConfigs: 0, timeExtent: 0, timeVisible: 5, timeZone: 1 };
|
|
16
|
+
this.properties = { view: 0, actions: 0, autoDestroyDisabled: 5, disabled: 7, effectiveStops: 32, fullTimeExtent: 0, icon: 1, label: 1, labelFormatFunction: 0, layout: 1, loop: 5, mode: 1, playRate: 9, referenceElement: 1, state: 32, stops: 0, tickConfigs: 0, timeExtent: 0, timeVisible: 5, timeZone: 1 };
|
|
17
17
|
}
|
|
18
18
|
static {
|
|
19
19
|
this.styles = c;
|
|
@@ -15,11 +15,18 @@ import type { UtilityNetworkTraceAnalysisState } from "@arcgis/core/networks/Uti
|
|
|
15
15
|
* The Utility Network Trace Analysis component allows users to run traces and view trace results in a utility network.
|
|
16
16
|
*
|
|
17
17
|
* - The component supports selecting a utility network and a named trace configuration in that utility network. Both the utility network and trace configuration must be [stored in the map](https://developers.arcgis.com/javascript/latest/references/core/WebMap/#utilityNetworks).
|
|
18
|
-
* - Trace locations (starting points and barriers) are set by selecting features on the view.
|
|
18
|
+
* - Trace locations (starting points, stopping points, and barriers) are set by selecting features on the view.
|
|
19
19
|
* - When a subnetwork-based trace is selected, the component displays the domain, tier, and target tier specified by the selected named trace configuration.
|
|
20
20
|
* - If the user selects a subnetwork trace with a specified subnetwork name, the component provides an option to choose a subnetwork name instead of starting location(s) to run the trace with.
|
|
21
21
|
*
|
|
22
|
-
* Supported trace types are: `connected`, `upstream`, `downstream`, `shortest-path`, `subnetwork`, `subnetwork-controller`, `loops`, and `isolation`.
|
|
22
|
+
* Supported trace types are: `connected`, `upstream`, `downstream`, `shortest-path` (deprecated), `path`, `subnetwork`, `subnetwork-controller`, `loops`, and `isolation`.
|
|
23
|
+
*
|
|
24
|
+
* > [!WARNING]
|
|
25
|
+
* >
|
|
26
|
+
* > The [shortest path trace type](https://pro.arcgis.com/en/pro-app/latest/help/data/trace-network/discover-the-shortest-path.htm) is deprecated with ArcGIS Pro 3.7 and ArcGIS Enterprise 12.1.
|
|
27
|
+
* >
|
|
28
|
+
* > While the shortest path trace will continue to function and be an option until the next major release, it is recommended to use the path trace to return the shortest path.
|
|
29
|
+
* > The path trace provides the same functionality to return a shortest path result while offering additional capabilities to find paths in your network.
|
|
23
30
|
*
|
|
24
31
|
* The component can display the following from a trace result: elements (as [features](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/#traceResultFeatures)), aggregated geometries, and function results.
|
|
25
32
|
* If the trace result includes elements that originate from a [feature layer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/)
|
|
@@ -28,9 +35,12 @@ import type { UtilityNetworkTraceAnalysisState } from "@arcgis/core/networks/Uti
|
|
|
28
35
|
*
|
|
29
36
|
* > [!WARNING]
|
|
30
37
|
* >
|
|
31
|
-
* > The Utility Network Trace Analysis component does not support
|
|
38
|
+
* > The Utility Network Trace Analysis component does not support the following:
|
|
32
39
|
* >
|
|
33
|
-
* >
|
|
40
|
+
* > 1. Proxied feature services or feature services that utilize stored credentials.
|
|
41
|
+
* > 2. The `circuit` trace type or the `paths` and `circuits` result types.
|
|
42
|
+
* > 3. Setting grouping properties `firstUnit` and `lastUnit` for trace locations in a [telecom domain network](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/telecom-domain-networks.htm).
|
|
43
|
+
* > If a [grouped object](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/grouping.htm) is used as a trace location, its `firstUnit` and `lastUnit` attributes are not used in the trace.
|
|
34
44
|
*
|
|
35
45
|
* ## Working with nonspatial objects
|
|
36
46
|
*
|
|
@@ -172,7 +182,8 @@ export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {
|
|
|
172
182
|
* Disable highlighting trace result features.
|
|
173
183
|
* ```html
|
|
174
184
|
* <arcgis-map item-id="471eb0bf37074b1fbb972b1da70fb310">
|
|
175
|
-
* <arcgis-utility-network-trace-analysis disable-highlight-feature-results slot="top-right"
|
|
185
|
+
* <arcgis-utility-network-trace-analysis disable-highlight-feature-results slot="top-right">
|
|
186
|
+
* </arcgis-utility-network-trace-analysis>
|
|
176
187
|
* </arcgis-map>
|
|
177
188
|
* ```
|
|
178
189
|
*/
|
|
@@ -198,7 +209,8 @@ export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {
|
|
|
198
209
|
* Do not show features in the results tab.
|
|
199
210
|
* ```html
|
|
200
211
|
* <arcgis-map item-id="471eb0bf37074b1fbb972b1da70fb310">
|
|
201
|
-
* <arcgis-utility-network-trace-analysis hide-feature-results slot="top-right"
|
|
212
|
+
* <arcgis-utility-network-trace-analysis hide-feature-results slot="top-right">
|
|
213
|
+
* </arcgis-utility-network-trace-analysis>
|
|
202
214
|
* </arcgis-map>
|
|
203
215
|
* ```
|
|
204
216
|
* @example
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as m } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as y, html as
|
|
3
|
+
import { css as y, html as i } from "lit";
|
|
4
4
|
import { ref as h } from "lit/directives/ref.js";
|
|
5
5
|
import { keyed as g } from "lit/directives/keyed.js";
|
|
6
6
|
import u 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
|
-
import
|
|
10
|
-
import { LitElement as
|
|
9
|
+
import b from "@arcgis/core/networks/UtilityNetworkTraceAnalysis.js";
|
|
10
|
+
import { LitElement as w, createEvent as l } from "@arcgis/lumina";
|
|
11
11
|
import { log as T } from "@arcgis/toolkit/log";
|
|
12
12
|
import { u as _ } from "../../chunks/useT9n.js";
|
|
13
13
|
import { m as v } from "../../chunks/useViewModel.js";
|
|
14
14
|
import { l as R } from "../../chunks/async-utils.js";
|
|
15
|
-
const $ = y`: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%)}.inputs-tab-container{display:flex;flex-direction:column;height:100%}.trace-inputs-warning{flex:none;height:fit-content;--calcite-panel-background-color: var(--calcite-color-foreground-1);calcite-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}}arcgis-utility-network-trace-inputs[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)}`, C = v(
|
|
16
|
-
class k extends
|
|
15
|
+
const $ = y`: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%)}.inputs-tab-container{display:flex;flex-direction:column;height:100%}.trace-inputs-warning{flex:none;height:fit-content;--calcite-panel-background-color: var(--calcite-color-foreground-1);calcite-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}}arcgis-utility-network-trace-inputs[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)}`, C = v(b);
|
|
16
|
+
class k extends w {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments), this._messages = _({ blocking: !0 }), this._viewModel = C(this), this._highlightHandles = [], this._handleRunTraceButtonClick = () => {
|
|
19
19
|
this._setTraceWarnings(), !(this.showNoStartingPointsWarning || this.showMissingTerminalWarning) && (this.showNoStartingPointsWarning = !1, this.showMissingTerminalWarning = !1, this._clearTraceResult(), this._switchTab("results"), this._runTrace());
|
|
@@ -51,8 +51,8 @@ class k extends b {
|
|
|
51
51
|
this.traceResult = void 0, this._clearHighlights(), this._clearAggregatedGeometryGraphics();
|
|
52
52
|
}
|
|
53
53
|
_setTraceWarnings() {
|
|
54
|
-
const e = this._traceInputsElement?.traceLocations, t = this._traceInputsElement?.traceLocationFlagInfos,
|
|
55
|
-
this.traceError = void 0, this.showNoStartingPointsWarning = !this._isSubnetworkNameTraceSelected && !r || this._isSubnetworkNameTraceSelected && !
|
|
54
|
+
const e = this._traceInputsElement?.traceLocations, t = this._traceInputsElement?.traceLocationFlagInfos, s = !!this._traceInputsElement?.unTraceConfiguration?.subnetworkName, r = e?.some((n) => n.type === "starting-point"), c = t?.some((n) => !!n.flagProperties.terminalConfiguration && !n.flagProperties.selectedTerminals?.size) ?? !1;
|
|
55
|
+
this.traceError = void 0, this.showNoStartingPointsWarning = !this._isSubnetworkNameTraceSelected && !r || this._isSubnetworkNameTraceSelected && !s, this.showMissingTerminalWarning = c;
|
|
56
56
|
}
|
|
57
57
|
_switchTab(e) {
|
|
58
58
|
this.activeTab = e;
|
|
@@ -112,8 +112,8 @@ class k extends b {
|
|
|
112
112
|
resultTypes: e.resultTypes,
|
|
113
113
|
outSpatialReference: this.view?.spatialReference
|
|
114
114
|
}), this.disableHighlightFeatureResults || this._highlightResults();
|
|
115
|
-
} catch (
|
|
116
|
-
R(
|
|
115
|
+
} catch (s) {
|
|
116
|
+
R(s, this, "Error while running trace"), this.traceError = s, this.traceResult = void 0;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
_handleHideGraphicsChange(e) {
|
|
@@ -139,36 +139,36 @@ class k extends b {
|
|
|
139
139
|
this._viewModel.utilityNetwork = this._traceInputsElement?.selectedUtilityNetwork;
|
|
140
140
|
}
|
|
141
141
|
renderMissingTerminalWarning() {
|
|
142
|
-
return
|
|
142
|
+
return i`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${() => this.showMissingTerminalWarning = !1}><div slot=title>${this._messages.errors.missingTerminalTitle}</div><div slot=message>${this._messages.errors.missingTerminalBody}</div></calcite-notice></calcite-panel>`;
|
|
143
143
|
}
|
|
144
144
|
renderNoStartingPointsWarning() {
|
|
145
|
-
return
|
|
145
|
+
return i`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${() => this.showNoStartingPointsWarning = !1}><div slot=title>${this._messages.errors.noStartingPointsTitle}</div><div slot=message>${this._messages.errors.noStartingPointsBody}</div></calcite-notice></calcite-panel>`;
|
|
146
146
|
}
|
|
147
147
|
renderResultsTab() {
|
|
148
|
-
return g(`${this.el.id}__results-tab-item`,
|
|
148
|
+
return g(`${this.el.id}__results-tab-item`, i`<calcite-tab .selected=${this.activeTab === "results"}>${this.state === "executing" ? i`<calcite-panel><calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader></calcite-panel>` : i`<arcgis-utility-network-trace-results .autoDestroyDisabled=${this.autoDestroyDisabled} .aggregatedGeometryGraphicsColor=${this.aggregatedGeometryGraphicsColor} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .layers=${this._allLayers} .messageOverrides=${{ resultFeaturesAreHidden: this.messageOverrides?.resultFeaturesAreHidden }} .referenceElement=${this.referenceElement} .traceConfigTitle=${this._selectedTraceConfig?.title} .traceError=${this.traceError} .traceResult=${this.traceResult} .utilityNetwork=${this._viewModel.utilityNetwork ?? void 0} .view=${this.view ?? void 0} @arcgisAggregatedGeometryGraphicsColorChange=${this._handleAggregatedGeometryGraphicsColorChange} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} @arcgisTraceResultFeaturesReady=${this._handleTraceResultFeaturesReady} ${h(this._handleTraceResultsRefChange)}></arcgis-utility-network-trace-results>`}</calcite-tab>`);
|
|
149
149
|
}
|
|
150
150
|
renderResultsFooter() {
|
|
151
|
-
const { traceResult: e } = this, a = !!(e?.elements.length || e?.globalFunctionResults.length || e?.aggregatedGeometry) && this._traceResultsElement?.state === "ready",
|
|
152
|
-
return
|
|
151
|
+
const { traceResult: e } = this, a = !!(e?.elements.length || e?.globalFunctionResults.length || e?.aggregatedGeometry) && this._traceResultsElement?.state === "ready", s = this._traceResultsElement?.numResults ?? 0;
|
|
152
|
+
return i`<calcite-button appearance=outline width=full @click=${() => {
|
|
153
153
|
this._switchTab("input"), this._clearTraceResult(), this.arcgisTraceResultClear.emit();
|
|
154
|
-
}} .disabled=${!a} slot=footer>${
|
|
154
|
+
}} .disabled=${!a} slot=footer>${s > 0 && !this.hideFeatureResults && this.state !== "executing" ? this._messages.buttons.clearResultsCustom.replace("{number}", s.toString()) : this._messages.buttons.clearResultsGeneric}</calcite-button>`;
|
|
155
155
|
}
|
|
156
156
|
renderInputTab() {
|
|
157
|
-
const { mode: e } = this, { loadError: t } = this._viewModel,
|
|
157
|
+
const { mode: e } = this, { loadError: t } = this._viewModel, s = (t === "no-user-type-extension" || t === "sceneView-not-supported" ? i`<calcite-notice kind=danger open scale=s slot=content-top width=auto><div slot=message>${this._getLoadError(t)}</div></calcite-notice>` : void 0) ?? i`${this.showNoStartingPointsWarning && e === "default" && this.renderNoStartingPointsWarning() || ""}${this.showMissingTerminalWarning && e === "default" && this.renderMissingTerminalWarning() || ""}<arcgis-utility-network-trace-inputs .autoDestroyDisabled=${this.autoDestroyDisabled} .hideActionBar=${this.hideActionBar} .referenceElement=${this.referenceElement} .view=${this.view ?? void 0} .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisPropertyChange=${(r) => {
|
|
158
158
|
r.stopPropagation(), r.detail.name === "mode" && (this.mode = r.target.mode);
|
|
159
159
|
}} @arcgisSelectedNamedTraceConfigurationChange=${this._handleSelectedNamedTraceConfigurationChange} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisUtilityNetworkChange=${this._handleUtilityNetworkChange} ${h(this._handleTraceInputsRefChange)}></arcgis-utility-network-trace-inputs>`;
|
|
160
|
-
return g(`${this.el.id}__inputs-tab-item`,
|
|
160
|
+
return g(`${this.el.id}__inputs-tab-item`, i`<calcite-tab .selected=${this.activeTab === "input"}><div class="inputs-tab-container">${s}</div></calcite-tab>`);
|
|
161
161
|
}
|
|
162
162
|
renderInputFooter() {
|
|
163
163
|
const { mode: e, state: t } = this;
|
|
164
164
|
if (e !== "default")
|
|
165
165
|
return null;
|
|
166
|
-
const a = t === "disabled" || !this._traceInputsElement?.unTraceConfiguration;
|
|
167
|
-
return
|
|
166
|
+
const a = t === "disabled" || t === "loading" || !this._traceInputsElement?.unTraceConfiguration;
|
|
167
|
+
return i`<calcite-button appearance=solid width=full @click=${this._handleRunTraceButtonClick} slot=footer .disabled=${a}>${this._messages.buttons.getResults}</calcite-button>`;
|
|
168
168
|
}
|
|
169
169
|
render() {
|
|
170
|
-
const { activeTab: e, state: t
|
|
171
|
-
return
|
|
170
|
+
const { activeTab: e, state: t } = this;
|
|
171
|
+
return i`<calcite-panel><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @click=${() => this._switchTab("input")} .selected=${e === "input"}>${this._messages.tabs.inputTab}</calcite-tab-title><calcite-tab-title @click=${() => this._switchTab("results")} .selected=${e === "results"} .disabled=${t === "disabled" || t === "loading"}>${this._messages.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.renderInputTab()}${t === "ready" || t === "executing" ? this.renderResultsTab() : null}</calcite-tabs>${e === "input" ? this.renderInputFooter() : null}${e === "results" ? this.renderResultsFooter() : null}</calcite-panel>`;
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
m("arcgis-utility-network-trace-analysis", k);
|
|
@@ -30,10 +30,10 @@ export abstract class ArcgisUtilityNetworkTraceInputs extends LitElement {
|
|
|
30
30
|
componentLabel: string;
|
|
31
31
|
errors: {
|
|
32
32
|
noCompatibleSubnetworks: string;
|
|
33
|
-
noMapError: string;
|
|
34
33
|
noNamedTraceConfigurations: string;
|
|
35
34
|
noTraceConfiguration: string;
|
|
36
|
-
|
|
35
|
+
noUtilityNetwork: string;
|
|
36
|
+
noView: string;
|
|
37
37
|
utilityNetworkLoadFailed: string;
|
|
38
38
|
};
|
|
39
39
|
instructions: {
|
|
@@ -73,10 +73,10 @@ export abstract class ArcgisUtilityNetworkTraceInputs extends LitElement {
|
|
|
73
73
|
componentLabel: string;
|
|
74
74
|
errors: {
|
|
75
75
|
noCompatibleSubnetworks: string;
|
|
76
|
-
noMapError: string;
|
|
77
76
|
noNamedTraceConfigurations: string;
|
|
78
77
|
noTraceConfiguration: string;
|
|
79
|
-
|
|
78
|
+
noUtilityNetwork: string;
|
|
79
|
+
noView: string;
|
|
80
80
|
utilityNetworkLoadFailed: string;
|
|
81
81
|
};
|
|
82
82
|
instructions: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { ref as
|
|
2
|
+
import { c as y } from "../../chunks/runtime.js";
|
|
3
|
+
import { ref as d } from "lit/directives/ref.js";
|
|
4
4
|
import c from "@arcgis/core/core/Collection.js";
|
|
5
5
|
import { watch as _ } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
6
|
import { substitute as k } from "@arcgis/core/intl.js";
|
|
@@ -11,7 +11,7 @@ import p from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSourc
|
|
|
11
11
|
import L from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
|
|
12
12
|
import { LitElement as N, createEvent as l } from "@arcgis/lumina";
|
|
13
13
|
import { usePropertyChange as $ } from "@arcgis/lumina/controllers";
|
|
14
|
-
import { log as
|
|
14
|
+
import { log as h, composeMissingPropertyMessage as v, composeEmptyPropertyMessage as E } from "@arcgis/toolkit/log";
|
|
15
15
|
import { css as P, html as r } from "lit";
|
|
16
16
|
import { u as I } from "../../chunks/useT9n.js";
|
|
17
17
|
import { b as U, a as g, c as F, q as m, i as x } from "../../chunks/layer-utils.js";
|
|
@@ -27,7 +27,7 @@ class D extends N {
|
|
|
27
27
|
"isolation"
|
|
28
28
|
]), this._setUpMap = () => {
|
|
29
29
|
if (this._error = void 0, !this.view?.map) {
|
|
30
|
-
|
|
30
|
+
this._error = this._messages.errors.noView, this.utilityNetworks = void 0;
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
const e = this.view.map;
|
|
@@ -195,7 +195,7 @@ class D extends N {
|
|
|
195
195
|
_selectTraceConfigurationByGuid(e) {
|
|
196
196
|
const t = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.find((i) => i.globalId === e);
|
|
197
197
|
if (!t) {
|
|
198
|
-
|
|
198
|
+
h("error", this, "`traceConfig` not found in `selectedUtilityNetwork.sharedNamedTraceConfigurations`");
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
201
|
this.selectedNamedTraceConfiguration = t;
|
|
@@ -203,7 +203,7 @@ class D extends N {
|
|
|
203
203
|
async _handleTraceConfigChange() {
|
|
204
204
|
const { selectedNamedTraceConfiguration: e } = this;
|
|
205
205
|
if (!(e?.traceConfiguration instanceof T)) {
|
|
206
|
-
|
|
206
|
+
h("error", this, v("selectedNamedTraceConfiguration.traceConfiguration")), this._unTraceConfiguration = void 0;
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
209
|
this._unTraceConfiguration = e.traceConfiguration.clone(), e.traceType === "subnetwork" && (this._subnetworkNamesState = "loading", await this._handleSubnetworkTraceConfigChange(this._unTraceConfiguration), this._subnetworkNamesState = "ready");
|
|
@@ -218,7 +218,7 @@ class D extends N {
|
|
|
218
218
|
this._clearSubnetworks(), this._setupTraceConfigurations(), this._filterUnLayers(), this._clearTraceLocations();
|
|
219
219
|
}
|
|
220
220
|
_setupTraceConfigurations() {
|
|
221
|
-
this._unTraceConfiguration = void 0, this.selectedNamedTraceConfiguration = void 0, this.traceConfigurations = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.filter(Boolean).filter((e) => e.traceType !== "
|
|
221
|
+
this._unTraceConfiguration = void 0, this.selectedNamedTraceConfiguration = void 0, this.traceConfigurations = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.filter(Boolean).filter((e) => e.traceType !== "circuit").sort((e, t) => e.title.localeCompare(t.title)) || [], this.traceConfigurations.length ? this.selectedNamedTraceConfiguration = this.traceConfigurations.at(0) : h("error", this, "The selected utility network has no compatible named trace configurations.");
|
|
222
222
|
}
|
|
223
223
|
_filterUnLayers() {
|
|
224
224
|
const { selectedUtilityNetwork: e } = this;
|
|
@@ -226,7 +226,7 @@ class D extends N {
|
|
|
226
226
|
}
|
|
227
227
|
_handleUtilityNetworksChange() {
|
|
228
228
|
const { utilityNetworks: e, selectedUtilityNetwork: t } = this;
|
|
229
|
-
e?.length ? (!t || !e.includes(t)) && (this.selectedUtilityNetwork = e.at(0)) : (
|
|
229
|
+
e?.length ? (!t || !e.includes(t)) && (this.selectedUtilityNetwork = e.at(0)) : (h("error", this, E("utilityNetworks")), this.selectedUtilityNetwork = void 0, this._error = this._messages.errors.noUtilityNetwork);
|
|
230
230
|
}
|
|
231
231
|
async _setupUtilityNetworks(e) {
|
|
232
232
|
try {
|
|
@@ -322,7 +322,7 @@ class D extends N {
|
|
|
322
322
|
}}>${i}</calcite-combobox></calcite-block>`;
|
|
323
323
|
}
|
|
324
324
|
renderDefaultMode() {
|
|
325
|
-
const { selectedUtilityNetwork: e } = this, {
|
|
325
|
+
const { selectedUtilityNetwork: e } = this, { noView: t, noUtilityNetwork: i } = this._messages.errors;
|
|
326
326
|
let a;
|
|
327
327
|
return this._error === t || this._error === i ? a = this.renderError(this._error, !1, "exclamation-mark-triangle") : !e?.loaded && !e?.loadError ? a = this.renderLoader() : a = this.renderContent(), r`<calcite-flow-item .selected=${this.mode === "default"}>${a}</calcite-flow-item>`;
|
|
328
328
|
}
|
|
@@ -335,7 +335,7 @@ class D extends N {
|
|
|
335
335
|
if (!e.length)
|
|
336
336
|
return this.mode = "default", null;
|
|
337
337
|
const t = this._activeTraceLocationType === "starting-point" ? this._messages.labels.addSpatial.startingPoint : this._activeTraceLocationType === "barrier" ? this._messages.labels.addSpatial.barrier : this._messages.labels.addSpatial.stoppingPoint, i = e.length === 1 ? "feature" : "list";
|
|
338
|
-
return r`<arcgis-features .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} .features=${e} .featureMenuTitle=${t} .hideActionBar=${this.hideActionBar} hide-select-feature .initialDisplayMode=${i} @arcgisClose=${() => this._handleFeaturesClose()} @arcgisPropertyChange=${this._handleFeaturesPropertyChange} open .referenceElement=${this.referenceElement} .view=${this.view} ${
|
|
338
|
+
return r`<arcgis-features .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} .features=${e} .featureMenuTitle=${t} .hideActionBar=${this.hideActionBar} hide-select-feature .initialDisplayMode=${i} @arcgisClose=${() => this._handleFeaturesClose()} @arcgisPropertyChange=${this._handleFeaturesPropertyChange} open .referenceElement=${this.referenceElement} .view=${this.view} ${d(this._featuresComponentRefChange)}></arcgis-features>`;
|
|
339
339
|
}
|
|
340
340
|
renderAddSpatialFooter() {
|
|
341
341
|
const { mode: e, _messages: t, selectedFeature: i, selectedUtilityNetwork: a } = this, s = e === "add-spatial-feature" && this._exceedDisplayLimit && !i, o = k(t.warnings.exceededDisplayLimit, {
|
|
@@ -344,13 +344,13 @@ class D extends N {
|
|
|
344
344
|
return r`${s && r`<calcite-input-message id=results-limited-message icon=exclamation-mark-circle status=idle>${o}</calcite-input-message>` || ""}<calcite-button appearance=outline width=full @click=${() => this._handleAddSpatialCancelClick()} slot=footer>${t.buttons.cancel}</calcite-button>${e === "add-spatial-feature" && r`<calcite-button width=full slot=footer appearance=solid @click=${() => this._handleAddSpatialAddClick()} .disabled=${n}>${t.buttons.add}</calcite-button>` || ""}`;
|
|
345
345
|
}
|
|
346
346
|
renderStartingPointSelection() {
|
|
347
|
-
return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=starting-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .traceLocations=${this._startingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${
|
|
347
|
+
return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=starting-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .traceLocations=${this._startingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${d(this._traceLocationStartingRefChange)}></arcgis-utility-network-trace-location>`;
|
|
348
348
|
}
|
|
349
349
|
renderStoppingPointSelection() {
|
|
350
|
-
return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=stopping-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .traceLocations=${this._stoppingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${
|
|
350
|
+
return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=stopping-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .traceLocations=${this._stoppingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${d(this._traceLocationStoppingRefChange)}></arcgis-utility-network-trace-location>`;
|
|
351
351
|
}
|
|
352
352
|
renderBarrierSelection() {
|
|
353
|
-
return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=barrier .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .traceLocations=${this._barriers} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${
|
|
353
|
+
return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=barrier .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .traceLocations=${this._barriers} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${d(this._traceLocationBarrierRefChange)}></arcgis-utility-network-trace-location>`;
|
|
354
354
|
}
|
|
355
355
|
renderSubnetworkNameInput() {
|
|
356
356
|
return r`<calcite-input clearable type=text .placeholder=${this._messages.instructions.enterSubnetworkName} max-length=64 .status=${this.selectedSubnetworkName ? "valid" : "invalid"} .value=${this.selectedSubnetworkName} @calciteInputInput=${(e) => this.selectedSubnetworkName = e.target.value}></calcite-input><calcite-input-message icon=exclamation-mark-triangle status=idle>${this._messages.labels.tooManySubnetworks}</calcite-input-message>`;
|
|
@@ -372,15 +372,15 @@ class D extends N {
|
|
|
372
372
|
const { utilityNetworks: e, unTraceConfiguration: t } = this, { noTraceConfiguration: i, noNamedTraceConfigurations: a, utilityNetworkLoadFailed: s } = this._messages.errors, o = e && e.length > 1 ? this.renderUtilityNetworkSelection() : null;
|
|
373
373
|
let n;
|
|
374
374
|
this.selectedUtilityNetwork?.loadError ? n = this.renderError(s, !1, "exclamation-mark-triangle") : this.traceConfigurations.length || (n = this.renderError(a, !1, "exclamation-mark-triangle"));
|
|
375
|
-
const b = r`${this.renderTraceSelection()}${this.renderSubnetworkInfo()}${this.renderSubnetworkSelection()}`,
|
|
376
|
-
return r`<calcite-block-group .label=${this._messages.labels.traceInputs}>${o}${n ?? r`${b}${
|
|
375
|
+
const b = r`${this.renderTraceSelection()}${this.renderSubnetworkInfo()}${this.renderSubnetworkSelection()}`, w = t ? r`${this.showStartingPoints ? this.renderStartingPointSelection() : null}${this.showStoppingPoints ? this.renderStoppingPointSelection() : null}${this.renderBarrierSelection()}` : this.renderError(i, !1, "exclamation-mark-triangle");
|
|
376
|
+
return r`<calcite-block-group .label=${this._messages.labels.traceInputs}>${o}${n ?? r`${b}${w}`}</calcite-block-group>`;
|
|
377
377
|
}
|
|
378
378
|
render() {
|
|
379
379
|
const { mode: e } = this;
|
|
380
380
|
return r`<calcite-panel>${e === "add-spatial-feature" ? this.renderCandidateFeatures() : null}<calcite-flow .hidden=${e === "add-spatial-feature"}>${this.renderDefaultMode()}${this.renderSpatialSelectInstructions()}</calcite-flow>${e !== "default" ? this.renderAddSpatialFooter() : null}</calcite-panel>`;
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
|
|
383
|
+
y("arcgis-utility-network-trace-inputs", D);
|
|
384
384
|
export {
|
|
385
385
|
D as ArcgisUtilityNetworkTraceInputs
|
|
386
386
|
};
|
|
@@ -50,6 +50,7 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
|
50
50
|
traceErrors: {
|
|
51
51
|
dirtyAreasDiscovered: string;
|
|
52
52
|
noValidControllers: string;
|
|
53
|
+
pathNotFound: string;
|
|
53
54
|
};
|
|
54
55
|
traceFailedDescription: string;
|
|
55
56
|
traceFailedHeading: string;
|
|
@@ -81,6 +82,7 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
|
81
82
|
traceErrors: {
|
|
82
83
|
dirtyAreasDiscovered: string;
|
|
83
84
|
noValidControllers: string;
|
|
85
|
+
pathNotFound: string;
|
|
84
86
|
};
|
|
85
87
|
traceFailedDescription: string;
|
|
86
88
|
traceFailedHeading: string;
|
|
@@ -135,6 +137,7 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
|
135
137
|
traceErrors?: {
|
|
136
138
|
dirtyAreasDiscovered?: string | undefined;
|
|
137
139
|
noValidControllers?: string | undefined;
|
|
140
|
+
pathNotFound?: string | undefined;
|
|
138
141
|
} | undefined;
|
|
139
142
|
traceFailedDescription?: string | undefined;
|
|
140
143
|
traceFailedHeading?: string | undefined;
|