@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.
Files changed (70) hide show
  1. package/dist/cdn/22TB66OC.js +2 -0
  2. package/dist/cdn/{AY2PVEY5.js → 3AIQYNSA.js} +1 -1
  3. package/dist/cdn/{SSJBKHEN.js → 77NK4UBY.js} +1 -1
  4. package/dist/cdn/AJBOKAK6.js +2 -0
  5. package/dist/cdn/{2HYRTMJ6.js → AOBYM5ZK.js} +1 -1
  6. package/dist/cdn/AZ6IOGGT.js +2 -0
  7. package/dist/cdn/BOPKJR3D.js +2 -0
  8. package/dist/cdn/{K2FKS4AS.js → BZGHEINJ.js} +1 -1
  9. package/dist/cdn/{2F6NRCC5.js → DVGE5VPK.js} +1 -1
  10. package/dist/cdn/EDGLEFG3.js +2 -0
  11. package/dist/cdn/G743AW46.js +2 -0
  12. package/dist/cdn/{XZGU6TR6.js → GGKOLSCH.js} +1 -1
  13. package/dist/cdn/H7KG55LR.js +2 -0
  14. package/dist/cdn/{KZPPV365.js → JMYDF3AT.js} +1 -1
  15. package/dist/cdn/L4DWZT4V.js +2 -0
  16. package/dist/cdn/N2RLGXGJ.js +2 -0
  17. package/dist/cdn/P2JBFLSB.js +2 -0
  18. package/dist/cdn/RCQKTBVC.js +2 -0
  19. package/dist/cdn/{O6CGTOAO.js → S7JDLOX2.js} +1 -1
  20. package/dist/cdn/assets/selection-list/t9n/messages.en.json +1 -0
  21. package/dist/cdn/assets/video-player/t9n/messages.en.json +1 -1
  22. package/dist/cdn/index.js +1 -1
  23. package/dist/cdn/main.css +1 -1
  24. package/dist/chunks/esri-main.js +1 -1
  25. package/dist/chunks/slots.js +1 -1
  26. package/dist/components/arcgis-aggregated-features/customElement.js +7 -7
  27. package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +5 -6
  28. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +11 -1
  29. package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +2 -2
  30. package/dist/components/arcgis-feature/customElement.js +27 -27
  31. package/dist/components/arcgis-feature-attachments/customElement.js +73 -60
  32. package/dist/components/arcgis-feature-next/customElement.d.ts +7 -0
  33. package/dist/components/arcgis-feature-next/customElement.js +12 -12
  34. package/dist/components/arcgis-feature-relationship/customElement.js +54 -45
  35. package/dist/components/arcgis-features-next/customElement.d.ts +7 -0
  36. package/dist/components/arcgis-features-next/customElement.js +16 -16
  37. package/dist/components/arcgis-layer-list-next/customElement.d.ts +25 -9
  38. package/dist/components/arcgis-popup/customElement.d.ts +7 -0
  39. package/dist/components/arcgis-popup/customElement.js +15 -15
  40. package/dist/components/arcgis-scene/customElement.d.ts +2 -2
  41. package/dist/components/arcgis-selection-list/customElement.d.ts +421 -0
  42. package/dist/components/arcgis-selection-list/customElement.js +279 -0
  43. package/dist/components/arcgis-selection-list/index.d.ts +1 -0
  44. package/dist/components/arcgis-selection-list/index.js +16 -0
  45. package/dist/components/arcgis-selection-list/types.d.ts +85 -0
  46. package/dist/components/arcgis-utility-network-elements-result-item/customElement.js +1 -1
  47. package/dist/components/arcgis-video-player/customElement.d.ts +3 -0
  48. package/dist/components/arcgis-video-player/customElement.js +1 -1
  49. package/dist/components/arcgis-video-player-slider/customElement.js +9 -9
  50. package/dist/docs/api.json +1 -1
  51. package/dist/docs/docs.json +1 -1
  52. package/dist/docs/vscode.html-custom-data.json +1 -1
  53. package/dist/docs/web-types.json +1 -1
  54. package/dist/index.d.ts +10 -0
  55. package/dist/loader.js +8 -7
  56. package/dist/types/lumina.d.ts +10 -3
  57. package/dist/types/preact.d.ts +11 -3
  58. package/dist/types/react.d.ts +12 -3
  59. package/dist/types/stencil.d.ts +10 -3
  60. package/package.json +6 -6
  61. package/dist/cdn/2GDWXNYN.js +0 -2
  62. package/dist/cdn/A6Z7H75I.js +0 -2
  63. package/dist/cdn/CDMVB72W.js +0 -2
  64. package/dist/cdn/D5TJRWW3.js +0 -2
  65. package/dist/cdn/FY6IGGPV.js +0 -2
  66. package/dist/cdn/G7HOUS4O.js +0 -2
  67. package/dist/cdn/HF3GCBAI.js +0 -2
  68. package/dist/cdn/LKCX5SXM.js +0 -2
  69. package/dist/cdn/S3QMZKDY.js +0 -2
  70. 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
- /** @internal */
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
- /** @internal */
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 n } from "lit";
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 = n`<div class="container">${e === "error" ? this._renderError() : this._renderContentContainer()}</div>`;
77
- return n`<div class="root">${t}</div>`;
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 n`<calcite-notice icon=exclamation-mark-circle kind=danger open scale=s>${t ? null : n`<div slot=title>${e.error}</div>`}<div slot=message>${e.loadingError}</div></calcite-notice>`;
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
- }), r = c({
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 n`<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=${r} .messages=${this.messages}></arcgis-feature-attachments>`;
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 n`<arcgis-feature-content .creator=${e.creator} .destroyer=${e.destroyer ?? void 0} .graphic=${this.graphic ?? void 0} class="content-element"></arcgis-feature-content>`;
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: r, globalValues: l, graphic: d } = this, h = !!e?.fieldInfos, u = (e.fieldInfos ?? r?.fieldInfos ?? [])?.filter(({ fieldName: m }) => !!m && (B(m) || H(m) || m in o)), f = r?.expressionInfos, g = c({
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 n`<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=${{
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: r, globalValues: l } = this, { formattedAttributes: d, relatedInfos: h } = this.viewModel, p = {
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 n`<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=${r ?? void 0} .relatedInfos=${h} .formattedValues=${p}></arcgis-feature-media>`;
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 n`<arcgis-feature-content .creator=${e.text} .graphic=${this.graphic ?? void 0} class="content-element"></arcgis-feature-content>`;
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 n`<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=${{
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: r } = this, { displayCount: l, orderByFields: d, relationshipId: h } = e, { formattedAttributes: p, view: u } = this.viewModel, f = {
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: r,
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: r,
163
+ globalValues: n,
164
164
  layer: a,
165
165
  text: e.description
166
166
  });
167
- return n`<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>`;
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: r } = this, l = c({
171
- values: r,
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: r,
177
+ values: n,
178
178
  fieldInfoMap: t,
179
179
  globalValues: i,
180
180
  layer: a,
181
181
  text: e.description
182
182
  });
183
- return n`<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>`;
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" ? n`<arcgis-feature-content .creator=${e} .graphic=${t ?? void 0} class="content-element"></arcgis-feature-content>` : e instanceof HTMLElement ? e : null : null;
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: r, hideHeading: l } = this, d = t ? null : n`<div class="main">${[this._renderContent(), this._renderLastEditInfo()]}</div>`, h = a.returnToInitialFeature ?? "";
213
- return e ? d : n`<calcite-flow ${y(this._storeRootFlowNode)}><calcite-flow-item .loading=${s === "loading"} .headingLevel=${o} .heading=${l ? void 0 : Z(r)} .selected=${!i.length}>${!l && r ? n`<div slot=heading><div .innerHTML=${A.sanitize(r ?? "") ?? ""}></div></div>` : null}${d}</calcite-flow-item>${i.toArray().map((p, u) => n`<calcite-flow-item @calciteFlowItemBack=${(f) => {
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, r = T(a ?? "", {
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 n`<div class=${L(M("last-edited-info", "content-element"))}>${r}</div>`;
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 y } from "../../chunks/runtime.js";
2
+ import { c as k } from "../../chunks/runtime.js";
3
3
  import { css as I, html as a } from "lit";
4
- import L from "@arcgis/core/rest/query/support/AttachmentInfo.js";
5
- import z from "@arcgis/core/rest/support/AttachmentQuery.js";
6
- import S from "@arcgis/core/core/Collection.js";
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 P, nothing as h, safeClassMap as w, safeStyleMap as v } from "@arcgis/lumina";
9
- import { classes as $ } from "@arcgis/toolkit/dom";
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 _ } from "@arcgis/core/core/reactiveUtils.js";
12
- function A(i) {
13
- const e = i.toLowerCase();
14
- return e === "image/bmp" || e === "image/emf" || e === "image/exif" || e === "image/gif" || e === "image/x-icon" || e === "image/jpeg" || e === "image/png" || e === "image/tiff" || e === "image/x-wmf";
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 x(i) {
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 C = I`.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%}`, j = S.ofType(L);
20
- class R extends P {
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._attachmentInfos = new j(), this._attachmentLayer = null, this._supportsImageOrientation = window?.CSS?.supports("image-orientation", "from-image"), this.getAttachmentsPromise = null, this.hideSection = !1, this.headingLevel = 2, this.hidePreviewImageAttachmentName = !1;
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 = C;
29
+ this.styles = j;
29
30
  }
30
31
  get _supportsTypeWildcard() {
31
- const { graphic: e } = this;
32
- if (!e)
32
+ const { graphic: t } = this;
33
+ if (!t)
33
34
  return !1;
34
- const t = u(e);
35
- return t?.loaded && "capabilities" in t && t.capabilities && "attachment" in t.capabilities && t.capabilities.attachment && "supportsResize" in t.capabilities.attachment && t.capabilities.attachment.supportsTypeWildcard || !1;
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: e } = this;
39
- return !e || e === "auto" ? this.supportsResizeAttachments ? "preview" : "list" : e;
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: e } = this;
43
- if (!e)
46
+ const { graphic: t } = this;
47
+ if (!t)
44
48
  return !1;
45
- const t = u(e);
46
- return t?.loaded && "capabilities" in t && t.capabilities && "attachment" in t.capabilities && t.capabilities.attachment && "supportsResize" in t.capabilities.attachment && t.capabilities.attachment.supportsResize || !1;
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
- _(() => this.graphic, () => this.graphicChanged(), { initial: !0 })
54
+ C(() => this.graphic, () => this.graphicChanged(), { initial: !0 })
51
55
  ]);
52
56
  }
53
57
  async getAttachments() {
54
- const { _attachmentLayer: e, _attachmentInfos: t, orderByFields: o, attachmentTypes: m, attachmentKeywords: s, _supportsTypeWildcard: g } = this;
55
- if (!e || typeof e.queryAttachments != "function")
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 d = this.graphic?.getObjectId();
58
- if (typeof d != "number")
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 z({
61
- objectIds: [d],
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 = [], p = e.queryAttachments(f).then((n) => n[d] || c).catch(() => c);
67
- this.getAttachmentsPromise = p;
68
- const l = await p;
69
- t.destroyAll(), l.length && t.addMany(l), this.getAttachmentsPromise = null;
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: e } = this, t = u(e);
73
- this._attachmentLayer = t ? t.type === "scene" && t.associatedLayer != null ? t.associatedLayer : t : null;
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
- this.graphic && (this.setAttachmentLayer(), this.getAttachments().catch(() => this._attachmentInfos.destroyAll()));
77
- }
78
- getCSSTransform(e) {
79
- const { orientationInfo: t } = e;
80
- return !this._supportsImageOrientation && t ? [
81
- t.rotation ? `rotate(${t.rotation}deg)` : "",
82
- t.mirrored ? "scaleX(-1)" : ""
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" .hidden=${!(this.getAttachmentsPromise || this._attachmentInfos.length > 0)}><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this.renderAttachments()}</div>`;
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(e) {
89
- return a`<calcite-list .loading=${!!this.getAttachmentsPromise} .label=${this.messages?.componentLabel ?? ""} interaction-mode=static selection-mode=none>${e.toArray().filter(Boolean).map((t) => this.renderAttachmentListItem(t))}</calcite-list>`;
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(e) {
92
- return a`<calcite-card-group .label=${this.messages?.componentLabel ?? ""}>${this.getAttachmentsPromise ? a`<calcite-card loading></calcite-card>` : e.toArray().filter(Boolean).map((t) => this.renderAttachmentPreviewItem(t))}</calcite-card-group>`;
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: e, _attachmentInfos: t } = this;
96
- return e === "preview" ? this.renderAttachmentsPreview(t) : this.renderAttachmentsList(t);
108
+ const { effectiveDisplayType: t, _attachmentInfos: e } = this;
109
+ return t === "preview" ? this.renderAttachmentsPreview(e) : this.renderAttachmentsList(e);
97
110
  }
98
- renderAttachmentListItem(e) {
99
- const { supportsResizeAttachments: t } = this, { contentType: o, name: m, url: s, size: g } = e, d = 64, r = m || this.messages?.noTitle, f = x(o), c = this.getCSSTransform(e), p = c ? { transform: c, "image-orientation": "none" } : {}, l = t && A(o), n = a`<a class=${w($("item-link", "item-link--list", {
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 ?? h} rel=noreferrer target=_blank>${l ? a`<img alt=${m ?? h} src=${`${s}${s?.includes("?") ? "&" : "?"}w=${d}&s=${g}`} style=${v(p)} title=${m ?? h}>` : a`<calcite-icon .icon=${f}></calcite-icon>`}</a>`, k = a`<calcite-link slot=content .href=${s ?? void 0} rel=noreferrer target=_blank>${r}</calcite-link>`;
102
- return a`<calcite-list-item .label=${r}>${n}${k}</calcite-list-item>`;
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(e) {
105
- const { supportsResizeAttachments: t } = this, { contentType: o, name: m, url: s, size: g } = e, d = 225, r = m || this.messages?.noTitle, f = x(o), c = this.getCSSTransform(e), p = c ? { transform: c, "image-orientation": "none" } : {}, l = t && A(o), n = a`<a class=${w($("item-link", "item-link--preview"))} slot=thumbnail href=${s ?? void 0 ?? h} rel=noreferrer target=_blank aria-label=${r ?? h} title=${r ?? h}>${l ? a`<img alt=${r ?? h} src=${`${s}${s?.includes("?") ? "&" : "?"}w=${d}&s=${g}`} style=${v(p)}>` : a`<calcite-icon scale=l .icon=${f}></calcite-icon>`}</a>`;
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
- y("arcgis-feature-attachments", R);
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 w, html as r } from "lit";
4
- import { ref as y } from "lit/directives/ref.js";
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 x } from "@arcgis/lumina/controllers";
8
- import { m as C } from "../../chunks/useViewModel.js";
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 D, d as E, e as V, b as d, i as k, f as B } from "../../chunks/feature-utils.js";
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 = 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 = C(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 = x()("flowItems", "state"), this.arcgisReady = F();
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 D(this.graphic);
32
+ return E(this.graphic);
33
33
  }
34
34
  get fieldInfoMap() {
35
- return E(V(this.popupTemplate), this.sourceLayer);
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 ${y(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) => {
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
  }