@arcgis/map-components 5.2.0-next.86 → 5.2.0-next.87
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/3IY3D62Z.js +2 -0
- package/dist/cdn/{YXA3DG4H.js → 3W4IH5LQ.js} +1 -1
- package/dist/cdn/5L5UYV3H.js +2 -0
- package/dist/cdn/6NGRUK5C.js +2 -0
- package/dist/cdn/BPHJ4VBC.js +2 -0
- package/dist/cdn/CFB4ZR5F.js +2 -0
- package/dist/cdn/D6MRDGUC.js +2 -0
- package/dist/cdn/EFUTKX2O.js +2 -0
- package/dist/cdn/{PNSES5YC.js → EGUVICJF.js} +1 -1
- package/dist/cdn/FXK4G4VK.js +2 -0
- package/dist/cdn/GNVPXNTX.js +2 -0
- package/dist/cdn/HTEIMRY6.js +2 -0
- package/dist/cdn/I2D75Q7M.js +2 -0
- package/dist/cdn/IMG5GOJB.js +2 -0
- package/dist/cdn/IOZ5U2X7.js +2 -0
- package/dist/cdn/K3N6NHJW.js +2 -0
- package/dist/cdn/KN4PG54T.js +2 -0
- package/dist/cdn/{56NINR5L.js → KNMMVZVV.js} +1 -1
- package/dist/cdn/M66G67OC.js +2 -0
- package/dist/cdn/MQX2F54G.js +2 -0
- package/dist/cdn/NFWFRHUT.js +2 -0
- package/dist/cdn/PCEAIDCB.js +2 -0
- package/dist/cdn/PMU2DO3P.js +2 -0
- package/dist/cdn/{LTGPFC6N.js → PWEF6IKF.js} +1 -1
- package/dist/cdn/{HWLBIEGO.js → RS5BEGC5.js} +1 -1
- package/dist/cdn/{K4V76SMR.js → TAIZWQYU.js} +1 -1
- package/dist/cdn/TCMRGJTC.js +2 -0
- package/dist/cdn/TPG3TU6B.js +2 -0
- package/dist/cdn/TSZ26CSX.js +2 -0
- package/dist/cdn/V4W4ZP6M.js +2 -0
- package/dist/cdn/XM2OBGXW.js +2 -0
- package/dist/cdn/assets/presentation/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-picker/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/constants2.js +6 -0
- package/dist/chunks/useArcgisViewReadyError.js +42 -27
- package/dist/components/arcgis-aggregated-features/customElement.js +0 -1
- package/dist/components/arcgis-bookmarks/customElement.js +0 -1
- package/dist/components/arcgis-feature-next/customElement.js +4 -4
- package/dist/components/arcgis-features/customElement.js +3 -3
- package/dist/components/arcgis-features-next/customElement.js +98 -86
- package/dist/components/arcgis-features-next/index.js +0 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.d.ts +9 -5
- package/dist/components/arcgis-link-chart/customElement.js +24 -18
- package/dist/components/arcgis-map/customElement.d.ts +9 -5
- package/dist/components/arcgis-map/customElement.js +19 -13
- package/dist/components/arcgis-oriented-imagery-viewer-non-panoramic-viewer/customElement.js +0 -2
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +15 -16
- package/dist/components/arcgis-paste/customElement.js +0 -1
- package/dist/components/arcgis-popup/customElement.d.ts +7 -7
- package/dist/components/arcgis-popup/customElement.js +10 -13
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +6 -0
- package/dist/components/arcgis-presentation/customElement.d.ts +8 -6
- package/dist/components/arcgis-presentation/customElement.js +206 -165
- package/dist/components/arcgis-presentation/index.js +2 -0
- package/dist/components/arcgis-presentation-captions/customElement.js +4 -4
- package/dist/components/arcgis-presentation-slide-list/customElement.js +49 -0
- package/dist/components/arcgis-presentation-slide-list/index.js +3 -0
- package/dist/components/arcgis-scene/customElement.d.ts +9 -5
- package/dist/components/arcgis-scene/customElement.js +21 -15
- package/dist/components/arcgis-template-image/customElement.js +0 -1
- package/dist/components/arcgis-time-bar/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-picker/customElement.d.ts +56 -0
- package/dist/components/arcgis-utility-network-picker/customElement.js +91 -0
- package/dist/components/arcgis-utility-network-picker/index.d.ts +1 -0
- package/dist/components/arcgis-utility-network-picker/index.js +7 -0
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +0 -1
- package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.js +0 -1
- package/dist/components/arcgis-utility-network-trace-inputs-next/customElement.js +123 -140
- package/dist/components/arcgis-utility-network-trace-inputs-next/index.js +2 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +0 -2
- package/dist/components/arcgis-utility-network-trace-results-next/customElement.js +0 -2
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +0 -2
- package/dist/components/arcgis-version-management-service-item/customElement.js +3 -4
- package/dist/components/arcgis-video/customElement.d.ts +5 -3
- package/dist/components/arcgis-video-player-actions-group/customElement.js +6 -6
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/loader.js +4 -2
- package/dist/types/lumina.d.ts +9 -2
- package/dist/types/preact.d.ts +10 -2
- package/dist/types/react.d.ts +11 -2
- package/dist/types/stencil.d.ts +9 -2
- package/package.json +7 -7
- package/dist/cdn/42TPQKQZ.js +0 -2
- package/dist/cdn/4T6ECCFH.js +0 -2
- package/dist/cdn/4UBDCXSK.js +0 -2
- package/dist/cdn/6MEC4BFN.js +0 -2
- package/dist/cdn/AJ7XRBWN.js +0 -2
- package/dist/cdn/ARVN7QLQ.js +0 -2
- package/dist/cdn/BVDQQOCR.js +0 -2
- package/dist/cdn/DKBC3UMW.js +0 -2
- package/dist/cdn/DSIL7TYR.js +0 -2
- package/dist/cdn/G2PAKIMS.js +0 -2
- package/dist/cdn/JOOHHKWH.js +0 -2
- package/dist/cdn/KS5TQB2A.js +0 -2
- package/dist/cdn/NAQYIBE5.js +0 -2
- package/dist/cdn/NBYN44GP.js +0 -2
- package/dist/cdn/NGB5WVIG.js +0 -2
- package/dist/cdn/PBNP6WFU.js +0 -2
- package/dist/cdn/RDARV7HC.js +0 -2
- package/dist/cdn/RXAUCQQC.js +0 -2
- package/dist/cdn/S22ZRUS7.js +0 -2
- package/dist/cdn/SVOAX4K6.js +0 -2
- package/dist/cdn/TI4BX367.js +0 -2
- package/dist/cdn/W5WXJT7N.js +0 -2
- package/dist/cdn/YTC3XBSZ.js +0 -2
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as B } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as O, html as o } from "lit";
|
|
4
4
|
import { keyed as E } from "lit/directives/keyed.js";
|
|
5
5
|
import H from "@arcgis/core/support/actions/ActionButton.js";
|
|
6
6
|
import k from "@arcgis/core/core/Collection.js";
|
|
7
7
|
import P from "@arcgis/core/popup/FeatureContentCollection.js";
|
|
8
|
-
import { LitElement as z, createEvent as I, renderElement as U, nothing as
|
|
9
|
-
import { useDirection as Z, usePropertyChange as V, bypassReadOnly as
|
|
10
|
-
import { classes as
|
|
11
|
-
import { slotChangeHasContent as
|
|
12
|
-
import { createRef as
|
|
8
|
+
import { LitElement as z, createEvent as I, renderElement as U, nothing as h, safeClassMap as x } from "@arcgis/lumina";
|
|
9
|
+
import { useDirection as Z, usePropertyChange as V, bypassReadOnly as S } from "@arcgis/lumina/controllers";
|
|
10
|
+
import { classes as y } from "@arcgis/toolkit/dom";
|
|
11
|
+
import { slotChangeHasContent as D } from "@arcgis/toolkit/dom/slots";
|
|
12
|
+
import { createRef as w, ref as f } from "lit/directives/ref.js";
|
|
13
13
|
import { g as L } from "../../chunks/feature-utils.js";
|
|
14
14
|
import { initializeProjection as K } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
15
15
|
import { t as j, z as q } from "../../chunks/action-utils.js";
|
|
16
16
|
import { m as G } from "../../chunks/useViewModel.js";
|
|
17
17
|
import { renderingSanitizer as $ } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
18
|
-
import { stripHTML as
|
|
19
|
-
import { substitute as d, formatNumber as
|
|
18
|
+
import { stripHTML as T } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
19
|
+
import { substitute as d, formatNumber as b } from "@arcgis/core/intl.js";
|
|
20
20
|
import { u as W } from "../../chunks/useT9n.js";
|
|
21
|
-
import { watch as
|
|
21
|
+
import { when as X, watch as u } from "@arcgis/core/core/reactiveUtils.js";
|
|
22
22
|
import { a as N } from "../../chunks/maybe.js";
|
|
23
|
-
import { a as
|
|
24
|
-
const
|
|
25
|
-
function
|
|
26
|
-
return
|
|
23
|
+
import { a as J, b as Q } from "../../chunks/keyboard-utils.js";
|
|
24
|
+
const Y = O`: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{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.action-exit{transform:scaleX(-1)}.flow-item-drill-in{--calcite-flow-item-footer-padding: 0}`;
|
|
25
|
+
function ee(v) {
|
|
26
|
+
return v?.declaredClass.startsWith("esri.layers.") ?? !1;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
if (!(!
|
|
30
|
-
return
|
|
28
|
+
function te(v) {
|
|
29
|
+
if (!(!v || !("featureReduction" in v)))
|
|
30
|
+
return v.featureReduction?.type;
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
class
|
|
32
|
+
const ie = G(P);
|
|
33
|
+
class ae extends z {
|
|
34
34
|
constructor() {
|
|
35
35
|
super(...arguments), this._zoomToFeature = new H({
|
|
36
36
|
icon: "magnifying-glass-plus",
|
|
@@ -40,15 +40,15 @@ class ie extends z {
|
|
|
40
40
|
e?.isIntersecting && this.viewModel.featurePage != null && this.viewModel.featurePage++;
|
|
41
41
|
}, this._featureMenuIntersectionObserver = new IntersectionObserver(this._featureMenuIntersectionObserverCallback, {
|
|
42
42
|
root: window.document
|
|
43
|
-
}), this._featureMenuIntersectionObserverNode = null, this.
|
|
43
|
+
}), this._featureMenuIntersectionObserverNode = null, this._setFocusAnimationFrameId = null, this._setFocusAnimationFrameResolve = null, this._rootFlowItemNode = w(), this._featureMenuViewportNode = w(), this._actionBarMenuNode = w(), this._flowContainerNode = w(), this._aggregatedFeaturesComponent = w(), this.messages = W(), this._selectedFeatureComponent = w(), this._direction = Z(), this._cancelOpenRelatedFeature = () => {
|
|
44
44
|
this._openRelatedFeatureAbortController = N(this._openRelatedFeatureAbortController);
|
|
45
|
-
}, this._openRelatedFeatureAbortController = null, this.flowItems = new k(), this._aggregatedFeatureCount = 0, this._selectedAggregatedFeatureIndex = -1, this._aggregatedFeaturesLoading = !1, this._hasActionsStartSlotContent = !1, this._hasActionsEndSlotContent = !1, this.viewModel =
|
|
45
|
+
}, this._openRelatedFeatureAbortController = null, this.flowItems = new k(), this._aggregatedFeatureCount = 0, this._selectedAggregatedFeatureIndex = -1, this._aggregatedFeaturesLoading = !1, this._hasActionsStartSlotContent = !1, this._hasActionsEndSlotContent = !1, this.viewModel = ie(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.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 k(), 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.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.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = V()("active", "collapsed", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = I(), this.arcgisClose = I(), this.arcgisTriggerAction = I();
|
|
46
46
|
}
|
|
47
47
|
static {
|
|
48
48
|
this.properties = { _openRelatedFeatureAbortController: 16, flowItems: 16, _aggregatedFeatureCount: 16, _selectedAggregatedFeatureIndex: 16, _aggregatedFeaturesLoading: 16, _hasActionsStartSlotContent: 16, _hasActionsEndSlotContent: 16, _hideActionText: 16, _featureNavigationVisible: 16, _isCollapsed: 16, _collapseEnabled: 16, _selectedFeatureHeading: 16, _selectedFeatureHeadingText: 16, _selectedFeatureContent: 16, _featureFlowItemSelected: 16, viewModel: 0, actions: 0, active: 0, autoDestroyDisabled: 5, focusTrapEnabled: 5, collapseDirection: 1, collapsed: 5, content: 1, defaultPopupTemplateEnabled: 5, effectiveHeading: 32, featureCount: 9, featureMenuOpen: 5, featureMenuTitle: 1, featureNavigationTop: 5, features: 0, featuresPerPage: 9, featureItemAbilities: 0, goToOverride: 0, headerActions: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideHeading: 5, hideSelectFeature: 5, hideSpinner: 5, hideContent: 5, chartAnimationDisabled: 5, hideAttachmentsContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, hideRelationshipContent: 5, hideTextContent: 5, hideUtilityNetworkContent: 5, hideLastEditedInfo: 5, highlightDisabled: 5, icon: 1, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, map: 0, messageOverrides: 0, open: 5, referenceElement: 1, promises: 0, responsiveActionsEnabled: 5, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, showCollapseButton: 5, spatialReference: 0, state: 32, timeZone: 1, updateLocationEnabled: 5, view: 0 };
|
|
49
49
|
}
|
|
50
50
|
static {
|
|
51
|
-
this.styles =
|
|
51
|
+
this.styles = Y;
|
|
52
52
|
}
|
|
53
53
|
get _hideActionText() {
|
|
54
54
|
if (!this.responsiveActionsEnabled)
|
|
@@ -84,7 +84,7 @@ class ie extends z {
|
|
|
84
84
|
this.open = !1;
|
|
85
85
|
}
|
|
86
86
|
async destroy() {
|
|
87
|
-
await this.manager.destroy(), this._removeSpinner(this.referenceElement), this._cancelOpenRelatedFeature(), this.
|
|
87
|
+
await this.manager.destroy(), this._removeSpinner(this.referenceElement), this._cancelOpenRelatedFeature(), this._cancelSetFocusAnimationFrame(), this._removeFlowItems(), this._unobserveFeatureMenuObserver(), this._cancelFetchingFeatures(), this._featureMenuIntersectionObserver?.disconnect();
|
|
88
88
|
}
|
|
89
89
|
async fetchFeatures(e, t) {
|
|
90
90
|
this._cancelFetchingFeatures();
|
|
@@ -103,34 +103,47 @@ class ie extends z {
|
|
|
103
103
|
this.viewModel.previous();
|
|
104
104
|
}
|
|
105
105
|
async setFocus() {
|
|
106
|
-
|
|
106
|
+
this._cancelSetFocusAnimationFrame(), await new Promise((e) => {
|
|
107
|
+
this._setFocusAnimationFrameResolve = e, this._setFocusAnimationFrameId = requestAnimationFrame(() => {
|
|
108
|
+
this._setFocusAnimationFrameId = null;
|
|
109
|
+
try {
|
|
110
|
+
if (!this.isConnected || !this.viewModel?.active)
|
|
111
|
+
return;
|
|
112
|
+
this._flowContainerNode.value?.setFocus();
|
|
113
|
+
} finally {
|
|
114
|
+
this._resolveSetFocusAnimationFrame();
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
});
|
|
107
118
|
}
|
|
108
119
|
connectedCallback() {
|
|
109
120
|
super.connectedCallback(), this._createSpinner();
|
|
110
121
|
}
|
|
111
122
|
disconnectedCallback() {
|
|
112
|
-
super.disconnectedCallback(), this.
|
|
123
|
+
super.disconnectedCallback(), this._cancelSetFocusAnimationFrame(), this._removeSpinner(this.referenceElement);
|
|
113
124
|
}
|
|
114
125
|
loaded() {
|
|
115
126
|
this.manager.onLifecycle(() => [
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
h(() => this._spinnerEl?.screenLocation, () => this._closeOpenActionMenu()),
|
|
121
|
-
h(() => this.selectedFeatureComponent?.viewModel, () => this._removeFlowItems()),
|
|
122
|
-
h(() => this.viewModel?.featureItems, () => this._featureMenuViewportScrollTop()),
|
|
123
|
-
h(() => this.flowItems.length, () => this._syncSelectedDrillInFeature()),
|
|
124
|
-
h(() => [this.flowItems?.length, this.featureMenuOpen], () => {
|
|
127
|
+
X(() => [this.initialDisplayMode === "list" && !!this.viewModel?.selectedFeature, this.viewModel?.active], () => {
|
|
128
|
+
this.setFocus();
|
|
129
|
+
}),
|
|
130
|
+
u(() => [this.flowItems?.length, this.featureMenuOpen], () => {
|
|
125
131
|
this.setFocus();
|
|
126
132
|
}),
|
|
127
|
-
|
|
133
|
+
u(() => this.viewModel?.selectedFeatureIndex, (e, t) => this._selectedFeatureIndexUpdated(e, t)),
|
|
134
|
+
u(() => this.viewModel?.view?.scale, () => this._viewScaleChange()),
|
|
135
|
+
u(() => this.viewModel?.view, (e, t) => t && this._viewChange()),
|
|
136
|
+
u(() => this._spinnerEl?.screenLocation, () => this._closeOpenActionMenu()),
|
|
137
|
+
u(() => this.selectedFeatureComponent?.viewModel, () => this._removeFlowItems()),
|
|
138
|
+
u(() => this.viewModel?.featureItems, () => this._featureMenuViewportScrollTop()),
|
|
139
|
+
u(() => this.flowItems.length, () => this._syncSelectedDrillInFeature()),
|
|
140
|
+
u(() => this.viewModel.aggregatedFeaturesEnabled, (e) => {
|
|
128
141
|
e || (this._aggregatedFeatureCount = 0, this._selectedAggregatedFeatureIndex = -1, this._aggregatedFeaturesLoading = !1, this._removeFlowItems());
|
|
129
142
|
}),
|
|
130
|
-
|
|
143
|
+
u(() => this.referenceElement, (e, t) => {
|
|
131
144
|
this._removeSpinner(t), this._createSpinner();
|
|
132
145
|
}, { initial: !0 }),
|
|
133
|
-
|
|
146
|
+
u(() => [
|
|
134
147
|
this.hideSpinner,
|
|
135
148
|
this.viewModel?.view,
|
|
136
149
|
this.viewModel?.location,
|
|
@@ -141,15 +154,14 @@ class ie extends z {
|
|
|
141
154
|
}
|
|
142
155
|
updated() {
|
|
143
156
|
const e = this._selectedFeatureComponent.value ?? void 0;
|
|
144
|
-
this.selectedFeatureComponent !== e &&
|
|
157
|
+
this.selectedFeatureComponent !== e && S(() => this.selectedFeatureComponent = e);
|
|
145
158
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
});
|
|
159
|
+
_resolveSetFocusAnimationFrame() {
|
|
160
|
+
const e = this._setFocusAnimationFrameResolve;
|
|
161
|
+
this._setFocusAnimationFrameResolve = null, e?.();
|
|
150
162
|
}
|
|
151
|
-
|
|
152
|
-
this.
|
|
163
|
+
_cancelSetFocusAnimationFrame() {
|
|
164
|
+
this._setFocusAnimationFrameId != null && (cancelAnimationFrame(this._setFocusAnimationFrameId), this._setFocusAnimationFrameId = null), this._resolveSetFocusAnimationFrame();
|
|
153
165
|
}
|
|
154
166
|
_cancelFetchingFeatures() {
|
|
155
167
|
this._fetchFeaturesController = N(this._fetchFeaturesController);
|
|
@@ -163,7 +175,7 @@ class ie extends z {
|
|
|
163
175
|
const i = a?.graphic;
|
|
164
176
|
if (!i)
|
|
165
177
|
return;
|
|
166
|
-
const s = L(i), n =
|
|
178
|
+
const s = L(i), n = ee(s) ? s : null;
|
|
167
179
|
let r = t.get(n);
|
|
168
180
|
r || (r = [], t.set(n, r)), r.push(a);
|
|
169
181
|
}), t;
|
|
@@ -187,7 +199,7 @@ class ie extends z {
|
|
|
187
199
|
if (t.signal.aborted)
|
|
188
200
|
return;
|
|
189
201
|
const n = s.execute(i);
|
|
190
|
-
n != null && (this.location = n), this.features = [a], this.open = !0,
|
|
202
|
+
n != null && (this.location = n), this.features = [a], this.open = !0, this._openRelatedFeatureAbortController = null;
|
|
191
203
|
}
|
|
192
204
|
_handlePaginationMenuButton() {
|
|
193
205
|
this._updateFeatureMenu();
|
|
@@ -208,10 +220,10 @@ class ie extends z {
|
|
|
208
220
|
this.viewModel.next();
|
|
209
221
|
}
|
|
210
222
|
_handleFeatureBack() {
|
|
211
|
-
this.initialDisplayMode === "list" ?
|
|
223
|
+
this.initialDisplayMode === "list" ? this.selectedFeatureIndex = -1 : this._openFeatureMenu();
|
|
212
224
|
}
|
|
213
225
|
_handleFeatureMenuBack() {
|
|
214
|
-
this.initialDisplayMode === "list" ?
|
|
226
|
+
this.initialDisplayMode === "list" ? this.selectedFeatureIndex = -1 : this.featureMenuOpen && this._closeFeatureMenu();
|
|
215
227
|
}
|
|
216
228
|
_setActiveFeature(e) {
|
|
217
229
|
const { viewModel: t } = this;
|
|
@@ -221,7 +233,7 @@ class ie extends z {
|
|
|
221
233
|
this.viewModel.activeFeature = null;
|
|
222
234
|
}
|
|
223
235
|
_selectFeature(e) {
|
|
224
|
-
this.viewModel.selectedFeatureIndex = e, this.initialDisplayMode === "feature"
|
|
236
|
+
this.viewModel.selectedFeatureIndex = e, this.initialDisplayMode === "feature" && this._handleFeatureMenuBack();
|
|
225
237
|
}
|
|
226
238
|
_unobserveFeatureMenuObserver() {
|
|
227
239
|
this._featureMenuIntersectionObserverNode && this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode);
|
|
@@ -235,7 +247,7 @@ class ie extends z {
|
|
|
235
247
|
}
|
|
236
248
|
_onMainKeydown(e) {
|
|
237
249
|
const { key: t } = e;
|
|
238
|
-
e.defaultPrevented || (
|
|
250
|
+
e.defaultPrevented || (J(t, this._direction) && (e.stopPropagation(), this._handleFeatureMenuBack(), this.previous()), Q(t, this._direction) && (e.stopPropagation(), this._handleFeatureMenuBack(), this.next()));
|
|
239
251
|
}
|
|
240
252
|
_featureMenuViewportScrollTop() {
|
|
241
253
|
this._featureMenuViewportNode.value?.scrollContentTo({ top: 0 });
|
|
@@ -249,7 +261,7 @@ class ie extends z {
|
|
|
249
261
|
}
|
|
250
262
|
_viewScaleChange() {
|
|
251
263
|
const { selectedFeature: e } = this;
|
|
252
|
-
!e?.isAggregate ||
|
|
264
|
+
!e?.isAggregate || te(L(e)) !== "cluster" || (this.viewModel.aggregatedFeaturesEnabled = !1, this.open = !1, this.clear());
|
|
253
265
|
}
|
|
254
266
|
_viewChange() {
|
|
255
267
|
this.viewModel.clear(), this.open = !1, this._aggregatedFeatureCount = 0, this._removeFlowItems();
|
|
@@ -263,7 +275,7 @@ class ie extends z {
|
|
|
263
275
|
}
|
|
264
276
|
_syncSelectedDrillInFeature() {
|
|
265
277
|
const e = this.flowItems.getItemAt(this.flowItems.length - 1);
|
|
266
|
-
|
|
278
|
+
S(() => this.selectedDrillInFeature = e?.graphic ?? void 0);
|
|
267
279
|
}
|
|
268
280
|
_removeFlowItems() {
|
|
269
281
|
this.viewModel.aggregatedFeaturesEnabled = !1, this.flowItems?.destroyAll();
|
|
@@ -287,10 +299,10 @@ class ie extends z {
|
|
|
287
299
|
return !this.hideHeading && e ? e : "";
|
|
288
300
|
}
|
|
289
301
|
_handleActionsStartSlotChange(e) {
|
|
290
|
-
this._hasActionsStartSlotContent =
|
|
302
|
+
this._hasActionsStartSlotContent = D(e);
|
|
291
303
|
}
|
|
292
304
|
_handleActionsEndSlotChange(e) {
|
|
293
|
-
this._hasActionsEndSlotContent =
|
|
305
|
+
this._hasActionsEndSlotContent = D(e);
|
|
294
306
|
}
|
|
295
307
|
_removeSpinner(e) {
|
|
296
308
|
e?.manager?.component?.extraContent?.remove(this._spinnerEl), this._spinnerEl = void 0;
|
|
@@ -300,7 +312,7 @@ class ie extends z {
|
|
|
300
312
|
e && (this._removeSpinner(e), this._spinnerEl = U(o`<arcgis-spinner .label=${this.messages.loading ?? ""} .trackLocation=${!this.hideSpinner && this.viewModel.open && this.viewModel?.waitingForResult} .location=${this.viewModel?.location ?? void 0} .view=${this.viewModel?.view ?? void 0}></arcgis-spinner>`), e.manager?.component?.extraContent?.add(this._spinnerEl));
|
|
301
313
|
}
|
|
302
314
|
render() {
|
|
303
|
-
return o`<div class="root" @keydown=${this._onMainKeydown}
|
|
315
|
+
return o`<div class="root" @keydown=${this._onMainKeydown}>${this._renderContentContainer()}</div>`;
|
|
304
316
|
}
|
|
305
317
|
_renderFeatureNavigation() {
|
|
306
318
|
return [
|
|
@@ -309,7 +321,7 @@ class ie extends z {
|
|
|
309
321
|
];
|
|
310
322
|
}
|
|
311
323
|
_renderHeader() {
|
|
312
|
-
return this.featureNavigationTop && this._featureNavigationVisible ? o`<div class="header">${this._renderFeatureNavigation()}</div>` : null;
|
|
324
|
+
return this.featureNavigationTop && this._featureNavigationVisible ? o`<div slot=header-top class="header">${this._renderFeatureNavigation()}</div>` : null;
|
|
313
325
|
}
|
|
314
326
|
_renderFooter() {
|
|
315
327
|
return !this.featureNavigationTop && this._featureNavigationVisible ? o`<div class="footer" slot=footer>${this._renderFeatureNavigation()}</div>` : null;
|
|
@@ -317,20 +329,20 @@ class ie extends z {
|
|
|
317
329
|
_renderFeaturePaginationText(e, t) {
|
|
318
330
|
const { messages: a } = this;
|
|
319
331
|
return o`<div class="pagination-text">${d(a.pageText ?? "", {
|
|
320
|
-
index:
|
|
321
|
-
total:
|
|
332
|
+
index: b(t + 1),
|
|
333
|
+
total: b(e)
|
|
322
334
|
})}</div>`;
|
|
323
335
|
}
|
|
324
336
|
_renderFeatureMenuButton() {
|
|
325
337
|
const { messages: e, viewModel: t } = this, { featureCount: a, selectedFeatureIndex: i, pendingPromisesCount: s } = t;
|
|
326
338
|
return o`<calcite-action class="pagination-menu-button" icon=list .label=${e.showAllFeatures ?? ""} .loading=${s > 0} @click=${this._handlePaginationMenuButton} .text=${d(e.pageText ?? "", {
|
|
327
|
-
index:
|
|
328
|
-
total:
|
|
329
|
-
})} text-enabled title=${e.showAllFeatures ?? "" ??
|
|
339
|
+
index: b(i + 1),
|
|
340
|
+
total: b(a)
|
|
341
|
+
})} text-enabled title=${e.showAllFeatures ?? "" ?? h}></calcite-action>`;
|
|
330
342
|
}
|
|
331
343
|
_renderPagination(e, t) {
|
|
332
344
|
const { previous: a, next: i } = this.messages;
|
|
333
|
-
return o`<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=${a ?? ""} @click=${e} .text=${a ?? ""} title=${a ?? "" ??
|
|
345
|
+
return o`<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=${a ?? ""} @click=${e} .text=${a ?? ""} title=${a ?? "" ?? h}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${i ?? ""} @click=${t} .text=${i ?? ""} title=${i ?? "" ?? h}></calcite-action></calcite-action-group></calcite-action-bar>`;
|
|
334
346
|
}
|
|
335
347
|
_renderFeatureMenuItem(e, t) {
|
|
336
348
|
const { initialDisplayMode: a } = this, { selectedFeatureItem: i } = this.viewModel, s = e === i;
|
|
@@ -350,50 +362,50 @@ class ie extends z {
|
|
|
350
362
|
}
|
|
351
363
|
_renderHeaderAction(e) {
|
|
352
364
|
const t = e.title || "";
|
|
353
|
-
return e.visible ? o`<calcite-action .active=${e.type === "toggle" ? e.value : !1} .disabled=${e.disabled} .icon=${e.icon ?? void 0} .indicator=${e.active} .loading=${e.active} @click=${() => this._triggerAction(e)} slot=header-actions-end .text=${t} title=${t ??
|
|
365
|
+
return e.visible ? o`<calcite-action .active=${e.type === "toggle" ? e.value : !1} .disabled=${e.disabled} .icon=${e.icon ?? void 0} .indicator=${e.active} .loading=${e.active} @click=${() => this._triggerAction(e)} slot=header-actions-end .text=${t} title=${t ?? h}></calcite-action>` : null;
|
|
354
366
|
}
|
|
355
367
|
_renderHeaderActions() {
|
|
356
368
|
return this.headerActions.map((e) => this._renderHeaderAction(e)).toArray();
|
|
357
369
|
}
|
|
358
370
|
_renderContentFeature(e) {
|
|
359
|
-
const { headingLevel: t, hideCloseButton: a, _isCollapsed: i, _collapseEnabled: s, featureNavigationTop: n, initialDisplayMode: r, selectedFeature: l, hideHeading: c } = this, { active: g, selectedFeatureItem: m, content:
|
|
371
|
+
const { headingLevel: t, hideCloseButton: a, _isCollapsed: i, _collapseEnabled: s, featureNavigationTop: n, initialDisplayMode: r, selectedFeature: l, hideHeading: c } = this, { active: g, selectedFeatureItem: m, content: F } = this.viewModel, p = this._getHeading();
|
|
360
372
|
if (r === "list" && !l)
|
|
361
373
|
return null;
|
|
362
|
-
const
|
|
363
|
-
return o`<calcite-flow-item class=${x(
|
|
374
|
+
const _ = m ? !m.content : !F;
|
|
375
|
+
return o`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${x(y({
|
|
364
376
|
"content-feature": !0,
|
|
365
377
|
"flow-item-collapsed": i
|
|
366
|
-
}))} .closable=${!a} .closed=${!g} .collapsed=${i} .collapseDirection=${this.collapseDirection ?? (n ? "down" : "up")} .collapsible=${s} .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} .heading=${!c && p ?
|
|
367
|
-
"content-hidden":
|
|
378
|
+
}))} .closable=${!a} .closed=${!g} .collapsed=${i} .collapseDirection=${this.collapseDirection ?? (n ? "down" : "up")} .collapsible=${s} .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} .heading=${!c && p ? T(p) : void 0} ${f(this._rootFlowItemNode)}>${this._renderHeader()}${!c && p ? o`<div slot=heading><div .innerHTML=${$.sanitize(p ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${x(y("container", "content-container", {
|
|
379
|
+
"content-hidden": _
|
|
368
380
|
}))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
|
|
369
381
|
}
|
|
370
382
|
_renderFeatureMenuContainer() {
|
|
371
|
-
const { viewModel: e, hideCloseButton: t, featureMenuTitle: a, messages: i, initialDisplayMode: s, featureMenuOpen: n, _featureFlowItemSelected: r, _collapseEnabled: l, _isCollapsed: c, featureNavigationTop: g, headingLevel: m } = this, { active:
|
|
383
|
+
const { viewModel: e, hideCloseButton: t, featureMenuTitle: a, messages: i, initialDisplayMode: s, featureMenuOpen: n, _featureFlowItemSelected: r, _collapseEnabled: l, _isCollapsed: c, featureNavigationTop: g, headingLevel: m } = this, { active: F, featureItems: p, pendingPromisesCount: _ } = e, M = a ?? i.selectFeature, C = d(i.backLabel ?? "", {
|
|
372
384
|
title: this._selectedFeatureHeadingText
|
|
373
385
|
});
|
|
374
386
|
if (s === "feature" && !n)
|
|
375
387
|
return null;
|
|
376
|
-
const
|
|
377
|
-
return o`<calcite-flow-item class=${x(
|
|
388
|
+
const A = !r;
|
|
389
|
+
return o`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${x(y({
|
|
378
390
|
"flow-item-collapsed": c
|
|
379
|
-
}))} .closable=${s === "list" && !t} .closed=${!
|
|
391
|
+
}))} .closable=${s === "list" && !t} .closed=${!F} .collapsed=${s === "list" && c} .collapseDirection=${this.collapseDirection ?? (g ? "down" : "up")} .collapsible=${s === "list" && l} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand, back: C }} .description=${this.hideFeatureMenuHeading ? void 0 : d(i.total ?? "", {
|
|
380
392
|
total: p.length
|
|
381
|
-
})} .heading=${this.hideFeatureMenuHeading ? void 0 :
|
|
382
|
-
|
|
383
|
-
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${f(this._featureMenuViewportNode)}>${s === "list" ? this._renderHeaderActions() : null}${
|
|
393
|
+
})} .heading=${this.hideFeatureMenuHeading ? void 0 : M} .headingLevel=${m} .loading=${e.waitingForContents} .selected=${A} @calciteFlowItemBack=${(R) => {
|
|
394
|
+
R.preventDefault(), this._handleFeatureMenuBack();
|
|
395
|
+
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${f(this._featureMenuViewportNode)}>${s === "list" ? this._renderHeaderActions() : null}${_ > 0 ? o`<calcite-loader class="loader" inline .label=${i.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${f(this._featureMenuIntersectionObserverCreated)}></div>${s === "feature" ? o`<calcite-button scale=s appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full .label=${C} title=${C ?? h}>${i.back}</calcite-button>` : null}</calcite-flow-item>`;
|
|
384
396
|
}
|
|
385
397
|
_renderFlowItem(e, t) {
|
|
386
|
-
const { messages: a, hideCloseButton: i, hideSelectFeature: s, active: n, hideHeading: r } = this, l = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable, c = l && !s, g = e.flowType === "feature-association", m = a.returnToInitialFeature ?? "",
|
|
398
|
+
const { messages: a, hideCloseButton: i, hideSelectFeature: s, active: n, hideHeading: r } = this, l = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable, c = l && !s, g = e.flowType === "feature-association", m = a.returnToInitialFeature ?? "", F = a?.selectFeature, p = this._getActionTitle(this._zoomToFeature), _ = d(a.zoomLabel ?? "", {
|
|
387
399
|
messages: a,
|
|
388
400
|
title: this._selectedFeatureHeadingText
|
|
389
|
-
}),
|
|
401
|
+
}), M = !this.hideActionBar && g && l, C = e.flowType === "feature" && this.viewModel.aggregatedFeaturesEnabled ? o`<div class="footer" slot=footer>${this._renderPagination(() => {
|
|
390
402
|
this._aggregatedFeaturesComponent.value?.previous();
|
|
391
403
|
}, () => {
|
|
392
404
|
this._aggregatedFeaturesComponent.value?.next();
|
|
393
405
|
})}${this._renderFeaturePaginationText(this._aggregatedFeatureCount, this._selectedAggregatedFeatureIndex)}</div>` : null;
|
|
394
|
-
return o`<calcite-flow-item .closable=${!i} .closed=${!n} class="flow-item-drill-in" .description=${
|
|
395
|
-
|
|
396
|
-
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${r ? null : o`<div slot=heading><div .innerHTML=${$.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${$.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${m ?? ""} title=${m ?? "" ??
|
|
406
|
+
return o`<calcite-flow-item .closable=${!i} .closed=${!n} .focusTrapEnabled=${this.focusTrapEnabled} class="flow-item-drill-in" .description=${T(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${r ? void 0 : T(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(A) => {
|
|
407
|
+
A.preventDefault(), this._handleDrillInBackClick();
|
|
408
|
+
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${r ? null : o`<div slot=heading><div .innerHTML=${$.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${$.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${m ?? ""} title=${m ?? "" ?? h}></calcite-action>${c ? o`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${F ?? ""} title=${F ?? h}></calcite-action>` : null}${M ? o`<calcite-action-bar expand-toggle-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${this._zoomToFeature.disabled} .icon=${this._zoomToFeature.icon ?? void 0} .loading=${this._zoomToFeature.active} scale=s text-enabled .text=${p} title=${_ ?? h} .label=${_} @click=${() => q(this.viewModel, this._zoomToFeature, e)}></calcite-action></calcite-action-group></calcite-action-bar>` : null}<div class="container">${e}</div>${C}</calcite-flow-item>`;
|
|
397
409
|
}
|
|
398
410
|
_renderContentContainer() {
|
|
399
411
|
const e = this.flowItems?.toArray(), t = e.length > 0, a = this.viewModel.aggregatedFeaturesEnabled && this.viewModel.selectedFeature?.isAggregate && !t, i = a && e.length === 0, s = e.length === 0 && this._featureFlowItemSelected && !a, n = e?.map((c, g) => this._renderFlowItem(c, this._featureFlowItemSelected && g === e.length - 1)), r = this._renderBrowseAggregateContainer(!!i), l = this.initialDisplayMode === "list" ? [this._renderFeatureMenuContainer(), this._renderContentFeature(s)] : [this._renderContentFeature(s), this._renderFeatureMenuContainer()];
|
|
@@ -403,22 +415,22 @@ class ie extends z {
|
|
|
403
415
|
const { hideCloseButton: t, active: a, messages: i } = this, { selectedFeature: s } = this.viewModel, n = this.viewModel.aggregatedFeaturesEnabled && s?.isAggregate, r = d(i.backLabel ?? "", {
|
|
404
416
|
title: this._selectedFeatureHeadingText
|
|
405
417
|
});
|
|
406
|
-
return n ? o`<calcite-flow-item .selected=${e} .closable=${!t} .closed=${!a} .description=${this._aggregatedFeatureCount ? d(i.total ?? "", {
|
|
418
|
+
return n ? o`<calcite-flow-item .selected=${e} .closable=${!t} .closed=${!a} .focusTrapEnabled=${this.focusTrapEnabled} .description=${this._aggregatedFeatureCount ? d(i.total ?? "", {
|
|
407
419
|
total: this._aggregatedFeatureCount
|
|
408
420
|
}) : ""} .heading=${i.aggregatedFeatures} @calciteFlowItemBack=${(l) => {
|
|
409
421
|
l.preventDefault(), this.viewModel.aggregatedFeaturesEnabled = !1;
|
|
410
422
|
}} .messageOverrides=${{
|
|
411
423
|
back: r
|
|
412
|
-
}} .loading=${this._aggregatedFeaturesLoading} @calciteFlowItemClose=${this._handleClose}><arcgis-aggregated-features .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .feature=${s ?? void 0} .flowItems=${this.flowItems} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map ?? void 0} .messageOverrides=${this.messageOverrides} .messages=${i} @arcgisPropertyChange=${this._handleAggregatedFeaturesPropertyChange} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .view=${this.view ?? void 0} ${f(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 ??
|
|
424
|
+
}} .loading=${this._aggregatedFeaturesLoading} @calciteFlowItemClose=${this._handleClose}><arcgis-aggregated-features .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .feature=${s ?? void 0} .flowItems=${this.flowItems} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map ?? void 0} .messageOverrides=${this.messageOverrides} .messages=${i} @arcgisPropertyChange=${this._handleAggregatedFeaturesPropertyChange} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .view=${this.view ?? void 0} ${f(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 ?? h}>${i.back}</calcite-button></calcite-flow-item>` : null;
|
|
413
425
|
}
|
|
414
426
|
_renderActionBar() {
|
|
415
427
|
const e = this.viewModel.selectedFeatureItem?.isFeatureFromTable, t = this.viewModel.allActions.toArray(), a = e && !this.location ? t.filter((n) => n.id !== this._zoomToFeature.id) : t, i = !!a.length || this._hasActionsStartSlotContent || this._hasActionsEndSlotContent, s = this._isCollapsed || this.hideActionBar || !i;
|
|
416
|
-
return o`<calcite-action-bar expand-toggle-disabled .expanded=${!this._hideActionText} scale=s slot=${(s ? void 0 : "action-bar") ??
|
|
428
|
+
return o`<calcite-action-bar expand-toggle-disabled .expanded=${!this._hideActionText} scale=s slot=${(s ? void 0 : "action-bar") ?? h} .hidden=${s}><slot name=actions-start @slotchange=${this._handleActionsStartSlotChange}></slot><calcite-action-group overlay-positioning=fixed scale=s ${f(this._actionBarMenuNode)}>${this._renderActions(a)}</calcite-action-group><slot name=actions-end @slotchange=${this._handleActionsEndSlotChange}></slot></calcite-action-bar>`;
|
|
417
429
|
}
|
|
418
430
|
_renderActions(e) {
|
|
419
431
|
return e.map((t) => {
|
|
420
432
|
const a = this._getActionTitle(t);
|
|
421
|
-
return o`<calcite-action .active=${t.type === "toggle" ? t.value : !1} .disabled=${t.disabled} .icon=${t.icon ?? void 0} .loading=${t.active} scale=s .textEnabled=${!this._hideActionText} .text=${a ?? ""} title=${a ??
|
|
433
|
+
return o`<calcite-action .active=${t.type === "toggle" ? t.value : !1} .disabled=${t.disabled} .icon=${t.icon ?? void 0} .loading=${t.active} scale=s .textEnabled=${!this._hideActionText} .text=${a ?? ""} title=${a ?? h} .hidden=${!t.visible} @click=${() => this._triggerAction(t)}></calcite-action>`;
|
|
422
434
|
});
|
|
423
435
|
}
|
|
424
436
|
_renderContent() {
|
|
@@ -426,7 +438,7 @@ class ie extends z {
|
|
|
426
438
|
return t ? o`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${f(this._selectedFeatureComponent)}></arcgis-feature-next>` : typeof e == "string" ? E(e, o`<div .innerHTML=${$.sanitize(e) ?? ""}></div>`) : e ?? null;
|
|
427
439
|
}
|
|
428
440
|
}
|
|
429
|
-
|
|
441
|
+
B("arcgis-features-next", ae);
|
|
430
442
|
export {
|
|
431
|
-
|
|
443
|
+
ae as ArcgisFeaturesNext
|
|
432
444
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "../arcgis-spinner/index.js";
|
|
2
|
-
import "@esri/calcite-components/components/calcite-focus-trap";
|
|
3
2
|
import "@esri/calcite-components/components/calcite-action";
|
|
4
3
|
import "@esri/calcite-components/components/calcite-action-bar";
|
|
5
4
|
import "@esri/calcite-components/components/calcite-action-group";
|
|
@@ -115,7 +115,7 @@ class W extends E {
|
|
|
115
115
|
}
|
|
116
116
|
_renderGridPlacementButtons() {
|
|
117
117
|
const { interactivePlacementState: e, placementDisabled: i, gridControlsEnabled: t } = this, r = i || !t;
|
|
118
|
-
return a`<calcite-label scale=s>${this._messages.placementOptions}<calcite-action-bar expand-disabled layout=horizontal>${B.map((o) => this._renderPlacementModeButton(o, r, e))}</calcite-action-bar></calcite-label>`;
|
|
118
|
+
return a`<calcite-label scale=s>${this._messages.placementOptions}<calcite-action-bar expand-toggle-disabled layout=horizontal>${B.map((o) => this._renderPlacementModeButton(o, r, e))}</calcite-action-bar></calcite-label>`;
|
|
119
119
|
}
|
|
120
120
|
_renderPlacementModeButton(e, i, t) {
|
|
121
121
|
const r = this._messages?.placementState?.[e], o = this._placementModeButtonRefs.get(e);
|
|
@@ -107,13 +107,15 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
107
107
|
*/
|
|
108
108
|
get attributionItems(): LinkChartView["attributionItems"];
|
|
109
109
|
/**
|
|
110
|
-
* The
|
|
111
|
-
*
|
|
112
|
-
*
|
|
110
|
+
* The display mode used for the attribution. Defaults to null.
|
|
111
|
+
*
|
|
112
|
+
* Set this property to "auto" to automatically synchronize the attribution with the nearest [Calcite mode](https://developers.arcgis.com/calcite-design-system/core-concepts/#modes). If no Calcite mode is detected, the attribution defaults to light mode. **The "auto" mode was added in version 5.2.**
|
|
113
|
+
*
|
|
114
|
+
* Set this property to "light" or "dark" to explicitly use that mode without synchronization.
|
|
113
115
|
*
|
|
114
116
|
* @since 5.0
|
|
115
117
|
*/
|
|
116
|
-
accessor attributionMode:
|
|
118
|
+
accessor attributionMode: AttributionMode;
|
|
117
119
|
/**
|
|
118
120
|
* If true, the component will not be destroyed automatically when it is
|
|
119
121
|
* disconnected from the document. This is useful when you want to move the
|
|
@@ -966,4 +968,6 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
966
968
|
arcgisViewReadyError: ArcgisLinkChart["arcgisViewReadyError"]["detail"];
|
|
967
969
|
arcgisViewVerticalTwoFingerDrag: ArcgisLinkChart["arcgisViewVerticalTwoFingerDrag"]["detail"];
|
|
968
970
|
};
|
|
969
|
-
}
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
export type AttributionMode = LinkChartView["attributionMode"] | "auto";
|
|
@@ -5,19 +5,19 @@ import _ from "@arcgis/core/views/LinkChartView.js";
|
|
|
5
5
|
import b from "@arcgis/core/WebLinkChart.js";
|
|
6
6
|
import { LitElement as V, createEvent as c, safeClassMap as w } from "@arcgis/lumina";
|
|
7
7
|
import { makeAccessorController as f, reEmitEvent as e, reCreateAccessor as A } from "@arcgis/lumina/controllers/accessor";
|
|
8
|
-
import { createRef as
|
|
8
|
+
import { createRef as m, ref as v } from "lit/directives/ref.js";
|
|
9
9
|
import { s as I } from "../../chunks/esri-main.js";
|
|
10
10
|
import { s as E } from "../../chunks/slots.js";
|
|
11
11
|
import { C as u } from "../../chunks/resources.js";
|
|
12
|
-
import { p as L, i as
|
|
13
|
-
import { U as
|
|
14
|
-
import { fetchKnowledgeGraph as
|
|
15
|
-
import
|
|
12
|
+
import { p as L, i as M } from "../../chunks/component-utils.js";
|
|
13
|
+
import { U as k, u as R, a as U, b as D } from "../../chunks/useArcgisViewReadyError.js";
|
|
14
|
+
import { fetchKnowledgeGraph as x } from "@arcgis/core/rest/knowledgeGraphService.js";
|
|
15
|
+
import Q from "@arcgis/core/rest/knowledgeGraph/GraphQueryStreaming.js";
|
|
16
16
|
import { t as d } from "../../chunks/async-utils.js";
|
|
17
17
|
import { isAbortError as g } from "@arcgis/core/core/promiseUtils.js";
|
|
18
18
|
import { html as y } from "lit";
|
|
19
|
-
import
|
|
20
|
-
const
|
|
19
|
+
import P from "@arcgis/core/layers/LinkChartLayer.js";
|
|
20
|
+
const z = f(
|
|
21
21
|
b,
|
|
22
22
|
/**
|
|
23
23
|
* Since omitProps is only needed for typing, not runtime, `{} as { ... }` is
|
|
@@ -28,10 +28,10 @@ const P = f(
|
|
|
28
28
|
* in an externalized package.
|
|
29
29
|
*/
|
|
30
30
|
{}
|
|
31
|
-
),
|
|
32
|
-
class
|
|
31
|
+
), Z = f(_, {});
|
|
32
|
+
class F extends V {
|
|
33
33
|
constructor() {
|
|
34
|
-
super(), this._containerRef =
|
|
34
|
+
super(), this._attributionMode = null, this._containerRef = m(), this._mapRef = m(), this._uiController = new k(this), this._activeLoadAbortController = null, this.arcgisLoadError = R(this), this.arcgisViewReadyError = U(this), this._map = z(this), this._baseCypherQuery = "", this._serviceUrl = "", this._propItemId = "", this.view = Z(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.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.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.updating = this.view.updating, 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 = c(), this.arcgisViewClick = e(() => this.view, "click"), this.arcgisViewDoubleClick = e(() => this.view, "double-click"), this.arcgisViewDoubleTapDrag = e(() => this.view, "double-tap-drag"), 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 = c(), this.arcgisViewVerticalTwoFingerDrag = e(() => this.view, "vertical-two-finger-drag"), D(this), this.view.ui = {
|
|
35
35
|
components: []
|
|
36
36
|
};
|
|
37
37
|
}
|
|
@@ -50,6 +50,12 @@ class Z extends V {
|
|
|
50
50
|
get attributionItems() {
|
|
51
51
|
return this.view?.attributionItems ?? [];
|
|
52
52
|
}
|
|
53
|
+
get attributionMode() {
|
|
54
|
+
return this._attributionMode;
|
|
55
|
+
}
|
|
56
|
+
set attributionMode(i) {
|
|
57
|
+
this._attributionMode = i, i !== "auto" && (this.view.attributionMode = i);
|
|
58
|
+
}
|
|
53
59
|
get center() {
|
|
54
60
|
return this.view.center;
|
|
55
61
|
}
|
|
@@ -118,7 +124,7 @@ class Z extends V {
|
|
|
118
124
|
return this.view.viewpoint;
|
|
119
125
|
}
|
|
120
126
|
set viewpoint(i) {
|
|
121
|
-
|
|
127
|
+
M(this.viewpoint, i) && (this.view.viewpoint = i);
|
|
122
128
|
}
|
|
123
129
|
get zoom() {
|
|
124
130
|
return this.view.zoom;
|
|
@@ -207,7 +213,7 @@ class Z extends V {
|
|
|
207
213
|
} else if (this._baseCypherQuery && this._serviceUrl) {
|
|
208
214
|
const a = t();
|
|
209
215
|
s.fetchKnowledgeGraph(this._serviceUrl).then((l) => {
|
|
210
|
-
s.WebLinkChart.fromCypherQuery(l, new
|
|
216
|
+
s.WebLinkChart.fromCypherQuery(l, new Q({
|
|
211
217
|
openCypherQuery: this._baseCypherQuery
|
|
212
218
|
}), void 0, {
|
|
213
219
|
signal: a?.signal
|
|
@@ -229,16 +235,16 @@ class Z extends V {
|
|
|
229
235
|
});
|
|
230
236
|
}
|
|
231
237
|
renderMain() {
|
|
232
|
-
return y`<div class=${w(u.base)} ${
|
|
238
|
+
return y`<div class=${w(u.base)} ${v(this._mapRef)}></div>`;
|
|
233
239
|
}
|
|
234
240
|
render() {
|
|
235
|
-
return y`${this.renderMain()}<section class=${w(u.containerUI)} ${
|
|
241
|
+
return y`${this.renderMain()}<section class=${w(u.containerUI)} ${v(this._containerRef)}>${this._uiController.render()}</section>`;
|
|
236
242
|
}
|
|
237
243
|
}
|
|
238
244
|
const s = {
|
|
239
|
-
fetchKnowledgeGraph: async (r) => await
|
|
245
|
+
fetchKnowledgeGraph: async (r) => await x(r),
|
|
240
246
|
WebLinkChart: b,
|
|
241
|
-
LinkChartLayer:
|
|
247
|
+
LinkChartLayer: P,
|
|
242
248
|
setMap: (r, i) => {
|
|
243
249
|
r.map = i;
|
|
244
250
|
},
|
|
@@ -253,8 +259,8 @@ const s = {
|
|
|
253
259
|
},
|
|
254
260
|
reCreateAccessor: A
|
|
255
261
|
};
|
|
256
|
-
C("arcgis-link-chart",
|
|
262
|
+
C("arcgis-link-chart", F);
|
|
257
263
|
export {
|
|
258
|
-
|
|
264
|
+
F as ArcgisLinkChart,
|
|
259
265
|
s as exportsForTests
|
|
260
266
|
};
|