@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
|
@@ -3,64 +3,65 @@ import { c as O } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { html as n } from "lit";
|
|
4
4
|
import { repeat as A } from "lit/directives/repeat.js";
|
|
5
5
|
import { keyed as I } from "lit/directives/keyed.js";
|
|
6
|
-
import { createReactiveMap as
|
|
7
|
-
import
|
|
6
|
+
import { createReactiveMap as F } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
7
|
+
import y from "@arcgis/core/core/Collection.js";
|
|
8
8
|
import { on as L, watch as R } from "@arcgis/core/core/reactiveUtils.js";
|
|
9
9
|
import N from "@arcgis/core/layerList/CatalogLayerListModel.js";
|
|
10
10
|
import x from "@arcgis/core/layerList/Item.js";
|
|
11
|
-
import { LitElement as D, createEvent as d, renderElement as
|
|
11
|
+
import { LitElement as D, createEvent as d, renderElement as C, safeClassMap as b, nothing as M } from "@arcgis/lumina";
|
|
12
12
|
import { usePropertyChange as k } from "@arcgis/lumina/controllers";
|
|
13
13
|
import { reEmitEvent as B } from "@arcgis/lumina-toolkit/reEmitEvent";
|
|
14
14
|
import { classes as S } from "@arcgis/toolkit/dom";
|
|
15
15
|
import { generateGuid as G } from "@arcgis/toolkit/string";
|
|
16
|
-
import { createRef as H, ref as
|
|
17
|
-
import { u as U } from "../../chunks/
|
|
18
|
-
import {
|
|
16
|
+
import { createRef as H, ref as f } from "lit/directives/ref.js";
|
|
17
|
+
import { u as U, s as V, a as j } from "../../chunks/layer-list-next.js";
|
|
18
|
+
import { u as q } from "../../chunks/useT9n.js";
|
|
19
|
+
import { m as z } from "../../chunks/useViewModel.js";
|
|
19
20
|
import { s as v } from "../../chunks/component-utils.js";
|
|
20
|
-
import { g as
|
|
21
|
-
import { g as
|
|
22
|
-
import { ArcgisLayerListItem as
|
|
23
|
-
import {
|
|
24
|
-
|
|
25
|
-
const m = X, Y = (p) => {
|
|
21
|
+
import { g as u } from "../../chunks/globalCss.js";
|
|
22
|
+
import { g as _, b as J, r as K, s as Q, e as W } from "../../chunks/layer-list-utils.js";
|
|
23
|
+
import { ArcgisLayerListItem as X } from "../arcgis-layer-list-next/layer-list-item/customElement.js";
|
|
24
|
+
import { c as Y } from "../../chunks/css.js";
|
|
25
|
+
const m = Y, Z = (p) => {
|
|
26
26
|
const e = p?.type;
|
|
27
27
|
return e === "knowledge-graph" || e === "map-image" || e === "tile";
|
|
28
|
-
},
|
|
29
|
-
class
|
|
28
|
+
}, ee = (p) => p?.type === "catalog", T = "nested", te = y.ofType(x), se = z(N);
|
|
29
|
+
class ie extends D {
|
|
30
30
|
constructor() {
|
|
31
|
-
super(...arguments), this.#l = `operational-${G()}`, this.#e = null, this.#o = H(), this.#i = !1, this.#t = !1, this.messages =
|
|
31
|
+
super(...arguments), this.#l = U(this), this.#r = `operational-${G()}`, this.#e = null, this.#o = H(), this.#i = !1, this.#t = !1, this.messages = q(), this.#n = () => {
|
|
32
32
|
this._activeItem = null;
|
|
33
|
-
}, this.#
|
|
33
|
+
}, this.#c = (e) => {
|
|
34
34
|
if (this.visibilityAppearance !== "default")
|
|
35
35
|
return;
|
|
36
36
|
const t = Array.from(e.composedPath()).find((s) => s.classList?.contains(m.item));
|
|
37
|
-
this._activeItem =
|
|
38
|
-
}, this.#a =
|
|
39
|
-
e && this.#b(e);
|
|
40
|
-
}, this.#c = (e) => {
|
|
41
|
-
e && this.#L(e);
|
|
42
|
-
}, this.#d = (e) => {
|
|
37
|
+
this._activeItem = _(t);
|
|
38
|
+
}, this.#a = F(), this.#s = F(), this.#h = (e) => {
|
|
43
39
|
e && this.#v(e);
|
|
44
|
-
}, this
|
|
40
|
+
}, this.#d = (e) => {
|
|
41
|
+
e && this.#b(e);
|
|
42
|
+
}, this.#m = (e) => {
|
|
43
|
+
e && this.#$(e);
|
|
44
|
+
}, this.viewModel = se(this), this._activeItem = null, this._focusRootFlowItem = !1, this._focusPanelFlowItem = !1, this._focusLayerFlowItem = null, this.layerTablesEnabled = new y(["knowledge-graph"]), this.mapImageOptions = null, this.tileOptions = null, this.autoDestroyDisabled = !1, this.closed = !1, this.collapsed = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.hideCatalogLayerList = !1, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.hideStatusIndicators = !1, this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.listModeDisabled = this.viewModel.listModeDisabled, this.minFilterItems = J, this.openedLayerLists = new y(), this.openedLayers = new y(), this.selectedItems = new te(), this.selectionMode = "none", this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.showFilter = !1, this.showHeading = !1, this.showTemporaryLayerIndicators = !1, this.state = this.viewModel.state, this.topLayerDisabled = !1, this.view = this.viewModel.view, this.visibilityAppearance = "default", this.arcgisCatalogItemsChange = d(), this.arcgisFilterChange = d(), this.arcgisOpenedLayersChange = d(), this.arcgisPropertyChange = k()("state"), this.arcgisReady = d(), this.arcgisSelectedItemsChange = d(), this.arcgisTriggerAction = B(() => this.viewModel, "trigger-action");
|
|
45
45
|
}
|
|
46
46
|
static {
|
|
47
47
|
this.properties = { _catalogLayerList: 16, _activeItem: 16, _focusRootFlowItem: 16, _focusPanelFlowItem: 16, _focusLayerFlowItem: 16, _totalItems: 16, _filterEnabled: 16, _visibleItems: 16, _openedPanelItems: 16, _renderedOpenLayerFlowItems: 16, layerTablesEnabled: 16, mapImageOptions: 16, tileOptions: 16, autoDestroyDisabled: 5, catalogItems: 0, catalogLayer: 0, catalogOptions: 0, closed: 5, collapsed: 5, filterPlaceholder: 1, filterPredicate: 0, filterText: 1, headingLevel: 9, hideCatalogLayerList: 5, hideNoFilterResultsNotice: 5, hideNoItemsNotice: 5, hideStatusIndicators: 5, knowledgeGraphOptions: 0, label: 1, listItemCreatedFunction: 0, listModeDisabled: 5, messageOverrides: 0, minFilterItems: 9, onCatalogOpen: 0, onTablesOpen: 0, openedLayerLists: 32, openedLayers: 32, referenceElement: 1, selectedItems: 0, selectionMode: 1, showCloseButton: 5, showCollapseButton: 5, showErrors: 5, showFilter: 5, showHeading: 5, showTemporaryLayerIndicators: 5, state: 32, topLayerDisabled: 5, view: 0, visibilityAppearance: 1 };
|
|
48
48
|
}
|
|
49
49
|
static {
|
|
50
|
-
this.styles = [
|
|
50
|
+
this.styles = [V, j];
|
|
51
51
|
}
|
|
52
52
|
#l;
|
|
53
|
+
#r;
|
|
53
54
|
#e;
|
|
54
55
|
#o;
|
|
55
56
|
#i;
|
|
56
57
|
#t;
|
|
57
|
-
#r;
|
|
58
58
|
#n;
|
|
59
|
+
#c;
|
|
59
60
|
#a;
|
|
60
61
|
#s;
|
|
61
62
|
#h;
|
|
62
|
-
#c;
|
|
63
63
|
#d;
|
|
64
|
+
#m;
|
|
64
65
|
get _totalItems() {
|
|
65
66
|
return this.catalogItems?.flatten((e) => e.children.filter((t) => t.layer?.type !== "catalog-dynamic-group")).length ?? 0;
|
|
66
67
|
}
|
|
@@ -75,7 +76,7 @@ class se extends D {
|
|
|
75
76
|
}
|
|
76
77
|
get _renderedOpenLayerFlowItems() {
|
|
77
78
|
const { openedLayers: e } = this;
|
|
78
|
-
return e.toArray().map((t, s) => this.#
|
|
79
|
+
return e.toArray().map((t, s) => this.#x(t, s === e.length - 1));
|
|
79
80
|
}
|
|
80
81
|
get catalogItems() {
|
|
81
82
|
return this.viewModel.catalogItems;
|
|
@@ -95,61 +96,61 @@ class se extends D {
|
|
|
95
96
|
loaded() {
|
|
96
97
|
this.manager.onLifecycle(() => [
|
|
97
98
|
L(() => this.openedLayers, "change", () => {
|
|
98
|
-
this.#
|
|
99
|
+
this.#I();
|
|
99
100
|
}),
|
|
100
101
|
L(() => this.viewModel.catalogItems, "change", () => {
|
|
101
|
-
|
|
102
|
+
K(this.selectedItems), this.arcgisCatalogItemsChange.emit();
|
|
102
103
|
}),
|
|
103
104
|
L(() => this.selectedItems, "change", () => this.arcgisSelectedItemsChange.emit()),
|
|
104
|
-
R(() => [this.filterPredicate, this.#o.value], () =>
|
|
105
|
+
R(() => [this.filterPredicate, this.#o.value], () => Q(this.#o.value, this.filterPredicate))
|
|
105
106
|
]);
|
|
106
107
|
}
|
|
107
108
|
disconnectedCallback() {
|
|
108
109
|
super.disconnectedCallback(), this.#e?.abort(), this.#e = null, !this.autoDestroyDisabled && !this.#t && !this.#i && this.destroy();
|
|
109
110
|
}
|
|
110
|
-
#
|
|
111
|
+
#y(e, t) {
|
|
111
112
|
return this.viewModel.triggerAction(e, t);
|
|
112
113
|
}
|
|
113
|
-
async #
|
|
114
|
+
async #w(e, t) {
|
|
114
115
|
const s = this.#s.get(e);
|
|
115
116
|
if (s)
|
|
116
117
|
return s;
|
|
117
|
-
const a = e.type === "catalog" ? await this
|
|
118
|
+
const a = e.type === "catalog" ? await this.#F(e) : await this.#M(e);
|
|
118
119
|
return t.aborted || !this.isConnected || this.#t ? (a?.destroy?.(), a) : (t.aborted || this.#s.set(e, a), a);
|
|
119
120
|
}
|
|
120
|
-
async #
|
|
121
|
+
async #I() {
|
|
121
122
|
if (!this.isConnected || this.#t)
|
|
122
123
|
return;
|
|
123
124
|
const { openedLayers: e, openedLayerLists: t } = this;
|
|
124
125
|
this.#e?.abort();
|
|
125
126
|
const s = new AbortController(), { signal: a } = s;
|
|
126
|
-
this.#e = s, this.#s.forEach((r,
|
|
127
|
-
e.includes(
|
|
127
|
+
this.#e = s, this.#s.forEach((r, c) => {
|
|
128
|
+
e.includes(c) || (r?.destroy?.(), this.#s.delete(c));
|
|
128
129
|
});
|
|
129
|
-
const o = await Promise.all(e.map((r) => this.#
|
|
130
|
+
const o = await Promise.all(e.map((r) => this.#w(r, a)));
|
|
130
131
|
if (a.aborted || !this.isConnected || this.#t)
|
|
131
132
|
return;
|
|
132
133
|
t.removeAll(), t.addMany(o);
|
|
133
134
|
const i = t.at(-1), l = i && "catalogLayer" in i ? i : void 0;
|
|
134
135
|
this._catalogLayerList !== l && (this._catalogLayerList = l), this.arcgisOpenedLayersChange.emit();
|
|
135
136
|
}
|
|
136
|
-
#
|
|
137
|
+
#L(e) {
|
|
137
138
|
e.open = !1, this._focusRootFlowItem = !0;
|
|
138
139
|
}
|
|
139
|
-
#
|
|
140
|
+
#b(e) {
|
|
140
141
|
this._focusRootFlowItem && (this._focusRootFlowItem = !1, v(e));
|
|
141
142
|
}
|
|
142
|
-
#
|
|
143
|
+
#v(e) {
|
|
143
144
|
this._focusPanelFlowItem && (this._focusPanelFlowItem = !1, v(e));
|
|
144
145
|
}
|
|
145
|
-
|
|
146
|
+
#$(e) {
|
|
146
147
|
this._focusLayerFlowItem === e.dataset.layerUid && (this._focusLayerFlowItem = null, v(e));
|
|
147
148
|
}
|
|
148
|
-
async
|
|
149
|
-
const { headingLevel: t, catalogOptions: s, view: a, referenceElement: o, filterPlaceholder: i, listItemCreatedFunction: l, minFilterItems: r, selectionMode:
|
|
150
|
-
return
|
|
149
|
+
async #F(e) {
|
|
150
|
+
const { headingLevel: t, catalogOptions: s, view: a, referenceElement: o, filterPlaceholder: i, listItemCreatedFunction: l, minFilterItems: r, selectionMode: c, visibilityAppearance: h } = this;
|
|
151
|
+
return C(n`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? i} .listItemCreatedFunction=${s?.listItemCreatedFunction ?? l} .minFilterItems=${s?.minFilterItems ?? r} .selectionMode=${s?.selectionMode ?? c} .visibilityAppearance=${s?.visibilityAppearance ?? h} .showErrors=${s?.showErrors ?? this.showErrors} .showFilter=${s?.showFilter ?? this.showFilter} .hideStatusIndicators=${s?.hideStatusIndicators ?? this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.showTemporaryLayerIndicators ?? this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${(g) => g.stopPropagation()} .catalogLayer=${e} .view=${a} .referenceElement=${o} @catalogOpen=${this.#g} @tablesOpen=${this.#p}></arcgis-catalog-layer-list-next>`);
|
|
151
152
|
}
|
|
152
|
-
#
|
|
153
|
+
#C(e) {
|
|
153
154
|
switch (e.type) {
|
|
154
155
|
case "knowledge-graph":
|
|
155
156
|
return { ...this.knowledgeGraphOptions, tables: e.tables };
|
|
@@ -167,95 +168,95 @@ class se extends D {
|
|
|
167
168
|
return null;
|
|
168
169
|
}
|
|
169
170
|
}
|
|
170
|
-
async #
|
|
171
|
-
const { headingLevel: t, selectionMode: s, referenceElement: a, view: o } = this, i = this.#
|
|
172
|
-
return
|
|
171
|
+
async #M(e) {
|
|
172
|
+
const { headingLevel: t, selectionMode: s, referenceElement: a, view: o } = this, i = this.#C(e);
|
|
173
|
+
return C(n`<arcgis-table-list-next .headingLevel=${i?.headingLevel ?? t} .selectionMode=${i?.selectionMode ?? s} .collapsed=${i?.collapsed} .filterPlaceholder=${i?.filterPlaceholder} .filterText=${i?.filterText} .label=${i?.label} .tables=${i?.tables} .view=${o} .referenceElement=${a} @arcgisReady=${(l) => l.stopPropagation()}></arcgis-table-list-next>`);
|
|
173
174
|
}
|
|
174
|
-
#
|
|
175
|
+
#p(e) {
|
|
175
176
|
if (this.onTablesOpen) {
|
|
176
177
|
this.onTablesOpen(e);
|
|
177
178
|
return;
|
|
178
179
|
}
|
|
179
180
|
const t = e.layer;
|
|
180
|
-
|
|
181
|
+
Z(t) && (this.openedLayers.push(t), this._focusLayerFlowItem = t.uid);
|
|
181
182
|
}
|
|
182
|
-
#
|
|
183
|
+
#g(e) {
|
|
183
184
|
if (this.onCatalogOpen) {
|
|
184
185
|
this.onCatalogOpen(e);
|
|
185
186
|
return;
|
|
186
187
|
}
|
|
187
188
|
const t = e.layer?.parent;
|
|
188
|
-
|
|
189
|
+
ee(t) && (this.openedLayers.push(t), this._focusLayerFlowItem = e.layer?.uid);
|
|
189
190
|
}
|
|
190
|
-
#
|
|
191
|
+
#_(e, t) {
|
|
191
192
|
t ? this.#a.set(e, t) : this.#a.delete(e);
|
|
192
193
|
}
|
|
193
|
-
#
|
|
194
|
-
this.#
|
|
194
|
+
#T(e, t) {
|
|
195
|
+
this.#y(e, t);
|
|
195
196
|
}
|
|
196
|
-
#
|
|
197
|
+
#P(e) {
|
|
197
198
|
const { selectionMode: t, selectedItems: s } = this;
|
|
198
199
|
if (t === "none")
|
|
199
200
|
return;
|
|
200
|
-
const a = e.target.selectedItems.map((o) =>
|
|
201
|
+
const a = e.target.selectedItems.map((o) => _(o)).filter(Boolean);
|
|
201
202
|
s.removeAll(), s.addMany(a);
|
|
202
203
|
}
|
|
203
204
|
render() {
|
|
204
205
|
const { state: e } = this, t = {
|
|
205
|
-
[
|
|
206
|
-
[
|
|
206
|
+
[u.hidden]: e === "loading",
|
|
207
|
+
[u.disabled]: e === "disabled"
|
|
207
208
|
};
|
|
208
|
-
return n`<div class=${b(S(
|
|
209
|
+
return n`<div class=${b(S(u.widget, u.panel, t))}>${this._visibleItems?.length ? this.#O() : null}${this.#N()}</div>`;
|
|
209
210
|
}
|
|
210
|
-
#
|
|
211
|
+
#E(e) {
|
|
211
212
|
const t = this.#a, s = this.messages;
|
|
212
213
|
return e?.layer ? n`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer.uid)} .topLayerDisabled=${this.topLayerDisabled}>${s.layerIncompatibleTooltip}</calcite-tooltip>` : null;
|
|
213
214
|
}
|
|
214
|
-
#
|
|
215
|
-
return e.incompatible ? this.#
|
|
215
|
+
#f(e) {
|
|
216
|
+
return e.incompatible ? this.#E(e) : e.children?.filter((t) => !t.hidden).toArray().map((t) => this.#f(t));
|
|
216
217
|
}
|
|
217
|
-
#
|
|
218
|
-
return this._visibleItems?.toArray().map((e) => this.#
|
|
218
|
+
#O() {
|
|
219
|
+
return this._visibleItems?.toArray().map((e) => this.#f(e));
|
|
219
220
|
}
|
|
220
|
-
#
|
|
221
|
+
#u() {
|
|
221
222
|
return n`<div slot=message>${this.messages.noItemsToDisplay}</div>`;
|
|
222
223
|
}
|
|
223
|
-
#O() {
|
|
224
|
-
return this.hideNoItemsNotice ? null : n`<div class=${b(m.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this.#f()}</calcite-notice></div>`;
|
|
225
|
-
}
|
|
226
224
|
#A() {
|
|
225
|
+
return this.hideNoItemsNotice ? null : n`<div class=${b(m.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this.#u()}</calcite-notice></div>`;
|
|
226
|
+
}
|
|
227
|
+
#R() {
|
|
227
228
|
const { _openedPanelItems: e, openedLayers: t } = this;
|
|
228
229
|
return A(e.toArray(), ({ uid: s }) => s, (s, a) => {
|
|
229
|
-
const { uid: o, title: i, panel: l } = s, r = () => this.#
|
|
230
|
-
return n`<calcite-flow-item .description=${i} .heading=${l.title} .headingLevel=${this.headingLevel} .selected=${!t.length && a === e.length - 1} @calciteFlowItemBack=${(
|
|
231
|
-
|
|
232
|
-
}} ${
|
|
230
|
+
const { uid: o, title: i, panel: l } = s, r = () => this.#L(l);
|
|
231
|
+
return n`<calcite-flow-item .description=${i} .heading=${l.title} .headingLevel=${this.headingLevel} .selected=${!t.length && a === e.length - 1} @calciteFlowItemBack=${(c) => {
|
|
232
|
+
c.preventDefault(), r();
|
|
233
|
+
}} ${f(this.#h)}><arcgis-layer-list-item-panel .item=${s} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent slot=footer-actions width=full @click=${r}>Back</calcite-button></calcite-flow-item>`;
|
|
233
234
|
});
|
|
234
235
|
}
|
|
235
|
-
#
|
|
236
|
-
const { collapsed: e, _visibleItems: t, _filterEnabled: s, showCloseButton: a, showCollapseButton: o, showHeading: i,
|
|
237
|
-
n`<calcite-flow-item .closable=${a} .closed=${this.closed} .collapsed=${e} .collapsible=${o} .heading=${i ?
|
|
236
|
+
#N() {
|
|
237
|
+
const { collapsed: e, _visibleItems: t, _filterEnabled: s, showCloseButton: a, showCollapseButton: o, showHeading: i, filterText: l, filterPlaceholder: r, openedLayers: c, _openedPanelItems: h } = this, g = this.#r, $ = this.label ?? this.messages.componentLabel ?? "", P = this.#l.selectionMode, E = [
|
|
238
|
+
n`<calcite-flow-item .closable=${a} .closed=${this.closed} .collapsed=${e} .collapsible=${o} .heading=${i ? $ : void 0} .headingLevel=${this.headingLevel} .selected=${!c.length && !h.length} @calciteFlowItemClose=${() => this.closed = !0} ${f(this.#d)}>${t?.length ? n`<calcite-list data-layer-type=${g ?? M} .displayMode=${T} .filterEnabled=${s} .filterPlaceholder=${r} .filterProps=${W} .filterText=${s ? l : ""} .group=${g} .label=${$} @focusin=${this.#c} @focusout=${this.#n} selection-appearance=border .selectionMode=${P} @calciteListChange=${this.#P} @calciteListFilter=${(w) => {
|
|
238
239
|
this.filterText = w.currentTarget?.filterText ?? "", this.arcgisFilterChange.emit();
|
|
239
|
-
}} @mouseleave=${this.#
|
|
240
|
-
this.#
|
|
240
|
+
}} @mouseleave=${this.#n} @mouseover=${this.#c} ${f(this.#o)}>${t.toArray().map((w) => this.#D(w))}${s && !this.hideNoFilterResultsNotice ? n`<div class=${b(m.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this.#u()}</calcite-notice></div>` : null}</calcite-list>` : this.#A()}</calcite-flow-item>`,
|
|
241
|
+
this.#R(),
|
|
241
242
|
this._renderedOpenLayerFlowItems
|
|
242
243
|
];
|
|
243
244
|
return this.closed ? null : I("root-flow", n`<calcite-flow>${E}</calcite-flow>`);
|
|
244
245
|
}
|
|
245
|
-
#
|
|
246
|
+
#x(e, t) {
|
|
246
247
|
const { openedLayers: s } = this, a = e.title || this.messages.untitledLayer;
|
|
247
|
-
return I(e.uid, n`<calcite-flow-item data-layer-uid=${e.uid ??
|
|
248
|
+
return I(e.uid, n`<calcite-flow-item data-layer-uid=${e.uid ?? M} .description=${a} .heading=${this.messages[e.type === "catalog" ? "catalogLayers" : "tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${(o) => {
|
|
248
249
|
o.preventDefault(), s.pop();
|
|
249
250
|
const i = s.at(-1);
|
|
250
251
|
i ? this._focusLayerFlowItem = i.uid : this._focusRootFlowItem = !0;
|
|
251
|
-
}} ${
|
|
252
|
+
}} ${f(this.#m)}>${this.#s.get(e)}</calcite-flow-item>`);
|
|
252
253
|
}
|
|
253
|
-
#
|
|
254
|
-
const { hideStatusIndicators: a, showCloseButton: o, showCollapseButton: i, showErrors: l, showFilter: r, showHeading:
|
|
255
|
-
return I(e.uid,
|
|
254
|
+
#D(e, t, s) {
|
|
255
|
+
const { hideStatusIndicators: a, showCloseButton: o, showCollapseButton: i, showErrors: l, showFilter: r, showHeading: c, showTemporaryLayerIndicators: h } = this;
|
|
256
|
+
return I(e.uid, X({ activeItem: this._activeItem ?? void 0, css: { ...m, itemCatalogIcon: m.itemActionIcon }, displayMode: T, dragEnabled: !1, item: e, layerTablesEnabled: this.layerTablesEnabled, listModeDisabled: this.viewModel.listModeDisabled, messages: this.messages, parent: t, parentTitles: s, rootGroupUid: this.#r, selectedItems: this.selectedItems, selectionMode: this.#l.selectionMode, visibilityAppearance: this.visibilityAppearance, hideStatusIndicators: a, showCloseButton: o, showCollapseButton: i, showErrors: l, showFilter: r, showHeading: c, showTemporaryLayerIndicators: h, handleAction: this.#T.bind(this), handleCatalogOpen: this.#g.bind(this), handleTablesOpen: this.#p.bind(this), handleTooltipReferenceChange: this.#_.bind(this), view: this.view }));
|
|
256
257
|
}
|
|
257
258
|
}
|
|
258
|
-
O("arcgis-catalog-layer-list-next",
|
|
259
|
+
O("arcgis-catalog-layer-list-next", ie);
|
|
259
260
|
export {
|
|
260
|
-
|
|
261
|
+
ie as ArcgisCatalogLayerListNext
|
|
261
262
|
};
|
|
@@ -4,8 +4,8 @@ import type DirectLineMeasurementAnalysis from "@arcgis/core/analysis/DirectLine
|
|
|
4
4
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
5
5
|
import type { ArcgisReferenceElement } from "../types.js";
|
|
6
6
|
import type { DirectLineMeasurement3DState } from "./types.js";
|
|
7
|
-
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
8
7
|
import type { Icon as Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
8
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
9
9
|
import type { SystemOrLengthUnit } from "@arcgis/core/core/units.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -210,7 +210,7 @@ export abstract class ArcgisDirectLineMeasurement3d extends LitElement {
|
|
|
210
210
|
vertical?: string | undefined;
|
|
211
211
|
};
|
|
212
212
|
/** @internal */
|
|
213
|
-
|
|
213
|
+
accessor messages: {
|
|
214
214
|
reset: string;
|
|
215
215
|
componentLabel: string;
|
|
216
216
|
direct: string;
|
|
@@ -128,10 +128,10 @@ n = a([
|
|
|
128
128
|
const T = M(n);
|
|
129
129
|
class I extends v {
|
|
130
130
|
constructor() {
|
|
131
|
-
super(...arguments), this.viewModel = T(this), this.
|
|
131
|
+
super(...arguments), this.viewModel = T(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 = U({ name: "directline-measurement-3d", blocking: !0 }), this.state = this.viewModel.state, this.unit = this.viewModel.unit, this.unitOptions = this.viewModel.unitOptions, this.arcgisPropertyChange = D()("analysis", "interactionDisabled", "state"), this.arcgisReady = b();
|
|
132
132
|
}
|
|
133
133
|
static {
|
|
134
|
-
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, state: 32, unit: 1, unitOptions: 0 };
|
|
134
|
+
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, state: 32, unit: 1, unitOptions: 0 };
|
|
135
135
|
}
|
|
136
136
|
static {
|
|
137
137
|
this.styles = A;
|
|
@@ -5,8 +5,8 @@ import type SnappingOptions from "@arcgis/core/views/interactive/options/Snappin
|
|
|
5
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
6
|
import type { ArcgisReferenceElement } from "../types.js";
|
|
7
7
|
import type { DistanceMeasurement2DState } from "./types.js";
|
|
8
|
-
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
9
8
|
import type { Icon as Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
9
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
10
10
|
import type { SystemOrLengthUnit } from "@arcgis/core/core/units.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -175,7 +175,7 @@ export abstract class ArcgisDistanceMeasurement2d extends LitElement {
|
|
|
175
175
|
unsupported?: string | undefined;
|
|
176
176
|
};
|
|
177
177
|
/** @internal */
|
|
178
|
-
|
|
178
|
+
accessor messages: {
|
|
179
179
|
reset: string;
|
|
180
180
|
componentLabel: string;
|
|
181
181
|
distance: string;
|
|
@@ -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;
|
|
@@ -12,17 +12,17 @@ import { m as M } from "../../chunks/useViewModel.js";
|
|
|
12
12
|
import { LitElement as H, createEvent as O, safeClassMap as v, nothing as P } from "@arcgis/lumina";
|
|
13
13
|
import { classes as f } from "@arcgis/toolkit/dom";
|
|
14
14
|
var S = Object.defineProperty, L = Object.getOwnPropertyDescriptor, c = (i, e, t, a) => {
|
|
15
|
-
for (var s = a > 1 ? void 0 : a ? L(e, t) : e,
|
|
16
|
-
(
|
|
15
|
+
for (var s = a > 1 ? void 0 : a ? L(e, t) : e, n = i.length - 1, o; n >= 0; n--)
|
|
16
|
+
(o = i[n]) && (s = (a ? o(e, t, s) : o(s)) || s);
|
|
17
17
|
return a && s && S(e, t, s), s;
|
|
18
18
|
};
|
|
19
19
|
const x = new EventTarget();
|
|
20
|
-
function
|
|
20
|
+
function z(i, e, t) {
|
|
21
21
|
let a = !1;
|
|
22
22
|
const s = y(
|
|
23
23
|
i,
|
|
24
|
-
(
|
|
25
|
-
a || e(
|
|
24
|
+
(n, o) => {
|
|
25
|
+
a || e(n, o);
|
|
26
26
|
},
|
|
27
27
|
t
|
|
28
28
|
);
|
|
@@ -88,7 +88,7 @@ let r = class extends E {
|
|
|
88
88
|
const { autoCollapse: e, view: t } = this;
|
|
89
89
|
if (!t || !e)
|
|
90
90
|
return;
|
|
91
|
-
const a =
|
|
91
|
+
const a = z(
|
|
92
92
|
() => t.type === "3d" ? t.camera : t.viewpoint,
|
|
93
93
|
() => this._collapse()
|
|
94
94
|
);
|
|
@@ -117,16 +117,16 @@ c([
|
|
|
117
117
|
r = c([
|
|
118
118
|
T("map-components.expand.ExpandViewModel")
|
|
119
119
|
], r);
|
|
120
|
-
const
|
|
120
|
+
const B = $`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none;--arcgis-internal-expand-action-background-color: var( --calcite-action-background-color, var(--calcite-color-foreground-1) );--arcgis-internal-expand-action-background-color-hover: var( --calcite-action-background-color-hover, var(--calcite-color-surface-3) );--arcgis-internal-expand-action-background-color-press: var( --calcite-action-background-color-press, var(--calcite-color-foreground-3) )}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto;--calcite-action-corner-radius: 0}.action{--calcite-action-background-color: var(--arcgis-internal-expand-action-background-color);--calcite-action-background-color-hover: var(--arcgis-internal-expand-action-background-color-hover);--calcite-action-background-color-press: var(--arcgis-internal-expand-action-background-color-press);cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none);max-inline-size:calc(min(100cqw,100vw) - 80px)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}::slotted(arcgis-exploratory-analysis){width:var(--arcgis-internal-exploratory-analysis-width, fit-content);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-space-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`, w = "chevrons-left", b = "chevrons-right", V = M(r);
|
|
121
121
|
class A extends H {
|
|
122
122
|
constructor() {
|
|
123
|
-
super(...arguments), this.popoverEl = u(), this.messages = C({}), this.viewModel =
|
|
123
|
+
super(...arguments), this.popoverEl = u(), this.messages = C({}), this.viewModel = V(this), this.toggleActionEl = u(), this.view = this.viewModel.view, this.state = this.viewModel.state, this.autoDestroyDisabled = !1, this.autoCollapse = this.viewModel.autoCollapse, this.closeOnEscDisabled = !1, this.content = "", this.expanded = this.viewModel.expanded, this.expandTooltip = "", this.collapseTooltip = "", this.focusTrapDisabled = !1, this.focusTrapInitialFocusDisabled = !1, this.group = this.viewModel.group, this.iconNumber = 0, this.mode = "auto", this.topLayerDisabled = !1, this.modalDisabled = !1, this.visualScale = "m", this.arcgisPropertyChange = I()("expanded"), this.arcgisReady = O();
|
|
124
124
|
}
|
|
125
125
|
static {
|
|
126
126
|
this.properties = { _slottedIcon: 16, expandTitle: 16, _displaySheet: 16, view: 0, state: 32, icon: 1, label: 1, autoDestroyDisabled: 5, referenceElement: 1, autoCollapse: 5, autoModeBreakpoint: 9, closeOnEscDisabled: 5, content: 1, expanded: 7, expandIcon: 3, expandTooltip: 1, collapseIcon: 3, collapseTooltip: 1, focusTrapDisabled: 5, focusTrapInitialFocusDisabled: 5, group: 1, iconNumber: 9, mode: 1, placement: 1, messageOverrides: 0, topLayerDisabled: 5, modalDisabled: 5, visualScale: 1 };
|
|
127
127
|
}
|
|
128
128
|
static {
|
|
129
|
-
this.styles =
|
|
129
|
+
this.styles = B;
|
|
130
130
|
}
|
|
131
131
|
get expandTitle() {
|
|
132
132
|
const { expanded: e, messages: t, collapseTooltip: a, expandTooltip: s } = this;
|
|
@@ -213,16 +213,16 @@ class A extends H {
|
|
|
213
213
|
this._slottedIcon = t?.icon;
|
|
214
214
|
}
|
|
215
215
|
render() {
|
|
216
|
-
const { _displaySheet: e, toggleActionEl: t, expanded: a, focusTrapInitialFocusDisabled: s, label:
|
|
217
|
-
return l`<div class=${v(f("root", k.widget))}>${this._renderToggle()}${e ? l`<calcite-sheet class="sheet" .focusTrapDisabled=${this.focusTrapDisabled} .focusTrapOptions=${g} height=l .label=${
|
|
216
|
+
const { _displaySheet: e, toggleActionEl: t, expanded: a, focusTrapInitialFocusDisabled: s, label: n, modalDisabled: o, topLayerDisabled: p } = this, g = s ? { initialFocus: !1 } : void 0;
|
|
217
|
+
return l`<div class=${v(f("root", k.widget))}>${this._renderToggle()}${e ? l`<calcite-sheet class="sheet" .focusTrapDisabled=${this.focusTrapDisabled} .focusTrapOptions=${g} height=l .label=${n ?? ""} .modalDisabled=${o} .topLayerDisabled=${p} @keydown=${this._handleKeyDown} .open=${a} position=block-end @calciteSheetClose=${this.collapse}><calcite-panel class="panel" closable .closed=${!a} .heading=${n} @keydown=${this._handleKeyDown} @calcitePanelClose=${this.collapse}><div class="panel-content">${this._renderContent()}</div></calcite-panel></calcite-sheet>` : t.value ? l`<calcite-popover .focusTrapDisabled=${this.focusTrapDisabled} .focusTrapOptions=${g} .label=${n ?? ""} @keydown=${this._handleKeyDown} trigger-disabled .open=${a} overlay-positioning=fixed .placement=${this.getPopoverPlacement()} .referenceElement=${t.value} .topLayerDisabled=${p} @calcitePopoverClose=${this._handlePopoverClose} ${m(this.popoverEl)}><div class="popover-content">${this._renderContent()}</div></calcite-popover>` : null}</div>`;
|
|
218
218
|
}
|
|
219
219
|
_renderBadgeNumber() {
|
|
220
220
|
const { expanded: e, iconNumber: t } = this;
|
|
221
221
|
return t && !e ? l`<span class="icon-number">${t}</span>` : null;
|
|
222
222
|
}
|
|
223
223
|
_renderToggleButton() {
|
|
224
|
-
const { expanded: e, expandTitle: t, expandIcon: a, collapseIcon: s } = this,
|
|
225
|
-
return l`<calcite-action class=${v(f("action", "icon", { "icon-flip":
|
|
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} .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>`;
|