@arcgis/map-components 6.0.0-next.7 → 6.0.0-next.9
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/4UDLUCTE.js +2 -0
- package/dist/cdn/5ITYFVDX.js +2 -0
- package/dist/cdn/{IDIAWXUO.js → 6XDLG2SC.js} +1 -1
- package/dist/cdn/7HS2SX6W.js +2 -0
- package/dist/cdn/7YHGGHJY.js +2 -0
- package/dist/cdn/{VOBRCUIE.js → BV6ID43I.js} +1 -1
- package/dist/cdn/CCBLZGVL.js +2 -0
- package/dist/cdn/{43ETXXS2.js → EVV5ZWO2.js} +1 -1
- package/dist/cdn/F4S2DPYN.js +2 -0
- package/dist/cdn/FMSA7336.js +2 -0
- package/dist/cdn/MSGW4PYB.js +2 -0
- package/dist/cdn/NUFSYQAJ.js +2 -0
- package/dist/cdn/{WO26ZR5Z.js → PIKYAUGU.js} +1 -1
- package/dist/cdn/{44CQCIZB.js → PSWXIEFK.js} +1 -1
- package/dist/cdn/QPW7LQT2.js +2 -0
- package/dist/cdn/QYUGC46B.js +2 -0
- package/dist/cdn/RK65HKUN.js +2 -0
- package/dist/cdn/SKP3TGF4.js +2 -0
- package/dist/cdn/U73UTEIN.js +2 -0
- package/dist/cdn/WJG5SEIL.js +2 -0
- package/dist/cdn/ZDTIOBXY.js +2 -0
- package/dist/cdn/assets/bookmarks/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/feature-next/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/slots.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-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.d.ts +20 -18
- package/dist/components/arcgis-link-chart/customElement.js +5 -5
- package/dist/components/arcgis-map/customElement.d.ts +22 -20
- package/dist/components/arcgis-map/customElement.js +9 -9
- package/dist/components/arcgis-measurement-content/customElement.js +6 -6
- 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 -18
- package/dist/components/arcgis-scene/customElement.js +9 -9
- package/dist/components/arcgis-slice/customElement.js +24 -24
- package/dist/components/arcgis-table-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-time-bar/customElement.js +24 -25
- package/dist/components/arcgis-time-bar-slider/customElement.js +46 -45
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +16 -16
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +37 -37
- package/dist/components/arcgis-video/customElement.js +6 -6
- package/dist/components/arcgis-volume-measurement/customElement.js +62 -62
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.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/2BGZVOT3.js +0 -2
- package/dist/cdn/7FCZLFJD.js +0 -2
- package/dist/cdn/CBVICP6P.js +0 -2
- package/dist/cdn/EZCHUWDK.js +0 -2
- package/dist/cdn/KLVBRTYU.js +0 -2
- package/dist/cdn/KPUEQZ7O.js +0 -2
- package/dist/cdn/PGK2ZJCX.js +0 -2
- package/dist/cdn/PJ5OUPGO.js +0 -2
- package/dist/cdn/R5TCWJ6V.js +0 -2
- package/dist/cdn/SNNAV3AS.js +0 -2
- package/dist/cdn/W6PA72LV.js +0 -2
- package/dist/cdn/WQI5PKS4.js +0 -2
- package/dist/cdn/XCTPKDKL.js +0 -2
- package/dist/cdn/YFTQR2WS.js +0 -2
- package/dist/cdn/Z3W7LQ5M.js +0 -2
- package/dist/cdn/ZFO3PVZQ.js +0 -2
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/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
|
|
@@ -11,7 +11,7 @@ import { V as c } from "../../chunks/visible-element.js";
|
|
|
11
11
|
import { A as y } from "../../chunks/AnalysisViewModel.js";
|
|
12
12
|
import k from "@arcgis/core/analysis/LineOfSightAnalysis.js";
|
|
13
13
|
import { property as z, subclass as M } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
14
|
-
const C = v`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-view-corner-radius: var(--arcgis-view-corner-radius, 0px);--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-hidden{display:none!important}:host{min-width:300px}.container{display:flex;position:relative;flex-flow:column;gap:var(--arcgis-internal-panel-gap);overflow-y:auto}.error{color:var(--calcite-color-status-danger)}.hint{display:flex;flex-direction:column;gap:var(--arcgis-internal-panel-gap)}.error,.hint{overflow:hidden;animation:arcgis-line-of-sight-fade-in .25s ease-in-out;p{margin:0;padding:0}}.actions{display:flex;flex-flow:column;gap:var(--arcgis-internal-panel-actions-gap);justify-content:center}@keyframes arcgis-line-of-sight-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}`;
|
|
14
|
+
const C = v`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-hidden{display:none!important}:host{min-width:300px}.container{display:flex;position:relative;flex-flow:column;gap:var(--arcgis-internal-panel-gap);overflow-y:auto}.error{color:var(--calcite-color-status-danger)}.hint{display:flex;flex-direction:column;gap:var(--arcgis-internal-panel-gap)}.error,.hint{overflow:hidden;animation:arcgis-line-of-sight-fade-in .25s ease-in-out;p{margin:0;padding:0}}.actions{display:flex;flex-flow:column;gap:var(--arcgis-internal-panel-actions-gap);justify-content:center}@keyframes arcgis-line-of-sight-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}`;
|
|
15
15
|
var D = Object.defineProperty, V = Object.getOwnPropertyDescriptor, u = (t, e, r, a) => {
|
|
16
16
|
for (var i = a > 1 ? void 0 : a ? V(e, r) : e, s = t.length - 1, l; s >= 0; s--)
|
|
17
17
|
(l = t[s]) && (i = (a ? l(e, r, i) : l(i)) || i);
|
|
@@ -47,14 +47,6 @@ export interface DeclareCssProperties {
|
|
|
47
47
|
"--arcgis-layout-overlay-space-right": "*";
|
|
48
48
|
/** _Since 5.0_ Specifies the focus outline color for the view. */
|
|
49
49
|
"--arcgis-view-color-focus": "*";
|
|
50
|
-
/**
|
|
51
|
-
* _Since 5.2_ Specifies the corner radius for the view.
|
|
52
|
-
*
|
|
53
|
-
* A larger corner radius may cause a visual mismatch between the view and its built-in attribution.
|
|
54
|
-
* This limitation will be addressed in a future release. In the meantime, set `border-radius`
|
|
55
|
-
* on the view component to the same value as this CSS custom property.
|
|
56
|
-
*/
|
|
57
|
-
"--arcgis-view-corner-radius": "*";
|
|
58
50
|
/** _Since 5.1_ Specifies the background color for table rows. */
|
|
59
51
|
"--arcgis-table-row-background-color": "*";
|
|
60
52
|
/** _Since 5.1_ Specifies the background color for alternate table rows. */
|
|
@@ -305,28 +297,38 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
305
297
|
*/
|
|
306
298
|
accessor fatalError: Error<any> | null | undefined;
|
|
307
299
|
/**
|
|
308
|
-
* The screen rectangle of the active focus region, or `null` when [
|
|
300
|
+
* 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
301
|
* 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
302
|
*
|
|
311
303
|
* | Action | Keyboard Shortcut / Property |
|
|
312
304
|
* |--------|----------------------------|
|
|
313
|
-
* | Enable or disable focus region | Use the `Shift` + `Alt`/`Option` + `O` keyboard shortcut while the view component is in focus or set the [
|
|
305
|
+
* | 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
306
|
* | Resize focus region | Use the `Shift` + `Alt`/`Option` + Up/Down arrow keys while the focus region is enabled. |
|
|
315
307
|
* | 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
308
|
*
|
|
317
|
-
* **Notes:**
|
|
309
|
+
* **Notes:**
|
|
318
310
|
* - 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
311
|
* - 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 [
|
|
312
|
+
* - 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
313
|
*
|
|
322
314
|
* @since 5.2
|
|
323
|
-
* @see [
|
|
315
|
+
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionVisible)
|
|
324
316
|
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#event-arcgisViewFocusRegionSelect)
|
|
325
317
|
*/
|
|
326
318
|
get focusRegion(): LinkChartView["focusRegion"];
|
|
327
319
|
/**
|
|
328
|
-
*
|
|
329
|
-
*
|
|
320
|
+
* Enables the keyboard shortcut for showing the focus region. When undefined, the shortcut
|
|
321
|
+
* 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.
|
|
322
|
+
* Set to true to handle focus-region selection in a custom application, or false to disable
|
|
323
|
+
* the shortcut. When false, the shortcut does not change focus-region visibility.
|
|
324
|
+
*
|
|
325
|
+
* @default false
|
|
326
|
+
* @since 5.2
|
|
327
|
+
*/
|
|
328
|
+
accessor focusRegionShortcutEnabled: boolean | undefined;
|
|
329
|
+
/**
|
|
330
|
+
* 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.
|
|
331
|
+
* 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
332
|
*
|
|
331
333
|
* **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
334
|
*
|
|
@@ -335,7 +337,7 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
335
337
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegion)
|
|
336
338
|
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#event-arcgisViewFocusRegionSelect)
|
|
337
339
|
*/
|
|
338
|
-
accessor
|
|
340
|
+
accessor focusRegionVisible: boolean;
|
|
339
341
|
/**
|
|
340
342
|
* Allows for adding graphics directly to the default graphics in the View.
|
|
341
343
|
*
|
|
@@ -971,12 +973,12 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
971
973
|
readonly arcgisViewDrag: import("@arcgis/lumina").TargetedEvent<this, DragEvent>;
|
|
972
974
|
/**
|
|
973
975
|
* 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
|
-
*
|
|
976
|
+
*
|
|
975
977
|
* 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
978
|
*
|
|
977
979
|
* @since 5.2
|
|
978
980
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegion)
|
|
979
|
-
* @see [
|
|
981
|
+
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionVisible)
|
|
980
982
|
* @example
|
|
981
983
|
* ```js
|
|
982
984
|
* viewElement.addEventListener("arcgisViewFocusRegionSelect", async (event) => {
|