@arcgis/map-components 6.0.0-next.34 → 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/{VXPGE37T.js → BABV4TXK.js} +1 -1
- package/dist/cdn/{2JXK3AW7.js → BCHHB4QH.js} +1 -1
- 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/{QCZQCLAT.js → LZN3NDWX.js} +1 -1
- package/dist/cdn/{2AMSAAH4.js → ODCD75PC.js} +1 -1
- 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/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-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 +1 -1
- 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-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-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 +1 -1
- package/dist/types/lumina.d.ts +6 -6
- package/dist/types/preact.d.ts +6 -6
- package/dist/types/react.d.ts +6 -6
- package/dist/types/stencil.d.ts +6 -6
- package/package.json +7 -7
- package/dist/cdn/LNTE4FDB.js +0 -2
- package/dist/cdn/TEPHXOQ2.js +0 -2
- package/dist/cdn/XCDMOCWN.js +0 -2
- /package/dist/cdn/{WFTJ4E4F.js → A6ANFEOT.js} +0 -0
|
@@ -130,10 +130,10 @@ r = o([
|
|
|
130
130
|
const I = z(r);
|
|
131
131
|
class Z extends b {
|
|
132
132
|
constructor() {
|
|
133
|
-
super(...arguments), this.viewModel = I(this), this.
|
|
133
|
+
super(...arguments), this.viewModel = I(this), this.view = this.viewModel.view, this.analysis = this.viewModel.analysis, this.autoDestroyDisabled = !1, this.hideStartButton = !1, this.hideResetUnitsButton = !1, this.hideUnitSelect = !1, this.hideVisualization = this.viewModel.hideVisualization, this.icon = "measure-line", this.interactionDisabled = this.viewModel.interactionDisabled, this.messages = k({ name: "distance-measurement-2d", blocking: !0 }), this.snappingOptions = this.viewModel.snappingOptions, this.state = this.viewModel.state, this.unit = this.viewModel.unit, this.unitOptions = this.viewModel.unitOptions, this.arcgisPropertyChange = U()("analysis", "interactionDisabled", "state"), this.arcgisReady = x();
|
|
134
134
|
}
|
|
135
135
|
static {
|
|
136
|
-
this.properties = { view: 0, analysis: 0, autoDestroyDisabled: 5, hideStartButton: 5, hideResetUnitsButton: 5, hideUnitSelect: 5, hideVisualization: 5, icon: 3, interactionDisabled: 5, label: 1, messageOverrides: 0, referenceElement: 1, snappingOptions: 0, state: 32, unit: 1, unitOptions: 0 };
|
|
136
|
+
this.properties = { view: 0, analysis: 0, autoDestroyDisabled: 5, hideStartButton: 5, hideResetUnitsButton: 5, hideUnitSelect: 5, hideVisualization: 5, icon: 3, interactionDisabled: 5, label: 1, messageOverrides: 0, messages: 0, referenceElement: 1, snappingOptions: 0, state: 32, unit: 1, unitOptions: 0 };
|
|
137
137
|
}
|
|
138
138
|
static {
|
|
139
139
|
this.styles = L;
|
|
@@ -9,10 +9,10 @@ import type Collection from "@arcgis/core/core/Collection.js";
|
|
|
9
9
|
import type ElevationProfileGroup from "@arcgis/core/analysis/ElevationProfile/ElevationProfileGroup.js";
|
|
10
10
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
11
11
|
import type { ArcgisReferenceElement } from "../types.js";
|
|
12
|
-
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
13
12
|
import type { ElevationProfileEffectiveDisplayUnits } from "@arcgis/core/views/analysis/ElevationProfile/types.js";
|
|
14
13
|
import type { Icon as Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
15
14
|
import type { ElevationInfoMode } from "@arcgis/core/symbols/support/types.js";
|
|
15
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
16
16
|
import type { ElevationProfileLineUnion } from "@arcgis/core/analysis/ElevationProfile/types.js";
|
|
17
17
|
import type { SystemOrLengthUnit } from "@arcgis/core/core/units.js";
|
|
18
18
|
|
|
@@ -67,7 +67,7 @@ import type { SystemOrLengthUnit } from "@arcgis/core/core/units.js";
|
|
|
67
67
|
*/
|
|
68
68
|
export abstract class ArcgisElevationProfile extends LitElement {
|
|
69
69
|
/** @internal */
|
|
70
|
-
|
|
70
|
+
accessor _messages: Partial<{
|
|
71
71
|
reset: string;
|
|
72
72
|
cancelButtonLabel: string;
|
|
73
73
|
chartTooltip: string;
|
|
@@ -363,10 +363,10 @@ function b(t) {
|
|
|
363
363
|
const J = V(r);
|
|
364
364
|
class K extends B {
|
|
365
365
|
constructor() {
|
|
366
|
-
super(...arguments), this.viewModel = J(this), this._chartInitializationTask = M(void 0), this.
|
|
366
|
+
super(...arguments), this.viewModel = J(this), this._chartInitializationTask = M(void 0), this._hideZoomOutButton = !0, this._hasSettingsStartContent = !1, this._hasSettingsEndContent = !1, this.analysis = this.viewModel.analysis, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.effectiveDisplayUnits = this.viewModel.effectiveDisplayUnits, this.feature = this.viewModel.feature, this.hideChart = !1, this.hideChartGridLines = !1, this.hideChartAxisLabels = !1, this.hideClearButton = !1, this.hideLegend = !1, this.hideSelectButton = !1, this.hideSettingsButton = !1, this.hideResetUnitsButton = !1, this.hideStartButton = !1, this.hideUniformChartScalingToggle = !1, this.hideDistanceDisplayUnitSelect = !1, this.hideElevationDisplayUnitSelect = !1, this.hideVisualization = this.viewModel.hideVisualization, this.highlightDisabled = this.viewModel.highlightDisabled, this.icon = "altitude", this.indicatorRelativePosition = this.viewModel.indicatorRelativePosition, this.interactionDisabled = this.viewModel.interactionDisabled, this.geometry = this.viewModel.geometry, this.elevationInfo = this.viewModel.elevationInfo, this._messages = $(), this.profiles = this.viewModel.profiles, this.progress = this.viewModel.progress, this.state = this.viewModel.state, this.uniformChartScaling = this.viewModel.uniformChartScaling, this.distanceUnit = this.viewModel.distanceUnit, this.distanceUnitOptions = this.viewModel.distanceUnitOptions, this.elevationUnit = this.viewModel.elevationUnit, this.elevationUnitOptions = this.viewModel.elevationUnitOptions, this.arcgisPropertyChange = D()("analysis", "effectiveDisplayUnits", "elevationInfo", "feature", "geometry", "indicatorRelativePosition", "interactionDisabled", "progress", "state"), this.arcgisReady = O();
|
|
367
367
|
}
|
|
368
368
|
static {
|
|
369
|
-
this.properties = {
|
|
369
|
+
this.properties = { _hideZoomOutButton: 16, _chartContainer: 16, _hasSettingsStartContent: 16, _hasSettingsEndContent: 16, analysis: 0, view: 0, autoDestroyDisabled: 5, effectiveDisplayUnits: 32, feature: 0, hideChart: 5, hideChartGridLines: 5, hideChartAxisLabels: 5, hideClearButton: 5, hideLegend: 5, hideSelectButton: 5, hideSettingsButton: 5, hideResetUnitsButton: 5, hideStartButton: 5, hideUniformChartScalingToggle: 5, hideDistanceDisplayUnitSelect: 5, hideElevationDisplayUnitSelect: 5, hideVisualization: 5, highlightDisabled: 5, icon: 3, indicatorRelativePosition: 40, interactionDisabled: 5, geometry: 0, elevationInfo: 0, label: 1, messageOverrides: 0, _messages: 0, referenceElement: 1, profiles: 0, progress: 40, state: 32, uniformChartScaling: 5, distanceUnit: 1, distanceUnitOptions: 0, elevationUnit: 1, elevationUnitOptions: 0 };
|
|
370
370
|
}
|
|
371
371
|
static {
|
|
372
372
|
this.styles = I;
|
|
@@ -222,7 +222,7 @@ class A extends H {
|
|
|
222
222
|
}
|
|
223
223
|
_renderToggleButton() {
|
|
224
224
|
const { expanded: e, expandTitle: t, expandIcon: a, collapseIcon: s } = this, n = e ? s : a;
|
|
225
|
-
return l`<calcite-action class=${v(f("action", "icon", { "icon-flip": n === w || n === b }))} @click=${this.toggle} .text=${t} title=${t ?? P} .icon=${n} .scale=${this.visualScale} ${m(this.toggleActionEl)}></calcite-action>`;
|
|
225
|
+
return l`<calcite-action class=${v(f("action", "icon", { "icon-flip": n === w || n === b }))} @click=${this.toggle} .text=${t} title=${t ?? P} .aria=${{ expanded: e }} .icon=${n} .scale=${this.visualScale} ${m(this.toggleActionEl)}></calcite-action>`;
|
|
226
226
|
}
|
|
227
227
|
_renderToggle() {
|
|
228
228
|
return l`<div class="toggle">${this._renderToggleButton()}${this._renderBadgeNumber()}</div>`;
|
|
@@ -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
|
});
|
|
@@ -27,6 +27,9 @@ import type { Icon as Icon } from "@esri/calcite-components/components/calcite-i
|
|
|
27
27
|
* define the date, time range, and UTC offset used to compute the analysis overlay. They do not change the lighting in
|
|
28
28
|
* the scene. To control scene lighting, use the [arcgis-daylight](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-daylight/) component.
|
|
29
29
|
*
|
|
30
|
+
* The visualization is hidden when the selected time range includes nighttime at the current camera location.
|
|
31
|
+
* When that happens, we display a notice indicating that the visualization is not available.
|
|
32
|
+
*
|
|
30
33
|
* The [utcOffset](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-shadow-cast/#utcOffset) property specifies a numeric offset from Coordinated Universal
|
|
31
34
|
* Time (UTC) used to interpret the selected date and time range. A UTC offset does not identify a regional time zone,
|
|
32
35
|
* such as `Europe/Zurich`, or automatically account for daylight saving time.
|
|
@@ -58,8 +61,9 @@ import type { Icon as Icon } from "@esri/calcite-components/components/calcite-i
|
|
|
58
61
|
* * Shadow Cast is only supported in a 3D [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/) component.
|
|
59
62
|
* * Terrain does not cast shadows in this analysis.
|
|
60
63
|
* * As a result, shadow duration may be underestimated and sunlight duration may be overestimated in areas where terrain
|
|
61
|
-
* would normally block sunlight.
|
|
62
|
-
*
|
|
64
|
+
* would normally block sunlight.
|
|
65
|
+
* * The time range must fit within one continuous daylight period at the current camera location.
|
|
66
|
+
* The visualization is also hidden when no daylight is expected or the analysis settings cannot be resolved.
|
|
63
67
|
* * When [utcOffset](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-shadow-cast/#utcOffset) is not specified, the component estimates the UTC offset from
|
|
64
68
|
* the camera's longitude. It does not determine the regional time zone at the camera's location. If the estimated offset
|
|
65
69
|
* is not appropriate for the analysis date and location, users can set it manually using the UTC offset selector.
|
|
@@ -339,6 +343,10 @@ export abstract class ArcgisShadowCast extends LitElement {
|
|
|
339
343
|
protected messages: Partial<{
|
|
340
344
|
componentLabel: string;
|
|
341
345
|
dateLabel: string;
|
|
346
|
+
outsideDaylight: string;
|
|
347
|
+
splitDaylight: string;
|
|
348
|
+
noDaylight: string;
|
|
349
|
+
visualizationUnavailable: string;
|
|
342
350
|
discrete: {
|
|
343
351
|
optionLabel: string;
|
|
344
352
|
colorLabel: string;
|
|
@@ -388,6 +396,10 @@ export abstract class ArcgisShadowCast extends LitElement {
|
|
|
388
396
|
}> & T9nMeta<{
|
|
389
397
|
componentLabel: string;
|
|
390
398
|
dateLabel: string;
|
|
399
|
+
outsideDaylight: string;
|
|
400
|
+
splitDaylight: string;
|
|
401
|
+
noDaylight: string;
|
|
402
|
+
visualizationUnavailable: string;
|
|
391
403
|
discrete: {
|
|
392
404
|
optionLabel: string;
|
|
393
405
|
colorLabel: string;
|