@arcgis/map-components 1.0.0-beta.14 → 1.0.0-beta.17

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 (248) hide show
  1. package/dist/arcgis-map-components/app-globals-0f993ce5.js +3 -0
  2. package/dist/{esm → arcgis-map-components}/arcgis-area-measurement-2d.entry.js +2 -2
  3. package/dist/{esm → arcgis-map-components}/arcgis-area-measurement-3d.entry.js +2 -2
  4. package/dist/{esm → arcgis-map-components}/arcgis-attachments.entry.js +2 -2
  5. package/dist/arcgis-map-components/arcgis-basemap-gallery.entry.js +93 -0
  6. package/dist/{esm → arcgis-map-components}/arcgis-basemap-layer-list.entry.js +2 -2
  7. package/dist/{esm → arcgis-map-components}/arcgis-basemap-toggle.entry.js +2 -2
  8. package/dist/{esm → arcgis-map-components}/arcgis-bookmarks.entry.js +2 -2
  9. package/dist/{esm → arcgis-map-components}/arcgis-building-explorer.entry.js +2 -2
  10. package/dist/{esm → arcgis-map-components}/arcgis-compass.entry.js +2 -2
  11. package/dist/{esm → arcgis-map-components}/arcgis-coordinate-conversion.entry.js +2 -2
  12. package/dist/{esm → arcgis-map-components}/arcgis-daylight.entry.js +2 -2
  13. package/dist/{esm → arcgis-map-components}/arcgis-directions.entry.js +2 -2
  14. package/dist/{esm → arcgis-map-components}/arcgis-directline-measurement-3d.entry.js +2 -2
  15. package/dist/{esm → arcgis-map-components}/arcgis-distance-measurement-2d.entry.js +2 -2
  16. package/dist/{esm → arcgis-map-components}/arcgis-editor.entry.js +2 -2
  17. package/dist/{esm → arcgis-map-components}/arcgis-elevation-profile.entry.js +2 -2
  18. package/dist/{components/arcgis-expand2.js → arcgis-map-components/arcgis-expand.entry.js} +11 -30
  19. package/dist/{esm → arcgis-map-components}/arcgis-feature-form.entry.js +2 -2
  20. package/dist/{esm → arcgis-map-components}/arcgis-feature-table.entry.js +2 -2
  21. package/dist/{esm → arcgis-map-components}/arcgis-feature-templates.entry.js +2 -2
  22. package/dist/{esm → arcgis-map-components}/arcgis-feature.entry.js +2 -2
  23. package/dist/{esm → arcgis-map-components}/arcgis-features.entry.js +2 -2
  24. package/dist/{esm → arcgis-map-components}/arcgis-floor-filter.entry.js +2 -2
  25. package/dist/{esm → arcgis-map-components}/arcgis-fullscreen.entry.js +2 -2
  26. package/dist/{esm → arcgis-map-components}/arcgis-histogram-range-slider.entry.js +2 -2
  27. package/dist/{esm → arcgis-map-components}/arcgis-histogram.entry.js +2 -2
  28. package/dist/{esm → arcgis-map-components}/arcgis-home.entry.js +2 -2
  29. package/dist/{esm → arcgis-map-components}/arcgis-layer-list.entry.js +2 -2
  30. package/dist/{esm → arcgis-map-components}/arcgis-legend.entry.js +2 -2
  31. package/dist/{esm → arcgis-map-components}/arcgis-line-of-sight.entry.js +2 -2
  32. package/dist/{esm → arcgis-map-components}/arcgis-locate.entry.js +2 -2
  33. package/dist/arcgis-map-components/arcgis-map-components.esm.js +148 -1
  34. package/dist/{components/arcgis-map.js → arcgis-map-components/arcgis-map.entry.js} +10 -36
  35. package/dist/{esm → arcgis-map-components}/arcgis-measurement.entry.js +2 -2
  36. package/dist/{esm → arcgis-map-components}/arcgis-navigation-toggle.entry.js +2 -2
  37. package/dist/{esm → arcgis-map-components}/arcgis-print.entry.js +2 -2
  38. package/dist/{esm → arcgis-map-components}/arcgis-scale-bar.entry.js +2 -2
  39. package/dist/{esm → arcgis-map-components}/arcgis-scale-range-slider.entry.js +2 -2
  40. package/dist/{esm → arcgis-map-components}/arcgis-scene.entry.js +2 -2
  41. package/dist/{esm → arcgis-map-components}/arcgis-search.entry.js +2 -2
  42. package/dist/{esm → arcgis-map-components}/arcgis-shadow-cast.entry.js +2 -2
  43. package/dist/{esm → arcgis-map-components}/arcgis-sketch.entry.js +2 -2
  44. package/dist/{esm → arcgis-map-components}/arcgis-slice.entry.js +2 -2
  45. package/dist/{esm → arcgis-map-components}/arcgis-slider.entry.js +2 -2
  46. package/dist/{esm → arcgis-map-components}/arcgis-swipe.entry.js +2 -2
  47. package/dist/{esm → arcgis-map-components}/arcgis-table-list.entry.js +2 -2
  48. package/dist/{esm → arcgis-map-components}/arcgis-time-slider.entry.js +2 -2
  49. package/dist/{esm → arcgis-map-components}/arcgis-track.entry.js +2 -2
  50. package/dist/{esm → arcgis-map-components}/arcgis-utility-network-trace.entry.js +2 -2
  51. package/dist/{esm → arcgis-map-components}/arcgis-value-picker.entry.js +2 -2
  52. package/dist/{esm → arcgis-map-components}/arcgis-weather.entry.js +2 -2
  53. package/dist/{esm → arcgis-map-components}/arcgis-zoom.entry.js +2 -2
  54. package/dist/arcgis-map-components/css-shim-b7d3d95f.js +4 -0
  55. package/dist/arcgis-map-components/dom-64053c71.js +73 -0
  56. package/dist/arcgis-map-components/index-82d260eb.js +8293 -0
  57. package/dist/arcgis-map-components/index-d9a93dfb.js +3371 -0
  58. package/dist/arcgis-map-components/index.esm.js +1 -0
  59. package/dist/arcgis-map-components/shadow-css-008a49f5.js +387 -0
  60. package/package.json +4 -5
  61. package/dist/arcgis-map-components/p-095e0075.js +0 -1
  62. package/dist/arcgis-map-components/p-0a81674b.entry.js +0 -1
  63. package/dist/arcgis-map-components/p-0b5368a6.entry.js +0 -1
  64. package/dist/arcgis-map-components/p-0dddef29.entry.js +0 -1
  65. package/dist/arcgis-map-components/p-0decaa03.entry.js +0 -1
  66. package/dist/arcgis-map-components/p-1126ae71.entry.js +0 -1
  67. package/dist/arcgis-map-components/p-1307fe8a.entry.js +0 -1
  68. package/dist/arcgis-map-components/p-1401deea.js +0 -1
  69. package/dist/arcgis-map-components/p-1e5e5ed9.js +0 -2
  70. package/dist/arcgis-map-components/p-23530601.entry.js +0 -1
  71. package/dist/arcgis-map-components/p-3b5c0098.entry.js +0 -1
  72. package/dist/arcgis-map-components/p-406f187c.entry.js +0 -1
  73. package/dist/arcgis-map-components/p-5396bcb5.entry.js +0 -1
  74. package/dist/arcgis-map-components/p-5a87f5c4.entry.js +0 -1
  75. package/dist/arcgis-map-components/p-5cabdee7.js +0 -1
  76. package/dist/arcgis-map-components/p-69214958.entry.js +0 -1
  77. package/dist/arcgis-map-components/p-6e69fe28.entry.js +0 -1
  78. package/dist/arcgis-map-components/p-741086a4.entry.js +0 -1
  79. package/dist/arcgis-map-components/p-79080368.entry.js +0 -1
  80. package/dist/arcgis-map-components/p-7e5545cf.entry.js +0 -1
  81. package/dist/arcgis-map-components/p-7e90f27c.entry.js +0 -1
  82. package/dist/arcgis-map-components/p-80fd5534.entry.js +0 -1
  83. package/dist/arcgis-map-components/p-81a3bd3b.entry.js +0 -1
  84. package/dist/arcgis-map-components/p-85b278c1.entry.js +0 -1
  85. package/dist/arcgis-map-components/p-866d57e1.entry.js +0 -1
  86. package/dist/arcgis-map-components/p-86acdf29.entry.js +0 -1
  87. package/dist/arcgis-map-components/p-8bf81a13.entry.js +0 -1
  88. package/dist/arcgis-map-components/p-95287b70.entry.js +0 -1
  89. package/dist/arcgis-map-components/p-95aa4e86.entry.js +0 -1
  90. package/dist/arcgis-map-components/p-9634a446.entry.js +0 -1
  91. package/dist/arcgis-map-components/p-9d16369e.entry.js +0 -1
  92. package/dist/arcgis-map-components/p-a094dafc.entry.js +0 -1
  93. package/dist/arcgis-map-components/p-a6ab7f72.entry.js +0 -1
  94. package/dist/arcgis-map-components/p-a7715a1a.entry.js +0 -1
  95. package/dist/arcgis-map-components/p-aa73b1cb.entry.js +0 -1
  96. package/dist/arcgis-map-components/p-ae017ef1.entry.js +0 -1
  97. package/dist/arcgis-map-components/p-b5182c68.entry.js +0 -1
  98. package/dist/arcgis-map-components/p-b813c9e6.js +0 -1
  99. package/dist/arcgis-map-components/p-bfb9ceb4.entry.js +0 -1
  100. package/dist/arcgis-map-components/p-c28ede1a.entry.js +0 -1
  101. package/dist/arcgis-map-components/p-c64bceeb.entry.js +0 -1
  102. package/dist/arcgis-map-components/p-c726b024.entry.js +0 -1
  103. package/dist/arcgis-map-components/p-d0dc4119.entry.js +0 -1
  104. package/dist/arcgis-map-components/p-d2274db9.entry.js +0 -1
  105. package/dist/arcgis-map-components/p-d5b79b4e.entry.js +0 -1
  106. package/dist/arcgis-map-components/p-d9c0253a.entry.js +0 -1
  107. package/dist/arcgis-map-components/p-db02ac80.entry.js +0 -1
  108. package/dist/arcgis-map-components/p-dfbbbdad.entry.js +0 -1
  109. package/dist/arcgis-map-components/p-e432eb73.entry.js +0 -1
  110. package/dist/arcgis-map-components/p-e4f5a3f5.entry.js +0 -1
  111. package/dist/arcgis-map-components/p-f32183ab.entry.js +0 -1
  112. package/dist/arcgis-map-components/p-f9b78102.entry.js +0 -1
  113. package/dist/arcgis-map-components/p-fa591c93.entry.js +0 -1
  114. package/dist/arcgis-map-components/p-fee8b15a.entry.js +0 -1
  115. package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +0 -101
  116. package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +0 -94
  117. package/dist/cjs/arcgis-attachments.cjs.entry.js +0 -73
  118. package/dist/cjs/arcgis-basemap-gallery_3.cjs.entry.js +0 -281
  119. package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +0 -144
  120. package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +0 -115
  121. package/dist/cjs/arcgis-bookmarks.cjs.entry.js +0 -140
  122. package/dist/cjs/arcgis-building-explorer.cjs.entry.js +0 -80
  123. package/dist/cjs/arcgis-compass.cjs.entry.js +0 -90
  124. package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +0 -158
  125. package/dist/cjs/arcgis-daylight.cjs.entry.js +0 -116
  126. package/dist/cjs/arcgis-directions.cjs.entry.js +0 -194
  127. package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +0 -114
  128. package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +0 -106
  129. package/dist/cjs/arcgis-editor.cjs.entry.js +0 -180
  130. package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +0 -136
  131. package/dist/cjs/arcgis-feature-form.cjs.entry.js +0 -36
  132. package/dist/cjs/arcgis-feature-table.cjs.entry.js +0 -300
  133. package/dist/cjs/arcgis-feature-templates.cjs.entry.js +0 -73
  134. package/dist/cjs/arcgis-feature.cjs.entry.js +0 -106
  135. package/dist/cjs/arcgis-features.cjs.entry.js +0 -133
  136. package/dist/cjs/arcgis-floor-filter.cjs.entry.js +0 -134
  137. package/dist/cjs/arcgis-fullscreen.cjs.entry.js +0 -92
  138. package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +0 -80
  139. package/dist/cjs/arcgis-histogram.cjs.entry.js +0 -36
  140. package/dist/cjs/arcgis-home.cjs.entry.js +0 -108
  141. package/dist/cjs/arcgis-layer-list.cjs.entry.js +0 -128
  142. package/dist/cjs/arcgis-legend.cjs.entry.js +0 -146
  143. package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +0 -94
  144. package/dist/cjs/arcgis-locate.cjs.entry.js +0 -158
  145. package/dist/cjs/arcgis-map-components.cjs.js +0 -23
  146. package/dist/cjs/arcgis-measurement.cjs.entry.js +0 -123
  147. package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +0 -97
  148. package/dist/cjs/arcgis-print.cjs.entry.js +0 -163
  149. package/dist/cjs/arcgis-scale-bar.cjs.entry.js +0 -106
  150. package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +0 -146
  151. package/dist/cjs/arcgis-scene.cjs.entry.js +0 -106
  152. package/dist/cjs/arcgis-search.cjs.entry.js +0 -276
  153. package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +0 -95
  154. package/dist/cjs/arcgis-sketch.cjs.entry.js +0 -201
  155. package/dist/cjs/arcgis-slice.cjs.entry.js +0 -103
  156. package/dist/cjs/arcgis-slider.cjs.entry.js +0 -233
  157. package/dist/cjs/arcgis-swipe.cjs.entry.js +0 -117
  158. package/dist/cjs/arcgis-table-list.cjs.entry.js +0 -118
  159. package/dist/cjs/arcgis-time-slider.cjs.entry.js +0 -216
  160. package/dist/cjs/arcgis-track.cjs.entry.js +0 -147
  161. package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +0 -162
  162. package/dist/cjs/arcgis-value-picker.cjs.entry.js +0 -160
  163. package/dist/cjs/arcgis-weather.cjs.entry.js +0 -86
  164. package/dist/cjs/arcgis-zoom.cjs.entry.js +0 -100
  165. package/dist/cjs/component-utils-933b7aca.js +0 -76
  166. package/dist/cjs/disconnected-306cb220.js +0 -55
  167. package/dist/cjs/index-6b51d5a0.js +0 -1607
  168. package/dist/cjs/index-ef2acc94.js +0 -717
  169. package/dist/cjs/index.cjs.js +0 -2
  170. package/dist/cjs/loader.cjs.js +0 -22
  171. package/dist/cjs/mapping-utils-c2c7b994.js +0 -40
  172. package/dist/components/arcgis-area-measurement-2d.js +0 -128
  173. package/dist/components/arcgis-area-measurement-3d.js +0 -121
  174. package/dist/components/arcgis-attachments.js +0 -99
  175. package/dist/components/arcgis-basemap-gallery.js +0 -124
  176. package/dist/components/arcgis-basemap-layer-list.js +0 -175
  177. package/dist/components/arcgis-basemap-toggle.js +0 -143
  178. package/dist/components/arcgis-bookmarks.js +0 -169
  179. package/dist/components/arcgis-building-explorer.js +0 -105
  180. package/dist/components/arcgis-compass.js +0 -109
  181. package/dist/components/arcgis-coordinate-conversion.js +0 -193
  182. package/dist/components/arcgis-daylight.js +0 -144
  183. package/dist/components/arcgis-directions.js +0 -230
  184. package/dist/components/arcgis-directline-measurement-3d.js +0 -142
  185. package/dist/components/arcgis-distance-measurement-2d.js +0 -133
  186. package/dist/components/arcgis-editor.js +0 -219
  187. package/dist/components/arcgis-elevation-profile.js +0 -166
  188. package/dist/components/arcgis-expand.js +0 -6
  189. package/dist/components/arcgis-feature-form.js +0 -55
  190. package/dist/components/arcgis-feature-table.js +0 -355
  191. package/dist/components/arcgis-feature-templates.js +0 -98
  192. package/dist/components/arcgis-feature.js +0 -133
  193. package/dist/components/arcgis-features.js +0 -169
  194. package/dist/components/arcgis-floor-filter.js +0 -164
  195. package/dist/components/arcgis-fullscreen.js +0 -111
  196. package/dist/components/arcgis-histogram-range-slider.js +0 -106
  197. package/dist/components/arcgis-histogram.js +0 -55
  198. package/dist/components/arcgis-home.js +0 -129
  199. package/dist/components/arcgis-layer-list.js +0 -158
  200. package/dist/components/arcgis-legend.js +0 -177
  201. package/dist/components/arcgis-line-of-sight.js +0 -120
  202. package/dist/components/arcgis-locate.js +0 -184
  203. package/dist/components/arcgis-measurement.js +0 -153
  204. package/dist/components/arcgis-navigation-toggle.js +0 -117
  205. package/dist/components/arcgis-print.js +0 -197
  206. package/dist/components/arcgis-scale-bar.js +0 -133
  207. package/dist/components/arcgis-scale-range-slider.js +0 -177
  208. package/dist/components/arcgis-scene.js +0 -127
  209. package/dist/components/arcgis-search.js +0 -330
  210. package/dist/components/arcgis-shadow-cast.js +0 -121
  211. package/dist/components/arcgis-sketch.js +0 -238
  212. package/dist/components/arcgis-slice.js +0 -130
  213. package/dist/components/arcgis-slider.js +0 -281
  214. package/dist/components/arcgis-swipe.js +0 -140
  215. package/dist/components/arcgis-table-list.js +0 -147
  216. package/dist/components/arcgis-time-slider.js +0 -256
  217. package/dist/components/arcgis-track.js +0 -171
  218. package/dist/components/arcgis-utility-network-trace.js +0 -197
  219. package/dist/components/arcgis-value-picker.js +0 -198
  220. package/dist/components/arcgis-weather.js +0 -111
  221. package/dist/components/arcgis-zoom.js +0 -121
  222. package/dist/components/disconnected.js +0 -122
  223. package/dist/components/index.js +0 -52
  224. package/dist/components/index2.js +0 -638
  225. package/dist/components/mapping-utils.js +0 -38
  226. package/dist/esm/arcgis-basemap-gallery_3.entry.js +0 -275
  227. package/dist/esm/arcgis-map-components.js +0 -18
  228. package/dist/esm/index-ad26b6d0.js +0 -638
  229. package/dist/esm/index-eb3ead33.js +0 -1579
  230. package/dist/esm/index.js +0 -1
  231. package/dist/esm/loader.js +0 -18
  232. package/dist/esm/polyfills/core-js.js +0 -11
  233. package/dist/esm/polyfills/css-shim.js +0 -1
  234. package/dist/esm/polyfills/dom.js +0 -79
  235. package/dist/esm/polyfills/es5-html-element.js +0 -1
  236. package/dist/esm/polyfills/index.js +0 -34
  237. package/dist/esm/polyfills/system.js +0 -6
  238. package/dist/index.cjs.js +0 -1
  239. package/dist/index.js +0 -1
  240. package/dist/loader/cdn.js +0 -3
  241. package/dist/loader/index.cjs.js +0 -3
  242. package/dist/loader/index.d.ts +0 -21
  243. package/dist/loader/index.es2017.js +0 -3
  244. package/dist/loader/index.js +0 -4
  245. package/dist/loader/package.json +0 -11
  246. /package/dist/{esm → arcgis-map-components}/component-utils-d3552de2.js +0 -0
  247. /package/dist/{esm → arcgis-map-components}/disconnected-bc5fc8bc.js +0 -0
  248. /package/dist/{esm → arcgis-map-components}/mapping-utils-26beb904.js +0 -0
@@ -0,0 +1,387 @@
1
+ /*
2
+ Stencil Client Platform v2.22.3 | MIT Licensed | https://stenciljs.com
3
+ */
4
+ /**
5
+ * @license
6
+ * Copyright Google Inc. All Rights Reserved.
7
+ *
8
+ * Use of this source code is governed by an MIT-style license that can be
9
+ * found in the LICENSE file at https://angular.io/license
10
+ *
11
+ * This file is a port of shadowCSS from webcomponents.js to TypeScript.
12
+ * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
13
+ * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
14
+ */
15
+ const safeSelector = (selector) => {
16
+ const placeholders = [];
17
+ let index = 0;
18
+ // Replaces attribute selectors with placeholders.
19
+ // The WS in [attr="va lue"] would otherwise be interpreted as a selector separator.
20
+ selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
21
+ const replaceBy = `__ph-${index}__`;
22
+ placeholders.push(keep);
23
+ index++;
24
+ return replaceBy;
25
+ });
26
+ // Replaces the expression in `:nth-child(2n + 1)` with a placeholder.
27
+ // WS and "+" would otherwise be interpreted as selector separators.
28
+ const content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
29
+ const replaceBy = `__ph-${index}__`;
30
+ placeholders.push(exp);
31
+ index++;
32
+ return pseudo + replaceBy;
33
+ });
34
+ const ss = {
35
+ content,
36
+ placeholders,
37
+ };
38
+ return ss;
39
+ };
40
+ const restoreSafeSelector = (placeholders, content) => {
41
+ return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
42
+ };
43
+ const _polyfillHost = '-shadowcsshost';
44
+ const _polyfillSlotted = '-shadowcssslotted';
45
+ // note: :host-context pre-processed to -shadowcsshostcontext.
46
+ const _polyfillHostContext = '-shadowcsscontext';
47
+ const _parenSuffix = ')(?:\\((' + '(?:\\([^)(]*\\)|[^)(]*)+?' + ')\\))?([^,{]*)';
48
+ const _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');
49
+ const _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');
50
+ const _cssColonSlottedRe = new RegExp('(' + _polyfillSlotted + _parenSuffix, 'gim');
51
+ const _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';
52
+ const _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
53
+ const _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
54
+ const _selectorReSuffix = '([>\\s~+[.,{:][\\s\\S]*)?$';
55
+ const _polyfillHostRe = /-shadowcsshost/gim;
56
+ const _colonHostRe = /:host/gim;
57
+ const _colonSlottedRe = /::slotted/gim;
58
+ const _colonHostContextRe = /:host-context/gim;
59
+ const _commentRe = /\/\*\s*[\s\S]*?\*\//g;
60
+ const stripComments = (input) => {
61
+ return input.replace(_commentRe, '');
62
+ };
63
+ const _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
64
+ const extractCommentsWithHash = (input) => {
65
+ return input.match(_commentWithHashRe) || [];
66
+ };
67
+ const _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
68
+ const _curlyRe = /([{}])/g;
69
+ const _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
70
+ const OPEN_CURLY = '{';
71
+ const CLOSE_CURLY = '}';
72
+ const BLOCK_PLACEHOLDER = '%BLOCK%';
73
+ const processRules = (input, ruleCallback) => {
74
+ const inputWithEscapedBlocks = escapeBlocks(input);
75
+ let nextBlockIndex = 0;
76
+ return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
77
+ const selector = m[2];
78
+ let content = '';
79
+ let suffix = m[4];
80
+ let contentPrefix = '';
81
+ if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {
82
+ content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
83
+ suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
84
+ contentPrefix = '{';
85
+ }
86
+ const cssRule = {
87
+ selector,
88
+ content,
89
+ };
90
+ const rule = ruleCallback(cssRule);
91
+ return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
92
+ });
93
+ };
94
+ const escapeBlocks = (input) => {
95
+ const inputParts = input.split(_curlyRe);
96
+ const resultParts = [];
97
+ const escapedBlocks = [];
98
+ let bracketCount = 0;
99
+ let currentBlockParts = [];
100
+ for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
101
+ const part = inputParts[partIndex];
102
+ if (part === CLOSE_CURLY) {
103
+ bracketCount--;
104
+ }
105
+ if (bracketCount > 0) {
106
+ currentBlockParts.push(part);
107
+ }
108
+ else {
109
+ if (currentBlockParts.length > 0) {
110
+ escapedBlocks.push(currentBlockParts.join(''));
111
+ resultParts.push(BLOCK_PLACEHOLDER);
112
+ currentBlockParts = [];
113
+ }
114
+ resultParts.push(part);
115
+ }
116
+ if (part === OPEN_CURLY) {
117
+ bracketCount++;
118
+ }
119
+ }
120
+ if (currentBlockParts.length > 0) {
121
+ escapedBlocks.push(currentBlockParts.join(''));
122
+ resultParts.push(BLOCK_PLACEHOLDER);
123
+ }
124
+ const strEscapedBlocks = {
125
+ escapedString: resultParts.join(''),
126
+ blocks: escapedBlocks,
127
+ };
128
+ return strEscapedBlocks;
129
+ };
130
+ const insertPolyfillHostInCssText = (selector) => {
131
+ selector = selector
132
+ .replace(_colonHostContextRe, _polyfillHostContext)
133
+ .replace(_colonHostRe, _polyfillHost)
134
+ .replace(_colonSlottedRe, _polyfillSlotted);
135
+ return selector;
136
+ };
137
+ const convertColonRule = (cssText, regExp, partReplacer) => {
138
+ // m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule
139
+ return cssText.replace(regExp, (...m) => {
140
+ if (m[2]) {
141
+ const parts = m[2].split(',');
142
+ const r = [];
143
+ for (let i = 0; i < parts.length; i++) {
144
+ const p = parts[i].trim();
145
+ if (!p)
146
+ break;
147
+ r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
148
+ }
149
+ return r.join(',');
150
+ }
151
+ else {
152
+ return _polyfillHostNoCombinator + m[3];
153
+ }
154
+ });
155
+ };
156
+ const colonHostPartReplacer = (host, part, suffix) => {
157
+ return host + part.replace(_polyfillHost, '') + suffix;
158
+ };
159
+ const convertColonHost = (cssText) => {
160
+ return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
161
+ };
162
+ const colonHostContextPartReplacer = (host, part, suffix) => {
163
+ if (part.indexOf(_polyfillHost) > -1) {
164
+ return colonHostPartReplacer(host, part, suffix);
165
+ }
166
+ else {
167
+ return host + part + suffix + ', ' + part + ' ' + host + suffix;
168
+ }
169
+ };
170
+ const convertColonSlotted = (cssText, slotScopeId) => {
171
+ const slotClass = '.' + slotScopeId + ' > ';
172
+ const selectors = [];
173
+ cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
174
+ if (m[2]) {
175
+ const compound = m[2].trim();
176
+ const suffix = m[3];
177
+ const slottedSelector = slotClass + compound + suffix;
178
+ let prefixSelector = '';
179
+ for (let i = m[4] - 1; i >= 0; i--) {
180
+ const char = m[5][i];
181
+ if (char === '}' || char === ',') {
182
+ break;
183
+ }
184
+ prefixSelector = char + prefixSelector;
185
+ }
186
+ const orgSelector = prefixSelector + slottedSelector;
187
+ const addedSelector = `${prefixSelector.trimRight()}${slottedSelector.trim()}`;
188
+ if (orgSelector.trim() !== addedSelector.trim()) {
189
+ const updatedSelector = `${addedSelector}, ${orgSelector}`;
190
+ selectors.push({
191
+ orgSelector,
192
+ updatedSelector,
193
+ });
194
+ }
195
+ return slottedSelector;
196
+ }
197
+ else {
198
+ return _polyfillHostNoCombinator + m[3];
199
+ }
200
+ });
201
+ return {
202
+ selectors,
203
+ cssText,
204
+ };
205
+ };
206
+ const convertColonHostContext = (cssText) => {
207
+ return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
208
+ };
209
+ const convertShadowDOMSelectors = (cssText) => {
210
+ return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);
211
+ };
212
+ const makeScopeMatcher = (scopeSelector) => {
213
+ const lre = /\[/g;
214
+ const rre = /\]/g;
215
+ scopeSelector = scopeSelector.replace(lre, '\\[').replace(rre, '\\]');
216
+ return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');
217
+ };
218
+ const selectorNeedsScoping = (selector, scopeSelector) => {
219
+ const re = makeScopeMatcher(scopeSelector);
220
+ return !re.test(selector);
221
+ };
222
+ const injectScopingSelector = (selector, scopingSelector) => {
223
+ return selector.replace(_selectorPartsRe, (_, before = '', _colonGroup, colon = '', after = '') => {
224
+ return before + scopingSelector + colon + after;
225
+ });
226
+ };
227
+ const applySimpleSelectorScope = (selector, scopeSelector, hostSelector) => {
228
+ // In Android browser, the lastIndex is not reset when the regex is used in String.replace()
229
+ _polyfillHostRe.lastIndex = 0;
230
+ if (_polyfillHostRe.test(selector)) {
231
+ const replaceBy = `.${hostSelector}`;
232
+ return selector
233
+ .replace(_polyfillHostNoCombinatorRe, (_, selector) => injectScopingSelector(selector, replaceBy))
234
+ .replace(_polyfillHostRe, replaceBy + ' ');
235
+ }
236
+ return scopeSelector + ' ' + selector;
237
+ };
238
+ const applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {
239
+ const isRe = /\[is=([^\]]*)\]/g;
240
+ scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);
241
+ const className = '.' + scopeSelector;
242
+ const _scopeSelectorPart = (p) => {
243
+ let scopedP = p.trim();
244
+ if (!scopedP) {
245
+ return '';
246
+ }
247
+ if (p.indexOf(_polyfillHostNoCombinator) > -1) {
248
+ scopedP = applySimpleSelectorScope(p, scopeSelector, hostSelector);
249
+ }
250
+ else {
251
+ // remove :host since it should be unnecessary
252
+ const t = p.replace(_polyfillHostRe, '');
253
+ if (t.length > 0) {
254
+ scopedP = injectScopingSelector(t, className);
255
+ }
256
+ }
257
+ return scopedP;
258
+ };
259
+ const safeContent = safeSelector(selector);
260
+ selector = safeContent.content;
261
+ let scopedSelector = '';
262
+ let startIndex = 0;
263
+ let res;
264
+ const sep = /( |>|\+|~(?!=))\s*/g;
265
+ // If a selector appears before :host it should not be shimmed as it
266
+ // matches on ancestor elements and not on elements in the host's shadow
267
+ // `:host-context(div)` is transformed to
268
+ // `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`
269
+ // the `div` is not part of the component in the 2nd selectors and should not be scoped.
270
+ // Historically `component-tag:host` was matching the component so we also want to preserve
271
+ // this behavior to avoid breaking legacy apps (it should not match).
272
+ // The behavior should be:
273
+ // - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)
274
+ // - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a
275
+ // `:host-context(tag)`)
276
+ const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
277
+ // Only scope parts after the first `-shadowcsshost-no-combinator` when it is present
278
+ let shouldScope = !hasHost;
279
+ while ((res = sep.exec(selector)) !== null) {
280
+ const separator = res[1];
281
+ const part = selector.slice(startIndex, res.index).trim();
282
+ shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
283
+ const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;
284
+ scopedSelector += `${scopedPart} ${separator} `;
285
+ startIndex = sep.lastIndex;
286
+ }
287
+ const part = selector.substring(startIndex);
288
+ shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
289
+ scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
290
+ // replace the placeholders with their original values
291
+ return restoreSafeSelector(safeContent.placeholders, scopedSelector);
292
+ };
293
+ const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
294
+ return selector
295
+ .split(',')
296
+ .map((shallowPart) => {
297
+ if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {
298
+ return shallowPart.trim();
299
+ }
300
+ if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
301
+ return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
302
+ }
303
+ else {
304
+ return shallowPart.trim();
305
+ }
306
+ })
307
+ .join(', ');
308
+ };
309
+ const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
310
+ return processRules(cssText, (rule) => {
311
+ let selector = rule.selector;
312
+ let content = rule.content;
313
+ if (rule.selector[0] !== '@') {
314
+ selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
315
+ }
316
+ else if (rule.selector.startsWith('@media') ||
317
+ rule.selector.startsWith('@supports') ||
318
+ rule.selector.startsWith('@page') ||
319
+ rule.selector.startsWith('@document')) {
320
+ content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
321
+ }
322
+ const cssRule = {
323
+ selector: selector.replace(/\s{2,}/g, ' ').trim(),
324
+ content,
325
+ };
326
+ return cssRule;
327
+ });
328
+ };
329
+ const scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector) => {
330
+ cssText = insertPolyfillHostInCssText(cssText);
331
+ cssText = convertColonHost(cssText);
332
+ cssText = convertColonHostContext(cssText);
333
+ const slotted = convertColonSlotted(cssText, slotScopeId);
334
+ cssText = slotted.cssText;
335
+ cssText = convertShadowDOMSelectors(cssText);
336
+ if (scopeId) {
337
+ cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);
338
+ }
339
+ cssText = cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
340
+ cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, ' $1 ');
341
+ return {
342
+ cssText: cssText.trim(),
343
+ slottedSelectors: slotted.selectors,
344
+ };
345
+ };
346
+ const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
347
+ const hostScopeId = scopeId + '-h';
348
+ const slotScopeId = scopeId + '-s';
349
+ const commentsWithHash = extractCommentsWithHash(cssText);
350
+ cssText = stripComments(cssText);
351
+ const orgSelectors = [];
352
+ if (commentOriginalSelector) {
353
+ const processCommentedSelector = (rule) => {
354
+ const placeholder = `/*!@___${orgSelectors.length}___*/`;
355
+ const comment = `/*!@${rule.selector}*/`;
356
+ orgSelectors.push({ placeholder, comment });
357
+ rule.selector = placeholder + rule.selector;
358
+ return rule;
359
+ };
360
+ cssText = processRules(cssText, (rule) => {
361
+ if (rule.selector[0] !== '@') {
362
+ return processCommentedSelector(rule);
363
+ }
364
+ else if (rule.selector.startsWith('@media') ||
365
+ rule.selector.startsWith('@supports') ||
366
+ rule.selector.startsWith('@page') ||
367
+ rule.selector.startsWith('@document')) {
368
+ rule.content = processRules(rule.content, processCommentedSelector);
369
+ return rule;
370
+ }
371
+ return rule;
372
+ });
373
+ }
374
+ const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);
375
+ cssText = [scoped.cssText, ...commentsWithHash].join('\n');
376
+ if (commentOriginalSelector) {
377
+ orgSelectors.forEach(({ placeholder, comment }) => {
378
+ cssText = cssText.replace(placeholder, comment);
379
+ });
380
+ }
381
+ scoped.slottedSelectors.forEach((slottedSelector) => {
382
+ cssText = cssText.replace(slottedSelector.orgSelector, slottedSelector.updatedSelector);
383
+ });
384
+ return cssText;
385
+ };
386
+
387
+ export { scopeCss };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arcgis/map-components",
3
3
  "description": "ArcGIS Map Components",
4
- "version": "1.0.0-beta.14",
4
+ "version": "1.0.0-beta.17",
5
5
  "module": "dist/components/index.js",
6
6
  "main": "dist/index.cjs.js",
7
7
  "types": "dist/types/index.d.ts",
@@ -47,14 +47,13 @@
47
47
  "lint": "eslint ."
48
48
  },
49
49
  "dependencies": {
50
- "@arcgis/components-utils": "1.0.0-beta.7",
51
50
  "@arcgis/core": ">=4.28.0-next <4.29",
52
51
  "@esri/calcite-components": "^1.3.0",
53
52
  "@stencil/core": "2.22.3"
54
53
  },
55
54
  "devDependencies": {
56
- "@arcgis/components-plugins": "1.0.0-beta.7",
57
- "@arcgis/core-adapter": "1.0.0-beta.10",
55
+ "@arcgis/components-plugins": "1.0.0-beta.9",
56
+ "@arcgis/core-adapter": "1.0.0-beta.13",
58
57
  "@arcgis/eslint-config": "1.0.0",
59
58
  "@arcgis/typescript-config": "1.0.0",
60
59
  "@stencil/react-output-target": "0.5.3",
@@ -82,5 +81,5 @@
82
81
  "vite": "^4.4.9",
83
82
  "zlib": "^1.0.5"
84
83
  },
85
- "gitHead": "cd1b3bf7e48b497211638bbe607ad0e10340b119"
84
+ "gitHead": "7f15f8d41a7d14ddb8ca9edf979a73cc1a0a37cb"
86
85
  }
@@ -1 +0,0 @@
1
- const i="define"in window&&"function"==typeof window.define&&"amd"in window.define;function e(i){return new Promise((e=>window.require([i],(i=>{e(i)}))))}async function t(t){return new(await async function(){return i?e("esri/layers/FeatureLayer"):(await import("@arcgis/core/layers/FeatureLayer.js")).default}())(t)}async function a(t){return new(await async function(){return i?e("esri/layers/GraphicsLayer"):(await import("@arcgis/core/layers/GraphicsLayer.js")).default}())(t)}async function n(t){return new(await async function(){return i?e("esri/layers/RouteLayer"):(await import("@arcgis/core/layers/RouteLayer.js")).default}())(t)}async function r(t){return new(await async function(){return i?e("esri/views/MapView"):(await import("@arcgis/core/views/MapView.js")).default}())(t)}async function s(t){return new(await async function(){return i?e("esri/views/SceneView"):(await import("@arcgis/core/views/SceneView.js")).default}())(t)}async function c(t){return new(await async function(){return i?e("esri/WebMap"):(await import("@arcgis/core/WebMap.js")).default}())(t)}async function o(t){return new(await async function(){return i?e("esri/WebScene"):(await import("@arcgis/core/WebScene.js")).default}())(t)}async function w(t){return new(await async function(){return i?e("esri/widgets/AreaMeasurement2D"):(await import("@arcgis/core/widgets/AreaMeasurement2D.js")).default}())(t)}async function u(t){return new(await async function(){return i?e("esri/widgets/AreaMeasurement3D"):(await import("@arcgis/core/widgets/AreaMeasurement3D.js")).default}())(t)}async function g(t){return new(await async function(){return i?e("esri/widgets/Attachments"):(await import("@arcgis/core/widgets/Attachments.js")).default}())(t)}async function y(t){return new(await async function(){return i?e("esri/widgets/BasemapGallery"):(await import("@arcgis/core/widgets/BasemapGallery.js")).default}())(t)}async function d(t){return new(await async function(){return i?e("esri/widgets/BasemapLayerList"):(await import("@arcgis/core/widgets/BasemapLayerList.js")).default}())(t)}async function f(t){return new(await async function(){return i?e("esri/widgets/BasemapToggle"):(await import("@arcgis/core/widgets/BasemapToggle.js")).default}())(t)}async function m(t){return new(await async function(){return i?e("esri/widgets/Bookmarks"):(await import("@arcgis/core/widgets/Bookmarks.js")).default}())(t)}async function p(t){return new(await async function(){return i?e("esri/widgets/BuildingExplorer"):(await import("@arcgis/core/widgets/BuildingExplorer.js")).default}())(t)}async function j(t){return new(await async function(){return i?e("esri/widgets/Compass"):(await import("@arcgis/core/widgets/Compass.js")).default}())(t)}async function l(t){return new(await async function(){return i?e("esri/widgets/CoordinateConversion"):(await import("@arcgis/core/widgets/CoordinateConversion.js")).default}())(t)}async function S(t){return new(await async function(){return i?e("esri/widgets/Daylight"):(await import("@arcgis/core/widgets/Daylight.js")).default}())(t)}async function L(t){return new(await async function(){return i?e("esri/widgets/Directions"):(await import("@arcgis/core/widgets/Directions.js")).default}())(t)}async function F(t){return new(await async function(){return i?e("esri/widgets/DirectLineMeasurement3D"):(await import("@arcgis/core/widgets/DirectLineMeasurement3D.js")).default}())(t)}async function h(t){return new(await async function(){return i?e("esri/widgets/DistanceMeasurement2D"):(await import("@arcgis/core/widgets/DistanceMeasurement2D.js")).default}())(t)}async function D(t){return new(await async function(){return i?e("esri/widgets/Editor"):(await import("@arcgis/core/widgets/Editor.js")).default}())(t)}async function T(t){return new(await async function(){return i?e("esri/widgets/ElevationProfile"):(await import("@arcgis/core/widgets/ElevationProfile.js")).default}())(t)}async function M(t){return new(await async function(){return i?e("esri/widgets/Expand"):(await import("@arcgis/core/widgets/Expand.js")).default}())(t)}async function k(t){return new(await async function(){return i?e("esri/widgets/Feature"):(await import("@arcgis/core/widgets/Feature.js")).default}())(t)}async function v(t){return new(await async function(){return i?e("esri/widgets/FeatureForm"):(await import("@arcgis/core/widgets/FeatureForm.js")).default}())(t)}async function B(t){return new(await async function(){return i?e("esri/widgets/Features"):(await import("@arcgis/core/widgets/Features.js")).default}())(t)}async function b(t){return new(await async function(){return i?e("esri/widgets/FeatureTable"):(await import("@arcgis/core/widgets/FeatureTable.js")).default}())(t)}async function C(t){return new(await async function(){return i?e("esri/widgets/FeatureTemplates"):(await import("@arcgis/core/widgets/FeatureTemplates.js")).default}())(t)}async function E(t){return new(await async function(){return i?e("esri/widgets/FloorFilter"):(await import("@arcgis/core/widgets/FloorFilter.js")).default}())(t)}async function P(t){return new(await async function(){return i?e("esri/widgets/Fullscreen"):(await import("@arcgis/core/widgets/Fullscreen.js")).default}())(t)}async function A(t){return new(await async function(){return i?e("esri/widgets/Histogram"):(await import("@arcgis/core/widgets/Histogram.js")).default}())(t)}async function H(t){return new(await async function(){return i?e("esri/widgets/HistogramRangeSlider"):(await import("@arcgis/core/widgets/HistogramRangeSlider.js")).default}())(t)}async function R(t){return new(await async function(){return i?e("esri/widgets/Home"):(await import("@arcgis/core/widgets/Home.js")).default}())(t)}async function V(t){return new(await async function(){return i?e("esri/widgets/LayerList"):(await import("@arcgis/core/widgets/LayerList.js")).default}())(t)}async function W(t){return new(await async function(){return i?e("esri/widgets/Legend"):(await import("@arcgis/core/widgets/Legend.js")).default}())(t)}async function x(t){return new(await async function(){return i?e("esri/widgets/LineOfSight"):(await import("@arcgis/core/widgets/LineOfSight.js")).default}())(t)}async function G(t){return new(await async function(){return i?e("esri/widgets/Locate"):(await import("@arcgis/core/widgets/Locate.js")).default}())(t)}async function N(t){return new(await async function(){return i?e("esri/widgets/Measurement"):(await import("@arcgis/core/widgets/Measurement.js")).default}())(t)}async function U(t){return new(await async function(){return i?e("esri/widgets/NavigationToggle"):(await import("@arcgis/core/widgets/NavigationToggle.js")).default}())(t)}async function O(t){return new(await async function(){return i?e("esri/widgets/Print"):(await import("@arcgis/core/widgets/Print.js")).default}())(t)}async function Z(t){return new(await async function(){return i?e("esri/widgets/ScaleBar"):(await import("@arcgis/core/widgets/ScaleBar.js")).default}())(t)}async function q(t){return new(await async function(){return i?e("esri/widgets/ScaleRangeSlider"):(await import("@arcgis/core/widgets/ScaleRangeSlider.js")).default}())(t)}async function z(t){return new(await async function(){return i?e("esri/widgets/Search"):(await import("@arcgis/core/widgets/Search.js")).default}())(t)}async function I(t){return new(await async function(){return i?e("esri/widgets/ShadowCast"):(await import("@arcgis/core/widgets/ShadowCast.js")).default}())(t)}async function J(t){return new(await async function(){return i?e("esri/widgets/Sketch"):(await import("@arcgis/core/widgets/Sketch.js")).default}())(t)}async function K(t){return new(await async function(){return i?e("esri/widgets/Slice"):(await import("@arcgis/core/widgets/Slice.js")).default}())(t)}async function Q(t){return new(await async function(){return i?e("esri/widgets/Slider"):(await import("@arcgis/core/widgets/Slider.js")).default}())(t)}async function X(t){return new(await async function(){return i?e("esri/widgets/Swipe"):(await import("@arcgis/core/widgets/Swipe.js")).default}())(t)}async function Y(t){return new(await async function(){return i?e("esri/widgets/TableList"):(await import("@arcgis/core/widgets/TableList.js")).default}())(t)}async function $(t){return new(await async function(){return i?e("esri/widgets/TimeSlider"):(await import("@arcgis/core/widgets/TimeSlider.js")).default}())(t)}async function _(t){return new(await async function(){return i?e("esri/widgets/Track"):(await import("@arcgis/core/widgets/Track.js")).default}())(t)}async function ii(t){return new(await async function(){return i?e("esri/widgets/UtilityNetworkTrace"):(await import("@arcgis/core/widgets/UtilityNetworkTrace.js")).default}())(t)}async function ei(t){return new(await async function(){return i?e("esri/widgets/ValuePicker"):(await import("@arcgis/core/widgets/ValuePicker.js")).default}())(t)}async function ti(t){return new(await async function(){return i?e("esri/widgets/Weather"):(await import("@arcgis/core/widgets/Weather.js")).default}())(t)}async function ai(t){return new(await async function(){return i?e("esri/widgets/Zoom"):(await import("@arcgis/core/widgets/Zoom.js")).default}())(t)}async function ni(){return i?e("esri/config"):(await import("@arcgis/core/config.js")).default}async function ri(){return i?e("esri/core/reactiveUtils"):await import("@arcgis/core/core/reactiveUtils.js")}export{_ as $,C as A,B,E as C,P as D,A as E,H as F,R as G,V as H,W as I,x as J,G as K,N as L,U as M,O as N,Z as O,q as P,o as Q,s as R,z as S,I as T,J as U,a as V,K as W,Q as X,X as Y,Y as Z,$ as _,M as a,ii as a0,ei as a1,ti as a2,ai as a3,ni as b,c,r as d,w as e,u as f,g,d as h,ri as i,f as j,m as k,p as l,j as m,y as n,l as o,S as p,n as q,L as r,F as s,h as t,D as u,T as v,k as w,v as x,t as y,b as z}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i,g as r}from"./p-1e5e5ed9.js";import{g as e}from"./p-095e0075.js";import{c as a,o as h}from"./p-b813c9e6.js";const c=class{constructor(i){t(this,i),this.widgetReady=s(this,"widgetReady",7),this.referenceElement=void 0,this.position="bottom-left",this.expandable=!1,this.graphic=void 0,this.widget=void 0}graphicWatcher(t){void 0!==t&&this.widget&&(this.widget.graphic=t)}async componentDidLoad(){const t=this._createParams(),s=await e(t);this.widget=s,this.widgetReady.emit(!0),a(this)}disconnectedCallback(){h(this)}render(){return this.expandable?i("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},i("div",{ref:t=>this.childElem=t})):i("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};return this.graphic&&(t.graphic=this.graphic),t}get el(){return r(this)}static get watchers(){return{graphic:["graphicWatcher"]}}};c.style="";export{c as arcgis_attachments}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-1e5e5ed9.js";import{O as r}from"./p-095e0075.js";import{r as h,c as a}from"./p-1401deea.js";import{o}from"./p-b813c9e6.js";const c=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this.referenceElement=void 0,this.view=void 0,this.position="bottom-left",this.expandable=!1,this.barStyle=void 0,this.unit=void 0,this.widget=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}referenceElementWatcher(t){h(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}styleWatcher(t){void 0!==t&&this.widget&&(this.widget.style=t)}unitWatcher(t){void 0!==t&&this.widget&&(this.widget.unit=t)}async componentDidLoad(){const t=this._createParams(),i=await r(t);this.widget=i,this.widgetReady.emit(!0),a(this)}disconnectedCallback(){o(this)}render(){return this.expandable?s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t})):s("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};return this.unit&&(t.unit=this.unit),this.barStyle&&(t.style=this.barStyle),this.view&&(t.view=this.view),t}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"],barStyle:["styleWatcher"],unit:["unitWatcher"]}}};c.style="arcgis-scale-bar{}";export{c as arcgis_scale_bar}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i,g as e}from"./p-1e5e5ed9.js";import{u as r,i as a}from"./p-095e0075.js";import{r as o,c as h}from"./p-1401deea.js";import{o as n}from"./p-b813c9e6.js";const c=class{constructor(i){t(this,i),this.widgetReady=s(this,"widgetReady",7),this.referenceElement=void 0,this.activeWorkflow=void 0,this.allowedWorkflows=void 0,this.labelOptions=void 0,this.layerInfos=void 0,this.snappingOptions=void 0,this.supportingWidgetDefaults=void 0,this.tooltipOptions=void 0,this.position="bottom-left",this.expandable=!1,this.view=void 0,this.widget=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}allowedWorkflowsWatcher(t){t&&this.widget&&(this.widget.allowedWorkflows=t)}labelOptionsWatcher(t){t&&this.widget&&(this.widget.labelOptions=t)}layerInfosWatcher(t){t&&this.widget&&(this.widget.layerInfos=t)}snappingOptionsWatcher(t){t&&this.widget&&(this.widget.snappingOptions=t)}supportingWidgetDefaultsWatcher(t){t&&this.widget&&(this.widget.supportingWidgetDefaults=t)}tooltipOptionsWatcher(t){t&&this.widget&&(this.widget.tooltipOptions=t)}referenceElementWatcher(t){o(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async cancelWorkflow(){return this.widget?.cancelWorkflow()}async deleteFeatureFromWorkflow(){return this.widget?.deleteFeatureFromWorkflow()}async startCreateFeaturesWorkflowAtFeatureCreation(t){return this.widget?.startCreateFeaturesWorkflowAtFeatureCreation(t)}async startCreateFeaturesWorkflowAtFeatureTypeSelection(){return this.widget?.startCreateFeaturesWorkflowAtFeatureTypeSelection()}async startUpdateWorkflowAtFeatureEdit(t){return this.widget?.startUpdateWorkflowAtFeatureEdit(t)}async startUpdateWorkflowAtFeatureSelection(){return this.widget?.startUpdateWorkflowAtFeatureSelection()}async startUpdateWorkflowAtMultipleFeatureSelection(t){return this.widget?.startUpdateWorkflowAtMultipleFeatureSelection(t)}async componentDidLoad(){const t=this._createParams(),s=await r(t);this.widget=s,this._addWatchers(),this.widgetReady.emit(!0),h(this)}disconnectedCallback(){n(this)}render(){return this.expandable?i("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},i("div",{ref:t=>this.childElem=t})):i("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await a();t((()=>this.widget.activeWorkflow),(t=>this.activeWorkflow=t),{initial:!0})}_createParams(){const t={container:this.childElem};return this.allowedWorkflows&&(t.allowedWorkflows=this.allowedWorkflows),this.labelOptions&&(t.labelOptions=this.labelOptions),this.layerInfos&&(t.layerInfos=this.layerInfos),this.snappingOptions&&(t.snappingOptions=this.snappingOptions),this.supportingWidgetDefaults&&(t.supportingWidgetDefaults=this.supportingWidgetDefaults),this.tooltipOptions&&(t.tooltipOptions=this.tooltipOptions),this.view&&(t.view=this.view),t}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],allowedWorkflows:["allowedWorkflowsWatcher"],labelOptions:["labelOptionsWatcher"],layerInfos:["layerInfosWatcher"],snappingOptions:["snappingOptionsWatcher"],supportingWidgetDefaults:["supportingWidgetDefaultsWatcher"],tooltipOptions:["tooltipOptionsWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style="";export{c as arcgis_editor}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i,g as s}from"./p-1e5e5ed9.js";import{T as r}from"./p-095e0075.js";import{r as h,c as a}from"./p-1401deea.js";import{o}from"./p-b813c9e6.js";const c=class{constructor(i){t(this,i),this.widgetReady=e(this,"widgetReady",7),this.referenceElement=void 0,this.view=void 0,this.position="bottom-left",this.expandable=!1,this.widget=void 0,this.headingLevel=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}headingLevelWatcher(t){void 0!==t&&this.widget&&this.widget.headingLevel!==t&&(this.widget.headingLevel=t)}referenceElementWatcher(t){h(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async componentDidLoad(){const t=this._createParams(),e=await r(t);this.widget=e,this.widgetReady.emit(!0),a(this)}disconnectedCallback(){o(this)}render(){return this.expandable?i("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},i("div",{ref:t=>this.childElem=t})):i("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),t}get el(){return s(this)}static get watchers(){return{position:["positionWatcher"],headingLevel:["headingLevelWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style="arcgis-shadow-cast{}";export{c as arcgis_shadow_cast}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-1e5e5ed9.js";import{J as r,i as h}from"./p-095e0075.js";import{r as a,c as o}from"./p-1401deea.js";import{o as c}from"./p-b813c9e6.js";const n=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this.referenceElement=void 0,this.analysis=void 0,this.position="bottom-left",this.expandable=!1,this.view=void 0,this.widget=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}referenceElementWatcher(t){a(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async componentDidLoad(){const t=this._createParams(),i=await r(t);this.widget=i,await this._addWatchers(),this.widgetReady.emit(!0),o(this)}disconnectedCallback(){c(this)}render(){return this.expandable?s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t})):s("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await h();t((()=>this.widget.analysis),(t=>this.analysis=t),{initial:!0})}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),t}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};n.style="arcgis-line-of-sight{}";export{n as arcgis_line_of_sight}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i,g as s}from"./p-1e5e5ed9.js";import{D as r}from"./p-095e0075.js";import{r as h,c as o}from"./p-1401deea.js";import{o as a}from"./p-b813c9e6.js";const c=class{constructor(i){t(this,i),this.widgetReady=e(this,"widgetReady",7),this.referenceElement=void 0,this.element=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}elementWatcher(t){void 0!==t&&this.widget&&(this.widget.element=t)}referenceElementWatcher(t){h(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async componentDidLoad(){const t=this._createParams(),e=await r(t);this.widget=e,this.widgetReady.emit(!0),o(this)}disconnectedCallback(){a(this)}render(){return i("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};return this.element&&(t.element=this.element),this.view&&(t.view=this.view),t}get el(){return s(this)}static get watchers(){return{position:["positionWatcher"],element:["elementWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style="";export{c as arcgis_fullscreen}
@@ -1 +0,0 @@
1
- import{c as e}from"./p-b813c9e6.js";function t(t){let i=!1;if(!e(t)){let e=t.el.closest("arcgis-map")||t.el.closest("arcgis-scene");e||"string"!=typeof t.referenceElement||(e=document.querySelector(t.referenceElement),i=!0),e?.view&&"string"!=typeof e?.view?(t.view=e.view,i||t.view.ui.add(t.childElem||t.el,t.position)):e&&function(e,t,i){const n=()=>{e?.removeEventListener("viewReady",n,!1),t.view=e?.view,i||"string"==typeof t.view||t.view?.ui.add(t.childElem?t.childElem:t.el,t.position)};e.addEventListener("viewReady",n,!1)}(e,t,i)}}async function i(e,t){"string"==typeof t?e.view=await async function(e){const t=document.querySelector(e);return new Promise((e=>{if(void 0!==t?.view)e(t.view);else if(t){const i=()=>{t.removeEventListener("viewReady",i,!1),e(t.view)};t.addEventListener("viewReady",i,!1)}}))}(t):void 0!==t&&e.widget&&(e.view=t.view)}export{t as c,i as r}
@@ -1,2 +0,0 @@
1
- let e=!1;const t={},n=e=>"object"==(e=typeof e)||"function"===e;function l(e){var t,n,l;return null!==(l=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const o=(e,t,...l)=>{let o=null,c=!1,i=!1;const r=[],a=t=>{for(let l=0;l<t.length;l++)o=t[l],Array.isArray(o)?a(o):null!=o&&"boolean"!=typeof o&&((c="function"!=typeof e&&!n(o))&&(o+=""),c&&i?r[r.length-1].t+=o:r.push(c?s(null,o):o),i=c)};if(a(l),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const u=s(e,null);return u.l=t,r.length>0&&(u.o=r),u},s=(e,t)=>({i:0,u:e,t,m:null,o:null,l:null}),c={},i=e=>A(e).p,r=(e,t,n)=>{const l=i(e);return{emit:e=>a(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},a=(e,t,n)=>{const l=G.ce(t,n);return e.dispatchEvent(l),l},u=new WeakMap,f=e=>"sc-"+e.h,d=(e,t,l,o,s,c)=>{if(l!==o){let i=U(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,n=p(l),s=p(o);t.remove(...n.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!n.includes(e))))}else if("ref"===t)o&&o(e);else{const r=n(o);if((i||r&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const n=null==o?"":o;"list"===t?i=!1:null!=l&&e[t]==n||(e[t]=n)}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&c||s)&&!r&&e.setAttribute(t,o=!0===o?"":o)}}},m=/\s/,p=e=>e?e.split(m):[],h=(e,n,l,o)=>{const s=11===n.m.nodeType&&n.m.host?n.m.host:n.m,c=e&&e.l||t,i=n.l||t;for(o in c)o in i||d(s,o,c[o],void 0,l,n.i);for(o in i)d(s,o,c[o],i[o],l,n.i)},$=(e,t,n)=>{const l=t.o[n];let o,s,c=0;if(o=l.m=B.createElement(l.u),h(null,l,!1),l.o)for(c=0;c<l.o.length;++c)s=$(e,l,c),s&&o.appendChild(s);return o},y=(e,t,n,l,o,s)=>{let c,i=e;for(;o<=s;++o)l[o]&&(c=$(null,n,o),c&&(l[o].m=c,i.insertBefore(c,t)))},b=(e,t,n,l,o)=>{for(;t<=n;++t)(l=e[t])&&(o=l.m,g(l),o.remove())},w=(e,t)=>e.u===t.u,v=(e,t)=>{const n=t.m=e.m,l=e.o,o=t.o;h(e,t,!1),null!==l&&null!==o?((e,t,n,l)=>{let o,s=0,c=0,i=t.length-1,r=t[0],a=t[i],u=l.length-1,f=l[0],d=l[u];for(;s<=i&&c<=u;)null==r?r=t[++s]:null==a?a=t[--i]:null==f?f=l[++c]:null==d?d=l[--u]:w(r,f)?(v(r,f),r=t[++s],f=l[++c]):w(a,d)?(v(a,d),a=t[--i],d=l[--u]):w(r,d)?(v(r,d),e.insertBefore(r.m,a.m.nextSibling),r=t[++s],d=l[--u]):w(a,f)?(v(a,f),e.insertBefore(a.m,r.m),a=t[--i],f=l[++c]):(o=$(t&&t[c],n,c),f=l[++c],o&&r.m.parentNode.insertBefore(o,r.m));s>i?y(e,null==l[u+1]?null:l[u+1].m,n,l,c,u):c>u&&b(t,s,i)})(n,l,t,o):null!==o?y(n,null,t,o,0,o.length-1):null!==l&&b(l,0,l.length-1)},g=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(g)},S=(e,t)=>{t&&!e.$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$=t)))},j=(e,t)=>{if(e.i|=16,!(4&e.i))return S(e,e.v),te((()=>M(e,t)));e.i|=512},M=(e,t)=>{const n=e.g;let l;return t&&(l=L(n,"componentWillLoad")),x(l,(()=>k(e,n,t)))},k=async(e,t,n)=>{const o=e.p,s=o["s-rc"];n&&(e=>{const t=e.S;((e,t)=>{var n;let o=f(t);const s=_.get(o);if(e=11===e.nodeType?e:B,s)if("string"==typeof s){let t,c=u.get(e=e.head||e);if(c||u.set(e,c=new Set),!c.has(o)){{t=B.createElement("style"),t.innerHTML=s;const o=null!==(n=G.j)&&void 0!==n?n:l(B);null!=o&&t.setAttribute("nonce",o),e.insertBefore(t,e.querySelector("link"))}c&&c.add(o)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s])})(e.p.getRootNode(),t)})(e);C(e,t),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=o["s-p"],n=()=>O(e);0===t.length?n():(Promise.all(t).then(n),e.i|=4,t.length=0)}},C=(e,t)=>{try{t=t.render&&t.render(),e.i&=-17,e.i|=2,((e,t)=>{const n=e.p,l=e.S,i=e.M||s(null,null),r=(e=>e&&e.u===c)(t)?t:o(null,null,t);l.k&&(r.l=r.l||{},l.k.map((([e,t])=>r.l[t]=n[e]))),r.u=null,r.i|=4,e.M=r,r.m=i.m=n,v(i,r)})(e,t)}catch(t){q(t,e.p)}return null},O=e=>{const t=e.p,n=e.g,l=e.v;L(n,"componentDidRender"),64&e.i||(e.i|=64,E(t),L(n,"componentDidLoad"),e.C(t),l||P()),e.O(t),e.$&&(e.$(),e.$=void 0),512&e.i&&ee((()=>j(e,!1))),e.i&=-517},P=()=>{E(B.documentElement),ee((()=>a(z,"appload",{detail:{namespace:"arcgis-map-components"}})))},L=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){q(e)}},x=(e,t)=>e&&e.then?e.then(t):t(),E=e=>e.setAttribute("hydrated",""),N=(e,t,l)=>{if(t.P){e.watchers&&(t.L=e.watchers);const o=Object.entries(t.P),s=e.prototype;if(o.map((([e,[o]])=>{31&o||2&l&&32&o?Object.defineProperty(s,e,{get(){return((e,t)=>A(this).N.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=A(e),c=s.p,i=s.N.get(t),r=s.i,a=s.g;if(l=((e,t)=>null==e||n(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.P[t][0]),(!(8&r)||void 0===i)&&l!==i&&(!Number.isNaN(i)||!Number.isNaN(l))&&(s.N.set(t,l),a)){if(o.L&&128&r){const e=o.L[t];e&&e.map((e=>{try{a[e](l,i,t)}catch(e){q(e,c)}}))}2==(18&r)&&j(s,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0}):1&l&&64&o&&Object.defineProperty(s,e,{value(...t){const n=A(this);return n.R.then((()=>n.g[e](...t)))}})})),1&l){const n=new Map;s.attributeChangedCallback=function(e,t,l){G.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=o.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.k.push([e,o]),o}))}}return e},R=(e,t={})=>{var n;const o=[],s=t.exclude||[],c=z.customElements,i=B.head,r=i.querySelector("meta[charset]"),a=B.createElement("style"),u=[];let d,m=!0;Object.assign(G,t),G.T=new URL(t.resourcesUrl||"./",B.baseURI).href,e.map((e=>{e[1].map((t=>{const n={i:t[0],h:t[1],P:t[2],W:t[3]};n.P=t[2],n.k=[],n.L={};const l=n.h,i=class extends HTMLElement{constructor(e){super(e),F(e=this,n)}connectedCallback(){d&&(clearTimeout(d),d=null),m?u.push(this):G.jmp((()=>(e=>{if(0==(1&G.i)){const t=A(e),n=t.S,l=()=>{};if(!(1&t.i)){t.i|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){S(t,t.v=n);break}}n.P&&Object.entries(n.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.i)){{if(t.i|=32,(o=V(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.L=o.watchers,N(o,n,2),o.isProxied=!0);const e=()=>{};t.i|=8;try{new o(t)}catch(e){q(e)}t.i&=-9,t.i|=128,e()}if(o.style){let e=o.style;const t=f(n);if(!_.has(t)){const l=()=>{};((e,t,n)=>{let l=_.get(e);J&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,_.set(e,l)})(t,e,!!(1&n.i)),l()}}}const s=t.v,c=()=>j(t,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(0,t,n)}l()}})(this)))}disconnectedCallback(){G.jmp((()=>(()=>{0==(1&G.i)&&L(A(this).g,"disconnectedCallback")})()))}componentOnReady(){return A(this).A}};n.D=e[0],s.includes(l)||c.get(l)||(o.push(l),c.define(l,N(i,n,1)))}))}));{a.innerHTML=o+"{visibility:hidden}[hydrated]{visibility:inherit}",a.setAttribute("data-styles","");const e=null!==(n=G.j)&&void 0!==n?n:l(B);null!=e&&a.setAttribute("nonce",e),i.insertBefore(a,r?r.nextSibling:i.firstChild)}m=!1,u.length?u.map((e=>e.connectedCallback())):G.jmp((()=>d=setTimeout(P,30)))},T=e=>G.j=e,W=new WeakMap,A=e=>W.get(e),D=(e,t)=>W.set(t.g=e,t),F=(e,t)=>{const n={i:0,p:e,S:t,N:new Map};return n.R=new Promise((e=>n.O=e)),n.A=new Promise((e=>n.C=e)),e["s-p"]=[],e["s-rc"]=[],W.set(e,n)},U=(e,t)=>t in e,q=(e,t)=>(0,console.error)(e,t),H=new Map,V=e=>{const t=e.h.replace(/-/g,"_"),n=e.D,l=H.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(H.set(n,e),e[t])),q)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},_=new Map,z="undefined"!=typeof window?window:{},B=z.document||{head:{}},G={i:0,T:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},I=e=>Promise.resolve(e),J=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),K=[],Q=[],X=(t,n)=>l=>{t.push(l),e||(e=!0,n&&4&G.i?ee(Z):G.raf(Z))},Y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){q(e)}e.length=0},Z=()=>{Y(K),Y(Q),(e=K.length>0)&&G.raf(Z)},ee=e=>I().then(e),te=X(Q,!0);export{R as b,r as c,i as g,o as h,I as p,D as r,T as s}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-1e5e5ed9.js";import{K as o}from"./p-095e0075.js";import{r as h,c as a}from"./p-1401deea.js";import{o as r}from"./p-b813c9e6.js";const c=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this.locateSuccess=i(this,"locateSuccess",7),this.locateError=i(this,"locateError",7),this.referenceElement=void 0,this.geolocationOptions=void 0,this.goToLocationEnabled=void 0,this.graphic=void 0,this.popupEnabled=void 0,this.scale=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0,this.useHeadingEnabled=!0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}geolocationOptionsWatcher(t){void 0!==t&&this.widget&&(this.widget.geolocationOptions=t)}goToLocationEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.goToLocationEnabled=t)}graphicWatcher(t){void 0!==t&&this.widget&&(this.widget.graphic=t)}popupEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.popupEnabled=t)}scaleWatcher(t){void 0!==t&&this.widget&&(this.widget.scale=t)}referenceElementWatcher(t){h(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}useHeadingWatcher(t){this.widget&&(this.widget.useHeadingEnabled=t)}async cancelLocate(){return this.widget?.cancelLocate()}async locate(){return this.widget?.locate()}async componentDidLoad(){const t=this._createParams(),i=await o(t);this.widget=i,this._proxyEvents(),this.widgetReady.emit(!0),a(this)}disconnectedCallback(){r(this)}render(){return s("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem,useHeadingEnabled:this.useHeadingEnabled};return void 0!==this.geolocationOptions&&(t.geolocationOptions=this.geolocationOptions),void 0!==this.goToLocationEnabled&&(t.goToLocationEnabled=this.goToLocationEnabled),void 0!==this.graphic&&(t.graphic=this.graphic),void 0!==this.popupEnabled&&(t.popupEnabled=this.popupEnabled),void 0!==this.scale&&(t.scale=this.scale),this.view&&(t.view=this.view),t}async _proxyEvents(){this.widget?.on("locate",(t=>this.locateSuccess.emit(t))),this.widget?.on("locate-error",(t=>this.locateError.emit(t)))}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],geolocationOptions:["geolocationOptionsWatcher"],goToLocationEnabled:["goToLocationEnabledWatcher"],graphic:["graphicWatcher"],popupEnabled:["popupEnabledWatcher"],scale:["scaleWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"],useHeadingEnabled:["useHeadingWatcher"]}}};c.style="arcgis-locate{}";export{c as arcgis_locate}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i,g as r}from"./p-1e5e5ed9.js";import{F as e}from"./p-095e0075.js";import{c as a}from"./p-1401deea.js";import{o as h}from"./p-b813c9e6.js";const o=class{constructor(i){t(this,i),this.widgetReady=s(this,"widgetReady",7),this.referenceElement=void 0,this.max=0,this.min=0,this.position="bottom-left",this.expandable=!1,this.widget=void 0}maxWatcher(t){this.widget&&(this.widget.max=Number(t))}minWatcher(t){this.widget&&(this.widget.min=Number(t))}async componentDidLoad(){const t=this._createParams(),s=await e(t);this.widget=s,this.widgetReady.emit(!0),a(this)}disconnectedCallback(){h(this)}render(){return this.expandable?i("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},i("div",{ref:t=>this.childElem=t})):i("div",{ref:t=>this.childElem=t})}_createParams(){return{container:this.childElem,min:this.min,max:this.max}}get el(){return r(this)}static get watchers(){return{max:["maxWatcher"],min:["minWatcher"]}}};o.style="arcgis-histogram-range-slider{}";export{o as arcgis_histogram_range_slider}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-1e5e5ed9.js";import{S as h,i as a}from"./p-095e0075.js";import{r,c}from"./p-1401deea.js";import{o}from"./p-b813c9e6.js";const l=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this.searchBlur=i(this,"searchBlur",7),this.searchClear=i(this,"searchClear",7),this.searchComplete=i(this,"searchComplete",7),this.searchFocus=i(this,"searchFocus",7),this.searchStart=i(this,"searchStart",7),this.selectResult=i(this,"selectResult",7),this.suggestComplete=i(this,"suggestComplete",7),this.suggestStart=i(this,"suggestStart",7),this.referenceElement=void 0,this.activeMenu=void 0,this.activeSource=void 0,this.activeSourceIndex=void 0,this.allPlaceholder=void 0,this.allSources=void 0,this.autoSelect=void 0,this.defaultSources=void 0,this.includeDefaultSources=void 0,this.locationEnabled=void 0,this.maxResults=void 0,this.maxSuggestions=void 0,this.minSuggestCharacters=void 0,this.popupEnabled=void 0,this.popupTemplate=void 0,this.portal=void 0,this.resultGraphic=void 0,this.resultGraphicEnabled=void 0,this.results=void 0,this.searchAllEnabled=void 0,this.searchTerm=void 0,this.selectedResult=void 0,this.sources=void 0,this.suggestions=void 0,this.suggestionsEnabled=void 0,this.position="top-right",this.expandable=!1,this.view=void 0,this.widget=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}activeMenuWatcher(t){void 0!==t&&this.widget&&(this.widget.activeMenu=t)}activeSourceIndexWatcher(t){void 0!==t&&this.widget&&(this.widget.activeSourceIndex=t)}allPlaceholderWatcher(t){void 0!==t&&this.widget&&(this.widget.allPlaceholder=t)}autoSelectWatcher(t){void 0!==t&&this.widget&&(this.widget.autoSelect=t)}includeDefaultSourcesWatcher(t){void 0!==t&&this.widget&&(this.widget.includeDefaultSources=t)}locationEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.locationEnabled=t)}maxResultsWatcher(t){void 0!==t&&this.widget&&(this.widget.maxResults=t)}maxSuggestionsWatcher(t){void 0!==t&&this.widget&&(this.widget.maxSuggestions=t)}minSuggestCharactersWatcher(t){void 0!==t&&this.widget&&(this.widget.minSuggestCharacters=t)}popupEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.popupEnabled=t)}popupTemplateWatcher(t){void 0!==t&&this.widget&&(this.widget.popupTemplate=t)}portalWatcher(t){void 0!==t&&this.widget&&(this.widget.portal=t)}resultGraphicEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.resultGraphicEnabled=t)}searchAllEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.searchAllEnabled=t)}searchTermWatcher(t){void 0!==t&&this.widget&&(this.widget.searchTerm=t)}sourcesWatcher(t){void 0!==t&&this.widget&&(this.widget.sources=t)}suggestionsEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.suggestionsEnabled=t)}referenceElementWatcher(t){r(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async blurSearch(){return this.widget?.blur()}async clearSearch(){return this.widget?.clear()}async focusSearch(){return this.widget?.focus()}async search(t){return this.widget?.search(t)}async suggest(t){return this.widget?.suggest(t)}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,await this._addWatchers(),this._proxyEvents(),this.widgetReady.emit(!0),c(this)}disconnectedCallback(){o(this)}render(){return this.expandable?s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t})):s("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await a();t((()=>this.widget.activeSource),(t=>this.activeSource=t),{initial:!0}),t((()=>this.widget.activeSourceIndex),(t=>this.activeSourceIndex=t),{initial:!0}),t((()=>this.widget.allSources),(t=>this.allSources=t),{initial:!0}),t((()=>this.widget.defaultSources),(t=>this.defaultSources=t),{initial:!0}),t((()=>this.widget.resultGraphic),(t=>this.resultGraphic=t),{initial:!0}),t((()=>this.widget.results),(t=>this.results=t),{initial:!0}),t((()=>this.widget.selectedResult),(t=>this.selectedResult=t),{initial:!0})}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),t}_proxyEvents(){this.widget.on("search-blur",(t=>this.searchBlur.emit(t))),this.widget.on("search-clear",(t=>this.searchClear.emit(t))),this.widget.on("search-complete",(t=>this.searchComplete.emit(t))),this.widget.on("search-focus",(t=>this.searchFocus.emit(t))),this.widget.on("search-start",(t=>this.searchStart.emit(t))),this.widget.on("select-result",(t=>this.selectResult.emit(t))),this.widget.on("suggest-complete",(t=>this.suggestComplete.emit(t))),this.widget.on("suggest-start",(t=>this.suggestStart.emit(t)))}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],activeMenu:["activeMenuWatcher"],activeSourceIndex:["activeSourceIndexWatcher"],allPlaceholder:["allPlaceholderWatcher"],autoSelect:["autoSelectWatcher"],includeDefaultSources:["includeDefaultSourcesWatcher"],locationEnabled:["locationEnabledWatcher"],maxResults:["maxResultsWatcher"],maxSuggestions:["maxSuggestionsWatcher"],minSuggestCharacters:["minSuggestCharactersWatcher"],popupEnabled:["popupEnabledWatcher"],popupTemplate:["popupTemplateWatcher"],portal:["portalWatcher"],resultGraphicEnabled:["resultGraphicEnabledWatcher"],searchAllEnabled:["searchAllEnabledWatcher"],searchTerm:["searchTermWatcher"],sources:["sourcesWatcher"],suggestionsEnabled:["suggestionsEnabledWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};l.style="";export{l as arcgis_search}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as e,g as s}from"./p-1e5e5ed9.js";import{Z as h,i as a}from"./p-095e0075.js";import{r,c as o}from"./p-1401deea.js";import{o as n}from"./p-b813c9e6.js";const c=class{constructor(e){t(this,e),this.triggerAction=i(this,"triggerAction",7),this.widgetReady=i(this,"widgetReady",7),this.referenceElement=void 0,this.multipleSelectionEnabled=!1,this.selectionEnabled=!0,this.selectedItems=void 0,this.tableItems=void 0,this.view=void 0,this.position="bottom-left",this.expandable=!1,this.widget=void 0}multipleSelectionEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.multipleSelectionEnabled=t)}selectionEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.selectionEnabled=t)}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}referenceElementWatcher(t){r(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.map=t.map)}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,await this._addWatchers(),this.widgetReady.emit(!0),o(this),this._hookEvents(this.widget)}disconnectedCallback(){n(this)}render(){return this.expandable?e("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},e("div",{ref:t=>this.childElem=t})):e("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await a();t((()=>this.widget.selectedItems),(t=>this.selectedItems=t)),t((()=>this.widget.tableItems),(t=>this.tableItems=t))}_createParams(){const t={container:this.childElem,multipleSelectionEnabled:this.multipleSelectionEnabled,selectionEnabled:this.selectionEnabled};return this.view&&(t.map=this.view.map),t}_hookEvents(t){const i=t.on("trigger-action",(t=>{this.triggerAction.emit(t)}));t.own(i)}get el(){return s(this)}static get watchers(){return{multipleSelectionEnabled:["multipleSelectionEnabledWatcher"],selectionEnabled:["selectionEnabledWatcher"],position:["positionWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style="arcgis-table-list{}";export{c as arcgis_table_list}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as s,g as i}from"./p-1e5e5ed9.js";import{a3 as r}from"./p-095e0075.js";import{r as o,c as a}from"./p-1401deea.js";import{o as h}from"./p-b813c9e6.js";const c=class{constructor(s){t(this,s),this.widgetReady=e(this,"widgetReady",7),this.referenceElement=void 0,this.layout=void 0,this.view=void 0,this.position="bottom-left",this.widget=void 0}layoutWatcher(t){void 0!==t&&this.widget&&(this.widget.layout=t)}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}referenceElementWatcher(t){o(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async zoomIn(){return this.widget?.zoomIn()}async zoomOut(){return this.widget?.zoomOut()}async componentDidLoad(){const t=this._createParams(),e=await r(t);this.widget=e,this.widgetReady.emit(!0),a(this)}disconnectedCallback(){h(this)}render(){return s("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),t}get el(){return i(this)}static get watchers(){return{layout:["layoutWatcher"],position:["positionWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style="arcgis-zoom{}";export{c as arcgis_zoom}
@@ -1 +0,0 @@
1
- function o(o){function r(o){o.stopPropagation()}return"2d"===o.type&&(o.constraints.rotationEnabled=!1),o.popup.dockEnabled=!0,o.popup.actions.removeAll(),o.popup.viewModel.includeDefaultActions=!1,o.ui.components=["attribution"],o.on("mouse-wheel",r),o.on("double-click",r),o.on("double-click",["Control"],r),o.on("drag",r),o.on("drag",["Shift"],r),o.on("drag",["Shift","Control"],r),o.on("key-down",(o=>{-1!==["+","-","Shift","_","=","ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].indexOf(o.key)&&o.stopPropagation()})),o}export{o as d}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i,g as s}from"./p-1e5e5ed9.js";import{a0 as h}from"./p-095e0075.js";import{r,c as o}from"./p-1401deea.js";import{o as a}from"./p-b813c9e6.js";const c=class{constructor(i){t(this,i),this.traceAddFlag=e(this,"traceAddFlag",7),this.traceAddFlagComplete=e(this,"traceAddFlagComplete",7),this.traceAddFlagError=e(this,"traceAddFlagError",7),this.widgetReady=e(this,"widgetReady",7),this.referenceElement=void 0,this.defaultGraphicColor=void 0,this.flags=void 0,this.gdbVersion=void 0,this.inputSettings=void 0,this.selectedTraces=void 0,this.selectOnComplete=void 0,this.showGraphicsOnComplete=void 0,this.showSelectionAttributes=void 0,this.position="bottom-left",this.expandable=!1,this.view=void 0,this.widget=void 0}defaultGraphicColorWatcher(t){void 0!==t&&this.widget&&(this.widget.defaultGraphicColor=t)}flagsWatcher(t){void 0!==t&&this.widget&&(this.widget.flags=t)}gdbVersionWatcher(t){void 0!==t&&this.widget&&(this.widget.gdbVersion=t)}inputSettingsWatcher(t){void 0!==t&&this.widget&&(this.widget.inputSettings=t)}selectedTracesWatcher(t){void 0!==t&&this.widget&&(this.widget.selectedTraces=t)}selectOnCompleteWatcher(t){void 0!==t&&this.widget&&(this.widget.selectOnComplete=t)}showGraphicsOnCompleteWatcher(t){void 0!==t&&this.widget&&(this.widget.showGraphicsOnComplete=t)}showSelectionAttributesWatcher(t){void 0!==t&&this.widget&&(this.widget.showSelectionAttributes=t)}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}referenceElementWatcher(t){r(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async checkCanTrace(){return this.widget?.checkCanTrace()}async confirmReset(){return this.widget?.confirmReset()}async componentDidLoad(){const t=this._createParams(),e=await h(t);this.widget=e,this._proxyEvents(),this.widgetReady.emit(!0),o(this)}disconnectedCallback(){a(this)}render(){return this.expandable?i("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},i("div",{ref:t=>this.childElem=t})):i("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),t}_proxyEvents(){this.widget.on("add-flag",(t=>this.traceAddFlag.emit(t))),this.widget.on("add-flag-complete",(t=>this.traceAddFlagComplete.emit(t))),this.widget.on("add-flag-error",(t=>this.traceAddFlagError.emit(t)))}get el(){return s(this)}static get watchers(){return{defaultGraphicColor:["defaultGraphicColorWatcher"],flags:["flagsWatcher"],gdbVersion:["gdbVersionWatcher"],inputSettings:["inputSettingsWatcher"],selectedTraces:["selectedTracesWatcher"],selectOnComplete:["selectOnCompleteWatcher"],showGraphicsOnComplete:["showGraphicsOnCompleteWatcher"],showSelectionAttributes:["showSelectionAttributesWatcher"],position:["positionWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style="";export{c as arcgis_utility_network_trace}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-1e5e5ed9.js";import{l as r}from"./p-095e0075.js";import{r as h,c as o}from"./p-1401deea.js";import{o as a}from"./p-b813c9e6.js";const c=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this.referenceElement=void 0,this.position="bottom-left",this.expandable=!1,this.widget=void 0,this.view=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}referenceElementWatcher(t){h(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async componentDidLoad(){const t={container:this.childElem};this.view&&(t.view=this.view);const i=await r(t);this.widget=i,this.view&&(i.view=this.view),this.widgetReady.emit(!0),o(this)}disconnectedCallback(){a(this)}render(){return this.expandable?s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t})):s("div",{ref:t=>this.childElem=t})}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style="";export{c as arcgis_building_explorer}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-1e5e5ed9.js";import{v as h}from"./p-095e0075.js";import{r,c as o}from"./p-1401deea.js";import{o as a}from"./p-b813c9e6.js";const c=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this.referenceElement=void 0,this.geodesicDistanceThreshold=void 0,this.input=void 0,this.profiles=void 0,this.position="bottom-left",this.expandable=!1,this.unit=void 0,this.unitOptions=void 0,this.view=void 0,this.widget=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}geodesicDistanceThresholdWatcher(t){t&&this.widget&&(this.widget.geodesicDistanceThreshold=t)}inputWatcher(t){t&&this.widget&&(this.widget.input=t)}profilesWatcher(t){t&&this.widget&&(this.widget.profiles=t)}unitWatcher(t){t&&this.widget&&(this.widget.unit=t)}unitOptionsWatcher(t){t&&this.widget&&(this.widget.unitOptions=t)}referenceElementWatcher(t){r(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,this.widgetReady.emit(!0),o(this)}disconnectedCallback(){a(this)}render(){return this.expandable?s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t})):s("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),this.geodesicDistanceThreshold&&(t.geodesicDistanceThreshold=this.geodesicDistanceThreshold),this.input&&(t.input=this.input),this.profiles&&(t.profiles=this.profiles),this.unit&&(t.unit=this.unit),this.unitOptions&&(t.unitOptions=this.unitOptions),t}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],geodesicDistanceThreshold:["geodesicDistanceThresholdWatcher"],input:["inputWatcher"],profiles:["profilesWatcher"],unit:["unitWatcher"],unitOptions:["unitOptionsWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style="";export{c as arcgis_elevation_profile}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-1e5e5ed9.js";import{G as r}from"./p-095e0075.js";import{r as h,c as o}from"./p-1401deea.js";import{o as a}from"./p-b813c9e6.js";const c=class{constructor(s){t(this,s),this.goCalled=i(this,"goCalled",7),this.widgetReady=i(this,"widgetReady",7),this.referenceElement=void 0,this.viewpoint=void 0,this.view=void 0,this.position="bottom-left",this.widget=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}viewpointWatcher(t){void 0!==t&&this.widget&&(this.widget.viewpoint=t)}referenceElementWatcher(t){h(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async cancelGo(){return this.widget?.cancelGo()}async go(){return this.widget?.go()}async componentDidLoad(){const t=this._createParams(),i=await r(t);this.widget=i,this.widgetReady.emit(!0),this._proxyEvents(),o(this)}disconnectedCallback(){a(this)}render(){return s("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};return this.viewpoint&&(t.viewpoint=this.viewpoint),this.view&&(t.view=this.view),t}async _proxyEvents(){this.widget?.on("go",(t=>this.goCalled.emit(t)))}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],viewpoint:["viewpointWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style="arcgis-home{}";export{c as arcgis_home}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i,g as s}from"./p-1e5e5ed9.js";import{a2 as r}from"./p-095e0075.js";import{r as h,c as o}from"./p-1401deea.js";import{o as a}from"./p-b813c9e6.js";const c=class{constructor(i){t(this,i),this.widgetReady=e(this,"widgetReady",7),this.referenceElement=void 0,this.position="bottom-left",this.expandable=!1,this.view=void 0,this.widget=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}referenceElementWatcher(t){h(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async componentDidLoad(){const t=this._createParams(),e=await r(t);this.widget=e,this.widgetReady.emit(!0),o(this)}disconnectedCallback(){a(this)}render(){return this.expandable?i("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},i("div",{ref:t=>this.childElem=t})):i("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),t}get el(){return s(this)}static get watchers(){return{position:["positionWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style="";export{c as arcgis_weather}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-1e5e5ed9.js";import{C as h}from"./p-095e0075.js";import{r,c as o}from"./p-1401deea.js";import{o as a}from"./p-b813c9e6.js";const c=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this.referenceElement=void 0,this.facility=void 0,this.level=void 0,this.longNames=void 0,this.site=void 0,this.position="bottom-left",this.expandable=!1,this.widget=void 0,this.view=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}facilityWatcher(t){void 0!==t&&this.widget&&(this.widget.facility=t)}levelWatcher(t){void 0!==t&&this.widget&&(this.widget.level=t)}longNamesWatcher(t){void 0!==t&&this.widget&&(this.widget.longNames=t)}siteWatcher(t){void 0!==t&&this.widget&&(this.widget.site=t)}referenceElementWatcher(t){r(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async updateWebDocument(t){return this.widget?.updateWebDocument(t)}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,this.widgetReady.emit(!0),o(this)}disconnectedCallback(){a(this)}render(){return this.expandable?s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t})):s("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};return this.facility&&(t.facility=this.facility),this.level&&(t.level=this.level),this.longNames&&(t.longNames=this.longNames),this.site&&(t.site=this.site),this.view&&(t.view=this.view),t}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],facility:["facilityWatcher"],level:["levelWatcher"],longNames:["longNamesWatcher"],site:["siteWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style="";export{c as arcgis_floor_filter}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as s,g as i}from"./p-1e5e5ed9.js";import{m as r}from"./p-095e0075.js";import{r as o,c as a}from"./p-1401deea.js";import{o as h}from"./p-b813c9e6.js";const c=class{constructor(s){t(this,s),this.widgetReady=e(this,"widgetReady",7),this.referenceElement=void 0,this.position="bottom-left",this.widget=void 0,this.view=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}referenceElementWatcher(t){o(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async reset(){return this.widget?.reset()}async componentDidLoad(){const t=this._createParams(),e=await r(t);this.widget=e,this.widgetReady.emit(!0),a(this)}disconnectedCallback(){h(this)}render(){return s("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),t}get el(){return i(this)}static get watchers(){return{position:["positionWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style="";export{c as arcgis_compass}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as e,g as s}from"./p-1e5e5ed9.js";import{H as h,i as r}from"./p-095e0075.js";import{r as a,c as o}from"./p-1401deea.js";import{o as c}from"./p-b813c9e6.js";const n=class{constructor(e){t(this,e),this.triggerActionEvent=i(this,"triggerActionEvent",7),this.widgetReady=i(this,"widgetReady",7),this.referenceElement=void 0,this.multipleSelectionEnabled=void 0,this.operationalItems=void 0,this.selectedItems=void 0,this.selectionEnabled=void 0,this.position="bottom-left",this.expandable=!1,this.view=void 0,this.widget=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}multipleSelectionEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.multipleSelectionEnabled=t)}selectedItemsWatcher(t){void 0!==t&&this.widget&&(this.widget.selectedItems=t)}selectionEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.selectionEnabled=t)}referenceElementWatcher(t){a(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async triggerAction(t,i){return this.widget?.triggerAction(t,i)}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,await this._addWatchers(),this._proxyEvents(),this.widgetReady.emit(!0),o(this)}disconnectedCallback(){c(this)}render(){return this.expandable?e("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},e("div",{ref:t=>this.childElem=t})):e("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await r();t((()=>this.widget.operationalItems),(t=>this.operationalItems=t),{initial:!0})}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),t}async _proxyEvents(){this.widget?.on("trigger-action",(t=>this.triggerActionEvent.emit(t)))}get el(){return s(this)}static get watchers(){return{position:["positionWatcher"],multipleSelectionEnabled:["multipleSelectionEnabledWatcher"],selectedItems:["selectedItemsWatcher"],selectionEnabled:["selectionEnabledWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};n.style="";export{n as arcgis_layer_list}