@arcgis/map-components 5.1.0-next.109 → 5.1.0-next.111
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/2SFQKFYO.js +2 -0
- package/dist/cdn/{X3YFIQGW.js → 3J457ML6.js} +1 -1
- package/dist/cdn/4SNOTPCF.js +2 -0
- package/dist/cdn/6QQ4WA4M.js +2 -0
- package/dist/cdn/{R4VSDUYE.js → KYVT2WTY.js} +1 -1
- package/dist/cdn/PFVM4TPN.js +2 -0
- package/dist/cdn/TBKV4QZ6.js +2 -0
- package/dist/cdn/TFFF4SV3.js +2 -0
- package/dist/cdn/YUQI6BEG.js +2 -0
- package/dist/cdn/assets/print/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/layer-list-item-indicator.js +24 -27
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +8 -0
- package/dist/components/arcgis-coordinate-conversion/customElement.js +118 -120
- package/dist/components/arcgis-coordinate-conversion/index.js +2 -1
- package/dist/components/arcgis-features/customElement.d.ts +9 -1
- package/dist/components/arcgis-features/customElement.js +76 -64
- package/dist/components/arcgis-layer-list-new/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-new/layer-list-item/customElement.js +24 -24
- package/dist/components/arcgis-link-chart/customElement.d.ts +1 -1
- package/dist/components/arcgis-map/customElement.d.ts +1 -1
- package/dist/components/arcgis-presentation/customElement.js +12 -11
- package/dist/components/arcgis-print/customElement.d.ts +30 -3
- package/dist/components/arcgis-print-export-button/customElement.js +13 -8
- package/dist/components/arcgis-print-export-button/index.js +1 -0
- package/dist/components/arcgis-print-template-selector/customElement.js +4 -4
- package/dist/components/arcgis-scene/customElement.d.ts +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +141 -78
- package/dist/components/arcgis-shadow-cast/customElement.js +111 -90
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +3 -3
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +5 -5
- package/dist/cdn/2FEX7FAZ.js +0 -2
- package/dist/cdn/2SZ3WJGX.js +0 -2
- package/dist/cdn/KOBC25QZ.js +0 -2
- package/dist/cdn/O2ECQYMW.js +0 -2
- package/dist/cdn/R6JH26DC.js +0 -2
- package/dist/cdn/RED6TO3K.js +0 -2
- package/dist/cdn/XVWZZS5G.js +0 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as N } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as R, html as a } from "lit";
|
|
4
|
-
import { keyed as
|
|
4
|
+
import { keyed as D } from "lit/directives/keyed.js";
|
|
5
5
|
import O from "@arcgis/core/widgets/Features/FeaturesViewModel.js";
|
|
6
6
|
import { u as L } from "../../chunks/useT9n.js";
|
|
7
7
|
import { classes as A } from "@arcgis/toolkit/dom";
|
|
8
|
-
import { usePropertyChange as B, bypassReadOnly as
|
|
8
|
+
import { usePropertyChange as B, bypassReadOnly as x } from "@arcgis/lumina/controllers";
|
|
9
9
|
import { m as S } from "../../chunks/useViewModel.js";
|
|
10
|
-
import { LitElement as H, createEvent as
|
|
10
|
+
import { LitElement as H, createEvent as y, renderElement as P, nothing as h, safeClassMap as I } from "@arcgis/lumina";
|
|
11
11
|
import { substitute as u, formatNumber as C } from "@arcgis/core/intl.js";
|
|
12
12
|
import { watch as r } from "@arcgis/core/core/reactiveUtils.js";
|
|
13
13
|
import { t as z, z as U } from "../../chunks/action-utils.js";
|
|
14
|
-
import { stripHTML as
|
|
14
|
+
import { stripHTML as T } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
15
15
|
import V from "@arcgis/core/core/Collection.js";
|
|
16
16
|
import { g as Z } from "../../chunks/feature-utils.js";
|
|
17
17
|
import { renderingSanitizer as _ } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
@@ -23,8 +23,8 @@ const K = R`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-col
|
|
|
23
23
|
id: "zoom-to-feature",
|
|
24
24
|
title: "{messages.zoom}"
|
|
25
25
|
}), M = q.clone();
|
|
26
|
-
function W(
|
|
27
|
-
return
|
|
26
|
+
function W(k) {
|
|
27
|
+
return k?.declaredClass.startsWith("esri.layers.") ?? !1;
|
|
28
28
|
}
|
|
29
29
|
const X = S(O);
|
|
30
30
|
class J extends H {
|
|
@@ -36,10 +36,10 @@ class J extends H {
|
|
|
36
36
|
}), this._featureMenuIntersectionObserverNode = null, this._rootFlowItemNode = b(), this._featureMenuViewportNode = b(), this._actionBarMenuNode = b(), this._flowContainerNode = b(), this.messages = L(), this._selectedFeatureComponent = b(), this._cancelOpenRelatedFeature = () => {
|
|
37
37
|
const { _openRelatedFeatureAbortController: e } = this;
|
|
38
38
|
e && e.abort(), this._openRelatedFeatureAbortController = null;
|
|
39
|
-
}, this._openRelatedFeatureAbortController = null, this.flowItems = new V(), this.viewModel = X(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = this.viewModel.featureMenuOpen, this.featureMenuTitle = this.viewModel.featureMenuTitle, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureViewModelAbilities = this.viewModel.featureViewModelAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new V(), this.heading = this.viewModel.title, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSelectFeature = !1, this.hideSpinner = !1, this.hideContent = !1, this.hideExpressionContent = !1, this.hideLastEditedInfo = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.map = this.viewModel.map, this.open = this.viewModel.visible, this.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = B()("active", "collapsed", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady =
|
|
39
|
+
}, this._openRelatedFeatureAbortController = null, this.flowItems = new V(), this.viewModel = X(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = this.viewModel.featureMenuOpen, this.featureMenuTitle = this.viewModel.featureMenuTitle, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureViewModelAbilities = this.viewModel.featureViewModelAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new V(), this.heading = this.viewModel.title, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSelectFeature = !1, this.hideSpinner = !1, this.hideContent = !1, this.hideExpressionContent = !1, this.hideLastEditedInfo = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.map = this.viewModel.map, this.open = this.viewModel.visible, this.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = B()("active", "collapsed", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = y(), this.arcgisClose = y(), this.arcgisTriggerAction = y();
|
|
40
40
|
}
|
|
41
41
|
static {
|
|
42
|
-
this.properties = { _openRelatedFeatureAbortController: 16, flowItems: 16, _hideActionText: 16, _featureNavigationVisible: 16, _isCollapsed: 16, _collapseEnabled: 16, _featureFlowItemSelected: 16, viewModel: 0, actions: 0, active: 0, autoDestroyDisabled: 5, collapsed: 5, content: 1, defaultPopupTemplateEnabled: 5, featureCount: 9, featureMenuOpen: 5, featureMenuTitle: 1, featureNavigationTop: 5, features: 0, featuresPerPage: 9, featureViewModelAbilities: 0, goToOverride: 0, headerActions: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideHeading: 5, hideSelectFeature: 5, hideSpinner: 5, hideContent: 5, chartAnimationDisabled: 5, hideAttachmentsContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, hideRelationshipContent: 5, hideTextContent: 5, hideUtilityNetworkContent: 5, hideLastEditedInfo: 5, highlightDisabled: 5, icon: 1, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, map: 0, messageOverrides: 0, open: 5, referenceElement: 1, promises: 0, responsiveActionsEnabled: 5, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, showCollapseButton: 5, spatialReference: 0, state: 32, timeZone: 1, updateLocationEnabled: 5, view: 0 };
|
|
42
|
+
this.properties = { _openRelatedFeatureAbortController: 16, flowItems: 16, _hideActionText: 16, _featureNavigationVisible: 16, _isCollapsed: 16, _collapseEnabled: 16, _featureFlowItemSelected: 16, viewModel: 0, actions: 0, active: 0, autoDestroyDisabled: 5, collapsed: 5, content: 1, defaultPopupTemplateEnabled: 5, effectiveHeading: 32, featureCount: 9, featureMenuOpen: 5, featureMenuTitle: 1, featureNavigationTop: 5, features: 0, featuresPerPage: 9, featureViewModelAbilities: 0, goToOverride: 0, headerActions: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideHeading: 5, hideSelectFeature: 5, hideSpinner: 5, hideContent: 5, chartAnimationDisabled: 5, hideAttachmentsContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, hideRelationshipContent: 5, hideTextContent: 5, hideUtilityNetworkContent: 5, hideLastEditedInfo: 5, highlightDisabled: 5, icon: 1, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, map: 0, messageOverrides: 0, open: 5, referenceElement: 1, promises: 0, responsiveActionsEnabled: 5, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, showCollapseButton: 5, spatialReference: 0, state: 32, timeZone: 1, updateLocationEnabled: 5, view: 0 };
|
|
43
43
|
}
|
|
44
44
|
static {
|
|
45
45
|
this.styles = K;
|
|
@@ -121,14 +121,14 @@ class J extends H {
|
|
|
121
121
|
}
|
|
122
122
|
async fetchFeatures(e, t) {
|
|
123
123
|
this._cancelFetchingFeatures();
|
|
124
|
-
const { signal:
|
|
125
|
-
if (this._fetchFeaturesController =
|
|
126
|
-
signal:
|
|
124
|
+
const { signal: s } = t ?? {}, i = new AbortController(), { signal: n } = i, o = s ? AbortSignal.any([n, s]) : n;
|
|
125
|
+
if (this._fetchFeaturesController = i, !e && this.view && this.location && (await j(this.location.spatialReference, this.view.spatialReference, null, {
|
|
126
|
+
signal: o
|
|
127
127
|
}), e = this.view.toScreen(this.location) ?? void 0), !e)
|
|
128
128
|
return;
|
|
129
129
|
const l = await this.viewModel.fetchFeatures(e, {
|
|
130
130
|
...t,
|
|
131
|
-
signal:
|
|
131
|
+
signal: o
|
|
132
132
|
});
|
|
133
133
|
this.location = l.location, this.promises = l.pendingFeatures;
|
|
134
134
|
}
|
|
@@ -159,6 +159,11 @@ class J extends H {
|
|
|
159
159
|
r(() => this.selectedFeatureComponent?.viewModel, () => this._removeFlowItems()),
|
|
160
160
|
r(() => this.viewModel?.featureViewModels, () => this._featureMenuViewportScrollTop()),
|
|
161
161
|
r(() => this.flowItems.length, () => this._syncSelectedDrillInFeature()),
|
|
162
|
+
r(() => [
|
|
163
|
+
this.viewModel?.title,
|
|
164
|
+
this.viewModel?.selectedFeatureViewModel?.title,
|
|
165
|
+
this.viewModel?.selectedFeatureViewModel?.state
|
|
166
|
+
], () => this._syncEffectiveHeading(), { initial: !0 }),
|
|
162
167
|
r(() => [this.flowItems?.length, this.featureMenuOpen], () => {
|
|
163
168
|
this.setFocus();
|
|
164
169
|
}),
|
|
@@ -176,11 +181,15 @@ class J extends H {
|
|
|
176
181
|
}
|
|
177
182
|
updated() {
|
|
178
183
|
const e = this._selectedFeatureComponent.value ?? void 0;
|
|
179
|
-
this.selectedFeatureComponent !== e &&
|
|
184
|
+
this.selectedFeatureComponent !== e && x(() => this.selectedFeatureComponent = e);
|
|
180
185
|
}
|
|
181
186
|
_syncSelectedDrillInFeature() {
|
|
182
187
|
const e = this.flowItems.getItemAt(this.flowItems.length - 1);
|
|
183
|
-
|
|
188
|
+
x(() => this.selectedDrillInFeature = e?.graphic ?? void 0);
|
|
189
|
+
}
|
|
190
|
+
_syncEffectiveHeading() {
|
|
191
|
+
const e = this._calculateEffectiveHeading();
|
|
192
|
+
this.effectiveHeading !== e && x(() => this.effectiveHeading = e);
|
|
184
193
|
}
|
|
185
194
|
_cancelFetchingFeatures() {
|
|
186
195
|
this._fetchFeaturesController?.abort(), this._fetchFeaturesController = null;
|
|
@@ -190,12 +199,12 @@ class J extends H {
|
|
|
190
199
|
}
|
|
191
200
|
_groupResultsByLayer() {
|
|
192
201
|
const { featureViewModels: e } = this.viewModel, t = /* @__PURE__ */ new Map();
|
|
193
|
-
return e.forEach((
|
|
194
|
-
const
|
|
195
|
-
if (!
|
|
202
|
+
return e.forEach((s) => {
|
|
203
|
+
const i = s?.graphic;
|
|
204
|
+
if (!i)
|
|
196
205
|
return;
|
|
197
|
-
const
|
|
198
|
-
t.set(
|
|
206
|
+
const n = Z(i), o = W(n) ? n : null, l = t.get(o) ?? [];
|
|
207
|
+
t.set(o, [...l, s]);
|
|
199
208
|
}), t;
|
|
200
209
|
}
|
|
201
210
|
_handleCollapseToggle() {
|
|
@@ -206,18 +215,18 @@ class J extends H {
|
|
|
206
215
|
const t = new AbortController();
|
|
207
216
|
if (this._openRelatedFeatureAbortController = t, await e.updateGeometry(), this._openRelatedFeatureAbortController !== t)
|
|
208
217
|
return;
|
|
209
|
-
const
|
|
210
|
-
if (
|
|
218
|
+
const s = e.graphic, i = s?.geometry;
|
|
219
|
+
if (i == null || s == null) {
|
|
211
220
|
this._openRelatedFeatureAbortController === t && (this._openRelatedFeatureAbortController = null);
|
|
212
221
|
return;
|
|
213
222
|
}
|
|
214
|
-
if (this._removeFlowItems(), await this.viewModel.zoomTo({ target:
|
|
223
|
+
if (this._removeFlowItems(), await this.viewModel.zoomTo({ target: i }), this._openRelatedFeatureAbortController !== t)
|
|
215
224
|
return;
|
|
216
|
-
const
|
|
225
|
+
const n = await import("@arcgis/core/geometry/operators/labelPointOperator.js");
|
|
217
226
|
if (this._openRelatedFeatureAbortController !== t)
|
|
218
227
|
return;
|
|
219
|
-
const
|
|
220
|
-
|
|
228
|
+
const o = n.execute(i);
|
|
229
|
+
o != null && (this.location = o), this.features = [s], this.open = !0, await this.setFocus(), this._openRelatedFeatureAbortController === t && (this._openRelatedFeatureAbortController = null);
|
|
221
230
|
}
|
|
222
231
|
_handlePaginationMenuButton() {
|
|
223
232
|
this._updateFeatureMenu();
|
|
@@ -260,8 +269,8 @@ class J extends H {
|
|
|
260
269
|
this._unobserveFeatureMenuObserver(), e && this._featureMenuIntersectionObserver.observe(e), this._featureMenuIntersectionObserverNode = e;
|
|
261
270
|
}
|
|
262
271
|
_getActionTitle(e) {
|
|
263
|
-
const { messages: t, selectedFeature:
|
|
264
|
-
return l &&
|
|
272
|
+
const { messages: t, selectedFeature: s } = this, { id: i } = e, n = s?.attributes, o = e.title ?? "", l = i === "zoom-to-feature" ? u(o, { messages: t }) : i === "remove-selected-feature" ? u(o, { messages: t }) : i === "zoom-to-clustered-features" ? u(o, { messages: t }) : i === "browse-clustered-features" ? u(o, { messages: t }) : e.title;
|
|
273
|
+
return l && n ? u(l, n) : l ?? "";
|
|
265
274
|
}
|
|
266
275
|
_onMainKeydown(e) {
|
|
267
276
|
const { key: t } = e;
|
|
@@ -271,8 +280,8 @@ class J extends H {
|
|
|
271
280
|
this._featureMenuViewportNode.value?.scrollContentTo({ top: 0 });
|
|
272
281
|
}
|
|
273
282
|
_selectedFeatureIndexUpdated(e, t) {
|
|
274
|
-
const { featureCount:
|
|
275
|
-
|
|
283
|
+
const { featureCount: s, waitingForResult: i } = this.viewModel;
|
|
284
|
+
i || !s || e === t || e === -1 || (this._removeFlowItems(), this._rootFlowItemNode.value?.scrollContentTo({ top: 0 }));
|
|
276
285
|
}
|
|
277
286
|
_triggerAction(e) {
|
|
278
287
|
this.triggerAction(e), this.arcgisTriggerAction.emit({ action: e });
|
|
@@ -301,9 +310,12 @@ class J extends H {
|
|
|
301
310
|
_handleDrillInBackClick() {
|
|
302
311
|
this.flowItems?.pop()?.destroy();
|
|
303
312
|
}
|
|
313
|
+
_calculateEffectiveHeading() {
|
|
314
|
+
const { title: e, selectedFeatureViewModel: t } = this.viewModel;
|
|
315
|
+
return t ? t?.state === "error" ? this.messages?.errorMessage ?? "" : t?.title || "" : e ?? "";
|
|
316
|
+
}
|
|
304
317
|
_getHeading() {
|
|
305
|
-
|
|
306
|
-
return i && !e ? i?.state === "error" ? this.messages?.errorMessage ?? "" : i?.title || "" : !e && t ? t : "";
|
|
318
|
+
return !this.hideHeading && this.effectiveHeading ? this.effectiveHeading : "";
|
|
307
319
|
}
|
|
308
320
|
_removeSpinner(e) {
|
|
309
321
|
e?.manager?.component?.extraContent?.remove(this._spinnerEl), this._spinnerEl = void 0;
|
|
@@ -328,17 +340,17 @@ class J extends H {
|
|
|
328
340
|
return !this.featureNavigationTop && this._featureNavigationVisible ? a`<div class="footer" slot=footer>${this._renderFeatureNavigation()}</div>` : null;
|
|
329
341
|
}
|
|
330
342
|
_renderFeaturePaginationText() {
|
|
331
|
-
const { messages: e, viewModel: t } = this, { featureCount:
|
|
343
|
+
const { messages: e, viewModel: t } = this, { featureCount: s, selectedFeatureIndex: i } = t;
|
|
332
344
|
return a`<div class="pagination-text">${u(e.pageText ?? "", {
|
|
333
|
-
index: C(
|
|
334
|
-
total: C(
|
|
345
|
+
index: C(i + 1),
|
|
346
|
+
total: C(s)
|
|
335
347
|
})}</div>`;
|
|
336
348
|
}
|
|
337
349
|
_renderFeatureMenuButton() {
|
|
338
|
-
const { messages: e, viewModel: t } = this, { featureCount:
|
|
339
|
-
return a`<calcite-action class="pagination-menu-button" icon=list .label=${e.selectFeature} .loading=${
|
|
340
|
-
index: C(
|
|
341
|
-
total: C(
|
|
350
|
+
const { messages: e, viewModel: t } = this, { featureCount: s, selectedFeatureIndex: i, pendingPromisesCount: n } = t;
|
|
351
|
+
return a`<calcite-action class="pagination-menu-button" icon=list .label=${e.selectFeature} .loading=${n > 0} @click=${this._handlePaginationMenuButton} .text=${u(e.pageText ?? "", {
|
|
352
|
+
index: C(i + 1),
|
|
353
|
+
total: C(s)
|
|
342
354
|
})} text-enabled title=${e.selectFeature ?? h}></calcite-action>`;
|
|
343
355
|
}
|
|
344
356
|
_renderPagination() {
|
|
@@ -346,14 +358,14 @@ class J extends H {
|
|
|
346
358
|
return a`<calcite-action-bar class="pagination-action-bar" expand-disabled layout=horizontal overflow-actions-disabled scale=s><calcite-action-group scale=s><calcite-action class="pagination-previous" icon=chevron-left icon-flip-rtl .label=${e ?? ""} @click=${this._previousFeature} .text=${e ?? ""} title=${e ?? "" ?? h}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${t ?? ""} @click=${this._nextFeature} .text=${t ?? ""} title=${t ?? "" ?? h}></calcite-action></calcite-action-group></calcite-action-bar>`;
|
|
347
359
|
}
|
|
348
360
|
_renderFeatureMenuItem(e) {
|
|
349
|
-
const { initialDisplayMode: t } = this, { selectedFeatureViewModel:
|
|
350
|
-
return a`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${() => this._setActiveFeature(
|
|
361
|
+
const { initialDisplayMode: t } = this, { selectedFeatureViewModel: s, featureViewModels: i } = this.viewModel, n = e === s, o = i.indexOf(e);
|
|
362
|
+
return a`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${() => this._setActiveFeature(o)} @mouseleave=${this._removeActiveFeature} @mouseover=${() => this._setActiveFeature(o)} .selected=${n} @calciteListItemSelect=${() => this._selectFeature(o)}><span .innerHTML=${(_.sanitize(e.title) || this.messages.untitled) ?? ""} slot=content></span>${t === "list" ? a`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>` : null}</calcite-list-item>`;
|
|
351
363
|
}
|
|
352
364
|
_renderFeatureMenu() {
|
|
353
|
-
const { messages: e, viewModel: t } = this,
|
|
354
|
-
return t.featureViewModels.length ? a`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${
|
|
355
|
-
const
|
|
356
|
-
return !this.hideFeatureListLayerTitle && l !== null ?
|
|
365
|
+
const { messages: e, viewModel: t } = this, s = this._groupResultsByLayer(), i = this.initialDisplayMode === "list" ? "none" : "single";
|
|
366
|
+
return t.featureViewModels.length ? a`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${i}>${Array.from(s.keys(), (n) => {
|
|
367
|
+
const o = s.get(n)?.map((c) => this._renderFeatureMenuItem(c)), l = n ? n.title ?? this.messages.untitled : null;
|
|
368
|
+
return !this.hideFeatureListLayerTitle && l !== null ? D(n ?? "map-graphics", a`<calcite-list-item-group .heading=${l}>${o}</calcite-list-item-group>`) : o;
|
|
357
369
|
})}</calcite-list>` : null;
|
|
358
370
|
}
|
|
359
371
|
_renderHeaderAction(e) {
|
|
@@ -364,42 +376,42 @@ class J extends H {
|
|
|
364
376
|
return this.headerActions.map((e) => this._renderHeaderAction(e)).toArray();
|
|
365
377
|
}
|
|
366
378
|
_renderContentFeature() {
|
|
367
|
-
const { headingLevel: e, hideCloseButton: t, _isCollapsed:
|
|
379
|
+
const { headingLevel: e, hideCloseButton: t, _isCollapsed: s, _collapseEnabled: i, _featureFlowItemSelected: n, featureNavigationTop: o, flowItems: l, initialDisplayMode: c, selectedFeature: f, hideHeading: v } = this, { active: g, selectedFeatureViewModel: p, content: w } = this.viewModel, d = this._getHeading();
|
|
368
380
|
if (c === "list" && !f)
|
|
369
381
|
return null;
|
|
370
|
-
const F = l.length === 0 &&
|
|
371
|
-
return a`<calcite-flow-item class=${
|
|
382
|
+
const F = l.length === 0 && n, $ = p ? !p.content : !w;
|
|
383
|
+
return a`<calcite-flow-item class=${I(A({
|
|
372
384
|
"content-feature": !0,
|
|
373
|
-
"flow-item-collapsed":
|
|
374
|
-
}))} .closable=${!t} .closed=${!g} .collapsed=${
|
|
385
|
+
"flow-item-collapsed": s
|
|
386
|
+
}))} .closable=${!t} .closed=${!g} .collapsed=${s} .collapseDirection=${o ? "down" : "up"} .collapsible=${i} .headingLevel=${e} .selected=${F} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${!v && d ? T(d) : void 0} ${m(this._rootFlowItemNode)}>${!v && d ? a`<div slot=heading><div .innerHTML=${_.sanitize(d ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${I(A("container", "content-container", {
|
|
375
387
|
"content-hidden": $
|
|
376
388
|
}))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
|
|
377
389
|
}
|
|
378
390
|
_renderFeatureMenuContainer() {
|
|
379
|
-
const { viewModel: e, hideCloseButton: t, featureMenuTitle:
|
|
380
|
-
if (
|
|
391
|
+
const { viewModel: e, hideCloseButton: t, featureMenuTitle: s, messages: i, initialDisplayMode: n, featureMenuOpen: o, _featureFlowItemSelected: l, _collapseEnabled: c, _isCollapsed: f, featureNavigationTop: v, headingLevel: g } = this, { active: p, featureViewModels: w, pendingPromisesCount: d } = e, F = s ?? i.selectFeature;
|
|
392
|
+
if (n === "feature" && !o)
|
|
381
393
|
return null;
|
|
382
394
|
const $ = !l;
|
|
383
|
-
return a`<calcite-flow-item class=${
|
|
395
|
+
return a`<calcite-flow-item class=${I(A({
|
|
384
396
|
"flow-item-collapsed": f
|
|
385
|
-
}))} .closable=${
|
|
397
|
+
}))} .closable=${n === "list" && !t} .closed=${!p} .collapsed=${n === "list" && f} .collapseDirection=${v ? "down" : "up"} .collapsible=${n === "list" && c} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} .description=${this.hideFeatureMenuHeading ? void 0 : u(i.total ?? "", {
|
|
386
398
|
total: w.length
|
|
387
|
-
})} .heading=${this.hideFeatureMenuHeading ? void 0 : F} .headingLevel=${g} .loading=${e.waitingForContents} .selected=${$} @calciteFlowItemBack=${(
|
|
388
|
-
|
|
389
|
-
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${m(this._featureMenuViewportNode)}>${
|
|
399
|
+
})} .heading=${this.hideFeatureMenuHeading ? void 0 : F} .headingLevel=${g} .loading=${e.waitingForContents} .selected=${$} @calciteFlowItemBack=${(E) => {
|
|
400
|
+
E.preventDefault(), this._handleFeatureMenuBack();
|
|
401
|
+
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${m(this._featureMenuViewportNode)}>${n === "list" ? this._renderHeaderActions() : null}${d > 0 ? a`<calcite-loader class="loader" inline .label=${i.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${m(this._featureMenuIntersectionObserverCreated)}></div>${n === "feature" ? a`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${i.back}</calcite-button>` : null}</calcite-flow-item>`;
|
|
390
402
|
}
|
|
391
403
|
_renderFlowItem(e, t) {
|
|
392
|
-
const { messages:
|
|
393
|
-
return a`<calcite-flow-item .closable=${!
|
|
404
|
+
const { messages: s, hideCloseButton: i, hideSelectFeature: n, active: o, hideHeading: l } = this, c = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable, f = c && !n, v = e.flowType === "feature-association", g = s.returnToInitialFeature ?? "", p = s?.selectFeature, w = this._getActionTitle(M), d = !this.hideActionBar && v && c;
|
|
405
|
+
return a`<calcite-flow-item .closable=${!i} .closed=${!o} .description=${T(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${l ? void 0 : T(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(F) => {
|
|
394
406
|
F.preventDefault(), this._handleDrillInBackClick();
|
|
395
407
|
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${l ? null : a`<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=${g ?? ""} title=${g ?? "" ?? h}></calcite-action>${f ? a`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${p ?? ""} title=${p ?? h}></calcite-action>` : null}${d ? a`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${M.disabled} .icon=${M.icon ?? void 0} .loading=${M.active} scale=s text-enabled .text=${w} title=${w ?? h} @click=${() => U(this.viewModel, M, e)}></calcite-action></calcite-action-group></calcite-action-bar>` : null}<div class="container">${e}</div></calcite-flow-item>`;
|
|
396
408
|
}
|
|
397
409
|
_renderContentContainer() {
|
|
398
|
-
const e = this.flowItems?.toArray(), t = e?.map((
|
|
399
|
-
return a`<calcite-flow ${m(this._flowContainerNode)}>${
|
|
410
|
+
const e = this.flowItems?.toArray(), t = e?.map((i, n) => this._renderFlowItem(i, this._featureFlowItemSelected && n === e.length - 1)), s = this.initialDisplayMode === "list" ? [this._renderFeatureMenuContainer(), this._renderContentFeature(), t] : [this._renderContentFeature(), t, this._renderFeatureMenuContainer()];
|
|
411
|
+
return a`<calcite-flow ${m(this._flowContainerNode)}>${s}</calcite-flow>`;
|
|
400
412
|
}
|
|
401
413
|
_renderActionBar() {
|
|
402
|
-
const t = this.viewModel.selectedFeatureViewModel?.isFeatureFromTable && !this.location ? this.viewModel.allActions.filter((
|
|
414
|
+
const t = this.viewModel.selectedFeatureViewModel?.isFeatureFromTable && !this.location ? this.viewModel.allActions.filter((s) => s.id !== M.id) : this.viewModel.allActions;
|
|
403
415
|
return !this._isCollapsed && !this.hideActionBar && t.length ? a`<calcite-action-bar expand-disabled .expanded=${!this._hideActionText} scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s ${m(this._actionBarMenuNode)}>${this._renderActions()}</calcite-action-group></calcite-action-bar>` : null;
|
|
404
416
|
}
|
|
405
417
|
_renderActions() {
|
|
@@ -410,10 +422,10 @@ class J extends H {
|
|
|
410
422
|
}
|
|
411
423
|
_renderContent() {
|
|
412
424
|
const { content: e, selectedFeatureViewModel: t } = this.viewModel;
|
|
413
|
-
return t ? a`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${m(this._selectedFeatureComponent)}></arcgis-feature>` : typeof e == "string" ?
|
|
425
|
+
return t ? a`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${m(this._selectedFeatureComponent)}></arcgis-feature>` : typeof e == "string" ? D(e, a`<div .innerHTML=${_.sanitize(e) ?? ""}></div>`) : e ?? null;
|
|
414
426
|
}
|
|
415
427
|
}
|
|
416
|
-
|
|
428
|
+
N("arcgis-features", J);
|
|
417
429
|
export {
|
|
418
430
|
J as ArcgisFeatures
|
|
419
431
|
};
|
|
@@ -20,7 +20,7 @@ import { reEmitEvent as K } from "@arcgis/lumina/controllers/accessor";
|
|
|
20
20
|
import "@arcgis/toolkit/function";
|
|
21
21
|
import { u as Q } from "../../chunks/useCloseEvent.js";
|
|
22
22
|
import { ArcgisLayerListItem as W } from "./layer-list-item/customElement.js";
|
|
23
|
-
const X = z`.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}:host{width:100%;--arcgis-list-item-scroller-max-height: var(--arcgis-internal-panel-height-md)}.item{--calcite-list-item-icon-center: var(--calcite-space-sm)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:14px}.item__filter-container--sticky{z-index:1;position:sticky;top:0}.item__group{margin-top:var(--calcite-spacing-md)}.item__scroller{overflow-y:auto;z-index:0;position:relative}.item__scroller--enabled{max-height:var(--arcgis-list-item-scroller-max-height)}.item__group__header{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-medium)}.item__list-item{cursor:pointer;min-height:var(--calcite-spacing-xxxl)}.item__list-item[class^=esri-icon-],.item__list-item[class*=" esri-icon-"]{padding-inline-end:2.8px}.item__list-item--disabled{cursor:default}.item__list-item-icon{justify-content:center;align-items:center;min-width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);display:flex}.item__list-item-icon span{line-height:0}.arcgis-thumbnail-preview{background-position:50%;width:22px;height:22px}.item__no-matches-message{justify-content:center;align-items:center;height:96px;display:flex}.content-bottom{margin:var(--calcite-spacing-md) 15px}.content-bottom .arcgis-legend__service{padding:0 0 var(--calcite-spacing-md)}.message{margin:var(--calcite-spacing-md) 15px}.visible-icon{visibility:hidden}.item:hover>.visible-toggle>.visible-icon,.item:focus>.visible-toggle>.visible-icon,.item:focus-within>.visible-toggle>.visible-icon{visibility:visible}`, ee = z`@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;min-height:var(--calcite-space-3xl);transition:max-height .25s ease-in-out;overflow-y:auto;--arcgis-layer-list-visibility-icon: hidden}:host>div{display:flex;width:100%}.filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-space-md-plus)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size)}.action-menu .action-group{display:none}.action-menu[open] .action-group{display:flex}.active:hover>.visible-toggle>.visible-icon,.active:focus>.visible-toggle>.visible-icon,.active:focus-within>.visible-toggle>.visible-icon{visibility:visible}`, F = "nested", te = B(D);
|
|
23
|
+
const X = z`.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}:host{width:100%;--arcgis-list-item-scroller-max-height: var(--arcgis-internal-panel-height-md)}.item{--calcite-list-item-icon-center: var(--calcite-space-sm)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:14px}.item__filter-container--sticky{z-index:1;position:sticky;top:0}.item__group{margin-top:var(--calcite-spacing-md)}.item__scroller{overflow-y:auto;z-index:0;position:relative}.item__scroller--enabled{max-height:var(--arcgis-list-item-scroller-max-height)}.item__group__header{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-medium)}.item__list-item{cursor:pointer;min-height:var(--calcite-spacing-xxxl)}.item__list-item[class^=esri-icon-],.item__list-item[class*=" esri-icon-"]{padding-inline-end:2.8px}.item__list-item--disabled{cursor:default}.item__list-item-icon{justify-content:center;align-items:center;min-width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);display:flex}.item__list-item-icon span{line-height:0}.arcgis-thumbnail-preview{background-position:50%;width:22px;height:22px}.item__no-matches-message{justify-content:center;align-items:center;height:96px;display:flex}.content-bottom{margin:var(--calcite-spacing-md) 15px}.content-bottom .arcgis-legend__service{padding:0 0 var(--calcite-spacing-md)}.message{margin:var(--calcite-spacing-md) 15px}.visible-icon{visibility:hidden}.item:hover>.visible-toggle>.visible-icon,.item:focus>.visible-toggle>.visible-icon,.item:focus-within>.visible-toggle>.visible-icon{visibility:visible}`, ee = z`@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;min-height:var(--calcite-space-3xl);transition:max-height .25s ease-in-out;overflow-y:auto;--arcgis-layer-list-visibility-icon: hidden}:host>div{display:flex;width:100%}.filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-space-md-plus)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size)}.action-menu .action-group{display:none}.action-menu[open] .action-group{display:flex}.active:hover>.visible-toggle>.visible-icon,.active:focus>.visible-toggle>.visible-icon,.active:focus-within>.visible-toggle>.visible-icon{visibility:visible}.status-indicator{margin-inline:0}`, F = "nested", te = B(D);
|
|
24
24
|
class ie extends Z {
|
|
25
25
|
constructor() {
|
|
26
26
|
super(...arguments), this._lastDragDetail = null, this._rootListRef = y(), this._layerFlowItemRef = y(), this._panelFlowItemRef = y(), this._selectedDragItemLayerUid = null, this._rootGroupUid = `operational-${O()}`, this._openedLayersController = null, this.messages = R(), this._canMove = ({ dragEl: e, fromEl: t, toEl: i }, r) => {
|
|
@@ -9,13 +9,13 @@ import { repeat as Se } from "lit/directives/repeat.js";
|
|
|
9
9
|
import { g as Te, a as ie } from "../../../chunks/action-utils.js";
|
|
10
10
|
import { h as Me, j as Z, l as xe, k as Le, n as Ee, o as ke, g as we } from "../../../chunks/layer-list-utils.js";
|
|
11
11
|
import { s as Pe } from "../../../chunks/component-utils.js";
|
|
12
|
-
const
|
|
13
|
-
function
|
|
14
|
-
return i ?
|
|
12
|
+
const ae = /* @__PURE__ */ new Map();
|
|
13
|
+
function le(i) {
|
|
14
|
+
return i ? ae.get(i) ?? !1 : !1;
|
|
15
15
|
}
|
|
16
16
|
function De(i, e) {
|
|
17
|
-
const l = !(i.aria?.pressed ??
|
|
18
|
-
return i.aria = { ...i.aria, pressed: l }, e &&
|
|
17
|
+
const l = !(i.aria?.pressed ?? le(e));
|
|
18
|
+
return i.aria = { ...i.aria, pressed: l }, e && ae.set(e, l), l;
|
|
19
19
|
}
|
|
20
20
|
function D(i) {
|
|
21
21
|
return i && "visibilityMode" in i ? i.visibilityMode : null;
|
|
@@ -49,28 +49,28 @@ function te(i, e, l) {
|
|
|
49
49
|
return c`<calcite-action .active=${S === "toggle" ? e.value : !1} data-action-id=${e.id ?? r} .disabled=${I} .icon=${T} .indicator=${h} .loading=${C} @click=${() => Re(f, m, e)} scale=s slot=${(l ? void 0 : "actions-end") ?? r} .text=${p ?? ""} .textEnabled=${l} title=${p ?? void 0 ?? r}>${ne(a, e)}</calcite-action>`;
|
|
50
50
|
}
|
|
51
51
|
function Ge(i) {
|
|
52
|
-
const { item: e, parent: l, hideStatusIndicators: m, css: a, visibilityAppearance: f, hideCatalogLayerList: C, dragEnabled: I = !1, rootGroupUid: p, listModeDisabled: S = !1, selectionMode: h, displayMode: T, layerTablesEnabled: M, showErrors: ce, parentTitles: F, selectedItems:
|
|
52
|
+
const { item: e, parent: l, hideStatusIndicators: m, css: a, visibilityAppearance: f, hideCatalogLayerList: C, dragEnabled: I = !1, rootGroupUid: p, listModeDisabled: S = !1, selectionMode: h, displayMode: T, layerTablesEnabled: M, showErrors: ce, parentTitles: F, selectedItems: se, activeItem: oe, handleCatalogOpen: re, handleTablesOpen: de, selectedDragItemLayerUid: ue, handleSelectedDragItemLayerUidChange: me, handlePanelOpen: $e, messages: n, setCurrentActiveItem: O, clearActiveItem: R } = i, g = X(), x = X(), b = e.title || ("untitledTable" in n ? n.untitledTable : n.untitledLayer ?? "");
|
|
53
53
|
let V = null;
|
|
54
|
-
m || (V = c`<arcgis-layer-list-item-indicator .messages=${n} .item=${e} .parent=${l} slot=content-end></arcgis-layer-list-item-indicator>`);
|
|
54
|
+
m || (V = c`<arcgis-layer-list-item-indicator class=${d(a.statusIndicator)} .messages=${n} .item=${e} .parent=${l} slot=content-end></arcgis-layer-list-item-indicator>`);
|
|
55
55
|
let G = null;
|
|
56
56
|
{
|
|
57
|
-
const { layer: t } = e,
|
|
58
|
-
(i.showTemporaryLayerIndicators || i.showTemporaryTableIndicators) &&
|
|
57
|
+
const { layer: t } = e, s = t && "persistenceEnabled" in t && (Ae(t) || !t.persistenceEnabled);
|
|
58
|
+
(i.showTemporaryLayerIndicators || i.showTemporaryTableIndicators) && s && (G = c`<calcite-icon class=${d(a.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${n.temporary ?? r}></calcite-icon>`);
|
|
59
59
|
}
|
|
60
60
|
let H = null;
|
|
61
61
|
if ("visible" in e && "visibleToggle" in a && f) {
|
|
62
62
|
const t = D(l);
|
|
63
63
|
if (t !== "inherited") {
|
|
64
|
-
const
|
|
64
|
+
const s = Me({
|
|
65
65
|
visible: e.visible,
|
|
66
66
|
exclusive: t === "exclusive",
|
|
67
67
|
visibilityAppearance: f
|
|
68
|
-
}),
|
|
69
|
-
H = c`<calcite-action .aria=${{ pressed: v }} .active=${v} class=${d(a.visibleToggle)} .icon=${
|
|
68
|
+
}), o = f === "checkbox", $ = n.layerVisibility, v = le(e.layer?.id);
|
|
69
|
+
H = c`<calcite-action .aria=${{ pressed: v }} .active=${v} class=${d(a.visibleToggle)} .icon=${o ? s : void 0} @click=${(y) => {
|
|
70
70
|
De(y.currentTarget, e.layer?.id), ee(e, l);
|
|
71
|
-
}} .slot=${
|
|
71
|
+
}} .slot=${o ? "actions-start" : "actions-end"} .text=${$ ?? ""} title=${$ ?? r}>${o ? null : c`<calcite-icon class=${d(P({
|
|
72
72
|
[a.visibleIcon]: t !== "exclusive" && e.visible
|
|
73
|
-
}))} .icon=${
|
|
73
|
+
}))} .icon=${s} scale=s></calcite-icon>`}</calcite-action>`;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
let U = null;
|
|
@@ -82,19 +82,19 @@ function Ge(i) {
|
|
|
82
82
|
{
|
|
83
83
|
const t = e.panel;
|
|
84
84
|
if (t?.visible) {
|
|
85
|
-
const { open:
|
|
86
|
-
q = c`<calcite-action .active=${
|
|
85
|
+
const { open: s, title: o, disabled: $ } = t, v = { icon: t.icon, image: t.image, indicator: !1 }, y = ie(v);
|
|
86
|
+
q = c`<calcite-action .active=${s} .disabled=${$} .icon=${y} @click=${() => Fe(e, $e)} slot=actions-end .text=${o ?? ""} title=${o ?? void 0 ?? r}>${ne(a, t)}</calcite-action>`;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
let j = null;
|
|
90
90
|
{
|
|
91
|
-
const t = e.layer,
|
|
92
|
-
"itemCatalogIcon" in a && (
|
|
91
|
+
const t = e.layer, s = t?.type === "catalog-footprint", o = t?.type === "sublayer" && Z(t, "footprints");
|
|
92
|
+
"itemCatalogIcon" in a && (s || o) && (j = c`<calcite-icon class=${d(a.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`);
|
|
93
93
|
}
|
|
94
94
|
let B = null;
|
|
95
95
|
{
|
|
96
|
-
const t = e.layer,
|
|
97
|
-
"itemCatalogIcon" in a && (
|
|
96
|
+
const t = e.layer, s = t?.type === "catalog-dynamic-group", o = t?.type === "sublayer" && Z(t, "layers-in-view");
|
|
97
|
+
"itemCatalogIcon" in a && (s || o) && (B = c`<calcite-icon class=${d(a.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`);
|
|
98
98
|
}
|
|
99
99
|
let N = null;
|
|
100
100
|
if ("visible" in e) {
|
|
@@ -118,12 +118,12 @@ function Ge(i) {
|
|
|
118
118
|
}
|
|
119
119
|
let z = null;
|
|
120
120
|
if ("children" in e) {
|
|
121
|
-
const t = [...F ?? [], e.title], { children:
|
|
122
|
-
($ || fe) && (z = c`<calcite-list .canPull=${(u) => i.canMove ? i.canMove(u, "pull") : !1} .canPut=${(u) => i.canMove ? i.canMove(u, "put") : !1} data-item=${e.uid ?? r} data-layer-type=${p ?? r} .displayMode=${T} .dragEnabled=${he} .group=${y ? p : `${p}-${
|
|
121
|
+
const t = [...F ?? [], e.title], { children: s, layer: o } = e, $ = o?.type !== "catalog-dynamic-group" && xe(e), v = S ? !1 : Le(o), y = o?.type === "group", fe = !v && !$ && I && y, he = I && "childrenSortable" in e && e.childrenSortable && Ee(e), Ie = $ ? Se(s?.filter((u) => !u.hidden && (ce || !u.error)).toArray() ?? [], (u) => u.uid, (u) => Ge({ ...i, item: u, parent: e, parentTitles: t })) : null;
|
|
122
|
+
($ || fe) && (z = c`<calcite-list .canPull=${(u) => i.canMove ? i.canMove(u, "pull") : !1} .canPut=${(u) => i.canMove ? i.canMove(u, "put") : !1} data-item=${e.uid ?? r} data-layer-type=${p ?? r} .displayMode=${T} .dragEnabled=${he} .group=${y ? p : `${p}-${o?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${h}>${Ie}${_}</calcite-list>`);
|
|
123
123
|
}
|
|
124
124
|
let E = null;
|
|
125
125
|
e.error ? E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${"tableError" in n ? n.tableError : n.layerError}</div></calcite-notice></div>` : "incompatible" in e && e.incompatible && "layerIncompatible" in n && (E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${Y(x)}><div slot=message>${n.layerIncompatible}</div></calcite-notice></div>`);
|
|
126
|
-
const J = Ve(e), k = e.actionsSections.reduce((t,
|
|
126
|
+
const J = Ve(e), k = e.actionsSections.reduce((t, s) => t + s.length, 0), K = ke(J), ge = J.toArray().map((t) => c`<calcite-action-group>${t.toArray().map((s) => te(i, s, !0))}</calcite-action-group>`), pe = (t) => {
|
|
127
127
|
e.actionsOpen = t.currentTarget.open;
|
|
128
128
|
};
|
|
129
129
|
let Q = null;
|
|
@@ -133,7 +133,7 @@ function Ge(i) {
|
|
|
133
133
|
const be = "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in n && !e.visibleAtCurrentTimeExtent ? `${b} (${n.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in n && !e.visibleAtCurrentScale ? `${b} (${n.layerInvisibleAtScale})` : b, ve = "parent" in e && e.parent?.layer?.type === "catalog", A = e.layer, ye = "visibleAtCurrentScale" in e && !e.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in e && !e.visibleAtCurrentTimeExtent;
|
|
134
134
|
return queueMicrotask(() => {
|
|
135
135
|
Oe(g.value ?? null, e, ue, me), x.value && (i.handleTooltipReferenceChange?.(A?.uid, x.value), queueMicrotask(() => i.handleTooltipReferenceChange?.(A?.uid, null))), e.panel && (e.panel.container = g.value);
|
|
136
|
-
}), W(e.uid, c`<calcite-list-item class=${d(P(a.item, "itemActive" in a && { [a.itemActive]:
|
|
136
|
+
}), W(e.uid, c`<calcite-list-item class=${d(P(a.item, "itemActive" in a && { [a.itemActive]: oe?.uid === e.uid }))} data-item=${e.uid ?? r} data-layer-id=${A?.id ?? r} .dragDisabled=${!("sortable" in e && e.sortable) || ve} id=${A?.uid ?? r} .label=${b} .metadata=${{ parentTitles: F ?? [], _title: b }} .expanded=${"open" in e && e.open} .selected=${h !== "none" ? se.includes(e) : !1} title=${be ?? r} .unavailable=${ye} .value=${e} @focusin=${() => {
|
|
137
137
|
O?.(e), g.value?.classList.add(a.itemActive);
|
|
138
138
|
}} @focusout=${() => {
|
|
139
139
|
R?.(), g.value?.classList.remove(a.itemActive);
|
|
@@ -83,7 +83,7 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
83
83
|
* [CIMSymbol](https://developers.arcgis.com/javascript/latest/references/core/symbols/CIMSymbol/),
|
|
84
84
|
* [PictureMarkerSymbol](https://developers.arcgis.com/javascript/latest/references/core/symbols/PictureMarkerSymbol/)
|
|
85
85
|
* from a GIF/animated PNG), animated renderers
|
|
86
|
-
* ([FlowRenderer](https://developers.arcgis.com/javascript/latest/references/core/
|
|
86
|
+
* ([FlowRenderer](https://developers.arcgis.com/javascript/latest/references/core/renderers/FlowRenderer/)),
|
|
87
87
|
* animated layers ([MediaLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/MediaLayer/),
|
|
88
88
|
* [VideoLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/VideoLayer/)), and
|
|
89
89
|
* animations triggered by view navigation (for example,
|
|
@@ -153,7 +153,7 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
153
153
|
* [CIMSymbol](https://developers.arcgis.com/javascript/latest/references/core/symbols/CIMSymbol/),
|
|
154
154
|
* [PictureMarkerSymbol](https://developers.arcgis.com/javascript/latest/references/core/symbols/PictureMarkerSymbol/)
|
|
155
155
|
* from a GIF/animated PNG), animated renderers
|
|
156
|
-
* ([FlowRenderer](https://developers.arcgis.com/javascript/latest/references/core/
|
|
156
|
+
* ([FlowRenderer](https://developers.arcgis.com/javascript/latest/references/core/renderers/FlowRenderer/)),
|
|
157
157
|
* animated layers ([MediaLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/MediaLayer/),
|
|
158
158
|
* [VideoLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/VideoLayer/)), and
|
|
159
159
|
* animations triggered by view navigation (for example,
|