@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
@@ -1,330 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { R as newWidgetsSearch, i as importCoreReactiveUtils } from './index2.js';
3
- import { r as referenceElementHelper, c as checkForView, o as onDisconnectedHelper } from './disconnected.js';
4
- import { d as defineCustomElement$2 } from './arcgis-expand2.js';
5
-
6
- const arcgisSearchCss = "";
7
-
8
- const ArcgisSearch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
9
- constructor() {
10
- super();
11
- this.__registerHost();
12
- this.widgetReady = createEvent(this, "widgetReady", 7);
13
- this.searchBlur = createEvent(this, "searchBlur", 7);
14
- this.searchClear = createEvent(this, "searchClear", 7);
15
- this.searchComplete = createEvent(this, "searchComplete", 7);
16
- this.searchFocus = createEvent(this, "searchFocus", 7);
17
- this.searchStart = createEvent(this, "searchStart", 7);
18
- this.selectResult = createEvent(this, "selectResult", 7);
19
- this.suggestComplete = createEvent(this, "suggestComplete", 7);
20
- this.suggestStart = createEvent(this, "suggestStart", 7);
21
- this.referenceElement = undefined;
22
- this.activeMenu = undefined;
23
- this.activeSource = undefined;
24
- this.activeSourceIndex = undefined;
25
- this.allPlaceholder = undefined;
26
- this.allSources = undefined;
27
- this.autoSelect = undefined;
28
- this.defaultSources = undefined;
29
- this.includeDefaultSources = undefined;
30
- this.locationEnabled = undefined;
31
- this.maxResults = undefined;
32
- this.maxSuggestions = undefined;
33
- this.minSuggestCharacters = undefined;
34
- this.popupEnabled = undefined;
35
- this.popupTemplate = undefined;
36
- this.portal = undefined;
37
- this.resultGraphic = undefined;
38
- this.resultGraphicEnabled = undefined;
39
- this.results = undefined;
40
- this.searchAllEnabled = undefined;
41
- this.searchTerm = undefined;
42
- this.selectedResult = undefined;
43
- this.sources = undefined;
44
- this.suggestions = undefined;
45
- this.suggestionsEnabled = undefined;
46
- this.position = "top-right";
47
- this.expandable = false;
48
- this.view = undefined;
49
- this.widget = undefined;
50
- }
51
- //--------------------------------------------------------------------------
52
- //
53
- // Watchers
54
- //
55
- //--------------------------------------------------------------------------
56
- positionWatcher(newValue) {
57
- if (newValue !== undefined && this.widget) {
58
- if (typeof this.view !== "string") {
59
- this.view.ui.move(this.childElem, newValue);
60
- }
61
- }
62
- }
63
- activeMenuWatcher(newValue) {
64
- if (newValue !== undefined && this.widget) {
65
- this.widget.activeMenu = newValue;
66
- }
67
- }
68
- activeSourceIndexWatcher(newValue) {
69
- if (newValue !== undefined && this.widget) {
70
- this.widget.activeSourceIndex = newValue;
71
- }
72
- }
73
- allPlaceholderWatcher(newValue) {
74
- if (newValue !== undefined && this.widget) {
75
- this.widget.allPlaceholder = newValue;
76
- }
77
- }
78
- autoSelectWatcher(newValue) {
79
- if (newValue !== undefined && this.widget) {
80
- this.widget.autoSelect = newValue;
81
- }
82
- }
83
- includeDefaultSourcesWatcher(newValue) {
84
- if (newValue !== undefined && this.widget) {
85
- this.widget.includeDefaultSources = newValue;
86
- }
87
- }
88
- locationEnabledWatcher(newValue) {
89
- if (newValue !== undefined && this.widget) {
90
- this.widget.locationEnabled = newValue;
91
- }
92
- }
93
- maxResultsWatcher(newValue) {
94
- if (newValue !== undefined && this.widget) {
95
- this.widget.maxResults = newValue;
96
- }
97
- }
98
- maxSuggestionsWatcher(newValue) {
99
- if (newValue !== undefined && this.widget) {
100
- this.widget.maxSuggestions = newValue;
101
- }
102
- }
103
- minSuggestCharactersWatcher(newValue) {
104
- if (newValue !== undefined && this.widget) {
105
- this.widget.minSuggestCharacters = newValue;
106
- }
107
- }
108
- popupEnabledWatcher(newValue) {
109
- if (newValue !== undefined && this.widget) {
110
- this.widget.popupEnabled = newValue;
111
- }
112
- }
113
- popupTemplateWatcher(newValue) {
114
- if (newValue !== undefined && this.widget) {
115
- this.widget.popupTemplate = newValue;
116
- }
117
- }
118
- portalWatcher(newValue) {
119
- if (newValue !== undefined && this.widget) {
120
- this.widget.portal = newValue;
121
- }
122
- }
123
- resultGraphicEnabledWatcher(newValue) {
124
- if (newValue !== undefined && this.widget) {
125
- this.widget.resultGraphicEnabled = newValue;
126
- }
127
- }
128
- searchAllEnabledWatcher(newValue) {
129
- if (newValue !== undefined && this.widget) {
130
- this.widget.searchAllEnabled = newValue;
131
- }
132
- }
133
- searchTermWatcher(newValue) {
134
- if (newValue !== undefined && this.widget) {
135
- this.widget.searchTerm = newValue;
136
- }
137
- }
138
- sourcesWatcher(newValue) {
139
- if (newValue !== undefined && this.widget) {
140
- this.widget.sources = newValue;
141
- }
142
- }
143
- suggestionsEnabledWatcher(newValue) {
144
- if (newValue !== undefined && this.widget) {
145
- this.widget.suggestionsEnabled = newValue;
146
- }
147
- }
148
- referenceElementWatcher(newValue) {
149
- referenceElementHelper(this, newValue);
150
- }
151
- viewWatcher(newValue) {
152
- if (newValue !== undefined && this.widget) {
153
- this.widget.view = newValue;
154
- }
155
- }
156
- //--------------------------------------------------------------------------
157
- //
158
- // Methods
159
- //
160
- //--------------------------------------------------------------------------
161
- async blurSearch() {
162
- return this.widget?.blur();
163
- }
164
- async clearSearch() {
165
- return this.widget?.clear();
166
- }
167
- async focusSearch() {
168
- return this.widget?.focus();
169
- }
170
- async search(term) {
171
- return this.widget?.search(term);
172
- }
173
- async suggest(term) {
174
- return this.widget?.suggest(term);
175
- }
176
- //--------------------------------------------------------------------------
177
- //
178
- // Lifecycle
179
- //
180
- //--------------------------------------------------------------------------
181
- async componentDidLoad() {
182
- const params = this._createParams();
183
- const widget = await newWidgetsSearch(params);
184
- this.widget = widget;
185
- await this._addWatchers();
186
- this._proxyEvents();
187
- this.widgetReady.emit(true);
188
- checkForView(this);
189
- }
190
- disconnectedCallback() {
191
- onDisconnectedHelper(this);
192
- }
193
- render() {
194
- if (this.expandable) {
195
- return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
196
- }
197
- return h("div", { ref: (el) => (this.childElem = el) });
198
- }
199
- //--------------------------------------------------------------------------
200
- //
201
- // Private Interal Methods
202
- //
203
- //--------------------------------------------------------------------------
204
- async _addWatchers() {
205
- const { watch } = await importCoreReactiveUtils();
206
- watch(() => this.widget.activeSource, (value) => (this.activeSource = value), {
207
- initial: true
208
- });
209
- watch(() => this.widget.activeSourceIndex, (value) => (this.activeSourceIndex = value), {
210
- initial: true
211
- });
212
- watch(() => this.widget.allSources, (value) => (this.allSources = value), {
213
- initial: true
214
- });
215
- watch(() => this.widget.defaultSources, (value) => (this.defaultSources = value), {
216
- initial: true
217
- });
218
- watch(() => this.widget.resultGraphic, (value) => (this.resultGraphic = value), {
219
- initial: true
220
- });
221
- watch(() => this.widget.results, (value) => (this.results = value), {
222
- initial: true
223
- });
224
- watch(() => this.widget.selectedResult, (value) => (this.selectedResult = value), {
225
- initial: true
226
- });
227
- }
228
- _createParams() {
229
- const params = {
230
- container: this.childElem
231
- };
232
- if (this.view) {
233
- params.view = this.view;
234
- }
235
- return params;
236
- }
237
- _proxyEvents() {
238
- this.widget.on("search-blur", (e) => this.searchBlur.emit(e));
239
- this.widget.on("search-clear", (e) => this.searchClear.emit(e));
240
- this.widget.on("search-complete", (e) => this.searchComplete.emit(e));
241
- this.widget.on("search-focus", (e) => this.searchFocus.emit(e));
242
- this.widget.on("search-start", (e) => this.searchStart.emit(e));
243
- this.widget.on("select-result", (e) => this.selectResult.emit(e));
244
- this.widget.on("suggest-complete", (e) => this.suggestComplete.emit(e));
245
- this.widget.on("suggest-start", (e) => this.suggestStart.emit(e));
246
- }
247
- get el() { return this; }
248
- static get watchers() { return {
249
- "position": ["positionWatcher"],
250
- "activeMenu": ["activeMenuWatcher"],
251
- "activeSourceIndex": ["activeSourceIndexWatcher"],
252
- "allPlaceholder": ["allPlaceholderWatcher"],
253
- "autoSelect": ["autoSelectWatcher"],
254
- "includeDefaultSources": ["includeDefaultSourcesWatcher"],
255
- "locationEnabled": ["locationEnabledWatcher"],
256
- "maxResults": ["maxResultsWatcher"],
257
- "maxSuggestions": ["maxSuggestionsWatcher"],
258
- "minSuggestCharacters": ["minSuggestCharactersWatcher"],
259
- "popupEnabled": ["popupEnabledWatcher"],
260
- "popupTemplate": ["popupTemplateWatcher"],
261
- "portal": ["portalWatcher"],
262
- "resultGraphicEnabled": ["resultGraphicEnabledWatcher"],
263
- "searchAllEnabled": ["searchAllEnabledWatcher"],
264
- "searchTerm": ["searchTermWatcher"],
265
- "sources": ["sourcesWatcher"],
266
- "suggestionsEnabled": ["suggestionsEnabledWatcher"],
267
- "referenceElement": ["referenceElementWatcher"],
268
- "view": ["viewWatcher"]
269
- }; }
270
- static get style() { return arcgisSearchCss; }
271
- }, [0, "arcgis-search", {
272
- "referenceElement": [1, "reference-element"],
273
- "activeMenu": [1, "active-menu"],
274
- "activeSource": [1040],
275
- "activeSourceIndex": [1026, "active-source-index"],
276
- "allPlaceholder": [1, "all-placeholder"],
277
- "allSources": [1040],
278
- "autoSelect": [4, "auto-select"],
279
- "defaultSources": [1040],
280
- "includeDefaultSources": [4, "include-default-sources"],
281
- "locationEnabled": [4, "location-enabled"],
282
- "maxResults": [2, "max-results"],
283
- "maxSuggestions": [2, "max-suggestions"],
284
- "minSuggestCharacters": [2, "min-suggest-characters"],
285
- "popupEnabled": [4, "popup-enabled"],
286
- "popupTemplate": [16],
287
- "portal": [16],
288
- "resultGraphic": [1040],
289
- "resultGraphicEnabled": [4, "result-graphic-enabled"],
290
- "results": [1040],
291
- "searchAllEnabled": [4, "search-all-enabled"],
292
- "searchTerm": [1, "search-term"],
293
- "selectedResult": [1040],
294
- "sources": [16],
295
- "suggestions": [16],
296
- "suggestionsEnabled": [4, "suggestions-enabled"],
297
- "position": [1],
298
- "expandable": [4],
299
- "view": [16],
300
- "widget": [1040],
301
- "blurSearch": [64],
302
- "clearSearch": [64],
303
- "focusSearch": [64],
304
- "search": [64],
305
- "suggest": [64]
306
- }]);
307
- function defineCustomElement$1() {
308
- if (typeof customElements === "undefined") {
309
- return;
310
- }
311
- const components = ["arcgis-search", "arcgis-expand"];
312
- components.forEach(tagName => { switch (tagName) {
313
- case "arcgis-search":
314
- if (!customElements.get(tagName)) {
315
- customElements.define(tagName, ArcgisSearch$1);
316
- }
317
- break;
318
- case "arcgis-expand":
319
- if (!customElements.get(tagName)) {
320
- defineCustomElement$2();
321
- }
322
- break;
323
- } });
324
- }
325
- defineCustomElement$1();
326
-
327
- const ArcgisSearch = ArcgisSearch$1;
328
- const defineCustomElement = defineCustomElement$1;
329
-
330
- export { ArcgisSearch, defineCustomElement };
@@ -1,121 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { S as newWidgetsShadowCast } from './index2.js';
3
- import { r as referenceElementHelper, c as checkForView, o as onDisconnectedHelper } from './disconnected.js';
4
- import { d as defineCustomElement$2 } from './arcgis-expand2.js';
5
-
6
- const arcgisShadowCastCss = "arcgis-shadow-cast{}";
7
-
8
- const ArcgisShadowCast$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
9
- constructor() {
10
- super();
11
- this.__registerHost();
12
- this.widgetReady = createEvent(this, "widgetReady", 7);
13
- this.referenceElement = undefined;
14
- this.view = undefined;
15
- this.position = "bottom-left";
16
- this.expandable = false;
17
- this.widget = undefined;
18
- this.headingLevel = undefined;
19
- }
20
- //--------------------------------------------------------------------------
21
- //
22
- // Watchers
23
- //
24
- //--------------------------------------------------------------------------
25
- positionWatcher(newValue) {
26
- if (newValue !== undefined && this.widget) {
27
- if (typeof this.view !== "string") {
28
- this.view.ui.move(this.childElem, newValue);
29
- }
30
- }
31
- }
32
- headingLevelWatcher(newValue) {
33
- if (newValue !== undefined && this.widget) {
34
- if (this.widget.headingLevel !== newValue) {
35
- this.widget.headingLevel = newValue;
36
- }
37
- }
38
- }
39
- referenceElementWatcher(newValue) {
40
- referenceElementHelper(this, newValue);
41
- }
42
- viewWatcher(newValue) {
43
- if (newValue !== undefined && this.widget) {
44
- this.widget.view = newValue;
45
- }
46
- }
47
- //--------------------------------------------------------------------------
48
- //
49
- // Lifecycle
50
- //
51
- //--------------------------------------------------------------------------
52
- async componentDidLoad() {
53
- const params = this._createParams();
54
- const widget = await newWidgetsShadowCast(params);
55
- this.widget = widget;
56
- this.widgetReady.emit(true);
57
- checkForView(this);
58
- }
59
- disconnectedCallback() {
60
- onDisconnectedHelper(this);
61
- }
62
- render() {
63
- if (this.expandable) {
64
- return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
65
- }
66
- return h("div", { ref: (el) => (this.childElem = el) });
67
- }
68
- //--------------------------------------------------------------------------
69
- //
70
- // Private Methods
71
- //
72
- //--------------------------------------------------------------------------
73
- _createParams() {
74
- const params = {
75
- container: this.childElem
76
- };
77
- if (this.view) {
78
- params.view = this.view;
79
- }
80
- return params;
81
- }
82
- get el() { return this; }
83
- static get watchers() { return {
84
- "position": ["positionWatcher"],
85
- "headingLevel": ["headingLevelWatcher"],
86
- "referenceElement": ["referenceElementWatcher"],
87
- "view": ["viewWatcher"]
88
- }; }
89
- static get style() { return arcgisShadowCastCss; }
90
- }, [0, "arcgis-shadow-cast", {
91
- "referenceElement": [1, "reference-element"],
92
- "view": [16],
93
- "position": [1],
94
- "expandable": [4],
95
- "widget": [1040],
96
- "headingLevel": [2, "heading-level"]
97
- }]);
98
- function defineCustomElement$1() {
99
- if (typeof customElements === "undefined") {
100
- return;
101
- }
102
- const components = ["arcgis-shadow-cast", "arcgis-expand"];
103
- components.forEach(tagName => { switch (tagName) {
104
- case "arcgis-shadow-cast":
105
- if (!customElements.get(tagName)) {
106
- customElements.define(tagName, ArcgisShadowCast$1);
107
- }
108
- break;
109
- case "arcgis-expand":
110
- if (!customElements.get(tagName)) {
111
- defineCustomElement$2();
112
- }
113
- break;
114
- } });
115
- }
116
- defineCustomElement$1();
117
-
118
- const ArcgisShadowCast = ArcgisShadowCast$1;
119
- const defineCustomElement = defineCustomElement$1;
120
-
121
- export { ArcgisShadowCast, defineCustomElement };
@@ -1,238 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { T as newWidgetsSketch, i as importCoreReactiveUtils, U as newLayersGraphicsLayer } from './index2.js';
3
- import { r as referenceElementHelper, c as checkForView, o as onDisconnectedHelper } from './disconnected.js';
4
- import { d as defineCustomElement$2 } from './arcgis-expand2.js';
5
-
6
- const arcgisSketchCss = "arcgis-sketch{}";
7
-
8
- const ArcgisSketch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
9
- constructor() {
10
- super();
11
- this.__registerHost();
12
- this.sketchCreate = createEvent(this, "sketchCreate", 7);
13
- this.sketchDelete = createEvent(this, "sketchDelete", 7);
14
- this.sketchRedo = createEvent(this, "sketchRedo", 7);
15
- this.sketchUndo = createEvent(this, "sketchUndo", 7);
16
- this.sketchUpdate = createEvent(this, "sketchUpdate", 7);
17
- this.widgetReady = createEvent(this, "widgetReady", 7);
18
- this.referenceElement = undefined;
19
- this.activeTool = undefined;
20
- this.availableCreateTools = undefined;
21
- this.createGraphic = undefined;
22
- this.creationMode = undefined;
23
- this.defaultCreateOptions = undefined;
24
- this.defaultUpdateOptions = undefined;
25
- this.labelOptions = undefined;
26
- this.layer = undefined;
27
- this.layout = undefined;
28
- this.snappingOptions = undefined;
29
- this.tooltipOptions = undefined;
30
- this.updateGraphics = undefined;
31
- this.view = undefined;
32
- this.position = "bottom-left";
33
- this.expandable = false;
34
- this.widget = undefined;
35
- }
36
- //--------------------------------------------------------------------------
37
- //
38
- // Watchers
39
- //
40
- //--------------------------------------------------------------------------
41
- availableCreateToolsWatcher(newValue) {
42
- if (newValue !== undefined && this.widget) {
43
- this.widget.availableCreateTools = newValue;
44
- }
45
- }
46
- creationModeWatcher(newValue) {
47
- if (newValue !== undefined && this.widget) {
48
- this.widget.creationMode = newValue;
49
- }
50
- }
51
- defaultCreateOptionsWatcher(newValue) {
52
- if (newValue !== undefined && this.widget) {
53
- this.widget.defaultCreateOptions = newValue;
54
- }
55
- }
56
- defaultUpdateOptionsWatcher(newValue) {
57
- if (newValue !== undefined && this.widget) {
58
- this.widget.defaultUpdateOptions = newValue;
59
- }
60
- }
61
- labelOptionsWatcher(newValue) {
62
- if (newValue !== undefined && this.widget) {
63
- this.widget.labelOptions = newValue;
64
- }
65
- }
66
- layerWatcher(newValue) {
67
- if (newValue !== undefined && this.widget) {
68
- this.widget.layer = newValue;
69
- }
70
- }
71
- layoutWatcher(newValue) {
72
- if (newValue !== undefined && this.widget) {
73
- this.widget.layout = newValue;
74
- }
75
- }
76
- snappingOptionsWatcher(newValue) {
77
- if (newValue !== undefined && this.widget) {
78
- this.widget.snappingOptions = newValue;
79
- }
80
- }
81
- tooltipOptionsWatcher(newValue) {
82
- if (newValue !== undefined && this.widget) {
83
- this.widget.tooltipOptions = newValue;
84
- }
85
- }
86
- positionWatcher(newValue) {
87
- if (newValue !== undefined && this.widget) {
88
- if (typeof this.view !== "string") {
89
- this.view.ui.move(this.childElem, newValue);
90
- }
91
- }
92
- }
93
- referenceElementWatcher(newValue) {
94
- referenceElementHelper(this, newValue);
95
- }
96
- viewWatcher(newValue) {
97
- if (newValue !== undefined && this.widget) {
98
- this.widget.view = newValue;
99
- this.widget.view.map?.add(this.layer);
100
- }
101
- }
102
- //--------------------------------------------------------------------------
103
- //
104
- // Lifecycle
105
- //
106
- //--------------------------------------------------------------------------
107
- async componentDidLoad() {
108
- const params = await this._createParams();
109
- const widget = await newWidgetsSketch(params);
110
- this.widget = widget;
111
- await this._addWatchers();
112
- this.widgetReady.emit(true);
113
- checkForView(this);
114
- }
115
- disconnectedCallback() {
116
- onDisconnectedHelper(this);
117
- }
118
- render() {
119
- if (this.expandable) {
120
- return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
121
- }
122
- return h("div", { ref: (el) => (this.childElem = el) });
123
- }
124
- //--------------------------------------------------------------------------
125
- //
126
- // Private Methods
127
- //
128
- //--------------------------------------------------------------------------
129
- async _addWatchers() {
130
- const { watch } = await importCoreReactiveUtils();
131
- watch(() => this.widget.activeTool, (value) => (this.activeTool = value), {
132
- initial: true
133
- });
134
- watch(() => this.widget.createGraphic, (value) => (this.createGraphic = value), {
135
- initial: true
136
- });
137
- watch(() => this.widget.updateGraphics, (value) => (this.updateGraphics = value), {
138
- initial: true
139
- });
140
- }
141
- async _createParams() {
142
- const graphicsLayerProps = {
143
- title: "Sketch Layer",
144
- creationMode: "update"
145
- };
146
- this.layer = await newLayersGraphicsLayer(graphicsLayerProps);
147
- const params = {
148
- container: this.childElem,
149
- layer: this.layer
150
- };
151
- if (this.view) {
152
- params.view = this.view;
153
- }
154
- if (this.availableCreateTools) {
155
- params.availableCreateTools = this.availableCreateTools;
156
- }
157
- if (this.creationMode) {
158
- params.creationMode = this.creationMode;
159
- }
160
- if (this.defaultCreateOptions) {
161
- params.defaultCreateOptions = this.defaultCreateOptions;
162
- }
163
- if (this.defaultUpdateOptions) {
164
- params.defaultUpdateOptions = this.defaultUpdateOptions;
165
- }
166
- if (this.labelOptions) {
167
- params.labelOptions = this.labelOptions;
168
- }
169
- if (this.layout) {
170
- params.layout = this.layout;
171
- }
172
- if (this.snappingOptions) {
173
- params.snappingOptions = this.snappingOptions;
174
- }
175
- if (this.tooltipOptions) {
176
- params.tooltipOptions = this.tooltipOptions;
177
- }
178
- return params;
179
- }
180
- get el() { return this; }
181
- static get watchers() { return {
182
- "availableCreateTools": ["availableCreateToolsWatcher"],
183
- "creationMode": ["creationModeWatcher"],
184
- "defaultCreateOptions": ["defaultCreateOptionsWatcher"],
185
- "defaultUpdateOptions": ["defaultUpdateOptionsWatcher"],
186
- "labelOptions": ["labelOptionsWatcher"],
187
- "layer": ["layerWatcher"],
188
- "layout": ["layoutWatcher"],
189
- "snappingOptions": ["snappingOptionsWatcher"],
190
- "tooltipOptions": ["tooltipOptionsWatcher"],
191
- "position": ["positionWatcher"],
192
- "referenceElement": ["referenceElementWatcher"],
193
- "view": ["viewWatcher"]
194
- }; }
195
- static get style() { return arcgisSketchCss; }
196
- }, [0, "arcgis-sketch", {
197
- "referenceElement": [1, "reference-element"],
198
- "activeTool": [1537, "active-tool"],
199
- "availableCreateTools": [16],
200
- "createGraphic": [1040],
201
- "creationMode": [1, "creation-mode"],
202
- "defaultCreateOptions": [16],
203
- "defaultUpdateOptions": [16],
204
- "labelOptions": [16],
205
- "layer": [1040],
206
- "layout": [1],
207
- "snappingOptions": [16],
208
- "tooltipOptions": [16],
209
- "updateGraphics": [1040],
210
- "view": [16],
211
- "position": [1],
212
- "expandable": [4],
213
- "widget": [1040]
214
- }]);
215
- function defineCustomElement$1() {
216
- if (typeof customElements === "undefined") {
217
- return;
218
- }
219
- const components = ["arcgis-sketch", "arcgis-expand"];
220
- components.forEach(tagName => { switch (tagName) {
221
- case "arcgis-sketch":
222
- if (!customElements.get(tagName)) {
223
- customElements.define(tagName, ArcgisSketch$1);
224
- }
225
- break;
226
- case "arcgis-expand":
227
- if (!customElements.get(tagName)) {
228
- defineCustomElement$2();
229
- }
230
- break;
231
- } });
232
- }
233
- defineCustomElement$1();
234
-
235
- const ArcgisSketch = ArcgisSketch$1;
236
- const defineCustomElement = defineCustomElement$1;
237
-
238
- export { ArcgisSketch, defineCustomElement };