@arcgis/map-components 5.1.0-next.120 → 5.1.0-next.121
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/3M2OCTTN.js +2 -0
- package/dist/cdn/43B43AY2.js +2 -0
- package/dist/cdn/{6OHXFH4A.js → 6SY6H3FZ.js} +1 -1
- package/dist/cdn/CH6EZH77.js +2 -0
- package/dist/cdn/CPQRCYUD.js +2 -0
- package/dist/cdn/DCNSXS23.js +2 -0
- package/dist/cdn/DZMN2UH5.js +2 -0
- package/dist/cdn/EJAWFQRM.js +2 -0
- package/dist/cdn/FKJU4SJG.js +2 -0
- package/dist/cdn/FWSLFWOH.js +2 -0
- package/dist/cdn/{Q4753YCY.js → GD7MA2TO.js} +1 -1
- package/dist/cdn/IJYN5YEP.js +2 -0
- package/dist/cdn/{X5TD4KCW.js → MZBCMFYH.js} +1 -1
- package/dist/cdn/OZJJULKI.js +2 -0
- package/dist/cdn/TCUFYIIZ.js +2 -0
- package/dist/cdn/VHJSRDE4.js +2 -0
- package/dist/cdn/WFL2WTJK.js +2 -0
- package/dist/cdn/{L77C4X4F.js → XYUG5M3W.js} +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +60 -111
- package/dist/components/arcgis-daylight/customElement.d.ts +1 -0
- package/dist/components/arcgis-daylight/customElement.js +98 -112
- package/dist/components/arcgis-feature-table/customElement.d.ts +8 -0
- package/dist/components/arcgis-feature-table/customElement.js +28 -28
- package/dist/components/arcgis-feature-templates/TemplateItem.d.ts +33 -0
- package/dist/components/arcgis-feature-templates/customElement.d.ts +275 -0
- package/dist/components/arcgis-feature-templates/customElement.js +560 -0
- package/dist/components/arcgis-feature-templates/index.d.ts +1 -0
- package/dist/components/arcgis-feature-templates/index.js +13 -0
- package/dist/components/arcgis-features-next/customElement.d.ts +2 -0
- package/dist/components/arcgis-features-next/customElement.js +69 -63
- package/dist/components/arcgis-features-next/index.js +1 -0
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +23 -23
- package/dist/components/arcgis-link-chart/customElement.d.ts +11 -4
- package/dist/components/arcgis-link-chart/customElement.js +11 -11
- package/dist/components/arcgis-map/customElement.d.ts +10 -3
- package/dist/components/arcgis-map/customElement.js +9 -9
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +3 -3
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +1 -1
- package/dist/components/arcgis-paste/customElement.js +27 -38
- package/dist/components/arcgis-paste/index.js +1 -1
- package/dist/components/arcgis-popup/customElement.d.ts +2 -0
- package/dist/components/arcgis-popup/customElement.js +9 -9
- package/dist/components/arcgis-scene/customElement.d.ts +10 -3
- package/dist/components/arcgis-scene/customElement.js +24 -24
- package/dist/components/arcgis-search/customElement.js +6 -6
- package/dist/components/arcgis-template-image/customElement.d.ts +14 -0
- package/dist/components/arcgis-template-image/customElement.js +119 -0
- package/dist/components/arcgis-template-image/index.d.ts +1 -0
- package/dist/components/arcgis-template-image/index.js +1 -0
- package/dist/components/arcgis-video/customElement.d.ts +15 -2
- package/dist/components/arcgis-video/customElement.js +5 -5
- package/dist/components/arcgis-video-player/customElement.d.ts +7 -0
- package/dist/components/arcgis-video-player/customElement.js +14 -11
- package/dist/components/arcgis-video-player-controls-group/customElement.js +19 -17
- package/dist/components/arcgis-video-player-settings/customElement.js +20 -18
- package/dist/components/arcgis-video-player-settings/index.js +1 -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 +10 -8
- package/dist/types/lumina.d.ts +18 -4
- package/dist/types/preact.d.ts +20 -4
- package/dist/types/react.d.ts +22 -4
- package/dist/types/stencil.d.ts +18 -4
- package/package.json +4 -4
- package/dist/cdn/3X33RWNO.js +0 -2
- package/dist/cdn/5QATVROE.js +0 -2
- package/dist/cdn/CLFGHCMB.js +0 -2
- package/dist/cdn/COKJF3EH.js +0 -2
- package/dist/cdn/G56TPBPA.js +0 -2
- package/dist/cdn/L4RTHLN4.js +0 -2
- package/dist/cdn/OYP56BNC.js +0 -2
- package/dist/cdn/QKPKTEN4.js +0 -2
- package/dist/cdn/R45DWBFZ.js +0 -2
- package/dist/cdn/RPMEM4UV.js +0 -2
- package/dist/cdn/SM4Y3DFU.js +0 -2
- package/dist/cdn/ZVTOXQKI.js +0 -2
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { watch as
|
|
2
|
+
import { c as ce } from "../../chunks/runtime.js";
|
|
3
|
+
import { watch as de, when as he, whenOnce as ge } from "@arcgis/core/core/reactiveUtils.js";
|
|
4
4
|
import * as ue from "@arcgis/core/intl.js";
|
|
5
5
|
import pe from "@arcgis/core/views/3d/environment/SunLighting.js";
|
|
6
6
|
import me from "@arcgis/core/views/3d/environment/VirtualLighting.js";
|
|
7
|
-
import { LitElement as fe, createEvent as
|
|
8
|
-
import { css as _e, html as
|
|
9
|
-
import { createRef as
|
|
7
|
+
import { LitElement as fe, createEvent as j, safeStyleMap as B, nothing as R } from "@arcgis/lumina";
|
|
8
|
+
import { css as _e, html as p } from "lit";
|
|
9
|
+
import { createRef as G, ref as Y } from "lit/directives/ref.js";
|
|
10
10
|
import { u as be } from "../../chunks/useT9n.js";
|
|
11
11
|
import { u as ve } from "../../chunks/useView.js";
|
|
12
|
-
import { m as
|
|
13
|
-
import { o as
|
|
12
|
+
import { m as N } from "../../chunks/handle.js";
|
|
13
|
+
import { o as P, i as f, b as q, d as z, g as we } from "../../chunks/time-utils.js";
|
|
14
14
|
import { r as ye, b as xe, d as Se } from "../../chunks/async-utils.js";
|
|
15
|
-
import { createTrackingTarget as De, runTracked as
|
|
16
|
-
import { C as
|
|
15
|
+
import { createTrackingTarget as De, runTracked as Z, signal as Te } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
16
|
+
import { C as W } from "../../chunks/component-wrapper.js";
|
|
17
17
|
import { V as D } from "../../chunks/visible-element.js";
|
|
18
18
|
function ke(i, e) {
|
|
19
19
|
return i / 15;
|
|
@@ -32,7 +32,7 @@ function $e(i) {
|
|
|
32
32
|
const e = Pe([i.longitude, i.latitude]);
|
|
33
33
|
return e == null ? 0 : Math.round(e.hours + e.minutes / 60 + e.seconds / 3600);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function re(i, e) {
|
|
36
36
|
return (i % e + e) % e;
|
|
37
37
|
}
|
|
38
38
|
class Ce {
|
|
@@ -44,13 +44,13 @@ class Ce {
|
|
|
44
44
|
constructor(e) {
|
|
45
45
|
this.#r = e;
|
|
46
46
|
let t;
|
|
47
|
-
|
|
47
|
+
Z(this.#n, () => {
|
|
48
48
|
t = e();
|
|
49
49
|
}), this.#t = Te(t);
|
|
50
50
|
}
|
|
51
51
|
#i() {
|
|
52
52
|
const e = this.#t.value;
|
|
53
|
-
|
|
53
|
+
Z(this.#n, () => {
|
|
54
54
|
this.#t.value = this.#r(e);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
@@ -61,22 +61,22 @@ class Ce {
|
|
|
61
61
|
return this.#t.value;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function A(i) {
|
|
65
65
|
return new Ce(i);
|
|
66
66
|
}
|
|
67
|
-
var U = Math.PI, u = Math.sin, T = Math.cos, ze = Math.asin, Me = Math.acos, y = U / 180,
|
|
67
|
+
var U = Math.PI, u = Math.sin, T = Math.cos, ze = Math.asin, Me = Math.acos, y = U / 180, ne = 1e3 * 60 * 60 * 24, se = 2440588, oe = 2451545;
|
|
68
68
|
function Oe(i) {
|
|
69
|
-
return i.valueOf() /
|
|
69
|
+
return i.valueOf() / ne - 0.5 + se;
|
|
70
70
|
}
|
|
71
71
|
function M(i) {
|
|
72
|
-
return new Date((i + 0.5 -
|
|
72
|
+
return new Date((i + 0.5 - se) * ne);
|
|
73
73
|
}
|
|
74
74
|
function Le(i) {
|
|
75
|
-
return Oe(i) -
|
|
75
|
+
return Oe(i) - oe;
|
|
76
76
|
}
|
|
77
|
-
var
|
|
77
|
+
var K = y * 23.4397;
|
|
78
78
|
function Ue(i, e) {
|
|
79
|
-
return ze(u(e) * T(
|
|
79
|
+
return ze(u(e) * T(K) + T(e) * u(K) * u(i));
|
|
80
80
|
}
|
|
81
81
|
function Ee(i) {
|
|
82
82
|
return y * (357.5291 + 0.98560028 * i);
|
|
@@ -94,7 +94,7 @@ S.PolarException = {
|
|
|
94
94
|
MIDNIGHT_SUN: 1,
|
|
95
95
|
POLAR_NIGHT: 2
|
|
96
96
|
};
|
|
97
|
-
var
|
|
97
|
+
var I = [
|
|
98
98
|
[-0.83, "sunrise", "sunset"]
|
|
99
99
|
// none of the below are currently used -> disabled to avoid unnecessary calculations,
|
|
100
100
|
// as all elements of 'times' are evaluated on every sunCalc.getTimes call.
|
|
@@ -105,37 +105,37 @@ var N = [
|
|
|
105
105
|
[ -18, "nightEnd", "night" ],
|
|
106
106
|
[ 6, "goldenHourEnd", "goldenHour" ]
|
|
107
107
|
*/
|
|
108
|
-
],
|
|
108
|
+
], ae = 9e-4;
|
|
109
109
|
function Ie(i, e) {
|
|
110
|
-
return Math.round(i -
|
|
110
|
+
return Math.round(i - ae - e / (2 * U));
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
112
|
+
function Q(i, e, t) {
|
|
113
|
+
return ae + (i + e) / (2 * U) + t;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
return
|
|
115
|
+
function X(i, e, t) {
|
|
116
|
+
return oe + i + 53e-4 * u(e) - 69e-4 * u(2 * t);
|
|
117
117
|
}
|
|
118
118
|
function Ne(i, e, t) {
|
|
119
119
|
return Me((u(i) - u(e) * u(t)) / (T(e) * T(t)));
|
|
120
120
|
}
|
|
121
121
|
S.getTimes = function(i, e, t) {
|
|
122
|
-
var r = y * -t, n = y * e, s = Le(i), o = Ie(s, r), a =
|
|
122
|
+
var r = y * -t, n = y * e, s = Le(i), o = Ie(s, r), a = Q(0, r, o), c = Ee(a), d = He(c), l = Ae(c, d), h = Ue(l, 0), g = X(a, c, l);
|
|
123
123
|
function w(H) {
|
|
124
|
-
var
|
|
125
|
-
return
|
|
124
|
+
var C = Ne(H, n, h), le = Q(C, r, o);
|
|
125
|
+
return X(le, c, l);
|
|
126
126
|
}
|
|
127
127
|
function x(H) {
|
|
128
|
-
var
|
|
129
|
-
return
|
|
128
|
+
var C = (u(H) - u(n) * u(h)) / (T(n) * T(h));
|
|
129
|
+
return C < -1 ? S.PolarException.MIDNIGHT_SUN : C > 1 ? S.PolarException.POLAR_NIGHT : S.PolarException.NORMAL;
|
|
130
130
|
}
|
|
131
131
|
var _ = {
|
|
132
132
|
solarNoon: M(g),
|
|
133
133
|
nadir: M(g - 0.5),
|
|
134
134
|
polarException: S.PolarException.NORMAL
|
|
135
|
-
}, b,
|
|
136
|
-
for (b = 0,
|
|
137
|
-
|
|
138
|
-
return _.polarException = x(
|
|
135
|
+
}, b, m, $, E, F;
|
|
136
|
+
for (b = 0, m = I.length; b < m; b += 1)
|
|
137
|
+
$ = I[b], E = w($[0] * y), F = g - (E - g), _[$[1]] = M(F), _[$[2]] = M(E);
|
|
138
|
+
return _.polarException = x(I[0][0] * y), _;
|
|
139
139
|
};
|
|
140
140
|
const Je = {
|
|
141
141
|
spring: { dayOfMonth: 20, month: 2 },
|
|
@@ -146,32 +146,32 @@ const Je = {
|
|
|
146
146
|
// Northern Fall equinox in 2014 - September 23
|
|
147
147
|
winter: { dayOfMonth: 21, month: 11 }
|
|
148
148
|
// Northern Winter solstice in 2014 - December 21
|
|
149
|
-
},
|
|
150
|
-
function
|
|
151
|
-
const r =
|
|
149
|
+
}, J = ["spring", "summer", "fall", "winter"];
|
|
150
|
+
function k(i, e, t) {
|
|
151
|
+
const r = V(e, t), { dayOfMonth: n, month: s } = Je[r], o = new Date(i.getTime());
|
|
152
152
|
return o.setMonth(s, n), o;
|
|
153
153
|
}
|
|
154
154
|
function Re(i, e) {
|
|
155
155
|
const t = Ve(i);
|
|
156
|
-
return
|
|
156
|
+
return V(t, e);
|
|
157
157
|
}
|
|
158
158
|
function Ve(i) {
|
|
159
|
-
const e = i.getTime(), t =
|
|
159
|
+
const e = i.getTime(), t = k(i, "spring", "northern").getTime(), r = k(i, "summer", "northern").getTime(), n = k(i, "fall", "northern").getTime(), s = k(i, "winter", "northern").getTime();
|
|
160
160
|
return e >= t && e < r ? "spring" : e >= r && e < n ? "summer" : e >= n && e < s ? "fall" : "winter";
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function V(i, e) {
|
|
163
163
|
return e === "northern" ? i : Fe(i);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function ee(i) {
|
|
166
166
|
return i >= 0 ? "northern" : "southern";
|
|
167
167
|
}
|
|
168
168
|
function Fe(i) {
|
|
169
|
-
const e =
|
|
170
|
-
return
|
|
169
|
+
const e = J.indexOf(i);
|
|
170
|
+
return J[(e + 2) % 4];
|
|
171
171
|
}
|
|
172
172
|
const je = 1440, Be = 864e5;
|
|
173
173
|
function Ge(i, e, t, r) {
|
|
174
|
-
const n = S.getTimes(i, e, t), s = n.sunrise, o = n.sunset, a =
|
|
174
|
+
const n = S.getTimes(i, e, t), s = n.sunrise, o = n.sunset, a = P(i, r), c = P(s, r), d = P(o, r);
|
|
175
175
|
if (a.getUTCDate() !== c.getUTCDate() || a.getUTCDate() !== d.getUTCDate()) {
|
|
176
176
|
const l = a.getTime() - c.getTime() > 0 ? 1 : -1;
|
|
177
177
|
s.setUTCDate(s.getUTCDate() + l), o.setUTCDate(o.getUTCDate() + l);
|
|
@@ -182,8 +182,8 @@ function Ge(i, e, t, r) {
|
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
184
|
const Ye = 100, qe = 1e3, v = 12e5, O = 72e5;
|
|
185
|
-
function
|
|
186
|
-
return
|
|
185
|
+
function te(i, e) {
|
|
186
|
+
return re(i + e, 24);
|
|
187
187
|
}
|
|
188
188
|
function Ze({
|
|
189
189
|
mode: i,
|
|
@@ -200,7 +200,7 @@ function Ze({
|
|
|
200
200
|
const h = t() / Ye * d;
|
|
201
201
|
if (h > 0) {
|
|
202
202
|
let g = new Date(c.getTime() + h);
|
|
203
|
-
const w = e.displayUTCOffset ?? 0, x =
|
|
203
|
+
const w = e.displayUTCOffset ?? 0, x = te(g.getUTCHours(), w), _ = te(c.getUTCHours(), w);
|
|
204
204
|
x < _ && (g = new Date(c.getTime() + h - Be));
|
|
205
205
|
const b = e.clone();
|
|
206
206
|
n?.(), e.date = g, r?.(b, e);
|
|
@@ -214,7 +214,7 @@ function Ze({
|
|
|
214
214
|
}
|
|
215
215
|
s = requestAnimationFrame(() => o(a));
|
|
216
216
|
}
|
|
217
|
-
return o(),
|
|
217
|
+
return o(), N(() => cancelAnimationFrame(s));
|
|
218
218
|
}
|
|
219
219
|
const L = v / 4;
|
|
220
220
|
function We(i, e, t, r) {
|
|
@@ -226,8 +226,8 @@ function We(i, e, t, r) {
|
|
|
226
226
|
if (i == null || e == null || Number.isNaN(i.getTime()) && Number.isNaN(e.getTime()))
|
|
227
227
|
return a;
|
|
228
228
|
const l = t.getTime(), h = i.getTime(), g = e.getTime(), w = h - O / 2, x = h + O / 2, _ = g - O / 3 * 2, b = g + O / 3;
|
|
229
|
-
let
|
|
230
|
-
return l >= w && l <= x ? l - w <= v ?
|
|
229
|
+
let m = a;
|
|
230
|
+
return l >= w && l <= x ? l - w <= v ? m = c - (l - w) / v * (c - d) : x - l <= v / 2 ? m = a - (x - l) / v * 2 * (a - d) : m = d : l >= _ && l <= b ? l - _ <= v / 2 ? m = a - (l - _) / v * 2 * (a - d) : b - l <= v ? m = c - (b - l) / v * (c - d) : m = d : (l < h || l > g) && (m = c), m;
|
|
231
231
|
}
|
|
232
232
|
const Ke = _e`.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}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}:host{width:350px}.root{display:flex;flex-direction:column;overflow:visible;gap:var(--calcite-spacing-md);justify-content:space-between;padding:var(--arcgis-internal-padding);position:relative;calcite-label{--calcite-label-margin-bottom: 0}&.loading>*:not(calcite-scrim){opacity:0}}.unsupported{padding:0 var(--calcite-spacing-lg);animation:esri-fade-in .25s ease-in-out}.slider{margin-block-start:0rem}.time-configuration{--date-play-button-offset: 11px;--slider-play-button-offset: var(--calcite-spacing-md);display:grid;gap:var(--calcite-spacing-md);grid-template-columns:1fr min-content;.slider-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--slider-play-button-offset))}}.timezone-input-container{grid-column:1;min-width:0;+span{grid-column:2}}.date-picker-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--date-play-button-offset))}}calcite-button{place-self:center}}`, Qe = {
|
|
233
233
|
day: 1,
|
|
@@ -236,20 +236,20 @@ const Ke = _e`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0
|
|
|
236
236
|
};
|
|
237
237
|
class Xe extends fe {
|
|
238
238
|
constructor() {
|
|
239
|
-
super(...arguments), this.messages = be({ blocking: !0 }), this.#r = "none", this.#n = null, this.#o =
|
|
240
|
-
if (
|
|
239
|
+
super(...arguments), this.messages = be({ blocking: !0 }), this.#r = "none", this.#n = null, this.#o = G(), this.#l = G(), this.#d = 200, this.#h = 200, this.#e = {}, this._offset = A((e) => f(this._lighting) ? this._lighting.displayUTCOffset ?? e : e), this._timesliderPosition = A((e) => {
|
|
240
|
+
if (f(this._lighting)) {
|
|
241
241
|
const t = this._lighting.displayUTCOffset ?? 0, r = this._lighting.date;
|
|
242
|
-
if (
|
|
243
|
-
const { minutesSinceMidnight: n } =
|
|
242
|
+
if (q(r)) {
|
|
243
|
+
const { minutesSinceMidnight: n } = z(r, t);
|
|
244
244
|
return n;
|
|
245
245
|
} else
|
|
246
246
|
return e;
|
|
247
247
|
}
|
|
248
248
|
return e;
|
|
249
|
-
}), this._localDate =
|
|
249
|
+
}), this._localDate = A((e) => we(this._view) ?? e), this.view = ve(this), this.autoDestroyDisabled = !1, this.dateOrSeason = "date", this.headingLevel = 2, this.hideDatePicker = !1, this.hideHeader = !1, this.hidePlayButtons = !1, this.hideShadowsToggle = !1, this.hideSunLightingToggle = !1, this.hideTimezone = !1, this.icon = "brightness", this.playSpeedMultiplier = 1, this.timeSliderSteps = 5, this.arcgisReady = j(), this.arcgisUserDateTimeChange = j(), this.#c = !1;
|
|
250
250
|
}
|
|
251
251
|
static {
|
|
252
|
-
this.properties = { view: 0, _playingState: 16, _sunlightingDisabled: 16, autoDestroyDisabled: 5, currentSeason: 1, dateOrSeason: 3, dayPlaying: 5, _directShadowsDisabled: 16, headingLevel: 9, hideDatePicker: 5, hideHeader: 5, hidePlayButtons: 5, hideShadowsToggle: 5, hideSunLightingToggle: 5, hideTimezone: 5, icon: 3, label: 1, playSpeedMultiplier: 9, referenceElement: 1, timeSliderSteps: 9, utcOffset: 9, timeSliderPosition: 9, localDate: 1, yearPlaying: 5 };
|
|
252
|
+
this.properties = { localDateAsString: 32, view: 0, _playingState: 16, _sunlightingDisabled: 16, autoDestroyDisabled: 5, currentSeason: 1, dateOrSeason: 3, dayPlaying: 5, _directShadowsDisabled: 16, headingLevel: 9, hideDatePicker: 5, hideHeader: 5, hidePlayButtons: 5, hideShadowsToggle: 5, hideSunLightingToggle: 5, hideTimezone: 5, icon: 3, label: 1, playSpeedMultiplier: 9, referenceElement: 1, timeSliderSteps: 9, utcOffset: 9, timeSliderPosition: 9, localDate: 1, yearPlaying: 5 };
|
|
253
253
|
}
|
|
254
254
|
static {
|
|
255
255
|
this.styles = Ke;
|
|
@@ -269,32 +269,32 @@ class Xe extends fe {
|
|
|
269
269
|
if (this.#i)
|
|
270
270
|
return;
|
|
271
271
|
const e = ye(() => {
|
|
272
|
-
if (this.#i?.remove(),
|
|
273
|
-
const t = this.utcOffset ?? 0, r = this.timeSliderPosition ?? 0, n = this.localDate, s = r - t * 60, o =
|
|
272
|
+
if (this.#i?.remove(), f(this._lighting)) {
|
|
273
|
+
const t = this.utcOffset ?? 0, r = this.timeSliderPosition ?? 0, n = this.localDate, s = r - t * 60, o = P(n, s, "minutes");
|
|
274
274
|
this._lighting.date = o, this._lighting.displayUTCOffset = t;
|
|
275
275
|
}
|
|
276
276
|
}, { timeout: this.#d });
|
|
277
|
-
this.#i =
|
|
277
|
+
this.#i = N(() => {
|
|
278
278
|
Se(e), this.#i = void 0;
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
#
|
|
281
|
+
#g({ scale: e, disabled: t }) {
|
|
282
282
|
const { messages: r } = this;
|
|
283
|
-
return
|
|
283
|
+
return p`<calcite-label .scale=${e} class="date-picker-container">${r.date}${et({ disabled: t, scale: e, date: this.localDateAsString, onDateChange: (n) => {
|
|
284
284
|
const s = n.currentTarget.value, o = Array.isArray(s) ? s[0] : s;
|
|
285
285
|
this._stopPlaying(), this.localDate = o, this._emitUserDateTimeChangeEvent();
|
|
286
|
-
} })}</calcite-label>${D({ hidden: this.hidePlayButtons, children:
|
|
286
|
+
} })}</calcite-label>${D({ hidden: this.hidePlayButtons, children: ie({ playing: this.yearPlaying, disabled: t, label: r.playYear, onClick: () => {
|
|
287
287
|
this._playingState === "year" ? this._playingState = "none" : this._playingState = "year";
|
|
288
288
|
}, scale: e }) })}`;
|
|
289
289
|
}
|
|
290
|
-
#
|
|
290
|
+
#u({ scale: e, disabled: t }) {
|
|
291
291
|
const { messages: r } = this;
|
|
292
|
-
return
|
|
292
|
+
return p`<calcite-label .scale=${e} class="date-picker-container">${r.season}${tt({ scale: e, selectedSeason: this.currentSeason, disabled: t, messages: r, onSeasonChange: (n) => {
|
|
293
293
|
this._stopPlaying(), this.currentSeason = n.currentTarget.value;
|
|
294
294
|
} })}</calcite-label>`;
|
|
295
295
|
}
|
|
296
296
|
#e;
|
|
297
|
-
get #
|
|
297
|
+
get #p() {
|
|
298
298
|
return this.#l?.value?.startTime;
|
|
299
299
|
}
|
|
300
300
|
get localDateAsString() {
|
|
@@ -310,7 +310,7 @@ class Xe extends fe {
|
|
|
310
310
|
return this._view?.environment?.lighting;
|
|
311
311
|
}
|
|
312
312
|
get _sunlightingDisabled() {
|
|
313
|
-
return !
|
|
313
|
+
return !f(this._lighting);
|
|
314
314
|
}
|
|
315
315
|
set _sunlightingDisabled(e) {
|
|
316
316
|
this.#e.sunlightingDisabled = e;
|
|
@@ -323,19 +323,19 @@ class Xe extends fe {
|
|
|
323
323
|
directShadowsEnabled: r.directShadowsEnabled,
|
|
324
324
|
glow: r.glow
|
|
325
325
|
};
|
|
326
|
-
|
|
326
|
+
f(r) && (s.cameraTrackingEnabled = r.cameraTrackingEnabled);
|
|
327
327
|
const o = e ? "virtual" : "sun";
|
|
328
328
|
let a;
|
|
329
329
|
n?.type === o ? a = n : a = e ? new me() : new pe(), a.set(s), t.lighting = a, e || (this._stopPlaying(), this.#o.value && (this.#o.value.open = !1));
|
|
330
330
|
}
|
|
331
331
|
get currentSeason() {
|
|
332
|
-
const e = this._view?.camera?.position?.latitude ?? 0, t =
|
|
332
|
+
const e = this._view?.camera?.position?.latitude ?? 0, t = ee(e);
|
|
333
333
|
return Re(this.localDate, t);
|
|
334
334
|
}
|
|
335
335
|
set currentSeason(e) {
|
|
336
336
|
this._stopPlaying();
|
|
337
|
-
const t = this._view?.camera?.position?.latitude ?? 0, r =
|
|
338
|
-
this.localDate =
|
|
337
|
+
const t = this._view?.camera?.position?.latitude ?? 0, r = ee(t), n = V(e, r);
|
|
338
|
+
this.localDate = k(this.localDate, n, "northern"), this._emitUserDateTimeChangeEvent();
|
|
339
339
|
}
|
|
340
340
|
get dayPlaying() {
|
|
341
341
|
return this._playingState === "day";
|
|
@@ -359,7 +359,7 @@ class Xe extends fe {
|
|
|
359
359
|
return this._timesliderPosition.value;
|
|
360
360
|
}
|
|
361
361
|
set timeSliderPosition(e) {
|
|
362
|
-
this._timesliderPosition.mutate(
|
|
362
|
+
this._timesliderPosition.mutate(re(e ?? 0, je)), this.#a();
|
|
363
363
|
}
|
|
364
364
|
get localDate() {
|
|
365
365
|
return this._localDate.value != null ? new Date(this._localDate.value) : /* @__PURE__ */ new Date();
|
|
@@ -370,7 +370,7 @@ class Xe extends fe {
|
|
|
370
370
|
return;
|
|
371
371
|
}
|
|
372
372
|
const t = new Date(e);
|
|
373
|
-
if (
|
|
373
|
+
if (q(t)) {
|
|
374
374
|
t.setUTCFullYear(t.getFullYear(), t.getMonth(), t.getDate());
|
|
375
375
|
const r = t.toISOString().slice(0, 10);
|
|
376
376
|
this._localDate.mutate(r), this.#a();
|
|
@@ -387,28 +387,14 @@ class Xe extends fe {
|
|
|
387
387
|
}
|
|
388
388
|
async load() {
|
|
389
389
|
this.#e.utcOffset = this.utcOffset, this.#e.timeSliderPosition = this.timeSliderPosition, this.#e.localDate = this.localDateAsString, this.manager.onLifecycle(() => [
|
|
390
|
-
|
|
391
|
-
let e = null;
|
|
392
|
-
if (p(this._lighting)) {
|
|
393
|
-
const t = this._lighting.displayUTCOffset ?? 0, r = this._lighting.date;
|
|
394
|
-
if (A(r)) {
|
|
395
|
-
const { minutesSinceMidnight: n } = k(r, t);
|
|
396
|
-
e = n;
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
return e;
|
|
400
|
-
}, (e) => {
|
|
401
|
-
const t = this.#g;
|
|
402
|
-
e != null && t !== e && this._emitUserDateTimeChangeEvent();
|
|
403
|
-
}, { sync: !0 }),
|
|
404
|
-
B(() => {
|
|
390
|
+
de(() => {
|
|
405
391
|
const e = this._view?.camera?.position;
|
|
406
392
|
return e ? $e(e) : void 0;
|
|
407
393
|
}, (e) => {
|
|
408
394
|
const t = this._lighting;
|
|
409
|
-
|
|
395
|
+
f(t) && t.cameraTrackingEnabled && (t.displayUTCOffset = e);
|
|
410
396
|
}, { sync: !0, initial: !0 }),
|
|
411
|
-
he(() => !
|
|
397
|
+
he(() => !f(this._lighting), () => {
|
|
412
398
|
this._stopPlaying();
|
|
413
399
|
}),
|
|
414
400
|
ue.onLocaleChange(() => {
|
|
@@ -419,8 +405,8 @@ class Xe extends fe {
|
|
|
419
405
|
});
|
|
420
406
|
}
|
|
421
407
|
willUpdate(e) {
|
|
422
|
-
if (super.willUpdate(e), !!this.#c &&
|
|
423
|
-
const t = this.utcOffset ?? 0, r = this._lighting.displayUTCOffset ?? 0, n = this.timeSliderPosition ?? 0, s = this.localDate, o = n - r * 60, a =
|
|
408
|
+
if (super.willUpdate(e), !!this.#c && f(this._lighting) && e.has("utcOffset")) {
|
|
409
|
+
const t = this.utcOffset ?? 0, r = this._lighting.displayUTCOffset ?? 0, n = this.timeSliderPosition ?? 0, s = this.localDate, o = n - r * 60, a = P(s, o, "minutes"), { minutesSinceMidnight: c, localDate: d } = z(a, t);
|
|
424
410
|
this._timesliderPosition.mutate(c), this._localDate.mutate(d);
|
|
425
411
|
}
|
|
426
412
|
}
|
|
@@ -448,14 +434,14 @@ class Xe extends fe {
|
|
|
448
434
|
if (this.#s)
|
|
449
435
|
return;
|
|
450
436
|
const t = setTimeout(() => {
|
|
451
|
-
const r = e.displayUTCOffset ?? 0, n = e.date, { minutesSinceMidnight: s } =
|
|
437
|
+
const r = e.displayUTCOffset ?? 0, n = e.date, { minutesSinceMidnight: s } = z(n, r);
|
|
452
438
|
this._timesliderPosition.mutate(s), this.#s?.remove();
|
|
453
439
|
}, this.#h);
|
|
454
|
-
this.#s =
|
|
440
|
+
this.#s = N(() => {
|
|
455
441
|
clearTimeout(t), this.#s = void 0;
|
|
456
442
|
const r = this._lighting;
|
|
457
|
-
if (
|
|
458
|
-
const n = r.displayUTCOffset ?? 0, s = r.date, { minutesSinceMidnight: o } =
|
|
443
|
+
if (f(r)) {
|
|
444
|
+
const n = r.displayUTCOffset ?? 0, s = r.date, { minutesSinceMidnight: o } = z(s, n);
|
|
459
445
|
this._timesliderPosition.mutate(o);
|
|
460
446
|
}
|
|
461
447
|
});
|
|
@@ -466,21 +452,21 @@ class Xe extends fe {
|
|
|
466
452
|
if (t == null || this._sunlightingDisabled)
|
|
467
453
|
return;
|
|
468
454
|
const r = t.environment.lighting;
|
|
469
|
-
if (!
|
|
455
|
+
if (!f(r))
|
|
470
456
|
return;
|
|
471
457
|
let n = 0;
|
|
472
458
|
this.#t = Ze({
|
|
473
459
|
mode: e,
|
|
474
460
|
lighting: r,
|
|
475
461
|
beforeProgress: () => {
|
|
476
|
-
n = this.#
|
|
462
|
+
n = this.#p ?? 0;
|
|
477
463
|
},
|
|
478
464
|
onProgress: (s, o) => {
|
|
479
465
|
this._timesliderPosition.mutate(n), this.#m(o);
|
|
480
466
|
},
|
|
481
467
|
getPlaySpeed: () => {
|
|
482
468
|
const s = this._view, o = this._view?.environment.lighting;
|
|
483
|
-
if (s != null &&
|
|
469
|
+
if (s != null && f(o)) {
|
|
484
470
|
const a = s.camera.position.latitude ?? 0, c = s.camera.position.longitude ?? 0, { sunrise: d, sunset: l } = Ge(o.date, a, c, o.displayUTCOffset ?? 0);
|
|
485
471
|
return We(d, l, o.date, Qe) * this.playSpeedMultiplier;
|
|
486
472
|
} else
|
|
@@ -491,40 +477,40 @@ class Xe extends fe {
|
|
|
491
477
|
render() {
|
|
492
478
|
const { messages: e, dateOrSeason: t } = this, r = this._sunlightingDisabled, n = "m";
|
|
493
479
|
if (!(this._view?.type === "3d"))
|
|
494
|
-
return
|
|
480
|
+
return W({ class: "root", label: e.componentLabel, title: e.title, hideHeader: this.hideHeader, headingLevel: this.headingLevel, children: p`<div class="unsupported"><p>${e.unsupported}</p></div>` });
|
|
495
481
|
const o = (this.utcOffset ?? 0) * 60, a = this.view?.ready === !0, c = Array.isArray(this.timeSliderSteps) ? this.timeSliderSteps.at(0) : this.timeSliderSteps;
|
|
496
|
-
return
|
|
482
|
+
return W({ class: { root: !0, loading: !a }, label: e.componentLabel, title: e.title, hideHeader: this.hideHeader, headingLevel: this.headingLevel, children: p`${a ? void 0 : p`<calcite-scrim loading></calcite-scrim>`}<div class="time-configuration" style=${B({ columnGap: this.hidePlayButtons ? "0" : void 0 })}><calcite-label class="slider-container" .scale=${n}>${e.timeSliderLabel}<arcgis-time-of-day-slider class="slider" .disabled=${this._sunlightingDisabled} mode=single .startTime=${this.timeSliderPosition ?? 0} .steps=${c} style=${B({ gridArea: "slider" })} @arcgisTimeChange=${({ currentTarget: d }) => {
|
|
497
483
|
this._stopPlaying(), this._emitUserDateTimeChangeEvent(), this.timeSliderPosition = d.startTime;
|
|
498
|
-
}} ${
|
|
484
|
+
}} ${Y(this.#l)}></arcgis-time-of-day-slider></calcite-label>${D({ hidden: this.hidePlayButtons, children: ie({ disabled: this._sunlightingDisabled, playing: this.dayPlaying, label: e.playDay, onClick: () => {
|
|
499
485
|
this._playingState === "day" ? this._stopPlaying() : this._playingState = "day";
|
|
500
|
-
}, scale: n }) })}${D({ hidden: this.hideTimezone, children:
|
|
486
|
+
}, scale: n }) })}${D({ hidden: this.hideTimezone, children: p`<calcite-label .scale=${n} class="timezone-input-container">${e.timezone}<calcite-input-time-zone mode=offset overlay-positioning=fixed .scale=${n} .disabled=${this._sunlightingDisabled} .value=${`${o}`} .referenceDate=${this.localDateAsString} @calciteInputTimeZoneChange=${(d) => {
|
|
501
487
|
const l = +d.target.value;
|
|
502
488
|
this.utcOffset = l / 60, this._stopPlaying();
|
|
503
|
-
}} ${
|
|
489
|
+
}} ${Y(this.#o)}></calcite-input-time-zone></calcite-label><span></span>` })}${D({ hidden: this.hideDatePicker, children: t === "date" ? this.#g({ scale: n, disabled: r }) : this.#u({ scale: n, disabled: r }) })}</div>${D({ hidden: this.hideSunLightingToggle, children: it({ scale: n, messages: e.sunLightingToggle, sunlightingEnabled: !this._sunlightingDisabled, onSunLightingToggle: (d) => {
|
|
504
490
|
this._sunlightingDisabled = !d;
|
|
505
491
|
} }) })}${D({ hidden: this.hideShadowsToggle, children: rt({ scale: n, messages: e.shadowsToggle, onShadowCheckboxChange: (d) => {
|
|
506
492
|
this._directShadowsDisabled = !d;
|
|
507
493
|
}, shadowEnabled: !this._directShadowsDisabled }) })}` });
|
|
508
494
|
}
|
|
509
495
|
}
|
|
510
|
-
function
|
|
511
|
-
return
|
|
496
|
+
function ie({ disabled: i, playing: e, onClick: t, label: r, scale: n = "m" }) {
|
|
497
|
+
return p`<calcite-button appearance=solid .scale=${n} .disabled=${i} .iconStart=${e ? "pause-f" : "play-f"} .label=${r} @click=${t} round title=${r ?? R} type=button></calcite-button>`;
|
|
512
498
|
}
|
|
513
499
|
function et({ disabled: i, date: e, onDateChange: t, scale: r }) {
|
|
514
|
-
return
|
|
500
|
+
return p`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${i} overlay-positioning=fixed placement=bottom .value=${e} .scale=${r} @calciteInputDatePickerChange=${t}></calcite-input-date-picker>`;
|
|
515
501
|
}
|
|
516
502
|
function tt({ messages: i, disabled: e, scale: t, selectedSeason: r, onSeasonChange: n }) {
|
|
517
|
-
return
|
|
503
|
+
return p`<calcite-select .disabled=${e} .label=${i.season} .scale=${t} .value=${r} @calciteSelectChange=${(s) => {
|
|
518
504
|
n(s);
|
|
519
|
-
}}>${
|
|
505
|
+
}}>${J.map((s) => p`<calcite-option .selected=${r === s} .value=${s}>${i[s]}</calcite-option>`)}</calcite-select>`;
|
|
520
506
|
}
|
|
521
507
|
function it({ messages: i, sunlightingEnabled: e, onSunLightingToggle: t, scale: r }) {
|
|
522
|
-
return
|
|
508
|
+
return p`<calcite-label layout=inline .scale=${r} title=${i?.tooltip ?? R}><calcite-checkbox .scale=${r} .checked=${e} @calciteCheckboxChange=${(n) => t(n.target.checked)}></calcite-checkbox>${i?.label}</calcite-label>`;
|
|
523
509
|
}
|
|
524
510
|
function rt({ messages: i, shadowEnabled: e, onShadowCheckboxChange: t, scale: r }) {
|
|
525
|
-
return
|
|
511
|
+
return p`<calcite-label layout=inline .scale=${r} title=${i?.tooltip ?? R}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${(n) => t(n.target.checked)}></calcite-checkbox>${i.label}</calcite-label>`;
|
|
526
512
|
}
|
|
527
|
-
|
|
513
|
+
ce("arcgis-daylight", Xe);
|
|
528
514
|
export {
|
|
529
515
|
Xe as ArcgisDaylight
|
|
530
516
|
};
|
|
@@ -240,6 +240,14 @@ export abstract class ArcgisFeatureTable extends LitElement {
|
|
|
240
240
|
* @since 4.33
|
|
241
241
|
*/
|
|
242
242
|
get fieldColumns(): Array<FieldColumn>;
|
|
243
|
+
/**
|
|
244
|
+
* Indicates whether the table respects layer view scale visibility. If no view is provided, this property is ignored.
|
|
245
|
+
* The table is empty when no layer view is available or when the layer view is not visible at the current scale.
|
|
246
|
+
*
|
|
247
|
+
* @default false
|
|
248
|
+
* @since 5.1
|
|
249
|
+
*/
|
|
250
|
+
accessor filterByLayerScaleRange: boolean;
|
|
243
251
|
/**
|
|
244
252
|
* Indicates whether the table only displays rows that are considered selected. Row selection can be modified by adding or removing associated object IDs from `highlightIds`. This will cause the store to fetch fresh features to ensure the expected sort order is honored.
|
|
245
253
|
*
|