@arcgis/map-components 5.2.0-next.91 → 5.2.0-next.94
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/{RJSJ53UD.js → 2S3PMUG2.js} +1 -1
- package/dist/cdn/2Z6FVTKT.js +2 -0
- package/dist/cdn/{DDGANMOY.js → 3FEDJ3XZ.js} +1 -1
- package/dist/cdn/3MZKVY6A.js +2 -0
- package/dist/cdn/{IORWRMMG.js → 3ZRONF3M.js} +1 -1
- package/dist/cdn/5A6MVUCS.js +3 -0
- package/dist/cdn/{DCGOOUOL.js → 5QVEXW3X.js} +1 -1
- package/dist/cdn/{KX3XJGXZ.js → 76XDS6TG.js} +1 -1
- package/dist/cdn/7N4V2IN6.js +2 -0
- package/dist/cdn/BKC42MLS.js +2 -0
- package/dist/cdn/{BSLVN2NW.js → DEH55KP3.js} +1 -1
- package/dist/cdn/DKP73IZU.js +2 -0
- package/dist/cdn/ISX6CEA3.js +2 -0
- package/dist/cdn/JZHBJAXX.js +2 -0
- package/dist/cdn/{DMFYRFSD.js → NHU5Q4AZ.js} +1 -1
- package/dist/cdn/O3G7XPDI.js +2 -0
- package/dist/cdn/{35VRWQWE.js → O45XRDXJ.js} +1 -1
- package/dist/cdn/{FD7U6V53.js → UNOCR34T.js} +1 -1
- package/dist/cdn/{R6ZUE6GP.js → VURES5AT.js} +1 -1
- package/dist/cdn/assets/utility-network-trace-configuration-picker/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/keyboard-utils.js +14 -8
- package/dist/chunks/layer-list-item.js +13 -13
- package/dist/chunks/useArcgisViewReadyError.js +14 -9
- package/dist/components/arcgis-feature-media/customElement.js +47 -47
- package/dist/components/arcgis-features/customElement.js +17 -17
- package/dist/components/arcgis-features-next/customElement.js +31 -27
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-picker/customElement.js +18 -15
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +89 -0
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.js +137 -0
- package/dist/components/arcgis-utility-network-trace-configuration-picker/index.js +9 -0
- package/dist/components/arcgis-utility-network-trace-inputs-next/customElement.js +137 -206
- package/dist/components/arcgis-utility-network-trace-inputs-next/index.js +1 -6
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +9 -3
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +5 -3
- package/dist/types/preact.d.ts +6 -4
- package/dist/types/react.d.ts +7 -5
- package/dist/types/stencil.d.ts +5 -3
- package/package.json +5 -5
- package/dist/cdn/32XG4IQO.js +0 -2
- package/dist/cdn/BXDUMWWE.js +0 -2
- package/dist/cdn/FLVENMD3.js +0 -2
- package/dist/cdn/HEYHZKI2.js +0 -3
- package/dist/cdn/I5DFLVVJ.js +0 -2
- package/dist/cdn/J3743ZYD.js +0 -2
- package/dist/cdn/KGXZG3YI.js +0 -2
- package/dist/cdn/NO6MFBNV.js +0 -2
- package/dist/cdn/NP5NJFWN.js +0 -2
- package/dist/cdn/assets/utility-network-subnetwork-info-next/t9n/messages.en.json +0 -1
- package/dist/components/arcgis-utility-network-subnetwork-info-next/customElement.d.ts +0 -29
- package/dist/components/arcgis-utility-network-subnetwork-info-next/customElement.js +0 -35
- package/dist/components/arcgis-utility-network-subnetwork-info-next/index.js +0 -1
- /package/dist/components/{arcgis-utility-network-subnetwork-info-next → arcgis-utility-network-trace-configuration-picker}/index.d.ts +0 -0
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
function
|
|
2
|
+
function e(r) {
|
|
3
3
|
return r === "ArrowDown" || r === "ArrowLeft" || r === "ArrowRight" || r === "ArrowUp";
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
return
|
|
5
|
+
function n(r) {
|
|
6
|
+
return r.composedPath().some(
|
|
7
|
+
(t) => t instanceof HTMLElement && (t.isContentEditable || t.matches("input, textarea, select, [role='textbox']"))
|
|
8
|
+
);
|
|
7
9
|
}
|
|
8
|
-
function
|
|
9
|
-
return
|
|
10
|
+
function w(r, t = "ltr", { horizontalOnly: o = !1 } = {}) {
|
|
11
|
+
return t === "rtl" ? r === "ArrowLeft" || !o && r === "ArrowUp" : !o && r === "ArrowDown" || r === "ArrowRight";
|
|
12
|
+
}
|
|
13
|
+
function s(r, t = "ltr", { horizontalOnly: o = !1 } = {}) {
|
|
14
|
+
return t === "rtl" ? !o && r === "ArrowDown" || r === "ArrowRight" : r === "ArrowLeft" || !o && r === "ArrowUp";
|
|
10
15
|
}
|
|
11
16
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
s as a,
|
|
18
|
+
n as b,
|
|
19
|
+
w as c,
|
|
20
|
+
e as i
|
|
15
21
|
};
|
|
@@ -60,7 +60,7 @@ function ae(i, e, l) {
|
|
|
60
60
|
return c`<calcite-action .active=${A === "toggle" ? e.value : !1} data-action-id=${e.id ?? d} .disabled=${T} .icon=${I ?? void 0} .indicator=${S} .loading=${g} @click=${() => Ve(a, s, e)} scale=s slot=${(l ? void 0 : "actions-end") ?? d} .text=${h ?? ""} .textEnabled=${l} title=${h ?? void 0 ?? d}>${se($, e)}</calcite-action>`;
|
|
61
61
|
}
|
|
62
62
|
function He(i) {
|
|
63
|
-
const { item: e, itemType: l = "layer", parent: s, hideStatusIndicators: $, css: a, visibilityAppearance: g, hideCatalogLayerList: T, dragEnabled: h = !1, rootGroupUid: A, listModeDisabled: S = !1, selectionMode: I, displayMode: oe, layerTablesEnabled: M, showErrors: re, parentTitles: R, selectedItems: de, activeItem: ue, handleCatalogOpen: me, handleTablesOpen: ge, selectedDragItemLayerUid: pe, handleSelectedDragItemLayerUidChange: $e, handlePanelOpen: be, messages: n, setCurrentActiveItem: G, clearActiveItem: V } = i,
|
|
63
|
+
const { item: e, itemType: l = "layer", parent: s, hideStatusIndicators: $, css: a, visibilityAppearance: g, hideCatalogLayerList: T, dragEnabled: h = !1, rootGroupUid: A, listModeDisabled: S = !1, selectionMode: I, displayMode: oe, layerTablesEnabled: M, showErrors: re, parentTitles: R, selectedItems: de, activeItem: ue, handleCatalogOpen: me, handleTablesOpen: ge, selectedDragItemLayerUid: pe, handleSelectedDragItemLayerUidChange: $e, handlePanelOpen: be, messages: n, setCurrentActiveItem: G, clearActiveItem: V } = i, y = Z(), x = Z(), ye = l === "table" ? n.untitledTable ?? "" : n.untitledLayer ?? "", v = e.title || ye || "";
|
|
64
64
|
let q = null;
|
|
65
65
|
$ || (q = c`<arcgis-layer-list-item-indicator class=${u(a.statusIndicator)} .messages=${n} .item=${e} .parent=${s} slot=content-end></arcgis-layer-list-item-indicator>`);
|
|
66
66
|
let H = null;
|
|
@@ -94,7 +94,7 @@ function He(i) {
|
|
|
94
94
|
const t = e.panel;
|
|
95
95
|
if (t?.visible) {
|
|
96
96
|
const { open: o, title: r, disabled: m } = t;
|
|
97
|
-
t.content === "legend" && (t.icon = "legend");
|
|
97
|
+
(t.content === "legend" || Array.isArray(t.content) && t.content.includes("legend")) && (t.icon = "legend");
|
|
98
98
|
const f = {
|
|
99
99
|
icon: t.icon,
|
|
100
100
|
image: t.image ?? void 0,
|
|
@@ -116,7 +116,7 @@ function He(i) {
|
|
|
116
116
|
let z = null;
|
|
117
117
|
if ("visible" in e) {
|
|
118
118
|
const t = e.layer;
|
|
119
|
-
!T && t?.type === "catalog-dynamic-group" && (z = c`<calcite-action .disabled=${!t.visible} icon=chevron-right icon-flip-rtl @click=${() => me?.(e)} scale=s slot=actions-end .text=${
|
|
119
|
+
!T && t?.type === "catalog-dynamic-group" && (z = c`<calcite-action .disabled=${!t.visible} icon=chevron-right icon-flip-rtl @click=${() => me?.(e)} scale=s slot=actions-end .text=${v ?? ""}></calcite-action>`);
|
|
120
120
|
}
|
|
121
121
|
let J = null, L = !1;
|
|
122
122
|
{
|
|
@@ -148,32 +148,32 @@ function He(i) {
|
|
|
148
148
|
const t = "layerError" in n ? n.layerError : n.tableError;
|
|
149
149
|
E = c`<div class=${u(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${t}</div></calcite-notice></div>`;
|
|
150
150
|
} else "incompatible" in e && e.incompatible && "layerIncompatible" in n && (E = c`<div class=${u(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${ee(x)}><div slot=message>${n.layerIncompatible}</div></calcite-notice></div>`);
|
|
151
|
-
const Q = qe(e), w = e.actionsSections.reduce((t, o) => t + o.length, 0), W = Pe(Q),
|
|
151
|
+
const Q = qe(e), w = e.actionsSections.reduce((t, o) => t + o.length, 0), W = Pe(Q), ve = Q.toArray().map((t) => c`<calcite-action-group>${t.toArray().map((o) => ae(i, o, !0))}</calcite-action-group>`), fe = (t) => {
|
|
152
152
|
e.actionsOpen = t.currentTarget.open;
|
|
153
153
|
};
|
|
154
154
|
let X = null;
|
|
155
155
|
w > 1 && (X = c`<calcite-action-menu appearance=transparent .label=${n.menu ?? ""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end slot=actions-end @calciteActionMenuOpen=${fe}><calcite-action .aria=${{
|
|
156
156
|
expanded: e.actionsOpen ?? !1,
|
|
157
157
|
hasPopup: "true"
|
|
158
|
-
}} icon=ellipsis scale=s slot=trigger .text=${n.options ?? ""} title=${n.options ?? d}></calcite-action>${
|
|
158
|
+
}} icon=ellipsis scale=s slot=trigger .text=${n.options ?? ""} title=${n.options ?? d}></calcite-action>${ve}</calcite-action-menu>`);
|
|
159
159
|
let k = null;
|
|
160
160
|
w === 1 && W ? k = ae(i, W, !1) : w > 1 && (k = X);
|
|
161
|
-
const he = "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in n && !e.visibleAtCurrentTimeExtent ? `${
|
|
161
|
+
const he = "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in n && !e.visibleAtCurrentTimeExtent ? `${v} (${n.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in n && !e.visibleAtCurrentScale ? `${v} (${n.layerInvisibleAtScale})` : v, Ae = "parent" in e && e.parent?.layer?.type === "catalog", C = e.layer, Ie = "visibleAtCurrentScale" in e && !e.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in e && !e.visibleAtCurrentTimeExtent;
|
|
162
162
|
return queueMicrotask(() => {
|
|
163
|
-
Ge(
|
|
164
|
-
}), Y(e.uid, c`<calcite-list-item class=${u(F(a.item, "itemActive" in a && { [a.itemActive]: ue?.uid === e.uid }))} data-item=${e.uid ?? d} data-layer-id=${C?.id ?? d} .dragDisabled=${!("sortable" in e && e.sortable) || Ae} id=${C?.uid ?? d} .label=${
|
|
165
|
-
G?.(e),
|
|
163
|
+
Ge(y.value ?? null, e, pe, $e), x.value && (i.handleTooltipReferenceChange?.(C?.uid, x.value), queueMicrotask(() => i.handleTooltipReferenceChange?.(C?.uid, null)));
|
|
164
|
+
}), Y(e.uid, c`<calcite-list-item class=${u(F(a.item, "itemActive" in a && { [a.itemActive]: ue?.uid === e.uid }))} data-item=${e.uid ?? d} data-layer-id=${C?.id ?? d} .dragDisabled=${!("sortable" in e && e.sortable) || Ae} id=${C?.uid ?? d} .label=${v} .metadata=${{ parentTitles: R ?? [], _title: v }} .expanded=${"open" in e && e.open} .selected=${I !== "none" ? de.includes(e) : !1} title=${he ?? d} .unavailable=${Ie} .value=${e} @focusin=${() => {
|
|
165
|
+
G?.(e), y.value?.classList.add(a.itemActive);
|
|
166
166
|
}} @focusout=${() => {
|
|
167
|
-
V?.(),
|
|
167
|
+
V?.(), y.value?.classList.remove(a.itemActive);
|
|
168
168
|
}} @mouseover=${() => {
|
|
169
|
-
G?.(e),
|
|
169
|
+
G?.(e), y.value?.classList.add(a.itemActive);
|
|
170
170
|
}} @mouseleave=${() => {
|
|
171
|
-
V?.(),
|
|
171
|
+
V?.(), y.value?.classList.remove(a.itemActive);
|
|
172
172
|
}} @calciteListItemSelect=${(t) => {
|
|
173
173
|
t.target === t.currentTarget && "visible" in e && De(t.currentTarget, i.operationalItems) === e && I === "none" && O(s) !== "inherited" && ie(e, s);
|
|
174
174
|
}} @calciteListItemToggle=${(t) => {
|
|
175
175
|
"open" in e && (t.stopPropagation(), e.open = t.target.expanded);
|
|
176
|
-
}} ${ee(
|
|
176
|
+
}} ${ee(y)}>${N}${_}${q}${U}${z}${H}${K}${E}${j}${B}${k}</calcite-list-item>`);
|
|
177
177
|
}
|
|
178
178
|
export {
|
|
179
179
|
He as A,
|
|
@@ -7,7 +7,12 @@ import { createRef as b } from "lit/directives/ref.js";
|
|
|
7
7
|
import { c as w, S as g } from "./slots.js";
|
|
8
8
|
import { observeAncestorsMutation as v, unsafeGetCalciteModeName as P } from "@arcgis/toolkit/dom";
|
|
9
9
|
import { createEvent as h } from "@arcgis/lumina";
|
|
10
|
-
|
|
10
|
+
function y(p) {
|
|
11
|
+
return {
|
|
12
|
+
defaultPopupTemplateEnabled: p.defaultPopupTemplateEnabled
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
class A extends m {
|
|
11
16
|
//#endregion
|
|
12
17
|
//#region Lifecycle
|
|
13
18
|
constructor(o) {
|
|
@@ -76,7 +81,7 @@ class V extends m {
|
|
|
76
81
|
this._maybeDisableViewPopup();
|
|
77
82
|
try {
|
|
78
83
|
if (this.popupElement) {
|
|
79
|
-
const t = this.component.view.fetchPopupFeatures({ x: o.x, y: o.y });
|
|
84
|
+
const t = this.component.view.fetchPopupFeatures({ x: o.x, y: o.y }, y(this.popupElement));
|
|
80
85
|
t ? await this.openPopup({ location: o.mapPoint ?? void 0, featureStream: t }) : this.popupElement.open && this.closePopup();
|
|
81
86
|
}
|
|
82
87
|
} finally {
|
|
@@ -97,7 +102,7 @@ class V extends m {
|
|
|
97
102
|
return g({ direction: this.direction, popupComponentEnabled: this.component.popupComponentEnabled, slotGroupRefs: this.slotGroupRefs, handlePopupSlotChange: (o) => this._handlePopupSlotChange(o), webGLErrorElement: this._webGLErrorAlert(), popupElement: this.popupRef });
|
|
98
103
|
}
|
|
99
104
|
}
|
|
100
|
-
function
|
|
105
|
+
function D(p) {
|
|
101
106
|
d((o, t) => {
|
|
102
107
|
const e = () => {
|
|
103
108
|
if (p.attributionMode !== "auto")
|
|
@@ -110,7 +115,7 @@ function A(p) {
|
|
|
110
115
|
});
|
|
111
116
|
});
|
|
112
117
|
}
|
|
113
|
-
const
|
|
118
|
+
const O = l((p, o) => {
|
|
114
119
|
const t = h();
|
|
115
120
|
return o.onLifecycle(
|
|
116
121
|
() => u(
|
|
@@ -128,7 +133,7 @@ const D = l((p, o) => {
|
|
|
128
133
|
}
|
|
129
134
|
)
|
|
130
135
|
), t;
|
|
131
|
-
}),
|
|
136
|
+
}), F = l(
|
|
132
137
|
(p, o) => {
|
|
133
138
|
const t = h();
|
|
134
139
|
return o.onLifecycle(
|
|
@@ -142,8 +147,8 @@ const D = l((p, o) => {
|
|
|
142
147
|
}
|
|
143
148
|
);
|
|
144
149
|
export {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
150
|
+
A as U,
|
|
151
|
+
F as a,
|
|
152
|
+
D as b,
|
|
153
|
+
O as u
|
|
149
154
|
};
|
|
@@ -12,17 +12,17 @@ import te from "@arcgis/core/popup/FieldInfo.js";
|
|
|
12
12
|
import V from "@arcgis/core/popup/content/support/ChartMediaInfoValueSeries.js";
|
|
13
13
|
import { unsafeGetCalciteModeName as ie } from "@arcgis/toolkit/dom";
|
|
14
14
|
import { renderingSanitizer as N } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
15
|
-
import { f as A, b as R, l as z, m as X, n as ae, o as E, i as re, p as ne, h as
|
|
16
|
-
import {
|
|
17
|
-
const
|
|
15
|
+
import { f as A, b as R, l as z, m as X, n as ae, o as E, i as re, p as ne, h as P, s as se } from "../../chunks/feature-utils.js";
|
|
16
|
+
import { b as oe, a as le, c as ce } from "../../chunks/keyboard-utils.js";
|
|
17
|
+
const de = W`.container{display:flex;flex-flow:row wrap;align-items:center;margin-top:var(--calcite-spacing-xs);width:100%;min-height:150px}.container .pagination-button{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding-block:var(--calcite-spacing-xs);padding-inline:var(--calcite-spacing-xs);color:var(--calcite-color-text-3)}.container .pagination-button:hover,.container .pagination-button:focus{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1);fill:var(--calcite-color-text-1)}.item-title{margin:0;font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-snug)}.item-caption{padding-block-start:var(--calcite-spacing-xxs);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-snug)}.item{display:flex;align-items:flex-start;justify-content:center;margin-block:var(--calcite-spacing-xs);width:100%;height:auto}.item-navigation{display:flex;flex:0 1 100%;align-items:flex-start;justify-content:space-between;margin-block-end:var(--calcite-spacing-xs)}.item-text{margin-inline-end:var(--calcite-spacing-xs)}.pagination{display:flex;flex:0 0 auto;align-items:center;overflow:hidden}.pagination:only-child{margin-inline-start:auto}.pagination-text{padding-inline:var(--calcite-spacing-xxs);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.item-container{flex:0 1 auto;width:100%}.item-container img{max-width:100%}.item-container img[src$=".SVG"],.item-container img[src$=".svg"]{width:100%}.chart{width:100%;height:155px}`;
|
|
18
18
|
function $(S) {
|
|
19
19
|
if (!A(S))
|
|
20
20
|
return null;
|
|
21
21
|
const [e, t] = S.split("/").slice(1);
|
|
22
22
|
return { layerId: e, fieldName: t };
|
|
23
23
|
}
|
|
24
|
-
const k = 15, C = "category", w = "value",
|
|
25
|
-
class
|
|
24
|
+
const k = 15, C = "category", w = "value", ue = "rgba(50, 50, 50, 1)", he = 250, fe = 500, me = 200;
|
|
25
|
+
class pe extends Q {
|
|
26
26
|
constructor() {
|
|
27
27
|
super(...arguments), this._direction = G(), this._prefersReducedMotion = q("(prefers-reduced-motion)"), this.activeMediaInfoIndex = 0, this.chartAnimationDisabled = !1, this.headingLevel = 2;
|
|
28
28
|
}
|
|
@@ -30,7 +30,7 @@ class fe extends Q {
|
|
|
30
30
|
this.properties = { _refreshIntervalInfo: 16, messages: 0, values: 0, expressionValues: 0, activeMediaInfoIndex: 9, chartAnimationDisabled: 5, activeMediaInfo: 32, formattedMediaInfos: 32, description: 1, fieldInfoMap: 0, layer: 0, mediaInfos: 0, popupTemplate: 0, relatedInfos: 0, formattedValues: 0, heading: 1, graphic: 0, formattedMediaInfoCount: 32, headingLevel: 9 };
|
|
31
31
|
}
|
|
32
32
|
static {
|
|
33
|
-
this.styles =
|
|
33
|
+
this.styles = de;
|
|
34
34
|
}
|
|
35
35
|
get activeMediaInfo() {
|
|
36
36
|
return this.formattedMediaInfos[this.activeMediaInfoIndex] || null;
|
|
@@ -134,18 +134,18 @@ class fe extends Q {
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
_setChartValue(e) {
|
|
137
|
-
const { value: t, values: i, expressionValues: a, formattedValues: n, chartType: s, layer: o } = e, { popupTemplate: r, relatedInfos: c } = this, { fields:
|
|
138
|
-
if (t.fields = ae(
|
|
137
|
+
const { value: t, values: i, expressionValues: a, formattedValues: n, chartType: s, layer: o } = e, { popupTemplate: r, relatedInfos: c } = this, { fields: m, normalizeField: d } = t, l = o;
|
|
138
|
+
if (t.fields = ae(m, l), d && (t.normalizeField = E(d, l)), !m.some((f) => !!(n[f] != null || A(f) && c?.size)))
|
|
139
139
|
return;
|
|
140
140
|
const u = r?.fieldInfos ?? [];
|
|
141
|
-
t.series = [],
|
|
141
|
+
t.series = [], m.forEach((f, h) => {
|
|
142
142
|
const g = t.colors?.[h];
|
|
143
|
-
if (A(
|
|
143
|
+
if (A(f)) {
|
|
144
144
|
t.series = [
|
|
145
145
|
...t.series,
|
|
146
146
|
...this._getRelatedChartInfos({
|
|
147
147
|
fieldInfos: u,
|
|
148
|
-
fieldName:
|
|
148
|
+
fieldName: f,
|
|
149
149
|
formattedValues: n,
|
|
150
150
|
expressionValues: a,
|
|
151
151
|
chartType: s,
|
|
@@ -161,7 +161,7 @@ class fe extends Q {
|
|
|
161
161
|
chartType: s,
|
|
162
162
|
formattedValues: n,
|
|
163
163
|
expressionValues: a,
|
|
164
|
-
fieldName:
|
|
164
|
+
fieldName: f,
|
|
165
165
|
fieldInfos: u,
|
|
166
166
|
color: g
|
|
167
167
|
});
|
|
@@ -169,7 +169,7 @@ class fe extends Q {
|
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
_getRelatedChartInfos(e) {
|
|
172
|
-
const { fieldInfos: t, fieldName: i, formattedValues: a, chartType: n, value: s, color: o, expressionValues: r } = e, c = [],
|
|
172
|
+
const { fieldInfos: t, fieldName: i, formattedValues: a, chartType: n, value: s, color: o, expressionValues: r } = e, c = [], m = $(i), d = m && this.relatedInfos?.get(m.layerId);
|
|
173
173
|
if (!d)
|
|
174
174
|
return c;
|
|
175
175
|
const { relatedFeatures: l, relation: p } = d;
|
|
@@ -179,7 +179,7 @@ class fe extends Q {
|
|
|
179
179
|
return l.forEach((h) => {
|
|
180
180
|
const g = h.attributes;
|
|
181
181
|
g && Object.keys(g).forEach((x) => {
|
|
182
|
-
x ===
|
|
182
|
+
x === m.fieldName && c.push(this._getChartOption({
|
|
183
183
|
value: s,
|
|
184
184
|
values: g,
|
|
185
185
|
formattedValues: a,
|
|
@@ -198,19 +198,19 @@ class fe extends Q {
|
|
|
198
198
|
return i === "pie-chart" ? `${e}` : `${e}: ${t}`;
|
|
199
199
|
}
|
|
200
200
|
_getChartOption(e) {
|
|
201
|
-
const { value: t, values: i, formattedValues: a, expressionValues: n, fieldName: s, relatedFieldName: o, fieldInfos: r, chartType: c, hasMultipleRelatedFeatures:
|
|
201
|
+
const { value: t, values: i, formattedValues: a, expressionValues: n, fieldName: s, relatedFieldName: o, fieldInfos: r, chartType: c, hasMultipleRelatedFeatures: m, color: d } = e, { layer: l, graphic: p } = this, u = this.fieldInfoMap ?? /* @__PURE__ */ new Map(), { normalizeField: f, tooltipField: h } = t, g = f ? A(f) ? i[$(f).fieldName] : i[f] : null, x = re(s) && n?.[s] !== void 0 ? n[s] : o && i[o] !== void 0 ? i[o] : i[s] !== void 0 ? i[s] : a[s], I = x === void 0 ? null : x && g && typeof x == "number" && typeof g == "number" ? x / g : x, v = ne(r, s), M = E(s, l), b = (h && a[h] !== void 0 ? a[h] : P({
|
|
202
202
|
fieldInfo: v || new te({ fieldName: M }),
|
|
203
203
|
expressionInfos: this.popupTemplate?.expressionInfos,
|
|
204
204
|
graphic: p,
|
|
205
205
|
layer: l
|
|
206
|
-
})) ?? "",
|
|
206
|
+
})) ?? "", Y = a[M] ?? "", L = I != null ? typeof I == "number" ? I : Number(I) : null;
|
|
207
207
|
if (A(s)) {
|
|
208
|
-
const T = u.get(s.toLowerCase()), U = h ? u.get(h.toLowerCase()) : null,
|
|
208
|
+
const T = u.get(s.toLowerCase()), U = h ? u.get(h.toLowerCase()) : null, D = T?.fieldName ?? s, F = m && h ? $(h).fieldName : U?.fieldName ?? h, O = (m && F ? i[F] : a[F] ?? (T && P({ fieldInfo: T, layer: l, graphic: p })) ?? T?.fieldName ?? o) ?? "", H = (m && o ? i[o] : a[D]) ?? "";
|
|
209
209
|
return new V({
|
|
210
210
|
fieldName: s,
|
|
211
211
|
tooltip: this._getTooltip({
|
|
212
|
-
label:
|
|
213
|
-
value:
|
|
212
|
+
label: O,
|
|
213
|
+
value: H,
|
|
214
214
|
chartType: c
|
|
215
215
|
}),
|
|
216
216
|
color: d,
|
|
@@ -221,7 +221,7 @@ class fe extends Q {
|
|
|
221
221
|
fieldName: s,
|
|
222
222
|
tooltip: this._getTooltip({
|
|
223
223
|
label: b,
|
|
224
|
-
value:
|
|
224
|
+
value: Y,
|
|
225
225
|
chartType: c
|
|
226
226
|
}),
|
|
227
227
|
color: d,
|
|
@@ -258,25 +258,25 @@ class fe extends Q {
|
|
|
258
258
|
root: a
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
|
-
|
|
261
|
+
_handleMediaKeydown(e) {
|
|
262
262
|
const { key: t } = e;
|
|
263
|
-
oe(t, this._direction) && (e.stopPropagation(), this.previous()),
|
|
263
|
+
e.defaultPrevented || oe(e) || (le(t, this._direction, { horizontalOnly: !0 }) && (e.stopPropagation(), e.preventDefault(), this.previous()), ce(t, this._direction, { horizontalOnly: !0 }) && (e.stopPropagation(), e.preventDefault(), this.next()));
|
|
264
264
|
}
|
|
265
265
|
_canAnimateChart() {
|
|
266
266
|
return !this.chartAnimationDisabled && !this._prefersReducedMotion;
|
|
267
267
|
}
|
|
268
268
|
_getChartAnimationMS() {
|
|
269
|
-
return this._canAnimateChart() ?
|
|
269
|
+
return this._canAnimateChart() ? he : 0;
|
|
270
270
|
}
|
|
271
271
|
_getChartSeriesAnimationMS() {
|
|
272
|
-
return this._canAnimateChart() ?
|
|
272
|
+
return this._canAnimateChart() ? fe : 0;
|
|
273
273
|
}
|
|
274
274
|
async _customizeChartTooltip(e, t = "horizontal") {
|
|
275
275
|
const { color: i } = await import("@amcharts/amcharts5/index.js");
|
|
276
276
|
e.setAll({
|
|
277
277
|
pointerOrientation: t
|
|
278
278
|
}), e.get("background")?.setAll({
|
|
279
|
-
stroke: i(
|
|
279
|
+
stroke: i(ue)
|
|
280
280
|
}), e.label.setAll({
|
|
281
281
|
direction: this._direction,
|
|
282
282
|
oversizedBehavior: "wrap",
|
|
@@ -287,9 +287,9 @@ class fe extends Q {
|
|
|
287
287
|
const [{ Tooltip: i }, { PieChart: a, PieSeries: n }] = await Promise.all([
|
|
288
288
|
import("@amcharts/amcharts5/index.js"),
|
|
289
289
|
import("@amcharts/amcharts5/percent.js")
|
|
290
|
-
]), { mediaInfo: s, root: o } = e, { title: r } = s, c = 5,
|
|
290
|
+
]), { mediaInfo: s, root: o } = e, { title: r } = s, c = 5, m = s?.altText || s?.title || "", d = o.container.children.push(a.new(o, {
|
|
291
291
|
role: "figure",
|
|
292
|
-
ariaLabel:
|
|
292
|
+
ariaLabel: m,
|
|
293
293
|
focusable: !0,
|
|
294
294
|
paddingBottom: c,
|
|
295
295
|
paddingTop: c,
|
|
@@ -317,14 +317,14 @@ class fe extends Q {
|
|
|
317
317
|
return e.forEach((i) => t = Math.min(i.value, t)), t;
|
|
318
318
|
}
|
|
319
319
|
async _createColumnChart(e, t, i) {
|
|
320
|
-
const [{ Tooltip: a, Scrollbar: n }, { CategoryAxis: s, AxisRendererX: o, AxisRendererY: r, ValueAxis: c, ColumnSeries:
|
|
320
|
+
const [{ Tooltip: a, Scrollbar: n }, { CategoryAxis: s, AxisRendererX: o, AxisRendererY: r, ValueAxis: c, ColumnSeries: m }] = await Promise.all([import("@amcharts/amcharts5/index.js"), import("@amcharts/amcharts5/xy.js")]), { mediaInfo: d, root: l } = t, { value: p, title: u } = d, { _direction: f } = this;
|
|
321
321
|
e.setAll({
|
|
322
322
|
wheelX: "panX",
|
|
323
323
|
wheelY: "zoomX"
|
|
324
324
|
});
|
|
325
325
|
const h = e.xAxes.push(s.new(l, {
|
|
326
326
|
renderer: o.new(l, {
|
|
327
|
-
inversed:
|
|
327
|
+
inversed: f === "rtl"
|
|
328
328
|
}),
|
|
329
329
|
categoryField: C
|
|
330
330
|
}));
|
|
@@ -336,11 +336,11 @@ class fe extends Q {
|
|
|
336
336
|
min: this._getMinSeriesValue(p.series)
|
|
337
337
|
}));
|
|
338
338
|
g.get("renderer").labels.template.setAll({
|
|
339
|
-
direction:
|
|
339
|
+
direction: f
|
|
340
340
|
});
|
|
341
341
|
const x = "{categoryX}", I = a.new(l, {
|
|
342
342
|
labelText: x
|
|
343
|
-
}), v = e.series.push(
|
|
343
|
+
}), v = e.series.push(m.new(l, {
|
|
344
344
|
name: u,
|
|
345
345
|
xAxis: h,
|
|
346
346
|
yAxis: g,
|
|
@@ -357,7 +357,7 @@ class fe extends Q {
|
|
|
357
357
|
})), h.data.setAll(i), v.data.setAll(i), v.appear(this._getChartSeriesAnimationMS()), e.appear(this._getChartAnimationMS());
|
|
358
358
|
}
|
|
359
359
|
async _createBarChart(e, t, i) {
|
|
360
|
-
const [{ Tooltip: a, Scrollbar: n }, { CategoryAxis: s, AxisRendererX: o, AxisRendererY: r, ValueAxis: c, ColumnSeries:
|
|
360
|
+
const [{ Tooltip: a, Scrollbar: n }, { CategoryAxis: s, AxisRendererX: o, AxisRendererY: r, ValueAxis: c, ColumnSeries: m }] = await Promise.all([import("@amcharts/amcharts5/index.js"), import("@amcharts/amcharts5/xy.js")]), { mediaInfo: d, root: l } = t, { value: p, title: u } = d, { _direction: f } = this;
|
|
361
361
|
e.setAll({
|
|
362
362
|
wheelX: "panY",
|
|
363
363
|
wheelY: "zoomY"
|
|
@@ -374,16 +374,16 @@ class fe extends Q {
|
|
|
374
374
|
const g = e.xAxes.push(c.new(l, {
|
|
375
375
|
renderer: o.new(l, {
|
|
376
376
|
inside: !1,
|
|
377
|
-
inversed:
|
|
377
|
+
inversed: f === "rtl"
|
|
378
378
|
}),
|
|
379
379
|
min: this._getMinSeriesValue(p.series)
|
|
380
380
|
}));
|
|
381
381
|
g.get("renderer").labels.template.setAll({
|
|
382
|
-
direction:
|
|
382
|
+
direction: f
|
|
383
383
|
});
|
|
384
384
|
const x = "{categoryY}", I = a.new(l, {
|
|
385
385
|
labelText: x
|
|
386
|
-
}), v = e.series.push(
|
|
386
|
+
}), v = e.series.push(m.new(l, {
|
|
387
387
|
name: u,
|
|
388
388
|
xAxis: g,
|
|
389
389
|
yAxis: h,
|
|
@@ -400,14 +400,14 @@ class fe extends Q {
|
|
|
400
400
|
})), h.data.setAll(i), v.data.setAll(i), v.appear(this._getChartSeriesAnimationMS()), e.appear(this._getChartAnimationMS());
|
|
401
401
|
}
|
|
402
402
|
async _createLineChart(e, t, i) {
|
|
403
|
-
const [{ Tooltip: a, Scrollbar: n }, { CategoryAxis: s, AxisRendererX: o, AxisRendererY: r, ValueAxis: c, LineSeries:
|
|
403
|
+
const [{ Tooltip: a, Scrollbar: n }, { CategoryAxis: s, AxisRendererX: o, AxisRendererY: r, ValueAxis: c, LineSeries: m }] = await Promise.all([import("@amcharts/amcharts5/index.js"), import("@amcharts/amcharts5/xy.js")]), { root: d, mediaInfo: l } = t, { value: p, title: u } = l, { _direction: f } = this;
|
|
404
404
|
e.setAll({
|
|
405
405
|
wheelX: "panX",
|
|
406
406
|
wheelY: "zoomX"
|
|
407
407
|
});
|
|
408
408
|
const h = e.xAxes.push(s.new(d, {
|
|
409
409
|
renderer: o.new(d, {
|
|
410
|
-
inversed:
|
|
410
|
+
inversed: f === "rtl"
|
|
411
411
|
}),
|
|
412
412
|
categoryField: C
|
|
413
413
|
}));
|
|
@@ -419,7 +419,7 @@ class fe extends Q {
|
|
|
419
419
|
min: this._getMinSeriesValue(p.series)
|
|
420
420
|
}));
|
|
421
421
|
g.get("renderer").labels.template.setAll({
|
|
422
|
-
direction:
|
|
422
|
+
direction: f
|
|
423
423
|
});
|
|
424
424
|
const x = "{categoryX}", I = i[0]?.lineSettings?.stroke, v = a.new(d, {
|
|
425
425
|
getFillFromSprite: !I,
|
|
@@ -428,7 +428,7 @@ class fe extends Q {
|
|
|
428
428
|
I && v.get("background")?.setAll({
|
|
429
429
|
fill: I
|
|
430
430
|
});
|
|
431
|
-
const M = e.series.push(
|
|
431
|
+
const M = e.series.push(m.new(d, {
|
|
432
432
|
name: u,
|
|
433
433
|
xAxis: h,
|
|
434
434
|
yAxis: g,
|
|
@@ -484,7 +484,7 @@ class fe extends Q {
|
|
|
484
484
|
this._chartRoot?.dispose(), this._chartRoot = void 0, e && this._createChart(e);
|
|
485
485
|
}
|
|
486
486
|
render() {
|
|
487
|
-
return _`<div class="root" @
|
|
487
|
+
return _`<div class="root" @keydown=${this._handleMediaKeydown}><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this._renderMedia()}</div>`;
|
|
488
488
|
}
|
|
489
489
|
_renderMedia() {
|
|
490
490
|
const { formattedMediaInfoCount: e, activeMediaInfoIndex: t } = this, i = this._renderMediaText();
|
|
@@ -503,8 +503,8 @@ class fe extends Q {
|
|
|
503
503
|
_renderImageMediaInfo(e) {
|
|
504
504
|
if (!e.value)
|
|
505
505
|
return null;
|
|
506
|
-
const { _refreshIntervalInfo: t } = this, { value: i, refreshInterval: a, altText: n, title: s } = e, { sourceURL: o, linkURL: r } = i,
|
|
507
|
-
return (r ? _`<a href=${r ?? y} rel=${d ?? y} target=${
|
|
506
|
+
const { _refreshIntervalInfo: t } = this, { value: i, refreshInterval: a, altText: n, title: s } = e, { sourceURL: o, linkURL: r } = i, m = se(r ?? void 0) ? "_blank" : "_self", d = m === "_blank" ? "noreferrer" : "", l = a ? t : null, p = l ? l.sourceURL : o, u = _`<img alt=${(n || s) ?? y} src=${p ?? void 0 ?? y}>`;
|
|
507
|
+
return (r ? _`<a href=${r ?? y} rel=${d ?? y} target=${m ?? y} title=${s ?? y}>${u}</a>` : null) ?? u;
|
|
508
508
|
}
|
|
509
509
|
_renderChartMediaInfo(e) {
|
|
510
510
|
const { activeMediaInfoIndex: t, formattedMediaInfoCount: i } = this;
|
|
@@ -525,7 +525,7 @@ class fe extends Q {
|
|
|
525
525
|
return _`<button .ariaLabel=${i} class="pagination-button" @click=${n} tabindex=0 title=${i ?? y} type=button><calcite-icon flip-rtl class="pagination-icon" .icon=${a} scale=s></calcite-icon></button>`;
|
|
526
526
|
}
|
|
527
527
|
async _renderChart(e) {
|
|
528
|
-
const { root: t, mediaInfo: i } = e, { value: a, type: n } = i, [{ default: s }, { default: o }, { default: r }, { esriChartColorSet: c }, { ColorSet:
|
|
528
|
+
const { root: t, mediaInfo: i } = e, { value: a, type: n } = i, [{ default: s }, { default: o }, { default: r }, { esriChartColorSet: c }, { ColorSet: m, Theme: d }] = await Promise.all([
|
|
529
529
|
import("@amcharts/amcharts5/themes/Animated.js"),
|
|
530
530
|
import("@amcharts/amcharts5/themes/Dark.js"),
|
|
531
531
|
import("@amcharts/amcharts5/themes/Responsive.js"),
|
|
@@ -535,12 +535,12 @@ class fe extends Q {
|
|
|
535
535
|
l.rule("ColorSet").set("colors", c), l.rule("ColorSet").set("reuse", !0);
|
|
536
536
|
const p = [r.new(t), l];
|
|
537
537
|
ie(this.el) === "dark" && p.push(o.new(t)), this._canAnimateChart() && p.push(s.new(t)), t.setThemes(p);
|
|
538
|
-
const u = await this._getRendererColors(),
|
|
538
|
+
const u = await this._getRendererColors(), f = await this._getSeriesColors(a.series), h = m.new(t, {}), g = f.get(a.series[0]), x = g ? {
|
|
539
539
|
lineSettings: {
|
|
540
540
|
stroke: g
|
|
541
541
|
}
|
|
542
542
|
} : void 0, I = a.series.map((v, M) => {
|
|
543
|
-
const b =
|
|
543
|
+
const b = f.get(v) || u.get(v.fieldName) || h.getIndex(M);
|
|
544
544
|
return {
|
|
545
545
|
[C]: v.tooltip,
|
|
546
546
|
[w]: v.value,
|
|
@@ -554,7 +554,7 @@ class fe extends Q {
|
|
|
554
554
|
n === "pie-chart" ? this._createPieChart(e, I) : this._createXYChart(e, I);
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
B("arcgis-feature-media",
|
|
557
|
+
B("arcgis-feature-media", pe);
|
|
558
558
|
export {
|
|
559
|
-
|
|
559
|
+
pe as ArcgisFeatureMedia
|
|
560
560
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as L } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as R, html as a } from "lit";
|
|
4
4
|
import { keyed as D } from "lit/directives/keyed.js";
|
|
5
5
|
import B from "@arcgis/core/widgets/Features/FeaturesViewModel.js";
|
|
@@ -19,17 +19,17 @@ import { renderingSanitizer as F } from "@arcgis/core/applications/Components/sa
|
|
|
19
19
|
import { initializeProjection as W } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
20
20
|
import X from "@arcgis/core/support/actions/ActionButton.js";
|
|
21
21
|
import { createRef as b, ref as w } from "lit/directives/ref.js";
|
|
22
|
-
import {
|
|
23
|
-
const
|
|
22
|
+
import { b as J, a as Q, c as Y } from "../../chunks/keyboard-utils.js";
|
|
23
|
+
const ee = R`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-color-background: var(--calcite-color-foreground-1);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.root img{image-orientation:from-image}.flow-item-collapsed{--calcite-flow-item-header-border-block-end: none}.container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1)}.container calcite-list{width:100%}.container:not(:empty,.content-hidden){padding:var(--arcgis-internal-padding-md, var(--calcite-spacing-md))}.root .arcgis-feature,.root .arcgis-feature-relationship,.root .arcgis-feature-utility-network-associations{background-color:transparent}.heading{word-break:break-word;word-wrap:break-word}.header,.footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.footer{flex:1}.pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.pagination-action-bar{flex:1}.pagination-menu-button{padding-inline:var(--calcite-spacing-xxs);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.header{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.content-feature{--calcite-flow-item-footer-padding: 0}.feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.action-exit{transform:scaleX(-1)}`, te = new X({
|
|
24
24
|
icon: "magnifying-glass-plus",
|
|
25
25
|
id: "zoom-to-feature",
|
|
26
26
|
title: "{messages.zoom}"
|
|
27
|
-
}), M =
|
|
28
|
-
function
|
|
27
|
+
}), M = te.clone(), ie = 25;
|
|
28
|
+
function se(k) {
|
|
29
29
|
return k?.declaredClass.startsWith("esri.layers.") ?? !1;
|
|
30
30
|
}
|
|
31
|
-
const
|
|
32
|
-
class
|
|
31
|
+
const ne = U(B);
|
|
32
|
+
class oe extends Z {
|
|
33
33
|
constructor() {
|
|
34
34
|
super(...arguments), this._direction = P(), this._fetchFeaturesController = null, this._featureMenuIntersectionObserverCallback = ([e]) => {
|
|
35
35
|
e?.isIntersecting && this.viewModel.featurePage != null && this.viewModel.featurePage++;
|
|
@@ -38,13 +38,13 @@ class ne extends Z {
|
|
|
38
38
|
}), this._featureMenuIntersectionObserverNode = null, this._rootFlowItemNode = b(), this._featureMenuViewportNode = b(), this._actionBarMenuNode = b(), this._flowContainerNode = b(), this.messages = H(), this._selectedFeatureComponent = b(), this._cancelOpenRelatedFeature = () => {
|
|
39
39
|
const { _openRelatedFeatureAbortController: e } = this;
|
|
40
40
|
e && e.abort(), this._openRelatedFeatureAbortController = null;
|
|
41
|
-
}, this._spinnerVisible = !1, this._spinnerVisibilityTimeout = null, this._openRelatedFeatureAbortController = null, this.flowItems = new E(), this.viewModel =
|
|
41
|
+
}, this._spinnerVisible = !1, this._spinnerVisibilityTimeout = null, this._openRelatedFeatureAbortController = null, this.flowItems = new E(), this.viewModel = ne(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = this.viewModel.featureMenuOpen, this.featureMenuTitle = this.viewModel.featureMenuTitle, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureViewModelAbilities = this.viewModel.featureViewModelAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new E(), this.heading = this.viewModel.title, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSelectFeature = !1, this.hideSpinner = !1, this.hideContent = !1, this.hideExpressionContent = !1, this.hideLastEditedInfo = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.map = this.viewModel.map, this.open = this.viewModel.visible, this.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = z()("active", "collapsed", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = T(), this.arcgisClose = T(), this.arcgisTriggerAction = T();
|
|
42
42
|
}
|
|
43
43
|
static {
|
|
44
44
|
this.properties = { _openRelatedFeatureAbortController: 16, flowItems: 16, _hideActionText: 16, _featureNavigationVisible: 16, _isCollapsed: 16, _collapseEnabled: 16, _featureFlowItemSelected: 16, viewModel: 0, actions: 0, active: 0, autoDestroyDisabled: 5, collapseDirection: 1, collapsed: 5, content: 1, defaultPopupTemplateEnabled: 5, effectiveHeading: 32, featureCount: 9, featureMenuOpen: 5, featureMenuTitle: 1, featureNavigationTop: 5, features: 0, featuresPerPage: 9, featureViewModelAbilities: 0, goToOverride: 0, headerActions: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideHeading: 5, hideSelectFeature: 5, hideSpinner: 5, hideContent: 5, chartAnimationDisabled: 5, hideAttachmentsContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, hideRelationshipContent: 5, hideTextContent: 5, hideUtilityNetworkContent: 5, hideLastEditedInfo: 5, highlightDisabled: 5, icon: 1, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, map: 0, messageOverrides: 0, open: 5, referenceElement: 1, promises: 0, responsiveActionsEnabled: 5, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, showCollapseButton: 5, spatialReference: 0, state: 32, timeZone: 1, updateLocationEnabled: 5, view: 0 };
|
|
45
45
|
}
|
|
46
46
|
static {
|
|
47
|
-
this.styles =
|
|
47
|
+
this.styles = ee;
|
|
48
48
|
}
|
|
49
49
|
get _hideActionText() {
|
|
50
50
|
if (!this.responsiveActionsEnabled)
|
|
@@ -207,7 +207,7 @@ class ne extends Z {
|
|
|
207
207
|
const i = s?.graphic;
|
|
208
208
|
if (!i)
|
|
209
209
|
return;
|
|
210
|
-
const n = q(i), o =
|
|
210
|
+
const n = q(i), o = se(n) ? n : null, l = t.get(o) ?? [];
|
|
211
211
|
t.set(o, [...l, s]);
|
|
212
212
|
}), t;
|
|
213
213
|
}
|
|
@@ -278,7 +278,7 @@ class ne extends Z {
|
|
|
278
278
|
}
|
|
279
279
|
_onMainKeydown(e) {
|
|
280
280
|
const { key: t } = e;
|
|
281
|
-
J(t, this._direction) && (e.stopPropagation(), this._handleFeatureMenuBack(), this.previous(), this.setFocus()),
|
|
281
|
+
e.defaultPrevented || J(e) || (Q(t, this._direction, { horizontalOnly: !0 }) && (e.stopPropagation(), e.preventDefault(), this._handleFeatureMenuBack(), this.previous(), this.setFocus()), Y(t, this._direction, { horizontalOnly: !0 }) && (e.stopPropagation(), e.preventDefault(), this._handleFeatureMenuBack(), this.next(), this.setFocus()));
|
|
282
282
|
}
|
|
283
283
|
_featureMenuViewportScrollTop() {
|
|
284
284
|
this._featureMenuViewportNode.value?.scrollContentTo({ top: 0 });
|
|
@@ -330,7 +330,7 @@ class ne extends Z {
|
|
|
330
330
|
_getSpinnerTrackLocation() {
|
|
331
331
|
return !this.hideSpinner && this.viewModel.visible && this.viewModel?.waitingForResult ? this._spinnerVisible ? !0 : (this._spinnerVisibilityTimeout ??= setTimeout(() => {
|
|
332
332
|
this._spinnerVisibilityTimeout = null, this._spinnerVisible = !0, this._createSpinner();
|
|
333
|
-
},
|
|
333
|
+
}, ie), !1) : (this._clearSpinnerVisibilityTimeout(), this._spinnerVisible = !1, !1);
|
|
334
334
|
}
|
|
335
335
|
_createSpinner() {
|
|
336
336
|
const e = this.referenceElement;
|
|
@@ -403,13 +403,13 @@ class ne extends Z {
|
|
|
403
403
|
const { viewModel: e, hideCloseButton: t, featureMenuTitle: s, messages: i, initialDisplayMode: n, featureMenuOpen: o, _featureFlowItemSelected: l, _collapseEnabled: c, _isCollapsed: f, featureNavigationTop: g, headingLevel: v } = this, { active: p, featureViewModels: m, streamingFeatures: d, pendingPromisesCount: _ } = e, $ = _ > 0 || d, N = s ?? i.selectFeature;
|
|
404
404
|
if (n === "feature" && !o)
|
|
405
405
|
return null;
|
|
406
|
-
const
|
|
406
|
+
const O = !l;
|
|
407
407
|
return a`<calcite-flow-item class=${I(y({
|
|
408
408
|
"flow-item-collapsed": f
|
|
409
409
|
}))} .closable=${n === "list" && !t} .closed=${!p} .collapsed=${n === "list" && f} .collapseDirection=${this.collapseDirection ?? (g ? "down" : "up")} .collapsible=${n === "list" && c} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} .description=${this.hideFeatureMenuHeading ? void 0 : u(i.total ?? "", {
|
|
410
410
|
total: m.length
|
|
411
|
-
})} .heading=${this.hideFeatureMenuHeading ? void 0 : N} .headingLevel=${v} .loading=${e.waitingForContents} .selected=${
|
|
412
|
-
|
|
411
|
+
})} .heading=${this.hideFeatureMenuHeading ? void 0 : N} .headingLevel=${v} .loading=${e.waitingForContents} .selected=${O} @calciteFlowItemBack=${(S) => {
|
|
412
|
+
S.preventDefault(), this._handleFeatureMenuBack();
|
|
413
413
|
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${w(this._featureMenuViewportNode)}>${n === "list" ? this._renderHeaderActions() : null}${$ ? a`<calcite-loader class="loader" inline .label=${i.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${w(this._featureMenuIntersectionObserverCreated)}></div>${n === "feature" ? a`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${i.back}</calcite-button>` : null}</calcite-flow-item>`;
|
|
414
414
|
}
|
|
415
415
|
_renderFlowItem(e, t) {
|
|
@@ -437,7 +437,7 @@ class ne extends Z {
|
|
|
437
437
|
return t ? a`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${w(this._selectedFeatureComponent)}></arcgis-feature>` : typeof e == "string" ? D(e, a`<div .innerHTML=${F.sanitize(e) ?? ""}></div>`) : e ?? null;
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
|
|
440
|
+
L("arcgis-features", oe);
|
|
441
441
|
export {
|
|
442
|
-
|
|
442
|
+
oe as ArcgisFeatures
|
|
443
443
|
};
|