@esri/solutions-components 0.11.19 → 0.11.20

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 (191) hide show
  1. package/dist/cjs/{asyncToGenerator-f169429a.js → asyncToGenerator-c7fc3ee4.js} +1 -1
  2. package/dist/cjs/basemap-gallery_7.cjs.entry.js +2 -2
  3. package/dist/cjs/buffer-tools_2.cjs.entry.js +4 -3
  4. package/dist/cjs/card-manager_3.cjs.entry.js +4 -4
  5. package/dist/cjs/consent-manager.cjs.entry.js +4 -4
  6. package/dist/cjs/create-feature_4.cjs.entry.js +45 -44
  7. package/dist/cjs/create-related-feature_3.cjs.entry.js +2 -2
  8. package/dist/cjs/crowdsource-manager.cjs.entry.js +4 -5
  9. package/dist/cjs/crowdsource-reporter.cjs.entry.js +5 -4
  10. package/dist/cjs/delete-dialog.cjs.entry.js +2 -2
  11. package/dist/cjs/{downloadUtils-b269c7a1.js → downloadUtils-fcae8eb1.js} +3 -3
  12. package/dist/cjs/{effects-2f75069e.js → effects-3607d1ba.js} +1 -1
  13. package/dist/cjs/feature-list.cjs.entry.js +5 -5
  14. package/dist/cjs/{helpers-69e520bd.js → helpers-8d452256.js} +2 -2
  15. package/dist/cjs/{index.es-644259ff.js → index.es-3c2404c3.js} +2 -2
  16. package/dist/cjs/instant-apps-app-guide.cjs.entry.js +4 -4
  17. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +5 -5
  18. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +2 -2
  19. package/dist/cjs/instant-apps-create.cjs.entry.js +4 -4
  20. package/dist/cjs/instant-apps-export-views.cjs.entry.js +4 -4
  21. package/dist/cjs/instant-apps-export.cjs.entry.js +4 -4
  22. package/dist/cjs/instant-apps-filter-list_2.cjs.entry.js +4 -4
  23. package/dist/cjs/instant-apps-header.cjs.entry.js +2 -2
  24. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +4 -4
  25. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +4 -4
  26. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +4 -4
  27. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +4 -4
  28. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +6 -6
  29. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +4 -4
  30. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +6 -6
  31. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +6 -6
  32. package/dist/cjs/instant-apps-measurement-tool.cjs.entry.js +2 -2
  33. package/dist/cjs/instant-apps-measurement.cjs.entry.js +4 -4
  34. package/dist/cjs/instant-apps-popover.cjs.entry.js +4 -4
  35. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +4 -4
  36. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +4 -4
  37. package/dist/cjs/instant-apps-splash.cjs.entry.js +4 -4
  38. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +5 -5
  39. package/dist/cjs/json-editor_7.cjs.entry.js +2 -2
  40. package/dist/cjs/{languageSwitcher-c8e62594.js → languageSwitcher-19a22439.js} +1 -1
  41. package/dist/cjs/{languageUtil-bd49af69.js → languageUtil-a3e1eafd.js} +1 -1
  42. package/dist/cjs/{loadModules-3b29fa24.js → loadModules-e9d8977c.js} +1 -1
  43. package/dist/cjs/loader.cjs.js +1 -1
  44. package/dist/cjs/{locale-905e6063.js → locale-1c60be9c.js} +1 -1
  45. package/dist/cjs/{locale-c923d7b6.js → locale-da41a06f.js} +2 -2
  46. package/dist/cjs/map-layer-picker.cjs.entry.js +2 -2
  47. package/dist/cjs/map-select-tools_3.cjs.entry.js +4 -4
  48. package/dist/cjs/{popupUtils-5378e04a.js → popupUtils-87b006a6.js} +2 -2
  49. package/dist/cjs/public-notification.cjs.entry.js +4 -4
  50. package/dist/cjs/solution-configuration.cjs.entry.js +2 -2
  51. package/dist/cjs/solution-contents_3.cjs.entry.js +2 -2
  52. package/dist/cjs/solution-item-accordion.cjs.entry.js +2 -2
  53. package/dist/cjs/solutions-components.cjs.js +1 -1
  54. package/dist/cjs/spatial-ref.cjs.entry.js +2 -2
  55. package/dist/cjs/{utils-3739960f.js → utils-3e512114.js} +1 -1
  56. package/dist/collection/assets/t9n/create-feature/resources.json +1 -1
  57. package/dist/collection/assets/t9n/create-feature/resources_en.json +1 -1
  58. package/dist/collection/components/create-feature/create-feature.js +130 -110
  59. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +2 -3
  60. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +22 -2
  61. package/dist/collection/components/map-draw-tools/map-draw-tools.js +2 -1
  62. package/dist/components/create-feature2.js +48 -46
  63. package/dist/components/crowdsource-manager.js +2 -3
  64. package/dist/components/crowdsource-reporter.js +4 -2
  65. package/dist/components/map-draw-tools2.js +2 -1
  66. package/dist/esm/{asyncToGenerator-e51717ed.js → asyncToGenerator-96b2368d.js} +1 -1
  67. package/dist/esm/basemap-gallery_7.entry.js +2 -2
  68. package/dist/esm/buffer-tools_2.entry.js +4 -3
  69. package/dist/esm/card-manager_3.entry.js +4 -4
  70. package/dist/esm/consent-manager.entry.js +4 -4
  71. package/dist/esm/create-feature_4.entry.js +45 -44
  72. package/dist/esm/create-related-feature_3.entry.js +2 -2
  73. package/dist/esm/crowdsource-manager.entry.js +4 -5
  74. package/dist/esm/crowdsource-reporter.entry.js +5 -4
  75. package/dist/esm/delete-dialog.entry.js +2 -2
  76. package/dist/esm/{downloadUtils-d04d4095.js → downloadUtils-078cd709.js} +3 -3
  77. package/dist/esm/{effects-602e7b51.js → effects-38bc1195.js} +1 -1
  78. package/dist/esm/feature-list.entry.js +5 -5
  79. package/dist/esm/{helpers-520f100c.js → helpers-15d5cd56.js} +2 -2
  80. package/dist/esm/{index.es-ca80d0c5.js → index.es-87662946.js} +2 -2
  81. package/dist/esm/instant-apps-app-guide.entry.js +4 -4
  82. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +5 -5
  83. package/dist/esm/instant-apps-control-panel.entry.js +2 -2
  84. package/dist/esm/instant-apps-create.entry.js +4 -4
  85. package/dist/esm/instant-apps-export-views.entry.js +4 -4
  86. package/dist/esm/instant-apps-export.entry.js +4 -4
  87. package/dist/esm/instant-apps-filter-list_2.entry.js +4 -4
  88. package/dist/esm/instant-apps-header.entry.js +2 -2
  89. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +4 -4
  90. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +4 -4
  91. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +4 -4
  92. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +4 -4
  93. package/dist/esm/instant-apps-interactive-legend.entry.js +6 -6
  94. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +4 -4
  95. package/dist/esm/instant-apps-language-switcher.entry.js +6 -6
  96. package/dist/esm/instant-apps-language-translator.entry.js +6 -6
  97. package/dist/esm/instant-apps-measurement-tool.entry.js +2 -2
  98. package/dist/esm/instant-apps-measurement.entry.js +4 -4
  99. package/dist/esm/instant-apps-popover.entry.js +4 -4
  100. package/dist/esm/instant-apps-scoreboard.entry.js +4 -4
  101. package/dist/esm/instant-apps-sign-in.entry.js +4 -4
  102. package/dist/esm/instant-apps-splash.entry.js +4 -4
  103. package/dist/esm/instant-apps-time-filter.entry.js +5 -5
  104. package/dist/esm/json-editor_7.entry.js +2 -2
  105. package/dist/esm/{languageSwitcher-ccdf79d4.js → languageSwitcher-49bad3f4.js} +1 -1
  106. package/dist/esm/{languageUtil-2bac3910.js → languageUtil-2b6e191a.js} +1 -1
  107. package/dist/esm/{loadModules-1b0b108c.js → loadModules-947ccfd4.js} +1 -1
  108. package/dist/esm/loader.js +1 -1
  109. package/dist/esm/{locale-15e42305.js → locale-7874c756.js} +1 -1
  110. package/dist/esm/{locale-29d08ded.js → locale-e02b0e14.js} +2 -2
  111. package/dist/esm/map-layer-picker.entry.js +2 -2
  112. package/dist/esm/map-select-tools_3.entry.js +4 -4
  113. package/dist/esm/{popupUtils-b71abb01.js → popupUtils-6a965512.js} +2 -2
  114. package/dist/esm/public-notification.entry.js +4 -4
  115. package/dist/esm/solution-configuration.entry.js +2 -2
  116. package/dist/esm/solution-contents_3.entry.js +2 -2
  117. package/dist/esm/solution-item-accordion.entry.js +2 -2
  118. package/dist/esm/solutions-components.js +1 -1
  119. package/dist/esm/spatial-ref.entry.js +2 -2
  120. package/dist/esm/{utils-89be1743.js → utils-6fe5b5fa.js} +1 -1
  121. package/dist/solutions-components/assets/t9n/create-feature/resources.json +1 -1
  122. package/dist/solutions-components/assets/t9n/create-feature/resources_en.json +1 -1
  123. package/dist/solutions-components/{p-d885880a.entry.js → p-00ec642f.entry.js} +1 -1
  124. package/dist/solutions-components/p-02c4e6fc.entry.js +6 -0
  125. package/dist/solutions-components/{p-0132213f.entry.js → p-0326f1f4.entry.js} +1 -1
  126. package/dist/solutions-components/{p-438fdc33.js → p-08ad0b7a.js} +1 -1
  127. package/dist/solutions-components/{p-0607044f.js → p-174fa218.js} +1 -1
  128. package/dist/solutions-components/{p-7bf7d67b.js → p-1e1dfef6.js} +1 -1
  129. package/dist/solutions-components/{p-2d8300ba.entry.js → p-244316dd.entry.js} +1 -1
  130. package/dist/solutions-components/p-2460cf10.entry.js +6 -0
  131. package/dist/solutions-components/{p-8f973b3d.js → p-2884ca49.js} +1 -1
  132. package/dist/solutions-components/{p-3f8b1062.entry.js → p-3ce5c7fd.entry.js} +1 -1
  133. package/dist/solutions-components/{p-a397e773.js → p-404cbf48.js} +1 -1
  134. package/dist/solutions-components/{p-f292f56e.entry.js → p-41a3b49a.entry.js} +1 -1
  135. package/dist/solutions-components/{p-f457e8be.entry.js → p-443168f0.entry.js} +1 -1
  136. package/dist/solutions-components/{p-86b6f918.entry.js → p-4ced7b11.entry.js} +1 -1
  137. package/dist/solutions-components/{p-2a1ed83a.entry.js → p-4d5dd39e.entry.js} +1 -1
  138. package/dist/solutions-components/{p-e79b69e6.entry.js → p-4e7514a3.entry.js} +1 -1
  139. package/dist/solutions-components/{p-34338938.entry.js → p-4f7fb338.entry.js} +1 -1
  140. package/dist/solutions-components/{p-edfcce2c.entry.js → p-5786b9da.entry.js} +1 -1
  141. package/dist/solutions-components/{p-b8f29a99.entry.js → p-5a202f3f.entry.js} +1 -1
  142. package/dist/solutions-components/{p-fdf0d66f.entry.js → p-65105504.entry.js} +1 -1
  143. package/dist/solutions-components/{p-532ed572.entry.js → p-698656b8.entry.js} +1 -1
  144. package/dist/solutions-components/{p-dbf2c455.entry.js → p-7251848d.entry.js} +1 -1
  145. package/dist/solutions-components/{p-b6a6fdcf.entry.js → p-72d04c7a.entry.js} +1 -1
  146. package/dist/solutions-components/{p-099379e6.entry.js → p-832707fd.entry.js} +1 -1
  147. package/dist/solutions-components/{p-8db12ee9.entry.js → p-837e0939.entry.js} +1 -1
  148. package/dist/solutions-components/{p-cd38fc53.js → p-84bb6925.js} +1 -1
  149. package/dist/solutions-components/{p-436b869c.entry.js → p-8859b622.entry.js} +1 -1
  150. package/dist/solutions-components/p-89fbc318.js +6 -0
  151. package/dist/solutions-components/{p-0b1c830a.entry.js → p-8a010f9e.entry.js} +1 -1
  152. package/dist/solutions-components/{p-6ac03d17.entry.js → p-8dd677dd.entry.js} +1 -1
  153. package/dist/solutions-components/{p-37cc79c6.entry.js → p-9927342d.entry.js} +1 -1
  154. package/dist/solutions-components/{p-c3aac15b.entry.js → p-a277d08c.entry.js} +1 -1
  155. package/dist/solutions-components/{p-2d3b8412.entry.js → p-a5eaf7fe.entry.js} +1 -1
  156. package/dist/solutions-components/{p-da1e4ff1.entry.js → p-aad84d69.entry.js} +1 -1
  157. package/dist/solutions-components/{p-3423b5ef.js → p-ac122d9e.js} +1 -1
  158. package/dist/solutions-components/{p-59a1c5a9.entry.js → p-b394f504.entry.js} +1 -1
  159. package/dist/solutions-components/{p-97abbf8f.entry.js → p-ba4e219a.entry.js} +1 -1
  160. package/dist/solutions-components/{p-258aa58e.js → p-bf04c6f4.js} +2 -2
  161. package/dist/solutions-components/{p-4454af38.entry.js → p-c6c697e5.entry.js} +1 -1
  162. package/dist/solutions-components/{p-dda0aa41.entry.js → p-d324196d.entry.js} +1 -1
  163. package/dist/solutions-components/{p-f93a9d92.js → p-d65f8b73.js} +1 -1
  164. package/dist/solutions-components/{p-36e3b39c.js → p-db3391b9.js} +2 -2
  165. package/dist/solutions-components/{p-039ab075.js → p-dc188d13.js} +1 -1
  166. package/dist/solutions-components/{p-04277d48.entry.js → p-de42e8b2.entry.js} +1 -1
  167. package/dist/solutions-components/p-ea566af0.entry.js +6 -0
  168. package/dist/solutions-components/{p-29baf8a2.entry.js → p-eb3c867f.entry.js} +1 -1
  169. package/dist/solutions-components/{p-d45b0400.entry.js → p-ed1ecb5b.entry.js} +1 -1
  170. package/dist/solutions-components/{p-1054e10a.entry.js → p-ee3bb943.entry.js} +1 -1
  171. package/dist/solutions-components/{p-0ea99464.entry.js → p-f165921f.entry.js} +1 -1
  172. package/dist/solutions-components/{p-f36b4778.entry.js → p-f75786a8.entry.js} +1 -1
  173. package/dist/solutions-components/{p-2a7f23fc.entry.js → p-f956c598.entry.js} +1 -1
  174. package/dist/solutions-components/{p-2cb8c175.entry.js → p-fa663804.entry.js} +1 -1
  175. package/dist/solutions-components/{p-6e879de9.entry.js → p-ff317687.entry.js} +1 -1
  176. package/dist/solutions-components/solutions-components.esm.js +1 -1
  177. package/dist/solutions-components_commit.txt +7 -7
  178. package/dist/types/components/create-feature/create-feature.d.ts +54 -50
  179. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +4 -0
  180. package/dist/types/components.d.ts +16 -0
  181. package/package.json +1 -1
  182. package/dist/solutions-components/p-04546ef6.js +0 -6
  183. package/dist/solutions-components/p-1adc6874.entry.js +0 -6
  184. package/dist/solutions-components/p-ba472e45.entry.js +0 -6
  185. package/dist/solutions-components/p-f99a78f1.entry.js +0 -6
  186. /package/dist/cjs/{esri-loader-1e8cc247.js → esri-loader-08dc41bd.js} +0 -0
  187. /package/dist/cjs/{typeof-eba0a941.js → typeof-2a7e2dec.js} +0 -0
  188. /package/dist/esm/{esri-loader-d10d860d.js → esri-loader-c6842c6b.js} +0 -0
  189. /package/dist/esm/{typeof-a3e780e1.js → typeof-ef2a007d.js} +0 -0
  190. /package/dist/solutions-components/{p-3b3f77bc.js → p-0a24ad5f.js} +0 -0
  191. /package/dist/solutions-components/{p-19bce2cc.js → p-4fe489cf.js} +0 -0
@@ -24,19 +24,20 @@ import { getAllLayers, getLayerOrTable } from "../../utils/mapViewUtils";
24
24
  import { getLocaleComponentStrings } from "../../utils/locale";
25
25
  export class CreateFeature {
26
26
  constructor() {
27
- this.mapView = undefined;
28
- this.selectedLayerId = undefined;
29
27
  this.customizeSubmit = false;
30
- this.locale = undefined;
31
- this.searchConfiguration = undefined;
32
- this.isMobile = undefined;
28
+ this.enableSearch = false;
33
29
  this.floorLevel = undefined;
34
30
  this.formElements = undefined;
35
- this.enableSearch = false;
31
+ this.isMobile = undefined;
32
+ this.locale = undefined;
33
+ this.mapView = undefined;
34
+ this.searchConfiguration = undefined;
35
+ this.selectedLayerId = undefined;
36
36
  this.showGuidingMsg = true;
37
37
  this.showGuidingMsgWhileDrawing = true;
38
- this._editorLoading = false;
38
+ this.submitNewReportsMessage = undefined;
39
39
  this._currentPage = "templatePicker";
40
+ this._editorLoading = false;
40
41
  this._translations = undefined;
41
42
  }
42
43
  //--------------------------------------------------------------------------
@@ -60,6 +61,11 @@ export class CreateFeature {
60
61
  * The ExpressionInfo constructor
61
62
  */
62
63
  ExpressionInfo;
64
+ /**
65
+ * https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html
66
+ * The Feature layer instance
67
+ */
68
+ FeatureLayer;
63
69
  /**
64
70
  * esri/form/elements/FieldElement: https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html
65
71
  * The FieldElement constructor
@@ -69,68 +75,63 @@ export class CreateFeature {
69
75
  * esri/form/FormTemplate: https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html
70
76
  */
71
77
  FormTemplate;
72
- /**
73
- * esri/widgets/Editor: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html
74
- * The Editor instance
75
- */
76
- _editor;
77
- /**
78
- * https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html
79
- * The Feature layer instance
80
- */
81
- FeatureLayer;
82
78
  /**
83
79
  * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
84
80
  * The MapView instance
85
81
  */
86
82
  MapView;
87
- /**
88
- * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
89
- * Updated map view instance
90
- */
91
- _updatedMapView;
92
83
  /**
93
84
  * esri/widgets/Search: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html
94
85
  * The Search instance
95
86
  */
96
87
  Search;
97
- /**
98
- * "esri/widgets/Search": https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html
99
- * The Search instance
100
- */
101
- _search;
102
- /**
103
- * esri/core/reactiveUtils: https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html
104
- */
105
- reactiveUtils;
106
88
  /**
107
89
  * boolean: Flag to maintain the add attachment
108
90
  */
109
91
  _addingAttachment;
92
+ /**
93
+ * HTMLCalciteNoticeElement: calcite notice refrence element
94
+ */
95
+ _calciteNotice;
110
96
  /**
111
97
  * HTMLDivElement: The node the editor will be added to
112
98
  */
113
99
  _container;
114
100
  /**
115
- * HTMLDivElement: The node for the map view
101
+ * esri/widgets/Editor: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html
102
+ * The Editor instance
116
103
  */
117
- _mapViewContainer;
104
+ _editor;
118
105
  /**
119
106
  * boolean: Flag to maintain form submission using submit button
120
107
  */
121
108
  _isSubmitBtnClicked = false;
122
109
  /**
123
- * __esri.FeatureLayer: selected feature layer;
110
+ * HTMLDivElement: The node for the map view
124
111
  */
125
- _selectedLayer;
112
+ _mapViewContainer;
113
+ /**
114
+ * esri/core/reactiveUtils: https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html
115
+ */
116
+ reactiveUtils;
117
+ /**
118
+ * "esri/widgets/Search": https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html
119
+ * The Search instance
120
+ */
121
+ _search;
126
122
  /**
127
123
  * HTMLDivElement: refrence for search div element
128
124
  */
129
125
  _searchDiv;
130
126
  /**
131
- * HTMLCalciteNoticeElement: calcite notice refrence element
127
+ * __esri.FeatureLayer: selected feature layer;
132
128
  */
133
- _calciteNotice;
129
+ _selectedLayer;
130
+ /**
131
+ * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
132
+ * Updated map view instance
133
+ */
134
+ _updatedMapView;
134
135
  //--------------------------------------------------------------------------
135
136
  //
136
137
  // Watch handlers
@@ -290,8 +291,8 @@ export class CreateFeature {
290
291
  else if (this._currentPage === 'featureForm') {
291
292
  guidingMsg = this._translations.provideDetailsMsg;
292
293
  }
293
- return (h(Fragment, { key: '829e66e8b4818b2566d514ae85eddc50968075f8' }, showGuidingMsg && h("calcite-notice", { key: '0347181f26f5d87d38f8be185e0b43ffbbc34208', class: "notice-msg", icon: "lightbulb", kind: "success", open: true, ref: el => this._calciteNotice = el }, h("div", { key: 'e5dd776ead66c26184a5aad747e82d97612d961a', slot: "message" }, guidingMsg)), h("calcite-loader", { key: '7989ecdbb4b635d38a1d63bf879d7e95b3f9a9be', class: loaderClass, label: "", scale: "s" }), h("div", { key: '6f6184af21e8a0595e5c51c132e657e7660caa01', class: featureFormClass, id: "feature-form" }), this.enableSearch &&
294
- h("div", { key: '2068ca424a9355a28c9957104a4f6973b11c1b8f', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref", ref: el => this._searchDiv = el }), h("div", { key: 'a899d52788e6cfa67fe77abbbe0eeb6383b40d0a', class: `${mobileMapClass}`, ref: (el) => { this._mapViewContainer = el; } })));
294
+ return (h(Fragment, { key: 'cb3462a70e0097e9b4ac9dac3f910fce6d30f8b5' }, showGuidingMsg && h("calcite-notice", { key: 'ddd908ac4b31f60d07de064ec1decae06b3d93bd', class: "notice-msg", icon: "lightbulb", kind: "success", open: true, ref: el => this._calciteNotice = el }, h("div", { key: '3cee10085fa29190d88d3d03d35f726d1b51651b', slot: "message" }, guidingMsg)), h("calcite-loader", { key: 'cf714d63a011712fa03c148c17a8811356e14859', class: loaderClass, label: "", scale: "s" }), h("div", { key: 'e20cb740a1d22795b397af191a26339d709aba0d', class: featureFormClass, id: "feature-form" }), this.enableSearch &&
295
+ h("div", { key: 'd2b439d3845b69527fdea2414c7b22078b0af4ea', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref", ref: el => this._searchDiv = el }), h("div", { key: '1f4e39aaaa93f4e2102767c04c5ad256e4f129e2', class: `${mobileMapClass}`, ref: (el) => { this._mapViewContainer = el; } })));
295
296
  }
296
297
  //--------------------------------------------------------------------------
297
298
  //
@@ -707,48 +708,27 @@ export class CreateFeature {
707
708
  }
708
709
  static get properties() {
709
710
  return {
710
- "mapView": {
711
- "type": "unknown",
712
- "mutable": false,
713
- "complexType": {
714
- "original": "__esri.MapView",
715
- "resolved": "MapView",
716
- "references": {
717
- "___esri": {
718
- "location": "global",
719
- "id": "global::___esri"
720
- }
721
- }
722
- },
723
- "required": false,
724
- "optional": false,
725
- "docs": {
726
- "tags": [],
727
- "text": "esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html"
728
- },
729
- "getter": false,
730
- "setter": false
731
- },
732
- "selectedLayerId": {
733
- "type": "string",
711
+ "customizeSubmit": {
712
+ "type": "boolean",
734
713
  "mutable": false,
735
714
  "complexType": {
736
- "original": "string",
737
- "resolved": "string",
715
+ "original": "boolean",
716
+ "resolved": "boolean",
738
717
  "references": {}
739
718
  },
740
719
  "required": false,
741
- "optional": false,
720
+ "optional": true,
742
721
  "docs": {
743
722
  "tags": [],
744
- "text": "string: Layer id of the feature layer in which the new feature is to be created"
723
+ "text": "boolean: Set this to true when have a custom submit button in the app.\r\nThis will hide the header and footer elements of the editor and user needs to execute the submit method manually."
745
724
  },
746
725
  "getter": false,
747
726
  "setter": false,
748
- "attribute": "selected-layer-id",
749
- "reflect": false
727
+ "attribute": "customize-submit",
728
+ "reflect": false,
729
+ "defaultValue": "false"
750
730
  },
751
- "customizeSubmit": {
731
+ "enableSearch": {
752
732
  "type": "boolean",
753
733
  "mutable": false,
754
734
  "complexType": {
@@ -760,15 +740,15 @@ export class CreateFeature {
760
740
  "optional": true,
761
741
  "docs": {
762
742
  "tags": [],
763
- "text": "boolean: Set this to true when have a custom submit button in the app.\r\nThis will hide the header and footer elements of the editor and user needs to execute the submit method manually."
743
+ "text": "boolean: When true the Search box will be displayed"
764
744
  },
765
745
  "getter": false,
766
746
  "setter": false,
767
- "attribute": "customize-submit",
747
+ "attribute": "enable-search",
768
748
  "reflect": false,
769
749
  "defaultValue": "false"
770
750
  },
771
- "locale": {
751
+ "floorLevel": {
772
752
  "type": "string",
773
753
  "mutable": false,
774
754
  "complexType": {
@@ -780,35 +760,31 @@ export class CreateFeature {
780
760
  "optional": false,
781
761
  "docs": {
782
762
  "tags": [],
783
- "text": "string: Locale to use for translation of stings in the UI"
763
+ "text": "string: selected floor level"
784
764
  },
785
765
  "getter": false,
786
766
  "setter": false,
787
- "attribute": "locale",
767
+ "attribute": "floor-level",
788
768
  "reflect": false
789
769
  },
790
- "searchConfiguration": {
791
- "type": "unknown",
770
+ "formElements": {
771
+ "type": "any",
792
772
  "mutable": false,
793
773
  "complexType": {
794
- "original": "ISearchConfiguration",
795
- "resolved": "ISearchConfiguration",
796
- "references": {
797
- "ISearchConfiguration": {
798
- "location": "import",
799
- "path": "../../utils/interfaces",
800
- "id": "src/utils/interfaces.ts::ISearchConfiguration"
801
- }
802
- }
774
+ "original": "any",
775
+ "resolved": "any",
776
+ "references": {}
803
777
  },
804
778
  "required": false,
805
779
  "optional": false,
806
780
  "docs": {
807
781
  "tags": [],
808
- "text": "ISearchConfiguration: Configuration details for the Search widget"
782
+ "text": "string: selected floor level"
809
783
  },
810
784
  "getter": false,
811
- "setter": false
785
+ "setter": false,
786
+ "attribute": "form-elements",
787
+ "reflect": false
812
788
  },
813
789
  "isMobile": {
814
790
  "type": "boolean",
@@ -829,7 +805,7 @@ export class CreateFeature {
829
805
  "attribute": "is-mobile",
830
806
  "reflect": false
831
807
  },
832
- "floorLevel": {
808
+ "locale": {
833
809
  "type": "string",
834
810
  "mutable": false,
835
811
  "complexType": {
@@ -841,51 +817,76 @@ export class CreateFeature {
841
817
  "optional": false,
842
818
  "docs": {
843
819
  "tags": [],
844
- "text": "string: selected floor level"
820
+ "text": "string: Locale to use for translation of stings in the UI"
845
821
  },
846
822
  "getter": false,
847
823
  "setter": false,
848
- "attribute": "floor-level",
824
+ "attribute": "locale",
849
825
  "reflect": false
850
826
  },
851
- "formElements": {
852
- "type": "any",
827
+ "mapView": {
828
+ "type": "unknown",
853
829
  "mutable": false,
854
830
  "complexType": {
855
- "original": "any",
856
- "resolved": "any",
857
- "references": {}
831
+ "original": "__esri.MapView",
832
+ "resolved": "MapView",
833
+ "references": {
834
+ "___esri": {
835
+ "location": "global",
836
+ "id": "global::___esri"
837
+ }
838
+ }
858
839
  },
859
840
  "required": false,
860
841
  "optional": false,
861
842
  "docs": {
862
843
  "tags": [],
863
- "text": "string: selected floor level"
844
+ "text": "esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html"
864
845
  },
865
846
  "getter": false,
866
- "setter": false,
867
- "attribute": "form-elements",
868
- "reflect": false
847
+ "setter": false
869
848
  },
870
- "enableSearch": {
871
- "type": "boolean",
849
+ "searchConfiguration": {
850
+ "type": "unknown",
872
851
  "mutable": false,
873
852
  "complexType": {
874
- "original": "boolean",
875
- "resolved": "boolean",
853
+ "original": "ISearchConfiguration",
854
+ "resolved": "ISearchConfiguration",
855
+ "references": {
856
+ "ISearchConfiguration": {
857
+ "location": "import",
858
+ "path": "../../utils/interfaces",
859
+ "id": "src/utils/interfaces.ts::ISearchConfiguration"
860
+ }
861
+ }
862
+ },
863
+ "required": false,
864
+ "optional": false,
865
+ "docs": {
866
+ "tags": [],
867
+ "text": "ISearchConfiguration: Configuration details for the Search widget"
868
+ },
869
+ "getter": false,
870
+ "setter": false
871
+ },
872
+ "selectedLayerId": {
873
+ "type": "string",
874
+ "mutable": false,
875
+ "complexType": {
876
+ "original": "string",
877
+ "resolved": "string",
876
878
  "references": {}
877
879
  },
878
880
  "required": false,
879
- "optional": true,
881
+ "optional": false,
880
882
  "docs": {
881
883
  "tags": [],
882
- "text": "boolean: When true the Search box will be displayed"
884
+ "text": "string: Layer id of the feature layer in which the new feature is to be created"
883
885
  },
884
886
  "getter": false,
885
887
  "setter": false,
886
- "attribute": "enable-search",
887
- "reflect": false,
888
- "defaultValue": "false"
888
+ "attribute": "selected-layer-id",
889
+ "reflect": false
889
890
  },
890
891
  "showGuidingMsg": {
891
892
  "type": "boolean",
@@ -926,13 +927,32 @@ export class CreateFeature {
926
927
  "attribute": "show-guiding-msg-while-drawing",
927
928
  "reflect": false,
928
929
  "defaultValue": "true"
930
+ },
931
+ "submitNewReportsMessage": {
932
+ "type": "string",
933
+ "mutable": false,
934
+ "complexType": {
935
+ "original": "string",
936
+ "resolved": "string",
937
+ "references": {}
938
+ },
939
+ "required": false,
940
+ "optional": false,
941
+ "docs": {
942
+ "tags": [],
943
+ "text": "string: Text to be displayed that will allow user to know they can submit new reports"
944
+ },
945
+ "getter": false,
946
+ "setter": false,
947
+ "attribute": "submit-new-reports-message",
948
+ "reflect": false
929
949
  }
930
950
  };
931
951
  }
932
952
  static get states() {
933
953
  return {
934
- "_editorLoading": {},
935
954
  "_currentPage": {},
955
+ "_editorLoading": {},
936
956
  "_translations": {}
937
957
  };
938
958
  }
@@ -154,8 +154,7 @@ export class CrowdsourceManager {
154
154
  */
155
155
  appLayoutWatchHandler(newAppLayout, oldAppLayout) {
156
156
  if (newAppLayout !== oldAppLayout) {
157
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
158
- this._layerTable.validateTableUpdate(newAppLayout === 'splitView');
157
+ void this._layerTable?.validateTableUpdate(newAppLayout === 'splitView');
159
158
  this._setActiveLayout(newAppLayout);
160
159
  // update the layer if table selected while switching to map view
161
160
  if (this.appLayout === "mapView" && this._layer?.isTable) {
@@ -278,7 +277,7 @@ export class CrowdsourceManager {
278
277
  render() {
279
278
  // only avoid border when we have a header color that is not white
280
279
  const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
281
- return (h(Host, { key: 'ae34199751802f20ad97e947a54a123e86c6449c' }, h("calcite-shell", { key: 'cec5041ec6e1683e38a714694a3a6d097f268ec8', class: "position-relative" }, h("calcite-panel", { key: 'feca859563d97e7b536aff264a64480c769ee1c0', class: `width-full height-full ${borderClass}`, loading: this._isLoading }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter()), this._filterModal(), this._deleteModal()));
280
+ return (h(Host, { key: '4ec349cf53a543077a3b938d5dad2e767f533181' }, h("calcite-shell", { key: '08c56e11ff814419aeb7295bba240b0e96856cae', class: "position-relative" }, h("calcite-panel", { key: 'aac7ff804b7e98f3b5d1b11dbc5ee8e18c9467ca', class: `width-full height-full ${borderClass}`, loading: this._isLoading }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter()), this._filterModal(), this._deleteModal()));
282
281
  }
283
282
  /**
284
283
  * Called after each render
@@ -56,6 +56,7 @@ export class CrowdsourceReporter {
56
56
  this.showUserImageInCommentsList = false;
57
57
  this.showFeatureSymbol = false;
58
58
  this.showMyReportsOnly = false;
59
+ this.submitNewReportsMessage = undefined;
59
60
  this.theme = "light";
60
61
  this.zoomToScale = undefined;
61
62
  this.floorLevel = undefined;
@@ -379,7 +380,7 @@ export class CrowdsourceReporter {
379
380
  */
380
381
  render() {
381
382
  const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
382
- return (h(Host, { key: '03d613fe8f275852672fb546ceb4449fb82580c0' }, this._reportSubmitted && h("calcite-alert", { key: '969a66978549d6993b1e4fce87bbd2387858cdf8', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '60ae42443e09a97d97a46bba07b1ea010b382348', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && h("calcite-alert", { key: 'bf6c346cf976a4b84da3553230239665c712e2b6', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, h("div", { key: '1f9560e18d802a15bcb3e8ea9f05837a4a6fb8aa', slot: "title" }, this._translations.error), h("div", { key: '1f5ef09cbf94996eeb5783211ed1542a5cf53e93', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && h("calcite-alert", { key: '15538e8faabbec476d7586dcc4152b422404c23f', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '925a9a243a79dfb66554a9a51f24396ca2b71c98', slot: "message" }, this.commentSubmittedMessage || this._translations.commentSubmittedMsg)), this._addingCommentFailed && h("calcite-alert", { key: '62c63d3b1c51bdc7879e815e2b2f4d3c4d039c4c', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, h("div", { key: '971f07331a8689b859f2cedc96ba3589a3ad3e16', slot: "title" }, this._translations.error), h("div", { key: '1627f1ab5c4a4aceb7bdb70471aed6b8ca6d67b8', slot: "message" }, this._translations.addingCommentFailedMsg)), h("div", { key: 'b3257ba523357b4444ce7da7d13a86f6b71185d9' }, h("calcite-shell", { key: '35fc5a814528bb0acc22919839719bb4349e9ae4', "content-behind": true }, this._getReporter()))));
383
+ return (h(Host, { key: 'b97883be773d948b75e6df1be453cde018a0dba1' }, this._reportSubmitted && h("calcite-alert", { key: '5fd17c13a0d4dc3c7fed1bb253e9196b83c20e1d', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '5c7a00cb3eaaaeb3a0501324c10b407746ecca46', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && h("calcite-alert", { key: 'd83c690d60c2e6f12a5ec356c5ae67185edc6a1e', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, h("div", { key: '9cbac1cf8698f1f918004764e4e43c25af766e4a', slot: "title" }, this._translations.error), h("div", { key: 'b4dbe07b4af7ab6c543596c6a3374b785fac4c7e', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && h("calcite-alert", { key: 'cde843955c6538ea857a0a187c995062efd777e7', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '86e3d820aa0d4362c07470bd60d8f0efd0614bc2', slot: "message" }, this.commentSubmittedMessage || this._translations.commentSubmittedMsg)), this._addingCommentFailed && h("calcite-alert", { key: 'a0bdeec1bb3a33f3bfa938c0a1f4e631c6a76399', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, h("div", { key: 'b161d8e42a078d961ec4e42888d26f4314e9d5a4', slot: "title" }, this._translations.error), h("div", { key: 'cf3908f91448dfbb7cf6ec78b413eaa3327372be', slot: "message" }, this._translations.addingCommentFailedMsg)), h("div", { key: '42e2c8abaf43d6a587729229347efb2836827b98' }, h("calcite-shell", { key: '9e3174a699c37be8f20f4609f52c94ecb95d599f', "content-behind": true }, this._getReporter()))));
383
384
  }
384
385
  //--------------------------------------------------------------------------
385
386
  //
@@ -533,7 +534,7 @@ export class CrowdsourceReporter {
533
534
  * @protected
534
535
  */
535
536
  getFeatureCreateFlowItem() {
536
- return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, onCalciteFlowItemBack: this.backFromCreateFeaturePanel.bind(this), selected: this._flowItems[this._flowItems.length - 1] === "feature-create" }, this._showSubmitCancelButton && h("div", { class: "width-full", slot: "footer" }, h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", onClick: this.onCreateFeatureSubmitButtonClick.bind(this), width: "full" }, this._translations.submit), h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromCreateFeaturePanel.bind(this), width: "full" }, this._translations.cancel)), h("calcite-panel", { "full-height": true, "full-width": true }, h("div", { class: "progress-bar" }, h("calcite-progress", { type: "determinate", value: this._updatedProgressBarStatus })), h("create-feature", { customizeSubmit: true, enableSearch: true, floorLevel: this.floorLevel, formElements: this._formElements.find(elm => elm.id === this._selectedLayerId), isMobile: this.isMobile, locale: this.locale, mapView: this.mapView, onDrawComplete: this.onFormReady.bind(this), onEditingAttachment: this.showSubmitCancelButton.bind(this), onFail: this.createFeatureFailed.bind(this), onModeChanged: this.backFromCreateFeaturePanel.bind(this), onProgressStatus: this.updatedProgressStatus.bind(this), onSuccess: this.onReportSubmitted.bind(this), ref: el => this._createFeature = el, searchConfiguration: this.searchConfiguration, selectedLayerId: this._selectedLayerId }))));
537
+ return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, onCalciteFlowItemBack: this.backFromCreateFeaturePanel.bind(this), selected: this._flowItems[this._flowItems.length - 1] === "feature-create" }, this._showSubmitCancelButton && h("div", { class: "width-full", slot: "footer" }, h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", onClick: this.onCreateFeatureSubmitButtonClick.bind(this), width: "full" }, this._translations.submit), h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromCreateFeaturePanel.bind(this), width: "full" }, this._translations.cancel)), h("calcite-panel", { "full-height": true, "full-width": true }, h("div", { class: "progress-bar" }, h("calcite-progress", { type: "determinate", value: this._updatedProgressBarStatus })), h("create-feature", { customizeSubmit: true, enableSearch: true, floorLevel: this.floorLevel, formElements: this._formElements.find(elm => elm.id === this._selectedLayerId), isMobile: this.isMobile, locale: this.locale, mapView: this.mapView, onDrawComplete: this.onFormReady.bind(this), onEditingAttachment: this.showSubmitCancelButton.bind(this), onFail: this.createFeatureFailed.bind(this), onModeChanged: this.backFromCreateFeaturePanel.bind(this), onProgressStatus: this.updatedProgressStatus.bind(this), onSuccess: this.onReportSubmitted.bind(this), ref: el => this._createFeature = el, searchConfiguration: this.searchConfiguration, selectedLayerId: this._selectedLayerId, submitNewReportsMessage: this.submitNewReportsMessage }))));
537
538
  }
538
539
  /**
539
540
  * Update the progress bar status when editor panel changes
@@ -1993,6 +1994,25 @@ export class CrowdsourceReporter {
1993
1994
  "reflect": false,
1994
1995
  "defaultValue": "false"
1995
1996
  },
1997
+ "submitNewReportsMessage": {
1998
+ "type": "string",
1999
+ "mutable": false,
2000
+ "complexType": {
2001
+ "original": "string",
2002
+ "resolved": "string",
2003
+ "references": {}
2004
+ },
2005
+ "required": false,
2006
+ "optional": false,
2007
+ "docs": {
2008
+ "tags": [],
2009
+ "text": "string: Text to be displayed that will allow user to know they can submit new reports"
2010
+ },
2011
+ "getter": false,
2012
+ "setter": false,
2013
+ "attribute": "submit-new-reports-message",
2014
+ "reflect": false
2015
+ },
1996
2016
  "theme": {
1997
2017
  "type": "string",
1998
2018
  "mutable": false,
@@ -272,6 +272,7 @@ export class MapDrawTools {
272
272
  ...sketchOptions,
273
273
  container: this._sketchElement,
274
274
  creationMode: "single",
275
+ toolbarKind: "docked",
275
276
  visibleElements: {
276
277
  duplicateButton: false,
277
278
  selectionTools: {
@@ -281,7 +282,7 @@ export class MapDrawTools {
281
282
  circle: false
282
283
  },
283
284
  undoRedoMenu: false,
284
- settingsMenu: this.drawMode === EDrawMode.SKETCH
285
+ settingsMenu: this.drawMode === EDrawMode.SKETCH,
285
286
  }
286
287
  });
287
288
  this._sketchViewModel = new this.SketchViewModel({