@arcgis/map-components 5.2.0-next.147 → 5.2.0-next.149
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/2SNOYPTJ.js +2 -0
- package/dist/cdn/{2COOBXHG.js → 5K2YXXCE.js} +1 -1
- package/dist/cdn/{QOQRNYM5.js → 6YP2FZDY.js} +1 -1
- package/dist/cdn/{7UWE25UH.js → BOJOJ5VV.js} +1 -1
- package/dist/cdn/I3KUEZ7I.js +2 -0
- package/dist/cdn/J7YDON4X.js +2 -0
- package/dist/cdn/KVN3M4C6.js +2 -0
- package/dist/cdn/{3JRPMLOZ.js → LOIUI4KA.js} +1 -1
- package/dist/cdn/RZNCVTKT.js +2 -0
- package/dist/cdn/X3DYJCL3.js +2 -0
- package/dist/cdn/ZPWEX7I6.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +120 -106
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +3 -3
- package/dist/components/arcgis-editor/customElement.d.ts +10 -0
- package/dist/components/arcgis-editor/customElement.js +3 -0
- package/dist/components/arcgis-elevation-profile/customElement.js +93 -89
- package/dist/components/arcgis-features/customElement.d.ts +1 -1
- package/dist/components/arcgis-features-next/customElement.d.ts +2 -2
- package/dist/components/arcgis-features-next/customElement.js +102 -92
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-link-chart/customElement.d.ts +20 -10
- package/dist/components/arcgis-link-chart/customElement.js +5 -5
- package/dist/components/arcgis-map/customElement.d.ts +22 -12
- package/dist/components/arcgis-map/customElement.js +9 -9
- package/dist/components/arcgis-popup/customElement.d.ts +2 -2
- package/dist/components/arcgis-popup/customElement.js +32 -28
- package/dist/components/arcgis-scene/customElement.d.ts +20 -10
- package/dist/components/arcgis-scene/customElement.js +9 -9
- package/dist/components/arcgis-table-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-time-bar/customElement.js +23 -24
- package/dist/components/arcgis-time-bar-slider/customElement.js +46 -45
- package/dist/components/arcgis-video/customElement.js +6 -6
- 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 +4 -4
- package/dist/types/lumina.d.ts +3 -3
- package/dist/types/preact.d.ts +3 -3
- package/dist/types/react.d.ts +3 -3
- package/dist/types/stencil.d.ts +3 -3
- package/package.json +6 -6
- package/dist/cdn/3KZAH5OY.js +0 -2
- package/dist/cdn/63FA3UEL.js +0 -2
- package/dist/cdn/AENNGCAE.js +0 -2
- package/dist/cdn/IETZFE3P.js +0 -2
- package/dist/cdn/JRQYT5SI.js +0 -2
- package/dist/cdn/NBDQBLRI.js +0 -2
- package/dist/cdn/R6HUY6QI.js +0 -2
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as N } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as B, html as a } from "lit";
|
|
4
|
-
import { keyed as
|
|
4
|
+
import { keyed as I } from "lit/directives/keyed.js";
|
|
5
5
|
import H from "@arcgis/core/support/actions/ActionButton.js";
|
|
6
6
|
import E from "@arcgis/core/core/Collection.js";
|
|
7
7
|
import P from "@arcgis/core/popup/FeaturesModel.js";
|
|
8
8
|
import { LitElement as z, createEvent as y, renderElement as V, nothing as g, safeClassMap as x } from "@arcgis/lumina";
|
|
9
9
|
import { useDirection as Z, usePropertyChange as U, bypassReadOnly as D } from "@arcgis/lumina/controllers";
|
|
10
|
-
import { classes as
|
|
10
|
+
import { classes as T } from "@arcgis/toolkit/dom";
|
|
11
11
|
import { slotChangeHasContent as S } from "@arcgis/toolkit/dom/slots";
|
|
12
|
-
import { createRef as _, ref as
|
|
12
|
+
import { createRef as _, ref as m } from "lit/directives/ref.js";
|
|
13
13
|
import { initializeProjection as K } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
14
14
|
import { t as j } from "../../chunks/action-utils.js";
|
|
15
15
|
import { m as q } from "../../chunks/useViewModel.js";
|
|
16
16
|
import { renderingSanitizer as w } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
17
17
|
import { stripHTML as b } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
18
|
-
import { substitute as
|
|
18
|
+
import { substitute as h, formatNumber as C } from "@arcgis/core/intl.js";
|
|
19
19
|
import { u as G } from "../../chunks/useT9n.js";
|
|
20
|
-
import { when as W, watch as
|
|
20
|
+
import { when as W, watch as u } from "@arcgis/core/core/reactiveUtils.js";
|
|
21
21
|
import { getGraphicOriginTitle as X } from "@arcgis/core/graphic/getGraphicOriginTitle.js";
|
|
22
|
-
import { a as
|
|
22
|
+
import { a as R } from "../../chunks/maybe.js";
|
|
23
23
|
import { b as J, a as Q, c as Y } from "../../chunks/keyboard-utils.js";
|
|
24
|
-
import { g as
|
|
25
|
-
const ee = B`: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)}.content-feature{--calcite-flow-item-footer-padding: 0;--calcite-flow-header-top-space: 0}.feature-menu-observer{
|
|
24
|
+
import { g as k } from "../../chunks/feature-utils.js";
|
|
25
|
+
const ee = B`: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)}.content-feature{--calcite-flow-item-footer-padding: 0;--calcite-flow-header-top-space: 0}.feature-menu-observer{flex:0 0 1px;height:1px;margin-block-start:-1px}.action-exit{transform:scaleX(-1)}.flow-item-drill-in{--calcite-flow-item-footer-padding: 0}.diagnostics-notice{padding:var(--calcite-space-md)}`;
|
|
26
26
|
function te(v) {
|
|
27
27
|
return v?.declaredClass.startsWith("esri.layers.") ?? !1;
|
|
28
28
|
}
|
|
@@ -38,11 +38,11 @@ class oe extends z {
|
|
|
38
38
|
id: "zoom-to-feature",
|
|
39
39
|
title: "{messages.zoom}"
|
|
40
40
|
}), this._fetchFeaturesController = null, this._featureMenuIntersectionObserverCallback = ([e]) => {
|
|
41
|
-
e?.isIntersecting && this.
|
|
41
|
+
e?.isIntersecting && this._loadMoreFeatures();
|
|
42
42
|
}, this._featureMenuIntersectionObserver = new IntersectionObserver(this._featureMenuIntersectionObserverCallback, {
|
|
43
43
|
root: window.document
|
|
44
44
|
}), this._featureMenuIntersectionObserverNode = null, this._setFocusAnimationFrameId = null, this._setFocusAnimationFrameResolve = null, this._rootFlowItemNode = _(), this._featureMenuViewportNode = _(), this._actionBarMenuNode = _(), this._flowContainerNode = _(), this._aggregatedFeaturesComponent = _(), this.messages = G(), this._selectedFeatureComponent = _(), this._actionFlowItems = /* @__PURE__ */ new WeakSet(), this._direction = Z(), this._cancelOpenRelatedFeature = () => {
|
|
45
|
-
this._openRelatedFeatureAbortController =
|
|
45
|
+
this._openRelatedFeatureAbortController = R(this._openRelatedFeatureAbortController);
|
|
46
46
|
}, this._spinnerVisible = !1, this._spinnerVisibilityTimeout = null, this._openRelatedFeatureAbortController = null, this.flowItems = new E(), this._aggregatedFeatureCount = 0, this._selectedAggregatedFeatureIndex = -1, this._aggregatedFeaturesLoading = !1, this._hasActionsStartSlotContent = !1, this._hasActionsEndSlotContent = !1, this.viewModel = se(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.focusTrapEnabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.diagnostics = this.viewModel.diagnostics, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.effectiveHeading = this.viewModel.effectiveHeading, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = !1, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureItemAbilities = this.viewModel.featureItemAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new E(), this.heading = this.viewModel.heading, 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.chartAnimationDisabled = this.viewModel.featureItemAbilities?.chartAnimation, this.hideAttachmentsContent = this.viewModel.featureItemAbilities?.attachmentsContent, this.hideEmptyRelationshipContent = !1, this.hideCustomContent = this.viewModel.featureItemAbilities?.customContent, this.hideExpressionContent = !1, this.hideFieldsContent = this.viewModel.featureItemAbilities?.fieldsContent, this.hideMediaContent = this.viewModel.featureItemAbilities?.mediaContent, this.hideRelationshipContent = this.viewModel.featureItemAbilities?.relationshipContent, this.hideTextContent = this.viewModel.featureItemAbilities?.textContent, this.hideUtilityNetworkContent = this.viewModel.featureItemAbilities?.utilityNetworkAssociationsContent, 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.open, 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.arcgisClose = y(), this.arcgisPropertyChange = U()("active", "collapsed", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = y(), this.arcgisTriggerAction = y();
|
|
47
47
|
}
|
|
48
48
|
static {
|
|
@@ -70,7 +70,7 @@ class oe extends z {
|
|
|
70
70
|
return this.viewModel.selectedFeatureItem?.heading;
|
|
71
71
|
}
|
|
72
72
|
get _selectedFeatureHeadingText() {
|
|
73
|
-
return this._selectedFeatureHeading
|
|
73
|
+
return this._selectedFeatureHeading || (this.viewModel.selectedFeatureItem?.state === "loading" ? this.messages.loading : this.messages.untitled);
|
|
74
74
|
}
|
|
75
75
|
get _selectedFeatureContent() {
|
|
76
76
|
return this.viewModel.selectedFeatureItem?.content;
|
|
@@ -89,12 +89,12 @@ class oe extends z {
|
|
|
89
89
|
}
|
|
90
90
|
async fetchFeatures(e, t) {
|
|
91
91
|
this._cancelFetchingFeatures();
|
|
92
|
-
const { signal: i } = t ?? {}, s = new AbortController(), { signal: n } = s,
|
|
92
|
+
const { signal: i } = t ?? {}, s = new AbortController(), { signal: n } = s, o = i ? AbortSignal.any([n, i]) : n;
|
|
93
93
|
this._fetchFeaturesController = s, !e && this.view && this.location && (await K(this.location.spatialReference, this.view.spatialReference, null, {
|
|
94
|
-
signal:
|
|
94
|
+
signal: o
|
|
95
95
|
}), e = this.view.toScreen(this.location) ?? void 0), e && await this.viewModel.fetchFeatures(e, {
|
|
96
96
|
...t,
|
|
97
|
-
signal:
|
|
97
|
+
signal: o
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
next() {
|
|
@@ -122,30 +122,39 @@ class oe extends z {
|
|
|
122
122
|
}
|
|
123
123
|
updated() {
|
|
124
124
|
const e = this._selectedFeatureComponent.value ?? void 0;
|
|
125
|
-
this.selectedFeatureComponent !== e && D(() => this.selectedFeatureComponent = e)
|
|
125
|
+
this.selectedFeatureComponent !== e && D(() => this.selectedFeatureComponent = e), this.componentOnReady().then(() => {
|
|
126
|
+
const t = this._featureMenuIntersectionObserverNode;
|
|
127
|
+
this.isConnected && t && (this._featureMenuIntersectionObserver.unobserve(t), this._featureMenuIntersectionObserver.observe(t));
|
|
128
|
+
});
|
|
126
129
|
}
|
|
127
130
|
loaded() {
|
|
128
131
|
this.manager.onLifecycle(() => [
|
|
129
132
|
W(() => [this.initialDisplayMode === "list" && !!this.viewModel?.selectedFeature, this.viewModel?.active], () => {
|
|
130
133
|
this.setFocus();
|
|
131
134
|
}),
|
|
132
|
-
|
|
135
|
+
u(() => [this.flowItems?.length, this.featureMenuOpen], () => {
|
|
133
136
|
this.setFocus();
|
|
134
137
|
}),
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
138
|
+
u(() => this.viewModel?.selectedFeatureIndex, (e, t) => this._selectedFeatureIndexUpdated(e, t)),
|
|
139
|
+
u(() => this.viewModel?.view?.scale, () => this._viewScaleChange()),
|
|
140
|
+
u(() => this.viewModel?.view, (e, t) => t && this._viewChange()),
|
|
141
|
+
u(() => this._spinnerEl?.screenLocation, () => this._closeOpenActionMenu()),
|
|
142
|
+
u(() => this.selectedFeatureComponent?.viewModel, () => this._removeFlowItems()),
|
|
143
|
+
u(() => [this.viewModel?.features.at(0), this.viewModel?.featureCount ?? 0], ([e, t], i) => {
|
|
144
|
+
const [s, n] = i ?? [void 0, 0];
|
|
145
|
+
(e !== s || t < n) && this._featureMenuViewportScrollTop();
|
|
146
|
+
}),
|
|
147
|
+
u(() => [this.featureMenuOpen, this.initialDisplayMode, this.open], () => {
|
|
148
|
+
this.viewModel.featureMenuOpen = this.featureMenuOpen, this.open && (this.featureMenuOpen || this.initialDisplayMode === "list") && (this.viewModel.featurePage = 1);
|
|
149
|
+
}, { initial: !0 }),
|
|
150
|
+
u(() => this.flowItems.toArray(), () => this._handleFlowItemsChange(), { initial: !0 }),
|
|
151
|
+
u(() => this.viewModel.aggregatedFeaturesEnabled, (e) => {
|
|
143
152
|
e || (this._aggregatedFeatureCount = 0, this._selectedAggregatedFeatureIndex = -1, this._aggregatedFeaturesLoading = !1, this._removeFlowItems());
|
|
144
153
|
}),
|
|
145
|
-
|
|
154
|
+
u(() => this.referenceElement, (e, t) => {
|
|
146
155
|
this._removeSpinner(t), this._createSpinner();
|
|
147
156
|
}, { initial: !0 }),
|
|
148
|
-
|
|
157
|
+
u(() => [
|
|
149
158
|
this.hideSpinner,
|
|
150
159
|
this.viewModel?.view,
|
|
151
160
|
this.viewModel?.location,
|
|
@@ -158,6 +167,10 @@ class oe extends z {
|
|
|
158
167
|
disconnectedCallback() {
|
|
159
168
|
super.disconnectedCallback(), this._clearSpinnerVisibilityTimeout(), this._cancelSetFocusAnimationFrame(), this._removeSpinner(this.referenceElement);
|
|
160
169
|
}
|
|
170
|
+
_loadMoreFeatures() {
|
|
171
|
+
const { viewModel: e } = this, { featurePage: t, featuresPerPage: i, features: s } = e;
|
|
172
|
+
e.open && (this.initialDisplayMode === "list" || this.featureMenuOpen) && t != null && t * i < s.length && (e.featurePage = t + 1);
|
|
173
|
+
}
|
|
161
174
|
_resolveSetFocusAnimationFrame() {
|
|
162
175
|
const e = this._setFocusAnimationFrameResolve;
|
|
163
176
|
this._setFocusAnimationFrameResolve = null, e?.();
|
|
@@ -166,21 +179,19 @@ class oe extends z {
|
|
|
166
179
|
this._setFocusAnimationFrameId != null && (cancelAnimationFrame(this._setFocusAnimationFrameId), this._setFocusAnimationFrameId = null), this._resolveSetFocusAnimationFrame();
|
|
167
180
|
}
|
|
168
181
|
_cancelFetchingFeatures() {
|
|
169
|
-
this._fetchFeaturesController =
|
|
182
|
+
this._fetchFeaturesController = R(this._fetchFeaturesController);
|
|
170
183
|
}
|
|
171
184
|
_handleClose() {
|
|
172
185
|
this.close(), this.arcgisClose.emit();
|
|
173
186
|
}
|
|
174
187
|
_groupResultsByLayer() {
|
|
175
|
-
const {
|
|
176
|
-
|
|
177
|
-
const
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
o || (o = [], t.set(r, o)), o.push(i);
|
|
183
|
-
}), t;
|
|
188
|
+
const { features: e, featurePage: t, featuresPerPage: i } = this.viewModel, s = /* @__PURE__ */ new Map(), n = Math.min((t ?? 0) * i, e.length);
|
|
189
|
+
for (let o = 0; o < n; o++) {
|
|
190
|
+
const r = e[o], l = k(r), c = te(l) ? l : null;
|
|
191
|
+
let d = s.get(c);
|
|
192
|
+
d || (d = [], s.set(c, d)), d.push(o);
|
|
193
|
+
}
|
|
194
|
+
return s;
|
|
184
195
|
}
|
|
185
196
|
_handleCollapseToggle() {
|
|
186
197
|
this.collapsed = !this.collapsed;
|
|
@@ -200,8 +211,8 @@ class oe extends z {
|
|
|
200
211
|
const { labelPointExecute: n } = await import("@arcgis/core/geometry/operators/labelPointOperator.js");
|
|
201
212
|
if (t.signal.aborted)
|
|
202
213
|
return;
|
|
203
|
-
const
|
|
204
|
-
|
|
214
|
+
const o = n(s);
|
|
215
|
+
o != null && (this.location = o), this.features = [i], this.open = !0, this._openRelatedFeatureAbortController = null;
|
|
205
216
|
}
|
|
206
217
|
_handlePaginationMenuButton() {
|
|
207
218
|
this._updateFeatureMenu();
|
|
@@ -241,18 +252,22 @@ class oe extends z {
|
|
|
241
252
|
this._featureMenuIntersectionObserverNode && this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode);
|
|
242
253
|
}
|
|
243
254
|
_featureMenuIntersectionObserverCreated(e) {
|
|
244
|
-
this.
|
|
255
|
+
e !== this._featureMenuIntersectionObserverNode && (this._unobserveFeatureMenuObserver(), this._featureMenuIntersectionObserverNode = e ?? null);
|
|
245
256
|
}
|
|
246
257
|
_getActionLabel(e, t) {
|
|
247
258
|
const { messages: i } = this;
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
259
|
+
if (e.id === "zoom-to-feature") {
|
|
260
|
+
const s = t ? b(t.heading || (("state" in t && t.state === "loading" ? i.loading : i.untitled) ?? "")) : this._selectedFeatureHeadingText;
|
|
261
|
+
return h(i.zoomLabel ?? "", {
|
|
262
|
+
messages: i,
|
|
263
|
+
title: s
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
return null;
|
|
252
267
|
}
|
|
253
268
|
_getActionTitle(e, t) {
|
|
254
|
-
const { messages: i } = this, s = t ? t.graphic : this.selectedFeature, { id: n } = e,
|
|
255
|
-
return l &&
|
|
269
|
+
const { messages: i } = this, s = t ? t.graphic : this.selectedFeature, { id: n } = e, o = s?.attributes, r = e.title ?? "", l = n === "zoom-to-feature" ? h(r, { messages: i }) : n === "remove-selected-feature" ? h(r, { messages: i }) : n === "zoom-to-aggregated-features" ? h(r, { messages: i }) : n === "browse-aggregated-features" ? h(r, { messages: i }) : e.title;
|
|
270
|
+
return l && o ? h(l, o) : l ?? "";
|
|
256
271
|
}
|
|
257
272
|
_onMainKeydown(e) {
|
|
258
273
|
const { key: t } = e;
|
|
@@ -273,7 +288,7 @@ class oe extends z {
|
|
|
273
288
|
j(e, this.viewModel, i), this.arcgisTriggerAction.emit({ action: e });
|
|
274
289
|
}
|
|
275
290
|
_viewScaleChange() {
|
|
276
|
-
const { selectedFeature: e } = this, t =
|
|
291
|
+
const { selectedFeature: e } = this, t = k(e);
|
|
277
292
|
!e?.isAggregate || ie(t) !== "cluster" || (this.viewModel.aggregatedFeaturesEnabled = !1, this.open = !1, this.clear());
|
|
278
293
|
}
|
|
279
294
|
_viewChange() {
|
|
@@ -344,7 +359,7 @@ class oe extends z {
|
|
|
344
359
|
if (t && !t.allActions)
|
|
345
360
|
return [];
|
|
346
361
|
const s = t ? t.isFeatureFromTable : i?.isFeatureFromTable;
|
|
347
|
-
return (t?.allActions ?? i?.allActions ?? (!e && this.viewModel.includeDefaultActions ? this.viewModel.defaultActions.concat(this.viewModel.actions) : this.viewModel.actions)).toArray().filter((
|
|
362
|
+
return (t?.allActions ?? i?.allActions ?? (!e && this.viewModel.includeDefaultActions ? this.viewModel.defaultActions.concat(this.viewModel.actions) : this.viewModel.actions)).toArray().filter((r) => !(e && r.id === "browse-aggregated-features") && !(s && !this.location && r.id === this._zoomToFeature.id));
|
|
348
363
|
}
|
|
349
364
|
render() {
|
|
350
365
|
return a`<div class="root">${this._renderContentContainer()}</div>`;
|
|
@@ -363,36 +378,31 @@ class oe extends z {
|
|
|
363
378
|
}
|
|
364
379
|
_renderFeaturePaginationText(e, t) {
|
|
365
380
|
const { messages: i } = this;
|
|
366
|
-
return a`<div class="pagination-text">${
|
|
367
|
-
index:
|
|
368
|
-
total:
|
|
381
|
+
return a`<div class="pagination-text">${h(i.pageText ?? "", {
|
|
382
|
+
index: C(t + 1),
|
|
383
|
+
total: C(e)
|
|
369
384
|
})}</div>`;
|
|
370
385
|
}
|
|
371
386
|
_renderFeatureMenuButton() {
|
|
372
387
|
const { messages: e, viewModel: t } = this, { featureCount: i, streamingFeatures: s, selectedFeatureIndex: n } = t;
|
|
373
|
-
return a`<calcite-action class="pagination-menu-button" icon=list .label=${e.showAllFeatures ?? ""} .loading=${s} @click=${this._handlePaginationMenuButton} .text=${
|
|
374
|
-
index:
|
|
375
|
-
total:
|
|
388
|
+
return a`<calcite-action class="pagination-menu-button" icon=list .label=${e.showAllFeatures ?? ""} .loading=${s} @click=${this._handlePaginationMenuButton} .text=${h(e.pageText ?? "", {
|
|
389
|
+
index: C(n + 1),
|
|
390
|
+
total: C(i)
|
|
376
391
|
})} text-enabled title=${e.showAllFeatures ?? "" ?? g}></calcite-action>`;
|
|
377
392
|
}
|
|
378
393
|
_renderPagination(e, t) {
|
|
379
394
|
const { previous: i, next: s } = this.messages;
|
|
380
395
|
return a`<calcite-action-bar class="pagination-action-bar" expand-toggle-disabled layout=horizontal overflow-mode=none scale=s><calcite-action-group scale=s><calcite-action class="pagination-previous" icon=chevron-left icon-flip-rtl .label=${i ?? ""} @click=${e} .text=${i ?? ""} title=${i ?? "" ?? g}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${s ?? ""} @click=${t} .text=${s ?? ""} title=${s ?? "" ?? g}></calcite-action></calcite-action-group></calcite-action-bar>`;
|
|
381
396
|
}
|
|
382
|
-
_renderFeatureMenuItem(e
|
|
383
|
-
const { initialDisplayMode:
|
|
384
|
-
return a`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${() => this._setActiveFeature(
|
|
397
|
+
_renderFeatureMenuItem(e) {
|
|
398
|
+
const { initialDisplayMode: t } = this, { featureModels: i, selectedFeatureIndex: s } = this.viewModel, n = i[e], o = e === s;
|
|
399
|
+
return a`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${() => this._setActiveFeature(e)} @mouseleave=${this._removeActiveFeature} @mouseover=${() => this._setActiveFeature(e)} .selected=${o} @calciteListItemSelect=${() => this._selectFeature(e)}><span .innerHTML=${(w.sanitize(n?.heading ?? "") || (n?.state === "loading" ? this.messages.loading : this.messages.untitled)) ?? ""} slot=content></span>${t === "list" ? a`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>` : null}</calcite-list-item>`;
|
|
385
400
|
}
|
|
386
401
|
_renderFeatureMenu() {
|
|
387
|
-
const { messages: e, viewModel: t } = this, i = this._groupResultsByLayer(), s =
|
|
388
|
-
t.
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
const o = i.get(r)?.map((c) => {
|
|
392
|
-
const u = s.get(c);
|
|
393
|
-
return u == null ? null : this._renderFeatureMenuItem(c, u);
|
|
394
|
-
}), l = r ? r.title ?? this.messages.untitled : null;
|
|
395
|
-
return !this.hideFeatureListLayerTitle && l !== null ? T(r ?? "map-graphics", a`<calcite-list-item-group .heading=${l}>${o}</calcite-list-item-group>`) : o;
|
|
402
|
+
const { messages: e, viewModel: t } = this, i = this._groupResultsByLayer(), s = this.initialDisplayMode === "list" ? "none" : "single";
|
|
403
|
+
return t.features.length ? a`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${s}>${Array.from(i, ([n, o]) => {
|
|
404
|
+
const r = o.map((c) => this._renderFeatureMenuItem(c)), l = n ? n.title ?? this.messages.untitled : null;
|
|
405
|
+
return !this.hideFeatureListLayerTitle && l !== null ? I(n ?? "map-graphics", a`<calcite-list-item-group .heading=${l}>${r}</calcite-list-item-group>`) : r;
|
|
396
406
|
})}</calcite-list>` : null;
|
|
397
407
|
}
|
|
398
408
|
_renderHeaderAction(e) {
|
|
@@ -403,14 +413,14 @@ class oe extends z {
|
|
|
403
413
|
return this.headerActions.map((e) => this._renderHeaderAction(e)).toArray();
|
|
404
414
|
}
|
|
405
415
|
_renderContentFeature(e) {
|
|
406
|
-
const { headingLevel: t, hideCloseButton: i, _isCollapsed: s, _collapseEnabled: n, featureNavigationTop:
|
|
407
|
-
if (
|
|
416
|
+
const { headingLevel: t, hideCloseButton: i, _isCollapsed: s, _collapseEnabled: n, featureNavigationTop: o, initialDisplayMode: r, selectedFeature: l, hideHeading: c } = this, { active: d, selectedFeatureItem: f, content: M } = this.viewModel, p = this._getHeading();
|
|
417
|
+
if (r === "list" && !l)
|
|
408
418
|
return null;
|
|
409
|
-
const F =
|
|
410
|
-
return a`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${x(
|
|
419
|
+
const F = f ? !f.content : !M;
|
|
420
|
+
return a`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${x(T({
|
|
411
421
|
"content-feature": !0,
|
|
412
422
|
"flow-item-collapsed": s
|
|
413
|
-
}))} .closable=${!i} .closed=${!
|
|
423
|
+
}))} .closable=${!i} .closed=${!d} .collapsed=${s} .collapseDirection=${this.collapseDirection ?? (o ? "down" : "up")} .collapsible=${n} .headingLevel=${t} .selected=${e} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} @keydown=${this._onMainKeydown} .heading=${!c && p ? b(p) : void 0} ${m(this._rootFlowItemNode)}>${this._renderHeader()}${!c && p ? a`<div slot=heading><div .innerHTML=${w.sanitize(p ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${x(T("container", "content-container", {
|
|
414
424
|
"content-hidden": F
|
|
415
425
|
}))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
|
|
416
426
|
}
|
|
@@ -431,49 +441,49 @@ class oe extends z {
|
|
|
431
441
|
return i?.size ? a`<calcite-notice class="diagnostics-notice" open kind=info scale=s><span slot=title>${e.maxRecordCountHeading}</span><div slot=message>${i.size <= ae ? this._renderDiagnosticsList(i) : this._renderDiagnosticsMultipleLayers()}</div></calcite-notice>` : null;
|
|
432
442
|
}
|
|
433
443
|
_renderFeatureMenuContainer() {
|
|
434
|
-
const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: s, initialDisplayMode: n, featureMenuOpen:
|
|
444
|
+
const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: s, initialDisplayMode: n, featureMenuOpen: o, _featureFlowItemSelected: r, _collapseEnabled: l, _isCollapsed: c, featureNavigationTop: d, headingLevel: f } = this, { active: M, features: p, streamingFeatures: F } = e, $ = i ?? s.selectFeature, A = h(s.backLabel ?? "", {
|
|
435
445
|
title: this._selectedFeatureHeadingText
|
|
436
446
|
});
|
|
437
|
-
if (n === "feature" && !
|
|
447
|
+
if (n === "feature" && !o)
|
|
438
448
|
return null;
|
|
439
|
-
const L = !
|
|
440
|
-
return a`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${x(
|
|
449
|
+
const L = !r;
|
|
450
|
+
return a`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${x(T({
|
|
441
451
|
"flow-item-collapsed": c
|
|
442
|
-
}))} .closable=${!t} .closed=${!
|
|
452
|
+
}))} .closable=${!t} .closed=${!M} .collapsed=${n === "list" && c} .collapseDirection=${this.collapseDirection ?? (d ? "down" : "up")} .collapsible=${n === "list" && l} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand, back: A }} .description=${this.hideFeatureMenuHeading ? void 0 : h(s.total ?? "", {
|
|
443
453
|
total: p.length
|
|
444
|
-
})} .heading=${this.hideFeatureMenuHeading ? void 0 :
|
|
445
|
-
|
|
446
|
-
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${
|
|
454
|
+
})} .heading=${this.hideFeatureMenuHeading ? void 0 : $} .headingLevel=${f} .loading=${e.waitingForResult} .selected=${L} @calciteFlowItemBack=${(O) => {
|
|
455
|
+
O.preventDefault(), this._handleFeatureMenuBack();
|
|
456
|
+
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${m(this._featureMenuViewportNode)}>${n === "list" ? this._renderHeaderActions() : null}${F ? a`<calcite-loader class="loader" inline .label=${s.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}${this._renderDiagnostics()}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" aria-hidden=true ${m(this._featureMenuIntersectionObserverCreated)}></div>${n === "feature" ? a`<calcite-button scale=s appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full .label=${A} title=${A ?? g}>${s.back}</calcite-button>` : null}</calcite-flow-item>`;
|
|
447
457
|
}
|
|
448
458
|
_renderFlowItem(e, t) {
|
|
449
|
-
const { hideCloseButton: i, active: s, hideHeading: n, hideSelectFeature:
|
|
459
|
+
const { hideCloseButton: i, active: s, hideHeading: n, hideSelectFeature: o, messages: r } = this, l = r.returnToInitialFeature ?? "", c = r?.selectFeature, d = "showAllEnabled" in e ? e.showAllEnabled : !1, f = e.flowType === "feature" || e.flowType === "feature-association" || e.flowType === "feature-relationship" && !d, p = e.flowType !== "feature" && f && "isFeatureFromTable" in e && !e.isFeatureFromTable && !o, F = e.flowType === "feature" && this.viewModel.aggregatedFeaturesEnabled ? a`<div class="footer" slot=footer>${this._renderPagination(() => {
|
|
450
460
|
this._aggregatedFeaturesComponent.value?.previous();
|
|
451
461
|
}, () => {
|
|
452
462
|
this._aggregatedFeaturesComponent.value?.next();
|
|
453
463
|
})}${this._renderFeaturePaginationText(this._aggregatedFeatureCount, this._selectedAggregatedFeatureIndex)}</div>` : null;
|
|
454
|
-
return a`<calcite-flow-item .closable=${!i} .closed=${!s} .focusTrapEnabled=${this.focusTrapEnabled} class="flow-item-drill-in" .description=${b(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${n ? void 0 : b(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(
|
|
455
|
-
|
|
456
|
-
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${n ? null : a`<div slot=heading><div .innerHTML=${w.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${w.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${l ?? ""} title=${l ?? "" ?? g}></calcite-action>${p ? a`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${c ?? ""} title=${c ?? g}></calcite-action>` : null}${
|
|
464
|
+
return a`<calcite-flow-item .closable=${!i} .closed=${!s} .focusTrapEnabled=${this.focusTrapEnabled} class="flow-item-drill-in" .description=${b(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${n ? void 0 : b(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${($) => {
|
|
465
|
+
$.preventDefault(), this._handleDrillInBackClick();
|
|
466
|
+
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${n ? null : a`<div slot=heading><div .innerHTML=${w.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${w.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${l ?? ""} title=${l ?? "" ?? g}></calcite-action>${p ? a`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${c ?? ""} title=${c ?? g}></calcite-action>` : null}${f && this._renderActionBar(e) || ""}<div class="container">${e}</div>${F}</calcite-flow-item>`;
|
|
457
467
|
}
|
|
458
468
|
_renderContentContainer() {
|
|
459
|
-
const e = this.flowItems?.toArray(), t = e.length > 0, i = this.viewModel.aggregatedFeaturesEnabled && this.viewModel.selectedFeature?.isAggregate && !t, s = i && e.length === 0, n = e.length === 0 && this._featureFlowItemSelected && !i,
|
|
460
|
-
return a`<calcite-flow ${
|
|
469
|
+
const e = this.flowItems?.toArray(), t = e.length > 0, i = this.viewModel.aggregatedFeaturesEnabled && this.viewModel.selectedFeature?.isAggregate && !t, s = i && e.length === 0, n = e.length === 0 && this._featureFlowItemSelected && !i, o = e?.map((c, d) => this._renderFlowItem(c, this._featureFlowItemSelected && d === e.length - 1)), r = this._renderBrowseAggregateContainer(!!s), l = this.initialDisplayMode === "list" ? [this._renderFeatureMenuContainer(), this._renderContentFeature(n)] : [this._renderContentFeature(n), this._renderFeatureMenuContainer()];
|
|
470
|
+
return a`<calcite-flow ${m(this._flowContainerNode)}>${l}${r}${o}</calcite-flow>`;
|
|
461
471
|
}
|
|
462
472
|
_renderBrowseAggregateContainer(e) {
|
|
463
|
-
const { hideCloseButton: t, active: i, messages: s } = this, { selectedFeature: n } = this.viewModel,
|
|
473
|
+
const { hideCloseButton: t, active: i, messages: s } = this, { selectedFeature: n } = this.viewModel, o = this.viewModel.aggregatedFeaturesEnabled && n?.isAggregate, r = h(s.backLabel ?? "", {
|
|
464
474
|
title: this._selectedFeatureHeadingText
|
|
465
475
|
});
|
|
466
|
-
return
|
|
476
|
+
return o ? a`<calcite-flow-item .selected=${e} .closable=${!t} .closed=${!i} .focusTrapEnabled=${this.focusTrapEnabled} .description=${this._aggregatedFeatureCount ? h(s.total ?? "", {
|
|
467
477
|
total: this._aggregatedFeatureCount
|
|
468
478
|
}) : ""} .heading=${s.aggregatedFeatures} @calciteFlowItemBack=${(l) => {
|
|
469
479
|
l.preventDefault(), this.viewModel.aggregatedFeaturesEnabled = !1;
|
|
470
480
|
}} .messageOverrides=${{
|
|
471
|
-
back:
|
|
472
|
-
}} .loading=${this._aggregatedFeaturesLoading} @calciteFlowItemClose=${this._handleClose}><arcgis-aggregated-features .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .feature=${n ?? void 0} .flowItems=${this.flowItems} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map ?? void 0} .messageOverrides=${this.messageOverrides} .messages=${s} @arcgisPropertyChange=${this._handleAggregatedFeaturesPropertyChange} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .view=${this.view ?? void 0} ${
|
|
481
|
+
back: r
|
|
482
|
+
}} .loading=${this._aggregatedFeaturesLoading} @calciteFlowItemClose=${this._handleClose}><arcgis-aggregated-features .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .feature=${n ?? void 0} .flowItems=${this.flowItems} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map ?? void 0} .messageOverrides=${this.messageOverrides} .messages=${s} @arcgisPropertyChange=${this._handleAggregatedFeaturesPropertyChange} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .view=${this.view ?? void 0} ${m(this._aggregatedFeaturesComponent)}></arcgis-aggregated-features><calcite-button appearance=transparent @click=${() => this.viewModel.aggregatedFeaturesEnabled = !1} slot=footer-start scale=s width=full .label=${r} title=${r ?? g}>${s.back}</calcite-button></calcite-flow-item>` : null;
|
|
473
483
|
}
|
|
474
484
|
_renderActionBar(e) {
|
|
475
485
|
const t = this.#e(e), i = !!t.length || this._hasActionsStartSlotContent || this._hasActionsEndSlotContent, s = this._isCollapsed || this.hideActionBar || !i;
|
|
476
|
-
return a`<calcite-action-bar expand-toggle-disabled .expanded=${!this._hideActionText} scale=s slot=${(s ? void 0 : "action-bar") ?? g} .hidden=${s}><slot name=actions-start @slotchange=${this._handleActionsStartSlotChange}></slot><calcite-action-group overlay-positioning=fixed scale=s ${
|
|
486
|
+
return a`<calcite-action-bar expand-toggle-disabled .expanded=${!this._hideActionText} scale=s slot=${(s ? void 0 : "action-bar") ?? g} .hidden=${s}><slot name=actions-start @slotchange=${this._handleActionsStartSlotChange}></slot><calcite-action-group overlay-positioning=fixed scale=s ${m(this._actionBarMenuNode)}>${this._renderActions(t, e)}</calcite-action-group><slot name=actions-end @slotchange=${this._handleActionsEndSlotChange}></slot></calcite-action-bar>`;
|
|
477
487
|
}
|
|
478
488
|
_renderActions(e, t) {
|
|
479
489
|
return e.map((i) => {
|
|
@@ -483,10 +493,10 @@ class oe extends z {
|
|
|
483
493
|
}
|
|
484
494
|
_renderContent() {
|
|
485
495
|
const { content: e, selectedFeatureItem: t, includeDefaultActions: i, actions: s } = this.viewModel;
|
|
486
|
-
return t ? a`<arcgis-feature-next .actions=${s} .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} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .includeDefaultActions=${i} .location=${this.location} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${
|
|
496
|
+
return t ? a`<arcgis-feature-next .actions=${s} .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} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .includeDefaultActions=${i} .location=${this.location} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${m(this._selectedFeatureComponent)}></arcgis-feature-next>` : typeof e == "string" ? I(e, a`<div .innerHTML=${w.sanitize(e) ?? ""}></div>`) : e ?? null;
|
|
487
497
|
}
|
|
488
498
|
}
|
|
489
|
-
|
|
499
|
+
N("arcgis-features-next", oe);
|
|
490
500
|
export {
|
|
491
501
|
oe as ArcgisFeaturesNext
|
|
492
502
|
};
|
|
@@ -361,7 +361,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
361
361
|
*
|
|
362
362
|
* // Wait for the layer to load and the item title to become available
|
|
363
363
|
* await item.layer.when();
|
|
364
|
-
*
|
|
364
|
+
*
|
|
365
365
|
* // If the item's title matches "US Demographics", customize the list item
|
|
366
366
|
* if (item.title === "US Demographics") {
|
|
367
367
|
* // open the list item in the LayerList component
|
|
@@ -305,28 +305,38 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
305
305
|
*/
|
|
306
306
|
accessor fatalError: Error<any> | null | undefined;
|
|
307
307
|
/**
|
|
308
|
-
* The screen rectangle of the active focus region, or `null` when [
|
|
308
|
+
* The screen rectangle of the active focus region, or `null` when [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionVisible) is `false`.
|
|
309
309
|
* This screen rectangle represents the area of the view that is currently in focus and can be used with methods that require a screen rectangle as input, such as `hitTest()`.
|
|
310
310
|
*
|
|
311
311
|
* | Action | Keyboard Shortcut / Property |
|
|
312
312
|
* |--------|----------------------------|
|
|
313
|
-
* | Enable or disable focus region | Use the `Shift` + `Alt`/`Option` + `O` keyboard shortcut while the view component is in focus or set the [
|
|
313
|
+
* | Enable or disable focus region | Use the `Shift` + `Alt`/`Option` + `O` keyboard shortcut while the view component is in focus or set the [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionVisible) property to `true` or `false`. |
|
|
314
314
|
* | Resize focus region | Use the `Shift` + `Alt`/`Option` + Up/Down arrow keys while the focus region is enabled. |
|
|
315
315
|
* | Open the [popup](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) for features in the focus region | Press `Enter` or `Spacebar` while the focus region is enabled. |
|
|
316
316
|
*
|
|
317
|
-
* **Notes:**
|
|
317
|
+
* **Notes:**
|
|
318
318
|
* - To know when this focus region is selected, listen for the [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#event-arcgisViewFocusRegionSelect) event. The default behavior of the popup component opening with features in the focus region can be prevented by calling `event.preventDefault()` within the event handler.
|
|
319
319
|
* - The styling of the focus region can be customized using the [--arcgis-focus-region-outer-border-color](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#--arcgis-focus-region-outer-border-color), [--arcgis-focus-region-inner-border-color](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#--arcgis-focus-region-inner-border-color), and [--arcgis-focus-region-border-width](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#--arcgis-focus-region-border-width) CSS variables.
|
|
320
|
-
* - When the [
|
|
320
|
+
* - When the [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionVisible) is `true`, the opened [popupElement](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#popupElement) or slotted [popup component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) will be docked with the dock button hidden by default to prevent it from overlapping the focus region.
|
|
321
321
|
*
|
|
322
322
|
* @since 5.2
|
|
323
|
-
* @see [
|
|
323
|
+
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionVisible)
|
|
324
324
|
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#event-arcgisViewFocusRegionSelect)
|
|
325
325
|
*/
|
|
326
326
|
get focusRegion(): LinkChartView["focusRegion"];
|
|
327
327
|
/**
|
|
328
|
-
*
|
|
329
|
-
*
|
|
328
|
+
* Enables the keyboard shortcut for showing the focus region. When undefined, the shortcut
|
|
329
|
+
* is enabled only when a popup component is available and [popupDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#popupDisabled) is false.
|
|
330
|
+
* Set to true to handle focus-region selection in a custom application, or false to disable
|
|
331
|
+
* the shortcut. When false, the shortcut does not change focus-region visibility.
|
|
332
|
+
*
|
|
333
|
+
* @default false
|
|
334
|
+
* @since 5.2
|
|
335
|
+
*/
|
|
336
|
+
accessor focusRegionShortcutEnabled: boolean | undefined;
|
|
337
|
+
/**
|
|
338
|
+
* Indicates whether the [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegion) is visible. Set this property to `true` to show the centered focus region, or `false` to hide it.
|
|
339
|
+
* The focus region can also be shown or hidden by focusing on the ArcgisLinkChart component and pressing the `Shift` + `Alt`/`Option` + `O` keyboard shortcut. By default, this shortcut is available only when a popup component is available and [popupDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#popupDisabled) is `false`. Use [focusRegionShortcutEnabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionShortcutEnabled) to explicitly enable or disable it.
|
|
330
340
|
*
|
|
331
341
|
* **Note:** When the focus region is enabled, the [popupElement](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#popupElement) or slotted [popup component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) will be docked with the dock button hidden by default to prevent it from overlapping the focus region.
|
|
332
342
|
*
|
|
@@ -335,7 +345,7 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
335
345
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegion)
|
|
336
346
|
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#event-arcgisViewFocusRegionSelect)
|
|
337
347
|
*/
|
|
338
|
-
accessor
|
|
348
|
+
accessor focusRegionVisible: boolean;
|
|
339
349
|
/**
|
|
340
350
|
* Allows for adding graphics directly to the default graphics in the View.
|
|
341
351
|
*
|
|
@@ -971,12 +981,12 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
971
981
|
readonly arcgisViewDrag: import("@arcgis/lumina").TargetedEvent<this, DragEvent>;
|
|
972
982
|
/**
|
|
973
983
|
* Fires when the focus region is selected using the `Enter` or `Space` key. Use this event to react to the selection of the [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegion) via keyboard input and perform any necessary actions based on that selection, such as performing a `hitTest()` on the [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegion) and passing the returned graphics to the [selectionManager](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#selectionManager).
|
|
974
|
-
*
|
|
984
|
+
*
|
|
975
985
|
* Call `event.detail.preventDefault()` to suppress the default behavior of the [popup](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) opening with the features in the focus region.
|
|
976
986
|
*
|
|
977
987
|
* @since 5.2
|
|
978
988
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegion)
|
|
979
|
-
* @see [
|
|
989
|
+
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionVisible)
|
|
980
990
|
* @example
|
|
981
991
|
* ```js
|
|
982
992
|
* viewElement.addEventListener("arcgisViewFocusRegionSelect", async (event) => {
|
|
@@ -7,8 +7,8 @@ import { LitElement as V, createEvent as p, safeClassMap as w } from "@arcgis/lu
|
|
|
7
7
|
import { reEmitEvent as e } from "@arcgis/lumina-toolkit/reEmitEvent";
|
|
8
8
|
import { makeAccessorController as f, reCreateAccessor as A } from "@arcgis/lumina-toolkit/useAccessor";
|
|
9
9
|
import { createRef as u, ref as v } from "lit/directives/ref.js";
|
|
10
|
-
import { s as
|
|
11
|
-
import { s as
|
|
10
|
+
import { s as I } from "../../chunks/esri-main.js";
|
|
11
|
+
import { s as E } from "../../chunks/slots.js";
|
|
12
12
|
import { C as m } from "../../chunks/resources.js";
|
|
13
13
|
import { b as L, c as R, p as M, i as k } from "../../chunks/component-utils.js";
|
|
14
14
|
import { U, u as D, a as x, b as Q } from "../../chunks/useArcgisViewReadyError.js";
|
|
@@ -32,15 +32,15 @@ const F = f(
|
|
|
32
32
|
), S = f(_, {});
|
|
33
33
|
class G extends V {
|
|
34
34
|
constructor() {
|
|
35
|
-
super(), this._attributionMode = null, this._containerRef = u(), this._mapRef = u(), this._uiController = new U(this), this._activeLoadAbortController = null, this.arcgisLoadError = D(this), this.arcgisViewReadyError = x(this), this._map = F(this), this._baseCypherQuery = "", this._serviceUrl = "", this._propItemId = "", this.view = S(this), this.animationsDisabled = this.view.animationsEnabled, this.allLayerViews = this.view.allLayerViews, this.analyses = this.view.analyses, this.autoDestroyDisabled = !1, this.background = this.view.background, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.canZoomIn = this.view.canZoomIn, this.canZoomOut = this.view.canZoomOut, this.constraints = this.view.constraints, this.displayFilterDisabled = this.view.displayFilterEnabled, this.fatalError = this.view.fatalError, this.graphics = this.view.graphics, this.highlights = this.view.highlights, this.layerViews = this.view.layerViews, this.magnifier = this.view.magnifier, this.map = this.view.map, this.navigation = this.view.navigation, this.options = this.view.options, this.padding = this.view.padding, this.popup = this.view.popup, this.popupDisabled = this.view.popupEnabled, this.popupComponentEnabled = !1, this.ready = this.view.ready, this.resizeAlign = this.view.resizeAlign, this.resolution = this.view.resolution, this.rotation = this.view.rotation, this.selectionManager = this.view.selectionManager, this.
|
|
35
|
+
super(), this._attributionMode = null, this._containerRef = u(), this._mapRef = u(), this._uiController = new U(this), this._activeLoadAbortController = null, this.arcgisLoadError = D(this), this.arcgisViewReadyError = x(this), this._map = F(this), this._baseCypherQuery = "", this._serviceUrl = "", this._propItemId = "", this.view = S(this), this.animationsDisabled = this.view.animationsEnabled, this.allLayerViews = this.view.allLayerViews, this.analyses = this.view.analyses, this.autoDestroyDisabled = !1, this.background = this.view.background, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.canZoomIn = this.view.canZoomIn, this.canZoomOut = this.view.canZoomOut, this.constraints = this.view.constraints, this.displayFilterDisabled = this.view.displayFilterEnabled, this.fatalError = this.view.fatalError, this.graphics = this.view.graphics, this.highlights = this.view.highlights, this.layerViews = this.view.layerViews, this.magnifier = this.view.magnifier, this.map = this.view.map, this.navigation = this.view.navigation, this.options = this.view.options, this.padding = this.view.padding, this.popup = this.view.popup, this.popupDisabled = this.view.popupEnabled, this.popupComponentEnabled = !1, this.ready = this.view.ready, this.resizeAlign = this.view.resizeAlign, this.resolution = this.view.resolution, this.rotation = this.view.rotation, this.selectionManager = this.view.selectionManager, this.focusRegionVisible = this.view.focusRegionVisible, this.slotGroupRefs = this._uiController.slotGroupRefs, this.spatialReference = this.view.spatialReference, this.suspended = this.view.suspended, this.theme = this.view.theme, this.timeExtent = this.view.timeExtent, this.timeZone = this.view.timeZone, this.arcgisViewAnalysisViewCreate = e(() => this.view, "analysis-view-create"), this.arcgisViewAnalysisViewCreateError = e(() => this.view, "analysis-view-create-error"), this.arcgisViewAnalysisViewDestroy = e(() => this.view, "analysis-view-destroy"), this.arcgisViewChange = p(), this.arcgisViewClick = e(() => this.view, "click"), this.arcgisViewDoubleClick = e(() => this.view, "double-click"), this.arcgisViewDoubleTapDrag = e(() => this.view, "double-tap-drag"), this.arcgisViewFocusRegionSelect = e(() => this.view, "focus-region-select"), this.arcgisViewDrag = e(() => this.view, "drag"), this.arcgisViewHold = e(() => this.view, "hold"), this.arcgisViewImmediateClick = e(() => this.view, "immediate-click"), this.arcgisViewImmediateDoubleClick = e(() => this.view, "immediate-double-click"), this.arcgisViewKeyDown = e(() => this.view, "key-down"), this.arcgisViewKeyUp = e(() => this.view, "key-up"), this.arcgisViewLayerviewCreate = e(() => this.view, "layerview-create"), this.arcgisViewLayerviewCreateError = e(() => this.view, "layerview-create-error"), this.arcgisViewLayerviewDestroy = e(() => this.view, "layerview-destroy"), this.arcgisViewMouseWheel = e(() => this.view, "mouse-wheel"), this.arcgisViewPointerDown = e(() => this.view, "pointer-down"), this.arcgisViewPointerEnter = e(() => this.view, "pointer-enter"), this.arcgisViewPointerLeave = e(() => this.view, "pointer-leave"), this.arcgisViewPointerMove = e(() => this.view, "pointer-move"), this.arcgisViewPointerUp = e(() => this.view, "pointer-up"), this.arcgisViewReadyChange = p(), this.arcgisViewVerticalTwoFingerDrag = e(() => this.view, "vertical-two-finger-drag"), Q(this), this.view.ui = {
|
|
36
36
|
components: []
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
static {
|
|
40
|
-
this.properties = { _map: 16, _baseCypherQuery: 16, _serviceUrl: 16, _propItemId: 16, view: 32, animationsDisabled: 5, aria: 0, allLayerViews: 32, analyses: 0, attributionItems: 32, attributionMode: 1, autoDestroyDisabled: 5, background: 0, basemap: 1, basemapView: 0, canZoomIn: 36, canZoomOut: 36, center: 1, constraints: 0, displayFilterDisabled: 5, extent: 0, fatalError: 0, focusAreas: 0, graphics: 0, hideAttribution: 5, highlights: 0, interacting: 32, itemId: 3, baseCypherQuery: 3, serviceUrl: 3, layerViews: 32, magnifier: 32, map: 0, navigating: 32, navigation: 0, options: 0, padding: 0, popup: 0, popupElement: 32, popupDisabled: 5, popupComponentEnabled: 5, ready: 36, resizeAlign: 1, resolution: 40, rotation: 9, selectionManager: 32,
|
|
40
|
+
this.properties = { _map: 16, _baseCypherQuery: 16, _serviceUrl: 16, _propItemId: 16, view: 32, animationsDisabled: 5, aria: 0, allLayerViews: 32, analyses: 0, attributionItems: 32, attributionMode: 1, autoDestroyDisabled: 5, background: 0, basemap: 1, basemapView: 0, canZoomIn: 36, canZoomOut: 36, center: 1, constraints: 0, displayFilterDisabled: 5, extent: 0, fatalError: 0, focusAreas: 0, graphics: 0, hideAttribution: 5, highlights: 0, interacting: 32, itemId: 3, baseCypherQuery: 3, serviceUrl: 3, layerViews: 32, magnifier: 32, map: 0, navigating: 32, navigation: 0, options: 0, padding: 0, popup: 0, popupElement: 32, popupDisabled: 5, popupComponentEnabled: 5, ready: 36, resizeAlign: 1, resolution: 40, rotation: 9, selectionManager: 32, focusRegionVisible: 5, focusRegionShortcutEnabled: 5, focusRegion: 32, scale: 9, slotGroupRefs: 32, spatialReference: 0, stationary: 32, suspended: 39, theme: 0, timeExtent: 0, timeZone: 1, updating: 32, viewpoint: 0, zoom: 9, loadErrorSources: 0 };
|
|
41
41
|
}
|
|
42
42
|
static {
|
|
43
|
-
this.styles = [
|
|
43
|
+
this.styles = [I, E];
|
|
44
44
|
}
|
|
45
45
|
static {
|
|
46
46
|
this.shadowRootOptions = { mode: "open", delegatesFocus: !0 };
|