@arcgis/map-components 5.1.0-next.74 → 5.1.0-next.75
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/{AHDX7DZE.js → 2IXIUNGH.js} +1 -1
- package/dist/cdn/3TVO5LIN.js +2 -0
- package/dist/cdn/5CKHTWHC.js +2 -0
- package/dist/cdn/6D72H6LD.js +2 -0
- package/dist/cdn/ACAAYGKC.js +2 -0
- package/dist/cdn/APYGTRF2.js +2 -0
- package/dist/cdn/CUYGLJRU.js +2 -0
- package/dist/cdn/FM3AT2SL.js +2 -0
- package/dist/cdn/YFXHW7I2.js +2 -0
- package/dist/cdn/YLKEVZLN.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/resources.js +35 -0
- package/dist/chunks/slots.js +12 -40
- package/dist/components/arcgis-link-chart/customElement.js +2 -1
- package/dist/components/arcgis-map/customElement.js +7 -6
- package/dist/components/arcgis-presentation/customElement.js +256 -109
- package/dist/components/arcgis-presentation/index.js +1 -0
- package/dist/components/arcgis-presentation-captions/customElement.js +37 -0
- package/dist/components/arcgis-presentation-captions/index.js +1 -0
- package/dist/components/arcgis-scene/customElement.js +2 -1
- package/dist/components/arcgis-slider-scale-range/customElement.js +8 -8
- package/dist/components/arcgis-video/customElement.js +10 -9
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -0
- package/package.json +5 -5
- package/dist/cdn/5EAOM22D.js +0 -2
- package/dist/cdn/7J7GJZ35.js +0 -2
- package/dist/cdn/NYCLIJ7T.js +0 -2
- package/dist/cdn/OPXYBLHE.js +0 -2
- package/dist/cdn/UPVWARLK.js +0 -2
- package/dist/cdn/YCN7F3YY.js +0 -2
- package/dist/cdn/Z4OSJFVK.js +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { g as
|
|
2
|
+
import { g as x, c as p } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as _ } from "lit/directives/keyed.js";
|
|
4
4
|
import { LitElement as g, createEvent as d, safeStyleMap as u, nothing as M } from "@arcgis/lumina";
|
|
5
|
-
import { watch as
|
|
5
|
+
import { watch as f } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
6
|
import { u as v } from "../../chunks/useView.js";
|
|
7
7
|
import { u as L } from "../../chunks/useT9n.js";
|
|
8
8
|
import { css as y, html as r } from "lit";
|
|
@@ -124,7 +124,7 @@ class I extends g {
|
|
|
124
124
|
await this.manager.destroy();
|
|
125
125
|
}
|
|
126
126
|
willUpdate(e) {
|
|
127
|
-
if ((e.has("maxScaleLimit") || e.has("minScaleLimit")) && (this.minScaleLimit === 0 && (this.minScaleLimit = this._layerMinScaleLimit), this.maxScaleLimit === 0 && (this.maxScaleLimit = this._layerMaxScaleLimit), this.minScaleLimit = Math.min(this.minScaleLimit, this._layerMinScaleLimit), this.maxScaleLimit = Math.max(this.maxScaleLimit, this._layerMaxScaleLimit), this.minScale !== 0 && (this.minScale = Math.min(this.minScale, this.minScaleLimit)), this.maxScale !== 0 && (this.maxScale = Math.max(this.maxScale, this.maxScaleLimit))), e.has("maxScale") || e.has("minScale")) {
|
|
127
|
+
if ((e.has("maxScaleLimit") || e.has("minScaleLimit")) && (this.minScaleLimit === 0 && (this.minScaleLimit = this._layerMinScaleLimit), this.maxScaleLimit === 0 && (this.maxScaleLimit = this._layerMaxScaleLimit), this.minScaleLimit = Math.min(this.minScaleLimit, this._layerMinScaleLimit), this.maxScaleLimit = Math.max(this.maxScaleLimit, this._layerMaxScaleLimit), this.minScale !== 0 && (this.minScale = Math.min(this.minScale, this.minScaleLimit)), this.maxScale !== 0 && (this.maxScale = Math.max(this.maxScale, this.maxScaleLimit)), this._syncLayerScale()), e.has("maxScale") || e.has("minScale")) {
|
|
128
128
|
if (this.minScale !== 0) {
|
|
129
129
|
const i = this._clampScale("min", this.minScale);
|
|
130
130
|
this.minScale = i === this.minScaleLimit ? 0 : i;
|
|
@@ -143,8 +143,8 @@ class I extends g {
|
|
|
143
143
|
a && (this._portalRegion = a.split("-")[1]?.toLowerCase() ?? null);
|
|
144
144
|
}).catch(() => {
|
|
145
145
|
}), this.manager.onLifecycle(() => [
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
f(() => this.view?.scale, () => this.requestUpdate(), { initial: !0 }),
|
|
147
|
+
f(() => ({
|
|
148
148
|
// Layer type has loaded property, but Sublayer and SubtypeSublayer use loadStatus instead
|
|
149
149
|
loaded: this.layer?.loadStatus === "loaded",
|
|
150
150
|
ready: this.view?.ready
|
|
@@ -159,7 +159,7 @@ class I extends g {
|
|
|
159
159
|
let n = 0, o = 0;
|
|
160
160
|
m && (n = m.minScale, o = m.maxScale), o !== 0 && (this._layerMaxScaleLimit = o), n !== 0 && (this._layerMinScaleLimit = n);
|
|
161
161
|
}
|
|
162
|
-
this.minScaleLimit = this._layerMinScaleLimit, this.maxScaleLimit = this._layerMaxScaleLimit;
|
|
162
|
+
this.minScaleLimit = Math.min(this.minScaleLimit, this._layerMinScaleLimit), this.maxScaleLimit = Math.max(this.maxScaleLimit, this._layerMaxScaleLimit);
|
|
163
163
|
const c = this.layer;
|
|
164
164
|
c && "minScale" in c && "maxScale" in c && (c.minScale !== 0 && this.minScale === 0 && (this.minScale = Math.min(c.minScale, this.minScaleLimit)), c.maxScale !== 0 && this.maxScale === 0 && (this.maxScale = Math.max(c.maxScale, this.maxScaleLimit)));
|
|
165
165
|
}, { initial: !0 })
|
|
@@ -232,7 +232,7 @@ class I extends g {
|
|
|
232
232
|
e === "min" ? this.minScale = i === 0 ? 0 : this._clampScale("min", i) : this.maxScale = i === 0 ? 0 : this._clampScale("max", i), this._syncLayerScale(), this._activeMenu = null;
|
|
233
233
|
}
|
|
234
234
|
_syncLayerScale() {
|
|
235
|
-
this.layer && "minScale" in this.layer && "maxScale" in this.layer && (this.layer.minScale = this.mode === "max-scale-only" ? 0 : this.
|
|
235
|
+
this.layer && "minScale" in this.layer && "maxScale" in this.layer && (this.layer.minScale = this.mode === "max-scale-only" ? 0 : this._effectiveMinScale, this.layer.maxScale = this.mode === "min-scale-only" ? 0 : this._effectiveMaxScale);
|
|
236
236
|
}
|
|
237
237
|
_renderScalePreviewPopover() {
|
|
238
238
|
const e = this._renderScalePreview();
|
|
@@ -298,7 +298,7 @@ class I extends g {
|
|
|
298
298
|
if (typeof e != "number")
|
|
299
299
|
return null;
|
|
300
300
|
const i = Math.min(l.length - 1, Math.max(0, Math.floor(e))), a = 5, t = 128, s = t * (i % a), c = t * Math.floor(i / a), m = `-${s}px -${c}px`, n = this._getSpriteSheetFile();
|
|
301
|
-
return r`<div class="preview-container"><img src=${
|
|
301
|
+
return r`<div class="preview-container"><img src=${x(`./assets/slider-scale-range/images/${n}.avif`) ?? M} style=${u({
|
|
302
302
|
display: "block",
|
|
303
303
|
height: `${t}px`,
|
|
304
304
|
width: `${t}px`,
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as o } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as h, html as
|
|
3
|
+
import { css as h, html as t } from "lit";
|
|
4
4
|
import { useDirection as n } from "@arcgis/lumina/controllers";
|
|
5
|
-
import { watch as
|
|
5
|
+
import { watch as e } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
6
|
import l from "@arcgis/core/views/VideoView.js";
|
|
7
7
|
import { LitElement as c, createEvent as m, safeClassMap as d } from "@arcgis/lumina";
|
|
8
8
|
import { makeAccessorController as f } from "@arcgis/lumina/controllers/accessor";
|
|
9
9
|
import { createRef as s, ref as r } from "lit/directives/ref.js";
|
|
10
|
-
import {
|
|
10
|
+
import { C as a } from "../../chunks/resources.js";
|
|
11
|
+
import { c as p, s as y, S as w } from "../../chunks/slots.js";
|
|
11
12
|
import { s as v } from "../../chunks/esri-main.js";
|
|
12
13
|
const u = h`:host{width:100%;height:100%}`, R = f(l, {
|
|
13
14
|
omitProps: ["container", "navigation", "scale", "ui"]
|
|
14
15
|
});
|
|
15
16
|
class g extends c {
|
|
16
17
|
constructor() {
|
|
17
|
-
super(), this._containerRef = s(), this._direction = n(), this._mapRef = s(), this._slotGroupRefs =
|
|
18
|
+
super(), this._containerRef = s(), this._direction = n(), this._mapRef = s(), this._slotGroupRefs = p(), this.autoDestroyDisabled = !1, this.view = R(this), this.attributionMode = this.view.attributionMode, this.ready = this.view.ready, this.layer = this.view.layer, this.map = this.view.map, this.arcgisViewReadyChange = m();
|
|
18
19
|
}
|
|
19
20
|
static {
|
|
20
21
|
this.properties = { autoDestroyDisabled: 5, view: 32, aria: 0, attributionMode: 1, ready: 36, layer: 0, map: 0 };
|
|
21
22
|
}
|
|
22
23
|
static {
|
|
23
|
-
this.styles = [v,
|
|
24
|
+
this.styles = [v, y, u];
|
|
24
25
|
}
|
|
25
26
|
get aria() {
|
|
26
27
|
return this.view?.aria;
|
|
@@ -34,19 +35,19 @@ class g extends c {
|
|
|
34
35
|
loaded() {
|
|
35
36
|
const i = this;
|
|
36
37
|
i.el.childElem = this._mapRef.value, this.view.container ??= i.el.childElem, this.manager.onLifecycle(() => [
|
|
37
|
-
|
|
38
|
+
e(() => this.layer, () => {
|
|
38
39
|
this.layer && this.view && (this.view.layer = this.layer, this.layer.loaded || this.layer.load());
|
|
39
40
|
}, { initial: !0 }),
|
|
40
|
-
|
|
41
|
+
e(() => this.view.ready, () => {
|
|
41
42
|
this.view.ready && this.arcgisViewReadyChange.emit();
|
|
42
43
|
}, { initial: this.view.ready })
|
|
43
44
|
]);
|
|
44
45
|
}
|
|
45
46
|
renderMain() {
|
|
46
|
-
return
|
|
47
|
+
return t`<div class=${`root ${a.base}`} ${r(this._mapRef)}></div>`;
|
|
47
48
|
}
|
|
48
49
|
render() {
|
|
49
|
-
return
|
|
50
|
+
return t`${this.renderMain()}<section class=${d(a.containerUI)} ${r(this._containerRef)}>${w({ direction: this._direction, slotGroupRefs: this._slotGroupRefs })}</section>`;
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
o("arcgis-video", g);
|