@arcgis/map-components 5.1.0-next.136 → 5.1.0-next.137
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/6XYGSUZK.js +2 -0
- package/dist/cdn/BKJZTV3X.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-directions/customElement.d.ts +1 -0
- package/dist/components/arcgis-elevation-profile/customElement.js +44 -43
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.d.ts +6 -1
- 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/package.json +4 -4
- package/dist/cdn/CHORL4CA.js +0 -2
- package/dist/cdn/E4GRYYZA.js +0 -2
|
@@ -3,72 +3,73 @@ import { c as C } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css as S, html as c } 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
|
+
import { signal as M } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
6
7
|
import { ignoreAbortErrors as m } from "@arcgis/core/core/promiseUtils.js";
|
|
7
8
|
import { watch as p } from "@arcgis/core/core/reactiveUtils.js";
|
|
8
|
-
import { LitElement as
|
|
9
|
-
import { usePropertyChange as
|
|
9
|
+
import { LitElement as B, createEvent as O, nothing as u, safeClassMap as v } from "@arcgis/lumina";
|
|
10
|
+
import { usePropertyChange as D } from "@arcgis/lumina/controllers";
|
|
10
11
|
import { slotChangeHasContent as _ } from "@arcgis/toolkit/dom";
|
|
11
|
-
import { u as
|
|
12
|
-
import { m as
|
|
13
|
-
import { t as
|
|
12
|
+
import { u as $ } from "../../chunks/useT9n.js";
|
|
13
|
+
import { m as V } from "../../chunks/useViewModel.js";
|
|
14
|
+
import { t as P, c as x } from "../../chunks/async-utils.js";
|
|
14
15
|
import { g as f } from "../../chunks/globalCss.js";
|
|
15
|
-
import
|
|
16
|
-
import { property as a, subclass as
|
|
17
|
-
import { A as
|
|
18
|
-
import { a as
|
|
16
|
+
import z from "@arcgis/core/analysis/ElevationProfileAnalysis.js";
|
|
17
|
+
import { property as a, subclass as E } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
18
|
+
import { A as F } from "../../chunks/AnalysisViewModel.js";
|
|
19
|
+
import { a as A } from "../../chunks/maybe.js";
|
|
19
20
|
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
|
|
21
|
+
import { m as I } from "../../chunks/handle.js";
|
|
22
|
+
const T = 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
|
+
async function L(t, e, i) {
|
|
24
|
+
const r = await R(t, e);
|
|
25
|
+
return P(i), H(r) ? r.highlight(e) : I();
|
|
25
26
|
}
|
|
26
|
-
async function
|
|
27
|
+
async function R(t, e) {
|
|
27
28
|
const i = e?.layer;
|
|
28
29
|
if (!(!i || i.type === "subtype-sublayer" || i.type === "sublayer" || i.type === "building-component"))
|
|
29
30
|
return await t.whenLayerView(i);
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
+
function H(t) {
|
|
32
33
|
return t != null && "highlight" in t && typeof t.highlight == "function";
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
+
function Z({ geometry: t }) {
|
|
35
36
|
return t?.type === "polyline" && t.paths.length > 0 && t.paths.every((e) => e.length >= 2);
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
+
function j({ geometry: t }) {
|
|
38
39
|
return t?.type === "polyline" && t.paths.reduce((e, i) => e + i.length, 0) > 0;
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function q(t) {
|
|
41
42
|
return t?.samples?.some((e) => e.z != null) ?? !1;
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
+
function G(t) {
|
|
44
45
|
return t?.type === "polyline";
|
|
45
46
|
}
|
|
46
|
-
var
|
|
47
|
-
for (var n = r > 1 ? void 0 : r ?
|
|
47
|
+
var N = Object.defineProperty, J = Object.getOwnPropertyDescriptor, o = (t, e, i, r) => {
|
|
48
|
+
for (var n = r > 1 ? void 0 : r ? J(e, i) : e, l = t.length - 1, d; l >= 0; l--)
|
|
48
49
|
(d = t[l]) && (n = (r ? d(e, i, n) : d(n)) || n);
|
|
49
|
-
return r && n &&
|
|
50
|
+
return r && n && N(e, i, n), n;
|
|
50
51
|
};
|
|
51
|
-
let s = class extends
|
|
52
|
+
let s = class extends F {
|
|
52
53
|
constructor() {
|
|
53
54
|
super(...arguments), this.highlightDisabled = !1, this.uniformChartScaling = !1, this.shouldForceInteractive = !1, this.supportedViewType = "both", this.unsupportedErrorMessage = "";
|
|
54
55
|
}
|
|
55
56
|
get _hasSamples() {
|
|
56
57
|
const { progress: t } = this;
|
|
57
58
|
return !!this.analysisView?.results?.some(
|
|
58
|
-
(e) => e.available && (t < 1 ||
|
|
59
|
+
(e) => e.available && (t < 1 || q(e))
|
|
59
60
|
);
|
|
60
61
|
}
|
|
61
62
|
get doneButtonAvailable() {
|
|
62
63
|
if (this.featureIsSelected)
|
|
63
64
|
return !1;
|
|
64
65
|
const { geometry: t } = this.analysis;
|
|
65
|
-
return
|
|
66
|
+
return G(t) && t.paths.length > 0 && t.paths[0].length > 2;
|
|
66
67
|
}
|
|
67
68
|
get effectiveDisplayUnits() {
|
|
68
69
|
return this.analysisView?.effectiveDisplayUnits;
|
|
69
70
|
}
|
|
70
71
|
get errorState() {
|
|
71
|
-
if (!
|
|
72
|
+
if (!Z(this.analysis))
|
|
72
73
|
return "no-valid-input";
|
|
73
74
|
const t = this.analysisView?.error;
|
|
74
75
|
if (t)
|
|
@@ -92,7 +93,7 @@ let s = class extends E {
|
|
|
92
93
|
return this.feature != null;
|
|
93
94
|
}
|
|
94
95
|
get hasVertices() {
|
|
95
|
-
return
|
|
96
|
+
return j(this.analysis);
|
|
96
97
|
}
|
|
97
98
|
get indicatorRelativePosition() {
|
|
98
99
|
return this.analysisView?.indicatorRelativePosition ?? void 0;
|
|
@@ -230,17 +231,17 @@ let s = class extends E {
|
|
|
230
231
|
}
|
|
231
232
|
// Should never happen because both 2d and 3d are supported
|
|
232
233
|
constructAnalysis() {
|
|
233
|
-
return new
|
|
234
|
+
return new z();
|
|
234
235
|
}
|
|
235
236
|
_highlightSelectedFeature(t) {
|
|
236
237
|
this._removeSelectionHighlight();
|
|
237
238
|
const e = this.view;
|
|
238
239
|
!e || !t || (this._selectionHighlightTask = x(
|
|
239
|
-
async (i) => await
|
|
240
|
+
async (i) => await L(e, t, { signal: i })
|
|
240
241
|
));
|
|
241
242
|
}
|
|
242
243
|
_removeSelectionHighlight() {
|
|
243
|
-
this._selectionHighlightTask?.value?.remove(), this._selectionHighlightTask =
|
|
244
|
+
this._selectionHighlightTask?.value?.remove(), this._selectionHighlightTask = A(this._selectionHighlightTask);
|
|
244
245
|
}
|
|
245
246
|
_excludeSelectedFeatureFromProfile(t, e, i) {
|
|
246
247
|
const r = new Set(t.exclude ?? []);
|
|
@@ -333,28 +334,28 @@ o([
|
|
|
333
334
|
a()
|
|
334
335
|
], s.prototype, "elevationUnitOptions", 1);
|
|
335
336
|
s = o([
|
|
336
|
-
|
|
337
|
+
E("components.elevation-profile.ElevationProfileViewModel")
|
|
337
338
|
], s);
|
|
338
339
|
function b(t) {
|
|
339
340
|
const e = t?.filter((i) => w.includes(i));
|
|
340
341
|
return e && e.length > 0 ? e : w.slice();
|
|
341
342
|
}
|
|
342
|
-
const
|
|
343
|
-
class
|
|
343
|
+
const K = V(s);
|
|
344
|
+
class Q extends B {
|
|
344
345
|
constructor() {
|
|
345
|
-
super(...arguments), this.viewModel =
|
|
346
|
+
super(...arguments), this.viewModel = K(this), this._messages = $(), this._chartInitializationTask = M(void 0), 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 = D()("analysis", "effectiveDisplayUnits", "elevationInfo", "feature", "geometry", "indicatorRelativePosition", "progress", "state"), this.arcgisReady = O();
|
|
346
347
|
}
|
|
347
348
|
static {
|
|
348
349
|
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 };
|
|
349
350
|
}
|
|
350
351
|
static {
|
|
351
|
-
this.styles =
|
|
352
|
+
this.styles = T;
|
|
352
353
|
}
|
|
353
354
|
get _selectButtonVisible() {
|
|
354
355
|
return !this.hideSelectButton && this.viewModel.selectButtonAvailable;
|
|
355
356
|
}
|
|
356
357
|
get _chart() {
|
|
357
|
-
return this._chartInitializationTask?.value;
|
|
358
|
+
return this._chartInitializationTask.value?.value;
|
|
358
359
|
}
|
|
359
360
|
async destroy() {
|
|
360
361
|
await this.manager.destroy();
|
|
@@ -374,7 +375,7 @@ class K extends M {
|
|
|
374
375
|
load() {
|
|
375
376
|
this.manager.onLifecycle(() => [
|
|
376
377
|
p(() => ({ container: this._chartContainer }), ({ container: e }) => {
|
|
377
|
-
this._destroyChart(), e && (this._chartInitializationTask = x(async (i) => await k({
|
|
378
|
+
this._destroyChart(), e && (this._chartInitializationTask.value = x(async (i) => await k({
|
|
378
379
|
view: this.viewModel.view,
|
|
379
380
|
analysisView: this.viewModel.analysisView,
|
|
380
381
|
container: e,
|
|
@@ -404,7 +405,7 @@ class K extends M {
|
|
|
404
405
|
}
|
|
405
406
|
_destroyChart() {
|
|
406
407
|
const e = this._chart;
|
|
407
|
-
this._chartInitializationTask?.abort(), this._chartInitializationTask = void 0, e?.destroy();
|
|
408
|
+
this._chartInitializationTask.value?.abort(), this._chartInitializationTask.value = void 0, e?.destroy();
|
|
408
409
|
}
|
|
409
410
|
_onCancelButtonClick() {
|
|
410
411
|
this.viewModel.stop(), this.viewModel.clear();
|
|
@@ -413,7 +414,7 @@ class K extends M {
|
|
|
413
414
|
this.viewModel.stop();
|
|
414
415
|
}
|
|
415
416
|
_getErrorMessage() {
|
|
416
|
-
const e =
|
|
417
|
+
const e = W[this.viewModel.errorState];
|
|
417
418
|
return e ? this._messages?.errors?.[e] : void 0;
|
|
418
419
|
}
|
|
419
420
|
_onClearButtonClick() {
|
|
@@ -590,14 +591,14 @@ class K extends M {
|
|
|
590
591
|
function h(t) {
|
|
591
592
|
return t.hidden ? void 0 : t.children;
|
|
592
593
|
}
|
|
593
|
-
const g = [{ type: "select" }, { type: "sketch" }],
|
|
594
|
+
const g = [{ type: "select" }, { type: "sketch" }], W = {
|
|
594
595
|
none: void 0,
|
|
595
596
|
"no-valid-input": "noProfile",
|
|
596
597
|
"no-available-profiles": "noProfile",
|
|
597
598
|
"too-complex": "tooComplex",
|
|
598
599
|
unknown: "unknown"
|
|
599
600
|
};
|
|
600
|
-
C("arcgis-elevation-profile",
|
|
601
|
+
C("arcgis-elevation-profile", Q);
|
|
601
602
|
export {
|
|
602
|
-
|
|
603
|
+
Q as ArcgisElevationProfile
|
|
603
604
|
};
|
|
@@ -117,7 +117,7 @@ c([
|
|
|
117
117
|
o = c([
|
|
118
118
|
D("map-components.expand.ExpandViewModel")
|
|
119
119
|
], o);
|
|
120
|
-
const S = y`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto}.action{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-spacing-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`, f = "chevrons-left", x = "chevrons-right", V = I(o);
|
|
120
|
+
const S = y`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto;--calcite-action-corner-radius: 0}.action{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-spacing-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`, f = "chevrons-left", x = "chevrons-right", V = I(o);
|
|
121
121
|
class z extends k {
|
|
122
122
|
constructor() {
|
|
123
123
|
super(...arguments), this.popoverEl = g(), this.messages = E({}), this.viewModel = V(this), this.toggleActionEl = g(), this.view = this.viewModel.view, this.state = this.viewModel.state, this.autoDestroyDisabled = !1, this.autoCollapse = this.viewModel.autoCollapse, this.closeOnEscDisabled = !1, this.content = "", this.expanded = this.viewModel.expanded, this.expandTooltip = "", this.collapseTooltip = "", this.focusTrapDisabled = !1, this.group = this.viewModel.group, this.iconNumber = 0, this.mode = "auto", this.topLayerDisabled = !1, this.visualScale = "m", this.arcgisPropertyChange = T()("expanded"), this.arcgisReady = H();
|
|
@@ -24,6 +24,9 @@ import type { GoToOverride } from "@arcgis/core/widgets/support/types.js";
|
|
|
24
24
|
* If a global apiKey is present, the Search component uses this URL: `https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer`. If an apiKey
|
|
25
25
|
* is present on the LocatorSearchSource, then the Search component uses the URL defined by the LocatorSearchSource.url property.
|
|
26
26
|
*
|
|
27
|
+
* For popups, we recommend using either [popup-component-enabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#popupComponentEnabled),
|
|
28
|
+
* or adding the [arcgis-popup](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) to your view components as a best practice.
|
|
29
|
+
*
|
|
27
30
|
* The Search component sets the view on the Search result. The level of detail (LOD) at the center of the view depends on the data source, with higher quality data
|
|
28
31
|
* sources returning extents closer to the `feature` obtained from the search. To manually define the scale of the view at the Search result, use the `zoomScale` property
|
|
29
32
|
* of the LocatorSearchSource or LayerSearchSource. Search component results are typically sorted according to their relevance to the search and their relative importance.
|
|
@@ -31,9 +34,11 @@ import type { GoToOverride } from "@arcgis/core/widgets/support/types.js";
|
|
|
31
34
|
* specified point (the center of the view) by passing in the `location parameter`. Features closest to the input location show up higher in the list of results.
|
|
32
35
|
* This behavior can be changed by using the localSearchDisabled property.
|
|
33
36
|
*
|
|
34
|
-
*
|
|
37
|
+
* Starting with version `5.1`, on [@arcgisSelectResult](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-search/#event-arcgisSelectResult) the selected search result is announced to assistive technologies. Visit the [Accessibility guide](https://developers.arcgis.com/javascript/latest/accessibility/#assistive-technologies) to learn more
|
|
35
38
|
* about live announcements supporting more audiences.
|
|
36
39
|
*
|
|
40
|
+
* @see [Sample - Search component with multiple sources](https://developers.arcgis.com/javascript/latest/sample-code/search-component-multisource/)
|
|
41
|
+
* @see [Sample - Search component with custom source](https://developers.arcgis.com/javascript/latest/sample-code/search-component-customsource/)
|
|
37
42
|
* @since 4.28
|
|
38
43
|
*/
|
|
39
44
|
export abstract class ArcgisSearch extends LitElement {
|