@arcgis/map-components 5.2.0-next.23 → 5.2.0-next.24
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/{BXK5DVDN.js → 4BJSMXKG.js} +1 -1
- package/dist/cdn/5RXWVXJA.js +2 -0
- package/dist/cdn/BGWYOIKY.js +2 -0
- package/dist/cdn/BV6DN77M.js +2 -0
- package/dist/cdn/CXHORYLL.js +2 -0
- package/dist/cdn/{MJ2AUX7N.js → F7ZQA7S5.js} +1 -1
- package/dist/cdn/{HFDHHI2B.js → FHL4L2ZY.js} +1 -1
- package/dist/cdn/{2BESNRQI.js → FPX4MV2U.js} +1 -1
- package/dist/cdn/KLKFMZ7U.js +2 -0
- package/dist/cdn/NR6V3DTH.js +2 -0
- package/dist/cdn/P3U6DQN6.js +2 -0
- package/dist/cdn/{UA3OPWND.js → PGCAY24R.js} +1 -1
- package/dist/cdn/{T5KVNE3U.js → PKBVONJW.js} +1 -1
- package/dist/cdn/{Z257GCMR.js → Q4PNCUBK.js} +1 -1
- package/dist/cdn/{XVNU3EUN.js → UCEBZVNP.js} +1 -1
- package/dist/cdn/{XPD6NXPE.js → UGOZSFW2.js} +1 -1
- package/dist/cdn/VRWFDVP6.js +2 -0
- package/dist/cdn/VZVNKP6W.js +2 -0
- package/dist/cdn/ZAYZVEUD.js +2 -0
- package/dist/cdn/assets/basemap-layer-list-next/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/catalog-layer-list-next/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/table-list-next/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-indicator.js +1 -1
- package/dist/chunks/layer-list-item.js +6 -0
- package/dist/chunks/layer-list-utils.js +6 -6
- package/dist/chunks/slots.js +1 -1
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +241 -0
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +329 -0
- package/dist/components/arcgis-basemap-layer-list-next/index.d.ts +1 -0
- package/dist/components/arcgis-basemap-layer-list-next/index.js +14 -0
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +179 -0
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +263 -0
- package/dist/components/arcgis-catalog-layer-list-next/index.d.ts +1 -0
- package/dist/components/arcgis-catalog-layer-list-next/index.js +10 -0
- package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +6 -0
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +9 -9
- package/dist/components/arcgis-layer-list-next/customElement.js +67 -66
- package/dist/components/arcgis-layer-list-next/index.js +2 -2
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-presentation/customElement.d.ts +18 -0
- package/dist/components/arcgis-presentation/customElement.js +90 -88
- package/dist/components/arcgis-table-list-next/customElement.d.ts +235 -0
- package/dist/components/arcgis-table-list-next/customElement.js +200 -0
- package/dist/components/arcgis-table-list-next/index.d.ts +1 -0
- package/dist/components/arcgis-table-list-next/index.js +7 -0
- 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 +30 -0
- package/dist/loader.js +3 -0
- package/dist/types/lumina.d.ts +28 -0
- package/dist/types/preact.d.ts +31 -0
- package/dist/types/react.d.ts +34 -0
- package/dist/types/stencil.d.ts +28 -0
- package/dist/utils/layer-list-utils.d.ts +10 -0
- package/package.json +4 -4
- package/dist/cdn/BMJ6NYIZ.js +0 -2
- package/dist/cdn/QJSXXDUJ.js +0 -2
- package/dist/cdn/SFSNTAYE.js +0 -2
- package/dist/cdn/WLMFCIBM.js +0 -2
- package/dist/cdn/XTGCV3LY.js +0 -2
- /package/dist/cdn/{T4OPNOZJ.js → OTZMVWAB.js} +0 -0
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import { c as T } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as P, html as c } from "lit";
|
|
4
|
+
import { repeat as A } from "lit/directives/repeat.js";
|
|
5
|
+
import { keyed as y } from "lit/directives/keyed.js";
|
|
6
|
+
import { createReactiveMap as I } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
7
|
+
import f from "@arcgis/core/core/Collection.js";
|
|
8
|
+
import { on as x, watch as E } from "@arcgis/core/core/reactiveUtils.js";
|
|
9
|
+
import R from "@arcgis/core/widgets/CatalogLayerList/CatalogLayerListViewModel.js";
|
|
10
|
+
import O from "@arcgis/core/widgets/LayerList/ListItem.js";
|
|
11
|
+
import { createRef as z, ref as m } from "lit/directives/ref.js";
|
|
12
|
+
import { LitElement as N, createEvent as B, renderElement as L, safeClassMap as w, nothing as $ } from "@arcgis/lumina";
|
|
13
|
+
import { usePropertyChange as D } from "@arcgis/lumina/controllers";
|
|
14
|
+
import { classes as G } from "@arcgis/toolkit/dom";
|
|
15
|
+
import { generateGuid as S } from "@arcgis/toolkit/string";
|
|
16
|
+
import { u as Y } from "../../chunks/useT9n.js";
|
|
17
|
+
import { m as U } from "../../chunks/useViewModel.js";
|
|
18
|
+
import { s as b } from "../../chunks/component-utils.js";
|
|
19
|
+
import { g } from "../../chunks/globalCss.js";
|
|
20
|
+
import { g as k, b as j, r as H, s as V, e as Z } from "../../chunks/layer-list-utils.js";
|
|
21
|
+
import { ArcgisLayerListItem as q } from "../arcgis-layer-list-next/layer-list-item/customElement.js";
|
|
22
|
+
import { s as J } from "../../chunks/layer-list-item.js";
|
|
23
|
+
const K = P`@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}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{display:flex;min-height:var(--calcite-space-3xl);transition:max-height .25s ease-in-out;overflow-y:auto}:host>div{display:flex;width:100%}.filter-no-results{padding:var(--calcite-spacing-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-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-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}`, p = {
|
|
24
|
+
actionMenu: "action-menu",
|
|
25
|
+
actionGroup: "action-group",
|
|
26
|
+
filterNoResults: "filter-no-results",
|
|
27
|
+
item: "item",
|
|
28
|
+
itemActive: "item--active",
|
|
29
|
+
itemContentBottom: "item-content-bottom",
|
|
30
|
+
itemMessage: "item-message",
|
|
31
|
+
itemActionIcon: "item-action-icon",
|
|
32
|
+
itemActionImage: "item-action-image",
|
|
33
|
+
itemTemporaryIcon: "item-temporary-icon",
|
|
34
|
+
itemTableIcon: "item-table-icon",
|
|
35
|
+
statusIndicator: "status-indicator",
|
|
36
|
+
publishing: "publishing",
|
|
37
|
+
updating: "updating",
|
|
38
|
+
connectionStatus: "connection-status",
|
|
39
|
+
connectionStatusConnected: "connection-status--connected",
|
|
40
|
+
visibleToggle: "visible-toggle",
|
|
41
|
+
visibleIcon: "visible-icon"
|
|
42
|
+
}, Q = (h) => {
|
|
43
|
+
const e = h?.type;
|
|
44
|
+
return e === "knowledge-graph" || e === "map-image" || e === "tile";
|
|
45
|
+
}, W = (h) => h?.type === "catalog", C = "nested", X = f.ofType(O), ee = U(R);
|
|
46
|
+
class te extends N {
|
|
47
|
+
constructor() {
|
|
48
|
+
super(...arguments), this._rootGroupUid = `operational-${S()}`, this._openedLayersController = null, this._rootListRef = z(), this._destroying = !1, this._destroyed = !1, this.messages = Y(), this._clearActiveItem = () => {
|
|
49
|
+
this._activeItem = null;
|
|
50
|
+
}, this._setActiveItem = (e) => {
|
|
51
|
+
if (this.visibilityAppearance !== "default")
|
|
52
|
+
return;
|
|
53
|
+
const t = Array.from(e.composedPath()).find((i) => i.classList?.contains(p.item));
|
|
54
|
+
this._activeItem = k(t);
|
|
55
|
+
}, this._tooltipReferenceMap = I(), this._layerListMap = I(), this._setPanelFlowItemRef = (e) => {
|
|
56
|
+
e && this._focusPanelFlowItemNode(e);
|
|
57
|
+
}, this._setRootFlowItemRef = (e) => {
|
|
58
|
+
e && this._focusRootFlowItemNode(e);
|
|
59
|
+
}, this._setLayerFlowItemRef = (e) => {
|
|
60
|
+
e && this._focusLayerFlowItemNode(e);
|
|
61
|
+
}, this.viewModel = ee(this), this._activeItem = null, this._focusRootFlowItem = !1, this._focusPanelFlowItem = !1, this._focusLayerFlowItem = null, this.layerTablesEnabled = new f(["knowledge-graph"]), this.mapImageOptions = null, this.tileOptions = null, this.view = this.viewModel.view, this.hideCatalogLayerList = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.showFilter = !1, this.showHeading = !1, this.hideStatusIndicators = !1, this.showTemporaryLayerIndicators = !1, this.closed = !1, this.topLayerDisabled = !1, this.autoDestroyDisabled = !1, this.state = this.viewModel.state, this.openedLayers = new f(), this.openedLayerLists = new f(), this.collapsed = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.minFilterItems = j, this.selectedItems = new X(), this.selectionMode = "none", this.visibilityAppearance = "default", this.arcgisPropertyChange = D()("state"), this.arcgisReady = B();
|
|
62
|
+
}
|
|
63
|
+
static {
|
|
64
|
+
this.properties = { _catalogLayerList: 16, _activeItem: 16, _focusRootFlowItem: 16, _focusPanelFlowItem: 16, _focusLayerFlowItem: 16, _totalItems: 16, _filterEnabled: 16, _visibleItems: 16, _openedPanelItems: 16, _renderedOpenLayerFlowItems: 16, layerTablesEnabled: 16, mapImageOptions: 16, tileOptions: 16, view: 0, hideCatalogLayerList: 5, showCloseButton: 5, showCollapseButton: 5, showErrors: 5, showFilter: 5, showHeading: 5, hideStatusIndicators: 5, showTemporaryLayerIndicators: 5, closed: 5, topLayerDisabled: 5, autoDestroyDisabled: 5, referenceElement: 1, state: 32, openedLayers: 32, openedLayerLists: 32, catalogItems: 0, catalogLayer: 0, catalogOptions: 0, collapsed: 5, filterPlaceholder: 1, filterPredicate: 0, filterText: 1, headingLevel: 9, knowledgeGraphOptions: 0, label: 1, listItemCreatedFunction: 0, minFilterItems: 9, selectedItems: 0, selectionMode: 1, visibilityAppearance: 1, messageOverrides: 0, onCatalogOpen: 0, onTablesOpen: 0 };
|
|
65
|
+
}
|
|
66
|
+
static {
|
|
67
|
+
this.styles = [K, J];
|
|
68
|
+
}
|
|
69
|
+
get _totalItems() {
|
|
70
|
+
return this.catalogItems?.flatten((e) => e.children.filter((t) => t.layer?.type !== "catalog-dynamic-group")).length ?? 0;
|
|
71
|
+
}
|
|
72
|
+
get _filterEnabled() {
|
|
73
|
+
return this._totalItems >= this.minFilterItems && this.showFilter;
|
|
74
|
+
}
|
|
75
|
+
get _visibleItems() {
|
|
76
|
+
return this.catalogItems?.filter((e) => !e.hidden && (this.showErrors || !e.error));
|
|
77
|
+
}
|
|
78
|
+
get _openedPanelItems() {
|
|
79
|
+
return this._visibleItems.flatten((e) => e.children).filter(({ hidden: e, panel: t }) => !e && t?.open && !t.disabled && t.flowEnabled);
|
|
80
|
+
}
|
|
81
|
+
get _renderedOpenLayerFlowItems() {
|
|
82
|
+
const { openedLayers: e } = this;
|
|
83
|
+
return e.toArray().map((t, i) => this._renderLayerFlowItem(t, i === e.length - 1));
|
|
84
|
+
}
|
|
85
|
+
get catalogItems() {
|
|
86
|
+
return this.viewModel.catalogItems;
|
|
87
|
+
}
|
|
88
|
+
set catalogItems(e) {
|
|
89
|
+
this.viewModel.catalogItems = e;
|
|
90
|
+
}
|
|
91
|
+
get catalogLayer() {
|
|
92
|
+
return this.viewModel.catalogLayer;
|
|
93
|
+
}
|
|
94
|
+
set catalogLayer(e) {
|
|
95
|
+
this.viewModel.catalogLayer = e;
|
|
96
|
+
}
|
|
97
|
+
async destroy() {
|
|
98
|
+
this._destroying || this._destroyed || (this._destroying = !0, this._openedLayersController?.abort(), this._openedLayersController = null, await this.manager.destroy(), this.openedLayerLists.removeAll(), this.openedLayers.removeAll(), this._layerListMap.clear(), this._tooltipReferenceMap.clear(), this._destroyed = !0, this._destroying = !1);
|
|
99
|
+
}
|
|
100
|
+
loaded() {
|
|
101
|
+
this.manager.onLifecycle(() => [
|
|
102
|
+
x(() => this.openedLayers, "change", () => {
|
|
103
|
+
this._handleOpenedLayersChange();
|
|
104
|
+
}),
|
|
105
|
+
x(() => this.viewModel.catalogItems, "change", () => H(this.selectedItems)),
|
|
106
|
+
E(() => [this.filterPredicate, this._rootListRef.value], () => V(this._rootListRef.value, this.filterPredicate))
|
|
107
|
+
]);
|
|
108
|
+
}
|
|
109
|
+
disconnectedCallback() {
|
|
110
|
+
super.disconnectedCallback(), this._openedLayersController?.abort(), this._openedLayersController = null, !this.autoDestroyDisabled && !this._destroyed && !this._destroying && this.destroy();
|
|
111
|
+
}
|
|
112
|
+
loadDependencies() {
|
|
113
|
+
}
|
|
114
|
+
triggerAction(e, t) {
|
|
115
|
+
return this.viewModel.triggerAction(e, t);
|
|
116
|
+
}
|
|
117
|
+
async _createFlowList(e, t) {
|
|
118
|
+
const { _layerListMap: i } = this, o = i.get(e);
|
|
119
|
+
if (o)
|
|
120
|
+
return o;
|
|
121
|
+
const r = e.type === "catalog" ? await this._createCatalogLayerList(e) : await this._createTableList(e);
|
|
122
|
+
return t.aborted || !this.isConnected || this._destroyed ? (r?.destroy?.(), r) : (t.aborted || i.set(e, r), r);
|
|
123
|
+
}
|
|
124
|
+
async _handleOpenedLayersChange() {
|
|
125
|
+
if (!this.isConnected || this._destroyed)
|
|
126
|
+
return;
|
|
127
|
+
const { _layerListMap: e, openedLayers: t, openedLayerLists: i } = this;
|
|
128
|
+
this._openedLayersController?.abort();
|
|
129
|
+
const o = new AbortController(), { signal: r } = o;
|
|
130
|
+
this._openedLayersController = o, e.forEach((n, d) => {
|
|
131
|
+
t.includes(d) || (n?.destroy?.(), e.delete(d));
|
|
132
|
+
});
|
|
133
|
+
const s = await Promise.all(t.map((n) => this._createFlowList(n, r)));
|
|
134
|
+
if (r.aborted || !this.isConnected || this._destroyed)
|
|
135
|
+
return;
|
|
136
|
+
i.removeAll(), i.addMany(s);
|
|
137
|
+
const a = i.at(-1), l = a && "catalogLayer" in a ? a : void 0;
|
|
138
|
+
this._catalogLayerList !== l && (this._catalogLayerList = l);
|
|
139
|
+
}
|
|
140
|
+
_handlePanelFlowItemBack(e) {
|
|
141
|
+
e.open = !1, this._focusRootFlowItem = !0;
|
|
142
|
+
}
|
|
143
|
+
_focusRootFlowItemNode(e) {
|
|
144
|
+
this._focusRootFlowItem && (this._focusRootFlowItem = !1, b(e));
|
|
145
|
+
}
|
|
146
|
+
_focusPanelFlowItemNode(e) {
|
|
147
|
+
this._focusPanelFlowItem && (this._focusPanelFlowItem = !1, b(e));
|
|
148
|
+
}
|
|
149
|
+
_focusLayerFlowItemNode(e) {
|
|
150
|
+
this._focusLayerFlowItem === e.dataset.layerUid && (this._focusLayerFlowItem = null, b(e));
|
|
151
|
+
}
|
|
152
|
+
async _createCatalogLayerList(e) {
|
|
153
|
+
const { headingLevel: t, catalogOptions: i, view: o, referenceElement: r, filterPlaceholder: s, listItemCreatedFunction: a, minFilterItems: l, selectionMode: n, visibilityAppearance: d } = this;
|
|
154
|
+
return L(c`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder ?? s} .listItemCreatedFunction=${i?.listItemCreatedFunction ?? a} .minFilterItems=${i?.minFilterItems ?? l} .selectionMode=${i?.selectionMode ?? n} .visibilityAppearance=${i?.visibilityAppearance ?? d} .showErrors=${i?.visibleElements?.errors ?? this.showErrors} .showFilter=${i?.visibleElements?.filter ?? this.showFilter} .hideStatusIndicators=${i?.visibleElements?.statusIndicators ?? this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.visibleElements?.temporaryLayerIndicators ?? this.showTemporaryLayerIndicators} @arcgisReady=${(u) => u.stopPropagation()} .catalogLayer=${e} .view=${o} .referenceElement=${r} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`);
|
|
155
|
+
}
|
|
156
|
+
_getTableListParams(e) {
|
|
157
|
+
switch (e.type) {
|
|
158
|
+
case "knowledge-graph":
|
|
159
|
+
return { ...this.knowledgeGraphOptions, tables: e.tables };
|
|
160
|
+
case "map-image":
|
|
161
|
+
return {
|
|
162
|
+
...this.mapImageOptions,
|
|
163
|
+
tables: e.subtables
|
|
164
|
+
};
|
|
165
|
+
case "tile":
|
|
166
|
+
return {
|
|
167
|
+
...this.tileOptions,
|
|
168
|
+
tables: e.subtables
|
|
169
|
+
};
|
|
170
|
+
default:
|
|
171
|
+
return null;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
async _createTableList(e) {
|
|
175
|
+
const { headingLevel: t, selectionMode: i, referenceElement: o, view: r } = this, s = this._getTableListParams(e);
|
|
176
|
+
return L(c`<arcgis-table-list .headingLevel=${s?.headingLevel ?? t} .selectionMode=${s?.selectionMode ?? i} .collapsed=${s?.collapsed} .filterPlaceholder=${s?.filterPlaceholder} .filterText=${s?.filterText} .label=${s?.label} .tables=${s?.tables} .view=${r} .referenceElement=${o} @arcgisReady=${(a) => a.stopPropagation()}></arcgis-table-list>`);
|
|
177
|
+
}
|
|
178
|
+
_onTablesOpen(e) {
|
|
179
|
+
if (this.onTablesOpen) {
|
|
180
|
+
this.onTablesOpen(e);
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
const t = e.layer;
|
|
184
|
+
Q(t) && (this.openedLayers.push(t), this._focusLayerFlowItem = t.uid);
|
|
185
|
+
}
|
|
186
|
+
_onCatalogOpen(e) {
|
|
187
|
+
if (this.onCatalogOpen) {
|
|
188
|
+
this.onCatalogOpen(e);
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
const t = e.layer?.parent;
|
|
192
|
+
W(t) && (this.openedLayers.push(t), this._focusLayerFlowItem = e.layer?.uid);
|
|
193
|
+
}
|
|
194
|
+
_onTooltipReferenceChange(e, t) {
|
|
195
|
+
t ? this._tooltipReferenceMap.set(e, t) : this._tooltipReferenceMap.delete(e);
|
|
196
|
+
}
|
|
197
|
+
_onTriggerAction(e, t) {
|
|
198
|
+
this.triggerAction(e, t);
|
|
199
|
+
}
|
|
200
|
+
_handleCalciteListChange(e) {
|
|
201
|
+
const { selectionMode: t, selectedItems: i } = this;
|
|
202
|
+
if (t === "none")
|
|
203
|
+
return;
|
|
204
|
+
const o = e.target.selectedItems.map((r) => k(r)).filter(Boolean);
|
|
205
|
+
i.removeAll(), i.addMany(o);
|
|
206
|
+
}
|
|
207
|
+
render() {
|
|
208
|
+
const { state: e } = this, t = {
|
|
209
|
+
[g.hidden]: e === "loading",
|
|
210
|
+
[g.disabled]: e === "disabled"
|
|
211
|
+
};
|
|
212
|
+
return c`<div class=${w(G(g.widget, g.panel, t))}>${this._visibleItems?.length ? [this._renderItemTooltips(), this._renderItems()] : this._renderNoItems()}</div>`;
|
|
213
|
+
}
|
|
214
|
+
_renderItemTooltip(e) {
|
|
215
|
+
const { _tooltipReferenceMap: t, messages: i } = this;
|
|
216
|
+
return e?.layer ? c`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer.uid)} .topLayerDisabled=${this.topLayerDisabled}>${i.layerIncompatibleTooltip}</calcite-tooltip>` : null;
|
|
217
|
+
}
|
|
218
|
+
_renderItemTooltipNodes(e) {
|
|
219
|
+
return e.incompatible ? this._renderItemTooltip(e) : e.children?.filter((t) => !t.hidden).toArray().map((t) => this._renderItemTooltipNodes(t));
|
|
220
|
+
}
|
|
221
|
+
_renderItemTooltips() {
|
|
222
|
+
return this._visibleItems?.toArray().map((e) => this._renderItemTooltipNodes(e));
|
|
223
|
+
}
|
|
224
|
+
_renderNoItemsMessage() {
|
|
225
|
+
return c`<div slot=message>${this.messages.noItemsToDisplay}</div>`;
|
|
226
|
+
}
|
|
227
|
+
_renderNoItems() {
|
|
228
|
+
return c`<div class=${w(p.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`;
|
|
229
|
+
}
|
|
230
|
+
_renderPanelFlowItems() {
|
|
231
|
+
const { _openedPanelItems: e, openedLayers: t } = this;
|
|
232
|
+
return A(e.toArray(), ({ uid: i }) => i, (i, o) => {
|
|
233
|
+
const { uid: r, title: s, panel: a } = i, l = () => this._handlePanelFlowItemBack(a);
|
|
234
|
+
return c`<calcite-flow-item .description=${s} .heading=${a.title} .headingLevel=${this.headingLevel} .selected=${!t.length && o === e.length - 1} @calciteFlowItemBack=${(n) => {
|
|
235
|
+
n.preventDefault(), l();
|
|
236
|
+
}} ${m(this._setPanelFlowItemRef)}><arcgis-layer-list-item-panel .item=${i} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent slot=footer-actions width=full @click=${l}>Back</calcite-button></calcite-flow-item>`;
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
_renderItems() {
|
|
240
|
+
const { collapsed: e, _visibleItems: t, _filterEnabled: i, _rootGroupUid: o, showCloseButton: r, showCollapseButton: s, showHeading: a, selectionMode: l, filterText: n, filterPlaceholder: d, openedLayers: u, _openedPanelItems: F } = this, v = this.label ?? this.messages.componentLabel ?? "", M = [
|
|
241
|
+
c`<calcite-flow-item .closable=${r} .closed=${this.closed} .collapsed=${e} .collapsible=${s} .heading=${a ? v : void 0} .headingLevel=${this.headingLevel} .selected=${!u.length && !F.length} @calciteFlowItemClose=${() => this.closed = !0} ${m(this._setRootFlowItemRef)}><calcite-list data-layer-type=${o ?? $} .displayMode=${C} .filterEnabled=${i} .filterPlaceholder=${d} .filterProps=${Z} .filterText=${i ? n : ""} .group=${o} .label=${v} @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} selection-appearance=border .selectionMode=${l} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${(_) => this.filterText = _.currentTarget?.filterText ?? ""} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} ${m(this._rootListRef)}>${t?.toArray().map((_) => this._renderItem(_)) ?? []}${t?.length && i ? c`<div class=${w(p.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>` : null}</calcite-list></calcite-flow-item>`,
|
|
242
|
+
this._renderPanelFlowItems(),
|
|
243
|
+
this._renderedOpenLayerFlowItems
|
|
244
|
+
];
|
|
245
|
+
return this.closed ? null : y("root-flow", c`<calcite-flow>${M}</calcite-flow>`);
|
|
246
|
+
}
|
|
247
|
+
_renderLayerFlowItem(e, t) {
|
|
248
|
+
const { messages: i, openedLayers: o } = this, r = e.title || this.messages.untitledLayer;
|
|
249
|
+
return y(e.uid, c`<calcite-flow-item data-layer-uid=${e.uid ?? $} .description=${r} .heading=${i[e.type === "catalog" ? "catalogLayers" : "tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${(s) => {
|
|
250
|
+
s.preventDefault(), o.pop();
|
|
251
|
+
const a = o.at(-1);
|
|
252
|
+
a ? this._focusLayerFlowItem = a.uid : this._focusRootFlowItem = !0;
|
|
253
|
+
}} ${m(this._setLayerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`);
|
|
254
|
+
}
|
|
255
|
+
_renderItem(e, t, i) {
|
|
256
|
+
const { hideStatusIndicators: o, showCloseButton: r, showCollapseButton: s, showErrors: a, showFilter: l, showHeading: n, showTemporaryLayerIndicators: d } = this;
|
|
257
|
+
return y(e.uid, q({ activeItem: this._activeItem ?? void 0, css: { ...p, itemCatalogIcon: p.itemActionIcon }, displayMode: C, dragEnabled: !1, item: e, layerTablesEnabled: this.layerTablesEnabled, listModeDisabled: this.viewModel.listModeDisabled, messages: this.messages, parent: t, parentTitles: i, rootGroupUid: this._rootGroupUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, visibilityAppearance: this.visibilityAppearance, hideStatusIndicators: o, showCloseButton: r, showCollapseButton: s, showErrors: a, showFilter: l, showHeading: n, showTemporaryLayerIndicators: d, handleAction: this._onTriggerAction, handleCatalogOpen: this._onCatalogOpen, handleTablesOpen: this._onTablesOpen, handleTooltipReferenceChange: this._onTooltipReferenceChange, view: this.view }));
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
T("arcgis-catalog-layer-list-next", te);
|
|
261
|
+
export {
|
|
262
|
+
te as ArcgisCatalogLayerListNext
|
|
263
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import ".//index.js";
|
|
2
|
+
import "../arcgis-table-list/index.js";
|
|
3
|
+
import "@esri/calcite-components/components/calcite-tooltip";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-notice";
|
|
5
|
+
import "@esri/calcite-components/components/calcite-flow-item";
|
|
6
|
+
import "../arcgis-layer-list-item-panel/index.js";
|
|
7
|
+
import "@esri/calcite-components/components/calcite-button";
|
|
8
|
+
import "@esri/calcite-components/components/calcite-list";
|
|
9
|
+
import "@esri/calcite-components/components/calcite-flow";
|
|
10
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* * Describes the current state of the list items in the [CatalogLayerListViewModel](https://developers.arcgis.com/javascript/latest/references/core/widgets/CatalogLayerList/CatalogLayerListViewModel/).
|
|
3
|
+
*
|
|
4
|
+
* @since 5.2
|
|
5
|
+
*/
|
|
6
|
+
export type CatalogLayerListState = "disabled" | "loading" | "ready";
|
|
@@ -117,7 +117,7 @@ c([
|
|
|
117
117
|
o = c([
|
|
118
118
|
D("map-components.expand.ExpandViewModel")
|
|
119
119
|
], o);
|
|
120
|
-
const S = y`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto;--calcite-action-corner-radius: 0}.action{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-spacing-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`, f = "chevrons-left", x = "chevrons-right", V = I(o);
|
|
120
|
+
const S = y`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto;--calcite-action-corner-radius: 0}.action{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-spacing-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`, f = "chevrons-left", x = "chevrons-right", V = I(o);
|
|
121
121
|
class z extends k {
|
|
122
122
|
constructor() {
|
|
123
123
|
super(...arguments), this.popoverEl = g(), this.messages = E({}), this.viewModel = V(this), this.toggleActionEl = g(), this.view = this.viewModel.view, this.state = this.viewModel.state, this.autoDestroyDisabled = !1, this.autoCollapse = this.viewModel.autoCollapse, this.closeOnEscDisabled = !1, this.content = "", this.expanded = this.viewModel.expanded, this.expandTooltip = "", this.collapseTooltip = "", this.focusTrapDisabled = !1, this.group = this.viewModel.group, this.iconNumber = 0, this.mode = "auto", this.topLayerDisabled = !1, this.visualScale = "m", this.arcgisPropertyChange = T()("expanded"), this.arcgisReady = H();
|
|
@@ -6,10 +6,10 @@ import type { VisibilityAppearance } from "../../utils/action-utils.js";
|
|
|
6
6
|
import type { CanSortFunction, TableSupportedLayers } from "../../utils/layer-list-utils.js";
|
|
7
7
|
import type { LayerListViewModelEvents } from "@arcgis/core/widgets/LayerList/LayerListViewModel.js";
|
|
8
8
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
9
|
-
import type {
|
|
10
|
-
import type { ArcgisTableList } from "../arcgis-table-list/customElement.js";
|
|
9
|
+
import type { ArcgisTableListNext } from "../arcgis-table-list-next/customElement.js";
|
|
11
10
|
import type { ArcgisReferenceElement, HeadingLevel, IconName } from "../types.js";
|
|
12
11
|
import type { CatalogLayerListParams, FlowLayer, TableListParams } from "./types.js";
|
|
12
|
+
import type { ArcgisCatalogLayerListNext } from "../arcgis-catalog-layer-list-next/customElement.js";
|
|
13
13
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
14
14
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
15
15
|
import type { ListItemModifier, State } from "@arcgis/core/widgets/LayerList/types.js";
|
|
@@ -93,7 +93,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
93
93
|
* layerListHandles.push(catalogSelectionWatchHandle);
|
|
94
94
|
* ```
|
|
95
95
|
*/
|
|
96
|
-
get catalogLayerList():
|
|
96
|
+
get catalogLayerList(): ArcgisCatalogLayerListNext | undefined;
|
|
97
97
|
/**
|
|
98
98
|
* [CatalogLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CatalogLayer/) specific properties.
|
|
99
99
|
* Catalog layers will display their [CatalogLayer#dynamicGroupLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CatalogLayer/#dynamicGroupLayer) as an expandable [arcgis-catalog-layer-list](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list/) in the Layer List component.
|
|
@@ -223,11 +223,11 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
223
223
|
/**
|
|
224
224
|
* [KnowledgeGraphLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/KnowledgeGraphLayer/) specific properties.
|
|
225
225
|
* [KnowledgeGraphLayer#tables](https://developers.arcgis.com/javascript/latest/references/core/layers/KnowledgeGraphLayer/#tables)
|
|
226
|
-
* as an expandable [arcgis-table-list](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-table-list/) in the Layer List component and can be accessed with the [tableList](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#tableList) property.
|
|
226
|
+
* as an expandable [arcgis-table-list-next](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-table-list-next/) in the Layer List component and can be accessed with the [tableList](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#tableList) property.
|
|
227
227
|
* This tables list item will only be displayed when knowledge graph layers with tables are loaded in the map.
|
|
228
|
-
* These are the properties that are used to configure the [arcgis-table-list](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-table-list/).
|
|
228
|
+
* These are the properties that are used to configure the [arcgis-table-list-next](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-table-list-next/).
|
|
229
229
|
*
|
|
230
|
-
* @see [arcgis-table-list](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-table-list/) for more details on the table list and its properties.
|
|
230
|
+
* @see [arcgis-table-list-next](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-table-list-next/) for more details on the table list and its properties.
|
|
231
231
|
* @example
|
|
232
232
|
* ```js
|
|
233
233
|
* layerListElement.knowledgeGraphOptions = {
|
|
@@ -519,12 +519,12 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
519
519
|
*/
|
|
520
520
|
get state(): State;
|
|
521
521
|
/**
|
|
522
|
-
* The [arcgis-table-list](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-table-list/) component instance that displays the tables associated with a [KnowledgeGraphLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/KnowledgeGraphLayer/).
|
|
522
|
+
* The [arcgis-table-list-next](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-table-list-next/) component instance that displays the tables associated with a [KnowledgeGraphLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/KnowledgeGraphLayer/).
|
|
523
523
|
* The table list will be displayed as an expandable list item.
|
|
524
524
|
* This property is set when a knowledge graph layer's tables list item is expanded in the LayerList.
|
|
525
525
|
* Otherwise, it is `null`.
|
|
526
526
|
* This list item will only be displayed when knowledge graph layers with tables are loaded in the map and will be displayed as a child of the knowledge graph layer.
|
|
527
|
-
* This property is useful for listening to the [arcgisTriggerAction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-table-list/#event-arcgisTriggerAction) event and managing selections in knowledge graph tables.
|
|
527
|
+
* This property is useful for listening to the [arcgisTriggerAction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-table-list-next/#event-arcgisTriggerAction) event and managing selections in knowledge graph tables.
|
|
528
528
|
*
|
|
529
529
|
* 
|
|
530
530
|
*
|
|
@@ -552,7 +552,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
552
552
|
* );
|
|
553
553
|
* layerListHandles.push(tableSelectionWatchHandle);
|
|
554
554
|
*/
|
|
555
|
-
get tableList():
|
|
555
|
+
get tableList(): ArcgisTableListNext | undefined;
|
|
556
556
|
/**
|
|
557
557
|
* The view associated with the component.
|
|
558
558
|
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-layer-list-next component will be associated with a map or scene component rather than using the `view` property.
|