@arcgis/map-components 5.0.0-next.170 → 5.0.0-next.171
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/{W464NEUQ.js → 4ITR6UMJ.js} +1 -1
- package/dist/cdn/{3AYU4UID.js → DUYG46XN.js} +1 -1
- package/dist/cdn/{67G4OVIE.js → KRRRO6DS.js} +1 -1
- package/dist/cdn/{EGCQFNG3.js → PLMTV34R.js} +1 -1
- package/dist/cdn/SLLNF2VM.js +2 -0
- package/dist/cdn/{GNCHWVNF.js → TAV52LGP.js} +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/components/arcgis-daylight/customElement.js +141 -139
- package/dist/components/arcgis-feature-templates-legacy/customElement.d.ts +126 -0
- package/dist/components/{arcgis-feature-templates → arcgis-feature-templates-legacy}/customElement.js +2 -2
- package/dist/components/arcgis-paste/customElement.js +2 -2
- package/dist/components/arcgis-paste/index.js +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +15 -8
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +34 -31
- 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 +7 -7
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +7 -7
- package/dist/types/preact.d.ts +8 -8
- package/dist/types/react.d.ts +9 -9
- package/dist/types/stencil.d.ts +7 -7
- package/package.json +4 -4
- package/dist/cdn/2KXVCJMQ.js +0 -2
- package/dist/components/arcgis-feature-templates/customElement.d.ts +0 -218
- /package/dist/components/{arcgis-feature-templates → arcgis-feature-templates-legacy}/index.d.ts +0 -0
- /package/dist/components/{arcgis-feature-templates → arcgis-feature-templates-legacy}/index.js +0 -0
|
@@ -11,82 +11,82 @@ import { u as be } from "../../chunks/useT9n.js";
|
|
|
11
11
|
import { u as ve } from "../../chunks/useView.js";
|
|
12
12
|
import { m as J } from "../../chunks/handle.js";
|
|
13
13
|
import { o as C, i as p, b as A, d as k, g as we } from "../../chunks/time-utils.js";
|
|
14
|
-
import { r as
|
|
14
|
+
import { r as ye, b as xe, d as Se } from "../../chunks/async-utils.js";
|
|
15
15
|
import { createTrackingTarget as De, runTracked as W, signal as Te } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
16
16
|
import { C as K } from "../../chunks/component-wrapper.js";
|
|
17
17
|
import { V as D } from "../../chunks/visible-element.js";
|
|
18
|
-
function ke(
|
|
19
|
-
return
|
|
18
|
+
function ke(i, e) {
|
|
19
|
+
return i / 15;
|
|
20
20
|
}
|
|
21
|
-
function Pe(
|
|
22
|
-
const
|
|
23
|
-
if (
|
|
21
|
+
function Pe(i, e) {
|
|
22
|
+
const t = i?.[0];
|
|
23
|
+
if (t == null)
|
|
24
24
|
return null;
|
|
25
|
-
e || (e = { hours: 0, minutes: 0, seconds: 0 }), e.hours = ke(
|
|
25
|
+
e || (e = { hours: 0, minutes: 0, seconds: 0 }), e.hours = ke(t);
|
|
26
26
|
const r = e.hours % 1;
|
|
27
27
|
e.hours -= r, e.minutes = r * 60;
|
|
28
28
|
const n = e.minutes % 1;
|
|
29
29
|
return e.minutes -= n, e.seconds = Math.round(n * 60), e;
|
|
30
30
|
}
|
|
31
|
-
function Ce(
|
|
32
|
-
const e = Pe([
|
|
31
|
+
function Ce(i) {
|
|
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 ne(
|
|
36
|
-
return (
|
|
35
|
+
function ne(i, e) {
|
|
36
|
+
return (i % e + e) % e;
|
|
37
37
|
}
|
|
38
38
|
class $e {
|
|
39
|
-
#
|
|
39
|
+
#t;
|
|
40
40
|
#r;
|
|
41
41
|
#n = De(() => {
|
|
42
|
-
this.#
|
|
42
|
+
this.#i();
|
|
43
43
|
});
|
|
44
44
|
constructor(e) {
|
|
45
45
|
this.#r = e;
|
|
46
|
-
let
|
|
46
|
+
let t;
|
|
47
47
|
W(this.#n, () => {
|
|
48
|
-
|
|
49
|
-
}), this.#
|
|
48
|
+
t = e();
|
|
49
|
+
}), this.#t = Te(t);
|
|
50
50
|
}
|
|
51
|
-
#
|
|
52
|
-
const e = this.#
|
|
51
|
+
#i() {
|
|
52
|
+
const e = this.#t.value;
|
|
53
53
|
W(this.#n, () => {
|
|
54
|
-
this.#
|
|
54
|
+
this.#t.value = this.#r(e);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
mutate(e) {
|
|
58
|
-
this.#
|
|
58
|
+
this.#t.value = e;
|
|
59
59
|
}
|
|
60
60
|
get value() {
|
|
61
|
-
return this.#
|
|
61
|
+
return this.#t.value;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function I(
|
|
65
|
-
return new $e(
|
|
64
|
+
function I(i) {
|
|
65
|
+
return new $e(i);
|
|
66
66
|
}
|
|
67
|
-
var U = Math.PI, u = Math.sin, T = Math.cos, ze = Math.asin, Me = Math.acos,
|
|
68
|
-
function Oe(
|
|
69
|
-
return
|
|
67
|
+
var U = Math.PI, u = Math.sin, T = Math.cos, ze = Math.asin, Me = Math.acos, y = U / 180, se = 1e3 * 60 * 60 * 24, oe = 2440588, ae = 2451545;
|
|
68
|
+
function Oe(i) {
|
|
69
|
+
return i.valueOf() / se - 0.5 + oe;
|
|
70
70
|
}
|
|
71
|
-
function M(
|
|
72
|
-
return new Date((
|
|
71
|
+
function M(i) {
|
|
72
|
+
return new Date((i + 0.5 - oe) * se);
|
|
73
73
|
}
|
|
74
|
-
function Le(
|
|
75
|
-
return Oe(
|
|
74
|
+
function Le(i) {
|
|
75
|
+
return Oe(i) - ae;
|
|
76
76
|
}
|
|
77
|
-
var Q =
|
|
78
|
-
function Ue(
|
|
79
|
-
return ze(u(e) * T(Q) + T(e) * u(Q) * u(
|
|
77
|
+
var Q = y * 23.4397;
|
|
78
|
+
function Ue(i, e) {
|
|
79
|
+
return ze(u(e) * T(Q) + T(e) * u(Q) * u(i));
|
|
80
80
|
}
|
|
81
|
-
function Ee(
|
|
82
|
-
return
|
|
81
|
+
function Ee(i) {
|
|
82
|
+
return y * (357.5291 + 0.98560028 * i);
|
|
83
83
|
}
|
|
84
|
-
function He(
|
|
85
|
-
return
|
|
84
|
+
function He(i) {
|
|
85
|
+
return y * (1.9148 * u(i) + 0.02 * u(2 * i) + 3e-4 * u(3 * i));
|
|
86
86
|
}
|
|
87
|
-
function Ae(
|
|
88
|
-
var
|
|
89
|
-
return
|
|
87
|
+
function Ae(i, e) {
|
|
88
|
+
var t = y * 102.9372;
|
|
89
|
+
return i + e + t + U;
|
|
90
90
|
}
|
|
91
91
|
var S = {};
|
|
92
92
|
S.PolarException = {
|
|
@@ -106,25 +106,25 @@ var N = [
|
|
|
106
106
|
[ 6, "goldenHourEnd", "goldenHour" ]
|
|
107
107
|
*/
|
|
108
108
|
], le = 9e-4;
|
|
109
|
-
function Ie(
|
|
110
|
-
return Math.round(
|
|
109
|
+
function Ie(i, e) {
|
|
110
|
+
return Math.round(i - le - e / (2 * U));
|
|
111
111
|
}
|
|
112
|
-
function X(
|
|
113
|
-
return le + (
|
|
112
|
+
function X(i, e, t) {
|
|
113
|
+
return le + (i + e) / (2 * U) + t;
|
|
114
114
|
}
|
|
115
|
-
function ee(
|
|
116
|
-
return ae +
|
|
115
|
+
function ee(i, e, t) {
|
|
116
|
+
return ae + i + 53e-4 * u(e) - 69e-4 * u(2 * t);
|
|
117
117
|
}
|
|
118
|
-
function Ne(
|
|
119
|
-
return Me((u(
|
|
118
|
+
function Ne(i, e, t) {
|
|
119
|
+
return Me((u(i) - u(e) * u(t)) / (T(e) * T(t)));
|
|
120
120
|
}
|
|
121
|
-
S.getTimes = function(
|
|
122
|
-
var r =
|
|
121
|
+
S.getTimes = function(i, e, t) {
|
|
122
|
+
var r = y * -t, n = y * e, s = Le(i), o = Ie(s, r), a = X(0, r, o), c = Ee(a), d = He(c), l = Ae(c, d), h = Ue(l, 0), g = ee(a, c, l);
|
|
123
123
|
function w(H) {
|
|
124
124
|
var z = Ne(H, n, h), ce = X(z, r, o);
|
|
125
125
|
return ee(ce, c, l);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function x(H) {
|
|
128
128
|
var z = (u(H) - u(n) * u(h)) / (T(n) * T(h));
|
|
129
129
|
return z < -1 ? S.PolarException.MIDNIGHT_SUN : z > 1 ? S.PolarException.POLAR_NIGHT : S.PolarException.NORMAL;
|
|
130
130
|
}
|
|
@@ -134,8 +134,8 @@ S.getTimes = function(t, e, i) {
|
|
|
134
134
|
polarException: S.PolarException.NORMAL
|
|
135
135
|
}, b, f, $, E, j;
|
|
136
136
|
for (b = 0, f = N.length; b < f; b += 1)
|
|
137
|
-
$ = N[b], E = w($[0] *
|
|
138
|
-
return _.polarException =
|
|
137
|
+
$ = N[b], E = w($[0] * y), j = g - (E - g), _[$[1]] = M(j), _[$[2]] = M(E);
|
|
138
|
+
return _.polarException = x(N[0][0] * y), _;
|
|
139
139
|
};
|
|
140
140
|
const Je = {
|
|
141
141
|
spring: { dayOfMonth: 20, month: 2 },
|
|
@@ -147,31 +147,31 @@ const Je = {
|
|
|
147
147
|
winter: { dayOfMonth: 21, month: 11 }
|
|
148
148
|
// Northern Winter solstice in 2014 - December 21
|
|
149
149
|
}, R = ["spring", "summer", "fall", "winter"];
|
|
150
|
-
function P(
|
|
151
|
-
const r = F(e,
|
|
150
|
+
function P(i, e, t) {
|
|
151
|
+
const r = F(e, t), { dayOfMonth: n, month: s } = Je[r], o = new Date(i.getTime());
|
|
152
152
|
return o.setMonth(s, n), o;
|
|
153
153
|
}
|
|
154
|
-
function Re(
|
|
155
|
-
const
|
|
156
|
-
return F(
|
|
154
|
+
function Re(i, e) {
|
|
155
|
+
const t = Ve(i);
|
|
156
|
+
return F(t, e);
|
|
157
157
|
}
|
|
158
|
-
function Ve(
|
|
159
|
-
const e =
|
|
160
|
-
return e >=
|
|
158
|
+
function Ve(i) {
|
|
159
|
+
const e = i.getTime(), t = P(i, "spring", "northern").getTime(), r = P(i, "summer", "northern").getTime(), n = P(i, "fall", "northern").getTime(), s = P(i, "winter", "northern").getTime();
|
|
160
|
+
return e >= t && e < r ? "spring" : e >= r && e < n ? "summer" : e >= n && e < s ? "fall" : "winter";
|
|
161
161
|
}
|
|
162
|
-
function F(
|
|
163
|
-
return e === "northern" ?
|
|
162
|
+
function F(i, e) {
|
|
163
|
+
return e === "northern" ? i : Fe(i);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
return
|
|
165
|
+
function te(i) {
|
|
166
|
+
return i >= 0 ? "northern" : "southern";
|
|
167
167
|
}
|
|
168
|
-
function Fe(
|
|
169
|
-
const e = R.indexOf(
|
|
168
|
+
function Fe(i) {
|
|
169
|
+
const e = R.indexOf(i);
|
|
170
170
|
return R[(e + 2) % 4];
|
|
171
171
|
}
|
|
172
172
|
const je = 1440, Be = 864e5;
|
|
173
|
-
function Ge(
|
|
174
|
-
const n = S.getTimes(
|
|
173
|
+
function Ge(i, e, t, r) {
|
|
174
|
+
const n = S.getTimes(i, e, t), s = n.sunrise, o = n.sunset, a = C(i, r), c = C(s, r), d = C(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,26 +182,26 @@ function Ge(t, e, i, r) {
|
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
184
|
const Ye = 100, qe = 1e3, v = 12e5, O = 72e5;
|
|
185
|
-
function
|
|
186
|
-
return ne(
|
|
185
|
+
function ie(i, e) {
|
|
186
|
+
return ne(i + e, 24);
|
|
187
187
|
}
|
|
188
188
|
function Ze({
|
|
189
|
-
mode:
|
|
189
|
+
mode: i,
|
|
190
190
|
lighting: e,
|
|
191
|
-
getPlaySpeed:
|
|
191
|
+
getPlaySpeed: t,
|
|
192
192
|
onProgress: r,
|
|
193
193
|
beforeProgress: n
|
|
194
194
|
}) {
|
|
195
195
|
let s = -1;
|
|
196
196
|
function o(a = Date.now()) {
|
|
197
197
|
const c = e.date, d = Date.now() - (a ?? 0);
|
|
198
|
-
if (
|
|
198
|
+
if (i === "day") {
|
|
199
199
|
a = Date.now();
|
|
200
|
-
const h =
|
|
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,
|
|
204
|
-
|
|
203
|
+
const w = e.displayUTCOffset ?? 0, x = ie(g.getUTCHours(), w), _ = ie(c.getUTCHours(), w);
|
|
204
|
+
x < _ && (g = new Date(c.getTime() + h - Be));
|
|
205
205
|
const b = e.clone();
|
|
206
206
|
n?.(), e.date = g, r?.(b, e);
|
|
207
207
|
}
|
|
@@ -217,17 +217,17 @@ function Ze({
|
|
|
217
217
|
return o(), J(() => cancelAnimationFrame(s));
|
|
218
218
|
}
|
|
219
219
|
const L = v / 4;
|
|
220
|
-
function We(
|
|
220
|
+
function We(i, e, t, r) {
|
|
221
221
|
const {
|
|
222
222
|
day: n,
|
|
223
223
|
night: s = n,
|
|
224
224
|
twilight: o = n
|
|
225
225
|
} = r, a = n * L, c = s * L, d = o * L;
|
|
226
|
-
if (
|
|
226
|
+
if (i == null || e == null || Number.isNaN(i.getTime()) && Number.isNaN(e.getTime()))
|
|
227
227
|
return a;
|
|
228
|
-
const l =
|
|
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
229
|
let f = a;
|
|
230
|
-
return l >= w && l <=
|
|
230
|
+
return l >= w && l <= x ? l - w <= v ? f = c - (l - w) / v * (c - d) : x - l <= v / 2 ? f = a - (x - l) / v * 2 * (a - d) : f = d : l >= _ && l <= b ? l - _ <= v / 2 ? f = a - (l - _) / v * 2 * (a - d) : b - l <= v ? f = c - (b - l) / v * (c - d) : f = d : (l < h || l > g) && (f = c), f;
|
|
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:hidden;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-plus);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,
|
|
@@ -238,9 +238,9 @@ class Xe extends fe {
|
|
|
238
238
|
constructor() {
|
|
239
239
|
super(...arguments), this.messages = be({ blocking: !0 }), this.#r = "none", this.#n = null, this.#o = q(), this.#a = q(), this.#d = 200, this.#h = 200, this.#e = {}, this._offset = I((e) => p(this._lighting) ? this._lighting.displayUTCOffset ?? e : e), this._timesliderPosition = I((e) => {
|
|
240
240
|
if (p(this._lighting)) {
|
|
241
|
-
const
|
|
241
|
+
const t = this._lighting.displayUTCOffset ?? 0, r = this._lighting.date;
|
|
242
242
|
if (A(r)) {
|
|
243
|
-
const { minutesSinceMidnight: n } = k(r,
|
|
243
|
+
const { minutesSinceMidnight: n } = k(r, t);
|
|
244
244
|
return n;
|
|
245
245
|
} else
|
|
246
246
|
return e;
|
|
@@ -257,39 +257,39 @@ class Xe extends fe {
|
|
|
257
257
|
get _view() {
|
|
258
258
|
return this.view?.type === "3d" ? this.view : void 0;
|
|
259
259
|
}
|
|
260
|
-
#
|
|
260
|
+
#t;
|
|
261
261
|
#r;
|
|
262
262
|
#n;
|
|
263
|
-
#
|
|
263
|
+
#i;
|
|
264
264
|
#o;
|
|
265
265
|
#a;
|
|
266
266
|
#d;
|
|
267
267
|
#h;
|
|
268
268
|
#l() {
|
|
269
|
-
if (this.#
|
|
269
|
+
if (this.#i)
|
|
270
270
|
return;
|
|
271
|
-
const e =
|
|
272
|
-
if (this.#
|
|
273
|
-
const
|
|
274
|
-
this._lighting.date = o, this._lighting.displayUTCOffset =
|
|
271
|
+
const e = ye(() => {
|
|
272
|
+
if (this.#i?.remove(), p(this._lighting)) {
|
|
273
|
+
const t = this.utcOffset ?? 0, r = this.timeSliderPosition ?? 0, n = this.localDate, s = r - t * 60, o = C(n, s, "minutes");
|
|
274
|
+
this._lighting.date = o, this._lighting.displayUTCOffset = t;
|
|
275
275
|
}
|
|
276
276
|
}, { timeout: this.#d });
|
|
277
|
-
this.#
|
|
278
|
-
Se(e), this.#
|
|
277
|
+
this.#i = J(() => {
|
|
278
|
+
Se(e), this.#i = void 0;
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
#u({ scale: e, disabled:
|
|
281
|
+
#u({ scale: e, disabled: t }) {
|
|
282
282
|
const { messages: r } = this;
|
|
283
|
-
return m`<calcite-label .scale=${e} class="date-picker-container">${r.date}${
|
|
283
|
+
return m`<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: re({ playing: this.yearPlaying, disabled:
|
|
286
|
+
} })}</calcite-label>${D({ hidden: this.hidePlayButtons, children: re({ 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
|
-
#p({ scale: e, disabled:
|
|
290
|
+
#p({ scale: e, disabled: t }) {
|
|
291
291
|
const { messages: r } = this;
|
|
292
|
-
return m`<calcite-label .scale=${e} class="date-picker-container">${r.season}${
|
|
292
|
+
return m`<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
|
}
|
|
@@ -304,7 +304,7 @@ class Xe extends fe {
|
|
|
304
304
|
return this.#r;
|
|
305
305
|
}
|
|
306
306
|
set _playingState(e) {
|
|
307
|
-
this.#r = e, this.#s?.remove(), e === "none" ? this.#
|
|
307
|
+
this.#r = e, this.#s?.remove(), e === "none" ? this.#t?.remove() : (this._play(e), this._emitUserDateTimeChangeEvent());
|
|
308
308
|
}
|
|
309
309
|
get _lighting() {
|
|
310
310
|
return this._view?.environment?.lighting;
|
|
@@ -314,10 +314,10 @@ class Xe extends fe {
|
|
|
314
314
|
}
|
|
315
315
|
set _sunlightingDisabled(e) {
|
|
316
316
|
this.#e.sunlightingDisabled = e;
|
|
317
|
-
const
|
|
318
|
-
if (
|
|
317
|
+
const t = this._view?.environment;
|
|
318
|
+
if (t == null)
|
|
319
319
|
return;
|
|
320
|
-
const r =
|
|
320
|
+
const r = t.lighting, n = this.#n;
|
|
321
321
|
this.#n = r;
|
|
322
322
|
const s = {
|
|
323
323
|
directShadowsEnabled: r.directShadowsEnabled,
|
|
@@ -326,15 +326,15 @@ class Xe extends fe {
|
|
|
326
326
|
p(r) && (s.cameraTrackingEnabled = r.cameraTrackingEnabled);
|
|
327
327
|
const o = e ? "virtual" : "sun";
|
|
328
328
|
let a;
|
|
329
|
-
n?.type === o ? a = n : a = e ? new me() : new pe(), a.set(s),
|
|
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,
|
|
333
|
-
return Re(this.localDate,
|
|
332
|
+
const e = this._view?.camera?.position?.latitude ?? 0, t = te(e);
|
|
333
|
+
return Re(this.localDate, t);
|
|
334
334
|
}
|
|
335
335
|
set currentSeason(e) {
|
|
336
336
|
this._stopPlaying();
|
|
337
|
-
const
|
|
337
|
+
const t = this._view?.camera?.position?.latitude ?? 0, r = te(t), n = F(e, r);
|
|
338
338
|
this.localDate = P(this.localDate, n, "northern"), this._emitUserDateTimeChangeEvent();
|
|
339
339
|
}
|
|
340
340
|
get dayPlaying() {
|
|
@@ -365,10 +365,10 @@ class Xe extends fe {
|
|
|
365
365
|
return this._localDate.value != null ? new Date(this._localDate.value) : /* @__PURE__ */ new Date();
|
|
366
366
|
}
|
|
367
367
|
set localDate(e) {
|
|
368
|
-
const
|
|
369
|
-
if (A(
|
|
370
|
-
|
|
371
|
-
const r =
|
|
368
|
+
const t = new Date(e);
|
|
369
|
+
if (A(t)) {
|
|
370
|
+
t.setUTCFullYear(t.getFullYear(), t.getMonth(), t.getDate());
|
|
371
|
+
const r = t.toISOString().slice(0, 10);
|
|
372
372
|
this._localDate.mutate(r), this.#l();
|
|
373
373
|
}
|
|
374
374
|
}
|
|
@@ -386,23 +386,23 @@ class Xe extends fe {
|
|
|
386
386
|
B(() => {
|
|
387
387
|
let e = null;
|
|
388
388
|
if (p(this._lighting)) {
|
|
389
|
-
const
|
|
389
|
+
const t = this._lighting.displayUTCOffset ?? 0, r = this._lighting.date;
|
|
390
390
|
if (A(r)) {
|
|
391
|
-
const { minutesSinceMidnight: n } = k(r,
|
|
391
|
+
const { minutesSinceMidnight: n } = k(r, t);
|
|
392
392
|
e = n;
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
return e;
|
|
396
396
|
}, (e) => {
|
|
397
|
-
const
|
|
398
|
-
e != null &&
|
|
397
|
+
const t = this.#g;
|
|
398
|
+
e != null && t !== e && this._emitUserDateTimeChangeEvent();
|
|
399
399
|
}, { sync: !0 }),
|
|
400
400
|
B(() => {
|
|
401
401
|
const e = this._view?.camera?.position;
|
|
402
402
|
return e ? Ce(e) : void 0;
|
|
403
403
|
}, (e) => {
|
|
404
|
-
const
|
|
405
|
-
p(
|
|
404
|
+
const t = this._lighting;
|
|
405
|
+
p(t) && t.cameraTrackingEnabled && (t.displayUTCOffset = e);
|
|
406
406
|
}, { sync: !0, initial: !0 }),
|
|
407
407
|
he(() => !p(this._lighting), () => {
|
|
408
408
|
this._stopPlaying();
|
|
@@ -411,12 +411,12 @@ class Xe extends fe {
|
|
|
411
411
|
this.requestUpdate();
|
|
412
412
|
})
|
|
413
413
|
]), this.manager.onDisconnected(() => {
|
|
414
|
-
this.#
|
|
414
|
+
this.#t?.remove(), this.#i?.remove(), this.#s?.remove();
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
willUpdate(e) {
|
|
418
418
|
if (super.willUpdate(e), !!this.#c && p(this._lighting) && e.has("utcOffset")) {
|
|
419
|
-
const
|
|
419
|
+
const t = this.utcOffset ?? 0, r = this._lighting.displayUTCOffset ?? 0, n = this.timeSliderPosition ?? 0, s = this.localDate, o = n - r * 60, a = C(s, o, "minutes"), { minutesSinceMidnight: c, localDate: d } = k(a, t);
|
|
420
420
|
this._timesliderPosition.mutate(c), this._localDate.mutate(d);
|
|
421
421
|
}
|
|
422
422
|
}
|
|
@@ -427,8 +427,10 @@ class Xe extends fe {
|
|
|
427
427
|
remove: () => {
|
|
428
428
|
e.abort();
|
|
429
429
|
}
|
|
430
|
-
})), await
|
|
430
|
+
})), await xe(ge(() => this._view?.ready, { signal: e.signal }).then(() => {
|
|
431
431
|
this.utcOffset = this.#e.utcOffset ?? this.utcOffset, this.timeSliderPosition = this.#e.timeSliderPosition ?? this.timeSliderPosition, this.localDate = this.#e.localDate ?? this.localDate, this.#e.directShadowsDisabled != null && (this._directShadowsDisabled = this.#e.directShadowsDisabled), this.#e.sunlightingDisabled != null && (this._sunlightingDisabled = this.#e.sunlightingDisabled), this.#e = {};
|
|
432
|
+
const t = this._playingState;
|
|
433
|
+
t !== "none" && this.#t == null && this._play(t);
|
|
432
434
|
})), this.#c = !0;
|
|
433
435
|
}
|
|
434
436
|
_emitUserDateTimeChangeEvent() {
|
|
@@ -441,12 +443,12 @@ class Xe extends fe {
|
|
|
441
443
|
#m(e) {
|
|
442
444
|
if (this.#s)
|
|
443
445
|
return;
|
|
444
|
-
const
|
|
446
|
+
const t = setTimeout(() => {
|
|
445
447
|
const r = e.displayUTCOffset ?? 0, n = e.date, { minutesSinceMidnight: s } = k(n, r);
|
|
446
448
|
this._timesliderPosition.mutate(s), this.#s?.remove();
|
|
447
449
|
}, this.#h);
|
|
448
450
|
this.#s = J(() => {
|
|
449
|
-
clearTimeout(
|
|
451
|
+
clearTimeout(t), this.#s = void 0;
|
|
450
452
|
const r = this._lighting;
|
|
451
453
|
if (p(r)) {
|
|
452
454
|
const n = r.displayUTCOffset ?? 0, s = r.date, { minutesSinceMidnight: o } = k(s, n);
|
|
@@ -455,15 +457,15 @@ class Xe extends fe {
|
|
|
455
457
|
});
|
|
456
458
|
}
|
|
457
459
|
_play(e) {
|
|
458
|
-
this.#
|
|
459
|
-
const
|
|
460
|
-
if (
|
|
460
|
+
this.#t?.remove();
|
|
461
|
+
const t = this._view;
|
|
462
|
+
if (t == null || this._sunlightingDisabled)
|
|
461
463
|
return;
|
|
462
|
-
const r =
|
|
464
|
+
const r = t.environment.lighting;
|
|
463
465
|
if (!p(r))
|
|
464
466
|
return;
|
|
465
467
|
let n = 0;
|
|
466
|
-
this.#
|
|
468
|
+
this.#t = Ze({
|
|
467
469
|
mode: e,
|
|
468
470
|
lighting: r,
|
|
469
471
|
beforeProgress: () => {
|
|
@@ -483,7 +485,7 @@ class Xe extends fe {
|
|
|
483
485
|
});
|
|
484
486
|
}
|
|
485
487
|
render() {
|
|
486
|
-
const { messages: e, dateOrSeason:
|
|
488
|
+
const { messages: e, dateOrSeason: t } = this, r = this._sunlightingDisabled, n = "m";
|
|
487
489
|
if (!(this._view?.type === "3d"))
|
|
488
490
|
return K({ class: "root", label: e.componentLabel, title: e.title, hideHeader: this.hideHeader, headingLevel: this.headingLevel, children: m`<div class="unsupported"><p>${e.unsupported}</p></div>` });
|
|
489
491
|
const o = (this.utcOffset ?? 0) * 60, a = this.view?.ready === !0, c = Array.isArray(this.timeSliderSteps) ? this.timeSliderSteps.at(0) : this.timeSliderSteps;
|
|
@@ -494,29 +496,29 @@ class Xe extends fe {
|
|
|
494
496
|
}, scale: n }) })}${D({ hidden: this.hideTimezone, children: m`<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) => {
|
|
495
497
|
const l = +d.target.value;
|
|
496
498
|
this.utcOffset = l / 60, this._stopPlaying();
|
|
497
|
-
}} ${Z(this.#o)}></calcite-input-time-zone></calcite-label><span></span>` })}${D({ hidden: this.hideDatePicker, children:
|
|
499
|
+
}} ${Z(this.#o)}></calcite-input-time-zone></calcite-label><span></span>` })}${D({ hidden: this.hideDatePicker, children: t === "date" ? this.#u({ scale: n, disabled: r }) : this.#p({ scale: n, disabled: r }) })}</div>${D({ hidden: this.hideSunLightingToggle, children: it({ scale: n, messages: e.sunLightingToggle, sunlightingEnabled: !this._sunlightingDisabled, onSunLightingToggle: (d) => {
|
|
498
500
|
this._sunlightingDisabled = !d;
|
|
499
|
-
} }) })}${D({ hidden: this.hideShadowsToggle, children:
|
|
501
|
+
} }) })}${D({ hidden: this.hideShadowsToggle, children: rt({ scale: n, messages: e.shadowsToggle, onShadowCheckboxChange: (d) => {
|
|
500
502
|
this._directShadowsDisabled = !d;
|
|
501
503
|
}, shadowEnabled: !this._directShadowsDisabled }) })}` });
|
|
502
504
|
}
|
|
503
505
|
}
|
|
504
|
-
function re({ disabled:
|
|
505
|
-
return m`<calcite-button appearance=solid .scale=${n} .disabled=${
|
|
506
|
+
function re({ disabled: i, playing: e, onClick: t, label: r, scale: n = "m" }) {
|
|
507
|
+
return m`<calcite-button appearance=solid .scale=${n} .disabled=${i} .iconStart=${e ? "pause-f" : "play-f"} .label=${r} @click=${t} round title=${r ?? V} type=button></calcite-button>`;
|
|
506
508
|
}
|
|
507
|
-
function
|
|
508
|
-
return m`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${
|
|
509
|
+
function et({ disabled: i, date: e, onDateChange: t, scale: r }) {
|
|
510
|
+
return m`<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>`;
|
|
509
511
|
}
|
|
510
|
-
function
|
|
511
|
-
return m`<calcite-select .disabled=${e} .label=${
|
|
512
|
+
function tt({ messages: i, disabled: e, scale: t, selectedSeason: r, onSeasonChange: n }) {
|
|
513
|
+
return m`<calcite-select .disabled=${e} .label=${i.season} .scale=${t} .value=${r} @calciteSelectChange=${(s) => {
|
|
512
514
|
n(s);
|
|
513
|
-
}}>${R.map((s) => m`<calcite-option .selected=${r === s} .value=${s}>${
|
|
515
|
+
}}>${R.map((s) => m`<calcite-option .selected=${r === s} .value=${s}>${i[s]}</calcite-option>`)}</calcite-select>`;
|
|
514
516
|
}
|
|
515
|
-
function
|
|
516
|
-
return m`<calcite-label layout=inline .scale=${r} title=${
|
|
517
|
+
function it({ messages: i, sunlightingEnabled: e, onSunLightingToggle: t, scale: r }) {
|
|
518
|
+
return m`<calcite-label layout=inline .scale=${r} title=${i?.tooltip ?? V}><calcite-checkbox .scale=${r} .checked=${e} @calciteCheckboxChange=${(n) => t(n.target.checked)}></calcite-checkbox>${i?.label}</calcite-label>`;
|
|
517
519
|
}
|
|
518
|
-
function
|
|
519
|
-
return m`<calcite-label layout=inline .scale=${r} title=${
|
|
520
|
+
function rt({ messages: i, shadowEnabled: e, onShadowCheckboxChange: t, scale: r }) {
|
|
521
|
+
return m`<calcite-label layout=inline .scale=${r} title=${i?.tooltip ?? V}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${(n) => t(n.target.checked)}></calcite-checkbox>${i.label}</calcite-label>`;
|
|
520
522
|
}
|
|
521
523
|
de("arcgis-daylight", Xe);
|
|
522
524
|
export {
|