@arcgis/map-components 5.2.0-next.5 → 5.2.0-next.7
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/{32HC6PWY.js → 2EOQ5G2R.js} +1 -1
- package/dist/cdn/{Z5YGVWFI.js → 3AZCF2P5.js} +1 -1
- package/dist/cdn/{QEPCYJLX.js → 52XUYHPM.js} +1 -1
- package/dist/cdn/{WTL3FIGS.js → 55JA345T.js} +1 -1
- package/dist/cdn/{KUHPQGH3.js → 5T3MHTWU.js} +1 -1
- package/dist/cdn/5UUUR4LF.js +2 -0
- package/dist/cdn/ABPHGXQN.js +2 -0
- package/dist/cdn/{PNBNM2CX.js → BJF74GDX.js} +1 -1
- package/dist/cdn/CZXCSL3K.js +2 -0
- package/dist/cdn/{L4EHCDIJ.js → DITXUZMH.js} +1 -1
- package/dist/cdn/FGSOMLKL.js +2 -0
- package/dist/cdn/L34RL7Y3.js +2 -0
- package/dist/cdn/LM56QFP5.js +2 -0
- package/dist/cdn/{7DIC4O5E.js → NOHLNRB4.js} +1 -1
- package/dist/cdn/{MF5STJJO.js → RJM52R4G.js} +1 -1
- package/dist/cdn/W42XLSER.js +2 -0
- package/dist/cdn/WMH7TCIP.js +2 -0
- package/dist/cdn/{VNYFKVJ2.js → WQDUJLSY.js} +1 -1
- package/dist/cdn/{4XVCI45D.js → XF5VBSRX.js} +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/time-utils.js +14 -14
- package/dist/components/arcgis-daylight/customElement.d.ts +1 -1
- package/dist/components/arcgis-daylight/customElement.js +242 -203
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +14 -0
- package/dist/components/arcgis-elevation-profile/customElement.js +77 -75
- package/dist/components/arcgis-feature-table/customElement.d.ts +1 -0
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/TemplateItem.d.ts +33 -0
- package/dist/components/arcgis-feature-templates/customElement.d.ts +275 -0
- package/dist/components/arcgis-feature-templates/customElement.js +560 -0
- package/dist/components/arcgis-feature-templates/index.d.ts +1 -0
- package/dist/components/arcgis-feature-templates/index.js +13 -0
- package/dist/components/arcgis-features-next/customElement.d.ts +7 -1
- package/dist/components/arcgis-layer-list/customElement.d.ts +3 -0
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +319 -32
- package/dist/components/arcgis-layer-list-next/customElement.js +5 -1
- package/dist/components/arcgis-legend/customElement.js +6 -6
- package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-view/customElement.js +16 -16
- package/dist/components/arcgis-map/customElement.d.ts +47 -4
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +1 -1
- package/dist/components/arcgis-paste/customElement.js +27 -38
- package/dist/components/arcgis-paste/index.js +1 -1
- package/dist/components/arcgis-popup/customElement.d.ts +7 -1
- package/dist/components/arcgis-slider-scale-range/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-scale-range/customElement.js +65 -31
- package/dist/components/arcgis-template-image/customElement.d.ts +14 -0
- package/dist/components/arcgis-template-image/customElement.js +119 -0
- package/dist/components/arcgis-template-image/index.d.ts +1 -0
- package/dist/components/arcgis-template-image/index.js +1 -0
- package/dist/components/arcgis-version-management/customElement.d.ts +9 -1
- package/dist/components/arcgis-version-management/customElement.js +21 -20
- package/dist/components/arcgis-version-management/index.js +1 -0
- package/dist/components/arcgis-weather/customElement.js +96 -94
- 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/index.d.ts +14 -0
- package/dist/loader.js +3 -1
- package/dist/types/lumina.d.ts +15 -1
- package/dist/types/preact.d.ts +17 -1
- package/dist/types/react.d.ts +19 -1
- package/dist/types/stencil.d.ts +15 -1
- package/package.json +7 -7
- package/dist/cdn/AOC4VUP6.js +0 -2
- package/dist/cdn/IBTOXDST.js +0 -2
- package/dist/cdn/JFVZHHIX.js +0 -2
- package/dist/cdn/MHRXFE7S.js +0 -2
- package/dist/cdn/RAQVHNVI.js +0 -2
- package/dist/cdn/YJCBT5VK.js +0 -2
|
@@ -304,6 +304,20 @@ export abstract class ArcgisElevationProfile extends LitElement {
|
|
|
304
304
|
* @default false
|
|
305
305
|
*/
|
|
306
306
|
accessor hideChart: boolean;
|
|
307
|
+
/**
|
|
308
|
+
* If true, the elevation profile chart axis labels will be hidden.
|
|
309
|
+
*
|
|
310
|
+
* @default false
|
|
311
|
+
* @since 5.2
|
|
312
|
+
*/
|
|
313
|
+
accessor hideChartAxisLabels: boolean;
|
|
314
|
+
/**
|
|
315
|
+
* If true, the elevation profile chart grid lines will be hidden.
|
|
316
|
+
*
|
|
317
|
+
* @default false
|
|
318
|
+
* @since 5.2
|
|
319
|
+
*/
|
|
320
|
+
accessor hideChartGridLines: boolean;
|
|
307
321
|
/**
|
|
308
322
|
* If true, the clear button will be hidden.
|
|
309
323
|
*
|
|
@@ -15,15 +15,15 @@ import { g as f } from "../../chunks/globalCss.js";
|
|
|
15
15
|
import P from "@arcgis/core/analysis/ElevationProfileAnalysis.js";
|
|
16
16
|
import { property as a, subclass as z } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
17
17
|
import { A as E } from "../../chunks/AnalysisViewModel.js";
|
|
18
|
-
import { a as
|
|
18
|
+
import { a as A } from "../../chunks/maybe.js";
|
|
19
19
|
import { c as y, d as w } from "../../chunks/measurementUtils.js";
|
|
20
|
-
import { m as
|
|
21
|
-
const
|
|
22
|
-
async function
|
|
23
|
-
const r = await
|
|
24
|
-
return V(i), R(r) ? r.highlight(e) :
|
|
20
|
+
import { m as F } from "../../chunks/handle.js";
|
|
21
|
+
const L = S`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{--internal-chart-height: 180px;--internal-gap: var(--calcite-spacing-sm-plus);width:550px;isolation:isolate;position:relative;container-type:inline-size}.root{display:flex;flex-direction:column;width:100%;min-width:0;gap:var(--internal-gap)}.header{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;margin-bottom:calc(var(--internal-gap) * -1)}.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--calcite-spacing-xs)}.action-button{width:auto;min-height:32px}.main-container{display:flex;position:relative;flex-flow:column;width:100%;height:var(--internal-chart-height)}.chart-container{position:relative;width:100%;height:100%}.prompt-container{box-sizing:border-box;display:grid;place-content:center;padding-inline:var(--calcite-spacing-md);height:100%;text-align:center}.prompt-message{margin:0;width:100%}.spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity .15s ease-in-out;transition-delay:0;opacity:0;&.visible{transition-delay:50ms;opacity:1}&.small{inset-inline-start:0;inset-block-start:-24px;left:unset;transform:none;color:var(--calcite-color-brand)}}@container (max-width: 400px){.esri-widget--panel{height:auto}.actions{flex-direction:column}.action-button{align-self:stretch}}`;
|
|
22
|
+
async function I(t, e, i) {
|
|
23
|
+
const r = await T(t, e);
|
|
24
|
+
return V(i), R(r) ? r.highlight(e) : F();
|
|
25
25
|
}
|
|
26
|
-
async function
|
|
26
|
+
async function T(t, e) {
|
|
27
27
|
const i = e?.layer;
|
|
28
28
|
if (!(!i || i.type === "subtype-sublayer" || i.type === "sublayer" || i.type === "building-component"))
|
|
29
29
|
return await t.whenLayerView(i);
|
|
@@ -40,15 +40,15 @@ function Z({ geometry: t }) {
|
|
|
40
40
|
function j(t) {
|
|
41
41
|
return t?.samples?.some((e) => e.z != null) ?? !1;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function G(t) {
|
|
44
44
|
return t?.type === "polyline";
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
for (var
|
|
48
|
-
(d = t[l]) && (
|
|
49
|
-
return r &&
|
|
46
|
+
var q = Object.defineProperty, N = Object.getOwnPropertyDescriptor, o = (t, e, i, r) => {
|
|
47
|
+
for (var s = r > 1 ? void 0 : r ? N(e, i) : e, l = t.length - 1, d; l >= 0; l--)
|
|
48
|
+
(d = t[l]) && (s = (r ? d(e, i, s) : d(s)) || s);
|
|
49
|
+
return r && s && q(e, i, s), s;
|
|
50
50
|
};
|
|
51
|
-
let
|
|
51
|
+
let n = class extends E {
|
|
52
52
|
constructor() {
|
|
53
53
|
super(...arguments), this.highlightDisabled = !1, this.uniformChartScaling = !1, this.shouldForceInteractive = !1, this.supportedViewType = "both", this.unsupportedErrorMessage = "";
|
|
54
54
|
}
|
|
@@ -62,7 +62,7 @@ let s = class extends E {
|
|
|
62
62
|
if (this.featureIsSelected)
|
|
63
63
|
return !1;
|
|
64
64
|
const { geometry: t } = this.analysis;
|
|
65
|
-
return
|
|
65
|
+
return G(t) && t.paths.length > 0 && t.paths[0].length > 2;
|
|
66
66
|
}
|
|
67
67
|
get effectiveDisplayUnits() {
|
|
68
68
|
return this.analysisView?.effectiveDisplayUnits;
|
|
@@ -187,13 +187,13 @@ let s = class extends E {
|
|
|
187
187
|
({ selectedFeature: t, profiles: e }, i) => {
|
|
188
188
|
this._highlightSelectedFeature(this.highlightDisabled ? void 0 : t), this.analysis.viewOptions.geometryVisualizationVisible = !this.highlightDisabled && t == null;
|
|
189
189
|
const r = i?.selectedFeature;
|
|
190
|
-
e.forEach((
|
|
191
|
-
switch (
|
|
190
|
+
e.forEach((s) => {
|
|
191
|
+
switch (s.type) {
|
|
192
192
|
case "scene":
|
|
193
|
-
this._excludeSelectedFeatureFromProfile(
|
|
193
|
+
this._excludeSelectedFeatureFromProfile(s, t, r);
|
|
194
194
|
break;
|
|
195
195
|
case "input":
|
|
196
|
-
|
|
196
|
+
s.chartOptions.lineVisible = t != null, s.viewOptions.lineVisible = t != null;
|
|
197
197
|
break;
|
|
198
198
|
}
|
|
199
199
|
});
|
|
@@ -236,11 +236,11 @@ let s = class extends E {
|
|
|
236
236
|
this._removeSelectionHighlight();
|
|
237
237
|
const e = this.view;
|
|
238
238
|
!e || !t || (this._selectionHighlightTask = x(
|
|
239
|
-
async (i) => await
|
|
239
|
+
async (i) => await I(e, t, { signal: i })
|
|
240
240
|
));
|
|
241
241
|
}
|
|
242
242
|
_removeSelectionHighlight() {
|
|
243
|
-
this._selectionHighlightTask?.value?.remove(), this._selectionHighlightTask =
|
|
243
|
+
this._selectionHighlightTask?.value?.remove(), this._selectionHighlightTask = A(this._selectionHighlightTask);
|
|
244
244
|
}
|
|
245
245
|
_excludeSelectedFeatureFromProfile(t, e, i) {
|
|
246
246
|
const r = new Set(t.exclude ?? []);
|
|
@@ -250,105 +250,105 @@ let s = class extends E {
|
|
|
250
250
|
};
|
|
251
251
|
o([
|
|
252
252
|
a()
|
|
253
|
-
],
|
|
253
|
+
], n.prototype, "_userDistanceUnit", 2);
|
|
254
254
|
o([
|
|
255
255
|
a()
|
|
256
|
-
],
|
|
256
|
+
], n.prototype, "_userDistanceUnitOptions", 2);
|
|
257
257
|
o([
|
|
258
258
|
a()
|
|
259
|
-
],
|
|
259
|
+
], n.prototype, "_userElevationUnit", 2);
|
|
260
260
|
o([
|
|
261
261
|
a()
|
|
262
|
-
],
|
|
262
|
+
], n.prototype, "_userElevationUnitOptions", 2);
|
|
263
263
|
o([
|
|
264
264
|
a()
|
|
265
|
-
],
|
|
265
|
+
], n.prototype, "_selectingPromise", 2);
|
|
266
266
|
o([
|
|
267
267
|
a()
|
|
268
|
-
],
|
|
268
|
+
], n.prototype, "_selectedFeature", 2);
|
|
269
269
|
o([
|
|
270
270
|
a()
|
|
271
|
-
],
|
|
271
|
+
], n.prototype, "_selectionHighlightTask", 2);
|
|
272
272
|
o([
|
|
273
273
|
a()
|
|
274
|
-
],
|
|
274
|
+
], n.prototype, "_hasSamples", 1);
|
|
275
275
|
o([
|
|
276
276
|
a()
|
|
277
|
-
],
|
|
277
|
+
], n.prototype, "doneButtonAvailable", 1);
|
|
278
278
|
o([
|
|
279
279
|
a({ readOnly: !0 })
|
|
280
|
-
],
|
|
280
|
+
], n.prototype, "effectiveDisplayUnits", 1);
|
|
281
281
|
o([
|
|
282
282
|
a({ readOnly: !0 })
|
|
283
|
-
],
|
|
283
|
+
], n.prototype, "errorState", 1);
|
|
284
284
|
o([
|
|
285
285
|
a()
|
|
286
|
-
],
|
|
286
|
+
], n.prototype, "feature", 1);
|
|
287
287
|
o([
|
|
288
288
|
a()
|
|
289
|
-
],
|
|
289
|
+
], n.prototype, "featureIsSelected", 1);
|
|
290
290
|
o([
|
|
291
291
|
a({ readOnly: !0 })
|
|
292
|
-
],
|
|
292
|
+
], n.prototype, "hasVertices", 1);
|
|
293
293
|
o([
|
|
294
294
|
a()
|
|
295
|
-
],
|
|
295
|
+
], n.prototype, "highlightDisabled", 2);
|
|
296
296
|
o([
|
|
297
297
|
a()
|
|
298
|
-
],
|
|
298
|
+
], n.prototype, "indicatorRelativePosition", 1);
|
|
299
299
|
o([
|
|
300
300
|
a()
|
|
301
|
-
],
|
|
301
|
+
], n.prototype, "geometry", 1);
|
|
302
302
|
o([
|
|
303
303
|
a()
|
|
304
|
-
],
|
|
304
|
+
], n.prototype, "elevationInfo", 1);
|
|
305
305
|
o([
|
|
306
306
|
a()
|
|
307
|
-
],
|
|
307
|
+
], n.prototype, "profiles", 1);
|
|
308
308
|
o([
|
|
309
309
|
a({ readOnly: !0 })
|
|
310
|
-
],
|
|
310
|
+
], n.prototype, "progress", 1);
|
|
311
311
|
o([
|
|
312
312
|
a({ readOnly: !0 })
|
|
313
|
-
],
|
|
313
|
+
], n.prototype, "results", 1);
|
|
314
314
|
o([
|
|
315
315
|
a({ readOnly: !0 })
|
|
316
|
-
],
|
|
316
|
+
], n.prototype, "selectButtonAvailable", 1);
|
|
317
317
|
o([
|
|
318
318
|
a({ readOnly: !0 })
|
|
319
|
-
],
|
|
319
|
+
], n.prototype, "state", 1);
|
|
320
320
|
o([
|
|
321
321
|
a()
|
|
322
|
-
],
|
|
322
|
+
], n.prototype, "uniformChartScaling", 2);
|
|
323
323
|
o([
|
|
324
324
|
a()
|
|
325
|
-
],
|
|
325
|
+
], n.prototype, "distanceUnit", 1);
|
|
326
326
|
o([
|
|
327
327
|
a()
|
|
328
|
-
],
|
|
328
|
+
], n.prototype, "distanceUnitOptions", 1);
|
|
329
329
|
o([
|
|
330
330
|
a()
|
|
331
|
-
],
|
|
331
|
+
], n.prototype, "elevationUnit", 1);
|
|
332
332
|
o([
|
|
333
333
|
a()
|
|
334
|
-
],
|
|
335
|
-
|
|
334
|
+
], n.prototype, "elevationUnitOptions", 1);
|
|
335
|
+
n = o([
|
|
336
336
|
z("components.elevation-profile.ElevationProfileViewModel")
|
|
337
|
-
],
|
|
337
|
+
], n);
|
|
338
338
|
function b(t) {
|
|
339
339
|
const e = t?.filter((i) => w.includes(i));
|
|
340
340
|
return e && e.length > 0 ? e : w.slice();
|
|
341
341
|
}
|
|
342
|
-
const J = $(
|
|
342
|
+
const J = $(n);
|
|
343
343
|
class K extends M {
|
|
344
344
|
constructor() {
|
|
345
|
-
super(...arguments), this.viewModel = J(this), this._messages = D(), this._hideZoomOutButton = !0, this._hasSettingsStartContent = !1, this._hasSettingsEndContent = !1, this.analysis = this.viewModel.analysis, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.effectiveDisplayUnits = this.viewModel.effectiveDisplayUnits, this.feature = this.viewModel.feature, this.hideChart = !1, this.hideClearButton = !1, this.hideLegend = !1, this.hideSelectButton = !1, this.hideSettingsButton = !1, this.hideStartButton = !1, this.hideUniformChartScalingToggle = !1, this.hideDistanceDisplayUnitSelect = !1, this.hideElevationDisplayUnitSelect = !1, this.hideVisualization = this.viewModel.hideVisualization, this.highlightDisabled = this.viewModel.highlightDisabled, this.icon = "altitude", this.indicatorRelativePosition = this.viewModel.indicatorRelativePosition, this.geometry = this.viewModel.geometry, this.elevationInfo = this.viewModel.elevationInfo, this.profiles = this.viewModel.profiles, this.progress = this.viewModel.progress, this.state = this.viewModel.state, this.uniformChartScaling = this.viewModel.uniformChartScaling, this.distanceUnit = this.viewModel.distanceUnit, this.distanceUnitOptions = this.viewModel.distanceUnitOptions, this.elevationUnit = this.viewModel.elevationUnit, this.elevationUnitOptions = this.viewModel.elevationUnitOptions, this.arcgisPropertyChange = O()("analysis", "effectiveDisplayUnits", "elevationInfo", "feature", "geometry", "indicatorRelativePosition", "progress", "state"), this.arcgisReady = B();
|
|
345
|
+
super(...arguments), this.viewModel = J(this), this._messages = D(), this._hideZoomOutButton = !0, this._hasSettingsStartContent = !1, this._hasSettingsEndContent = !1, this.analysis = this.viewModel.analysis, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.effectiveDisplayUnits = this.viewModel.effectiveDisplayUnits, this.feature = this.viewModel.feature, this.hideChart = !1, this.hideChartGridLines = !1, this.hideChartAxisLabels = !1, this.hideClearButton = !1, this.hideLegend = !1, this.hideSelectButton = !1, this.hideSettingsButton = !1, this.hideStartButton = !1, this.hideUniformChartScalingToggle = !1, this.hideDistanceDisplayUnitSelect = !1, this.hideElevationDisplayUnitSelect = !1, this.hideVisualization = this.viewModel.hideVisualization, this.highlightDisabled = this.viewModel.highlightDisabled, this.icon = "altitude", this.indicatorRelativePosition = this.viewModel.indicatorRelativePosition, this.geometry = this.viewModel.geometry, this.elevationInfo = this.viewModel.elevationInfo, this.profiles = this.viewModel.profiles, this.progress = this.viewModel.progress, this.state = this.viewModel.state, this.uniformChartScaling = this.viewModel.uniformChartScaling, this.distanceUnit = this.viewModel.distanceUnit, this.distanceUnitOptions = this.viewModel.distanceUnitOptions, this.elevationUnit = this.viewModel.elevationUnit, this.elevationUnitOptions = this.viewModel.elevationUnitOptions, this.arcgisPropertyChange = O()("analysis", "effectiveDisplayUnits", "elevationInfo", "feature", "geometry", "indicatorRelativePosition", "progress", "state"), this.arcgisReady = B();
|
|
346
346
|
}
|
|
347
347
|
static {
|
|
348
|
-
this.properties = { _hideZoomOutButton: 16, _chartContainer: 16, _hasSettingsStartContent: 16, _hasSettingsEndContent: 16, analysis: 0, view: 0, autoDestroyDisabled: 5, effectiveDisplayUnits: 32, feature: 0, hideChart: 5, hideClearButton: 5, hideLegend: 5, hideSelectButton: 5, hideSettingsButton: 5, hideStartButton: 5, hideUniformChartScalingToggle: 5, hideDistanceDisplayUnitSelect: 5, hideElevationDisplayUnitSelect: 5, hideVisualization: 5, highlightDisabled: 5, icon: 3, indicatorRelativePosition: 40, geometry: 0, elevationInfo: 0, label: 1, messageOverrides: 0, referenceElement: 1, profiles: 0, progress: 40, state: 32, uniformChartScaling: 5, distanceUnit: 1, distanceUnitOptions: 0, elevationUnit: 1, elevationUnitOptions: 0 };
|
|
348
|
+
this.properties = { _hideZoomOutButton: 16, _chartContainer: 16, _hasSettingsStartContent: 16, _hasSettingsEndContent: 16, analysis: 0, view: 0, autoDestroyDisabled: 5, effectiveDisplayUnits: 32, feature: 0, hideChart: 5, hideChartGridLines: 5, hideChartAxisLabels: 5, hideClearButton: 5, hideLegend: 5, hideSelectButton: 5, hideSettingsButton: 5, hideStartButton: 5, hideUniformChartScalingToggle: 5, hideDistanceDisplayUnitSelect: 5, hideElevationDisplayUnitSelect: 5, hideVisualization: 5, highlightDisabled: 5, icon: 3, indicatorRelativePosition: 40, geometry: 0, elevationInfo: 0, label: 1, messageOverrides: 0, referenceElement: 1, profiles: 0, progress: 40, state: 32, uniformChartScaling: 5, distanceUnit: 1, distanceUnitOptions: 0, elevationUnit: 1, elevationUnitOptions: 0 };
|
|
349
349
|
}
|
|
350
350
|
static {
|
|
351
|
-
this.styles =
|
|
351
|
+
this.styles = L;
|
|
352
352
|
}
|
|
353
353
|
get _selectButtonVisible() {
|
|
354
354
|
return !this.hideSelectButton && this.viewModel.selectButtonAvailable;
|
|
@@ -356,6 +356,9 @@ class K extends M {
|
|
|
356
356
|
get _chart() {
|
|
357
357
|
return this._chartInitializationTask?.value;
|
|
358
358
|
}
|
|
359
|
+
async clear() {
|
|
360
|
+
this.viewModel.clear();
|
|
361
|
+
}
|
|
359
362
|
async destroy() {
|
|
360
363
|
await this.manager.destroy();
|
|
361
364
|
}
|
|
@@ -368,9 +371,6 @@ class K extends M {
|
|
|
368
371
|
async stop() {
|
|
369
372
|
this.viewModel.stop();
|
|
370
373
|
}
|
|
371
|
-
async clear() {
|
|
372
|
-
this.viewModel.clear();
|
|
373
|
-
}
|
|
374
374
|
load() {
|
|
375
375
|
this.manager.onLifecycle(() => [
|
|
376
376
|
p(() => ({ container: this._chartContainer }), ({ container: e }) => {
|
|
@@ -381,10 +381,10 @@ class K extends M {
|
|
|
381
381
|
messages: this._messages,
|
|
382
382
|
signal: i,
|
|
383
383
|
uniformScaling: this.viewModel.uniformChartScaling,
|
|
384
|
-
onRangeChange: (r,
|
|
385
|
-
this._hideZoomOutButton = r === 1 &&
|
|
384
|
+
onRangeChange: (r, s) => {
|
|
385
|
+
this._hideZoomOutButton = r === 1 && s === 1;
|
|
386
386
|
},
|
|
387
|
-
onCursorPositionChange: (r,
|
|
387
|
+
onCursorPositionChange: (r, s) => {
|
|
388
388
|
const { analysisView: l } = this.viewModel;
|
|
389
389
|
l && (l.indicatorRelativePosition = r);
|
|
390
390
|
}
|
|
@@ -394,9 +394,11 @@ class K extends M {
|
|
|
394
394
|
chart: this._chart,
|
|
395
395
|
view: this.viewModel.view,
|
|
396
396
|
analysisView: this.viewModel.analysisView,
|
|
397
|
-
uniformScaling: this.viewModel.uniformChartScaling
|
|
398
|
-
|
|
399
|
-
|
|
397
|
+
uniformScaling: this.viewModel.uniformChartScaling,
|
|
398
|
+
hideGridLines: this.hideChartGridLines,
|
|
399
|
+
hideLabels: this.hideChartAxisLabels
|
|
400
|
+
}), ({ chart: e, view: i, analysisView: r, uniformScaling: s }) => {
|
|
401
|
+
e && (e.view = i, e.analysisView = r, e.uniformScaling = s, e.hideGridLines = this.hideChartGridLines, e.hideAxisLabels = this.hideChartAxisLabels);
|
|
400
402
|
}, { sync: !0, initial: !0 }),
|
|
401
403
|
// Make sure to destroy the chart when the component is disconnected.
|
|
402
404
|
{ remove: () => this._destroyChart() }
|
|
@@ -450,7 +452,7 @@ class K extends M {
|
|
|
450
452
|
}
|
|
451
453
|
}
|
|
452
454
|
_renderContentForReadyState() {
|
|
453
|
-
const { _messages: e, hideSelectButton: i, hideStartButton: r } = this, { selectButtonAvailable:
|
|
455
|
+
const { _messages: e, hideSelectButton: i, hideStartButton: r } = this, { selectButtonAvailable: s } = this.viewModel, l = !i && s;
|
|
454
456
|
let d;
|
|
455
457
|
return !r && l ? d = e.readyPrompt : r ? l ? d = e.readyPromptSelectOnly : d = e.errors?.noProfile : d = e.readyPromptCreateOnly, this._renderContent({ prompt: d, chart: !1, actions: g });
|
|
456
458
|
}
|
|
@@ -478,8 +480,8 @@ class K extends M {
|
|
|
478
480
|
prompt: l
|
|
479
481
|
});
|
|
480
482
|
}
|
|
481
|
-
const
|
|
482
|
-
return
|
|
483
|
+
const s = this._getErrorMessage();
|
|
484
|
+
return s ? this._renderContent({ chart: !1, actions: r, prompt: s }) : this._renderContent({ chart: !0, actions: r });
|
|
483
485
|
}
|
|
484
486
|
_renderContentForSelectedState() {
|
|
485
487
|
const e = this._getErrorMessage();
|
|
@@ -536,11 +538,11 @@ class K extends M {
|
|
|
536
538
|
}}></slot></arcgis-elevation-profile-settings>`;
|
|
537
539
|
}
|
|
538
540
|
_renderActions({ actions: e }) {
|
|
539
|
-
const i = this._messages, r = e.map((
|
|
540
|
-
switch (
|
|
541
|
+
const i = this._messages, r = e.map((s) => {
|
|
542
|
+
switch (s.type) {
|
|
541
543
|
case "sketch":
|
|
542
544
|
return h({ hidden: this.hideStartButton, children: this._renderAction({
|
|
543
|
-
action:
|
|
545
|
+
action: s,
|
|
544
546
|
label: i.sketchButtonLabel,
|
|
545
547
|
primary: !0,
|
|
546
548
|
onClick: () => {
|
|
@@ -549,21 +551,21 @@ class K extends M {
|
|
|
549
551
|
}) });
|
|
550
552
|
case "sketch-cancel":
|
|
551
553
|
return h({ hidden: this.hideStartButton, children: this._renderAction({
|
|
552
|
-
action:
|
|
554
|
+
action: s,
|
|
553
555
|
label: i.cancelButtonLabel,
|
|
554
556
|
primary: !1,
|
|
555
557
|
onClick: this._onCancelButtonClick
|
|
556
558
|
}) });
|
|
557
559
|
case "sketch-done":
|
|
558
560
|
return h({ hidden: this.hideStartButton, children: this._renderAction({
|
|
559
|
-
action:
|
|
561
|
+
action: s,
|
|
560
562
|
label: i.doneButtonLabel,
|
|
561
563
|
primary: !0,
|
|
562
564
|
onClick: this._onDoneButtonClick
|
|
563
565
|
}) });
|
|
564
566
|
case "select":
|
|
565
567
|
return h({ hidden: !this._selectButtonVisible, children: this._renderAction({
|
|
566
|
-
action:
|
|
568
|
+
action: s,
|
|
567
569
|
label: i.selectButtonLabel,
|
|
568
570
|
primary: !1,
|
|
569
571
|
onClick: () => {
|
|
@@ -572,7 +574,7 @@ class K extends M {
|
|
|
572
574
|
}) });
|
|
573
575
|
case "select-cancel":
|
|
574
576
|
return h({ hidden: !this._selectButtonVisible, children: this._renderAction({
|
|
575
|
-
action:
|
|
577
|
+
action: s,
|
|
576
578
|
label: i.cancelButtonLabel,
|
|
577
579
|
primary: !1,
|
|
578
580
|
onClick: this._onCancelButtonClick
|
|
@@ -583,8 +585,8 @@ class K extends M {
|
|
|
583
585
|
}).filter(Boolean);
|
|
584
586
|
return r.length ? c`<footer class="actions">${r}</footer>` : void 0;
|
|
585
587
|
}
|
|
586
|
-
_renderAction({ action: e, label: i, onClick: r, primary:
|
|
587
|
-
return c`<calcite-button .appearance=${
|
|
588
|
+
_renderAction({ action: e, label: i, onClick: r, primary: s }) {
|
|
589
|
+
return c`<calcite-button .appearance=${s ? "solid" : "outline-fill"} class="action-button" .disabled=${e.disabled || void 0} @click=${r}>${i}</calcite-button>`;
|
|
588
590
|
}
|
|
589
591
|
}
|
|
590
592
|
function h(t) {
|
|
@@ -596,6 +596,7 @@ export abstract class ArcgisFeatureTable extends LitElement {
|
|
|
596
596
|
* Use with `layerUrl` when the service contains multiple layers and you want to specify which layer to use.
|
|
597
597
|
*
|
|
598
598
|
* @since 5.1
|
|
599
|
+
* @internal
|
|
599
600
|
*/
|
|
600
601
|
accessor layerId: number | undefined;
|
|
601
602
|
/**
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type Accessor from "@arcgis/core/core/Accessor.js";
|
|
2
|
+
import type SharedTemplateMetadata from "@arcgis/core/editing/sharedTemplates/SharedTemplateMetadata.js";
|
|
3
|
+
import type FeatureTemplate from "@arcgis/core/layers/support/FeatureTemplate.js";
|
|
4
|
+
import type { LayerWithFeatureTemplatesUnion } from "@arcgis/core/layers/types.js";
|
|
5
|
+
|
|
6
|
+
export interface TemplateItemProperties extends Partial<Pick<TemplateItem, "layer" | "template" | "thumbnail">> {}
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The item displayed within the FeatureTemplates component.
|
|
10
|
+
*
|
|
11
|
+
* @since 5.1
|
|
12
|
+
*/
|
|
13
|
+
export default class TemplateItem extends Accessor {
|
|
14
|
+
constructor(properties?: TemplateItemProperties);
|
|
15
|
+
/**
|
|
16
|
+
* The description that is displayed for the template item.
|
|
17
|
+
* This is similar to the description provided in layers/support/FeatureTemplate#description.
|
|
18
|
+
*/
|
|
19
|
+
get description(): string;
|
|
20
|
+
get id(): string;
|
|
21
|
+
/** The label that is displayed for the template item. */
|
|
22
|
+
get label(): string;
|
|
23
|
+
/** The layer associated with the template item. */
|
|
24
|
+
accessor layer: LayerWithFeatureTemplatesUnion;
|
|
25
|
+
get supportsUpload(): boolean;
|
|
26
|
+
/** The associated FeatureTemplate for the item. */
|
|
27
|
+
accessor template: FeatureTemplate | SharedTemplateMetadata;
|
|
28
|
+
/**
|
|
29
|
+
* An object used to create a thumbnail image that represents a feature type in the feature template.
|
|
30
|
+
* This is similar to layers/support/FeatureTemplate#thumbnail.
|
|
31
|
+
*/
|
|
32
|
+
accessor thumbnail: HTMLElement | undefined;
|
|
33
|
+
}
|