@arcgis/map-components 5.2.0-next.6 → 5.2.0-next.8
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/5UUUR4LF.js +2 -0
- package/dist/cdn/{PNBNM2CX.js → BJF74GDX.js} +1 -1
- package/dist/cdn/{L4EHCDIJ.js → DITXUZMH.js} +1 -1
- package/dist/cdn/FGSOMLKL.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/index.js +1 -1
- package/dist/chunks/time-utils.js +14 -14
- package/dist/components/arcgis-daylight/customElement.js +237 -205
- 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-features-next/customElement.d.ts +7 -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 +68 -39
- 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 +52 -18
- package/dist/components/arcgis-version-management/customElement.d.ts +9 -1
- 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/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +6 -6
- package/dist/cdn/5DNVHLO6.js +0 -2
- package/dist/cdn/6OOQ7GIC.js +0 -2
- package/dist/cdn/JFVZHHIX.js +0 -2
- package/dist/cdn/MHRXFE7S.js +0 -2
- package/dist/cdn/RAQVHNVI.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
|
/**
|
|
@@ -159,7 +159,13 @@ export abstract class ArcgisFeaturesNext extends LitElement {
|
|
|
159
159
|
* @default 20
|
|
160
160
|
*/
|
|
161
161
|
accessor featuresPerPage: number;
|
|
162
|
-
/**
|
|
162
|
+
/**
|
|
163
|
+
* When `true`, the component will trap focus when opened.
|
|
164
|
+
* This ensures that keyboard navigation is contained within the component when it opens.
|
|
165
|
+
*
|
|
166
|
+
* @default false
|
|
167
|
+
* @since 5.1
|
|
168
|
+
*/
|
|
163
169
|
accessor focusTrapEnabled: boolean;
|
|
164
170
|
/**
|
|
165
171
|
* This function provides the ability to override either the [arcgis-map.goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#goTo) or [arcgis-scene.goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#goTo) methods.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as l } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as d, html as r } from "lit";
|
|
4
|
-
import { on as o, watch as
|
|
4
|
+
import { on as o, watch as a } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
5
|
import c from "@arcgis/core/widgets/Legend/LegendViewModel.js";
|
|
6
6
|
import { LitElement as g, createEvent as h, safeClassMap as p } from "@arcgis/lumina";
|
|
7
7
|
import { usePropertyChange as f } from "@arcgis/lumina/controllers";
|
|
@@ -9,8 +9,8 @@ import { classes as u } from "@arcgis/toolkit/dom";
|
|
|
9
9
|
import { u as _ } from "../../chunks/useHandles.js";
|
|
10
10
|
import { u as m } from "../../chunks/useT9n.js";
|
|
11
11
|
import { m as v } from "../../chunks/useViewModel.js";
|
|
12
|
-
import { g as
|
|
13
|
-
const w = d`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{overflow:auto;width:var(--arcgis-internal-legend-width, 300px)}.root{overflow-y:var(--arcgis-internal-panel-overflow, auto)}:host([card-style-layout="side-by-side"]){--arcgis-internal-legend-width: auto}`, y = v(c);
|
|
12
|
+
import { g as s } from "../../chunks/globalCss.js";
|
|
13
|
+
const w = d`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{--arcgis-internal-legend-heading-margin: 0 0 .5rem;--arcgis-internal-legend-layer-padding: var( --arcgis-internal-padding, var(--calcite-spacing-md) var(--calcite-spacing-lg) );--arcgis-internal-legend-layer-gap: var(--calcite-spacing-xxl);--arcgis-internal-legend-layer-element-gap: var(--calcite-spacing-md);overflow:auto;width:var(--arcgis-internal-legend-width, 300px)}.root{overflow-y:var(--arcgis-internal-panel-overflow, auto)}:host([card-style-layout="side-by-side"]){--arcgis-internal-legend-width: auto}`, y = v(c);
|
|
14
14
|
class b extends g {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments), this.messages = m({}), this.final = _("destroy"), this.viewModel = y(this), this._isCardStyle = !1, this.view = this.viewModel.view, this.icon = "legend", this.activeLayerInfos = this.viewModel.activeLayerInfos, this.basemapLegendVisible = this.viewModel.basemapLegendVisible, this.headingLevel = 3, this.hideLayersNotInCurrentView = this.viewModel.hideLayersNotInCurrentView, this.respectLayerDefinitionExpression = this.viewModel.respectLayerDefinitionExpression, this.layerInfos = this.viewModel.layerInfos, this.loading = this.viewModel.loading, this.legendStyle = "classic", this.autoDestroyDisabled = !1, this.label = this.messages?.componentLabel, this.state = this.viewModel.state, this.arcgisPropertyChange = f()("state"), this.arcgisReady = h();
|
|
@@ -34,7 +34,7 @@ class b extends g {
|
|
|
34
34
|
this.manager.onLifecycle(() => [
|
|
35
35
|
o(() => this.el.view, "resize", () => this.requestUpdate()),
|
|
36
36
|
o(() => this.activeLayerInfos, "change", () => this._refreshActiveLayerInfos(this.activeLayerInfos)),
|
|
37
|
-
|
|
37
|
+
a(() => [
|
|
38
38
|
this.cardStyleLayout,
|
|
39
39
|
this.legendStyle,
|
|
40
40
|
typeof this.legendStyle == "object" ? this.legendStyle.type : void 0,
|
|
@@ -51,10 +51,10 @@ class b extends g {
|
|
|
51
51
|
}), this.requestUpdate();
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return r`<div class=${p(u("root",
|
|
54
|
+
return r`<div class=${p(u("root", s.widget, { [s.panel]: !this._isCardStyle }))}>${this._isCardStyle && this.view ? r`<arcgis-legend-card-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages} .layout=${this.cardStyleLayout} .view=${this.view}></arcgis-legend-card-view>` : r`<arcgis-legend-classic-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages}></arcgis-legend-classic-view>`}</div>`;
|
|
55
55
|
}
|
|
56
56
|
_renderOnActiveLayerInfoChange(e) {
|
|
57
|
-
const i =
|
|
57
|
+
const i = a(() => e.version, () => this.requestUpdate());
|
|
58
58
|
this.final.addHandles(i, `version_${e.layer.uid}`);
|
|
59
59
|
const n = o(() => e.children, "change", () => e.children.forEach((t) => this._renderOnActiveLayerInfoChange(t)));
|
|
60
60
|
this.final.addHandles(n, `version_${e.layer.uid}`), e.children.forEach((t) => this._renderOnActiveLayerInfoChange(t));
|
|
@@ -4,7 +4,7 @@ import { css as $, html as s } from "lit";
|
|
|
4
4
|
import { LitElement as u, safeClassMap as n, nothing as c, safeStyleMap as w } from "@arcgis/lumina";
|
|
5
5
|
import { classes as g } from "@arcgis/toolkit/dom";
|
|
6
6
|
import { b as E, s as p, i as f, c as d, g as y } from "../../chunks/utils2.js";
|
|
7
|
-
const L =
|
|
7
|
+
const L = $`:host{contain:content}.layer-table{display:table;width:100%}.layer-caption{display:table-caption;padding:var(--calcite-spacing-sm) 0;word-break:break-word}.layer-body{margin-left:var(--calcite-spacing-sm)}:dir(rtl) .layer-body{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}.layer-row{display:table-row}.layer-cell{padding:var(--calcite-spacing-xxs) 0;vertical-align:middle;word-break:break-word;display:table-cell}.layer-cell-info{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.imagery-layer-stretched-image{display:block;margin-bottom:-2px}.imagery-layer-info-stretched{padding:0 2px;vertical-align:top}.layer-cell-symbols{text-align:center}.symbol{display:flex;justify-content:center}`;
|
|
8
8
|
class x extends u {
|
|
9
9
|
static {
|
|
10
10
|
this.properties = { cssEffectFilter: 1, layer: 0, legendElement: 0, messages: 0 };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as n } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as c, html as
|
|
3
|
+
import { css as c, html as a } from "lit";
|
|
4
4
|
import { LitElement as d, safeClassMap as o } from "@arcgis/lumina";
|
|
5
5
|
import { classes as g } from "@arcgis/toolkit/dom";
|
|
6
6
|
import { H as m } from "../../chunks/heading.js";
|
|
7
|
-
const h = c`.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)}:host{display:block}.
|
|
8
|
-
class
|
|
7
|
+
const h = c`.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)}:host{display:block}.layers{display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-layer-gap)}.layers>.layer{position:relative}.layers>.layer:not(:last-child):after{content:"";position:absolute;left:0;right:0;bottom:calc(var(--arcgis-internal-legend-layer-gap) / -2);border-bottom:1px solid var(--calcite-color-border-2)}.layers>.layer:last-child{padding-bottom:var(--arcgis-internal-legend-layer-gap)}.layer>.esri-widget__heading{margin:var(--arcgis-internal-legend-heading-margin)}.no-legend{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md)}.layer{padding:var(--arcgis-internal-legend-layer-padding);word-wrap:break-word}.layer-elements{margin-left:var(--calcite-spacing-sm);display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-layer-element-gap);overflow:auto}.layer-children{display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-layer-gap)}.layer-children>.layer{position:relative}.layer-children>.layer:not(:last-child):after{content:"";position:absolute;left:0;right:0;bottom:calc(var(--arcgis-internal-legend-layer-gap) / -2);border-bottom:1px solid var(--calcite-color-border-2)}.layer-child{margin-left:var(--calcite-spacing-sm);padding:0}:dir(rtl) .layer-elements,:dir(rtl) .layer-child{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}`;
|
|
8
|
+
class y extends d {
|
|
9
9
|
constructor() {
|
|
10
10
|
super(...arguments), this.headingLevel = 3, this.type = "classic";
|
|
11
11
|
}
|
|
@@ -16,31 +16,31 @@ class p extends d {
|
|
|
16
16
|
this.styles = h;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
const
|
|
20
|
-
return
|
|
19
|
+
const r = this.activeLayerInfos?.toArray().map((l) => this._renderLegendForLayer(l)).filter(Boolean);
|
|
20
|
+
return r?.length ? a`<section class="layers">${r}</section>` : a`<div class="no-legend">${this.messages.noLegend}</div>`;
|
|
21
21
|
}
|
|
22
22
|
_renderLegendForLayer(e) {
|
|
23
23
|
if (!e.ready)
|
|
24
24
|
return null;
|
|
25
|
-
const
|
|
25
|
+
const r = e.title ? m({
|
|
26
26
|
level: this.headingLevel,
|
|
27
27
|
children: e.title
|
|
28
28
|
}) : null;
|
|
29
29
|
if (e.children.length) {
|
|
30
|
-
const
|
|
31
|
-
return
|
|
30
|
+
const l = e.children.toArray().map((i) => this._renderLegendForLayer(i));
|
|
31
|
+
return a`<section class="layer">${r}<div class="layer-children">${l}</div></section>`;
|
|
32
32
|
}
|
|
33
|
-
return this._renderLegendElementsForLayer(e,
|
|
33
|
+
return this._renderLegendElementsForLayer(e, r);
|
|
34
34
|
}
|
|
35
|
-
_renderLegendElementsForLayer(e,
|
|
36
|
-
const
|
|
37
|
-
if (!
|
|
35
|
+
_renderLegendElementsForLayer(e, r) {
|
|
36
|
+
const l = e.legendElements?.filter(Boolean);
|
|
37
|
+
if (!l?.length)
|
|
38
38
|
return null;
|
|
39
|
-
const i =
|
|
40
|
-
return
|
|
39
|
+
const i = l.map((s) => a`<arcgis-legend-classic-element .cssEffectFilter=${e.cssEffectFilter ?? void 0} .layer=${e.layer} .legendElement=${s} .messages=${this.messages}></arcgis-legend-classic-element>`), t = { "layer-child": !!e.parent };
|
|
40
|
+
return a`<section class=${o(g("layer", t))}>${r}<div class="layer-elements">${i}</div></section>`;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
n("arcgis-legend-classic-view",
|
|
43
|
+
n("arcgis-legend-classic-view", y);
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
y as LegendClassicView
|
|
46
46
|
};
|