@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.
Files changed (183) hide show
  1. package/dist/cdn/{ZZORY2UI.js → 2GDVOK6V.js} +1 -1
  2. package/dist/cdn/3M2OCTTN.js +2 -0
  3. package/dist/cdn/43B43AY2.js +2 -0
  4. package/dist/cdn/{A6P7RDWG.js → 4AQ43ENS.js} +1 -1
  5. package/dist/cdn/{BQDL5AKD.js → 6RUN7OSM.js} +1 -1
  6. package/dist/cdn/{6OHXFH4A.js → 6SY6H3FZ.js} +1 -1
  7. package/dist/cdn/{JA7RPLTP.js → 6WV5RHUP.js} +2 -2
  8. package/dist/cdn/{QZMJWS2B.js → ADWNNODV.js} +1 -1
  9. package/dist/cdn/CH6EZH77.js +2 -0
  10. package/dist/cdn/CNNVHQTZ.js +4 -0
  11. package/dist/cdn/CPQRCYUD.js +2 -0
  12. package/dist/cdn/CRJEQWDO.js +2 -0
  13. package/dist/cdn/DCNSXS23.js +2 -0
  14. package/dist/cdn/DZMN2UH5.js +2 -0
  15. package/dist/cdn/EJAWFQRM.js +2 -0
  16. package/dist/cdn/FKJU4SJG.js +2 -0
  17. package/dist/cdn/FWSLFWOH.js +2 -0
  18. package/dist/cdn/{Q4753YCY.js → GD7MA2TO.js} +1 -1
  19. package/dist/cdn/HBE3W2BQ.js +2 -0
  20. package/dist/cdn/IJYN5YEP.js +2 -0
  21. package/dist/cdn/JOOGE4FT.js +2 -0
  22. package/dist/cdn/{VRLY2I2M.js → MASUN7EL.js} +1 -1
  23. package/dist/cdn/{X5TD4KCW.js → MZBCMFYH.js} +1 -1
  24. package/dist/cdn/{FMTWGY6C.js → NJHOCKLL.js} +1 -1
  25. package/dist/cdn/OZJJULKI.js +2 -0
  26. package/dist/cdn/{J4TYGEI3.js → RIRETHHL.js} +1 -1
  27. package/dist/cdn/{PO3NMPKS.js → SXWQBHG3.js} +1 -1
  28. package/dist/cdn/TCUFYIIZ.js +2 -0
  29. package/dist/cdn/VHJSRDE4.js +2 -0
  30. package/dist/cdn/{7I7G7KRT.js → W4SQ3QCZ.js} +1 -1
  31. package/dist/cdn/WFL2WTJK.js +2 -0
  32. package/dist/cdn/X5UAYUNL.js +2 -0
  33. package/dist/cdn/{L77C4X4F.js → XYUG5M3W.js} +1 -1
  34. package/dist/cdn/assets/feature-templates/t9n/messages.ar.json +1 -0
  35. package/dist/cdn/assets/feature-templates/t9n/messages.bg.json +1 -0
  36. package/dist/cdn/assets/feature-templates/t9n/messages.bs.json +1 -0
  37. package/dist/cdn/assets/feature-templates/t9n/messages.ca.json +1 -0
  38. package/dist/cdn/assets/feature-templates/t9n/messages.cs.json +1 -0
  39. package/dist/cdn/assets/feature-templates/t9n/messages.da.json +1 -0
  40. package/dist/cdn/assets/feature-templates/t9n/messages.de.json +1 -0
  41. package/dist/cdn/assets/feature-templates/t9n/messages.el.json +1 -0
  42. package/dist/cdn/assets/feature-templates/t9n/messages.en.json +1 -0
  43. package/dist/cdn/assets/feature-templates/t9n/messages.es.json +1 -0
  44. package/dist/cdn/assets/feature-templates/t9n/messages.et.json +1 -0
  45. package/dist/cdn/assets/feature-templates/t9n/messages.fi.json +1 -0
  46. package/dist/cdn/assets/feature-templates/t9n/messages.fr.json +1 -0
  47. package/dist/cdn/assets/feature-templates/t9n/messages.he.json +1 -0
  48. package/dist/cdn/assets/feature-templates/t9n/messages.hr.json +1 -0
  49. package/dist/cdn/assets/feature-templates/t9n/messages.hu.json +1 -0
  50. package/dist/cdn/assets/feature-templates/t9n/messages.id.json +1 -0
  51. package/dist/cdn/assets/feature-templates/t9n/messages.it.json +1 -0
  52. package/dist/cdn/assets/feature-templates/t9n/messages.ja.json +1 -0
  53. package/dist/cdn/assets/feature-templates/t9n/messages.ko.json +1 -0
  54. package/dist/cdn/assets/feature-templates/t9n/messages.lt.json +1 -0
  55. package/dist/cdn/assets/feature-templates/t9n/messages.lv.json +1 -0
  56. package/dist/cdn/assets/feature-templates/t9n/messages.nl.json +1 -0
  57. package/dist/cdn/assets/feature-templates/t9n/messages.no.json +1 -0
  58. package/dist/cdn/assets/feature-templates/t9n/messages.pl.json +1 -0
  59. package/dist/cdn/assets/feature-templates/t9n/messages.pt-BR.json +1 -0
  60. package/dist/cdn/assets/feature-templates/t9n/messages.pt-PT.json +1 -0
  61. package/dist/cdn/assets/feature-templates/t9n/messages.ro.json +1 -0
  62. package/dist/cdn/assets/feature-templates/t9n/messages.ru.json +1 -0
  63. package/dist/cdn/assets/feature-templates/t9n/messages.sk.json +1 -0
  64. package/dist/cdn/assets/feature-templates/t9n/messages.sl.json +1 -0
  65. package/dist/cdn/assets/feature-templates/t9n/messages.sr.json +1 -0
  66. package/dist/cdn/assets/feature-templates/t9n/messages.sv.json +1 -0
  67. package/dist/cdn/assets/feature-templates/t9n/messages.th.json +1 -0
  68. package/dist/cdn/assets/feature-templates/t9n/messages.tr.json +1 -0
  69. package/dist/cdn/assets/feature-templates/t9n/messages.uk.json +1 -0
  70. package/dist/cdn/assets/feature-templates/t9n/messages.vi.json +1 -0
  71. package/dist/cdn/assets/feature-templates/t9n/messages.zh-CN.json +1 -0
  72. package/dist/cdn/assets/feature-templates/t9n/messages.zh-HK.json +1 -0
  73. package/dist/cdn/assets/feature-templates/t9n/messages.zh-TW.json +1 -0
  74. package/dist/cdn/index.js +1 -1
  75. package/dist/cdn/main.css +1 -1
  76. package/dist/chunks/useArcgisViewReadyError.js +60 -111
  77. package/dist/components/arcgis-daylight/customElement.d.ts +1 -0
  78. package/dist/components/arcgis-daylight/customElement.js +98 -112
  79. package/dist/components/arcgis-feature-table/customElement.d.ts +8 -0
  80. package/dist/components/arcgis-feature-table/customElement.js +28 -28
  81. package/dist/components/arcgis-feature-templates/TemplateItem.d.ts +33 -0
  82. package/dist/components/arcgis-feature-templates/customElement.d.ts +275 -0
  83. package/dist/components/arcgis-feature-templates/customElement.js +560 -0
  84. package/dist/components/arcgis-feature-templates/index.d.ts +1 -0
  85. package/dist/components/arcgis-feature-templates/index.js +13 -0
  86. package/dist/components/arcgis-features-next/customElement.d.ts +2 -0
  87. package/dist/components/arcgis-features-next/customElement.js +69 -63
  88. package/dist/components/arcgis-features-next/index.js +1 -0
  89. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +23 -23
  90. package/dist/components/arcgis-link-chart/customElement.d.ts +11 -4
  91. package/dist/components/arcgis-link-chart/customElement.js +11 -11
  92. package/dist/components/arcgis-map/customElement.d.ts +10 -3
  93. package/dist/components/arcgis-map/customElement.js +9 -9
  94. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +3 -3
  95. package/dist/components/arcgis-paste/PasteViewModel.d.ts +1 -1
  96. package/dist/components/arcgis-paste/customElement.js +27 -38
  97. package/dist/components/arcgis-paste/index.js +1 -1
  98. package/dist/components/arcgis-popup/customElement.d.ts +2 -0
  99. package/dist/components/arcgis-popup/customElement.js +9 -9
  100. package/dist/components/arcgis-scene/customElement.d.ts +10 -3
  101. package/dist/components/arcgis-scene/customElement.js +24 -24
  102. package/dist/components/arcgis-search/customElement.js +6 -6
  103. package/dist/components/arcgis-template-image/customElement.d.ts +14 -0
  104. package/dist/components/arcgis-template-image/customElement.js +119 -0
  105. package/dist/components/arcgis-template-image/index.d.ts +1 -0
  106. package/dist/components/arcgis-template-image/index.js +1 -0
  107. package/dist/components/arcgis-video/customElement.d.ts +15 -2
  108. package/dist/components/arcgis-video/customElement.js +5 -5
  109. package/dist/components/arcgis-video-player/customElement.d.ts +7 -0
  110. package/dist/components/arcgis-video-player/customElement.js +14 -11
  111. package/dist/components/arcgis-video-player-controls-group/customElement.js +19 -17
  112. package/dist/components/arcgis-video-player-settings/customElement.js +20 -18
  113. package/dist/components/arcgis-video-player-settings/index.js +1 -0
  114. package/dist/docs/api.json +1 -1
  115. package/dist/docs/docs.json +1 -1
  116. package/dist/docs/vscode.html-custom-data.json +1 -1
  117. package/dist/docs/web-types.json +1 -1
  118. package/dist/index.d.ts +14 -0
  119. package/dist/loader.js +10 -8
  120. package/dist/types/lumina.d.ts +18 -4
  121. package/dist/types/preact.d.ts +20 -4
  122. package/dist/types/react.d.ts +22 -4
  123. package/dist/types/stencil.d.ts +18 -4
  124. package/package.json +4 -4
  125. package/dist/cdn/3X33RWNO.js +0 -2
  126. package/dist/cdn/5QATVROE.js +0 -2
  127. package/dist/cdn/CLFGHCMB.js +0 -2
  128. package/dist/cdn/COKJF3EH.js +0 -2
  129. package/dist/cdn/E33LBHQA.js +0 -4
  130. package/dist/cdn/E6IL4F2M.js +0 -2
  131. package/dist/cdn/G56TPBPA.js +0 -2
  132. package/dist/cdn/GCFIJLPC.js +0 -2
  133. package/dist/cdn/JUIA2RF6.js +0 -2
  134. package/dist/cdn/L4RTHLN4.js +0 -2
  135. package/dist/cdn/OYP56BNC.js +0 -2
  136. package/dist/cdn/QKPKTEN4.js +0 -2
  137. package/dist/cdn/R45DWBFZ.js +0 -2
  138. package/dist/cdn/RPMEM4UV.js +0 -2
  139. package/dist/cdn/RZHHKFQG.js +0 -2
  140. package/dist/cdn/SM4Y3DFU.js +0 -2
  141. package/dist/cdn/ZVTOXQKI.js +0 -2
  142. /package/dist/cdn/{GJ5TOPT3.js → 2CZRXPMB.js} +0 -0
  143. /package/dist/cdn/{DPU3VHST.js → 2RIDZVJS.js} +0 -0
  144. /package/dist/cdn/{SUNN2JJ2.js → 3DVOY4BQ.js} +0 -0
  145. /package/dist/cdn/{NDMFLRTB.js → 3NSVHKCX.js} +0 -0
  146. /package/dist/cdn/{O6LYJEON.js → 3WCEFKJX.js} +0 -0
  147. /package/dist/cdn/{MC2YUGXZ.js → 3X2K6TOS.js} +0 -0
  148. /package/dist/cdn/{KCP3JSEI.js → 5U45EC5U.js} +0 -0
  149. /package/dist/cdn/{OKNXBCUX.js → 6TIWCGNI.js} +0 -0
  150. /package/dist/cdn/{U3TSRIEI.js → ACZBI3TS.js} +0 -0
  151. /package/dist/cdn/{L54L4XXE.js → BALE27RC.js} +0 -0
  152. /package/dist/cdn/{W52ULASU.js → CSLP3Y5Q.js} +0 -0
  153. /package/dist/cdn/{URTOVAT4.js → FVOWGP5P.js} +0 -0
  154. /package/dist/cdn/{772IZDK4.js → HHVQ6PZP.js} +0 -0
  155. /package/dist/cdn/{7LWMV5A2.js → IIQPDHOL.js} +0 -0
  156. /package/dist/cdn/{KDLK5QD5.js → KODINAEM.js} +0 -0
  157. /package/dist/cdn/{KRMRVJFP.js → KOSOMJZF.js} +0 -0
  158. /package/dist/cdn/{7IB6AI2V.js → LCL6A5WY.js} +0 -0
  159. /package/dist/cdn/{VUQCK6IF.js → M3RQA7LC.js} +0 -0
  160. /package/dist/cdn/{GNOAUTDK.js → NFC5RKO7.js} +0 -0
  161. /package/dist/cdn/{NRMPFAXY.js → NY56F774.js} +0 -0
  162. /package/dist/cdn/{IL63OQEZ.js → OKZBZTFG.js} +0 -0
  163. /package/dist/cdn/{XUZ43MBE.js → PFWDUC5T.js} +0 -0
  164. /package/dist/cdn/{KOZ67YXN.js → PS4ID2TE.js} +0 -0
  165. /package/dist/cdn/{AVFPVB7U.js → QBLPJW3F.js} +0 -0
  166. /package/dist/cdn/{UHA7OYN5.js → R6G7YQAK.js} +0 -0
  167. /package/dist/cdn/{TKKD4742.js → RT5PKDE3.js} +0 -0
  168. /package/dist/cdn/{H76ZEZDT.js → S372YWXF.js} +0 -0
  169. /package/dist/cdn/{3MSBRZSL.js → S6ARJLXF.js} +0 -0
  170. /package/dist/cdn/{GMSP2RYI.js → ST4PUEOI.js} +0 -0
  171. /package/dist/cdn/{ZRRRSIMH.js → SYVTOG2B.js} +0 -0
  172. /package/dist/cdn/{FV53P5VQ.js → U5WUAQYQ.js} +0 -0
  173. /package/dist/cdn/{F6ZBUVU3.js → UGILYDTR.js} +0 -0
  174. /package/dist/cdn/{NI4PVDRC.js → VOI7MTIP.js} +0 -0
  175. /package/dist/cdn/{QGYTLHWY.js → VZLSY2HC.js} +0 -0
  176. /package/dist/cdn/{KAJYVAAI.js → WDDHDMHF.js} +0 -0
  177. /package/dist/cdn/{HEP3BHHQ.js → XPGK3YXK.js} +0 -0
  178. /package/dist/cdn/{2KBFRAA3.js → XQ5DUVE2.js} +0 -0
  179. /package/dist/cdn/{LSPV526S.js → XVEQWFE4.js} +0 -0
  180. /package/dist/cdn/{CK5XEDZS.js → YDOV4SQ2.js} +0 -0
  181. /package/dist/cdn/{PZSA4K32.js → YGVTAUE6.js} +0 -0
  182. /package/dist/cdn/{7D5T777O.js → YSJ2NU2N.js} +0 -0
  183. /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 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 {
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(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
- }), this.component.listenOn(globalThis, "unhandledrejection", (o) => {
17
- const t = o.reason;
18
- if (t?.name === "webgl:required") {
19
- const { name: p } = t;
20
- this.webGLError = { name: p };
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
- n(() => this.component.view.ready, () => {
28
+ r(() => this.component.view.ready, () => {
29
29
  this._assignDefaultPopup();
30
30
  }),
31
31
  // Close component popup when view popup is opened
32
- n(() => this.component.view.popup?.visible, () => {
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(e) {
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: o } = e;
41
- delete e.fetchFeatures, Object.assign(this.popupElement, e), o && this.popupElement.fetchFeatures();
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(e);
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(e) {
52
- if (!(this.attributionHeight === e || !this.component.el.shadowRoot)) {
53
- if (this.attributionHeight = e, !this._uiContainer) {
54
- const o = this.component.el.shadowRoot.querySelector(".arcgis-map-container-ui");
55
- this._uiContainer = o;
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(e) {
66
+ async _handleOpenPopup(o) {
67
67
  if (this._assignDefaultPopup(), !this.component.popupDisabled) {
68
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();
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(e) {
76
- const o = d(e.target, "arcgis-popup");
77
- !this.popupElement && o.length ? this.popupElement = o[0] : o.length || (this.popupElement = void 0);
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 ? c`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>` : null;
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 w({ direction: this.direction, popupComponentEnabled: this.component.popupComponentEnabled, slotGroupRefs: this.slotGroupRefs, handlePopupSlotChange: (e) => this._handlePopupSlotChange(e), webGLErrorElement: this._webGLErrorAlert(), popupElement: this.popupRef });
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 V = l((i, e) => {
89
- const o = a();
90
- return e.onLifecycle(
91
- () => r(
88
+ const R = a((p, o) => {
89
+ const t = l();
90
+ return o.onLifecycle(
91
+ () => s(
92
92
  () => {
93
- const { map: t } = i;
94
- if (!t || t.destroyed)
93
+ const { map: e } = p;
94
+ if (!e || e.destroyed)
95
95
  return [];
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;
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
- (t) => {
102
- t.length && (i.loadErrorSources = t, o.emit());
101
+ (e) => {
102
+ e.length && (p.loadErrorSources = e, t.emit());
103
103
  }
104
104
  )
105
- ), o;
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();
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
- ), o;
116
+ ), t;
167
117
  }
168
118
  );
169
119
  export {
170
- L as P,
171
- y as U,
120
+ C as U,
172
121
  G as a,
173
- V as u
122
+ R as u
174
123
  };
@@ -145,6 +145,7 @@ export abstract class ArcgisDaylight extends LitElement {
145
145
  */
146
146
  get localDate(): Date;
147
147
  set localDate(value: Date | number | string);
148
+ get localDateAsString(): string;
148
149
  /** @internal */
149
150
  protected messages: {
150
151
  componentLabel: string;