@arcgis/map-components 5.2.0-next.155 → 5.2.0-next.156

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 (53) hide show
  1. package/dist/cdn/5QPPN5GG.js +2 -0
  2. package/dist/cdn/6JYHS4C3.js +2 -0
  3. package/dist/cdn/74SNPIFY.js +2 -0
  4. package/dist/cdn/AHR2EGDU.js +2 -0
  5. package/dist/cdn/DV5RJXB4.js +2 -0
  6. package/dist/cdn/F6BKCG5R.js +2 -0
  7. package/dist/cdn/GUY54PVD.js +2 -0
  8. package/dist/cdn/{VE63QFIL.js → HGMLU4M2.js} +1 -1
  9. package/dist/cdn/{LBWATU26.js → N2BLQYTT.js} +1 -1
  10. package/dist/cdn/PT7IKQT5.js +2 -0
  11. package/dist/cdn/QTTIUOSW.js +2 -0
  12. package/dist/cdn/{RKTSSP3O.js → TD5NCGK6.js} +1 -1
  13. package/dist/cdn/V6RSLRWE.js +2 -0
  14. package/dist/cdn/{WXJN23WI.js → Y5LZUAMK.js} +1 -1
  15. package/dist/cdn/YYBNA7EL.js +2 -0
  16. package/dist/cdn/index.js +1 -1
  17. package/dist/chunks/loader-utils.js +41 -0
  18. package/dist/chunks/useArcgisViewReadyError.js +53 -50
  19. package/dist/components/arcgis-feature-next/customElement.js +21 -14
  20. package/dist/components/arcgis-feature-table/customElement.d.ts +58 -39
  21. package/dist/components/arcgis-features-next/customElement.js +137 -116
  22. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +5 -5
  23. package/dist/components/arcgis-sketch/customElement.js +146 -178
  24. package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +2 -4
  25. package/dist/components/arcgis-time-bar/customElement.js +108 -105
  26. package/dist/components/arcgis-time-bar-date/customElement.js +10 -10
  27. package/dist/components/arcgis-time-bar-extent/customElement.js +9 -9
  28. package/dist/components/arcgis-time-bar-slider/customElement.js +27 -33
  29. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +4 -3
  30. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +60 -67
  31. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +26 -3
  32. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +53 -50
  33. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +1 -2
  34. package/dist/docs/api.json +1 -1
  35. package/dist/docs/docs.json +1 -1
  36. package/dist/docs/vscode.html-custom-data.json +1 -1
  37. package/dist/docs/web-types.json +1 -1
  38. package/dist/loader.js +1 -1
  39. package/dist/types/lumina.d.ts +2 -1
  40. package/dist/types/preact.d.ts +2 -1
  41. package/dist/types/react.d.ts +2 -1
  42. package/dist/types/stencil.d.ts +2 -1
  43. package/package.json +6 -6
  44. package/dist/cdn/2AQYGR7K.js +0 -2
  45. package/dist/cdn/357GV4BC.js +0 -2
  46. package/dist/cdn/5OE4PEME.js +0 -2
  47. package/dist/cdn/ENZAFG6F.js +0 -2
  48. package/dist/cdn/I3KUEZ7I.js +0 -2
  49. package/dist/cdn/M7LDGJG6.js +0 -2
  50. package/dist/cdn/RZNCVTKT.js +0 -2
  51. package/dist/cdn/TZ6WQV6O.js +0 -2
  52. package/dist/cdn/TZXSRFN5.js +0 -2
  53. package/dist/cdn/ZFHHY72B.js +0 -2
@@ -1,19 +1,19 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { html as C } from "lit";
2
+ import { html as S } from "lit";
3
3
  import { initializeProjection as R } from "@arcgis/core/applications/Components/featureUtils.js";
4
4
  import { signal as O } from "@arcgis/core/applications/Components/reactiveUtils.js";
5
5
  import { watch as u, when as A } from "@arcgis/core/core/reactiveUtils.js";
6
- import P from "@arcgis/core/geometry/Point.js";
6
+ import v from "@arcgis/core/geometry/Point.js";
7
7
  import F from "@arcgis/core/Graphic.js";
8
- import { GenericController as L, useDirection as G, makeController as M, makeGenericController as _ } from "@arcgis/lumina/controllers";
9
- import { getSlotAssignedElements as D } from "@arcgis/toolkit/dom/slots";
8
+ import { GenericController as L, useDirection as G, makeController as D, makeGenericController as _ } from "@arcgis/lumina/controllers";
9
+ import { getSlotAssignedElements as M } from "@arcgis/toolkit/dom/slots";
10
10
  import { whenOrAbort as y } from "@arcgis/toolkit/promise";
11
11
  import { createRef as V } from "lit/directives/ref.js";
12
12
  import { c as k, S as x } from "./slots.js";
13
13
  import { i as T, t as H } from "./async-utils.js";
14
- import { observeAncestorsMutation as j, unsafeGetCalciteModeName as q } from "@arcgis/toolkit/dom";
15
- import { createEvent as S } from "@arcgis/lumina";
16
- async function* U(n, t) {
14
+ import { observeAncestorsMutation as j, unsafeGetCalciteModeName as U } from "@arcgis/toolkit/dom";
15
+ import { createEvent as C } from "@arcgis/lumina";
16
+ async function* q(n, t) {
17
17
  for (const e of n) {
18
18
  const i = await y(e, t).catch(() => {
19
19
  });
@@ -22,7 +22,7 @@ async function* U(n, t) {
22
22
  yield* Array.isArray(i) ? i.filter((o) => o instanceof F) : [];
23
23
  }
24
24
  }
25
- async function* v() {
25
+ async function* P() {
26
26
  yield* [];
27
27
  }
28
28
  async function* K(n, t) {
@@ -31,17 +31,17 @@ async function* K(n, t) {
31
31
  }
32
32
  async function N(n, t, e, i) {
33
33
  let o;
34
- if (e instanceof P ? (await R(e.spatialReference, n.spatialReference), H(i.signal), o = n.toScreen(e)) : o = e, !o)
35
- return v();
36
- const r = Promise.withResolvers(), a = n.fetchPopupFeatures(o, {
34
+ if (e instanceof v ? (await R(e.spatialReference, n.spatialReference), H(i.signal), o = n.toScreen(e)) : o = e, !o)
35
+ return P();
36
+ const p = Promise.withResolvers(), a = n.fetchPopupFeatures(o, {
37
37
  ...i,
38
38
  defaultPopupTemplateEnabled: t.defaultPopupTemplateEnabled,
39
- hitTestResolver: r
40
- }) ?? v();
41
- return await r.promise, a;
39
+ hitTestResolver: p
40
+ }) ?? P();
41
+ return await p.promise, a;
42
42
  }
43
43
  function d(n, t) {
44
- if (t instanceof P)
44
+ if (t instanceof v)
45
45
  return t;
46
46
  const e = "width" in t ? { x: t.x + t.width / 2, y: t.y + t.height / 2 } : t;
47
47
  return n.toMap(e) ?? void 0;
@@ -57,7 +57,7 @@ async function $(n, t, e, i) {
57
57
  location: d(n, e)
58
58
  };
59
59
  }
60
- class re extends L {
60
+ class pe extends L {
61
61
  //#endregion
62
62
  //#region Lifecycle
63
63
  constructor(t) {
@@ -90,13 +90,13 @@ class re extends L {
90
90
  A(() => this.component.view.ready, () => {
91
91
  this._assignDefaultPopup();
92
92
  }),
93
- u(() => this.component.view.popup?.visible, (o, r) => {
94
- (o || r) && this._cancelPopupOperation(), o && this.popupElement?.open && (this.popupElement.open = !1);
93
+ u(() => this.component.view.popup?.visible, (o, p) => {
94
+ (o || p) && this._cancelPopupOperation(), o && this.popupElement?.open && (this.popupElement.open = !1);
95
95
  }, { initial: !0 }),
96
96
  u(
97
97
  () => this.component.popupElement?.open,
98
- (o, r) => {
99
- r && !o && this._cancelPopupOperation();
98
+ (o, p) => {
99
+ p && !o && this._cancelPopupOperation();
100
100
  },
101
101
  // Using sync to preemptively prevent a close notification from canceling a replacement operation.
102
102
  { initial: !0, sync: !0 }
@@ -106,8 +106,8 @@ class re extends L {
106
106
  "click",
107
107
  [],
108
108
  (o) => {
109
- const r = o.native;
110
- o.button !== 0 || r?.ctrlKey || r?.metaKey || this._handleOpenPopup(o).catch(() => {
109
+ const p = o.native;
110
+ o.button !== 0 || p?.ctrlKey || p?.metaKey || this._handleOpenPopup(o).catch(() => {
111
111
  });
112
112
  },
113
113
  // @ts-ignore: Core supports a click listener priority argument, needed for Popup click
@@ -121,6 +121,9 @@ class re extends L {
121
121
  }
122
122
  ];
123
123
  }
124
+ hostUpdated() {
125
+ this.component.popupComponentEnabled ? this._assignDefaultPopup() : (this.popupElement === this._defaultPopupElement && (this._cancelPopupOperation(), this._maybeResetViewPopup(), this.popupElement = void 0), this._defaultPopupElement = void 0);
126
+ }
124
127
  hostDestroy() {
125
128
  this._cancelPopupOperation();
126
129
  }
@@ -128,37 +131,37 @@ class re extends L {
128
131
  this._assignDefaultPopup();
129
132
  const e = this.popupElement, i = t.location ?? e?.location, o = !!e && !t.featureStream && !t.promises?.length && !!t.fetchFeatures && !!i;
130
133
  this._cancelPopupOperation();
131
- const r = new AbortController();
132
- if (this._popupAbortController = r, e) {
133
- const { fetchFeatures: a, shouldFocus: h, title: l, featureStream: E, promises: b, location: c, ...g } = t, m = c ? d(this.component.view, c) : void 0, w = c ?? i, p = o && w ? $(this.component.view, e, w, r.signal) : null, f = p ? Promise.withResolvers() : null;
134
- p && f && (p.catch(() => {
135
- }), e.featureStream = K(f.promise, r.signal));
134
+ const p = new AbortController();
135
+ if (this._popupAbortController = p, e) {
136
+ const { fetchFeatures: a, shouldFocus: h, title: l, featureStream: E, promises: b, location: c, ...w } = t, m = c ? d(this.component.view, c) : void 0, g = c ?? i, r = o && g ? $(this.component.view, e, g, p.signal) : null, f = r ? Promise.withResolvers() : null;
137
+ r && f && (r.catch(() => {
138
+ }), e.featureStream = K(f.promise, p.signal));
136
139
  try {
137
140
  await e.componentOnReady();
138
141
  } catch (s) {
139
- throw p && this._isCurrentPopupOperation(r) && (r.abort(), e.open = !1, await e.clear()), s;
142
+ throw r && this._isCurrentPopupOperation(p) && (p.abort(), e.open = !1, await e.clear()), s;
140
143
  }
141
- if (!this._isCurrentPopupOperation(r))
144
+ if (!this._isCurrentPopupOperation(p))
142
145
  return;
143
- if (p)
146
+ if (r)
144
147
  try {
145
- const s = await p;
146
- if (!this._isCurrentPopupOperation(r))
148
+ const s = await r;
149
+ if (!this._isCurrentPopupOperation(p))
147
150
  return;
148
- Object.assign(e, g), l !== void 0 && (e.heading = l), await e.openFeatureStream(s);
151
+ Object.assign(e, w), l !== void 0 && (e.heading = l), await e.openFeatureStream(s);
149
152
  } catch (s) {
150
153
  if (!T(s))
151
- throw this._isCurrentPopupOperation(r) && (e.open = !1, await e.clear()), s;
154
+ throw this._isCurrentPopupOperation(p) && (e.open = !1, await e.clear()), s;
152
155
  return;
153
156
  } finally {
154
157
  f?.resolve();
155
158
  }
156
159
  else
157
- Object.assign(e, g), l !== void 0 && (e.heading = l), E ? await e.openFeatureStream({ featureStream: E, location: m }) : b?.length ? await e.openFeatureStream({
158
- featureStream: U(b, r.signal),
160
+ Object.assign(e, w), l !== void 0 && (e.heading = l), E ? await e.openFeatureStream({ featureStream: E, location: m }) : b?.length ? await e.openFeatureStream({
161
+ featureStream: q(b, p.signal),
159
162
  location: m
160
163
  }) : (e.featureStream = null, c !== void 0 && (e.location = m), e.open = !0);
161
- h && this._isCurrentPopupOperation(r) && await e.setFocus();
164
+ h && this._isCurrentPopupOperation(p) && await e.setFocus();
162
165
  } else {
163
166
  const { location: a, ...h } = t;
164
167
  await this.component.view.openPopup({
@@ -177,7 +180,7 @@ class re extends L {
177
180
  return this._popupAbortController === t && !t.signal.aborted;
178
181
  }
179
182
  _assignDefaultPopup() {
180
- this.popupRef.value && !this.popupElement && (this._defaultPopupElement = this.popupRef.value, this.popupElement = this.popupRef.value, this.popupElement.referenceElement = this.component.el, this.popupElement.view = this.component.view);
183
+ this.component.popupComponentEnabled && this.popupRef.value && !this.popupElement && (this._defaultPopupElement = this.popupRef.value, this.popupElement = this.popupRef.value, this.popupElement.referenceElement = this.component.el, this.popupElement.view = this.component.view);
181
184
  }
182
185
  handleAttributionHeightChange(t) {
183
186
  if (!(this.attributionHeight === t || !this.component.el.shadowRoot)) {
@@ -215,11 +218,11 @@ class re extends L {
215
218
  });
216
219
  }
217
220
  _handlePopupSlotChange(t) {
218
- const e = D(t.target, "arcgis-popup");
219
- !this.popupElement && e.length ? this.popupElement = e[0] : e.length || (this.popupElement = void 0);
221
+ const e = M(t.target, "arcgis-popup")[0];
222
+ e ? this.popupElement = e : this.popupElement !== this._defaultPopupElement && (this.popupElement = void 0, this._assignDefaultPopup());
220
223
  }
221
224
  _webGLErrorAlert() {
222
- return this.webGLError ? C`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>` : null;
225
+ return this.webGLError ? S`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>` : null;
223
226
  }
224
227
  //#endregion
225
228
  //#region Rendering
@@ -227,12 +230,12 @@ class re extends L {
227
230
  return x({ direction: this.direction, popupComponentEnabled: this.component.popupComponentEnabled, slotGroupRefs: this.slotGroupRefs, handlePopupSlotChange: (t) => this._handlePopupSlotChange(t), webGLErrorElement: this._webGLErrorAlert(), popupElement: this.popupRef });
228
231
  }
229
232
  }
230
- function pe(n) {
231
- M((t, e) => {
233
+ function re(n) {
234
+ D((t, e) => {
232
235
  const i = () => {
233
236
  if (n.attributionMode !== "auto")
234
237
  return;
235
- const o = q(n.el);
238
+ const o = U(n.el);
236
239
  n.view.attributionMode !== o && (n.view.attributionMode = o);
237
240
  };
238
241
  e.onLifecycle(() => (i(), j(n.el, ["class"], i))), e.onUpdate((o) => {
@@ -241,7 +244,7 @@ function pe(n) {
241
244
  });
242
245
  }
243
246
  const se = _((n, t) => {
244
- const e = S();
247
+ const e = C();
245
248
  return t.onLifecycle(
246
249
  () => u(
247
250
  () => {
@@ -249,8 +252,8 @@ const se = _((n, t) => {
249
252
  if (!i || i.destroyed)
250
253
  return [];
251
254
  const o = [];
252
- return i.loadError && o.push(i), i.basemap?.loadError && o.push(i.basemap), i.ground.loadError && o.push(i.ground), [...i.allLayers, ...i.allTables].forEach((r) => {
253
- r.loadError && o.push(r);
255
+ return i.loadError && o.push(i), i.basemap?.loadError && o.push(i.basemap), i.ground.loadError && o.push(i.ground), [...i.allLayers, ...i.allTables].forEach((p) => {
256
+ p.loadError && o.push(p);
254
257
  }), o;
255
258
  },
256
259
  (i) => {
@@ -260,7 +263,7 @@ const se = _((n, t) => {
260
263
  ), e;
261
264
  }), ae = _(
262
265
  (n, t) => {
263
- const e = S();
266
+ const e = C();
264
267
  return t.onLifecycle(
265
268
  () => u(
266
269
  () => n.view?.readyState,
@@ -272,8 +275,8 @@ const se = _((n, t) => {
272
275
  }
273
276
  );
274
277
  export {
275
- re as U,
278
+ pe as U,
276
279
  ae as a,
277
- pe as b,
280
+ re as b,
278
281
  se as u
279
282
  };
@@ -6,24 +6,25 @@ import { u as I } from "../../chunks/useT9n.js";
6
6
  import { classes as M } from "@arcgis/toolkit/dom";
7
7
  import { usePropertyChange as C } from "@arcgis/lumina/controllers";
8
8
  import { m as x } from "../../chunks/useViewModel.js";
9
- import { LitElement as b, createEvent as F, nothing as _, safeClassMap as A } from "@arcgis/lumina";
10
- import { substitute as L } from "@arcgis/core/intl.js";
9
+ import { LitElement as b, createEvent as F, nothing as _, safeClassMap as L } from "@arcgis/lumina";
10
+ import { substitute as A } from "@arcgis/core/intl.js";
11
11
  import { renderingSanitizer as T } from "@arcgis/core/applications/Components/sanitizerUtils.js";
12
12
  import { c as D, g as E, d as R, 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 P } from "@arcgis/core/core/reactiveUtils.js";
15
15
  import { stripHTML as H } from "@arcgis/core/applications/Components/stringUtils.js";
16
16
  import Z from "@arcgis/core/popup/FeatureModel.js";
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
- class O extends b {
17
+ import { c as z } from "../../chunks/loader-utils.js";
18
+ const U = 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)}`, O = x(Z);
19
+ class G extends b {
19
20
  constructor() {
20
- super(...arguments), this.messages = I(), this._rootFlowNode = null, this.internalFlowItems = new N(), this.flowType = "feature", this.viewModel = U(this), this.actions = this.viewModel.actions, this.includeDefaultActions = this.viewModel.includeDefaultActions, this.focusTrapEnabled = !1, 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
+ super(...arguments), this.messages = I(), this._rootFlowNode = null, this._loading = !1, this.internalFlowItems = new N(), this.flowType = "feature", this.viewModel = O(this), this.actions = this.viewModel.actions, this.includeDefaultActions = this.viewModel.includeDefaultActions, this.focusTrapEnabled = !1, 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
22
  }
22
23
  static {
23
- this.properties = { popupTemplate: 16, sourceLayer: 16, fieldInfoMap: 16, values: 16, globalValues: 16, internalFlowItems: 16, flowType: 1, viewModel: 0, actions: 0, includeDefaultActions: 5, focusTrapEnabled: 5, view: 0, flowItems: 0, referenceElement: 1, icon: 1, isFeatureFromTable: 36, graphic: 0, allActions: 32, 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
+ this.properties = { _loading: 16, popupTemplate: 16, sourceLayer: 16, fieldInfoMap: 16, values: 16, globalValues: 16, internalFlowItems: 16, flowType: 1, viewModel: 0, actions: 0, includeDefaultActions: 5, focusTrapEnabled: 5, view: 0, flowItems: 0, referenceElement: 1, icon: 1, isFeatureFromTable: 36, graphic: 0, allActions: 32, 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
25
  }
25
26
  static {
26
- this.styles = z;
27
+ this.styles = U;
27
28
  }
28
29
  get popupTemplate() {
29
30
  return D(this.graphic, this.defaultPopupTemplateEnabled) ?? void 0;
@@ -67,6 +68,12 @@ class O extends b {
67
68
  }
68
69
  loaded() {
69
70
  this.manager.onLifecycle(() => [
71
+ z({
72
+ getLoading: () => !this.flowItems && this.state === "loading",
73
+ setEffectiveLoading: (e) => {
74
+ this._loading = e;
75
+ }
76
+ }),
70
77
  P(() => [this.internalFlowItems?.length], () => this._setFocus())
71
78
  ]);
72
79
  }
@@ -254,23 +261,23 @@ class O extends b {
254
261
  return e instanceof HTMLElement ? e : null;
255
262
  }
256
263
  _renderContentContainer() {
257
- 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 ?? "";
258
- return e ? c : r`<calcite-flow ${w(this._storeRootFlowNode)}><calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} .loading=${s === "loading"} .headingLevel=${a} .heading=${l ? void 0 : H(n)} .selected=${!i.length}>${!l && n ? r`<div slot=heading><div .innerHTML=${T.sanitize(n ?? "") ?? ""}></div></div>` : null}${c}</calcite-flow-item>${i.toArray().map((p, u) => r`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} @calciteFlowItemBack=${(f) => {
264
+ const { flowItems: e, hideContent: t, internalFlowItems: i, headingLevel: a, _loading: s, messages: o, heading: n, hideHeading: l } = this, c = t ? null : r`<div class="main">${[this._renderContent(), this._renderLastEditInfo()]}</div>`, h = o.returnToInitialFeature ?? "";
265
+ return e ? c : r`<calcite-flow ${w(this._storeRootFlowNode)}><calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} .loading=${s} .headingLevel=${a} .heading=${l ? void 0 : H(n)} .selected=${!i.length}>${!l && n ? r`<div slot=heading><div .innerHTML=${T.sanitize(n ?? "") ?? ""}></div></div>` : null}${c}</calcite-flow-item>${i.toArray().map((p, u) => r`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} @calciteFlowItemBack=${(f) => {
259
266
  f.preventDefault(), this._handleDrillInBackClick();
260
- }} .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>`;
267
+ }} .loading=${s} .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>`;
261
268
  }
262
269
  _renderLastEditInfo() {
263
270
  const { hideLastEditedInfo: e, messages: t } = this, { lastEditInfo: i } = this.viewModel;
264
271
  if (!i || e)
265
272
  return null;
266
- const { date: a, user: s } = i, o = i.type === "edit" ? s ? t.lastEditedByUser : t.lastEdited : s ? t.lastCreatedByUser : t.lastCreated, n = L(o ?? "", {
273
+ const { date: a, user: s } = i, o = i.type === "edit" ? s ? t.lastEditedByUser : t.lastEdited : s ? t.lastCreatedByUser : t.lastCreated, n = A(o ?? "", {
267
274
  date: a,
268
275
  user: s
269
276
  });
270
- return r`<div class=${A(M("last-edited-info", "content-element"))}>${n}</div>`;
277
+ return r`<div class=${L(M("last-edited-info", "content-element"))}>${n}</div>`;
271
278
  }
272
279
  }
273
- $("arcgis-feature-next", O);
280
+ $("arcgis-feature-next", G);
274
281
  export {
275
- O as ArcgisFeatureNext
282
+ G as ArcgisFeatureNext
276
283
  };