@arcgis/map-components 6.0.0-next.33 → 6.0.0-next.34
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/4UCQJWD2.js +2 -0
- package/dist/cdn/6UMEQS35.js +2 -0
- package/dist/cdn/7OLHJCFT.js +2 -0
- package/dist/cdn/AMRSK274.js +2 -0
- package/dist/cdn/D4UNIFIZ.js +2 -0
- package/dist/cdn/JKE3FA4Q.js +2 -0
- package/dist/cdn/JZTCF52M.js +2 -0
- package/dist/cdn/NZK2LVFA.js +2 -0
- package/dist/cdn/PTHNXKEA.js +2 -0
- package/dist/cdn/QCZQCLAT.js +2 -0
- package/dist/cdn/QVIQ66LA.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/layer-list-next.js +49 -4
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +3 -0
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +102 -101
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +3 -0
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +87 -86
- package/dist/components/arcgis-expand/customElement.js +13 -13
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -0
- package/dist/components/arcgis-layer-list-next/customElement.js +72 -71
- package/dist/components/arcgis-sketch/customElement.d.ts +6 -4
- package/dist/components/arcgis-sketch/customElement.js +177 -167
- package/dist/components/arcgis-table-list-next/customElement.d.ts +3 -0
- package/dist/components/arcgis-table-list-next/customElement.js +44 -43
- package/dist/components/arcgis-utility-network-picker/customElement.js +32 -31
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +10 -4
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.js +10 -9
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +3 -0
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +7 -7
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +1 -1
- package/dist/components/arcgis-view-popover/customElement.d.ts +65 -33
- package/dist/components/arcgis-view-popover/customElement.js +196 -108
- package/dist/components/arcgis-view-popover/index.js +1 -1
- 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/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +7 -7
- package/dist/cdn/3NUN6DK3.js +0 -2
- package/dist/cdn/6FJUKYNB.js +0 -2
- package/dist/cdn/7Y6PADB5.js +0 -2
- package/dist/cdn/I5F7MVDT.js +0 -2
- package/dist/cdn/P5U37XIA.js +0 -2
- package/dist/cdn/PD4ELTMF.js +0 -2
- package/dist/cdn/RAADOJWX.js +0 -2
- package/dist/cdn/TY4XRXLB.js +0 -2
- package/dist/cdn/UZ4VANCL.js +0 -2
- package/dist/cdn/W4BA3ECA.js +0 -2
- package/dist/cdn/ZEQHIKTN.js +0 -2
|
@@ -1,7 +1,52 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import {
|
|
3
|
-
const t = e`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{width:100%;--arcgis-internal-layer-list-item-scroller-max-height: var(--arcgis-internal-panel-height-md)}.item{--calcite-list-item-icon-center: var(--calcite-space-sm)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:14px}.item__filter-container--sticky{z-index:1;position:sticky;top:0}.item__group{margin-top:var(--calcite-space-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-space-md) 15px}.content-bottom .arcgis-legend__service{padding:0 0 var(--calcite-space-md)}.message{margin:var(--calcite-space-md) 15px}.visible-icon{visibility:hidden}.item:hover>.visible-toggle>.visible-icon,.item:focus>.visible-toggle>.visible-icon,.item:focus-within>.visible-toggle>.visible-icon{visibility:visible}`, r = e`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{display:flex;transition:max-height .25s ease-in-out;overflow-y:auto;--arcgis-internal-layer-list-legend-color-text: var(--calcite-color-text-2)}:host>div{display:flex;width:100%}.filter-no-results{padding:var(--calcite-space-md) var(--calcite-space-md-plus)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-space-xl);width:var(--calcite-space-xl);height:var(--calcite-space-xl);font-size:var(--calcite-font-size)}.action-menu .action-group{display:none}.action-menu[open] .action-group{display:flex}.active:hover>.visible-toggle>.visible-icon,.active:focus>.visible-toggle>.visible-icon,.active:focus-within>.visible-toggle>.visible-icon{visibility:visible}.status-indicator{margin-inline:0}`;
|
|
2
|
+
import { makeGenericController as w } from "@arcgis/lumina/controllers";
|
|
3
|
+
import { css as h } from "lit";
|
|
4
|
+
const f = (e) => e instanceof HTMLElement && e.localName === "calcite-list-item", k = w(
|
|
5
|
+
(e, c) => {
|
|
6
|
+
let n = !1, l = !1, o = null;
|
|
7
|
+
const d = () => e.selectionMode === "multiple" && !n ? "single-persist" : e.selectionMode, g = () => {
|
|
8
|
+
const t = d();
|
|
9
|
+
e.el.shadowRoot?.querySelectorAll("calcite-list, calcite-list-item").forEach((i) => i.setAttribute("selection-mode", t));
|
|
10
|
+
}, _ = (t) => {
|
|
11
|
+
if (e.selectionMode !== "multiple")
|
|
12
|
+
return;
|
|
13
|
+
const i = t.composedPath()[0];
|
|
14
|
+
if (!(!f(i) || i.getRootNode() !== e.el.shadowRoot)) {
|
|
15
|
+
if (l) {
|
|
16
|
+
const a = i.parentElement;
|
|
17
|
+
if (!a)
|
|
18
|
+
return;
|
|
19
|
+
if (!o?.isConnected || o.parentElement !== a) {
|
|
20
|
+
o = i;
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const s = Array.from(a.children).filter(
|
|
24
|
+
(r) => f(r) && !r.closed && !r.disabled && !r.hidden && !r.hasAttribute("filter-hidden")
|
|
25
|
+
), p = s.indexOf(o), m = s.indexOf(i), u = Math.min(p, m), x = Math.max(p, m), b = s.slice(u, x + 1);
|
|
26
|
+
e.el.shadowRoot?.querySelectorAll("calcite-list-item").forEach((r) => r.selected = b.includes(r));
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
o = i, !n && e.el.shadowRoot?.querySelectorAll("calcite-list-item").forEach((a) => a.selected = a === i);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
return c.onLoaded(() => {
|
|
33
|
+
const t = (i) => {
|
|
34
|
+
n = i.ctrlKey || i.metaKey || i.shiftKey, l = i.shiftKey, g();
|
|
35
|
+
};
|
|
36
|
+
e.listenOn(window, "keydown", t), e.listenOn(window, "keyup", t), e.listenOn(window, "blur", () => {
|
|
37
|
+
n = !1, l = !1, g();
|
|
38
|
+
}), e.listenOn(e.el.shadowRoot, "calciteListItemSelect", _);
|
|
39
|
+
}), c.onUpdate((t) => {
|
|
40
|
+
t.has("selectionMode") && (o = null);
|
|
41
|
+
}), {
|
|
42
|
+
get selectionMode() {
|
|
43
|
+
return d();
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
), z = h`.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-space-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-space-md) 15px}.content-bottom .arcgis-legend__service{padding:0 0 var(--calcite-space-md)}.message{margin:var(--calcite-space-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}`, M = h`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{display:flex;transition:max-height .25s ease-in-out;overflow-y:auto;--arcgis-internal-layer-list-legend-color-text: var(--calcite-color-text-2)}:host>div{display:flex;width:100%}.filter-no-results{padding:var(--calcite-space-md) var(--calcite-space-md-plus)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-space-xl);width:var(--calcite-space-xl);height:var(--calcite-space-xl);font-size:var(--calcite-font-size)}.action-menu .action-group{display:none}.action-menu[open] .action-group{display:flex}.active:hover>.visible-toggle>.visible-icon,.active:focus>.visible-toggle>.visible-icon,.active:focus-within>.visible-toggle>.visible-icon{visibility:visible}.status-indicator{margin-inline:0}`;
|
|
4
48
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
49
|
+
z as a,
|
|
50
|
+
M as s,
|
|
51
|
+
k as u
|
|
7
52
|
};
|
|
@@ -23,6 +23,9 @@ import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.j
|
|
|
23
23
|
* The Basemap Layer List (next) component provides a way to display a list of [Basemap](https://developers.arcgis.com/javascript/latest/references/core/Basemap/) layers and switch on/off their visibility.
|
|
24
24
|
* [Base layers](https://developers.arcgis.com/javascript/latest/references/core/Basemap/#baseLayers) and [reference layers](https://developers.arcgis.com/javascript/latest/references/core/Basemap/#referenceLayers) are divided into separate sections.
|
|
25
25
|
*
|
|
26
|
+
* When `selectionMode` is `multiple`, use Ctrl or Cmd to toggle individual items and Shift to select a range.
|
|
27
|
+
* Selecting an item without a modifier replaces the current selection.
|
|
28
|
+
*
|
|
26
29
|
* @since 5.2
|
|
27
30
|
* @beta
|
|
28
31
|
*/
|
|
@@ -3,9 +3,9 @@ import { c as O } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css as D, html as r } from "lit";
|
|
4
4
|
import { keyed as d } from "lit/directives/keyed.js";
|
|
5
5
|
import { repeat as k } from "lit/directives/repeat.js";
|
|
6
|
-
import
|
|
6
|
+
import S from "@arcgis/core/layerList/BasemapLayerListModel.js";
|
|
7
7
|
import L from "@arcgis/core/core/Collection.js";
|
|
8
|
-
import { on as
|
|
8
|
+
import { on as N, watch as U } from "@arcgis/core/core/reactiveUtils.js";
|
|
9
9
|
import { LitElement as G, createEvent as b, renderElement as $, safeClassMap as g, nothing as y } from "@arcgis/lumina";
|
|
10
10
|
import { usePropertyChange as H } from "@arcgis/lumina/controllers";
|
|
11
11
|
import { reEmitEvent as V } from "@arcgis/lumina-toolkit/reEmitEvent";
|
|
@@ -13,30 +13,30 @@ import { classes as q } from "@arcgis/toolkit/dom";
|
|
|
13
13
|
import { generateGuid as j } from "@arcgis/toolkit/string";
|
|
14
14
|
import { createRef as m, ref as u } from "lit/directives/ref.js";
|
|
15
15
|
import { u as z } from "../../chunks/useCloseEvent.js";
|
|
16
|
-
import { u as J } from "../../chunks/
|
|
17
|
-
import {
|
|
16
|
+
import { u as J, s as K, a as Q } from "../../chunks/layer-list-next.js";
|
|
17
|
+
import { u as W } from "../../chunks/useT9n.js";
|
|
18
|
+
import { m as X } from "../../chunks/useViewModel.js";
|
|
18
19
|
import { g as _ } from "../../chunks/globalCss.js";
|
|
19
|
-
import { g as h, a as F, b as
|
|
20
|
-
import { ArcgisLayerListItem as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { c as ae } from "../../chunks/css.js";
|
|
20
|
+
import { g as h, a as F, b as Y, r as Z, s as T, c as ee, d as te, e as se } from "../../chunks/layer-list-utils.js";
|
|
21
|
+
import { ArcgisLayerListItem as ie } from "../arcgis-layer-list-next/layer-list-item/customElement.js";
|
|
22
|
+
import { r as ae } from "../../chunks/utils.js";
|
|
23
|
+
import { c as le } from "../../chunks/css.js";
|
|
24
24
|
import "../arcgis-layer-list-item-indicator/customElement.js";
|
|
25
25
|
import "../arcgis-layer-list-item-panel/customElement.js";
|
|
26
26
|
const p = {
|
|
27
|
-
...
|
|
27
|
+
...le,
|
|
28
28
|
section: "section",
|
|
29
29
|
editing: "editing",
|
|
30
30
|
editingForm: "editing-form"
|
|
31
|
-
},
|
|
32
|
-
class
|
|
31
|
+
}, re = D`:host{--arcgis-layer-list-visibility-icon: hidden}.editing-form{display:flex;height:100%;flex:1}.editing{padding-block:var(--calcite-space-sm);padding-inline:var(--calcite-space-sm)}`, E = "nested", oe = ".*\\S+.*", M = "data-basemap-layer-type", ne = X(S);
|
|
32
|
+
class ce extends G {
|
|
33
33
|
constructor() {
|
|
34
|
-
super(...arguments), this._baseListRef = m(), this._referenceListRef = m(), this._editTitleInputRef = m(), this._layerFlowItemRef = m(), this._panelFlowItemRef = m(), this._rootFlowItemRef = m(), this._editingFlowItemRef = m(), this.#
|
|
35
|
-
const
|
|
34
|
+
super(...arguments), this.#t = J(this), this._baseListRef = m(), this._referenceListRef = m(), this._editTitleInputRef = m(), this._layerFlowItemRef = m(), this._panelFlowItemRef = m(), this._rootFlowItemRef = m(), this._editingFlowItemRef = m(), this.#s = null, this._selectedDragItemLayerUid = null, this._rootGroupUid = `basemap-${j()}`, this.#i = null, this._focusRootFlowItem = !1, this._focusPanelFlowItem = !1, this._focusLayerFlowItem = null, this._focusEditingFlowItem = !1, this.messages = W(), this.viewModel = ne(this), this.arcgisClose = z(this), this._canMove = ({ dragEl: e, fromEl: t, toEl: s }, i) => {
|
|
35
|
+
const l = i === "pull" ? this.listItemCanGiveFunction : this.listItemCanReceiveFunction, o = h(e, this._allItems);
|
|
36
36
|
if (!o?.sortable)
|
|
37
37
|
return !1;
|
|
38
|
-
const
|
|
39
|
-
return A && P && typeof
|
|
38
|
+
const n = h(t, this._allItems), a = F(t), c = h(s, this._allItems), f = F(s), I = !!a && !!f && a === f, R = { selected: o, from: n, to: c }, A = t.group, P = s.group, B = n?.layer?.type ?? "", x = c?.layer?.type ?? "", w = /* @__PURE__ */ new Set(["map-image", "catalog", "knowledge-graph"]);
|
|
39
|
+
return A && P && typeof l == "function" ? l(R) : I && !w.has(B) && !w.has(x) && o.layer?.type !== "sublayer";
|
|
40
40
|
}, this._onTriggerAction = (e, t) => {
|
|
41
41
|
this.triggerAction(e, t);
|
|
42
42
|
}, this._onTooltipReferenceChange = (e, t) => {
|
|
@@ -65,16 +65,17 @@ class ne extends G {
|
|
|
65
65
|
e.preventDefault();
|
|
66
66
|
const t = this._editTitleInputRef.value?.value;
|
|
67
67
|
t?.trim() && (this.basemapTitle = t), this._toggleEditingTitle();
|
|
68
|
-
}, this._activeItem = null, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.openedLayerLists = new L(), this.autoDestroyDisabled = !1, this.baseFilterText = "", this.baseItemCreatedFunction = this.viewModel.baseItemCreatedFunction, this.basemapTitle = this.viewModel.basemapTitle, this.closed = !1, this.collapsed = !1, this.dragEnabled = !1, this.editingTitle = !1, this.filterPlaceholder = "", this.headingLevel = 2, this.hideBaseLayers = !1, this.hideCatalogLayerList = !1, this.hideHeading = !1, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.hideReferenceLayers = !1, this.hideStatusIndicators = !1, this.icon = "layers", this.layerTablesEnabled = new L(["knowledge-graph"]), this.listModeDisabled = this.viewModel.listModeDisabled, this.minFilterItems =
|
|
68
|
+
}, this._activeItem = null, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.openedLayerLists = new L(), this.autoDestroyDisabled = !1, this.baseFilterText = "", this.baseItemCreatedFunction = this.viewModel.baseItemCreatedFunction, this.basemapTitle = this.viewModel.basemapTitle, this.closed = !1, this.collapsed = !1, this.dragEnabled = !1, this.editingTitle = !1, this.filterPlaceholder = "", this.headingLevel = 2, this.hideBaseLayers = !1, this.hideCatalogLayerList = !1, this.hideHeading = !1, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.hideReferenceLayers = !1, this.hideStatusIndicators = !1, this.icon = "layers", this.layerTablesEnabled = new L(["knowledge-graph"]), this.listModeDisabled = this.viewModel.listModeDisabled, this.minFilterItems = Y, this.openedLayers = new L(), this.referenceFilterText = "", this.referenceItemCreatedFunction = this.viewModel.referenceItemCreatedFunction, this.selectedItems = new L(), this.selectionMode = "none", this.showCloseButton = !1, this.showCollapseButton = !1, this.showEditTitleButton = !1, this.showErrors = !1, this.showFilter = !1, this.showTemporaryLayerIndicators = !1, this.state = this.viewModel.state, this.view = this.viewModel.view, this.visibilityAppearance = "default", this.arcgisBaseFilterChange = b(), this.arcgisOpenedLayersChange = b(), this.arcgisPropertyChange = H()("state"), this.arcgisReady = b(), this.arcgisReferenceFilterChange = b(), this.arcgisTriggerAction = V(() => this.viewModel, "trigger-action");
|
|
69
69
|
}
|
|
70
70
|
static {
|
|
71
71
|
this.properties = { _activeItem: 16, _catalogLayerList: 16, _tableList: 16, _tooltipReferenceMap: 16, _layerListMap: 16, openedLayerLists: 16, _allItems: 16, _visibleBaseItems: 16, _visibleReferenceItems: 16, _openedPanelItems: 16, _totalBaseItems: 16, _totalReferenceItems: 16, _baseFilterEnabled: 16, _referenceFilterEnabled: 16, _renderedOpenLayerFlowItems: 16, autoDestroyDisabled: 5, baseFilterPredicate: 0, baseFilterText: 1, baseItemCreatedFunction: 0, baseItems: 32, basemapTitle: 1, catalogLayerList: 32, catalogOptions: 0, closed: 5, collapsed: 7, dragEnabled: 5, editingTitle: 5, filterPlaceholder: 1, headingLevel: 9, hideBaseLayers: 5, hideCatalogLayerList: 5, hideHeading: 5, hideNoFilterResultsNotice: 5, hideNoItemsNotice: 5, hideReferenceLayers: 5, hideStatusIndicators: 5, icon: 1, knowledgeGraphOptions: 0, label: 1, layerTablesEnabled: 0, listItemCanGiveFunction: 0, listItemCanReceiveFunction: 0, listModeDisabled: 5, mapImageOptions: 0, messageOverrides: 0, minFilterItems: 9, openedLayers: 32, referenceElement: 1, referenceFilterPredicate: 0, referenceFilterText: 1, referenceItems: 32, referenceItemCreatedFunction: 0, selectedItems: 0, selectionMode: 1, showCloseButton: 5, showCollapseButton: 5, showEditTitleButton: 5, showErrors: 5, showFilter: 5, showTemporaryLayerIndicators: 5, state: 32, tableList: 32, tileOptions: 0, view: 0, visibilityAppearance: 1 };
|
|
72
72
|
}
|
|
73
73
|
static {
|
|
74
|
-
this.styles = [
|
|
74
|
+
this.styles = [K, re, Q];
|
|
75
75
|
}
|
|
76
76
|
#t;
|
|
77
77
|
#s;
|
|
78
|
+
#i;
|
|
78
79
|
get _allItems() {
|
|
79
80
|
return this.referenceItems.concat(this.baseItems);
|
|
80
81
|
}
|
|
@@ -100,7 +101,7 @@ class ne extends G {
|
|
|
100
101
|
return this._totalReferenceItems >= this.minFilterItems && this.showFilter;
|
|
101
102
|
}
|
|
102
103
|
get _renderedOpenLayerFlowItems() {
|
|
103
|
-
return this.openedLayers.toArray().map((e, t) => this
|
|
104
|
+
return this.openedLayers.toArray().map((e, t) => this.#$(e, t === this.openedLayers.length - 1));
|
|
104
105
|
}
|
|
105
106
|
get baseItems() {
|
|
106
107
|
return this.viewModel.baseItems;
|
|
@@ -115,14 +116,14 @@ class ne extends G {
|
|
|
115
116
|
return this._tableList;
|
|
116
117
|
}
|
|
117
118
|
async destroy() {
|
|
118
|
-
await this.manager.destroy(), this.#
|
|
119
|
+
await this.manager.destroy(), this.#c(), this._tooltipReferenceMap.clear();
|
|
119
120
|
}
|
|
120
121
|
loaded() {
|
|
121
122
|
this.manager.onLifecycle(() => [
|
|
122
|
-
|
|
123
|
-
this.#
|
|
123
|
+
N(() => this.openedLayers, "change", () => {
|
|
124
|
+
this.#n();
|
|
124
125
|
}, { initial: !0 }),
|
|
125
|
-
U(() => [this.viewModel.referenceItems.toArray(), this.viewModel.baseItems.toArray()], () =>
|
|
126
|
+
U(() => [this.viewModel.referenceItems.toArray(), this.viewModel.baseItems.toArray()], () => Z(this.selectedItems), { initial: !0 })
|
|
126
127
|
]);
|
|
127
128
|
}
|
|
128
129
|
updated() {
|
|
@@ -131,35 +132,35 @@ class ne extends G {
|
|
|
131
132
|
triggerAction(e, t) {
|
|
132
133
|
this.viewModel.triggerAction(e, t);
|
|
133
134
|
}
|
|
134
|
-
async #
|
|
135
|
+
async #o(e, t) {
|
|
135
136
|
const s = this._layerListMap.get(e);
|
|
136
137
|
if (s)
|
|
137
138
|
return s;
|
|
138
|
-
const i = e.type === "catalog" ? await this.#
|
|
139
|
+
const i = e.type === "catalog" ? await this.#h(e) : await this._createTableList(e);
|
|
139
140
|
return t.aborted || this._layerListMap.set(e, i), i;
|
|
140
141
|
}
|
|
141
|
-
async #
|
|
142
|
+
async #n() {
|
|
142
143
|
const { _layerListMap: e, openedLayers: t, openedLayerLists: s } = this;
|
|
143
|
-
this.#
|
|
144
|
-
const i = new AbortController(), { signal:
|
|
145
|
-
this.#
|
|
146
|
-
t.includes(c) || (
|
|
144
|
+
this.#i?.abort();
|
|
145
|
+
const i = new AbortController(), { signal: l } = i;
|
|
146
|
+
this.#i = i, e.forEach((a, c) => {
|
|
147
|
+
t.includes(c) || (a?.destroy?.(), e.delete(c));
|
|
147
148
|
});
|
|
148
|
-
const o = await Promise.all(t.map((
|
|
149
|
-
if (
|
|
149
|
+
const o = await Promise.all(t.map((a) => this.#o(a, l)));
|
|
150
|
+
if (l.aborted)
|
|
150
151
|
return;
|
|
151
152
|
s.removeAll(), s.addMany(o);
|
|
152
|
-
const
|
|
153
|
-
|
|
153
|
+
const n = s.at(-1);
|
|
154
|
+
n ? "catalogLayer" in n ? (this._catalogLayerList = n, this._tableList = void 0) : (this._catalogLayerList = void 0, this._tableList = n) : (this._catalogLayerList = void 0, this._tableList = void 0), this.arcgisOpenedLayersChange.emit();
|
|
154
155
|
}
|
|
155
|
-
#
|
|
156
|
+
#c() {
|
|
156
157
|
this.openedLayerLists.destroyAll(), this.openedLayers.removeAll(), this._layerListMap.clear();
|
|
157
158
|
}
|
|
158
|
-
async #
|
|
159
|
-
const { headingLevel: t, catalogOptions: s, filterPlaceholder: i, minFilterItems:
|
|
160
|
-
return $(r`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? i} .listItemCreatedFunction=${s?.listItemCreatedFunction} .minFilterItems=${s?.minFilterItems ??
|
|
159
|
+
async #h(e) {
|
|
160
|
+
const { headingLevel: t, catalogOptions: s, filterPlaceholder: i, minFilterItems: l, selectionMode: o, visibilityAppearance: n, layerTablesEnabled: a } = this;
|
|
161
|
+
return $(r`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? i} .listItemCreatedFunction=${s?.listItemCreatedFunction} .minFilterItems=${s?.minFilterItems ?? l} .selectionMode=${s?.selectionMode ?? o} .visibilityAppearance=${s?.visibilityAppearance ?? n} .showErrors=${s?.showErrors ?? this.showErrors} .showFilter=${s?.showFilter ?? this.showFilter} .hideStatusIndicators=${s?.hideStatusIndicators ?? this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.showTemporaryLayerIndicators ?? this.showTemporaryLayerIndicators} @arcgisReady=${(c) => c.stopPropagation()} .catalogLayer=${e} .layerTablesEnabled=${a} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`);
|
|
161
162
|
}
|
|
162
|
-
#
|
|
163
|
+
#d(e) {
|
|
163
164
|
switch (e.type) {
|
|
164
165
|
case "knowledge-graph":
|
|
165
166
|
return { ...this.knowledgeGraphOptions, tables: e.tables };
|
|
@@ -172,54 +173,54 @@ class ne extends G {
|
|
|
172
173
|
}
|
|
173
174
|
}
|
|
174
175
|
async _createTableList(e) {
|
|
175
|
-
const t = this.#
|
|
176
|
+
const t = this.#d(e);
|
|
176
177
|
return $(r`<arcgis-table-list-next .headingLevel=${t?.headingLevel ?? this.headingLevel} .selectionMode=${t?.selectionMode ?? this.selectionMode} .dragEnabled=${t?.dragEnabled ?? this.dragEnabled} .collapsed=${t?.collapsed} .filterPlaceholder=${t?.filterPlaceholder} .filterText=${t?.filterText} .icon=${t?.icon ?? void 0} .label=${t?.label ?? void 0} .listItemCreatedFunction=${t?.listItemCreatedFunction} .tables=${t?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${(s) => s.stopPropagation()}></arcgis-table-list-next>`);
|
|
177
178
|
}
|
|
178
|
-
#
|
|
179
|
+
#m(e) {
|
|
179
180
|
e.open = !1, this._focusRootFlowItem = !0;
|
|
180
181
|
}
|
|
181
|
-
#
|
|
182
|
-
const
|
|
183
|
-
i == null || !
|
|
184
|
-
targetItem:
|
|
185
|
-
fromParentItem:
|
|
182
|
+
#p({ toEl: e, fromEl: t, dragEl: s, newIndex: i }) {
|
|
183
|
+
const l = h(s, this._allItems), o = e.hasAttribute("data-item") ? h(e, this._allItems) : null, n = t.hasAttribute("data-item") ? h(t, this._allItems) : null, a = C(t), c = C(e);
|
|
184
|
+
i == null || !l || !a || !c || (this.viewModel.moveItem({
|
|
185
|
+
targetItem: l,
|
|
186
|
+
fromParentItem: n,
|
|
186
187
|
toParentItem: o,
|
|
187
188
|
newIndex: i,
|
|
188
|
-
from:
|
|
189
|
+
from: a,
|
|
189
190
|
to: c
|
|
190
|
-
}),
|
|
191
|
+
}), ae(this, l.uid, (f) => f.parentElement?.closest("calcite-list") === e));
|
|
191
192
|
}
|
|
192
|
-
#
|
|
193
|
-
const { fromEl: t, toEl: s, dragEl: i, oldIndex:
|
|
193
|
+
#f(e) {
|
|
194
|
+
const { fromEl: t, toEl: s, dragEl: i, oldIndex: l } = e;
|
|
194
195
|
if (t !== s) {
|
|
195
196
|
i.remove();
|
|
196
197
|
return;
|
|
197
198
|
}
|
|
198
|
-
|
|
199
|
+
l == null || !t || !i || t.insertBefore(i, t.children[l]);
|
|
199
200
|
}
|
|
200
201
|
_onCalciteListOrderChange(e) {
|
|
201
|
-
const t = this.#
|
|
202
|
-
if (!i || !s ||
|
|
202
|
+
const t = this.#s, { toEl: s, fromEl: i, dragEl: l, newIndex: o } = e, n = t?.newIndex === o && t?.dragEl === l && t?.toEl === s && t?.fromEl === i;
|
|
203
|
+
if (!i || !s || n)
|
|
203
204
|
return;
|
|
204
|
-
this.#
|
|
205
|
-
const
|
|
206
|
-
if (
|
|
205
|
+
this.#s = e, this._selectedDragItemLayerUid = l.value.layer?.uid ?? null;
|
|
206
|
+
const a = i, c = s;
|
|
207
|
+
if (a === c) {
|
|
207
208
|
const f = Array.from(i.children).filter((I) => I?.matches("calcite-list-item")).map((I) => I.value.layer?.uid ?? "");
|
|
208
|
-
this._sortLayers(
|
|
209
|
+
this._sortLayers(a, f);
|
|
209
210
|
return;
|
|
210
211
|
}
|
|
211
|
-
this.#
|
|
212
|
+
this.#p({ toEl: c, fromEl: a, dragEl: l, newIndex: o });
|
|
212
213
|
}
|
|
213
214
|
_sortLayers(e, t) {
|
|
214
215
|
if (e === this._referenceListRef.value || e === this._baseListRef.value) {
|
|
215
216
|
const i = e === this._baseListRef.value ? this.view?.map?.basemap?.baseLayers : this.view?.map?.basemap?.referenceLayers;
|
|
216
|
-
|
|
217
|
+
ee(i, t);
|
|
217
218
|
return;
|
|
218
219
|
}
|
|
219
220
|
const s = h(e, this._allItems);
|
|
220
|
-
s &&
|
|
221
|
+
s && te(s, t);
|
|
221
222
|
}
|
|
222
|
-
#
|
|
223
|
+
#g(e) {
|
|
223
224
|
if (this.selectionMode === "none")
|
|
224
225
|
return;
|
|
225
226
|
const t = e.target.selectedItems.map((s) => h(s, this._allItems)).filter(Boolean);
|
|
@@ -233,88 +234,88 @@ class ne extends G {
|
|
|
233
234
|
[_.hidden]: this.state === "loading",
|
|
234
235
|
[_.disabled]: this.state === "disabled"
|
|
235
236
|
};
|
|
236
|
-
return r`<div class=${g(q(_.widget, _.panel, e))}>${this.#
|
|
237
|
+
return r`<div class=${g(q(_.widget, _.panel, e))}>${this.#v()}${this.#I()}</div>`;
|
|
237
238
|
}
|
|
238
|
-
#
|
|
239
|
+
#u(e) {
|
|
239
240
|
return e ? r`<calcite-tooltip overlay-positioning=fixed .referenceElement=${this._tooltipReferenceMap.get(e.layer?.uid ?? "")}>${this.messages.layerIncompatibleTooltip}</calcite-tooltip>` : null;
|
|
240
241
|
}
|
|
241
|
-
#
|
|
242
|
+
#a(e) {
|
|
242
243
|
if (e.incompatible)
|
|
243
|
-
return this.#
|
|
244
|
-
const t = e.children?.filter((s) => !s.hidden).toArray().map((s) => this.#
|
|
244
|
+
return this.#u(e);
|
|
245
|
+
const t = e.children?.filter((s) => !s.hidden).toArray().map((s) => this.#a(s));
|
|
245
246
|
return t?.length ? t : null;
|
|
246
247
|
}
|
|
247
|
-
#
|
|
248
|
-
return this._visibleReferenceItems.concat(this._visibleBaseItems).toArray().map((e) => this.#
|
|
248
|
+
#I() {
|
|
249
|
+
return this._visibleReferenceItems.concat(this._visibleBaseItems).toArray().map((e) => this.#a(e));
|
|
249
250
|
}
|
|
250
|
-
#
|
|
251
|
+
#l(e) {
|
|
251
252
|
return r`<div slot=message>${e}</div>`;
|
|
252
253
|
}
|
|
253
|
-
#
|
|
254
|
-
return this.hideNoItemsNotice ? null : r`<div class=${g(p.itemMessage)}>${d(t, r`<calcite-notice icon=information kind=info open width=full>${this.#
|
|
255
|
-
}
|
|
256
|
-
#y() {
|
|
257
|
-
return r`<div class=${g(p.editing)}><calcite-label>${this.messages.basemapTitle}<calcite-input .label=${this.messages.basemapTitle} name=basemaptitle .pattern=${re} .placeholder=${this.messages.basemapTitle} required title=${this.messages.basemapTitle ?? y} type=text .value=${this.viewModel.basemapTitle ?? void 0} ${u(this._editTitleInputRef)}></calcite-input></calcite-label></div>`;
|
|
254
|
+
#y(e, t) {
|
|
255
|
+
return this.hideNoItemsNotice ? null : r`<div class=${g(p.itemMessage)}>${d(t, r`<calcite-notice icon=information kind=info open width=full>${this.#l(e)}</calcite-notice>`)}</div>`;
|
|
258
256
|
}
|
|
259
257
|
#L() {
|
|
258
|
+
return r`<div class=${g(p.editing)}><calcite-label>${this.messages.basemapTitle}<calcite-input .label=${this.messages.basemapTitle} name=basemaptitle .pattern=${oe} .placeholder=${this.messages.basemapTitle} required title=${this.messages.basemapTitle ?? y} type=text .value=${this.viewModel.basemapTitle ?? void 0} ${u(this._editTitleInputRef)}></calcite-input></calcite-label></div>`;
|
|
259
|
+
}
|
|
260
|
+
#b() {
|
|
260
261
|
return this.editingTitle ? r`<calcite-flow-item .heading=${this.hideHeading ? void 0 : this.messages.basemapTitle} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length && !this._openedPanelItems.length} @calciteFlowItemBack=${(e) => {
|
|
261
262
|
e.preventDefault(), this._toggleEditingTitle();
|
|
262
|
-
}} ${u(this._editingFlowItemRef)}>${this.#
|
|
263
|
+
}} ${u(this._editingFlowItemRef)}>${this.#L()}<calcite-button appearance=outline @click=${this._toggleEditingTitle} slot=footer-actions width=full>${this.messages.cancel}</calcite-button><calcite-button slot=footer-actions type=submit width=full>${this.messages.ok}</calcite-button></calcite-flow-item>` : null;
|
|
263
264
|
}
|
|
264
|
-
#
|
|
265
|
+
#_() {
|
|
265
266
|
return this.showEditTitleButton && !this.editingTitle ? r`<calcite-action icon=pencil @click=${this._toggleEditingTitle} slot=header-actions-end .text=${this.messages.edit ?? ""} title=${this.messages.edit ?? y}></calcite-action>` : null;
|
|
266
267
|
}
|
|
267
|
-
#
|
|
268
|
+
#v() {
|
|
268
269
|
const e = [
|
|
269
270
|
d("root-flow-item", r`<calcite-flow-item .closable=${this.showCloseButton} .closed=${this.closed} .collapsed=${this.collapsed} .collapsible=${this.showCollapseButton} .heading=${this.hideHeading ? void 0 : this.viewModel.basemapTitle ?? this.messages.componentLabel} .headingLevel=${this.headingLevel} .selected=${!this.editingTitle && !this.openedLayers.length && !this._openedPanelItems.length} @calciteFlowItemClose=${() => {
|
|
270
271
|
this.closed = !0;
|
|
271
|
-
}} ${u(this._rootFlowItemRef)}>${this.#
|
|
272
|
-
this.#
|
|
273
|
-
this.#
|
|
272
|
+
}} ${u(this._rootFlowItemRef)}>${this.#_()}${this.#T()}${this.#F()}</calcite-flow-item>`),
|
|
273
|
+
this.#b(),
|
|
274
|
+
this.#w(),
|
|
274
275
|
this._renderedOpenLayerFlowItems
|
|
275
276
|
];
|
|
276
277
|
this._focusRootFlowItem = this.#e(this._rootFlowItemRef.value, this._focusRootFlowItem), this._focusEditingFlowItem = this.#e(this._editingFlowItemRef.value, this._focusEditingFlowItem);
|
|
277
278
|
const t = d("root-flow", r`<calcite-flow>${e}</calcite-flow>`);
|
|
278
279
|
return this.closed ? null : this.editingTitle ? r`<form class=${g(p.editingForm)} @submit=${this._formSubmit}>${t}</form>` : t;
|
|
279
280
|
}
|
|
280
|
-
#
|
|
281
|
+
#w() {
|
|
281
282
|
return k(this._openedPanelItems.toArray(), (e) => e.uid, (e, t) => {
|
|
282
|
-
const { panel: s, title: i } = e,
|
|
283
|
+
const { panel: s, title: i } = e, l = () => this.#m(s);
|
|
283
284
|
return this._focusPanelFlowItem = this.#e(this._panelFlowItemRef.value, this._focusPanelFlowItem), r`<calcite-flow-item .description=${i} .heading=${s.title} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length && t === this._openedPanelItems.length - 1} @calciteFlowItemBack=${(o) => {
|
|
284
|
-
o.preventDefault(),
|
|
285
|
-
}} ${u(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${e} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${
|
|
285
|
+
o.preventDefault(), l();
|
|
286
|
+
}} ${u(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${e} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${l} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`;
|
|
286
287
|
});
|
|
287
288
|
}
|
|
288
|
-
|
|
289
|
+
#$(e, t) {
|
|
289
290
|
const s = e.title || this.messages.untitledLayer;
|
|
290
291
|
return this._focusLayerFlowItem === e.uid && (this._focusLayerFlowItem = this.#e(this._layerFlowItemRef.value, !0) ? e.uid : null), d(e.uid, r`<calcite-flow-item data-layer-uid=${e.uid ?? y} .description=${s} .heading=${this.messages[e.type === "catalog" ? "catalogLayers" : "tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${(i) => {
|
|
291
292
|
i.preventDefault(), this.openedLayers.pop();
|
|
292
|
-
const
|
|
293
|
-
|
|
293
|
+
const l = this.openedLayers.at(-1);
|
|
294
|
+
l ? this._focusLayerFlowItem = l.uid : this._focusRootFlowItem = !0;
|
|
294
295
|
}} ${u(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`);
|
|
295
296
|
}
|
|
296
|
-
#
|
|
297
|
-
const i = t === "reference" ? this._referenceFilterEnabled : this._baseFilterEnabled,
|
|
298
|
-
return d(`block-${t}`, r`<calcite-block class=${g(p.section)} expandable expanded .heading=${t === "reference" ? this.messages.referenceHeading : this.messages.baseHeading} .headingLevel=${this.headingLevel + 1}>${e?.length ? null : this.#
|
|
299
|
-
const
|
|
300
|
-
this[t === "reference" ? "referenceFilterText" : "baseFilterText"] =
|
|
301
|
-
}} @calciteListOrderChange=${(
|
|
302
|
-
}
|
|
303
|
-
#$() {
|
|
304
|
-
return this.hideBaseLayers ? null : this.#l(this._visibleBaseItems, "base", this._visibleBaseItems.length === 1);
|
|
297
|
+
#r(e, t, s) {
|
|
298
|
+
const i = t === "reference" ? this._referenceFilterEnabled : this._baseFilterEnabled, l = t === "reference" ? this.referenceFilterText : this.baseFilterText, o = (t === "reference" ? this.messages.noReferenceLayers : this.messages.noBaseLayers) ?? this.messages.noItemsToDisplay ?? "", n = this.#t.selectionMode;
|
|
299
|
+
return d(`block-${t}`, r`<calcite-block class=${g(p.section)} expandable expanded .heading=${t === "reference" ? this.messages.referenceHeading : this.messages.baseHeading} .headingLevel=${this.headingLevel + 1}>${e?.length ? null : this.#y(o, t)}${d(`list-${t}`, r`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${(a) => this._canMove(a, "pull")} .canPut=${(a) => this._canMove(a, "put")} data-basemap-layer-type=${t ?? y} data-layer-type=${this._rootGroupUid ?? y} .displayMode=${E} .dragEnabled=${this.dragEnabled} .filterEnabled=${i} .filterPlaceholder=${this.filterPlaceholder} .filterProps=${se} .filterText=${i ? l : ""} .group=${this._rootGroupUid} .label=${this.messages.componentLabel ?? ""} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=border .selectionMode=${n} @calciteListChange=${this.#g} @calciteListDragEnd=${(a) => this.#f(a.detail)} @calciteListFilter=${(a) => {
|
|
300
|
+
const c = a.currentTarget?.filterText ?? "";
|
|
301
|
+
this[t === "reference" ? "referenceFilterText" : "baseFilterText"] = c, t === "base" ? this.arcgisBaseFilterChange.emit() : this.arcgisReferenceFilterChange.emit();
|
|
302
|
+
}} @calciteListOrderChange=${(a) => this._onCalciteListOrderChange(a.detail)} ${u(t === "reference" ? this._referenceListRef : this._baseListRef)}>${e?.toArray().map((a) => this.#E(a, s))}${i && !this.hideNoFilterResultsNotice ? r`<div class=${g(p.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this.#l(o)}</calcite-notice></div>` : null}</calcite-list>`)}</calcite-block>`);
|
|
305
303
|
}
|
|
306
304
|
#F() {
|
|
307
|
-
return this.
|
|
305
|
+
return this.hideBaseLayers ? null : this.#r(this._visibleBaseItems, "base", this._visibleBaseItems.length === 1);
|
|
306
|
+
}
|
|
307
|
+
#T() {
|
|
308
|
+
return this.hideReferenceLayers ? null : this.#r(this._visibleReferenceItems, "reference", !1);
|
|
308
309
|
}
|
|
309
|
-
#
|
|
310
|
-
return d(e.uid,
|
|
310
|
+
#E(e, t, s, i) {
|
|
311
|
+
return d(e.uid, ie({ activeItem: this._activeItem, canMove: this._canMove, css: p, displayMode: E, dragEnabled: this.dragEnabled && !t, hideCatalogLayerList: this.hideCatalogLayerList, hideStatusIndicators: this.hideStatusIndicators, item: e, layerTablesEnabled: this.layerTablesEnabled, listModeDisabled: this.viewModel.listModeDisabled, messages: this.messages, operationalItems: this._allItems, parent: s, parentTitles: i, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.#t.selectionMode, setCurrentActiveItem: this._setCurrentActiveItem, clearActiveItem: this._clearActiveItem, showErrors: this.showErrors, showTemporaryLayerIndicators: this.showTemporaryLayerIndicators, visibilityAppearance: this.visibilityAppearance, handleAction: this._onTriggerAction, handleCatalogOpen: this._onCatalogOpen, handlePanelOpen: this._onPanelOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, handleTablesOpen: this._onTablesOpen, handleTooltipReferenceChange: this._onTooltipReferenceChange, view: this.view }));
|
|
311
312
|
}
|
|
312
313
|
}
|
|
313
314
|
function C(v) {
|
|
314
315
|
const e = v.closest(`[${M}]`)?.getAttribute(M);
|
|
315
316
|
return e === "base" || e === "reference" ? e : null;
|
|
316
317
|
}
|
|
317
|
-
O("arcgis-basemap-layer-list-next",
|
|
318
|
+
O("arcgis-basemap-layer-list-next", ce);
|
|
318
319
|
export {
|
|
319
|
-
|
|
320
|
+
ce as ArcgisBasemapLayerListNext
|
|
320
321
|
};
|
|
@@ -26,6 +26,9 @@ import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.j
|
|
|
26
26
|
* The [Item](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/) API provides access to each layer's properties, allows
|
|
27
27
|
* the developer to configure actions related to the layer, and allows the developer to add content to the item related to the layer.
|
|
28
28
|
*
|
|
29
|
+
* When `selectionMode` is `multiple`, use Ctrl or Cmd to toggle individual items and Shift to select a range.
|
|
30
|
+
* Selecting an item without a modifier replaces the current selection.
|
|
31
|
+
*
|
|
29
32
|
* @since 5.2
|
|
30
33
|
* @beta
|
|
31
34
|
* @example
|