@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.
- package/dist/cdn/4FN75DFQ.js +2 -0
- package/dist/cdn/{VJIYYZW3.js → D4HG2OIN.js} +1 -1
- package/dist/cdn/FOZXZGEZ.js +2 -0
- package/dist/cdn/HTL73ZTA.js +2 -0
- package/dist/cdn/HZVC4F3N.js +2 -0
- package/dist/cdn/OBHCFXFW.js +2 -0
- package/dist/cdn/S55YL3HD.js +2 -0
- package/dist/cdn/{VQG7S23K.js → SLPJAJDI.js} +1 -1
- package/dist/cdn/UFUUA7WI.js +2 -0
- package/dist/cdn/VGMTHIUW.js +2 -0
- package/dist/cdn/{YJYUG3DP.js → YUJMRIVW.js} +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-trace-functions-result-item/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/layer-list-item.js +35 -24
- package/dist/chunks/layer-list-next.js +1 -1
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +18 -21
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +12 -12
- package/dist/components/arcgis-basemap-layer-list-next/index.js +2 -2
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +19 -14
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +26 -26
- package/dist/components/arcgis-catalog-layer-list-next/index.js +1 -1
- package/dist/components/arcgis-feature-attachments/customElement.js +13 -13
- package/dist/components/arcgis-features-next/customElement.d.ts +9 -0
- package/dist/components/arcgis-features-next/customElement.js +126 -108
- package/dist/components/arcgis-layer-list-item-panel/customElement.js +5 -5
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +9 -9
- package/dist/components/arcgis-layer-list-next/customElement.js +12 -12
- package/dist/components/arcgis-layer-list-next/types.d.ts +4 -4
- package/dist/components/arcgis-table-list-next/customElement.d.ts +17 -13
- package/dist/components/arcgis-table-list-next/customElement.js +11 -11
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +30 -0
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +34 -0
- package/dist/components/arcgis-utility-network-trace-functions-result-item/index.d.ts +1 -0
- package/dist/components/arcgis-utility-network-trace-functions-result-item/index.js +4 -0
- package/dist/components/arcgis-utility-network-trace-results-next/customElement.js +51 -58
- package/dist/components/arcgis-utility-network-trace-results-next/index.js +1 -3
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/loader.js +2 -1
- package/dist/types/lumina.d.ts +6 -1
- package/dist/types/preact.d.ts +7 -1
- package/dist/types/react.d.ts +8 -1
- package/dist/types/stencil.d.ts +6 -1
- package/dist/utils/layer-list-utils.d.ts +6 -6
- package/package.json +4 -4
- package/dist/cdn/D6Z3MYCF.js +0 -2
- package/dist/cdn/GVCVI2FM.js +0 -2
- package/dist/cdn/H5BVJ264.js +0 -2
- package/dist/cdn/R5ZY52DF.js +0 -2
- package/dist/cdn/RIZHD5EC.js +0 -2
- package/dist/cdn/TKTHZ2GE.js +0 -2
- package/dist/cdn/ZWAOPC3F.js +0 -2
|
@@ -43,7 +43,7 @@ function We(i, e, l) {
|
|
|
43
43
|
if ($.length < 2)
|
|
44
44
|
return;
|
|
45
45
|
const a = $.find(l);
|
|
46
|
-
a && $.filter((
|
|
46
|
+
a && $.filter((g) => g !== a).forEach((g) => g.remove());
|
|
47
47
|
};
|
|
48
48
|
return s(), i.updateComplete.then(s);
|
|
49
49
|
});
|
|
@@ -56,11 +56,11 @@ function se(i, e) {
|
|
|
56
56
|
return s ? c`<span aria-hidden=true class=${u(F(i.itemActionIcon, { [i.itemActionImage]: !!s }))} style=${Me(xe(s))}></span>` : null;
|
|
57
57
|
}
|
|
58
58
|
function ae(i, e, l) {
|
|
59
|
-
const { item: s, css: $, handleAction: a } = i, { active:
|
|
60
|
-
return c`<calcite-action .active=${A === "toggle" ? e.value : !1} data-action-id=${e.id ?? d} .disabled=${T} .icon=${I} .indicator=${S} .loading=${
|
|
59
|
+
const { item: s, css: $, handleAction: a } = i, { active: g, disabled: T, title: h, type: A, indicator: S } = e, I = le(e);
|
|
60
|
+
return c`<calcite-action .active=${A === "toggle" ? e.value : !1} data-action-id=${e.id ?? d} .disabled=${T} .icon=${I ?? void 0} .indicator=${S} .loading=${g} @click=${() => Ve(a, s, e)} scale=s slot=${(l ? void 0 : "actions-end") ?? d} .text=${h ?? ""} .textEnabled=${l} title=${h ?? void 0 ?? d}>${se($, e)}</calcite-action>`;
|
|
61
61
|
}
|
|
62
62
|
function He(i) {
|
|
63
|
-
const { item: e, itemType: l = "layer", parent: s, hideStatusIndicators: $, css: a, visibilityAppearance:
|
|
63
|
+
const { item: e, itemType: l = "layer", parent: s, hideStatusIndicators: $, css: a, visibilityAppearance: g, hideCatalogLayerList: T, dragEnabled: h = !1, rootGroupUid: A, listModeDisabled: S = !1, selectionMode: I, displayMode: oe, layerTablesEnabled: M, showErrors: re, parentTitles: R, selectedItems: de, activeItem: ue, handleCatalogOpen: me, handleTablesOpen: ge, selectedDragItemLayerUid: pe, handleSelectedDragItemLayerUidChange: $e, handlePanelOpen: be, messages: n, setCurrentActiveItem: G, clearActiveItem: V } = i, v = Z(), x = Z(), ve = l === "table" ? n.untitledTable ?? "" : n.untitledLayer ?? "", y = e.title || ve || "";
|
|
64
64
|
let q = null;
|
|
65
65
|
$ || (q = c`<arcgis-layer-list-item-indicator class=${u(a.statusIndicator)} .messages=${n} .item=${e} .parent=${s} slot=content-end></arcgis-layer-list-item-indicator>`);
|
|
66
66
|
let H = null;
|
|
@@ -69,15 +69,15 @@ function He(i) {
|
|
|
69
69
|
(i.showTemporaryLayerIndicators || i.showTemporaryTableIndicators) && o && (H = c`<calcite-icon class=${u(a.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${n.temporary ?? d}></calcite-icon>`);
|
|
70
70
|
}
|
|
71
71
|
let U = null;
|
|
72
|
-
if ("visible" in e && "visibleToggle" in a &&
|
|
72
|
+
if ("visible" in e && "visibleToggle" in a && g) {
|
|
73
73
|
const t = O(s);
|
|
74
74
|
if (t !== "inherited") {
|
|
75
75
|
const o = Le({
|
|
76
76
|
visible: e.visible,
|
|
77
77
|
exclusive: t === "exclusive",
|
|
78
|
-
visibilityAppearance:
|
|
79
|
-
}), r =
|
|
80
|
-
U = c`<calcite-action .aria=${{ pressed: P }} class=${u(a.visibleToggle)} .icon=${r ? o : void 0} .label=${
|
|
78
|
+
visibilityAppearance: g
|
|
79
|
+
}), r = g === "checkbox", m = n.layerVisibility, f = e.title ?? e.layer?.title ?? "", b = f ? `${m ?? ""}: ${f}` : m ?? "", P = ce(e.layer?.id);
|
|
80
|
+
U = c`<calcite-action .aria=${{ pressed: P }} class=${u(a.visibleToggle)} .icon=${r ? o : void 0} .label=${b} @click=${(D) => {
|
|
81
81
|
Oe(D.currentTarget, e.layer?.id), ie(e, s);
|
|
82
82
|
}} .slot=${r ? "actions-start" : "actions-end"} .text=${m ?? ""} title=${m ?? d}>${r ? null : c`<calcite-icon class=${u(F({
|
|
83
83
|
[a.visibleIcon]: t !== "exclusive" && e.visible
|
|
@@ -93,8 +93,14 @@ function He(i) {
|
|
|
93
93
|
{
|
|
94
94
|
const t = e.panel;
|
|
95
95
|
if (t?.visible) {
|
|
96
|
-
const { open: o, title: r, disabled: m } = t
|
|
97
|
-
|
|
96
|
+
const { open: o, title: r, disabled: m } = t;
|
|
97
|
+
t.content === "legend" && (t.icon = "legend");
|
|
98
|
+
const f = {
|
|
99
|
+
icon: t.icon,
|
|
100
|
+
image: t.image ?? void 0,
|
|
101
|
+
indicator: !1
|
|
102
|
+
}, b = le(f);
|
|
103
|
+
B = c`<calcite-action .active=${o} .disabled=${m} .icon=${b} @click=${() => Re(e, be)} slot=actions-end .text=${r ?? ""} title=${r ?? void 0 ?? d}>${se(a, t)}</calcite-action>`;
|
|
98
104
|
}
|
|
99
105
|
}
|
|
100
106
|
let N = null;
|
|
@@ -110,7 +116,7 @@ function He(i) {
|
|
|
110
116
|
let z = null;
|
|
111
117
|
if ("visible" in e) {
|
|
112
118
|
const t = e.layer;
|
|
113
|
-
!T && t?.type === "catalog-dynamic-group" && (z = c`<calcite-action .disabled=${!t.visible} icon=chevron-right icon-flip-rtl @click=${() => me?.(e)} scale=s slot=actions-end .text=${
|
|
119
|
+
!T && t?.type === "catalog-dynamic-group" && (z = c`<calcite-action .disabled=${!t.visible} icon=chevron-right icon-flip-rtl @click=${() => me?.(e)} scale=s slot=actions-end .text=${y ?? ""}></calcite-action>`);
|
|
114
120
|
}
|
|
115
121
|
let J = null, L = !1;
|
|
116
122
|
{
|
|
@@ -125,44 +131,49 @@ function He(i) {
|
|
|
125
131
|
L = M.includes(t.type) && "subtables" in t && !!t.subtables?.length;
|
|
126
132
|
break;
|
|
127
133
|
}
|
|
128
|
-
"itemTableIcon" in a && "visible" in e && "tables" in n && L && (J = Y(`${e.uid}-tables`, c`<calcite-list-item class=${u(a.item)} data-layer-id=${t?.id ?? d} drag-disabled .label=${n.tables} title=${n.tables ?? d} @calciteListItemSelect=${() =>
|
|
134
|
+
"itemTableIcon" in a && "visible" in e && "tables" in n && L && (J = Y(`${e.uid}-tables`, c`<calcite-list-item class=${u(a.item)} data-layer-id=${t?.id ?? d} drag-disabled .label=${n.tables} title=${n.tables ?? d} @calciteListItemSelect=${() => ge?.(e)} .value=${e}><calcite-icon class=${u(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>`));
|
|
129
135
|
}
|
|
130
136
|
let K = null;
|
|
131
137
|
if ("children" in e) {
|
|
132
|
-
const t = [...R ?? [], e.title], { children: o, layer: r } = e, m = r?.type !== "catalog-dynamic-group" && Ee(e), f = S ? !1 : we(r),
|
|
133
|
-
|
|
138
|
+
const t = [...R ?? [], e.title], { children: o, layer: r } = e, m = r?.type !== "catalog-dynamic-group" && Ee(e), f = S ? !1 : we(r), b = r?.type === "group", P = !f && !m && h && b, D = b && "sortable" in e && e.sortable, Ce = h && ("childrenSortable" in e && e.childrenSortable || D) && ke(e), Te = m ? (o?.filter((p) => !p.hidden && (re || !p.error)).toArray() ?? []).map((p) => He({
|
|
139
|
+
...i,
|
|
140
|
+
item: p,
|
|
141
|
+
parent: e,
|
|
142
|
+
parentTitles: t
|
|
143
|
+
})) : null;
|
|
144
|
+
(m || P) && (K = c`<calcite-list .canPull=${(p) => i.canMove ? i.canMove(p, "pull") : !1} .canPut=${(p) => i.canMove ? i.canMove(p, "put") : !1} data-item=${e.uid ?? d} data-layer-type=${A ?? d} .displayMode=${oe} .dragEnabled=${Ce} .group=${b ? A : `${A}-${r?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${I}>${Te}${J}</calcite-list>`);
|
|
134
145
|
}
|
|
135
146
|
let E = null;
|
|
136
147
|
if (e.error) {
|
|
137
148
|
const t = "layerError" in n ? n.layerError : n.tableError;
|
|
138
149
|
E = c`<div class=${u(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>`;
|
|
139
150
|
} else "incompatible" in e && e.incompatible && "layerIncompatible" in n && (E = c`<div class=${u(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${ee(x)}><div slot=message>${n.layerIncompatible}</div></calcite-notice></div>`);
|
|
140
|
-
const Q = qe(e), w = e.actionsSections.reduce((t, o) => t + o.length, 0), W = Pe(Q),
|
|
151
|
+
const Q = qe(e), w = e.actionsSections.reduce((t, o) => t + o.length, 0), W = Pe(Q), ye = Q.toArray().map((t) => c`<calcite-action-group>${t.toArray().map((o) => ae(i, o, !0))}</calcite-action-group>`), fe = (t) => {
|
|
141
152
|
e.actionsOpen = t.currentTarget.open;
|
|
142
153
|
};
|
|
143
154
|
let X = null;
|
|
144
155
|
w > 1 && (X = c`<calcite-action-menu appearance=transparent .label=${n.menu ?? ""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end slot=actions-end @calciteActionMenuOpen=${fe}><calcite-action .aria=${{
|
|
145
156
|
expanded: e.actionsOpen ?? !1,
|
|
146
157
|
hasPopup: "true"
|
|
147
|
-
}} icon=ellipsis scale=s slot=trigger .text=${n.options ?? ""} title=${n.options ?? d}></calcite-action>${
|
|
158
|
+
}} icon=ellipsis scale=s slot=trigger .text=${n.options ?? ""} title=${n.options ?? d}></calcite-action>${ye}</calcite-action-menu>`);
|
|
148
159
|
let k = null;
|
|
149
160
|
w === 1 && W ? k = ae(i, W, !1) : w > 1 && (k = X);
|
|
150
|
-
const he = "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in n && !e.visibleAtCurrentTimeExtent ? `${
|
|
161
|
+
const he = "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in n && !e.visibleAtCurrentTimeExtent ? `${y} (${n.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in n && !e.visibleAtCurrentScale ? `${y} (${n.layerInvisibleAtScale})` : y, Ae = "parent" in e && e.parent?.layer?.type === "catalog", C = e.layer, Ie = "visibleAtCurrentScale" in e && !e.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in e && !e.visibleAtCurrentTimeExtent;
|
|
151
162
|
return queueMicrotask(() => {
|
|
152
|
-
Ge(
|
|
153
|
-
}), Y(e.uid, c`<calcite-list-item class=${u(F(a.item, "itemActive" in a && { [a.itemActive]: ue?.uid === e.uid }))} data-item=${e.uid ?? d} data-layer-id=${C?.id ?? d} .dragDisabled=${!("sortable" in e && e.sortable) || Ae} id=${C?.uid ?? d} .label=${
|
|
154
|
-
G?.(e),
|
|
163
|
+
Ge(v.value ?? null, e, pe, $e), x.value && (i.handleTooltipReferenceChange?.(C?.uid, x.value), queueMicrotask(() => i.handleTooltipReferenceChange?.(C?.uid, null)));
|
|
164
|
+
}), Y(e.uid, c`<calcite-list-item class=${u(F(a.item, "itemActive" in a && { [a.itemActive]: ue?.uid === e.uid }))} data-item=${e.uid ?? d} data-layer-id=${C?.id ?? d} .dragDisabled=${!("sortable" in e && e.sortable) || Ae} id=${C?.uid ?? d} .label=${y} .metadata=${{ parentTitles: R ?? [], _title: y }} .expanded=${"open" in e && e.open} .selected=${I !== "none" ? de.includes(e) : !1} title=${he ?? d} .unavailable=${Ie} .value=${e} @focusin=${() => {
|
|
165
|
+
G?.(e), v.value?.classList.add(a.itemActive);
|
|
155
166
|
}} @focusout=${() => {
|
|
156
|
-
V?.(),
|
|
167
|
+
V?.(), v.value?.classList.remove(a.itemActive);
|
|
157
168
|
}} @mouseover=${() => {
|
|
158
|
-
G?.(e),
|
|
169
|
+
G?.(e), v.value?.classList.add(a.itemActive);
|
|
159
170
|
}} @mouseleave=${() => {
|
|
160
|
-
V?.(),
|
|
171
|
+
V?.(), v.value?.classList.remove(a.itemActive);
|
|
161
172
|
}} @calciteListItemSelect=${(t) => {
|
|
162
173
|
t.target === t.currentTarget && "visible" in e && De(t.currentTarget, i.operationalItems) === e && I === "none" && O(s) !== "inherited" && ie(e, s);
|
|
163
174
|
}} @calciteListItemToggle=${(t) => {
|
|
164
175
|
"open" in e && (t.stopPropagation(), e.open = t.target.expanded);
|
|
165
|
-
}} ${ee(
|
|
176
|
+
}} ${ee(v)}>${N}${_}${q}${U}${z}${H}${K}${E}${j}${B}${k}</calcite-list-item>`);
|
|
166
177
|
}
|
|
167
178
|
export {
|
|
168
179
|
He as A,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { css as e } from "lit";
|
|
3
|
-
const t = e`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{width:100%;--arcgis-internal-layer-list-item-scroller-max-height: var(--arcgis-internal-panel-height-md)}.esri-legend{display:none}.item{--calcite-list-item-icon-center: var(--calcite-space-sm)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:14px}.item__filter-container--sticky{z-index:1;position:sticky;top:0}.item__group{margin-top:var(--calcite-spacing-md)}.item__scroller{overflow-y:auto;z-index:0;position:relative}.item__scroller--enabled{max-height:var(--arcgis-internal-layer-list-item-scroller-max-height)}.item__group__header{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-medium)}.item__list-item{cursor:pointer;min-height:var(--calcite-spacing-xxxl)}.item__list-item[class^=esri-icon-],.item__list-item[class*=" esri-icon-"]{padding-inline-end:2.8px}.item__list-item--disabled{cursor:default}.item__list-item-icon{justify-content:center;align-items:center;min-width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);display:flex}.item__list-item-icon span{line-height:0}.arcgis-thumbnail-preview{background-position:50%;width:22px;height:22px}.item__no-matches-message{justify-content:center;align-items:center;height:96px;display:flex}.content-bottom{margin:var(--calcite-spacing-md) 15px}.content-bottom .arcgis-legend__service{padding:0 0 var(--calcite-spacing-md)}.message{margin:var(--calcite-spacing-md) 15px}.visible-icon{visibility:hidden}.item:hover>.visible-toggle>.visible-icon,.item:focus>.visible-toggle>.visible-icon,.item:focus-within>.visible-toggle>.visible-icon{visibility:visible}`, r = e`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{display:flex;transition:max-height .25s ease-in-out;overflow-y:auto}:host>div{display:flex;width:100%}.filter-no-results{padding:var(--calcite-space-md) var(--calcite-space-md-plus)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-space-xl);width:var(--calcite-space-xl);height:var(--calcite-space-xl);font-size:var(--calcite-font-size)}.action-menu .action-group{display:none}.action-menu[open] .action-group{display:flex}.active:hover>.visible-toggle>.visible-icon,.active:focus>.visible-toggle>.visible-icon,.active:focus-within>.visible-toggle>.visible-icon{visibility:visible}.status-indicator{margin-inline:0}`;
|
|
3
|
+
const t = e`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{width:100%;--arcgis-internal-layer-list-item-scroller-max-height: var(--arcgis-internal-panel-height-md)}.item{--calcite-list-item-icon-center: var(--calcite-space-sm)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:14px}.item__filter-container--sticky{z-index:1;position:sticky;top:0}.item__group{margin-top:var(--calcite-spacing-md)}.item__scroller{overflow-y:auto;z-index:0;position:relative}.item__scroller--enabled{max-height:var(--arcgis-internal-layer-list-item-scroller-max-height)}.item__group__header{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-medium)}.item__list-item{cursor:pointer;min-height:var(--calcite-spacing-xxxl)}.item__list-item[class^=esri-icon-],.item__list-item[class*=" esri-icon-"]{padding-inline-end:2.8px}.item__list-item--disabled{cursor:default}.item__list-item-icon{justify-content:center;align-items:center;min-width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);display:flex}.item__list-item-icon span{line-height:0}.arcgis-thumbnail-preview{background-position:50%;width:22px;height:22px}.item__no-matches-message{justify-content:center;align-items:center;height:96px;display:flex}.content-bottom{margin:var(--calcite-spacing-md) 15px}.content-bottom .arcgis-legend__service{padding:0 0 var(--calcite-spacing-md)}.message{margin:var(--calcite-spacing-md) 15px}.visible-icon{visibility:hidden}.item:hover>.visible-toggle>.visible-icon,.item:focus>.visible-toggle>.visible-icon,.item:focus-within>.visible-toggle>.visible-icon{visibility:visible}`, r = e`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{display:flex;transition:max-height .25s ease-in-out;overflow-y:auto;--arcgis-internal-layer-list-legend-color-text: var(--calcite-color-text-2)}:host>div{display:flex;width:100%}.filter-no-results{padding:var(--calcite-space-md) var(--calcite-space-md-plus)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-space-xl);width:var(--calcite-space-xl);height:var(--calcite-space-xl);font-size:var(--calcite-font-size)}.action-menu .action-group{display:none}.action-menu[open] .action-group{display:flex}.active:hover>.visible-toggle>.visible-icon,.active:focus>.visible-toggle>.visible-icon,.active:focus-within>.visible-toggle>.visible-icon{visibility:visible}.status-indicator{margin-inline:0}`;
|
|
4
4
|
export {
|
|
5
5
|
t as a,
|
|
6
6
|
r as s
|
|
@@ -4,23 +4,20 @@ import type CatalogLayer from "@arcgis/core/layers/CatalogLayer.js";
|
|
|
4
4
|
import type KnowledgeGraphLayer from "@arcgis/core/layers/KnowledgeGraphLayer.js";
|
|
5
5
|
import type MapImageLayer from "@arcgis/core/layers/MapImageLayer.js";
|
|
6
6
|
import type TileLayer from "@arcgis/core/layers/TileLayer.js";
|
|
7
|
-
import type
|
|
8
|
-
import type
|
|
7
|
+
import type Item from "@arcgis/core/layers/list/Item.js";
|
|
8
|
+
import type TableItem from "@arcgis/core/layers/list/TableItem.js";
|
|
9
9
|
import type { UIPosition } from "@arcgis/core/views/ui/types.js";
|
|
10
|
-
import type {
|
|
11
|
-
import type { BasemapLayerListViewModelEvents } from "@arcgis/core/widgets/BasemapLayerList/BasemapLayerListViewModel.js";
|
|
12
|
-
import type { TableListProperties } from "@arcgis/core/widgets/TableList.js";
|
|
10
|
+
import type { BasemapItemCollectionEvents } from "@arcgis/core/layers/list/BasemapItemCollection.js";
|
|
13
11
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
14
12
|
import type { VisibilityAppearance } from "../../utils/action-utils.js";
|
|
15
13
|
import type { CanSortFunction, TableSupportedLayers } from "../../utils/layer-list-utils.js";
|
|
16
|
-
import type {
|
|
17
|
-
import type {
|
|
14
|
+
import type { ArcgisCatalogLayerListNext, CatalogLayerListOptions } from "../arcgis-catalog-layer-list-next/customElement.js";
|
|
15
|
+
import type { ArcgisTableListNext, TableListOptions } from "../arcgis-table-list-next/customElement.js";
|
|
18
16
|
import type { ArcgisReferenceElement, HeadingLevel, IconName } from "../types.js";
|
|
19
17
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
20
18
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
21
|
-
import type {
|
|
19
|
+
import type { ItemModifier, State } from "@arcgis/core/layers/list/types.js";
|
|
22
20
|
import type { List as List } from "@esri/calcite-components/components/calcite-list";
|
|
23
|
-
import type { BasemapLayerListState } from "@arcgis/core/widgets/BasemapLayerList/types.js";
|
|
24
21
|
|
|
25
22
|
/**
|
|
26
23
|
* The Basemap Layer List Next component provides a way to display a list of basemap layers and switch on/off their visibility.
|
|
@@ -43,10 +40,10 @@ export abstract class ArcgisBasemapLayerListNext extends LitElement {
|
|
|
43
40
|
accessor baseFilterPredicate: FilterPredicate | undefined;
|
|
44
41
|
/** @default "" */
|
|
45
42
|
accessor baseFilterText: string;
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
accessor baseItemCreatedFunction: ItemModifier | null | undefined;
|
|
44
|
+
get baseItems(): Collection<Item>;
|
|
48
45
|
accessor basemapTitle: string | null | undefined;
|
|
49
|
-
get catalogLayerList():
|
|
46
|
+
get catalogLayerList(): ArcgisCatalogLayerListNext | undefined;
|
|
50
47
|
accessor catalogOptions: CatalogLayerListParams | undefined;
|
|
51
48
|
/** @default false */
|
|
52
49
|
accessor closed: boolean;
|
|
@@ -210,9 +207,9 @@ export abstract class ArcgisBasemapLayerListNext extends LitElement {
|
|
|
210
207
|
accessor referenceFilterPredicate: FilterPredicate | undefined;
|
|
211
208
|
/** @default "" */
|
|
212
209
|
accessor referenceFilterText: string;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
accessor selectedItems: Collection<
|
|
210
|
+
accessor referenceItemCreatedFunction: ItemModifier | null | undefined;
|
|
211
|
+
get referenceItems(): Collection<Item>;
|
|
212
|
+
accessor selectedItems: Collection<Item>;
|
|
216
213
|
/** @default "none" */
|
|
217
214
|
accessor selectionMode: List["selectionMode"];
|
|
218
215
|
/** @default false */
|
|
@@ -227,8 +224,8 @@ export abstract class ArcgisBasemapLayerListNext extends LitElement {
|
|
|
227
224
|
accessor showFilter: boolean;
|
|
228
225
|
/** @default false */
|
|
229
226
|
accessor showTemporaryLayerIndicators: boolean;
|
|
230
|
-
get state():
|
|
231
|
-
get tableList():
|
|
227
|
+
get state(): State;
|
|
228
|
+
get tableList(): ArcgisTableListNext | undefined;
|
|
232
229
|
accessor tileOptions: TableListParams | undefined;
|
|
233
230
|
/**
|
|
234
231
|
* The view associated with the component.
|
|
@@ -245,7 +242,7 @@ export abstract class ArcgisBasemapLayerListNext extends LitElement {
|
|
|
245
242
|
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "state"; }>;
|
|
246
243
|
readonly arcgisReady: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
247
244
|
readonly arcgisReferenceFilterChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
248
|
-
readonly arcgisTriggerAction: import("@arcgis/lumina").TargetedEvent<this,
|
|
245
|
+
readonly arcgisTriggerAction: import("@arcgis/lumina").TargetedEvent<this, BasemapItemCollectionEvents["trigger-action"]>;
|
|
249
246
|
readonly "@eventTypes": {
|
|
250
247
|
arcgisBaseFilterChange: ArcgisBasemapLayerListNext["arcgisBaseFilterChange"]["detail"];
|
|
251
248
|
arcgisClose: ArcgisBasemapLayerListNext["arcgisClose"]["detail"];
|
|
@@ -257,13 +254,13 @@ export abstract class ArcgisBasemapLayerListNext extends LitElement {
|
|
|
257
254
|
};
|
|
258
255
|
}
|
|
259
256
|
|
|
260
|
-
export type CatalogLayerListParams =
|
|
257
|
+
export type CatalogLayerListParams = CatalogLayerListOptions;
|
|
261
258
|
|
|
262
|
-
export type TableListParams =
|
|
259
|
+
export type TableListParams = TableListOptions;
|
|
263
260
|
|
|
264
261
|
export type FlowLayer = CatalogLayer | SubtablesLayer;
|
|
265
262
|
|
|
266
263
|
/** @param item */
|
|
267
|
-
export type FilterPredicate = (item:
|
|
264
|
+
export type FilterPredicate = (item: Item | TableItem) => boolean;
|
|
268
265
|
|
|
269
266
|
export type SubtablesLayer = KnowledgeGraphLayer | MapImageLayer | TileLayer;
|
|
@@ -3,10 +3,10 @@ import { c as O } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css as x, html as n } from "lit";
|
|
4
4
|
import { keyed as d } from "lit/directives/keyed.js";
|
|
5
5
|
import { repeat as k } from "lit/directives/repeat.js";
|
|
6
|
-
import N from "@arcgis/core/
|
|
7
|
-
import
|
|
6
|
+
import N from "@arcgis/core/layers/list/BasemapItemCollection.js";
|
|
7
|
+
import y from "@arcgis/core/core/Collection.js";
|
|
8
8
|
import { on as S, watch as U } from "@arcgis/core/core/reactiveUtils.js";
|
|
9
|
-
import { LitElement as G, createEvent as
|
|
9
|
+
import { LitElement as G, createEvent as L, renderElement as $, safeClassMap as f, nothing as I } from "@arcgis/lumina";
|
|
10
10
|
import { usePropertyChange as H } from "@arcgis/lumina/controllers";
|
|
11
11
|
import { reEmitEvent as V } from "@arcgis/lumina/controllers/accessor";
|
|
12
12
|
import { classes as q } from "@arcgis/toolkit/dom";
|
|
@@ -27,7 +27,7 @@ const p = {
|
|
|
27
27
|
section: "section",
|
|
28
28
|
editing: "editing",
|
|
29
29
|
editingForm: "editing-form"
|
|
30
|
-
}, le = x`:host{--arcgis-layer-list-visibility-icon: hidden}.editing-form{display:flex;height:100%}.editing{padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-sm)}`,
|
|
30
|
+
}, le = x`:host{--arcgis-layer-list-visibility-icon: hidden}.editing-form{display:flex;height:100%}.editing{padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-sm)}`, C = "nested", re = ".*\\S+.*", E = "data-basemap-layer-type", oe = K(N);
|
|
31
31
|
class ne extends G {
|
|
32
32
|
constructor() {
|
|
33
33
|
super(...arguments), this._baseListRef = m(), this._referenceListRef = m(), this._editTitleInputRef = m(), this._layerFlowItemRef = m(), this._panelFlowItemRef = m(), this._rootFlowItemRef = m(), this._editingFlowItemRef = m(), this._lastDragDetail = null, this._selectedDragItemLayerUid = null, this._rootGroupUid = `basemap-${j()}`, this._openedLayersController = null, this._focusRootFlowItem = !1, this._focusPanelFlowItem = !1, this._focusLayerFlowItem = null, this._focusEditingFlowItem = !1, this.messages = J(), this.viewModel = oe(this), this.arcgisClose = z(this), this._canMove = ({ dragEl: e, fromEl: t, toEl: s }, i) => {
|
|
@@ -64,10 +64,10 @@ class ne extends G {
|
|
|
64
64
|
e.preventDefault();
|
|
65
65
|
const t = this._editTitleInputRef.value?.value;
|
|
66
66
|
t?.trim() && (this.basemapTitle = t), this._toggleEditingTitle();
|
|
67
|
-
}, this._activeItem = null, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.openedLayerLists = new
|
|
67
|
+
}, this._activeItem = null, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.openedLayerLists = new y(), this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.baseFilterText = "", this.baseItemCreatedFunction = this.viewModel.baseItemCreatedFunction, this.basemapTitle = this.viewModel.basemapTitle, this.closed = !1, this.collapsed = !1, this.dragEnabled = !1, this.editingTitle = !1, this.filterPlaceholder = "", this.headingLevel = 2, this.icon = "layers", this.layerTablesEnabled = new y(["knowledge-graph"]), this.listModeDisabled = this.viewModel.listModeDisabled, this.minFilterItems = Q, this.openedLayers = new y(), this.referenceFilterText = "", this.referenceItemCreatedFunction = this.viewModel.referenceItemCreatedFunction, this.selectedItems = new y(), this.selectionMode = "none", this.visibilityAppearance = "default", this.hideBaseLayers = !1, this.hideCatalogLayerList = !1, this.hideHeading = !1, this.hideReferenceLayers = !1, this.hideStatusIndicators = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showEditTitleButton = !1, this.showErrors = !1, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.showFilter = !1, this.showTemporaryLayerIndicators = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = H()("state"), this.arcgisReady = L(), this.arcgisBaseFilterChange = L(), this.arcgisReferenceFilterChange = L(), this.arcgisOpenedLayersChange = L(), this.arcgisTriggerAction = V(() => this.viewModel, "trigger-action");
|
|
68
68
|
}
|
|
69
69
|
static {
|
|
70
|
-
this.properties = { _activeItem: 16, _catalogLayerList: 16, _tableList: 16, _tooltipReferenceMap: 16, _layerListMap: 16, openedLayerLists: 16, _allItems: 16, _visibleBaseItems: 16, _visibleReferenceItems: 16, _openedPanelItems: 16, _totalBaseItems: 16, _totalReferenceItems: 16, _baseFilterEnabled: 16, _referenceFilterEnabled: 16, _renderedOpenLayerFlowItems: 16, view: 0, autoDestroyDisabled: 5, baseFilterPredicate: 0, baseFilterText: 1, baseItems: 32,
|
|
70
|
+
this.properties = { _activeItem: 16, _catalogLayerList: 16, _tableList: 16, _tooltipReferenceMap: 16, _layerListMap: 16, openedLayerLists: 16, _allItems: 16, _visibleBaseItems: 16, _visibleReferenceItems: 16, _openedPanelItems: 16, _totalBaseItems: 16, _totalReferenceItems: 16, _baseFilterEnabled: 16, _referenceFilterEnabled: 16, _renderedOpenLayerFlowItems: 16, view: 0, autoDestroyDisabled: 5, baseFilterPredicate: 0, baseFilterText: 1, baseItems: 32, baseItemCreatedFunction: 0, basemapTitle: 1, catalogLayerList: 32, catalogOptions: 0, closed: 5, collapsed: 7, dragEnabled: 5, editingTitle: 5, filterPlaceholder: 1, headingLevel: 9, icon: 1, knowledgeGraphOptions: 0, label: 1, layerTablesEnabled: 0, listItemCanGiveFunction: 0, listItemCanReceiveFunction: 0, listModeDisabled: 5, mapImageOptions: 0, minFilterItems: 9, openedLayers: 32, position: 1, referenceElement: 1, referenceFilterPredicate: 0, referenceFilterText: 1, referenceItems: 32, referenceItemCreatedFunction: 0, selectedItems: 0, selectionMode: 1, tableList: 32, tileOptions: 0, visibilityAppearance: 1, hideBaseLayers: 5, hideCatalogLayerList: 5, hideHeading: 5, hideReferenceLayers: 5, hideStatusIndicators: 5, showCloseButton: 5, showCollapseButton: 5, showEditTitleButton: 5, showErrors: 5, hideNoFilterResultsNotice: 5, hideNoItemsNotice: 5, showFilter: 5, showTemporaryLayerIndicators: 5, messageOverrides: 0, state: 32 };
|
|
71
71
|
}
|
|
72
72
|
static {
|
|
73
73
|
this.styles = [se, le, ie];
|
|
@@ -154,7 +154,7 @@ class ne extends G {
|
|
|
154
154
|
}
|
|
155
155
|
async _createCatalogLayerList(e) {
|
|
156
156
|
const { headingLevel: t, catalogOptions: s, filterPlaceholder: i, minFilterItems: a, selectionMode: r, visibilityAppearance: l, layerTablesEnabled: o } = this;
|
|
157
|
-
return $(n`<arcgis-catalog-layer-list .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? i} .listItemCreatedFunction=${s?.listItemCreatedFunction} .minFilterItems=${s?.minFilterItems ?? a} .selectionMode=${s?.selectionMode ?? r} .visibilityAppearance=${s?.visibilityAppearance ?? l} .showErrors=${s?.
|
|
157
|
+
return $(n`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? i} .listItemCreatedFunction=${s?.listItemCreatedFunction} .minFilterItems=${s?.minFilterItems ?? a} .selectionMode=${s?.selectionMode ?? r} .visibilityAppearance=${s?.visibilityAppearance ?? l} .showErrors=${s?.showErrors ?? this.showErrors} .showFilter=${s?.showFilter ?? this.showFilter} .hideStatusIndicators=${s?.hideStatusIndicators ?? this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.showTemporaryLayerIndicators ?? this.showTemporaryLayerIndicators} @arcgisReady=${(c) => c.stopPropagation()} .catalogLayer=${e} .layerTablesEnabled=${o} .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) {
|
|
@@ -170,14 +170,14 @@ class ne extends G {
|
|
|
170
170
|
}
|
|
171
171
|
async _createTableList(e) {
|
|
172
172
|
const t = this._getTableListParams(e);
|
|
173
|
-
return $(n`<arcgis-table-list .headingLevel=${t?.headingLevel ?? this.headingLevel} .selectionMode=${t?.selectionMode ?? this.selectionMode} .dragEnabled=${t?.dragEnabled ?? this.dragEnabled} .collapsed=${t?.collapsed} .filterPlaceholder=${t?.filterPlaceholder} .filterText=${t?.filterText} .icon=${t?.icon ?? void 0} .label=${t?.label ?? void 0} .listItemCreatedFunction=${t?.listItemCreatedFunction} .tables=${t?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${(s) => s.stopPropagation()}></arcgis-table-list>`);
|
|
173
|
+
return $(n`<arcgis-table-list-next .headingLevel=${t?.headingLevel ?? this.headingLevel} .selectionMode=${t?.selectionMode ?? this.selectionMode} .dragEnabled=${t?.dragEnabled ?? this.dragEnabled} .collapsed=${t?.collapsed} .filterPlaceholder=${t?.filterPlaceholder} .filterText=${t?.filterText} .icon=${t?.icon ?? void 0} .label=${t?.label ?? void 0} .listItemCreatedFunction=${t?.listItemCreatedFunction} .tables=${t?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${(s) => s.stopPropagation()}></arcgis-table-list-next>`);
|
|
174
174
|
}
|
|
175
175
|
_handlePanelFlowItemBack(e) {
|
|
176
176
|
e.open = !1, this._focusRootFlowItem = !0;
|
|
177
177
|
}
|
|
178
178
|
_moveLayerFromChildList({ toEl: e, fromEl: t, dragEl: s, newIndex: i }) {
|
|
179
179
|
const a = h(s, this._allItems), r = e.hasAttribute("data-item") ? h(e, this._allItems) : null, l = t.hasAttribute("data-item") ? h(t, this._allItems) : null, o = M(t), c = M(e);
|
|
180
|
-
i == null || !a || !o || !c || (this.viewModel.
|
|
180
|
+
i == null || !a || !o || !c || (this.viewModel.moveItem({
|
|
181
181
|
targetItem: a,
|
|
182
182
|
fromParentItem: l,
|
|
183
183
|
toParentItem: r,
|
|
@@ -290,7 +290,7 @@ class ne extends G {
|
|
|
290
290
|
}
|
|
291
291
|
_renderList(e, t, s) {
|
|
292
292
|
const i = t === "reference" ? this._referenceFilterEnabled : this._baseFilterEnabled, a = t === "reference" ? this.referenceFilterText : this.baseFilterText, r = (t === "reference" ? this.messages.noReferenceLayers : this.messages.noBaseLayers) ?? this.messages.noItemsToDisplay ?? "";
|
|
293
|
-
return d(`block-${t}`, n`<calcite-block class=${f(p.section)} collapsible expanded .heading=${t === "reference" ? this.messages.referenceHeading : this.messages.baseHeading} .headingLevel=${this.headingLevel + 1}>${e?.length ? null : this._renderNoLayersInfo(r, t)}${d(`list-${t}`, n`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${(l) => this._canMove(l, "pull")} .canPut=${(l) => this._canMove(l, "put")} data-basemap-layer-type=${t ?? I} data-layer-type=${this._rootGroupUid ?? I} .displayMode=${
|
|
293
|
+
return d(`block-${t}`, n`<calcite-block class=${f(p.section)} collapsible expanded .heading=${t === "reference" ? this.messages.referenceHeading : this.messages.baseHeading} .headingLevel=${this.headingLevel + 1}>${e?.length ? null : this._renderNoLayersInfo(r, t)}${d(`list-${t}`, n`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${(l) => this._canMove(l, "pull")} .canPut=${(l) => this._canMove(l, "put")} data-basemap-layer-type=${t ?? I} data-layer-type=${this._rootGroupUid ?? I} .displayMode=${C} .dragEnabled=${this.dragEnabled} .filterEnabled=${i} .filterPlaceholder=${this.filterPlaceholder} .filterProps=${Z} .filterText=${i ? a : ""} .group=${this._rootGroupUid} .label=${this.messages.componentLabel ?? ""} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=border .selectionMode=${this.selectionMode} @calciteListChange=${this._handleCalciteListChange} @calciteListDragEnd=${(l) => this._handleCalciteListDragEnd(l.detail)} @calciteListFilter=${(l) => {
|
|
294
294
|
const o = l.currentTarget?.filterText ?? "";
|
|
295
295
|
this[t === "reference" ? "referenceFilterText" : "baseFilterText"] = o, t === "base" ? this.arcgisBaseFilterChange.emit() : this.arcgisReferenceFilterChange.emit();
|
|
296
296
|
}} @calciteListOrderChange=${(l) => this._onCalciteListOrderChange(l.detail)} ${u(t === "reference" ? this._referenceListRef : this._baseListRef)}>${e?.toArray().map((l) => this._renderItem(l, s))}${i && !this.hideNoFilterResultsNotice ? n`<div class=${f(p.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoLayersInfoMessage(r)}</calcite-notice></div>` : null}</calcite-list>`)}</calcite-block>`);
|
|
@@ -302,11 +302,11 @@ class ne extends G {
|
|
|
302
302
|
return this.hideReferenceLayers ? null : this._renderList(this._visibleReferenceItems, "reference", !1);
|
|
303
303
|
}
|
|
304
304
|
_renderItem(e, t, s, i) {
|
|
305
|
-
return d(e.uid, te({ activeItem: this._activeItem, canMove: this._canMove, css: p, displayMode:
|
|
305
|
+
return d(e.uid, te({ activeItem: this._activeItem, canMove: this._canMove, css: p, displayMode: C, dragEnabled: this.dragEnabled && !t, hideCatalogLayerList: this.hideCatalogLayerList, hideStatusIndicators: this.hideStatusIndicators, item: e, layerTablesEnabled: this.layerTablesEnabled, listModeDisabled: this.viewModel.listModeDisabled, messages: this.messages, operationalItems: this._allItems, parent: s, parentTitles: i, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, setCurrentActiveItem: this._setCurrentActiveItem, clearActiveItem: this._clearActiveItem, showErrors: this.showErrors, showTemporaryLayerIndicators: this.showTemporaryLayerIndicators, visibilityAppearance: this.visibilityAppearance, handleAction: this._onTriggerAction, handleCatalogOpen: this._onCatalogOpen, handlePanelOpen: this._onPanelOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, handleTablesOpen: this._onTablesOpen, handleTooltipReferenceChange: this._onTooltipReferenceChange, view: this.view }));
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
function M(v) {
|
|
309
|
-
const e = v.closest(`[${
|
|
309
|
+
const e = v.closest(`[${E}]`)?.getAttribute(E);
|
|
310
310
|
return e === "base" || e === "reference" ? e : null;
|
|
311
311
|
}
|
|
312
312
|
O("arcgis-basemap-layer-list-next", ne);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../arcgis-catalog-layer-list/index.js";
|
|
2
|
-
import "../arcgis-table-list/index.js";
|
|
1
|
+
import "../arcgis-catalog-layer-list-next/index.js";
|
|
2
|
+
import "../arcgis-table-list-next/index.js";
|
|
3
3
|
import "@esri/calcite-components/components/calcite-tooltip";
|
|
4
4
|
import "@esri/calcite-components/components/calcite-notice";
|
|
5
5
|
import "@esri/calcite-components/components/calcite-label";
|
|
@@ -4,22 +4,22 @@ import type CatalogLayer from "@arcgis/core/layers/CatalogLayer.js";
|
|
|
4
4
|
import type KnowledgeGraphLayer from "@arcgis/core/layers/KnowledgeGraphLayer.js";
|
|
5
5
|
import type MapImageLayer from "@arcgis/core/layers/MapImageLayer.js";
|
|
6
6
|
import type TileLayer from "@arcgis/core/layers/TileLayer.js";
|
|
7
|
-
import type
|
|
8
|
-
import type
|
|
9
|
-
import type {
|
|
10
|
-
import type { TableListProperties } from "@arcgis/core/widgets/TableList.js";
|
|
7
|
+
import type CatalogItemCollection from "@arcgis/core/layers/list/CatalogItemCollection.js";
|
|
8
|
+
import type Item from "@arcgis/core/layers/list/Item.js";
|
|
9
|
+
import type { CatalogItemCollectionEvents } from "@arcgis/core/layers/list/CatalogItemCollection.js";
|
|
11
10
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
12
11
|
import type { useT9n } from "../../controllers/useT9n.js";
|
|
13
12
|
import type { VisibilityAppearance } from "../../utils/action-utils.js";
|
|
14
13
|
import type { setFilterPredicate } from "../../utils/layer-list-utils.js";
|
|
15
14
|
import type { ArcgisTableList } from "../arcgis-table-list/customElement.js";
|
|
16
15
|
import type { ArcgisReferenceElement, HeadingLevel } from "../types.js";
|
|
16
|
+
import type { CatalogLayerListViewModelEvents } from "@arcgis/core/widgets/CatalogLayerList/CatalogLayerListViewModel.js";
|
|
17
|
+
import type { TableListProperties } from "@arcgis/core/widgets/TableList.js";
|
|
17
18
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
18
19
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
19
|
-
import type {
|
|
20
|
-
import type { ListItemModifier } from "@arcgis/core/widgets/LayerList/types.js";
|
|
20
|
+
import type { State, ItemModifier } from "@arcgis/core/layers/list/types.js";
|
|
21
21
|
|
|
22
|
-
export interface CatalogLayerListEvents extends
|
|
22
|
+
export interface CatalogLayerListEvents extends CatalogItemCollectionEvents {}
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* The Catalog Layer List Next component provides a way to display a list of catalog layers and switch on/off their visibility.
|
|
@@ -30,9 +30,9 @@ export interface CatalogLayerListEvents extends CatalogLayerListViewModelEvents
|
|
|
30
30
|
export abstract class ArcgisCatalogLayerListNext extends LitElement {
|
|
31
31
|
/** @default false */
|
|
32
32
|
accessor autoDestroyDisabled: boolean;
|
|
33
|
-
accessor catalogItems: Collection<
|
|
33
|
+
accessor catalogItems: Collection<Item>;
|
|
34
34
|
accessor catalogLayer: CatalogLayer | null | undefined;
|
|
35
|
-
accessor catalogOptions:
|
|
35
|
+
accessor catalogOptions: CatalogLayerListOptions | undefined;
|
|
36
36
|
/** @default false */
|
|
37
37
|
accessor closed: boolean;
|
|
38
38
|
/** @default false */
|
|
@@ -72,7 +72,7 @@ export abstract class ArcgisCatalogLayerListNext extends LitElement {
|
|
|
72
72
|
accessor hideStatusIndicators: boolean;
|
|
73
73
|
accessor knowledgeGraphOptions: TableListProperties | undefined;
|
|
74
74
|
accessor label: string | undefined;
|
|
75
|
-
accessor listItemCreatedFunction:
|
|
75
|
+
accessor listItemCreatedFunction: ItemModifier | null | undefined;
|
|
76
76
|
/**
|
|
77
77
|
* 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.
|
|
78
78
|
*
|
|
@@ -117,12 +117,12 @@ export abstract class ArcgisCatalogLayerListNext extends LitElement {
|
|
|
117
117
|
}>;
|
|
118
118
|
/** @default 10 */
|
|
119
119
|
accessor minFilterItems: number;
|
|
120
|
-
accessor onCatalogOpen: ((item:
|
|
121
|
-
accessor onTablesOpen: ((item:
|
|
120
|
+
accessor onCatalogOpen: ((item: Item) => void) | undefined;
|
|
121
|
+
accessor onTablesOpen: ((item: Item) => void) | undefined;
|
|
122
122
|
get openedLayerLists(): Collection<FlowList>;
|
|
123
123
|
get openedLayers(): Collection<FlowLayer>;
|
|
124
124
|
accessor referenceElement: ArcgisReferenceElement | string | undefined;
|
|
125
|
-
accessor selectedItems: Collection<
|
|
125
|
+
accessor selectedItems: Collection<Item>;
|
|
126
126
|
/** @default "none" */
|
|
127
127
|
accessor selectionMode: "multiple" | "none" | "single-persist" | "single";
|
|
128
128
|
/**
|
|
@@ -161,7 +161,7 @@ export abstract class ArcgisCatalogLayerListNext extends LitElement {
|
|
|
161
161
|
* @default false
|
|
162
162
|
*/
|
|
163
163
|
accessor showTemporaryLayerIndicators: boolean;
|
|
164
|
-
get state():
|
|
164
|
+
get state(): State;
|
|
165
165
|
/** @default false */
|
|
166
166
|
accessor topLayerDisabled: boolean;
|
|
167
167
|
/**
|
|
@@ -194,6 +194,11 @@ export type FlowLayer = CatalogLayer | SubtablesLayer;
|
|
|
194
194
|
|
|
195
195
|
export type FlowList = ArcgisCatalogLayerListNext | ArcgisTableList;
|
|
196
196
|
|
|
197
|
+
export type CatalogLayerListOptions = Partial<Pick<ArcgisCatalogLayerListNext, "filterPlaceholder" | "hideStatusIndicators" | "minFilterItems" | "selectionMode" | "showErrors" | "showFilter" | "showTemporaryLayerIndicators" | "visibilityAppearance">>
|
|
198
|
+
& {
|
|
199
|
+
listItemCreatedFunction?: CatalogItemCollection["listItemCreatedFunction"];
|
|
200
|
+
};
|
|
201
|
+
|
|
197
202
|
export type CatalogLayerListMessageOverrides = ReturnType<typeof useT9n<{
|
|
198
203
|
componentLabel: string;
|
|
199
204
|
noItemsToDisplay: string;
|