@esri/solutions-components 0.7.24 → 0.7.25

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 (85) hide show
  1. package/dist/cjs/{info-card_4.cjs.entry.js → basemap-gallery_7.cjs.entry.js} +410 -324
  2. package/dist/cjs/buffer-tools_3.cjs.entry.js +3 -4
  3. package/dist/cjs/{calcite-alert_3.cjs.entry.js → calcite-alert_4.cjs.entry.js} +296 -3
  4. package/dist/cjs/calcite-combobox_6.cjs.entry.js +1 -2
  5. package/dist/cjs/calcite-flow_4.cjs.entry.js +3 -4
  6. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +1 -2
  7. package/dist/cjs/{card-manager_2.cjs.entry.js → card-manager_3.cjs.entry.js} +182 -5
  8. package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -2
  9. package/dist/cjs/crowdsource-reporter.cjs.entry.js +32 -90
  10. package/dist/cjs/{downloadUtils-401356b5.js → downloadUtils-83c6d3c3.js} +6 -6
  11. package/dist/cjs/{index.es-a9a4ff08.js → index.es-bd1a93b2.js} +2 -2
  12. package/dist/cjs/layout-manager.cjs.entry.js +1 -2
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/cjs/{locale-1ff119f5.js → locale-a476e15d.js} +24 -3
  15. package/dist/cjs/map-select-tools_3.cjs.entry.js +4 -5
  16. package/dist/cjs/{popupUtils-8d5b6e94.js → popupUtils-a73902a6.js} +2 -2
  17. package/dist/cjs/public-notification.cjs.entry.js +3 -4
  18. package/dist/cjs/solution-configuration.cjs.entry.js +1 -2
  19. package/dist/cjs/solution-contents_3.cjs.entry.js +1 -2
  20. package/dist/cjs/solutions-components.cjs.js +1 -1
  21. package/dist/cjs/spatial-ref.cjs.entry.js +1 -2
  22. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.css +5 -27
  23. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +69 -95
  24. package/dist/collection/demos/crowdsource-reporter.html +96 -45
  25. package/dist/components/crowdsource-reporter.js +95 -209
  26. package/dist/esm/{info-card_4.entry.js → basemap-gallery_7.entry.js} +406 -323
  27. package/dist/esm/buffer-tools_3.entry.js +1 -2
  28. package/dist/esm/{calcite-alert_3.entry.js → calcite-alert_4.entry.js} +295 -3
  29. package/dist/esm/calcite-combobox_6.entry.js +1 -2
  30. package/dist/esm/calcite-flow_4.entry.js +3 -4
  31. package/dist/esm/calcite-shell-panel_14.entry.js +1 -2
  32. package/dist/esm/{card-manager_2.entry.js → card-manager_3.entry.js} +181 -5
  33. package/dist/esm/crowdsource-manager.entry.js +1 -2
  34. package/dist/esm/crowdsource-reporter.entry.js +32 -90
  35. package/dist/esm/{downloadUtils-067dc2ff.js → downloadUtils-a301c193.js} +2 -2
  36. package/dist/esm/{index.es-92e46d8b.js → index.es-37a9907e.js} +2 -2
  37. package/dist/esm/layout-manager.entry.js +1 -2
  38. package/dist/esm/loader.js +1 -1
  39. package/dist/esm/{locale-13e3c96c.js → locale-731e75a8.js} +22 -2
  40. package/dist/esm/map-select-tools_3.entry.js +2 -3
  41. package/dist/esm/{popupUtils-b71f30fc.js → popupUtils-a593bd78.js} +1 -1
  42. package/dist/esm/public-notification.entry.js +2 -3
  43. package/dist/esm/solution-configuration.entry.js +1 -2
  44. package/dist/esm/solution-contents_3.entry.js +1 -2
  45. package/dist/esm/solutions-components.js +1 -1
  46. package/dist/esm/spatial-ref.entry.js +1 -2
  47. package/dist/solutions-components/demos/crowdsource-reporter.html +96 -45
  48. package/dist/solutions-components/{p-36cbf14f.js → p-0587972d.js} +1 -1
  49. package/dist/solutions-components/p-0b4f4b0e.entry.js +6 -0
  50. package/dist/solutions-components/{p-f54f3719.entry.js → p-0b619197.entry.js} +1 -1
  51. package/dist/solutions-components/{p-d50f34c4.entry.js → p-2656c6e4.entry.js} +1 -1
  52. package/dist/solutions-components/p-284cc5cd.entry.js +6 -0
  53. package/dist/solutions-components/{p-01032eec.entry.js → p-29f661f5.entry.js} +2 -2
  54. package/dist/solutions-components/p-5af99fd8.entry.js +6 -0
  55. package/dist/solutions-components/{p-d9061e5d.entry.js → p-7116f96d.entry.js} +1 -1
  56. package/dist/solutions-components/p-7c13406e.entry.js +6 -0
  57. package/dist/solutions-components/{p-685257d1.entry.js → p-7dbccc10.entry.js} +1 -1
  58. package/dist/solutions-components/p-8308f64c.entry.js +6 -0
  59. package/dist/solutions-components/{p-ca4023f4.entry.js → p-891682da.entry.js} +1 -1
  60. package/dist/solutions-components/{p-14ff1465.js → p-a603e673.js} +2 -2
  61. package/dist/solutions-components/p-b37ec1f3.entry.js +6 -0
  62. package/dist/solutions-components/{p-fec77450.js → p-db868283.js} +1 -1
  63. package/dist/solutions-components/{p-fb1c6811.entry.js → p-dded59a7.entry.js} +1 -1
  64. package/dist/solutions-components/p-e88a64be.entry.js +6 -0
  65. package/dist/solutions-components/p-e902ba19.js +36 -0
  66. package/dist/solutions-components/p-fe295e9d.entry.js +6 -0
  67. package/dist/solutions-components/solutions-components.esm.js +1 -1
  68. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +14 -28
  69. package/dist/types/components.d.ts +16 -0
  70. package/package.json +1 -1
  71. package/dist/cjs/basemap-gallery_5.cjs.entry.js +0 -573
  72. package/dist/cjs/loadModules-46d14e81.js +0 -30
  73. package/dist/esm/basemap-gallery_5.entry.js +0 -565
  74. package/dist/esm/loadModules-cea493da.js +0 -28
  75. package/dist/solutions-components/p-3606c4b8.entry.js +0 -6
  76. package/dist/solutions-components/p-48ff9cea.js +0 -21
  77. package/dist/solutions-components/p-5e832d65.entry.js +0 -6
  78. package/dist/solutions-components/p-8fc072ca.entry.js +0 -6
  79. package/dist/solutions-components/p-a2d3df14.entry.js +0 -6
  80. package/dist/solutions-components/p-ab006ace.js +0 -21
  81. package/dist/solutions-components/p-ba56035f.entry.js +0 -6
  82. package/dist/solutions-components/p-c0ed2b83.entry.js +0 -6
  83. package/dist/solutions-components/p-cc88bb42.entry.js +0 -6
  84. package/dist/solutions-components/p-db69f4ba.entry.js +0 -6
  85. package/dist/solutions-components/p-e3061220.entry.js +0 -6
@@ -1,573 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- 'use strict';
7
-
8
- Object.defineProperty(exports, '__esModule', { value: true });
9
-
10
- const index = require('./index-b8a649fc.js');
11
- const loadModules = require('./loadModules-46d14e81.js');
12
- require('./esri-loader-a91c0ec1.js');
13
- require('./_commonjsHelpers-384729db.js');
14
-
15
- const basemapGalleryCss = ":host{display:block}";
16
-
17
- const BasemapGallery = class {
18
- constructor(hostRef) {
19
- index.registerInstance(this, hostRef);
20
- this.mapView = undefined;
21
- this.basemapConfig = undefined;
22
- this.basemapWidget = undefined;
23
- }
24
- //--------------------------------------------------------------------------
25
- //
26
- // Watch handlers
27
- //
28
- //--------------------------------------------------------------------------
29
- async mapViewWatchHandler() {
30
- await this.mapView.when(() => {
31
- void this._initBaseMapGallery(this.mapView);
32
- });
33
- }
34
- //--------------------------------------------------------------------------
35
- //
36
- // Methods (public)
37
- //
38
- //--------------------------------------------------------------------------
39
- //--------------------------------------------------------------------------
40
- //
41
- // Events (public)
42
- //
43
- //--------------------------------------------------------------------------
44
- //--------------------------------------------------------------------------
45
- //
46
- // Functions (lifecycle)
47
- //
48
- //--------------------------------------------------------------------------
49
- /**
50
- * StencilJS: Called once just after the component is first connected to the DOM.
51
- */
52
- async componentWillLoad() {
53
- return this._initModules();
54
- }
55
- /**
56
- * StencilJS: Renders the component.
57
- */
58
- render() {
59
- return (index.h(index.Host, null, index.h("div", { ref: (el) => { this._basemapElement = el; } })));
60
- }
61
- /**
62
- * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
63
- */
64
- async componentDidLoad() {
65
- if (this.mapView) {
66
- await this.mapViewWatchHandler();
67
- }
68
- }
69
- //--------------------------------------------------------------------------
70
- //
71
- // Functions (protected)
72
- //
73
- //--------------------------------------------------------------------------
74
- /**
75
- * Load esri javascript api modules
76
- *
77
- * @returns Promise resolving when function is done
78
- *
79
- * @protected
80
- */
81
- async _initModules() {
82
- const [BasemapGallery, PortalBasemapsSource] = await loadModules.loadModules([
83
- "esri/widgets/BasemapGallery",
84
- "esri/widgets/BasemapGallery/support/PortalBasemapsSource"
85
- ]);
86
- this.BasemapGallery = BasemapGallery;
87
- this.PortalBasemapsSource = PortalBasemapsSource;
88
- }
89
- /**
90
- * Initialize the basemap gallery or reset the current view if it already exists
91
- *
92
- * @protected
93
- */
94
- async _initBaseMapGallery(view) {
95
- var _a;
96
- if (this.BasemapGallery) {
97
- if (this.basemapWidget) {
98
- this.basemapWidget.destroy();
99
- }
100
- const source = new this.PortalBasemapsSource({
101
- query: ((_a = this.basemapConfig) === null || _a === void 0 ? void 0 : _a.basemapGroupId) ? `id:${this.basemapConfig.basemapGroupId}` : null,
102
- filterFunction: this.basemapConfig ? (basemap) => {
103
- return !this.basemapConfig.basemapIdsToFilter.includes(basemap.portalItem.id);
104
- } : () => true
105
- });
106
- await source.refresh();
107
- this.basemapWidget = new this.BasemapGallery({
108
- container: this._basemapElement,
109
- view,
110
- source
111
- });
112
- }
113
- }
114
- get el() { return index.getElement(this); }
115
- static get watchers() { return {
116
- "mapView": ["mapViewWatchHandler"]
117
- }; }
118
- };
119
- BasemapGallery.style = basemapGalleryCss;
120
-
121
- const floorFilterCss = ":host{display:block}";
122
-
123
- const FloorFilter = class {
124
- constructor(hostRef) {
125
- index.registerInstance(this, hostRef);
126
- this.levelChanged = index.createEvent(this, "levelChanged", 7);
127
- this.enabled = undefined;
128
- this.floorFilterWidget = undefined;
129
- this.mapView = undefined;
130
- }
131
- //--------------------------------------------------------------------------
132
- //
133
- // Watch handlers
134
- //
135
- //--------------------------------------------------------------------------
136
- async mapViewWatchHandler() {
137
- await this.mapView.when(() => {
138
- this._initFloorFilter(this.mapView);
139
- });
140
- }
141
- //--------------------------------------------------------------------------
142
- //
143
- // Functions (lifecycle)
144
- //
145
- //--------------------------------------------------------------------------
146
- /**
147
- * StencilJS: Called once just after the component is first connected to the DOM.
148
- */
149
- async componentWillLoad() {
150
- return this._initModules();
151
- }
152
- render() {
153
- return (index.h(index.Host, null, index.h("div", { ref: (el) => { this._floorFilterElement = el; } })));
154
- }
155
- //--------------------------------------------------------------------------
156
- //
157
- // Functions (protected)
158
- //
159
- //--------------------------------------------------------------------------
160
- /**
161
- * Load esri javascript api modules
162
- *
163
- * @returns Promise resolving when function is done
164
- *
165
- * @protected
166
- */
167
- async _initModules() {
168
- const [FloorFilter, reactiveUtils] = await loadModules.loadModules([
169
- "esri/widgets/FloorFilter",
170
- "esri/core/reactiveUtils"
171
- ]);
172
- this.FloorFilter = FloorFilter;
173
- this.reactiveUtils = reactiveUtils;
174
- }
175
- /**
176
- * Initialize the floor filter or reset the current view if it already exists
177
- */
178
- _initFloorFilter(view) {
179
- var _a;
180
- if (view && this.enabled && this.FloorFilter && ((_a = view === null || view === void 0 ? void 0 : view.map) === null || _a === void 0 ? void 0 : _a.floorInfo)) {
181
- if (!this.floorFilterWidget) {
182
- this.floorFilterWidget = new this.FloorFilter({
183
- container: this._floorFilterElement,
184
- view
185
- });
186
- if (this._levelHandle) {
187
- this._levelHandle.remove();
188
- }
189
- this._levelHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.level, (level) => {
190
- this.levelChanged.emit(level);
191
- });
192
- }
193
- else {
194
- this.floorFilterWidget.view = view;
195
- }
196
- }
197
- }
198
- get el() { return index.getElement(this); }
199
- static get watchers() { return {
200
- "mapView": ["mapViewWatchHandler"]
201
- }; }
202
- };
203
- FloorFilter.style = floorFilterCss;
204
-
205
- const mapFullscreenCss = ":host{display:block}";
206
-
207
- const MapFullscreen = class {
208
- constructor(hostRef) {
209
- index.registerInstance(this, hostRef);
210
- this.fullscreenStateChange = index.createEvent(this, "fullscreenStateChange", 7);
211
- this.mapView = undefined;
212
- this.fullscreenWidget = undefined;
213
- }
214
- //--------------------------------------------------------------------------
215
- //
216
- // Watch handlers
217
- //
218
- //--------------------------------------------------------------------------
219
- /**
220
- * Called each time the mapView prop is changed.
221
- *
222
- * @returns Promise when complete
223
- */
224
- async mapViewWatchHandler() {
225
- await this.mapView.when(async () => {
226
- await this._initFullscreenWidget();
227
- });
228
- }
229
- //--------------------------------------------------------------------------
230
- //
231
- // Functions (lifecycle)
232
- //
233
- //--------------------------------------------------------------------------
234
- /**
235
- * StencilJS: Called once just after the component is first connected to the DOM.
236
- */
237
- async componentWillLoad() {
238
- await this._initModules();
239
- }
240
- /**
241
- * Renders the component.
242
- */
243
- render() {
244
- return (index.h(index.Host, null, index.h("div", { class: "fullscreen-widget", ref: (el) => { this._fullscreenElement = el; } })));
245
- }
246
- /**
247
- * StencilJS: Called just after the component updates.
248
- * It's never called during the first render().
249
- */
250
- async componentDidUpdate() {
251
- await this._initFullscreenWidget();
252
- }
253
- /**
254
- * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
255
- */
256
- async componentDidLoad() {
257
- await this._initFullscreenWidget();
258
- }
259
- //--------------------------------------------------------------------------
260
- //
261
- // Functions (protected)
262
- //
263
- //--------------------------------------------------------------------------
264
- /**
265
- * Load esri javascript api modules
266
- *
267
- * @returns Promise resolving when function is done
268
- *
269
- * @protected
270
- */
271
- async _initModules() {
272
- const [Fullscreen, reactiveUtils] = await loadModules.loadModules([
273
- "esri/widgets/Fullscreen",
274
- "esri/core/reactiveUtils"
275
- ]);
276
- this.Fullscreen = Fullscreen;
277
- this.reactiveUtils = reactiveUtils;
278
- }
279
- /**
280
- * Initialize the search widget
281
- *
282
- * @protected
283
- */
284
- async _initFullscreenWidget() {
285
- if (this.mapView && this._fullscreenElement && !this.fullscreenWidget) {
286
- this.fullscreenWidget = new this.Fullscreen({
287
- view: this.mapView
288
- });
289
- await this.fullscreenWidget.when(() => {
290
- if (this._fullscreenStateChangeHandle) {
291
- this._fullscreenStateChangeHandle.remove();
292
- }
293
- this._fullscreenStateChangeHandle = this.reactiveUtils.watch(() => this.fullscreenWidget.viewModel.state, (state) => this.fullscreenStateChange.emit(state));
294
- });
295
- }
296
- else if (this.fullscreenWidget) {
297
- this.fullscreenWidget.view = this.mapView;
298
- }
299
- }
300
- static get watchers() { return {
301
- "mapView": ["mapViewWatchHandler"]
302
- }; }
303
- };
304
- MapFullscreen.style = mapFullscreenCss;
305
-
306
- const mapLegendCss = ":host{display:block}";
307
-
308
- const MapLegend = class {
309
- constructor(hostRef) {
310
- index.registerInstance(this, hostRef);
311
- this.mapView = undefined;
312
- this.legendWidget = undefined;
313
- }
314
- //--------------------------------------------------------------------------
315
- //
316
- // Watch handlers
317
- //
318
- //--------------------------------------------------------------------------
319
- async mapViewWatchHandler() {
320
- await this.mapView.when(() => {
321
- this._initLegend(this.mapView);
322
- });
323
- }
324
- //--------------------------------------------------------------------------
325
- //
326
- // Methods (public)
327
- //
328
- //--------------------------------------------------------------------------
329
- //--------------------------------------------------------------------------
330
- //
331
- // Events (public)
332
- //
333
- //--------------------------------------------------------------------------
334
- //--------------------------------------------------------------------------
335
- //
336
- // Functions (lifecycle)
337
- //
338
- //--------------------------------------------------------------------------
339
- /**
340
- * StencilJS: Called once just after the component is first connected to the DOM.
341
- */
342
- async componentWillLoad() {
343
- return this._initModules();
344
- }
345
- /**
346
- * StencilJS: Renders the component.
347
- */
348
- render() {
349
- return (index.h(index.Host, null, index.h("div", { ref: (el) => { this._legendElement = el; } })));
350
- }
351
- /**
352
- * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
353
- */
354
- async componentDidLoad() {
355
- if (this.mapView) {
356
- await this.mapViewWatchHandler();
357
- }
358
- }
359
- //--------------------------------------------------------------------------
360
- //
361
- // Functions (protected)
362
- //
363
- //--------------------------------------------------------------------------
364
- /**
365
- * Load esri javascript api modules
366
- *
367
- * @returns Promise resolving when function is done
368
- *
369
- * @protected
370
- */
371
- async _initModules() {
372
- const [Legend] = await loadModules.loadModules([
373
- "esri/widgets/Legend"
374
- ]);
375
- this.Legend = Legend;
376
- }
377
- /**
378
- * Initialize the basemap gallery or reset the current view if it already exists
379
- */
380
- _initLegend(view) {
381
- if (view && this.Legend) {
382
- if (!this.legendWidget) {
383
- this.legendWidget = new this.Legend({
384
- container: this._legendElement,
385
- view
386
- });
387
- }
388
- else {
389
- this.legendWidget.view = view;
390
- }
391
- }
392
- }
393
- get el() { return index.getElement(this); }
394
- static get watchers() { return {
395
- "mapView": ["mapViewWatchHandler"]
396
- }; }
397
- };
398
- MapLegend.style = mapLegendCss;
399
-
400
- const mapSearchCss = ":host{display:block}.search-widget{width:100% !important;border:1px solid var(--calcite-color-border-input)}";
401
-
402
- const MapSearch = class {
403
- constructor(hostRef) {
404
- index.registerInstance(this, hostRef);
405
- this.mapView = undefined;
406
- this.popupEnabled = false;
407
- this.resultGraphicEnabled = false;
408
- this.searchConfiguration = undefined;
409
- this.searchTerm = undefined;
410
- this.searchWidget = undefined;
411
- }
412
- //--------------------------------------------------------------------------
413
- //
414
- // Watch handlers
415
- //
416
- //--------------------------------------------------------------------------
417
- /**
418
- * Called each time the searchConfiguration prop is changed.
419
- *
420
- * @returns Promise when complete
421
- */
422
- async watchSearchConfigurationHandler() {
423
- this._initSearchWidget();
424
- }
425
- /**
426
- * Called each time the mapView prop is changed.
427
- *
428
- * @returns Promise when complete
429
- */
430
- async mapViewWatchHandler() {
431
- await this.mapView.when(() => {
432
- this._initSearchWidget();
433
- });
434
- }
435
- //--------------------------------------------------------------------------
436
- //
437
- // Methods (public)
438
- //
439
- //--------------------------------------------------------------------------
440
- //--------------------------------------------------------------------------
441
- //
442
- // Events (public)
443
- //
444
- //--------------------------------------------------------------------------
445
- //--------------------------------------------------------------------------
446
- //
447
- // Functions (lifecycle)
448
- //
449
- //--------------------------------------------------------------------------
450
- /**
451
- * StencilJS: Called once just after the component is first connected to the DOM.
452
- */
453
- async componentWillLoad() {
454
- await this._initModules();
455
- }
456
- /**
457
- * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
458
- */
459
- async componentDidLoad() {
460
- return this._initSearchWidget();
461
- }
462
- /**
463
- * Renders the component.
464
- */
465
- render() {
466
- return (index.h(index.Host, null, index.h("div", { class: "search-widget", ref: (el) => { this._searchElement = el; } })));
467
- }
468
- //--------------------------------------------------------------------------
469
- //
470
- // Functions (protected)
471
- //
472
- //--------------------------------------------------------------------------
473
- /**
474
- * Load esri javascript api modules
475
- *
476
- * @returns Promise resolving when function is done
477
- *
478
- * @protected
479
- */
480
- async _initModules() {
481
- const [Search, FeatureLayer] = await loadModules.loadModules([
482
- "esri/widgets/Search",
483
- "esri/layers/FeatureLayer"
484
- ]);
485
- this.Search = Search;
486
- this.FeatureLayer = FeatureLayer;
487
- }
488
- /**
489
- * Initialize the search widget
490
- *
491
- * @protected
492
- */
493
- _initSearchWidget() {
494
- if (this.mapView && this._searchElement && !this.searchWidget) {
495
- let searchOptions = {
496
- view: this.mapView,
497
- container: this._searchElement,
498
- searchTerm: this.searchTerm
499
- };
500
- if (this.searchConfiguration) {
501
- const searchConfiguration = this._getSearchConfig(this.searchConfiguration, this.mapView);
502
- searchOptions = Object.assign({}, searchConfiguration);
503
- }
504
- this.searchWidget = new this.Search(searchOptions);
505
- this.searchWidget.popupEnabled = this.popupEnabled;
506
- this.searchWidget.resultGraphicEnabled = this.resultGraphicEnabled;
507
- }
508
- else {
509
- if (this.searchWidget) {
510
- this.searchWidget.view = this.mapView;
511
- }
512
- }
513
- }
514
- /**
515
- * Initialize the search widget based on user defined configuration
516
- *
517
- * @param searchConfiguration search configuration defined by the user
518
- * @param view the current map view
519
- *
520
- * @protected
521
- */
522
- _getSearchConfig(searchConfiguration, view) {
523
- const INCLUDE_DEFAULT_SOURCES = "includeDefaultSources";
524
- const sources = searchConfiguration.sources;
525
- if ((sources === null || sources === void 0 ? void 0 : sources.length) > 0) {
526
- searchConfiguration[INCLUDE_DEFAULT_SOURCES] = false;
527
- sources.forEach((source) => {
528
- var _a, _b;
529
- const isLayerSource = source.hasOwnProperty("layer");
530
- if (isLayerSource) {
531
- const layerSource = source;
532
- const layerId = (_a = layerSource.layer) === null || _a === void 0 ? void 0 : _a.id;
533
- const layerFromMap = layerId ? view.map.findLayerById(layerId) : null;
534
- const layerUrl = (_b = layerSource === null || layerSource === void 0 ? void 0 : layerSource.layer) === null || _b === void 0 ? void 0 : _b.url;
535
- if (layerFromMap) {
536
- layerSource.layer = layerFromMap;
537
- }
538
- else if (layerUrl) {
539
- layerSource.layer = new this.FeatureLayer(layerUrl);
540
- }
541
- }
542
- });
543
- sources === null || sources === void 0 ? void 0 : sources.forEach((source) => {
544
- const isLocatorSource = source.hasOwnProperty("locator");
545
- if (isLocatorSource) {
546
- const locatorSource = source;
547
- if ((locatorSource === null || locatorSource === void 0 ? void 0 : locatorSource.name) === "ArcGIS World Geocoding Service") {
548
- const outFields = locatorSource.outFields || ["Addr_type", "Match_addr", "StAddr", "City"];
549
- locatorSource.outFields = outFields;
550
- locatorSource.singleLineFieldName = "SingleLine";
551
- }
552
- locatorSource.url = locatorSource.url;
553
- delete locatorSource.url;
554
- }
555
- });
556
- }
557
- else {
558
- searchConfiguration = Object.assign(Object.assign({}, searchConfiguration), { includeDefaultSources: true });
559
- }
560
- return searchConfiguration;
561
- }
562
- static get watchers() { return {
563
- "searchConfiguration": ["watchSearchConfigurationHandler"],
564
- "mapView": ["mapViewWatchHandler"]
565
- }; }
566
- };
567
- MapSearch.style = mapSearchCss;
568
-
569
- exports.basemap_gallery = BasemapGallery;
570
- exports.floor_filter = FloorFilter;
571
- exports.map_fullscreen = MapFullscreen;
572
- exports.map_legend = MapLegend;
573
- exports.map_search = MapSearch;
@@ -1,30 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- 'use strict';
7
-
8
- const esriLoader = require('./esri-loader-a91c0ec1.js');
9
-
10
- /** @license
11
- * Copyright 2022 Esri
12
- *
13
- * Licensed under the Apache License, Version 2.0 (the "License");
14
- * you may not use this file except in compliance with the License.
15
- * You may obtain a copy of the License at
16
- *
17
- * http://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software
20
- * distributed under the License is distributed on an "AS IS" BASIS,
21
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
- * See the License for the specific language governing permissions and
23
- * limitations under the License.
24
- */
25
- const loadModules = async (moduleNames, options) => {
26
- const mods = await esriLoader.esriLoader.loadModules(moduleNames, options);
27
- return mods.map((mod) => (mod.__esModule && mod.default ? mod.default : mod));
28
- };
29
-
30
- exports.loadModules = loadModules;