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

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 (35) hide show
  1. package/dist/cdn/AQ2V4DTN.js +2 -0
  2. package/dist/cdn/C2JQUU2L.js +2 -0
  3. package/dist/cdn/CNDTQDTD.js +2 -0
  4. package/dist/cdn/LSBT72HH.js +2 -0
  5. package/dist/cdn/{YJYUG3DP.js → NR6IHW45.js} +1 -1
  6. package/dist/cdn/{VQG7S23K.js → QD2A52JY.js} +1 -1
  7. package/dist/cdn/{VJIYYZW3.js → SJOTL7SU.js} +1 -1
  8. package/dist/cdn/index.js +1 -1
  9. package/dist/chunks/layer-list-item.js +35 -24
  10. package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +18 -21
  11. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +12 -12
  12. package/dist/components/arcgis-basemap-layer-list-next/index.js +2 -2
  13. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +19 -14
  14. package/dist/components/arcgis-catalog-layer-list-next/customElement.js +26 -26
  15. package/dist/components/arcgis-catalog-layer-list-next/index.js +1 -1
  16. package/dist/components/arcgis-layer-list-item-panel/customElement.js +1 -1
  17. package/dist/components/arcgis-layer-list-next/customElement.d.ts +9 -9
  18. package/dist/components/arcgis-layer-list-next/customElement.js +12 -12
  19. package/dist/components/arcgis-layer-list-next/types.d.ts +4 -4
  20. package/dist/components/arcgis-table-list-next/customElement.d.ts +17 -13
  21. package/dist/components/arcgis-table-list-next/customElement.js +11 -11
  22. package/dist/docs/api.json +1 -1
  23. package/dist/docs/docs.json +1 -1
  24. package/dist/docs/web-types.json +1 -1
  25. package/dist/loader.js +1 -1
  26. package/dist/types/lumina.d.ts +1 -1
  27. package/dist/types/preact.d.ts +1 -1
  28. package/dist/types/react.d.ts +1 -1
  29. package/dist/types/stencil.d.ts +1 -1
  30. package/dist/utils/layer-list-utils.d.ts +6 -6
  31. package/package.json +4 -4
  32. package/dist/cdn/D6Z3MYCF.js +0 -2
  33. package/dist/cdn/R5ZY52DF.js +0 -2
  34. package/dist/cdn/TKTHZ2GE.js +0 -2
  35. package/dist/cdn/ZWAOPC3F.js +0 -2
@@ -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);