@arcgis/map-components 5.2.0-next.76 → 5.2.0-next.78
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/4FN75DFQ.js +2 -0
- package/dist/cdn/{VJIYYZW3.js → D4HG2OIN.js} +1 -1
- package/dist/cdn/FOZXZGEZ.js +2 -0
- package/dist/cdn/HTL73ZTA.js +2 -0
- package/dist/cdn/HZVC4F3N.js +2 -0
- package/dist/cdn/OBHCFXFW.js +2 -0
- package/dist/cdn/S55YL3HD.js +2 -0
- package/dist/cdn/{VQG7S23K.js → SLPJAJDI.js} +1 -1
- package/dist/cdn/UFUUA7WI.js +2 -0
- package/dist/cdn/VGMTHIUW.js +2 -0
- package/dist/cdn/{YJYUG3DP.js → YUJMRIVW.js} +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-trace-functions-result-item/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/layer-list-item.js +35 -24
- package/dist/chunks/layer-list-next.js +1 -1
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +18 -21
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +12 -12
- package/dist/components/arcgis-basemap-layer-list-next/index.js +2 -2
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +19 -14
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +26 -26
- package/dist/components/arcgis-catalog-layer-list-next/index.js +1 -1
- package/dist/components/arcgis-feature-attachments/customElement.js +13 -13
- package/dist/components/arcgis-features-next/customElement.d.ts +9 -0
- package/dist/components/arcgis-features-next/customElement.js +126 -108
- package/dist/components/arcgis-layer-list-item-panel/customElement.js +5 -5
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +9 -9
- package/dist/components/arcgis-layer-list-next/customElement.js +12 -12
- package/dist/components/arcgis-layer-list-next/types.d.ts +4 -4
- package/dist/components/arcgis-table-list-next/customElement.d.ts +17 -13
- package/dist/components/arcgis-table-list-next/customElement.js +11 -11
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +30 -0
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +34 -0
- package/dist/components/arcgis-utility-network-trace-functions-result-item/index.d.ts +1 -0
- package/dist/components/arcgis-utility-network-trace-functions-result-item/index.js +4 -0
- package/dist/components/arcgis-utility-network-trace-results-next/customElement.js +51 -58
- package/dist/components/arcgis-utility-network-trace-results-next/index.js +1 -3
- 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 +4 -0
- package/dist/loader.js +2 -1
- package/dist/types/lumina.d.ts +6 -1
- package/dist/types/preact.d.ts +7 -1
- package/dist/types/react.d.ts +8 -1
- package/dist/types/stencil.d.ts +6 -1
- package/dist/utils/layer-list-utils.d.ts +6 -6
- package/package.json +4 -4
- package/dist/cdn/D6Z3MYCF.js +0 -2
- package/dist/cdn/GVCVI2FM.js +0 -2
- package/dist/cdn/H5BVJ264.js +0 -2
- package/dist/cdn/R5ZY52DF.js +0 -2
- package/dist/cdn/RIZHD5EC.js +0 -2
- package/dist/cdn/TKTHZ2GE.js +0 -2
- package/dist/cdn/ZWAOPC3F.js +0 -2
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { keyed as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import { c as O } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as R, html as r } from "lit";
|
|
4
|
+
import { keyed as E } from "lit/directives/keyed.js";
|
|
5
|
+
import H from "@arcgis/core/support/actions/ActionButton.js";
|
|
6
|
+
import k from "@arcgis/core/core/Collection.js";
|
|
7
7
|
import P from "@arcgis/core/popup/FeatureContentCollection.js";
|
|
8
|
-
import { LitElement as
|
|
9
|
-
import { useDirection as
|
|
10
|
-
import { classes as
|
|
11
|
-
import { slotChangeHasContent as
|
|
8
|
+
import { LitElement as z, createEvent as I, renderElement as U, nothing as u, safeClassMap as x } from "@arcgis/lumina";
|
|
9
|
+
import { useDirection as Z, usePropertyChange as V, bypassReadOnly as D } from "@arcgis/lumina/controllers";
|
|
10
|
+
import { classes as T } from "@arcgis/toolkit/dom";
|
|
11
|
+
import { slotChangeHasContent as S } from "@arcgis/toolkit/dom/slots";
|
|
12
12
|
import { createRef as v, ref as f } from "lit/directives/ref.js";
|
|
13
|
-
import { g as
|
|
14
|
-
import { initializeProjection as
|
|
15
|
-
import { t as
|
|
16
|
-
import { m as
|
|
17
|
-
import { renderingSanitizer as
|
|
18
|
-
import { stripHTML as
|
|
19
|
-
import { substitute as
|
|
20
|
-
import { u as
|
|
21
|
-
import { watch as
|
|
13
|
+
import { g as L } from "../../chunks/feature-utils.js";
|
|
14
|
+
import { initializeProjection as K } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
15
|
+
import { t as j, z as q } from "../../chunks/action-utils.js";
|
|
16
|
+
import { m as G } from "../../chunks/useViewModel.js";
|
|
17
|
+
import { renderingSanitizer as $ } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
18
|
+
import { stripHTML as y } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
19
|
+
import { substitute as d, formatNumber as M } from "@arcgis/core/intl.js";
|
|
20
|
+
import { u as W } from "../../chunks/useT9n.js";
|
|
21
|
+
import { watch as h } from "@arcgis/core/core/reactiveUtils.js";
|
|
22
22
|
import { a as N } from "../../chunks/maybe.js";
|
|
23
|
-
import { a as
|
|
24
|
-
const
|
|
25
|
-
function
|
|
23
|
+
import { a as X, b as J } from "../../chunks/keyboard-utils.js";
|
|
24
|
+
const Q = R`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-color-background: var(--calcite-color-foreground-1);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.root img{image-orientation:from-image}.flow-item-collapsed{--calcite-flow-item-header-border-block-end: none}.container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1)}.container calcite-list{width:100%}.container:not(:empty,.content-hidden){padding:var(--arcgis-internal-padding-md, var(--calcite-spacing-md))}.root .arcgis-feature,.root .arcgis-feature-relationship,.root .arcgis-feature-utility-network-associations{background-color:transparent}.heading{word-break:break-word;word-wrap:break-word}.header,.footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.footer{flex:1}.pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.pagination-action-bar{flex:1}.pagination-menu-button{padding-inline:var(--calcite-spacing-xxs);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.header{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.content-feature{--calcite-flow-item-footer-padding: 0}.feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.action-exit{transform:scaleX(-1)}.flow-item-drill-in{--calcite-flow-item-footer-padding: 0}`;
|
|
25
|
+
function Y(F) {
|
|
26
26
|
return F?.declaredClass.startsWith("esri.layers.") ?? !1;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function ee(F) {
|
|
29
29
|
if (!(!F || !("featureReduction" in F)))
|
|
30
30
|
return F.featureReduction?.type;
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
class
|
|
32
|
+
const te = G(P);
|
|
33
|
+
class ie extends z {
|
|
34
34
|
constructor() {
|
|
35
|
-
super(...arguments), this._zoomToFeature = new
|
|
35
|
+
super(...arguments), this._zoomToFeature = new H({
|
|
36
36
|
icon: "magnifying-glass-plus",
|
|
37
37
|
id: "zoom-to-feature",
|
|
38
38
|
title: "{messages.zoom}"
|
|
@@ -40,15 +40,15 @@ class te extends H {
|
|
|
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._focusTrapNode = v(), this._focusTrapAnimationFrameId = null, this._rootFlowItemNode = v(), this._featureMenuViewportNode = v(), this._actionBarMenuNode = v(), this._flowContainerNode = v(), this._aggregatedFeaturesComponent = v(), this.messages =
|
|
43
|
+
}), this._featureMenuIntersectionObserverNode = null, this._focusTrapNode = v(), this._focusTrapAnimationFrameId = null, this._rootFlowItemNode = v(), this._featureMenuViewportNode = v(), this._actionBarMenuNode = v(), this._flowContainerNode = v(), this._aggregatedFeaturesComponent = v(), this.messages = W(), this._selectedFeatureComponent = v(), this._direction = Z(), this._cancelOpenRelatedFeature = () => {
|
|
44
44
|
this._openRelatedFeatureAbortController = N(this._openRelatedFeatureAbortController);
|
|
45
|
-
}, this._openRelatedFeatureAbortController = null, this.flowItems = new
|
|
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 = te(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
|
-
this.properties = { _openRelatedFeatureAbortController: 16, flowItems: 16, _aggregatedFeatureCount: 16, _selectedAggregatedFeatureIndex: 16, _aggregatedFeaturesLoading: 16, _hasActionsStartSlotContent: 16, _hasActionsEndSlotContent: 16, _hideActionText: 16, _featureNavigationVisible: 16, _isCollapsed: 16, _collapseEnabled: 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 };
|
|
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 = Q;
|
|
52
52
|
}
|
|
53
53
|
get _hideActionText() {
|
|
54
54
|
if (!this.responsiveActionsEnabled)
|
|
@@ -63,7 +63,16 @@ class te extends H {
|
|
|
63
63
|
return this._collapseEnabled && this.collapsed;
|
|
64
64
|
}
|
|
65
65
|
get _collapseEnabled() {
|
|
66
|
-
return this.showCollapseButton && (this.initialDisplayMode === "list" || !!(this.heading || this.
|
|
66
|
+
return this.showCollapseButton && (this.initialDisplayMode === "list" || !!(this.heading || this._selectedFeatureHeading) && !!(this.content || this._selectedFeatureContent));
|
|
67
|
+
}
|
|
68
|
+
get _selectedFeatureHeading() {
|
|
69
|
+
return this.viewModel.selectedFeatureItem?.heading;
|
|
70
|
+
}
|
|
71
|
+
get _selectedFeatureHeadingText() {
|
|
72
|
+
return this._selectedFeatureHeading ?? this.messages.untitled;
|
|
73
|
+
}
|
|
74
|
+
get _selectedFeatureContent() {
|
|
75
|
+
return this.viewModel.selectedFeatureItem?.content;
|
|
67
76
|
}
|
|
68
77
|
get _featureFlowItemSelected() {
|
|
69
78
|
return this.initialDisplayMode === "list" ? !!this.selectedFeature : !this.featureMenuOpen;
|
|
@@ -80,15 +89,15 @@ class te extends H {
|
|
|
80
89
|
async fetchFeatures(e, t) {
|
|
81
90
|
this._cancelFetchingFeatures();
|
|
82
91
|
const { signal: a } = t ?? {}, i = new AbortController(), { signal: s } = i, n = a ? AbortSignal.any([s, a]) : s;
|
|
83
|
-
if (this._fetchFeaturesController = i, !e && this.view && this.location && (await
|
|
92
|
+
if (this._fetchFeaturesController = i, !e && this.view && this.location && (await K(this.location.spatialReference, this.view.spatialReference, null, {
|
|
84
93
|
signal: n
|
|
85
94
|
}), e = this.view.toScreen(this.location) ?? void 0), !e)
|
|
86
95
|
return;
|
|
87
|
-
const
|
|
96
|
+
const o = await this.viewModel.fetchFeatures(e, {
|
|
88
97
|
...t,
|
|
89
98
|
signal: n
|
|
90
99
|
});
|
|
91
|
-
this.location =
|
|
100
|
+
this.location = o.location, this.promises = o.pendingFeatures;
|
|
92
101
|
}
|
|
93
102
|
next() {
|
|
94
103
|
this.viewModel.next();
|
|
@@ -107,24 +116,24 @@ class te extends H {
|
|
|
107
116
|
}
|
|
108
117
|
loaded() {
|
|
109
118
|
this.manager.onLifecycle(() => [
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
+
h(() => this.viewModel?.active, () => this._toggleFocusTrap()),
|
|
120
|
+
h(() => this.viewModel?.selectedFeatureIndex, (e, t) => this._selectedFeatureIndexUpdated(e, t)),
|
|
121
|
+
h(() => this.viewModel?.view?.scale, () => this._viewScaleChange()),
|
|
122
|
+
h(() => this.viewModel?.view, (e, t) => t && this._viewChange()),
|
|
123
|
+
h(() => this._spinnerEl?.screenLocation, () => this._closeOpenActionMenu()),
|
|
124
|
+
h(() => this.selectedFeatureComponent?.viewModel, () => this._removeFlowItems()),
|
|
125
|
+
h(() => this.viewModel?.featureItems, () => this._featureMenuViewportScrollTop()),
|
|
126
|
+
h(() => this.flowItems.length, () => this._syncSelectedDrillInFeature()),
|
|
127
|
+
h(() => [this.flowItems?.length, this.featureMenuOpen], () => {
|
|
119
128
|
this.setFocus();
|
|
120
129
|
}),
|
|
121
|
-
|
|
130
|
+
h(() => this.viewModel.aggregatedFeaturesEnabled, (e) => {
|
|
122
131
|
e || (this._aggregatedFeatureCount = 0, this._selectedAggregatedFeatureIndex = -1, this._aggregatedFeaturesLoading = !1, this._removeFlowItems());
|
|
123
132
|
}),
|
|
124
|
-
|
|
133
|
+
h(() => this.referenceElement, (e, t) => {
|
|
125
134
|
this._removeSpinner(t), this._createSpinner();
|
|
126
135
|
}, { initial: !0 }),
|
|
127
|
-
|
|
136
|
+
h(() => [
|
|
128
137
|
this.hideSpinner,
|
|
129
138
|
this.viewModel?.view,
|
|
130
139
|
this.viewModel?.location,
|
|
@@ -135,7 +144,7 @@ class te extends H {
|
|
|
135
144
|
}
|
|
136
145
|
updated() {
|
|
137
146
|
const e = this._selectedFeatureComponent.value ?? void 0;
|
|
138
|
-
this.selectedFeatureComponent !== e &&
|
|
147
|
+
this.selectedFeatureComponent !== e && D(() => this.selectedFeatureComponent = e);
|
|
139
148
|
}
|
|
140
149
|
_toggleFocusTrap() {
|
|
141
150
|
this._cancelToggleFocusTrapAnimationFrame(), this._focusTrapAnimationFrameId = requestAnimationFrame(() => {
|
|
@@ -157,9 +166,9 @@ class te extends H {
|
|
|
157
166
|
const i = a?.graphic;
|
|
158
167
|
if (!i)
|
|
159
168
|
return;
|
|
160
|
-
const s =
|
|
161
|
-
let
|
|
162
|
-
|
|
169
|
+
const s = L(i), n = Y(s) ? s : null;
|
|
170
|
+
let o = t.get(n);
|
|
171
|
+
o || (o = [], t.set(n, o)), o.push(a);
|
|
163
172
|
}), t;
|
|
164
173
|
}
|
|
165
174
|
_handleCollapseToggle() {
|
|
@@ -224,12 +233,12 @@ class te extends H {
|
|
|
224
233
|
this._unobserveFeatureMenuObserver(), e && this._featureMenuIntersectionObserver.observe(e), this._featureMenuIntersectionObserverNode = e;
|
|
225
234
|
}
|
|
226
235
|
_getActionTitle(e) {
|
|
227
|
-
const { messages: t, selectedFeature: a } = this, { id: i } = e, s = a?.attributes, n = e.title ?? "",
|
|
228
|
-
return
|
|
236
|
+
const { messages: t, selectedFeature: a } = this, { id: i } = e, s = a?.attributes, n = e.title ?? "", o = i === "zoom-to-feature" ? d(n, { messages: t }) : i === "remove-selected-feature" ? d(n, { messages: t }) : i === "zoom-to-aggregated-features" ? d(n, { messages: t }) : i === "browse-aggregated-features" ? d(n, { messages: t }) : e.title;
|
|
237
|
+
return o && s ? d(o, s) : o ?? "";
|
|
229
238
|
}
|
|
230
239
|
_onMainKeydown(e) {
|
|
231
240
|
const { key: t } = e;
|
|
232
|
-
|
|
241
|
+
e.defaultPrevented || (X(t, this._direction) && (e.stopPropagation(), this._handleFeatureMenuBack(), this.previous(), this.setFocus()), J(t, this._direction) && (e.stopPropagation(), this._handleFeatureMenuBack(), this.next(), this.setFocus()));
|
|
233
242
|
}
|
|
234
243
|
_featureMenuViewportScrollTop() {
|
|
235
244
|
this._featureMenuViewportNode.value?.scrollContentTo({ top: 0 });
|
|
@@ -239,11 +248,11 @@ class te extends H {
|
|
|
239
248
|
i || !a || e === t || e === -1 || (this._aggregatedFeatureCount = 0, this._selectedAggregatedFeatureIndex = -1, this._removeFlowItems(), this._rootFlowItemNode.value?.scrollContentTo({ top: 0 }));
|
|
240
249
|
}
|
|
241
250
|
_triggerAction(e) {
|
|
242
|
-
e.disabled || (e?.type === "toggle" && (e.value = !e.value),
|
|
251
|
+
e.disabled || (e?.type === "toggle" && (e.value = !e.value), j(e, this.viewModel), this.arcgisTriggerAction.emit({ action: e }));
|
|
243
252
|
}
|
|
244
253
|
_viewScaleChange() {
|
|
245
254
|
const { selectedFeature: e } = this;
|
|
246
|
-
!e?.isAggregate ||
|
|
255
|
+
!e?.isAggregate || ee(L(e)) !== "cluster" || (this.viewModel.aggregatedFeaturesEnabled = !1, this.open = !1, this.clear());
|
|
247
256
|
}
|
|
248
257
|
_viewChange() {
|
|
249
258
|
this.viewModel.clear(), this.open = !1, this._aggregatedFeatureCount = 0, this._removeFlowItems();
|
|
@@ -257,7 +266,7 @@ class te extends H {
|
|
|
257
266
|
}
|
|
258
267
|
_syncSelectedDrillInFeature() {
|
|
259
268
|
const e = this.flowItems.getItemAt(this.flowItems.length - 1);
|
|
260
|
-
|
|
269
|
+
D(() => this.selectedDrillInFeature = e?.graphic ?? void 0);
|
|
261
270
|
}
|
|
262
271
|
_removeFlowItems() {
|
|
263
272
|
this.viewModel.aggregatedFeaturesEnabled = !1, this.flowItems?.destroyAll();
|
|
@@ -281,20 +290,20 @@ class te extends H {
|
|
|
281
290
|
return !this.hideHeading && e ? e : "";
|
|
282
291
|
}
|
|
283
292
|
_handleActionsStartSlotChange(e) {
|
|
284
|
-
this._hasActionsStartSlotContent =
|
|
293
|
+
this._hasActionsStartSlotContent = S(e);
|
|
285
294
|
}
|
|
286
295
|
_handleActionsEndSlotChange(e) {
|
|
287
|
-
this._hasActionsEndSlotContent =
|
|
296
|
+
this._hasActionsEndSlotContent = S(e);
|
|
288
297
|
}
|
|
289
298
|
_removeSpinner(e) {
|
|
290
299
|
e?.manager?.component?.extraContent?.remove(this._spinnerEl), this._spinnerEl = void 0;
|
|
291
300
|
}
|
|
292
301
|
_createSpinner() {
|
|
293
302
|
const e = this.referenceElement;
|
|
294
|
-
e && (this._removeSpinner(e), this._spinnerEl =
|
|
303
|
+
e && (this._removeSpinner(e), this._spinnerEl = U(r`<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));
|
|
295
304
|
}
|
|
296
305
|
render() {
|
|
297
|
-
return
|
|
306
|
+
return r`<div class="root" @keydown=${this._onMainKeydown}><calcite-focus-trap .focusTrapDisabled=${!this.focusTrapEnabled} ${f(this._focusTrapNode)}>${this._renderHeader()}${this._renderContentContainer()}</calcite-focus-trap></div>`;
|
|
298
307
|
}
|
|
299
308
|
_renderFeatureNavigation() {
|
|
300
309
|
return [
|
|
@@ -303,115 +312,124 @@ class te extends H {
|
|
|
303
312
|
];
|
|
304
313
|
}
|
|
305
314
|
_renderHeader() {
|
|
306
|
-
return this.featureNavigationTop && this._featureNavigationVisible ?
|
|
315
|
+
return this.featureNavigationTop && this._featureNavigationVisible ? r`<div class="header">${this._renderFeatureNavigation()}</div>` : null;
|
|
307
316
|
}
|
|
308
317
|
_renderFooter() {
|
|
309
|
-
return !this.featureNavigationTop && this._featureNavigationVisible ?
|
|
318
|
+
return !this.featureNavigationTop && this._featureNavigationVisible ? r`<div class="footer" slot=footer>${this._renderFeatureNavigation()}</div>` : null;
|
|
310
319
|
}
|
|
311
320
|
_renderFeaturePaginationText(e, t) {
|
|
312
321
|
const { messages: a } = this;
|
|
313
|
-
return
|
|
314
|
-
index:
|
|
315
|
-
total:
|
|
322
|
+
return r`<div class="pagination-text">${d(a.pageText ?? "", {
|
|
323
|
+
index: M(t + 1),
|
|
324
|
+
total: M(e)
|
|
316
325
|
})}</div>`;
|
|
317
326
|
}
|
|
318
327
|
_renderFeatureMenuButton() {
|
|
319
328
|
const { messages: e, viewModel: t } = this, { featureCount: a, selectedFeatureIndex: i, pendingPromisesCount: s } = t;
|
|
320
|
-
return
|
|
321
|
-
index:
|
|
322
|
-
total:
|
|
323
|
-
})} text-enabled title=${e.
|
|
329
|
+
return r`<calcite-action class="pagination-menu-button" icon=list .label=${e.showAllFeatures ?? ""} .loading=${s > 0} @click=${this._handlePaginationMenuButton} .text=${d(e.pageText ?? "", {
|
|
330
|
+
index: M(i + 1),
|
|
331
|
+
total: M(a)
|
|
332
|
+
})} text-enabled title=${e.showAllFeatures ?? "" ?? u}></calcite-action>`;
|
|
324
333
|
}
|
|
325
334
|
_renderPagination(e, t) {
|
|
326
335
|
const { previous: a, next: i } = this.messages;
|
|
327
|
-
return
|
|
336
|
+
return r`<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 ?? "" ?? u}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${i ?? ""} @click=${t} .text=${i ?? ""} title=${i ?? "" ?? u}></calcite-action></calcite-action-group></calcite-action-bar>`;
|
|
328
337
|
}
|
|
329
338
|
_renderFeatureMenuItem(e, t) {
|
|
330
339
|
const { initialDisplayMode: a } = this, { selectedFeatureItem: i } = this.viewModel, s = e === i;
|
|
331
|
-
return
|
|
340
|
+
return r`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${() => this._setActiveFeature(t)} @mouseleave=${this._removeActiveFeature} @mouseover=${() => this._setActiveFeature(t)} .selected=${s} @calciteListItemSelect=${() => this._selectFeature(t)}><span .innerHTML=${($.sanitize(e.heading) || this.messages.untitled) ?? ""} slot=content></span>${a === "list" ? r`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>` : null}</calcite-list-item>`;
|
|
332
341
|
}
|
|
333
342
|
_renderFeatureMenu() {
|
|
334
343
|
const { messages: e, viewModel: t } = this, a = this._groupResultsByLayer(), i = /* @__PURE__ */ new Map();
|
|
335
|
-
t.featureItems.forEach((n,
|
|
344
|
+
t.featureItems.forEach((n, o) => i.set(n, o));
|
|
336
345
|
const s = this.initialDisplayMode === "list" ? "none" : "single";
|
|
337
|
-
return t.featureItems.length ?
|
|
338
|
-
const
|
|
339
|
-
const
|
|
340
|
-
return
|
|
341
|
-
}),
|
|
342
|
-
return !this.hideFeatureListLayerTitle &&
|
|
346
|
+
return t.featureItems.length ? r`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${s}>${Array.from(a.keys(), (n) => {
|
|
347
|
+
const o = a.get(n)?.map((c) => {
|
|
348
|
+
const g = i.get(c);
|
|
349
|
+
return g == null ? null : this._renderFeatureMenuItem(c, g);
|
|
350
|
+
}), l = n ? n.title ?? this.messages.untitled : null;
|
|
351
|
+
return !this.hideFeatureListLayerTitle && l !== null ? E(n ?? "map-graphics", r`<calcite-list-item-group .heading=${l}>${o}</calcite-list-item-group>`) : o;
|
|
343
352
|
})}</calcite-list>` : null;
|
|
344
353
|
}
|
|
345
354
|
_renderHeaderAction(e) {
|
|
346
355
|
const t = e.title || "";
|
|
347
|
-
return e.visible ?
|
|
356
|
+
return e.visible ? r`<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 ?? u}></calcite-action>` : null;
|
|
348
357
|
}
|
|
349
358
|
_renderHeaderActions() {
|
|
350
359
|
return this.headerActions.map((e) => this._renderHeaderAction(e)).toArray();
|
|
351
360
|
}
|
|
352
361
|
_renderContentFeature(e) {
|
|
353
|
-
const { headingLevel: t, hideCloseButton: a, _isCollapsed: i, _collapseEnabled: s, featureNavigationTop: n, initialDisplayMode:
|
|
354
|
-
if (
|
|
362
|
+
const { headingLevel: t, hideCloseButton: a, _isCollapsed: i, _collapseEnabled: s, featureNavigationTop: n, initialDisplayMode: o, selectedFeature: l, hideHeading: c } = this, { active: g, selectedFeatureItem: m, content: _ } = this.viewModel, p = this._getHeading();
|
|
363
|
+
if (o === "list" && !l)
|
|
355
364
|
return null;
|
|
356
365
|
const w = m ? !m.content : !_;
|
|
357
|
-
return
|
|
366
|
+
return r`<calcite-flow-item class=${x(T({
|
|
358
367
|
"content-feature": !0,
|
|
359
368
|
"flow-item-collapsed": i
|
|
360
|
-
}))} .closable=${!a} .closed=${!
|
|
369
|
+
}))} .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 ? y(p) : void 0} ${f(this._rootFlowItemNode)}>${!c && p ? r`<div slot=heading><div .innerHTML=${$.sanitize(p ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${x(T("container", "content-container", {
|
|
361
370
|
"content-hidden": w
|
|
362
371
|
}))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
|
|
363
372
|
}
|
|
364
373
|
_renderFeatureMenuContainer() {
|
|
365
|
-
const { viewModel: e, hideCloseButton: t, featureMenuTitle: a, messages: i, initialDisplayMode: s, featureMenuOpen: n, _featureFlowItemSelected:
|
|
374
|
+
const { viewModel: e, hideCloseButton: t, featureMenuTitle: a, messages: i, initialDisplayMode: s, featureMenuOpen: n, _featureFlowItemSelected: o, _collapseEnabled: l, _isCollapsed: c, featureNavigationTop: g, headingLevel: m } = this, { active: _, featureItems: p, pendingPromisesCount: w } = e, A = a ?? i.selectFeature, C = d(i.backLabel ?? "", {
|
|
375
|
+
title: this._selectedFeatureHeadingText
|
|
376
|
+
});
|
|
366
377
|
if (s === "feature" && !n)
|
|
367
378
|
return null;
|
|
368
|
-
const
|
|
369
|
-
return
|
|
370
|
-
"flow-item-collapsed":
|
|
371
|
-
}))} .closable=${s === "list" && !t} .closed=${!_} .collapsed=${s === "list" &&
|
|
372
|
-
total:
|
|
373
|
-
})} .heading=${this.hideFeatureMenuHeading ? void 0 :
|
|
374
|
-
|
|
375
|
-
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${f(this._featureMenuViewportNode)}>${s === "list" ? this._renderHeaderActions() : null}${w > 0 ?
|
|
379
|
+
const b = !o;
|
|
380
|
+
return r`<calcite-flow-item class=${x(T({
|
|
381
|
+
"flow-item-collapsed": c
|
|
382
|
+
}))} .closable=${s === "list" && !t} .closed=${!_} .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 ?? "", {
|
|
383
|
+
total: p.length
|
|
384
|
+
})} .heading=${this.hideFeatureMenuHeading ? void 0 : A} .headingLevel=${m} .loading=${e.waitingForContents} .selected=${b} @calciteFlowItemBack=${(B) => {
|
|
385
|
+
B.preventDefault(), this._handleFeatureMenuBack();
|
|
386
|
+
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${f(this._featureMenuViewportNode)}>${s === "list" ? this._renderHeaderActions() : null}${w > 0 ? r`<calcite-loader class="loader" inline .label=${i.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}<div class="container">${b ? this._renderFeatureMenu() : null}</div><div class="feature-menu-observer" ${f(this._featureMenuIntersectionObserverCreated)}></div>${s === "feature" ? r`<calcite-button scale=s appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full .label=${C} title=${C ?? u}>${i.back}</calcite-button>` : null}</calcite-flow-item>`;
|
|
376
387
|
}
|
|
377
388
|
_renderFlowItem(e, t) {
|
|
378
|
-
const { messages: a, hideCloseButton: i, hideSelectFeature: s, active: n, hideHeading:
|
|
389
|
+
const { messages: a, hideCloseButton: i, hideSelectFeature: s, active: n, hideHeading: o } = this, l = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable, c = l && !s, g = e.flowType === "feature-association", m = a.returnToInitialFeature ?? "", _ = a?.selectFeature, p = this._getActionTitle(this._zoomToFeature), w = d(a.zoomLabel ?? "", {
|
|
390
|
+
messages: a,
|
|
391
|
+
title: this._selectedFeatureHeadingText
|
|
392
|
+
}), A = !this.hideActionBar && g && l, C = e.flowType === "feature" && this.viewModel.aggregatedFeaturesEnabled ? r`<div class="footer" slot=footer>${this._renderPagination(() => {
|
|
379
393
|
this._aggregatedFeaturesComponent.value?.previous();
|
|
380
394
|
}, () => {
|
|
381
395
|
this._aggregatedFeaturesComponent.value?.next();
|
|
382
396
|
})}${this._renderFeaturePaginationText(this._aggregatedFeatureCount, this._selectedAggregatedFeatureIndex)}</div>` : null;
|
|
383
|
-
return
|
|
384
|
-
|
|
385
|
-
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${
|
|
397
|
+
return r`<calcite-flow-item .closable=${!i} .closed=${!n} class="flow-item-drill-in" .description=${y(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${o ? void 0 : y(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(b) => {
|
|
398
|
+
b.preventDefault(), this._handleDrillInBackClick();
|
|
399
|
+
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${o ? null : r`<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 ?? "" ?? u}></calcite-action>${c ? r`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${_ ?? ""} title=${_ ?? u}></calcite-action>` : null}${A ? r`<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=${w ?? u} .label=${w} @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>`;
|
|
386
400
|
}
|
|
387
401
|
_renderContentContainer() {
|
|
388
|
-
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((
|
|
389
|
-
return
|
|
402
|
+
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)), o = this._renderBrowseAggregateContainer(!!i), l = this.initialDisplayMode === "list" ? [this._renderFeatureMenuContainer(), this._renderContentFeature(s)] : [this._renderContentFeature(s), this._renderFeatureMenuContainer()];
|
|
403
|
+
return r`<calcite-flow ${f(this._flowContainerNode)}>${l}${o}${n}</calcite-flow>`;
|
|
390
404
|
}
|
|
391
405
|
_renderBrowseAggregateContainer(e) {
|
|
392
|
-
const { hideCloseButton: t, active: a, messages: i } = this, { selectedFeature: s } = this.viewModel
|
|
393
|
-
|
|
406
|
+
const { hideCloseButton: t, active: a, messages: i } = this, { selectedFeature: s } = this.viewModel, n = this.viewModel.aggregatedFeaturesEnabled && s?.isAggregate, o = d(i.backLabel ?? "", {
|
|
407
|
+
title: this._selectedFeatureHeadingText
|
|
408
|
+
});
|
|
409
|
+
return n ? r`<calcite-flow-item .selected=${e} .closable=${!t} .closed=${!a} .description=${this._aggregatedFeatureCount ? d(i.total ?? "", {
|
|
394
410
|
total: this._aggregatedFeatureCount
|
|
395
|
-
}) : ""} .heading=${i.aggregatedFeatures} @calciteFlowItemBack=${(
|
|
396
|
-
|
|
397
|
-
}} .
|
|
411
|
+
}) : ""} .heading=${i.aggregatedFeatures} @calciteFlowItemBack=${(l) => {
|
|
412
|
+
l.preventDefault(), this.viewModel.aggregatedFeaturesEnabled = !1;
|
|
413
|
+
}} .messageOverrides=${{
|
|
414
|
+
back: o
|
|
415
|
+
}} .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=${o} title=${o ?? u}>${i.back}</calcite-button></calcite-flow-item>` : null;
|
|
398
416
|
}
|
|
399
417
|
_renderActionBar() {
|
|
400
|
-
const e = this.viewModel.selectedFeatureItem?.isFeatureFromTable, t = this.viewModel.allActions.toArray(), a = e && !this.location ? t.filter((
|
|
401
|
-
return
|
|
418
|
+
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;
|
|
419
|
+
return r`<calcite-action-bar expand-toggle-disabled .expanded=${!this._hideActionText} scale=s slot=${(s ? void 0 : "action-bar") ?? u} .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>`;
|
|
402
420
|
}
|
|
403
421
|
_renderActions(e) {
|
|
404
422
|
return e.map((t) => {
|
|
405
423
|
const a = this._getActionTitle(t);
|
|
406
|
-
return
|
|
424
|
+
return r`<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 ?? u} .hidden=${!t.visible} @click=${() => this._triggerAction(t)}></calcite-action>`;
|
|
407
425
|
});
|
|
408
426
|
}
|
|
409
427
|
_renderContent() {
|
|
410
428
|
const { content: e, selectedFeatureItem: t } = this.viewModel;
|
|
411
|
-
return t ?
|
|
429
|
+
return t ? r`<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, r`<div .innerHTML=${$.sanitize(e) ?? ""}></div>`) : e ?? null;
|
|
412
430
|
}
|
|
413
431
|
}
|
|
414
|
-
|
|
432
|
+
O("arcgis-features-next", ie);
|
|
415
433
|
export {
|
|
416
|
-
|
|
434
|
+
ie as ArcgisFeaturesNext
|
|
417
435
|
};
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { c as a } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as n, html as s } from "lit";
|
|
4
4
|
import { usePropertyChange as l } from "@arcgis/lumina/controllers";
|
|
5
|
-
import { i as
|
|
6
|
-
import { LitElement as
|
|
7
|
-
const g = n`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.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-hidden{display:none!important}.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}:host{display:flex;width:100%;div{width:100%}}arcgis-legend{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;overflow-y:auto}`;
|
|
8
|
-
class m extends
|
|
5
|
+
import { i as c } from "../../chunks/layer-list-utils.js";
|
|
6
|
+
import { LitElement as d, renderElement as p } from "@arcgis/lumina";
|
|
7
|
+
const g = n`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.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-hidden{display:none!important}.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}:host{width:100%;div{width:100%}}arcgis-legend{--calcite-color-foreground-1: var(--calcite-color-transparent);--calcite-color-text-2: var(--arcgis-internal-layer-list-legend-color-text);width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;overflow-y:auto}`;
|
|
8
|
+
class m extends d {
|
|
9
9
|
constructor() {
|
|
10
10
|
super(...arguments), this._disabled = null, this.content = this.item?.panel.content, this.listItem = this.item?.panel.listItem ?? this.item, this.autoDestroyDisabled = !1, this.arcgisPropertyChange = l()("listItem");
|
|
11
11
|
}
|
|
@@ -26,7 +26,7 @@ class m extends c {
|
|
|
26
26
|
const e = this.item?.panel?.listItem?.layer;
|
|
27
27
|
if (!e || e.type === "subtype-sublayer")
|
|
28
28
|
return null;
|
|
29
|
-
const t =
|
|
29
|
+
const t = c(e) ? e : null, i = t?.source?.type === "map-layer" ? t.source : null, r = "layer" in e && e.layer, o = "";
|
|
30
30
|
return i && r ? {
|
|
31
31
|
layer: r,
|
|
32
32
|
// checked above
|