@arcgis/map-components 5.2.0-next.60 → 5.2.0-next.62
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/2SZEQV37.js +2 -0
- package/dist/cdn/3WTBTYMS.js +2 -0
- package/dist/cdn/4ZHTGN7K.js +2 -0
- package/dist/cdn/55DP6FNP.js +2 -0
- package/dist/cdn/{X6K2RSPI.js → 5IYDETJ3.js} +1 -1
- package/dist/cdn/{WYZPOKJF.js → 7MH3SB7P.js} +1 -1
- package/dist/cdn/A2T36WPR.js +2 -0
- package/dist/cdn/AEIJFBBW.js +2 -0
- package/dist/cdn/{NRHOAASJ.js → APOCPBJG.js} +1 -1
- package/dist/cdn/AZFN3LR3.js +2 -0
- package/dist/cdn/{F3VS53GP.js → B4IHQKAA.js} +1 -1
- package/dist/cdn/{AFJW3C3J.js → CZ35ZBQO.js} +1 -1
- package/dist/cdn/DBA7NSTP.js +2 -0
- package/dist/cdn/{KEV6I36K.js → DJ5IUHJS.js} +1 -1
- package/dist/cdn/GU3M4JMW.js +2 -0
- package/dist/cdn/HFKN54XG.js +2 -0
- package/dist/cdn/{2JV5SN44.js → IDKRMHDS.js} +1 -1
- package/dist/cdn/{Y3X3K2RU.js → IYLOUQFV.js} +1 -1
- package/dist/cdn/{CJS5I43A.js → MZBHKC3U.js} +1 -1
- package/dist/cdn/{OMGRHB7H.js → ND6OMAWU.js} +1 -1
- package/dist/cdn/{KKBZEDN4.js → OIYQ43VS.js} +1 -1
- package/dist/cdn/{UX6QVJG6.js → ORL32J3S.js} +1 -1
- package/dist/cdn/{5W6NJGFF.js → QKCBSK73.js} +1 -1
- package/dist/cdn/{SCPSWHG4.js → QU6ARDF6.js} +1 -1
- package/dist/cdn/{QVOYYXIU.js → RLA7OC3V.js} +1 -1
- package/dist/cdn/{ALUQRMZW.js → RUI2QLEM.js} +1 -1
- package/dist/cdn/S3XR7KRN.js +2 -0
- package/dist/cdn/{T6CKYPI7.js → SADIYG5D.js} +1 -1
- package/dist/cdn/SRTPZO5Z.js +2 -0
- package/dist/cdn/U4S4I3VD.js +2 -0
- package/dist/cdn/{N2KU7FO4.js → UAA66BVA.js} +1 -1
- package/dist/cdn/VDTRRLON.js +2 -0
- package/dist/cdn/{CFIH5Y4K.js → YAXMVCUT.js} +1 -1
- package/dist/cdn/{5F6Q3XF5.js → ZV5BQFVT.js} +1 -1
- package/dist/cdn/assets/oriented-imagery-viewer-panoramic-viewer/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/action-utils.js +9 -9
- package/dist/chunks/graphicsLayerController.js +74 -0
- package/dist/chunks/utils3.js +13 -45
- package/dist/chunks/utils4.js +51 -0
- package/dist/chunks/zoom.js +32 -0
- package/dist/components/arcgis-aggregated-features/customElement.js +11 -11
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +4 -4
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +2 -2
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +2 -2
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +2 -2
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +2 -2
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +2 -2
- package/dist/components/arcgis-bookmarks/customElement.d.ts +2 -2
- package/dist/components/arcgis-building-explorer/customElement.d.ts +2 -2
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +2 -2
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +23 -18
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +125 -114
- package/dist/components/arcgis-clipboard/customElement.d.ts +2 -2
- package/dist/components/arcgis-compass/customElement.d.ts +2 -2
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +2 -2
- package/dist/components/arcgis-coordinate-conversion-next/customElement.d.ts +2 -2
- package/dist/components/arcgis-daylight/customElement.d.ts +2 -2
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +2 -2
- package/dist/components/arcgis-directional-pad/customElement.d.ts +2 -2
- package/dist/components/arcgis-directions/customElement.d.ts +2 -2
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +2 -2
- package/dist/components/arcgis-editor/customElement.d.ts +3 -3
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +2 -2
- package/dist/components/arcgis-expand/customElement.d.ts +2 -2
- package/dist/components/arcgis-feature/customElement.d.ts +2 -2
- package/dist/components/arcgis-feature-next/customElement.d.ts +2 -2
- package/dist/components/arcgis-feature-next/customElement.js +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.d.ts +2 -2
- package/dist/components/arcgis-feature-templates/customElement.d.ts +2 -2
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-features-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-features-next/customElement.js +1 -1
- package/dist/components/arcgis-floor-filter/customElement.d.ts +2 -2
- package/dist/components/arcgis-grid-controls/customElement.d.ts +2 -2
- package/dist/components/arcgis-home/customElement.d.ts +2 -2
- package/dist/components/arcgis-layer-list/customElement.d.ts +2 -2
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +2 -2
- package/dist/components/arcgis-legend/customElement.d.ts +2 -2
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +2 -2
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +2 -2
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +2 -2
- package/dist/components/arcgis-locate/customElement.d.ts +2 -2
- package/dist/components/arcgis-measurement/customElement.d.ts +2 -2
- package/dist/components/arcgis-multi-feature-form/customElement.d.ts +2 -2
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +2 -2
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +2 -2
- package/dist/components/arcgis-oriented-imagery-viewer-image-viewer/customElement.js +64 -132
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.d.ts +51 -0
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +1006 -0
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/index.d.ts +1 -0
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/index.js +5 -0
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/support/PanoramicMedia.d.ts +49 -0
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/support/PanoramicTilePlanner.d.ts +18 -0
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/support/PanoramicTileSource.d.ts +36 -0
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.d.ts +91 -0
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.js +93 -0
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/index.d.ts +1 -0
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/index.js +2 -0
- package/dist/components/arcgis-paste/customElement.d.ts +2 -2
- package/dist/components/arcgis-popup/customElement.d.ts +3 -3
- package/dist/components/arcgis-popup/customElement.js +1 -1
- package/dist/components/arcgis-presentation/customElement.d.ts +2 -2
- package/dist/components/arcgis-print/customElement.d.ts +2 -2
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.d.ts +2 -2
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +2 -2
- package/dist/components/arcgis-search/customElement.d.ts +2 -2
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +2 -2
- package/dist/components/arcgis-sketch/customElement.d.ts +2 -2
- package/dist/components/arcgis-slice/customElement.d.ts +2 -2
- package/dist/components/arcgis-slider-scale-range/customElement.d.ts +2 -2
- package/dist/components/arcgis-snapping-controls/customElement.d.ts +2 -2
- package/dist/components/arcgis-swipe/customElement.d.ts +2 -2
- package/dist/components/arcgis-table-list/customElement.d.ts +2 -2
- package/dist/components/arcgis-table-list-next/customElement.d.ts +2 -2
- package/dist/components/arcgis-time-bar/customElement.d.ts +5 -5
- package/dist/components/arcgis-time-bar/customElement.js +1 -1
- package/dist/components/arcgis-time-bar-slider/customElement.js +11 -11
- package/dist/components/arcgis-time-slider/customElement.d.ts +2 -2
- package/dist/components/arcgis-time-zone-label/customElement.d.ts +2 -2
- package/dist/components/arcgis-track/customElement.d.ts +2 -2
- package/dist/components/arcgis-utility-network-associations/customElement.d.ts +2 -2
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +2 -2
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +2 -2
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +2 -2
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +2 -2
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.d.ts +2 -2
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +2 -2
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +2 -2
- package/dist/components/arcgis-video-player/customElement.d.ts +2 -2
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +2 -2
- package/dist/components/arcgis-weather/customElement.d.ts +2 -2
- package/dist/components/arcgis-zoom/customElement.d.ts +2 -2
- package/dist/components/arcgis-zoom/customElement.js +21 -45
- package/dist/controllers/useT9n.d.ts +3 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/loader.js +3 -1
- package/dist/types/lumina.d.ts +13 -0
- package/dist/types/preact.d.ts +15 -0
- package/dist/types/react.d.ts +17 -0
- package/dist/types/stencil.d.ts +13 -0
- package/package.json +4 -4
- package/dist/cdn/A5XIQWD5.js +0 -2
- package/dist/cdn/AK62SYBC.js +0 -2
- package/dist/cdn/D7DH54CE.js +0 -2
- package/dist/cdn/KBBYF7KD.js +0 -2
- package/dist/cdn/M4HY5VMM.js +0 -2
- package/dist/cdn/MBRWWICI.js +0 -2
- package/dist/cdn/OO6NV5GK.js +0 -2
- /package/dist/cdn/{MOJH7XEP.js → 3ZXNGXHC.js} +0 -0
|
@@ -797,8 +797,8 @@ export abstract class ArcgisTimeBar extends LitElement {
|
|
|
797
797
|
*/
|
|
798
798
|
accessor timeZone: string | undefined;
|
|
799
799
|
/**
|
|
800
|
-
* The view associated with the component.
|
|
801
|
-
*
|
|
800
|
+
* The view associated with the component.
|
|
801
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-time-bar component will be associated with a map or scene component rather than using the `view` property.
|
|
802
802
|
*/
|
|
803
803
|
accessor view: MapView | SceneView | undefined;
|
|
804
804
|
/**
|
|
@@ -810,7 +810,7 @@ export abstract class ArcgisTimeBar extends LitElement {
|
|
|
810
810
|
*
|
|
811
811
|
* @param settings - The `arcgis-time-bar` settings to apply to the component. This should be in the format returned by `getTimeSliderSettingsFromWebDocument`.
|
|
812
812
|
* @example
|
|
813
|
-
* The following example demonstrates how to use `getTimeSliderSettingsFromWebDocument` and `
|
|
813
|
+
* The following example demonstrates how to use `getTimeSliderSettingsFromWebDocument` and `applyTimeSettings`
|
|
814
814
|
* together to extract `arcgis-time-bar` settings from a web map and apply them to the `arcgis-time-bar` component.
|
|
815
815
|
* ```html
|
|
816
816
|
* <arcgis-map basemap="satellite" zoom="6" center="-2,54">
|
|
@@ -834,11 +834,11 @@ export abstract class ArcgisTimeBar extends LitElement {
|
|
|
834
834
|
*
|
|
835
835
|
* const timeBarElement = document.querySelector("arcgis-time-bar");
|
|
836
836
|
* const timeBar = await timeBarElement.componentOnReady();
|
|
837
|
-
* timeBar.
|
|
837
|
+
* timeBar.applyTimeSettings(timeSliderSettings);
|
|
838
838
|
* </script>
|
|
839
839
|
* ```
|
|
840
840
|
*/
|
|
841
|
-
|
|
841
|
+
applyTimeSettings(settings: Pick<ArcgisTimeBar, "fullTimeExtent" | "loop" | "mode" | "playRate" | "stops" | "timeExtent">): Promise<void>;
|
|
842
842
|
/** Permanently destroy the component. */
|
|
843
843
|
destroy(): Promise<void>;
|
|
844
844
|
/**
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as u } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as h, html as a } from "lit";
|
|
4
|
-
import
|
|
4
|
+
import c from "@arcgis/core/time/TimeExtent.js";
|
|
5
5
|
import { LitElement as v, nothing as f, safeClassMap as g } from "@arcgis/lumina";
|
|
6
|
-
import { createRef as
|
|
6
|
+
import { createRef as o, ref as d } from "lit/directives/ref.js";
|
|
7
7
|
import { m as w } from "../../chunks/handle.js";
|
|
8
8
|
import { watch as x } from "@arcgis/core/core/reactiveUtils.js";
|
|
9
|
-
const p = h`:host{background-color:var(--calcite-color-surface-2);block-size:var(--calcite-size-fixed-xxxl);color:var(--calcite-color-text-1);display:flex;flex:1 0 auto;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size-sm);inline-size:auto}.root{align-items:center;block-size:100%;display:flex;inline-size:100%}.slider{--labels-container-width: 100%;flex:1 1 auto;min-inline-size:
|
|
9
|
+
const p = h`:host{background-color:var(--calcite-color-surface-2);block-size:var(--calcite-size-fixed-xxxl);color:var(--calcite-color-text-1);display:flex;flex:1 0 auto;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size-sm);inline-size:auto}.root{align-items:center;block-size:100%;display:flex;inline-size:100%}slot[name=max],slot[name=min]{display:flex}.slider{--labels-container-width: 100%;flex:1 1 auto;min-inline-size:calc(var(--calcite-spacing-md) * 15)}.slider--has-ticks{margin-top:calc(var(--calcite-spacing-md) * -1)}.hidden,.max-date,.min-date{flex:0 0 auto}.hidden{inline-size:0}.max-date,.min-date{inline-size:calc(var(--calcite-size-md) * 3.125)}.popover{padding:var(--calcite-spacing-xxs) var(--calcite-spacing-xs) var(--calcite-spacing-xs)}.ticks-container{flex:1;position:relative;width:100%}.major-ticks,.minor-ticks{inset:0;position:absolute}.major-ticks,.minor-ticks{--arcgis-ticks-tick-transform: unset;--arcgis-ticks-tick-width: var(--calcite-size-px)}.minor-ticks{--arcgis-ticks-tick-length: var(--calcite-size-fixed-xxs)}.major-ticks{--arcgis-ticks-font-weight: var(--calcite-font-weight-normal)}.slider.slider--out-of-range{--arcgis-internal-slider-handle-color: var(--calcite-color-status-danger);--arcgis-internal-slider-track-range-background-color: var(--calcite-color-status-danger)}`;
|
|
10
10
|
class T extends v {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments), this.#e = new ResizeObserver(() => {
|
|
13
13
|
const e = this.#r.value?.clientWidth;
|
|
14
14
|
e && (this._sliderWidth = e);
|
|
15
|
-
}), this.#n = 3, this.#a =
|
|
15
|
+
}), this.#n = 3, this.#a = o(), this.#r = o(), this._sliderWidth = 100, this.autoDestroyDisabled = !1, this.showMax = !1, this.showMin = !1, this.showTicks = !1, this.showTimeExtentPopover = !1;
|
|
16
16
|
}
|
|
17
17
|
static {
|
|
18
18
|
this.properties = { _activeValue: 16, _sliderFillPlacement: 16, _sliderWidth: 16, _timeExtentEpochValues: 16, activeValue: 32, autoDestroyDisabled: 5, showMax: 5, showMin: 5, showTicks: 5, showTimeExtentPopover: 5, viewModel: 0 };
|
|
@@ -91,23 +91,23 @@ class T extends v {
|
|
|
91
91
|
const n = (r.getTime() - s.getTime()) / t;
|
|
92
92
|
return i.tickFormats.find(({ duration: m }) => m > this.#n * n) ?? i.tickFormats.at(-1);
|
|
93
93
|
}
|
|
94
|
-
#
|
|
94
|
+
#c(e) {
|
|
95
95
|
this._activeValue = e.target.activeValue;
|
|
96
96
|
}
|
|
97
|
-
#
|
|
97
|
+
#o(e) {
|
|
98
98
|
const { viewModel: t } = this, i = t?.mode;
|
|
99
99
|
i && (t.timeExtent = this.#d(e.target.values, i), this._activeValue = e.target.activeValue);
|
|
100
100
|
}
|
|
101
101
|
#d([e, t], i) {
|
|
102
102
|
switch (i) {
|
|
103
103
|
case "cumulative-from-end":
|
|
104
|
-
return new
|
|
104
|
+
return new c({ start: new Date(e), end: null });
|
|
105
105
|
case "cumulative-from-start":
|
|
106
|
-
return new
|
|
106
|
+
return new c({ start: null, end: new Date(e) });
|
|
107
107
|
case "instant":
|
|
108
|
-
return new
|
|
108
|
+
return new c({ start: new Date(e), end: new Date(e) });
|
|
109
109
|
case "time-window":
|
|
110
|
-
return new
|
|
110
|
+
return new c({ start: new Date(e), end: new Date(t ?? e) });
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
render() {
|
|
@@ -138,7 +138,7 @@ class T extends v {
|
|
|
138
138
|
slider: !0,
|
|
139
139
|
"slider--has-ticks": this.showTicks,
|
|
140
140
|
"slider--out-of-range": e.isOutOfRange
|
|
141
|
-
})} .disabled=${!e.interactive} fill-placement=${this._sliderFillPlacement ?? f} .max=${s} .min=${i} @arcgisActiveValueChange=${this.#
|
|
141
|
+
})} .disabled=${!e.interactive} fill-placement=${this._sliderFillPlacement ?? f} .max=${s} .min=${i} @arcgisActiveValueChange=${this.#c} @arcgisInput=${this.#o} precision=0 .steps=${e.effectiveStopsEpoch} .values=${this._timeExtentEpochValues} ${d(this.#r)}>${this.#h()}${this.#g(e, i, s)}</arcgis-slider>`;
|
|
142
142
|
}
|
|
143
143
|
#g(e, t, i) {
|
|
144
144
|
return this.showTicks ? a`<div slot=content-end class="ticks-container"><arcgis-ticks class="minor-ticks" .max=${i} .min=${t} mode=value .values=${this.#s}></arcgis-ticks><arcgis-ticks class="major-ticks" .labelFormatter=${e.majorTickFormatter} .max=${i} .min=${t} mode=value show-labels .values=${this.#i}></arcgis-ticks></div>` : null;
|
|
@@ -448,8 +448,8 @@ export abstract class ArcgisTimeSlider extends LitElement {
|
|
|
448
448
|
*/
|
|
449
449
|
accessor timeZone: string;
|
|
450
450
|
/**
|
|
451
|
-
* The view associated with the component.
|
|
452
|
-
*
|
|
451
|
+
* The view associated with the component.
|
|
452
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-time-slider component will be associated with a map or scene component rather than using the `view` property.
|
|
453
453
|
*
|
|
454
454
|
* @example
|
|
455
455
|
* ```js
|
|
@@ -61,8 +61,8 @@ export abstract class ArcgisTimeZoneLabel extends LitElement {
|
|
|
61
61
|
/** The state of the component. */
|
|
62
62
|
get state(): State;
|
|
63
63
|
/**
|
|
64
|
-
* The view associated with the component.
|
|
65
|
-
*
|
|
64
|
+
* The view associated with the component.
|
|
65
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-time-zone-label component will be associated with a map or scene component rather than using the `view` property.
|
|
66
66
|
*/
|
|
67
67
|
accessor view: MapView | undefined;
|
|
68
68
|
/** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
|
|
@@ -219,8 +219,8 @@ export abstract class ArcgisTrack extends LitElement {
|
|
|
219
219
|
*/
|
|
220
220
|
get tracking(): boolean;
|
|
221
221
|
/**
|
|
222
|
-
* The view associated with the component.
|
|
223
|
-
*
|
|
222
|
+
* The view associated with the component.
|
|
223
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-track component will be associated with a map or scene component rather than using the `view` property.
|
|
224
224
|
*/
|
|
225
225
|
accessor view: MapView | SceneView | undefined;
|
|
226
226
|
/**
|
|
@@ -219,8 +219,8 @@ export abstract class ArcgisUtilityNetworkAssociations extends LitElement {
|
|
|
219
219
|
*/
|
|
220
220
|
accessor utilityNetwork: UtilityNetwork | null | undefined;
|
|
221
221
|
/**
|
|
222
|
-
* The view associated with the component.
|
|
223
|
-
*
|
|
222
|
+
* The view associated with the component.
|
|
223
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-associations component will be associated with a map or scene component rather than using the `view` property.
|
|
224
224
|
*
|
|
225
225
|
* @since 4.26
|
|
226
226
|
*/
|
|
@@ -205,8 +205,8 @@ export abstract class ArcgisUtilityNetworkTrace extends LitElement {
|
|
|
205
205
|
*/
|
|
206
206
|
get traceResults(): TraceResultExtend[];
|
|
207
207
|
/**
|
|
208
|
-
* The view associated with the component.
|
|
209
|
-
*
|
|
208
|
+
* The view associated with the component.
|
|
209
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace component will be associated with a map or scene component rather than using the `view` property.
|
|
210
210
|
*/
|
|
211
211
|
accessor view: MapView | null | undefined;
|
|
212
212
|
checkCanTrace(): Promise<void>;
|
|
@@ -276,8 +276,8 @@ export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {
|
|
|
276
276
|
*/
|
|
277
277
|
get traceResultFeatures(): Graphic[];
|
|
278
278
|
/**
|
|
279
|
-
* The view associated with the component.
|
|
280
|
-
*
|
|
279
|
+
* The view associated with the component.
|
|
280
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace-analysis component will be associated with a map or scene component rather than using the `view` property.
|
|
281
281
|
*/
|
|
282
282
|
accessor view: MapView | null | undefined;
|
|
283
283
|
/** Permanently destroy the component. */
|
|
@@ -161,8 +161,8 @@ export abstract class ArcgisUtilityNetworkTraceInputs extends LitElement {
|
|
|
161
161
|
get traceLocationFlagInfos(): Collection<FlagInfo>;
|
|
162
162
|
get traceLocations(): TraceLocation[];
|
|
163
163
|
/**
|
|
164
|
-
* The view associated with the component.
|
|
165
|
-
*
|
|
164
|
+
* The view associated with the component.
|
|
165
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace-inputs component will be associated with a map or scene component rather than using the `view` property.
|
|
166
166
|
*/
|
|
167
167
|
accessor view: MapView | undefined;
|
|
168
168
|
/** Permanently destroy the component. */
|
|
@@ -107,8 +107,8 @@ export abstract class ArcgisUtilityNetworkTraceLocation extends LitElement {
|
|
|
107
107
|
/** @required */
|
|
108
108
|
accessor utilityNetwork: UtilityNetwork | undefined;
|
|
109
109
|
/**
|
|
110
|
-
* The view associated with the component.
|
|
111
|
-
*
|
|
110
|
+
* The view associated with the component.
|
|
111
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace-location component will be associated with a map or scene component rather than using the `view` property.
|
|
112
112
|
*/
|
|
113
113
|
accessor view: MapView | undefined;
|
|
114
114
|
/** Permanently destroy the component. */
|
|
@@ -36,8 +36,8 @@ export abstract class ArcgisUtilityNetworkTraceLocationList extends LitElement {
|
|
|
36
36
|
/** @default "starting-point" */
|
|
37
37
|
accessor traceLocationType: TraceLocationType;
|
|
38
38
|
/**
|
|
39
|
-
* The view associated with the component.
|
|
40
|
-
*
|
|
39
|
+
* The view associated with the component.
|
|
40
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace-location-list component will be associated with a map or scene component rather than using the `view` property.
|
|
41
41
|
*/
|
|
42
42
|
accessor view: MapView | undefined;
|
|
43
43
|
}
|
|
@@ -159,8 +159,8 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
|
159
159
|
accessor traceResultFeatures: Graphic[];
|
|
160
160
|
accessor utilityNetwork: UtilityNetwork | undefined;
|
|
161
161
|
/**
|
|
162
|
-
* The view associated with the component.
|
|
163
|
-
*
|
|
162
|
+
* The view associated with the component.
|
|
163
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace-results component will be associated with a map or scene component rather than using the `view` property.
|
|
164
164
|
*/
|
|
165
165
|
accessor view: MapView | undefined;
|
|
166
166
|
clearAggregatedGeometryGraphics(): void;
|
|
@@ -69,8 +69,8 @@ export abstract class ArcgisUtilityNetworkValidateTopology extends LitElement {
|
|
|
69
69
|
*/
|
|
70
70
|
accessor utilityNetwork: UtilityNetwork | null | undefined;
|
|
71
71
|
/**
|
|
72
|
-
* The view associated with the component.
|
|
73
|
-
*
|
|
72
|
+
* The view associated with the component.
|
|
73
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-validate-topology component will be associated with a map or scene component rather than using the `view` property.
|
|
74
74
|
*
|
|
75
75
|
* @since 4.27
|
|
76
76
|
*/
|
|
@@ -250,8 +250,8 @@ export abstract class ArcgisVideoPlayer extends LitElement {
|
|
|
250
250
|
/** The current state of the component. */
|
|
251
251
|
get state(): "error" | VideoState;
|
|
252
252
|
/**
|
|
253
|
-
* The view associated with the component.
|
|
254
|
-
*
|
|
253
|
+
* The view associated with the component.
|
|
254
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-video-player component will be associated with a map or scene component rather than using the `view` property.
|
|
255
255
|
*
|
|
256
256
|
* @example
|
|
257
257
|
* // Set the video player view model's view to a map view.
|
|
@@ -392,8 +392,8 @@ export abstract class ArcgisVolumeMeasurement extends LitElement {
|
|
|
392
392
|
*/
|
|
393
393
|
get state(): VolumeMeasurementState;
|
|
394
394
|
/**
|
|
395
|
-
* The view associated with the component.
|
|
396
|
-
*
|
|
395
|
+
* The view associated with the component.
|
|
396
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-volume-measurement component will be associated with a map or scene component rather than using the `view` property.
|
|
397
397
|
*/
|
|
398
398
|
accessor view: SceneView | undefined;
|
|
399
399
|
/**
|
|
@@ -236,8 +236,8 @@ export abstract class ArcgisWeather extends LitElement {
|
|
|
236
236
|
/** The current state of the component. */
|
|
237
237
|
get state(): WeatherState;
|
|
238
238
|
/**
|
|
239
|
-
* The view associated with the component.
|
|
240
|
-
*
|
|
239
|
+
* The view associated with the component.
|
|
240
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-weather component will be associated with a map or scene component rather than using the `view` property.
|
|
241
241
|
*/
|
|
242
242
|
accessor view: SceneView | undefined;
|
|
243
243
|
/** Permanently destroy the component. */
|
|
@@ -68,8 +68,8 @@ export abstract class ArcgisZoom extends LitElement {
|
|
|
68
68
|
/** The current state of the component. */
|
|
69
69
|
get state(): State;
|
|
70
70
|
/**
|
|
71
|
-
* The view associated with the component.
|
|
72
|
-
*
|
|
71
|
+
* The view associated with the component.
|
|
72
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-zoom component will be associated with a map or scene component rather than using the `view` property.
|
|
73
73
|
*/
|
|
74
74
|
accessor view: MapView | SceneView | undefined;
|
|
75
75
|
/**
|
|
@@ -1,46 +1,22 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c
|
|
3
|
-
import {
|
|
4
|
-
import { when as
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { usePropertyChange as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
2
|
+
import { c } from "../../chunks/runtime.js";
|
|
3
|
+
import { html as l } from "lit";
|
|
4
|
+
import { when as m } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
+
import { LitElement as u, createEvent as a, nothing as e, safeClassMap as h } from "@arcgis/lumina";
|
|
6
|
+
import { usePropertyChange as d } from "@arcgis/lumina/controllers";
|
|
7
|
+
import { u as y } from "../../chunks/useT9n.js";
|
|
8
|
+
import { u as g } from "../../chunks/useView.js";
|
|
9
|
+
import { s as p, c as n, a as r } from "../../chunks/zoom.js";
|
|
9
10
|
import { g as z } from "../../chunks/globalCss.js";
|
|
10
|
-
|
|
11
|
-
if (!t)
|
|
12
|
-
return !1;
|
|
13
|
-
if (t.type === "3d")
|
|
14
|
-
return t.ready;
|
|
15
|
-
if (!t?.ready)
|
|
16
|
-
return !1;
|
|
17
|
-
const a = l(t), o = t.constraints?.effectiveMaxScale;
|
|
18
|
-
return o === 0 || a > o;
|
|
19
|
-
}
|
|
20
|
-
function n(t) {
|
|
21
|
-
if (!t)
|
|
22
|
-
return !1;
|
|
23
|
-
if (t.type === "3d")
|
|
24
|
-
return t.ready;
|
|
25
|
-
if (!t?.ready)
|
|
26
|
-
return !1;
|
|
27
|
-
const a = l(t), o = t.constraints?.effectiveMinScale;
|
|
28
|
-
return o === 0 || a < o;
|
|
29
|
-
}
|
|
30
|
-
function l(t) {
|
|
31
|
-
const e = t?.animation?.target;
|
|
32
|
-
return (e && "then" in e ? void 0 : e?.scale) ?? t?.scale ?? 0;
|
|
33
|
-
}
|
|
34
|
-
const v = m`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{display:flex;max-width:fit-content}.zoom-out{border-block-start:solid 1px var(--calcite-color-border-1)}.horizontal{flex-flow:row-reverse nowrap}.horizontal .zoom-out{border-block-start:none;border-inline-end:solid 1px var(--calcite-color-border-1)}`;
|
|
35
|
-
class x extends f {
|
|
11
|
+
class b extends u {
|
|
36
12
|
constructor() {
|
|
37
|
-
super(...arguments), this.messages =
|
|
13
|
+
super(...arguments), this.messages = y({}), this._state = "disabled", this.view = g(this), this.autoDestroyDisabled = !1, this.icon = "magnifying-glass-plus", this.layout = "vertical", this.visualScale = "m", this.arcgisActionZoom = a(), this.arcgisPropertyChange = d()("state"), this.arcgisReady = a();
|
|
38
14
|
}
|
|
39
15
|
static {
|
|
40
16
|
this.properties = { _state: 16, view: 0, autoDestroyDisabled: 5, icon: 1, label: 1, layout: 3, messageOverrides: 0, referenceElement: 1, visualScale: 1, state: 32 };
|
|
41
17
|
}
|
|
42
18
|
static {
|
|
43
|
-
this.styles =
|
|
19
|
+
this.styles = p;
|
|
44
20
|
}
|
|
45
21
|
get state() {
|
|
46
22
|
return this._state;
|
|
@@ -56,24 +32,24 @@ class x extends f {
|
|
|
56
32
|
}
|
|
57
33
|
loaded() {
|
|
58
34
|
this.manager.onLifecycle(() => [
|
|
59
|
-
|
|
60
|
-
this._state =
|
|
35
|
+
m(() => this.view?.ready ? "ready" : "disabled", (o) => {
|
|
36
|
+
this._state = o;
|
|
61
37
|
}, { sync: !0, initial: !0 })
|
|
62
38
|
]);
|
|
63
39
|
}
|
|
64
|
-
async zoomBy(
|
|
65
|
-
const { view:
|
|
66
|
-
!(
|
|
40
|
+
async zoomBy(o) {
|
|
41
|
+
const { view: t } = this, s = o === 1;
|
|
42
|
+
!(s ? n(t) : r(t)) || !t || (this.arcgisActionZoom.emit({ action: s ? "zoomIn" : "zoomOut" }), s ? await t.zoomIn() : await t.zoomOut());
|
|
67
43
|
}
|
|
68
44
|
render() {
|
|
69
|
-
const
|
|
70
|
-
return
|
|
45
|
+
const o = n(this.view), t = r(this.view), { zoomIn: s, zoomOut: i } = this.messages;
|
|
46
|
+
return l`<div class=${h({
|
|
71
47
|
[z.arcgisButton]: !0,
|
|
72
48
|
horizontal: this.layout === "horizontal"
|
|
73
|
-
})}><calcite-button class="zoom-in" .disabled=${!
|
|
49
|
+
})}><calcite-button class="zoom-in" .disabled=${!o} icon-start=plus kind=neutral .label=${s} @click=${this.zoomIn} .scale=${this.visualScale} title=${s ?? e}></calcite-button><calcite-button class="zoom-out" .disabled=${!t} icon-start=minus kind=neutral .label=${i} @click=${this.zoomOut} .scale=${this.visualScale} title=${i ?? e}></calcite-button></div>`;
|
|
74
50
|
}
|
|
75
51
|
}
|
|
76
|
-
|
|
52
|
+
c("arcgis-zoom", b);
|
|
77
53
|
export {
|
|
78
|
-
|
|
54
|
+
b as ArcgisZoom
|
|
79
55
|
};
|