@arcgis/map-components 5.1.0-next.102 → 5.1.0-next.104
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/37PU5RQF.js +2 -0
- package/dist/cdn/{3EF4MN6L.js → 42YT33SI.js} +1 -1
- package/dist/cdn/{FBVHVWJP.js → 4BUXOQ5X.js} +1 -1
- package/dist/cdn/{J3MFZHTJ.js → 4P5SOHAK.js} +1 -1
- package/dist/cdn/{SFXP3DOP.js → 5CVCIDET.js} +1 -1
- package/dist/cdn/{H43ZBRJO.js → 5F4QQFMV.js} +1 -1
- package/dist/cdn/{IQHG6OT4.js → 5FHYTVXJ.js} +1 -1
- package/dist/cdn/{SEJ6JCXN.js → 6SLFSRO3.js} +1 -1
- package/dist/cdn/{5AY6FU6R.js → 6U7WM64M.js} +1 -1
- package/dist/cdn/{MFXNJZSL.js → 7MG2HVHJ.js} +1 -1
- package/dist/cdn/7YEXZHW3.js +2 -0
- package/dist/cdn/{7UZP3RBC.js → AWQHNAWY.js} +1 -1
- package/dist/cdn/{TZKT637Q.js → C5RCUSYN.js} +1 -1
- package/dist/cdn/CXPIQET3.js +2 -0
- package/dist/cdn/{GHISRID5.js → D4ATYXZL.js} +1 -1
- package/dist/cdn/{5FEFHUMM.js → DWWDCRDK.js} +1 -1
- package/dist/cdn/{6QTNDMTM.js → EE4OHTHH.js} +1 -1
- package/dist/cdn/{ZYG4YNMK.js → GAWULXAQ.js} +1 -1
- package/dist/cdn/{CY5MXN4Q.js → GBHDATFS.js} +1 -1
- package/dist/cdn/GFXNIWNG.js +2 -0
- package/dist/cdn/{MGLV5EEI.js → HVKDLP74.js} +1 -1
- package/dist/cdn/{K6JERTMI.js → I7HKS77T.js} +1 -1
- package/dist/cdn/ICIX7OQK.js +2 -0
- package/dist/cdn/JW6K33EY.js +2 -0
- package/dist/cdn/LFFZNI4J.js +2 -0
- package/dist/cdn/{P27CM5PI.js → LTUURA6B.js} +1 -1
- package/dist/cdn/{T5YUD4HI.js → MLD4FBFB.js} +1 -1
- package/dist/cdn/MXXKVA3L.js +2 -0
- package/dist/cdn/{SBWTPIZH.js → NWLO4YJB.js} +1 -1
- package/dist/cdn/{KEKKHAC3.js → OGV2KLWY.js} +1 -1
- package/dist/cdn/{RQQW45SO.js → P36R3KMU.js} +1 -1
- package/dist/cdn/{7KIORSA4.js → PO4N3MEU.js} +1 -1
- package/dist/cdn/{6HRKATQQ.js → S36YQI7W.js} +1 -1
- package/dist/cdn/{KGWDZNHG.js → SKRNQKVO.js} +1 -1
- package/dist/cdn/{DU33A6QD.js → T2RNAPRO.js} +1 -1
- package/dist/cdn/{2M7OVKOX.js → UCPJMQPU.js} +1 -1
- package/dist/cdn/{YNGHIC64.js → UNFS72TS.js} +1 -1
- package/dist/cdn/{HYNB4OPZ.js → VDSKVXIQ.js} +1 -1
- package/dist/cdn/{PWCOBDBK.js → VSZ3LZA2.js} +1 -1
- package/dist/cdn/{CUJU6FOW.js → YGYGCNWI.js} +1 -1
- package/dist/cdn/{ZVTZRBDZ.js → Z5RIW77H.js} +1 -1
- package/dist/cdn/ZDOE5UWP.js +2 -0
- package/dist/cdn/assets/search/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/search/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/slider-time/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/slider-time/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/unit-select/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/async-utils.js +63 -51
- package/dist/chunks/time-utils.js +27 -15
- package/dist/chunks/useArcgisViewReadyError.js +115 -56
- package/dist/components/arcgis-bookmarks/customElement.d.ts +3 -0
- package/dist/components/arcgis-coordinate-conversion/customElement.js +6 -6
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +4 -4
- package/dist/components/arcgis-link-chart/customElement.d.ts +1 -0
- package/dist/components/arcgis-link-chart/customElement.js +13 -10
- package/dist/components/arcgis-map/customElement.d.ts +1 -0
- package/dist/components/arcgis-map/customElement.js +13 -10
- package/dist/components/arcgis-scene/customElement.d.ts +1 -0
- package/dist/components/arcgis-scene/customElement.js +23 -20
- package/dist/components/arcgis-search/customElement.d.ts +3 -0
- package/dist/components/arcgis-search/customElement.js +6 -6
- package/dist/components/arcgis-slider-time/customElement.d.ts +868 -0
- package/dist/components/arcgis-slider-time/customElement.js +740 -0
- package/dist/components/arcgis-slider-time/index.d.ts +1 -0
- package/dist/components/arcgis-slider-time/index.js +8 -0
- package/dist/components/arcgis-slider-time/types.d.ts +147 -0
- package/dist/components/arcgis-time-slider/customElement.d.ts +2 -1
- package/dist/components/arcgis-time-slider/customElement.js +2 -2
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +18 -6
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +21 -21
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +4 -4
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +16 -16
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +3 -0
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +13 -9
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.d.ts +161 -35
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +5 -1
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +1 -3
- 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 +10 -0
- package/dist/loader.js +5 -4
- package/dist/types/lumina.d.ts +10 -2
- package/dist/types/preact.d.ts +11 -2
- package/dist/types/react.d.ts +12 -2
- package/dist/types/stencil.d.ts +10 -2
- package/package.json +4 -4
- package/dist/cdn/6E3T7FRP.js +0 -2
- package/dist/cdn/HIYCE253.js +0 -2
- package/dist/cdn/HW3D7A2P.js +0 -2
- package/dist/cdn/IQPGSWSL.js +0 -2
- package/dist/cdn/IU2X5JKR.js +0 -2
- package/dist/cdn/L7LTDZU6.js +0 -2
- package/dist/cdn/OSRU2RUW.js +0 -2
- package/dist/cdn/X6BCGFB3.js +0 -2
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import
|
|
3
|
-
import { property as l, subclass as
|
|
4
|
-
import
|
|
5
|
-
import { a as
|
|
6
|
-
import { log as
|
|
7
|
-
var
|
|
8
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
9
|
-
(u = t[
|
|
10
|
-
return o && n &&
|
|
2
|
+
import d from "@arcgis/core/core/Accessor.js";
|
|
3
|
+
import { property as l, subclass as m } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
4
|
+
import p from "@arcgis/core/core/Error.js";
|
|
5
|
+
import { a as h, r as w } from "./maybe.js";
|
|
6
|
+
import { log as _ } from "@arcgis/toolkit/log";
|
|
7
|
+
var v = Object.defineProperty, A = Object.getOwnPropertyDescriptor, a = (t, r, e, o) => {
|
|
8
|
+
for (var n = o > 1 ? void 0 : o ? A(r, e) : r, i = t.length - 1, u; i >= 0; i--)
|
|
9
|
+
(u = t[i]) && (n = (o ? u(r, e, n) : u(n)) || n);
|
|
10
|
+
return o && n && v(r, e, n), n;
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function S(t, r, e) {
|
|
13
13
|
if (t && typeof t == "object" && !Array.isArray(t)) {
|
|
14
|
-
const n = "details" in t && t.details && typeof t.details == "object" && !Array.isArray(t.details) ? { detail: t.details } : void 0,
|
|
15
|
-
|
|
14
|
+
const n = "details" in t && t.details && typeof t.details == "object" && !Array.isArray(t.details) ? { detail: t.details } : void 0, i = e ? `${e} - ${String(t)}` : String(t);
|
|
15
|
+
_("error", r, i, n);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
return new
|
|
18
|
+
function f(t = "Aborted") {
|
|
19
|
+
return new p("AbortError", t);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function j(t, r = "Aborted") {
|
|
22
22
|
if (g(t))
|
|
23
|
-
throw
|
|
23
|
+
throw f(r);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function b(t) {
|
|
26
26
|
return t instanceof AbortSignal ? t : t?.signal ?? void 0;
|
|
27
27
|
}
|
|
28
28
|
function g(t) {
|
|
29
|
-
return
|
|
29
|
+
return b(t)?.aborted ?? !1;
|
|
30
30
|
}
|
|
31
31
|
function y(t) {
|
|
32
32
|
return t?.name === "AbortError";
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function C(t) {
|
|
35
35
|
return { ok: !0, value: t };
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function E(t) {
|
|
38
38
|
return { ok: !1, error: t };
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function k(t) {
|
|
41
41
|
return t?.ok ? t.value : null;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function T(t) {
|
|
44
44
|
return t != null && !t.ok ? t.error : null;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
const e =
|
|
46
|
+
function c(t, r) {
|
|
47
|
+
const e = b(t);
|
|
48
48
|
if (e == null)
|
|
49
49
|
return;
|
|
50
50
|
if (e.aborted) {
|
|
@@ -54,29 +54,29 @@ function I(t, r) {
|
|
|
54
54
|
const o = () => r();
|
|
55
55
|
return e.addEventListener("abort", o, { once: !0 }), { remove: () => e.removeEventListener("abort", o) };
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return new
|
|
57
|
+
function H(t, r) {
|
|
58
|
+
return new s(t, r);
|
|
59
59
|
}
|
|
60
|
-
let
|
|
60
|
+
let s = class extends d {
|
|
61
61
|
constructor(t, r) {
|
|
62
62
|
super({}), this._abortHandle = null, this.abort = () => {
|
|
63
|
-
this._abortController =
|
|
63
|
+
this._abortController = h(this._abortController);
|
|
64
64
|
}, this.remove = this.abort, this._abortController = new AbortController();
|
|
65
65
|
const { signal: e } = this._abortController;
|
|
66
66
|
this.promise = t(e), this.promise.then(
|
|
67
67
|
(o) => {
|
|
68
|
-
this._result =
|
|
68
|
+
this._result = C(o), this._cleanup();
|
|
69
69
|
},
|
|
70
70
|
(o) => {
|
|
71
|
-
this._result =
|
|
71
|
+
this._result = E(o), this._cleanup();
|
|
72
72
|
}
|
|
73
|
-
), this._abortHandle =
|
|
73
|
+
), this._abortHandle = c(r, this.abort);
|
|
74
74
|
}
|
|
75
75
|
get value() {
|
|
76
|
-
return
|
|
76
|
+
return k(this._result);
|
|
77
77
|
}
|
|
78
78
|
get error() {
|
|
79
|
-
return
|
|
79
|
+
return T(this._result);
|
|
80
80
|
}
|
|
81
81
|
get finished() {
|
|
82
82
|
return this._result != null;
|
|
@@ -85,30 +85,30 @@ let i = class extends f {
|
|
|
85
85
|
this.abort();
|
|
86
86
|
}
|
|
87
87
|
_cleanup() {
|
|
88
|
-
this._abortHandle =
|
|
88
|
+
this._abortHandle = w(this._abortHandle), this._abortController = null;
|
|
89
89
|
}
|
|
90
90
|
[Symbol.dispose]() {
|
|
91
91
|
this._cleanup();
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
|
-
|
|
94
|
+
a([
|
|
95
95
|
l()
|
|
96
|
-
],
|
|
97
|
-
|
|
96
|
+
], s.prototype, "value", 1);
|
|
97
|
+
a([
|
|
98
98
|
l()
|
|
99
|
-
],
|
|
100
|
-
|
|
99
|
+
], s.prototype, "error", 1);
|
|
100
|
+
a([
|
|
101
101
|
l()
|
|
102
|
-
],
|
|
103
|
-
|
|
102
|
+
], s.prototype, "finished", 1);
|
|
103
|
+
a([
|
|
104
104
|
l()
|
|
105
|
-
],
|
|
106
|
-
|
|
105
|
+
], s.prototype, "promise", 2);
|
|
106
|
+
a([
|
|
107
107
|
l()
|
|
108
|
-
],
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
],
|
|
108
|
+
], s.prototype, "_result", 2);
|
|
109
|
+
s = a([
|
|
110
|
+
m("esri.components.asyncUtils.ReactiveTask")
|
|
111
|
+
], s);
|
|
112
112
|
function q(t) {
|
|
113
113
|
return t.catch((r) => {
|
|
114
114
|
if (!y(r))
|
|
@@ -131,13 +131,25 @@ function x(t, r = {}) {
|
|
|
131
131
|
function L(t) {
|
|
132
132
|
"cancelIdleCallback" in window && window.cancelIdleCallback(t), window.clearTimeout(t);
|
|
133
133
|
}
|
|
134
|
+
function M(t, r) {
|
|
135
|
+
const e = new AbortController();
|
|
136
|
+
return c(r, () => e.abort()), new Promise((o, n) => {
|
|
137
|
+
let i = setTimeout(() => {
|
|
138
|
+
i = void 0, o();
|
|
139
|
+
}, t);
|
|
140
|
+
c(e, () => {
|
|
141
|
+
i !== void 0 && (clearTimeout(i), i = void 0, n(f()));
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
}
|
|
134
145
|
export {
|
|
135
146
|
g as a,
|
|
136
147
|
q as b,
|
|
137
|
-
|
|
138
|
-
|
|
148
|
+
H as c,
|
|
149
|
+
M as d,
|
|
150
|
+
L as e,
|
|
139
151
|
y as i,
|
|
140
|
-
|
|
152
|
+
S as l,
|
|
141
153
|
x as r,
|
|
142
|
-
|
|
154
|
+
j as t
|
|
143
155
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
const
|
|
2
|
+
const a = "system", u = "unknown";
|
|
3
|
+
const l = Intl.DateTimeFormat().resolvedOptions().timeZone, o = {
|
|
3
4
|
milliseconds: 1,
|
|
4
5
|
seconds: 1e3,
|
|
5
6
|
minutes: 6e4,
|
|
@@ -16,38 +17,49 @@ const l = "system", d = "unknown", f = Intl.DateTimeFormat().resolvedOptions().t
|
|
|
16
17
|
function c(e, s, n) {
|
|
17
18
|
return e === 0 ? 0 : e * o[s] / o[n];
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
+
function m(e) {
|
|
20
21
|
return e instanceof Date && !Number.isNaN(e.getTime());
|
|
21
22
|
}
|
|
22
23
|
function g(e, s, n = "hours") {
|
|
23
24
|
const t = new Date(e.getTime()), i = c(s, n, "milliseconds");
|
|
24
25
|
return t.setTime(t.getTime() + i), t;
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
-
const n = c(s, "hours", "milliseconds"), t = new Date(e.getTime() + n), i = t.toISOString().slice(0, 10),
|
|
28
|
-
return { localDate: i, minutesSinceMidnight:
|
|
27
|
+
function f(e, s) {
|
|
28
|
+
const n = c(s, "hours", "milliseconds"), t = new Date(e.getTime() + n), i = t.toISOString().slice(0, 10), r = t.getUTCHours() * 60 + t.getUTCMinutes();
|
|
29
|
+
return { localDate: i, minutesSinceMidnight: r };
|
|
29
30
|
}
|
|
30
31
|
function T(e) {
|
|
31
32
|
const s = e?.environment?.lighting;
|
|
32
|
-
if (
|
|
33
|
+
if (d(s)) {
|
|
33
34
|
const n = s.displayUTCOffset ?? 0, t = s.date;
|
|
34
|
-
if (
|
|
35
|
-
const { localDate: i } =
|
|
35
|
+
if (m(t)) {
|
|
36
|
+
const { localDate: i } = f(t, n);
|
|
36
37
|
return i;
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function d(e) {
|
|
41
42
|
return e?.type === "sun";
|
|
42
43
|
}
|
|
44
|
+
function h(e) {
|
|
45
|
+
switch (e) {
|
|
46
|
+
case a:
|
|
47
|
+
return l;
|
|
48
|
+
case u:
|
|
49
|
+
return "UTC";
|
|
50
|
+
default:
|
|
51
|
+
return e;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
43
54
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
55
|
+
l as a,
|
|
56
|
+
m as b,
|
|
46
57
|
c,
|
|
47
|
-
|
|
58
|
+
f as d,
|
|
48
59
|
T as g,
|
|
49
|
-
|
|
60
|
+
d as i,
|
|
50
61
|
g as o,
|
|
51
|
-
|
|
52
|
-
|
|
62
|
+
h as r,
|
|
63
|
+
a as s,
|
|
64
|
+
u
|
|
53
65
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { html as
|
|
3
|
-
import { when as
|
|
4
|
-
import { GenericController as
|
|
5
|
-
import { getSlotAssignedElements as
|
|
6
|
-
import { createRef as
|
|
7
|
-
import { c as
|
|
8
|
-
import { createEvent as
|
|
9
|
-
class
|
|
2
|
+
import { html as c } from "lit";
|
|
3
|
+
import { when as n, watch as r } from "@arcgis/core/core/reactiveUtils.js";
|
|
4
|
+
import { GenericController as u, useDirection as m, makeGenericController as l } from "@arcgis/lumina/controllers";
|
|
5
|
+
import { getSlotAssignedElements as d } from "@arcgis/toolkit/dom";
|
|
6
|
+
import { createRef as E } from "lit/directives/ref.js";
|
|
7
|
+
import { c as f, S as w } from "./slots.js";
|
|
8
|
+
import { createEvent as a } from "@arcgis/lumina";
|
|
9
|
+
class y extends u {
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region Lifecycle
|
|
12
|
-
constructor(
|
|
13
|
-
super(
|
|
14
|
-
const
|
|
15
|
-
o.detail.button !== 0 ||
|
|
12
|
+
constructor(e) {
|
|
13
|
+
super(e), this.direction = m(), this.popupRef = E(), this.slotGroupRefs = f(), this.attributionHeight = 0, this._uiContainer = null, this.component.listen("arcgisViewClick", (o) => {
|
|
14
|
+
const t = o.detail.native;
|
|
15
|
+
o.detail.button !== 0 || t?.ctrlKey || t?.metaKey || this._handleOpenPopup(o.detail);
|
|
16
16
|
}), this.component.listenOn(globalThis, "unhandledrejection", (o) => {
|
|
17
|
-
const
|
|
18
|
-
if (
|
|
19
|
-
const { name:
|
|
20
|
-
this.webGLError = { name:
|
|
17
|
+
const t = o.reason;
|
|
18
|
+
if (t?.name === "webgl:required") {
|
|
19
|
+
const { name: p } = t;
|
|
20
|
+
this.webGLError = { name: p };
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
}
|
|
@@ -25,22 +25,22 @@ class _ extends h {
|
|
|
25
25
|
//#region Private Methods
|
|
26
26
|
hostLifecycle() {
|
|
27
27
|
return [
|
|
28
|
-
|
|
28
|
+
n(() => this.component.view.ready, () => {
|
|
29
29
|
this._assignDefaultPopup();
|
|
30
30
|
}),
|
|
31
31
|
// Close component popup when view popup is opened
|
|
32
|
-
|
|
32
|
+
n(() => this.component.view.popup?.visible, () => {
|
|
33
33
|
this.popupElement?.open && (this.popupElement.open = !1);
|
|
34
34
|
})
|
|
35
35
|
];
|
|
36
36
|
}
|
|
37
|
-
async openPopup(
|
|
37
|
+
async openPopup(e) {
|
|
38
38
|
if (this._assignDefaultPopup(), this.closePopup(), this.popupElement) {
|
|
39
39
|
await this.popupElement.componentOnReady(), this.popupElement.open = !0;
|
|
40
|
-
const { fetchFeatures: o } =
|
|
41
|
-
delete
|
|
40
|
+
const { fetchFeatures: o } = e;
|
|
41
|
+
delete e.fetchFeatures, Object.assign(this.popupElement, e), o && this.popupElement.fetchFeatures();
|
|
42
42
|
} else
|
|
43
|
-
await this.component.view.openPopup(
|
|
43
|
+
await this.component.view.openPopup(e);
|
|
44
44
|
}
|
|
45
45
|
closePopup() {
|
|
46
46
|
this.popupElement && (this.popupElement.open = !1), this.component.view.closePopup();
|
|
@@ -48,68 +48,127 @@ class _ extends h {
|
|
|
48
48
|
_assignDefaultPopup() {
|
|
49
49
|
this.popupRef.value && !this.popupElement && (this.popupElement = this.popupRef.value, this.popupElement.referenceElement = this.component.el, this.popupElement.view = this.component.view);
|
|
50
50
|
}
|
|
51
|
-
handleAttributionHeightChange(
|
|
52
|
-
if (!(this.attributionHeight ===
|
|
53
|
-
if (this.attributionHeight =
|
|
51
|
+
handleAttributionHeightChange(e) {
|
|
52
|
+
if (!(this.attributionHeight === e || !this.component.el.shadowRoot)) {
|
|
53
|
+
if (this.attributionHeight = e, !this._uiContainer) {
|
|
54
54
|
const o = this.component.el.shadowRoot.querySelector(".arcgis-map-container-ui");
|
|
55
55
|
this._uiContainer = o;
|
|
56
56
|
}
|
|
57
57
|
this._uiContainer?.style.setProperty("--arcgis-internal-attribution-space-top", `${this.attributionHeight}px`);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
_maybeDisableViewPopup() {
|
|
61
|
+
this.component.view && (this.component.popupComponentEnabled || this.popupElement) && (this.previousViewPopupEnabled = this.component.view.popupEnabled, this.component.view.popupEnabled = !1);
|
|
62
|
+
}
|
|
63
|
+
_maybeResetViewPopup() {
|
|
64
|
+
this.component.view && this.previousViewPopupEnabled !== void 0 && (this.component.view.popupEnabled = this.previousViewPopupEnabled, this.previousViewPopupEnabled = void 0);
|
|
65
|
+
}
|
|
66
|
+
async _handleOpenPopup(e) {
|
|
67
|
+
if (this._assignDefaultPopup(), !this.component.popupDisabled) {
|
|
68
|
+
if (this._maybeDisableViewPopup(), this.popupElement) {
|
|
69
|
+
const { location: o, promises: t } = await this.popupElement?.handleViewClick(e) ?? {};
|
|
70
|
+
t?.length ? this.openPopup({ location: o, promises: t }) : this.popupElement?.open && this.closePopup();
|
|
71
|
+
}
|
|
72
|
+
this._maybeResetViewPopup();
|
|
65
73
|
}
|
|
66
74
|
}
|
|
67
|
-
_handlePopupSlotChange(
|
|
68
|
-
const o =
|
|
75
|
+
_handlePopupSlotChange(e) {
|
|
76
|
+
const o = d(e.target, "arcgis-popup");
|
|
69
77
|
!this.popupElement && o.length ? this.popupElement = o[0] : o.length || (this.popupElement = void 0);
|
|
70
78
|
}
|
|
71
79
|
_webGLErrorAlert() {
|
|
72
|
-
return this.webGLError ?
|
|
80
|
+
return this.webGLError ? c`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>` : null;
|
|
73
81
|
}
|
|
74
82
|
//#endregion
|
|
75
83
|
//#region Rendering
|
|
76
84
|
render() {
|
|
77
|
-
return
|
|
85
|
+
return w({ direction: this.direction, popupComponentEnabled: this.component.popupComponentEnabled, slotGroupRefs: this.slotGroupRefs, handlePopupSlotChange: (e) => this._handlePopupSlotChange(e), webGLErrorElement: this._webGLErrorAlert(), popupElement: this.popupRef });
|
|
78
86
|
}
|
|
79
87
|
}
|
|
80
|
-
const
|
|
81
|
-
const o =
|
|
82
|
-
return
|
|
83
|
-
() =>
|
|
88
|
+
const V = l((i, e) => {
|
|
89
|
+
const o = a();
|
|
90
|
+
return e.onLifecycle(
|
|
91
|
+
() => r(
|
|
84
92
|
() => {
|
|
85
|
-
const { map:
|
|
86
|
-
if (!
|
|
93
|
+
const { map: t } = i;
|
|
94
|
+
if (!t || t.destroyed)
|
|
87
95
|
return [];
|
|
88
|
-
const
|
|
89
|
-
return
|
|
90
|
-
|
|
91
|
-
}),
|
|
96
|
+
const p = [];
|
|
97
|
+
return t.loadError && p.push(t), t.basemap?.loadError && p.push(t.basemap), t.ground.loadError && p.push(t.ground), [...t.allLayers, ...t.allTables].forEach((s) => {
|
|
98
|
+
s.loadError && p.push(s);
|
|
99
|
+
}), p;
|
|
92
100
|
},
|
|
93
|
-
(
|
|
94
|
-
|
|
101
|
+
(t) => {
|
|
102
|
+
t.length && (i.loadErrorSources = t, o.emit());
|
|
95
103
|
}
|
|
96
104
|
)
|
|
97
105
|
), o;
|
|
98
|
-
})
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
+
});
|
|
107
|
+
function h(i = document) {
|
|
108
|
+
const e = i.activeElement;
|
|
109
|
+
if (e)
|
|
110
|
+
return e.shadowRoot && e.shadowRoot.activeElement !== null ? h(e.shadowRoot) : e;
|
|
111
|
+
}
|
|
112
|
+
class L extends u {
|
|
113
|
+
#e;
|
|
114
|
+
#t;
|
|
115
|
+
#o;
|
|
116
|
+
focusPopup() {
|
|
117
|
+
const e = h();
|
|
118
|
+
this.#i(), this.component.popupElement && (this.component.popupElement.setFocus(), this.#e = this._watchPopupElementClose(() => {
|
|
119
|
+
this.#e = void 0, this.focusOnReturnFocusElement(e);
|
|
120
|
+
})), this.#o = this._watchViewPopupOpen(() => {
|
|
121
|
+
this.#o = void 0, this._popup?.focus(), this.#t = this._watchViewPopupClose(() => {
|
|
122
|
+
this.#t = void 0, this.focusOnReturnFocusElement(e);
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
focusOnReturnFocusElement(e) {
|
|
127
|
+
e && "setFocus" in e ? e.setFocus?.() : e?.focus();
|
|
128
|
+
}
|
|
129
|
+
hostDisconnected() {
|
|
130
|
+
this.#i();
|
|
131
|
+
}
|
|
132
|
+
get _popup() {
|
|
133
|
+
return this.component.popup ?? this.component.view?.popup;
|
|
134
|
+
}
|
|
135
|
+
#i() {
|
|
136
|
+
this.#e?.remove(), this.#t?.remove(), this.#o?.remove(), this.#e = void 0, this.#t = void 0, this.#o = void 0;
|
|
137
|
+
}
|
|
138
|
+
_watchPopupElementClose(e) {
|
|
139
|
+
return this.component.popupElement?.addEventListener("arcgisClose", e, { once: !0 }), {
|
|
140
|
+
remove: () => {
|
|
141
|
+
this.component.popupElement?.removeEventListener("arcgisClose", e);
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
_watchViewPopupOpen(e) {
|
|
146
|
+
return n(() => this._popup?.visible, e, { once: !0, initial: !0, sync: !0 });
|
|
147
|
+
}
|
|
148
|
+
_watchViewPopupClose(e) {
|
|
149
|
+
return this._popup?.container?.addEventListener("calciteFlowItemClose", e, { once: !0 }), {
|
|
150
|
+
remove: () => {
|
|
151
|
+
this._popup?.container?.removeEventListener("calciteFlowItemClose", e);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
const G = l(
|
|
157
|
+
(i, e) => {
|
|
158
|
+
const o = a();
|
|
159
|
+
return e.onLifecycle(
|
|
160
|
+
() => r(
|
|
161
|
+
() => i.view?.readyState,
|
|
162
|
+
(t) => {
|
|
163
|
+
(t === "map-content-error" || t === "rendering-error") && o.emit();
|
|
106
164
|
}
|
|
107
165
|
)
|
|
108
166
|
), o;
|
|
109
167
|
}
|
|
110
168
|
);
|
|
111
169
|
export {
|
|
112
|
-
|
|
170
|
+
L as P,
|
|
171
|
+
y as U,
|
|
113
172
|
G as a,
|
|
114
|
-
|
|
173
|
+
V as u
|
|
115
174
|
};
|
|
@@ -18,6 +18,9 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
|
18
18
|
* When a bookmark with a timeExtent is selected, the [arcgis-map.timeExtent](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#timeExtent) of the Map will be set to the timeExtent of the selected bookmark.
|
|
19
19
|
* To disable time capability in the Bookmarks component, set [timeDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-bookmarks/#timeDisabled) to `true`.
|
|
20
20
|
*
|
|
21
|
+
* Starting with version `5.1`, on [@arcgisBookmarkSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-bookmarks/#event-arcgisBookmarkSelect) the selected bookmark's name is announced to assistive technologies. Visit the [Accessibility guide](xref://site.self/accessibility/#assistive-technologies) to learn more
|
|
22
|
+
* about live announcements supporting more audiences.
|
|
23
|
+
*
|
|
21
24
|
* The Bookmarks component can be used to create, edit, reorder, and delete bookmarks.
|
|
22
25
|
* To enable these features, set the following properties to `true`:
|
|
23
26
|
* [showAddBookmarkButton](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-bookmarks/#showAddBookmarkButton), [showEditBookmarkButton](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-bookmarks/#showEditBookmarkButton), and [dragEnabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-bookmarks/#dragEnabled).
|