@arcgis/map-components 6.0.0-next.23 → 6.0.0-next.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{HQXC5XLE.js → 3HI5IZSQ.js} +1 -1
- package/dist/cdn/3KAC2MKA.js +2 -0
- package/dist/cdn/6GE2WBKV.js +2 -0
- package/dist/cdn/{LKKCTKMQ.js → 7U2V3LDM.js} +1 -1
- package/dist/cdn/CVLOQWUD.js +2 -0
- package/dist/cdn/{NORQIOSX.js → DGXTCH6B.js} +1 -1
- package/dist/cdn/E5X5BYWA.js +2 -0
- package/dist/cdn/ECF4B24M.js +2 -0
- package/dist/cdn/{V7DMA5ZO.js → GZ6UBR6R.js} +1 -1
- package/dist/cdn/HADZXZIE.js +2 -0
- package/dist/cdn/HTCPPGCR.js +2 -0
- package/dist/cdn/LHYI2QBZ.js +2 -0
- package/dist/cdn/{4WZ7Y57Q.js → QBRGIFBY.js} +1 -1
- package/dist/cdn/QXEOEFF3.js +2 -0
- package/dist/cdn/{ZF7NUFAT.js → RT53VCER.js} +1 -1
- package/dist/cdn/{AIF4MCBB.js → RXKIZFNQ.js} +1 -1
- package/dist/cdn/{TKIWKCDA.js → WU4NDBMC.js} +1 -1
- package/dist/cdn/{V3J5GQHD.js → XKGD4N75.js} +1 -1
- package/dist/cdn/YITBBUPR.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/utils.js +17 -17
- package/dist/chunks/utils5.js +2 -2
- package/dist/components/arcgis-basemap-gallery/customElement.js +17 -17
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +5 -0
- package/dist/components/arcgis-coordinate-conversion-next/customElement.d.ts +6 -5
- package/dist/components/arcgis-scale-bar/customElement.js +11 -11
- package/dist/components/arcgis-swipe/customElement.js +43 -43
- package/dist/components/arcgis-time-bar/customElement.d.ts +3 -1
- package/dist/components/arcgis-time-slider/customElement.d.ts +1 -0
- package/dist/components/arcgis-time-slider/customElement.js +8 -7
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +7 -0
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +8 -5
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +3 -0
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +10 -10
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +125 -12
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +9 -2
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +60 -57
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +7 -0
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +12 -9
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +217 -14
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +119 -108
- package/dist/components/arcgis-utility-network-trace-locations/customElement.d.ts +155 -8
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +7 -3
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +132 -125
- 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 +3 -3
- package/package.json +6 -6
- package/dist/cdn/2WJ53TNR.js +0 -2
- package/dist/cdn/5A7LDBDR.js +0 -2
- package/dist/cdn/H4BTVLCG.js +0 -2
- package/dist/cdn/MNL7ONFB.js +0 -2
- package/dist/cdn/NQ3COROI.js +0 -2
- package/dist/cdn/QKNHYZYS.js +0 -2
- package/dist/cdn/SIT5NBLS.js +0 -2
- package/dist/cdn/SLWZHNVT.js +0 -2
- package/dist/cdn/SU2SAOBL.js +0 -2
- package/dist/cdn/YYCTSS52.js +0 -2
|
@@ -11,7 +11,7 @@ import { m as B } from "../../chunks/useViewModel.js";
|
|
|
11
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 = B(_);
|
|
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-space-base);outline:var(--calcite-space-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-space-px);transition:opacity .5s ease-in-out;position:absolute;top:0}.root .loader:before{z-index:0;background-color:var(--calcite-color-surface-2);width:100%}.root .loader:after{z-index:0;background-color:var(--calcite-color-surface-4);width:20%;animation:1.5s linear infinite looping-progress-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-space-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-space-md) var(--calcite-space-lg);padding-block:var(--calcite-space-md);padding-inline:var(--calcite-space-lg);display:grid}}`, D = B(_);
|
|
15
15
|
function I(a) {
|
|
16
16
|
return a.type === "2d" && "view2dType" in a && a.view2dType === "linkchart" && "inGeographicLayout" in a && a.inGeographicLayout === !1;
|
|
17
17
|
}
|
|
@@ -36,26 +36,26 @@ class Y extends x {
|
|
|
36
36
|
this.styles = R;
|
|
37
37
|
}
|
|
38
38
|
get state() {
|
|
39
|
-
const { view: e, source:
|
|
40
|
-
return !e?.ready || !
|
|
39
|
+
const { view: e, source: t, loading: i, projectionEngineLoading: r } = this.viewModel;
|
|
40
|
+
return !e?.ready || !t ? "disabled" : I(e) ? "unsupported" : i || r ? "loading" : "ready";
|
|
41
41
|
}
|
|
42
42
|
async destroy() {
|
|
43
43
|
await this.manager.destroy();
|
|
44
44
|
}
|
|
45
45
|
loaded() {
|
|
46
46
|
this.manager.onLifecycle(() => [
|
|
47
|
-
v(() => this.state, (e,
|
|
48
|
-
this.requestUpdate("state",
|
|
47
|
+
v(() => this.state, (e, t) => {
|
|
48
|
+
this.requestUpdate("state", t);
|
|
49
49
|
}, { initial: !0 }),
|
|
50
50
|
b(() => this.source, () => {
|
|
51
51
|
this.viewModel.loadSource();
|
|
52
52
|
}, { sync: !0, initial: !0 }),
|
|
53
53
|
(() => {
|
|
54
|
-
const e = new ResizeObserver((
|
|
55
|
-
for (const r of
|
|
54
|
+
const e = new ResizeObserver((i) => {
|
|
55
|
+
for (const r of i)
|
|
56
56
|
this._width = r.contentRect.width;
|
|
57
|
-
}),
|
|
58
|
-
return
|
|
57
|
+
}), t = this.el;
|
|
58
|
+
return t && e.observe(t), {
|
|
59
59
|
remove() {
|
|
60
60
|
e?.disconnect();
|
|
61
61
|
}
|
|
@@ -63,24 +63,24 @@ class Y extends x {
|
|
|
63
63
|
})()
|
|
64
64
|
]);
|
|
65
65
|
}
|
|
66
|
-
_getRoundRobinIndex(e,
|
|
67
|
-
return (e +
|
|
66
|
+
_getRoundRobinIndex(e, t) {
|
|
67
|
+
return (e + t) % t;
|
|
68
68
|
}
|
|
69
69
|
_handleKeyDown(e) {
|
|
70
|
-
const { key:
|
|
71
|
-
if (!L(
|
|
70
|
+
const { key: t } = e;
|
|
71
|
+
if (!L(t))
|
|
72
72
|
return;
|
|
73
73
|
e.preventDefault();
|
|
74
|
-
const { items:
|
|
74
|
+
const { items: i, activeBasemapIndex: r } = this.viewModel, o = E(t, this._direction) ? this._getRoundRobinIndex(Math.max(r - 1, -1), i.length) : this._getRoundRobinIndex(r + 1, i.length), n = i.at(o);
|
|
75
75
|
n?.state === "ready" && (this.viewModel.activeBasemap = n.basemap);
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
|
-
const e = this.source.state === "loading",
|
|
78
|
+
const e = this.source.state === "loading", t = this.disabled || this.state === "disabled", i = this.viewModel.items, r = {
|
|
79
79
|
"source-loading": e,
|
|
80
|
-
[l.disabled]:
|
|
80
|
+
[l.disabled]: t
|
|
81
81
|
}, o = this._width;
|
|
82
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 :
|
|
83
|
+
const n = e ? s`<div class="loader"></div>` : null, g = e ? null : i.length > 0 ? s`<div aria-disabled=${this.disabled ?? d} aria-label=${this.label ?? d} class="item-container" @keydown=${this._handleKeyDown} role=radiogroup>${i.map((m, h) => s`<arcgis-basemap-gallery-item .disabled=${t} .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>`;
|
|
@@ -15,7 +15,7 @@ function _(t) {
|
|
|
15
15
|
function C(t) {
|
|
16
16
|
return !!t?.portalItem?.tags?.some((e) => e.toLowerCase() === "preview") || !!t?.portalItem?.categories?.includes("/Categories/Status/Preview");
|
|
17
17
|
}
|
|
18
|
-
const A = k`@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)}}:host{container-type:inline-size}.empty-message{padding:12px 15px;animation:.5s ease-in-out esri-fade-in}.item{box-sizing:border-box;cursor:pointer;border:1px solid var(--calcite-color-
|
|
18
|
+
const A = k`@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)}}:host{container-type:inline-size}.empty-message{padding:12px 15px;animation:.5s ease-in-out esri-fade-in}.item{box-sizing:border-box;cursor:pointer;border:1px solid var(--calcite-color-surface-1);flex-direction:row;width:100%;transition:background-color .25s ease-in-out,border-color .25s ease-in-out;animation:.5s ease-in-out esri-fade-in;display:flex;position:relative}.item:hover{background-color:var(--calcite-color-surface-4);border-color:var(--calcite-color-background-inverse)}.item:hover .item-title{color:var(--calcite-color-text-1)}.item:focus{outline:none}.is-error{opacity:var(--calcite-opacity-light);background-color:var(--calcite-color-transparent)!important;border-color:var(--calcite-color-transparent)!important;cursor:auto}.item-thumbnail{aspect-ratio:1.5;border-inline-end:1px solid var(--calcite-color-border-1);flex-shrink:0;width:120px;min-width:120px;transition:background-color .25s ease-in-out,border-color .25s ease-in-out}.item-title{color:var(--calcite-color-text-3);justify-content:flex-start;align-items:center;width:100%;height:100%;font-size:var(--calcite-font-size-sm);transition:color .25s ease-in-out,font-weight .25s ease-in-out;display:flex}.item-title span{text-align:start;text-overflow:ellipsis;word-wrap:break-word;word-break:break-word;hyphens:auto;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;width:100%;display:-webkit-box;overflow:hidden}.is-selected,.is-selected:hover,.is-selected:focus{cursor:auto;background-color:color-mix(in srgb,var(--calcite-color-brand-underline),70% transparent);border-color:var(--calcite-color-status-info)!important}.is-selected .item-title,.item.is-selected:hover .item-title,.item.is-selected:focus .item-title{color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium)}.item-content{flex-direction:column;gap:var(--calcite-space-md);min-width:0;padding-block:var(--calcite-space-base);padding-inline:var(--calcite-space-md);display:flex}.item-tags{flex-direction:row;gap:var(--calcite-space-base);display:flex}.item-tags calcite-chip{--calcite-font-size--2: var(--calcite-font-size--3);cursor:inherit}@supports (object-fit: cover){.item-thumbnail{object-fit:cover}}@container (width>=200px) and (width <= 300px){.item{align-items:center}.item:not(.is-selected,:hover){border-color:var(--calcite-color-transparent)}}@container (width>=200px) and (width <= 278px){.item-thumbnail{aspect-ratio:1;width:80px;min-width:80px;object-position:left}}@container (width<200px) or (width>=350px){.item{text-align:center;flex-flow:column wrap}.item:not(.is-selected,:hover){border-color:var(--calcite-color-border-1)}.item-thumbnail{border-block-end:1px solid var(--calcite-color-border-1);border-inline-end:none;width:100%;min-width:0;height:auto}.item-content{height:32px;padding-block:var(--calcite-space-2xs);padding-inline:var(--calcite-space-xs);position:relative}.item-tags{position:absolute;inset-block-end:45px;inset-inline-end:5px}}`;
|
|
19
19
|
class S extends w {
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments), this._itemState = "loading", this._isActive = !1;
|
|
@@ -19,6 +19,11 @@ import type { CoordinateConversionViewModelState } from "@arcgis/core/widgets/Co
|
|
|
19
19
|
/**
|
|
20
20
|
* > [!NOTE]
|
|
21
21
|
* > In version 6.0, the implementation of [arcgis-coordinate-conversion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-coordinate-conversion/) will be updated under the hood to that of [arcgis-coordinate-conversion-next](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-coordinate-conversion-next/) , and deprecated properties on this component will be removed. We encourage using the [arcgis-coordinate-conversion-next](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-coordinate-conversion-next/) component and providing feedback.
|
|
22
|
+
* >
|
|
23
|
+
* > The `coordinate-conversion-next` UI was updated and modernized, allowing the new component to match the look and feel of our current offerings.
|
|
24
|
+
* > The configuration was enhanced to allow users to define the format and display for individual coordinate systems in a side panel, as opposed to the previous settings menu that allowed users to toggle between all active coordinate system settings in the current panel.
|
|
25
|
+
* > The Capture mode was simplified with a toggle instead of dropping a pin. The `coordinate-conversion-next` UI can be simplified to take less space in applications.
|
|
26
|
+
* > Lastly, we added support for Elevation in both 2D maps and 3D scenes.
|
|
22
27
|
*
|
|
23
28
|
* The Coordinate Conversion component provides a way to display user cursor position either as map coordinates or
|
|
24
29
|
* as any of several popular coordinate notations. Additionally, the component provides a way to convert
|
|
@@ -21,7 +21,10 @@ import type { CoordinateConversionViewModelState } from "@arcgis/core/widgets/Co
|
|
|
21
21
|
/**
|
|
22
22
|
* > [!WARNING]
|
|
23
23
|
* > The Coordinate Conversion (next) component is the successor to the [arcgis-coordinate-conversion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-coordinate-conversion/) component, provided to you for early testing and feedback.
|
|
24
|
-
* > It provides a more consistent design and improved user experience.
|
|
24
|
+
* > It provides a more consistent design and improved user experience. The UI was updated and modernized, allowing the new component to match the look and feel of our current offerings.
|
|
25
|
+
* > The configuration was enhanced to allow users to define the format and display for individual coordinate systems in a side panel, as opposed to the previous settings menu that allowed users to toggle between all active coordinate system settings in the current panel.
|
|
26
|
+
* > The Capture mode was simplified with a toggle instead of dropping a pin. The coordinate-conversion-next UI can be simplified to take less space in applications. Lastly, we added support for Elevation in both 2D maps and 3D scenes.
|
|
27
|
+
* >
|
|
25
28
|
* > In version 6.0, the implementation of [arcgis-coordinate-conversion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-coordinate-conversion/) will be updated under the hood to that of [arcgis-coordinate-conversion-next](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-coordinate-conversion-next/) and this component will be removed.
|
|
26
29
|
* > To update at version 6.0, simply remove `-next` from the component name.
|
|
27
30
|
*
|
|
@@ -29,7 +32,6 @@ import type { CoordinateConversionViewModelState } from "@arcgis/core/widgets/Co
|
|
|
29
32
|
* as any of several popular coordinate notations. Additionally, the component provides a way to convert
|
|
30
33
|
* user input coordinates into a [point](https://developers.arcgis.com/javascript/latest/references/core/geometry/Point/).
|
|
31
34
|
*
|
|
32
|
-
*
|
|
33
35
|
* Several common formats are included by default:
|
|
34
36
|
* * XY - Longitude, Latitude (WGS84)
|
|
35
37
|
* * MGRS - [Military Grid Reference System](https://earth-info.nga.mil/index.php?dir=coordsys&action=coordsys#mgrs)
|
|
@@ -40,15 +42,14 @@ import type { CoordinateConversionViewModelState } from "@arcgis/core/widgets/Co
|
|
|
40
42
|
* * Basemap - X, Y in the coordinate system used by the current basemap in the units used by the basemap.
|
|
41
43
|
* Web Mercator is the standard for Esri-provided basemaps.
|
|
42
44
|
*
|
|
43
|
-
* Additional formats can be created by a developer and made available
|
|
44
|
-
* through the component
|
|
45
|
+
* Additional formats can be created by a developer and made available through the component.
|
|
45
46
|
*
|
|
46
47
|
* @beta
|
|
47
48
|
* @since 5.1
|
|
48
49
|
* @example
|
|
49
50
|
* ```html
|
|
50
51
|
* <arcgis-map item-id="45b3b2fb35e94ab09381d0caa0da5946">
|
|
51
|
-
* <arcgis-coordinate-conversion slot="bottom-left"></arcgis-coordinate-conversion>
|
|
52
|
+
* <arcgis-coordinate-conversion-next slot="bottom-left"></arcgis-coordinate-conversion-next>
|
|
52
53
|
* </arcgis-map>
|
|
53
54
|
* ```
|
|
54
55
|
*/
|
|
@@ -6,7 +6,7 @@ import { getDefaultUnitForView as w } from "@arcgis/core/applications/Components
|
|
|
6
6
|
import { watch as x } from "@arcgis/core/core/reactiveUtils.js";
|
|
7
7
|
import { formatNumber as y } from "@arcgis/core/intl.js";
|
|
8
8
|
import k from "@arcgis/core/widgets/ScaleBar/ScaleBarViewModel.js";
|
|
9
|
-
import { LitElement as z, createEvent as C, safeClassMap as
|
|
9
|
+
import { LitElement as z, createEvent as C, safeClassMap as n, safeStyleMap as f } from "@arcgis/lumina";
|
|
10
10
|
import { classes as c } from "@arcgis/toolkit/dom";
|
|
11
11
|
import { u as M } from "../../chunks/useT9n.js";
|
|
12
12
|
import { m as S } from "../../chunks/useViewModel.js";
|
|
@@ -14,7 +14,7 @@ import { g as b } from "../../chunks/globalCss.js";
|
|
|
14
14
|
function $(h = 0, e = 0) {
|
|
15
15
|
return { x: h, y: e };
|
|
16
16
|
}
|
|
17
|
-
const D = _`.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}.root{box-shadow:none!important;background:0 0}.root.esri-widget{box-shadow:none;background:0 0}.bar-container{align-items:flex-end;font-size:var(--calcite-font-size-sm);transition:width .25s ease-in-out;display:flex;position:relative}.bar-container-ruler{flex-direction:column}.ruler{--color-ruler-background: var(--calcite-color-inverse);--color-ruler-foreground: var(--calcite-color-foreground-1);height:var(--calcite-spacing-xs);box-shadow:0 0 0 1px var(--calcite-color-text-1),0 1px 2px var(--calcite-color-foreground-1)}.ruler:before,.ruler:after{content:"";display:block;height:50%;background-image:linear-gradient(to right,var(--color-ruler-foreground) 0%,var(--color-ruler-foreground) 25%,var(--color-ruler-background) 25%,var(--color-ruler-background) 50%,var(--color-ruler-foreground) 50%,var(--color-ruler-foreground) 75%,var(--color-ruler-background) 75%,var(--color-ruler-background) 100%)}.ruler:after{transform:scaleX(-1)}.bar-container-line:last-child{align-items:flex-start}.line{--line-thickness: var(--calcite-border-width-md);--tic-height: 1.5em;--border-style: var(--line-thickness) solid var(--calcite-color-text-1);background-color:color-mix(in srgb,var(--calcite-color-foreground-1) 50%,transparent);height:var(--tic-height);position:relative;left:0}.line-top{border-bottom:var(--border-style)}.line-bottom{border-top:var(--border-style);top:calc(-1 * var(--line-thickness))}.line-top:before,.line-top:after,.line-bottom:before,.line-bottom:after{content:"";background-color:color-mix(in srgb,var(--calcite-color-foreground-1) 50%,transparent);border-right:var(--border-style);width:1px;height:var(--tic-height);display:block;position:absolute}.line-top:before{bottom:calc(-1 * var(--line-thickness));left:0}.line-top:after{bottom:calc(-1 * var(--line-thickness));right:0}.line-bottom:before{top:calc(-1 * var(--line-thickness));left:0}.line-bottom:after{height:var(--tic-height);top:calc(-1 * var(--line-thickness));right:0}.label-container-line{position:absolute;left:0}.label-container-ruler{justify-content:space-between;width:100%;display:flex;position:relative}.label-container-ruler .label{text-shadow:1px 0 var(--calcite-color-foreground-1),0 1px var(--calcite-color-foreground-1),1px 1px var(--calcite-color-foreground-1),-1px 0 var(--calcite-color-foreground-1),0 -1px var(--calcite-color-foreground-1),-1px -1px var(--calcite-color-foreground-1);padding:6px 0 0}.label-container-top{bottom:0}.label-container-bottom{top:1px}.label{white-space:nowrap;color:var(--calcite-color-text-1);font-size:inherit;padding:0 7px;font-weight:var(--calcite-font-weight-semibold)}:dir(rtl) .ruler{margin:0 .5ch 0 2ch}:dir(rtl) .label-container-line{left:auto;right:0}`, R = S(k);
|
|
17
|
+
const D = _`.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}.root{box-shadow:none!important;background:0 0}.root.esri-widget{box-shadow:none;background:0 0}.bar-container{align-items:flex-end;font-size:var(--calcite-font-size-sm);transition:width .25s ease-in-out;display:flex;position:relative}.bar-container-ruler{flex-direction:column}.ruler{--color-ruler-background: var(--calcite-color-inverse);--color-ruler-foreground: var(--calcite-color-surface-2);height:var(--calcite-space-xs);box-shadow:0 0 0 1px var(--calcite-color-text-1),0 1px 2px var(--calcite-color-surface-2)}.ruler:before,.ruler:after{content:"";display:block;height:50%;background-image:linear-gradient(to right,var(--color-ruler-foreground) 0%,var(--color-ruler-foreground) 25%,var(--color-ruler-background) 25%,var(--color-ruler-background) 50%,var(--color-ruler-foreground) 50%,var(--color-ruler-foreground) 75%,var(--color-ruler-background) 75%,var(--color-ruler-background) 100%)}.ruler:after{transform:scaleX(-1)}.bar-container-line:last-child{align-items:flex-start}.line{--line-thickness: var(--calcite-border-width-md);--tic-height: 1.5em;--border-style: var(--line-thickness) solid var(--calcite-color-text-1);background-color:color-mix(in srgb,var(--calcite-color-surface-2) 50%,transparent);height:var(--tic-height);position:relative;left:0}.line-top{border-bottom:var(--border-style)}.line-bottom{border-top:var(--border-style);top:calc(-1 * var(--line-thickness))}.line-top:before,.line-top:after,.line-bottom:before,.line-bottom:after{content:"";background-color:color-mix(in srgb,var(--calcite-color-surface-2) 50%,transparent);border-right:var(--border-style);width:1px;height:var(--tic-height);display:block;position:absolute}.line-top:before{bottom:calc(-1 * var(--line-thickness));left:0}.line-top:after{bottom:calc(-1 * var(--line-thickness));right:0}.line-bottom:before{top:calc(-1 * var(--line-thickness));left:0}.line-bottom:after{height:var(--tic-height);top:calc(-1 * var(--line-thickness));right:0}.label-container-line{position:absolute;left:0}.label-container-ruler{justify-content:space-between;width:100%;display:flex;position:relative}.label-container-ruler .label{text-shadow:1px 0 var(--calcite-color-surface-2),0 1px var(--calcite-color-surface-2),1px 1px var(--calcite-color-surface-2),-1px 0 var(--calcite-color-surface-2),0 -1px var(--calcite-color-surface-2),-1px -1px var(--calcite-color-surface-2);padding:6px 0 0}.label-container-top{bottom:0}.label-container-bottom{top:1px}.label{white-space:nowrap;color:var(--calcite-color-text-1);font-size:inherit;padding:0 7px;font-weight:var(--calcite-font-weight-semibold)}:dir(rtl) .ruler{margin:0 .5ch 0 2ch}:dir(rtl) .label-container-line{left:auto;right:0}`, R = S(k);
|
|
18
18
|
class B extends z {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments), this._defaultUnit = "metric", this.messages = M(), this.viewModel = R(this), this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.barStyle = "line", this.icon = "actual-size", this.arcgisReady = C();
|
|
@@ -58,7 +58,7 @@ class B extends z {
|
|
|
58
58
|
const i = e.childElem?.getBoundingClientRect();
|
|
59
59
|
if (!i)
|
|
60
60
|
return;
|
|
61
|
-
const { scaleComputedFrom: r } = this.viewModel,
|
|
61
|
+
const { scaleComputedFrom: r } = this.viewModel, l = i.left + window.pageXOffset, t = i.top + window.pageYOffset, o = $(l, t);
|
|
62
62
|
(o.x !== r.x || o.y !== r.y) && (this.viewModel.scaleComputedFrom = o);
|
|
63
63
|
}
|
|
64
64
|
_formatDistance(e, i) {
|
|
@@ -72,33 +72,33 @@ class B extends z {
|
|
|
72
72
|
const e = this.viewModel.state === "disabled", i = {
|
|
73
73
|
[b.disabled]: e
|
|
74
74
|
};
|
|
75
|
-
let r,
|
|
75
|
+
let r, l;
|
|
76
76
|
if (!e) {
|
|
77
77
|
const { unit: t, barStyle: o } = this, d = t === "imperial" || t === "dual", u = t === "metric" || t === "dual", g = 100, p = t === "dual" ? "line" : o;
|
|
78
78
|
if (d) {
|
|
79
79
|
const a = this.viewModel.getScaleBarProperties(g, "imperial");
|
|
80
|
-
a && (
|
|
80
|
+
a && (l = p === "ruler" ? this._renderRuler(a) : this._renderLine(a, "bottom"));
|
|
81
81
|
}
|
|
82
82
|
if (u) {
|
|
83
83
|
const a = this.viewModel.getScaleBarProperties(g, "metric");
|
|
84
84
|
a && (r = p === "ruler" ? this._renderRuler(a) : this._renderLine(a, "top"));
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
return s`<div class=${
|
|
87
|
+
return s`<div class=${n(c("root", b.widget, i))} ${v(this._handleContainerRef)}>${r}${l}</div>`;
|
|
88
88
|
}
|
|
89
89
|
_renderRuler(e) {
|
|
90
|
-
const { length: i, unit: r, value:
|
|
91
|
-
return s`<div class=${
|
|
90
|
+
const { length: i, unit: r, value: l } = e, t = Math.round(i), o = this._formatDistance(l, r);
|
|
91
|
+
return s`<div class=${n(c("bar-container", "bar-container-ruler"))}><div class="ruler" style=${f({ width: `${t}px` })}></div><div class=${n(c("label-container", "label-container-ruler"))}><div class="label">0</div><div class="label">${o}</div></div></div>`;
|
|
92
92
|
}
|
|
93
93
|
_renderLine(e, i) {
|
|
94
|
-
const { length: r, unit:
|
|
94
|
+
const { length: r, unit: l, value: t } = e, o = Math.round(r), d = this._formatDistance(t, l), g = s`<div class=${n(c("label-container", "label-container-line", {
|
|
95
95
|
"label-container-top": i === "top",
|
|
96
96
|
"label-container-bottom": i === "bottom"
|
|
97
|
-
}))}><div class="label">${d}</div></div>`, a = s`<div class=${
|
|
97
|
+
}))}><div class="label">${d}</div></div>`, a = s`<div class=${n(c("line", {
|
|
98
98
|
"line-top": i === "top",
|
|
99
99
|
"line-bottom": i === "bottom"
|
|
100
100
|
}))} style=${f({ width: `${o}px` })}></div>`;
|
|
101
|
-
return s`<div class=${
|
|
101
|
+
return s`<div class=${n(c("bar-container", "bar-container-line"))}>${[a, g]}</div>`;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
m("arcgis-scale-bar", B);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as z } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as A, html as
|
|
3
|
+
import { css as A, html as m } from "lit";
|
|
4
4
|
import { classes as b } from "@arcgis/toolkit/dom";
|
|
5
5
|
import { LitElement as K, createEvent as C, safeClassMap as L, safeStyleMap as D, nothing as E } from "@arcgis/lumina";
|
|
6
6
|
import { usePropertyChange as O } from "@arcgis/lumina/controllers";
|
|
7
7
|
import { createRef as S, ref as H } from "lit/directives/ref.js";
|
|
8
|
-
import { u as
|
|
9
|
-
import { m as
|
|
8
|
+
import { u as U } from "../../chunks/useT9n.js";
|
|
9
|
+
import { m as k } from "../../chunks/useViewModel.js";
|
|
10
10
|
import { g as $ } from "../../chunks/globalCss.js";
|
|
11
11
|
import { l as P } from "../../chunks/legacyIcon.js";
|
|
12
12
|
import I from "@arcgis/core/core/Accessor.js";
|
|
@@ -16,11 +16,11 @@ import { property as p, subclass as j } from "@arcgis/core/core/accessorSupport/
|
|
|
16
16
|
import { watch as x } from "@arcgis/core/core/reactiveUtils.js";
|
|
17
17
|
import { c as R, i as X, l as Y } from "../../chunks/async-utils.js";
|
|
18
18
|
var B = Object.defineProperty, N = Object.getOwnPropertyDescriptor, d = (t, e, i, r) => {
|
|
19
|
-
for (var
|
|
20
|
-
(a = t[
|
|
21
|
-
return r &&
|
|
19
|
+
for (var s = r > 1 ? void 0 : r ? N(e, i) : e, n = t.length - 1, a; n >= 0; n--)
|
|
20
|
+
(a = t[n]) && (s = (r ? a(e, i, s) : a(s)) || s);
|
|
21
|
+
return r && s && B(e, i, s), s;
|
|
22
22
|
};
|
|
23
|
-
const
|
|
23
|
+
const y = {
|
|
24
24
|
left: 0,
|
|
25
25
|
right: 0,
|
|
26
26
|
top: 0,
|
|
@@ -118,11 +118,11 @@ let l = class extends I {
|
|
|
118
118
|
const { position: e } = this;
|
|
119
119
|
return t === "leading" ? {
|
|
120
120
|
type: "rect",
|
|
121
|
-
...
|
|
121
|
+
...y,
|
|
122
122
|
bottom: `${100 - e}%`
|
|
123
123
|
} : t === "trailing" ? {
|
|
124
124
|
type: "rect",
|
|
125
|
-
...
|
|
125
|
+
...y,
|
|
126
126
|
top: `${e}%`
|
|
127
127
|
} : null;
|
|
128
128
|
}
|
|
@@ -130,11 +130,11 @@ let l = class extends I {
|
|
|
130
130
|
const { position: e } = this;
|
|
131
131
|
return t === "leading" ? {
|
|
132
132
|
type: "rect",
|
|
133
|
-
...
|
|
133
|
+
...y,
|
|
134
134
|
right: `${100 - e}%`
|
|
135
135
|
} : t === "trailing" ? {
|
|
136
136
|
type: "rect",
|
|
137
|
-
...
|
|
137
|
+
...y,
|
|
138
138
|
left: `${e}%`
|
|
139
139
|
} : null;
|
|
140
140
|
}
|
|
@@ -143,31 +143,31 @@ let l = class extends I {
|
|
|
143
143
|
return e === "vertical" ? this._getVerticalClipRect(t) : e === "horizontal" ? this._getHorizontalClipRect(t) : null;
|
|
144
144
|
}
|
|
145
145
|
async _clipLayer(t, e) {
|
|
146
|
-
const { _leadingClips: i, _trailingClips: r, view:
|
|
146
|
+
const { _leadingClips: i, _trailingClips: r, view: s } = this, { layer: n, type: a } = t, c = a === "trailing" ? r : a === "leading" ? i : null;
|
|
147
147
|
try {
|
|
148
|
-
const
|
|
149
|
-
if (e.aborted || this.destroyed ||
|
|
148
|
+
const o = await this._getLayerView(n);
|
|
149
|
+
if (e.aborted || this.destroyed || s !== this.view || !o || !c || !(a === "leading" ? this.leadingLayers : this.trailingLayers).includes(n))
|
|
150
150
|
return;
|
|
151
|
-
const g = c.get(
|
|
152
|
-
g &&
|
|
151
|
+
const g = c.get(o);
|
|
152
|
+
g && o.clips.remove(g);
|
|
153
153
|
const v = this._getClipRect(a);
|
|
154
154
|
if (v) {
|
|
155
|
-
const w =
|
|
156
|
-
|
|
157
|
-
const u =
|
|
158
|
-
u && c.set(
|
|
155
|
+
const w = o.clips.length;
|
|
156
|
+
o.clips.add(v);
|
|
157
|
+
const u = o.clips.at(w);
|
|
158
|
+
u && c.set(o, u);
|
|
159
159
|
}
|
|
160
|
-
} catch (
|
|
161
|
-
if (e.aborted || X(
|
|
160
|
+
} catch (o) {
|
|
161
|
+
if (e.aborted || X(o) || o instanceof T && o.name === "view:no-layerview-for-layer")
|
|
162
162
|
return;
|
|
163
|
-
Y(
|
|
163
|
+
Y(o, this.declaredClass, "Failed to clip layer");
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
_removeClips(t) {
|
|
167
167
|
this.removeHandles(M[t]);
|
|
168
168
|
const { _leadingClips: e, _trailingClips: i } = this, r = t === "trailing" ? i : t === "leading" ? e : null;
|
|
169
|
-
r && (r.forEach((
|
|
170
|
-
V(
|
|
169
|
+
r && (r.forEach((s, n) => {
|
|
170
|
+
V(n) && n.clips.remove(s);
|
|
171
171
|
}), r.clear());
|
|
172
172
|
}
|
|
173
173
|
_removeExistingClips() {
|
|
@@ -210,10 +210,10 @@ d([
|
|
|
210
210
|
l = d([
|
|
211
211
|
j("map-components.swipe.SwipeViewModel")
|
|
212
212
|
], l);
|
|
213
|
-
const W = A`:host{position:absolute;margin:0;background:transparent!important;padding:0;width:100%;height:100%;overflow:hidden;user-select:none;--arcgis-internal-swipe-handle-color-background: var(--calcite-color-
|
|
213
|
+
const W = A`:host{position:absolute;margin:0;background:transparent!important;padding:0;width:100%;height:100%;overflow:hidden;user-select:none;--arcgis-internal-swipe-handle-color-background: var(--calcite-color-surface-1);--arcgis-internal-swipe-divider-color-background: var(--calcite-color-surface-1)}.root{width:100%;height:100%;overflow:hidden;user-select:none}.root,.arcgis-ui .root{pointer-events:none!important}.container{position:absolute;z-index:1;margin:0;outline:0;border:0;padding:0;overflow:hidden;pointer-events:auto;touch-action:none;outline-color:transparent}.horizontal .container{margin-left:calc(var(--calcite-space-3xl) / 2 * -1);cursor:col-resize;height:100%}.vertical .container{margin-top:calc(var(--calcite-space-3xl) / 2 * -1);cursor:row-resize;width:100%}.disabled .container{cursor:default;pointer-events:none}.divider{position:absolute;background-color:var(--arcgis-internal-swipe-divider-color-background)}.horizontal .divider{top:0;left:calc(var(--calcite-space-3xl) / 2);margin-left:calc(var(--calcite-border-width-lg) * .5 * -1);border-right:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-left:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);width:var(--calcite-border-width-lg);height:100%}.vertical .divider{top:calc(var(--calcite-space-3xl) / 2);left:0;margin-top:calc(var(--calcite-border-width-lg) * .5 * -1);border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);width:100%;height:var(--calcite-border-width-lg)}.handle{display:flex;position:relative;align-items:center;justify-content:center;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-radius:var(--calcite-corner-radius-sm);background-color:var(--arcgis-internal-swipe-handle-color-background);width:var(--calcite-space-3xl);height:var(--calcite-space-3xl);color:var(--calcite-color-text-3)}.handle-hidden{visibility:hidden}.vertical .handle{rotate:90deg}.handle-icon{position:relative;z-index:2}.handle-icon:before{content:"|||";color:inherit}.horizontal .handle{top:calc(50% - calc(var(--calcite-space-3xl) / 2))}.vertical .handle{left:calc(50% - calc(var(--calcite-space-3xl) / 2))}.container:focus .handle,.container:focus .divider{outline:inset 2px var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)))}.container:focus .handle{outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}`, q = k(l);
|
|
214
214
|
class G extends K {
|
|
215
215
|
constructor() {
|
|
216
|
-
super(...arguments), this._containerRef = S(), this._swiping = !1, this._positionChanged = !1, this.messages =
|
|
216
|
+
super(...arguments), this._containerRef = S(), this._swiping = !1, this._positionChanged = !1, this.messages = U({}), this._pointerOffset = 0, this.viewModel = q(this), this._onContainerPointerDown = (e) => {
|
|
217
217
|
e.preventDefault();
|
|
218
218
|
const i = this._containerRef.value;
|
|
219
219
|
i && document.activeElement !== this.el && i.focus(), this._swiping = !0, this._calculatePointerOffset(e);
|
|
@@ -244,8 +244,8 @@ class G extends K {
|
|
|
244
244
|
this.listenOn(document, "pointermove", this._onContainerPointerMove), this.listenOn(document, "pointerup", this._onContainerPointerUp);
|
|
245
245
|
}
|
|
246
246
|
_calculatePointerOffset(e) {
|
|
247
|
-
const { direction: i } = this, r = this._containerRef.value,
|
|
248
|
-
this._pointerOffset = i === "vertical" ? c -
|
|
247
|
+
const { direction: i } = this, r = this._containerRef.value, s = (i === "vertical" ? r.clientHeight : r.clientWidth) / 2, n = r.getBoundingClientRect(), a = e.clientX - n.left, c = e.clientY - n.top;
|
|
248
|
+
this._pointerOffset = i === "vertical" ? c - s : a - s;
|
|
249
249
|
}
|
|
250
250
|
_onContainerPointerUp(e) {
|
|
251
251
|
this._swiping && (e.preventDefault(), this._positionChanged && (this.arcgisSwipeChange.emit(), this._positionChanged = !1), this._swiping = !1);
|
|
@@ -254,53 +254,53 @@ class G extends K {
|
|
|
254
254
|
if (!this._swiping)
|
|
255
255
|
return;
|
|
256
256
|
e.preventDefault();
|
|
257
|
-
const { _pointerOffset: i, el: r, direction:
|
|
257
|
+
const { _pointerOffset: i, el: r, direction: s } = this, { clientX: n, clientY: a } = e, { top: c, left: o, width: h, height: g } = r.getBoundingClientRect(), v = s === "vertical" ? g : h, u = (s === "vertical" ? a - c - i : n - o - i) / v * 100;
|
|
258
258
|
this.position !== u && (this.position = u, this._positionChanged = !0, this.arcgisSwipeInput.emit());
|
|
259
259
|
}
|
|
260
260
|
_getKeyPosition(e) {
|
|
261
|
-
const { key: i } = e, { position: r } = this, { max:
|
|
262
|
-
if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"].includes(i) && (e.preventDefault(), e.stopPropagation()),
|
|
261
|
+
const { key: i } = e, { position: r } = this, { max: s, min: n, step: a, stepMultiplier: c, direction: o } = this.viewModel, h = a * c;
|
|
262
|
+
if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"].includes(i) && (e.preventDefault(), e.stopPropagation()), o === "vertical" ? i === "ArrowDown" || i === "ArrowRight" : i === "ArrowUp" || i === "ArrowRight") {
|
|
263
263
|
const _ = e.shiftKey ? h : a;
|
|
264
264
|
return r + _;
|
|
265
265
|
}
|
|
266
|
-
if (
|
|
266
|
+
if (o === "vertical" ? i === "ArrowUp" || i === "ArrowLeft" : i === "ArrowDown" || i === "ArrowLeft") {
|
|
267
267
|
const _ = e.shiftKey ? h : a;
|
|
268
268
|
return r - _;
|
|
269
269
|
}
|
|
270
|
-
return i === "Home" ?
|
|
270
|
+
return i === "Home" ? n : i === "End" ? s : (o === "vertical" ? i === "PageDown" : i === "PageUp") ? r + h : (o === "vertical" ? i === "PageUp" : i === "PageDown") ? r - h : null;
|
|
271
271
|
}
|
|
272
272
|
_onContainerKeyDown(e) {
|
|
273
273
|
const i = this._getKeyPosition(e);
|
|
274
274
|
typeof i == "number" && this.position !== i && (this.position = i, this.arcgisSwipeInput.emit(), this.arcgisSwipeChange.emit());
|
|
275
275
|
}
|
|
276
276
|
render() {
|
|
277
|
-
const { state: e, direction: i } = this.viewModel, r = e === "disabled" || this.disabled,
|
|
277
|
+
const { state: e, direction: i } = this.viewModel, r = e === "disabled" || this.disabled, s = {
|
|
278
278
|
[$.disabled]: r,
|
|
279
279
|
disabled: r,
|
|
280
280
|
vertical: i === "vertical",
|
|
281
281
|
horizontal: i === "horizontal"
|
|
282
282
|
};
|
|
283
|
-
return
|
|
283
|
+
return m`<div class=${L(b("root", $.widget, s))}>${e === "disabled" ? null : this._renderContainer()}</div>`;
|
|
284
284
|
}
|
|
285
285
|
_renderHandle() {
|
|
286
286
|
const { direction: e } = this.viewModel, { hideHandle: i } = this, r = {
|
|
287
287
|
[P.dragHorizontal]: e === "vertical",
|
|
288
288
|
[P.dragVertical]: e === "horizontal"
|
|
289
|
-
},
|
|
290
|
-
return
|
|
289
|
+
}, s = b("handle", !!i && "handle-hidden");
|
|
290
|
+
return m`<div class=${L(s)} role=presentation><span aria-hidden=true class=${L(b("handle-icon", r))}></span></div>`;
|
|
291
291
|
}
|
|
292
292
|
_renderDivider() {
|
|
293
|
-
return this.hideDivider ? null :
|
|
293
|
+
return this.hideDivider ? null : m`<div class="divider" role=presentation></div>`;
|
|
294
294
|
}
|
|
295
295
|
_renderContent() {
|
|
296
296
|
return [this._renderDivider(), this._renderHandle()];
|
|
297
297
|
}
|
|
298
298
|
_renderContainer() {
|
|
299
|
-
const { disabled: e, viewModel: i } = this, { max: r, min:
|
|
300
|
-
top:
|
|
301
|
-
left:
|
|
299
|
+
const { disabled: e, viewModel: i } = this, { max: r, min: s, direction: n, position: a } = i, c = this.label ?? this.messages.dragLabel ?? "", o = `${a}%`, h = {
|
|
300
|
+
top: n === "vertical" ? o : void 0,
|
|
301
|
+
left: n === "vertical" ? void 0 : o
|
|
302
302
|
}, g = this._renderContent();
|
|
303
|
-
return e ?
|
|
303
|
+
return e ? m`<div class="container" role=presentation style=${D(h)}>${g}</div>` : m`<div @pointerdown=${this._onContainerPointerDown} .ariaLabel=${c} .ariaOrientation=${n} .ariaValueMax=${`${r}`} .ariaValueMin=${`${s}`} .ariaValueNow=${`${a}`} .ariaValueText=${o} class="container" @keydown=${this._onContainerKeyDown} role=slider style=${D(h)} tabindex=0 title=${c ?? E} touch-action=none ${H(this._containerRef)}>${g}</div>`;
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
z("arcgis-swipe", G);
|
|
@@ -915,7 +915,9 @@ export abstract class ArcgisTimeBar extends LitElement {
|
|
|
915
915
|
*
|
|
916
916
|
* ```js
|
|
917
917
|
* const layer = new GeoJSONLayer({
|
|
918
|
-
*
|
|
918
|
+
* portalItem: {
|
|
919
|
+
* id: "0433d83530334b46b87c940dfc810589",
|
|
920
|
+
* },
|
|
919
921
|
* timeInfo: {
|
|
920
922
|
* startField: "time",
|
|
921
923
|
* interval: new TimeInterval({
|
|
@@ -14,6 +14,7 @@ import type { TickConfig } from "@arcgis/core/widgets/Slider/types.js";
|
|
|
14
14
|
/**
|
|
15
15
|
* The Time Slider component simplifies visualization of temporal data in your application.
|
|
16
16
|
*
|
|
17
|
+
* @deprecated since 5.2. Use the [Time Bar component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-time-bar/) instead.
|
|
17
18
|
* @since 4.28
|
|
18
19
|
*/
|
|
19
20
|
export abstract class ArcgisTimeSlider extends LitElement {
|