@arcgis/map-components 6.0.0-next.35 → 6.0.0-next.37
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/EPTTFCSI.js +2 -0
- package/dist/cdn/F233GPOS.js +2 -0
- package/dist/cdn/MN2WU342.js +2 -0
- package/dist/cdn/{LZN3NDWX.js → NY5NK2MP.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-expand/customElement.d.ts +2 -2
- package/dist/components/arcgis-expand/customElement.js +2 -2
- package/dist/components/arcgis-utility-network-picker/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.js +6 -6
- package/dist/components/arcgis-utility-network-trace-configuration-picker/index.js +1 -2
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +10 -10
- package/dist/components/arcgis-utility-network-trace-inputs/index.js +0 -1
- 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 +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +6 -6
- package/dist/cdn/D4UNIFIZ.js +0 -2
- package/dist/cdn/JZTCF52M.js +0 -2
- package/dist/cdn/QVIQ66LA.js +0 -2
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { c as p } from "../../chunks/runtime.js";
|
|
3
3
|
import { ref as h } from "lit/directives/ref.js";
|
|
4
4
|
import c from "@arcgis/core/core/Collection.js";
|
|
5
|
-
import { watch as
|
|
6
|
-
import { substitute as
|
|
5
|
+
import { watch as g } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
|
+
import { substitute as m } from "@arcgis/core/intl.js";
|
|
7
7
|
import f from "@arcgis/core/rest/networks/support/TraceLocation.js";
|
|
8
8
|
import { LitElement as y, createEvent as l } from "@arcgis/lumina";
|
|
9
9
|
import { usePropertyChange as w } from "@arcgis/lumina/controllers";
|
|
@@ -12,7 +12,7 @@ import { u as b } from "../../chunks/useT9n.js";
|
|
|
12
12
|
import { l as u } from "../../chunks/async-utils.js";
|
|
13
13
|
import { q as T, i as v } from "../../chunks/layer-utils.js";
|
|
14
14
|
import { ArcgisUtilityNetworkTraceLocations as d } from "../arcgis-utility-network-trace-locations/customElement.js";
|
|
15
|
-
const $ = k`: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-space-md);background-color:var(--calcite-color-surface-2)}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-space-md)}calcite-
|
|
15
|
+
const $ = k`: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-space-md);background-color:var(--calcite-color-surface-2)}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-space-md)}calcite-notice{margin:var(--calcite-space-md)}.subnetwork-info-block{margin:var(--calcite-space-md) var(--calcite-space-md) 0}.results-limited-message{margin:var(--calcite-space-sm)}.inline-loader{--calcite-loader-spacing: var(--calcite-space-md)}.add-spatial-mode{display:flex;flex-direction:column;gap:var(--calcite-space-md);margin:var(--calcite-space-md)}.heading{color:var(--calcite-color-text-1);margin:0 0 var(--calcite-space-md);font-size:var(--calcite-font-size);font-weight:var(--calcite-font-weight-medium)}`;
|
|
16
16
|
class L extends y {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments), this._messages = b({ blocking: !0 }), this.#n = !0, this.#d = /* @__PURE__ */ new Map(), this.#e = new c(), this.#i = new c(), this.#t = new c(), this.#a = null, this.#r = 20, this._candidateFeatures = [], this._compatibleSubnetworkNames = [], this._namedTraceConfigurations = [], this._subnetworkNamesState = "ready", this._exceedDisplayLimit = !1, this.autoDestroyDisabled = !1, this.hideActionBar = !1, this.includeDefaultActionsDisabled = !1, this.mode = "default", this.arcgisPropertyChange = w()("mode", "selectedNamedTraceConfiguration", "selectedUtilityNetwork", "traceLocations"), this.arcgisTraceLocationSelectEnd = l(), this.arcgisTraceLocationSelectStart = l(), this.arcgisTriggerAction = l();
|
|
@@ -81,7 +81,7 @@ class L extends y {
|
|
|
81
81
|
}
|
|
82
82
|
load() {
|
|
83
83
|
this.#b(), this.manager.onLifecycle(() => [
|
|
84
|
-
|
|
84
|
+
g(() => this.view?.map, () => this.#b())
|
|
85
85
|
]);
|
|
86
86
|
}
|
|
87
87
|
willUpdate(e) {
|
|
@@ -141,7 +141,7 @@ class L extends y {
|
|
|
141
141
|
this.#c(new c([...this.#e, ...this.#i, ...this.#t]));
|
|
142
142
|
return;
|
|
143
143
|
}
|
|
144
|
-
this.#
|
|
144
|
+
this.#g(this.#i), this.#h ? this.#g(this.#e) : this.#c(this.#e), this.#u ? this.#g(this.#t) : this.#c(this.#t);
|
|
145
145
|
}
|
|
146
146
|
#U() {
|
|
147
147
|
this._namedTraceConfigurations = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.filter(Boolean).filter((e) => e.traceType !== "circuit").sort((e, t) => e.title.localeCompare(t.title)) || [], (!this.selectedNamedTraceConfiguration || !this._namedTraceConfigurations.includes(this.selectedNamedTraceConfiguration)) && (this._traceConfiguration = void 0, this.selectedNamedTraceConfiguration = void 0);
|
|
@@ -215,7 +215,7 @@ class L extends y {
|
|
|
215
215
|
e.resolve(i), this.#a = null;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
#
|
|
218
|
+
#g(e) {
|
|
219
219
|
const t = e.map(({ spatialProperties: i }) => i.flagGraphic).filter((i) => i !== void 0 && !this.view?.graphics.includes(i));
|
|
220
220
|
this.view?.graphics.addMany(t);
|
|
221
221
|
}
|
|
@@ -255,16 +255,16 @@ class L extends y {
|
|
|
255
255
|
return r`<arcgis-features-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#n} .features=${this._candidateFeatures} .featureMenuTitle=${a} .hideActionBar=${this.hideActionBar} hide-select-feature .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .initialDisplayMode=${s} .messageOverrides=${this.messageOverrides} @arcgisClose=${() => this.#v()} @arcgisPropertyChange=${this.#N} @arcgisTriggerAction=${this.#C} open .referenceElement=${this.referenceElement} .view=${this.view} ${h(this.#P)}></arcgis-features-next>`;
|
|
256
256
|
}
|
|
257
257
|
#W() {
|
|
258
|
-
const { mode: e, _messages: t, _selectedFeature: i, selectedUtilityNetwork: a } = this, s = e === "add-spatial-feature" && this._exceedDisplayLimit && !i, o =
|
|
258
|
+
const { mode: e, _messages: t, _selectedFeature: i, selectedUtilityNetwork: a } = this, s = e === "add-spatial-feature" && this._exceedDisplayLimit && !i, o = m(t.warnings.exceededDisplayLimit, {
|
|
259
259
|
limit: this.#r.toString()
|
|
260
260
|
}), n = i ? !(a?.isUtilityLayer(i.layer) ?? !0) : !0;
|
|
261
|
-
return r`${s && r`<calcite-
|
|
261
|
+
return r`${s && r`<calcite-notice appearance=transparent class="results-limited-message" icon=information kind=info open scale=s><div slot=message>${o}</div></calcite-notice>` || ""}<calcite-button appearance=outline width=full @click=${() => this.#o()} slot=footer>${t.buttons.cancel}</calcite-button>${e === "add-spatial-feature" && r`<calcite-button width=full slot=footer appearance=solid @click=${() => this.#G()} .disabled=${n}>${t.buttons.add}</calcite-button>` || ""}`;
|
|
262
262
|
}
|
|
263
|
-
#
|
|
263
|
+
#m(e, t, i) {
|
|
264
264
|
return r`<arcgis-utility-network-trace-locations .messageOverrides=${this.messageOverrides} .view=${this.view} .traceLocationType=${e} .beforeMapInteraction=${this.beforeMapInteraction} @arcgisTraceLocationSelectStart=${this.#I} @arcgisTraceLocationSelectEnd=${this.#V} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this.#l} .traceLocations=${t} .afterMapInteraction=${this.#O.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(i)}></arcgis-utility-network-trace-locations>`;
|
|
265
265
|
}
|
|
266
266
|
#J() {
|
|
267
|
-
const { _messages: e } = this, t = this.#q(), i = this.#j(), a = this.#k ? r`${this.#h ? this.#
|
|
267
|
+
const { _messages: e } = this, t = this.#q(), i = this.#j(), a = this.#k ? r`${this.#h ? this.#m("starting-point", this.#e, this.#S) : null}${this.#u ? this.#m("stopping-point", this.#t, this.#F) : null}${this.#m("barrier", this.#i, this.#_)}` : null, s = this.selectedUtilityNetwork?.loaded ? r`${i}${a}` : null;
|
|
268
268
|
return r`<calcite-block-group .label=${e.labels.traceInputs}>${t}${s}</calcite-block-group>`;
|
|
269
269
|
}
|
|
270
270
|
render() {
|
|
@@ -3,7 +3,6 @@ import "../arcgis-utility-network-trace-configuration-picker/index.js";
|
|
|
3
3
|
import "../arcgis-utility-network-picker/index.js";
|
|
4
4
|
import "@esri/calcite-components/components/calcite-flow-item";
|
|
5
5
|
import "../arcgis-features-next/index.js";
|
|
6
|
-
import "@esri/calcite-components/components/calcite-input-message";
|
|
7
6
|
import "@esri/calcite-components/components/calcite-button";
|
|
8
7
|
import "../arcgis-utility-network-trace-locations/index.js";
|
|
9
8
|
import "@esri/calcite-components/components/calcite-block-group";
|