@arcgis/map-components 6.0.0-next.33 → 6.0.0-next.35
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/2TTSZF7O.js +2 -0
- package/dist/cdn/4UCQJWD2.js +2 -0
- package/dist/cdn/6UMEQS35.js +2 -0
- package/dist/cdn/7OLHJCFT.js +2 -0
- package/dist/cdn/AMRSK274.js +2 -0
- package/dist/cdn/{VXPGE37T.js → BABV4TXK.js} +1 -1
- package/dist/cdn/{2JXK3AW7.js → BCHHB4QH.js} +1 -1
- package/dist/cdn/D4UNIFIZ.js +2 -0
- package/dist/cdn/{LC2ZSIJY.js → DARVFHQE.js} +1 -1
- package/dist/cdn/{YME6EWHF.js → DNZXXP5C.js} +1 -1
- package/dist/cdn/{KWIZ45T7.js → F5N3YH5Z.js} +1 -1
- package/dist/cdn/{L3MJ5NAZ.js → GMN6YYZU.js} +1 -1
- package/dist/cdn/I6DE3NLP.js +2 -0
- package/dist/cdn/JKE3FA4Q.js +2 -0
- package/dist/cdn/JZTCF52M.js +2 -0
- package/dist/cdn/LZN3NDWX.js +2 -0
- package/dist/cdn/NZK2LVFA.js +2 -0
- package/dist/cdn/{2AMSAAH4.js → ODCD75PC.js} +1 -1
- package/dist/cdn/PTHNXKEA.js +2 -0
- package/dist/cdn/QVIQ66LA.js +2 -0
- package/dist/cdn/TRN35DVC.js +2 -0
- package/dist/cdn/{TEDWUEQ4.js → VTYQHAZN.js} +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/layer-list-next.js +49 -4
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +2 -2
- package/dist/components/arcgis-area-measurement-2d/customElement.js +2 -2
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +2 -2
- package/dist/components/arcgis-area-measurement-3d/customElement.js +2 -2
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +3 -0
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +102 -101
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +3 -0
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +87 -86
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +2 -2
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +2 -2
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +2 -2
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +2 -2
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +2 -2
- package/dist/components/arcgis-elevation-profile/customElement.js +2 -2
- package/dist/components/arcgis-expand/customElement.js +13 -13
- package/dist/components/arcgis-exploratory-analysis/customElement.js +41 -38
- package/dist/components/arcgis-feature-expression/customElement.js +47 -47
- package/dist/components/arcgis-feature-next/customElement.js +5 -5
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -0
- package/dist/components/arcgis-layer-list-next/customElement.js +72 -71
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +14 -2
- package/dist/components/arcgis-shadow-cast/customElement.js +53 -34
- package/dist/components/arcgis-shadow-cast/index.js +1 -0
- package/dist/components/arcgis-sketch/customElement.d.ts +6 -4
- package/dist/components/arcgis-sketch/customElement.js +177 -167
- package/dist/components/arcgis-table-list-next/customElement.d.ts +3 -0
- package/dist/components/arcgis-table-list-next/customElement.js +44 -43
- package/dist/components/arcgis-utility-network-picker/customElement.js +32 -31
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +10 -4
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.js +10 -9
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +3 -0
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +7 -7
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +1 -1
- package/dist/components/arcgis-view-popover/customElement.d.ts +65 -33
- package/dist/components/arcgis-view-popover/customElement.js +196 -108
- package/dist/components/arcgis-view-popover/index.js +1 -1
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +2 -2
- package/dist/components/arcgis-volume-measurement/customElement.js +2 -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 -2
- package/dist/types/lumina.d.ts +7 -7
- package/dist/types/preact.d.ts +7 -7
- package/dist/types/react.d.ts +7 -7
- package/dist/types/stencil.d.ts +7 -7
- package/package.json +8 -8
- package/dist/cdn/3NUN6DK3.js +0 -2
- package/dist/cdn/6FJUKYNB.js +0 -2
- package/dist/cdn/7Y6PADB5.js +0 -2
- package/dist/cdn/I5F7MVDT.js +0 -2
- package/dist/cdn/LNTE4FDB.js +0 -2
- package/dist/cdn/P5U37XIA.js +0 -2
- package/dist/cdn/PD4ELTMF.js +0 -2
- package/dist/cdn/RAADOJWX.js +0 -2
- package/dist/cdn/TEPHXOQ2.js +0 -2
- package/dist/cdn/TY4XRXLB.js +0 -2
- package/dist/cdn/UZ4VANCL.js +0 -2
- package/dist/cdn/W4BA3ECA.js +0 -2
- package/dist/cdn/XCDMOCWN.js +0 -2
- package/dist/cdn/ZEQHIKTN.js +0 -2
- /package/dist/cdn/{WFTJ4E4F.js → A6ANFEOT.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { watch as
|
|
5
|
-
import { LitElement as p, createEvent as
|
|
6
|
-
import { usePropertyChange as
|
|
7
|
-
import { getSlotAssignedElements as
|
|
8
|
-
import { u as
|
|
9
|
-
import { r as
|
|
10
|
-
const
|
|
2
|
+
import { c as y } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as v, html as h } from "lit";
|
|
4
|
+
import { watch as g } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
+
import { LitElement as p, createEvent as d, nothing as u } from "@arcgis/lumina";
|
|
6
|
+
import { usePropertyChange as A } from "@arcgis/lumina/controllers";
|
|
7
|
+
import { getSlotAssignedElements as f } from "@arcgis/toolkit/dom/slots";
|
|
8
|
+
import { u as b } from "../../chunks/useT9n.js";
|
|
9
|
+
import { r as m } from "../../chunks/maybe.js";
|
|
10
|
+
const w = v`:host{--arcgis-internal-exploratory-analysis-width: fit-content;display:flex;justify-content:flex-end;width:var(--arcgis-internal-exploratory-analysis-width)}:host(:is([data-content-open],[show-heading])){--arcgis-internal-exploratory-analysis-width: var(--arcgis-internal-panel-width, 300px);calcite-panel{min-width:var(--arcgis-internal-panel-width, 300px)}calcite-action-bar{width:100%}}calcite-panel{flex:none}calcite-action-bar{width:fit-content}.selection-notice-container{padding:var(--calcite-space-md)}.selection-notice-list{margin-block:0;padding-inline-start:var(--calcite-space-lg)}.measurement-content{--arcgis-internal-padding: var(--calcite-space-md) var(--calcite-space-none);margin-block-end:var(--calcite-space-none)}.measurement-content,slot::slotted(*){width:100%}.footer{display:grid;grid-template-columns:1fr 2fr;gap:var(--calcite-space-md);width:100%}`, C = [
|
|
11
11
|
"arcgis-area-measurement-2d",
|
|
12
12
|
"arcgis-area-measurement-3d",
|
|
13
13
|
"arcgis-direct-line-measurement-3d",
|
|
@@ -15,19 +15,22 @@ const b = y`:host{--arcgis-internal-exploratory-analysis-width: fit-content;disp
|
|
|
15
15
|
"arcgis-elevation-profile",
|
|
16
16
|
"arcgis-volume-measurement"
|
|
17
17
|
];
|
|
18
|
-
function
|
|
19
|
-
return
|
|
18
|
+
function _(a) {
|
|
19
|
+
return a?.state === "measuring" || a?.state === "creating" || a?.state === "selecting";
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
function r(a) {
|
|
22
|
+
return "messages" in a ? a.messages?.componentLabel : a._messages?.componentLabel;
|
|
23
|
+
}
|
|
24
|
+
const $ = C.join(",");
|
|
25
|
+
class B extends p {
|
|
23
26
|
constructor() {
|
|
24
|
-
super(), this._messages =
|
|
27
|
+
super(), this._messages = b({ blocking: !0 }), this.#i = !1, this.#e = /* @__PURE__ */ new WeakMap(), this._activeAnalysisHasInput = !1, this._measurements = [], this.autoDestroyDisabled = !1, this.autoStartDisabled = !1, this.closed = !1, this.icon = "measure", this.preserveAnalysisOnChange = !1, this.requireActiveAnalysis = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showHeading = !1, this.arcgisClose = d(), this.arcgisPropertyChange = A()("activeAnalysis"), this.arcgisReady = d(), this.listen("arcgisPropertyChange", this.#r.bind(this)), this.listen("arcgisReady", this.#r.bind(this));
|
|
25
28
|
}
|
|
26
29
|
static {
|
|
27
30
|
this.properties = { _activeAnalysisHasInput: 16, _activeAnalysisState: 16, _measurements: 16, activeAnalysis: 1, autoDestroyDisabled: 5, autoStartDisabled: 5, closed: 5, icon: 1, messageOverrides: 0, preserveAnalysisOnChange: 5, requireActiveAnalysis: 5, showCloseButton: 5, showCollapseButton: 5, showHeading: 7 };
|
|
28
31
|
}
|
|
29
32
|
static {
|
|
30
|
-
this.styles =
|
|
33
|
+
this.styles = w;
|
|
31
34
|
}
|
|
32
35
|
#a;
|
|
33
36
|
#i;
|
|
@@ -45,8 +48,8 @@ class $ extends p {
|
|
|
45
48
|
await this.manager.destroy();
|
|
46
49
|
}
|
|
47
50
|
load() {
|
|
48
|
-
this.manager.onLifecycle(() => (this.#
|
|
49
|
-
this.#s =
|
|
51
|
+
this.manager.onLifecycle(() => (this.#o(), () => {
|
|
52
|
+
this.#s = m(this.#s), this.#n = void 0;
|
|
50
53
|
}));
|
|
51
54
|
}
|
|
52
55
|
async #l() {
|
|
@@ -56,22 +59,22 @@ class $ extends p {
|
|
|
56
59
|
this.closed = !0, this.arcgisClose.emit(), this.autoDestroyDisabled || this.destroy();
|
|
57
60
|
}
|
|
58
61
|
async #m({ target: t }) {
|
|
59
|
-
const s = Number(t.selectedActions.at(0)?.dataset.measurementIndex), i = this._measurements[s],
|
|
62
|
+
const s = Number(t.selectedActions.at(0)?.dataset.measurementIndex), i = this._measurements[s], n = this.activeAnalysis;
|
|
60
63
|
if (i) {
|
|
61
|
-
if (i !==
|
|
64
|
+
if (i !== n && (!this.preserveAnalysisOnChange || _(n)) && await this.#l(), this.#h(i), this.autoStartDisabled || i.interactionDisabled || this.preserveAnalysisOnChange && i.analysis?.valid)
|
|
62
65
|
return;
|
|
63
66
|
await i.start();
|
|
64
67
|
} else
|
|
65
68
|
await this.#l(), this.#h(void 0);
|
|
66
69
|
}
|
|
67
|
-
#
|
|
68
|
-
this._activeAnalysisState = this.activeAnalysis ? this.activeAnalysis.state ?? "disabled" : void 0, this.#
|
|
70
|
+
#r() {
|
|
71
|
+
this._activeAnalysisState = this.activeAnalysis ? this.activeAnalysis.state ?? "disabled" : void 0, this.#o(), this.#d(), this.requestUpdate();
|
|
69
72
|
}
|
|
70
73
|
#y({ currentTarget: t }) {
|
|
71
|
-
const s =
|
|
74
|
+
const s = f(t, $), i = this._measurements.filter((e) => !s.includes(e));
|
|
72
75
|
for (const e of i) {
|
|
73
|
-
const
|
|
74
|
-
e.hidden =
|
|
76
|
+
const c = this.#e.get(e);
|
|
77
|
+
e.hidden = c?.hidden ?? !1, e.hideStartButton = c?.hideStartButton ?? !1, "hideClearButton" in e && (e.hideClearButton = c?.hideClearButton ?? !1), "hideHeader" in e && (e.hideHeader = c?.hideHeader ?? !1), this.#e.delete(e);
|
|
75
78
|
}
|
|
76
79
|
for (const e of s)
|
|
77
80
|
this.#e.has(e) || (this.#e.set(e, {
|
|
@@ -83,12 +86,12 @@ class $ extends p {
|
|
|
83
86
|
this.isConnected && e.isConnected && this._measurements.includes(e) && this.requestUpdate();
|
|
84
87
|
})), e.hideStartButton = !0, "hideClearButton" in e && (e.hideClearButton = !0), "hideHeader" in e && (e.hideHeader = !0);
|
|
85
88
|
this._measurements = s;
|
|
86
|
-
let a;
|
|
87
|
-
this.#t && (a = s.find((e) => e.localName === this.#t));
|
|
88
|
-
let c;
|
|
89
|
-
!this.#t && s.length === 1 && (c = s[0]);
|
|
90
89
|
let n;
|
|
91
|
-
this.#t
|
|
90
|
+
this.#t && (n = s.find((e) => e.localName === this.#t));
|
|
91
|
+
let o;
|
|
92
|
+
!this.#t && s.length === 1 && (o = s[0]);
|
|
93
|
+
let l;
|
|
94
|
+
this.#t ? l = n : this.#i && s.length > 1 ? l = void 0 : this.activeAnalysis && s.includes(this.activeAnalysis) ? l = this.activeAnalysis : l = o, this.#c(l), this.#i = !!o;
|
|
92
95
|
}
|
|
93
96
|
#h(t) {
|
|
94
97
|
this.#t = void 0, this.#i = !1, this.#c(t);
|
|
@@ -98,31 +101,31 @@ class $ extends p {
|
|
|
98
101
|
this.#a = t, this.el.toggleAttribute("data-content-open", !!t), this.requestUpdate("activeAnalysis", s), this.#v();
|
|
99
102
|
}
|
|
100
103
|
#v() {
|
|
101
|
-
this._activeAnalysisState = this.activeAnalysis ? this.activeAnalysis.state ?? "disabled" : void 0, this.#
|
|
104
|
+
this._activeAnalysisState = this.activeAnalysis ? this.activeAnalysis.state ?? "disabled" : void 0, this.#o(), this.#d();
|
|
102
105
|
}
|
|
103
106
|
#d() {
|
|
104
107
|
for (const t of this._measurements)
|
|
105
108
|
t.hidden = t !== this.activeAnalysis || (this.#e.get(t)?.hidden ?? !1) || t === this.activeAnalysis && this._activeAnalysisState === "ready";
|
|
106
109
|
}
|
|
107
|
-
async #
|
|
110
|
+
async #g() {
|
|
108
111
|
await this.activeAnalysis?.start();
|
|
109
112
|
}
|
|
110
|
-
#
|
|
113
|
+
#o() {
|
|
111
114
|
const t = this.activeAnalysis?.analysis;
|
|
112
115
|
if (!(t === this.#n && (t == null || this.#s))) {
|
|
113
|
-
if (this.#s =
|
|
116
|
+
if (this.#s = m(this.#s), this.#n = t, !t) {
|
|
114
117
|
this._activeAnalysisHasInput = !1;
|
|
115
118
|
return;
|
|
116
119
|
}
|
|
117
|
-
this.#s =
|
|
120
|
+
this.#s = g(() => t.valid, (s) => this._activeAnalysisHasInput = s, { initial: !0, sync: !0 });
|
|
118
121
|
}
|
|
119
122
|
}
|
|
120
123
|
render() {
|
|
121
|
-
const { showCloseButton: t, showCollapseButton: s, showHeading: i } = this,
|
|
122
|
-
return
|
|
124
|
+
const { showCloseButton: t, showCollapseButton: s, showHeading: i } = this, n = this._activeAnalysisState === "disabled", o = this._measurements.length > 1, l = this.activeAnalysis ? r(this.activeAnalysis) : this._messages.componentLabel;
|
|
125
|
+
return h`<calcite-panel .closed=${this.closed} .heading=${i ? this._messages.componentLabel : void 0} .collapsible=${s} .closable=${t} @calcitePanelClose=${this.#u}><div .hidden=${!o}><calcite-action-bar expand-toggle-disabled layout=horizontal .overflowMode=${!i && !this.activeAnalysis ? "none" : "collapse"}><calcite-action-group .label=${this._messages.toolbarLabel} @calciteActionGroupChange=${this.#m} .selectionMode=${this.requireActiveAnalysis ? "single-persist" : "single"}>${this._measurements.map((e, c) => h`<calcite-action .active=${e === this.activeAnalysis} data-measurement-index=${c ?? u} .icon=${e.icon} .label=${r(e)} .text=${r(e) ?? ""} title=${r(e) ?? u}></calcite-action>`)}</calcite-action-group></calcite-action-bar></div><div class="measurement-container" .hidden=${!this.activeAnalysis || n}><calcite-block class="measurement-content" .expanded=${this.isConnected && !!this.activeAnalysis && !n} .heading=${l}><slot @slotchange=${this.#y.bind(this)}></slot></calcite-block></div>${this.activeAnalysis ? h`<div class="footer" slot=footer><calcite-button appearance=transparent .disabled=${!this._activeAnalysisHasInput} kind=danger @click=${this.#l} width=full>${this._messages.clear}</calcite-button><calcite-button .disabled=${this.activeAnalysis.interactionDisabled || this._activeAnalysisState !== "ready" && !this._activeAnalysisHasInput} @click=${this.#g} width=full>${this.activeAnalysis?.matches("arcgis-elevation-profile") ? this._messages.newProfile : this._messages.newMeasurement}</calcite-button></div>` : null}</calcite-panel>`;
|
|
123
126
|
}
|
|
124
127
|
}
|
|
125
|
-
|
|
128
|
+
y("arcgis-exploratory-analysis", B);
|
|
126
129
|
export {
|
|
127
|
-
|
|
130
|
+
B as ArcgisExploratoryAnalysis
|
|
128
131
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as T } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { watch as
|
|
6
|
-
import { a as
|
|
7
|
-
import { g as
|
|
3
|
+
import { css as y, html as c } from "lit";
|
|
4
|
+
import { LitElement as $ } from "@arcgis/lumina";
|
|
5
|
+
import { watch as x, when as k } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
|
+
import { a as d } from "../../chunks/maybe.js";
|
|
7
|
+
import { g as f, c as v, t as m } from "../../chunks/async-utils.js";
|
|
8
8
|
import { throttle as g } from "es-toolkit/function";
|
|
9
9
|
import I from "@arcgis/core/popup/content/MediaContent.js";
|
|
10
10
|
import w from "@arcgis/core/popup/content/FieldsContent.js";
|
|
11
11
|
import L from "@arcgis/core/popup/content/TextContent.js";
|
|
12
12
|
import { compileExpression as E } from "@arcgis/core/applications/Components/arcadeFeatureUtils.js";
|
|
13
|
-
import { b
|
|
14
|
-
const
|
|
15
|
-
class C extends
|
|
13
|
+
import { b } from "../../chunks/feature-utils.js";
|
|
14
|
+
const A = y`.loading-container{display:flex;justify-content:center;padding:var(--calcite-space-md) 0;width:100%}`, _ = 1;
|
|
15
|
+
class C extends $ {
|
|
16
16
|
constructor() {
|
|
17
|
-
super(...arguments), this._compileThrottled = g(this._startCompile,
|
|
17
|
+
super(...arguments), this._compileThrottled = g(this._startCompile, f(_)), this._evaluateThrottled = g(this._startEvaluate, f(_)), this.headingLevel = 2;
|
|
18
18
|
}
|
|
19
19
|
static {
|
|
20
|
-
this.properties = { _compileTask: 16, _evaluateTask: 16, values: 0, fieldInfoMap: 0, expressionInfo: 0, expressionInfos: 0, layer: 0, graphic: 0, headingLevel: 9, interceptor: 0, location: 0, messages: 0, spatialReference: 0, map: 0, view: 0 };
|
|
20
|
+
this.properties = { _compileTask: 16, _evaluateTask: 16, values: 0, formattedValues: 0, fieldInfoMap: 0, expressionInfo: 0, expressionInfos: 0, layer: 0, popupTemplate: 0, graphic: 0, headingLevel: 9, interceptor: 0, location: 0, messages: 0, spatialReference: 0, map: 0, view: 0 };
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
|
-
this.styles =
|
|
23
|
+
this.styles = A;
|
|
24
24
|
}
|
|
25
25
|
loaded() {
|
|
26
26
|
this.manager.onLifecycle(() => [
|
|
27
|
-
|
|
27
|
+
x(() => [this.expressionInfo, this.graphic], () => this._compileThrottled(), { initial: !0 }),
|
|
28
28
|
k(() => {
|
|
29
29
|
if (!this._compileTask?.finished)
|
|
30
30
|
return null;
|
|
@@ -48,72 +48,72 @@ class C extends y {
|
|
|
48
48
|
this._compileThrottled.cancel(), this._evaluateThrottled.cancel();
|
|
49
49
|
}
|
|
50
50
|
_startCompile() {
|
|
51
|
-
this._evaluateTask =
|
|
51
|
+
this._evaluateTask = d(this._evaluateTask), this._compileTask = d(this._compileTask), this._compileTask = v(async (t) => {
|
|
52
52
|
const { expressionInfo: s, graphic: e } = this, a = s?.expression;
|
|
53
53
|
if (!a || !e)
|
|
54
54
|
return null;
|
|
55
|
-
const
|
|
55
|
+
const o = await E({
|
|
56
56
|
expression: a,
|
|
57
57
|
graphic: e
|
|
58
58
|
});
|
|
59
|
-
return
|
|
59
|
+
return m(t), o;
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
_startEvaluate(t) {
|
|
63
|
-
this._evaluateTask =
|
|
63
|
+
this._evaluateTask = d(this._evaluateTask), this._evaluateTask = v(async (s) => {
|
|
64
64
|
const { graphic: e } = this;
|
|
65
65
|
if (!t || !e)
|
|
66
66
|
return null;
|
|
67
|
-
const { interceptor: a, spatialReference:
|
|
67
|
+
const { interceptor: a, spatialReference: o, map: h, location: l, view: n } = this, i = await t.evaluate({
|
|
68
68
|
graphic: e,
|
|
69
69
|
interceptor: a,
|
|
70
|
-
location:
|
|
71
|
-
map:
|
|
70
|
+
location: l,
|
|
71
|
+
map: h,
|
|
72
72
|
options: { signal: s },
|
|
73
|
-
spatialReference:
|
|
74
|
-
view:
|
|
73
|
+
spatialReference: o,
|
|
74
|
+
view: n
|
|
75
75
|
});
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
if (!
|
|
76
|
+
m(s);
|
|
77
|
+
const r = i && "castAsJsonAsync" in i && typeof i.castAsJsonAsync == "function" ? i : null;
|
|
78
|
+
if (!r)
|
|
79
79
|
return null;
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
const
|
|
83
|
-
return
|
|
80
|
+
const p = await r.castAsJsonAsync(s);
|
|
81
|
+
m(s);
|
|
82
|
+
const u = p?.type;
|
|
83
|
+
return u === "media" ? I.fromJSON(p) : u === "text" ? L.fromJSON(p) : u === "fields" ? w.fromJSON(p) : null;
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
87
|
const t = !this._compileTask?.finished || !this._evaluateTask?.finished;
|
|
88
|
-
return
|
|
88
|
+
return c`<div class="root">${t ? this._renderLoading() : this._evaluateTask?.value ? this._renderContent() : null}</div>`;
|
|
89
89
|
}
|
|
90
90
|
_renderContent() {
|
|
91
|
-
const { values: t,
|
|
92
|
-
if (!
|
|
91
|
+
const { values: t, formattedValues: s, fieldInfoMap: e } = this, a = this._evaluateTask?.value, o = a?.type, h = { ...t, ...a?.attributes }, l = { ...s ?? t, ...a?.attributes };
|
|
92
|
+
if (!o)
|
|
93
93
|
return null;
|
|
94
|
-
if (
|
|
95
|
-
const { text:
|
|
96
|
-
if (!
|
|
94
|
+
if (o === "text") {
|
|
95
|
+
const { text: n } = a;
|
|
96
|
+
if (!n)
|
|
97
97
|
return null;
|
|
98
|
-
const
|
|
99
|
-
values:
|
|
100
|
-
fieldInfoMap:
|
|
101
|
-
globalValues:
|
|
98
|
+
const i = b({
|
|
99
|
+
values: l,
|
|
100
|
+
fieldInfoMap: e ?? /* @__PURE__ */ new Map(),
|
|
101
|
+
globalValues: l,
|
|
102
102
|
layer: void 0,
|
|
103
|
-
text:
|
|
103
|
+
text: n
|
|
104
104
|
});
|
|
105
|
-
return
|
|
106
|
-
} else if (
|
|
107
|
-
const { title:
|
|
108
|
-
return !
|
|
109
|
-
} else if (
|
|
110
|
-
const { title:
|
|
111
|
-
return !
|
|
105
|
+
return c`<arcgis-feature-content .creator=${i} .graphic=${this.graphic}></arcgis-feature-content>`;
|
|
106
|
+
} else if (o === "media") {
|
|
107
|
+
const { title: n, description: i, mediaInfos: r } = a;
|
|
108
|
+
return !r?.length && !n && !i ? null : c`<arcgis-feature-media .heading=${n ?? ""} .values=${h} .formattedValues=${l} .layer=${this.layer} .graphic=${this.graphic} .popupTemplate=${this.popupTemplate} .fieldInfoMap=${e} .description=${i ?? ""} .mediaInfos=${r ?? []} .messages=${this.messages} .headingLevel=${this.headingLevel}></arcgis-feature-media>`;
|
|
109
|
+
} else if (o === "fields") {
|
|
110
|
+
const { title: n, description: i, fieldInfos: r } = a;
|
|
111
|
+
return !r?.length && !n && !i ? null : c`<arcgis-feature-fields .fieldInfos=${r ?? []} .heading=${n ?? ""} .values=${l} .graphic=${this.graphic} .layer=${this.layer} .isContentFieldInfos=${!!r} .description=${i ?? ""} .headingLevel=${this.headingLevel} .messages=${this.messages} .expressionInfos=${this.expressionInfos}></arcgis-feature-fields>`;
|
|
112
112
|
}
|
|
113
113
|
return null;
|
|
114
114
|
}
|
|
115
115
|
_renderLoading() {
|
|
116
|
-
return
|
|
116
|
+
return c`<div class="loading-container"><calcite-loader inline label></calcite-loader></div>`;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
T("arcgis-feature-expression", C);
|
|
@@ -7,8 +7,8 @@ import { classes as M } from "@arcgis/toolkit/dom";
|
|
|
7
7
|
import { usePropertyChange as C } from "@arcgis/lumina/controllers";
|
|
8
8
|
import { m as x } from "../../chunks/useViewModel.js";
|
|
9
9
|
import { LitElement as b, createEvent as F, nothing as _, safeClassMap as L } from "@arcgis/lumina";
|
|
10
|
-
import { substitute as
|
|
11
|
-
import { renderingSanitizer as
|
|
10
|
+
import { substitute as T } from "@arcgis/core/intl.js";
|
|
11
|
+
import { renderingSanitizer as A } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
12
12
|
import { c as D, g as E, d as R, e as V, b as d, i as k, f as B } from "../../chunks/feature-utils.js";
|
|
13
13
|
import N from "@arcgis/core/core/Collection.js";
|
|
14
14
|
import { watch as P } from "@arcgis/core/core/reactiveUtils.js";
|
|
@@ -180,7 +180,7 @@ class G extends b {
|
|
|
180
180
|
}
|
|
181
181
|
_renderExpression(e, t) {
|
|
182
182
|
const i = this.viewModel.formattedAttributes, { fieldInfoMap: a, popupTemplate: s, sourceLayer: o } = this, n = s?.expressionInfos;
|
|
183
|
-
return r`<arcgis-feature-expression .expressionInfo=${e.expressionInfo} .expressionInfos=${n ?? void 0} .map=${this.map ?? void 0} .spatialReference=${this.spatialReference ?? void 0} .view=${this.viewModel.view ?? void 0} .graphic=${this.graphic ?? void 0} .layer=${o} .location=${this.location ?? void 0} .headingLevel=${this.headingLevel} class="content-element" .interceptor=${this.viewModel.interceptor} .messages=${this.messages} .fieldInfoMap=${a} .values=${{
|
|
183
|
+
return r`<arcgis-feature-expression .expressionInfo=${e.expressionInfo} .expressionInfos=${n ?? void 0} .popupTemplate=${s ?? void 0} .map=${this.map ?? void 0} .spatialReference=${this.spatialReference ?? void 0} .view=${this.viewModel.view ?? void 0} .graphic=${this.graphic ?? void 0} .layer=${o} .location=${this.location ?? void 0} .headingLevel=${this.headingLevel} class="content-element" .interceptor=${this.viewModel.interceptor} .messages=${this.messages} .fieldInfoMap=${a} .values=${this.values} .formattedValues=${{
|
|
184
184
|
...i?.global,
|
|
185
185
|
...i?.content?.[t]
|
|
186
186
|
}}></arcgis-feature-expression>`;
|
|
@@ -262,7 +262,7 @@ class G extends b {
|
|
|
262
262
|
}
|
|
263
263
|
_renderContentContainer() {
|
|
264
264
|
const { flowItems: e, hideContent: t, internalFlowItems: i, headingLevel: a, _loading: s, messages: o, heading: n, hideHeading: l } = this, c = t ? null : r`<div class="main">${[this._renderContent(), this._renderLastEditInfo()]}</div>`, h = o.returnToInitialFeature ?? "";
|
|
265
|
-
return e ? c : r`<calcite-flow ${w(this._storeRootFlowNode)}><calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} .loading=${s} .headingLevel=${a} .heading=${l ? void 0 : H(n)} .selected=${!i.length}>${!l && n ? r`<div slot=heading><div .innerHTML=${
|
|
265
|
+
return e ? c : r`<calcite-flow ${w(this._storeRootFlowNode)}><calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} .loading=${s} .headingLevel=${a} .heading=${l ? void 0 : H(n)} .selected=${!i.length}>${!l && n ? r`<div slot=heading><div .innerHTML=${A.sanitize(n ?? "") ?? ""}></div></div>` : null}${c}</calcite-flow-item>${i.toArray().map((p, u) => r`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} @calciteFlowItemBack=${(f) => {
|
|
266
266
|
f.preventDefault(), this._handleDrillInBackClick();
|
|
267
267
|
}} .loading=${s} .headingLevel=${a} .selected=${u === i.length - 1}><calcite-action icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${h} title=${h ?? _}></calcite-action>${p}</calcite-flow-item>`)}</calcite-flow>`;
|
|
268
268
|
}
|
|
@@ -270,7 +270,7 @@ class G extends b {
|
|
|
270
270
|
const { hideLastEditedInfo: e, messages: t } = this, { lastEditInfo: i } = this.viewModel;
|
|
271
271
|
if (!i || e)
|
|
272
272
|
return null;
|
|
273
|
-
const { date: a, user: s } = i, o = i.type === "edit" ? s ? t.lastEditedByUser : t.lastEdited : s ? t.lastCreatedByUser : t.lastCreated, n =
|
|
273
|
+
const { date: a, user: s } = i, o = i.type === "edit" ? s ? t.lastEditedByUser : t.lastEdited : s ? t.lastCreatedByUser : t.lastCreated, n = T(o ?? "", {
|
|
274
274
|
date: a,
|
|
275
275
|
user: s
|
|
276
276
|
});
|
|
@@ -37,6 +37,7 @@ import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.j
|
|
|
37
37
|
* > **Keyboard Navigation**
|
|
38
38
|
* >
|
|
39
39
|
* > - The Layer List supports keyboard navigation using the [Treegrid Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/treegrid/) for improved accessibility. Refer to the Calcite List component documentation for detailed keyboard interaction guidelines: [Calcite List Keyboard Navigation](https://developers.arcgis.com/calcite-design-system/components/list/#keyboard-navigation).
|
|
40
|
+
* > - When `selectionMode` is `multiple`, use Ctrl or Cmd to toggle individual items and Shift to select a range. Selecting an item without a modifier replaces the current selection.
|
|
40
41
|
*
|
|
41
42
|
* @since 5.1
|
|
42
43
|
* @beta
|