@arcgis/map-components 5.1.0-next.109 → 5.1.0-next.111
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/2SFQKFYO.js +2 -0
- package/dist/cdn/{X3YFIQGW.js → 3J457ML6.js} +1 -1
- package/dist/cdn/4SNOTPCF.js +2 -0
- package/dist/cdn/6QQ4WA4M.js +2 -0
- package/dist/cdn/{R4VSDUYE.js → KYVT2WTY.js} +1 -1
- package/dist/cdn/PFVM4TPN.js +2 -0
- package/dist/cdn/TBKV4QZ6.js +2 -0
- package/dist/cdn/TFFF4SV3.js +2 -0
- package/dist/cdn/YUQI6BEG.js +2 -0
- package/dist/cdn/assets/print/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/layer-list-item-indicator.js +24 -27
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +8 -0
- package/dist/components/arcgis-coordinate-conversion/customElement.js +118 -120
- package/dist/components/arcgis-coordinate-conversion/index.js +2 -1
- package/dist/components/arcgis-features/customElement.d.ts +9 -1
- package/dist/components/arcgis-features/customElement.js +76 -64
- package/dist/components/arcgis-layer-list-new/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-new/layer-list-item/customElement.js +24 -24
- package/dist/components/arcgis-link-chart/customElement.d.ts +1 -1
- package/dist/components/arcgis-map/customElement.d.ts +1 -1
- package/dist/components/arcgis-presentation/customElement.js +12 -11
- package/dist/components/arcgis-print/customElement.d.ts +30 -3
- package/dist/components/arcgis-print-export-button/customElement.js +13 -8
- package/dist/components/arcgis-print-export-button/index.js +1 -0
- package/dist/components/arcgis-print-template-selector/customElement.js +4 -4
- package/dist/components/arcgis-scene/customElement.d.ts +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +141 -78
- package/dist/components/arcgis-shadow-cast/customElement.js +111 -90
- 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/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +5 -5
- package/dist/cdn/2FEX7FAZ.js +0 -2
- package/dist/cdn/2SZ3WJGX.js +0 -2
- package/dist/cdn/KOBC25QZ.js +0 -2
- package/dist/cdn/O2ECQYMW.js +0 -2
- package/dist/cdn/R6JH26DC.js +0 -2
- package/dist/cdn/RED6TO3K.js +0 -2
- package/dist/cdn/XVWZZS5G.js +0 -2
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as y } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as k } from "lit/directives/keyed.js";
|
|
4
4
|
import { repeat as C } from "lit/directives/repeat.js";
|
|
5
|
-
import { css as P, nothing as
|
|
6
|
-
import { createRef as
|
|
7
|
-
import { LitElement as
|
|
8
|
-
import { usePropertyChange as
|
|
9
|
-
import { rethrowError as
|
|
10
|
-
import { m as
|
|
11
|
-
import { u as
|
|
12
|
-
import { convertUnit as
|
|
13
|
-
import { getDefaultUnitForView as
|
|
14
|
-
import { hasDisplayProperties as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { l as
|
|
19
|
-
import
|
|
20
|
-
const O = P`[class^=esri-icon-],[class*=" esri-icon-"]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-weight:var(--calcite-font-weight-normal);line-height:1;font-family:CalciteWebCoreIcons!important}.esri-icon-close:before{content:"";color:inherit}.esri-icon-drag-horizontal:before{content:"";color:inherit}.esri-icon-drag-vertical:before{content:"";color:inherit}.esri-icon-handle-horizontal:before{content:"";color:inherit}.esri-icon-handle-vertical:before{content:"";color:inherit}.esri-icon-check-mark:before{content:"";color:inherit}.esri-icon-left-triangle-arrow:before{content:"";color:inherit}.esri-icon-right-triangle-arrow:before{content:"";color:inherit}.esri-icon-down-arrow:before{content:"";color:inherit}.esri-icon-up-arrow:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-left:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-right:before{content:"";color:inherit}.esri-icon-overview-arrow-top-left:before{content:"";color:inherit}.esri-icon-overview-arrow-top-right:before{content:"";color:inherit}.esri-icon-maximize:before{content:"";color:inherit}.esri-icon-minimize:before{content:"";color:inherit}.esri-icon-checkbox-unchecked:before{content:"";color:inherit}.esri-icon-checkbox-checked:before{content:"";color:inherit}.esri-icon-radio-unchecked:before{content:"";color:inherit}.esri-icon-radio-checked:before{content:"";color:inherit}.esri-icon-up-arrow-circled:before{content:"";color:inherit}.esri-icon-down-arrow-circled:before{content:"";color:inherit}.esri-icon-left-arrow-circled:before{content:"";color:inherit}.esri-icon-right-arrow-circled:before{content:"";color:inherit}.esri-icon-zoom-out-fixed:before{content:"";color:inherit}.esri-icon-zoom-in-fixed:before{content:"";color:inherit}.esri-icon-refresh:before{content:"";color:inherit}.esri-icon-edit:before{content:"";color:inherit}.esri-icon-authorize:before{content:"";color:inherit}.esri-icon-map-pin:before{content:"";color:inherit}.esri-icon-blank-map-pin:before{content:"";color:inherit}.esri-icon-table:before{content:"";color:inherit}.esri-icon-plus:before{content:"";color:inherit}.esri-icon-minus:before{content:"";color:inherit}.esri-icon-beginning:before{content:"";color:inherit}.esri-icon-reverse:before{content:"";color:inherit}.esri-icon-pause:before{content:"";color:inherit}.esri-icon-play:before{content:"";color:inherit}.esri-icon-forward:before{content:"";color:inherit}.esri-icon-end:before{content:"";color:inherit}.esri-icon-erase:before{content:"";color:inherit}.esri-icon-up-down-arrows:before{content:"";color:inherit}.esri-icon-left:before{content:"";color:inherit}.esri-icon-right:before{content:"";color:inherit}.esri-icon-announcement:before{content:"";color:inherit}.esri-icon-notice-round:before{content:"";color:inherit}.esri-icon-notice-triangle:before{content:"";color:inherit}.esri-icon-home:before{content:"";color:inherit}.esri-icon-locate:before{content:"";color:inherit}.esri-icon-expand:before{content:"";color:inherit}.esri-icon-collapse:before{content:"";color:inherit}.esri-icon-layer-list:before{content:"";color:inherit}.esri-icon-basemap:before{content:"";color:inherit}.esri-icon-globe:before{content:"";color:inherit}.esri-icon-applications:before{content:"";color:inherit}.esri-icon-arrow-up-circled:before{content:"";color:inherit}.esri-icon-arrow-down-circled:before{content:"";color:inherit}.esri-icon-arrow-left-circled:before{content:"";color:inherit}.esri-icon-arrow-right-circled:before{content:"";color:inherit}.esri-icon-minus-circled:before{content:"";color:inherit}.esri-icon-plus-circled:before{content:"";color:inherit}.esri-icon-add-attachment:before{content:"";color:inherit}.esri-icon-attachment:before{content:"";color:inherit}.esri-icon-calendar:before{content:"";color:inherit}.esri-icon-close-circled:before{content:"";color:inherit}.esri-icon-browser:before{content:"";color:inherit}.esri-icon-collection:before{content:"";color:inherit}.esri-icon-comment:before{content:"";color:inherit}.esri-icon-configure-popup:before{content:"";color:inherit}.esri-icon-contact:before{content:"";color:inherit}.esri-icon-dashboard:before{content:"";color:inherit}.esri-icon-deny:before{content:"";color:inherit}.esri-icon-description:before{content:"";color:inherit}.esri-icon-directions:before{content:"";color:inherit}.esri-icon-directions2:before{content:"";color:inherit}.esri-icon-documentation:before{content:"";color:inherit}.esri-icon-duplicate:before{content:"";color:inherit}.esri-icon-review:before{content:"";color:inherit}.esri-icon-environment-settings:before{content:"";color:inherit}.esri-icon-error:before{content:"";color:inherit}.esri-icon-error2:before{content:"";color:inherit}.esri-icon-experimental:before{content:"";color:inherit}.esri-icon-feature-layer:before{content:"";color:inherit}.esri-icon-filter:before{content:"";color:inherit}.esri-icon-grant:before{content:"";color:inherit}.esri-icon-group:before{content:"";color:inherit}.esri-icon-key:before{content:"";color:inherit}.esri-icon-labels:before{content:"";color:inherit}.esri-icon-tag:before{content:"";color:inherit}.esri-icon-layers:before{content:"";color:inherit}.esri-icon-left-arrow:before{content:"";color:inherit}.esri-icon-right-arrow:before{content:"";color:inherit}.esri-icon-link-external:before{content:"";color:inherit}.esri-icon-link:before{content:"";color:inherit}.esri-icon-loading-indicator:before{content:"";color:inherit}.esri-icon-maps:before{content:"";color:inherit}.esri-icon-marketplace:before{content:"";color:inherit}.esri-icon-media:before{content:"";color:inherit}.esri-icon-media2:before{content:"";color:inherit}.esri-icon-menu:before{content:"";color:inherit}.esri-icon-mobile:before{content:"";color:inherit}.esri-icon-phone:before{content:"";color:inherit}.esri-icon-navigation:before{content:"";color:inherit}.esri-icon-pan:before{content:"";color:inherit}.esri-icon-printer:before{content:"";color:inherit}.esri-icon-pie-chart:before{content:"";color:inherit}.esri-icon-chart:before{content:"";color:inherit}.esri-icon-line-chart:before{content:"";color:inherit}.esri-icon-question:before{content:"";color:inherit}.esri-icon-resend-invitation:before{content:"";color:inherit}.esri-icon-rotate:before{content:"";color:inherit}.esri-icon-save:before{content:"";color:inherit}.esri-icon-settings:before{content:"";color:inherit}.esri-icon-settings2:before{content:"";color:inherit}.esri-icon-share:before{content:"";color:inherit}.esri-icon-sign-out:before{content:"";color:inherit}.esri-icon-support:before{content:"";color:inherit}.esri-icon-user:before{content:"";color:inherit}.esri-icon-time-clock:before{content:"";color:inherit}.esri-icon-trash:before{content:"";color:inherit}.esri-icon-upload:before{content:"";color:inherit}.esri-icon-download:before{content:"";color:inherit}.esri-icon-zoom-in-magnifying-glass:before{content:"";color:#6e6e6e}.esri-icon-search:before{content:"";color:inherit}.esri-icon-zoom-out-magnifying-glass:before{content:"";color:#6e6e6e}.esri-icon-locked:before{content:"";color:inherit}.esri-icon-unlocked:before{content:"";color:inherit}.esri-icon-favorites:before{content:"";color:inherit}.esri-icon-compass:before{content:"";color:inherit}.esri-icon-down:before{content:"";color:inherit}.esri-icon-up:before{content:"";color:inherit}.esri-icon-chat:before{content:"";color:inherit}.esri-icon-dock-bottom:before{content:"";color:inherit}.esri-icon-dock-left:before{content:"";color:inherit}.esri-icon-dock-right:before{content:"";color:inherit}.esri-icon-organization:before{content:"";color:inherit}.esri-icon-north-navigation:before{content:"";color:inherit}.esri-icon-locate-circled:before{content:"";color:inherit}.esri-icon-dial:before{content:"";color:inherit}.esri-icon-polygon:before{content:"";color:inherit}.esri-icon-polyline:before{content:"";color:inherit}.esri-icon-visible:before{content:"";color:inherit}.esri-icon-non-visible:before{content:"";color:inherit}.esri-icon-link-vertical:before{content:"";color:inherit}.esri-icon-unlocked-link-vertical:before{content:"";color:inherit}.esri-icon-link-horizontal:before{content:"";color:inherit}.esri-icon-unlocked-link-horizontal:before{content:"";color:inherit}.esri-icon-swap:before{content:"";color:inherit}.esri-icon-cta-link-external:before{content:"";color:inherit}.esri-icon-reply:before{content:"";color:inherit}.esri-icon-public:before{content:"";color:inherit}.esri-icon-share2:before{content:"";color:inherit}.esri-icon-launch-link-external:before{content:"";color:inherit}.esri-icon-rotate-back:before{content:"";color:inherit}.esri-icon-pan2:before{content:"";color:inherit}.esri-icon-tracking:before{content:"";color:inherit}.esri-icon-expand2:before{content:"";color:inherit}.esri-icon-arrow-down:before{content:"";color:inherit}.esri-icon-arrow-up:before{content:"";color:inherit}.esri-icon-hollow-eye:before{content:"";color:inherit}.esri-icon-play-circled:before{content:"";color:inherit}.esri-icon-volume-off:before{content:"";color:inherit}.esri-icon-volume-on:before{content:"";color:inherit}.esri-icon-bookmark:before{content:"";color:inherit}.esri-icon-lightbulb:before{content:"";color:inherit}.esri-icon-sketch-rectangle:before{content:"";color:inherit}.esri-icon-north-navigation-filled:before{content:"";color:inherit}.esri-icon-default-action:before{content:"";color:inherit}.esri-icon-undo:before{content:"";color:inherit}.esri-icon-redo:before{content:"";color:inherit}.esri-icon-cursor:before{content:"";color:inherit}.esri-icon-cursor-filled:before{content:"";color:inherit}.esri-icon-measure:before{content:"";color:inherit}.esri-icon-measure-line:before{content:"";color:inherit}.esri-icon-measure-area:before{content:"";color:inherit}.esri-icon-legend:before{content:"";color:inherit}.esri-icon-sliders:before{content:"";color:inherit}.esri-icon-sliders-horizontal:before{content:"";color:inherit}.esri-icon-cursor-marquee:before{content:"";color:inherit}.esri-icon-lasso:before{content:"";color:inherit}.esri-icon-elevation-profile:before{content:"";color:inherit}.esri-icon-slice:before{content:"";color:inherit}.esri-icon-line-of-sight:before{content:"";color:inherit}.esri-icon-zoom-to-object:before{content:"";color:inherit}.esri-icon-urban-model:before{content:"";color:inherit}.esri-icon-measure-building-height-shadow:before{content:"";color:inherit}.esri-icon-partly-cloudy:before{content:"";color:inherit}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-button{box-sizing:border-box;cursor:pointer;white-space:normal;word-break:normal;color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info);justify-content:center;align-items:center;width:100%;min-height:var(--calcite-spacing-xxxl);padding:6px 7px;font-family:inherit;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out,border .125s ease-in-out;display:flex;overflow:hidden;&:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info-hover);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info-hover)}}.esri-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-text-2);border:1px solid var(--calcite-color-text-2)}.esri-button.esri-button--small{min-height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size-sm)}.esri-button.esri-button--half{width:50%;display:inline-block}.esri-button.esri-button--third{width:33%;display:inline-block}.esri-button--secondary{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-button--tertiary{color:var(--calcite-color-brand);background-color:var(--calcite-color-transparent);border-color:var(--calcite-color-transparent)}.esri-button--tertiary:hover{color:var(--calcite-color-brand-hover);background-color:var(--calcite-color-foreground-2);border-color:var(--calcite-color-transparent)}.esri-button--disabled{opacity:.4;pointer-events:none}.esri-button--drill-in{outline-offset:-4px;cursor:pointer;text-align:unset;background-color:var(--calcite-color-foreground-1);border:none;border-radius:2px;justify-content:space-between;align-items:center;margin:var(--calcite-spacing-md) 7px;padding:var(--calcite-spacing-md) 7px;text-decoration:none;transition:background-color .125s ease-in-out;display:flex;box-shadow:0 0 0 1px #adadad4d}.esri-button--drill-in:hover,.esri-button--drill-in:focus{background-color:var(--calcite-color-foreground-2)}.esri-button--drill-in__title{font-size:var(--calcite-font-size)}.esri-button--drill-in [class^=esri-icon-],.esri-button--drill-in [class*=" esri-icon-"]{padding:0 7px}.esri-widget--button{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);flex-flow:row;justify-content:center;align-items:center;width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;overflow:hidden}.esri-widget--button:is(calcite-button):not(:hover){--calcite-icon-color: var(--calcite-color-text-3)}.esri-widget--button:not([appearance]),.esri-widget--button[appearance=solid]{--calcite-color-foreground-3: var(--calcite-color-foreground-1)}.esri-widget--button:is(calcite-button){--calcite-offset-invert-focus: 1}.esri-widget--button calcite-loader[inline]{margin:auto}.esri-button--secondary{color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);&:hover{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-status-info);border:1px solid var(--calcite-color-status-info)}}:host{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);padding-block-start:var(--arcgis-coordinate-conversion-padding-y);width:var(--arcgis-coordinate-conversion-width, 280px)}.root{background-color:var(--calcite-color-foreground-1)}calcite-alert{--calcite-alert-offset-size: var(--calcite-spacing-sm)}calcite-notice[open]{padding:var(--calcite-spacing-sm)}calcite-block{--calcite-block-content-space: 0;margin:0;padding-inline:var(--arcgis-coordinate-conversion-padding-x)}calcite-block:last-of-type{padding-block-end:var(--arcgis-coordinate-conversion-padding-y, var(--calcite-spacing-sm))}.go-to-input-holder{display:flex}.go-to-input-holder calcite-input{flex:1}.conversions-block{border:none;padding-bottom:var(--calcite-spacing-sm)}.live-mode-block{--calcite-label-margin-bottom: 0;padding-block:var(--calcite-spacing-sm);padding-inline:var(--arcgis-coordinate-conversion-padding-x, var(--calcite-spacing-sm))}.live-mode-label{width:fit-content;margin-inline-start:auto}.font-size-small{font-size:var(--calcite-font-size--2)}.format-radio-label{display:flex;flex-direction:column}.radio-label{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size--2)}.radio-description{font-weight:var(--calcite-font-weight-light);font-size:var(--calcite-font-size--3)}.unit-select-panel{--calcite-panel-space: var(--calcite-spacing-md)}.popover-footer{padding:var(--calcite-spacing-sm);border-top:1px solid var(--calcite-color-border-3)}.input-form-group{display:flex;flex-direction:column;align-items:flex-start;padding:var(--calcite-spacing-sm)}.add-conversion-trigger{margin-inline-start:var(--calcite-spacing-sm);margin-block-start:var(--calcite-spacing-sm)}.input-form-group calcite-label{width:100%}.settings{padding:var(--calcite-spacing-md);display:flex;flex-direction:column;align-items:center;background-color:var(--calcite-color-foreground-1);max-width:var(--arcgis-coordinate-conversion-width, 320px)}.settings calcite-label{width:100%}.settings calcite-input{flex:1}.settings-form-group-horizontal{display:flex}`, A = 2500, B = 1e3, V = new F({
|
|
5
|
+
import { css as P, nothing as c, html as n } from "lit";
|
|
6
|
+
import { createRef as b, ref as p } from "lit/directives/ref.js";
|
|
7
|
+
import { LitElement as S, createEvent as m, safeClassMap as z } from "@arcgis/lumina";
|
|
8
|
+
import { usePropertyChange as M } from "@arcgis/lumina/controllers";
|
|
9
|
+
import { rethrowError as w } from "@arcgis/toolkit/log";
|
|
10
|
+
import { m as L } from "../../chunks/useViewModel.js";
|
|
11
|
+
import { u as E } from "../../chunks/useT9n.js";
|
|
12
|
+
import { convertUnit as T } from "@arcgis/core/applications/Components/unitUtils.js";
|
|
13
|
+
import { getDefaultUnitForView as F } from "@arcgis/core/applications/Components/getDefaultUnits.js";
|
|
14
|
+
import { hasDisplayProperties as v } from "@arcgis/core/applications/Components/formatUtils.js";
|
|
15
|
+
import I from "@arcgis/core/geometry/Point.js";
|
|
16
|
+
import D from "@arcgis/core/widgets/CoordinateConversion/CoordinateConversionViewModel.js";
|
|
17
|
+
import g from "@arcgis/core/widgets/CoordinateConversion/support/Conversion.js";
|
|
18
|
+
import { l as U } from "../../chunks/measurementUtils.js";
|
|
19
|
+
import A from "@arcgis/core/applications/Components/QuantityFormatter.js";
|
|
20
|
+
const O = P`[class^=esri-icon-],[class*=" esri-icon-"]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-weight:var(--calcite-font-weight-normal);line-height:1;font-family:CalciteWebCoreIcons!important}.esri-icon-close:before{content:"";color:inherit}.esri-icon-drag-horizontal:before{content:"";color:inherit}.esri-icon-drag-vertical:before{content:"";color:inherit}.esri-icon-handle-horizontal:before{content:"";color:inherit}.esri-icon-handle-vertical:before{content:"";color:inherit}.esri-icon-check-mark:before{content:"";color:inherit}.esri-icon-left-triangle-arrow:before{content:"";color:inherit}.esri-icon-right-triangle-arrow:before{content:"";color:inherit}.esri-icon-down-arrow:before{content:"";color:inherit}.esri-icon-up-arrow:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-left:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-right:before{content:"";color:inherit}.esri-icon-overview-arrow-top-left:before{content:"";color:inherit}.esri-icon-overview-arrow-top-right:before{content:"";color:inherit}.esri-icon-maximize:before{content:"";color:inherit}.esri-icon-minimize:before{content:"";color:inherit}.esri-icon-checkbox-unchecked:before{content:"";color:inherit}.esri-icon-checkbox-checked:before{content:"";color:inherit}.esri-icon-radio-unchecked:before{content:"";color:inherit}.esri-icon-radio-checked:before{content:"";color:inherit}.esri-icon-up-arrow-circled:before{content:"";color:inherit}.esri-icon-down-arrow-circled:before{content:"";color:inherit}.esri-icon-left-arrow-circled:before{content:"";color:inherit}.esri-icon-right-arrow-circled:before{content:"";color:inherit}.esri-icon-zoom-out-fixed:before{content:"";color:inherit}.esri-icon-zoom-in-fixed:before{content:"";color:inherit}.esri-icon-refresh:before{content:"";color:inherit}.esri-icon-edit:before{content:"";color:inherit}.esri-icon-authorize:before{content:"";color:inherit}.esri-icon-map-pin:before{content:"";color:inherit}.esri-icon-blank-map-pin:before{content:"";color:inherit}.esri-icon-table:before{content:"";color:inherit}.esri-icon-plus:before{content:"";color:inherit}.esri-icon-minus:before{content:"";color:inherit}.esri-icon-beginning:before{content:"";color:inherit}.esri-icon-reverse:before{content:"";color:inherit}.esri-icon-pause:before{content:"";color:inherit}.esri-icon-play:before{content:"";color:inherit}.esri-icon-forward:before{content:"";color:inherit}.esri-icon-end:before{content:"";color:inherit}.esri-icon-erase:before{content:"";color:inherit}.esri-icon-up-down-arrows:before{content:"";color:inherit}.esri-icon-left:before{content:"";color:inherit}.esri-icon-right:before{content:"";color:inherit}.esri-icon-announcement:before{content:"";color:inherit}.esri-icon-notice-round:before{content:"";color:inherit}.esri-icon-notice-triangle:before{content:"";color:inherit}.esri-icon-home:before{content:"";color:inherit}.esri-icon-locate:before{content:"";color:inherit}.esri-icon-expand:before{content:"";color:inherit}.esri-icon-collapse:before{content:"";color:inherit}.esri-icon-layer-list:before{content:"";color:inherit}.esri-icon-basemap:before{content:"";color:inherit}.esri-icon-globe:before{content:"";color:inherit}.esri-icon-applications:before{content:"";color:inherit}.esri-icon-arrow-up-circled:before{content:"";color:inherit}.esri-icon-arrow-down-circled:before{content:"";color:inherit}.esri-icon-arrow-left-circled:before{content:"";color:inherit}.esri-icon-arrow-right-circled:before{content:"";color:inherit}.esri-icon-minus-circled:before{content:"";color:inherit}.esri-icon-plus-circled:before{content:"";color:inherit}.esri-icon-add-attachment:before{content:"";color:inherit}.esri-icon-attachment:before{content:"";color:inherit}.esri-icon-calendar:before{content:"";color:inherit}.esri-icon-close-circled:before{content:"";color:inherit}.esri-icon-browser:before{content:"";color:inherit}.esri-icon-collection:before{content:"";color:inherit}.esri-icon-comment:before{content:"";color:inherit}.esri-icon-configure-popup:before{content:"";color:inherit}.esri-icon-contact:before{content:"";color:inherit}.esri-icon-dashboard:before{content:"";color:inherit}.esri-icon-deny:before{content:"";color:inherit}.esri-icon-description:before{content:"";color:inherit}.esri-icon-directions:before{content:"";color:inherit}.esri-icon-directions2:before{content:"";color:inherit}.esri-icon-documentation:before{content:"";color:inherit}.esri-icon-duplicate:before{content:"";color:inherit}.esri-icon-review:before{content:"";color:inherit}.esri-icon-environment-settings:before{content:"";color:inherit}.esri-icon-error:before{content:"";color:inherit}.esri-icon-error2:before{content:"";color:inherit}.esri-icon-experimental:before{content:"";color:inherit}.esri-icon-feature-layer:before{content:"";color:inherit}.esri-icon-filter:before{content:"";color:inherit}.esri-icon-grant:before{content:"";color:inherit}.esri-icon-group:before{content:"";color:inherit}.esri-icon-key:before{content:"";color:inherit}.esri-icon-labels:before{content:"";color:inherit}.esri-icon-tag:before{content:"";color:inherit}.esri-icon-layers:before{content:"";color:inherit}.esri-icon-left-arrow:before{content:"";color:inherit}.esri-icon-right-arrow:before{content:"";color:inherit}.esri-icon-link-external:before{content:"";color:inherit}.esri-icon-link:before{content:"";color:inherit}.esri-icon-loading-indicator:before{content:"";color:inherit}.esri-icon-maps:before{content:"";color:inherit}.esri-icon-marketplace:before{content:"";color:inherit}.esri-icon-media:before{content:"";color:inherit}.esri-icon-media2:before{content:"";color:inherit}.esri-icon-menu:before{content:"";color:inherit}.esri-icon-mobile:before{content:"";color:inherit}.esri-icon-phone:before{content:"";color:inherit}.esri-icon-navigation:before{content:"";color:inherit}.esri-icon-pan:before{content:"";color:inherit}.esri-icon-printer:before{content:"";color:inherit}.esri-icon-pie-chart:before{content:"";color:inherit}.esri-icon-chart:before{content:"";color:inherit}.esri-icon-line-chart:before{content:"";color:inherit}.esri-icon-question:before{content:"";color:inherit}.esri-icon-resend-invitation:before{content:"";color:inherit}.esri-icon-rotate:before{content:"";color:inherit}.esri-icon-save:before{content:"";color:inherit}.esri-icon-settings:before{content:"";color:inherit}.esri-icon-settings2:before{content:"";color:inherit}.esri-icon-share:before{content:"";color:inherit}.esri-icon-sign-out:before{content:"";color:inherit}.esri-icon-support:before{content:"";color:inherit}.esri-icon-user:before{content:"";color:inherit}.esri-icon-time-clock:before{content:"";color:inherit}.esri-icon-trash:before{content:"";color:inherit}.esri-icon-upload:before{content:"";color:inherit}.esri-icon-download:before{content:"";color:inherit}.esri-icon-zoom-in-magnifying-glass:before{content:"";color:#6e6e6e}.esri-icon-search:before{content:"";color:inherit}.esri-icon-zoom-out-magnifying-glass:before{content:"";color:#6e6e6e}.esri-icon-locked:before{content:"";color:inherit}.esri-icon-unlocked:before{content:"";color:inherit}.esri-icon-favorites:before{content:"";color:inherit}.esri-icon-compass:before{content:"";color:inherit}.esri-icon-down:before{content:"";color:inherit}.esri-icon-up:before{content:"";color:inherit}.esri-icon-chat:before{content:"";color:inherit}.esri-icon-dock-bottom:before{content:"";color:inherit}.esri-icon-dock-left:before{content:"";color:inherit}.esri-icon-dock-right:before{content:"";color:inherit}.esri-icon-organization:before{content:"";color:inherit}.esri-icon-north-navigation:before{content:"";color:inherit}.esri-icon-locate-circled:before{content:"";color:inherit}.esri-icon-dial:before{content:"";color:inherit}.esri-icon-polygon:before{content:"";color:inherit}.esri-icon-polyline:before{content:"";color:inherit}.esri-icon-visible:before{content:"";color:inherit}.esri-icon-non-visible:before{content:"";color:inherit}.esri-icon-link-vertical:before{content:"";color:inherit}.esri-icon-unlocked-link-vertical:before{content:"";color:inherit}.esri-icon-link-horizontal:before{content:"";color:inherit}.esri-icon-unlocked-link-horizontal:before{content:"";color:inherit}.esri-icon-swap:before{content:"";color:inherit}.esri-icon-cta-link-external:before{content:"";color:inherit}.esri-icon-reply:before{content:"";color:inherit}.esri-icon-public:before{content:"";color:inherit}.esri-icon-share2:before{content:"";color:inherit}.esri-icon-launch-link-external:before{content:"";color:inherit}.esri-icon-rotate-back:before{content:"";color:inherit}.esri-icon-pan2:before{content:"";color:inherit}.esri-icon-tracking:before{content:"";color:inherit}.esri-icon-expand2:before{content:"";color:inherit}.esri-icon-arrow-down:before{content:"";color:inherit}.esri-icon-arrow-up:before{content:"";color:inherit}.esri-icon-hollow-eye:before{content:"";color:inherit}.esri-icon-play-circled:before{content:"";color:inherit}.esri-icon-volume-off:before{content:"";color:inherit}.esri-icon-volume-on:before{content:"";color:inherit}.esri-icon-bookmark:before{content:"";color:inherit}.esri-icon-lightbulb:before{content:"";color:inherit}.esri-icon-sketch-rectangle:before{content:"";color:inherit}.esri-icon-north-navigation-filled:before{content:"";color:inherit}.esri-icon-default-action:before{content:"";color:inherit}.esri-icon-undo:before{content:"";color:inherit}.esri-icon-redo:before{content:"";color:inherit}.esri-icon-cursor:before{content:"";color:inherit}.esri-icon-cursor-filled:before{content:"";color:inherit}.esri-icon-measure:before{content:"";color:inherit}.esri-icon-measure-line:before{content:"";color:inherit}.esri-icon-measure-area:before{content:"";color:inherit}.esri-icon-legend:before{content:"";color:inherit}.esri-icon-sliders:before{content:"";color:inherit}.esri-icon-sliders-horizontal:before{content:"";color:inherit}.esri-icon-cursor-marquee:before{content:"";color:inherit}.esri-icon-lasso:before{content:"";color:inherit}.esri-icon-elevation-profile:before{content:"";color:inherit}.esri-icon-slice:before{content:"";color:inherit}.esri-icon-line-of-sight:before{content:"";color:inherit}.esri-icon-zoom-to-object:before{content:"";color:inherit}.esri-icon-urban-model:before{content:"";color:inherit}.esri-icon-measure-building-height-shadow:before{content:"";color:inherit}.esri-icon-partly-cloudy:before{content:"";color:inherit}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-button{box-sizing:border-box;cursor:pointer;white-space:normal;word-break:normal;color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info);justify-content:center;align-items:center;width:100%;min-height:var(--calcite-spacing-xxxl);padding:6px 7px;font-family:inherit;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out,border .125s ease-in-out;display:flex;overflow:hidden;&:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info-hover);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info-hover)}}.esri-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-text-2);border:1px solid var(--calcite-color-text-2)}.esri-button.esri-button--small{min-height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size-sm)}.esri-button.esri-button--half{width:50%;display:inline-block}.esri-button.esri-button--third{width:33%;display:inline-block}.esri-button--secondary{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-button--tertiary{color:var(--calcite-color-brand);background-color:var(--calcite-color-transparent);border-color:var(--calcite-color-transparent)}.esri-button--tertiary:hover{color:var(--calcite-color-brand-hover);background-color:var(--calcite-color-foreground-2);border-color:var(--calcite-color-transparent)}.esri-button--disabled{opacity:.4;pointer-events:none}.esri-button--drill-in{outline-offset:-4px;cursor:pointer;text-align:unset;background-color:var(--calcite-color-foreground-1);border:none;border-radius:2px;justify-content:space-between;align-items:center;margin:var(--calcite-spacing-md) 7px;padding:var(--calcite-spacing-md) 7px;text-decoration:none;transition:background-color .125s ease-in-out;display:flex;box-shadow:0 0 0 1px #adadad4d}.esri-button--drill-in:hover,.esri-button--drill-in:focus{background-color:var(--calcite-color-foreground-2)}.esri-button--drill-in__title{font-size:var(--calcite-font-size)}.esri-button--drill-in [class^=esri-icon-],.esri-button--drill-in [class*=" esri-icon-"]{padding:0 7px}.esri-widget--button{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);flex-flow:row;justify-content:center;align-items:center;width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;overflow:hidden}.esri-widget--button:is(calcite-button):not(:hover){--calcite-icon-color: var(--calcite-color-text-3)}.esri-widget--button:not([appearance]),.esri-widget--button[appearance=solid]{--calcite-color-foreground-3: var(--calcite-color-foreground-1)}.esri-widget--button:is(calcite-button){--calcite-offset-invert-focus: 1}.esri-widget--button calcite-loader[inline]{margin:auto}.esri-button--secondary{color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);&:hover{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-status-info);border:1px solid var(--calcite-color-status-info)}}:host{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);padding-block-start:var(--arcgis-coordinate-conversion-padding-y);width:var(--arcgis-coordinate-conversion-width, 280px)}.root{background-color:var(--calcite-color-foreground-1)}calcite-alert{--calcite-alert-offset-size: var(--calcite-spacing-sm)}calcite-notice[open]{padding:var(--calcite-spacing-sm)}calcite-block{--calcite-block-content-space: 0;margin:0;padding-inline:var(--arcgis-coordinate-conversion-padding-x)}calcite-block:last-of-type{padding-block-end:var(--arcgis-coordinate-conversion-padding-y, var(--calcite-spacing-sm))}.conversion-popover{--calcite-popover-max-size-x: var(--arcgis-coordinate-conversion-settings-block-size, 250px)}.go-to-input-holder{display:flex}.go-to-input-holder calcite-input{flex:1}.conversions-block{border:none;padding-bottom:var(--calcite-spacing-sm)}.live-mode-block{--calcite-label-margin-bottom: 0;padding-block:var(--calcite-spacing-sm);padding-inline:var(--arcgis-coordinate-conversion-padding-x, var(--calcite-spacing-sm))}.live-mode-label{width:fit-content;margin-inline-start:auto}.font-size-small{font-size:var(--calcite-font-size--2)}.format-radio-label{display:flex;flex-direction:column}.radio-label{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size--2)}.radio-description{font-weight:var(--calcite-font-weight-light);font-size:var(--calcite-font-size--3)}.unit-select-panel{--calcite-panel-space: var(--calcite-spacing-md)}.popover-footer{padding:var(--calcite-spacing-sm);border-top:1px solid var(--calcite-color-border-3)}.input-form-group{display:flex;flex-direction:column;align-items:flex-start;padding:var(--calcite-spacing-sm)}.add-conversion-trigger{margin-inline-start:var(--calcite-spacing-sm);margin-block-start:var(--calcite-spacing-sm)}.input-form-group calcite-label{width:100%}.settings{padding:var(--calcite-spacing-md);display:flex;flex-direction:column;align-items:center;background-color:var(--calcite-color-foreground-1);width:calc(var(--arcgis-coordinate-conversion-settings-block-size, 250px) - (2 * var(--calcite-spacing-md)) - 2px)}.settings calcite-label{width:100%}.settings calcite-input{flex:1}.settings-form-group-horizontal{display:flex}`, B = 2500, V = new I({
|
|
21
21
|
x: 0,
|
|
22
22
|
y: 0
|
|
23
23
|
}), l = {
|
|
@@ -28,10 +28,10 @@ const O = P`[class^=esri-icon-],[class*=" esri-icon-"]{speak:none;font-variant:n
|
|
|
28
28
|
plus: "plus",
|
|
29
29
|
refresh: "refresh",
|
|
30
30
|
warning: "exclamation-mark-triangle"
|
|
31
|
-
}, q =
|
|
32
|
-
class
|
|
31
|
+
}, q = L(D);
|
|
32
|
+
class R extends S {
|
|
33
33
|
constructor() {
|
|
34
|
-
super(...arguments), this._alertTimer = -1, this._conversionPopoverMap = /* @__PURE__ */ new Map(), this._coordinateInput =
|
|
34
|
+
super(...arguments), this._alertTimer = -1, this._conversionPopoverMap = /* @__PURE__ */ new Map(), this._coordinateInput = b(), this.messages = E({ name: "coordinate-conversion", blocking: !0 }), this._multipleConversionsDisabled = !1, this.quantityFormatter = new A(), this.viewModel = q(this), this.clearAlertTimeout = () => {
|
|
35
35
|
window.clearTimeout(this._alertTimer), this.alertProperties = {
|
|
36
36
|
...this.alertProperties,
|
|
37
37
|
open: !1
|
|
@@ -40,48 +40,44 @@ class j extends z {
|
|
|
40
40
|
this._elevationPopoverTrigger = e;
|
|
41
41
|
}, this.onFormatPopoverTriggerMount = (e) => {
|
|
42
42
|
this._formatsPopoverTrigger = e;
|
|
43
|
-
}, this.stopPropagation = (e) => {
|
|
44
|
-
e.stopPropagation();
|
|
45
43
|
}, this.handleFormatComboboxChange = (e) => {
|
|
46
|
-
const o = e.target.selectedItems[0].value,
|
|
47
|
-
if (
|
|
48
|
-
const
|
|
49
|
-
|
|
44
|
+
const o = e.target.selectedItems[0].value, i = this.formats.find((t) => t.name === o);
|
|
45
|
+
if (i) {
|
|
46
|
+
const t = this.activeConversion ?? this.conversions.at(0) ?? null, r = new g({ format: i });
|
|
47
|
+
t && this.transferConversionPopoverState(t, r), this.conversions.splice(0, 1, r), this.activeConversion = r, this.setPreviewConversion();
|
|
50
48
|
}
|
|
51
49
|
}, this.alertProperties = {
|
|
52
50
|
kind: "brand",
|
|
53
51
|
message: null,
|
|
54
52
|
title: null,
|
|
55
53
|
open: !1
|
|
56
|
-
}, this.elevationPopoverOpen = !1, this.formatsPopoverOpen = !1, this.invalidInput = !1, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.conversions = this.viewModel.conversions, this.currentLocation = this.viewModel.currentLocation, this.expanded = !1, this.formats = this.viewModel.formats, this.goToOverride = this.viewModel.goToOverride, this.headingLevel = 4, this.hideCaptureButton = !1, this.hideCaptureSection = !1, this.hideInputButton = !1, this.hideInputSection = !1, this.hideExpandButton = !1, this.hideSettingsButton = !1, this.icon = "coordinate-system", this.label = this.messages.componentLabel, this.locationSymbol = this.viewModel.locationSymbol, this.mode = this.viewModel.mode, this.orientation = "auto", this.removeLeadingZeros = this.viewModel.removeLeadingZeros, this.showElevation = !1, this.state = this.viewModel.state, this.storageType = this.viewModel.storageType, this.arcgisConversionChange =
|
|
57
|
-
const { messages:
|
|
58
|
-
return k(e?.format?.name, n`<calcite-list-item class="conversion-list-item" .description=${r.toUpperCase()} .label=${this.getDisplayCoordinate(
|
|
59
|
-
p.key === "Enter" && a && this.copyToClipboard(e.displayCoordinate);
|
|
60
|
-
}} role=button scale=s title=${g ?? void 0 ?? s}>${v}</calcite-list-item>`);
|
|
54
|
+
}, this.elevationPopoverOpen = !1, this.formatsPopoverOpen = !1, this.invalidInput = !1, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.conversions = this.viewModel.conversions, this.currentLocation = this.viewModel.currentLocation, this.expanded = !1, this.formats = this.viewModel.formats, this.goToOverride = this.viewModel.goToOverride, this.headingLevel = 4, this.hideCaptureButton = !1, this.hideCaptureSection = !1, this.hideInputButton = !1, this.hideInputSection = !1, this.hideExpandButton = !1, this.hideSettingsButton = !1, this.icon = "coordinate-system", this.label = this.messages.componentLabel, this.locationSymbol = this.viewModel.locationSymbol, this.mode = this.viewModel.mode, this.orientation = "auto", this.removeLeadingZeros = this.viewModel.removeLeadingZeros, this.visualScale = "s", this.showElevation = !1, this.state = this.viewModel.state, this.storageType = this.viewModel.storageType, this.arcgisConversionChange = m(), this.arcgisPropertyChange = M()("currentLocation", "state", "mode", "verticalUnit"), this.arcgisReady = m(), this.renderConversionView = (e, o) => {
|
|
55
|
+
const { messages: i } = this, { format: t } = e, r = t?.label ?? "", a = o === 0 && !e.displayCoordinate ? i.noLocation : e.displayCoordinate, d = this._renderConversionActions(e, a);
|
|
56
|
+
return k(e?.format?.name, n`<calcite-list-item class="conversion-list-item" .description=${r.toUpperCase()} .label=${this.getDisplayCoordinate(a)} .scale=${this.visualScale} title=${a ?? void 0 ?? c}>${d}</calcite-list-item>`);
|
|
61
57
|
}, this.renderLiveModeSection = () => {
|
|
62
58
|
const { messages: e } = this, o = this.mode === "idle" ? this.viewModel.mode : this.mode;
|
|
63
|
-
return n`<calcite-block class="live-mode-block" .disabled=${this.disabled} expanded .headingLevel=${this.headingLevel} .label=${e.captureMode} scale
|
|
59
|
+
return n`<calcite-block class="live-mode-block" .disabled=${this.disabled} expanded .headingLevel=${this.headingLevel} .label=${e.captureMode} .scale=${this.visualScale}><calcite-label alignment=end class="live-mode-label" layout=inline .scale=${this.visualScale}>${e.captureMode}<calcite-switch .checked=${o === "capture"} @calciteSwitchChange=${this.toggleMode}></calcite-switch></calcite-label></calcite-block>`;
|
|
64
60
|
};
|
|
65
61
|
}
|
|
66
62
|
static {
|
|
67
|
-
this.properties = { activeConversion: 16, alertProperties: 16, defaultMeasurementSystem: 16, disabled: 16, displayedElevation: 16, elevationPopoverOpen: 16, formatsPopoverOpen: 16, invalidInput: 16, inputFormat: 16, previewConversion: 16, view: 0, autoDestroyDisabled: 5, conversions: 0, currentLocation: 0, expanded: 7, formats: 0, goToOverride: 0, headingLevel: 9, hideCaptureButton: 7, hideCaptureSection: 7, hideInputButton: 7, hideInputSection: 7, hideExpandButton: 7, hideSettingsButton: 7, icon: 1, ignoreCoordinatePrecision: 5, label: 1, locationSymbol: 0, mode: 3, multipleConversionsDisabled: 7, orientation: 3, referenceElement: 1, removeLeadingZeros: 7, showElevation: 7, state: 32, storageDisabled: 7, storageType: 1, verticalUnit: 1 };
|
|
63
|
+
this.properties = { activeConversion: 16, alertProperties: 16, defaultMeasurementSystem: 16, disabled: 16, displayedElevation: 16, elevationPopoverOpen: 16, formatsPopoverOpen: 16, invalidInput: 16, inputFormat: 16, previewConversion: 16, view: 0, autoDestroyDisabled: 5, conversions: 0, currentLocation: 0, expanded: 7, formats: 0, goToOverride: 0, headingLevel: 9, hideCaptureButton: 7, hideCaptureSection: 7, hideInputButton: 7, hideInputSection: 7, hideExpandButton: 7, hideSettingsButton: 7, icon: 1, ignoreCoordinatePrecision: 5, label: 1, locationSymbol: 0, mode: 3, multipleConversionsDisabled: 7, orientation: 3, referenceElement: 1, removeLeadingZeros: 7, visualScale: 1, showElevation: 7, state: 32, storageDisabled: 7, storageType: 1, verticalUnit: 1 };
|
|
68
64
|
}
|
|
69
65
|
static {
|
|
70
66
|
this.styles = O;
|
|
71
67
|
}
|
|
72
68
|
get defaultMeasurementSystem() {
|
|
73
|
-
return this.view?.ready ?
|
|
69
|
+
return this.view?.ready ? F(this.view) : "metric";
|
|
74
70
|
}
|
|
75
71
|
get disabled() {
|
|
76
72
|
return this.viewModel.state === "disabled";
|
|
77
73
|
}
|
|
78
74
|
get displayedElevation() {
|
|
79
|
-
const { currentLocation: e, verticalUnit: o, messages:
|
|
75
|
+
const { currentLocation: e, verticalUnit: o, messages: i } = this;
|
|
80
76
|
if (e?.z === void 0 || e.z === null)
|
|
81
|
-
return
|
|
77
|
+
return i.noElevation;
|
|
82
78
|
{
|
|
83
|
-
const
|
|
84
|
-
return this.quantityFormatter.formatLength({ value:
|
|
79
|
+
const t = T(e.z, "meters", o);
|
|
80
|
+
return this.quantityFormatter.formatLength({ value: t, unit: o, type: "length" }, 2, "plural");
|
|
85
81
|
}
|
|
86
82
|
}
|
|
87
83
|
get ignoreCoordinatePrecision() {
|
|
@@ -129,18 +125,18 @@ class j extends z {
|
|
|
129
125
|
this.elevationPopoverOpen = !1, this.formatsPopoverOpen = !1, this.requestUpdate();
|
|
130
126
|
}
|
|
131
127
|
async copyToClipboard(e) {
|
|
132
|
-
e && (e = e.replace(//gu, ""), await navigator.clipboard.writeText(e)
|
|
128
|
+
e && (e = e.replace(//gu, ""), await navigator.clipboard.writeText(e));
|
|
133
129
|
}
|
|
134
130
|
findSettingsFormat() {
|
|
135
131
|
return this.activeConversion?.format || this.conversions.reduceRight((e, o) => {
|
|
136
|
-
const
|
|
137
|
-
return
|
|
138
|
-
}, null) || this.formats.find((e) =>
|
|
132
|
+
const i = o.format;
|
|
133
|
+
return i && v(i) ? i : e;
|
|
134
|
+
}, null) || this.formats.find((e) => v(e)) || null;
|
|
139
135
|
}
|
|
140
136
|
getConversionPopoverState(e) {
|
|
141
137
|
let o = this._conversionPopoverMap.get(e);
|
|
142
138
|
return o || (o = {
|
|
143
|
-
triggerRef:
|
|
139
|
+
triggerRef: b(),
|
|
144
140
|
open: !1
|
|
145
141
|
}, this._conversionPopoverMap.set(e, o)), o;
|
|
146
142
|
}
|
|
@@ -154,42 +150,38 @@ class j extends z {
|
|
|
154
150
|
getId(e) {
|
|
155
151
|
return `arcgis-coordinate-conversion-${e}`;
|
|
156
152
|
}
|
|
157
|
-
handleElevationSettingsTrigger(e) {
|
|
158
|
-
const o = !this.elevationPopoverOpen;
|
|
159
|
-
this.closeAllPopovers(), this.elevationPopoverOpen = o, e.stopPropagation();
|
|
160
|
-
}
|
|
161
153
|
openConversionSettings(e, o) {
|
|
162
|
-
const
|
|
163
|
-
this.closeAllPopovers(),
|
|
154
|
+
const i = this.getConversionPopoverState(e), t = this.activeConversion !== e || !i.open;
|
|
155
|
+
this.closeAllPopovers(), i.open = t, this._conversionPopoverTrigger = t ? o.currentTarget : void 0, this.activeConversion = t ? e : void 0, t && this.setPreviewConversion(), this.requestUpdate(), o.stopPropagation();
|
|
164
156
|
}
|
|
165
|
-
async processUserInput(e, o,
|
|
166
|
-
const { viewModel:
|
|
157
|
+
async processUserInput(e, o, i) {
|
|
158
|
+
const { viewModel: t } = this;
|
|
167
159
|
try {
|
|
168
160
|
const r = await this._reverseConvert(e, o);
|
|
169
161
|
if (r)
|
|
170
|
-
|
|
171
|
-
|
|
162
|
+
i && t.goToLocation(r).catch((s) => {
|
|
163
|
+
w(this)(s), this.showAlertMessage(null, this.messages.locationOffBasemap, "warning");
|
|
172
164
|
});
|
|
173
165
|
else
|
|
174
166
|
throw new Error("failed to process user input");
|
|
175
|
-
this.mode === "capture" ?
|
|
167
|
+
this.mode === "capture" ? t.resume() : this.mode = "capture", this.invalidInput = !1, this.currentLocation = r ?? void 0, t.setLocation(r);
|
|
176
168
|
} catch (r) {
|
|
177
|
-
|
|
169
|
+
w(this)(r), this.showAlertMessage(null, this.messages.invalidCoordinate, "warning"), this.invalidInput = !0;
|
|
178
170
|
}
|
|
179
171
|
}
|
|
180
172
|
async processUserKeyboardInput(e) {
|
|
181
173
|
const { key: o } = e;
|
|
182
174
|
if (o === "Enter") {
|
|
183
|
-
const
|
|
184
|
-
if (!
|
|
175
|
+
const i = this.inputFormat || this.conversions.at(0)?.format, t = this._coordinateInput.value?.value;
|
|
176
|
+
if (!i || !t)
|
|
185
177
|
return;
|
|
186
|
-
await this.processUserInput(
|
|
178
|
+
await this.processUserInput(t, i, !0);
|
|
187
179
|
} else
|
|
188
180
|
this.invalidInput = !1;
|
|
189
181
|
}
|
|
190
182
|
async processUserMouseInput(e) {
|
|
191
|
-
const o = this.inputFormat || this.conversions.at(0)?.format,
|
|
192
|
-
!o || !
|
|
183
|
+
const o = this.inputFormat || this.conversions.at(0)?.format, i = this._coordinateInput.value?.value;
|
|
184
|
+
!o || !i || await this.processUserInput(i, o, e);
|
|
193
185
|
}
|
|
194
186
|
async _reverseConvert(e, o) {
|
|
195
187
|
return await o.reverseConvert(e);
|
|
@@ -206,41 +198,41 @@ class j extends z {
|
|
|
206
198
|
setPreviewConversion() {
|
|
207
199
|
const e = this.findSettingsFormat(), o = this.viewModel;
|
|
208
200
|
if (e) {
|
|
209
|
-
const
|
|
210
|
-
this.previewConversion = new
|
|
201
|
+
const i = this.conversions.find((t) => t.format === e);
|
|
202
|
+
this.previewConversion = new g({
|
|
211
203
|
format: e,
|
|
212
204
|
position: {
|
|
213
205
|
location: this.currentLocation,
|
|
214
|
-
coordinate:
|
|
206
|
+
coordinate: i?.position?.coordinate
|
|
215
207
|
}
|
|
216
208
|
}), this.previewConversion.position?.coordinate || o.previewConversion(this.previewConversion, o.currentLocation ?? V);
|
|
217
209
|
}
|
|
218
210
|
}
|
|
219
|
-
showAlertMessage(e, o,
|
|
211
|
+
showAlertMessage(e, o, i, t = B) {
|
|
220
212
|
this.alertProperties = {
|
|
221
213
|
...this.alertProperties,
|
|
222
214
|
title: e,
|
|
223
215
|
message: o,
|
|
224
|
-
kind:
|
|
216
|
+
kind: i,
|
|
225
217
|
open: !0
|
|
226
218
|
}, window.clearTimeout(this._alertTimer), this._alertTimer = window.setTimeout(() => {
|
|
227
219
|
this.alertProperties = {
|
|
228
220
|
...this.alertProperties,
|
|
229
221
|
open: !1
|
|
230
222
|
};
|
|
231
|
-
},
|
|
223
|
+
}, t);
|
|
232
224
|
}
|
|
233
225
|
toggleConversion(e) {
|
|
234
|
-
const o = e.target,
|
|
235
|
-
if (
|
|
236
|
-
const
|
|
237
|
-
if (
|
|
226
|
+
const o = e.target, i = this.formats.find((t) => t.name === o.getAttribute("data-format"));
|
|
227
|
+
if (i) {
|
|
228
|
+
const t = this.conversions.find((r) => r.format === i);
|
|
229
|
+
if (t) {
|
|
238
230
|
if (this.conversions.length > 1) {
|
|
239
|
-
const r = this._conversionPopoverMap.get(
|
|
240
|
-
r && (r.open = !1, this._conversionPopoverMap.delete(
|
|
231
|
+
const r = this._conversionPopoverMap.get(t);
|
|
232
|
+
r && (r.open = !1, this._conversionPopoverMap.delete(t)), this.activeConversion === t && (this.activeConversion = void 0), this.conversions.remove(t);
|
|
241
233
|
}
|
|
242
234
|
} else {
|
|
243
|
-
const r = new
|
|
235
|
+
const r = new g({ format: i });
|
|
244
236
|
this.conversions.add(r);
|
|
245
237
|
}
|
|
246
238
|
}
|
|
@@ -249,111 +241,117 @@ class j extends z {
|
|
|
249
241
|
this.mode = this.viewModel.mode === "live" ? "capture" : "live";
|
|
250
242
|
}
|
|
251
243
|
transferConversionPopoverState(e, o) {
|
|
252
|
-
const
|
|
253
|
-
|
|
244
|
+
const i = this.getConversionPopoverState(e), t = this.getConversionPopoverState(o);
|
|
245
|
+
t.open = i.open, this._conversionPopoverMap.delete(e);
|
|
254
246
|
}
|
|
255
247
|
updateCurrentPattern(e) {
|
|
256
248
|
e.stopPropagation();
|
|
257
|
-
const o = e.target,
|
|
258
|
-
|
|
249
|
+
const o = e.target, i = this.findSettingsFormat();
|
|
250
|
+
i && (i.currentPattern = o.value);
|
|
259
251
|
}
|
|
260
252
|
render() {
|
|
261
253
|
const { headingLevel: e } = this, o = this.renderConversionPopover();
|
|
262
|
-
return n`<calcite-panel class=root .headingLevel=${e} scale
|
|
254
|
+
return n`<calcite-panel class=root .headingLevel=${e} .scale=${this.visualScale}>${this.renderConversionsView()}${this.renderAlert()}</calcite-panel>${o}`;
|
|
263
255
|
}
|
|
264
256
|
renderAlert() {
|
|
265
|
-
const { messages: e } = this, { open: o, message:
|
|
266
|
-
return n`<calcite-alert class="alert" .kind=${r} .label=${e.alertLabel} @calciteAlertClose=${this.clearAlertTimeout} .open=${o} placement=top scale
|
|
257
|
+
const { messages: e } = this, { open: o, message: i, title: t, kind: r } = this.alertProperties;
|
|
258
|
+
return n`<calcite-alert class="alert" .kind=${r} .label=${e.alertLabel} @calciteAlertClose=${this.clearAlertTimeout} .open=${o} placement=top .scale=${this.visualScale} slot=alerts>${t ? n`<div slot=title>${t}</div>` : null}${i ? n`<div slot=message>${i}</div>` : null}</calcite-alert>`;
|
|
259
|
+
}
|
|
260
|
+
_renderConversionActions(e, o) {
|
|
261
|
+
const { messages: i } = this, t = this.getConversionPopoverState(e), r = i.settingsTitleWithFormat.replace("{formatName}", e.format?.name?.toUpperCase() ?? ""), s = e.displayCoordinate && this.mode !== "live";
|
|
262
|
+
return n`<calcite-action-group layout=horizontal .scale=${this.visualScale} slot=actions-end>${s ? n`<calcite-action .icon=${l.copy} .label=${i.copyLabel} @click=${() => this.copyToClipboard(o)} .scale=${this.visualScale} .text=${i.copyLabel} title=${i.copyLabel ?? c}></calcite-action>` : null}${this.hideSettingsButton ? null : n`<calcite-action data-format=${e.format?.name ?? c} .icon=${l.gear} .label=${r} @click=${(a) => this.openConversionSettings(e, a)} .scale=${this.visualScale} .text=${r} title=${r ?? c} ${p(t.triggerRef)}></calcite-action>`}</calcite-action-group>`;
|
|
267
263
|
}
|
|
268
264
|
renderConversionOptions(e, o) {
|
|
269
|
-
return e.map((
|
|
265
|
+
return e.map((i) => n`<calcite-option .label=${i.label.toUpperCase()} .selected=${i === o} .value=${i}>${i.label}</calcite-option>`);
|
|
270
266
|
}
|
|
271
267
|
renderConversionPopover() {
|
|
272
268
|
const { activeConversion: e, messages: o } = this;
|
|
273
269
|
if (!e)
|
|
274
270
|
return null;
|
|
275
|
-
const
|
|
271
|
+
const i = this.getConversionPopoverState(e), t = o.settingsTitleWithFormat.replace("{formatName}", e.format?.name?.toUpperCase() ?? "");
|
|
276
272
|
return this.renderPopover({
|
|
273
|
+
class: "conversion-popover",
|
|
277
274
|
content: this.renderSettingsView(),
|
|
278
|
-
getPopoverOpenProperty: () =>
|
|
279
|
-
heading:
|
|
275
|
+
getPopoverOpenProperty: () => i.open,
|
|
276
|
+
heading: t,
|
|
280
277
|
includeFooter: !0,
|
|
281
|
-
label:
|
|
282
|
-
placement: "left",
|
|
278
|
+
label: t,
|
|
283
279
|
setPopoverOpenProperty: (r) => {
|
|
284
|
-
|
|
280
|
+
i.open = r, r || (this._conversionPopoverTrigger = void 0, this.activeConversion = void 0), this.requestUpdate();
|
|
285
281
|
},
|
|
286
282
|
trigger: null,
|
|
287
|
-
triggerElement:
|
|
283
|
+
triggerElement: i.triggerRef.value ?? this._conversionPopoverTrigger ?? void 0
|
|
288
284
|
});
|
|
289
285
|
}
|
|
290
286
|
renderConversionsView() {
|
|
291
287
|
if (!this.conversions)
|
|
292
288
|
return;
|
|
293
|
-
const { messages: e, multipleConversionsDisabled: o } = this,
|
|
294
|
-
return n`${
|
|
289
|
+
const { messages: e, multipleConversionsDisabled: o } = this, t = (o ? this.conversions.slice(0, 1) : this.conversions).map(this.renderConversionView).reverse(), r = this.showElevation ? this.renderElevation() : null, s = this.hideCaptureSection ? null : this.renderLiveModeSection(), a = this.hideInputSection ? null : this.renderCoordinateInputView(), d = this.multipleConversionsDisabled ? null : this.renderFormatDropdown(), u = this.disabled ? n`<calcite-notice .icon=${l.lightbulb} .open=${this.disabled} width=full><div class="font-size-small" slot=message>${e.noBasemap}</div></calcite-notice>` : null;
|
|
290
|
+
return n`${s}${u}${a}<calcite-block class="conversions-block" .disabled=${this.disabled} expanded .heading=${e.coordinates} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><calcite-list interaction-mode=static .label=${e.coordinates} .scale=${this.visualScale}>${t}</calcite-list>${d}</calcite-block>${r}`;
|
|
295
291
|
}
|
|
296
292
|
renderCoordinateInputView() {
|
|
297
|
-
const { messages: e } = this, o = this.inputFormat ?? this.conversions.at(0)?.format,
|
|
298
|
-
return n`<calcite-block collapsible data-testid=input-block .disabled=${this.disabled} .heading=${e.input} .headingLevel=${this.headingLevel} scale
|
|
293
|
+
const { messages: e } = this, o = this.inputFormat ?? this.conversions.at(0)?.format, i = this.getId("coordinate-input"), t = this.renderConversionOptions(this.formats, o ?? void 0), r = n`<calcite-action .icon=${l.goTo} .label=${e.convertAndGoTo} @click=${() => this.processUserMouseInput(!0)} .scale=${this.visualScale} .text=${e.convertAndGoTo} title=${e.convertAndGoTo ?? c}></calcite-action>`;
|
|
294
|
+
return n`<calcite-block collapsible data-testid=input-block .disabled=${this.disabled} .heading=${e.input} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><div class="input-form-group"><calcite-label .scale=${this.visualScale}>${e.inputFormat}<calcite-select aria-controls=${i ?? c} class="input-select" .label=${e.inputFormat} @calciteSelectChange=${this.setInputFormat} .scale=${this.visualScale}>${t}</calcite-select></calcite-label><calcite-label .scale=${this.visualScale}>${e.inputCoordTitle}<div class="go-to-input-holder"><calcite-input class="coordinate-input" data-format=${o ?? c} data-testid=coordinate-input id=${i ?? c} @keydown=${this.processUserKeyboardInput} .placeholder=${e.inputCoordTitle} required .scale=${this.visualScale} .status=${this.invalidInput ? "invalid" : "idle"} ${p(this._coordinateInput)}></calcite-input>${r}</div></calcite-label><calcite-button appearance=outline data-testid=convert-button kind=neutral @click=${() => this.processUserMouseInput(!1)} type=button .scale=${this.visualScale} width=auto>${e.convert}</calcite-button></div></calcite-block>`;
|
|
299
295
|
}
|
|
300
296
|
renderElevation() {
|
|
301
|
-
const { messages: e } = this, o = this.displayedElevation ?? e.noElevation,
|
|
302
|
-
return n`<calcite-block .disabled=${this.disabled} expanded .heading=${e.elevation} .headingLevel=${this.headingLevel} scale=
|
|
303
|
-
|
|
304
|
-
|
|
297
|
+
const { messages: e } = this, o = this.displayedElevation ?? e.noElevation, i = this.renderElevationActions(), t = this.hideSettingsButton ? null : this.renderElevationSettingsDropdown();
|
|
298
|
+
return n`<calcite-block .disabled=${this.disabled} expanded .heading=${e.elevation} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><calcite-list interaction-mode=static .label=${e.elevation} .scale=${this.visualScale}><calcite-list-item class="elevation-list-item" .label=${o} .scale=${this.visualScale} title=${o ?? c}>${i}</calcite-list-item></calcite-list>${t}</calcite-block>`;
|
|
299
|
+
}
|
|
300
|
+
renderElevationActions() {
|
|
301
|
+
const { messages: e } = this, o = this.currentLocation?.z !== void 0 && this.mode !== "live", i = this.displayedElevation ?? e.noElevation;
|
|
302
|
+
return n`<calcite-action-group layout=horizontal .scale=${this.visualScale} slot=actions-end>${o ? n`<calcite-action .icon=${l.copy} .label=${e.copyElevationLabel} @click=${() => o && this.copyToClipboard(i)} .scale=${this.visualScale} .text=${e.copyElevationLabel} title=${e.copyElevationLabel ?? c}></calcite-action>` : null}${this.hideSettingsButton ? null : n`<calcite-action .icon=${l.gear} .label=${e.selectElevationUnit} .scale=${this.visualScale} .text=${e.selectElevationUnit} title=${e.selectElevationUnit ?? c} ${p(this.onElevationPopoverTriggerMount)}></calcite-action>`}</calcite-action-group>`;
|
|
305
303
|
}
|
|
306
304
|
renderElevationSettingsDropdown() {
|
|
307
|
-
const { messages: e } = this, o = n`<arcgis-unit-radio-button-group @arcgisUnitSelectChange=${(
|
|
305
|
+
const { messages: e } = this, o = n`<arcgis-unit-radio-button-group @arcgisUnitSelectChange=${(i) => this.verticalUnit = i.detail} .options=${U} .name=${e.selectElevationUnit} .scale=${this.visualScale} .value=${this.verticalUnit}></arcgis-unit-radio-button-group>`;
|
|
308
306
|
return this.renderPopover({
|
|
309
307
|
content: o,
|
|
310
308
|
closeOnEnter: !0,
|
|
311
309
|
getPopoverOpenProperty: () => this.elevationPopoverOpen,
|
|
312
310
|
includeFooter: !1,
|
|
313
311
|
label: e.selectElevationUnit,
|
|
314
|
-
setPopoverOpenProperty: (
|
|
312
|
+
setPopoverOpenProperty: (i) => this.elevationPopoverOpen = i,
|
|
315
313
|
trigger: null,
|
|
316
314
|
triggerElement: this._elevationPopoverTrigger
|
|
317
315
|
});
|
|
318
316
|
}
|
|
319
317
|
renderFormatDropdown() {
|
|
320
|
-
const { messages: e } = this, o = n`<calcite-list .label=${e.addConversion} scale
|
|
321
|
-
const r = !!this.conversions.find((a) => a.format ===
|
|
322
|
-
return n`<calcite-list-item data-format=${
|
|
323
|
-
})}</calcite-list>`,
|
|
318
|
+
const { messages: e } = this, o = n`<calcite-list .label=${e.addConversion} .scale=${this.visualScale} selection-mode=multiple>${C(this.formats, (t) => t, (t) => {
|
|
319
|
+
const r = !!this.conversions.find((a) => a.format === t), s = this.getFormatDescription(t);
|
|
320
|
+
return n`<calcite-list-item data-format=${t.name ?? c} .description=${s} .disabled=${r && this.conversions.length === 1} .label=${t.label.toUpperCase()} @calciteListItemSelect=${this.toggleConversion} .selected=${r}></calcite-list-item>`;
|
|
321
|
+
})}</calcite-list>`, i = n`<calcite-button appearance=outline class="add-conversion-trigger" .iconStart=${l.plus} kind=neutral .label=${e.selectFormats} round .scale=${this.visualScale} ${p(this.onFormatPopoverTriggerMount)}>${e.selectFormats}</calcite-button>`;
|
|
324
322
|
return this.renderPopover({
|
|
325
323
|
content: o,
|
|
326
324
|
includeFooter: !0,
|
|
327
325
|
getPopoverOpenProperty: () => this.formatsPopoverOpen,
|
|
328
326
|
label: e.selectFormats,
|
|
329
|
-
setPopoverOpenProperty: (
|
|
330
|
-
trigger:
|
|
327
|
+
setPopoverOpenProperty: (t) => this.formatsPopoverOpen = t,
|
|
328
|
+
trigger: i,
|
|
331
329
|
triggerElement: this._formatsPopoverTrigger
|
|
332
330
|
});
|
|
333
331
|
}
|
|
334
|
-
renderPopover({ content: e,
|
|
335
|
-
const { messages:
|
|
336
|
-
return n`${
|
|
332
|
+
renderPopover({ content: e, class: o, closeOnEnter: i, heading: t, getPopoverOpenProperty: r, includeFooter: s, label: a, setPopoverOpenProperty: d, slot: u, trigger: x, triggerDisabled: $, triggerElement: f }) {
|
|
333
|
+
const { messages: _ } = this;
|
|
334
|
+
return n`${x}${f ? n`<calcite-popover auto-close class=${z(o)} .heading=${t} .headingLevel=${this.headingLevel} .label=${a} @calcitePopoverBeforeOpen=${() => {
|
|
337
335
|
d(!0);
|
|
338
|
-
}} @calcitePopoverClose=${(
|
|
339
|
-
d(!1),
|
|
340
|
-
}} @keydown=${(
|
|
341
|
-
|
|
342
|
-
}} .open=${
|
|
336
|
+
}} @calcitePopoverClose=${(h) => {
|
|
337
|
+
d(!1), h.stopPropagation();
|
|
338
|
+
}} @keydown=${(h) => {
|
|
339
|
+
i && (h.key === "Enter" || h.key === " ") && d(!1);
|
|
340
|
+
}} .open=${r()} .referenceElement=${f} .scale=${this.visualScale} slot=${u ?? c} .triggerDisabled=${$}>${e}${s ? n`<div class="popover-footer"><calcite-button appearance=solid class="popover-done-button" kind=brand @click=${() => d(!1)} .scale=${this.visualScale} width=full>${_.done}</calcite-button></div>` : null}</calcite-popover>` : null}`;
|
|
343
341
|
}
|
|
344
342
|
renderSettingsView() {
|
|
345
|
-
const { messages: e } = this, o = this.findSettingsFormat(),
|
|
346
|
-
if (!o || !
|
|
347
|
-
return n`<div class="settings"><calcite-label scale
|
|
348
|
-
const a = n`<calcite-action .icon=${l.refresh} .label=${e.defaultPattern} @click=${this.setDefaultPattern} scale
|
|
349
|
-
return n`<div class="settings"><calcite-label scale
|
|
343
|
+
const { messages: e } = this, o = this.findSettingsFormat(), i = this.getId("pattern-input"), t = this.getId("preview-coordinate"), r = o?.currentPattern, s = this.multipleConversionsDisabled ? this.renderSingleFormatDropdown() : null;
|
|
344
|
+
if (!o || !v(o))
|
|
345
|
+
return n`<div class="settings"><calcite-label .scale=${this.visualScale}>${e.format}${s ?? n`<calcite-notice class="no-display-properties-notice" .icon=${l.warning} open .scale=${this.visualScale}><div class="font-size-small" slot=message>${e.noDisplayProperties}</div></calcite-notice>`}</calcite-label></div>`;
|
|
346
|
+
const a = n`<calcite-action .icon=${l.refresh} .label=${e.defaultPattern} @click=${this.setDefaultPattern} .scale=${this.visualScale} .text=${e.defaultPattern} title=${e.defaultPattern ?? c}></calcite-action>`;
|
|
347
|
+
return n`<div class="settings"><calcite-label .scale=${this.visualScale}>${e.format}${s}</calcite-label><calcite-label .for=${i} .scale=${this.visualScale}>${e.display}<div class="settings-form-group-horizontal"><calcite-input aria-controls=${t ?? c} class="pattern-input" id=${i ?? c} @calciteInputInput=${this.updateCurrentPattern} .scale=${this.visualScale} type=text .value=${r}></calcite-input>${a}</div></calcite-label><calcite-label .scale=${this.visualScale}>${e.preview}<calcite-input read-only .scale=${this.visualScale} type=text .value=${this.previewConversion?.displayCoordinate ?? void 0}></calcite-input></calcite-label></div>`;
|
|
350
348
|
}
|
|
351
349
|
renderSingleFormatDropdown() {
|
|
352
350
|
const { messages: e } = this;
|
|
353
|
-
return n`<calcite-combobox data-testid=single-format-combobox .label=${e.selectFormat} @calciteComboboxChange=${this.handleFormatComboboxChange} scale
|
|
351
|
+
return n`<calcite-combobox data-testid=single-format-combobox .label=${e.selectFormat} @calciteComboboxChange=${this.handleFormatComboboxChange} .scale=${this.visualScale} selection-mode=single-persist>${this.formats?.map((o) => n`<calcite-combobox-item .description=${this.getFormatDescription(o)} .heading=${o.label.toUpperCase()} .selected=${this.conversions.at(0)?.format === o} .value=${o.name}></calcite-combobox-item>`)}</calcite-combobox>`;
|
|
354
352
|
}
|
|
355
353
|
}
|
|
356
|
-
|
|
354
|
+
y("arcgis-coordinate-conversion", R);
|
|
357
355
|
export {
|
|
358
|
-
|
|
356
|
+
R as ArcgisCoordinateConversion
|
|
359
357
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "@esri/calcite-components/components/calcite-panel";
|
|
2
2
|
import "@esri/calcite-components/components/calcite-alert";
|
|
3
|
-
import "@esri/calcite-components/components/calcite-
|
|
3
|
+
import "@esri/calcite-components/components/calcite-action-group";
|
|
4
4
|
import "@esri/calcite-components/components/calcite-action";
|
|
5
|
+
import "@esri/calcite-components/components/calcite-option";
|
|
5
6
|
import "@esri/calcite-components/components/calcite-list-item";
|
|
6
7
|
import "@esri/calcite-components/components/calcite-notice";
|
|
7
8
|
import "@esri/calcite-components/components/calcite-block";
|
|
@@ -101,6 +101,14 @@ export abstract class ArcgisFeatures extends LitElement {
|
|
|
101
101
|
* @since 4.34
|
|
102
102
|
*/
|
|
103
103
|
accessor defaultPopupTemplateEnabled: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* The heading currently displayed for the selected feature. This value resolves to the [selected feature item's heading](https://developers.arcgis.com/javascript/latest/references/core/popup/Features/#effectiveHeading) when available, otherwise it falls back to the component's [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#heading).
|
|
106
|
+
*
|
|
107
|
+
* @since 5.1
|
|
108
|
+
* @see [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#heading)
|
|
109
|
+
* @see [selectedFeature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#selectedFeature)
|
|
110
|
+
*/
|
|
111
|
+
get effectiveHeading(): string | undefined;
|
|
104
112
|
/**
|
|
105
113
|
* The number of [features](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#features) available in the component.
|
|
106
114
|
*
|
|
@@ -626,7 +634,7 @@ export abstract class ArcgisFeatures extends LitElement {
|
|
|
626
634
|
/** Emitted when the component's close button is clicked. */
|
|
627
635
|
readonly arcgisClose: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
628
636
|
/** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
|
|
629
|
-
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "active" | "collapsed" | "featureCount" | "featureMenuOpen" | "features" | "promises" | "selectedDrillInFeature" | "selectedFeature" | "selectedFeatureComponent" | "selectedFeatureIndex" | "state" | "open"; }>;
|
|
637
|
+
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "active" | "collapsed" | "effectiveHeading" | "featureCount" | "featureMenuOpen" | "features" | "promises" | "selectedDrillInFeature" | "selectedFeature" | "selectedFeatureComponent" | "selectedFeatureIndex" | "state" | "open"; }>;
|
|
630
638
|
/** Emitted when the component associated with a map or scene view is ready to be interacted with. */
|
|
631
639
|
readonly arcgisReady: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
632
640
|
/**
|