@arcgis/map-components 5.1.0-next.73 → 5.1.0-next.75
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/{AHDX7DZE.js → 2IXIUNGH.js} +1 -1
- package/dist/cdn/2LHTH7PU.js +2 -0
- package/dist/cdn/3ATNVL7S.js +2 -0
- package/dist/cdn/3TVO5LIN.js +2 -0
- package/dist/cdn/5CKHTWHC.js +2 -0
- package/dist/cdn/{Y4JRHCFK.js → 5J37HLFL.js} +1 -1
- package/dist/cdn/{554S4GT7.js → 5N7UWAVE.js} +1 -1
- package/dist/cdn/6D72H6LD.js +2 -0
- package/dist/cdn/{G3GSHZCN.js → A26DRZN4.js} +1 -1
- package/dist/cdn/ACAAYGKC.js +2 -0
- package/dist/cdn/{MEHQNI5S.js → APKTL7SO.js} +1 -1
- package/dist/cdn/APYGTRF2.js +2 -0
- package/dist/cdn/{USOVBTPF.js → B2S3QOVD.js} +1 -1
- package/dist/cdn/{CSCRKC7T.js → BH32Z76H.js} +1 -1
- package/dist/cdn/{VRFNBGEQ.js → CQCKW6L4.js} +1 -1
- package/dist/cdn/CUYGLJRU.js +2 -0
- package/dist/cdn/{VLGUP7FS.js → DJOFGKNV.js} +1 -1
- package/dist/cdn/EXZFAJW4.js +3 -0
- package/dist/cdn/FM3AT2SL.js +2 -0
- package/dist/cdn/{EVRD2ZXE.js → HAKD7266.js} +1 -1
- package/dist/cdn/{UQQFJYIC.js → IP6NIPH4.js} +1 -1
- package/dist/cdn/{TSMQD5L3.js → JE27PKO6.js} +1 -1
- package/dist/cdn/{VJ5MPLHQ.js → KGLUFWJ7.js} +1 -1
- package/dist/cdn/{UEOQ2WED.js → LWQZWUXM.js} +1 -1
- package/dist/cdn/{CLUML3RK.js → LZUWGRAM.js} +1 -1
- package/dist/cdn/{QAB2Y3S4.js → M7RBOMBN.js} +1 -1
- package/dist/cdn/{EDEFI5P6.js → N2ZR7Q6F.js} +1 -1
- package/dist/cdn/{OHCJG4B7.js → NMP4CEPM.js} +1 -1
- package/dist/cdn/O6JPYYGF.js +2 -0
- package/dist/cdn/{LWCHPGXD.js → OEYAER33.js} +1 -1
- package/dist/cdn/{QSERDTHV.js → QZBFM3AA.js} +1 -1
- package/dist/cdn/{CPYD7PR4.js → S6KYM3LN.js} +1 -1
- package/dist/cdn/{Y2ZNQZCC.js → SJDBMERA.js} +1 -1
- package/dist/cdn/{KPPYOTL2.js → STRMIFOQ.js} +1 -1
- package/dist/cdn/{MRSAL7QR.js → TL3BHZ3H.js} +1 -1
- package/dist/cdn/{D3BM7IK7.js → V3BMEZZP.js} +1 -1
- package/dist/cdn/{LCVZHLJV.js → WULZBTNW.js} +1 -1
- package/dist/cdn/{3W5SAKRU.js → YCM6SOEX.js} +1 -1
- package/dist/cdn/YFXHW7I2.js +2 -0
- package/dist/cdn/YLKEVZLN.js +2 -0
- package/dist/cdn/ZVDWGIFU.js +2 -0
- package/dist/cdn/assets/slider-scale-range/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/async-utils.js +76 -68
- package/dist/chunks/feature-utils.js +5 -3
- package/dist/chunks/resources.js +35 -0
- package/dist/chunks/slots.js +12 -40
- package/dist/components/arcgis-feature-media/customElement.js +199 -172
- package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.js +2 -1
- package/dist/components/arcgis-map/customElement.js +7 -6
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +3 -1
- package/dist/components/arcgis-presentation/customElement.d.ts +48 -0
- package/dist/components/arcgis-presentation/customElement.js +398 -96
- package/dist/components/arcgis-presentation/index.js +1 -0
- package/dist/components/arcgis-presentation-captions/customElement.js +37 -0
- package/dist/components/arcgis-presentation-captions/index.js +1 -0
- package/dist/components/arcgis-scene/customElement.js +2 -1
- package/dist/components/arcgis-slider-scale-range/customElement.js +8 -8
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +30 -30
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +26 -26
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +11 -8
- package/dist/components/arcgis-video/customElement.js +13 -12
- package/dist/components/arcgis-video-player/customElement.d.ts +13 -2
- 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/loader.js +2 -1
- package/dist/types/lumina.d.ts +3 -1
- package/dist/types/preact.d.ts +3 -1
- package/dist/types/react.d.ts +3 -1
- package/dist/types/stencil.d.ts +3 -1
- package/package.json +5 -5
- package/dist/cdn/3E5YVI67.js +0 -2
- package/dist/cdn/4LHL7RRT.js +0 -3
- package/dist/cdn/5MHPKAFK.js +0 -2
- package/dist/cdn/6BSMOKA6.js +0 -2
- package/dist/cdn/DSWEKHYV.js +0 -2
- package/dist/cdn/EQVGDKPR.js +0 -2
- package/dist/cdn/ISTXVEU6.js +0 -2
- package/dist/cdn/NYCLIJ7T.js +0 -2
- package/dist/cdn/OPXYBLHE.js +0 -2
- package/dist/cdn/QUNBDVIO.js +0 -2
- package/dist/cdn/YCN7F3YY.js +0 -2
- package/dist/cdn/Z4OSJFVK.js +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { g as
|
|
2
|
+
import { g as x, c as p } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as _ } from "lit/directives/keyed.js";
|
|
4
4
|
import { LitElement as g, createEvent as d, safeStyleMap as u, nothing as M } from "@arcgis/lumina";
|
|
5
|
-
import { watch as
|
|
5
|
+
import { watch as f } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
6
|
import { u as v } from "../../chunks/useView.js";
|
|
7
7
|
import { u as L } from "../../chunks/useT9n.js";
|
|
8
8
|
import { css as y, html as r } from "lit";
|
|
@@ -124,7 +124,7 @@ class I extends g {
|
|
|
124
124
|
await this.manager.destroy();
|
|
125
125
|
}
|
|
126
126
|
willUpdate(e) {
|
|
127
|
-
if ((e.has("maxScaleLimit") || e.has("minScaleLimit")) && (this.minScaleLimit === 0 && (this.minScaleLimit = this._layerMinScaleLimit), this.maxScaleLimit === 0 && (this.maxScaleLimit = this._layerMaxScaleLimit), this.minScaleLimit = Math.min(this.minScaleLimit, this._layerMinScaleLimit), this.maxScaleLimit = Math.max(this.maxScaleLimit, this._layerMaxScaleLimit), this.minScale !== 0 && (this.minScale = Math.min(this.minScale, this.minScaleLimit)), this.maxScale !== 0 && (this.maxScale = Math.max(this.maxScale, this.maxScaleLimit))), e.has("maxScale") || e.has("minScale")) {
|
|
127
|
+
if ((e.has("maxScaleLimit") || e.has("minScaleLimit")) && (this.minScaleLimit === 0 && (this.minScaleLimit = this._layerMinScaleLimit), this.maxScaleLimit === 0 && (this.maxScaleLimit = this._layerMaxScaleLimit), this.minScaleLimit = Math.min(this.minScaleLimit, this._layerMinScaleLimit), this.maxScaleLimit = Math.max(this.maxScaleLimit, this._layerMaxScaleLimit), this.minScale !== 0 && (this.minScale = Math.min(this.minScale, this.minScaleLimit)), this.maxScale !== 0 && (this.maxScale = Math.max(this.maxScale, this.maxScaleLimit)), this._syncLayerScale()), e.has("maxScale") || e.has("minScale")) {
|
|
128
128
|
if (this.minScale !== 0) {
|
|
129
129
|
const i = this._clampScale("min", this.minScale);
|
|
130
130
|
this.minScale = i === this.minScaleLimit ? 0 : i;
|
|
@@ -143,8 +143,8 @@ class I extends g {
|
|
|
143
143
|
a && (this._portalRegion = a.split("-")[1]?.toLowerCase() ?? null);
|
|
144
144
|
}).catch(() => {
|
|
145
145
|
}), this.manager.onLifecycle(() => [
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
f(() => this.view?.scale, () => this.requestUpdate(), { initial: !0 }),
|
|
147
|
+
f(() => ({
|
|
148
148
|
// Layer type has loaded property, but Sublayer and SubtypeSublayer use loadStatus instead
|
|
149
149
|
loaded: this.layer?.loadStatus === "loaded",
|
|
150
150
|
ready: this.view?.ready
|
|
@@ -159,7 +159,7 @@ class I extends g {
|
|
|
159
159
|
let n = 0, o = 0;
|
|
160
160
|
m && (n = m.minScale, o = m.maxScale), o !== 0 && (this._layerMaxScaleLimit = o), n !== 0 && (this._layerMinScaleLimit = n);
|
|
161
161
|
}
|
|
162
|
-
this.minScaleLimit = this._layerMinScaleLimit, this.maxScaleLimit = this._layerMaxScaleLimit;
|
|
162
|
+
this.minScaleLimit = Math.min(this.minScaleLimit, this._layerMinScaleLimit), this.maxScaleLimit = Math.max(this.maxScaleLimit, this._layerMaxScaleLimit);
|
|
163
163
|
const c = this.layer;
|
|
164
164
|
c && "minScale" in c && "maxScale" in c && (c.minScale !== 0 && this.minScale === 0 && (this.minScale = Math.min(c.minScale, this.minScaleLimit)), c.maxScale !== 0 && this.maxScale === 0 && (this.maxScale = Math.max(c.maxScale, this.maxScaleLimit)));
|
|
165
165
|
}, { initial: !0 })
|
|
@@ -232,7 +232,7 @@ class I extends g {
|
|
|
232
232
|
e === "min" ? this.minScale = i === 0 ? 0 : this._clampScale("min", i) : this.maxScale = i === 0 ? 0 : this._clampScale("max", i), this._syncLayerScale(), this._activeMenu = null;
|
|
233
233
|
}
|
|
234
234
|
_syncLayerScale() {
|
|
235
|
-
this.layer && "minScale" in this.layer && "maxScale" in this.layer && (this.layer.minScale = this.mode === "max-scale-only" ? 0 : this.
|
|
235
|
+
this.layer && "minScale" in this.layer && "maxScale" in this.layer && (this.layer.minScale = this.mode === "max-scale-only" ? 0 : this._effectiveMinScale, this.layer.maxScale = this.mode === "min-scale-only" ? 0 : this._effectiveMaxScale);
|
|
236
236
|
}
|
|
237
237
|
_renderScalePreviewPopover() {
|
|
238
238
|
const e = this._renderScalePreview();
|
|
@@ -298,7 +298,7 @@ class I extends g {
|
|
|
298
298
|
if (typeof e != "number")
|
|
299
299
|
return null;
|
|
300
300
|
const i = Math.min(l.length - 1, Math.max(0, Math.floor(e))), a = 5, t = 128, s = t * (i % a), c = t * Math.floor(i / a), m = `-${s}px -${c}px`, n = this._getSpriteSheetFile();
|
|
301
|
-
return r`<div class="preview-container"><img src=${
|
|
301
|
+
return r`<div class="preview-container"><img src=${x(`./assets/slider-scale-range/images/${n}.avif`) ?? M} style=${u({
|
|
302
302
|
display: "block",
|
|
303
303
|
height: `${t}px`,
|
|
304
304
|
width: `${t}px`,
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as m } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as y, html as s } from "lit";
|
|
4
4
|
import { ref as o } from "lit/directives/ref.js";
|
|
5
5
|
import { keyed as h } from "lit/directives/keyed.js";
|
|
6
6
|
import g from "@arcgis/core/Color.js";
|
|
7
7
|
import "@arcgis/core/core/Error.js";
|
|
8
|
-
import { when as
|
|
9
|
-
import
|
|
10
|
-
import { LitElement as
|
|
11
|
-
import { log as
|
|
8
|
+
import { when as f } from "@arcgis/core/core/reactiveUtils.js";
|
|
9
|
+
import w from "@arcgis/core/networks/UtilityNetworkTraceAnalysis.js";
|
|
10
|
+
import { LitElement as b, createEvent as l } from "@arcgis/lumina";
|
|
11
|
+
import { log as T } from "@arcgis/toolkit/log";
|
|
12
12
|
import { u as v } from "../../chunks/useT9n.js";
|
|
13
13
|
import { m as _ } from "../../chunks/useViewModel.js";
|
|
14
|
-
|
|
15
|
-
|
|
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)}}calcite-tabs{display:flex;flex-direction:column;height:100%}calcite-tab{--calcite-tab-content-space-y: 0}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 = _(w);
|
|
16
|
+
class E extends b {
|
|
16
17
|
constructor() {
|
|
17
|
-
super(...arguments), this._messages = v({ blocking: !0 }), this._viewModel =
|
|
18
|
-
const e = this._traceInputsElement?.traceLocations, t = this._traceInputsElement?.traceLocationFlagInfos, a = e?.some((i) => i.type === "starting-point"),
|
|
19
|
-
this.traceError = void 0, this.showNoStartingPointsWarning = !this._isSubnetworkNameTraceSelected && !a, this.showMissingTerminalWarning =
|
|
18
|
+
super(...arguments), this._messages = v({ blocking: !0 }), this._viewModel = C(this), this._highlightHandles = [], this._handleRunTraceButtonClick = () => {
|
|
19
|
+
const e = this._traceInputsElement?.traceLocations, t = this._traceInputsElement?.traceLocationFlagInfos, a = e?.some((i) => i.type === "starting-point"), r = t?.some((i) => !!i.flagProperties.terminalConfiguration && !i.flagProperties.selectedTerminals?.size) ?? !1;
|
|
20
|
+
this.traceError = void 0, this.showNoStartingPointsWarning = !this._isSubnetworkNameTraceSelected && !a, this.showMissingTerminalWarning = r, !(this.showNoStartingPointsWarning || this.showMissingTerminalWarning) && (this.showNoStartingPointsWarning = !1, this.showMissingTerminalWarning = !1, this._clearTraceResult(), this._switchTab("results"), this._runTrace());
|
|
20
21
|
}, this._handleTraceInputsRefChange = (e) => {
|
|
21
22
|
e && (this._traceInputsElement = e);
|
|
22
23
|
}, this._handleTraceResultsRefChange = (e) => {
|
|
@@ -27,7 +28,7 @@ class C extends T {
|
|
|
27
28
|
this.properties = { activeTab: 16, traceError: 16, traceResult: 16, showMissingTerminalWarning: 16, showNoStartingPointsWarning: 16, mode: 16, autoDestroyDisabled: 5, beforeTraceLocationSelectStart: 0, aggregatedGeometryGraphicsColor: 0, disableHighlightFeatureResults: 5, hideActionBar: 5, hideFeatureResults: 5, label: 3, messageOverrides: 0, traceResultFeatures: 32, referenceElement: 1, state: 32, view: 0 };
|
|
28
29
|
}
|
|
29
30
|
static {
|
|
30
|
-
this.styles =
|
|
31
|
+
this.styles = $;
|
|
31
32
|
}
|
|
32
33
|
get _allLayers() {
|
|
33
34
|
const { view: e } = this;
|
|
@@ -45,7 +46,7 @@ class C extends T {
|
|
|
45
46
|
}
|
|
46
47
|
load() {
|
|
47
48
|
this.manager.onLifecycle(() => [
|
|
48
|
-
|
|
49
|
+
f(() => !this._viewModel.utilityNetwork, () => this._switchTab("input"))
|
|
49
50
|
]);
|
|
50
51
|
}
|
|
51
52
|
_clearTraceResult() {
|
|
@@ -80,24 +81,24 @@ class C extends T {
|
|
|
80
81
|
if (!a || !e?.elements || !t)
|
|
81
82
|
return;
|
|
82
83
|
a.getObjectIdsFromElements(e.elements).forEach((i) => {
|
|
83
|
-
const
|
|
84
|
-
const c =
|
|
84
|
+
const n = t.allLayerViews.find((d) => {
|
|
85
|
+
const c = d.layer;
|
|
85
86
|
if (a.isUtilityLayer(c)) {
|
|
86
|
-
const
|
|
87
|
-
return c.layerId ===
|
|
87
|
+
const p = Number(i.layerUrl.split("/").pop());
|
|
88
|
+
return c.layerId === p;
|
|
88
89
|
}
|
|
89
90
|
return !1;
|
|
90
91
|
});
|
|
91
|
-
if (!
|
|
92
|
+
if (!n)
|
|
92
93
|
return;
|
|
93
|
-
const
|
|
94
|
-
this._highlightHandles.push(
|
|
94
|
+
const u = n.highlight(i.objectIds);
|
|
95
|
+
this._highlightHandles.push(u);
|
|
95
96
|
});
|
|
96
97
|
}
|
|
97
98
|
async _runTrace() {
|
|
98
99
|
const e = this._traceInputsElement?.selectedNamedTraceConfiguration, t = this._traceInputsElement?.unTraceConfiguration;
|
|
99
100
|
if (!(e?.traceType && t)) {
|
|
100
|
-
|
|
101
|
+
T("error", this, "Trace configuration not found");
|
|
101
102
|
return;
|
|
102
103
|
}
|
|
103
104
|
const a = this._traceInputsElement?.traceLocations;
|
|
@@ -109,9 +110,8 @@ class C extends T {
|
|
|
109
110
|
resultTypes: e.resultTypes,
|
|
110
111
|
outSpatialReference: this.view?.spatialReference
|
|
111
112
|
}), this.disableHighlightFeatureResults || this._highlightResults();
|
|
112
|
-
} catch (
|
|
113
|
-
|
|
114
|
-
u("error", this, `Error while running trace: ${String(i)}`, r), this.traceError = i, this.traceResult = void 0;
|
|
113
|
+
} catch (r) {
|
|
114
|
+
R(r, this, "Error while running trace"), this.traceError = r, this.traceResult = void 0;
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
_handleHideGraphicsChange(e) {
|
|
@@ -149,10 +149,10 @@ class C extends T {
|
|
|
149
149
|
const { mode: e, state: t } = this;
|
|
150
150
|
if (e !== "default")
|
|
151
151
|
return null;
|
|
152
|
-
const { traceResult: a } = this, i = !!(a?.elements.length || a?.globalFunctionResults.length || a?.aggregatedGeometry) && this._traceResultsElement?.state === "ready",
|
|
152
|
+
const { traceResult: a } = this, i = !!(a?.elements.length || a?.globalFunctionResults.length || a?.aggregatedGeometry) && this._traceResultsElement?.state === "ready", n = this._traceResultsElement?.numResults ?? 0;
|
|
153
153
|
return s`<calcite-button appearance=outline width=full @click=${() => {
|
|
154
154
|
this._switchTab("input"), this._clearTraceResult(), this.arcgisTraceResultClear.emit();
|
|
155
|
-
}} .disabled=${!i} slot=footer>${
|
|
155
|
+
}} .disabled=${!i} slot=footer>${n > 0 && !this.hideFeatureResults && t !== "executing" ? this._messages.buttons.clearResultsCustom.replace("{number}", n.toString()) : this._messages.buttons.clearResultsGeneric}</calcite-button>`;
|
|
156
156
|
}
|
|
157
157
|
renderInputTab() {
|
|
158
158
|
return h(`${this.el.id}__inputs-tab-item`, s`<calcite-tab .selected=${this.activeTab === "input"}><div class="inputs-tab-container">${this.showNoStartingPointsWarning && this.mode === "default" && this.renderNoStartingPointsWarning() || ""}${this.showMissingTerminalWarning && this.mode === "default" && this.renderMissingTerminalWarning() || ""}<arcgis-utility-network-trace-inputs .view=${this.view || void 0} .referenceElement=${this.referenceElement} .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} .hideActionBar=${this.hideActionBar} @arcgisSelectedNamedTraceConfigurationChange=${this._handleSelectedNamedTraceConfigurationChange} @arcgisUtilityNetworkChange=${this._handleUtilityNetworkChange} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisPropertyChange=${(e) => {
|
|
@@ -167,11 +167,11 @@ class C extends T {
|
|
|
167
167
|
return s`<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 { _messages: e, _viewModel: { utilityNetwork: t, loadError: a, state:
|
|
171
|
-
return s`<calcite-panel .loading=${this.view === void 0}><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @click=${() => this._switchTab("input")} .selected=${this.activeTab === "input"}>${e.tabs.inputTab}</calcite-tab-title><calcite-tab-title @click=${() => this._switchTab("results")} .selected=${this.activeTab === "results"} .disabled=${i || !t}>${e.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.view ? this.renderInputTab() : null}${this.view && t ? this.renderResultsTab() : null}</calcite-tabs>${
|
|
170
|
+
const { _messages: e, _viewModel: { utilityNetwork: t, loadError: a, state: r } } = this, i = r === "disabled" && a != null, n = i && a !== "no-utility-network" ? s`<calcite-notice kind=warning open scale=s slot=content-top width=full><div slot=message>${this._getLoadError(a)}</div></calcite-notice>` : void 0;
|
|
171
|
+
return s`<calcite-panel .loading=${this.view === void 0}><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @click=${() => this._switchTab("input")} .selected=${this.activeTab === "input"}>${e.tabs.inputTab}</calcite-tab-title><calcite-tab-title @click=${() => this._switchTab("results")} .selected=${this.activeTab === "results"} .disabled=${i || !t}>${e.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.view ? this.renderInputTab() : null}${this.view && t ? this.renderResultsTab() : null}</calcite-tabs>${n}${this.activeTab === "input" ? this.renderInputFooter() : null}${this.activeTab === "results" ? this.renderResultsFooter() : null}</calcite-panel>`;
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
|
|
174
|
+
m("arcgis-utility-network-trace-analysis", E);
|
|
175
175
|
export {
|
|
176
|
-
|
|
176
|
+
E as ArcgisUtilityNetworkTraceAnalysis
|
|
177
177
|
};
|
|
@@ -15,7 +15,8 @@ import { log as h, composeMissingPropertyMessage as L, composeEmptyPropertyMessa
|
|
|
15
15
|
import { css as $, html as s } from "lit";
|
|
16
16
|
import { u as v } from "../../chunks/useT9n.js";
|
|
17
17
|
import { b as E, a as g, c as P, q as m, i as I } from "../../chunks/layer-utils.js";
|
|
18
|
-
|
|
18
|
+
import { l as F } from "../../chunks/async-utils.js";
|
|
19
|
+
const U = $`:host{height:100%;flex-grow:1}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-block-group{flex-grow:1;padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block calcite-combobox,calcite-block calcite-input{margin:0 var(--calcite-spacing-md)}calcite-block calcite-input-message{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}calcite-notice{margin:var(--calcite-spacing-md)}#subnetwork-info-block{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}#results-limited-message{padding:var(--calcite-spacing-sm)}.inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.add-spatial-mode{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);margin:var(--calcite-spacing-md)}.heading{color:var(--calcite-color-text-1);margin:0 0 var(--calcite-spacing-md) 0;font-size:var(--calcite-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium)}`, u = `utility-network-trace-inputs-sketch-${Date.now()}`, x = 20;
|
|
19
20
|
class A extends T {
|
|
20
21
|
constructor() {
|
|
21
22
|
super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = v({ blocking: !0 }), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._startingPoints = new n(), this._barriers = new n(), this._stoppingPoints = new n(), this._subnetworkTraceTypes = /* @__PURE__ */ new Set([
|
|
@@ -34,10 +35,10 @@ class A extends T {
|
|
|
34
35
|
e && (this._featuresComponentElement = e);
|
|
35
36
|
}, this._handleFeaturesPropertyChange = ({ detail: e, target: t }) => {
|
|
36
37
|
(e.name === "selectedDrillInFeature" || e.name === "selectedFeature") && (this.selectedFeature = t.selectedDrillInFeature ?? t.selectedFeature ?? void 0);
|
|
37
|
-
}, this.candidateFeatures = [], this.compatibleSubnetworkNames = [], this.traceConfigurations = [], this.
|
|
38
|
+
}, this.candidateFeatures = [], this.compatibleSubnetworkNames = [], this.traceConfigurations = [], this._subnetworkNamesState = "ready", this._exceedDisplayLimit = !1, this.autoDestroyDisabled = !1, this.hideActionBar = !1, this.mode = "default", this.arcgisPropertyChange = C()("mode"), this.arcgisSelectedNamedTraceConfigurationChange = c(), this.arcgisTraceInputsChange = c(), this.arcgisTraceLocationSelectEnd = c(), this.arcgisTraceLocationSelectStart = c(), this.arcgisUtilityNetworkChange = c();
|
|
38
39
|
}
|
|
39
40
|
static {
|
|
40
|
-
this.properties = { selectedFeature: 16, candidateFeatures: 16, compatibleSubnetworkNames: 16, subnetworksTable: 16, traceConfigurations: 16, utilityNetworks: 16, _unTraceConfiguration: 16,
|
|
41
|
+
this.properties = { selectedFeature: 16, candidateFeatures: 16, compatibleSubnetworkNames: 16, subnetworksTable: 16, traceConfigurations: 16, utilityNetworks: 16, _unTraceConfiguration: 16, _error: 16, _subnetworkNamesState: 16, _activeTraceLocationType: 16, _exceedDisplayLimit: 16, beforeTraceLocationSelectStart: 0, view: 0, selectedUtilityNetwork: 0, selectedNamedTraceConfiguration: 0, autoDestroyDisabled: 5, hideActionBar: 5, unTraceConfiguration: 32, referenceElement: 1, mode: 3, traceLocationFlagInfos: 32, traceLocations: 32 };
|
|
41
42
|
}
|
|
42
43
|
static {
|
|
43
44
|
this.styles = U;
|
|
@@ -83,13 +84,12 @@ class A extends T {
|
|
|
83
84
|
load() {
|
|
84
85
|
this.manager.onLifecycle(() => [
|
|
85
86
|
b(() => this.view?.map, () => {
|
|
86
|
-
this.
|
|
87
|
+
this._error = void 0, this._setupUtilityNetworks(), this._setupSketchViewModel();
|
|
87
88
|
}, { initial: !0 })
|
|
88
89
|
]);
|
|
89
90
|
}
|
|
90
91
|
willUpdate(e) {
|
|
91
|
-
|
|
92
|
-
(e.has("utilityNetworks") || !t || t.length === 0 || !i || !t?.includes(i)) && this._handleUtilityNetworksChange(), e.has("selectedUtilityNetwork") && (this.arcgisUtilityNetworkChange.emit(), this._handleSelectedUtilityNetworkChange()), e.has("selectedNamedTraceConfiguration") && (this.arcgisTraceInputsChange.emit(), this.arcgisSelectedNamedTraceConfigurationChange.emit(), this._handleTraceConfigChange()), e.has("selectedSubnetworkName") && this.arcgisTraceInputsChange.emit();
|
|
92
|
+
e.has("utilityNetworks") && this._handleUtilityNetworksChange(), e.has("selectedUtilityNetwork") && (this.arcgisUtilityNetworkChange.emit(), this._handleSelectedUtilityNetworkChange()), e.has("selectedNamedTraceConfiguration") && (this.arcgisTraceInputsChange.emit(), this.arcgisSelectedNamedTraceConfigurationChange.emit(), this._handleTraceConfigChange()), e.has("selectedSubnetworkName") && this.arcgisTraceInputsChange.emit();
|
|
93
93
|
}
|
|
94
94
|
disconnectedCallback() {
|
|
95
95
|
super.disconnectedCallback(), this._layerIdToLayer.clear();
|
|
@@ -206,7 +206,7 @@ class A extends T {
|
|
|
206
206
|
h("error", this, L("selectedNamedTraceConfiguration.traceConfiguration")), this._unTraceConfiguration = void 0;
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
|
-
this._unTraceConfiguration = e.traceConfiguration.clone(), e.traceType === "subnetwork" && (this.
|
|
209
|
+
this._unTraceConfiguration = e.traceConfiguration.clone(), e.traceType === "subnetwork" && (this._subnetworkNamesState = "loading", this._handleSubnetworkTraceConfigChange(this._unTraceConfiguration).finally(() => this._subnetworkNamesState = "ready"));
|
|
210
210
|
}
|
|
211
211
|
async _handleSelectedUtilityNetworkChange() {
|
|
212
212
|
await this.selectedUtilityNetwork?.load(), this._clearSubnetworks(), this._setupTraceConfigurations(), this._filterUnLayers(), this._clearTraceLocations();
|
|
@@ -219,19 +219,22 @@ class A extends T {
|
|
|
219
219
|
this._unLayers = new n(this._allLayers.filter((t) => e?.isUtilityLayer(t) && !this._subnetworkLayerIds.includes(t.layerId))), this._setSnappingOption();
|
|
220
220
|
}
|
|
221
221
|
_handleUtilityNetworksChange() {
|
|
222
|
-
const { utilityNetworks: e } = this;
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
const { utilityNetworks: e, selectedUtilityNetwork: t } = this;
|
|
223
|
+
e?.length ? (!t || !e.includes(t)) && (this.selectedUtilityNetwork = e.at(0)) : (h("error", this, N("utilityNetworks")), this.selectedUtilityNetwork = void 0, this._error = this._messages.errors.noUtilityNetworkError);
|
|
224
|
+
}
|
|
225
|
+
async _setupUtilityNetworks() {
|
|
226
|
+
if (!this.view?.map) {
|
|
227
|
+
h("error", this, "The property `view.map` is required to load utility networks but is missing."), this._error = this._messages.errors.noMapError, this.utilityNetworks = void 0;
|
|
225
228
|
return;
|
|
226
229
|
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
230
|
+
const e = this.view.map;
|
|
231
|
+
try {
|
|
232
|
+
e.loaded || await e.load();
|
|
233
|
+
} catch (t) {
|
|
234
|
+
F(t, this, "Error while loading `view.map`");
|
|
235
|
+
} finally {
|
|
236
|
+
this.utilityNetworks = e.utilityNetworks || new n();
|
|
237
|
+
}
|
|
235
238
|
}
|
|
236
239
|
_handleTraceLocationSelectStart(e) {
|
|
237
240
|
if (e.stopPropagation(), this.arcgisTraceLocationSelectStart.emit(e.detail).defaultPrevented) {
|
|
@@ -321,8 +324,8 @@ class A extends T {
|
|
|
321
324
|
}}>${i}</calcite-combobox></calcite-block>`;
|
|
322
325
|
}
|
|
323
326
|
renderDefaultMode() {
|
|
324
|
-
|
|
325
|
-
return
|
|
327
|
+
let e;
|
|
328
|
+
return this._error ? e = this.renderError(this._error, !1, "exclamation-mark-triangle") : this.selectedUtilityNetwork?.loaded ? e = this.renderContent() : e = this.renderLoader(), s`<calcite-flow-item .selected=${this.mode === "default"}>${e}</calcite-flow-item>`;
|
|
326
329
|
}
|
|
327
330
|
renderSpatialSelectInstructions() {
|
|
328
331
|
const { _messages: e, _activeTraceLocationType: t, mode: i } = this, a = t === "starting-point" ? e.labels.addSpatial.startingPoint : t === "barrier" ? e.labels.addSpatial.barrier : e.labels.addSpatial.stoppingPoint;
|
|
@@ -360,18 +363,15 @@ class A extends T {
|
|
|
360
363
|
}
|
|
361
364
|
renderSubnetworkSelection() {
|
|
362
365
|
const { compatibleSubnetworkNames: e } = this, t = this._messages.labels.subnetworkName;
|
|
363
|
-
return this.isSubnetworkNameTraceSelected ? this.
|
|
366
|
+
return this.isSubnetworkNameTraceSelected ? this._subnetworkNamesState === "loading" ? s`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : e.length ? s`<calcite-block .heading=${t} .label=${t} expanded>${e.length > x ? this.renderSubnetworkNameInput() : this.renderSubnetworkSelectList()}</calcite-block>` : this.renderError(this._messages.errors.noCompatibleSubnetworks, !1, "exclamation-mark-triangle") : null;
|
|
364
367
|
}
|
|
365
368
|
renderSubnetworkInfo() {
|
|
366
369
|
const { _messages: e, selectedNamedTraceConfiguration: t, _unTraceConfiguration: i } = this;
|
|
367
370
|
return i && t?.traceType && this._subnetworkTraceTypes.has(t.traceType) ? s`<calcite-block id=subnetwork-info-block expanded .label=${e.labels.subnetworkInfo}><arcgis-utility-network-subnetwork-info .namedTraceConfig=${t}></arcgis-utility-network-subnetwork-info></calcite-block>` : null;
|
|
368
371
|
}
|
|
369
372
|
renderContent() {
|
|
370
|
-
const { utilityNetworks: e } = this, t = this.selectedNamedTraceConfiguration?.traceConfiguration
|
|
371
|
-
|
|
372
|
-
return this.renderError(this._messages.errors.noUtilityNetworkError);
|
|
373
|
-
const i = s`${this.renderTraceSelection()}${this.renderSubnetworkInfo()}${this.renderSubnetworkSelection()}`, a = s`${this.showStartingPoints ? this.renderStartingPointSelection() : null}${this.showStoppingPoints ? this.renderStoppingPointSelection() : null}${this.renderBarrierSelection()}`;
|
|
374
|
-
return s`<calcite-block-group .label=${this._messages.labels.traceInputs}>${e.length > 1 ? this.renderUtilityNetworkSelection() : null}${this.selectedUtilityNetwork?.loaded ? i : this.renderLoader()}${t ? a : null}</calcite-block-group>`;
|
|
373
|
+
const { utilityNetworks: e } = this, t = this.selectedNamedTraceConfiguration?.traceConfiguration, i = s`${this.renderTraceSelection()}${this.renderSubnetworkInfo()}${this.renderSubnetworkSelection()}`, a = s`${this.showStartingPoints ? this.renderStartingPointSelection() : null}${this.showStoppingPoints ? this.renderStoppingPointSelection() : null}${this.renderBarrierSelection()}`;
|
|
374
|
+
return s`<calcite-block-group .label=${this._messages.labels.traceInputs}>${e && e.length > 1 ? this.renderUtilityNetworkSelection() : null}${i}${t ? a : null}</calcite-block-group>`;
|
|
375
375
|
}
|
|
376
376
|
render() {
|
|
377
377
|
const { mode: e } = this;
|
|
@@ -284,7 +284,7 @@ class R extends G {
|
|
|
284
284
|
}
|
|
285
285
|
renderAddLocationBlock() {
|
|
286
286
|
const { traceLocationType: e, messages: t, traceLocations: r, view: s } = this, n = e === "starting-point" ? t.types.startingPoint : e === "barrier" ? t.types.barrier : t.types.stoppingPoint, a = n.heading, c = n.description, i = n.buttonText;
|
|
287
|
-
return y`<calcite-block .heading=${a} .label=${a} expanded .description=${c}>${r?.length ? y`<calcite-button class="clear-button" slot=actions-end appearance=transparent .label=${t.buttons.clear} @click=${() => this._handleClearButtonClick()}>${t.buttons.clear}</calcite-button
|
|
287
|
+
return y`<calcite-block .heading=${a} .label=${a} expanded .description=${c}>${r?.length ? y`<calcite-button class="clear-button" slot=actions-end appearance=transparent .label=${t.buttons.clear} @click=${() => this._handleClearButtonClick()}>${t.buttons.clear}</calcite-button><arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${e} .view=${s}></arcgis-utility-network-trace-location-list>` : null}<div class="button-container"><calcite-button .loading=${this.isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${i} @click=${() => this._handleAddButtonClick()}>${i}</calcite-button></div></calcite-block>`;
|
|
288
288
|
}
|
|
289
289
|
render() {
|
|
290
290
|
return y`<div class="root">${this.renderAddLocationBlock()}</div>`;
|
|
@@ -1,21 +1,24 @@
|
|
|
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
|
|
4
|
-
import
|
|
3
|
+
import { css as h, html as n } from "lit";
|
|
4
|
+
import p from "@arcgis/core/core/Collection.js";
|
|
5
5
|
import { substitute as u } from "@arcgis/core/intl.js";
|
|
6
6
|
import { LitElement as g } from "@arcgis/lumina";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
const
|
|
7
|
+
import { log as s, composeEmptyPropertyMessage as b } from "@arcgis/toolkit/log";
|
|
8
|
+
import { u as f } from "../../chunks/useT9n.js";
|
|
9
|
+
const v = h`:host{margin-block-start:0;padding:0 var(--calcite-spacing-sm) var(--calcite-spacing-sm) var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}calcite-list{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item[selected] [slot=content-bottom]{display:block}.warning{color:var(--calcite-color-status-danger)}.terminals{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md);display:flex;flex-direction:column}.filter-barrier-container{display:flex;width:100%;calcite-label{width:100%}}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`;
|
|
10
10
|
class w extends g {
|
|
11
11
|
constructor() {
|
|
12
|
-
super(...arguments), this._messages =
|
|
12
|
+
super(...arguments), this._messages = f({ blocking: !0 }), this.traceLocations = new p(), this.traceLocationType = "starting-point";
|
|
13
13
|
}
|
|
14
14
|
static {
|
|
15
15
|
this.properties = { traceLocations: 0, traceLocationType: 1, view: 0 };
|
|
16
16
|
}
|
|
17
17
|
static {
|
|
18
|
-
this.styles =
|
|
18
|
+
this.styles = v;
|
|
19
|
+
}
|
|
20
|
+
loaded() {
|
|
21
|
+
this.traceLocations.length || s("warn", this, b("traceLocations"));
|
|
19
22
|
}
|
|
20
23
|
_handleTraceLocationItemRemoved(e) {
|
|
21
24
|
const { traceLocations: i, view: t } = this;
|
|
@@ -59,7 +62,7 @@ class w extends g {
|
|
|
59
62
|
}
|
|
60
63
|
render() {
|
|
61
64
|
const { _messages: e, traceLocationType: i } = this, t = u(e.labels.list, { traceLocationType: i }), r = this.traceLocations?.map((c) => this._renderListItem(c)).toArray() ?? [];
|
|
62
|
-
return r.length === 0 ?
|
|
65
|
+
return r.length === 0 ? null : n`<div><calcite-list interaction-mode=static selection-mode=none .label=${t}>${r}</calcite-list></div>`;
|
|
63
66
|
}
|
|
64
67
|
}
|
|
65
68
|
m("arcgis-utility-network-trace-location-list", w);
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as o } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as h, html as
|
|
3
|
+
import { css as h, html as t } from "lit";
|
|
4
4
|
import { useDirection as n } from "@arcgis/lumina/controllers";
|
|
5
|
-
import { watch as
|
|
5
|
+
import { watch as e } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
6
|
import l from "@arcgis/core/views/VideoView.js";
|
|
7
7
|
import { LitElement as c, createEvent as m, safeClassMap as d } from "@arcgis/lumina";
|
|
8
|
-
import { makeAccessorController as
|
|
8
|
+
import { makeAccessorController as f } from "@arcgis/lumina/controllers/accessor";
|
|
9
9
|
import { createRef as s, ref as r } from "lit/directives/ref.js";
|
|
10
|
-
import {
|
|
11
|
-
import { s as w } from "../../chunks/
|
|
12
|
-
|
|
10
|
+
import { C as a } from "../../chunks/resources.js";
|
|
11
|
+
import { c as p, s as y, S as w } from "../../chunks/slots.js";
|
|
12
|
+
import { s as v } from "../../chunks/esri-main.js";
|
|
13
|
+
const u = h`:host{width:100%;height:100%}`, R = f(l, {
|
|
13
14
|
omitProps: ["container", "navigation", "scale", "ui"]
|
|
14
15
|
});
|
|
15
16
|
class g extends c {
|
|
16
17
|
constructor() {
|
|
17
|
-
super(), this._containerRef = s(), this._direction = n(), this._mapRef = s(), this.autoDestroyDisabled = !1, this.view =
|
|
18
|
+
super(), this._containerRef = s(), this._direction = n(), this._mapRef = s(), this._slotGroupRefs = p(), this.autoDestroyDisabled = !1, this.view = R(this), this.attributionMode = this.view.attributionMode, this.ready = this.view.ready, this.layer = this.view.layer, this.map = this.view.map, this.arcgisViewReadyChange = m();
|
|
18
19
|
}
|
|
19
20
|
static {
|
|
20
21
|
this.properties = { autoDestroyDisabled: 5, view: 32, aria: 0, attributionMode: 1, ready: 36, layer: 0, map: 0 };
|
|
21
22
|
}
|
|
22
23
|
static {
|
|
23
|
-
this.styles = [
|
|
24
|
+
this.styles = [v, y, u];
|
|
24
25
|
}
|
|
25
26
|
get aria() {
|
|
26
27
|
return this.view?.aria;
|
|
@@ -34,19 +35,19 @@ class g extends c {
|
|
|
34
35
|
loaded() {
|
|
35
36
|
const i = this;
|
|
36
37
|
i.el.childElem = this._mapRef.value, this.view.container ??= i.el.childElem, this.manager.onLifecycle(() => [
|
|
37
|
-
|
|
38
|
+
e(() => this.layer, () => {
|
|
38
39
|
this.layer && this.view && (this.view.layer = this.layer, this.layer.loaded || this.layer.load());
|
|
39
40
|
}, { initial: !0 }),
|
|
40
|
-
|
|
41
|
+
e(() => this.view.ready, () => {
|
|
41
42
|
this.view.ready && this.arcgisViewReadyChange.emit();
|
|
42
43
|
}, { initial: this.view.ready })
|
|
43
44
|
]);
|
|
44
45
|
}
|
|
45
46
|
renderMain() {
|
|
46
|
-
return
|
|
47
|
+
return t`<div class=${`root ${a.base}`} ${r(this._mapRef)}></div>`;
|
|
47
48
|
}
|
|
48
49
|
render() {
|
|
49
|
-
return
|
|
50
|
+
return t`${this.renderMain()}<section class=${d(a.containerUI)} ${r(this._containerRef)}>${w({ direction: this._direction, slotGroupRefs: this._slotGroupRefs })}</section>`;
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
o("arcgis-video", g);
|
|
@@ -90,7 +90,13 @@ export abstract class ArcgisVideoPlayer extends LitElement {
|
|
|
90
90
|
* @see [Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/)
|
|
91
91
|
*/
|
|
92
92
|
accessor icon: string | undefined;
|
|
93
|
-
/**
|
|
93
|
+
/**
|
|
94
|
+
* Indicates whether to render the video player in inline mode.
|
|
95
|
+
* In inline mode, the component uses a compact control layout without a [VideoView](https://developers.arcgis.com/javascript/latest/references/core/views/VideoView/).
|
|
96
|
+
*
|
|
97
|
+
* @default false
|
|
98
|
+
* @since 5.0
|
|
99
|
+
*/
|
|
94
100
|
accessor inline: boolean;
|
|
95
101
|
/** The component's default label. */
|
|
96
102
|
accessor label: string | undefined;
|
|
@@ -212,7 +218,12 @@ export abstract class ArcgisVideoPlayer extends LitElement {
|
|
|
212
218
|
* @see [Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)
|
|
213
219
|
*/
|
|
214
220
|
accessor referenceElement: ArcgisReferenceElement | string | undefined;
|
|
215
|
-
/**
|
|
221
|
+
/**
|
|
222
|
+
* Indicates whether to display an action in the header that toggles between inline and the default fullscreen layout.
|
|
223
|
+
*
|
|
224
|
+
* @default false
|
|
225
|
+
* @since 5.0
|
|
226
|
+
*/
|
|
216
227
|
accessor showFullscreenToggle: boolean;
|
|
217
228
|
/** The current state of the component. */
|
|
218
229
|
get state(): "error" | VideoState;
|