@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
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as P } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
3
|
+
import { css as D, html as d } from "lit";
|
|
4
4
|
import { keyed as w } from "lit/directives/keyed.js";
|
|
5
|
-
import { repeat as
|
|
6
|
-
import
|
|
7
|
-
import { classes as
|
|
5
|
+
import { repeat as O } from "lit/directives/repeat.js";
|
|
6
|
+
import R from "@arcgis/core/widgets/LayerList/LayerListViewModel.js";
|
|
7
|
+
import { classes as z } from "@arcgis/toolkit/dom";
|
|
8
8
|
import { generateGuid as B } from "@arcgis/toolkit/string";
|
|
9
|
-
import { createRef as
|
|
9
|
+
import { createRef as b, ref as L } from "lit/directives/ref.js";
|
|
10
10
|
import { u as U } from "../../chunks/useT9n.js";
|
|
11
11
|
import { m as S } from "../../chunks/useViewModel.js";
|
|
12
|
-
import { g as
|
|
13
|
-
import { c as
|
|
14
|
-
import { g as
|
|
15
|
-
import
|
|
16
|
-
import { on as
|
|
17
|
-
import { LitElement as J, createEvent as K, renderElement as E, safeClassMap as
|
|
12
|
+
import { g as I } from "../../chunks/globalCss.js";
|
|
13
|
+
import { c as _ } from "../../chunks/layer-list-item-indicator.js";
|
|
14
|
+
import { g as h, a as C, m as N, b as G, r as Y, s as H, c as j, d as V, e as Z } from "../../chunks/layer-list-utils.js";
|
|
15
|
+
import p from "@arcgis/core/core/Collection.js";
|
|
16
|
+
import { on as k, watch as q } from "@arcgis/core/core/reactiveUtils.js";
|
|
17
|
+
import { LitElement as J, createEvent as K, renderElement as E, safeClassMap as x, nothing as T } from "@arcgis/lumina";
|
|
18
18
|
import { usePropertyChange as Q } from "@arcgis/lumina/controllers";
|
|
19
19
|
import { reEmitEvent as W } from "@arcgis/lumina/controllers/accessor";
|
|
20
20
|
import "@arcgis/toolkit/function";
|
|
21
21
|
import { u as X } from "../../chunks/useCloseEvent.js";
|
|
22
22
|
import { ArcgisLayerListItem as ee } from "./layer-list-item/customElement.js";
|
|
23
|
-
const te = F`.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}`, ie = F`@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}`, M = "nested", re = S(O);
|
|
24
|
-
class oe extends J {
|
|
23
|
+
import { s as te } from "../../chunks/layer-list-item.js";
|
|
24
|
+
const ie = D`@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}`, M = "nested", re = S(R);
|
|
25
|
+
class se extends J {
|
|
25
26
|
constructor() {
|
|
26
|
-
super(...arguments), this._lastDragDetail = null, this._rootListRef =
|
|
27
|
-
const r =
|
|
27
|
+
super(...arguments), this._lastDragDetail = null, this._rootListRef = b(), this._layerFlowItemRef = b(), this._panelFlowItemRef = b(), this._selectedDragItemLayerUid = null, this._rootGroupUid = `operational-${B()}`, this._openedLayersController = null, this.messages = U(), this._canMove = ({ dragEl: e, fromEl: t, toEl: i }, s) => {
|
|
28
|
+
const r = s === "pull" ? this.listItemCanGiveFunction : this.listItemCanReceiveFunction, a = h(e, this.operationalItems);
|
|
28
29
|
if (!a?.sortable)
|
|
29
30
|
return !1;
|
|
30
|
-
const
|
|
31
|
+
const o = this._resolveListContainer(t), n = this._resolveListContainer(i), l = this._getContainerItem(o), m = C(o), g = this._getContainerItem(n), f = C(n), y = !!m && !!f && m === f, u = {
|
|
31
32
|
selected: a,
|
|
32
33
|
from: l,
|
|
33
|
-
to:
|
|
34
|
-
},
|
|
35
|
-
return
|
|
34
|
+
to: g
|
|
35
|
+
}, v = o?.group, c = n?.group, F = l?.layer?.type ?? "", A = g?.layer?.type ?? "", $ = /* @__PURE__ */ new Set(["map-image", "catalog", "knowledge-graph"]);
|
|
36
|
+
return v && c && typeof r == "function" ? r(u) : y && !$.has(F) && !$.has(A) && a?.layer?.type !== "sublayer";
|
|
36
37
|
}, this._onCatalogOpen = (e) => {
|
|
37
38
|
this.openedLayers.push(e.layer?.parent);
|
|
38
39
|
}, this._onTablesOpen = (e) => {
|
|
@@ -44,7 +45,7 @@ class oe extends J {
|
|
|
44
45
|
}, this._setActiveItem = (e) => {
|
|
45
46
|
if (this.visibilityAppearance !== "default")
|
|
46
47
|
return;
|
|
47
|
-
const t = Array.from(e.composedPath()).find((
|
|
48
|
+
const t = Array.from(e.composedPath()).find((s) => s.classList?.contains(_.item)), i = h(t, this.operationalItems);
|
|
48
49
|
this._activeItem = i;
|
|
49
50
|
}, this.viewModel = re(this), this.arcgisClose = X(this), this._activeItem = null, this._onTooltipReferenceChange = (e, t) => {
|
|
50
51
|
t ? this._tooltipReferenceMap.set(e, t) : this._tooltipReferenceMap.delete(e);
|
|
@@ -52,7 +53,7 @@ class oe extends J {
|
|
|
52
53
|
this._selectedDragItemLayerUid = e;
|
|
53
54
|
}, this._onTriggerAction = (e, t) => {
|
|
54
55
|
this.triggerAction(e, t);
|
|
55
|
-
}, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.layerTablesEnabled = new
|
|
56
|
+
}, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.layerTablesEnabled = new p(["knowledge-graph"]), this.mapImageOptions = null, this.openedLayerLists = new p(), this.tileOptions = null, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.closed = !1, this.icon = "layers", this.collapsed = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.layerTablesAvailable = new p(["knowledge-graph"]), this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.minDragEnabledItems = N, this.minFilterItems = G, this.openedLayers = new p(), this.operationalItems = this.viewModel.operationalItems, this.selectedItems = new p(), this.selectionMode = "none", this.visibilityAppearance = "default", this.hideCatalogLayerList = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.showFilter = !1, this.showHeading = !1, this.hideStatusIndicators = !1, this.showTemporaryLayerIndicators = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = Q()("state"), this.arcgisReady = K(), this.arcgisTriggerAction = W(() => this.viewModel, "trigger-action");
|
|
56
57
|
}
|
|
57
58
|
static {
|
|
58
59
|
this.properties = { _catalogLayerList: 16, _tableList: 16, _tooltipReferenceMap: 16, _layerListMap: 16, _totalItems: 16, _visibleItems: 16, _openedPanelItems: 16, _dragEnabled: 16, _filterEnabled: 16, layerTablesEnabled: 16, mapImageOptions: 16, openedLayerLists: 16, tileOptions: 16, _renderedOpenLayerFlowItems: 16, view: 0, autoDestroyDisabled: 5, closed: 5, referenceElement: 1, icon: 1, catalogLayerList: 32, catalogOptions: 0, collapsed: 5, dragEnabled: 5, filterPlaceholder: 1, filterPredicate: 0, filterText: 1, headingLevel: 9, knowledgeGraphOptions: 0, layerTablesAvailable: 0, listItemCanGiveFunction: 0, listItemCanReceiveFunction: 0, listItemCreatedFunction: 0, minDragEnabledItems: 9, minFilterItems: 9, openedLayers: 32, operationalItems: 0, selectedItems: 0, selectionMode: 1, tableList: 32, visibilityAppearance: 1, hideCatalogLayerList: 5, showCloseButton: 5, showCollapseButton: 5, showErrors: 5, showFilter: 5, showHeading: 5, hideStatusIndicators: 5, showTemporaryLayerIndicators: 5, messageOverrides: 0, label: 1, state: 32 };
|
|
@@ -90,11 +91,11 @@ class oe extends J {
|
|
|
90
91
|
}
|
|
91
92
|
loaded() {
|
|
92
93
|
this.manager.onLifecycle(() => [
|
|
93
|
-
|
|
94
|
+
k(() => this.openedLayers, "change", () => {
|
|
94
95
|
this._handleOpenedLayersChange();
|
|
95
96
|
}, { initial: !0 }),
|
|
96
|
-
|
|
97
|
-
q(() => [this.filterPredicate, this._rootListRef.value], () =>
|
|
97
|
+
k(() => this.viewModel.operationalItems, "change", () => Y(this.selectedItems), { initial: !0 }),
|
|
98
|
+
q(() => [this.filterPredicate, this._rootListRef.value], () => H(this._rootListRef.value, this.filterPredicate, this.operationalItems))
|
|
98
99
|
]);
|
|
99
100
|
}
|
|
100
101
|
triggerAction(e, t) {
|
|
@@ -120,38 +121,38 @@ class oe extends J {
|
|
|
120
121
|
continue;
|
|
121
122
|
if (i.uid === e)
|
|
122
123
|
return i;
|
|
123
|
-
const
|
|
124
|
-
t.push(...
|
|
124
|
+
const s = i.children?.toArray() ?? [];
|
|
125
|
+
t.push(...s);
|
|
125
126
|
}
|
|
126
127
|
return null;
|
|
127
128
|
}
|
|
128
129
|
async _createFlowList(e, t) {
|
|
129
|
-
const { _layerListMap: i } = this,
|
|
130
|
-
if (
|
|
131
|
-
return
|
|
130
|
+
const { _layerListMap: i } = this, s = i.get(e);
|
|
131
|
+
if (s)
|
|
132
|
+
return s;
|
|
132
133
|
const r = e.type === "catalog" ? await this._createCatalogLayerList(e) : await this._createTableList(e);
|
|
133
134
|
return t.aborted || i.set(e, r), r;
|
|
134
135
|
}
|
|
135
136
|
async _handleOpenedLayersChange() {
|
|
136
137
|
const { _layerListMap: e, openedLayers: t, openedLayerLists: i } = this;
|
|
137
138
|
this._openedLayersController?.abort();
|
|
138
|
-
const
|
|
139
|
-
this._openedLayersController =
|
|
139
|
+
const s = new AbortController(), { signal: r } = s;
|
|
140
|
+
this._openedLayersController = s, e.forEach((n, l) => {
|
|
140
141
|
t.includes(l) || (n?.destroy?.(), e.delete(l));
|
|
141
142
|
});
|
|
142
143
|
const a = await Promise.all(t.map((n) => this._createFlowList(n, r)));
|
|
143
144
|
if (r.aborted)
|
|
144
145
|
return;
|
|
145
146
|
i.removeAll(), i.addMany(a);
|
|
146
|
-
const
|
|
147
|
-
|
|
147
|
+
const o = i.at(-1);
|
|
148
|
+
o ? "catalogLayer" in o ? (this._catalogLayerList = o, this._tableList = void 0) : (this._catalogLayerList = void 0, this._tableList = o) : (this._catalogLayerList = void 0, this._tableList = void 0);
|
|
148
149
|
}
|
|
149
150
|
_destroyOpenedLayerLists() {
|
|
150
151
|
this.openedLayerLists.destroyAll(), this.openedLayers.removeAll(), this._layerListMap.clear();
|
|
151
152
|
}
|
|
152
153
|
async _createCatalogLayerList(e) {
|
|
153
|
-
const { headingLevel: t, catalogOptions: i, filterPlaceholder:
|
|
154
|
-
return E(d`<arcgis-catalog-layer-list .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder ??
|
|
154
|
+
const { headingLevel: t, catalogOptions: i, filterPlaceholder: s, listItemCreatedFunction: r, minFilterItems: a, selectionMode: o, visibilityAppearance: n } = this;
|
|
155
|
+
return E(d`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder ?? s} .listItemCreatedFunction=${i?.listItemCreatedFunction ?? r} .minFilterItems=${i?.minFilterItems ?? a} .selectionMode=${i?.selectionMode ?? o} .visibilityAppearance=${i?.visibilityAppearance ?? n} .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=${(l) => l.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`);
|
|
155
156
|
}
|
|
156
157
|
_getTableListParams(e) {
|
|
157
158
|
switch (e.type) {
|
|
@@ -172,27 +173,27 @@ class oe extends J {
|
|
|
172
173
|
}
|
|
173
174
|
}
|
|
174
175
|
async _createTableList(e) {
|
|
175
|
-
const { headingLevel: t, selectionMode: i, dragEnabled:
|
|
176
|
-
return E(d`<arcgis-table-list .headingLevel=${r?.headingLevel ?? t} .selectionMode=${r?.selectionMode ?? i} .dragEnabled=${r?.dragEnabled ??
|
|
176
|
+
const { headingLevel: t, selectionMode: i, dragEnabled: s } = this, r = this._getTableListParams(e);
|
|
177
|
+
return E(d`<arcgis-table-list-next .headingLevel=${r?.headingLevel ?? t} .selectionMode=${r?.selectionMode ?? i} .dragEnabled=${r?.dragEnabled ?? s} .collapsed=${r?.collapsed} .filterPlaceholder=${r?.filterPlaceholder} .filterText=${r?.filterText} .icon=${r?.icon ?? void 0} .label=${r?.label ?? void 0} .listItemCreatedFunction=${r?.listItemCreatedFunction} .tables=${r?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${(a) => a.stopPropagation()}></arcgis-table-list-next>`);
|
|
177
178
|
}
|
|
178
179
|
_handlePanelFlowItemBack(e) {
|
|
179
180
|
e.open = !1;
|
|
180
181
|
}
|
|
181
|
-
_moveLayerFromChildList({ toEl: e, fromEl: t, dragEl: i, newIndex:
|
|
182
|
-
const r = this._resolveListContainer(e), a = this._resolveListContainer(t),
|
|
183
|
-
|
|
182
|
+
_moveLayerFromChildList({ toEl: e, fromEl: t, dragEl: i, newIndex: s }) {
|
|
183
|
+
const r = this._resolveListContainer(e), a = this._resolveListContainer(t), o = h(i, this.operationalItems), n = this._getContainerItem(r), l = this._getContainerItem(a);
|
|
184
|
+
s == null || !o || this.viewModel.moveListItem(o, l, n, s);
|
|
184
185
|
}
|
|
185
186
|
_onCalciteListDragEnd(e) {
|
|
186
|
-
const { fromEl: t, toEl: i, dragEl:
|
|
187
|
+
const { fromEl: t, toEl: i, dragEl: s, oldIndex: r } = e;
|
|
187
188
|
if (t !== i) {
|
|
188
|
-
|
|
189
|
+
s.remove();
|
|
189
190
|
return;
|
|
190
191
|
}
|
|
191
|
-
r == null || !t || !
|
|
192
|
+
r == null || !t || !s || t.insertBefore(s, t.children[r]);
|
|
192
193
|
}
|
|
193
194
|
_onCalciteListOrderChange(e) {
|
|
194
|
-
const { _lastDragDetail: t } = this, { dragEl: i, newIndex:
|
|
195
|
-
if (!(!r || !a ||
|
|
195
|
+
const { _lastDragDetail: t } = this, { dragEl: i, newIndex: s } = e, r = this._resolveListContainer(e.fromEl), a = this._resolveListContainer(e.toEl), o = t?.newIndex === s && t?.dragEl === i && t?.toEl === a && t?.fromEl === r;
|
|
196
|
+
if (!(!r || !a || o)) {
|
|
196
197
|
if (this._lastDragDetail = {
|
|
197
198
|
...e,
|
|
198
199
|
fromEl: r,
|
|
@@ -206,16 +207,16 @@ class oe extends J {
|
|
|
206
207
|
toEl: a,
|
|
207
208
|
fromEl: r,
|
|
208
209
|
dragEl: i,
|
|
209
|
-
newIndex:
|
|
210
|
+
newIndex: s
|
|
210
211
|
});
|
|
211
212
|
}
|
|
212
213
|
}
|
|
213
214
|
_sortLayers(e, t) {
|
|
214
215
|
if (e)
|
|
215
216
|
if (e === this._rootListRef.value)
|
|
216
|
-
|
|
217
|
+
j(this.el.view?.map?.layers, t);
|
|
217
218
|
else {
|
|
218
|
-
const i =
|
|
219
|
+
const i = h(e, this.operationalItems);
|
|
219
220
|
if (!i)
|
|
220
221
|
return;
|
|
221
222
|
V(i, t);
|
|
@@ -225,15 +226,15 @@ class oe extends J {
|
|
|
225
226
|
const { selectionMode: t, selectedItems: i } = this;
|
|
226
227
|
if (t === "none")
|
|
227
228
|
return;
|
|
228
|
-
const r = e.target.selectedItems.map((a) =>
|
|
229
|
+
const r = e.target.selectedItems.map((a) => h(a, this.operationalItems)).filter(Boolean);
|
|
229
230
|
i.removeAll(), i.addMany(r);
|
|
230
231
|
}
|
|
231
232
|
render() {
|
|
232
233
|
const { _visibleItems: e, state: t } = this, i = {
|
|
233
|
-
[
|
|
234
|
-
[
|
|
234
|
+
[I.hidden]: t === "loading",
|
|
235
|
+
[I.disabled]: t === "disabled"
|
|
235
236
|
};
|
|
236
|
-
return d`<div class=${
|
|
237
|
+
return d`<div class=${x(z(I.widget, i))}>${e?.length ? [this._renderItemTooltips(), this._renderItems()] : this._renderNoItems()}</div>`;
|
|
237
238
|
}
|
|
238
239
|
_renderItemTooltip(e) {
|
|
239
240
|
const { _tooltipReferenceMap: t, messages: i } = this;
|
|
@@ -252,36 +253,36 @@ class oe extends J {
|
|
|
252
253
|
return d`<div slot=message>${this.messages.noItemsToDisplay}</div>`;
|
|
253
254
|
}
|
|
254
255
|
_renderNoItems() {
|
|
255
|
-
return d`<div class=${
|
|
256
|
+
return d`<div class=${x(_.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`;
|
|
256
257
|
}
|
|
257
258
|
_renderLayerFlowItem(e, t) {
|
|
258
|
-
const { messages: i, openedLayers:
|
|
259
|
+
const { messages: i, openedLayers: s } = this, r = e.title || this.messages.untitledLayer;
|
|
259
260
|
return w(e?.uid ?? r, d`<calcite-flow-item data-layer-uid=${e?.uid ?? "" ?? T} .description=${r} .heading=${i[e.type === "catalog" ? "catalogLayers" : "tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${(a) => {
|
|
260
|
-
a.preventDefault(),
|
|
261
|
-
}} ${
|
|
261
|
+
a.preventDefault(), s.pop(), s.at(-1) && this._layerFlowItemRef.value?.setFocus();
|
|
262
|
+
}} ${L(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`);
|
|
262
263
|
}
|
|
263
264
|
_renderPanelFlowItems() {
|
|
264
265
|
const { _openedPanelItems: e, openedLayers: t } = this;
|
|
265
|
-
return
|
|
266
|
-
const { panel: a, title:
|
|
267
|
-
return d`<calcite-flow-item .description=${
|
|
266
|
+
return O(e.toArray(), (s) => s.uid, (s, r) => {
|
|
267
|
+
const { panel: a, title: o } = s, n = () => this._handlePanelFlowItemBack(a);
|
|
268
|
+
return d`<calcite-flow-item .description=${o} .heading=${a.title} .headingLevel=${this.headingLevel} .selected=${!t.length && r === e.length - 1} @calciteFlowItemBack=${(l) => {
|
|
268
269
|
l.preventDefault(), n();
|
|
269
|
-
}} ${
|
|
270
|
+
}} ${L(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${s} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${n} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`;
|
|
270
271
|
});
|
|
271
272
|
}
|
|
272
273
|
_renderItems() {
|
|
273
|
-
const { collapsed: e, _visibleItems: t, _openedPanelItems: i, _filterEnabled:
|
|
274
|
-
d`<calcite-flow-item .closable=${a} .closed=${this.closed} .collapsed=${e} .collapsible=${
|
|
274
|
+
const { collapsed: e, _visibleItems: t, _openedPanelItems: i, _filterEnabled: s, _rootGroupUid: r, showCloseButton: a, showCollapseButton: o, showHeading: n, _dragEnabled: l, selectionMode: m, filterText: g, openedLayers: f, filterPlaceholder: y, messages: u } = this, v = [
|
|
275
|
+
d`<calcite-flow-item .closable=${a} .closed=${this.closed} .collapsed=${e} .collapsible=${o} .heading=${n ? u.componentLabel : void 0} .headingLevel=${this.headingLevel} .selected=${!f.length && !i.length} @calciteFlowItemClose=${() => this.closed = !1}><calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${(c) => this._canMove(c, "pull")} .canPut=${(c) => this._canMove(c, "put")} data-layer-type=${r ?? T} .displayMode=${M} .dragEnabled=${l} .filterEnabled=${s} .filterPlaceholder=${y} .filterProps=${Z} .filterText=${s ? g : ""} .group=${r} .label=${u.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${m} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${(c) => this.filterText = c.currentTarget?.filterText ?? ""} @calciteListOrderChange=${(c) => this._onCalciteListOrderChange(c.detail)} @calciteListDragEnd=${(c) => this._onCalciteListDragEnd(c.detail)} ${L(this._rootListRef)}>${t?.toArray().map((c) => this._renderItem(c)) ?? []}${t?.length && s ? d`<div class=${x(_.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>` : null}</calcite-list></calcite-flow-item>`,
|
|
275
276
|
this._renderPanelFlowItems(),
|
|
276
277
|
this._renderedOpenLayerFlowItems
|
|
277
278
|
];
|
|
278
|
-
return this.closed ? null : w("root-flow", d`<calcite-flow>${
|
|
279
|
+
return this.closed ? null : w("root-flow", d`<calcite-flow>${v}</calcite-flow>`);
|
|
279
280
|
}
|
|
280
281
|
_renderItem(e, t, i) {
|
|
281
|
-
return w(e.uid, ee({ activeItem: this._activeItem, canMove: this._canMove, css:
|
|
282
|
+
return w(e.uid, ee({ activeItem: this._activeItem, canMove: this._canMove, css: _, displayMode: M, dragEnabled: this.dragEnabled, hideStatusIndicators: this.hideStatusIndicators, hideCatalogLayerList: this.hideCatalogLayerList, item: e, messages: this.messages, layerTablesEnabled: this.layerTablesEnabled, listModeDisabled: this.viewModel.listModeDisabled, operationalItems: this.operationalItems, parent: t, parentTitles: i, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, setCurrentActiveItem: this._setCurrentActiveItem, showTemporaryLayerIndicators: this.showTemporaryLayerIndicators, showCloseButton: this.showCloseButton, showCollapseButton: this.showCollapseButton, showErrors: this.showErrors, showHeading: this.showHeading, showFilter: this.showFilter, clearActiveItem: this._clearActiveItem, visibilityAppearance: this.visibilityAppearance, handleAction: this._onTriggerAction, handleCatalogOpen: this._onCatalogOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, handleTablesOpen: this._onTablesOpen, handleTooltipReferenceChange: this._onTooltipReferenceChange, view: this.view }));
|
|
282
283
|
}
|
|
283
284
|
}
|
|
284
|
-
P("arcgis-layer-list-next",
|
|
285
|
+
P("arcgis-layer-list-next", se);
|
|
285
286
|
export {
|
|
286
|
-
|
|
287
|
+
se as ArcgisLayerListNext
|
|
287
288
|
};
|
|
@@ -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-flow-item";
|
|
@@ -6,7 +6,7 @@ import { safeClassMap as d, safeStyleMap as Se, nothing as r } from "@arcgis/lum
|
|
|
6
6
|
import { classes as F } from "@arcgis/toolkit/dom";
|
|
7
7
|
import { createRef as Z, ref as ee } from "lit/directives/ref.js";
|
|
8
8
|
import { g as Te, a as le } from "../../../chunks/action-utils.js";
|
|
9
|
-
import {
|
|
9
|
+
import { f as xe, h as te, l as Me, j as Le, k as Ee, n as ke, g as we } from "../../../chunks/layer-list-utils.js";
|
|
10
10
|
import { s as Pe } from "../../../chunks/component-utils.js";
|
|
11
11
|
const ne = /* @__PURE__ */ new Map();
|
|
12
12
|
function ce(i) {
|
|
@@ -131,9 +131,27 @@ export abstract class ArcgisPresentation extends LitElement {
|
|
|
131
131
|
}>;
|
|
132
132
|
/** Emitted when the component associated with a map or scene view is ready to be interacted with. */
|
|
133
133
|
readonly arcgisReady: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
134
|
+
/**
|
|
135
|
+
* Fires after applying a slide to the Scene View has been canceled.
|
|
136
|
+
* It only fires if the slide cancelled is in the list of slides of the webscene presentation.
|
|
137
|
+
*/
|
|
138
|
+
readonly arcgisSlideApplyCancel: import("@arcgis/lumina").TargetedEvent<this, { slide: Slide; }>;
|
|
139
|
+
/**
|
|
140
|
+
* Fires after applying a slide to the Scene View has been completed.
|
|
141
|
+
* It only fires if the slide canceled is in the list of slides of the webscene presentation.
|
|
142
|
+
*/
|
|
143
|
+
readonly arcgisSlideApplyComplete: import("@arcgis/lumina").TargetedEvent<this, { slide: Slide; }>;
|
|
144
|
+
/**
|
|
145
|
+
* Fires after a slide has been applied to the Scene View.
|
|
146
|
+
* It only fires if the slide applied is in the list of slides of the webscene presentation.
|
|
147
|
+
*/
|
|
148
|
+
readonly arcgisSlideApplyStart: import("@arcgis/lumina").TargetedEvent<this, { slide: Slide; }>;
|
|
134
149
|
readonly "@eventTypes": {
|
|
135
150
|
arcgisPopupFeatureNotFound: ArcgisPresentation["arcgisPopupFeatureNotFound"]["detail"];
|
|
136
151
|
arcgisPopupFeaturesRetrieved: ArcgisPresentation["arcgisPopupFeaturesRetrieved"]["detail"];
|
|
137
152
|
arcgisReady: ArcgisPresentation["arcgisReady"]["detail"];
|
|
153
|
+
arcgisSlideApplyCancel: ArcgisPresentation["arcgisSlideApplyCancel"]["detail"];
|
|
154
|
+
arcgisSlideApplyComplete: ArcgisPresentation["arcgisSlideApplyComplete"]["detail"];
|
|
155
|
+
arcgisSlideApplyStart: ArcgisPresentation["arcgisSlideApplyStart"]["detail"];
|
|
138
156
|
};
|
|
139
157
|
}
|