@arcgis/map-components 5.1.0-next.120 → 5.1.0-next.122
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/{ZZORY2UI.js → 2GDVOK6V.js} +1 -1
- package/dist/cdn/3M2OCTTN.js +2 -0
- package/dist/cdn/43B43AY2.js +2 -0
- package/dist/cdn/{A6P7RDWG.js → 4AQ43ENS.js} +1 -1
- package/dist/cdn/{BQDL5AKD.js → 6RUN7OSM.js} +1 -1
- package/dist/cdn/{6OHXFH4A.js → 6SY6H3FZ.js} +1 -1
- package/dist/cdn/{JA7RPLTP.js → 6WV5RHUP.js} +2 -2
- package/dist/cdn/{QZMJWS2B.js → ADWNNODV.js} +1 -1
- package/dist/cdn/CH6EZH77.js +2 -0
- package/dist/cdn/CNNVHQTZ.js +4 -0
- package/dist/cdn/CPQRCYUD.js +2 -0
- package/dist/cdn/CRJEQWDO.js +2 -0
- package/dist/cdn/DCNSXS23.js +2 -0
- package/dist/cdn/DZMN2UH5.js +2 -0
- package/dist/cdn/EJAWFQRM.js +2 -0
- package/dist/cdn/FKJU4SJG.js +2 -0
- package/dist/cdn/FWSLFWOH.js +2 -0
- package/dist/cdn/{Q4753YCY.js → GD7MA2TO.js} +1 -1
- package/dist/cdn/HBE3W2BQ.js +2 -0
- package/dist/cdn/IJYN5YEP.js +2 -0
- package/dist/cdn/JOOGE4FT.js +2 -0
- package/dist/cdn/{VRLY2I2M.js → MASUN7EL.js} +1 -1
- package/dist/cdn/{X5TD4KCW.js → MZBCMFYH.js} +1 -1
- package/dist/cdn/{FMTWGY6C.js → NJHOCKLL.js} +1 -1
- package/dist/cdn/OZJJULKI.js +2 -0
- package/dist/cdn/{J4TYGEI3.js → RIRETHHL.js} +1 -1
- package/dist/cdn/{PO3NMPKS.js → SXWQBHG3.js} +1 -1
- package/dist/cdn/TCUFYIIZ.js +2 -0
- package/dist/cdn/VHJSRDE4.js +2 -0
- package/dist/cdn/{7I7G7KRT.js → W4SQ3QCZ.js} +1 -1
- package/dist/cdn/WFL2WTJK.js +2 -0
- package/dist/cdn/X5UAYUNL.js +2 -0
- package/dist/cdn/{L77C4X4F.js → XYUG5M3W.js} +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +60 -111
- package/dist/components/arcgis-daylight/customElement.d.ts +1 -0
- package/dist/components/arcgis-daylight/customElement.js +98 -112
- package/dist/components/arcgis-feature-table/customElement.d.ts +8 -0
- package/dist/components/arcgis-feature-table/customElement.js +28 -28
- package/dist/components/arcgis-feature-templates/TemplateItem.d.ts +33 -0
- package/dist/components/arcgis-feature-templates/customElement.d.ts +275 -0
- package/dist/components/arcgis-feature-templates/customElement.js +560 -0
- package/dist/components/arcgis-feature-templates/index.d.ts +1 -0
- package/dist/components/arcgis-feature-templates/index.js +13 -0
- package/dist/components/arcgis-features-next/customElement.d.ts +2 -0
- package/dist/components/arcgis-features-next/customElement.js +69 -63
- package/dist/components/arcgis-features-next/index.js +1 -0
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +23 -23
- package/dist/components/arcgis-link-chart/customElement.d.ts +11 -4
- package/dist/components/arcgis-link-chart/customElement.js +11 -11
- package/dist/components/arcgis-map/customElement.d.ts +10 -3
- package/dist/components/arcgis-map/customElement.js +9 -9
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +3 -3
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +1 -1
- package/dist/components/arcgis-paste/customElement.js +27 -38
- package/dist/components/arcgis-paste/index.js +1 -1
- package/dist/components/arcgis-popup/customElement.d.ts +2 -0
- package/dist/components/arcgis-popup/customElement.js +9 -9
- package/dist/components/arcgis-scene/customElement.d.ts +10 -3
- package/dist/components/arcgis-scene/customElement.js +24 -24
- package/dist/components/arcgis-search/customElement.js +6 -6
- package/dist/components/arcgis-template-image/customElement.d.ts +14 -0
- package/dist/components/arcgis-template-image/customElement.js +119 -0
- package/dist/components/arcgis-template-image/index.d.ts +1 -0
- package/dist/components/arcgis-template-image/index.js +1 -0
- package/dist/components/arcgis-video/customElement.d.ts +15 -2
- package/dist/components/arcgis-video/customElement.js +5 -5
- package/dist/components/arcgis-video-player/customElement.d.ts +7 -0
- package/dist/components/arcgis-video-player/customElement.js +14 -11
- package/dist/components/arcgis-video-player-controls-group/customElement.js +19 -17
- package/dist/components/arcgis-video-player-settings/customElement.js +20 -18
- package/dist/components/arcgis-video-player-settings/index.js +1 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/loader.js +10 -8
- package/dist/types/lumina.d.ts +18 -4
- package/dist/types/preact.d.ts +20 -4
- package/dist/types/react.d.ts +22 -4
- package/dist/types/stencil.d.ts +18 -4
- package/package.json +4 -4
- package/dist/cdn/3X33RWNO.js +0 -2
- package/dist/cdn/5QATVROE.js +0 -2
- package/dist/cdn/CLFGHCMB.js +0 -2
- package/dist/cdn/COKJF3EH.js +0 -2
- package/dist/cdn/E33LBHQA.js +0 -4
- package/dist/cdn/E6IL4F2M.js +0 -2
- package/dist/cdn/G56TPBPA.js +0 -2
- package/dist/cdn/GCFIJLPC.js +0 -2
- package/dist/cdn/JUIA2RF6.js +0 -2
- package/dist/cdn/L4RTHLN4.js +0 -2
- package/dist/cdn/OYP56BNC.js +0 -2
- package/dist/cdn/QKPKTEN4.js +0 -2
- package/dist/cdn/R45DWBFZ.js +0 -2
- package/dist/cdn/RPMEM4UV.js +0 -2
- package/dist/cdn/RZHHKFQG.js +0 -2
- package/dist/cdn/SM4Y3DFU.js +0 -2
- package/dist/cdn/ZVTOXQKI.js +0 -2
- /package/dist/cdn/{GJ5TOPT3.js → 2CZRXPMB.js} +0 -0
- /package/dist/cdn/{DPU3VHST.js → 2RIDZVJS.js} +0 -0
- /package/dist/cdn/{SUNN2JJ2.js → 3DVOY4BQ.js} +0 -0
- /package/dist/cdn/{NDMFLRTB.js → 3NSVHKCX.js} +0 -0
- /package/dist/cdn/{O6LYJEON.js → 3WCEFKJX.js} +0 -0
- /package/dist/cdn/{MC2YUGXZ.js → 3X2K6TOS.js} +0 -0
- /package/dist/cdn/{KCP3JSEI.js → 5U45EC5U.js} +0 -0
- /package/dist/cdn/{OKNXBCUX.js → 6TIWCGNI.js} +0 -0
- /package/dist/cdn/{U3TSRIEI.js → ACZBI3TS.js} +0 -0
- /package/dist/cdn/{L54L4XXE.js → BALE27RC.js} +0 -0
- /package/dist/cdn/{W52ULASU.js → CSLP3Y5Q.js} +0 -0
- /package/dist/cdn/{URTOVAT4.js → FVOWGP5P.js} +0 -0
- /package/dist/cdn/{772IZDK4.js → HHVQ6PZP.js} +0 -0
- /package/dist/cdn/{7LWMV5A2.js → IIQPDHOL.js} +0 -0
- /package/dist/cdn/{KDLK5QD5.js → KODINAEM.js} +0 -0
- /package/dist/cdn/{KRMRVJFP.js → KOSOMJZF.js} +0 -0
- /package/dist/cdn/{7IB6AI2V.js → LCL6A5WY.js} +0 -0
- /package/dist/cdn/{VUQCK6IF.js → M3RQA7LC.js} +0 -0
- /package/dist/cdn/{GNOAUTDK.js → NFC5RKO7.js} +0 -0
- /package/dist/cdn/{NRMPFAXY.js → NY56F774.js} +0 -0
- /package/dist/cdn/{IL63OQEZ.js → OKZBZTFG.js} +0 -0
- /package/dist/cdn/{XUZ43MBE.js → PFWDUC5T.js} +0 -0
- /package/dist/cdn/{KOZ67YXN.js → PS4ID2TE.js} +0 -0
- /package/dist/cdn/{AVFPVB7U.js → QBLPJW3F.js} +0 -0
- /package/dist/cdn/{UHA7OYN5.js → R6G7YQAK.js} +0 -0
- /package/dist/cdn/{TKKD4742.js → RT5PKDE3.js} +0 -0
- /package/dist/cdn/{H76ZEZDT.js → S372YWXF.js} +0 -0
- /package/dist/cdn/{3MSBRZSL.js → S6ARJLXF.js} +0 -0
- /package/dist/cdn/{GMSP2RYI.js → ST4PUEOI.js} +0 -0
- /package/dist/cdn/{ZRRRSIMH.js → SYVTOG2B.js} +0 -0
- /package/dist/cdn/{FV53P5VQ.js → U5WUAQYQ.js} +0 -0
- /package/dist/cdn/{F6ZBUVU3.js → UGILYDTR.js} +0 -0
- /package/dist/cdn/{NI4PVDRC.js → VOI7MTIP.js} +0 -0
- /package/dist/cdn/{QGYTLHWY.js → VZLSY2HC.js} +0 -0
- /package/dist/cdn/{KAJYVAAI.js → WDDHDMHF.js} +0 -0
- /package/dist/cdn/{HEP3BHHQ.js → XPGK3YXK.js} +0 -0
- /package/dist/cdn/{2KBFRAA3.js → XQ5DUVE2.js} +0 -0
- /package/dist/cdn/{LSPV526S.js → XVEQWFE4.js} +0 -0
- /package/dist/cdn/{CK5XEDZS.js → YDOV4SQ2.js} +0 -0
- /package/dist/cdn/{PZSA4K32.js → YGVTAUE6.js} +0 -0
- /package/dist/cdn/{7D5T777O.js → YSJ2NU2N.js} +0 -0
- /package/dist/cdn/{OWF5OCZY.js → ZHJBZYZ4.js} +0 -0
|
@@ -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 u } from "lit";
|
|
3
|
+
import { when as r, watch as s } from "@arcgis/core/core/reactiveUtils.js";
|
|
4
|
+
import { GenericController as h, useDirection as c, makeGenericController as a } from "@arcgis/lumina/controllers";
|
|
5
|
+
import { getSlotAssignedElements as m } from "@arcgis/toolkit/dom";
|
|
6
|
+
import { createRef as f } from "lit/directives/ref.js";
|
|
7
|
+
import { c as d, S as E } from "./slots.js";
|
|
8
|
+
import { createEvent as l } from "@arcgis/lumina";
|
|
9
|
+
class C extends h {
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region Lifecycle
|
|
12
|
-
constructor(
|
|
13
|
-
super(
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
}), this.component.listenOn(globalThis, "unhandledrejection", (
|
|
17
|
-
const
|
|
18
|
-
if (
|
|
19
|
-
const { name:
|
|
20
|
-
this.webGLError = { name:
|
|
12
|
+
constructor(o) {
|
|
13
|
+
super(o), this.direction = c(), this.popupRef = f(), this.slotGroupRefs = d(), this.attributionHeight = 0, this._uiContainer = null, this.component.listen("arcgisViewClick", (t) => {
|
|
14
|
+
const e = t.detail.native;
|
|
15
|
+
t.detail.button !== 0 || e?.ctrlKey || e?.metaKey || this._handleOpenPopup(t.detail);
|
|
16
|
+
}), this.component.listenOn(globalThis, "unhandledrejection", (t) => {
|
|
17
|
+
const e = t.reason;
|
|
18
|
+
if (e?.name === "webgl:required") {
|
|
19
|
+
const { name: i } = e;
|
|
20
|
+
this.webGLError = { name: i };
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
}
|
|
@@ -25,22 +25,22 @@ class y extends u {
|
|
|
25
25
|
//#region Private Methods
|
|
26
26
|
hostLifecycle() {
|
|
27
27
|
return [
|
|
28
|
-
|
|
28
|
+
r(() => this.component.view.ready, () => {
|
|
29
29
|
this._assignDefaultPopup();
|
|
30
30
|
}),
|
|
31
31
|
// Close component popup when view popup is opened
|
|
32
|
-
|
|
32
|
+
r(() => 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(o) {
|
|
38
38
|
if (this._assignDefaultPopup(), this.closePopup(), this.popupElement) {
|
|
39
39
|
await this.popupElement.componentOnReady(), this.popupElement.open = !0;
|
|
40
|
-
const { fetchFeatures:
|
|
41
|
-
delete
|
|
40
|
+
const { fetchFeatures: t } = o;
|
|
41
|
+
delete o.fetchFeatures, Object.assign(this.popupElement, o), t && this.popupElement.fetchFeatures();
|
|
42
42
|
} else
|
|
43
|
-
await this.component.view.openPopup(
|
|
43
|
+
await this.component.view.openPopup(o);
|
|
44
44
|
}
|
|
45
45
|
closePopup() {
|
|
46
46
|
this.popupElement && (this.popupElement.open = !1), this.component.view.closePopup();
|
|
@@ -48,11 +48,11 @@ class y extends u {
|
|
|
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 =
|
|
54
|
-
const
|
|
55
|
-
this._uiContainer =
|
|
51
|
+
handleAttributionHeightChange(o) {
|
|
52
|
+
if (!(this.attributionHeight === o || !this.component.el.shadowRoot)) {
|
|
53
|
+
if (this.attributionHeight = o, !this._uiContainer) {
|
|
54
|
+
const t = this.component.el.shadowRoot.querySelector(".arcgis-map-container-ui");
|
|
55
|
+
this._uiContainer = t;
|
|
56
56
|
}
|
|
57
57
|
this._uiContainer?.style.setProperty("--arcgis-internal-attribution-space-top", `${this.attributionHeight}px`);
|
|
58
58
|
}
|
|
@@ -63,112 +63,61 @@ class y extends u {
|
|
|
63
63
|
_maybeResetViewPopup() {
|
|
64
64
|
this.component.view && this.previousViewPopupEnabled !== void 0 && (this.component.view.popupEnabled = this.previousViewPopupEnabled, this.previousViewPopupEnabled = void 0);
|
|
65
65
|
}
|
|
66
|
-
async _handleOpenPopup(
|
|
66
|
+
async _handleOpenPopup(o) {
|
|
67
67
|
if (this._assignDefaultPopup(), !this.component.popupDisabled) {
|
|
68
68
|
if (this._maybeDisableViewPopup(), this.popupElement) {
|
|
69
|
-
const { location:
|
|
70
|
-
|
|
69
|
+
const { location: t, promises: e } = await this.popupElement?.handleViewClick(o) ?? {};
|
|
70
|
+
e?.length ? this.openPopup({ location: t, promises: e }) : this.popupElement?.open && this.closePopup();
|
|
71
71
|
}
|
|
72
72
|
this._maybeResetViewPopup();
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
_handlePopupSlotChange(
|
|
76
|
-
const
|
|
77
|
-
!this.popupElement &&
|
|
75
|
+
_handlePopupSlotChange(o) {
|
|
76
|
+
const t = m(o.target, "arcgis-popup");
|
|
77
|
+
!this.popupElement && t.length ? this.popupElement = t[0] : t.length || (this.popupElement = void 0);
|
|
78
78
|
}
|
|
79
79
|
_webGLErrorAlert() {
|
|
80
|
-
return this.webGLError ?
|
|
80
|
+
return this.webGLError ? u`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>` : null;
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region Rendering
|
|
84
84
|
render() {
|
|
85
|
-
return
|
|
85
|
+
return E({ direction: this.direction, popupComponentEnabled: this.component.popupComponentEnabled, slotGroupRefs: this.slotGroupRefs, handlePopupSlotChange: (o) => this._handlePopupSlotChange(o), webGLErrorElement: this._webGLErrorAlert(), popupElement: this.popupRef });
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
const
|
|
89
|
-
const
|
|
90
|
-
return
|
|
91
|
-
() =>
|
|
88
|
+
const R = a((p, o) => {
|
|
89
|
+
const t = l();
|
|
90
|
+
return o.onLifecycle(
|
|
91
|
+
() => s(
|
|
92
92
|
() => {
|
|
93
|
-
const { map:
|
|
94
|
-
if (!
|
|
93
|
+
const { map: e } = p;
|
|
94
|
+
if (!e || e.destroyed)
|
|
95
95
|
return [];
|
|
96
|
-
const
|
|
97
|
-
return
|
|
98
|
-
|
|
99
|
-
}),
|
|
96
|
+
const i = [];
|
|
97
|
+
return e.loadError && i.push(e), e.basemap?.loadError && i.push(e.basemap), e.ground.loadError && i.push(e.ground), [...e.allLayers, ...e.allTables].forEach((n) => {
|
|
98
|
+
n.loadError && i.push(n);
|
|
99
|
+
}), i;
|
|
100
100
|
},
|
|
101
|
-
(
|
|
102
|
-
|
|
101
|
+
(e) => {
|
|
102
|
+
e.length && (p.loadErrorSources = e, t.emit());
|
|
103
103
|
}
|
|
104
104
|
)
|
|
105
|
-
),
|
|
106
|
-
})
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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();
|
|
105
|
+
), t;
|
|
106
|
+
}), G = a(
|
|
107
|
+
(p, o) => {
|
|
108
|
+
const t = l();
|
|
109
|
+
return o.onLifecycle(
|
|
110
|
+
() => s(
|
|
111
|
+
() => p.view?.readyState,
|
|
112
|
+
(e) => {
|
|
113
|
+
(e === "map-content-error" || e === "rendering-error") && t.emit();
|
|
164
114
|
}
|
|
165
115
|
)
|
|
166
|
-
),
|
|
116
|
+
), t;
|
|
167
117
|
}
|
|
168
118
|
);
|
|
169
119
|
export {
|
|
170
|
-
|
|
171
|
-
y as U,
|
|
120
|
+
C as U,
|
|
172
121
|
G as a,
|
|
173
|
-
|
|
122
|
+
R as u
|
|
174
123
|
};
|