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

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.
@@ -1,38 +1,38 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as A } from "../../chunks/runtime.js";
3
- import { css as z, html as d } from "lit";
2
+ import { c as z } from "../../chunks/runtime.js";
3
+ import { css as F, html as d } from "lit";
4
4
  import { keyed as w } from "lit/directives/keyed.js";
5
+ import { repeat as A } from "lit/directives/repeat.js";
5
6
  import D from "@arcgis/core/widgets/LayerList/LayerListViewModel.js";
6
7
  import { classes as P } from "@arcgis/toolkit/dom";
7
8
  import { generateGuid as O } from "@arcgis/toolkit/string";
8
9
  import { createRef as y, ref as x } from "lit/directives/ref.js";
9
- import { repeat as $ } from "lit/directives/repeat.js";
10
10
  import { u as R } from "../../chunks/useT9n.js";
11
11
  import { m as B } from "../../chunks/useViewModel.js";
12
12
  import { g as I } from "../../chunks/globalCss.js";
13
13
  import { c as f } from "../../chunks/layer-list-item-indicator.js";
14
- import { g as p, a as C, m as S, b as N, r as U, s as G, c as j, d as Y, e as H } from "../../chunks/layer-list-utils.js";
14
+ import { g as p, a as $, m as S, b as U, r as N, s as G, c as j, d as Y, e as H } from "../../chunks/layer-list-utils.js";
15
15
  import g from "@arcgis/core/core/Collection.js";
16
- import { on as E, watch as V } from "@arcgis/core/core/reactiveUtils.js";
17
- import { LitElement as Z, createEvent as q, renderElement as T, safeClassMap as L, nothing as M } from "@arcgis/lumina";
16
+ import { on as C, watch as V } from "@arcgis/core/core/reactiveUtils.js";
17
+ import { LitElement as Z, createEvent as q, renderElement as E, safeClassMap as L, nothing as T } from "@arcgis/lumina";
18
18
  import { usePropertyChange as J } from "@arcgis/lumina/controllers";
19
19
  import { reEmitEvent as K } from "@arcgis/lumina/controllers/accessor";
20
20
  import "@arcgis/toolkit/function";
21
21
  import { u as Q } from "../../chunks/useCloseEvent.js";
22
22
  import { ArcgisLayerListItem as W } from "./layer-list-item/customElement.js";
23
- const X = z`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{width:100%;--arcgis-internal-layer-list-item-scroller-max-height: var(--arcgis-internal-panel-height-md)}.item{--calcite-list-item-icon-center: var(--calcite-space-sm)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:14px}.item__filter-container--sticky{z-index:1;position:sticky;top:0}.item__group{margin-top:var(--calcite-spacing-md)}.item__scroller{overflow-y:auto;z-index:0;position:relative}.item__scroller--enabled{max-height:var(--arcgis-internal-layer-list-item-scroller-max-height)}.item__group__header{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-medium)}.item__list-item{cursor:pointer;min-height:var(--calcite-spacing-xxxl)}.item__list-item[class^=esri-icon-],.item__list-item[class*=" esri-icon-"]{padding-inline-end:2.8px}.item__list-item--disabled{cursor:default}.item__list-item-icon{justify-content:center;align-items:center;min-width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);display:flex}.item__list-item-icon span{line-height:0}.arcgis-thumbnail-preview{background-position:50%;width:22px;height:22px}.item__no-matches-message{justify-content:center;align-items:center;height:96px;display:flex}.content-bottom{margin:var(--calcite-spacing-md) 15px}.content-bottom .arcgis-legend__service{padding:0 0 var(--calcite-spacing-md)}.message{margin:var(--calcite-spacing-md) 15px}.visible-icon{visibility:hidden}.item:hover>.visible-toggle>.visible-icon,.item:focus>.visible-toggle>.visible-icon,.item:focus-within>.visible-toggle>.visible-icon{visibility:visible}`, ee = z`@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}`, F = "nested", te = B(D);
23
+ const X = 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)}.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}`, ee = 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", te = B(D);
24
24
  class ie extends Z {
25
25
  constructor() {
26
- super(...arguments), this._lastDragDetail = null, this._rootListRef = y(), this._layerFlowItemRef = y(), this._panelFlowItemRef = y(), this._selectedDragItemLayerUid = null, this._rootGroupUid = `operational-${O()}`, this._openedLayersController = null, this.messages = R(), this._canMove = ({ dragEl: e, fromEl: t, toEl: i }, r) => {
27
- const o = r === "pull" ? this.listItemCanGiveFunction : this.listItemCanReceiveFunction, a = p(e, this.operationalItems);
26
+ super(...arguments), this._lastDragDetail = null, this._rootListRef = y(), this._layerFlowItemRef = y(), this._panelFlowItemRef = y(), this._selectedDragItemLayerUid = null, this._rootGroupUid = `operational-${O()}`, this._openedLayersController = null, this.messages = R(), this._canMove = ({ dragEl: e, fromEl: t, toEl: i }, o) => {
27
+ const r = o === "pull" ? this.listItemCanGiveFunction : this.listItemCanReceiveFunction, a = p(e, this.operationalItems);
28
28
  if (!a?.sortable)
29
29
  return !1;
30
- const s = p(t, this.operationalItems), n = C(t), l = p(i, this.operationalItems), h = C(i), _ = !!n && !!h && n === h, u = {
30
+ const s = this._getContainerItem(t), n = $(t), l = this._getContainerItem(i), h = $(i), _ = !!n && !!h && n === h, u = {
31
31
  selected: a,
32
32
  from: s,
33
33
  to: l
34
34
  }, v = t.group, m = i.group, b = s?.layer?.type ?? "", c = l?.layer?.type ?? "", k = /* @__PURE__ */ new Set(["map-image", "catalog", "knowledge-graph"]);
35
- return v && m && typeof o == "function" ? o(u) : _ && !k.has(b) && !k.has(c) && a?.layer?.type !== "sublayer";
35
+ return v && m && typeof r == "function" ? r(u) : _ && !k.has(b) && !k.has(c) && a?.layer?.type !== "sublayer";
36
36
  }, this._onCatalogOpen = (e) => {
37
37
  this.openedLayers.push(e.layer?.parent);
38
38
  }, this._onTablesOpen = (e) => {
@@ -44,7 +44,7 @@ class ie extends Z {
44
44
  }, this._setActiveItem = (e) => {
45
45
  if (this.visibilityAppearance !== "default")
46
46
  return;
47
- const t = Array.from(e.composedPath()).find((r) => r.classList?.contains(f.item)), i = p(t, this.operationalItems);
47
+ const t = Array.from(e.composedPath()).find((o) => o.classList?.contains(f.item)), i = p(t, this.operationalItems);
48
48
  this._activeItem = i;
49
49
  }, this.viewModel = te(this), this.arcgisClose = Q(this), this._activeItem = null, this._onTooltipReferenceChange = (e, t) => {
50
50
  t ? this._tooltipReferenceMap.set(e, t) : this._tooltipReferenceMap.delete(e);
@@ -52,7 +52,7 @@ class ie extends Z {
52
52
  this._selectedDragItemLayerUid = e;
53
53
  }, this._onTriggerAction = (e, t) => {
54
54
  this.triggerAction(e, t);
55
- }, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.layerTablesEnabled = new g(["knowledge-graph"]), this.mapImageOptions = null, this.openedLayerLists = new g(), 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 g(["knowledge-graph"]), this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.minDragEnabledItems = S, this.minFilterItems = N, this.openedLayers = new g(), this.operationalItems = this.viewModel.operationalItems, this.selectedItems = new g(), 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 = J()("state"), this.arcgisReady = q(), this.arcgisTriggerAction = K(() => this.viewModel, "trigger-action");
55
+ }, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.layerTablesEnabled = new g(["knowledge-graph"]), this.mapImageOptions = null, this.openedLayerLists = new g(), 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 g(["knowledge-graph"]), this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.minDragEnabledItems = S, this.minFilterItems = U, this.openedLayers = new g(), this.operationalItems = this.viewModel.operationalItems, this.selectedItems = new g(), 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 = J()("state"), this.arcgisReady = q(), this.arcgisTriggerAction = K(() => this.viewModel, "trigger-action");
56
56
  }
57
57
  static {
58
58
  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,32 +90,36 @@ class ie extends Z {
90
90
  }
91
91
  loaded() {
92
92
  this.manager.onLifecycle(() => [
93
- E(() => this.openedLayers, "change", () => {
93
+ C(() => this.openedLayers, "change", () => {
94
94
  this._handleOpenedLayersChange();
95
95
  }, { initial: !0 }),
96
- E(() => this.viewModel.operationalItems, "change", () => U(this.selectedItems), { initial: !0 }),
96
+ C(() => this.viewModel.operationalItems, "change", () => N(this.selectedItems), { initial: !0 }),
97
97
  V(() => [this.filterPredicate, this._rootListRef.value], () => G(this._rootListRef.value, this.filterPredicate, this.operationalItems))
98
98
  ]);
99
99
  }
100
100
  triggerAction(e, t) {
101
101
  return this.viewModel.triggerAction(e, t);
102
102
  }
103
+ _getContainerItem(e) {
104
+ const t = e?.getAttribute("data-item");
105
+ return t ? this.operationalItems.find((i) => i.uid === t) ?? null : null;
106
+ }
103
107
  async _createFlowList(e, t) {
104
- const { _layerListMap: i } = this, r = i.get(e);
105
- if (r)
106
- return r;
107
- const o = e.type === "catalog" ? await this._createCatalogLayerList(e) : await this._createTableList(e);
108
- return t.aborted || i.set(e, o), o;
108
+ const { _layerListMap: i } = this, o = i.get(e);
109
+ if (o)
110
+ return o;
111
+ const r = e.type === "catalog" ? await this._createCatalogLayerList(e) : await this._createTableList(e);
112
+ return t.aborted || i.set(e, r), r;
109
113
  }
110
114
  async _handleOpenedLayersChange() {
111
115
  const { _layerListMap: e, openedLayers: t, openedLayerLists: i } = this;
112
116
  this._openedLayersController?.abort();
113
- const r = new AbortController(), { signal: o } = r;
114
- this._openedLayersController = r, e.forEach((n, l) => {
117
+ const o = new AbortController(), { signal: r } = o;
118
+ this._openedLayersController = o, e.forEach((n, l) => {
115
119
  t.includes(l) || (n?.destroy?.(), e.delete(l));
116
120
  });
117
- const a = await Promise.all(t.map((n) => this._createFlowList(n, o)));
118
- if (o.aborted)
121
+ const a = await Promise.all(t.map((n) => this._createFlowList(n, r)));
122
+ if (r.aborted)
119
123
  return;
120
124
  i.removeAll(), i.addMany(a);
121
125
  const s = i.at(-1);
@@ -125,8 +129,8 @@ class ie extends Z {
125
129
  this.openedLayerLists.destroyAll(), this.openedLayers.removeAll(), this._layerListMap.clear();
126
130
  }
127
131
  async _createCatalogLayerList(e) {
128
- const { headingLevel: t, catalogOptions: i, filterPlaceholder: r, listItemCreatedFunction: o, minFilterItems: a, selectionMode: s, visibilityAppearance: n } = this;
129
- return T(d`<arcgis-catalog-layer-list .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder ?? r} .listItemCreatedFunction=${i?.listItemCreatedFunction ?? o} .minFilterItems=${i?.minFilterItems ?? a} .selectionMode=${i?.selectionMode ?? s} .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>`);
132
+ const { headingLevel: t, catalogOptions: i, filterPlaceholder: o, listItemCreatedFunction: r, minFilterItems: a, selectionMode: s, visibilityAppearance: n } = this;
133
+ return E(d`<arcgis-catalog-layer-list .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder ?? o} .listItemCreatedFunction=${i?.listItemCreatedFunction ?? r} .minFilterItems=${i?.minFilterItems ?? a} .selectionMode=${i?.selectionMode ?? s} .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>`);
130
134
  }
131
135
  _getTableListParams(e) {
132
136
  switch (e.type) {
@@ -147,32 +151,36 @@ class ie extends Z {
147
151
  }
148
152
  }
149
153
  async _createTableList(e) {
150
- const { headingLevel: t, selectionMode: i, dragEnabled: r } = this, o = this._getTableListParams(e);
151
- return T(d`<arcgis-table-list .headingLevel=${o?.headingLevel ?? t} .selectionMode=${o?.selectionMode ?? i} .dragEnabled=${o?.dragEnabled ?? r} .collapsed=${o?.collapsed} .filterPlaceholder=${o?.filterPlaceholder} .filterText=${o?.filterText} .icon=${o?.icon ?? void 0} .label=${o?.label ?? void 0} .listItemCreatedFunction=${o?.listItemCreatedFunction} .tables=${o?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${(a) => a.stopPropagation()}></arcgis-table-list>`);
154
+ const { headingLevel: t, selectionMode: i, dragEnabled: o } = this, r = this._getTableListParams(e);
155
+ return E(d`<arcgis-table-list .headingLevel=${r?.headingLevel ?? t} .selectionMode=${r?.selectionMode ?? i} .dragEnabled=${r?.dragEnabled ?? o} .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>`);
152
156
  }
153
157
  _handlePanelFlowItemBack(e) {
154
158
  e.open = !1;
155
159
  }
156
- _moveLayerFromChildList({ toEl: e, fromEl: t, dragEl: i, newIndex: r }) {
157
- const o = p(i, this.operationalItems), a = p(e, this.operationalItems), s = p(t, this.operationalItems);
158
- r == null || !o || !a || !s || this.viewModel.moveListItem(o, s, a, r);
160
+ _moveLayerFromChildList({ toEl: e, fromEl: t, dragEl: i, newIndex: o }) {
161
+ const r = p(i, this.operationalItems), a = this._getContainerItem(e), s = this._getContainerItem(t);
162
+ o == null || !r || !a || !s || this.viewModel.moveListItem(r, s, a, o);
159
163
  }
160
164
  _onCalciteListDragEnd(e) {
161
- const { fromEl: t, dragEl: i, oldIndex: r } = e;
162
- r == null || !t || !i || t.insertBefore(i, t.children[r]);
165
+ const { fromEl: t, toEl: i, dragEl: o, oldIndex: r } = e;
166
+ if (t !== i) {
167
+ o.remove();
168
+ return;
169
+ }
170
+ r == null || !t || !o || t.insertBefore(o, t.children[r]);
163
171
  }
164
172
  _onCalciteListOrderChange(e) {
165
- const { _lastDragDetail: t } = this, { toEl: i, fromEl: r, dragEl: o, newIndex: a } = e, s = t?.newIndex === a && t?.dragEl === o && t?.toEl === i && t?.fromEl === r;
166
- if (!(!r || !i || s)) {
167
- if (this._lastDragDetail = e, this._selectedDragItemLayerUid = o.value, r === i) {
168
- const n = Array.from(r.children).filter((l) => l?.matches("calcite-list-item")).map((l) => l.value.layer?.uid ?? "");
169
- this._sortLayers(r, n);
173
+ const { _lastDragDetail: t } = this, { toEl: i, fromEl: o, dragEl: r, newIndex: a } = e, s = t?.newIndex === a && t?.dragEl === r && t?.toEl === i && t?.fromEl === o;
174
+ if (!(!o || !i || s)) {
175
+ if (this._lastDragDetail = e, this._selectedDragItemLayerUid = r.value, o === i) {
176
+ const n = Array.from(o.children).filter((l) => l?.matches("calcite-list-item")).map((l) => l.value.layer?.uid ?? "");
177
+ this._sortLayers(o, n);
170
178
  return;
171
179
  }
172
180
  this._moveLayerFromChildList({
173
181
  toEl: i,
174
- fromEl: r,
175
- dragEl: o,
182
+ fromEl: o,
183
+ dragEl: r,
176
184
  newIndex: a
177
185
  });
178
186
  }
@@ -192,8 +200,8 @@ class ie extends Z {
192
200
  const { selectionMode: t, selectedItems: i } = this;
193
201
  if (t === "none")
194
202
  return;
195
- const o = e.target.selectedItems.map((a) => p(a, this.operationalItems)).filter(Boolean);
196
- i.removeAll(), i.addMany(o);
203
+ const r = e.target.selectedItems.map((a) => p(a, this.operationalItems)).filter(Boolean);
204
+ i.removeAll(), i.addMany(r);
197
205
  }
198
206
  render() {
199
207
  const { _visibleItems: e, state: t } = this, i = {
@@ -222,33 +230,33 @@ class ie extends Z {
222
230
  return d`<div class=${L(f.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`;
223
231
  }
224
232
  _renderLayerFlowItem(e, t) {
225
- const { messages: i, openedLayers: r } = this, o = e.title || this.messages.untitledLayer;
226
- return w(e?.uid ?? o, d`<calcite-flow-item data-layer-uid=${e?.uid ?? "" ?? M} .description=${o} .heading=${i[e.type === "catalog" ? "catalogLayers" : "tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${(a) => {
227
- a.preventDefault(), r.pop(), r.at(-1) && this._layerFlowItemRef.value?.setFocus();
233
+ const { messages: i, openedLayers: o } = this, r = e.title || this.messages.untitledLayer;
234
+ 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) => {
235
+ a.preventDefault(), o.pop(), o.at(-1) && this._layerFlowItemRef.value?.setFocus();
228
236
  }} ${x(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`);
229
237
  }
230
238
  _renderPanelFlowItems() {
231
239
  const { _openedPanelItems: e, openedLayers: t } = this;
232
- return $(e.toArray(), (r) => r.uid, (r, o) => {
233
- const { panel: a, title: s } = r, n = () => this._handlePanelFlowItemBack(a);
234
- return d`<calcite-flow-item .description=${s} .heading=${a.title} .headingLevel=${this.headingLevel} .selected=${!t.length && o === e.length - 1} @calciteFlowItemBack=${(l) => {
240
+ return A(e.toArray(), (o) => o.uid, (o, r) => {
241
+ const { panel: a, title: s } = o, n = () => this._handlePanelFlowItemBack(a);
242
+ return d`<calcite-flow-item .description=${s} .heading=${a.title} .headingLevel=${this.headingLevel} .selected=${!t.length && r === e.length - 1} @calciteFlowItemBack=${(l) => {
235
243
  l.preventDefault(), n();
236
- }} ${x(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${r} .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>`;
244
+ }} ${x(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${o} .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>`;
237
245
  });
238
246
  }
239
247
  _renderItems() {
240
- const { collapsed: e, _visibleItems: t, _openedPanelItems: i, _filterEnabled: r, _rootGroupUid: o, showCloseButton: a, showCollapseButton: s, showHeading: n, _dragEnabled: l, selectionMode: h, filterText: _, openedLayers: u, filterPlaceholder: v, messages: m } = this, b = [
241
- d`<calcite-flow-item .closable=${a} .closed=${this.closed} .collapsed=${e} .collapsible=${s} .heading=${n ? m.componentLabel : void 0} .headingLevel=${this.headingLevel} .selected=${!u.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=${o ?? M} .displayMode=${F} .dragEnabled=${l} .filterEnabled=${r} .filterPlaceholder=${v} .filterProps=${H} .filterText=${r ? _ : ""} .group=${o} .label=${m.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${h} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${(c) => this.filterText = c.currentTarget?.filterText ?? ""} @calciteListOrderChange=${(c) => this._onCalciteListOrderChange(c.detail)} @calciteListDragEnd=${(c) => this._onCalciteListDragEnd(c.detail)} ${x(this._rootListRef)}>${$(t?.toArray() ?? [], (c) => c.uid, (c) => this._renderItem(c))}${t?.length && r ? d`<div class=${L(f.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>` : null}</calcite-list></calcite-flow-item>`,
248
+ const { collapsed: e, _visibleItems: t, _openedPanelItems: i, _filterEnabled: o, _rootGroupUid: r, showCloseButton: a, showCollapseButton: s, showHeading: n, _dragEnabled: l, selectionMode: h, filterText: _, openedLayers: u, filterPlaceholder: v, messages: m } = this, b = [
249
+ d`<calcite-flow-item .closable=${a} .closed=${this.closed} .collapsed=${e} .collapsible=${s} .heading=${n ? m.componentLabel : void 0} .headingLevel=${this.headingLevel} .selected=${!u.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=${o} .filterPlaceholder=${v} .filterProps=${H} .filterText=${o ? _ : ""} .group=${r} .label=${m.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${h} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${(c) => this.filterText = c.currentTarget?.filterText ?? ""} @calciteListOrderChange=${(c) => this._onCalciteListOrderChange(c.detail)} @calciteListDragEnd=${(c) => this._onCalciteListDragEnd(c.detail)} ${x(this._rootListRef)}>${t?.toArray().map((c) => this._renderItem(c)) ?? []}${t?.length && o ? d`<div class=${L(f.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>` : null}</calcite-list></calcite-flow-item>`,
242
250
  this._renderPanelFlowItems(),
243
251
  this._renderedOpenLayerFlowItems
244
252
  ];
245
253
  return this.closed ? null : w("root-flow", d`<calcite-flow>${b}</calcite-flow>`);
246
254
  }
247
255
  _renderItem(e, t, i) {
248
- return w(e.uid, W({ activeItem: this._activeItem, canMove: this._canMove, css: f, displayMode: F, 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 }));
256
+ return w(e.uid, W({ activeItem: this._activeItem, canMove: this._canMove, css: f, 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 }));
249
257
  }
250
258
  }
251
- A("arcgis-layer-list-next", ie);
259
+ z("arcgis-layer-list-next", ie);
252
260
  export {
253
261
  ie as ArcgisLayerListNext
254
262
  };
@@ -1,29 +1,28 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { html as c } from "lit";
3
- import { keyed as W } from "lit/directives/keyed.js";
4
- import { isLayerFromCatalog as Ae } from "@arcgis/core/layers/catalog/catalogUtils.js";
5
- import { safeClassMap as d, safeStyleMap as Ce, nothing as r } from "@arcgis/lumina";
6
- import { classes as P } from "@arcgis/toolkit/dom";
7
- import { createRef as X, ref as Y } from "lit/directives/ref.js";
8
- import { repeat as Se } from "lit/directives/repeat.js";
9
- import { g as Te, a as ie } from "../../../chunks/action-utils.js";
10
- import { h as xe, j as Z, l as Me, k as Le, n as Ee, o as ke, g as we } from "../../../chunks/layer-list-utils.js";
3
+ import { keyed as Y } from "lit/directives/keyed.js";
4
+ import { isLayerFromCatalog as Ce } from "@arcgis/core/layers/catalog/catalogUtils.js";
5
+ import { safeClassMap as d, safeStyleMap as Se, nothing as r } from "@arcgis/lumina";
6
+ import { classes as F } from "@arcgis/toolkit/dom";
7
+ import { createRef as Z, ref as ee } from "lit/directives/ref.js";
8
+ import { g as Te, a as le } from "../../../chunks/action-utils.js";
9
+ import { h as xe, j as te, l as Me, k as Le, n as Ee, o as ke, g as we } from "../../../chunks/layer-list-utils.js";
11
10
  import { s as Pe } from "../../../chunks/component-utils.js";
12
- const ae = /* @__PURE__ */ new Map();
13
- function le(i) {
14
- return i ? ae.get(i) ?? !1 : !1;
11
+ const ne = /* @__PURE__ */ new Map();
12
+ function ce(i) {
13
+ return i ? ne.get(i) ?? !1 : !1;
15
14
  }
16
15
  function De(i, e) {
17
- const l = !(i.aria?.pressed ?? le(e));
18
- return i.aria = { ...i.aria, pressed: l }, e && ae.set(e, l), l;
16
+ const l = !(i.aria?.pressed ?? ce(e));
17
+ return i.aria = { ...i.aria, pressed: l }, e && ne.set(e, l), l;
19
18
  }
20
- function D(i) {
19
+ function O(i) {
21
20
  return i && "visibilityMode" in i ? i.visibilityMode : null;
22
21
  }
23
- function ee(i, e) {
22
+ function ie(i, e) {
24
23
  if (!("visible" in i))
25
24
  return;
26
- D(e) === "exclusive" && i.visible || (i.visible = !i.visible);
25
+ O(e) === "exclusive" && i.visible || (i.visible = !i.visible);
27
26
  }
28
27
  function Fe(i, e) {
29
28
  i.panel.open = !i.panel.open, i.panel.open && e && e();
@@ -31,77 +30,77 @@ function Fe(i, e) {
31
30
  function Oe(i, e, l, m) {
32
31
  i && l === e.layer?.uid && (Pe(i), m?.(null));
33
32
  }
34
- function Re(i, e, l) {
33
+ function Ge(i, e, l) {
35
34
  l.type === "toggle" && (l.value = !l.value), i(l, e);
36
35
  }
37
- function Ve(i) {
36
+ function Re(i) {
38
37
  return i.actionsSections.map((e) => e.filter((l) => l.visible));
39
38
  }
40
- function ne(i, e) {
39
+ function se(i, e) {
41
40
  const { icon: l } = e;
42
41
  if (l)
43
42
  return null;
44
43
  const m = "image" in e ? e.image : void 0;
45
- return m ? c`<span aria-hidden=true class=${d(P(i.itemActionIcon, { [i.itemActionImage]: !!m }))} style=${Ce(Te(m))}></span>` : null;
44
+ return m ? c`<span aria-hidden=true class=${d(F(i.itemActionIcon, { [i.itemActionImage]: !!m }))} style=${Se(Te(m))}></span>` : null;
46
45
  }
47
- function te(i, e, l) {
48
- const { item: m, css: a, handleAction: v } = i, { active: C, disabled: I, title: g, type: S, indicator: f } = e, T = ie(e);
49
- return c`<calcite-action .active=${S === "toggle" ? e.value : !1} data-action-id=${e.id ?? r} .disabled=${I} .icon=${T} .indicator=${f} .loading=${C} @click=${() => Re(v, m, e)} scale=s slot=${(l ? void 0 : "actions-end") ?? r} .text=${g ?? ""} .textEnabled=${l} title=${g ?? void 0 ?? r}>${ne(a, e)}</calcite-action>`;
46
+ function ae(i, e, l) {
47
+ const { item: m, css: a, handleAction: f } = i, { active: C, disabled: I, title: b, type: S, indicator: h } = e, T = le(e);
48
+ return c`<calcite-action .active=${S === "toggle" ? e.value : !1} data-action-id=${e.id ?? r} .disabled=${I} .icon=${T} .indicator=${h} .loading=${C} @click=${() => Ge(f, m, e)} scale=s slot=${(l ? void 0 : "actions-end") ?? r} .text=${b ?? ""} .textEnabled=${l} title=${b ?? void 0 ?? r}>${se(a, e)}</calcite-action>`;
50
49
  }
51
- function Ge(i) {
52
- const { item: e, parent: l, hideStatusIndicators: m, css: a, visibilityAppearance: v, hideCatalogLayerList: C, dragEnabled: I = !1, rootGroupUid: g, listModeDisabled: S = !1, selectionMode: f, displayMode: T, layerTablesEnabled: x, showErrors: ce, parentTitles: F, selectedItems: se, activeItem: oe, handleCatalogOpen: re, handleTablesOpen: de, selectedDragItemLayerUid: ue, handleSelectedDragItemLayerUidChange: me, handlePanelOpen: pe, messages: n, setCurrentActiveItem: O, clearActiveItem: R } = i, $ = X(), M = X(), b = e.title || ("untitledTable" in n ? n.untitledTable : n.untitledLayer ?? "");
53
- let V = null;
54
- m || (V = c`<arcgis-layer-list-item-indicator class=${d(a.statusIndicator)} .messages=${n} .item=${e} .parent=${l} slot=content-end></arcgis-layer-list-item-indicator>`);
55
- let G = null;
50
+ function Ve(i) {
51
+ const { item: e, parent: l, hideStatusIndicators: m, css: a, visibilityAppearance: f, hideCatalogLayerList: C, dragEnabled: I = !1, rootGroupUid: b, listModeDisabled: S = !1, selectionMode: h, displayMode: T, layerTablesEnabled: x, showErrors: oe, parentTitles: G, selectedItems: re, activeItem: de, handleCatalogOpen: ue, handleTablesOpen: me, selectedDragItemLayerUid: $e, handleSelectedDragItemLayerUidChange: pe, handlePanelOpen: ge, messages: n, setCurrentActiveItem: R, clearActiveItem: V } = i, p = Z(), M = Z(), y = e.title || ("untitledTable" in n ? n.untitledTable : n.untitledLayer ?? "");
52
+ let H = null;
53
+ m || (H = c`<arcgis-layer-list-item-indicator class=${d(a.statusIndicator)} .messages=${n} .item=${e} .parent=${l} slot=content-end></arcgis-layer-list-item-indicator>`);
54
+ let U = null;
56
55
  {
57
- const { layer: t } = e, s = t && "persistenceEnabled" in t && (Ae(t) || !t.persistenceEnabled);
58
- (i.showTemporaryLayerIndicators || i.showTemporaryTableIndicators) && s && (G = c`<calcite-icon class=${d(a.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${n.temporary ?? r}></calcite-icon>`);
56
+ const { layer: t } = e, s = t && "persistenceEnabled" in t && (Ce(t) || !t.persistenceEnabled);
57
+ (i.showTemporaryLayerIndicators || i.showTemporaryTableIndicators) && s && (U = c`<calcite-icon class=${d(a.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${n.temporary ?? r}></calcite-icon>`);
59
58
  }
60
- let H = null;
61
- if ("visible" in e && "visibleToggle" in a && v) {
62
- const t = D(l);
59
+ let q = null;
60
+ if ("visible" in e && "visibleToggle" in a && f) {
61
+ const t = O(l);
63
62
  if (t !== "inherited") {
64
63
  const s = xe({
65
64
  visible: e.visible,
66
65
  exclusive: t === "exclusive",
67
- visibilityAppearance: v
68
- }), o = v === "checkbox", p = n.layerVisibility, h = le(e.layer?.id);
69
- H = c`<calcite-action .aria=${{ pressed: h }} class=${d(a.visibleToggle)} .icon=${o ? s : void 0} @click=${(y) => {
70
- De(y.currentTarget, e.layer?.id), ee(e, l);
71
- }} .slot=${o ? "actions-start" : "actions-end"} .text=${p ?? ""} title=${p ?? r}>${o ? null : c`<calcite-icon class=${d(P({
66
+ visibilityAppearance: f
67
+ }), o = f === "checkbox", u = n.layerVisibility, v = e.title ?? e.layer?.title ?? "", g = v ? `${u ?? ""}: ${v}` : u ?? "", P = ce(e.layer?.id);
68
+ q = c`<calcite-action .aria=${{ pressed: P }} class=${d(a.visibleToggle)} .icon=${o ? s : void 0} .label=${g} @click=${(D) => {
69
+ De(D.currentTarget, e.layer?.id), ie(e, l);
70
+ }} .slot=${o ? "actions-start" : "actions-end"} .text=${u ?? ""} title=${u ?? r}>${o ? null : c`<calcite-icon class=${d(F({
72
71
  [a.visibleIcon]: t !== "exclusive" && e.visible
73
72
  }))} .icon=${s} scale=s></calcite-icon>`}</calcite-action>`;
74
73
  }
75
74
  }
76
- let U = null;
75
+ let j = null;
77
76
  {
78
77
  const t = e.panel;
79
- t?.open && !t.disabled && !t.flowEnabled && (U = c`<div class=${d(a.itemContentBottom)} slot=content-bottom><arcgis-layer-list-item-panel .item=${e} .view=${i.view}></arcgis-layer-list-item-panel></div>`);
78
+ t?.open && !t.disabled && !t.flowEnabled && (j = c`<div class=${d(a.itemContentBottom)} slot=content-bottom><arcgis-layer-list-item-panel .item=${e} .view=${i.view}></arcgis-layer-list-item-panel></div>`);
80
79
  }
81
- let q = null;
80
+ let B = null;
82
81
  {
83
82
  const t = e.panel;
84
83
  if (t?.visible) {
85
- const { open: s, title: o, disabled: p } = t, h = { icon: t.icon, image: t.image, indicator: !1 }, y = ie(h);
86
- q = c`<calcite-action .active=${s} .disabled=${p} .icon=${y} @click=${() => Fe(e, pe)} slot=actions-end .text=${o ?? ""} title=${o ?? void 0 ?? r}>${ne(a, t)}</calcite-action>`;
84
+ const { open: s, title: o, disabled: u } = t, v = { icon: t.icon, image: t.image, indicator: !1 }, g = le(v);
85
+ B = c`<calcite-action .active=${s} .disabled=${u} .icon=${g} @click=${() => Fe(e, ge)} slot=actions-end .text=${o ?? ""} title=${o ?? void 0 ?? r}>${se(a, t)}</calcite-action>`;
87
86
  }
88
87
  }
89
- let j = null;
88
+ let N = null;
90
89
  {
91
- const t = e.layer, s = t?.type === "catalog-footprint", o = t?.type === "sublayer" && Z(t, "footprints");
92
- "itemCatalogIcon" in a && (s || o) && (j = c`<calcite-icon class=${d(a.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`);
90
+ const t = e.layer, s = t?.type === "catalog-footprint", o = t?.type === "sublayer" && te(t, "footprints");
91
+ "itemCatalogIcon" in a && (s || o) && (N = c`<calcite-icon class=${d(a.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`);
93
92
  }
94
- let B = null;
93
+ let _ = null;
95
94
  {
96
- const t = e.layer, s = t?.type === "catalog-dynamic-group", o = t?.type === "sublayer" && Z(t, "layers-in-view");
97
- "itemCatalogIcon" in a && (s || o) && (B = c`<calcite-icon class=${d(a.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`);
95
+ const t = e.layer, s = t?.type === "catalog-dynamic-group", o = t?.type === "sublayer" && te(t, "layers-in-view");
96
+ "itemCatalogIcon" in a && (s || o) && (_ = c`<calcite-icon class=${d(a.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`);
98
97
  }
99
- let N = null;
98
+ let z = null;
100
99
  if ("visible" in e) {
101
100
  const t = e.layer;
102
- !C && t?.type === "catalog-dynamic-group" && (N = c`<calcite-action .disabled=${!t.visible} icon=chevron-right icon-flip-rtl @click=${() => re?.(e)} scale=s slot=actions-end .text=${b ?? ""}></calcite-action>`);
101
+ !C && t?.type === "catalog-dynamic-group" && (z = c`<calcite-action .disabled=${!t.visible} icon=chevron-right icon-flip-rtl @click=${() => ue?.(e)} scale=s slot=actions-end .text=${y ?? ""}></calcite-action>`);
103
102
  }
104
- let _ = null, L = !1;
103
+ let J = null, L = !1;
105
104
  {
106
105
  const t = e.layer;
107
106
  if (x && t)
@@ -114,43 +113,43 @@ function Ge(i) {
114
113
  L = x.includes(t.type) && "subtables" in t && !!t.subtables?.length;
115
114
  break;
116
115
  }
117
- "itemTableIcon" in a && "visible" in e && "tables" in n && L && (_ = W(`${e.uid}-tables`, c`<calcite-list-item class=${d(a.item)} data-layer-id=${t?.id ?? r} drag-disabled .label=${n.tables} title=${n.tables ?? r} @calciteListItemSelect=${() => de?.(e)} .value=${e}><calcite-icon class=${d(a.itemTableIcon)} icon=table scale=s slot=content-start></calcite-icon><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`));
116
+ "itemTableIcon" in a && "visible" in e && "tables" in n && L && (J = Y(`${e.uid}-tables`, c`<calcite-list-item class=${d(a.item)} data-layer-id=${t?.id ?? r} drag-disabled .label=${n.tables} title=${n.tables ?? r} @calciteListItemSelect=${() => me?.(e)} .value=${e}><calcite-icon class=${d(a.itemTableIcon)} icon=table scale=s slot=content-start></calcite-icon><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`));
118
117
  }
119
- let z = null;
118
+ let K = null;
120
119
  if ("children" in e) {
121
- const t = [...F ?? [], e.title], { children: s, layer: o } = e, p = o?.type !== "catalog-dynamic-group" && Me(e), h = S ? !1 : Le(o), y = o?.type === "group", fe = !h && !p && I && y, he = I && "childrenSortable" in e && e.childrenSortable && Ee(e), Ie = p ? Se(s?.filter((u) => !u.hidden && (ce || !u.error)).toArray() ?? [], (u) => u.uid, (u) => Ge({ ...i, item: u, parent: e, parentTitles: t })) : null;
122
- (p || fe) && (z = c`<calcite-list .canPull=${(u) => i.canMove ? i.canMove(u, "pull") : !1} .canPut=${(u) => i.canMove ? i.canMove(u, "put") : !1} data-item=${e.uid ?? r} data-layer-type=${g ?? r} .displayMode=${T} .dragEnabled=${he} .group=${y ? g : `${g}-${o?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${f}>${Ie}${_}</calcite-list>`);
120
+ const t = [...G ?? [], e.title], { children: s, layer: o } = e, u = o?.type !== "catalog-dynamic-group" && Me(e), v = S ? !1 : Le(o), g = o?.type === "group", P = !v && !u && I && g, D = g && "sortable" in e && e.sortable, Ie = I && ("childrenSortable" in e && e.childrenSortable || D) && Ee(e), Ae = u ? (s?.filter(($) => !$.hidden && (oe || !$.error)).toArray() ?? []).map(($) => Ve({ ...i, item: $, parent: e, parentTitles: t })) : null;
121
+ (u || P) && (K = c`<calcite-list .canPull=${($) => i.canMove ? i.canMove($, "pull") : !1} .canPut=${($) => i.canMove ? i.canMove($, "put") : !1} data-item=${e.uid ?? r} data-layer-type=${b ?? r} .displayMode=${T} .dragEnabled=${Ie} .group=${g ? b : `${b}-${o?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${h}>${Ae}${J}</calcite-list>`);
123
122
  }
124
123
  let E = null;
125
124
  if (e.error) {
126
125
  const t = "layerError" in n ? n.layerError : n.tableError;
127
126
  E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${t}</div></calcite-notice></div>`;
128
- } else "incompatible" in e && e.incompatible && "layerIncompatible" in n && (E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${Y(M)}><div slot=message>${n.layerIncompatible}</div></calcite-notice></div>`);
129
- const J = Ve(e), k = e.actionsSections.reduce((t, s) => t + s.length, 0), K = ke(J), $e = J.toArray().map((t) => c`<calcite-action-group>${t.toArray().map((s) => te(i, s, !0))}</calcite-action-group>`), ge = (t) => {
127
+ } else "incompatible" in e && e.incompatible && "layerIncompatible" in n && (E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${ee(M)}><div slot=message>${n.layerIncompatible}</div></calcite-notice></div>`);
128
+ const Q = Re(e), k = e.actionsSections.reduce((t, s) => t + s.length, 0), W = ke(Q), be = Q.toArray().map((t) => c`<calcite-action-group>${t.toArray().map((s) => ae(i, s, !0))}</calcite-action-group>`), ye = (t) => {
130
129
  e.actionsOpen = t.currentTarget.open;
131
130
  };
132
- let Q = null;
133
- k > 1 && (Q = c`<calcite-action-menu appearance=transparent .label=${n.menu ?? ""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end slot=actions-end @calciteActionMenuOpen=${ge}><calcite-action .aria=${{
131
+ let X = null;
132
+ k > 1 && (X = c`<calcite-action-menu appearance=transparent .label=${n.menu ?? ""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end slot=actions-end @calciteActionMenuOpen=${ye}><calcite-action .aria=${{
134
133
  expanded: e.actionsOpen ?? !1,
135
134
  hasPopup: "true"
136
- }} icon=ellipsis scale=s slot=trigger .text=${n.options ?? ""} title=${n.options ?? r}></calcite-action>${$e}</calcite-action-menu>`);
135
+ }} icon=ellipsis scale=s slot=trigger .text=${n.options ?? ""} title=${n.options ?? r}></calcite-action>${be}</calcite-action-menu>`);
137
136
  let w = null;
138
- k === 1 && K ? w = te(i, K, !1) : k > 1 && (w = Q);
139
- const be = "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in n && !e.visibleAtCurrentTimeExtent ? `${b} (${n.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in n && !e.visibleAtCurrentScale ? `${b} (${n.layerInvisibleAtScale})` : b, ye = "parent" in e && e.parent?.layer?.type === "catalog", A = e.layer, ve = "visibleAtCurrentScale" in e && !e.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in e && !e.visibleAtCurrentTimeExtent;
137
+ k === 1 && W ? w = ae(i, W, !1) : k > 1 && (w = X);
138
+ const ve = "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in n && !e.visibleAtCurrentTimeExtent ? `${y} (${n.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in n && !e.visibleAtCurrentScale ? `${y} (${n.layerInvisibleAtScale})` : y, fe = "parent" in e && e.parent?.layer?.type === "catalog", A = e.layer, he = "visibleAtCurrentScale" in e && !e.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in e && !e.visibleAtCurrentTimeExtent;
140
139
  return queueMicrotask(() => {
141
- Oe($.value ?? null, e, ue, me), M.value && (i.handleTooltipReferenceChange?.(A?.uid, M.value), queueMicrotask(() => i.handleTooltipReferenceChange?.(A?.uid, null))), e.panel && (e.panel.container = $.value);
142
- }), W(e.uid, c`<calcite-list-item class=${d(P(a.item, "itemActive" in a && { [a.itemActive]: oe?.uid === e.uid }))} data-item=${e.uid ?? r} data-layer-id=${A?.id ?? r} .dragDisabled=${!("sortable" in e && e.sortable) || ye} id=${A?.uid ?? r} .label=${b} .metadata=${{ parentTitles: F ?? [], _title: b }} .expanded=${"open" in e && e.open} .selected=${f !== "none" ? se.includes(e) : !1} title=${be ?? r} .unavailable=${ve} .value=${e} @focusin=${() => {
143
- O?.(e), $.value?.classList.add(a.itemActive);
140
+ Oe(p.value ?? null, e, $e, pe), M.value && (i.handleTooltipReferenceChange?.(A?.uid, M.value), queueMicrotask(() => i.handleTooltipReferenceChange?.(A?.uid, null))), e.panel && (e.panel.container = p.value);
141
+ }), Y(e.uid, c`<calcite-list-item class=${d(F(a.item, "itemActive" in a && { [a.itemActive]: de?.uid === e.uid }))} data-item=${e.uid ?? r} data-layer-id=${A?.id ?? r} .dragDisabled=${!("sortable" in e && e.sortable) || fe} id=${A?.uid ?? r} .label=${y} .metadata=${{ parentTitles: G ?? [], _title: y }} .expanded=${"open" in e && e.open} .selected=${h !== "none" ? re.includes(e) : !1} title=${ve ?? r} .unavailable=${he} .value=${e} @focusin=${() => {
142
+ R?.(e), p.value?.classList.add(a.itemActive);
144
143
  }} @focusout=${() => {
145
- R?.(), $.value?.classList.remove(a.itemActive);
144
+ V?.(), p.value?.classList.remove(a.itemActive);
146
145
  }} @mouseover=${() => {
147
- O?.(e), $.value?.classList.add(a.itemActive);
146
+ R?.(e), p.value?.classList.add(a.itemActive);
148
147
  }} @mouseleave=${() => {
149
- R?.(), $.value?.classList.remove(a.itemActive);
150
- }} @calciteListItemSelect=${(t) => "visible" in e && we(t.currentTarget, i.operationalItems) === e && f === "none" && D(l) !== "inherited" && ee(e, l)} @calciteListItemToggle=${(t) => {
148
+ V?.(), p.value?.classList.remove(a.itemActive);
149
+ }} @calciteListItemSelect=${(t) => "visible" in e && we(t.currentTarget, i.operationalItems) === e && h === "none" && O(l) !== "inherited" && ie(e, l)} @calciteListItemToggle=${(t) => {
151
150
  "open" in e && (t.stopPropagation(), e.open = t.target.expanded);
152
- }} ${Y($)}>${j}${B}${V}${H}${N}${G}${z}${E}${U}${q}${w}</calcite-list-item>`);
151
+ }} ${ee(p)}>${N}${_}${H}${q}${z}${U}${K}${E}${j}${B}${w}</calcite-list-item>`);
153
152
  }
154
153
  export {
155
- Ge as ArcgisLayerListItem
154
+ Ve as ArcgisLayerListItem
156
155
  };