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

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 (57) hide show
  1. package/dist/cdn/4FN75DFQ.js +2 -0
  2. package/dist/cdn/{VJIYYZW3.js → D4HG2OIN.js} +1 -1
  3. package/dist/cdn/FOZXZGEZ.js +2 -0
  4. package/dist/cdn/HTL73ZTA.js +2 -0
  5. package/dist/cdn/HZVC4F3N.js +2 -0
  6. package/dist/cdn/OBHCFXFW.js +2 -0
  7. package/dist/cdn/S55YL3HD.js +2 -0
  8. package/dist/cdn/{VQG7S23K.js → SLPJAJDI.js} +1 -1
  9. package/dist/cdn/UFUUA7WI.js +2 -0
  10. package/dist/cdn/VGMTHIUW.js +2 -0
  11. package/dist/cdn/{YJYUG3DP.js → YUJMRIVW.js} +1 -1
  12. package/dist/cdn/assets/features-next/t9n/messages.en.json +1 -1
  13. package/dist/cdn/assets/utility-network-trace-functions-result-item/t9n/messages.en.json +1 -0
  14. package/dist/cdn/index.js +1 -1
  15. package/dist/cdn/main.css +1 -1
  16. package/dist/chunks/layer-list-item.js +35 -24
  17. package/dist/chunks/layer-list-next.js +1 -1
  18. package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +18 -21
  19. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +12 -12
  20. package/dist/components/arcgis-basemap-layer-list-next/index.js +2 -2
  21. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +19 -14
  22. package/dist/components/arcgis-catalog-layer-list-next/customElement.js +26 -26
  23. package/dist/components/arcgis-catalog-layer-list-next/index.js +1 -1
  24. package/dist/components/arcgis-feature-attachments/customElement.js +13 -13
  25. package/dist/components/arcgis-features-next/customElement.d.ts +9 -0
  26. package/dist/components/arcgis-features-next/customElement.js +126 -108
  27. package/dist/components/arcgis-layer-list-item-panel/customElement.js +5 -5
  28. package/dist/components/arcgis-layer-list-next/customElement.d.ts +9 -9
  29. package/dist/components/arcgis-layer-list-next/customElement.js +12 -12
  30. package/dist/components/arcgis-layer-list-next/types.d.ts +4 -4
  31. package/dist/components/arcgis-table-list-next/customElement.d.ts +17 -13
  32. package/dist/components/arcgis-table-list-next/customElement.js +11 -11
  33. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +30 -0
  34. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +34 -0
  35. package/dist/components/arcgis-utility-network-trace-functions-result-item/index.d.ts +1 -0
  36. package/dist/components/arcgis-utility-network-trace-functions-result-item/index.js +4 -0
  37. package/dist/components/arcgis-utility-network-trace-results-next/customElement.js +51 -58
  38. package/dist/components/arcgis-utility-network-trace-results-next/index.js +1 -3
  39. package/dist/docs/api.json +1 -1
  40. package/dist/docs/docs.json +1 -1
  41. package/dist/docs/vscode.html-custom-data.json +1 -1
  42. package/dist/docs/web-types.json +1 -1
  43. package/dist/index.d.ts +4 -0
  44. package/dist/loader.js +2 -1
  45. package/dist/types/lumina.d.ts +6 -1
  46. package/dist/types/preact.d.ts +7 -1
  47. package/dist/types/react.d.ts +8 -1
  48. package/dist/types/stencil.d.ts +6 -1
  49. package/dist/utils/layer-list-utils.d.ts +6 -6
  50. package/package.json +4 -4
  51. package/dist/cdn/D6Z3MYCF.js +0 -2
  52. package/dist/cdn/GVCVI2FM.js +0 -2
  53. package/dist/cdn/H5BVJ264.js +0 -2
  54. package/dist/cdn/R5ZY52DF.js +0 -2
  55. package/dist/cdn/RIZHD5EC.js +0 -2
  56. package/dist/cdn/TKTHZ2GE.js +0 -2
  57. package/dist/cdn/ZWAOPC3F.js +0 -2
@@ -1,10 +1,10 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import type ListItem from "@arcgis/core/widgets/LayerList/ListItem.js";
3
2
  import type Collection from "@arcgis/core/core/Collection.js";
4
- import type TableListListItem from "@arcgis/core/widgets/TableList/ListItem.js";
3
+ import type Item from "@arcgis/core/layers/list/Item.js";
4
+ import type TableItem from "@arcgis/core/layers/list/TableItem.js";
5
5
  import type { VisibilityAppearance } from "../../utils/action-utils.js";
6
6
  import type { CanSortFunction, TableSupportedLayers } from "../../utils/layer-list-utils.js";
7
- import type { LayerListViewModelEvents } from "@arcgis/core/widgets/LayerList/LayerListViewModel.js";
7
+ import type { LayerItemCollectionEvents } from "@arcgis/core/layers/list/LayerItemCollection.js";
8
8
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
9
9
  import type { ArcgisTableListNext } from "../arcgis-table-list-next/customElement.js";
10
10
  import type { ArcgisReferenceElement, HeadingLevel, IconName } from "../types.js";
@@ -12,7 +12,7 @@ import type { CatalogLayerListParams, FlowLayer, TableListParams } from "./types
12
12
  import type { ArcgisCatalogLayerListNext } from "../arcgis-catalog-layer-list-next/customElement.js";
13
13
  import type { T9nMeta } from "@arcgis/lumina/controllers";
14
14
  import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
15
- import type { ListItemModifier, State } from "@arcgis/core/widgets/LayerList/types.js";
15
+ import type { ItemModifier, State } from "@arcgis/core/layers/list/types.js";
16
16
  import type { List as List } from "@esri/calcite-components/components/calcite-list";
17
17
 
18
18
  /**
@@ -171,7 +171,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
171
171
  * layerListElement.filterPredicate = (item) => item.title.toLowerCase().includes("streets");
172
172
  * ```
173
173
  */
174
- accessor filterPredicate: ((item: ListItem | TableListListItem) => boolean) | undefined;
174
+ accessor filterPredicate: ((item: Item | TableItem) => boolean) | undefined;
175
175
  /**
176
176
  * The value of the filter input if [showFilter](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#showFilter) is true.
177
177
  *
@@ -329,7 +329,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
329
329
  * }
330
330
  * ```
331
331
  */
332
- accessor listItemCreatedFunction: ListItemModifier | null | undefined;
332
+ accessor listItemCreatedFunction: ItemModifier | null | undefined;
333
333
  /**
334
334
  * Specifies whether to ignore the [listMode](https://developers.arcgis.com/javascript/latest/references/core/layers/Layer/#listMode) property to display all layers. A common use case for `listModeDisabled` is when you want to use the component to manage and configure a layer's `listMode` value.
335
335
  *
@@ -465,7 +465,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
465
465
  */
466
466
  get openedLayers(): Collection<FlowLayer>;
467
467
  /** A collection of [ListItem](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/ListItem/)s representing the operational layers in the layer list. */
468
- get operationalItems(): Collection<ListItem>;
468
+ get operationalItems(): Collection<Item>;
469
469
  /**
470
470
  * By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.
471
471
  *
@@ -478,7 +478,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
478
478
  *
479
479
  * @see [selectionMode](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#selectionMode)
480
480
  */
481
- accessor selectedItems: Collection<ListItem>;
481
+ accessor selectedItems: Collection<Item>;
482
482
  /**
483
483
  * Specifies the selection mode.
484
484
  * Selected items are available in the [selectedItems](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#selectedItems) property.
@@ -610,7 +610,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
610
610
  /** Emits when selected items state changes. */
611
611
  readonly arcgisSelectedItemsChange: import("@arcgis/lumina").TargetedEvent<this, void>;
612
612
  /** Emitted when an action is triggered on the component. */
613
- readonly arcgisTriggerAction: import("@arcgis/lumina").TargetedEvent<this, LayerListViewModelEvents["trigger-action"]>;
613
+ readonly arcgisTriggerAction: import("@arcgis/lumina").TargetedEvent<this, LayerItemCollectionEvents["trigger-action"]>;
614
614
  readonly "@eventTypes": {
615
615
  arcgisClose: ArcgisLayerListNext["arcgisClose"]["detail"];
616
616
  arcgisFilterChange: ArcgisLayerListNext["arcgisFilterChange"]["detail"];
@@ -3,7 +3,7 @@ import { c as R } from "../../chunks/runtime.js";
3
3
  import { html as h } from "lit";
4
4
  import { keyed as v } from "lit/directives/keyed.js";
5
5
  import { repeat as N } from "lit/directives/repeat.js";
6
- import x from "@arcgis/core/widgets/LayerList/LayerListViewModel.js";
6
+ import x from "@arcgis/core/layers/list/LayerItemCollection.js";
7
7
  import { classes as B } from "@arcgis/toolkit/dom";
8
8
  import { generateGuid as k } from "@arcgis/toolkit/string";
9
9
  import { createRef as w, ref as b } from "lit/directives/ref.js";
@@ -11,10 +11,10 @@ import { u as S } from "../../chunks/useT9n.js";
11
11
  import { m as U } from "../../chunks/useViewModel.js";
12
12
  import { g as $ } from "../../chunks/globalCss.js";
13
13
  import { c as y } from "../../chunks/css.js";
14
- import { g as m, a as T, m as G, b as H, r as V, s as j, c as q, d as z, e as J } from "../../chunks/layer-list-utils.js";
14
+ import { g as m, a as F, m as G, b as H, r as V, s as j, c as q, d as z, e as J } from "../../chunks/layer-list-utils.js";
15
15
  import p from "@arcgis/core/core/Collection.js";
16
16
  import { on as C, watch as K } from "@arcgis/core/core/reactiveUtils.js";
17
- import { LitElement as Q, createEvent as L, renderElement as F, safeClassMap as E, nothing as A } from "@arcgis/lumina";
17
+ import { LitElement as Q, createEvent as I, renderElement as M, safeClassMap as E, nothing as A } from "@arcgis/lumina";
18
18
  import { usePropertyChange as W } from "@arcgis/lumina/controllers";
19
19
  import { reEmitEvent as X } from "@arcgis/lumina/controllers/accessor";
20
20
  import "@arcgis/toolkit/function";
@@ -29,12 +29,12 @@ class ae extends Q {
29
29
  const i = a === "pull" ? this.listItemCanGiveFunction : this.listItemCanReceiveFunction, r = m(e, this.operationalItems);
30
30
  if (!r?.sortable)
31
31
  return !1;
32
- const o = this._resolveListContainer(t), l = this._resolveListContainer(s), n = this._getContainerItem(o), d = T(o), g = this._getContainerItem(l), u = T(l), I = !!d && !!u && d === u, f = {
32
+ const o = this._resolveListContainer(t), l = this._resolveListContainer(s), n = this._getContainerItem(o), d = F(o), g = this._getContainerItem(l), u = F(l), L = !!d && !!u && d === u, f = {
33
33
  selected: r,
34
34
  from: n,
35
35
  to: g
36
- }, _ = o?.group, c = l?.group, D = n?.layer?.type ?? "", P = g?.layer?.type ?? "", M = /* @__PURE__ */ new Set(["map-image", "catalog", "knowledge-graph"]);
37
- return _ && c && typeof i == "function" ? i(f) : I && !M.has(D) && !M.has(P) && r?.layer?.type !== "sublayer";
36
+ }, _ = o?.group, c = l?.group, D = n?.layer?.type ?? "", P = g?.layer?.type ?? "", T = /* @__PURE__ */ new Set(["map-image", "catalog", "knowledge-graph"]);
37
+ return _ && c && typeof i == "function" ? i(f) : L && !T.has(D) && !T.has(P) && r?.layer?.type !== "sublayer";
38
38
  }, this._onCatalogOpen = (e) => {
39
39
  this.openedLayers.push(e.layer?.parent);
40
40
  }, this._onTablesOpen = (e) => {
@@ -54,7 +54,7 @@ class ae extends Q {
54
54
  this._selectedDragItemLayerUid = e;
55
55
  }, this._onTriggerAction = (e, t) => {
56
56
  this.triggerAction(e, t);
57
- }, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.layerTablesEnabled = new p(["knowledge-graph"]), this.mapImageOptions = null, this.openedLayerLists = new p(), this.tileOptions = null, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.closed = !1, this.icon = "layers", this.collapsed = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.layerTablesAvailable = new p(["knowledge-graph"]), this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.listModeDisabled = this.viewModel.listModeDisabled, this.minDragEnabledItems = G, this.minFilterItems = H, this.openedLayers = new p(), this.operationalItems = this.viewModel.operationalItems, this.selectedItems = new p(), this.selectionMode = "none", this.visibilityAppearance = "default", this.hideCatalogLayerList = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.showFilter = !1, this.showHeading = !1, this.hideStatusIndicators = !1, this.showTemporaryLayerIndicators = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = W()("state"), this.arcgisReady = L(), this.arcgisFilterChange = L(), this.arcgisSelectedItemsChange = L(), this.arcgisOpenedLayersChange = L(), this.arcgisTriggerAction = X(() => this.viewModel, "trigger-action");
57
+ }, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.layerTablesEnabled = new p(["knowledge-graph"]), this.mapImageOptions = null, this.openedLayerLists = new p(), this.tileOptions = null, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.closed = !1, this.icon = "layers", this.collapsed = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.layerTablesAvailable = new p(["knowledge-graph"]), this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.listModeDisabled = this.viewModel.listModeDisabled, this.minDragEnabledItems = G, this.minFilterItems = H, this.openedLayers = new p(), this.operationalItems = this.viewModel.operationalItems, this.selectedItems = new p(), this.selectionMode = "none", this.visibilityAppearance = "default", this.hideCatalogLayerList = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.showFilter = !1, this.showHeading = !1, this.hideStatusIndicators = !1, this.showTemporaryLayerIndicators = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = W()("state"), this.arcgisReady = I(), this.arcgisFilterChange = I(), this.arcgisSelectedItemsChange = I(), this.arcgisOpenedLayersChange = I(), this.arcgisTriggerAction = X(() => this.viewModel, "trigger-action");
58
58
  }
59
59
  static {
60
60
  this.properties = { _catalogLayerList: 16, _tableList: 16, _tooltipReferenceMap: 16, _layerListMap: 16, _totalItems: 16, _visibleItems: 16, _openedPanelItems: 16, _dragEnabled: 16, _filterEnabled: 16, layerTablesEnabled: 16, mapImageOptions: 16, openedLayerLists: 16, tileOptions: 16, _renderedOpenLayerFlowItems: 16, view: 0, autoDestroyDisabled: 5, closed: 5, referenceElement: 1, icon: 1, catalogLayerList: 32, catalogOptions: 0, collapsed: 5, dragEnabled: 5, filterPlaceholder: 1, filterPredicate: 0, filterText: 1, headingLevel: 9, knowledgeGraphOptions: 0, layerTablesAvailable: 0, listItemCanGiveFunction: 0, listItemCanReceiveFunction: 0, listItemCreatedFunction: 0, listModeDisabled: 5, minDragEnabledItems: 9, minFilterItems: 9, openedLayers: 32, operationalItems: 0, selectedItems: 0, selectionMode: 1, tableList: 32, visibilityAppearance: 1, hideCatalogLayerList: 5, showCloseButton: 5, showCollapseButton: 5, showErrors: 5, hideNoFilterResultsNotice: 5, hideNoItemsNotice: 5, showFilter: 5, showHeading: 5, hideStatusIndicators: 5, showTemporaryLayerIndicators: 5, messageOverrides: 0, label: 1, state: 32 };
@@ -154,7 +154,7 @@ class ae extends Q {
154
154
  }
155
155
  async _createCatalogLayerList(e) {
156
156
  const { headingLevel: t, catalogOptions: s, filterPlaceholder: a, listItemCreatedFunction: i, minFilterItems: r, selectionMode: o, visibilityAppearance: l } = this;
157
- return F(h`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? a} .listItemCreatedFunction=${s?.listItemCreatedFunction ?? i} .minFilterItems=${s?.minFilterItems ?? r} .selectionMode=${s?.selectionMode ?? o} .visibilityAppearance=${s?.visibilityAppearance ?? l} .showErrors=${s?.visibleElements?.errors ?? this.showErrors} .showFilter=${s?.visibleElements?.filter ?? this.showFilter} .hideStatusIndicators=${s?.visibleElements?.statusIndicators ?? this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.visibleElements?.temporaryLayerIndicators ?? this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${(n) => n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`);
157
+ return M(h`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? a} .listItemCreatedFunction=${s?.listItemCreatedFunction ?? i} .minFilterItems=${s?.minFilterItems ?? r} .selectionMode=${s?.selectionMode ?? o} .visibilityAppearance=${s?.visibilityAppearance ?? l} .showErrors=${s?.showErrors ?? this.showErrors} .showFilter=${s?.showFilter ?? this.showFilter} .hideStatusIndicators=${s?.hideStatusIndicators ?? this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.showTemporaryLayerIndicators ?? this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${(n) => n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`);
158
158
  }
159
159
  _getTableListParams(e) {
160
160
  switch (e.type) {
@@ -176,14 +176,14 @@ class ae extends Q {
176
176
  }
177
177
  async _createTableList(e) {
178
178
  const { headingLevel: t, selectionMode: s, dragEnabled: a } = this, i = this._getTableListParams(e);
179
- return F(h`<arcgis-table-list-next .headingLevel=${i?.headingLevel ?? t} .selectionMode=${i?.selectionMode ?? s} .dragEnabled=${i?.dragEnabled ?? a} .collapsed=${i?.collapsed} .filterPlaceholder=${i?.filterPlaceholder} .filterText=${i?.filterText} .icon=${i?.icon ?? void 0} .label=${i?.label ?? void 0} .listItemCreatedFunction=${i?.listItemCreatedFunction} .messageOverrides=${this.messageOverrides} .tables=${i?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${(r) => r.stopPropagation()}></arcgis-table-list-next>`);
179
+ return M(h`<arcgis-table-list-next .headingLevel=${i?.headingLevel ?? t} .selectionMode=${i?.selectionMode ?? s} .dragEnabled=${i?.dragEnabled ?? a} .collapsed=${i?.collapsed} .filterPlaceholder=${i?.filterPlaceholder} .filterText=${i?.filterText} .icon=${i?.icon ?? void 0} .label=${i?.label ?? void 0} .listItemCreatedFunction=${i?.listItemCreatedFunction} .messageOverrides=${this.messageOverrides} .tables=${i?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${(r) => r.stopPropagation()}></arcgis-table-list-next>`);
180
180
  }
181
181
  _handlePanelFlowItemBack(e) {
182
182
  e.open = !1;
183
183
  }
184
184
  _moveLayerFromChildList({ toEl: e, fromEl: t, dragEl: s, newIndex: a }) {
185
185
  const i = this._resolveListContainer(e), r = this._resolveListContainer(t), o = m(s, this.operationalItems), l = this._getContainerItem(i), n = this._getContainerItem(r);
186
- a == null || !o || (this.viewModel.moveListItem(o, n, l, a), Z(this, o.uid, (d) => this._resolveListContainer(d.parentElement) === i));
186
+ a == null || !o || (this.viewModel.moveItem(o, n, l, a), Z(this, o.uid, (d) => this._resolveListContainer(d.parentElement) === i));
187
187
  }
188
188
  _onCalciteListDragEnd(e) {
189
189
  const { fromEl: t, toEl: s, dragEl: a, oldIndex: i } = e;
@@ -273,8 +273,8 @@ class ae extends Q {
273
273
  });
274
274
  }
275
275
  _renderItems() {
276
- const { collapsed: e, _visibleItems: t, _openedPanelItems: s, _filterEnabled: a, _rootGroupUid: i, showCloseButton: r, showCollapseButton: o, showHeading: l, _dragEnabled: n, selectionMode: d, filterText: g, openedLayers: u, filterPlaceholder: I, messages: f } = this, _ = [
277
- h`<calcite-flow-item .closable=${r} .closed=${this.closed} .collapsed=${e} .collapsible=${o} .heading=${l ? f.componentLabel : void 0} .headingLevel=${this.headingLevel} .selected=${!u.length && !s.length} @calciteFlowItemClose=${() => this.closed = !1}>${t?.length ? h`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${(c) => this._canMove(c, "pull")} .canPut=${(c) => this._canMove(c, "put")} data-layer-type=${i ?? A} .displayMode=${O} .dragEnabled=${n} .filterEnabled=${a} .filterPlaceholder=${I} .filterProps=${J} .filterText=${a ? g : ""} .group=${i} .label=${f.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${d} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${(c) => {
276
+ const { collapsed: e, _visibleItems: t, _openedPanelItems: s, _filterEnabled: a, _rootGroupUid: i, showCloseButton: r, showCollapseButton: o, showHeading: l, _dragEnabled: n, selectionMode: d, filterText: g, openedLayers: u, filterPlaceholder: L, messages: f } = this, _ = [
277
+ h`<calcite-flow-item .closable=${r} .closed=${this.closed} .collapsed=${e} .collapsible=${o} .heading=${l ? f.componentLabel : void 0} .headingLevel=${this.headingLevel} .selected=${!u.length && !s.length} @calciteFlowItemClose=${() => this.closed = !1}>${t?.length ? h`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${(c) => this._canMove(c, "pull")} .canPut=${(c) => this._canMove(c, "put")} data-layer-type=${i ?? A} .displayMode=${O} .dragEnabled=${n} .filterEnabled=${a} .filterPlaceholder=${L} .filterProps=${J} .filterText=${a ? g : ""} .group=${i} .label=${f.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${d} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${(c) => {
278
278
  this.filterText = c.currentTarget?.filterText ?? "", this.arcgisFilterChange.emit();
279
279
  }} @calciteListOrderChange=${(c) => this._onCalciteListOrderChange(c.detail)} @calciteListDragEnd=${(c) => this._onCalciteListDragEnd(c.detail)} ${b(this._rootListRef)}>${t.toArray().map((c) => this._renderItem(c))}${a && !this.hideNoFilterResultsNotice ? h`<div class=${E(y.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>` : null}</calcite-list>` : this._renderNoItems()}</calcite-flow-item>`,
280
280
  this._renderPanelFlowItems(),
@@ -2,14 +2,14 @@ import type CatalogLayer from "@arcgis/core/layers/CatalogLayer.js";
2
2
  import type KnowledgeGraphLayer from "@arcgis/core/layers/KnowledgeGraphLayer.js";
3
3
  import type MapImageLayer from "@arcgis/core/layers/MapImageLayer.js";
4
4
  import type TileLayer from "@arcgis/core/layers/TileLayer.js";
5
- import type { CatalogLayerListProperties } from "@arcgis/core/widgets/CatalogLayerList.js";
6
- import type { TableListProperties } from "@arcgis/core/widgets/TableList.js";
5
+ import type { CatalogLayerListOptions } from "../arcgis-catalog-layer-list-next/customElement.js";
6
+ import type { TableListOptions } from "../arcgis-table-list-next/customElement.js";
7
7
 
8
8
  /** Catalog layer list configuration passed through Layer List (next). */
9
- export type CatalogLayerListParams = CatalogLayerListProperties;
9
+ export type CatalogLayerListParams = CatalogLayerListOptions;
10
10
 
11
11
  /** Table list configuration passed through Layer List (next). */
12
- export type TableListParams = TableListProperties;
12
+ export type TableListParams = TableListOptions;
13
13
 
14
14
  /** Layer types that can open a nested flow list from Layer List (next). */
15
15
  export type FlowLayer = CatalogLayer | SubtablesLayer;
@@ -4,19 +4,23 @@ import type Layer from "@arcgis/core/layers/Layer.js";
4
4
  import type LinkChartView from "@arcgis/core/views/LinkChartView.js";
5
5
  import type MapView from "@arcgis/core/views/MapView.js";
6
6
  import type SceneView from "@arcgis/core/views/SceneView.js";
7
- import type TableListViewModel from "@arcgis/core/widgets/TableList/TableListViewModel.js";
8
- import type TableListListItem from "@arcgis/core/widgets/TableList/ListItem.js";
7
+ import type TableItemCollection from "@arcgis/core/layers/list/TableItemCollection.js";
8
+ import type TableItem from "@arcgis/core/layers/list/TableItem.js";
9
9
  import type WebMap from "@arcgis/core/WebMap.js";
10
10
  import type WebScene from "@arcgis/core/WebScene.js";
11
11
  import type Sublayer from "@arcgis/core/layers/support/Sublayer.js";
12
- import type { TableListViewModelEvents } from "@arcgis/core/widgets/TableList/TableListViewModel.js";
12
+ import type { TableItemCollectionEvents, TableItemModifier } from "@arcgis/core/layers/list/TableItemCollection.js";
13
13
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
14
14
  import type { ArcgisReferenceElement, HeadingLevel, IconName } from "../types.js";
15
15
  import type { T9nMeta } from "@arcgis/lumina/controllers";
16
- import type { ListItemModifier } from "@arcgis/core/widgets/TableList/types.js";
17
16
  import type { List as List } from "@esri/calcite-components/components/calcite-list";
18
17
  import type { ReadonlyCollection } from "@arcgis/core/core/Collection.js";
19
18
 
19
+ export type TableListOptions = Partial<Pick<ArcgisTableListNext, "collapsed" | "dragEnabled" | "filterPlaceholder" | "filterText" | "headingLevel" | "hideStatusIndicators" | "icon" | "label" | "minFilterItems" | "selectionMode" | "showErrors" | "showFilter" | "showTemporaryTableIndicators">>
20
+ & {
21
+ listItemCreatedFunction?: TableItemCollection["listItemCreatedFunction"];
22
+ };
23
+
20
24
  /**
21
25
  * The Table List (next) component provides a way to display a list of tables associated with a map or table collection.
22
26
  * It is the direct component migration of the TableList widget and is provided early for testing and feedback.
@@ -108,7 +112,7 @@ export abstract class ArcgisTableListNext extends LitElement {
108
112
  /** @internal */
109
113
  accessor listItemCanReceiveFunction: CanSortFunction | undefined;
110
114
  /** Specifies a function that accesses each list item as it is created. */
111
- accessor listItemCreatedFunction: ListItemModifier | null | undefined;
115
+ accessor listItemCreatedFunction: TableItemModifier | null | undefined;
112
116
  /**
113
117
  * Specifies whether to ignore the [listMode](https://developers.arcgis.com/javascript/latest/references/core/layers/Layer/#listMode) property to display all layers. A common use case for `listModeDisabled` is when you want to use the component to manage and configure a layer's `listMode` value.
114
118
  *
@@ -172,7 +176,7 @@ export abstract class ArcgisTableListNext extends LitElement {
172
176
  */
173
177
  accessor referenceElement: ArcgisReferenceElement | string | undefined;
174
178
  /** A collection of selected table list items. */
175
- accessor selectedItems: Collection<TableListListItem>;
179
+ accessor selectedItems: Collection<TableItem>;
176
180
  /**
177
181
  * Specifies the selection mode.
178
182
  *
@@ -216,9 +220,9 @@ export abstract class ArcgisTableListNext extends LitElement {
216
220
  */
217
221
  accessor showTemporaryTableIndicators: boolean;
218
222
  /** The current state of the component. */
219
- get state(): TableListViewModel["state"];
223
+ get state(): TableItemCollection["state"];
220
224
  /** The collection of table ListItems displayed within the component. */
221
- get tableItems(): Collection<TableListListItem>;
225
+ get tableItems(): Collection<TableItem>;
222
226
  /** A collection of tables to display in the component. */
223
227
  accessor tables: ReadonlyCollection<Layer | Sublayer> | null | undefined;
224
228
  /**
@@ -241,7 +245,7 @@ export abstract class ArcgisTableListNext extends LitElement {
241
245
  /** Emits when table items state changes. */
242
246
  readonly arcgisTableItemsChanged: import("@arcgis/lumina").TargetedEvent<this, void>;
243
247
  /** Emitted when an action is triggered on the component. */
244
- readonly arcgisTriggerAction: import("@arcgis/lumina").TargetedEvent<this, TableListViewModelEvents["trigger-action"]>;
248
+ readonly arcgisTriggerAction: import("@arcgis/lumina").TargetedEvent<this, TableItemCollectionEvents["trigger-action"]>;
245
249
  readonly "@eventTypes": {
246
250
  arcgisClose: ArcgisTableListNext["arcgisClose"]["detail"];
247
251
  arcgisFilterChange: ArcgisTableListNext["arcgisFilterChange"]["detail"];
@@ -257,10 +261,10 @@ export abstract class ArcgisTableListNext extends LitElement {
257
261
  export type CanSortFunction = (event: CanSortEvent) => boolean;
258
262
 
259
263
  /** @param item */
260
- export type FilterPredicate = (item: TableListListItem) => boolean;
264
+ export type FilterPredicate = (item: TableItem) => boolean;
261
265
 
262
266
  export interface CanSortEvent {
263
- selected: null | undefined | TableListListItem;
264
- from: null | undefined | TableListListItem;
265
- to: null | undefined | TableListListItem;
267
+ selected: null | undefined | TableItem;
268
+ from: null | undefined | TableItem;
269
+ to: null | undefined | TableItem;
266
270
  }
@@ -1,11 +1,11 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as C } from "../../chunks/runtime.js";
3
- import { repeat as M } from "lit/directives/repeat.js";
3
+ import { repeat as $ } from "lit/directives/repeat.js";
4
4
  import { keyed as _ } from "lit/directives/keyed.js";
5
- import $ from "@arcgis/core/core/Collection.js";
5
+ import M from "@arcgis/core/core/Collection.js";
6
6
  import { watch as I, on as v } from "@arcgis/core/core/reactiveUtils.js";
7
- import L from "@arcgis/core/widgets/TableList/TableListViewModel.js";
8
- import { LitElement as E, createEvent as c, safeClassMap as w, nothing as F } from "@arcgis/lumina";
7
+ import L from "@arcgis/core/layers/list/TableItemCollection.js";
8
+ import { LitElement as E, createEvent as c, safeClassMap as b, nothing as F } from "@arcgis/lumina";
9
9
  import { usePropertyChange as T } from "@arcgis/lumina/controllers";
10
10
  import { reEmitEvent as D } from "@arcgis/lumina/controllers/accessor";
11
11
  import { classes as P } from "@arcgis/toolkit/dom";
@@ -20,7 +20,7 @@ import { A as G } from "../../chunks/layer-list-item.js";
20
20
  import { s as O, a as q } from "../../chunks/layer-list-next.js";
21
21
  import { c as H } from "../../chunks/css.js";
22
22
  import { m as V } from "../../chunks/useViewModel.js";
23
- const b = H, y = "nested", j = V(L);
23
+ const w = H, y = "nested", j = V(L);
24
24
  class z extends E {
25
25
  constructor() {
26
26
  super(...arguments), this._lastDragDetail = null, this._rootGroupUid = `table-${N()}`, this._rootListRef = U(), this._selectedDragItemLayerUid = null, this.messages = x(), this.viewModel = j(this), this._canMove = ({ dragEl: e, fromEl: t, toEl: i }, s) => {
@@ -35,7 +35,7 @@ class z extends E {
35
35
  this._selectedDragItemLayerUid = e;
36
36
  }, this._onTriggerAction = (e, t) => {
37
37
  this.triggerAction(e, t);
38
- }, this.autoDestroyDisabled = !1, this.closed = !1, this.collapsed = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.icon = "table", this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.listModeDisabled = this.viewModel.listModeDisabled, this.map = this.viewModel.map, this.minDragEnabledItems = B, this.minFilterItems = R, this.selectedItems = new $(), this.selectionMode = "none", this.tables = this.viewModel.tables, this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.showFilter = !1, this.showHeading = !1, this.hideStatusIndicators = !1, this.showTemporaryTableIndicators = !1, this.arcgisClose = c(), this.arcgisPropertyChange = T()("state"), this.arcgisReady = c(), this.arcgisFilterChange = c(), this.arcgisSelectedItemsChange = c(), this.arcgisTableItemsChanged = c(), this.arcgisTriggerAction = D(() => this.viewModel, "trigger-action");
38
+ }, this.autoDestroyDisabled = !1, this.closed = !1, this.collapsed = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.icon = "table", this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.listModeDisabled = this.viewModel.listModeDisabled, this.map = this.viewModel.map, this.minDragEnabledItems = B, this.minFilterItems = R, this.selectedItems = new M(), this.selectionMode = "none", this.tables = this.viewModel.tables, this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.showFilter = !1, this.showHeading = !1, this.hideStatusIndicators = !1, this.showTemporaryTableIndicators = !1, this.arcgisClose = c(), this.arcgisPropertyChange = T()("state"), this.arcgisReady = c(), this.arcgisFilterChange = c(), this.arcgisSelectedItemsChange = c(), this.arcgisTableItemsChanged = c(), this.arcgisTriggerAction = D(() => this.viewModel, "trigger-action");
39
39
  }
40
40
  static {
41
41
  this.properties = { _visibleItems: 16, _openedPanelItems: 16, _dragEnabled: 16, _filterEnabled: 16, view: 0, autoDestroyDisabled: 5, closed: 5, referenceElement: 1, collapsed: 7, dragEnabled: 5, filterPlaceholder: 1, filterPredicate: 0, filterText: 1, headingLevel: 9, icon: 1, label: 1, listItemCanGiveFunction: 0, listItemCanReceiveFunction: 0, listItemCreatedFunction: 0, listModeDisabled: 5, map: 0, minDragEnabledItems: 9, minFilterItems: 9, selectedItems: 0, selectionMode: 1, state: 32, tableItems: 32, tables: 0, showCloseButton: 5, showCollapseButton: 5, showErrors: 5, hideNoFilterResultsNotice: 5, hideNoItemsNotice: 5, showFilter: 5, showHeading: 5, hideStatusIndicators: 5, showTemporaryTableIndicators: 5, messageOverrides: 0 };
@@ -147,16 +147,16 @@ class z extends E {
147
147
  [u.hidden]: e === "loading",
148
148
  [u.disabled]: e === "disabled"
149
149
  };
150
- return o`<div class=${w(P(u.widget, u.panel, t))}>${this._renderItems()}</div>`;
150
+ return o`<div class=${b(P(u.widget, u.panel, t))}>${this._renderItems()}</div>`;
151
151
  }
152
152
  _renderNoItemsMessage() {
153
153
  return o`<div slot=message>${this.messages.noItemsToDisplay}</div>`;
154
154
  }
155
155
  _renderNoItems() {
156
- return this.hideNoItemsNotice ? null : o`<div class=${w(b.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`;
156
+ return this.hideNoItemsNotice ? null : o`<div class=${b(w.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`;
157
157
  }
158
158
  _renderPanelFlowItems() {
159
- return M(this._openedPanelItems.toArray(), (e) => e.uid, (e, t) => {
159
+ return $(this._openedPanelItems.toArray(), (e) => e.uid, (e, t) => {
160
160
  const { panel: i, title: s } = e, l = () => this._handlePanelFlowItemBack(i);
161
161
  return o`<calcite-flow-item .description=${s} .heading=${i.title} .headingLevel=${this.headingLevel} .selected=${t === this._openedPanelItems.length - 1} @calciteFlowItemBack=${(a) => {
162
162
  a.preventDefault(), l();
@@ -167,13 +167,13 @@ class z extends E {
167
167
  const { collapsed: e, _visibleItems: t, _filterEnabled: i, _rootGroupUid: s, showCloseButton: l, showCollapseButton: a, showHeading: h, _dragEnabled: d, selectionMode: n, filterText: m, filterPlaceholder: f, messages: g } = this, p = [
168
168
  o`<calcite-flow-item .closable=${l} .closed=${this.closed} .collapsed=${e} .collapsible=${a} .heading=${h ? this.label ?? g.componentLabel : void 0} .headingLevel=${this.headingLevel} .selected=${!this._openedPanelItems.length} @calciteFlowItemClose=${() => this._handleFlowItemClose()}>${t?.length ? o`<calcite-list .canPull=${(r) => this._canMove(r, "pull")} .canPut=${(r) => this._canMove(r, "put")} data-layer-type=${s ?? F} .displayMode=${y} .dragEnabled=${d} .filterEnabled=${i} .filterPlaceholder=${f} .filterProps=${S} .filterText=${i ? m : ""} .group=${s} .label=${this.label ?? g.componentLabel} selection-appearance=border .selectionMode=${n} @calciteListChange=${this._handleCalciteListChange} @calciteListDragEnd=${(r) => this._handleCalciteListDragEnd(r.detail)} @calciteListFilter=${(r) => {
169
169
  this.filterText = r.currentTarget?.filterText ?? "", this.arcgisFilterChange.emit();
170
- }} @calciteListOrderChange=${(r) => this._onCalciteListOrderChange(r.detail)} ${A(this._rootListRef)}>${t.toArray().map((r) => this._renderItem(r))}${i && !this.hideNoFilterResultsNotice ? o`<div class=${w(b.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>` : null}</calcite-list>` : this._renderNoItems()}</calcite-flow-item>`,
170
+ }} @calciteListOrderChange=${(r) => this._onCalciteListOrderChange(r.detail)} ${A(this._rootListRef)}>${t.toArray().map((r) => this._renderItem(r))}${i && !this.hideNoFilterResultsNotice ? o`<div class=${b(w.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>` : null}</calcite-list>` : this._renderNoItems()}</calcite-flow-item>`,
171
171
  this._renderPanelFlowItems()
172
172
  ];
173
173
  return this.closed ? null : _("root-flow", o`<calcite-flow>${p}</calcite-flow>`);
174
174
  }
175
175
  _renderItem(e) {
176
- return _(e.uid, G({ canMove: this._canMove, css: b, displayMode: y, dragEnabled: this.dragEnabled, hideStatusIndicators: this.hideStatusIndicators, item: e, itemType: "table", listModeDisabled: this.viewModel.listModeDisabled, messages: this.messages, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, showErrors: this.showErrors, showFilter: this.showFilter, showTemporaryTableIndicators: this.showTemporaryTableIndicators, handleAction: (t, i) => this._onTriggerAction(t, i), handlePanelOpen: this._onPanelOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, view: this.view }));
176
+ return _(e.uid, G({ canMove: this._canMove, css: w, displayMode: y, dragEnabled: this.dragEnabled, hideStatusIndicators: this.hideStatusIndicators, item: e, itemType: "table", listModeDisabled: this.viewModel.listModeDisabled, messages: this.messages, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, showErrors: this.showErrors, showFilter: this.showFilter, showTemporaryTableIndicators: this.showTemporaryTableIndicators, handleAction: (t, i) => this._onTriggerAction(t, i), handlePanelOpen: this._onPanelOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, view: this.view }));
177
177
  }
178
178
  }
179
179
  C("arcgis-table-list-next", z);
@@ -0,0 +1,30 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type TraceResult from "@arcgis/core/rest/networks/support/TraceResult.js";
3
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
4
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
5
+
6
+ /**
7
+ * Trace result item for displaying [function](https://developers.arcgis.com/javascript/latest/references/core/rest/networks/support/TraceResult/#globalFunctionResults) results from a trace.
8
+ *
9
+ * @internal
10
+ * @since 5.2
11
+ * @see [Set up functions](https://doc.esri.com/en/arcgis-pro/latest/help/data/utility-network/configure-a-trace.html#CBB)
12
+ */
13
+ export abstract class ArcgisUtilityNetworkTraceFunctionsResultItem extends LitElement {
14
+ /** @internal */
15
+ protected _messages: {
16
+ componentLabel: string;
17
+ labels: { functionResults: string; };
18
+ } & T9nMeta<{
19
+ componentLabel: string;
20
+ labels: { functionResults: string; };
21
+ }>;
22
+ /** The heading displayed above the result item. */
23
+ accessor heading: string | undefined;
24
+ /**
25
+ * The trace result containing the function results to render.
26
+ *
27
+ * @required
28
+ */
29
+ accessor traceResult: TraceResult | undefined;
30
+ }
@@ -0,0 +1,34 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as m } from "../../chunks/runtime.js";
3
+ import { css as g, html as e } from "lit";
4
+ import { LitElement as b } from "@arcgis/lumina";
5
+ import { log as l, composeMissingPropertyMessage as p, composeEmptyPropertyMessage as h } from "@arcgis/toolkit/log";
6
+ import { u as f } from "../../chunks/useT9n.js";
7
+ const d = g`calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.functions-heading{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}`;
8
+ class w extends b {
9
+ constructor() {
10
+ super(...arguments), this._messages = f({ blocking: !0 });
11
+ }
12
+ static {
13
+ this.properties = { heading: 1, traceResult: 0 };
14
+ }
15
+ static {
16
+ this.styles = d;
17
+ }
18
+ loaded() {
19
+ this.traceResult ? this.traceResult.globalFunctionResults.length || l("warn", this, h("traceResult")) : l("warn", this, p("traceResult"));
20
+ }
21
+ render() {
22
+ if (!this.traceResult?.globalFunctionResults.length)
23
+ return;
24
+ const { heading: c, _messages: s } = this, { globalFunctionResults: i } = this.traceResult;
25
+ return e`${c && e`<div class="functions-heading">${c}</div>` || ""}<calcite-table .caption=${s.labels.functionResults}>${i.filter((t) => t.networkAttributeName != null && t.result != null && t.functionType != null).map((t) => {
26
+ const { functionName: a, networkAttributeName: r, functionType: o, result: n } = t, u = a || `${r} ${o}`;
27
+ return e`<calcite-table-row><calcite-table-cell>${u}</calcite-table-cell><calcite-table-cell>${n}</calcite-table-cell></calcite-table-row>`;
28
+ })}</calcite-table>`;
29
+ }
30
+ }
31
+ m("arcgis-utility-network-trace-functions-result-item", w);
32
+ export {
33
+ w as ArcgisUtilityNetworkTraceFunctionsResultItem
34
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,4 @@
1
+ import "@esri/calcite-components/components/calcite-table";
2
+ import "@esri/calcite-components/components/calcite-table-row";
3
+ import "@esri/calcite-components/components/calcite-table-cell";
4
+ export * from "./customElement.js";