@arcgis/map-components 5.2.0-next.143 → 5.2.0-next.145
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/K6D2JHC4.js +1 -1
- package/dist/cdn/{Q73T55TC.js → TB4YNDRB.js} +1 -1
- package/dist/cdn/W3ENDJ6U.js +1 -1
- package/dist/cdn/{WCEDE4CZ.js → WRJNCIEP.js} +1 -1
- package/dist/cdn/Y2LELW5Y.js +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +8 -3
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +8 -3
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +4 -4
- package/dist/components/arcgis-basemap-gallery/customElement.js +10 -10
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +8 -3
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +8 -3
- package/dist/components/arcgis-editor/customElement.d.ts +8 -5
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +15 -7
- package/dist/components/arcgis-feature-fields/customElement.js +20 -20
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +3 -0
- package/dist/components/arcgis-link-chart/customElement.d.ts +4 -2
- package/dist/components/arcgis-map/customElement.d.ts +4 -2
- package/dist/components/arcgis-scene/customElement.d.ts +4 -2
- package/dist/components/arcgis-sketch/customElement.d.ts +18 -7
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +30 -10
- 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/package.json +6 -6
|
@@ -3,17 +3,17 @@ import { c as f } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css as u, html as s } from "lit";
|
|
4
4
|
import { classes as w } from "@arcgis/toolkit/dom";
|
|
5
5
|
import { watch as v, when as b } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
|
-
import _ from "@arcgis/core/
|
|
6
|
+
import _ from "@arcgis/core/basemapGallery/BasemapGalleryModel.js";
|
|
7
7
|
import { LitElement as x, createEvent as y, nothing as d, safeClassMap as p, safeStyleMap as k } from "@arcgis/lumina";
|
|
8
8
|
import { useDirection as z, usePropertyChange as M } from "@arcgis/lumina/controllers";
|
|
9
9
|
import { u as $ } from "../../chunks/useT9n.js";
|
|
10
|
-
import { m as
|
|
11
|
-
import { H as
|
|
10
|
+
import { m as B } from "../../chunks/useViewModel.js";
|
|
11
|
+
import { H as C } from "../../chunks/heading.js";
|
|
12
12
|
import { g as l } from "../../chunks/globalCss.js";
|
|
13
13
|
import { i as L, a as E } from "../../chunks/keyboard-utils.js";
|
|
14
|
-
const R = u`@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;width:var(--arcgis-internal-panel-width, 300px)}:host(:focus-within){z-index:1;outline-offset:var(--calcite-spacing-base);outline:var(--calcite-spacing-base) solid var(--calcite-color-brand)}.root{position:relative;overflow-y:auto;container-type:inline-size;width:100%;min-height:32px;transition:max-height .25s ease-in-out}.root .loader:before,.root .loader:after{opacity:1;content:"";height:var(--calcite-spacing-px);transition:opacity .5s ease-in-out;position:absolute;top:0}.root .loader:before{z-index:0;background-color:var(--calcite-color-foreground-1);width:100%}.root .loader:after{z-index:0;background-color:var(--calcite-color-foreground-3);width:20%;animation:1.5s linear infinite looping-progresss-bar-ani}.esri-disabled arcgis-basemap-gallery-item{opacity:var(--calcite-opacity-light);pointer-events:none;animation:none}.empty-message{padding:12px 15px;animation:.5s ease-in-out esri-fade-in}.loader{width:100%;height:var(--calcite-spacing-base);animation:.5s ease-in-out esri-fade-in;position:absolute;top:0;left:0;right:0}.item-container{flex-flow:column;gap:3px;margin:0;padding-block:3px;padding-inline:3px;list-style:none;transition:opacity .25s ease-in-out;display:flex;position:relative}calcite-popover>.root{width:280px;max-height:80vh}.ui-corner calcite-panel>.root.widget.widget--panel{width:unset}.view-width-greater-than-large calcite-popover>.root,.view-width-greater-than-large .ui-corner>.root{width:450px}@container (width<=200px) or (width>=350px){.root .item-container{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:var(--calcite-spacing-md) var(--calcite-spacing-lg);padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg);display:grid}}`, D = C(_);
|
|
15
|
-
function I(
|
|
16
|
-
return
|
|
14
|
+
const R = u`@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;width:var(--arcgis-internal-panel-width, 300px)}:host(:focus-within){z-index:1;outline-offset:var(--calcite-spacing-base);outline:var(--calcite-spacing-base) solid var(--calcite-color-brand)}.root{position:relative;overflow-y:auto;container-type:inline-size;width:100%;min-height:32px;transition:max-height .25s ease-in-out}.root .loader:before,.root .loader:after{opacity:1;content:"";height:var(--calcite-spacing-px);transition:opacity .5s ease-in-out;position:absolute;top:0}.root .loader:before{z-index:0;background-color:var(--calcite-color-foreground-1);width:100%}.root .loader:after{z-index:0;background-color:var(--calcite-color-foreground-3);width:20%;animation:1.5s linear infinite looping-progresss-bar-ani}.esri-disabled arcgis-basemap-gallery-item{opacity:var(--calcite-opacity-light);pointer-events:none;animation:none}.empty-message{padding:12px 15px;animation:.5s ease-in-out esri-fade-in}.loader{width:100%;height:var(--calcite-spacing-base);animation:.5s ease-in-out esri-fade-in;position:absolute;top:0;left:0;right:0}.item-container{flex-flow:column;gap:3px;margin:0;padding-block:3px;padding-inline:3px;list-style:none;transition:opacity .25s ease-in-out;display:flex;position:relative}calcite-popover>.root{width:280px;max-height:80vh}.ui-corner calcite-panel>.root.widget.widget--panel{width:unset}.view-width-greater-than-large calcite-popover>.root,.view-width-greater-than-large .ui-corner>.root{width:450px}@container (width<=200px) or (width>=350px){.root .item-container{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:var(--calcite-spacing-md) var(--calcite-spacing-lg);padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg);display:grid}}`, D = B(_);
|
|
15
|
+
function I(a) {
|
|
16
|
+
return a.type === "2d" && "view2dType" in a && a.view2dType === "linkchart" && "inGeographicLayout" in a && a.inGeographicLayout === !1;
|
|
17
17
|
}
|
|
18
18
|
const c = {
|
|
19
19
|
// Below this width, items are displayed as a single column and the thumbnail is placed above the title.
|
|
@@ -71,16 +71,16 @@ class Y extends x {
|
|
|
71
71
|
if (!L(i))
|
|
72
72
|
return;
|
|
73
73
|
e.preventDefault();
|
|
74
|
-
const { items: t, activeBasemapIndex: r } = this.viewModel,
|
|
74
|
+
const { items: t, activeBasemapIndex: r } = this.viewModel, o = E(i, this._direction) ? this._getRoundRobinIndex(Math.max(r - 1, -1), t.length) : this._getRoundRobinIndex(r + 1, t.length), n = t.at(o);
|
|
75
75
|
n?.state === "ready" && (this.viewModel.activeBasemap = n.basemap);
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
78
|
const e = this.source.state === "loading", i = this.disabled || this.state === "disabled", t = this.viewModel.items, r = {
|
|
79
79
|
"source-loading": e,
|
|
80
80
|
[l.disabled]: i
|
|
81
|
-
},
|
|
82
|
-
r["layout-grid"] =
|
|
83
|
-
const n = e ? s`<div class="loader"></div>` : null, g = e ? null : t.length > 0 ? s`<div aria-disabled=${this.disabled ?? d} aria-label=${this.label ?? d} class="item-container" @keydown=${this._handleKeyDown} role=radiogroup>${t.map((m, h) => s`<arcgis-basemap-gallery-item .disabled=${i} .item=${m} .itemIndex=${h} .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-basemap-gallery-item>`)}</div>` : s`<div class=${p(l.empty)}>${
|
|
81
|
+
}, o = this._width;
|
|
82
|
+
r["layout-grid"] = o >= c.wide || o <= c.small, r["narrow-items"] = o < c.default;
|
|
83
|
+
const n = e ? s`<div class="loader"></div>` : null, g = e ? null : t.length > 0 ? s`<div aria-disabled=${this.disabled ?? d} aria-label=${this.label ?? d} class="item-container" @keydown=${this._handleKeyDown} role=radiogroup>${t.map((m, h) => s`<arcgis-basemap-gallery-item .disabled=${i} .item=${m} .itemIndex=${h} .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-basemap-gallery-item>`)}</div>` : s`<div class=${p(l.empty)}>${C({ level: this.headingLevel, children: this.messages.noBasemaps })}</div>`;
|
|
84
84
|
return s`<div class=${p(w("root", l.widget, l.panel, r))} style=${k({
|
|
85
85
|
"--esri-basemap-gallery-small": `${c.small}px`
|
|
86
86
|
})}>${[n, g]}</div>`;
|
|
@@ -144,7 +144,9 @@ export abstract class ArcgisDirectLineMeasurement3d extends LitElement {
|
|
|
144
144
|
*/
|
|
145
145
|
accessor autoDestroyDisabled: boolean;
|
|
146
146
|
/**
|
|
147
|
-
* If true, all unit-reset buttons
|
|
147
|
+
* If true, hides all unit-reset buttons. Unit-selection dropdowns remain available.
|
|
148
|
+
*
|
|
149
|
+
* Resetting a unit clears the corresponding overrides on the component and its analysis. The component then uses the corresponding value from [ViewOptions.displayUnits](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits), or [ViewOptions.inputUnits](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#inputUnits) for input units, when that option is set and its resolved unit is included in the component's available units. Otherwise, it uses its default unit if available, or the first available unit.
|
|
148
150
|
*
|
|
149
151
|
* @default false
|
|
150
152
|
* @since 5.2
|
|
@@ -257,15 +259,18 @@ export abstract class ArcgisDirectLineMeasurement3d extends LitElement {
|
|
|
257
259
|
*
|
|
258
260
|
* When no unit is explicitly set on the component or its analysis, this property uses the length unit configured in the view through
|
|
259
261
|
* [view.options.displayUnits.length](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits).
|
|
262
|
+
* If that option is unset or unavailable in [unitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-direct-line-measurement-3d/#unitOptions),
|
|
263
|
+
* the component uses its default unit if available, or the first available unit.
|
|
260
264
|
* This property overrides the distance unit on this component's analysis without changing the units configured in the view.
|
|
265
|
+
* The reset button clears both overrides and resumes this inheritance and fallback behavior.
|
|
261
266
|
*/
|
|
262
267
|
accessor unit: SystemOrLengthUnit;
|
|
263
268
|
/**
|
|
264
269
|
* List of available units and unit systems (imperial, metric) that are shown in the component's dropdown.
|
|
265
270
|
* By default, the following units are included: `metric`, `imperial`, `inches`, `feet`, `us-feet`, `yards`, `miles`, `nautical-miles`, `meters`, `kilometers`.
|
|
266
|
-
*
|
|
271
|
+
* When neither the component nor its analysis has an explicit unit, the unit inherited from
|
|
267
272
|
* [view.options.displayUnits.length](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits)
|
|
268
|
-
* is
|
|
273
|
+
* is used if listed in [unitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-direct-line-measurement-3d/#unitOptions). Otherwise, the component checks whether its default unit is listed there.
|
|
269
274
|
* If it is, the component uses that default. If neither unit is listed, it uses the first entry in
|
|
270
275
|
* [unitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-direct-line-measurement-3d/#unitOptions).
|
|
271
276
|
*/
|
|
@@ -107,7 +107,9 @@ export abstract class ArcgisDistanceMeasurement2d extends LitElement {
|
|
|
107
107
|
*/
|
|
108
108
|
accessor autoDestroyDisabled: boolean;
|
|
109
109
|
/**
|
|
110
|
-
* If true, all unit-reset buttons
|
|
110
|
+
* If true, hides all unit-reset buttons. Unit-selection dropdowns remain available.
|
|
111
|
+
*
|
|
112
|
+
* Resetting a unit clears the corresponding overrides on the component and its analysis. The component then uses the corresponding value from [ViewOptions.displayUnits](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits), or [ViewOptions.inputUnits](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#inputUnits) for input units, when that option is set and its resolved unit is included in the component's available units. Otherwise, it uses its default unit if available, or the first available unit.
|
|
111
113
|
*
|
|
112
114
|
* @default false
|
|
113
115
|
* @since 5.2
|
|
@@ -235,15 +237,18 @@ export abstract class ArcgisDistanceMeasurement2d extends LitElement {
|
|
|
235
237
|
*
|
|
236
238
|
* When no unit is explicitly set on the component or its analysis, this property uses the length unit configured in the view through
|
|
237
239
|
* [view.options.displayUnits.length](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits).
|
|
240
|
+
* If that option is unset or unavailable in [unitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-distance-measurement-2d/#unitOptions),
|
|
241
|
+
* the component uses its default unit if available, or the first available unit.
|
|
238
242
|
* This property overrides the distance unit on this component's analysis without changing the units configured in the view.
|
|
243
|
+
* The reset button clears both overrides and resumes this inheritance and fallback behavior.
|
|
239
244
|
*/
|
|
240
245
|
accessor unit: SystemOrLengthUnit;
|
|
241
246
|
/**
|
|
242
247
|
* List of available units and unit systems (imperial, metric) that are shown in the component's dropdown.
|
|
243
248
|
* By default, the following units are included: `metric`, `imperial`, `inches`, `feet`, `us-feet`, `yards`, `miles`, `nautical-miles`, `meters`, `kilometers`.
|
|
244
|
-
*
|
|
249
|
+
* When neither the component nor its analysis has an explicit unit, the unit inherited from
|
|
245
250
|
* [view.options.displayUnits.length](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits)
|
|
246
|
-
* is
|
|
251
|
+
* is used if listed in [unitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-distance-measurement-2d/#unitOptions). Otherwise, the component checks whether its default unit is listed there.
|
|
247
252
|
* If it is, the component uses that default. If neither unit is listed, it uses the first entry in
|
|
248
253
|
* [unitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-distance-measurement-2d/#unitOptions).
|
|
249
254
|
*/
|
|
@@ -107,7 +107,7 @@ export abstract class ArcgisEditor extends LitElement {
|
|
|
107
107
|
*/
|
|
108
108
|
accessor hideSelectionToolbar: boolean;
|
|
109
109
|
/**
|
|
110
|
-
* Indicates whether to hide the
|
|
110
|
+
* Indicates whether to hide the Settings menu. This menu contains snapping and tooltip options.
|
|
111
111
|
*
|
|
112
112
|
* @default false
|
|
113
113
|
* @since 5.0
|
|
@@ -334,6 +334,7 @@ export abstract class ArcgisEditor extends LitElement {
|
|
|
334
334
|
/**
|
|
335
335
|
* The [SnappingOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/SnappingOptions/) for editing. Supports self snapping and feature snapping. Starting with version 4.23, the [SnappingControls](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SnappingControls/) UI is automatically integrated into the Editor component.
|
|
336
336
|
* Modify the `snappingOptions` if modifications are needed from what is provided in the default UI.
|
|
337
|
+
* These options are preserved but ignored while [useViewOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-editor/#useViewOptions) is `true`.
|
|
337
338
|
*
|
|
338
339
|
* @since 4.19
|
|
339
340
|
* @see [Sample - Editor widget with configurations](https://developers.arcgis.com/javascript/latest/sample-code/widgets-editor-configurable/)
|
|
@@ -381,6 +382,7 @@ export abstract class ArcgisEditor extends LitElement {
|
|
|
381
382
|
accessor syncViewSelection: boolean;
|
|
382
383
|
/**
|
|
383
384
|
* Options to configure the tooltip shown next to the cursor when creating or updating graphics.
|
|
385
|
+
* These options are preserved but ignored while [useViewOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-editor/#useViewOptions) is `true`.
|
|
384
386
|
*
|
|
385
387
|
* @since 4.24
|
|
386
388
|
*/
|
|
@@ -405,13 +407,14 @@ export abstract class ArcgisEditor extends LitElement {
|
|
|
405
407
|
*/
|
|
406
408
|
accessor useLegacyCreateTools: boolean;
|
|
407
409
|
/**
|
|
408
|
-
*
|
|
410
|
+
* If true, the component uses snapping, tooltips, display units, and input units from [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/).
|
|
409
411
|
*
|
|
410
|
-
* When
|
|
412
|
+
* When this property is `true`:
|
|
411
413
|
*
|
|
412
|
-
*
|
|
414
|
+
* - Snapping and tooltip options are inherited from the view. The component's [snappingOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-editor/#snappingOptions) and [tooltipOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-editor/#tooltipOptions) are preserved but ignored.
|
|
415
|
+
* - Snapping controls and the tooltip toggle are hidden from the component's Settings menu.
|
|
413
416
|
*
|
|
414
|
-
*
|
|
417
|
+
* When `false`, the component uses its own snapping, tooltip, and unit options instead.
|
|
415
418
|
*
|
|
416
419
|
* Label [options](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-editor/#labelOptions) and [direction mode](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ValueOptions/#directionMode) are not inherited from the view.
|
|
417
420
|
*
|
|
@@ -253,17 +253,20 @@ export abstract class ArcgisElevationProfile extends LitElement {
|
|
|
253
253
|
*
|
|
254
254
|
* When no distance unit is explicitly set on the component or its analysis, this property uses the length unit configured in the view through
|
|
255
255
|
* [view.options.displayUnits.length](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits).
|
|
256
|
+
* If that option is unset or unavailable in [distanceUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-elevation-profile/#distanceUnitOptions),
|
|
257
|
+
* the component uses its default unit if available, or the first available unit.
|
|
256
258
|
* This property overrides the distance unit on this component's analysis without changing the units configured in the view.
|
|
259
|
+
* The reset button clears both overrides and resumes this inheritance and fallback behavior.
|
|
257
260
|
*
|
|
258
261
|
* @since 5.0
|
|
259
262
|
*/
|
|
260
263
|
accessor distanceUnit: SystemOrLengthUnit | undefined;
|
|
261
264
|
/**
|
|
262
|
-
* List of available
|
|
265
|
+
* List of available unit systems (imperial, metric) and specific units (e.g. feet, kilometers) for displaying
|
|
263
266
|
* the distance values. These are the options displayed in the distance unit dropdown in the settings popover.
|
|
264
|
-
*
|
|
267
|
+
* When neither the component nor its analysis has an explicit distance unit, the unit inherited from
|
|
265
268
|
* [view.options.displayUnits.length](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits)
|
|
266
|
-
* is
|
|
269
|
+
* is used if listed in [distanceUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-elevation-profile/#distanceUnitOptions). Otherwise, the component checks whether its default unit is listed there.
|
|
267
270
|
* If it is, the component uses that default. If neither unit is listed, it uses the first entry in
|
|
268
271
|
* [distanceUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-elevation-profile/#distanceUnitOptions).
|
|
269
272
|
*
|
|
@@ -294,17 +297,20 @@ export abstract class ArcgisElevationProfile extends LitElement {
|
|
|
294
297
|
*
|
|
295
298
|
* When no elevation unit is explicitly set on the component or its analysis, this property uses the vertical length unit configured in the view through
|
|
296
299
|
* [view.options.displayUnits.verticalLength](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits).
|
|
300
|
+
* If that option is unset or unavailable in [elevationUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-elevation-profile/#elevationUnitOptions),
|
|
301
|
+
* the component uses its default unit if available, or the first available unit.
|
|
297
302
|
* This property overrides the elevation unit on this component's analysis without changing the units configured in the view.
|
|
303
|
+
* The reset button clears both overrides and resumes this inheritance and fallback behavior.
|
|
298
304
|
*
|
|
299
305
|
* @since 5.0
|
|
300
306
|
*/
|
|
301
307
|
accessor elevationUnit: SystemOrLengthUnit | undefined;
|
|
302
308
|
/**
|
|
303
|
-
* List of available
|
|
309
|
+
* List of available unit systems (imperial, metric) and specific units (e.g. feet, kilometers) for displaying
|
|
304
310
|
* the elevation values. These are the options displayed in the elevation unit dropdown in the settings popover.
|
|
305
|
-
*
|
|
311
|
+
* When neither the component nor its analysis has an explicit elevation unit, the unit inherited from
|
|
306
312
|
* [view.options.displayUnits.verticalLength](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits)
|
|
307
|
-
* is
|
|
313
|
+
* is used if listed in [elevationUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-elevation-profile/#elevationUnitOptions). Otherwise, the component checks whether its default unit is listed there.
|
|
308
314
|
* If it is, the component uses that default. If neither unit is listed, it uses the first entry in
|
|
309
315
|
* [elevationUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-elevation-profile/#elevationUnitOptions).
|
|
310
316
|
*
|
|
@@ -374,7 +380,9 @@ export abstract class ArcgisElevationProfile extends LitElement {
|
|
|
374
380
|
*/
|
|
375
381
|
accessor hideLegend: boolean;
|
|
376
382
|
/**
|
|
377
|
-
* If true, all unit-reset buttons
|
|
383
|
+
* If true, hides all unit-reset buttons. Unit-selection dropdowns remain available.
|
|
384
|
+
*
|
|
385
|
+
* Resetting a unit clears the corresponding overrides on the component and its analysis. The component then uses the corresponding value from [ViewOptions.displayUnits](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits), or [ViewOptions.inputUnits](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#inputUnits) for input units, when that option is set and its resolved unit is included in the component's available units. Otherwise, it uses its default unit if available, or the first available unit.
|
|
378
386
|
*
|
|
379
387
|
* @default false
|
|
380
388
|
* @since 5.2
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as b } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
3
|
+
import { css as u, html as p } from "lit";
|
|
4
4
|
import { renderingSanitizer as c } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
5
5
|
import { LitElement as f } from "@arcgis/lumina";
|
|
6
|
-
import { addLtrMark as
|
|
6
|
+
import { addLtrMark as h } from "@arcgis/toolkit/string";
|
|
7
7
|
import { j as v, k as $, l as w } from "../../chunks/feature-utils.js";
|
|
8
8
|
import { replace as m } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
9
9
|
const I = [
|
|
@@ -79,10 +79,10 @@ const I = [
|
|
|
79
79
|
}
|
|
80
80
|
];
|
|
81
81
|
function F(d, t) {
|
|
82
|
-
const e = I.find((
|
|
82
|
+
const e = I.find((n) => n.pattern.test(t));
|
|
83
83
|
if (!e)
|
|
84
84
|
return t;
|
|
85
|
-
const i = t.match(e.pattern)?.[2],
|
|
85
|
+
const i = t.match(e.pattern)?.[2], r = m(
|
|
86
86
|
m(e.label, {
|
|
87
87
|
messages: d,
|
|
88
88
|
hierPart: i
|
|
@@ -90,10 +90,10 @@ function F(d, t) {
|
|
|
90
90
|
{
|
|
91
91
|
appName: e.appName
|
|
92
92
|
}
|
|
93
|
-
), o = e.target ? ` target="${e.target}"` : "",
|
|
94
|
-
return c.sanitizeUrl(new URL(t, window.location.origin === "null" ? void 0 : window.location.origin).toString()).replace(e.pattern, `<a${o} href="$1"${
|
|
93
|
+
), o = e.target ? ` target="${e.target}"` : "", a = e.target === "_blank" ? ' rel="noreferrer"' : "";
|
|
94
|
+
return c.sanitizeUrl(new URL(t, window.location.origin === "null" ? void 0 : window.location.origin).toString()).replace(e.pattern, `<a${o} href="$1"${a}>${r}</a>`);
|
|
95
95
|
}
|
|
96
|
-
const k =
|
|
96
|
+
const k = u`.table{border:none;width:100%;border-collapse:collapse;color:var(--calcite-color-text-2)}.table caption{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.table tr{background-color:var(--arcgis-table-row-background-color, var(--calcite-color-foreground-1))}.table tr:nth-child(odd){background-color:var(--arcgis-table-row-alt-background-color, var(--calcite-color-foreground-2))}.table tr a{color:var(--calcite-color-text-link)}.table tr a:hover,.table tr a:focus{color:var(--calcite-color-brand-hover)}.table tr td,.table tr th{padding:var(--calcite-spacing-xs) var(--calcite-spacing-sm);vertical-align:top;word-break:break-word;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular);line-height:var(--calcite-font-line-height-relative-normal)}.table tr th{border-inline-end:var(--calcite-border-width-md) solid var(--calcite-color-border-3);width:50%;text-align:start}.table tr td{width:50%}`;
|
|
97
97
|
class N extends f {
|
|
98
98
|
constructor() {
|
|
99
99
|
super(...arguments), this.headingLevel = 2;
|
|
@@ -105,29 +105,29 @@ class N extends f {
|
|
|
105
105
|
this.styles = k;
|
|
106
106
|
}
|
|
107
107
|
get formattedFieldInfos() {
|
|
108
|
-
const { expressionInfos: t, fieldInfos: e, layer: s, graphic: i, isContentFieldInfos:
|
|
109
|
-
return e?.forEach((
|
|
110
|
-
if (!("visible" in
|
|
108
|
+
const { expressionInfos: t, fieldInfos: e, layer: s, graphic: i, isContentFieldInfos: r } = this, o = [];
|
|
109
|
+
return e?.forEach((a) => {
|
|
110
|
+
if (!("visible" in a ? a.visible : !0))
|
|
111
111
|
return;
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
const g = $({ fieldInfo:
|
|
115
|
-
g && (
|
|
112
|
+
const l = a.clone();
|
|
113
|
+
l.label = v({ fieldInfo: l, expressionInfos: t, layer: s, graphic: i, isContentFieldInfos: r });
|
|
114
|
+
const g = $({ fieldInfo: a, graphic: i, layer: s });
|
|
115
|
+
g && (l.fieldFormat = w({
|
|
116
116
|
configurableFieldsContainer: g,
|
|
117
|
-
fieldInfo:
|
|
118
|
-
isContentFieldInfos:
|
|
119
|
-
})), o.push(
|
|
117
|
+
fieldInfo: l,
|
|
118
|
+
isContentFieldInfos: r
|
|
119
|
+
})), o.push(l);
|
|
120
120
|
}), o;
|
|
121
121
|
}
|
|
122
122
|
render() {
|
|
123
123
|
return p`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this._renderFields()}</div>`;
|
|
124
124
|
}
|
|
125
125
|
_renderFieldInfo(t) {
|
|
126
|
-
const { values: e } = this, s = t.fieldName || "", i = t.label || s,
|
|
126
|
+
const { values: e } = this, s = t.fieldName || "", i = t.label || s, r = e ? e[s] == null ? "" : e[s] : "", o = t?.fieldFormat?.type === "date-time", a = {
|
|
127
127
|
openInApp: this.messages?.openInApp ?? "",
|
|
128
128
|
view: this.messages?.view ?? ""
|
|
129
|
-
},
|
|
130
|
-
return p`<tr><th .innerHTML=${c.sanitize(i) ?? ""}></th><td .innerHTML=${c.sanitize(
|
|
129
|
+
}, n = typeof r == "number" && !o ? h(`${r}`) : typeof r == "string" ? F(a, r) : `${r}`;
|
|
130
|
+
return !i && !n ? null : p`<tr><th .innerHTML=${c.sanitize(i) ?? ""}></th><td .innerHTML=${c.sanitize(n) ?? ""}></td></tr>`;
|
|
131
131
|
}
|
|
132
132
|
_renderFields() {
|
|
133
133
|
const { formattedFieldInfos: t } = this;
|
|
@@ -24,6 +24,9 @@ import type { Icon as Icon } from "@esri/calcite-components/components/calcite-i
|
|
|
24
24
|
* and subsequent clicks place the [targets](https://developers.arcgis.com/javascript/latest/references/core/analysis/LineOfSightAnalysisTarget/).
|
|
25
25
|
* Both the observer and target points can be moved by dragging. Additionally, the target points can be removed with a right click.
|
|
26
26
|
*
|
|
27
|
+
* Snapping, tooltips, display units, and input units are inherited from
|
|
28
|
+
* [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/).
|
|
29
|
+
*
|
|
27
30
|
* **Known limitation**
|
|
28
31
|
*
|
|
29
32
|
* Line Of Sight is only supported in a 3D [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/) component.
|
|
@@ -491,8 +491,10 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
491
491
|
*/
|
|
492
492
|
accessor navigation: Navigation;
|
|
493
493
|
/**
|
|
494
|
-
* Configures snapping, tooltips, and
|
|
495
|
-
* See [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/) for
|
|
494
|
+
* Configures snapping, tooltips, display units, and input units for supported components, view models, and analyses.
|
|
495
|
+
* See [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/) for supported options, exceptions, and opt-in requirements.
|
|
496
|
+
*
|
|
497
|
+
* These options are not saved in a WebMap or WebScene.
|
|
496
498
|
*
|
|
497
499
|
* @since 5.2
|
|
498
500
|
* @beta
|
|
@@ -706,8 +706,10 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
706
706
|
*/
|
|
707
707
|
accessor navigation: Navigation;
|
|
708
708
|
/**
|
|
709
|
-
* Configures snapping, tooltips, and
|
|
710
|
-
* See [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/) for
|
|
709
|
+
* Configures snapping, tooltips, display units, and input units for supported components, view models, and analyses.
|
|
710
|
+
* See [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/) for supported options, exceptions, and opt-in requirements.
|
|
711
|
+
*
|
|
712
|
+
* These options are not saved in a WebMap or WebScene.
|
|
711
713
|
*
|
|
712
714
|
* @since 5.2
|
|
713
715
|
* @beta
|
|
@@ -695,8 +695,10 @@ export abstract class ArcgisScene extends LitElement {
|
|
|
695
695
|
*/
|
|
696
696
|
accessor navigation: Navigation;
|
|
697
697
|
/**
|
|
698
|
-
* Configures snapping, tooltips, and
|
|
699
|
-
* See [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/) for
|
|
698
|
+
* Configures snapping, tooltips, display units, and input units for supported components, view models, and analyses.
|
|
699
|
+
* See [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/) for supported options, exceptions, and opt-in requirements.
|
|
700
|
+
*
|
|
701
|
+
* These options are not saved in a WebMap or WebScene.
|
|
700
702
|
*
|
|
701
703
|
* @since 5.2
|
|
702
704
|
* @beta
|
|
@@ -665,7 +665,10 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
665
665
|
* @since 5.0
|
|
666
666
|
*/
|
|
667
667
|
accessor showSnappingControlsElementsHeader: boolean;
|
|
668
|
-
/**
|
|
668
|
+
/**
|
|
669
|
+
* The [SnappingOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/SnappingOptions/) for sketching. It supports [self](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/SnappingOptions/#selfEnabled) and [feature](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/SnappingOptions/#featureEnabled) snapping.
|
|
670
|
+
* These options are preserved but ignored while [useViewOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-sketch/#useViewOptions) is `true`.
|
|
671
|
+
*/
|
|
669
672
|
accessor snappingOptions: SnappingOptions;
|
|
670
673
|
/** The Sketch component's state. */
|
|
671
674
|
get state(): SketchViewModel["state"];
|
|
@@ -698,7 +701,10 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
698
701
|
* @since 4.32
|
|
699
702
|
*/
|
|
700
703
|
accessor toolbarKind: "docked" | "floating";
|
|
701
|
-
/**
|
|
704
|
+
/**
|
|
705
|
+
* Options to configure the tooltip shown next to the cursor when creating or updating graphics.
|
|
706
|
+
* These options are preserved but ignored while [useViewOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-sketch/#useViewOptions) is `true`.
|
|
707
|
+
*/
|
|
702
708
|
accessor tooltipOptions: SketchTooltipOptions;
|
|
703
709
|
/** An array of [graphics](https://developers.arcgis.com/javascript/latest/references/core/Graphic/) that are being updated by the Sketch component. */
|
|
704
710
|
get updateGraphics(): Collection<Graphic>;
|
|
@@ -729,13 +735,15 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
729
735
|
*/
|
|
730
736
|
accessor useLegacyCreateTools: boolean;
|
|
731
737
|
/**
|
|
732
|
-
*
|
|
738
|
+
* If true, the component uses snapping, tooltips, display units, and input units from [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/).
|
|
733
739
|
*
|
|
734
|
-
* When
|
|
740
|
+
* When this property is `true`:
|
|
735
741
|
*
|
|
736
|
-
*
|
|
742
|
+
* - Snapping and tooltip options are inherited from the view. The component's [snappingOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-sketch/#snappingOptions) and [tooltipOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-sketch/#tooltipOptions) are preserved but ignored.
|
|
743
|
+
* - Snapping controls and the tooltip toggle are hidden from the component's Settings menu.
|
|
744
|
+
* - Units set through [valueOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-sketch/#valueOptions) override the corresponding units on the view, such as length or area, without changing the view's options. Setting a unit to `null` or `undefined` restores inheritance for that measurement type.
|
|
737
745
|
*
|
|
738
|
-
*
|
|
746
|
+
* When `false`, the component uses its own snapping, tooltip, and unit options instead.
|
|
739
747
|
*
|
|
740
748
|
* Label [options](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-sketch/#labelOptions) and [direction mode](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ValueOptions/#directionMode) are not inherited from the view.
|
|
741
749
|
*
|
|
@@ -747,7 +755,10 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
747
755
|
* @default false
|
|
748
756
|
*/
|
|
749
757
|
accessor useViewOptions: boolean;
|
|
750
|
-
/**
|
|
758
|
+
/**
|
|
759
|
+
* Options to configure how values are displayed and input when creating or updating graphics.
|
|
760
|
+
* See [useViewOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-sketch/#useViewOptions) for unit inheritance and override behavior.
|
|
761
|
+
*/
|
|
751
762
|
accessor valueOptions: SketchValueOptions;
|
|
752
763
|
/**
|
|
753
764
|
* The view associated with the component.
|