@arcgis/map-components 5.2.0-next.95 → 5.2.0-next.96
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/22TB66OC.js +2 -0
- package/dist/cdn/{AY2PVEY5.js → 3AIQYNSA.js} +1 -1
- package/dist/cdn/{SSJBKHEN.js → 77NK4UBY.js} +1 -1
- package/dist/cdn/AJBOKAK6.js +2 -0
- package/dist/cdn/{2HYRTMJ6.js → AOBYM5ZK.js} +1 -1
- package/dist/cdn/AZ6IOGGT.js +2 -0
- package/dist/cdn/BOPKJR3D.js +2 -0
- package/dist/cdn/{K2FKS4AS.js → BZGHEINJ.js} +1 -1
- package/dist/cdn/{2F6NRCC5.js → DVGE5VPK.js} +1 -1
- package/dist/cdn/EDGLEFG3.js +2 -0
- package/dist/cdn/G743AW46.js +2 -0
- package/dist/cdn/{XZGU6TR6.js → GGKOLSCH.js} +1 -1
- package/dist/cdn/H7KG55LR.js +2 -0
- package/dist/cdn/{KZPPV365.js → JMYDF3AT.js} +1 -1
- package/dist/cdn/L4DWZT4V.js +2 -0
- package/dist/cdn/N2RLGXGJ.js +2 -0
- package/dist/cdn/P2JBFLSB.js +2 -0
- package/dist/cdn/RCQKTBVC.js +2 -0
- package/dist/cdn/{O6CGTOAO.js → S7JDLOX2.js} +1 -1
- package/dist/cdn/assets/selection-list/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/video-player/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/slots.js +1 -1
- package/dist/components/arcgis-aggregated-features/customElement.js +7 -7
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +5 -6
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +11 -1
- package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +2 -2
- package/dist/components/arcgis-feature/customElement.js +27 -27
- package/dist/components/arcgis-feature-attachments/customElement.js +73 -60
- package/dist/components/arcgis-feature-next/customElement.d.ts +7 -0
- package/dist/components/arcgis-feature-next/customElement.js +12 -12
- package/dist/components/arcgis-feature-relationship/customElement.js +54 -45
- package/dist/components/arcgis-features-next/customElement.d.ts +7 -0
- package/dist/components/arcgis-features-next/customElement.js +16 -16
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +25 -9
- package/dist/components/arcgis-popup/customElement.d.ts +7 -0
- package/dist/components/arcgis-popup/customElement.js +15 -15
- package/dist/components/arcgis-scene/customElement.d.ts +2 -2
- package/dist/components/arcgis-selection-list/customElement.d.ts +421 -0
- package/dist/components/arcgis-selection-list/customElement.js +279 -0
- package/dist/components/arcgis-selection-list/index.d.ts +1 -0
- package/dist/components/arcgis-selection-list/index.js +16 -0
- package/dist/components/arcgis-selection-list/types.d.ts +85 -0
- package/dist/components/arcgis-utility-network-elements-result-item/customElement.js +1 -1
- package/dist/components/arcgis-video-player/customElement.d.ts +3 -0
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +9 -9
- 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 +8 -7
- package/dist/types/lumina.d.ts +10 -3
- package/dist/types/preact.d.ts +11 -3
- package/dist/types/react.d.ts +12 -3
- package/dist/types/stencil.d.ts +10 -3
- package/package.json +6 -6
- package/dist/cdn/2GDWXNYN.js +0 -2
- package/dist/cdn/A6Z7H75I.js +0 -2
- package/dist/cdn/CDMVB72W.js +0 -2
- package/dist/cdn/D5TJRWW3.js +0 -2
- package/dist/cdn/FY6IGGPV.js +0 -2
- package/dist/cdn/G7HOUS4O.js +0 -2
- package/dist/cdn/HF3GCBAI.js +0 -2
- package/dist/cdn/LKCX5SXM.js +0 -2
- package/dist/cdn/S3QMZKDY.js +0 -2
- package/dist/cdn/XQH6U57U.js +0 -2
|
@@ -7,7 +7,7 @@ import type { useT9n } from "../../controllers/useT9n.js";
|
|
|
7
7
|
import type { ArcgisTableList } from "../arcgis-table-list/customElement.js";
|
|
8
8
|
import type { ArcgisCatalogLayerListNext } from "./customElement.js";
|
|
9
9
|
|
|
10
|
-
/**
|
|
10
|
+
/** The type used to override the default messages in the Catalog Layer List (next). */
|
|
11
11
|
export type CatalogLayerListMessageOverrides = ReturnType<typeof useT9n<{
|
|
12
12
|
componentLabel: string;
|
|
13
13
|
noItemsToDisplay: string;
|
|
@@ -31,7 +31,7 @@ export type CatalogLayerListOptions = Partial<Pick<ArcgisCatalogLayerListNext, "
|
|
|
31
31
|
listItemCreatedFunction?: CatalogItemCollection["listItemCreatedFunction"];
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
/**
|
|
34
|
+
/** Represents a layer that can be part of a flow in the Catalog Layer List (next). */
|
|
35
35
|
export type FlowLayer = CatalogLayer | SubtablesLayer;
|
|
36
36
|
|
|
37
37
|
/** @internal */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as $ } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as w, html as
|
|
3
|
+
import { css as w, html as r } from "lit";
|
|
4
4
|
import { ref as y } from "lit/directives/ref.js";
|
|
5
5
|
import { u as I } from "../../chunks/useT9n.js";
|
|
6
6
|
import { classes as M } from "@arcgis/toolkit/dom";
|
|
@@ -14,7 +14,7 @@ import N from "@arcgis/core/core/Collection.js";
|
|
|
14
14
|
import { watch as P } from "@arcgis/core/core/reactiveUtils.js";
|
|
15
15
|
import { stripHTML as Z } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
16
16
|
import E from "@arcgis/core/widgets/Feature/FeatureViewModel.js";
|
|
17
|
-
const z = w`:host{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1);--calcite-color-background: var(--calcite-color-foreground-1)}.root{flex:1 1 auto}.root calcite-icon{box-sizing:content-box}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.content-element{margin-bottom:var(--calcite-spacing-lg);padding:0 var(--calcite-spacing-sm);display:flex;flex-direction:column}.content-element:only-child,.content-element:last-child{margin-bottom:var(--calcite-spacing-xxs)}.last-edited-info{padding-top:var(--calcite-spacing-xs);font-size:var(--calcite-font-size-sm)}`, U = x(E);
|
|
17
|
+
const z = w`:host{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1);--calcite-color-background: var(--calcite-color-foreground-1)}.root{flex:1 1 auto}.root calcite-icon{box-sizing:content-box}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.content-element{margin-bottom:var(--calcite-spacing-lg);padding:0 var(--calcite-spacing-sm);display:flex;flex-direction:column}.content-element[empty]{display:none}.content-element:not([empty]):only-child,.content-element:not([empty]):last-child{margin-bottom:var(--calcite-spacing-xxs)}.last-edited-info{padding-top:var(--calcite-spacing-xs);font-size:var(--calcite-font-size-sm)}`, U = x(E);
|
|
18
18
|
class S extends F {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments), this.messages = I(), this._rootFlowNode = null, this.internalFlowItems = new N(), this.flowType = "feature", this.viewModel = U(this), this.view = this.viewModel.view, this.icon = "icon", this.isFeatureFromTable = this.viewModel.isFeatureFromTable, this.graphic = this.viewModel.graphic, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.headingLevel = 2, this.spatialReference = this.viewModel.spatialReference, this.timeZone = this.viewModel.timeZone, this.heading = this.viewModel.title, this.map = this.viewModel.map, this.chartAnimationDisabled = this.viewModel.abilities.chartAnimation, this.hideHeading = !1, this.hideContent = !1, this.hideAttachmentsContent = !1, this.hideCustomContent = !1, this.hideExpressionContent = !1, this.hideFieldsContent = !1, this.hideMediaContent = !1, this.showRelationshipContent = !1, this.hideTextContent = !1, this.showUtilityNetworkContent = !1, this.hideLastEditedInfo = !1, this.autoDestroyDisabled = !1, this.location = this.viewModel.location, this.state = this.viewModel.state, this.arcgisPropertyChange = C()("flowItems", "state"), this.arcgisReady = b();
|
|
@@ -73,12 +73,12 @@ class S extends F {
|
|
|
73
73
|
this.internalFlowItems?.pop()?.destroy();
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
const { state: e } = this.viewModel, t =
|
|
77
|
-
return
|
|
76
|
+
const { state: e } = this.viewModel, t = r`<div class="container">${e === "error" ? this._renderError() : this._renderContentContainer()}</div>`;
|
|
77
|
+
return r`<div class="root">${t}</div>`;
|
|
78
78
|
}
|
|
79
79
|
_renderError() {
|
|
80
80
|
const { messages: e, hideHeading: t } = this;
|
|
81
|
-
return
|
|
81
|
+
return r`<calcite-notice icon=exclamation-mark-circle kind=danger open scale=s>${t ? null : r`<div slot=title>${e.error}</div>`}<div slot=message>${e.loadingError}</div></calcite-notice>`;
|
|
82
82
|
}
|
|
83
83
|
_renderAttachments(e) {
|
|
84
84
|
const { values: t, fieldInfoMap: i, sourceLayer: o, globalValues: s } = this, a = c({
|
|
@@ -87,20 +87,20 @@ class S extends F {
|
|
|
87
87
|
globalValues: s,
|
|
88
88
|
layer: o,
|
|
89
89
|
text: e.title
|
|
90
|
-
}),
|
|
90
|
+
}), n = c({
|
|
91
91
|
values: t,
|
|
92
92
|
fieldInfoMap: i,
|
|
93
93
|
globalValues: s,
|
|
94
94
|
layer: o,
|
|
95
95
|
text: e.description
|
|
96
96
|
});
|
|
97
|
-
return
|
|
97
|
+
return r`<arcgis-feature-attachments .headingLevel=${this.headingLevel} .heading=${a} class="content-element" .displayType=${e.displayType} .attachmentKeywords=${e.attachmentKeywords ?? void 0} .attachmentTypes=${e.attachmentTypes ?? void 0} .orderByFields=${e.orderByFields ?? void 0} .graphic=${this.graphic ?? void 0} .description=${n} .messages=${this.messages}></arcgis-feature-attachments>`;
|
|
98
98
|
}
|
|
99
99
|
_renderCustom(e) {
|
|
100
|
-
return
|
|
100
|
+
return r`<arcgis-feature-content .creator=${e.creator} .destroyer=${e.destroyer ?? void 0} .graphic=${this.graphic ?? void 0} class="content-element"></arcgis-feature-content>`;
|
|
101
101
|
}
|
|
102
102
|
_renderFields(e, t) {
|
|
103
|
-
const i = this.viewModel.formattedAttributes, { values: o, fieldInfoMap: s, sourceLayer: a, popupTemplate:
|
|
103
|
+
const i = this.viewModel.formattedAttributes, { values: o, fieldInfoMap: s, sourceLayer: a, popupTemplate: n, globalValues: l, graphic: d } = this, h = !!e?.fieldInfos, u = (e.fieldInfos ?? n?.fieldInfos ?? [])?.filter(({ fieldName: m }) => !!m && (B(m) || H(m) || m in o)), f = n?.expressionInfos, g = c({
|
|
104
104
|
values: o,
|
|
105
105
|
fieldInfoMap: s,
|
|
106
106
|
globalValues: l,
|
|
@@ -113,13 +113,13 @@ class S extends F {
|
|
|
113
113
|
layer: a,
|
|
114
114
|
text: e.description
|
|
115
115
|
});
|
|
116
|
-
return
|
|
116
|
+
return r`<arcgis-feature-fields .headingLevel=${this.headingLevel} .heading=${g} class="content-element" .messages=${this.messages} .graphic=${d ?? void 0} .isContentFieldInfos=${h} .layer=${a} .description=${v} .values=${{
|
|
117
117
|
...i?.global,
|
|
118
118
|
...i?.content?.[t]
|
|
119
119
|
}} .fieldInfos=${u} .expressionInfos=${f ?? void 0}></arcgis-feature-fields>`;
|
|
120
120
|
}
|
|
121
121
|
_renderMedia(e, t) {
|
|
122
|
-
const { values: i, graphic: o, fieldInfoMap: s, sourceLayer: a, popupTemplate:
|
|
122
|
+
const { values: i, graphic: o, fieldInfoMap: s, sourceLayer: a, popupTemplate: n, globalValues: l } = this, { formattedAttributes: d, relatedInfos: h } = this.viewModel, p = {
|
|
123
123
|
...d?.global,
|
|
124
124
|
...d?.content?.[t]
|
|
125
125
|
}, u = c({
|
|
@@ -135,52 +135,52 @@ class S extends F {
|
|
|
135
135
|
layer: a,
|
|
136
136
|
text: e.description
|
|
137
137
|
});
|
|
138
|
-
return
|
|
138
|
+
return r`<arcgis-feature-media .activeMediaInfoIndex=${e.activeMediaInfoIndex ?? 0} .chartAnimationDisabled=${this.chartAnimationDisabled} .headingLevel=${this.headingLevel} .heading=${u} class="content-element" .description=${f} .values=${i} .layer=${a} .graphic=${o ?? void 0} .messages=${this.messages} .fieldInfoMap=${s} .mediaInfos=${e.mediaInfos ?? []} .popupTemplate=${n ?? void 0} .relatedInfos=${h} .formattedValues=${p}></arcgis-feature-media>`;
|
|
139
139
|
}
|
|
140
140
|
_renderText(e) {
|
|
141
|
-
return
|
|
141
|
+
return r`<arcgis-feature-content .creator=${e.text} .graphic=${this.graphic ?? void 0} class="content-element"></arcgis-feature-content>`;
|
|
142
142
|
}
|
|
143
143
|
_renderExpression(e, t) {
|
|
144
144
|
const i = this.viewModel.formattedAttributes, { fieldInfoMap: o } = this;
|
|
145
|
-
return
|
|
145
|
+
return r`<arcgis-feature-expression .expressionInfo=${e.expressionInfo} .map=${this.map ?? void 0} .spatialReference=${this.spatialReference ?? void 0} .view=${this.viewModel.view ?? void 0} .graphic=${this.graphic ?? void 0} .location=${this.location ?? void 0} .headingLevel=${this.headingLevel} class="content-element" .interceptor=${this.viewModel.interceptor} .messages=${this.messages} .fieldInfoMap=${o} .values=${{
|
|
146
146
|
...i?.global,
|
|
147
147
|
...i?.content?.[t]
|
|
148
148
|
}}></arcgis-feature-expression>`;
|
|
149
149
|
}
|
|
150
150
|
_renderRelationship(e, t) {
|
|
151
|
-
const { values: i, graphic: o, fieldInfoMap: s, sourceLayer: a, globalValues:
|
|
151
|
+
const { values: i, graphic: o, fieldInfoMap: s, sourceLayer: a, globalValues: n } = this, { displayCount: l, orderByFields: d, relationshipId: h } = e, { formattedAttributes: p, view: u } = this.viewModel, f = {
|
|
152
152
|
...p?.global,
|
|
153
153
|
...p?.content?.[t]
|
|
154
154
|
}, g = c({
|
|
155
155
|
values: i,
|
|
156
156
|
fieldInfoMap: s,
|
|
157
|
-
globalValues:
|
|
157
|
+
globalValues: n,
|
|
158
158
|
layer: a,
|
|
159
159
|
text: e.title
|
|
160
160
|
}), v = c({
|
|
161
161
|
values: i,
|
|
162
162
|
fieldInfoMap: s,
|
|
163
|
-
globalValues:
|
|
163
|
+
globalValues: n,
|
|
164
164
|
layer: a,
|
|
165
165
|
text: e.description
|
|
166
166
|
});
|
|
167
|
-
return
|
|
167
|
+
return r`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} class="content-element" .flowItems=${this.flowItems ?? this.internalFlowItems} .description=${v} .layer=${a} .map=${this.map ?? void 0} .displayCount=${l} .graphic=${o ?? void 0} .heading=${g} .headingLevel=${this.headingLevel} .messages=${this.messages} .orderByFields=${d ?? void 0} .relationshipId=${h ?? void 0} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .values=${f} .view=${u ?? void 0}></arcgis-feature-relationship>`;
|
|
168
168
|
}
|
|
169
169
|
_renderAssociation(e) {
|
|
170
|
-
const { fieldInfoMap: t, globalValues: i, graphic: o, messages: s, sourceLayer: a, values:
|
|
171
|
-
values:
|
|
170
|
+
const { fieldInfoMap: t, globalValues: i, graphic: o, messages: s, sourceLayer: a, values: n } = this, l = c({
|
|
171
|
+
values: n,
|
|
172
172
|
fieldInfoMap: t,
|
|
173
173
|
globalValues: i,
|
|
174
174
|
layer: a,
|
|
175
175
|
text: e.title
|
|
176
176
|
}), d = c({
|
|
177
|
-
values:
|
|
177
|
+
values: n,
|
|
178
178
|
fieldInfoMap: t,
|
|
179
179
|
globalValues: i,
|
|
180
180
|
layer: a,
|
|
181
181
|
text: e.description
|
|
182
182
|
});
|
|
183
|
-
return
|
|
183
|
+
return r`<arcgis-feature-utility-network-associations .autoDestroyDisabled=${this.autoDestroyDisabled} .associationTypes=${e.associationTypes} class="content-element" .description=${d} .flowItems=${this.flowItems ?? this.internalFlowItems} .graphic=${o ?? void 0} .heading=${l} .headingLevel=${this.headingLevel} .layer=${a} .map=${this.map ?? void 0} .messages=${s} .parentFeatureViewModel=${this.viewModel} .referenceElement=${this.referenceElement} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .view=${this.viewModel.view ?? void 0}></arcgis-feature-utility-network-associations>`;
|
|
184
184
|
}
|
|
185
185
|
_renderContentElement(e, t) {
|
|
186
186
|
switch (e.type) {
|
|
@@ -206,11 +206,11 @@ class S extends F {
|
|
|
206
206
|
}
|
|
207
207
|
_renderContent() {
|
|
208
208
|
const { content: e, graphic: t } = this.viewModel;
|
|
209
|
-
return e ? Array.isArray(e) && e.length ? e.length ? e.map(this._renderContentElement, this) : null : typeof e == "string" ?
|
|
209
|
+
return e ? Array.isArray(e) && e.length ? e.length ? e.map(this._renderContentElement, this) : null : typeof e == "string" ? r`<arcgis-feature-content .creator=${e} .graphic=${t ?? void 0} class="content-element"></arcgis-feature-content>` : e instanceof HTMLElement ? e : null : null;
|
|
210
210
|
}
|
|
211
211
|
_renderContentContainer() {
|
|
212
|
-
const { flowItems: e, hideContent: t, internalFlowItems: i, headingLevel: o, state: s, messages: a, heading:
|
|
213
|
-
return e ? d :
|
|
212
|
+
const { flowItems: e, hideContent: t, internalFlowItems: i, headingLevel: o, state: s, messages: a, heading: n, hideHeading: l } = this, d = t ? null : r`<div class="main">${[this._renderContent(), this._renderLastEditInfo()]}</div>`, h = a.returnToInitialFeature ?? "";
|
|
213
|
+
return e ? d : r`<calcite-flow ${y(this._storeRootFlowNode)}><calcite-flow-item .loading=${s === "loading"} .headingLevel=${o} .heading=${l ? void 0 : Z(n)} .selected=${!i.length}>${!l && n ? r`<div slot=heading><div .innerHTML=${A.sanitize(n ?? "") ?? ""}></div></div>` : null}${d}</calcite-flow-item>${i.toArray().map((p, u) => r`<calcite-flow-item @calciteFlowItemBack=${(f) => {
|
|
214
214
|
f.preventDefault(), this._handleDrillInBackClick();
|
|
215
215
|
}} .loading=${s === "loading"} .headingLevel=${o} .selected=${u === i.length - 1}><calcite-action icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${h} title=${h ?? _}></calcite-action>${p}</calcite-flow-item>`)}</calcite-flow>`;
|
|
216
216
|
}
|
|
@@ -218,11 +218,11 @@ class S extends F {
|
|
|
218
218
|
const { hideLastEditedInfo: e, messages: t } = this, { lastEditInfo: i } = this.viewModel;
|
|
219
219
|
if (!i || e)
|
|
220
220
|
return null;
|
|
221
|
-
const { date: o, user: s } = i, a = i.type === "edit" ? s ? t.lastEditedByUser : t.lastEdited : s ? t.lastCreatedByUser : t.lastCreated,
|
|
221
|
+
const { date: o, user: s } = i, a = i.type === "edit" ? s ? t.lastEditedByUser : t.lastEdited : s ? t.lastCreatedByUser : t.lastCreated, n = T(a ?? "", {
|
|
222
222
|
date: o,
|
|
223
223
|
user: s
|
|
224
224
|
});
|
|
225
|
-
return
|
|
225
|
+
return r`<div class=${L(M("last-edited-info", "content-element"))}>${n}</div>`;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
$("arcgis-feature", S);
|
|
@@ -1,112 +1,125 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as k } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as I, html as a } from "lit";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import _ from "@arcgis/core/rest/query/support/AttachmentInfo.js";
|
|
5
|
+
import L from "@arcgis/core/rest/support/AttachmentQuery.js";
|
|
6
|
+
import z from "@arcgis/core/core/Collection.js";
|
|
7
7
|
import b from "@arcgis/core/core/Error.js";
|
|
8
|
-
import { LitElement as
|
|
9
|
-
import {
|
|
8
|
+
import { LitElement as S, nothing as p, safeClassMap as w, safeStyleMap as v } from "@arcgis/lumina";
|
|
9
|
+
import { bypassReadOnly as P } from "@arcgis/lumina/controllers";
|
|
10
|
+
import { classes as A } from "@arcgis/toolkit/dom";
|
|
10
11
|
import { g as u } from "../../chunks/feature-utils.js";
|
|
11
|
-
import { watch as
|
|
12
|
-
function
|
|
13
|
-
const
|
|
14
|
-
return
|
|
12
|
+
import { watch as C } from "@arcgis/core/core/reactiveUtils.js";
|
|
13
|
+
function $(i) {
|
|
14
|
+
const t = i.toLowerCase();
|
|
15
|
+
return t === "image/bmp" || t === "image/emf" || t === "image/exif" || t === "image/gif" || t === "image/x-icon" || t === "image/jpeg" || t === "image/png" || t === "image/tiff" || t === "image/x-wmf";
|
|
15
16
|
}
|
|
16
|
-
function
|
|
17
|
+
function y(i) {
|
|
17
18
|
return i ? i === "text/plain" ? "file-text" : i === "application/pdf" ? "file-pdf" : i === "text/csv" ? "file-csv" : i === "application/gpx+xml" ? "file-gpx" : i === "application/x-dwf" ? "file-cad" : i === "application/postscript" || i === "application/json" || i === "text/xml" || i === "model/vrml" ? "file-code" : i === "application/x-zip-compressed" || i === "application/x-7z-compressed" || i === "application/x-gzip" || i === "application/x-tar" || i === "application/x-gtar" || i === "application/x-bzip2" || i === "application/gzip" || i === "application/x-compress" || i === "application/x-apple-diskimage" || i === "application/x-rar-compressed" || i === "application/zip" ? "file-zip" : i.includes("image/") ? "file-image" : i.includes("audio/") ? "file-sound" : i.includes("video/") ? "file-video" : i.includes("msexcel") || i.includes("ms-excel") || i.includes("spreadsheetml") ? "file-excel" : i.includes("msword") || i.includes("ms-word") || i.includes("wordprocessingml") ? "file-word" : i.includes("powerpoint") || i.includes("presentationml") ? "file-report" : "file" : "file";
|
|
18
19
|
}
|
|
19
|
-
const
|
|
20
|
-
class R extends
|
|
20
|
+
const j = I`:host([empty]){display:none}.item-link{display:flex;flex-grow:1;color:var(--calcite-color-text-3)}.item-link:visited,.item-link:hover,.item-link:focus-visible,.item-link:active{color:var(--calcite-color-text-1)}.item-link img{max-width:100%;max-height:100%;object-fit:contain}.item-link--list{align-items:center;justify-content:center;width:64px;max-height:64px;overflow:hidden;border-radius:var(--calcite-corner-radius-sm)}.item-link--list img{border-radius:var(--calcite-corner-radius-sm)}.item-link--list-icon{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.item-link--list calcite-icon{margin:var(--calcite-spacing-lg)}.item-link--preview{align-items:center;justify-content:center}.item-link--preview calcite-icon{margin-block:var(--calcite-spacing-lg)}.item-description{text-align:center;word-wrap:break-word;word-break:break-word}calcite-link{--calcite-link-text-color: var(--calcite-color-text-3);padding-inline:var(--calcite-spacing-sm);word-wrap:break-word;word-break:break-word}calcite-card{width:100%}`, E = z.ofType(_);
|
|
21
|
+
class R extends S {
|
|
21
22
|
constructor() {
|
|
22
|
-
super(...arguments), this.
|
|
23
|
+
super(...arguments), this._attachmentLayer = null, this._supportsImageOrientation = window?.CSS?.supports("image-orientation", "from-image"), this.hideSection = !1, this._attachmentInfos = new E(), this.headingLevel = 2, this.hidePreviewImageAttachmentName = !1, this.empty = !1;
|
|
23
24
|
}
|
|
24
25
|
static {
|
|
25
|
-
this.properties = { effectiveDisplayType: 16, getAttachmentsPromise: 16, hideSection: 16, supportsResizeAttachments: 16, attachmentKeywords: 0, attachmentTypes: 0, description: 1, displayType: 1, graphic: 0, heading: 1, messages: 0, orderByFields: 0, headingLevel: 9, hidePreviewImageAttachmentName: 5 };
|
|
26
|
+
this.properties = { effectiveDisplayType: 16, getAttachmentsPromise: 16, hideSection: 16, _attachmentInfos: 16, _hasContent: 16, supportsResizeAttachments: 16, attachmentKeywords: 0, attachmentTypes: 0, description: 1, displayType: 1, graphic: 0, heading: 1, messages: 0, orderByFields: 0, headingLevel: 9, hidePreviewImageAttachmentName: 5, empty: 39 };
|
|
26
27
|
}
|
|
27
28
|
static {
|
|
28
|
-
this.styles =
|
|
29
|
+
this.styles = j;
|
|
29
30
|
}
|
|
30
31
|
get _supportsTypeWildcard() {
|
|
31
|
-
const { graphic:
|
|
32
|
-
if (!
|
|
32
|
+
const { graphic: t } = this;
|
|
33
|
+
if (!t)
|
|
33
34
|
return !1;
|
|
34
|
-
const
|
|
35
|
-
return
|
|
35
|
+
const e = u(t);
|
|
36
|
+
return e?.loaded && "capabilities" in e && e.capabilities && "attachment" in e.capabilities && e.capabilities.attachment && "supportsResize" in e.capabilities.attachment && e.capabilities.attachment.supportsTypeWildcard || !1;
|
|
36
37
|
}
|
|
37
38
|
get effectiveDisplayType() {
|
|
38
|
-
const { displayType:
|
|
39
|
-
return !
|
|
39
|
+
const { displayType: t } = this;
|
|
40
|
+
return !t || t === "auto" ? this.supportsResizeAttachments ? "preview" : "list" : t;
|
|
41
|
+
}
|
|
42
|
+
get _hasContent() {
|
|
43
|
+
return this._attachmentInfos.length > 0 || !!this.graphic && this.getAttachmentsPromise !== null;
|
|
40
44
|
}
|
|
41
45
|
get supportsResizeAttachments() {
|
|
42
|
-
const { graphic:
|
|
43
|
-
if (!
|
|
46
|
+
const { graphic: t } = this;
|
|
47
|
+
if (!t)
|
|
44
48
|
return !1;
|
|
45
|
-
const
|
|
46
|
-
return
|
|
49
|
+
const e = u(t);
|
|
50
|
+
return e?.loaded && "capabilities" in e && e.capabilities && "attachment" in e.capabilities && e.capabilities.attachment && "supportsResize" in e.capabilities.attachment && e.capabilities.attachment.supportsResize || !1;
|
|
47
51
|
}
|
|
48
52
|
loaded() {
|
|
49
53
|
this.manager.onLifecycle(() => [
|
|
50
|
-
|
|
54
|
+
C(() => this.graphic, () => this.graphicChanged(), { initial: !0 })
|
|
51
55
|
]);
|
|
52
56
|
}
|
|
53
57
|
async getAttachments() {
|
|
54
|
-
const { _attachmentLayer:
|
|
55
|
-
if (!
|
|
58
|
+
const { _attachmentLayer: t, _attachmentInfos: e, orderByFields: o, attachmentTypes: m, attachmentKeywords: s, _supportsTypeWildcard: g } = this;
|
|
59
|
+
if (!t || typeof t.queryAttachments != "function")
|
|
56
60
|
throw new b("invalid-layer", "getAttachments(): A valid layer is required.");
|
|
57
|
-
const
|
|
58
|
-
if (typeof
|
|
61
|
+
const h = this.graphic?.getObjectId();
|
|
62
|
+
if (typeof h != "number")
|
|
59
63
|
throw new b("invalid-object-id", "getAttachments(): Numeric object id is required");
|
|
60
|
-
const r = o?.map((n) => `${n.field} ${n.order === "descending" ? "DESC" : "ASC"}`), f = new
|
|
61
|
-
objectIds: [
|
|
64
|
+
const r = o?.map((n) => `${n.field} ${n.order === "descending" ? "DESC" : "ASC"}`), f = new L({
|
|
65
|
+
objectIds: [h],
|
|
62
66
|
returnMetadata: !0,
|
|
63
67
|
orderByFields: r,
|
|
64
68
|
attachmentTypes: g ? m?.filter(Boolean).map((n) => `${n}/*`) : void 0,
|
|
65
69
|
keywords: s
|
|
66
|
-
}), c = [],
|
|
67
|
-
this.getAttachmentsPromise =
|
|
68
|
-
const l = await
|
|
69
|
-
|
|
70
|
+
}), c = [], d = t.queryAttachments(f).then((n) => n[h] || c).catch(() => c);
|
|
71
|
+
this.getAttachmentsPromise = d, this._setEmpty(!1);
|
|
72
|
+
const l = await d;
|
|
73
|
+
e.destroyAll(), l.length && e.addMany(l), this.getAttachmentsPromise = null, this._setEmpty(!this._hasContent);
|
|
74
|
+
}
|
|
75
|
+
_setEmpty(t) {
|
|
76
|
+
P(() => this.empty = t);
|
|
70
77
|
}
|
|
71
78
|
setAttachmentLayer() {
|
|
72
|
-
const { graphic:
|
|
73
|
-
this._attachmentLayer =
|
|
79
|
+
const { graphic: t } = this, e = u(t);
|
|
80
|
+
this._attachmentLayer = e ? e.type === "scene" && e.associatedLayer != null ? e.associatedLayer : e : null;
|
|
74
81
|
}
|
|
75
82
|
graphicChanged() {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
if (!this.graphic) {
|
|
84
|
+
this._attachmentInfos.destroyAll(), this.getAttachmentsPromise = null, this._setEmpty(!0);
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
this.setAttachmentLayer(), this.getAttachments().catch(() => {
|
|
88
|
+
this._attachmentInfos.destroyAll(), this.getAttachmentsPromise = null, this._setEmpty(!0);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
getCSSTransform(t) {
|
|
92
|
+
const { orientationInfo: e } = t;
|
|
93
|
+
return !this._supportsImageOrientation && e ? [
|
|
94
|
+
e.rotation ? `rotate(${e.rotation}deg)` : "",
|
|
95
|
+
e.mirrored ? "scaleX(-1)" : ""
|
|
83
96
|
].join(" ") : "";
|
|
84
97
|
}
|
|
85
98
|
render() {
|
|
86
|
-
return a`<div class="root"
|
|
99
|
+
return a`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this.renderAttachments()}</div>`;
|
|
87
100
|
}
|
|
88
|
-
renderAttachmentsList(
|
|
89
|
-
return a`<calcite-list .loading=${!!this.getAttachmentsPromise} .label=${this.messages?.componentLabel ?? ""} interaction-mode=static selection-mode=none>${
|
|
101
|
+
renderAttachmentsList(t) {
|
|
102
|
+
return a`<calcite-list .loading=${!!this.getAttachmentsPromise} .label=${this.messages?.componentLabel ?? ""} interaction-mode=static selection-mode=none>${t.toArray().filter(Boolean).map((e) => this.renderAttachmentListItem(e))}</calcite-list>`;
|
|
90
103
|
}
|
|
91
|
-
renderAttachmentsPreview(
|
|
92
|
-
return a`<calcite-card-group .label=${this.messages?.componentLabel ?? ""}>${this.getAttachmentsPromise ? a`<calcite-card loading></calcite-card>` :
|
|
104
|
+
renderAttachmentsPreview(t) {
|
|
105
|
+
return a`<calcite-card-group .label=${this.messages?.componentLabel ?? ""}>${this.getAttachmentsPromise ? a`<calcite-card loading></calcite-card>` : t.toArray().filter(Boolean).map((e) => this.renderAttachmentPreviewItem(e))}</calcite-card-group>`;
|
|
93
106
|
}
|
|
94
107
|
renderAttachments() {
|
|
95
|
-
const { effectiveDisplayType:
|
|
96
|
-
return
|
|
108
|
+
const { effectiveDisplayType: t, _attachmentInfos: e } = this;
|
|
109
|
+
return t === "preview" ? this.renderAttachmentsPreview(e) : this.renderAttachmentsList(e);
|
|
97
110
|
}
|
|
98
|
-
renderAttachmentListItem(
|
|
99
|
-
const { supportsResizeAttachments:
|
|
111
|
+
renderAttachmentListItem(t) {
|
|
112
|
+
const { supportsResizeAttachments: e } = this, { contentType: o, name: m, url: s, size: g } = t, h = 64, r = m || this.messages?.noTitle, f = y(o), c = this.getCSSTransform(t), d = c ? { transform: c, "image-orientation": "none" } : {}, l = e && $(o), n = a`<a class=${w(A("item-link", "item-link--list", {
|
|
100
113
|
"item-link--list-icon": !l
|
|
101
|
-
}))} slot=content-start href=${s ?? void 0 ??
|
|
102
|
-
return a`<calcite-list-item .label=${r}>${n}${
|
|
114
|
+
}))} slot=content-start href=${s ?? void 0 ?? p} rel=noreferrer target=_blank>${l ? a`<img alt=${m ?? p} src=${`${s}${s?.includes("?") ? "&" : "?"}w=${h}&s=${g}`} style=${v(d)} title=${m ?? p}>` : a`<calcite-icon .icon=${f}></calcite-icon>`}</a>`, x = a`<calcite-link slot=content .href=${s ?? void 0} rel=noreferrer target=_blank>${r}</calcite-link>`;
|
|
115
|
+
return a`<calcite-list-item .label=${r}>${n}${x}</calcite-list-item>`;
|
|
103
116
|
}
|
|
104
|
-
renderAttachmentPreviewItem(
|
|
105
|
-
const { supportsResizeAttachments:
|
|
117
|
+
renderAttachmentPreviewItem(t) {
|
|
118
|
+
const { supportsResizeAttachments: e } = this, { contentType: o, name: m, url: s, size: g } = t, h = 225, r = m || this.messages?.noTitle, f = y(o), c = this.getCSSTransform(t), d = c ? { transform: c, "image-orientation": "none" } : {}, l = e && $(o), n = a`<a class=${w(A("item-link", "item-link--preview"))} slot=thumbnail href=${s ?? void 0 ?? p} rel=noreferrer target=_blank aria-label=${r ?? p} title=${r ?? p}>${l ? a`<img alt=${r ?? p} src=${`${s}${s?.includes("?") ? "&" : "?"}w=${h}&s=${g}`} style=${v(d)}>` : a`<calcite-icon scale=l .icon=${f}></calcite-icon>`}</a>`;
|
|
106
119
|
return a`<calcite-card .label=${r}>${n}${this.hidePreviewImageAttachmentName && l ? null : a`<span class="item-description" slot=description>${r}</span>`}</calcite-card>`;
|
|
107
120
|
}
|
|
108
121
|
}
|
|
109
|
-
|
|
122
|
+
k("arcgis-feature-attachments", R);
|
|
110
123
|
export {
|
|
111
124
|
R as ArcgisFeatureAttachments
|
|
112
125
|
};
|
|
@@ -134,6 +134,13 @@ export abstract class ArcgisFeatureNext extends LitElement {
|
|
|
134
134
|
* @default false
|
|
135
135
|
*/
|
|
136
136
|
accessor hideCustomContent: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Indicates whether to hide relationship content when there are no relationship items to display.
|
|
139
|
+
*
|
|
140
|
+
* @default false
|
|
141
|
+
* @since 5.2
|
|
142
|
+
*/
|
|
143
|
+
accessor hideEmptyRelationshipContent: boolean;
|
|
137
144
|
/**
|
|
138
145
|
* Indicates whether to hide [expression content](https://developers.arcgis.com/javascript/latest/references/core/popup/content/ExpressionContent/) within the component.
|
|
139
146
|
*
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as $ } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
4
|
-
import { ref as
|
|
3
|
+
import { css as y, html as r } from "lit";
|
|
4
|
+
import { ref as w } from "lit/directives/ref.js";
|
|
5
5
|
import { u as I } from "../../chunks/useT9n.js";
|
|
6
6
|
import { classes as M } from "@arcgis/toolkit/dom";
|
|
7
|
-
import { usePropertyChange as
|
|
8
|
-
import { m as
|
|
7
|
+
import { usePropertyChange as C } from "@arcgis/lumina/controllers";
|
|
8
|
+
import { m as x } from "../../chunks/useViewModel.js";
|
|
9
9
|
import { LitElement as b, createEvent as F, nothing as _, safeClassMap as L } from "@arcgis/lumina";
|
|
10
10
|
import { substitute as T } from "@arcgis/core/intl.js";
|
|
11
11
|
import { renderingSanitizer as A } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
12
|
-
import { c as R, g as
|
|
12
|
+
import { c as R, g as E, d as D, e as V, b as d, i as k, f as B } from "../../chunks/feature-utils.js";
|
|
13
13
|
import N from "@arcgis/core/core/Collection.js";
|
|
14
14
|
import { watch as H } from "@arcgis/core/core/reactiveUtils.js";
|
|
15
15
|
import { stripHTML as P } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
16
16
|
import Z from "@arcgis/core/popup/FeatureContent.js";
|
|
17
|
-
const z =
|
|
17
|
+
const z = y`:host{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1);--calcite-color-background: var(--calcite-color-foreground-1)}.root{flex:1 1 auto}.root calcite-icon{box-sizing:content-box}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.content-element{margin-bottom:var(--calcite-spacing-lg);padding:0 var(--calcite-spacing-sm);display:flex;flex-direction:column}.content-element[empty]{display:none}.content-element:not([empty]):only-child,.content-element:not([empty]):last-child{margin-bottom:var(--calcite-spacing-xxs)}.last-edited-info{padding-top:var(--calcite-spacing-xs);font-size:var(--calcite-font-size-sm)}`, U = x(Z);
|
|
18
18
|
class S extends b {
|
|
19
19
|
constructor() {
|
|
20
|
-
super(...arguments), this.messages = I(), this._rootFlowNode = null, this.internalFlowItems = new N(), this.flowType = "feature", this.viewModel = U(this), this.view = this.viewModel.view, this.icon = "icon", this.isFeatureFromTable = this.viewModel.isFeatureFromTable, this.graphic = this.viewModel.graphic, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.headingLevel = 2, this.spatialReference = this.viewModel.spatialReference, this.timeZone = this.viewModel.timeZone, this.heading = this.viewModel.heading, this.map = this.viewModel.map, this.chartAnimationDisabled = this.viewModel.abilities.chartAnimation, this.hideHeading = !1, this.hideContent = !1, this.hideAttachmentsContent = !1, this.hideCustomContent = !1, this.hideExpressionContent = !1, this.hideFieldsContent = !1, this.hideMediaContent = !1, this.showRelationshipContent = !1, this.hideTextContent = !1, this.showUtilityNetworkContent = !1, this.hideLastEditedInfo = !1, this.autoDestroyDisabled = !1, this.location = this.viewModel.location, this.state = this.viewModel.state, this.arcgisPropertyChange =
|
|
20
|
+
super(...arguments), this.messages = I(), this._rootFlowNode = null, this.internalFlowItems = new N(), this.flowType = "feature", this.viewModel = U(this), this.view = this.viewModel.view, this.icon = "icon", this.isFeatureFromTable = this.viewModel.isFeatureFromTable, this.graphic = this.viewModel.graphic, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.headingLevel = 2, this.spatialReference = this.viewModel.spatialReference, this.timeZone = this.viewModel.timeZone, this.heading = this.viewModel.heading, this.map = this.viewModel.map, this.chartAnimationDisabled = this.viewModel.abilities.chartAnimation, this.hideHeading = !1, this.hideContent = !1, this.hideAttachmentsContent = !1, this.hideEmptyRelationshipContent = !1, this.hideCustomContent = !1, this.hideExpressionContent = !1, this.hideFieldsContent = !1, this.hideMediaContent = !1, this.showRelationshipContent = !1, this.hideTextContent = !1, this.showUtilityNetworkContent = !1, this.hideLastEditedInfo = !1, this.autoDestroyDisabled = !1, this.location = this.viewModel.location, this.state = this.viewModel.state, this.arcgisPropertyChange = C()("flowItems", "state"), this.arcgisReady = F();
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
|
-
this.properties = { popupTemplate: 16, sourceLayer: 16, fieldInfoMap: 16, values: 16, globalValues: 16, internalFlowItems: 16, flowType: 1, viewModel: 0, view: 0, flowItems: 0, referenceElement: 1, icon: 1, isFeatureFromTable: 36, graphic: 0, defaultPopupTemplateEnabled: 5, headingLevel: 9, spatialReference: 0, timeZone: 1, heading: 0, map: 0, chartAnimationDisabled: 5, hideHeading: 5, hideContent: 5, hideAttachmentsContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, showRelationshipContent: 5, hideTextContent: 5, showUtilityNetworkContent: 5, hideLastEditedInfo: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, location: 0, state: 32 };
|
|
23
|
+
this.properties = { popupTemplate: 16, sourceLayer: 16, fieldInfoMap: 16, values: 16, globalValues: 16, internalFlowItems: 16, flowType: 1, viewModel: 0, view: 0, flowItems: 0, referenceElement: 1, icon: 1, isFeatureFromTable: 36, graphic: 0, defaultPopupTemplateEnabled: 5, headingLevel: 9, spatialReference: 0, timeZone: 1, heading: 0, map: 0, chartAnimationDisabled: 5, hideHeading: 5, hideContent: 5, hideAttachmentsContent: 5, hideEmptyRelationshipContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, showRelationshipContent: 5, hideTextContent: 5, showUtilityNetworkContent: 5, hideLastEditedInfo: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, location: 0, state: 32 };
|
|
24
24
|
}
|
|
25
25
|
static {
|
|
26
26
|
this.styles = z;
|
|
@@ -29,10 +29,10 @@ class S extends b {
|
|
|
29
29
|
return R(this.graphic, this.defaultPopupTemplateEnabled) ?? void 0;
|
|
30
30
|
}
|
|
31
31
|
get sourceLayer() {
|
|
32
|
-
return
|
|
32
|
+
return E(this.graphic);
|
|
33
33
|
}
|
|
34
34
|
get fieldInfoMap() {
|
|
35
|
-
return
|
|
35
|
+
return D(V(this.popupTemplate), this.sourceLayer);
|
|
36
36
|
}
|
|
37
37
|
get values() {
|
|
38
38
|
return this.graphic?.attributes ?? {};
|
|
@@ -192,7 +192,7 @@ class S extends b {
|
|
|
192
192
|
layer: o,
|
|
193
193
|
text: e.description
|
|
194
194
|
});
|
|
195
|
-
return r`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} class="content-element" .flowItems=${this.flowItems ?? this.internalFlowItems} .description=${v} .layer=${o} .map=${this.map ?? void 0} .displayCount=${l} .graphic=${a ?? void 0} .heading=${m} .headingLevel=${this.headingLevel} .messages=${this.messages} .orderByFields=${c ?? void 0} .relationshipId=${h ?? void 0} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} use-feature-next-flow-item .values=${f} .view=${u ?? void 0}></arcgis-feature-relationship>`;
|
|
195
|
+
return r`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} class="content-element" .flowItems=${this.flowItems ?? this.internalFlowItems} .description=${v} .layer=${o} .map=${this.map ?? void 0} .displayCount=${l} .graphic=${a ?? void 0} .heading=${m} .headingLevel=${this.headingLevel} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .messages=${this.messages} .orderByFields=${c ?? void 0} .relationshipId=${h ?? void 0} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} use-feature-next-flow-item .values=${f} .view=${u ?? void 0}></arcgis-feature-relationship>`;
|
|
196
196
|
}
|
|
197
197
|
_renderAssociation(e) {
|
|
198
198
|
const { fieldInfoMap: t, globalValues: i, graphic: a, messages: s, sourceLayer: o, values: n } = this, l = d({
|
|
@@ -252,7 +252,7 @@ class S extends b {
|
|
|
252
252
|
}
|
|
253
253
|
_renderContentContainer() {
|
|
254
254
|
const { flowItems: e, hideContent: t, internalFlowItems: i, headingLevel: a, state: s, messages: o, heading: n, hideHeading: l } = this, c = t ? null : r`<div class="main">${[this._renderContent(), this._renderLastEditInfo()]}</div>`, h = o.returnToInitialFeature ?? "";
|
|
255
|
-
return e ? c : r`<calcite-flow ${
|
|
255
|
+
return e ? c : r`<calcite-flow ${w(this._storeRootFlowNode)}><calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} .loading=${s === "loading"} .headingLevel=${a} .heading=${l ? void 0 : P(n)} .selected=${!i.length}>${!l && n ? r`<div slot=heading><div .innerHTML=${A.sanitize(n ?? "") ?? ""}></div></div>` : null}${c}</calcite-flow-item>${i.toArray().map((p, u) => r`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} @calciteFlowItemBack=${(f) => {
|
|
256
256
|
f.preventDefault(), this._handleDrillInBackClick();
|
|
257
257
|
}} .loading=${s === "loading"} .headingLevel=${a} .selected=${u === i.length - 1}><calcite-action icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${h} title=${h ?? _}></calcite-action>${p}</calcite-flow-item>`)}</calcite-flow>`;
|
|
258
258
|
}
|