@arcgis/map-components 5.1.0-next.84 → 5.1.0-next.86
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/{3M7YKCX7.js → DXXSS4ND.js} +1 -1
- package/dist/cdn/EIVHDZFM.js +2 -0
- package/dist/cdn/GUYOWFTW.js +2 -0
- package/dist/cdn/HN5OI754.js +2 -0
- package/dist/cdn/JCBEUV6E.js +2 -0
- package/dist/cdn/RVLC2U3T.js +2 -0
- package/dist/cdn/TNFV5TYG.js +2 -0
- package/dist/cdn/UKBIRZVQ.js +2 -0
- package/dist/cdn/assets/layer-list-new/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/layer-list-item-indicator.js +41 -19
- package/dist/components/arcgis-aggregated-features/customElement.js +27 -23
- package/dist/components/arcgis-features/customElement.js +99 -84
- package/dist/components/arcgis-labeled-switch/customElement.js +4 -4
- package/dist/components/arcgis-layer-list-item-indicator/customElement.js +3 -2
- package/dist/components/arcgis-layer-list-item-indicator/index.js +1 -0
- package/dist/components/arcgis-layer-list-new/customElement.d.ts +18 -0
- package/dist/components/arcgis-layer-list-new/layer-list-item/customElement.js +20 -20
- package/dist/components/arcgis-sketch-tooltip-controls/customElement.d.ts +91 -0
- package/dist/components/arcgis-sketch-tooltip-controls/customElement.js +71 -0
- package/dist/components/arcgis-sketch-tooltip-controls/index.d.ts +1 -0
- package/dist/components/arcgis-sketch-tooltip-controls/index.js +7 -0
- package/dist/components/arcgis-time-of-day-slider/customElement.js +74 -46
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/loader.js +2 -1
- package/dist/types/lumina.d.ts +6 -0
- package/dist/types/preact.d.ts +7 -0
- package/dist/types/react.d.ts +8 -0
- package/dist/types/stencil.d.ts +6 -0
- package/package.json +4 -4
- package/dist/cdn/2NY3SFXY.js +0 -2
- package/dist/cdn/HV3Q65XH.js +0 -2
- package/dist/cdn/K6DM6L64.js +0 -2
- package/dist/cdn/LLRYOV3A.js +0 -2
- package/dist/cdn/O53VUY2U.js +0 -2
- package/dist/cdn/YHD6DZQT.js +0 -2
|
@@ -1,33 +1,37 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as d } from "../../chunks/runtime.js";
|
|
3
|
-
import { html as g } from "lit";
|
|
4
|
-
import { keyed as
|
|
3
|
+
import { css as c, html as g } from "lit";
|
|
4
|
+
import { keyed as h } from "lit/directives/keyed.js";
|
|
5
5
|
import "@arcgis/core/core/Collection.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { LitElement as
|
|
10
|
-
import { a as
|
|
11
|
-
import { usePropertyChange as
|
|
12
|
-
import { g as
|
|
13
|
-
import { i as
|
|
14
|
-
import { stripHTML as
|
|
6
|
+
import m from "@arcgis/core/popup/Feature.js";
|
|
7
|
+
import y from "@arcgis/core/Graphic.js";
|
|
8
|
+
import F from "@arcgis/core/symbols/SimpleFillSymbol.js";
|
|
9
|
+
import { LitElement as _, renderElement as p } from "@arcgis/lumina";
|
|
10
|
+
import { a as f } from "../../chunks/maybe.js";
|
|
11
|
+
import { usePropertyChange as A, bypassReadOnly as n } from "@arcgis/lumina/controllers";
|
|
12
|
+
import { g as w } from "../../chunks/feature-utils.js";
|
|
13
|
+
import { i as b } from "../../chunks/async-utils.js";
|
|
14
|
+
import { stripHTML as v } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
15
15
|
import { watch as l } from "@arcgis/core/core/reactiveUtils.js";
|
|
16
|
-
|
|
16
|
+
const I = c`calcite-notice{padding:var(--calcite-space-lg)}`;
|
|
17
|
+
class C extends _ {
|
|
17
18
|
constructor() {
|
|
18
|
-
super(...arguments), this.aggregatedFeatureCount = 0, this.aggregatedFeatureItems = [], this.aggregatedFeatures = [], this.autoDestroyDisabled = !1, this.loading = !1, this.selectedAggregateBoundaryFeature = new
|
|
19
|
-
symbol: new
|
|
19
|
+
super(...arguments), this.aggregatedFeatureCount = 0, this.aggregatedFeatureItems = [], this.aggregatedFeatures = [], this.autoDestroyDisabled = !1, this.loading = !1, this.selectedAggregateBoundaryFeature = new y({
|
|
20
|
+
symbol: new F({
|
|
20
21
|
outline: {
|
|
21
22
|
width: 1.5,
|
|
22
23
|
color: "cyan"
|
|
23
24
|
},
|
|
24
25
|
style: "none"
|
|
25
26
|
})
|
|
26
|
-
}), this.arcgisPropertyChange =
|
|
27
|
+
}), this.arcgisPropertyChange = A()("aggregatedFeatureCount", "aggregatedFeatureItems", "aggregatedFeatures", "loading");
|
|
27
28
|
}
|
|
28
29
|
static {
|
|
29
30
|
this.properties = { _abortController: 16, aggregatedFeatureCount: 32, aggregatedFeatureItems: 32, aggregatedFeatures: 32, autoDestroyDisabled: 5, feature: 0, flowItems: 0, loading: 32, map: 0, messages: 0, selectedAggregateBoundaryFeature: 32, spatialReference: 0, timeZone: 1, view: 0 };
|
|
30
31
|
}
|
|
32
|
+
static {
|
|
33
|
+
this.styles = I;
|
|
34
|
+
}
|
|
31
35
|
async destroy() {
|
|
32
36
|
await this.manager.destroy(), this._cancelQuery(), this._clearAggregatedFeatureItems(), this._removeAggregateBoundaryFeature();
|
|
33
37
|
}
|
|
@@ -55,7 +59,7 @@ class v extends F {
|
|
|
55
59
|
n(() => this.loading = e);
|
|
56
60
|
}
|
|
57
61
|
_cancelQuery() {
|
|
58
|
-
this._abortController =
|
|
62
|
+
this._abortController = f(this._abortController), this._setLoading(!1);
|
|
59
63
|
}
|
|
60
64
|
_removeBoundaryGraphicFromView(e) {
|
|
61
65
|
e?.graphics.remove(this.selectedAggregateBoundaryFeature);
|
|
@@ -67,7 +71,7 @@ class v extends F {
|
|
|
67
71
|
this._setAggregatedFeatures([]), this._clearAggregatedFeatureItems(), this._setAggregatedFeatureCount(0), this._removeAggregateBoundaryFeature();
|
|
68
72
|
}
|
|
69
73
|
_setAggregatedFeatureItems(e) {
|
|
70
|
-
this._setAggregatedFeatureItemsReadOnly(e.map((t) => new
|
|
74
|
+
this._setAggregatedFeatureItemsReadOnly(e.map((t) => new m({ graphic: t })));
|
|
71
75
|
}
|
|
72
76
|
_setAggregatedFeaturesState(e) {
|
|
73
77
|
this._setAggregatedFeatures(e), this._setAggregatedFeatureItems(e), this._setAggregatedFeatureCount(e.length);
|
|
@@ -84,7 +88,7 @@ class v extends F {
|
|
|
84
88
|
a !== t && this._removeBoundaryGraphicFromView(a), this.selectedAggregateBoundaryFeature.geometry = e, this._boundaryGraphicView = t, t.graphics.includes(this.selectedAggregateBoundaryFeature) || t.graphics.add(this.selectedAggregateBoundaryFeature);
|
|
85
89
|
}
|
|
86
90
|
async _getLayerViewAndQuery(e) {
|
|
87
|
-
const { view: t } = this, a =
|
|
91
|
+
const { view: t } = this, a = w(e);
|
|
88
92
|
if (!t || !a)
|
|
89
93
|
return null;
|
|
90
94
|
const r = await t.whenLayerView(a);
|
|
@@ -118,7 +122,7 @@ class v extends F {
|
|
|
118
122
|
const u = s.features ?? [];
|
|
119
123
|
this._setAggregatedFeaturesState(u), i.extent ? this._updateAggregateBoundaryFeature(i.extent) : this._removeAggregateBoundaryFeature();
|
|
120
124
|
} catch (s) {
|
|
121
|
-
if (this._abortController !== r || (this._abortController = null, this._setLoading(!1),
|
|
125
|
+
if (this._abortController !== r || (this._abortController = null, this._setLoading(!1), b(s)))
|
|
122
126
|
return;
|
|
123
127
|
this._resetAggregatedFeaturesState();
|
|
124
128
|
}
|
|
@@ -128,17 +132,17 @@ class v extends F {
|
|
|
128
132
|
}
|
|
129
133
|
_selectFeature(e) {
|
|
130
134
|
const { flowItems: t, view: a } = this;
|
|
131
|
-
t && this._addFlowItem(
|
|
135
|
+
t && this._addFlowItem(p(h(e, g`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .graphic=${e.graphic} .map=${this.map} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${a ?? void 0}></arcgis-feature>`)));
|
|
132
136
|
}
|
|
133
137
|
_renderChevronIconNode() {
|
|
134
138
|
return g`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`;
|
|
135
139
|
}
|
|
136
140
|
render() {
|
|
137
141
|
const { aggregatedFeatureItems: e } = this, { loading: t } = this, a = e.filter((r) => r.graphic);
|
|
138
|
-
return t || a.length > 0 ? g`<calcite-list .loading=${t} display-mode=flat .filterEnabled=${a.length > 10} .filterPlaceholder=${this.messages?.aggregatedFeaturesPlaceholder ?? ""} .label=${this.messages?.aggregatedFeatures ?? ""} selection-mode=none>${a.map((r) => g`<calcite-list-item .label=${
|
|
142
|
+
return t || a.length > 0 ? g`<calcite-list .loading=${t} display-mode=flat .filterEnabled=${a.length > 10} .filterPlaceholder=${this.messages?.aggregatedFeaturesPlaceholder ?? ""} .label=${this.messages?.aggregatedFeatures ?? ""} selection-mode=none>${a.map((r) => g`<calcite-list-item .label=${v(r.heading) ?? ""} @calciteListItemSelect=${() => this._selectFeature(r)}>${this._renderChevronIconNode()}</calcite-list-item>`)}</calcite-list>` : g`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noAggregatedFeatures}</div></calcite-notice>`;
|
|
139
143
|
}
|
|
140
144
|
}
|
|
141
|
-
d("arcgis-aggregated-features",
|
|
145
|
+
d("arcgis-aggregated-features", C);
|
|
142
146
|
export {
|
|
143
|
-
|
|
147
|
+
C as ArcgisAggregatedFeatures
|
|
144
148
|
};
|
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as L } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as B, html as
|
|
4
|
-
import { keyed as
|
|
3
|
+
import { css as B, html as r } from "lit";
|
|
4
|
+
import { keyed as $ } from "lit/directives/keyed.js";
|
|
5
5
|
import N from "@arcgis/core/support/actions/ActionButton.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { LitElement as
|
|
9
|
-
import { usePropertyChange as
|
|
10
|
-
import { classes as
|
|
11
|
-
import { createRef as
|
|
12
|
-
import { g as
|
|
6
|
+
import T from "@arcgis/core/core/Collection.js";
|
|
7
|
+
import O from "@arcgis/core/popup/Features.js";
|
|
8
|
+
import { LitElement as S, createEvent as C, renderElement as z, nothing as g, safeClassMap as A } from "@arcgis/lumina";
|
|
9
|
+
import { usePropertyChange as P, bypassReadOnly as k } from "@arcgis/lumina/controllers";
|
|
10
|
+
import { classes as y } from "@arcgis/toolkit/dom";
|
|
11
|
+
import { createRef as v, ref as f } from "lit/directives/ref.js";
|
|
12
|
+
import { g as D } from "../../chunks/feature-utils.js";
|
|
13
13
|
import { initializeProjection as H } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
14
|
-
import { t as
|
|
14
|
+
import { t as Z, z as V } from "../../chunks/action-utils.js";
|
|
15
15
|
import { m as U } from "../../chunks/useViewModel.js";
|
|
16
|
-
import { renderingSanitizer as
|
|
17
|
-
import { stripHTML as
|
|
18
|
-
import { substitute as
|
|
16
|
+
import { renderingSanitizer as m } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
17
|
+
import { stripHTML as I } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
18
|
+
import { substitute as u, formatNumber as _ } from "@arcgis/core/intl.js";
|
|
19
19
|
import { u as j } from "../../chunks/useT9n.js";
|
|
20
|
-
import { watch as
|
|
20
|
+
import { watch as d } from "@arcgis/core/core/reactiveUtils.js";
|
|
21
21
|
const G = B`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-color-background: var(--calcite-color-foreground-1);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.root img{image-orientation:from-image}.flow-item-collapsed{--calcite-flow-item-header-border-block-end: none}.container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1)}.container calcite-list{width:100%}.container:not(:empty){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)}`;
|
|
22
|
-
function K(
|
|
23
|
-
return
|
|
22
|
+
function K(p) {
|
|
23
|
+
return p?.declaredClass.startsWith("esri.layers.") ?? !1;
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
function q(p) {
|
|
26
|
+
if (!(!p || !("featureReduction" in p)))
|
|
27
|
+
return p.featureReduction?.type;
|
|
28
|
+
}
|
|
29
|
+
const W = U(O);
|
|
30
|
+
class X extends S {
|
|
27
31
|
constructor() {
|
|
28
32
|
super(...arguments), this._zoomToFeature = new N({
|
|
29
33
|
icon: "magnifying-glass-plus",
|
|
@@ -33,10 +37,10 @@ class W extends O {
|
|
|
33
37
|
e?.isIntersecting && this.viewModel.featurePage != null && this.viewModel.featurePage++;
|
|
34
38
|
}, this._featureMenuIntersectionObserver = new IntersectionObserver(this._featureMenuIntersectionObserverCallback, {
|
|
35
39
|
root: window.document
|
|
36
|
-
}), this._featureMenuIntersectionObserverNode = null, this._rootFlowItemNode =
|
|
40
|
+
}), this._featureMenuIntersectionObserverNode = null, this._rootFlowItemNode = v(), this._featureMenuViewportNode = v(), this._actionBarMenuNode = v(), this._flowContainerNode = v(), this.messages = j(), this._selectedFeatureComponent = v(), this._cancelOpenRelatedFeature = () => {
|
|
37
41
|
const { _openRelatedFeatureAbortController: e } = this;
|
|
38
42
|
e && e.abort(), this._openRelatedFeatureAbortController = null;
|
|
39
|
-
}, this._openRelatedFeatureAbortController = null, this.flowItems = new
|
|
43
|
+
}, this._openRelatedFeatureAbortController = null, this.flowItems = new T(), this._aggregatedFeatureCount = 0, this._aggregatedFeaturesLoading = !1, this.viewModel = W(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 = !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 T(), 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 = P()("active", "collapsed", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = C(), this.arcgisClose = C(), this.arcgisTriggerAction = C();
|
|
40
44
|
}
|
|
41
45
|
static {
|
|
42
46
|
this.properties = { _openRelatedFeatureAbortController: 16, flowItems: 16, _aggregatedFeatureCount: 16, _aggregatedFeaturesLoading: 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, 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 };
|
|
@@ -78,11 +82,11 @@ class W extends O {
|
|
|
78
82
|
signal: o
|
|
79
83
|
}), e = this.view.toScreen(this.location) ?? void 0), !e)
|
|
80
84
|
return;
|
|
81
|
-
const
|
|
85
|
+
const n = await this.viewModel.fetchFeatures(e, {
|
|
82
86
|
...t,
|
|
83
87
|
signal: o
|
|
84
88
|
});
|
|
85
|
-
this.location =
|
|
89
|
+
this.location = n.location, this.promises = n.pendingFeatures;
|
|
86
90
|
}
|
|
87
91
|
async next() {
|
|
88
92
|
return this.viewModel.next();
|
|
@@ -95,36 +99,37 @@ class W extends O {
|
|
|
95
99
|
}
|
|
96
100
|
async triggerAction(e) {
|
|
97
101
|
if (!e.disabled)
|
|
98
|
-
return e?.type === "toggle" && (e.value = !e.value), await
|
|
102
|
+
return e?.type === "toggle" && (e.value = !e.value), await Z(e, this.viewModel);
|
|
99
103
|
}
|
|
100
104
|
loaded() {
|
|
101
105
|
this.manager.onLifecycle(() => [
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
d(() => this.viewModel?.selectedFeatureIndex, (e, t) => this._selectedFeatureIndexUpdated(e, t)),
|
|
107
|
+
d(() => this.viewModel?.view?.scale, () => this._viewScaleChange()),
|
|
108
|
+
d(() => this.viewModel?.view, (e, t) => t && this._viewChange()),
|
|
109
|
+
d(() => this._spinnerEl?.screenLocation, () => this._closeOpenActionMenu()),
|
|
110
|
+
d(() => this.selectedFeatureComponent?.viewModel, () => this._removeFlowItems()),
|
|
111
|
+
d(() => this.viewModel?.featureItems, () => this._featureMenuViewportScrollTop()),
|
|
112
|
+
d(() => this.flowItems.length, () => {
|
|
108
113
|
const e = Array.from(this.flowItems).at(-1);
|
|
109
|
-
|
|
114
|
+
k(() => this.selectedDrillInFeature = e?.graphic ?? void 0);
|
|
110
115
|
}),
|
|
111
|
-
|
|
116
|
+
d(() => [this.flowItems?.length, this.featureMenuOpen], () => {
|
|
112
117
|
this.setFocus();
|
|
113
118
|
}),
|
|
114
|
-
|
|
119
|
+
d(() => this.viewModel.aggregatedFeaturesEnabled, (e) => {
|
|
115
120
|
e || (this._aggregatedFeatureCount = 0, this._aggregatedFeaturesLoading = !1, this._removeFlowItems());
|
|
116
121
|
}),
|
|
117
|
-
|
|
122
|
+
d(() => this.referenceElement, (e, t) => {
|
|
118
123
|
this._destroySpinner(t), this._createSpinner();
|
|
119
124
|
}, { initial: !0 }),
|
|
120
|
-
|
|
125
|
+
d(() => [this.hideSpinner, this.viewModel?.view, this.viewModel?.location, this.viewModel?.waitingForResult], () => {
|
|
121
126
|
this._createSpinner();
|
|
122
127
|
}, { initial: !0 })
|
|
123
128
|
]);
|
|
124
129
|
}
|
|
125
130
|
updated() {
|
|
126
131
|
const e = this._selectedFeatureComponent.value ?? void 0;
|
|
127
|
-
this.selectedFeatureComponent !== e &&
|
|
132
|
+
this.selectedFeatureComponent !== e && k(() => this.selectedFeatureComponent = e);
|
|
128
133
|
}
|
|
129
134
|
_cancelFetchingFeatures() {
|
|
130
135
|
this._fetchFeaturesController?.abort(), this._fetchFeaturesController = null;
|
|
@@ -138,8 +143,9 @@ class W extends O {
|
|
|
138
143
|
const a = i?.graphic;
|
|
139
144
|
if (!a)
|
|
140
145
|
return;
|
|
141
|
-
const s =
|
|
142
|
-
t.
|
|
146
|
+
const s = D(a), o = K(s) ? s : null;
|
|
147
|
+
let n = t.get(o);
|
|
148
|
+
n || (n = [], t.set(o, n)), n.push(i);
|
|
143
149
|
}), t;
|
|
144
150
|
}
|
|
145
151
|
_handleCollapseToggle() {
|
|
@@ -204,8 +210,8 @@ class W extends O {
|
|
|
204
210
|
this._unobserveFeatureMenuObserver(), e && this._featureMenuIntersectionObserver.observe(e), this._featureMenuIntersectionObserverNode = e;
|
|
205
211
|
}
|
|
206
212
|
_getActionTitle(e) {
|
|
207
|
-
const { messages: t, selectedFeature: i } = this, { id: a } = e, s = i?.attributes, o = e.title ?? "",
|
|
208
|
-
return
|
|
213
|
+
const { messages: t, selectedFeature: i } = this, { id: a } = e, s = i?.attributes, o = e.title ?? "", n = a === "zoom-to-feature" ? u(o, { messages: t }) : a === "remove-selected-feature" ? u(o, { messages: t }) : a === "zoom-to-clustered-features" ? u(o, { messages: t }) : a === "browse-aggregated-features" ? u(o, { messages: t }) : e.title;
|
|
214
|
+
return n && s ? u(n, s) : n ?? "";
|
|
209
215
|
}
|
|
210
216
|
_onMainKeydown(e) {
|
|
211
217
|
const { key: t } = e;
|
|
@@ -221,6 +227,10 @@ class W extends O {
|
|
|
221
227
|
_triggerAction(e) {
|
|
222
228
|
this.triggerAction(e), this.arcgisTriggerAction.emit({ action: e });
|
|
223
229
|
}
|
|
230
|
+
_viewScaleChange() {
|
|
231
|
+
const { selectedFeature: e } = this;
|
|
232
|
+
!e?.isAggregate || q(D(e)) !== "cluster" || (this.viewModel.aggregatedFeaturesEnabled = !1, this.open = !1, this.clear());
|
|
233
|
+
}
|
|
224
234
|
_viewChange() {
|
|
225
235
|
this.viewModel.clear(), this.open = !1, this._aggregatedFeatureCount = 0, this._removeFlowItems();
|
|
226
236
|
}
|
|
@@ -257,10 +267,10 @@ class W extends O {
|
|
|
257
267
|
}
|
|
258
268
|
async _createSpinner() {
|
|
259
269
|
const e = this.referenceElement;
|
|
260
|
-
e && (await this._destroySpinner(e), this._spinnerEl =
|
|
270
|
+
e && (await this._destroySpinner(e), this._spinnerEl = z(r`<arcgis-spinner auto-destroy-disabled .label=${this.messages.loading ?? ""} .trackLocation=${!this.hideSpinner && this.viewModel?.waitingForResult} .location=${this.viewModel?.location ?? void 0} .view=${this.viewModel?.view ?? void 0}></arcgis-spinner>`), e.manager?.component?.extraContent?.add(this._spinnerEl));
|
|
261
271
|
}
|
|
262
272
|
render() {
|
|
263
|
-
return
|
|
273
|
+
return r`<div class="root" @keydown=${this._onMainKeydown}>${this._renderHeader()}${this._renderContentContainer()}</div>`;
|
|
264
274
|
}
|
|
265
275
|
_renderFeatureNavigation() {
|
|
266
276
|
return [
|
|
@@ -269,101 +279,106 @@ class W extends O {
|
|
|
269
279
|
];
|
|
270
280
|
}
|
|
271
281
|
_renderHeader() {
|
|
272
|
-
return this.featureNavigationTop && this._featureNavigationVisible ?
|
|
282
|
+
return this.featureNavigationTop && this._featureNavigationVisible ? r`<div class="header">${this._renderFeatureNavigation()}</div>` : null;
|
|
273
283
|
}
|
|
274
284
|
_renderFooter() {
|
|
275
|
-
return !this.featureNavigationTop && this._featureNavigationVisible ?
|
|
285
|
+
return !this.featureNavigationTop && this._featureNavigationVisible ? r`<div class="footer" slot=footer>${this._renderFeatureNavigation()}</div>` : null;
|
|
276
286
|
}
|
|
277
287
|
_renderFeaturePaginationText() {
|
|
278
288
|
const { messages: e, viewModel: t } = this, { featureCount: i, selectedFeatureIndex: a } = t;
|
|
279
|
-
return
|
|
280
|
-
index:
|
|
281
|
-
total:
|
|
289
|
+
return r`<div class="pagination-text">${u(e.pageText ?? "", {
|
|
290
|
+
index: _(a + 1),
|
|
291
|
+
total: _(i)
|
|
282
292
|
})}</div>`;
|
|
283
293
|
}
|
|
284
294
|
_renderFeatureMenuButton() {
|
|
285
295
|
const { messages: e, viewModel: t } = this, { featureCount: i, selectedFeatureIndex: a, pendingPromisesCount: s } = t;
|
|
286
|
-
return
|
|
287
|
-
index:
|
|
288
|
-
total:
|
|
296
|
+
return r`<calcite-action class="pagination-menu-button" icon=list .label=${e.selectFeature} .loading=${s > 0} @click=${this._handlePaginationMenuButton} .text=${u(e.pageText ?? "", {
|
|
297
|
+
index: _(a + 1),
|
|
298
|
+
total: _(i)
|
|
289
299
|
})} text-enabled title=${e.selectFeature ?? g}></calcite-action>`;
|
|
290
300
|
}
|
|
291
301
|
_renderPagination() {
|
|
292
302
|
const { previous: e, next: t } = this.messages;
|
|
293
|
-
return
|
|
303
|
+
return r`<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 ?? "" ?? g}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${t ?? ""} @click=${this._nextFeature} .text=${t ?? ""} title=${t ?? "" ?? g}></calcite-action></calcite-action-group></calcite-action-bar>`;
|
|
294
304
|
}
|
|
295
|
-
_renderFeatureMenuItem(e) {
|
|
296
|
-
const { initialDisplayMode:
|
|
297
|
-
return
|
|
305
|
+
_renderFeatureMenuItem(e, t) {
|
|
306
|
+
const { initialDisplayMode: i } = this, { selectedFeatureItem: a } = this.viewModel, s = e === a;
|
|
307
|
+
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=${(m.sanitize(e.heading) || this.messages.untitled) ?? ""} slot=content></span>${i === "list" ? r`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>` : null}</calcite-list-item>`;
|
|
298
308
|
}
|
|
299
309
|
_renderFeatureMenu() {
|
|
300
|
-
const { messages: e, viewModel: t } = this, i = this._groupResultsByLayer(), a =
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
310
|
+
const { messages: e, viewModel: t } = this, i = this._groupResultsByLayer(), a = /* @__PURE__ */ new Map();
|
|
311
|
+
t.featureItems.forEach((o, n) => a.set(o, n));
|
|
312
|
+
const s = this.initialDisplayMode === "list" ? "none" : "single";
|
|
313
|
+
return t.featureItems.length ? r`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${s}>${Array.from(i.keys(), (o) => {
|
|
314
|
+
const n = i.get(o)?.map((c) => {
|
|
315
|
+
const l = a.get(c);
|
|
316
|
+
return l == null ? null : this._renderFeatureMenuItem(c, l);
|
|
317
|
+
}), h = o ? o.title ?? this.messages.untitled : null;
|
|
318
|
+
return !this.hideFeatureListLayerTitle && h !== null ? $(o ?? "map-graphics", r`<calcite-list-item-group .heading=${h}>${n}</calcite-list-item-group>`) : n;
|
|
304
319
|
})}</calcite-list>` : null;
|
|
305
320
|
}
|
|
306
321
|
_renderHeaderAction(e) {
|
|
307
322
|
const t = e.title || "";
|
|
308
|
-
return e.visible ?
|
|
323
|
+
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 ?? g}></calcite-action>` : null;
|
|
309
324
|
}
|
|
310
325
|
_renderHeaderActions() {
|
|
311
326
|
return this.headerActions.map((e) => this._renderHeaderAction(e)).toArray();
|
|
312
327
|
}
|
|
313
328
|
_renderContentFeature(e) {
|
|
314
|
-
const { headingLevel: t, hideCloseButton: i, _isCollapsed: a, _collapseEnabled: s, featureNavigationTop: o, initialDisplayMode:
|
|
315
|
-
return
|
|
329
|
+
const { headingLevel: t, hideCloseButton: i, _isCollapsed: a, _collapseEnabled: s, featureNavigationTop: o, initialDisplayMode: n, selectedFeature: h } = this, { active: c } = this.viewModel, l = this._getHeading();
|
|
330
|
+
return n === "list" && !h ? null : r`<calcite-flow-item class=${A(y({
|
|
316
331
|
"content-feature": !0,
|
|
317
332
|
"flow-item-collapsed": a
|
|
318
|
-
}))} .closable=${!i} .closed=${!
|
|
333
|
+
}))} .closable=${!i} .closed=${!c} .collapsed=${a} .collapseDirection=${o ? "down" : "up"} .collapsible=${s} .headingLevel=${t} .selected=${e} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${I(l)} ${f(this._rootFlowItemNode)}><div slot=heading><div .innerHTML=${m.sanitize(l ?? "") ?? ""}></div></div>${this._renderHeaderActions()}${this._renderActionBar()}<div class=${A(y("container", "content-container"))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
|
|
319
334
|
}
|
|
320
335
|
_renderFeatureMenuContainer() {
|
|
321
|
-
const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: a, initialDisplayMode: s, featureMenuOpen: o, _featureFlowItemSelected:
|
|
336
|
+
const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: a, initialDisplayMode: s, featureMenuOpen: o, _featureFlowItemSelected: n, _collapseEnabled: h, _isCollapsed: c, featureNavigationTop: l, headingLevel: F } = this, { active: w, featureItems: b, pendingPromisesCount: M } = e, E = i ?? a.selectFeature;
|
|
322
337
|
if (s === "feature" && !o)
|
|
323
338
|
return null;
|
|
324
|
-
const
|
|
325
|
-
return
|
|
326
|
-
"flow-item-collapsed":
|
|
327
|
-
}))} .closable=${s === "list" && !t} .closed=${!
|
|
328
|
-
total:
|
|
329
|
-
})} .heading=${this.hideFeatureMenuHeading ? void 0 :
|
|
330
|
-
|
|
331
|
-
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${
|
|
339
|
+
const x = !n;
|
|
340
|
+
return r`<calcite-flow-item class=${A(y({
|
|
341
|
+
"flow-item-collapsed": c
|
|
342
|
+
}))} .closable=${s === "list" && !t} .closed=${!w} .collapsed=${s === "list" && c} .collapseDirection=${l ? "down" : "up"} .collapsible=${s === "list" && h} .description=${this.hideFeatureMenuHeading ? void 0 : u(a.total ?? "", {
|
|
343
|
+
total: b.length
|
|
344
|
+
})} .heading=${this.hideFeatureMenuHeading ? void 0 : E} .headingLevel=${F} .loading=${e.waitingForContents} .selected=${x} @calciteFlowItemBack=${(R) => {
|
|
345
|
+
R.preventDefault(), this._handleFeatureMenuBack();
|
|
346
|
+
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${f(this._featureMenuViewportNode)}>${s === "list" ? this._renderHeaderActions() : null}${M > 0 ? r`<calcite-loader class="loader" inline .label=${a.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}<div class="container">${x ? this._renderFeatureMenu() : null}</div><div class="feature-menu-observer" ${f(this._featureMenuIntersectionObserverCreated)}></div>${s === "feature" ? r`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${a.back}</calcite-button>` : null}</calcite-flow-item>`;
|
|
332
347
|
}
|
|
333
348
|
_renderFlowItem(e, t) {
|
|
334
|
-
const { messages: i, hideCloseButton: a, hideSelectFeature: s, active: o } = this,
|
|
335
|
-
return
|
|
336
|
-
|
|
337
|
-
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${this.hideHeading ? null :
|
|
349
|
+
const { messages: i, hideCloseButton: a, hideSelectFeature: s, active: o } = this, n = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable, h = n && !s, c = e.flowType === "feature-association", l = i.returnToInitialFeature ?? "", F = i?.selectFeature, w = this._getActionTitle(this._zoomToFeature), b = !this.hideActionBar && c && n;
|
|
350
|
+
return r`<calcite-flow-item .closable=${!a} .closed=${!o} .description=${I(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${this.hideHeading ? void 0 : I(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(M) => {
|
|
351
|
+
M.preventDefault(), this._handleDrillInBackClick();
|
|
352
|
+
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${this.hideHeading ? null : r`<div slot=heading><div .innerHTML=${m.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${m.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${l ?? ""} title=${l ?? "" ?? g}></calcite-action>${h ? r`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${F ?? ""} title=${F ?? g}></calcite-action>` : null}${b ? r`<calcite-action-bar expand-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=${w} title=${w ?? g} @click=${() => V(this.viewModel, this._zoomToFeature, e)}></calcite-action></calcite-action-group></calcite-action-bar>` : null}<div class="container">${e}</div></calcite-flow-item>`;
|
|
338
353
|
}
|
|
339
354
|
_renderContentContainer() {
|
|
340
|
-
const e = this.flowItems?.toArray(), t = e.length > 0, i = this.viewModel.aggregatedFeaturesEnabled && this.viewModel.selectedFeature?.isAggregate && !t, a = i && e.length === 0, s = e.length === 0 && this._featureFlowItemSelected && !i, o = e?.map((
|
|
341
|
-
return
|
|
355
|
+
const e = this.flowItems?.toArray(), t = e.length > 0, i = this.viewModel.aggregatedFeaturesEnabled && this.viewModel.selectedFeature?.isAggregate && !t, a = i && e.length === 0, s = e.length === 0 && this._featureFlowItemSelected && !i, o = e?.map((c, l) => this._renderFlowItem(c, this._featureFlowItemSelected && l === e.length - 1)), n = this._renderBrowseAggregateContainer(!!a), h = this.initialDisplayMode === "list" ? [this._renderFeatureMenuContainer(), this._renderContentFeature(s)] : [this._renderContentFeature(s), this._renderFeatureMenuContainer()];
|
|
356
|
+
return r`<calcite-flow ${f(this._flowContainerNode)}>${h}${n}${o}</calcite-flow>`;
|
|
342
357
|
}
|
|
343
358
|
_renderBrowseAggregateContainer(e) {
|
|
344
359
|
const { hideCloseButton: t, active: i, messages: a } = this, { selectedFeature: s } = this.viewModel;
|
|
345
|
-
return this.viewModel.aggregatedFeaturesEnabled && s?.isAggregate ?
|
|
360
|
+
return this.viewModel.aggregatedFeaturesEnabled && s?.isAggregate ? r`<calcite-flow-item .selected=${e} .closable=${!t} .closed=${!i} .description=${this._aggregatedFeatureCount ? u(a.total ?? "", {
|
|
346
361
|
total: this._aggregatedFeatureCount
|
|
347
|
-
}) : ""} .heading=${a.aggregatedFeatures} @calciteFlowItemBack=${(
|
|
348
|
-
|
|
362
|
+
}) : ""} .heading=${a.aggregatedFeatures} @calciteFlowItemBack=${(n) => {
|
|
363
|
+
n.preventDefault(), this.viewModel.aggregatedFeaturesEnabled = !1;
|
|
349
364
|
}} .loading=${this._aggregatedFeaturesLoading} @calciteFlowItemClose=${this._handleClose}><arcgis-aggregated-features .autoDestroyDisabled=${this.autoDestroyDisabled} .feature=${s ?? void 0} .flowItems=${this.flowItems} .map=${this.map ?? void 0} .messages=${a} @arcgisPropertyChange=${this._handleAggregatedFeaturesPropertyChange} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .view=${this.view ?? void 0}></arcgis-aggregated-features><calcite-button appearance=transparent @click=${() => this.viewModel.aggregatedFeaturesEnabled = !1} slot=footer-start width=full>${a.back}</calcite-button></calcite-flow-item>` : null;
|
|
350
365
|
}
|
|
351
366
|
_renderActionBar() {
|
|
352
367
|
const e = this.viewModel.selectedFeatureItem?.isFeatureFromTable, t = this.viewModel.allActions.toArray(), i = e && !this.location ? t.filter((a) => a.id !== this._zoomToFeature.id) : t;
|
|
353
|
-
return !this._isCollapsed && !this.hideActionBar && i.length ?
|
|
368
|
+
return !this._isCollapsed && !this.hideActionBar && i.length ? r`<calcite-action-bar expand-disabled .expanded=${!this._hideActionText} scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s ${f(this._actionBarMenuNode)}>${this._renderActions(i)}</calcite-action-group></calcite-action-bar>` : null;
|
|
354
369
|
}
|
|
355
370
|
_renderActions(e) {
|
|
356
371
|
return e.map((t) => {
|
|
357
372
|
const i = this._getActionTitle(t);
|
|
358
|
-
return
|
|
373
|
+
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=${i ?? ""} title=${i ?? g} .hidden=${!t.visible} @click=${() => this._triggerAction(t)}></calcite-action>`;
|
|
359
374
|
});
|
|
360
375
|
}
|
|
361
376
|
_renderContent() {
|
|
362
377
|
const { content: e, selectedFeatureItem: t } = this.viewModel;
|
|
363
|
-
return t ?
|
|
378
|
+
return t ? $(t, r`<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} ${f(this._selectedFeatureComponent)}></arcgis-feature>`) : typeof e == "string" ? $(e, r`<div .innerHTML=${m.sanitize(e) ?? ""}></div>`) : e ?? null;
|
|
364
379
|
}
|
|
365
380
|
}
|
|
366
|
-
L("arcgis-features",
|
|
381
|
+
L("arcgis-features", X);
|
|
367
382
|
export {
|
|
368
|
-
|
|
383
|
+
X as ArcgisFeatures
|
|
369
384
|
};
|
|
@@ -10,7 +10,7 @@ class f extends p {
|
|
|
10
10
|
super(...arguments), this.checked = !1, this.disabled = !1, this.hintKind = "info", this.arcgisCheckedChanged = m();
|
|
11
11
|
}
|
|
12
12
|
static {
|
|
13
|
-
this.properties = {
|
|
13
|
+
this.properties = { checked: 7, disabled: 7, label: 1, hint: 1, hintIcon: 1, hintKind: 1 };
|
|
14
14
|
}
|
|
15
15
|
static {
|
|
16
16
|
this.styles = b;
|
|
@@ -19,11 +19,11 @@ class f extends p {
|
|
|
19
19
|
await this.manager.destroy();
|
|
20
20
|
}
|
|
21
21
|
_setIconRef(e) {
|
|
22
|
-
this._icon = e;
|
|
22
|
+
this._icon = e, this.requestUpdate();
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
const { label: e, hint: i, hintKind: a, hintIcon:
|
|
26
|
-
return c`<calcite-label class="label" layout=inline-space-between scale=s>${i ? h("label-content", c`<div class="label-content"><div>${e}</div><calcite-icon class=${g(a !== "warning" ? "icon info" : "icon warning")} .icon=${
|
|
25
|
+
const { label: e, hint: i, hintKind: a, hintIcon: s, checked: l, disabled: n } = this;
|
|
26
|
+
return c`<calcite-label class="label" layout=inline-space-between scale=s>${i ? h("label-content", c`<div class="label-content"><div>${e}</div><calcite-icon class=${g(a !== "warning" ? "icon info" : "icon warning")} .icon=${s ?? "information"} @click=${(t) => t.stopPropagation()} scale=s tabindex=0 ${r(this._setIconRef)}></calcite-icon><calcite-tooltip class="tooltip" overlay-positioning=fixed .referenceElement=${this._icon ?? void 0}>${i}</calcite-tooltip></div>`) : e}<calcite-switch .checked=${l} .disabled=${n} scale=s @calciteSwitchChange=${(t) => {
|
|
27
27
|
this.checked = t.target.checked, this.arcgisCheckedChanged.emit(t.target.checked);
|
|
28
28
|
}}></calcite-switch></calcite-label>`;
|
|
29
29
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import "../../chunks/runtime.js";
|
|
3
|
+
import "lit/directives/ref.js";
|
|
3
4
|
import "lit";
|
|
4
5
|
import "@arcgis/lumina/controllers";
|
|
5
6
|
import "@arcgis/lumina";
|
|
6
7
|
import "../../chunks/layer-list-utils.js";
|
|
7
|
-
import { A as
|
|
8
|
+
import { A as c } from "../../chunks/layer-list-item-indicator.js";
|
|
8
9
|
import "@arcgis/toolkit/dom";
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
c as ArcgisLayerListItemIndicator
|
|
11
12
|
};
|
|
@@ -129,6 +129,12 @@ export abstract class ArcgisLayerListNew extends LitElement {
|
|
|
129
129
|
temporary?: string | undefined;
|
|
130
130
|
tables?: string | undefined;
|
|
131
131
|
catalogLayers?: string | undefined;
|
|
132
|
+
connectionStatus?: string | undefined;
|
|
133
|
+
updating?: string | undefined;
|
|
134
|
+
publishing?: string | undefined;
|
|
135
|
+
connected?: string | undefined;
|
|
136
|
+
disconnected?: string | undefined;
|
|
137
|
+
paused?: string | undefined;
|
|
132
138
|
};
|
|
133
139
|
/** @internal */
|
|
134
140
|
protected messages: Partial<{
|
|
@@ -151,6 +157,12 @@ export abstract class ArcgisLayerListNew extends LitElement {
|
|
|
151
157
|
temporary: string;
|
|
152
158
|
tables: string;
|
|
153
159
|
catalogLayers: string;
|
|
160
|
+
connectionStatus: string;
|
|
161
|
+
updating: string;
|
|
162
|
+
publishing: string;
|
|
163
|
+
connected: string;
|
|
164
|
+
disconnected: string;
|
|
165
|
+
paused: string;
|
|
154
166
|
}> & T9nMeta<{
|
|
155
167
|
componentLabel: string;
|
|
156
168
|
back: string;
|
|
@@ -171,6 +183,12 @@ export abstract class ArcgisLayerListNew extends LitElement {
|
|
|
171
183
|
temporary: string;
|
|
172
184
|
tables: string;
|
|
173
185
|
catalogLayers: string;
|
|
186
|
+
connectionStatus: string;
|
|
187
|
+
updating: string;
|
|
188
|
+
publishing: string;
|
|
189
|
+
connected: string;
|
|
190
|
+
disconnected: string;
|
|
191
|
+
paused: string;
|
|
174
192
|
}>;
|
|
175
193
|
/** @default 2 */
|
|
176
194
|
accessor minDragEnabledItems: number;
|