@arcgis/map-components 5.2.0-next.148 → 5.2.0-next.149
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/2SNOYPTJ.js +2 -0
- package/dist/cdn/{QOQRNYM5.js → 6YP2FZDY.js} +1 -1
- package/dist/cdn/{7UWE25UH.js → BOJOJ5VV.js} +1 -1
- package/dist/cdn/J7YDON4X.js +2 -0
- package/dist/cdn/KVN3M4C6.js +2 -0
- package/dist/cdn/{MACS56SF.js → X3DYJCL3.js} +1 -1
- package/dist/cdn/ZPWEX7I6.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +120 -106
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +3 -3
- package/dist/components/arcgis-elevation-profile/customElement.js +93 -89
- package/dist/components/arcgis-features/customElement.d.ts +1 -1
- package/dist/components/arcgis-features-next/customElement.d.ts +2 -2
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-link-chart/customElement.d.ts +20 -10
- package/dist/components/arcgis-link-chart/customElement.js +5 -5
- package/dist/components/arcgis-map/customElement.d.ts +20 -10
- package/dist/components/arcgis-map/customElement.js +9 -9
- package/dist/components/arcgis-popup/customElement.d.ts +2 -2
- package/dist/components/arcgis-popup/customElement.js +7 -7
- package/dist/components/arcgis-scene/customElement.d.ts +20 -10
- package/dist/components/arcgis-scene/customElement.js +9 -9
- package/dist/components/arcgis-table-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-video/customElement.js +6 -6
- 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 +3 -3
- package/dist/types/preact.d.ts +3 -3
- package/dist/types/react.d.ts +3 -3
- package/dist/types/stencil.d.ts +3 -3
- package/package.json +6 -6
- package/dist/cdn/63FA3UEL.js +0 -2
- package/dist/cdn/AENNGCAE.js +0 -2
- package/dist/cdn/IETZFE3P.js +0 -2
- package/dist/cdn/NBDQBLRI.js +0 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as C } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as S, html as
|
|
3
|
+
import { css as S, html as d } from "lit";
|
|
4
4
|
import { ref as U } from "lit/directives/ref.js";
|
|
5
5
|
import { createChart as k } from "@arcgis/core/applications/Components/analysisUtils.js";
|
|
6
6
|
import { signal as M } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
7
7
|
import { ignoreAbortErrors as v } from "@arcgis/core/core/promiseUtils.js";
|
|
8
|
-
import { watch as
|
|
8
|
+
import { watch as p } from "@arcgis/core/core/reactiveUtils.js";
|
|
9
9
|
import { LitElement as B, createEvent as O, nothing as u, safeClassMap as m } from "@arcgis/lumina";
|
|
10
10
|
import { usePropertyChange as D } from "@arcgis/lumina/controllers";
|
|
11
11
|
import { slotChangeHasContent as _ } from "@arcgis/toolkit/dom/slots";
|
|
@@ -21,8 +21,8 @@ import { c as y, d as w } from "../../chunks/measurementUtils.js";
|
|
|
21
21
|
import { m as L } from "../../chunks/handle.js";
|
|
22
22
|
const I = 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}}`;
|
|
23
23
|
async function R(t, e, i) {
|
|
24
|
-
const
|
|
25
|
-
return V(i), H(
|
|
24
|
+
const s = await T(t, e);
|
|
25
|
+
return V(i), H(s) ? s.highlight(e) : L();
|
|
26
26
|
}
|
|
27
27
|
async function T(t, e) {
|
|
28
28
|
const i = e?.layer;
|
|
@@ -44,12 +44,12 @@ function G(t) {
|
|
|
44
44
|
function q(t) {
|
|
45
45
|
return t?.type === "polyline";
|
|
46
46
|
}
|
|
47
|
-
var N = Object.defineProperty, J = Object.getOwnPropertyDescriptor, o = (t, e, i,
|
|
48
|
-
for (var n =
|
|
49
|
-
(
|
|
50
|
-
return
|
|
47
|
+
var N = Object.defineProperty, J = Object.getOwnPropertyDescriptor, o = (t, e, i, s) => {
|
|
48
|
+
for (var n = s > 1 ? void 0 : s ? J(e, i) : e, l = t.length - 1, c; l >= 0; l--)
|
|
49
|
+
(c = t[l]) && (n = (s ? c(e, i, n) : c(n)) || n);
|
|
50
|
+
return s && n && N(e, i, n), n;
|
|
51
51
|
};
|
|
52
|
-
let
|
|
52
|
+
let r = class extends A {
|
|
53
53
|
constructor() {
|
|
54
54
|
super(...arguments), this._resettingUnits = !1, this.highlightDisabled = !1, this.uniformChartScaling = !1, this.shouldForceInteractive = !1, this.supportedViewType = "both", this.unsupportedErrorMessage = "";
|
|
55
55
|
}
|
|
@@ -185,7 +185,7 @@ let s = class extends A {
|
|
|
185
185
|
}
|
|
186
186
|
initialize() {
|
|
187
187
|
this.addHandles([
|
|
188
|
-
|
|
188
|
+
p(
|
|
189
189
|
() => ({
|
|
190
190
|
analysis: this.analysis,
|
|
191
191
|
unitDistance: this._userDistanceUnit,
|
|
@@ -196,18 +196,18 @@ let s = class extends A {
|
|
|
196
196
|
},
|
|
197
197
|
{ sync: !0, initial: !0 }
|
|
198
198
|
),
|
|
199
|
-
|
|
199
|
+
p(
|
|
200
200
|
() => ({
|
|
201
201
|
selectedFeature: this.feature,
|
|
202
202
|
profiles: this.analysis.profiles.toArray()
|
|
203
203
|
}),
|
|
204
204
|
({ selectedFeature: t, profiles: e }, i) => {
|
|
205
205
|
this._highlightSelectedFeature(this.highlightDisabled ? void 0 : t), this.analysis.viewOptions.geometryVisualizationVisible = !this.highlightDisabled && t == null;
|
|
206
|
-
const
|
|
206
|
+
const s = i?.selectedFeature;
|
|
207
207
|
e.forEach((n) => {
|
|
208
208
|
switch (n.type) {
|
|
209
209
|
case "scene":
|
|
210
|
-
this._excludeSelectedFeatureFromProfile(n, t,
|
|
210
|
+
this._excludeSelectedFeatureFromProfile(n, t, s);
|
|
211
211
|
break;
|
|
212
212
|
case "input":
|
|
213
213
|
n.chartOptions.lineVisible = t != null, n.viewOptions.lineVisible = t != null;
|
|
@@ -231,8 +231,8 @@ let s = class extends A {
|
|
|
231
231
|
this.clear();
|
|
232
232
|
const e = super.start({
|
|
233
233
|
operation: async (i) => {
|
|
234
|
-
const
|
|
235
|
-
i?.signal?.aborted || (t.interactive = !1, this.feature =
|
|
234
|
+
const s = await t.pickFeature(i);
|
|
235
|
+
i?.signal?.aborted || (t.interactive = !1, this.feature = s.feature);
|
|
236
236
|
},
|
|
237
237
|
clear: !1
|
|
238
238
|
});
|
|
@@ -264,115 +264,115 @@ let s = class extends A {
|
|
|
264
264
|
this._selectionHighlightTask?.value?.remove(), this._selectionHighlightTask = F(this._selectionHighlightTask);
|
|
265
265
|
}
|
|
266
266
|
_excludeSelectedFeatureFromProfile(t, e, i) {
|
|
267
|
-
const
|
|
268
|
-
i &&
|
|
267
|
+
const s = new Set(t.exclude ?? []);
|
|
268
|
+
i && s.delete(i), e && s.add(e), t.exclude = Array.from(s);
|
|
269
269
|
}
|
|
270
270
|
//#endregion
|
|
271
271
|
};
|
|
272
272
|
o([
|
|
273
273
|
a()
|
|
274
|
-
],
|
|
274
|
+
], r.prototype, "_userDistanceUnit", 2);
|
|
275
275
|
o([
|
|
276
276
|
a()
|
|
277
|
-
],
|
|
277
|
+
], r.prototype, "_userDistanceUnitOptions", 2);
|
|
278
278
|
o([
|
|
279
279
|
a()
|
|
280
|
-
],
|
|
280
|
+
], r.prototype, "_userElevationUnit", 2);
|
|
281
281
|
o([
|
|
282
282
|
a()
|
|
283
|
-
],
|
|
283
|
+
], r.prototype, "_userElevationUnitOptions", 2);
|
|
284
284
|
o([
|
|
285
285
|
a()
|
|
286
|
-
],
|
|
286
|
+
], r.prototype, "_selectingPromise", 2);
|
|
287
287
|
o([
|
|
288
288
|
a()
|
|
289
|
-
],
|
|
289
|
+
], r.prototype, "_selectedFeature", 2);
|
|
290
290
|
o([
|
|
291
291
|
a()
|
|
292
|
-
],
|
|
292
|
+
], r.prototype, "_selectionHighlightTask", 2);
|
|
293
293
|
o([
|
|
294
294
|
a()
|
|
295
|
-
],
|
|
295
|
+
], r.prototype, "_hasSamples", 1);
|
|
296
296
|
o([
|
|
297
297
|
a()
|
|
298
|
-
],
|
|
298
|
+
], r.prototype, "doneButtonAvailable", 1);
|
|
299
299
|
o([
|
|
300
300
|
a({ readOnly: !0 })
|
|
301
|
-
],
|
|
301
|
+
], r.prototype, "effectiveDisplayUnits", 1);
|
|
302
302
|
o([
|
|
303
303
|
a({ readOnly: !0 })
|
|
304
|
-
],
|
|
304
|
+
], r.prototype, "errorState", 1);
|
|
305
305
|
o([
|
|
306
306
|
a()
|
|
307
|
-
],
|
|
307
|
+
], r.prototype, "feature", 1);
|
|
308
308
|
o([
|
|
309
309
|
a()
|
|
310
|
-
],
|
|
310
|
+
], r.prototype, "featureIsSelected", 1);
|
|
311
311
|
o([
|
|
312
312
|
a({ readOnly: !0 })
|
|
313
|
-
],
|
|
313
|
+
], r.prototype, "hasVertices", 1);
|
|
314
314
|
o([
|
|
315
315
|
a()
|
|
316
|
-
],
|
|
316
|
+
], r.prototype, "highlightDisabled", 2);
|
|
317
317
|
o([
|
|
318
318
|
a()
|
|
319
|
-
],
|
|
319
|
+
], r.prototype, "indicatorRelativePosition", 1);
|
|
320
320
|
o([
|
|
321
321
|
a()
|
|
322
|
-
],
|
|
322
|
+
], r.prototype, "geometry", 1);
|
|
323
323
|
o([
|
|
324
324
|
a()
|
|
325
|
-
],
|
|
325
|
+
], r.prototype, "elevationInfo", 1);
|
|
326
326
|
o([
|
|
327
327
|
a()
|
|
328
|
-
],
|
|
328
|
+
], r.prototype, "profiles", 1);
|
|
329
329
|
o([
|
|
330
330
|
a({ readOnly: !0 })
|
|
331
|
-
],
|
|
331
|
+
], r.prototype, "progress", 1);
|
|
332
332
|
o([
|
|
333
333
|
a({ readOnly: !0 })
|
|
334
|
-
],
|
|
334
|
+
], r.prototype, "results", 1);
|
|
335
335
|
o([
|
|
336
336
|
a({ readOnly: !0 })
|
|
337
|
-
],
|
|
337
|
+
], r.prototype, "selectButtonAvailable", 1);
|
|
338
338
|
o([
|
|
339
339
|
a({ readOnly: !0 })
|
|
340
|
-
],
|
|
340
|
+
], r.prototype, "state", 1);
|
|
341
341
|
o([
|
|
342
342
|
a()
|
|
343
|
-
],
|
|
343
|
+
], r.prototype, "uniformChartScaling", 2);
|
|
344
344
|
o([
|
|
345
345
|
a()
|
|
346
|
-
],
|
|
346
|
+
], r.prototype, "distanceUnit", 1);
|
|
347
347
|
o([
|
|
348
348
|
a()
|
|
349
|
-
],
|
|
349
|
+
], r.prototype, "distanceUnitOptions", 1);
|
|
350
350
|
o([
|
|
351
351
|
a()
|
|
352
|
-
],
|
|
352
|
+
], r.prototype, "elevationUnit", 1);
|
|
353
353
|
o([
|
|
354
354
|
a()
|
|
355
|
-
],
|
|
355
|
+
], r.prototype, "elevationUnitOptions", 1);
|
|
356
356
|
o([
|
|
357
357
|
a({ readOnly: !0 })
|
|
358
|
-
],
|
|
358
|
+
], r.prototype, "canResetDistanceUnit", 1);
|
|
359
359
|
o([
|
|
360
360
|
a({ readOnly: !0 })
|
|
361
|
-
],
|
|
362
|
-
|
|
361
|
+
], r.prototype, "canResetElevationUnit", 1);
|
|
362
|
+
r = o([
|
|
363
363
|
z("components.elevation-profile.ElevationProfileViewModel")
|
|
364
|
-
],
|
|
364
|
+
], r);
|
|
365
365
|
function b(t) {
|
|
366
366
|
const e = t?.filter((i) => w.includes(i));
|
|
367
367
|
return e && e.length > 0 ? e : w.slice();
|
|
368
368
|
}
|
|
369
|
-
const K = E(
|
|
369
|
+
const K = E(r);
|
|
370
370
|
class Q extends B {
|
|
371
371
|
constructor() {
|
|
372
|
-
super(...arguments), this.viewModel = K(this), this.
|
|
372
|
+
super(...arguments), this.viewModel = K(this), this._chartInitializationTask = M(void 0), this._messages = $(), 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.hideResetUnitsButton = !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.interactionDisabled = this.viewModel.interactionDisabled, 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 = D()("analysis", "effectiveDisplayUnits", "elevationInfo", "feature", "geometry", "indicatorRelativePosition", "interactionDisabled", "progress", "state"), this.arcgisReady = O();
|
|
373
373
|
}
|
|
374
374
|
static {
|
|
375
|
-
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, hideResetUnitsButton: 5, hideStartButton: 5, hideUniformChartScalingToggle: 5, hideDistanceDisplayUnitSelect: 5, hideElevationDisplayUnitSelect: 5, hideVisualization: 5, highlightDisabled: 5, icon: 3, indicatorRelativePosition: 40, interactionDisabled: 5, 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 };
|
|
375
|
+
this.properties = { _messages: 16, _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, hideResetUnitsButton: 5, hideStartButton: 5, hideUniformChartScalingToggle: 5, hideDistanceDisplayUnitSelect: 5, hideElevationDisplayUnitSelect: 5, hideVisualization: 5, highlightDisabled: 5, icon: 3, indicatorRelativePosition: 40, interactionDisabled: 5, 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 };
|
|
376
376
|
}
|
|
377
377
|
static {
|
|
378
378
|
this.styles = I;
|
|
@@ -400,32 +400,36 @@ class Q extends B {
|
|
|
400
400
|
}
|
|
401
401
|
load() {
|
|
402
402
|
this.manager.onLifecycle(() => [
|
|
403
|
-
|
|
404
|
-
this.
|
|
403
|
+
p(() => ({
|
|
404
|
+
container: this._chartContainer,
|
|
405
|
+
messages: this._messages
|
|
406
|
+
}), ({ container: e, messages: i }) => {
|
|
407
|
+
this._destroyChart(), !(!e || i._loading) && (this._chartInitializationTask.value = x(async (s) => await k({
|
|
405
408
|
view: this.viewModel.view,
|
|
406
409
|
analysisView: this.viewModel.analysisView,
|
|
407
410
|
container: e,
|
|
408
|
-
messages:
|
|
409
|
-
signal:
|
|
411
|
+
messages: i,
|
|
412
|
+
signal: s,
|
|
410
413
|
uniformScaling: this.viewModel.uniformChartScaling,
|
|
411
|
-
onRangeChange: (
|
|
412
|
-
this._hideZoomOutButton =
|
|
414
|
+
onRangeChange: (n, l) => {
|
|
415
|
+
this._hideZoomOutButton = n === 1 && l === 1;
|
|
413
416
|
},
|
|
414
|
-
onCursorPositionChange: (
|
|
415
|
-
const { analysisView:
|
|
416
|
-
|
|
417
|
+
onCursorPositionChange: (n, l) => {
|
|
418
|
+
const { analysisView: c } = this.viewModel;
|
|
419
|
+
c && (c.indicatorRelativePosition = n);
|
|
417
420
|
}
|
|
418
421
|
})));
|
|
419
422
|
}, { sync: !0, initial: !0 }),
|
|
420
|
-
|
|
423
|
+
p(() => ({
|
|
421
424
|
chart: this._chart,
|
|
425
|
+
messages: this._messages,
|
|
422
426
|
view: this.viewModel.view,
|
|
423
427
|
analysisView: this.viewModel.analysisView,
|
|
424
428
|
uniformScaling: this.viewModel.uniformChartScaling,
|
|
425
429
|
hideGridLines: this.hideChartGridLines,
|
|
426
430
|
hideLabels: this.hideChartAxisLabels
|
|
427
|
-
}), ({ chart: e,
|
|
428
|
-
e && (e.
|
|
431
|
+
}), ({ chart: e, messages: i, view: s, analysisView: n, uniformScaling: l }) => {
|
|
432
|
+
e && (e.messages = i, e.view = s, e.analysisView = n, e.uniformScaling = l, e.hideGridLines = this.hideChartGridLines, e.hideAxisLabels = this.hideChartAxisLabels);
|
|
429
433
|
}, { sync: !0, initial: !0 }),
|
|
430
434
|
// Make sure to destroy the chart when the component is disconnected.
|
|
431
435
|
{ remove: () => this._destroyChart() }
|
|
@@ -455,7 +459,7 @@ class Q extends B {
|
|
|
455
459
|
this._chartContainer = e;
|
|
456
460
|
}
|
|
457
461
|
render() {
|
|
458
|
-
return
|
|
462
|
+
return d`<div aria-label=${this._messages.componentLabel ?? u} class=${m({
|
|
459
463
|
root: !0,
|
|
460
464
|
[f.widget]: !0,
|
|
461
465
|
[f.widgetDisabled]: this.viewModel.state === "disabled",
|
|
@@ -479,9 +483,9 @@ class Q extends B {
|
|
|
479
483
|
}
|
|
480
484
|
}
|
|
481
485
|
_renderContentForReadyState() {
|
|
482
|
-
const { _messages: e, hideSelectButton: i, hideStartButton:
|
|
483
|
-
let
|
|
484
|
-
return !
|
|
486
|
+
const { _messages: e, hideSelectButton: i, hideStartButton: s } = this, { selectButtonAvailable: n } = this.viewModel, l = !i && n;
|
|
487
|
+
let c;
|
|
488
|
+
return !s && l ? c = e.readyPrompt : s ? l ? c = e.readyPromptSelectOnly : c = e.errors?.noProfile : c = e.readyPromptCreateOnly, this._renderContent({ prompt: c, chart: !1, actions: g });
|
|
485
489
|
}
|
|
486
490
|
_renderContentForSelectingState() {
|
|
487
491
|
const { view: e } = this.viewModel;
|
|
@@ -498,65 +502,65 @@ class Q extends B {
|
|
|
498
502
|
const { viewModel: e } = this, { view: i } = e;
|
|
499
503
|
if (!i)
|
|
500
504
|
return;
|
|
501
|
-
const
|
|
505
|
+
const s = e.hasVertices ? [{ type: "sketch-cancel" }, { type: "sketch-done", disabled: !e.doneButtonAvailable }] : [{ type: "select" }, { type: "sketch", disabled: !0 }];
|
|
502
506
|
if (e.errorState === "no-valid-input") {
|
|
503
507
|
const l = this._messages[`creatingPrompt-${i.type}`];
|
|
504
508
|
return this._renderContent({
|
|
505
509
|
chart: !1,
|
|
506
|
-
actions:
|
|
510
|
+
actions: s,
|
|
507
511
|
prompt: l
|
|
508
512
|
});
|
|
509
513
|
}
|
|
510
514
|
const n = this._getErrorMessage();
|
|
511
|
-
return n ? this._renderContent({ chart: !1, actions:
|
|
515
|
+
return n ? this._renderContent({ chart: !1, actions: s, prompt: n }) : this._renderContent({ chart: !0, actions: s });
|
|
512
516
|
}
|
|
513
517
|
_renderContentForSelectedState() {
|
|
514
518
|
const e = this._getErrorMessage();
|
|
515
|
-
return e ? this._renderContent({ chart: !1, actions:
|
|
519
|
+
return e ? this._renderContent({ chart: !1, actions: g, prompt: e }) : this._renderContent({ chart: !0, actions: g });
|
|
516
520
|
}
|
|
517
521
|
_renderContentForCreatedState() {
|
|
518
522
|
const e = this._getErrorMessage();
|
|
519
|
-
return e ? this._renderContent({ chart: !1, actions:
|
|
523
|
+
return e ? this._renderContent({ chart: !1, actions: g, prompt: e }) : this._renderContent({ chart: !0, actions: g });
|
|
520
524
|
}
|
|
521
525
|
_renderContent(e) {
|
|
522
|
-
const { viewModel: i } = this,
|
|
523
|
-
return
|
|
526
|
+
const { viewModel: i } = this, s = i.geometry != null;
|
|
527
|
+
return d`<header class="header">${h({ hidden: this._hideZoomOutButton, children: this._renderZoomOutButton() })}${h({ hidden: this.hideClearButton || !s, children: this._renderClearButton() })}${h({ hidden: this.hideSettingsButton, children: this._renderSettingsButton() })}</header><div class="main-container">${e.prompt != null ? this._renderPrompt(e.prompt) : e.chart ? this._renderChart() : void 0}</div>${h({ hidden: this.hideLegend, children: this._renderLegend() })}${this._renderActions(e)}`;
|
|
524
528
|
}
|
|
525
529
|
_renderPrompt(e) {
|
|
526
530
|
return [
|
|
527
|
-
|
|
531
|
+
d`<div class="prompt-container"><p class="prompt-message">${e}</p></div>`
|
|
528
532
|
];
|
|
529
533
|
}
|
|
530
534
|
_renderZoomOutButton() {
|
|
531
535
|
const e = this._messages.zoomOut ?? "";
|
|
532
|
-
return
|
|
536
|
+
return d`<calcite-action icon=magnifying-glass-minus @click=${this._onZoomOutButtonClick} .text=${e} title=${e ?? u}></calcite-action>`;
|
|
533
537
|
}
|
|
534
538
|
_renderChart() {
|
|
535
539
|
if (this.hideChart)
|
|
536
540
|
return;
|
|
537
541
|
const e = this._chart;
|
|
538
|
-
return
|
|
542
|
+
return d`${this._renderSpinner({
|
|
539
543
|
size: e?.chartVisible ? "small" : "large",
|
|
540
544
|
visible: e?.spinnerVisible ?? !1
|
|
541
545
|
})}<div class="chart-container" ${U(this._onChartContainerRef)}></div>`;
|
|
542
546
|
}
|
|
543
547
|
_renderSpinner(e) {
|
|
544
|
-
const i = e.size === "small",
|
|
545
|
-
return
|
|
548
|
+
const i = e.size === "small", s = e.visible ?? !0;
|
|
549
|
+
return d`<calcite-loader class=${m({
|
|
546
550
|
spinner: !0,
|
|
547
551
|
small: i,
|
|
548
|
-
visible:
|
|
552
|
+
visible: s
|
|
549
553
|
})} .inline=${i} label></calcite-loader>`;
|
|
550
554
|
}
|
|
551
555
|
_renderClearButton() {
|
|
552
556
|
const e = this._messages.clearProfile ?? "";
|
|
553
|
-
return
|
|
557
|
+
return d`<calcite-action icon=trash @click=${this._onClearButtonClick} .text=${e} title=${e ?? u}></calcite-action>`;
|
|
554
558
|
}
|
|
555
559
|
_renderLegend() {
|
|
556
|
-
return
|
|
560
|
+
return d`<arcgis-elevation-profile-legend .effectiveDisplayUnits=${this.viewModel.effectiveDisplayUnits} .featureSelected=${this.viewModel.featureIsSelected} .messages=${this._messages} .profiles=${this.profiles} .results=${this.viewModel.results}></arcgis-elevation-profile-legend>`;
|
|
557
561
|
}
|
|
558
562
|
_renderSettingsButton() {
|
|
559
|
-
return
|
|
563
|
+
return d`<arcgis-elevation-profile-settings .hasCustomStartContent=${this._hasSettingsStartContent} .hasCustomEndContent=${this._hasSettingsEndContent} .viewModel=${this.viewModel} .hideUniformChartScalingToggle=${this.hideUniformChartScalingToggle} .hideDistanceDisplayUnitSelect=${this.hideDistanceDisplayUnitSelect} .hideElevationDisplayUnitSelect=${this.hideElevationDisplayUnitSelect} .hideResetUnitsButton=${this.hideResetUnitsButton} .messages=${this._messages} .messageOverrides=${this.messageOverrides} .uniformChartScaling=${this.viewModel.uniformChartScaling} .unitOptionsDistance=${this.viewModel.distanceUnitOptions} .unitOptionsElevation=${this.viewModel.elevationUnitOptions} @arcgisElevationProfileSettingsUniformChartScalingChange=${(e) => {
|
|
560
564
|
this.viewModel.uniformChartScaling = e.detail;
|
|
561
565
|
}}><slot name=settings-start slot=settings-start @slotchange=${(e) => {
|
|
562
566
|
this._hasSettingsStartContent = _(e);
|
|
@@ -565,7 +569,7 @@ class Q extends B {
|
|
|
565
569
|
}}></slot></arcgis-elevation-profile-settings>`;
|
|
566
570
|
}
|
|
567
571
|
_renderActions({ actions: e }) {
|
|
568
|
-
const i = this._messages,
|
|
572
|
+
const i = this._messages, s = e.map((n) => {
|
|
569
573
|
switch (n.type) {
|
|
570
574
|
case "sketch":
|
|
571
575
|
return h({ hidden: this.hideStartButton, children: this._renderAction({
|
|
@@ -610,16 +614,16 @@ class Q extends B {
|
|
|
610
614
|
return;
|
|
611
615
|
}
|
|
612
616
|
}).filter(Boolean);
|
|
613
|
-
return
|
|
617
|
+
return s.length ? d`<footer class="actions">${s}</footer>` : void 0;
|
|
614
618
|
}
|
|
615
|
-
_renderAction({ action: e, label: i, onClick:
|
|
616
|
-
return
|
|
619
|
+
_renderAction({ action: e, label: i, onClick: s, primary: n }) {
|
|
620
|
+
return d`<calcite-button .appearance=${n ? "solid" : "outline-fill"} class="action-button" .disabled=${e.disabled || this.interactionDisabled && (e.type === "sketch" || e.type === "select")} @click=${s}>${i}</calcite-button>`;
|
|
617
621
|
}
|
|
618
622
|
}
|
|
619
623
|
function h(t) {
|
|
620
624
|
return t.hidden ? void 0 : t.children;
|
|
621
625
|
}
|
|
622
|
-
const
|
|
626
|
+
const g = [{ type: "select" }, { type: "sketch" }], W = {
|
|
623
627
|
none: void 0,
|
|
624
628
|
"no-valid-input": "noProfile",
|
|
625
629
|
"no-available-profiles": "noProfile",
|
|
@@ -163,7 +163,7 @@ export abstract class ArcgisFeatures extends LitElement {
|
|
|
163
163
|
accessor featureNavigationTop: boolean;
|
|
164
164
|
/**
|
|
165
165
|
* An array of graphics associated with the component. Each graphic in this array must have a valid [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) set. They may share the same [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) or have unique [PopupTemplates](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) depending on their attributes. The [content](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#content) and [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#heading) of the component is set based on the `content` and `title` properties of each graphic's respective [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/).
|
|
166
|
-
*
|
|
166
|
+
*
|
|
167
167
|
* When more than one graphic exists in this array, the current content of the component is set based on the value of the [selectedFeature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#selectedFeature).
|
|
168
168
|
*
|
|
169
169
|
* This value is `null` if no features are associated with the component.
|
|
@@ -162,7 +162,7 @@ export abstract class ArcgisFeaturesNext extends LitElement {
|
|
|
162
162
|
accessor featureNavigationTop: boolean;
|
|
163
163
|
/**
|
|
164
164
|
* An array of graphics associated with the component. Each graphic in this array must have a valid [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) set. They may share the same [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) or have unique [PopupTemplates](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) depending on their attributes. The [content](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#content) and [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#heading) of the component is set based on the `content` and `title` properties of each graphic's respective [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/).
|
|
165
|
-
*
|
|
165
|
+
*
|
|
166
166
|
* When more than one graphic exists in this array, the current content of the component is set based on the value of the [selectedFeature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#selectedFeature).
|
|
167
167
|
*
|
|
168
168
|
* This value is `null` if no features are associated with the component.
|
|
@@ -394,7 +394,7 @@ export abstract class ArcgisFeaturesNext extends LitElement {
|
|
|
394
394
|
accessor includeDefaultActionsDisabled: boolean;
|
|
395
395
|
/**
|
|
396
396
|
* Indicates whether to initially display a list of features, or the content for one feature.
|
|
397
|
-
* By default, a list is displayed when the associated view has `
|
|
397
|
+
* By default, a list is displayed when the associated view has `focusRegionVisible` enabled; otherwise, the content for one feature is displayed.
|
|
398
398
|
*/
|
|
399
399
|
accessor initialDisplayMode: InitialDisplayOptions;
|
|
400
400
|
/** The component's default label. */
|
|
@@ -361,7 +361,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
361
361
|
*
|
|
362
362
|
* // Wait for the layer to load and the item title to become available
|
|
363
363
|
* await item.layer.when();
|
|
364
|
-
*
|
|
364
|
+
*
|
|
365
365
|
* // If the item's title matches "US Demographics", customize the list item
|
|
366
366
|
* if (item.title === "US Demographics") {
|
|
367
367
|
* // open the list item in the LayerList component
|
|
@@ -305,28 +305,38 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
305
305
|
*/
|
|
306
306
|
accessor fatalError: Error<any> | null | undefined;
|
|
307
307
|
/**
|
|
308
|
-
* The screen rectangle of the active focus region, or `null` when [
|
|
308
|
+
* The screen rectangle of the active focus region, or `null` when [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionVisible) is `false`.
|
|
309
309
|
* This screen rectangle represents the area of the view that is currently in focus and can be used with methods that require a screen rectangle as input, such as `hitTest()`.
|
|
310
310
|
*
|
|
311
311
|
* | Action | Keyboard Shortcut / Property |
|
|
312
312
|
* |--------|----------------------------|
|
|
313
|
-
* | Enable or disable focus region | Use the `Shift` + `Alt`/`Option` + `O` keyboard shortcut while the view component is in focus or set the [
|
|
313
|
+
* | Enable or disable focus region | Use the `Shift` + `Alt`/`Option` + `O` keyboard shortcut while the view component is in focus or set the [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionVisible) property to `true` or `false`. |
|
|
314
314
|
* | Resize focus region | Use the `Shift` + `Alt`/`Option` + Up/Down arrow keys while the focus region is enabled. |
|
|
315
315
|
* | Open the [popup](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) for features in the focus region | Press `Enter` or `Spacebar` while the focus region is enabled. |
|
|
316
316
|
*
|
|
317
|
-
* **Notes:**
|
|
317
|
+
* **Notes:**
|
|
318
318
|
* - To know when this focus region is selected, listen for the [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#event-arcgisViewFocusRegionSelect) event. The default behavior of the popup component opening with features in the focus region can be prevented by calling `event.preventDefault()` within the event handler.
|
|
319
319
|
* - The styling of the focus region can be customized using the [--arcgis-focus-region-outer-border-color](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#--arcgis-focus-region-outer-border-color), [--arcgis-focus-region-inner-border-color](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#--arcgis-focus-region-inner-border-color), and [--arcgis-focus-region-border-width](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#--arcgis-focus-region-border-width) CSS variables.
|
|
320
|
-
* - When the [
|
|
320
|
+
* - When the [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionVisible) is `true`, the opened [popupElement](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#popupElement) or slotted [popup component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) will be docked with the dock button hidden by default to prevent it from overlapping the focus region.
|
|
321
321
|
*
|
|
322
322
|
* @since 5.2
|
|
323
|
-
* @see [
|
|
323
|
+
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionVisible)
|
|
324
324
|
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#event-arcgisViewFocusRegionSelect)
|
|
325
325
|
*/
|
|
326
326
|
get focusRegion(): LinkChartView["focusRegion"];
|
|
327
327
|
/**
|
|
328
|
-
*
|
|
329
|
-
*
|
|
328
|
+
* Enables the keyboard shortcut for showing the focus region. When undefined, the shortcut
|
|
329
|
+
* is enabled only when a popup component is available and [popupDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#popupDisabled) is false.
|
|
330
|
+
* Set to true to handle focus-region selection in a custom application, or false to disable
|
|
331
|
+
* the shortcut. When false, the shortcut does not change focus-region visibility.
|
|
332
|
+
*
|
|
333
|
+
* @default false
|
|
334
|
+
* @since 5.2
|
|
335
|
+
*/
|
|
336
|
+
accessor focusRegionShortcutEnabled: boolean | undefined;
|
|
337
|
+
/**
|
|
338
|
+
* Indicates whether the [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegion) is visible. Set this property to `true` to show the centered focus region, or `false` to hide it.
|
|
339
|
+
* The focus region can also be shown or hidden by focusing on the ArcgisLinkChart component and pressing the `Shift` + `Alt`/`Option` + `O` keyboard shortcut. By default, this shortcut is available only when a popup component is available and [popupDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#popupDisabled) is `false`. Use [focusRegionShortcutEnabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionShortcutEnabled) to explicitly enable or disable it.
|
|
330
340
|
*
|
|
331
341
|
* **Note:** When the focus region is enabled, the [popupElement](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#popupElement) or slotted [popup component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) will be docked with the dock button hidden by default to prevent it from overlapping the focus region.
|
|
332
342
|
*
|
|
@@ -335,7 +345,7 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
335
345
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegion)
|
|
336
346
|
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#event-arcgisViewFocusRegionSelect)
|
|
337
347
|
*/
|
|
338
|
-
accessor
|
|
348
|
+
accessor focusRegionVisible: boolean;
|
|
339
349
|
/**
|
|
340
350
|
* Allows for adding graphics directly to the default graphics in the View.
|
|
341
351
|
*
|
|
@@ -971,12 +981,12 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
971
981
|
readonly arcgisViewDrag: import("@arcgis/lumina").TargetedEvent<this, DragEvent>;
|
|
972
982
|
/**
|
|
973
983
|
* Fires when the focus region is selected using the `Enter` or `Space` key. Use this event to react to the selection of the [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegion) via keyboard input and perform any necessary actions based on that selection, such as performing a `hitTest()` on the [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegion) and passing the returned graphics to the [selectionManager](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#selectionManager).
|
|
974
|
-
*
|
|
984
|
+
*
|
|
975
985
|
* Call `event.detail.preventDefault()` to suppress the default behavior of the [popup](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) opening with the features in the focus region.
|
|
976
986
|
*
|
|
977
987
|
* @since 5.2
|
|
978
988
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegion)
|
|
979
|
-
* @see [
|
|
989
|
+
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionVisible)
|
|
980
990
|
* @example
|
|
981
991
|
* ```js
|
|
982
992
|
* viewElement.addEventListener("arcgisViewFocusRegionSelect", async (event) => {
|
|
@@ -7,8 +7,8 @@ import { LitElement as V, createEvent as p, safeClassMap as w } from "@arcgis/lu
|
|
|
7
7
|
import { reEmitEvent as e } from "@arcgis/lumina-toolkit/reEmitEvent";
|
|
8
8
|
import { makeAccessorController as f, reCreateAccessor as A } from "@arcgis/lumina-toolkit/useAccessor";
|
|
9
9
|
import { createRef as u, ref as v } from "lit/directives/ref.js";
|
|
10
|
-
import { s as
|
|
11
|
-
import { s as
|
|
10
|
+
import { s as I } from "../../chunks/esri-main.js";
|
|
11
|
+
import { s as E } from "../../chunks/slots.js";
|
|
12
12
|
import { C as m } from "../../chunks/resources.js";
|
|
13
13
|
import { b as L, c as R, p as M, i as k } from "../../chunks/component-utils.js";
|
|
14
14
|
import { U, u as D, a as x, b as Q } from "../../chunks/useArcgisViewReadyError.js";
|
|
@@ -32,15 +32,15 @@ const F = f(
|
|
|
32
32
|
), S = f(_, {});
|
|
33
33
|
class G extends V {
|
|
34
34
|
constructor() {
|
|
35
|
-
super(), this._attributionMode = null, this._containerRef = u(), this._mapRef = u(), this._uiController = new U(this), this._activeLoadAbortController = null, this.arcgisLoadError = D(this), this.arcgisViewReadyError = x(this), this._map = F(this), this._baseCypherQuery = "", this._serviceUrl = "", this._propItemId = "", this.view = S(this), this.animationsDisabled = this.view.animationsEnabled, this.allLayerViews = this.view.allLayerViews, this.analyses = this.view.analyses, this.autoDestroyDisabled = !1, this.background = this.view.background, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.canZoomIn = this.view.canZoomIn, this.canZoomOut = this.view.canZoomOut, this.constraints = this.view.constraints, this.displayFilterDisabled = this.view.displayFilterEnabled, this.fatalError = this.view.fatalError, this.graphics = this.view.graphics, this.highlights = this.view.highlights, this.layerViews = this.view.layerViews, this.magnifier = this.view.magnifier, this.map = this.view.map, this.navigation = this.view.navigation, this.options = this.view.options, this.padding = this.view.padding, this.popup = this.view.popup, this.popupDisabled = this.view.popupEnabled, this.popupComponentEnabled = !1, this.ready = this.view.ready, this.resizeAlign = this.view.resizeAlign, this.resolution = this.view.resolution, this.rotation = this.view.rotation, this.selectionManager = this.view.selectionManager, this.
|
|
35
|
+
super(), this._attributionMode = null, this._containerRef = u(), this._mapRef = u(), this._uiController = new U(this), this._activeLoadAbortController = null, this.arcgisLoadError = D(this), this.arcgisViewReadyError = x(this), this._map = F(this), this._baseCypherQuery = "", this._serviceUrl = "", this._propItemId = "", this.view = S(this), this.animationsDisabled = this.view.animationsEnabled, this.allLayerViews = this.view.allLayerViews, this.analyses = this.view.analyses, this.autoDestroyDisabled = !1, this.background = this.view.background, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.canZoomIn = this.view.canZoomIn, this.canZoomOut = this.view.canZoomOut, this.constraints = this.view.constraints, this.displayFilterDisabled = this.view.displayFilterEnabled, this.fatalError = this.view.fatalError, this.graphics = this.view.graphics, this.highlights = this.view.highlights, this.layerViews = this.view.layerViews, this.magnifier = this.view.magnifier, this.map = this.view.map, this.navigation = this.view.navigation, this.options = this.view.options, this.padding = this.view.padding, this.popup = this.view.popup, this.popupDisabled = this.view.popupEnabled, this.popupComponentEnabled = !1, this.ready = this.view.ready, this.resizeAlign = this.view.resizeAlign, this.resolution = this.view.resolution, this.rotation = this.view.rotation, this.selectionManager = this.view.selectionManager, this.focusRegionVisible = this.view.focusRegionVisible, this.slotGroupRefs = this._uiController.slotGroupRefs, this.spatialReference = this.view.spatialReference, this.suspended = this.view.suspended, this.theme = this.view.theme, this.timeExtent = this.view.timeExtent, this.timeZone = this.view.timeZone, this.arcgisViewAnalysisViewCreate = e(() => this.view, "analysis-view-create"), this.arcgisViewAnalysisViewCreateError = e(() => this.view, "analysis-view-create-error"), this.arcgisViewAnalysisViewDestroy = e(() => this.view, "analysis-view-destroy"), this.arcgisViewChange = p(), this.arcgisViewClick = e(() => this.view, "click"), this.arcgisViewDoubleClick = e(() => this.view, "double-click"), this.arcgisViewDoubleTapDrag = e(() => this.view, "double-tap-drag"), this.arcgisViewFocusRegionSelect = e(() => this.view, "focus-region-select"), this.arcgisViewDrag = e(() => this.view, "drag"), this.arcgisViewHold = e(() => this.view, "hold"), this.arcgisViewImmediateClick = e(() => this.view, "immediate-click"), this.arcgisViewImmediateDoubleClick = e(() => this.view, "immediate-double-click"), this.arcgisViewKeyDown = e(() => this.view, "key-down"), this.arcgisViewKeyUp = e(() => this.view, "key-up"), this.arcgisViewLayerviewCreate = e(() => this.view, "layerview-create"), this.arcgisViewLayerviewCreateError = e(() => this.view, "layerview-create-error"), this.arcgisViewLayerviewDestroy = e(() => this.view, "layerview-destroy"), this.arcgisViewMouseWheel = e(() => this.view, "mouse-wheel"), this.arcgisViewPointerDown = e(() => this.view, "pointer-down"), this.arcgisViewPointerEnter = e(() => this.view, "pointer-enter"), this.arcgisViewPointerLeave = e(() => this.view, "pointer-leave"), this.arcgisViewPointerMove = e(() => this.view, "pointer-move"), this.arcgisViewPointerUp = e(() => this.view, "pointer-up"), this.arcgisViewReadyChange = p(), this.arcgisViewVerticalTwoFingerDrag = e(() => this.view, "vertical-two-finger-drag"), Q(this), this.view.ui = {
|
|
36
36
|
components: []
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
static {
|
|
40
|
-
this.properties = { _map: 16, _baseCypherQuery: 16, _serviceUrl: 16, _propItemId: 16, view: 32, animationsDisabled: 5, aria: 0, allLayerViews: 32, analyses: 0, attributionItems: 32, attributionMode: 1, autoDestroyDisabled: 5, background: 0, basemap: 1, basemapView: 0, canZoomIn: 36, canZoomOut: 36, center: 1, constraints: 0, displayFilterDisabled: 5, extent: 0, fatalError: 0, focusAreas: 0, graphics: 0, hideAttribution: 5, highlights: 0, interacting: 32, itemId: 3, baseCypherQuery: 3, serviceUrl: 3, layerViews: 32, magnifier: 32, map: 0, navigating: 32, navigation: 0, options: 0, padding: 0, popup: 0, popupElement: 32, popupDisabled: 5, popupComponentEnabled: 5, ready: 36, resizeAlign: 1, resolution: 40, rotation: 9, selectionManager: 32,
|
|
40
|
+
this.properties = { _map: 16, _baseCypherQuery: 16, _serviceUrl: 16, _propItemId: 16, view: 32, animationsDisabled: 5, aria: 0, allLayerViews: 32, analyses: 0, attributionItems: 32, attributionMode: 1, autoDestroyDisabled: 5, background: 0, basemap: 1, basemapView: 0, canZoomIn: 36, canZoomOut: 36, center: 1, constraints: 0, displayFilterDisabled: 5, extent: 0, fatalError: 0, focusAreas: 0, graphics: 0, hideAttribution: 5, highlights: 0, interacting: 32, itemId: 3, baseCypherQuery: 3, serviceUrl: 3, layerViews: 32, magnifier: 32, map: 0, navigating: 32, navigation: 0, options: 0, padding: 0, popup: 0, popupElement: 32, popupDisabled: 5, popupComponentEnabled: 5, ready: 36, resizeAlign: 1, resolution: 40, rotation: 9, selectionManager: 32, focusRegionVisible: 5, focusRegionShortcutEnabled: 5, focusRegion: 32, scale: 9, slotGroupRefs: 32, spatialReference: 0, stationary: 32, suspended: 39, theme: 0, timeExtent: 0, timeZone: 1, updating: 32, viewpoint: 0, zoom: 9, loadErrorSources: 0 };
|
|
41
41
|
}
|
|
42
42
|
static {
|
|
43
|
-
this.styles = [
|
|
43
|
+
this.styles = [I, E];
|
|
44
44
|
}
|
|
45
45
|
static {
|
|
46
46
|
this.shadowRootOptions = { mode: "open", delegatesFocus: !0 };
|