@arcgis/map-components 5.2.0-next.78 → 5.2.0-next.79

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.
@@ -1,6 +1,6 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as O } from "../../chunks/runtime.js";
3
- import { css as R, html as r } from "lit";
3
+ import { css as R, html as o } from "lit";
4
4
  import { keyed as E } from "lit/directives/keyed.js";
5
5
  import H from "@arcgis/core/support/actions/ActionButton.js";
6
6
  import k from "@arcgis/core/core/Collection.js";
@@ -89,15 +89,12 @@ class ie extends z {
89
89
  async fetchFeatures(e, t) {
90
90
  this._cancelFetchingFeatures();
91
91
  const { signal: a } = t ?? {}, i = new AbortController(), { signal: s } = i, n = a ? AbortSignal.any([s, a]) : s;
92
- if (this._fetchFeaturesController = i, !e && this.view && this.location && (await K(this.location.spatialReference, this.view.spatialReference, null, {
92
+ this._fetchFeaturesController = i, !e && this.view && this.location && (await K(this.location.spatialReference, this.view.spatialReference, null, {
93
93
  signal: n
94
- }), e = this.view.toScreen(this.location) ?? void 0), !e)
95
- return;
96
- const o = await this.viewModel.fetchFeatures(e, {
94
+ }), e = this.view.toScreen(this.location) ?? void 0), e && await this.viewModel.fetchFeatures(e, {
97
95
  ...t,
98
96
  signal: n
99
97
  });
100
- this.location = o.location, this.promises = o.pendingFeatures;
101
98
  }
102
99
  next() {
103
100
  this.viewModel.next();
@@ -167,8 +164,8 @@ class ie extends z {
167
164
  if (!i)
168
165
  return;
169
166
  const s = L(i), n = Y(s) ? s : null;
170
- let o = t.get(n);
171
- o || (o = [], t.set(n, o)), o.push(a);
167
+ let r = t.get(n);
168
+ r || (r = [], t.set(n, r)), r.push(a);
172
169
  }), t;
173
170
  }
174
171
  _handleCollapseToggle() {
@@ -233,8 +230,8 @@ class ie extends z {
233
230
  this._unobserveFeatureMenuObserver(), e && this._featureMenuIntersectionObserver.observe(e), this._featureMenuIntersectionObserverNode = e;
234
231
  }
235
232
  _getActionTitle(e) {
236
- const { messages: t, selectedFeature: a } = this, { id: i } = e, s = a?.attributes, n = e.title ?? "", o = i === "zoom-to-feature" ? d(n, { messages: t }) : i === "remove-selected-feature" ? d(n, { messages: t }) : i === "zoom-to-aggregated-features" ? d(n, { messages: t }) : i === "browse-aggregated-features" ? d(n, { messages: t }) : e.title;
237
- return o && s ? d(o, s) : o ?? "";
233
+ const { messages: t, selectedFeature: a } = this, { id: i } = e, s = a?.attributes, n = e.title ?? "", r = i === "zoom-to-feature" ? d(n, { messages: t }) : i === "remove-selected-feature" ? d(n, { messages: t }) : i === "zoom-to-aggregated-features" ? d(n, { messages: t }) : i === "browse-aggregated-features" ? d(n, { messages: t }) : e.title;
234
+ return r && s ? d(r, s) : r ?? "";
238
235
  }
239
236
  _onMainKeydown(e) {
240
237
  const { key: t } = e;
@@ -300,10 +297,10 @@ class ie extends z {
300
297
  }
301
298
  _createSpinner() {
302
299
  const e = this.referenceElement;
303
- e && (this._removeSpinner(e), this._spinnerEl = U(r`<arcgis-spinner .label=${this.messages.loading ?? ""} .trackLocation=${!this.hideSpinner && this.viewModel.open && this.viewModel?.waitingForResult} .location=${this.viewModel?.location ?? void 0} .view=${this.viewModel?.view ?? void 0}></arcgis-spinner>`), e.manager?.component?.extraContent?.add(this._spinnerEl));
300
+ e && (this._removeSpinner(e), this._spinnerEl = U(o`<arcgis-spinner .label=${this.messages.loading ?? ""} .trackLocation=${!this.hideSpinner && this.viewModel.open && this.viewModel?.waitingForResult} .location=${this.viewModel?.location ?? void 0} .view=${this.viewModel?.view ?? void 0}></arcgis-spinner>`), e.manager?.component?.extraContent?.add(this._spinnerEl));
304
301
  }
305
302
  render() {
306
- return r`<div class="root" @keydown=${this._onMainKeydown}><calcite-focus-trap .focusTrapDisabled=${!this.focusTrapEnabled} ${f(this._focusTrapNode)}>${this._renderHeader()}${this._renderContentContainer()}</calcite-focus-trap></div>`;
303
+ return o`<div class="root" @keydown=${this._onMainKeydown}><calcite-focus-trap .focusTrapDisabled=${!this.focusTrapEnabled} ${f(this._focusTrapNode)}>${this._renderHeader()}${this._renderContentContainer()}</calcite-focus-trap></div>`;
307
304
  }
308
305
  _renderFeatureNavigation() {
309
306
  return [
@@ -312,121 +309,121 @@ class ie extends z {
312
309
  ];
313
310
  }
314
311
  _renderHeader() {
315
- return this.featureNavigationTop && this._featureNavigationVisible ? r`<div class="header">${this._renderFeatureNavigation()}</div>` : null;
312
+ return this.featureNavigationTop && this._featureNavigationVisible ? o`<div class="header">${this._renderFeatureNavigation()}</div>` : null;
316
313
  }
317
314
  _renderFooter() {
318
- return !this.featureNavigationTop && this._featureNavigationVisible ? r`<div class="footer" slot=footer>${this._renderFeatureNavigation()}</div>` : null;
315
+ return !this.featureNavigationTop && this._featureNavigationVisible ? o`<div class="footer" slot=footer>${this._renderFeatureNavigation()}</div>` : null;
319
316
  }
320
317
  _renderFeaturePaginationText(e, t) {
321
318
  const { messages: a } = this;
322
- return r`<div class="pagination-text">${d(a.pageText ?? "", {
319
+ return o`<div class="pagination-text">${d(a.pageText ?? "", {
323
320
  index: M(t + 1),
324
321
  total: M(e)
325
322
  })}</div>`;
326
323
  }
327
324
  _renderFeatureMenuButton() {
328
325
  const { messages: e, viewModel: t } = this, { featureCount: a, selectedFeatureIndex: i, pendingPromisesCount: s } = t;
329
- return r`<calcite-action class="pagination-menu-button" icon=list .label=${e.showAllFeatures ?? ""} .loading=${s > 0} @click=${this._handlePaginationMenuButton} .text=${d(e.pageText ?? "", {
326
+ return o`<calcite-action class="pagination-menu-button" icon=list .label=${e.showAllFeatures ?? ""} .loading=${s > 0} @click=${this._handlePaginationMenuButton} .text=${d(e.pageText ?? "", {
330
327
  index: M(i + 1),
331
328
  total: M(a)
332
329
  })} text-enabled title=${e.showAllFeatures ?? "" ?? u}></calcite-action>`;
333
330
  }
334
331
  _renderPagination(e, t) {
335
332
  const { previous: a, next: i } = this.messages;
336
- return r`<calcite-action-bar class="pagination-action-bar" expand-toggle-disabled layout=horizontal overflow-mode=none scale=s><calcite-action-group scale=s><calcite-action class="pagination-previous" icon=chevron-left icon-flip-rtl .label=${a ?? ""} @click=${e} .text=${a ?? ""} title=${a ?? "" ?? u}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${i ?? ""} @click=${t} .text=${i ?? ""} title=${i ?? "" ?? u}></calcite-action></calcite-action-group></calcite-action-bar>`;
333
+ return o`<calcite-action-bar class="pagination-action-bar" expand-toggle-disabled layout=horizontal overflow-mode=none scale=s><calcite-action-group scale=s><calcite-action class="pagination-previous" icon=chevron-left icon-flip-rtl .label=${a ?? ""} @click=${e} .text=${a ?? ""} title=${a ?? "" ?? u}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${i ?? ""} @click=${t} .text=${i ?? ""} title=${i ?? "" ?? u}></calcite-action></calcite-action-group></calcite-action-bar>`;
337
334
  }
338
335
  _renderFeatureMenuItem(e, t) {
339
336
  const { initialDisplayMode: a } = this, { selectedFeatureItem: i } = this.viewModel, s = e === i;
340
- return r`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${() => this._setActiveFeature(t)} @mouseleave=${this._removeActiveFeature} @mouseover=${() => this._setActiveFeature(t)} .selected=${s} @calciteListItemSelect=${() => this._selectFeature(t)}><span .innerHTML=${($.sanitize(e.heading) || this.messages.untitled) ?? ""} slot=content></span>${a === "list" ? r`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>` : null}</calcite-list-item>`;
337
+ return o`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${() => this._setActiveFeature(t)} @mouseleave=${this._removeActiveFeature} @mouseover=${() => this._setActiveFeature(t)} .selected=${s} @calciteListItemSelect=${() => this._selectFeature(t)}><span .innerHTML=${($.sanitize(e.heading) || this.messages.untitled) ?? ""} slot=content></span>${a === "list" ? o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>` : null}</calcite-list-item>`;
341
338
  }
342
339
  _renderFeatureMenu() {
343
340
  const { messages: e, viewModel: t } = this, a = this._groupResultsByLayer(), i = /* @__PURE__ */ new Map();
344
- t.featureItems.forEach((n, o) => i.set(n, o));
341
+ t.featureItems.forEach((n, r) => i.set(n, r));
345
342
  const s = this.initialDisplayMode === "list" ? "none" : "single";
346
- return t.featureItems.length ? r`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${s}>${Array.from(a.keys(), (n) => {
347
- const o = a.get(n)?.map((c) => {
343
+ return t.featureItems.length ? o`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${s}>${Array.from(a.keys(), (n) => {
344
+ const r = a.get(n)?.map((c) => {
348
345
  const g = i.get(c);
349
346
  return g == null ? null : this._renderFeatureMenuItem(c, g);
350
347
  }), l = n ? n.title ?? this.messages.untitled : null;
351
- return !this.hideFeatureListLayerTitle && l !== null ? E(n ?? "map-graphics", r`<calcite-list-item-group .heading=${l}>${o}</calcite-list-item-group>`) : o;
348
+ return !this.hideFeatureListLayerTitle && l !== null ? E(n ?? "map-graphics", o`<calcite-list-item-group .heading=${l}>${r}</calcite-list-item-group>`) : r;
352
349
  })}</calcite-list>` : null;
353
350
  }
354
351
  _renderHeaderAction(e) {
355
352
  const t = e.title || "";
356
- return e.visible ? r`<calcite-action .active=${e.type === "toggle" ? e.value : !1} .disabled=${e.disabled} .icon=${e.icon ?? void 0} .indicator=${e.active} .loading=${e.active} @click=${() => this._triggerAction(e)} slot=header-actions-end .text=${t} title=${t ?? u}></calcite-action>` : null;
353
+ return e.visible ? o`<calcite-action .active=${e.type === "toggle" ? e.value : !1} .disabled=${e.disabled} .icon=${e.icon ?? void 0} .indicator=${e.active} .loading=${e.active} @click=${() => this._triggerAction(e)} slot=header-actions-end .text=${t} title=${t ?? u}></calcite-action>` : null;
357
354
  }
358
355
  _renderHeaderActions() {
359
356
  return this.headerActions.map((e) => this._renderHeaderAction(e)).toArray();
360
357
  }
361
358
  _renderContentFeature(e) {
362
- const { headingLevel: t, hideCloseButton: a, _isCollapsed: i, _collapseEnabled: s, featureNavigationTop: n, initialDisplayMode: o, selectedFeature: l, hideHeading: c } = this, { active: g, selectedFeatureItem: m, content: _ } = this.viewModel, p = this._getHeading();
363
- if (o === "list" && !l)
359
+ const { headingLevel: t, hideCloseButton: a, _isCollapsed: i, _collapseEnabled: s, featureNavigationTop: n, initialDisplayMode: r, selectedFeature: l, hideHeading: c } = this, { active: g, selectedFeatureItem: m, content: _ } = this.viewModel, p = this._getHeading();
360
+ if (r === "list" && !l)
364
361
  return null;
365
362
  const w = m ? !m.content : !_;
366
- return r`<calcite-flow-item class=${x(T({
363
+ return o`<calcite-flow-item class=${x(T({
367
364
  "content-feature": !0,
368
365
  "flow-item-collapsed": i
369
- }))} .closable=${!a} .closed=${!g} .collapsed=${i} .collapseDirection=${this.collapseDirection ?? (n ? "down" : "up")} .collapsible=${s} .headingLevel=${t} .selected=${e} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${!c && p ? y(p) : void 0} ${f(this._rootFlowItemNode)}>${!c && p ? r`<div slot=heading><div .innerHTML=${$.sanitize(p ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${x(T("container", "content-container", {
366
+ }))} .closable=${!a} .closed=${!g} .collapsed=${i} .collapseDirection=${this.collapseDirection ?? (n ? "down" : "up")} .collapsible=${s} .headingLevel=${t} .selected=${e} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${!c && p ? y(p) : void 0} ${f(this._rootFlowItemNode)}>${!c && p ? o`<div slot=heading><div .innerHTML=${$.sanitize(p ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${x(T("container", "content-container", {
370
367
  "content-hidden": w
371
368
  }))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
372
369
  }
373
370
  _renderFeatureMenuContainer() {
374
- const { viewModel: e, hideCloseButton: t, featureMenuTitle: a, messages: i, initialDisplayMode: s, featureMenuOpen: n, _featureFlowItemSelected: o, _collapseEnabled: l, _isCollapsed: c, featureNavigationTop: g, headingLevel: m } = this, { active: _, featureItems: p, pendingPromisesCount: w } = e, A = a ?? i.selectFeature, C = d(i.backLabel ?? "", {
371
+ const { viewModel: e, hideCloseButton: t, featureMenuTitle: a, messages: i, initialDisplayMode: s, featureMenuOpen: n, _featureFlowItemSelected: r, _collapseEnabled: l, _isCollapsed: c, featureNavigationTop: g, headingLevel: m } = this, { active: _, featureItems: p, pendingPromisesCount: w } = e, A = a ?? i.selectFeature, C = d(i.backLabel ?? "", {
375
372
  title: this._selectedFeatureHeadingText
376
373
  });
377
374
  if (s === "feature" && !n)
378
375
  return null;
379
- const b = !o;
380
- return r`<calcite-flow-item class=${x(T({
376
+ const b = !r;
377
+ return o`<calcite-flow-item class=${x(T({
381
378
  "flow-item-collapsed": c
382
379
  }))} .closable=${s === "list" && !t} .closed=${!_} .collapsed=${s === "list" && c} .collapseDirection=${this.collapseDirection ?? (g ? "down" : "up")} .collapsible=${s === "list" && l} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand, back: C }} .description=${this.hideFeatureMenuHeading ? void 0 : d(i.total ?? "", {
383
380
  total: p.length
384
381
  })} .heading=${this.hideFeatureMenuHeading ? void 0 : A} .headingLevel=${m} .loading=${e.waitingForContents} .selected=${b} @calciteFlowItemBack=${(B) => {
385
382
  B.preventDefault(), this._handleFeatureMenuBack();
386
- }} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${f(this._featureMenuViewportNode)}>${s === "list" ? this._renderHeaderActions() : null}${w > 0 ? r`<calcite-loader class="loader" inline .label=${i.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}<div class="container">${b ? this._renderFeatureMenu() : null}</div><div class="feature-menu-observer" ${f(this._featureMenuIntersectionObserverCreated)}></div>${s === "feature" ? r`<calcite-button scale=s appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full .label=${C} title=${C ?? u}>${i.back}</calcite-button>` : null}</calcite-flow-item>`;
383
+ }} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${f(this._featureMenuViewportNode)}>${s === "list" ? this._renderHeaderActions() : null}${w > 0 ? o`<calcite-loader class="loader" inline .label=${i.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}<div class="container">${b ? this._renderFeatureMenu() : null}</div><div class="feature-menu-observer" ${f(this._featureMenuIntersectionObserverCreated)}></div>${s === "feature" ? o`<calcite-button scale=s appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full .label=${C} title=${C ?? u}>${i.back}</calcite-button>` : null}</calcite-flow-item>`;
387
384
  }
388
385
  _renderFlowItem(e, t) {
389
- const { messages: a, hideCloseButton: i, hideSelectFeature: s, active: n, hideHeading: o } = this, l = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable, c = l && !s, g = e.flowType === "feature-association", m = a.returnToInitialFeature ?? "", _ = a?.selectFeature, p = this._getActionTitle(this._zoomToFeature), w = d(a.zoomLabel ?? "", {
386
+ const { messages: a, hideCloseButton: i, hideSelectFeature: s, active: n, hideHeading: r } = this, l = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable, c = l && !s, g = e.flowType === "feature-association", m = a.returnToInitialFeature ?? "", _ = a?.selectFeature, p = this._getActionTitle(this._zoomToFeature), w = d(a.zoomLabel ?? "", {
390
387
  messages: a,
391
388
  title: this._selectedFeatureHeadingText
392
- }), A = !this.hideActionBar && g && l, C = e.flowType === "feature" && this.viewModel.aggregatedFeaturesEnabled ? r`<div class="footer" slot=footer>${this._renderPagination(() => {
389
+ }), A = !this.hideActionBar && g && l, C = e.flowType === "feature" && this.viewModel.aggregatedFeaturesEnabled ? o`<div class="footer" slot=footer>${this._renderPagination(() => {
393
390
  this._aggregatedFeaturesComponent.value?.previous();
394
391
  }, () => {
395
392
  this._aggregatedFeaturesComponent.value?.next();
396
393
  })}${this._renderFeaturePaginationText(this._aggregatedFeatureCount, this._selectedAggregatedFeatureIndex)}</div>` : null;
397
- return r`<calcite-flow-item .closable=${!i} .closed=${!n} class="flow-item-drill-in" .description=${y(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${o ? void 0 : y(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(b) => {
394
+ return o`<calcite-flow-item .closable=${!i} .closed=${!n} class="flow-item-drill-in" .description=${y(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${r ? void 0 : y(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(b) => {
398
395
  b.preventDefault(), this._handleDrillInBackClick();
399
- }} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${o ? null : r`<div slot=heading><div .innerHTML=${$.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${$.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${m ?? ""} title=${m ?? "" ?? u}></calcite-action>${c ? r`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${_ ?? ""} title=${_ ?? u}></calcite-action>` : null}${A ? r`<calcite-action-bar expand-toggle-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${this._zoomToFeature.disabled} .icon=${this._zoomToFeature.icon ?? void 0} .loading=${this._zoomToFeature.active} scale=s text-enabled .text=${p} title=${w ?? u} .label=${w} @click=${() => q(this.viewModel, this._zoomToFeature, e)}></calcite-action></calcite-action-group></calcite-action-bar>` : null}<div class="container">${e}</div>${C}</calcite-flow-item>`;
396
+ }} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${r ? null : o`<div slot=heading><div .innerHTML=${$.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${$.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${m ?? ""} title=${m ?? "" ?? u}></calcite-action>${c ? o`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${_ ?? ""} title=${_ ?? u}></calcite-action>` : null}${A ? o`<calcite-action-bar expand-toggle-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${this._zoomToFeature.disabled} .icon=${this._zoomToFeature.icon ?? void 0} .loading=${this._zoomToFeature.active} scale=s text-enabled .text=${p} title=${w ?? u} .label=${w} @click=${() => q(this.viewModel, this._zoomToFeature, e)}></calcite-action></calcite-action-group></calcite-action-bar>` : null}<div class="container">${e}</div>${C}</calcite-flow-item>`;
400
397
  }
401
398
  _renderContentContainer() {
402
- const e = this.flowItems?.toArray(), t = e.length > 0, a = this.viewModel.aggregatedFeaturesEnabled && this.viewModel.selectedFeature?.isAggregate && !t, i = a && e.length === 0, s = e.length === 0 && this._featureFlowItemSelected && !a, n = e?.map((c, g) => this._renderFlowItem(c, this._featureFlowItemSelected && g === e.length - 1)), o = this._renderBrowseAggregateContainer(!!i), l = this.initialDisplayMode === "list" ? [this._renderFeatureMenuContainer(), this._renderContentFeature(s)] : [this._renderContentFeature(s), this._renderFeatureMenuContainer()];
403
- return r`<calcite-flow ${f(this._flowContainerNode)}>${l}${o}${n}</calcite-flow>`;
399
+ const e = this.flowItems?.toArray(), t = e.length > 0, a = this.viewModel.aggregatedFeaturesEnabled && this.viewModel.selectedFeature?.isAggregate && !t, i = a && e.length === 0, s = e.length === 0 && this._featureFlowItemSelected && !a, n = e?.map((c, g) => this._renderFlowItem(c, this._featureFlowItemSelected && g === e.length - 1)), r = this._renderBrowseAggregateContainer(!!i), l = this.initialDisplayMode === "list" ? [this._renderFeatureMenuContainer(), this._renderContentFeature(s)] : [this._renderContentFeature(s), this._renderFeatureMenuContainer()];
400
+ return o`<calcite-flow ${f(this._flowContainerNode)}>${l}${r}${n}</calcite-flow>`;
404
401
  }
405
402
  _renderBrowseAggregateContainer(e) {
406
- const { hideCloseButton: t, active: a, messages: i } = this, { selectedFeature: s } = this.viewModel, n = this.viewModel.aggregatedFeaturesEnabled && s?.isAggregate, o = d(i.backLabel ?? "", {
403
+ const { hideCloseButton: t, active: a, messages: i } = this, { selectedFeature: s } = this.viewModel, n = this.viewModel.aggregatedFeaturesEnabled && s?.isAggregate, r = d(i.backLabel ?? "", {
407
404
  title: this._selectedFeatureHeadingText
408
405
  });
409
- return n ? r`<calcite-flow-item .selected=${e} .closable=${!t} .closed=${!a} .description=${this._aggregatedFeatureCount ? d(i.total ?? "", {
406
+ return n ? o`<calcite-flow-item .selected=${e} .closable=${!t} .closed=${!a} .description=${this._aggregatedFeatureCount ? d(i.total ?? "", {
410
407
  total: this._aggregatedFeatureCount
411
408
  }) : ""} .heading=${i.aggregatedFeatures} @calciteFlowItemBack=${(l) => {
412
409
  l.preventDefault(), this.viewModel.aggregatedFeaturesEnabled = !1;
413
410
  }} .messageOverrides=${{
414
- back: o
415
- }} .loading=${this._aggregatedFeaturesLoading} @calciteFlowItemClose=${this._handleClose}><arcgis-aggregated-features .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .feature=${s ?? void 0} .flowItems=${this.flowItems} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map ?? void 0} .messageOverrides=${this.messageOverrides} .messages=${i} @arcgisPropertyChange=${this._handleAggregatedFeaturesPropertyChange} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .view=${this.view ?? void 0} ${f(this._aggregatedFeaturesComponent)}></arcgis-aggregated-features><calcite-button appearance=transparent @click=${() => this.viewModel.aggregatedFeaturesEnabled = !1} slot=footer-start scale=s width=full .label=${o} title=${o ?? u}>${i.back}</calcite-button></calcite-flow-item>` : null;
411
+ back: r
412
+ }} .loading=${this._aggregatedFeaturesLoading} @calciteFlowItemClose=${this._handleClose}><arcgis-aggregated-features .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .feature=${s ?? void 0} .flowItems=${this.flowItems} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map ?? void 0} .messageOverrides=${this.messageOverrides} .messages=${i} @arcgisPropertyChange=${this._handleAggregatedFeaturesPropertyChange} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .view=${this.view ?? void 0} ${f(this._aggregatedFeaturesComponent)}></arcgis-aggregated-features><calcite-button appearance=transparent @click=${() => this.viewModel.aggregatedFeaturesEnabled = !1} slot=footer-start scale=s width=full .label=${r} title=${r ?? u}>${i.back}</calcite-button></calcite-flow-item>` : null;
416
413
  }
417
414
  _renderActionBar() {
418
415
  const e = this.viewModel.selectedFeatureItem?.isFeatureFromTable, t = this.viewModel.allActions.toArray(), a = e && !this.location ? t.filter((n) => n.id !== this._zoomToFeature.id) : t, i = !!a.length || this._hasActionsStartSlotContent || this._hasActionsEndSlotContent, s = this._isCollapsed || this.hideActionBar || !i;
419
- return r`<calcite-action-bar expand-toggle-disabled .expanded=${!this._hideActionText} scale=s slot=${(s ? void 0 : "action-bar") ?? u} .hidden=${s}><slot name=actions-start @slotchange=${this._handleActionsStartSlotChange}></slot><calcite-action-group overlay-positioning=fixed scale=s ${f(this._actionBarMenuNode)}>${this._renderActions(a)}</calcite-action-group><slot name=actions-end @slotchange=${this._handleActionsEndSlotChange}></slot></calcite-action-bar>`;
416
+ return o`<calcite-action-bar expand-toggle-disabled .expanded=${!this._hideActionText} scale=s slot=${(s ? void 0 : "action-bar") ?? u} .hidden=${s}><slot name=actions-start @slotchange=${this._handleActionsStartSlotChange}></slot><calcite-action-group overlay-positioning=fixed scale=s ${f(this._actionBarMenuNode)}>${this._renderActions(a)}</calcite-action-group><slot name=actions-end @slotchange=${this._handleActionsEndSlotChange}></slot></calcite-action-bar>`;
420
417
  }
421
418
  _renderActions(e) {
422
419
  return e.map((t) => {
423
420
  const a = this._getActionTitle(t);
424
- return r`<calcite-action .active=${t.type === "toggle" ? t.value : !1} .disabled=${t.disabled} .icon=${t.icon ?? void 0} .loading=${t.active} scale=s .textEnabled=${!this._hideActionText} .text=${a ?? ""} title=${a ?? u} .hidden=${!t.visible} @click=${() => this._triggerAction(t)}></calcite-action>`;
421
+ return o`<calcite-action .active=${t.type === "toggle" ? t.value : !1} .disabled=${t.disabled} .icon=${t.icon ?? void 0} .loading=${t.active} scale=s .textEnabled=${!this._hideActionText} .text=${a ?? ""} title=${a ?? u} .hidden=${!t.visible} @click=${() => this._triggerAction(t)}></calcite-action>`;
425
422
  });
426
423
  }
427
424
  _renderContent() {
428
425
  const { content: e, selectedFeatureItem: t } = this.viewModel;
429
- return t ? r`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${f(this._selectedFeatureComponent)}></arcgis-feature-next>` : typeof e == "string" ? E(e, r`<div .innerHTML=${$.sanitize(e) ?? ""}></div>`) : e ?? null;
426
+ return t ? o`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${f(this._selectedFeatureComponent)}></arcgis-feature-next>` : typeof e == "string" ? E(e, o`<div .innerHTML=${$.sanitize(e) ?? ""}></div>`) : e ?? null;
430
427
  }
431
428
  }
432
429
  O("arcgis-features-next", ie);
@@ -22,6 +22,9 @@ export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
22
22
  /** A potential source of load errors. */
23
23
  export type LoadErrorSource = Basemap | Ground | Layer | WebLinkChart | WebMap | WebScene;
24
24
 
25
+ /** A supported ArcGIS view used by map components. */
26
+ export type ArcGISView = LinkChartView | MapView | SceneView;
27
+
25
28
  /**
26
29
  * @param view
27
30
  * @param goToParameters
@@ -32,8 +35,6 @@ export type GoToOwner = Pick<LinkChartView, "goTo">
32
35
  & Pick<MapView, "goTo">
33
36
  & Pick<SceneView, "goTo">;
34
37
 
35
- export type ArcGISView = LinkChartView | MapView | SceneView;
36
-
37
38
  export type GoToParameters = GoToParameters2D
38
39
  & GoToParameters3D;
39
40