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

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 (267) hide show
  1. package/dist/arcgis-map-components/arcgis-map-components.esm.js +1 -148
  2. package/dist/arcgis-map-components/index.esm.js +0 -1
  3. package/dist/arcgis-map-components/p-021530fd.entry.js +1 -0
  4. package/dist/arcgis-map-components/p-0685d15c.entry.js +1 -0
  5. package/dist/arcgis-map-components/p-09e15a1f.entry.js +1 -0
  6. package/dist/arcgis-map-components/p-0d77ce8d.entry.js +1 -0
  7. package/dist/arcgis-map-components/p-0f83c24c.entry.js +1 -0
  8. package/dist/arcgis-map-components/p-177a536e.entry.js +1 -0
  9. package/dist/arcgis-map-components/p-1977344d.entry.js +1 -0
  10. package/dist/arcgis-map-components/p-1b9d7fb5.entry.js +1 -0
  11. package/dist/arcgis-map-components/p-1e5e5ed9.js +2 -0
  12. package/dist/arcgis-map-components/p-20c7de19.entry.js +1 -0
  13. package/dist/arcgis-map-components/p-23aebf98.entry.js +1 -0
  14. package/dist/arcgis-map-components/p-2bb7a744.entry.js +1 -0
  15. package/dist/arcgis-map-components/p-2d3406f7.js +1 -0
  16. package/dist/arcgis-map-components/p-2fdc27af.entry.js +1 -0
  17. package/dist/arcgis-map-components/p-34df1205.entry.js +1 -0
  18. package/dist/arcgis-map-components/p-39df01ce.entry.js +1 -0
  19. package/dist/arcgis-map-components/p-39eb103e.entry.js +1 -0
  20. package/dist/arcgis-map-components/p-4b213105.entry.js +1 -0
  21. package/dist/arcgis-map-components/p-53d8e476.entry.js +1 -0
  22. package/dist/arcgis-map-components/p-57259fd5.entry.js +1 -0
  23. package/dist/arcgis-map-components/p-5924285b.entry.js +1 -0
  24. package/dist/arcgis-map-components/p-5cabdee7.js +1 -0
  25. package/dist/arcgis-map-components/p-68a75dc8.entry.js +1 -0
  26. package/dist/arcgis-map-components/p-68f62c97.entry.js +1 -0
  27. package/dist/arcgis-map-components/p-6951ecc2.entry.js +1 -0
  28. package/dist/arcgis-map-components/p-69aaaa8c.entry.js +1 -0
  29. package/dist/arcgis-map-components/p-71ba5d8c.entry.js +1 -0
  30. package/dist/arcgis-map-components/p-796aa573.entry.js +1 -0
  31. package/dist/arcgis-map-components/p-7e3965a6.entry.js +1 -0
  32. package/dist/arcgis-map-components/p-85e5fcb4.entry.js +1 -0
  33. package/dist/arcgis-map-components/p-91b9e93f.entry.js +1 -0
  34. package/dist/arcgis-map-components/p-9566f3ac.entry.js +1 -0
  35. package/dist/arcgis-map-components/p-9767670f.entry.js +1 -0
  36. package/dist/arcgis-map-components/p-9d0e9668.entry.js +1 -0
  37. package/dist/arcgis-map-components/p-a2ba2654.entry.js +1 -0
  38. package/dist/arcgis-map-components/p-a47f9c9c.entry.js +1 -0
  39. package/dist/arcgis-map-components/p-ac2a93fb.entry.js +1 -0
  40. package/dist/arcgis-map-components/p-b35cd7c1.entry.js +1 -0
  41. package/dist/arcgis-map-components/p-b59cc744.entry.js +1 -0
  42. package/dist/arcgis-map-components/p-b699b1d2.entry.js +1 -0
  43. package/dist/arcgis-map-components/p-b813c9e6.js +1 -0
  44. package/dist/arcgis-map-components/p-c2d35c80.entry.js +1 -0
  45. package/dist/arcgis-map-components/p-c9f47845.entry.js +1 -0
  46. package/dist/arcgis-map-components/p-ca9109da.entry.js +1 -0
  47. package/dist/arcgis-map-components/p-cdf352de.entry.js +1 -0
  48. package/dist/arcgis-map-components/p-d360bf58.entry.js +1 -0
  49. package/dist/arcgis-map-components/p-d3b14bf9.entry.js +1 -0
  50. package/dist/arcgis-map-components/p-de286635.entry.js +1 -0
  51. package/dist/arcgis-map-components/p-e230d0a1.entry.js +1 -0
  52. package/dist/arcgis-map-components/p-e3a2afb4.entry.js +1 -0
  53. package/dist/arcgis-map-components/p-e8b09e23.entry.js +1 -0
  54. package/dist/arcgis-map-components/p-ea6ae338.entry.js +1 -0
  55. package/dist/arcgis-map-components/p-ef4d2a7e.entry.js +1 -0
  56. package/dist/arcgis-map-components/p-f37dec12.entry.js +1 -0
  57. package/dist/arcgis-map-components/p-f62ad08d.entry.js +1 -0
  58. package/dist/arcgis-map-components/p-f6bc527c.js +1 -0
  59. package/dist/arcgis-map-components/p-f8e2e2ed.entry.js +1 -0
  60. package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +101 -0
  61. package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +94 -0
  62. package/dist/cjs/arcgis-attachments.cjs.entry.js +73 -0
  63. package/dist/cjs/arcgis-basemap-gallery_3.cjs.entry.js +281 -0
  64. package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +144 -0
  65. package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +115 -0
  66. package/dist/cjs/arcgis-bookmarks.cjs.entry.js +140 -0
  67. package/dist/cjs/arcgis-building-explorer.cjs.entry.js +80 -0
  68. package/dist/cjs/arcgis-compass.cjs.entry.js +90 -0
  69. package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +158 -0
  70. package/dist/cjs/arcgis-daylight.cjs.entry.js +116 -0
  71. package/dist/cjs/arcgis-directional-pad.cjs.entry.js +100 -0
  72. package/dist/cjs/arcgis-directions.cjs.entry.js +194 -0
  73. package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +114 -0
  74. package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +106 -0
  75. package/dist/cjs/arcgis-editor.cjs.entry.js +180 -0
  76. package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +136 -0
  77. package/dist/cjs/arcgis-feature-form.cjs.entry.js +36 -0
  78. package/dist/cjs/arcgis-feature-table.cjs.entry.js +300 -0
  79. package/dist/cjs/arcgis-feature-templates.cjs.entry.js +73 -0
  80. package/dist/cjs/arcgis-feature.cjs.entry.js +106 -0
  81. package/dist/cjs/arcgis-features.cjs.entry.js +133 -0
  82. package/dist/cjs/arcgis-floor-filter.cjs.entry.js +134 -0
  83. package/dist/cjs/arcgis-fullscreen.cjs.entry.js +92 -0
  84. package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +80 -0
  85. package/dist/cjs/arcgis-histogram.cjs.entry.js +36 -0
  86. package/dist/cjs/arcgis-home.cjs.entry.js +108 -0
  87. package/dist/cjs/arcgis-layer-list.cjs.entry.js +128 -0
  88. package/dist/cjs/arcgis-legend.cjs.entry.js +146 -0
  89. package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +94 -0
  90. package/dist/cjs/arcgis-locate.cjs.entry.js +158 -0
  91. package/dist/cjs/arcgis-map-components.cjs.js +23 -0
  92. package/dist/cjs/arcgis-measurement.cjs.entry.js +123 -0
  93. package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +97 -0
  94. package/dist/cjs/arcgis-print.cjs.entry.js +163 -0
  95. package/dist/cjs/arcgis-scale-bar.cjs.entry.js +106 -0
  96. package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +146 -0
  97. package/dist/cjs/arcgis-scene.cjs.entry.js +106 -0
  98. package/dist/cjs/arcgis-search.cjs.entry.js +276 -0
  99. package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +95 -0
  100. package/dist/cjs/arcgis-sketch.cjs.entry.js +201 -0
  101. package/dist/cjs/arcgis-slice.cjs.entry.js +103 -0
  102. package/dist/cjs/arcgis-slider.cjs.entry.js +233 -0
  103. package/dist/cjs/arcgis-swipe.cjs.entry.js +117 -0
  104. package/dist/cjs/arcgis-table-list.cjs.entry.js +118 -0
  105. package/dist/cjs/arcgis-time-slider.cjs.entry.js +216 -0
  106. package/dist/cjs/arcgis-track.cjs.entry.js +147 -0
  107. package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js +220 -0
  108. package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +162 -0
  109. package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js +110 -0
  110. package/dist/cjs/arcgis-value-picker.cjs.entry.js +160 -0
  111. package/dist/cjs/arcgis-weather.cjs.entry.js +86 -0
  112. package/dist/cjs/arcgis-zoom.cjs.entry.js +100 -0
  113. package/dist/cjs/component-utils-cbd20e88.js +77 -0
  114. package/dist/cjs/disconnected-306cb220.js +55 -0
  115. package/dist/cjs/index-6b51d5a0.js +1619 -0
  116. package/dist/cjs/index-fda6ecee.js +753 -0
  117. package/dist/cjs/index.cjs.js +2 -0
  118. package/dist/cjs/loader.cjs.js +22 -0
  119. package/dist/cjs/mapping-utils-c2c7b994.js +40 -0
  120. package/dist/components/arcgis-area-measurement-2d.js +128 -0
  121. package/dist/components/arcgis-area-measurement-3d.js +121 -0
  122. package/dist/components/arcgis-attachments.js +99 -0
  123. package/dist/{arcgis-map-components/arcgis-basemap-gallery.entry.js → components/arcgis-basemap-gallery.js} +42 -11
  124. package/dist/components/arcgis-basemap-layer-list.js +175 -0
  125. package/dist/components/arcgis-basemap-toggle.js +143 -0
  126. package/dist/components/arcgis-bookmarks.js +169 -0
  127. package/dist/components/arcgis-building-explorer.js +105 -0
  128. package/dist/components/arcgis-compass.js +109 -0
  129. package/dist/components/arcgis-coordinate-conversion.js +193 -0
  130. package/dist/components/arcgis-daylight.js +144 -0
  131. package/dist/components/arcgis-directional-pad.d.ts +11 -0
  132. package/dist/components/arcgis-directional-pad.js +126 -0
  133. package/dist/components/arcgis-directions.js +230 -0
  134. package/dist/components/arcgis-directline-measurement-3d.js +142 -0
  135. package/dist/components/arcgis-distance-measurement-2d.js +133 -0
  136. package/dist/components/arcgis-editor.js +219 -0
  137. package/dist/components/arcgis-elevation-profile.js +166 -0
  138. package/dist/components/arcgis-expand.js +6 -0
  139. package/dist/{arcgis-map-components/arcgis-expand.entry.js → components/arcgis-expand2.js} +30 -11
  140. package/dist/components/arcgis-feature-form.js +55 -0
  141. package/dist/components/arcgis-feature-table.js +355 -0
  142. package/dist/components/arcgis-feature-templates.js +98 -0
  143. package/dist/components/arcgis-feature.js +133 -0
  144. package/dist/components/arcgis-features.js +169 -0
  145. package/dist/components/arcgis-floor-filter.js +164 -0
  146. package/dist/components/arcgis-fullscreen.js +111 -0
  147. package/dist/components/arcgis-histogram-range-slider.js +106 -0
  148. package/dist/components/arcgis-histogram.js +55 -0
  149. package/dist/components/arcgis-home.js +129 -0
  150. package/dist/components/arcgis-layer-list.js +158 -0
  151. package/dist/components/arcgis-legend.js +177 -0
  152. package/dist/components/arcgis-line-of-sight.js +120 -0
  153. package/dist/components/arcgis-locate.js +184 -0
  154. package/dist/{arcgis-map-components/arcgis-map.entry.js → components/arcgis-map.js} +36 -10
  155. package/dist/components/arcgis-measurement.js +153 -0
  156. package/dist/components/arcgis-navigation-toggle.js +117 -0
  157. package/dist/components/arcgis-print.js +197 -0
  158. package/dist/components/arcgis-scale-bar.js +133 -0
  159. package/dist/components/arcgis-scale-range-slider.js +177 -0
  160. package/dist/components/arcgis-scene.js +127 -0
  161. package/dist/components/arcgis-search.js +330 -0
  162. package/dist/components/arcgis-shadow-cast.js +121 -0
  163. package/dist/components/arcgis-sketch.js +238 -0
  164. package/dist/components/arcgis-slice.js +130 -0
  165. package/dist/components/arcgis-slider.js +281 -0
  166. package/dist/components/arcgis-swipe.js +140 -0
  167. package/dist/components/arcgis-table-list.js +147 -0
  168. package/dist/components/arcgis-time-slider.js +256 -0
  169. package/dist/components/arcgis-track.js +171 -0
  170. package/dist/components/arcgis-utility-network-associations.d.ts +11 -0
  171. package/dist/components/arcgis-utility-network-associations.js +258 -0
  172. package/dist/components/arcgis-utility-network-trace.js +197 -0
  173. package/dist/components/arcgis-utility-network-validate-topology.d.ts +11 -0
  174. package/dist/components/arcgis-utility-network-validate-topology.js +137 -0
  175. package/dist/components/arcgis-value-picker.js +198 -0
  176. package/dist/components/arcgis-weather.js +111 -0
  177. package/dist/components/arcgis-zoom.js +121 -0
  178. package/dist/components/disconnected.js +122 -0
  179. package/dist/components/index.d.ts +3 -0
  180. package/dist/components/index.js +55 -0
  181. package/dist/components/index2.js +671 -0
  182. package/dist/{arcgis-map-components → esm}/arcgis-area-measurement-2d.entry.js +3 -3
  183. package/dist/{arcgis-map-components → esm}/arcgis-area-measurement-3d.entry.js +3 -3
  184. package/dist/{arcgis-map-components → esm}/arcgis-attachments.entry.js +2 -2
  185. package/dist/esm/arcgis-basemap-gallery_3.entry.js +275 -0
  186. package/dist/{arcgis-map-components → esm}/arcgis-basemap-layer-list.entry.js +3 -3
  187. package/dist/{arcgis-map-components → esm}/arcgis-basemap-toggle.entry.js +3 -3
  188. package/dist/{arcgis-map-components → esm}/arcgis-bookmarks.entry.js +3 -3
  189. package/dist/{arcgis-map-components → esm}/arcgis-building-explorer.entry.js +3 -3
  190. package/dist/{arcgis-map-components → esm}/arcgis-compass.entry.js +3 -3
  191. package/dist/{arcgis-map-components → esm}/arcgis-coordinate-conversion.entry.js +3 -3
  192. package/dist/{arcgis-map-components → esm}/arcgis-daylight.entry.js +3 -3
  193. package/dist/esm/arcgis-directional-pad.entry.js +96 -0
  194. package/dist/{arcgis-map-components → esm}/arcgis-directions.entry.js +3 -3
  195. package/dist/{arcgis-map-components → esm}/arcgis-directline-measurement-3d.entry.js +3 -3
  196. package/dist/{arcgis-map-components → esm}/arcgis-distance-measurement-2d.entry.js +3 -3
  197. package/dist/{arcgis-map-components → esm}/arcgis-editor.entry.js +3 -3
  198. package/dist/{arcgis-map-components → esm}/arcgis-elevation-profile.entry.js +3 -3
  199. package/dist/{arcgis-map-components → esm}/arcgis-feature-form.entry.js +2 -2
  200. package/dist/{arcgis-map-components → esm}/arcgis-feature-table.entry.js +3 -3
  201. package/dist/{arcgis-map-components → esm}/arcgis-feature-templates.entry.js +3 -3
  202. package/dist/{arcgis-map-components → esm}/arcgis-feature.entry.js +3 -3
  203. package/dist/{arcgis-map-components → esm}/arcgis-features.entry.js +3 -3
  204. package/dist/{arcgis-map-components → esm}/arcgis-floor-filter.entry.js +3 -3
  205. package/dist/{arcgis-map-components → esm}/arcgis-fullscreen.entry.js +3 -3
  206. package/dist/{arcgis-map-components → esm}/arcgis-histogram-range-slider.entry.js +3 -3
  207. package/dist/{arcgis-map-components → esm}/arcgis-histogram.entry.js +2 -2
  208. package/dist/{arcgis-map-components → esm}/arcgis-home.entry.js +3 -3
  209. package/dist/{arcgis-map-components → esm}/arcgis-layer-list.entry.js +3 -3
  210. package/dist/{arcgis-map-components → esm}/arcgis-legend.entry.js +3 -3
  211. package/dist/{arcgis-map-components → esm}/arcgis-line-of-sight.entry.js +3 -3
  212. package/dist/{arcgis-map-components → esm}/arcgis-locate.entry.js +3 -3
  213. package/dist/esm/arcgis-map-components.js +18 -0
  214. package/dist/{arcgis-map-components → esm}/arcgis-measurement.entry.js +3 -3
  215. package/dist/{arcgis-map-components → esm}/arcgis-navigation-toggle.entry.js +3 -3
  216. package/dist/{arcgis-map-components → esm}/arcgis-print.entry.js +3 -3
  217. package/dist/{arcgis-map-components → esm}/arcgis-scale-bar.entry.js +3 -3
  218. package/dist/{arcgis-map-components → esm}/arcgis-scale-range-slider.entry.js +3 -3
  219. package/dist/{arcgis-map-components → esm}/arcgis-scene.entry.js +2 -2
  220. package/dist/{arcgis-map-components → esm}/arcgis-search.entry.js +3 -3
  221. package/dist/{arcgis-map-components → esm}/arcgis-shadow-cast.entry.js +3 -3
  222. package/dist/{arcgis-map-components → esm}/arcgis-sketch.entry.js +3 -3
  223. package/dist/{arcgis-map-components → esm}/arcgis-slice.entry.js +3 -3
  224. package/dist/{arcgis-map-components → esm}/arcgis-slider.entry.js +3 -3
  225. package/dist/{arcgis-map-components → esm}/arcgis-swipe.entry.js +3 -3
  226. package/dist/{arcgis-map-components → esm}/arcgis-table-list.entry.js +3 -3
  227. package/dist/{arcgis-map-components → esm}/arcgis-time-slider.entry.js +3 -3
  228. package/dist/{arcgis-map-components → esm}/arcgis-track.entry.js +3 -3
  229. package/dist/esm/arcgis-utility-network-associations.entry.js +216 -0
  230. package/dist/{arcgis-map-components → esm}/arcgis-utility-network-trace.entry.js +3 -3
  231. package/dist/esm/arcgis-utility-network-validate-topology.entry.js +106 -0
  232. package/dist/{arcgis-map-components → esm}/arcgis-value-picker.entry.js +3 -3
  233. package/dist/{arcgis-map-components → esm}/arcgis-weather.entry.js +3 -3
  234. package/dist/{arcgis-map-components → esm}/arcgis-zoom.entry.js +3 -3
  235. package/dist/{arcgis-map-components/component-utils-d3552de2.js → esm/component-utils-2ebdae59.js} +1 -1
  236. package/dist/esm/index-98b79a87.js +671 -0
  237. package/dist/esm/index-eb3ead33.js +1591 -0
  238. package/dist/esm/index.js +1 -0
  239. package/dist/esm/loader.js +18 -0
  240. package/dist/esm/mapping-utils-26beb904.js +38 -0
  241. package/dist/esm/polyfills/core-js.js +11 -0
  242. package/dist/esm/polyfills/css-shim.js +1 -0
  243. package/dist/esm/polyfills/dom.js +79 -0
  244. package/dist/esm/polyfills/es5-html-element.js +1 -0
  245. package/dist/esm/polyfills/index.js +34 -0
  246. package/dist/esm/polyfills/system.js +6 -0
  247. package/dist/index.cjs.js +1 -0
  248. package/dist/index.js +1 -0
  249. package/dist/loader/cdn.js +3 -0
  250. package/dist/loader/index.cjs.js +3 -0
  251. package/dist/loader/index.d.ts +21 -0
  252. package/dist/loader/index.es2017.js +3 -0
  253. package/dist/loader/index.js +4 -0
  254. package/dist/loader/package.json +11 -0
  255. package/dist/types/components/arcgis-directional-pad/arcgis-directional-pad.d.ts +27 -0
  256. package/dist/types/components/arcgis-utility-network-associations/arcgis-utility-network-associations.d.ts +50 -0
  257. package/dist/types/components/arcgis-utility-network-validate-topology/arcgis-utility-network-validate-topology.d.ts +28 -0
  258. package/dist/types/components.d.ts +119 -0
  259. package/package.json +7 -6
  260. package/dist/arcgis-map-components/app-globals-0f993ce5.js +0 -3
  261. package/dist/arcgis-map-components/css-shim-b7d3d95f.js +0 -4
  262. package/dist/arcgis-map-components/dom-64053c71.js +0 -73
  263. package/dist/arcgis-map-components/index-82d260eb.js +0 -8293
  264. package/dist/arcgis-map-components/index-d9a93dfb.js +0 -3371
  265. package/dist/arcgis-map-components/shadow-css-008a49f5.js +0 -387
  266. /package/dist/{arcgis-map-components/mapping-utils-26beb904.js → components/mapping-utils.js} +0 -0
  267. /package/dist/{arcgis-map-components → esm}/disconnected-bc5fc8bc.js +0 -0
@@ -0,0 +1,194 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-6b51d5a0.js');
6
+ const index$1 = require('./index-fda6ecee.js');
7
+ const componentUtils = require('./component-utils-cbd20e88.js');
8
+ const disconnected = require('./disconnected-306cb220.js');
9
+
10
+ const arcgisDirectionsCss = "";
11
+
12
+ const ArcgisDirections = class {
13
+ constructor(hostRef) {
14
+ index.registerInstance(this, hostRef);
15
+ this.widgetReady = index.createEvent(this, "widgetReady", 7);
16
+ this.referenceElement = undefined;
17
+ this.apiKey = undefined;
18
+ this.itemId = undefined;
19
+ this.lastRoute = undefined;
20
+ this.layer = undefined;
21
+ this.maxStops = undefined;
22
+ this.searchProperties = undefined;
23
+ this.unit = undefined;
24
+ this.position = "bottom-left";
25
+ this.expandable = false;
26
+ this.view = undefined;
27
+ this.widget = undefined;
28
+ }
29
+ //--------------------------------------------------------------------------
30
+ //
31
+ // Watchers
32
+ //
33
+ //--------------------------------------------------------------------------
34
+ positionWatcher(newValue) {
35
+ if (newValue !== undefined && this.widget) {
36
+ if (typeof this.view !== "string") {
37
+ this.view.ui.move(this.childElem, newValue);
38
+ }
39
+ }
40
+ }
41
+ apiKeyWatcher(value) {
42
+ if (value && this.widget) {
43
+ this.widget.apiKey = value;
44
+ }
45
+ }
46
+ itemIdWatcher(value) {
47
+ if (value && this.widget) {
48
+ index$1.newLayersRouteLayer({
49
+ portalItem: {
50
+ id: value
51
+ }
52
+ }).then((layer) => {
53
+ this.layer = layer;
54
+ });
55
+ }
56
+ }
57
+ layerWatcher(value) {
58
+ if (value && this.widget) {
59
+ this.widget.layer = value;
60
+ this.view?.map.add(this.layer);
61
+ }
62
+ }
63
+ maxStopsWatcher(value) {
64
+ if (value && this.widget) {
65
+ this.widget.maxStops = value;
66
+ }
67
+ }
68
+ searchPropertiesWatcher(value) {
69
+ if (value && this.widget) {
70
+ this.widget.searchProperties = value;
71
+ }
72
+ }
73
+ unitWatcher(value) {
74
+ if (value && this.widget) {
75
+ this.widget.unit = value;
76
+ }
77
+ }
78
+ referenceElementWatcher(newValue) {
79
+ componentUtils.referenceElementHelper(this, newValue);
80
+ }
81
+ viewWatcher(newValue) {
82
+ if (newValue !== undefined && this.widget) {
83
+ this.widget.view = newValue;
84
+ if (this.layer) {
85
+ this.widget.view.map.add(this.layer);
86
+ }
87
+ }
88
+ }
89
+ //--------------------------------------------------------------------------
90
+ //
91
+ // Methods
92
+ //
93
+ //--------------------------------------------------------------------------
94
+ async getDirections() {
95
+ return this.widget?.getDirections();
96
+ }
97
+ async save() {
98
+ return this.widget?.save();
99
+ }
100
+ async saveAs(portalItem, options) {
101
+ return this.widget?.saveAs(portalItem, options);
102
+ }
103
+ async zoomToRoute() {
104
+ return this.widget?.zoomToRoute();
105
+ }
106
+ //--------------------------------------------------------------------------
107
+ //
108
+ // Lifecycle
109
+ //
110
+ //--------------------------------------------------------------------------
111
+ async componentDidLoad() {
112
+ const params = await this._createParams();
113
+ const widget = await index$1.newWidgetsDirections(params);
114
+ this.widget = widget;
115
+ await this._addWatchers();
116
+ this.widgetReady.emit(true);
117
+ componentUtils.checkForView(this);
118
+ }
119
+ disconnectedCallback() {
120
+ disconnected.onDisconnectedHelper(this);
121
+ }
122
+ render() {
123
+ if (this.expandable) {
124
+ return (index.h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, index.h("div", { ref: (el) => (this.childElem = el) })));
125
+ }
126
+ return index.h("div", { ref: (el) => (this.childElem = el) });
127
+ }
128
+ //--------------------------------------------------------------------------
129
+ //
130
+ // Private Methods
131
+ //
132
+ //--------------------------------------------------------------------------
133
+ async _addWatchers() {
134
+ const { watch } = await index$1.importCoreReactiveUtils();
135
+ watch(() => this.widget.lastRoute, (value) => (this.lastRoute = value), {
136
+ initial: true
137
+ });
138
+ }
139
+ async _createParams() {
140
+ const params = {
141
+ container: this.childElem
142
+ };
143
+ if (this.view) {
144
+ params.view = this.view;
145
+ }
146
+ if (this.apiKey) {
147
+ params.apiKey = this.apiKey;
148
+ }
149
+ if (this.itemId) {
150
+ params.layer = await index$1.newLayersRouteLayer({
151
+ portalItem: {
152
+ id: this.itemId
153
+ }
154
+ });
155
+ this.layer = params.layer;
156
+ }
157
+ else if (this.layer) {
158
+ params.layer = this.layer;
159
+ this.layer = params.layer;
160
+ }
161
+ else {
162
+ params.layer = await index$1.newLayersRouteLayer({});
163
+ this.layer = params.layer;
164
+ }
165
+ if (this.layer !== undefined) {
166
+ this.view?.map.add(this.layer);
167
+ }
168
+ if (this.maxStops !== undefined) {
169
+ params.maxStops = this.maxStops;
170
+ }
171
+ if (this.searchProperties) {
172
+ params.searchProperties = this.searchProperties;
173
+ }
174
+ if (this.unit) {
175
+ params.unit = this.unit;
176
+ }
177
+ return params;
178
+ }
179
+ get el() { return index.getElement(this); }
180
+ static get watchers() { return {
181
+ "position": ["positionWatcher"],
182
+ "apiKey": ["apiKeyWatcher"],
183
+ "itemId": ["itemIdWatcher"],
184
+ "layer": ["layerWatcher"],
185
+ "maxStops": ["maxStopsWatcher"],
186
+ "searchProperties": ["searchPropertiesWatcher"],
187
+ "unit": ["unitWatcher"],
188
+ "referenceElement": ["referenceElementWatcher"],
189
+ "view": ["viewWatcher"]
190
+ }; }
191
+ };
192
+ ArcgisDirections.style = arcgisDirectionsCss;
193
+
194
+ exports.arcgis_directions = ArcgisDirections;
@@ -0,0 +1,114 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-6b51d5a0.js');
6
+ const index$1 = require('./index-fda6ecee.js');
7
+ const componentUtils = require('./component-utils-cbd20e88.js');
8
+ const disconnected = require('./disconnected-306cb220.js');
9
+
10
+ const arcgisDirectlineMeasurement3dCss = "";
11
+
12
+ const ArcgisDirectLineMeasurement3d = class {
13
+ constructor(hostRef) {
14
+ index.registerInstance(this, hostRef);
15
+ this.widgetReady = index.createEvent(this, "widgetReady", 7);
16
+ this.referenceElement = undefined;
17
+ this.position = "bottom-left";
18
+ this.expandable = false;
19
+ this.analysis = undefined;
20
+ this.unit = undefined;
21
+ this.unitOptions = undefined;
22
+ this.widget = undefined;
23
+ this.view = undefined;
24
+ }
25
+ //--------------------------------------------------------------------------
26
+ //
27
+ // Watchers
28
+ //
29
+ //--------------------------------------------------------------------------
30
+ positionWatcher(newValue) {
31
+ if (newValue !== undefined && this.widget) {
32
+ if (typeof this.view !== "string") {
33
+ this.view.ui.move(this.childElem, newValue);
34
+ }
35
+ }
36
+ }
37
+ unitWatcher(value) {
38
+ if (value && this.widget) {
39
+ this.widget.unit = value;
40
+ }
41
+ }
42
+ unitOptionsWatcher(value) {
43
+ if (value && this.widget) {
44
+ this.widget.unitOptions = value;
45
+ }
46
+ }
47
+ referenceElementWatcher(newValue) {
48
+ componentUtils.referenceElementHelper(this, newValue);
49
+ }
50
+ viewWatcher(newValue) {
51
+ if (newValue !== undefined && this.widget) {
52
+ this.widget.view = newValue;
53
+ }
54
+ }
55
+ //--------------------------------------------------------------------------
56
+ //
57
+ // Lifecycle
58
+ //
59
+ //--------------------------------------------------------------------------
60
+ async componentDidLoad() {
61
+ const params = this._createParams();
62
+ const widget = await index$1.newWidgetsDirectLineMeasurement3D(params);
63
+ this.widget = widget;
64
+ this._addWatchers();
65
+ this.widgetReady.emit(true);
66
+ componentUtils.checkForView(this);
67
+ }
68
+ disconnectedCallback() {
69
+ disconnected.onDisconnectedHelper(this);
70
+ }
71
+ render() {
72
+ if (this.expandable) {
73
+ return (index.h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, index.h("div", { ref: (el) => (this.childElem = el) })));
74
+ }
75
+ return index.h("div", { ref: (el) => (this.childElem = el) });
76
+ }
77
+ //--------------------------------------------------------------------------
78
+ //
79
+ // Private Methods
80
+ //
81
+ //--------------------------------------------------------------------------
82
+ async _addWatchers() {
83
+ const { watch } = await index$1.importCoreReactiveUtils();
84
+ watch(() => this.widget.analysis, (value) => (this.analysis = value), {
85
+ initial: true
86
+ });
87
+ }
88
+ _createParams() {
89
+ const params = {
90
+ container: this.childElem
91
+ };
92
+ if (this.view) {
93
+ params.view = this.view;
94
+ }
95
+ if (this.unit) {
96
+ params.unit = this.unit;
97
+ }
98
+ if (this.unitOptions) {
99
+ params.unitOptions = this.unitOptions;
100
+ }
101
+ return params;
102
+ }
103
+ get el() { return index.getElement(this); }
104
+ static get watchers() { return {
105
+ "position": ["positionWatcher"],
106
+ "unit": ["unitWatcher"],
107
+ "unitOptions": ["unitOptionsWatcher"],
108
+ "referenceElement": ["referenceElementWatcher"],
109
+ "view": ["viewWatcher"]
110
+ }; }
111
+ };
112
+ ArcgisDirectLineMeasurement3d.style = arcgisDirectlineMeasurement3dCss;
113
+
114
+ exports.arcgis_directline_measurement_3d = ArcgisDirectLineMeasurement3d;
@@ -0,0 +1,106 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-6b51d5a0.js');
6
+ const index$1 = require('./index-fda6ecee.js');
7
+ const componentUtils = require('./component-utils-cbd20e88.js');
8
+ const disconnected = require('./disconnected-306cb220.js');
9
+
10
+ const arcgisDistanceMeasurement2dCss = "";
11
+
12
+ const ArcgisDistanceMeasurement2d = class {
13
+ constructor(hostRef) {
14
+ index.registerInstance(this, hostRef);
15
+ this.widgetReady = index.createEvent(this, "widgetReady", 7);
16
+ this.referenceElement = undefined;
17
+ this.position = "bottom-left";
18
+ this.expandable = false;
19
+ this.unit = undefined;
20
+ this.unitOptions = undefined;
21
+ this.widget = undefined;
22
+ this.view = undefined;
23
+ }
24
+ //--------------------------------------------------------------------------
25
+ //
26
+ // Watchers
27
+ //
28
+ //--------------------------------------------------------------------------
29
+ positionWatcher(newValue) {
30
+ if (newValue !== undefined && this.widget) {
31
+ if (typeof this.view !== "string") {
32
+ this.view.ui.move(this.childElem, newValue);
33
+ }
34
+ }
35
+ }
36
+ unitWatcher(value) {
37
+ if (value && this.widget) {
38
+ this.widget.unit = value;
39
+ }
40
+ }
41
+ unitOptionsWatcher(value) {
42
+ if (value && this.widget) {
43
+ this.widget.unitOptions = value;
44
+ }
45
+ }
46
+ referenceElementWatcher(newValue) {
47
+ componentUtils.referenceElementHelper(this, newValue);
48
+ }
49
+ viewWatcher(newValue) {
50
+ if (newValue !== undefined && this.widget) {
51
+ this.widget.view = newValue;
52
+ }
53
+ }
54
+ //--------------------------------------------------------------------------
55
+ //
56
+ // Lifecycle
57
+ //
58
+ //--------------------------------------------------------------------------
59
+ async componentDidLoad() {
60
+ const params = this._createParams();
61
+ const widget = await index$1.newWidgetsDistanceMeasurement2D(params);
62
+ this.widget = widget;
63
+ this.widgetReady.emit(true);
64
+ componentUtils.checkForView(this);
65
+ }
66
+ disconnectedCallback() {
67
+ disconnected.onDisconnectedHelper(this);
68
+ }
69
+ render() {
70
+ if (this.expandable) {
71
+ return (index.h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, index.h("div", { ref: (el) => (this.childElem = el) })));
72
+ }
73
+ return index.h("div", { ref: (el) => (this.childElem = el) });
74
+ }
75
+ //--------------------------------------------------------------------------
76
+ //
77
+ // Private Methods
78
+ //
79
+ //--------------------------------------------------------------------------
80
+ _createParams() {
81
+ const params = {
82
+ container: this.childElem
83
+ };
84
+ if (this.view) {
85
+ params.view = this.view;
86
+ }
87
+ if (this.unit) {
88
+ params.unit = this.unit;
89
+ }
90
+ if (this.unitOptions) {
91
+ params.unitOptions = this.unitOptions;
92
+ }
93
+ return params;
94
+ }
95
+ get el() { return index.getElement(this); }
96
+ static get watchers() { return {
97
+ "position": ["positionWatcher"],
98
+ "unit": ["unitWatcher"],
99
+ "unitOptions": ["unitOptionsWatcher"],
100
+ "referenceElement": ["referenceElementWatcher"],
101
+ "view": ["viewWatcher"]
102
+ }; }
103
+ };
104
+ ArcgisDistanceMeasurement2d.style = arcgisDistanceMeasurement2dCss;
105
+
106
+ exports.arcgis_distance_measurement_2d = ArcgisDistanceMeasurement2d;
@@ -0,0 +1,180 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-6b51d5a0.js');
6
+ const index$1 = require('./index-fda6ecee.js');
7
+ const componentUtils = require('./component-utils-cbd20e88.js');
8
+ const disconnected = require('./disconnected-306cb220.js');
9
+
10
+ const arcgisEditorCss = "";
11
+
12
+ const ArcgisEditor = class {
13
+ constructor(hostRef) {
14
+ index.registerInstance(this, hostRef);
15
+ this.widgetReady = index.createEvent(this, "widgetReady", 7);
16
+ this.referenceElement = undefined;
17
+ this.activeWorkflow = undefined;
18
+ this.allowedWorkflows = undefined;
19
+ this.labelOptions = undefined;
20
+ this.layerInfos = undefined;
21
+ this.snappingOptions = undefined;
22
+ this.supportingWidgetDefaults = undefined;
23
+ this.tooltipOptions = undefined;
24
+ this.position = "bottom-left";
25
+ this.expandable = false;
26
+ this.view = undefined;
27
+ this.widget = undefined;
28
+ }
29
+ //--------------------------------------------------------------------------
30
+ //
31
+ // Watchers
32
+ //
33
+ //--------------------------------------------------------------------------
34
+ positionWatcher(newValue) {
35
+ if (newValue !== undefined && this.widget) {
36
+ if (typeof this.view !== "string") {
37
+ this.view.ui.move(this.childElem, newValue);
38
+ }
39
+ }
40
+ }
41
+ allowedWorkflowsWatcher(value) {
42
+ if (value && this.widget) {
43
+ this.widget.allowedWorkflows = value;
44
+ }
45
+ }
46
+ labelOptionsWatcher(value) {
47
+ if (value && this.widget) {
48
+ this.widget.labelOptions = value;
49
+ }
50
+ }
51
+ layerInfosWatcher(value) {
52
+ if (value && this.widget) {
53
+ this.widget.layerInfos = value;
54
+ }
55
+ }
56
+ snappingOptionsWatcher(value) {
57
+ if (value && this.widget) {
58
+ this.widget.snappingOptions = value;
59
+ }
60
+ }
61
+ supportingWidgetDefaultsWatcher(value) {
62
+ if (value && this.widget) {
63
+ this.widget.supportingWidgetDefaults = value;
64
+ }
65
+ }
66
+ tooltipOptionsWatcher(value) {
67
+ if (value && this.widget) {
68
+ this.widget.tooltipOptions = value;
69
+ }
70
+ }
71
+ referenceElementWatcher(newValue) {
72
+ componentUtils.referenceElementHelper(this, newValue);
73
+ }
74
+ viewWatcher(newValue) {
75
+ if (newValue !== undefined && this.widget) {
76
+ this.widget.view = newValue;
77
+ }
78
+ }
79
+ //--------------------------------------------------------------------------
80
+ //
81
+ // Methods
82
+ //
83
+ //--------------------------------------------------------------------------
84
+ async cancelWorkflow() {
85
+ return this.widget?.cancelWorkflow();
86
+ }
87
+ async deleteFeatureFromWorkflow() {
88
+ return this.widget?.deleteFeatureFromWorkflow();
89
+ }
90
+ async startCreateFeaturesWorkflowAtFeatureCreation(info) {
91
+ return this.widget?.startCreateFeaturesWorkflowAtFeatureCreation(info);
92
+ }
93
+ async startCreateFeaturesWorkflowAtFeatureTypeSelection() {
94
+ return this.widget?.startCreateFeaturesWorkflowAtFeatureTypeSelection();
95
+ }
96
+ async startUpdateWorkflowAtFeatureEdit(feature) {
97
+ return this.widget?.startUpdateWorkflowAtFeatureEdit(feature);
98
+ }
99
+ async startUpdateWorkflowAtFeatureSelection() {
100
+ return this.widget?.startUpdateWorkflowAtFeatureSelection();
101
+ }
102
+ async startUpdateWorkflowAtMultipleFeatureSelection(candidates) {
103
+ return this.widget?.startUpdateWorkflowAtMultipleFeatureSelection(candidates);
104
+ }
105
+ //--------------------------------------------------------------------------
106
+ //
107
+ // Lifecycle
108
+ //
109
+ //--------------------------------------------------------------------------
110
+ async componentDidLoad() {
111
+ const params = this._createParams();
112
+ const widget = await index$1.newWidgetsEditor(params);
113
+ this.widget = widget;
114
+ this._addWatchers();
115
+ this.widgetReady.emit(true);
116
+ componentUtils.checkForView(this);
117
+ }
118
+ disconnectedCallback() {
119
+ disconnected.onDisconnectedHelper(this);
120
+ }
121
+ render() {
122
+ if (this.expandable) {
123
+ return (index.h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, index.h("div", { ref: (el) => (this.childElem = el) })));
124
+ }
125
+ return index.h("div", { ref: (el) => (this.childElem = el) });
126
+ }
127
+ //--------------------------------------------------------------------------
128
+ //
129
+ // Private Methods
130
+ //
131
+ //--------------------------------------------------------------------------
132
+ async _addWatchers() {
133
+ const { watch } = await index$1.importCoreReactiveUtils();
134
+ watch(() => this.widget.activeWorkflow, (value) => (this.activeWorkflow = value), {
135
+ initial: true
136
+ });
137
+ }
138
+ _createParams() {
139
+ const params = {
140
+ container: this.childElem
141
+ };
142
+ if (this.allowedWorkflows) {
143
+ params.allowedWorkflows = this.allowedWorkflows;
144
+ }
145
+ if (this.labelOptions) {
146
+ params.labelOptions = this.labelOptions;
147
+ }
148
+ if (this.layerInfos) {
149
+ params.layerInfos = this.layerInfos;
150
+ }
151
+ if (this.snappingOptions) {
152
+ params.snappingOptions = this.snappingOptions;
153
+ }
154
+ if (this.supportingWidgetDefaults) {
155
+ params.supportingWidgetDefaults = this.supportingWidgetDefaults;
156
+ }
157
+ if (this.tooltipOptions) {
158
+ params.tooltipOptions = this.tooltipOptions;
159
+ }
160
+ if (this.view) {
161
+ params.view = this.view;
162
+ }
163
+ return params;
164
+ }
165
+ get el() { return index.getElement(this); }
166
+ static get watchers() { return {
167
+ "position": ["positionWatcher"],
168
+ "allowedWorkflows": ["allowedWorkflowsWatcher"],
169
+ "labelOptions": ["labelOptionsWatcher"],
170
+ "layerInfos": ["layerInfosWatcher"],
171
+ "snappingOptions": ["snappingOptionsWatcher"],
172
+ "supportingWidgetDefaults": ["supportingWidgetDefaultsWatcher"],
173
+ "tooltipOptions": ["tooltipOptionsWatcher"],
174
+ "referenceElement": ["referenceElementWatcher"],
175
+ "view": ["viewWatcher"]
176
+ }; }
177
+ };
178
+ ArcgisEditor.style = arcgisEditorCss;
179
+
180
+ exports.arcgis_editor = ArcgisEditor;