@arcgis/map-components 5.0.9 → 5.0.11
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/{UFTCAB4S.js → 24N4MIZ3.js} +1 -1
- package/dist/cdn/{VOF2BB42.js → 2AANJJNN.js} +1 -1
- package/dist/cdn/{DILQ5ZHW.js → 2C5RFFRM.js} +1 -1
- package/dist/cdn/{VNBEWPPA.js → 2EO2ZNIR.js} +1 -1
- package/dist/cdn/{O2OBJLFG.js → 2JISUZKA.js} +1 -1
- package/dist/cdn/{J4XXGRHT.js → 2K755WQA.js} +1 -1
- package/dist/cdn/{63PV4O2C.js → 2KDN7GS7.js} +1 -1
- package/dist/cdn/{6PEKCA6M.js → 2RJV4ME3.js} +1 -1
- package/dist/cdn/{ZJ7NFO4E.js → 2RRVYK4B.js} +1 -1
- package/dist/cdn/{5AMDPFRT.js → 2V3SFXCB.js} +1 -1
- package/dist/cdn/{M4UKU7FG.js → 34P5JQF2.js} +1 -1
- package/dist/cdn/{REEE7ZD4.js → 3VGUWAHH.js} +1 -1
- package/dist/cdn/{CP66DHOB.js → 476HUIR4.js} +1 -1
- package/dist/cdn/{5D3OPFO6.js → 4ARCV6SJ.js} +1 -1
- package/dist/cdn/{N7MAQR2P.js → 4CNN2AUJ.js} +1 -1
- package/dist/cdn/{OL26TQG5.js → 4COIUUN3.js} +1 -1
- package/dist/cdn/{CHWPXOTK.js → 4EP6T6CJ.js} +1 -1
- package/dist/cdn/{B2IKRFCZ.js → 4K7BZUBK.js} +1 -1
- package/dist/cdn/{XCQ7IZP7.js → 4PO7AWFR.js} +1 -1
- package/dist/cdn/{X6GXBS3S.js → 5BMBCF67.js} +1 -1
- package/dist/cdn/{ZLW34P3M.js → 5DPFD5GG.js} +1 -1
- package/dist/cdn/{N2FBHLJW.js → 5EVDACLW.js} +1 -1
- package/dist/cdn/{QMAKTYHO.js → 5FADSWTR.js} +1 -1
- package/dist/cdn/{7OYKJVUA.js → 5HP2RTRM.js} +1 -1
- package/dist/cdn/{IKFSAA63.js → 5JRLNXW5.js} +1 -1
- package/dist/cdn/{SIDLBPTD.js → 5NXJ3JFL.js} +1 -1
- package/dist/cdn/{6S5FGC2T.js → 5U7UVQTS.js} +1 -1
- package/dist/cdn/{IK576APM.js → 5UU5TX53.js} +1 -1
- package/dist/cdn/{6AEBTGQW.js → 65LYQBBD.js} +1 -1
- package/dist/cdn/{OTFAWIH3.js → 6BGP22MF.js} +1 -1
- package/dist/cdn/6DB32K7F.js +2 -0
- package/dist/cdn/{CRAVU4NQ.js → 6GXSNMMO.js} +1 -1
- package/dist/cdn/{FE2KPAWA.js → 6HIELVYO.js} +1 -1
- package/dist/cdn/{IQHLFXSQ.js → 6JPOPEAX.js} +1 -1
- package/dist/cdn/{MDZFW3DQ.js → 6RFWIRKD.js} +1 -1
- package/dist/cdn/{EJ423JFJ.js → 6UTIUR3P.js} +1 -1
- package/dist/cdn/{LUFXLPUS.js → 72IIYXRM.js} +1 -1
- package/dist/cdn/{4DXJDSVY.js → 76AZ6XAN.js} +1 -1
- package/dist/cdn/{ADBVVI6T.js → 76SK5T5C.js} +1 -1
- package/dist/cdn/{FCJDMEDA.js → 7BTOJHWG.js} +1 -1
- package/dist/cdn/{CHG6QQTJ.js → 7H2M6YE5.js} +1 -1
- package/dist/cdn/{FXK3JLXK.js → 7I6LYKXG.js} +1 -1
- package/dist/cdn/{HKN2NLWX.js → 7M6C7CV4.js} +1 -1
- package/dist/cdn/{ROPP7UII.js → 7PZOYIE2.js} +1 -1
- package/dist/cdn/{Z523JA3N.js → A47PG7NL.js} +1 -1
- package/dist/cdn/{N52FS26S.js → AGLCNN47.js} +1 -1
- package/dist/cdn/{NPSSILOD.js → B23JA5SX.js} +1 -1
- package/dist/cdn/{6FZOIAHV.js → BBV4H5CX.js} +1 -1
- package/dist/cdn/{75RW2J4E.js → BGZC4EZX.js} +1 -1
- package/dist/cdn/{PAQQTN4Z.js → BPKHDPEY.js} +1 -1
- package/dist/cdn/{OI4OVNDW.js → BS7DCDKL.js} +1 -1
- package/dist/cdn/CF4FKK63.js +2 -0
- package/dist/cdn/{7LUSV2BU.js → CUMY7HL7.js} +1 -1
- package/dist/cdn/{KMWORGPV.js → CWBHTXCU.js} +1 -1
- package/dist/cdn/{GDCXXLVQ.js → D2EUJPQB.js} +1 -1
- package/dist/cdn/{RFKTE5Y3.js → D35WJ5RR.js} +1 -1
- package/dist/cdn/{FMHE26OT.js → D6NIAF5I.js} +1 -1
- package/dist/cdn/{W6PVXTJA.js → D7OVXAST.js} +1 -1
- package/dist/cdn/{5NNCHNZL.js → DAIRYKHE.js} +1 -1
- package/dist/cdn/{A4HJGXJA.js → DCB6UMBW.js} +1 -1
- package/dist/cdn/{Z5QI4JII.js → DFTHWS7D.js} +1 -1
- package/dist/cdn/{OCRVPZE6.js → DGPW4KR2.js} +1 -1
- package/dist/cdn/{ZWK7PABD.js → DRYK2DYT.js} +1 -1
- package/dist/cdn/{7YPGUOXF.js → E5J4D6Y5.js} +1 -1
- package/dist/cdn/{BK2BEM7X.js → E6MT7ADY.js} +1 -1
- package/dist/cdn/{KS24TV5L.js → EAA7WVRS.js} +1 -1
- package/dist/cdn/{NXJOQCT6.js → ELA3YKOH.js} +1 -1
- package/dist/cdn/{QB4MVNYO.js → EPLKFSS6.js} +1 -1
- package/dist/cdn/{VQHABEOI.js → EUXMJXVW.js} +1 -1
- package/dist/cdn/{AKJTI3CB.js → FAYNZ3HV.js} +1 -1
- package/dist/cdn/{7PC6HJRZ.js → FEAIACIV.js} +1 -1
- package/dist/cdn/{COPEBB4O.js → FUTVVPNN.js} +1 -1
- package/dist/cdn/{NFKPGOKJ.js → FVTSJDHZ.js} +1 -1
- package/dist/cdn/{FDPOIISH.js → GGSVGUMQ.js} +1 -1
- package/dist/cdn/{46XXSXOH.js → GICCX2BM.js} +1 -1
- package/dist/cdn/{WQYJCP25.js → GJ4QMEOS.js} +1 -1
- package/dist/cdn/{VTY7CHHC.js → GJKJLZH5.js} +1 -1
- package/dist/cdn/{YKB6JXOW.js → GWDKUW4P.js} +1 -1
- package/dist/cdn/{XWIF2VCQ.js → GZOOQ6TZ.js} +1 -1
- package/dist/cdn/{TY5ULV6U.js → HLQHRLXH.js} +1 -1
- package/dist/cdn/{ZBOE7CQG.js → HLZYLHVU.js} +1 -1
- package/dist/cdn/{UXJ4HHI6.js → HTUAP5U6.js} +1 -1
- package/dist/cdn/{U4PSPA3N.js → HWLJQHYX.js} +1 -1
- package/dist/cdn/{DUDKIKOL.js → HYRSLE4S.js} +1 -1
- package/dist/cdn/{EVVN2KOH.js → HZUJ3LRJ.js} +1 -1
- package/dist/cdn/{3C7TU26D.js → I2UKHSIY.js} +1 -1
- package/dist/cdn/{DSCMKLP7.js → IEVAWYUC.js} +1 -1
- package/dist/cdn/{MAN4QOFV.js → IGKGDT6C.js} +1 -1
- package/dist/cdn/{EOTTDTPX.js → IOA5GX5J.js} +1 -1
- package/dist/cdn/{I7PBCEJQ.js → IVOXK6BT.js} +1 -1
- package/dist/cdn/{XXYVU3ZY.js → IWGVZPF7.js} +1 -1
- package/dist/cdn/{WEFDSI5P.js → IYXWVUAW.js} +1 -1
- package/dist/cdn/{KNDCEBLE.js → JBW24GGA.js} +1 -1
- package/dist/cdn/{XNHSEGEV.js → JC6F3COH.js} +1 -1
- package/dist/cdn/{3AUCP5C4.js → JL33CQYR.js} +1 -1
- package/dist/cdn/{K5FPQVY5.js → JRDX23K3.js} +1 -1
- package/dist/cdn/{ZAUN6QZE.js → JYIF4GHG.js} +1 -1
- package/dist/cdn/{2VFUNOJO.js → JZOFAE75.js} +1 -1
- package/dist/cdn/K5JHUNBC.js +2 -0
- package/dist/cdn/{BL36LEOA.js → KHNDGNIB.js} +1 -1
- package/dist/cdn/{TAZBTURG.js → KKNIX2J7.js} +1 -1
- package/dist/cdn/{QGXVLS4I.js → L2X4BK37.js} +1 -1
- package/dist/cdn/{FDZNQS6O.js → LBZ4RWDP.js} +1 -1
- package/dist/cdn/{ZNNRV54H.js → LLTE6JMI.js} +1 -1
- package/dist/cdn/{VQUGOVVC.js → LQN4OERN.js} +1 -1
- package/dist/cdn/LRTBVIQH.js +2 -0
- package/dist/cdn/{4LKAHK66.js → LZAU2KWF.js} +1 -1
- package/dist/cdn/{4N3A7GAX.js → MBQX66B7.js} +1 -1
- package/dist/cdn/MBSDNQTH.js +2 -0
- package/dist/cdn/{LIH5E6WA.js → MWJXXWBC.js} +1 -1
- package/dist/cdn/{NBZNGH27.js → MYLRCT7H.js} +1 -1
- package/dist/cdn/{RVT4UILR.js → N3DWUI4Y.js} +1 -1
- package/dist/cdn/{P3NP6ZB4.js → N3JV5J3A.js} +1 -1
- package/dist/cdn/{GWEYUTSQ.js → NMS7MZIV.js} +1 -1
- package/dist/cdn/{S2VFUIM4.js → NTPJH3E2.js} +1 -1
- package/dist/cdn/{TN2GQ6BU.js → O3Z4W3PE.js} +1 -1
- package/dist/cdn/{QXUAF4H2.js → O4LV53ZM.js} +1 -1
- package/dist/cdn/{SEEERDMZ.js → O5UZ4OM7.js} +1 -1
- package/dist/cdn/{PY26YT2O.js → OAX2TBCS.js} +1 -1
- package/dist/cdn/{RJDETA6V.js → OESKJZG2.js} +1 -1
- package/dist/cdn/{A6HGLWAQ.js → OUYASK64.js} +1 -1
- package/dist/cdn/{EO3XOH62.js → OZ62VJ7Y.js} +1 -1
- package/dist/cdn/{MJDVSEKM.js → P23UGGO5.js} +1 -1
- package/dist/cdn/{AUQ6QBNN.js → PC3Q3R24.js} +1 -1
- package/dist/cdn/{KNEWXQBW.js → PCOKJIO5.js} +1 -1
- package/dist/cdn/{MI5PGDZC.js → PDNB36SA.js} +1 -1
- package/dist/cdn/{VJAL4VSI.js → PLL7X3JE.js} +1 -1
- package/dist/cdn/{4RVAIH7D.js → PUXGKYRJ.js} +1 -1
- package/dist/cdn/{KFIGHMHD.js → Q7MQI44B.js} +1 -1
- package/dist/cdn/{YM4JSHPE.js → QARXGILE.js} +1 -1
- package/dist/cdn/{76UNLRRT.js → QL2RWI7U.js} +1 -1
- package/dist/cdn/{YWFYF2NQ.js → QQITL3KZ.js} +1 -1
- package/dist/cdn/{2GDXTIBA.js → QQT4HSJY.js} +1 -1
- package/dist/cdn/{UVHWOUPS.js → QRV4AILC.js} +1 -1
- package/dist/cdn/{MI4TZ44E.js → QTDFKPAB.js} +1 -1
- package/dist/cdn/{LXD7K2NB.js → R3QLGHI4.js} +1 -1
- package/dist/cdn/{J6JGY46E.js → R3XFGYAM.js} +1 -1
- package/dist/cdn/{TPAIGYVQ.js → R43YVQF3.js} +1 -1
- package/dist/cdn/{JJPWMN6Z.js → RDAOOZNB.js} +1 -1
- package/dist/cdn/{6EXCNT6F.js → RDXULYN7.js} +1 -1
- package/dist/cdn/{UZC7SU6P.js → RFGCTWZK.js} +1 -1
- package/dist/cdn/{XGQ3KD67.js → RJFYH42R.js} +1 -1
- package/dist/cdn/{Y7W7LIQ5.js → RUFO6LPY.js} +1 -1
- package/dist/cdn/{656A5BJR.js → RVA4DXPZ.js} +1 -1
- package/dist/cdn/{KGTP6M3K.js → RWUSO5QX.js} +1 -1
- package/dist/cdn/{WCSTDXKE.js → STTFZCRA.js} +1 -1
- package/dist/cdn/{YXB32YEG.js → SWPP4SXX.js} +1 -1
- package/dist/cdn/{XCO7R5FI.js → T4BA5D7L.js} +1 -1
- package/dist/cdn/{DMNCKH5P.js → T5COSQNW.js} +1 -1
- package/dist/cdn/{YJQMZWR2.js → TLBMGFJD.js} +1 -1
- package/dist/cdn/{PHJQSUIR.js → TUACBBBF.js} +1 -1
- package/dist/cdn/{6XA4QYJD.js → U2I24UUW.js} +1 -1
- package/dist/cdn/{PKGONXXZ.js → U5IOQPZP.js} +1 -1
- package/dist/cdn/{H44Z6WVT.js → U7ED7C63.js} +1 -1
- package/dist/cdn/{BCJACM5B.js → UC72L4VP.js} +1 -1
- package/dist/cdn/{AJYPWDQ4.js → UIWHNGKM.js} +1 -1
- package/dist/cdn/{67MVWL3M.js → ULMZMFHB.js} +1 -1
- package/dist/cdn/{O7IUDRS5.js → UMI2YGTO.js} +1 -1
- package/dist/cdn/{4K7LYUJT.js → UNNDM462.js} +1 -1
- package/dist/cdn/{E2ZRNLQ4.js → UPHB4OHC.js} +1 -1
- package/dist/cdn/{DZZBM4W2.js → UZUOLMKR.js} +1 -1
- package/dist/cdn/{OBNKAQHP.js → VOCVLYNG.js} +1 -1
- package/dist/cdn/{KX4GEWMJ.js → VRYVYSBS.js} +1 -1
- package/dist/cdn/{QWI55OUT.js → VS4K5L3V.js} +1 -1
- package/dist/cdn/{2NDFWUCM.js → WHMJJK2B.js} +1 -1
- package/dist/cdn/{JETFYEYK.js → WT7VPUQJ.js} +1 -1
- package/dist/cdn/{KJX5KQ6U.js → WUEFC3FH.js} +1 -1
- package/dist/cdn/{MYEVEM6U.js → WWIRR7TS.js} +1 -1
- package/dist/cdn/{56EDKDTA.js → XBX4EROU.js} +1 -1
- package/dist/cdn/{NI75EV4N.js → Y6W5KVMT.js} +1 -1
- package/dist/cdn/{K6DPHLBT.js → Y7N3A2X2.js} +1 -1
- package/dist/cdn/{3356KWA6.js → YEON37K5.js} +1 -1
- package/dist/cdn/{KI5YLSI2.js → YN4EOQJM.js} +1 -1
- package/dist/cdn/{4MU7442G.js → YT5NDMWD.js} +1 -1
- package/dist/cdn/{RL5ZSVTJ.js → YZKGEUSD.js} +1 -1
- package/dist/cdn/{EY5PJQ6D.js → Z4UFIAAA.js} +1 -1
- package/dist/cdn/{XJSJ2OBF.js → ZAJBY7KH.js} +1 -1
- package/dist/cdn/ZBEWF7MQ.js +2 -0
- package/dist/cdn/{COQ2XJC2.js → ZETSP34R.js} +1 -1
- package/dist/cdn/{XQZERL7P.js → ZFVXBWVI.js} +1 -1
- package/dist/cdn/{6ZCI374D.js → ZJ2PD6FC.js} +1 -1
- package/dist/cdn/{JM2ZIXRR.js → ZQGRC3HK.js} +1 -1
- package/dist/cdn/{F6VAE5XF.js → ZRYKUZPL.js} +1 -1
- package/dist/cdn/{VBTL45PR.js → ZTLSKDOH.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/slots.js +4 -4
- package/dist/chunks/useArcgisViewReadyError.js +6 -6
- package/dist/components/arcgis-daylight/customElement.js +132 -132
- package/dist/components/arcgis-editor/customElement.d.ts +36 -2
- package/dist/components/arcgis-editor/customElement.js +22 -13
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +20 -19
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +34 -34
- package/dist/components/arcgis-slice/customElement.js +5 -4
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +5 -5
- 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/loader.js +1 -1
- package/package.json +4 -4
- package/dist/cdn/4F6BUPI4.js +0 -2
- package/dist/cdn/AUNGDJFX.js +0 -2
- package/dist/cdn/D54LG5AH.js +0 -2
- package/dist/cdn/FYLODZUU.js +0 -2
- package/dist/cdn/JCG55RIS.js +0 -2
- package/dist/cdn/UMD2QW7I.js +0 -2
|
@@ -15,78 +15,78 @@ 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(t, e) {
|
|
19
|
+
return t / 15;
|
|
20
20
|
}
|
|
21
|
-
function Pe(
|
|
22
|
-
const
|
|
23
|
-
if (
|
|
21
|
+
function Pe(t, e) {
|
|
22
|
+
const i = t?.[0];
|
|
23
|
+
if (i == 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(i);
|
|
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(t) {
|
|
32
|
+
const e = Pe([t.longitude, t.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(t, e) {
|
|
36
|
+
return (t % e + e) % e;
|
|
37
37
|
}
|
|
38
38
|
class $e {
|
|
39
|
-
#
|
|
39
|
+
#i;
|
|
40
40
|
#r;
|
|
41
41
|
#n = De(() => {
|
|
42
|
-
this.#
|
|
42
|
+
this.#t();
|
|
43
43
|
});
|
|
44
44
|
constructor(e) {
|
|
45
45
|
this.#r = e;
|
|
46
|
-
let
|
|
46
|
+
let i;
|
|
47
47
|
W(this.#n, () => {
|
|
48
|
-
|
|
49
|
-
}), this.#
|
|
48
|
+
i = e();
|
|
49
|
+
}), this.#i = Te(i);
|
|
50
50
|
}
|
|
51
|
-
#
|
|
52
|
-
const e = this.#
|
|
51
|
+
#t() {
|
|
52
|
+
const e = this.#i.value;
|
|
53
53
|
W(this.#n, () => {
|
|
54
|
-
this.#
|
|
54
|
+
this.#i.value = this.#r(e);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
mutate(e) {
|
|
58
|
-
this.#
|
|
58
|
+
this.#i.value = e;
|
|
59
59
|
}
|
|
60
60
|
get value() {
|
|
61
|
-
return this.#
|
|
61
|
+
return this.#i.value;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function I(
|
|
65
|
-
return new $e(
|
|
64
|
+
function I(t) {
|
|
65
|
+
return new $e(t);
|
|
66
66
|
}
|
|
67
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(
|
|
69
|
-
return
|
|
68
|
+
function Oe(t) {
|
|
69
|
+
return t.valueOf() / se - 0.5 + oe;
|
|
70
70
|
}
|
|
71
|
-
function M(
|
|
72
|
-
return new Date((
|
|
71
|
+
function M(t) {
|
|
72
|
+
return new Date((t + 0.5 - oe) * se);
|
|
73
73
|
}
|
|
74
|
-
function Le(
|
|
75
|
-
return Oe(
|
|
74
|
+
function Le(t) {
|
|
75
|
+
return Oe(t) - ae;
|
|
76
76
|
}
|
|
77
77
|
var Q = y * 23.4397;
|
|
78
|
-
function Ue(
|
|
79
|
-
return ze(u(e) * T(Q) + T(e) * u(Q) * u(
|
|
78
|
+
function Ue(t, e) {
|
|
79
|
+
return ze(u(e) * T(Q) + T(e) * u(Q) * u(t));
|
|
80
80
|
}
|
|
81
|
-
function Ee(
|
|
82
|
-
return y * (357.5291 + 0.98560028 *
|
|
81
|
+
function Ee(t) {
|
|
82
|
+
return y * (357.5291 + 0.98560028 * t);
|
|
83
83
|
}
|
|
84
|
-
function He(
|
|
85
|
-
return y * (1.9148 * u(
|
|
84
|
+
function He(t) {
|
|
85
|
+
return y * (1.9148 * u(t) + 0.02 * u(2 * t) + 3e-4 * u(3 * t));
|
|
86
86
|
}
|
|
87
|
-
function Ae(
|
|
88
|
-
var
|
|
89
|
-
return
|
|
87
|
+
function Ae(t, e) {
|
|
88
|
+
var i = y * 102.9372;
|
|
89
|
+
return t + e + i + U;
|
|
90
90
|
}
|
|
91
91
|
var S = {};
|
|
92
92
|
S.PolarException = {
|
|
@@ -106,20 +106,20 @@ var N = [
|
|
|
106
106
|
[ 6, "goldenHourEnd", "goldenHour" ]
|
|
107
107
|
*/
|
|
108
108
|
], le = 9e-4;
|
|
109
|
-
function Ie(
|
|
110
|
-
return Math.round(
|
|
109
|
+
function Ie(t, e) {
|
|
110
|
+
return Math.round(t - le - e / (2 * U));
|
|
111
111
|
}
|
|
112
|
-
function X(
|
|
113
|
-
return le + (
|
|
112
|
+
function X(t, e, i) {
|
|
113
|
+
return le + (t + e) / (2 * U) + i;
|
|
114
114
|
}
|
|
115
|
-
function ee(
|
|
116
|
-
return ae +
|
|
115
|
+
function ee(t, e, i) {
|
|
116
|
+
return ae + t + 53e-4 * u(e) - 69e-4 * u(2 * i);
|
|
117
117
|
}
|
|
118
|
-
function Ne(
|
|
119
|
-
return Me((u(
|
|
118
|
+
function Ne(t, e, i) {
|
|
119
|
+
return Me((u(t) - u(e) * u(i)) / (T(e) * T(i)));
|
|
120
120
|
}
|
|
121
|
-
S.getTimes = function(
|
|
122
|
-
var r = y * -
|
|
121
|
+
S.getTimes = function(t, e, i) {
|
|
122
|
+
var r = y * -i, n = y * e, s = Le(t), 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);
|
|
@@ -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(t, e, i) {
|
|
151
|
+
const r = F(e, i), { dayOfMonth: n, month: s } = Je[r], o = new Date(t.getTime());
|
|
152
152
|
return o.setMonth(s, n), o;
|
|
153
153
|
}
|
|
154
|
-
function Re(
|
|
155
|
-
const
|
|
156
|
-
return F(
|
|
154
|
+
function Re(t, e) {
|
|
155
|
+
const i = Ve(t);
|
|
156
|
+
return F(i, e);
|
|
157
157
|
}
|
|
158
|
-
function Ve(
|
|
159
|
-
const e =
|
|
160
|
-
return e >=
|
|
158
|
+
function Ve(t) {
|
|
159
|
+
const e = t.getTime(), i = P(t, "spring", "northern").getTime(), r = P(t, "summer", "northern").getTime(), n = P(t, "fall", "northern").getTime(), s = P(t, "winter", "northern").getTime();
|
|
160
|
+
return e >= i && 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(t, e) {
|
|
163
|
+
return e === "northern" ? t : Fe(t);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
return
|
|
165
|
+
function ie(t) {
|
|
166
|
+
return t >= 0 ? "northern" : "southern";
|
|
167
167
|
}
|
|
168
|
-
function Fe(
|
|
169
|
-
const e = R.indexOf(
|
|
168
|
+
function Fe(t) {
|
|
169
|
+
const e = R.indexOf(t);
|
|
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(t, e, i, r) {
|
|
174
|
+
const n = S.getTimes(t, e, i), s = n.sunrise, o = n.sunset, a = C(t, 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,25 +182,25 @@ 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 ne(
|
|
185
|
+
function te(t, e) {
|
|
186
|
+
return ne(t + e, 24);
|
|
187
187
|
}
|
|
188
188
|
function Ze({
|
|
189
|
-
mode:
|
|
189
|
+
mode: t,
|
|
190
190
|
lighting: e,
|
|
191
|
-
getPlaySpeed:
|
|
191
|
+
getPlaySpeed: i,
|
|
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 (t === "day") {
|
|
199
199
|
a = Date.now();
|
|
200
|
-
const h =
|
|
200
|
+
const h = i() / 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);
|
|
@@ -217,19 +217,19 @@ function Ze({
|
|
|
217
217
|
return o(), J(() => cancelAnimationFrame(s));
|
|
218
218
|
}
|
|
219
219
|
const L = v / 4;
|
|
220
|
-
function We(
|
|
220
|
+
function We(t, e, i, 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 (t == null || e == null || Number.isNaN(t.getTime()) && Number.isNaN(e.getTime()))
|
|
227
227
|
return a;
|
|
228
|
-
const l =
|
|
228
|
+
const l = i.getTime(), h = t.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
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
|
-
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 = {
|
|
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-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,
|
|
234
234
|
night: 6,
|
|
235
235
|
twilight: 2 / 3
|
|
@@ -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 i = 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, i);
|
|
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
|
+
#i;
|
|
261
261
|
#r;
|
|
262
262
|
#n;
|
|
263
|
-
#
|
|
263
|
+
#t;
|
|
264
264
|
#o;
|
|
265
265
|
#a;
|
|
266
266
|
#d;
|
|
267
267
|
#h;
|
|
268
268
|
#l() {
|
|
269
|
-
if (this.#
|
|
269
|
+
if (this.#t)
|
|
270
270
|
return;
|
|
271
271
|
const e = ye(() => {
|
|
272
|
-
if (this.#
|
|
273
|
-
const
|
|
274
|
-
this._lighting.date = o, this._lighting.displayUTCOffset =
|
|
272
|
+
if (this.#t?.remove(), p(this._lighting)) {
|
|
273
|
+
const i = this.utcOffset ?? 0, r = this.timeSliderPosition ?? 0, n = this.localDate, s = r - i * 60, o = C(n, s, "minutes");
|
|
274
|
+
this._lighting.date = o, this._lighting.displayUTCOffset = i;
|
|
275
275
|
}
|
|
276
276
|
}, { timeout: this.#d });
|
|
277
|
-
this.#
|
|
278
|
-
Se(e), this.#
|
|
277
|
+
this.#t = J(() => {
|
|
278
|
+
Se(e), this.#t = void 0;
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
#u({ scale: e, disabled:
|
|
281
|
+
#u({ scale: e, disabled: i }) {
|
|
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}${ei({ disabled: i, 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: i, 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: i }) {
|
|
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}${ii({ scale: e, selectedSeason: this.currentSeason, disabled: i, 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.#i?.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 i = this._view?.environment;
|
|
318
|
+
if (i == null)
|
|
319
319
|
return;
|
|
320
|
-
const r =
|
|
320
|
+
const r = i.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), i.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, i = ie(e);
|
|
333
|
+
return Re(this.localDate, i);
|
|
334
334
|
}
|
|
335
335
|
set currentSeason(e) {
|
|
336
336
|
this._stopPlaying();
|
|
337
|
-
const
|
|
337
|
+
const i = this._view?.camera?.position?.latitude ?? 0, r = ie(i), 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 i = new Date(e);
|
|
369
|
+
if (A(i)) {
|
|
370
|
+
i.setUTCFullYear(i.getFullYear(), i.getMonth(), i.getDate());
|
|
371
|
+
const r = i.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 i = 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, i);
|
|
392
392
|
e = n;
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
return e;
|
|
396
396
|
}, (e) => {
|
|
397
|
-
const
|
|
398
|
-
e != null &&
|
|
397
|
+
const i = this.#g;
|
|
398
|
+
e != null && i !== 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 i = this._lighting;
|
|
405
|
+
p(i) && i.cameraTrackingEnabled && (i.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.#i?.remove(), this.#t?.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 i = 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, i);
|
|
420
420
|
this._timesliderPosition.mutate(c), this._localDate.mutate(d);
|
|
421
421
|
}
|
|
422
422
|
}
|
|
@@ -429,8 +429,8 @@ class Xe extends fe {
|
|
|
429
429
|
}
|
|
430
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
|
|
433
|
-
|
|
432
|
+
const i = this._playingState;
|
|
433
|
+
i !== "none" && this.#i == null && this._play(i);
|
|
434
434
|
})), this.#c = !0;
|
|
435
435
|
}
|
|
436
436
|
_emitUserDateTimeChangeEvent() {
|
|
@@ -443,12 +443,12 @@ class Xe extends fe {
|
|
|
443
443
|
#m(e) {
|
|
444
444
|
if (this.#s)
|
|
445
445
|
return;
|
|
446
|
-
const
|
|
446
|
+
const i = setTimeout(() => {
|
|
447
447
|
const r = e.displayUTCOffset ?? 0, n = e.date, { minutesSinceMidnight: s } = k(n, r);
|
|
448
448
|
this._timesliderPosition.mutate(s), this.#s?.remove();
|
|
449
449
|
}, this.#h);
|
|
450
450
|
this.#s = J(() => {
|
|
451
|
-
clearTimeout(
|
|
451
|
+
clearTimeout(i), this.#s = void 0;
|
|
452
452
|
const r = this._lighting;
|
|
453
453
|
if (p(r)) {
|
|
454
454
|
const n = r.displayUTCOffset ?? 0, s = r.date, { minutesSinceMidnight: o } = k(s, n);
|
|
@@ -457,15 +457,15 @@ class Xe extends fe {
|
|
|
457
457
|
});
|
|
458
458
|
}
|
|
459
459
|
_play(e) {
|
|
460
|
-
this.#
|
|
461
|
-
const
|
|
462
|
-
if (
|
|
460
|
+
this.#i?.remove();
|
|
461
|
+
const i = this._view;
|
|
462
|
+
if (i == null || this._sunlightingDisabled)
|
|
463
463
|
return;
|
|
464
|
-
const r =
|
|
464
|
+
const r = i.environment.lighting;
|
|
465
465
|
if (!p(r))
|
|
466
466
|
return;
|
|
467
467
|
let n = 0;
|
|
468
|
-
this.#
|
|
468
|
+
this.#i = Ze({
|
|
469
469
|
mode: e,
|
|
470
470
|
lighting: r,
|
|
471
471
|
beforeProgress: () => {
|
|
@@ -485,7 +485,7 @@ class Xe extends fe {
|
|
|
485
485
|
});
|
|
486
486
|
}
|
|
487
487
|
render() {
|
|
488
|
-
const { messages: e, dateOrSeason:
|
|
488
|
+
const { messages: e, dateOrSeason: i } = this, r = this._sunlightingDisabled, n = "m";
|
|
489
489
|
if (!(this._view?.type === "3d"))
|
|
490
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>` });
|
|
491
491
|
const o = (this.utcOffset ?? 0) * 60, a = this.view?.ready === !0, c = Array.isArray(this.timeSliderSteps) ? this.timeSliderSteps.at(0) : this.timeSliderSteps;
|
|
@@ -496,29 +496,29 @@ class Xe extends fe {
|
|
|
496
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) => {
|
|
497
497
|
const l = +d.target.value;
|
|
498
498
|
this.utcOffset = l / 60, this._stopPlaying();
|
|
499
|
-
}} ${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: i === "date" ? this.#u({ scale: n, disabled: r }) : this.#p({ scale: n, disabled: r }) })}</div>${D({ hidden: this.hideSunLightingToggle, children: ti({ scale: n, messages: e.sunLightingToggle, sunlightingEnabled: !this._sunlightingDisabled, onSunLightingToggle: (d) => {
|
|
500
500
|
this._sunlightingDisabled = !d;
|
|
501
|
-
} }) })}${D({ hidden: this.hideShadowsToggle, children:
|
|
501
|
+
} }) })}${D({ hidden: this.hideShadowsToggle, children: ri({ scale: n, messages: e.shadowsToggle, onShadowCheckboxChange: (d) => {
|
|
502
502
|
this._directShadowsDisabled = !d;
|
|
503
503
|
}, shadowEnabled: !this._directShadowsDisabled }) })}` });
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
function re({ disabled:
|
|
507
|
-
return m`<calcite-button appearance=solid .scale=${n} .disabled=${
|
|
506
|
+
function re({ disabled: t, playing: e, onClick: i, label: r, scale: n = "m" }) {
|
|
507
|
+
return m`<calcite-button appearance=solid .scale=${n} .disabled=${t} .iconStart=${e ? "pause-f" : "play-f"} .label=${r} @click=${i} round title=${r ?? V} type=button></calcite-button>`;
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
return m`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${
|
|
509
|
+
function ei({ disabled: t, date: e, onDateChange: i, scale: r }) {
|
|
510
|
+
return m`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${t} overlay-positioning=fixed placement=bottom .value=${e} .scale=${r} @calciteInputDatePickerChange=${i}></calcite-input-date-picker>`;
|
|
511
511
|
}
|
|
512
|
-
function
|
|
513
|
-
return m`<calcite-select .disabled=${e} .label=${
|
|
512
|
+
function ii({ messages: t, disabled: e, scale: i, selectedSeason: r, onSeasonChange: n }) {
|
|
513
|
+
return m`<calcite-select .disabled=${e} .label=${t.season} .scale=${i} .value=${r} @calciteSelectChange=${(s) => {
|
|
514
514
|
n(s);
|
|
515
|
-
}}>${R.map((s) => m`<calcite-option .selected=${r === s} .value=${s}>${
|
|
515
|
+
}}>${R.map((s) => m`<calcite-option .selected=${r === s} .value=${s}>${t[s]}</calcite-option>`)}</calcite-select>`;
|
|
516
516
|
}
|
|
517
|
-
function
|
|
518
|
-
return m`<calcite-label layout=inline .scale=${r} title=${
|
|
517
|
+
function ti({ messages: t, sunlightingEnabled: e, onSunLightingToggle: i, scale: r }) {
|
|
518
|
+
return m`<calcite-label layout=inline .scale=${r} title=${t?.tooltip ?? V}><calcite-checkbox .scale=${r} .checked=${e} @calciteCheckboxChange=${(n) => i(n.target.checked)}></calcite-checkbox>${t?.label}</calcite-label>`;
|
|
519
519
|
}
|
|
520
|
-
function
|
|
521
|
-
return m`<calcite-label layout=inline .scale=${r} title=${
|
|
520
|
+
function ri({ messages: t, shadowEnabled: e, onShadowCheckboxChange: i, scale: r }) {
|
|
521
|
+
return m`<calcite-label layout=inline .scale=${r} title=${t?.tooltip ?? V}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${(n) => i(n.target.checked)}></calcite-checkbox>${t.label}</calcite-label>`;
|
|
522
522
|
}
|
|
523
523
|
de("arcgis-daylight", Xe);
|
|
524
524
|
export {
|
|
@@ -6,10 +6,10 @@ import type SketchLabelOptions from "@arcgis/core/views/interactive/sketch/Sketc
|
|
|
6
6
|
import type SelectionManager from "@arcgis/core/views/SelectionManager.js";
|
|
7
7
|
import type SnappingOptions from "@arcgis/core/views/interactive/snapping/SnappingOptions.js";
|
|
8
8
|
import type SketchTooltipOptions from "@arcgis/core/views/interactive/sketch/SketchTooltipOptions.js";
|
|
9
|
-
import type { CreateFeaturesCreationInfo } from "@arcgis/core/widgets/Editor.js";
|
|
9
|
+
import type { CreateFeaturesCreationInfo, EditorStartMergeFeaturesWorkflowOptions, EditorStartSplitFeatureWorkflowOptions } from "@arcgis/core/widgets/Editor.js";
|
|
10
10
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
11
11
|
import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
12
|
-
import type { EditorSketchUpdateEvent, EditorSketchCreateEvent, LayerInfo, State, SupportingWidgetDefaults } from "@arcgis/core/widgets/Editor/types.js";
|
|
12
|
+
import type { EditorSketchUpdateEvent, EditorSketchCreateEvent, FeatureInfo, LayerInfo, State, SupportingWidgetDefaults } from "@arcgis/core/widgets/Editor/types.js";
|
|
13
13
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
14
14
|
import type { HeadingLevel } from "@arcgis/core/widgets/support/types.js";
|
|
15
15
|
import type { Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
@@ -332,6 +332,40 @@ export abstract class ArcgisEditor extends LitElement {
|
|
|
332
332
|
/** @param info */
|
|
333
333
|
startCreateFeaturesWorkflowAtFeatureCreation(info: CreateFeaturesCreationInfo): Promise<void>;
|
|
334
334
|
startCreateFeaturesWorkflowAtFeatureTypeSelection(): Promise<void>;
|
|
335
|
+
/**
|
|
336
|
+
* Starts a [MergeFeaturesWorkflow](https://developers.arcgis.com/javascript/latest/references/core/widgets/Editor/MergeFeaturesWorkflow/) using
|
|
337
|
+
* the provided features. All features must belong to the same layer.
|
|
338
|
+
*
|
|
339
|
+
* @param features - The features to be merged. These can be supplied
|
|
340
|
+
* either as an array of [Graphic](https://developers.arcgis.com/javascript/latest/references/core/Graphic/) instances or as a single
|
|
341
|
+
* [FeatureInfo](https://developers.arcgis.com/javascript/latest/references/core/widgets/Editor/types/#FeatureInfo) object specifying a layer
|
|
342
|
+
* and the object IDs of the features.
|
|
343
|
+
* @param options - Options for the merge features workflow.
|
|
344
|
+
* @returns Resolves once the workflow has been initialized and is active.
|
|
345
|
+
* @since 5.0
|
|
346
|
+
*/
|
|
347
|
+
startMergeFeaturesWorkflow(features: FeatureInfo | Graphic[], options: EditorStartMergeFeaturesWorkflowOptions): Promise<void>;
|
|
348
|
+
/**
|
|
349
|
+
* Starts a [SplitFeatureWorkflow](https://developers.arcgis.com/javascript/latest/references/core/widgets/Editor/SplitFeatureWorkflow/) using the provided feature.
|
|
350
|
+
*
|
|
351
|
+
* @param feature - The feature to be split.
|
|
352
|
+
* @param options - Options for the split feature workflow.
|
|
353
|
+
* @returns Resolves once the workflow has been initialized and is active.
|
|
354
|
+
* @since 5.0
|
|
355
|
+
*/
|
|
356
|
+
startSplitFeatureWorkflow(feature: Graphic, options: EditorStartSplitFeatureWorkflowOptions): Promise<void>;
|
|
357
|
+
/**
|
|
358
|
+
* Starts an [UpdateFeaturesWorkflow](https://developers.arcgis.com/javascript/latest/references/core/widgets/Editor/UpdateFeaturesWorkflow/) using
|
|
359
|
+
* the provided features.
|
|
360
|
+
*
|
|
361
|
+
* @param features - The features to be updated. These can be supplied
|
|
362
|
+
* either as an array of [Graphic](https://developers.arcgis.com/javascript/latest/references/core/Graphic/) instances or as a single
|
|
363
|
+
* [FeatureInfo](https://developers.arcgis.com/javascript/latest/references/core/widgets/Editor/types/#FeatureInfo) object specifying a layer
|
|
364
|
+
* and the object IDs of the features.
|
|
365
|
+
* @returns Resolves once the workflow has been initialized and is active.
|
|
366
|
+
* @since 5.0
|
|
367
|
+
*/
|
|
368
|
+
startUpdateFeaturesWorkflow(features: FeatureInfo | Graphic[]): Promise<void>;
|
|
335
369
|
/** @param feature */
|
|
336
370
|
startUpdateWorkflowAtFeatureEdit(feature: Graphic): Promise<void>;
|
|
337
371
|
startUpdateWorkflowAtFeatureSelection(): Promise<void>;
|