@arcgis/map-components 5.2.0-next.11 → 5.2.0-next.13

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 (52) hide show
  1. package/dist/cdn/4BGPI3L3.js +2 -0
  2. package/dist/cdn/{GTOGU3CL.js → 5D3ZCD2V.js} +1 -1
  3. package/dist/cdn/{HNGHLDNZ.js → 5Z6MDFHN.js} +1 -1
  4. package/dist/cdn/64S26ZIP.js +2 -0
  5. package/dist/cdn/IJZYN6XT.js +2 -0
  6. package/dist/cdn/{3QWDXECJ.js → K6O7QOW4.js} +1 -1
  7. package/dist/cdn/MCIDCKIS.js +2 -0
  8. package/dist/cdn/O3S3JGUF.js +2 -0
  9. package/dist/cdn/QQPVIXFY.js +2 -0
  10. package/dist/cdn/R66ZOECE.js +2 -0
  11. package/dist/cdn/TPZUKUI7.js +2 -0
  12. package/dist/cdn/UCPXN4Y5.js +2 -0
  13. package/dist/cdn/assets/print/t9n/messages.en.json +1 -1
  14. package/dist/cdn/index.js +1 -1
  15. package/dist/components/arcgis-daylight/customElement.js +32 -23
  16. package/dist/components/arcgis-features/customElement.d.ts +15 -0
  17. package/dist/components/arcgis-features/customElement.js +33 -33
  18. package/dist/components/arcgis-features-next/customElement.d.ts +14 -0
  19. package/dist/components/arcgis-features-next/customElement.js +15 -12
  20. package/dist/components/arcgis-labeled-switch/customElement.js +5 -5
  21. package/dist/components/arcgis-layer-list-next/customElement.d.ts +2 -15
  22. package/dist/components/arcgis-layer-list-next/customElement.js +97 -77
  23. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +71 -72
  24. package/dist/components/arcgis-layer-list-next/types.d.ts +18 -0
  25. package/dist/components/arcgis-map/customElement.d.ts +126 -105
  26. package/dist/components/arcgis-multi-feature-form/customElement.js +14 -14
  27. package/dist/components/arcgis-print/customElement.d.ts +3 -0
  28. package/dist/components/arcgis-print-datum-transformation-input/customElement.js +74 -0
  29. package/dist/components/arcgis-print-datum-transformation-input/index.js +3 -0
  30. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +14 -11
  31. package/dist/components/arcgis-print-layout-advanced-options/index.js +1 -0
  32. package/dist/components/arcgis-print-template-selector/customElement.js +8 -8
  33. package/dist/components/arcgis-slider-scale-range/customElement.d.ts +4 -5
  34. package/dist/components/arcgis-slider-scale-range/customElement.js +69 -56
  35. package/dist/docs/api.json +1 -1
  36. package/dist/docs/docs.json +1 -1
  37. package/dist/docs/vscode.html-custom-data.json +1 -1
  38. package/dist/docs/web-types.json +1 -1
  39. package/dist/loader.js +3 -2
  40. package/dist/types/lumina.d.ts +2 -2
  41. package/dist/types/preact.d.ts +2 -2
  42. package/dist/types/react.d.ts +2 -2
  43. package/dist/types/stencil.d.ts +2 -2
  44. package/package.json +4 -4
  45. package/dist/cdn/AGOMMJPB.js +0 -2
  46. package/dist/cdn/CTHUSEAE.js +0 -2
  47. package/dist/cdn/DNZU7DTQ.js +0 -2
  48. package/dist/cdn/EVMYQ43N.js +0 -2
  49. package/dist/cdn/IKSY73X2.js +0 -2
  50. package/dist/cdn/JE5LMTIW.js +0 -2
  51. package/dist/cdn/OUYGGJ47.js +0 -2
  52. package/dist/cdn/VNP4GF74.js +0 -2
@@ -1,29 +1,28 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { html as c } from "lit";
3
- import { keyed as W } from "lit/directives/keyed.js";
4
- import { isLayerFromCatalog as Ae } from "@arcgis/core/layers/catalog/catalogUtils.js";
5
- import { safeClassMap as d, safeStyleMap as Ce, nothing as r } from "@arcgis/lumina";
6
- import { classes as P } from "@arcgis/toolkit/dom";
7
- import { createRef as X, ref as Y } from "lit/directives/ref.js";
8
- import { repeat as Se } from "lit/directives/repeat.js";
9
- import { g as Te, a as ie } from "../../../chunks/action-utils.js";
10
- import { h as xe, j as Z, l as Me, k as Le, n as Ee, o as ke, g as we } from "../../../chunks/layer-list-utils.js";
3
+ import { keyed as Y } from "lit/directives/keyed.js";
4
+ import { isLayerFromCatalog as Ce } from "@arcgis/core/layers/catalog/catalogUtils.js";
5
+ import { safeClassMap as d, safeStyleMap as Se, nothing as r } from "@arcgis/lumina";
6
+ import { classes as F } from "@arcgis/toolkit/dom";
7
+ import { createRef as Z, ref as ee } from "lit/directives/ref.js";
8
+ import { g as Te, a as le } from "../../../chunks/action-utils.js";
9
+ import { h as xe, j as te, l as Me, k as Le, n as Ee, o as ke, g as we } from "../../../chunks/layer-list-utils.js";
11
10
  import { s as Pe } from "../../../chunks/component-utils.js";
12
- const ae = /* @__PURE__ */ new Map();
13
- function le(i) {
14
- return i ? ae.get(i) ?? !1 : !1;
11
+ const ne = /* @__PURE__ */ new Map();
12
+ function ce(i) {
13
+ return i ? ne.get(i) ?? !1 : !1;
15
14
  }
16
15
  function De(i, e) {
17
- const l = !(i.aria?.pressed ?? le(e));
18
- return i.aria = { ...i.aria, pressed: l }, e && ae.set(e, l), l;
16
+ const l = !(i.aria?.pressed ?? ce(e));
17
+ return i.aria = { ...i.aria, pressed: l }, e && ne.set(e, l), l;
19
18
  }
20
- function D(i) {
19
+ function O(i) {
21
20
  return i && "visibilityMode" in i ? i.visibilityMode : null;
22
21
  }
23
- function ee(i, e) {
22
+ function ie(i, e) {
24
23
  if (!("visible" in i))
25
24
  return;
26
- D(e) === "exclusive" && i.visible || (i.visible = !i.visible);
25
+ O(e) === "exclusive" && i.visible || (i.visible = !i.visible);
27
26
  }
28
27
  function Fe(i, e) {
29
28
  i.panel.open = !i.panel.open, i.panel.open && e && e();
@@ -31,77 +30,77 @@ function Fe(i, e) {
31
30
  function Oe(i, e, l, m) {
32
31
  i && l === e.layer?.uid && (Pe(i), m?.(null));
33
32
  }
34
- function Re(i, e, l) {
33
+ function Ge(i, e, l) {
35
34
  l.type === "toggle" && (l.value = !l.value), i(l, e);
36
35
  }
37
- function Ve(i) {
36
+ function Re(i) {
38
37
  return i.actionsSections.map((e) => e.filter((l) => l.visible));
39
38
  }
40
- function ne(i, e) {
39
+ function se(i, e) {
41
40
  const { icon: l } = e;
42
41
  if (l)
43
42
  return null;
44
43
  const m = "image" in e ? e.image : void 0;
45
- return m ? c`<span aria-hidden=true class=${d(P(i.itemActionIcon, { [i.itemActionImage]: !!m }))} style=${Ce(Te(m))}></span>` : null;
44
+ return m ? c`<span aria-hidden=true class=${d(F(i.itemActionIcon, { [i.itemActionImage]: !!m }))} style=${Se(Te(m))}></span>` : null;
46
45
  }
47
- function te(i, e, l) {
48
- const { item: m, css: a, handleAction: v } = i, { active: C, disabled: I, title: g, type: S, indicator: f } = e, T = ie(e);
49
- return c`<calcite-action .active=${S === "toggle" ? e.value : !1} data-action-id=${e.id ?? r} .disabled=${I} .icon=${T} .indicator=${f} .loading=${C} @click=${() => Re(v, m, e)} scale=s slot=${(l ? void 0 : "actions-end") ?? r} .text=${g ?? ""} .textEnabled=${l} title=${g ?? void 0 ?? r}>${ne(a, e)}</calcite-action>`;
46
+ function ae(i, e, l) {
47
+ const { item: m, css: a, handleAction: f } = i, { active: C, disabled: I, title: b, type: S, indicator: h } = e, T = le(e);
48
+ return c`<calcite-action .active=${S === "toggle" ? e.value : !1} data-action-id=${e.id ?? r} .disabled=${I} .icon=${T} .indicator=${h} .loading=${C} @click=${() => Ge(f, m, e)} scale=s slot=${(l ? void 0 : "actions-end") ?? r} .text=${b ?? ""} .textEnabled=${l} title=${b ?? void 0 ?? r}>${se(a, e)}</calcite-action>`;
50
49
  }
51
- function Ge(i) {
52
- const { item: e, parent: l, hideStatusIndicators: m, css: a, visibilityAppearance: v, hideCatalogLayerList: C, dragEnabled: I = !1, rootGroupUid: g, listModeDisabled: S = !1, selectionMode: f, displayMode: T, layerTablesEnabled: x, showErrors: ce, parentTitles: F, selectedItems: se, activeItem: oe, handleCatalogOpen: re, handleTablesOpen: de, selectedDragItemLayerUid: ue, handleSelectedDragItemLayerUidChange: me, handlePanelOpen: pe, messages: n, setCurrentActiveItem: O, clearActiveItem: R } = i, $ = X(), M = X(), b = e.title || ("untitledTable" in n ? n.untitledTable : n.untitledLayer ?? "");
53
- let V = null;
54
- m || (V = c`<arcgis-layer-list-item-indicator class=${d(a.statusIndicator)} .messages=${n} .item=${e} .parent=${l} slot=content-end></arcgis-layer-list-item-indicator>`);
55
- let G = null;
50
+ function Ve(i) {
51
+ const { item: e, parent: l, hideStatusIndicators: m, css: a, visibilityAppearance: f, hideCatalogLayerList: C, dragEnabled: I = !1, rootGroupUid: b, listModeDisabled: S = !1, selectionMode: h, displayMode: T, layerTablesEnabled: x, showErrors: oe, parentTitles: G, selectedItems: re, activeItem: de, handleCatalogOpen: ue, handleTablesOpen: me, selectedDragItemLayerUid: $e, handleSelectedDragItemLayerUidChange: pe, handlePanelOpen: ge, messages: n, setCurrentActiveItem: R, clearActiveItem: V } = i, p = Z(), M = Z(), y = e.title || ("untitledTable" in n ? n.untitledTable : n.untitledLayer ?? "");
52
+ let H = null;
53
+ m || (H = c`<arcgis-layer-list-item-indicator class=${d(a.statusIndicator)} .messages=${n} .item=${e} .parent=${l} slot=content-end></arcgis-layer-list-item-indicator>`);
54
+ let U = null;
56
55
  {
57
- const { layer: t } = e, s = t && "persistenceEnabled" in t && (Ae(t) || !t.persistenceEnabled);
58
- (i.showTemporaryLayerIndicators || i.showTemporaryTableIndicators) && s && (G = c`<calcite-icon class=${d(a.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${n.temporary ?? r}></calcite-icon>`);
56
+ const { layer: t } = e, s = t && "persistenceEnabled" in t && (Ce(t) || !t.persistenceEnabled);
57
+ (i.showTemporaryLayerIndicators || i.showTemporaryTableIndicators) && s && (U = c`<calcite-icon class=${d(a.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${n.temporary ?? r}></calcite-icon>`);
59
58
  }
60
- let H = null;
61
- if ("visible" in e && "visibleToggle" in a && v) {
62
- const t = D(l);
59
+ let q = null;
60
+ if ("visible" in e && "visibleToggle" in a && f) {
61
+ const t = O(l);
63
62
  if (t !== "inherited") {
64
63
  const s = xe({
65
64
  visible: e.visible,
66
65
  exclusive: t === "exclusive",
67
- visibilityAppearance: v
68
- }), o = v === "checkbox", p = n.layerVisibility, h = le(e.layer?.id);
69
- H = c`<calcite-action .aria=${{ pressed: h }} class=${d(a.visibleToggle)} .icon=${o ? s : void 0} @click=${(y) => {
70
- De(y.currentTarget, e.layer?.id), ee(e, l);
71
- }} .slot=${o ? "actions-start" : "actions-end"} .text=${p ?? ""} title=${p ?? r}>${o ? null : c`<calcite-icon class=${d(P({
66
+ visibilityAppearance: f
67
+ }), o = f === "checkbox", u = n.layerVisibility, v = e.title ?? e.layer?.title ?? "", g = v ? `${u ?? ""}: ${v}` : u ?? "", P = ce(e.layer?.id);
68
+ q = c`<calcite-action .aria=${{ pressed: P }} class=${d(a.visibleToggle)} .icon=${o ? s : void 0} .label=${g} @click=${(D) => {
69
+ De(D.currentTarget, e.layer?.id), ie(e, l);
70
+ }} .slot=${o ? "actions-start" : "actions-end"} .text=${u ?? ""} title=${u ?? r}>${o ? null : c`<calcite-icon class=${d(F({
72
71
  [a.visibleIcon]: t !== "exclusive" && e.visible
73
72
  }))} .icon=${s} scale=s></calcite-icon>`}</calcite-action>`;
74
73
  }
75
74
  }
76
- let U = null;
75
+ let j = null;
77
76
  {
78
77
  const t = e.panel;
79
- t?.open && !t.disabled && !t.flowEnabled && (U = c`<div class=${d(a.itemContentBottom)} slot=content-bottom><arcgis-layer-list-item-panel .item=${e} .view=${i.view}></arcgis-layer-list-item-panel></div>`);
78
+ t?.open && !t.disabled && !t.flowEnabled && (j = c`<div class=${d(a.itemContentBottom)} slot=content-bottom><arcgis-layer-list-item-panel .item=${e} .view=${i.view}></arcgis-layer-list-item-panel></div>`);
80
79
  }
81
- let q = null;
80
+ let B = null;
82
81
  {
83
82
  const t = e.panel;
84
83
  if (t?.visible) {
85
- const { open: s, title: o, disabled: p } = t, h = { icon: t.icon, image: t.image, indicator: !1 }, y = ie(h);
86
- q = c`<calcite-action .active=${s} .disabled=${p} .icon=${y} @click=${() => Fe(e, pe)} slot=actions-end .text=${o ?? ""} title=${o ?? void 0 ?? r}>${ne(a, t)}</calcite-action>`;
84
+ const { open: s, title: o, disabled: u } = t, v = { icon: t.icon, image: t.image, indicator: !1 }, g = le(v);
85
+ B = c`<calcite-action .active=${s} .disabled=${u} .icon=${g} @click=${() => Fe(e, ge)} slot=actions-end .text=${o ?? ""} title=${o ?? void 0 ?? r}>${se(a, t)}</calcite-action>`;
87
86
  }
88
87
  }
89
- let j = null;
88
+ let N = null;
90
89
  {
91
- const t = e.layer, s = t?.type === "catalog-footprint", o = t?.type === "sublayer" && Z(t, "footprints");
92
- "itemCatalogIcon" in a && (s || o) && (j = c`<calcite-icon class=${d(a.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`);
90
+ const t = e.layer, s = t?.type === "catalog-footprint", o = t?.type === "sublayer" && te(t, "footprints");
91
+ "itemCatalogIcon" in a && (s || o) && (N = c`<calcite-icon class=${d(a.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`);
93
92
  }
94
- let B = null;
93
+ let _ = null;
95
94
  {
96
- const t = e.layer, s = t?.type === "catalog-dynamic-group", o = t?.type === "sublayer" && Z(t, "layers-in-view");
97
- "itemCatalogIcon" in a && (s || o) && (B = c`<calcite-icon class=${d(a.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`);
95
+ const t = e.layer, s = t?.type === "catalog-dynamic-group", o = t?.type === "sublayer" && te(t, "layers-in-view");
96
+ "itemCatalogIcon" in a && (s || o) && (_ = c`<calcite-icon class=${d(a.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`);
98
97
  }
99
- let N = null;
98
+ let z = null;
100
99
  if ("visible" in e) {
101
100
  const t = e.layer;
102
- !C && t?.type === "catalog-dynamic-group" && (N = c`<calcite-action .disabled=${!t.visible} icon=chevron-right icon-flip-rtl @click=${() => re?.(e)} scale=s slot=actions-end .text=${b ?? ""}></calcite-action>`);
101
+ !C && t?.type === "catalog-dynamic-group" && (z = c`<calcite-action .disabled=${!t.visible} icon=chevron-right icon-flip-rtl @click=${() => ue?.(e)} scale=s slot=actions-end .text=${y ?? ""}></calcite-action>`);
103
102
  }
104
- let _ = null, L = !1;
103
+ let J = null, L = !1;
105
104
  {
106
105
  const t = e.layer;
107
106
  if (x && t)
@@ -114,43 +113,43 @@ function Ge(i) {
114
113
  L = x.includes(t.type) && "subtables" in t && !!t.subtables?.length;
115
114
  break;
116
115
  }
117
- "itemTableIcon" in a && "visible" in e && "tables" in n && L && (_ = W(`${e.uid}-tables`, c`<calcite-list-item class=${d(a.item)} data-layer-id=${t?.id ?? r} drag-disabled .label=${n.tables} title=${n.tables ?? r} @calciteListItemSelect=${() => de?.(e)} .value=${e}><calcite-icon class=${d(a.itemTableIcon)} icon=table scale=s slot=content-start></calcite-icon><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`));
116
+ "itemTableIcon" in a && "visible" in e && "tables" in n && L && (J = Y(`${e.uid}-tables`, c`<calcite-list-item class=${d(a.item)} data-layer-id=${t?.id ?? r} drag-disabled .label=${n.tables} title=${n.tables ?? r} @calciteListItemSelect=${() => me?.(e)} .value=${e}><calcite-icon class=${d(a.itemTableIcon)} icon=table scale=s slot=content-start></calcite-icon><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`));
118
117
  }
119
- let z = null;
118
+ let K = null;
120
119
  if ("children" in e) {
121
- const t = [...F ?? [], e.title], { children: s, layer: o } = e, p = o?.type !== "catalog-dynamic-group" && Me(e), h = S ? !1 : Le(o), y = o?.type === "group", fe = !h && !p && I && y, he = I && "childrenSortable" in e && e.childrenSortable && Ee(e), Ie = p ? Se(s?.filter((u) => !u.hidden && (ce || !u.error)).toArray() ?? [], (u) => u.uid, (u) => Ge({ ...i, item: u, parent: e, parentTitles: t })) : null;
122
- (p || fe) && (z = c`<calcite-list .canPull=${(u) => i.canMove ? i.canMove(u, "pull") : !1} .canPut=${(u) => i.canMove ? i.canMove(u, "put") : !1} data-item=${e.uid ?? r} data-layer-type=${g ?? r} .displayMode=${T} .dragEnabled=${he} .group=${y ? g : `${g}-${o?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${f}>${Ie}${_}</calcite-list>`);
120
+ const t = [...G ?? [], e.title], { children: s, layer: o } = e, u = o?.type !== "catalog-dynamic-group" && Me(e), v = S ? !1 : Le(o), g = o?.type === "group", P = !v && !u && I && g, D = g && "sortable" in e && e.sortable, Ie = I && ("childrenSortable" in e && e.childrenSortable || D) && Ee(e), Ae = u ? (s?.filter(($) => !$.hidden && (oe || !$.error)).toArray() ?? []).map(($) => Ve({ ...i, item: $, parent: e, parentTitles: t })) : null;
121
+ (u || P) && (K = c`<calcite-list .canPull=${($) => i.canMove ? i.canMove($, "pull") : !1} .canPut=${($) => i.canMove ? i.canMove($, "put") : !1} data-item=${e.uid ?? r} data-layer-type=${b ?? r} .displayMode=${T} .dragEnabled=${Ie} .group=${g ? b : `${b}-${o?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${h}>${Ae}${J}</calcite-list>`);
123
122
  }
124
123
  let E = null;
125
124
  if (e.error) {
126
125
  const t = "layerError" in n ? n.layerError : n.tableError;
127
126
  E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${t}</div></calcite-notice></div>`;
128
- } else "incompatible" in e && e.incompatible && "layerIncompatible" in n && (E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${Y(M)}><div slot=message>${n.layerIncompatible}</div></calcite-notice></div>`);
129
- const J = Ve(e), k = e.actionsSections.reduce((t, s) => t + s.length, 0), K = ke(J), $e = J.toArray().map((t) => c`<calcite-action-group>${t.toArray().map((s) => te(i, s, !0))}</calcite-action-group>`), ge = (t) => {
127
+ } else "incompatible" in e && e.incompatible && "layerIncompatible" in n && (E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${ee(M)}><div slot=message>${n.layerIncompatible}</div></calcite-notice></div>`);
128
+ const Q = Re(e), k = e.actionsSections.reduce((t, s) => t + s.length, 0), W = ke(Q), be = Q.toArray().map((t) => c`<calcite-action-group>${t.toArray().map((s) => ae(i, s, !0))}</calcite-action-group>`), ye = (t) => {
130
129
  e.actionsOpen = t.currentTarget.open;
131
130
  };
132
- let Q = null;
133
- k > 1 && (Q = c`<calcite-action-menu appearance=transparent .label=${n.menu ?? ""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end slot=actions-end @calciteActionMenuOpen=${ge}><calcite-action .aria=${{
131
+ let X = null;
132
+ k > 1 && (X = c`<calcite-action-menu appearance=transparent .label=${n.menu ?? ""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end slot=actions-end @calciteActionMenuOpen=${ye}><calcite-action .aria=${{
134
133
  expanded: e.actionsOpen ?? !1,
135
134
  hasPopup: "true"
136
- }} icon=ellipsis scale=s slot=trigger .text=${n.options ?? ""} title=${n.options ?? r}></calcite-action>${$e}</calcite-action-menu>`);
135
+ }} icon=ellipsis scale=s slot=trigger .text=${n.options ?? ""} title=${n.options ?? r}></calcite-action>${be}</calcite-action-menu>`);
137
136
  let w = null;
138
- k === 1 && K ? w = te(i, K, !1) : k > 1 && (w = Q);
139
- const be = "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in n && !e.visibleAtCurrentTimeExtent ? `${b} (${n.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in n && !e.visibleAtCurrentScale ? `${b} (${n.layerInvisibleAtScale})` : b, ye = "parent" in e && e.parent?.layer?.type === "catalog", A = e.layer, ve = "visibleAtCurrentScale" in e && !e.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in e && !e.visibleAtCurrentTimeExtent;
137
+ k === 1 && W ? w = ae(i, W, !1) : k > 1 && (w = X);
138
+ const ve = "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in n && !e.visibleAtCurrentTimeExtent ? `${y} (${n.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in n && !e.visibleAtCurrentScale ? `${y} (${n.layerInvisibleAtScale})` : y, fe = "parent" in e && e.parent?.layer?.type === "catalog", A = e.layer, he = "visibleAtCurrentScale" in e && !e.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in e && !e.visibleAtCurrentTimeExtent;
140
139
  return queueMicrotask(() => {
141
- Oe($.value ?? null, e, ue, me), M.value && (i.handleTooltipReferenceChange?.(A?.uid, M.value), queueMicrotask(() => i.handleTooltipReferenceChange?.(A?.uid, null))), e.panel && (e.panel.container = $.value);
142
- }), W(e.uid, c`<calcite-list-item class=${d(P(a.item, "itemActive" in a && { [a.itemActive]: oe?.uid === e.uid }))} data-item=${e.uid ?? r} data-layer-id=${A?.id ?? r} .dragDisabled=${!("sortable" in e && e.sortable) || ye} id=${A?.uid ?? r} .label=${b} .metadata=${{ parentTitles: F ?? [], _title: b }} .expanded=${"open" in e && e.open} .selected=${f !== "none" ? se.includes(e) : !1} title=${be ?? r} .unavailable=${ve} .value=${e} @focusin=${() => {
143
- O?.(e), $.value?.classList.add(a.itemActive);
140
+ Oe(p.value ?? null, e, $e, pe), M.value && (i.handleTooltipReferenceChange?.(A?.uid, M.value), queueMicrotask(() => i.handleTooltipReferenceChange?.(A?.uid, null))), e.panel && (e.panel.container = p.value);
141
+ }), Y(e.uid, c`<calcite-list-item class=${d(F(a.item, "itemActive" in a && { [a.itemActive]: de?.uid === e.uid }))} data-item=${e.uid ?? r} data-layer-id=${A?.id ?? r} .dragDisabled=${!("sortable" in e && e.sortable) || fe} id=${A?.uid ?? r} .label=${y} .metadata=${{ parentTitles: G ?? [], _title: y }} .expanded=${"open" in e && e.open} .selected=${h !== "none" ? re.includes(e) : !1} title=${ve ?? r} .unavailable=${he} .value=${e} @focusin=${() => {
142
+ R?.(e), p.value?.classList.add(a.itemActive);
144
143
  }} @focusout=${() => {
145
- R?.(), $.value?.classList.remove(a.itemActive);
144
+ V?.(), p.value?.classList.remove(a.itemActive);
146
145
  }} @mouseover=${() => {
147
- O?.(e), $.value?.classList.add(a.itemActive);
146
+ R?.(e), p.value?.classList.add(a.itemActive);
148
147
  }} @mouseleave=${() => {
149
- R?.(), $.value?.classList.remove(a.itemActive);
150
- }} @calciteListItemSelect=${(t) => "visible" in e && we(t.currentTarget, i.operationalItems) === e && f === "none" && D(l) !== "inherited" && ee(e, l)} @calciteListItemToggle=${(t) => {
148
+ V?.(), p.value?.classList.remove(a.itemActive);
149
+ }} @calciteListItemSelect=${(t) => "visible" in e && we(t.currentTarget, i.operationalItems) === e && h === "none" && O(l) !== "inherited" && ie(e, l)} @calciteListItemToggle=${(t) => {
151
150
  "open" in e && (t.stopPropagation(), e.open = t.target.expanded);
152
- }} ${Y($)}>${j}${B}${V}${H}${N}${G}${z}${E}${U}${q}${w}</calcite-list-item>`);
151
+ }} ${ee(p)}>${N}${_}${H}${q}${z}${U}${K}${E}${j}${B}${w}</calcite-list-item>`);
153
152
  }
154
153
  export {
155
- Ge as ArcgisLayerListItem
154
+ Ve as ArcgisLayerListItem
156
155
  };
@@ -0,0 +1,18 @@
1
+ import type CatalogLayer from "@arcgis/core/layers/CatalogLayer.js";
2
+ import type KnowledgeGraphLayer from "@arcgis/core/layers/KnowledgeGraphLayer.js";
3
+ import type MapImageLayer from "@arcgis/core/layers/MapImageLayer.js";
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";
7
+
8
+ /** Catalog layer list configuration passed through Layer List (next). */
9
+ export type CatalogLayerListParams = CatalogLayerListProperties;
10
+
11
+ /** Table list configuration passed through Layer List (next). */
12
+ export type TableListParams = TableListProperties;
13
+
14
+ /** Layer types that can open a nested flow list from Layer List (next). */
15
+ export type FlowLayer = CatalogLayer | SubtablesLayer;
16
+
17
+ /** Layer types that expose tables via the Table List flow. */
18
+ export type SubtablesLayer = KnowledgeGraphLayer | MapImageLayer | TileLayer;