@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.
- package/dist/cjs/{asyncToGenerator-f169429a.js → asyncToGenerator-c7fc3ee4.js} +1 -1
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +2 -2
- package/dist/cjs/buffer-tools_2.cjs.entry.js +4 -3
- package/dist/cjs/card-manager_3.cjs.entry.js +4 -4
- package/dist/cjs/consent-manager.cjs.entry.js +4 -4
- package/dist/cjs/create-feature_4.cjs.entry.js +45 -44
- package/dist/cjs/create-related-feature_3.cjs.entry.js +2 -2
- package/dist/cjs/crowdsource-manager.cjs.entry.js +4 -5
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +5 -4
- package/dist/cjs/delete-dialog.cjs.entry.js +2 -2
- package/dist/cjs/{downloadUtils-b269c7a1.js → downloadUtils-fcae8eb1.js} +3 -3
- package/dist/cjs/{effects-2f75069e.js → effects-3607d1ba.js} +1 -1
- package/dist/cjs/feature-list.cjs.entry.js +5 -5
- package/dist/cjs/{helpers-69e520bd.js → helpers-8d452256.js} +2 -2
- package/dist/cjs/{index.es-644259ff.js → index.es-3c2404c3.js} +2 -2
- package/dist/cjs/instant-apps-app-guide.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-create.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-export-views.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-export.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-filter-list_2.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-header.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-measurement-tool.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-popover.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-splash.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +5 -5
- package/dist/cjs/json-editor_7.cjs.entry.js +2 -2
- package/dist/cjs/{languageSwitcher-c8e62594.js → languageSwitcher-19a22439.js} +1 -1
- package/dist/cjs/{languageUtil-bd49af69.js → languageUtil-a3e1eafd.js} +1 -1
- package/dist/cjs/{loadModules-3b29fa24.js → loadModules-e9d8977c.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-905e6063.js → locale-1c60be9c.js} +1 -1
- package/dist/cjs/{locale-c923d7b6.js → locale-da41a06f.js} +2 -2
- package/dist/cjs/map-layer-picker.cjs.entry.js +2 -2
- package/dist/cjs/map-select-tools_3.cjs.entry.js +4 -4
- package/dist/cjs/{popupUtils-5378e04a.js → popupUtils-87b006a6.js} +2 -2
- package/dist/cjs/public-notification.cjs.entry.js +4 -4
- package/dist/cjs/solution-configuration.cjs.entry.js +2 -2
- package/dist/cjs/solution-contents_3.cjs.entry.js +2 -2
- package/dist/cjs/solution-item-accordion.cjs.entry.js +2 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +2 -2
- package/dist/cjs/{utils-3739960f.js → utils-3e512114.js} +1 -1
- package/dist/collection/assets/t9n/create-feature/resources.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_en.json +1 -1
- package/dist/collection/components/create-feature/create-feature.js +130 -110
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +2 -3
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +22 -2
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +2 -1
- package/dist/components/create-feature2.js +48 -46
- package/dist/components/crowdsource-manager.js +2 -3
- package/dist/components/crowdsource-reporter.js +4 -2
- package/dist/components/map-draw-tools2.js +2 -1
- package/dist/esm/{asyncToGenerator-e51717ed.js → asyncToGenerator-96b2368d.js} +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +2 -2
- package/dist/esm/buffer-tools_2.entry.js +4 -3
- package/dist/esm/card-manager_3.entry.js +4 -4
- package/dist/esm/consent-manager.entry.js +4 -4
- package/dist/esm/create-feature_4.entry.js +45 -44
- package/dist/esm/create-related-feature_3.entry.js +2 -2
- package/dist/esm/crowdsource-manager.entry.js +4 -5
- package/dist/esm/crowdsource-reporter.entry.js +5 -4
- package/dist/esm/delete-dialog.entry.js +2 -2
- package/dist/esm/{downloadUtils-d04d4095.js → downloadUtils-078cd709.js} +3 -3
- package/dist/esm/{effects-602e7b51.js → effects-38bc1195.js} +1 -1
- package/dist/esm/feature-list.entry.js +5 -5
- package/dist/esm/{helpers-520f100c.js → helpers-15d5cd56.js} +2 -2
- package/dist/esm/{index.es-ca80d0c5.js → index.es-87662946.js} +2 -2
- package/dist/esm/instant-apps-app-guide.entry.js +4 -4
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +5 -5
- package/dist/esm/instant-apps-control-panel.entry.js +2 -2
- package/dist/esm/instant-apps-create.entry.js +4 -4
- package/dist/esm/instant-apps-export-views.entry.js +4 -4
- package/dist/esm/instant-apps-export.entry.js +4 -4
- package/dist/esm/instant-apps-filter-list_2.entry.js +4 -4
- package/dist/esm/instant-apps-header.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +4 -4
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +4 -4
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +4 -4
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +4 -4
- package/dist/esm/instant-apps-interactive-legend.entry.js +6 -6
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +4 -4
- package/dist/esm/instant-apps-language-switcher.entry.js +6 -6
- package/dist/esm/instant-apps-language-translator.entry.js +6 -6
- package/dist/esm/instant-apps-measurement-tool.entry.js +2 -2
- package/dist/esm/instant-apps-measurement.entry.js +4 -4
- package/dist/esm/instant-apps-popover.entry.js +4 -4
- package/dist/esm/instant-apps-scoreboard.entry.js +4 -4
- package/dist/esm/instant-apps-sign-in.entry.js +4 -4
- package/dist/esm/instant-apps-splash.entry.js +4 -4
- package/dist/esm/instant-apps-time-filter.entry.js +5 -5
- package/dist/esm/json-editor_7.entry.js +2 -2
- package/dist/esm/{languageSwitcher-ccdf79d4.js → languageSwitcher-49bad3f4.js} +1 -1
- package/dist/esm/{languageUtil-2bac3910.js → languageUtil-2b6e191a.js} +1 -1
- package/dist/esm/{loadModules-1b0b108c.js → loadModules-947ccfd4.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-15e42305.js → locale-7874c756.js} +1 -1
- package/dist/esm/{locale-29d08ded.js → locale-e02b0e14.js} +2 -2
- package/dist/esm/map-layer-picker.entry.js +2 -2
- package/dist/esm/map-select-tools_3.entry.js +4 -4
- package/dist/esm/{popupUtils-b71abb01.js → popupUtils-6a965512.js} +2 -2
- package/dist/esm/public-notification.entry.js +4 -4
- package/dist/esm/solution-configuration.entry.js +2 -2
- package/dist/esm/solution-contents_3.entry.js +2 -2
- package/dist/esm/solution-item-accordion.entry.js +2 -2
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +2 -2
- package/dist/esm/{utils-89be1743.js → utils-6fe5b5fa.js} +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_en.json +1 -1
- package/dist/solutions-components/{p-d885880a.entry.js → p-00ec642f.entry.js} +1 -1
- package/dist/solutions-components/p-02c4e6fc.entry.js +6 -0
- package/dist/solutions-components/{p-0132213f.entry.js → p-0326f1f4.entry.js} +1 -1
- package/dist/solutions-components/{p-438fdc33.js → p-08ad0b7a.js} +1 -1
- package/dist/solutions-components/{p-0607044f.js → p-174fa218.js} +1 -1
- package/dist/solutions-components/{p-7bf7d67b.js → p-1e1dfef6.js} +1 -1
- package/dist/solutions-components/{p-2d8300ba.entry.js → p-244316dd.entry.js} +1 -1
- package/dist/solutions-components/p-2460cf10.entry.js +6 -0
- package/dist/solutions-components/{p-8f973b3d.js → p-2884ca49.js} +1 -1
- package/dist/solutions-components/{p-3f8b1062.entry.js → p-3ce5c7fd.entry.js} +1 -1
- package/dist/solutions-components/{p-a397e773.js → p-404cbf48.js} +1 -1
- package/dist/solutions-components/{p-f292f56e.entry.js → p-41a3b49a.entry.js} +1 -1
- package/dist/solutions-components/{p-f457e8be.entry.js → p-443168f0.entry.js} +1 -1
- package/dist/solutions-components/{p-86b6f918.entry.js → p-4ced7b11.entry.js} +1 -1
- package/dist/solutions-components/{p-2a1ed83a.entry.js → p-4d5dd39e.entry.js} +1 -1
- package/dist/solutions-components/{p-e79b69e6.entry.js → p-4e7514a3.entry.js} +1 -1
- package/dist/solutions-components/{p-34338938.entry.js → p-4f7fb338.entry.js} +1 -1
- package/dist/solutions-components/{p-edfcce2c.entry.js → p-5786b9da.entry.js} +1 -1
- package/dist/solutions-components/{p-b8f29a99.entry.js → p-5a202f3f.entry.js} +1 -1
- package/dist/solutions-components/{p-fdf0d66f.entry.js → p-65105504.entry.js} +1 -1
- package/dist/solutions-components/{p-532ed572.entry.js → p-698656b8.entry.js} +1 -1
- package/dist/solutions-components/{p-dbf2c455.entry.js → p-7251848d.entry.js} +1 -1
- package/dist/solutions-components/{p-b6a6fdcf.entry.js → p-72d04c7a.entry.js} +1 -1
- package/dist/solutions-components/{p-099379e6.entry.js → p-832707fd.entry.js} +1 -1
- package/dist/solutions-components/{p-8db12ee9.entry.js → p-837e0939.entry.js} +1 -1
- package/dist/solutions-components/{p-cd38fc53.js → p-84bb6925.js} +1 -1
- package/dist/solutions-components/{p-436b869c.entry.js → p-8859b622.entry.js} +1 -1
- package/dist/solutions-components/p-89fbc318.js +6 -0
- package/dist/solutions-components/{p-0b1c830a.entry.js → p-8a010f9e.entry.js} +1 -1
- package/dist/solutions-components/{p-6ac03d17.entry.js → p-8dd677dd.entry.js} +1 -1
- package/dist/solutions-components/{p-37cc79c6.entry.js → p-9927342d.entry.js} +1 -1
- package/dist/solutions-components/{p-c3aac15b.entry.js → p-a277d08c.entry.js} +1 -1
- package/dist/solutions-components/{p-2d3b8412.entry.js → p-a5eaf7fe.entry.js} +1 -1
- package/dist/solutions-components/{p-da1e4ff1.entry.js → p-aad84d69.entry.js} +1 -1
- package/dist/solutions-components/{p-3423b5ef.js → p-ac122d9e.js} +1 -1
- package/dist/solutions-components/{p-59a1c5a9.entry.js → p-b394f504.entry.js} +1 -1
- package/dist/solutions-components/{p-97abbf8f.entry.js → p-ba4e219a.entry.js} +1 -1
- package/dist/solutions-components/{p-258aa58e.js → p-bf04c6f4.js} +2 -2
- package/dist/solutions-components/{p-4454af38.entry.js → p-c6c697e5.entry.js} +1 -1
- package/dist/solutions-components/{p-dda0aa41.entry.js → p-d324196d.entry.js} +1 -1
- package/dist/solutions-components/{p-f93a9d92.js → p-d65f8b73.js} +1 -1
- package/dist/solutions-components/{p-36e3b39c.js → p-db3391b9.js} +2 -2
- package/dist/solutions-components/{p-039ab075.js → p-dc188d13.js} +1 -1
- package/dist/solutions-components/{p-04277d48.entry.js → p-de42e8b2.entry.js} +1 -1
- package/dist/solutions-components/p-ea566af0.entry.js +6 -0
- package/dist/solutions-components/{p-29baf8a2.entry.js → p-eb3c867f.entry.js} +1 -1
- package/dist/solutions-components/{p-d45b0400.entry.js → p-ed1ecb5b.entry.js} +1 -1
- package/dist/solutions-components/{p-1054e10a.entry.js → p-ee3bb943.entry.js} +1 -1
- package/dist/solutions-components/{p-0ea99464.entry.js → p-f165921f.entry.js} +1 -1
- package/dist/solutions-components/{p-f36b4778.entry.js → p-f75786a8.entry.js} +1 -1
- package/dist/solutions-components/{p-2a7f23fc.entry.js → p-f956c598.entry.js} +1 -1
- package/dist/solutions-components/{p-2cb8c175.entry.js → p-fa663804.entry.js} +1 -1
- package/dist/solutions-components/{p-6e879de9.entry.js → p-ff317687.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components_commit.txt +7 -7
- package/dist/types/components/create-feature/create-feature.d.ts +54 -50
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +4 -0
- package/dist/types/components.d.ts +16 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-04546ef6.js +0 -6
- package/dist/solutions-components/p-1adc6874.entry.js +0 -6
- package/dist/solutions-components/p-ba472e45.entry.js +0 -6
- package/dist/solutions-components/p-f99a78f1.entry.js +0 -6
- /package/dist/cjs/{esri-loader-1e8cc247.js → esri-loader-08dc41bd.js} +0 -0
- /package/dist/cjs/{typeof-eba0a941.js → typeof-2a7e2dec.js} +0 -0
- /package/dist/esm/{esri-loader-d10d860d.js → esri-loader-c6842c6b.js} +0 -0
- /package/dist/esm/{typeof-a3e780e1.js → typeof-ef2a007d.js} +0 -0
- /package/dist/solutions-components/{p-3b3f77bc.js → p-0a24ad5f.js} +0 -0
- /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.
|
31
|
-
this.searchConfiguration = undefined;
|
32
|
-
this.isMobile = undefined;
|
28
|
+
this.enableSearch = false;
|
33
29
|
this.floorLevel = undefined;
|
34
30
|
this.formElements = undefined;
|
35
|
-
this.
|
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.
|
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
|
-
*
|
101
|
+
* esri/widgets/Editor: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html
|
102
|
+
* The Editor instance
|
116
103
|
*/
|
117
|
-
|
104
|
+
_editor;
|
118
105
|
/**
|
119
106
|
* boolean: Flag to maintain form submission using submit button
|
120
107
|
*/
|
121
108
|
_isSubmitBtnClicked = false;
|
122
109
|
/**
|
123
|
-
*
|
110
|
+
* HTMLDivElement: The node for the map view
|
124
111
|
*/
|
125
|
-
|
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
|
-
*
|
127
|
+
* __esri.FeatureLayer: selected feature layer;
|
132
128
|
*/
|
133
|
-
|
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: '
|
294
|
-
h("div", { key: '
|
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
|
-
"
|
711
|
-
"type": "
|
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": "
|
737
|
-
"resolved": "
|
715
|
+
"original": "boolean",
|
716
|
+
"resolved": "boolean",
|
738
717
|
"references": {}
|
739
718
|
},
|
740
719
|
"required": false,
|
741
|
-
"optional":
|
720
|
+
"optional": true,
|
742
721
|
"docs": {
|
743
722
|
"tags": [],
|
744
|
-
"text": "
|
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": "
|
749
|
-
"reflect": false
|
727
|
+
"attribute": "customize-submit",
|
728
|
+
"reflect": false,
|
729
|
+
"defaultValue": "false"
|
750
730
|
},
|
751
|
-
"
|
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:
|
743
|
+
"text": "boolean: When true the Search box will be displayed"
|
764
744
|
},
|
765
745
|
"getter": false,
|
766
746
|
"setter": false,
|
767
|
-
"attribute": "
|
747
|
+
"attribute": "enable-search",
|
768
748
|
"reflect": false,
|
769
749
|
"defaultValue": "false"
|
770
750
|
},
|
771
|
-
"
|
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:
|
763
|
+
"text": "string: selected floor level"
|
784
764
|
},
|
785
765
|
"getter": false,
|
786
766
|
"setter": false,
|
787
|
-
"attribute": "
|
767
|
+
"attribute": "floor-level",
|
788
768
|
"reflect": false
|
789
769
|
},
|
790
|
-
"
|
791
|
-
"type": "
|
770
|
+
"formElements": {
|
771
|
+
"type": "any",
|
792
772
|
"mutable": false,
|
793
773
|
"complexType": {
|
794
|
-
"original": "
|
795
|
-
"resolved": "
|
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": "
|
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
|
-
"
|
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:
|
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": "
|
824
|
+
"attribute": "locale",
|
849
825
|
"reflect": false
|
850
826
|
},
|
851
|
-
"
|
852
|
-
"type": "
|
827
|
+
"mapView": {
|
828
|
+
"type": "unknown",
|
853
829
|
"mutable": false,
|
854
830
|
"complexType": {
|
855
|
-
"original": "
|
856
|
-
"resolved": "
|
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": "
|
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
|
-
"
|
871
|
-
"type": "
|
849
|
+
"searchConfiguration": {
|
850
|
+
"type": "unknown",
|
872
851
|
"mutable": false,
|
873
852
|
"complexType": {
|
874
|
-
"original": "
|
875
|
-
"resolved": "
|
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":
|
881
|
+
"optional": false,
|
880
882
|
"docs": {
|
881
883
|
"tags": [],
|
882
|
-
"text": "
|
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": "
|
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
|
-
|
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: '
|
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: '
|
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({
|