@esri/solutions-components 0.10.14 → 0.10.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -567,7 +567,7 @@ const CreateFeature = class {
567
567
  const loaderClass = this._editorLoading ? "" : "display-none";
568
568
  const featureFormClass = this._editorLoading ? "display-none" : "";
569
569
  const mobileMapClass = this.isMobile ? "show-map" : "display-none";
570
- return (index.h(index.Fragment, { key: '47d29e529402482acf3811c37c0cd5a426ed40ed' }, index.h("calcite-loader", { key: '283b2c6a0f1722c9a8d955e11390e65e6041b247', class: loaderClass, label: "", scale: "s" }), index.h("div", { key: 'bb596467d5da22882932259db6a9e8029717850b', class: featureFormClass, id: "feature-form" }), index.h("div", { key: 'c3887f5c5aa92efdcf588da4918933dadb87937f', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref" }), index.h("div", { key: '566069a6202053468a3cf7a221feb071491eabb4', class: `${mobileMapClass}`, ref: (el) => { this._mapViewContainer = el; } })));
570
+ return (index.h(index.Fragment, { key: 'aac8fd8fe4ba5d7fb67a2b74a86147e053c1b0b8' }, index.h("calcite-loader", { key: 'e440bd2e0f4cf5acf4fd6941ada508c8ac5a0380', class: loaderClass, label: "", scale: "s" }), index.h("div", { key: '055a4e4b30b1fe24e0735257fa54fa9845cbaf2f', class: featureFormClass, id: "feature-form" }), index.h("div", { key: '342847f06ba99ad3c9693026bc83a8ac18b6c05f', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref" }), index.h("div", { key: '0acb837b4604d8d590bbfbcd738a3e09a099c362', class: `${mobileMapClass}`, ref: (el) => { this._mapViewContainer = el; } })));
571
571
  }
572
572
  //--------------------------------------------------------------------------
573
573
  //
@@ -671,6 +671,8 @@ const CreateFeature = class {
671
671
  }
672
672
  //Add handle to watch if attachments are added/edited
673
673
  const attachmentHandle = this.reactiveUtils.watch(() => this._editor.viewModel.state, (state) => {
674
+ console.log(`this._editor.viewModel.state: ${state}`);
675
+ console.log(`this._editor.viewModel?.activeWorkflow?.type: ${this._editor.viewModel?.activeWorkflow?.type}`);
674
676
  if (state === 'adding-attachment' || state === 'editing-attachment') {
675
677
  this._addingAttachment = true;
676
678
  this.editingAttachment.emit(true);
@@ -685,7 +687,9 @@ const CreateFeature = class {
685
687
  this._editor.viewModel.addHandles(attachmentHandle);
686
688
  //Add handle to watch featureTemplatesViewModel ready state and then start the creation
687
689
  const handle = this.reactiveUtils.watch(() => this._editor.viewModel.featureTemplatesViewModel.state, (state) => {
688
- if (state === 'ready') {
690
+ console.log(`this._editor.viewModel.featureTemplatesViewModel.state: ${state}`);
691
+ console.log(`this._editor.viewModel?.activeWorkflow?.type: ${this._editor.viewModel?.activeWorkflow?.type}`);
692
+ if (state === 'ready' && this._editor.viewModel?.activeWorkflow?.type !== "create-features") {
689
693
  this.progressStatus.emit(0.5);
690
694
  this._editorLoading = true;
691
695
  }
@@ -704,9 +708,10 @@ const CreateFeature = class {
704
708
  this._editor.viewModel.addHandles(formHandle);
705
709
  //Add handle to watch editor viewmodel state and then show the search widget
706
710
  const createFeatureHandle = this.reactiveUtils.watch(() => this._editor.viewModel.state, (state) => {
711
+ console.log(`==============================this._editor.viewModel.state: ${state}`);
707
712
  if (state === 'creating-features') {
708
713
  this._mapViewContainer?.classList?.replace("hide-map", "show-map");
709
- this._editorLoading = true;
714
+ //this._editorLoading = true;
710
715
  this._showSearchWidget = true;
711
716
  }
712
717
  });
@@ -717,7 +722,8 @@ const CreateFeature = class {
717
722
  * @protected
718
723
  */
719
724
  async startCreate() {
720
- // hides the header elements on template picker page
725
+ console.log("========================startCreate==============================");
726
+ // hides the header elements on template picker page
721
727
  await this.hideEditorsElements();
722
728
  return new Promise((resolve, reject) => {
723
729
  if (this._editor.viewModel.featureTemplatesViewModel.items?.length) {
@@ -232,7 +232,7 @@ export class CreateFeature {
232
232
  const loaderClass = this._editorLoading ? "" : "display-none";
233
233
  const featureFormClass = this._editorLoading ? "display-none" : "";
234
234
  const mobileMapClass = this.isMobile ? "show-map" : "display-none";
235
- return (h(Fragment, { key: '47d29e529402482acf3811c37c0cd5a426ed40ed' }, h("calcite-loader", { key: '283b2c6a0f1722c9a8d955e11390e65e6041b247', class: loaderClass, label: "", scale: "s" }), h("div", { key: 'bb596467d5da22882932259db6a9e8029717850b', class: featureFormClass, id: "feature-form" }), h("div", { key: 'c3887f5c5aa92efdcf588da4918933dadb87937f', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref" }), h("div", { key: '566069a6202053468a3cf7a221feb071491eabb4', class: `${mobileMapClass}`, ref: (el) => { this._mapViewContainer = el; } })));
235
+ return (h(Fragment, { key: 'aac8fd8fe4ba5d7fb67a2b74a86147e053c1b0b8' }, h("calcite-loader", { key: 'e440bd2e0f4cf5acf4fd6941ada508c8ac5a0380', class: loaderClass, label: "", scale: "s" }), h("div", { key: '055a4e4b30b1fe24e0735257fa54fa9845cbaf2f', class: featureFormClass, id: "feature-form" }), h("div", { key: '342847f06ba99ad3c9693026bc83a8ac18b6c05f', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref" }), h("div", { key: '0acb837b4604d8d590bbfbcd738a3e09a099c362', class: `${mobileMapClass}`, ref: (el) => { this._mapViewContainer = el; } })));
236
236
  }
237
237
  //--------------------------------------------------------------------------
238
238
  //
@@ -336,6 +336,8 @@ export class CreateFeature {
336
336
  }
337
337
  //Add handle to watch if attachments are added/edited
338
338
  const attachmentHandle = this.reactiveUtils.watch(() => this._editor.viewModel.state, (state) => {
339
+ console.log(`this._editor.viewModel.state: ${state}`);
340
+ console.log(`this._editor.viewModel?.activeWorkflow?.type: ${this._editor.viewModel?.activeWorkflow?.type}`);
339
341
  if (state === 'adding-attachment' || state === 'editing-attachment') {
340
342
  this._addingAttachment = true;
341
343
  this.editingAttachment.emit(true);
@@ -350,7 +352,9 @@ export class CreateFeature {
350
352
  this._editor.viewModel.addHandles(attachmentHandle);
351
353
  //Add handle to watch featureTemplatesViewModel ready state and then start the creation
352
354
  const handle = this.reactiveUtils.watch(() => this._editor.viewModel.featureTemplatesViewModel.state, (state) => {
353
- if (state === 'ready') {
355
+ console.log(`this._editor.viewModel.featureTemplatesViewModel.state: ${state}`);
356
+ console.log(`this._editor.viewModel?.activeWorkflow?.type: ${this._editor.viewModel?.activeWorkflow?.type}`);
357
+ if (state === 'ready' && this._editor.viewModel?.activeWorkflow?.type !== "create-features") {
354
358
  this.progressStatus.emit(0.5);
355
359
  this._editorLoading = true;
356
360
  }
@@ -369,9 +373,10 @@ export class CreateFeature {
369
373
  this._editor.viewModel.addHandles(formHandle);
370
374
  //Add handle to watch editor viewmodel state and then show the search widget
371
375
  const createFeatureHandle = this.reactiveUtils.watch(() => this._editor.viewModel.state, (state) => {
376
+ console.log(`==============================this._editor.viewModel.state: ${state}`);
372
377
  if (state === 'creating-features') {
373
378
  this._mapViewContainer?.classList?.replace("hide-map", "show-map");
374
- this._editorLoading = true;
379
+ //this._editorLoading = true;
375
380
  this._showSearchWidget = true;
376
381
  }
377
382
  });
@@ -382,7 +387,8 @@ export class CreateFeature {
382
387
  * @protected
383
388
  */
384
389
  async startCreate() {
385
- // hides the header elements on template picker page
390
+ console.log("========================startCreate==============================");
391
+ // hides the header elements on template picker page
386
392
  await this.hideEditorsElements();
387
393
  return new Promise((resolve, reject) => {
388
394
  if (this._editor.viewModel.featureTemplatesViewModel.items?.length) {
@@ -73,7 +73,7 @@
73
73
  top: calc(100% - 100px);
74
74
  height: 100px;
75
75
  }
76
-
76
+
77
77
  .map-collapsed {
78
78
  height: 100%;
79
79
  top: 0;
@@ -83,12 +83,12 @@
83
83
  }
84
84
  </style>
85
85
 
86
- <link rel="stylesheet" href="https://jsdev.arcgis.com/4.29/esri/themes/light/main.css"/>
86
+ <link rel="stylesheet" href="https://jsdev.arcgis.com/4.31/esri/themes/light/main.css"/>
87
87
  <link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
88
88
  <link rel="stylesheet" href="../solutions-components.css" type="text/css">
89
89
  <link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.8.2/calcite.css" />
90
90
 
91
- <script src="https://jsdev.arcgis.com/4.29/"></script>
91
+ <script src="https://jsdev.arcgis.com/4.31/"></script>
92
92
  <script type="module" src="../solutions-components.esm.js"></script>
93
93
 
94
94
  <script>
@@ -136,7 +136,7 @@
136
136
  // Set the locale before the JSAPI loads
137
137
  esriConfig.locale = locale;
138
138
  demo.lang = locale;
139
-
139
+
140
140
  //update the portalUrl if found in urlParams
141
141
  //esriConfig.portalUrl = "https://solutions.mapsdevext.arcgis.com";
142
142
  if (portal) {
@@ -151,8 +151,8 @@
151
151
  //id: "dda88d905a6748a5ab46bea5be795f33" // screening layers
152
152
  //id: "b5bdcb1e5d684dd3b21a2d44b8e4f928" //Popup content + like dislike
153
153
  //id: "d399ec39959a4aac8617ae4f05dd6785" //Arcade
154
- //id: "024e8a5e73a34c5aade9632d651c5750" //Attachments
155
- id: "ae6d5d1936e84ce7adde44c7a7908846" //like dislike
154
+ id: "4bb6641b18e94cfb9d895ed37b13418a" //Attachments
155
+ //id: "ae6d5d1936e84ce7adde44c7a7908846" //like dislike
156
156
  // id: "ce3dec81bf714d3bb71da9691ab686d1" //Filter
157
157
  }
158
158
  const webMap = new WebMap({
@@ -182,125 +182,75 @@
182
182
  demo.enableNewReports = true;
183
183
  demo.theme = "light";
184
184
  demo.reportSubmittedMessage = "Thank you! Your request was successfully submitted";
185
-
185
+
186
186
  //Set the zoomScale to be used when zooming to single point feature
187
187
  //demo.zoomToScale = 139596221; //World
188
188
  //demo.zoomToScale = 33800278;//Country
189
189
  //demo.zoomToScale = 4291772;//States
190
190
  demo.zoomToScale = 96610;//City
191
191
  //demo.zoomToScale = 3495; //Building
192
-
192
+
193
193
  //Set filter config
194
- demo.layerExpressions = [
195
- {
196
- id: "Requests_681",
197
- title: "Requests",
198
- operator: " AND ",
199
- expressions: [
200
- {
201
- definitionExpression: "OBJECTID > 690",
202
- id: 1701793260225,
203
- index: 0,
204
- name: "greater than 690",
205
- active: false
206
- },
207
- {
208
- id: 1654881457794,
209
- name: 'status',
210
- type: 'string',
211
- field: 'status'
212
- }
213
- ]
214
- },{
215
- id: "18f056682a4-layer-12",
216
- title: "PopUp with date in title",
217
- operator: " AND ",
218
- expressions: [
219
- {
220
- definitionExpression: "shrt > 0",
221
- id: 1901793260225,
222
- index: 0,
223
- name: "Like greater than 0",
224
- active: false
225
- }
226
- ]
227
- }
228
- ];
194
+ // demo.layerExpressions = [
195
+ // {
196
+ // id: "Requests_681",
197
+ // title: "Requests",
198
+ // operator: " AND ",
199
+ // expressions: [
200
+ // {
201
+ // definitionExpression: "OBJECTID > 690",
202
+ // id: 1701793260225,
203
+ // index: 0,
204
+ // name: "greater than 690",
205
+ // active: false
206
+ // },
207
+ // {
208
+ // id: 1654881457794,
209
+ // name: 'status',
210
+ // type: 'string',
211
+ // field: 'status'
212
+ // }
213
+ // ]
214
+ // },{
215
+ // id: "18f056682a4-layer-12",
216
+ // title: "PopUp with date in title",
217
+ // operator: " AND ",
218
+ // expressions: [
219
+ // {
220
+ // definitionExpression: "shrt > 0",
221
+ // id: 1901793260225,
222
+ // index: 0,
223
+ // name: "Like greater than 0",
224
+ // active: false
225
+ // }
226
+ // ]
227
+ // }
228
+ // ];
229
229
  //Set the reporting layer options, layers from this object with reporting set to true will only be shown in layer list
230
- //if all the layers from map should be considered for reporting then pass true for each layer
230
+ //if all the layers from map should be considered for reporting then pass true for each layer
231
231
  demo.reportingOptions = {
232
- "Requests_681":{
233
- reporting: true,
234
- comment: false,
235
- like: false,
236
- likeField: "Like_field",
237
- dislike: false,
238
- dislikeField: "Dislike_field",
239
- visible: false
240
- },
241
- "18cdb191817-layer-5": {
242
- reporting: true,
243
- comment: false,
244
- like: true,
245
- likeField: "Like_field",
246
- dislike: true,
247
- dislikeField: "Dislike_field",
248
- visible: false
232
+ "19055a4633a-layer-11": {
233
+ "visible": true,
234
+ "reporting": true,
235
+ "comment": true,
236
+ "like": false,
237
+ "dislike": false
249
238
  },
250
- "18f056682a4-layer-12":{
251
- reporting: true,
252
- comment: false,
253
- like: true,
254
- likeField: "shrt",
255
- dislike: false,
256
- dislikeField: "dislike_field",
257
- visible: true
239
+ "19055a2a831-layer-7": {
240
+ "visible": true,
241
+ "reporting": true,
242
+ "comment": false,
243
+ "like": false,
244
+ "dislike": false
258
245
  },
259
- "18f2a1562a5-layer-3": {
260
- reporting: true,
261
- comment: true,
262
- like: true,
263
- likeField: "like_field",
264
- dislike: true,
265
- dislikeField: "dislike_field",
266
- visible: true
267
- },
268
- "18f2a1562a7-layer-4": {
269
- reporting: true,
270
- comment: true,
271
- like: true,
272
- likeField: "like_field",
273
- dislike: true,
274
- dislikeField: "dislike_field",
275
- visible: true
276
- },
277
- "18f2a1562a7-layer-5": {
278
- reporting: false,
279
- comment: true,
280
- like: true,
281
- likeField: "like_field",
282
- dislike: true,
283
- dislikeField: "dislike_field",
284
- visible: true
285
- },
286
- "18f2a1562a8-layer-6": {
287
- reporting: true,
288
- comment: true,
289
- like: true,
290
- likeField: "like_field",
291
- dislike: true,
292
- dislikeField: "dislike_field",
293
- visible: true
294
- },
295
- "18f2a1562a8-layer-7": {
296
- reporting: true,
297
- comment: true,
298
- like: true,
299
- likeField: "like_field",
300
- dislike: true,
301
- dislikeField: "dislike_field"
246
+ "19055a2a735-layer-3": {
247
+ "visible": true,
248
+ "reporting": true,
249
+ "comment": false,
250
+ "like": false,
251
+ "dislike": false
302
252
  }
303
- }
253
+ };
304
254
  //Select reporting layers -
305
255
  //demo.layers = ['SE_field_mapping_9688', 'SE_field_mapping_5784', 'SE_field_mapping_1853']; //Se mapping
306
256
  //demo.layers = ['Three_Layers_nested_4042', 'SE_sort_2889', 'SE_sort_756']; //screening layers
@@ -225,7 +225,7 @@ const CreateFeature = /*@__PURE__*/ proxyCustomElement(class CreateFeature exten
225
225
  const loaderClass = this._editorLoading ? "" : "display-none";
226
226
  const featureFormClass = this._editorLoading ? "display-none" : "";
227
227
  const mobileMapClass = this.isMobile ? "show-map" : "display-none";
228
- return (h(Fragment, { key: '47d29e529402482acf3811c37c0cd5a426ed40ed' }, h("calcite-loader", { key: '283b2c6a0f1722c9a8d955e11390e65e6041b247', class: loaderClass, label: "", scale: "s" }), h("div", { key: 'bb596467d5da22882932259db6a9e8029717850b', class: featureFormClass, id: "feature-form" }), h("div", { key: 'c3887f5c5aa92efdcf588da4918933dadb87937f', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref" }), h("div", { key: '566069a6202053468a3cf7a221feb071491eabb4', class: `${mobileMapClass}`, ref: (el) => { this._mapViewContainer = el; } })));
228
+ return (h(Fragment, { key: 'aac8fd8fe4ba5d7fb67a2b74a86147e053c1b0b8' }, h("calcite-loader", { key: 'e440bd2e0f4cf5acf4fd6941ada508c8ac5a0380', class: loaderClass, label: "", scale: "s" }), h("div", { key: '055a4e4b30b1fe24e0735257fa54fa9845cbaf2f', class: featureFormClass, id: "feature-form" }), h("div", { key: '342847f06ba99ad3c9693026bc83a8ac18b6c05f', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref" }), h("div", { key: '0acb837b4604d8d590bbfbcd738a3e09a099c362', class: `${mobileMapClass}`, ref: (el) => { this._mapViewContainer = el; } })));
229
229
  }
230
230
  //--------------------------------------------------------------------------
231
231
  //
@@ -329,6 +329,8 @@ const CreateFeature = /*@__PURE__*/ proxyCustomElement(class CreateFeature exten
329
329
  }
330
330
  //Add handle to watch if attachments are added/edited
331
331
  const attachmentHandle = this.reactiveUtils.watch(() => this._editor.viewModel.state, (state) => {
332
+ console.log(`this._editor.viewModel.state: ${state}`);
333
+ console.log(`this._editor.viewModel?.activeWorkflow?.type: ${this._editor.viewModel?.activeWorkflow?.type}`);
332
334
  if (state === 'adding-attachment' || state === 'editing-attachment') {
333
335
  this._addingAttachment = true;
334
336
  this.editingAttachment.emit(true);
@@ -343,7 +345,9 @@ const CreateFeature = /*@__PURE__*/ proxyCustomElement(class CreateFeature exten
343
345
  this._editor.viewModel.addHandles(attachmentHandle);
344
346
  //Add handle to watch featureTemplatesViewModel ready state and then start the creation
345
347
  const handle = this.reactiveUtils.watch(() => this._editor.viewModel.featureTemplatesViewModel.state, (state) => {
346
- if (state === 'ready') {
348
+ console.log(`this._editor.viewModel.featureTemplatesViewModel.state: ${state}`);
349
+ console.log(`this._editor.viewModel?.activeWorkflow?.type: ${this._editor.viewModel?.activeWorkflow?.type}`);
350
+ if (state === 'ready' && this._editor.viewModel?.activeWorkflow?.type !== "create-features") {
347
351
  this.progressStatus.emit(0.5);
348
352
  this._editorLoading = true;
349
353
  }
@@ -362,9 +366,10 @@ const CreateFeature = /*@__PURE__*/ proxyCustomElement(class CreateFeature exten
362
366
  this._editor.viewModel.addHandles(formHandle);
363
367
  //Add handle to watch editor viewmodel state and then show the search widget
364
368
  const createFeatureHandle = this.reactiveUtils.watch(() => this._editor.viewModel.state, (state) => {
369
+ console.log(`==============================this._editor.viewModel.state: ${state}`);
365
370
  if (state === 'creating-features') {
366
371
  this._mapViewContainer?.classList?.replace("hide-map", "show-map");
367
- this._editorLoading = true;
372
+ //this._editorLoading = true;
368
373
  this._showSearchWidget = true;
369
374
  }
370
375
  });
@@ -375,7 +380,8 @@ const CreateFeature = /*@__PURE__*/ proxyCustomElement(class CreateFeature exten
375
380
  * @protected
376
381
  */
377
382
  async startCreate() {
378
- // hides the header elements on template picker page
383
+ console.log("========================startCreate==============================");
384
+ // hides the header elements on template picker page
379
385
  await this.hideEditorsElements();
380
386
  return new Promise((resolve, reject) => {
381
387
  if (this._editor.viewModel.featureTemplatesViewModel.items?.length) {
@@ -563,7 +563,7 @@ const CreateFeature = class {
563
563
  const loaderClass = this._editorLoading ? "" : "display-none";
564
564
  const featureFormClass = this._editorLoading ? "display-none" : "";
565
565
  const mobileMapClass = this.isMobile ? "show-map" : "display-none";
566
- return (h(Fragment, { key: '47d29e529402482acf3811c37c0cd5a426ed40ed' }, h("calcite-loader", { key: '283b2c6a0f1722c9a8d955e11390e65e6041b247', class: loaderClass, label: "", scale: "s" }), h("div", { key: 'bb596467d5da22882932259db6a9e8029717850b', class: featureFormClass, id: "feature-form" }), h("div", { key: 'c3887f5c5aa92efdcf588da4918933dadb87937f', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref" }), h("div", { key: '566069a6202053468a3cf7a221feb071491eabb4', class: `${mobileMapClass}`, ref: (el) => { this._mapViewContainer = el; } })));
566
+ return (h(Fragment, { key: 'aac8fd8fe4ba5d7fb67a2b74a86147e053c1b0b8' }, h("calcite-loader", { key: 'e440bd2e0f4cf5acf4fd6941ada508c8ac5a0380', class: loaderClass, label: "", scale: "s" }), h("div", { key: '055a4e4b30b1fe24e0735257fa54fa9845cbaf2f', class: featureFormClass, id: "feature-form" }), h("div", { key: '342847f06ba99ad3c9693026bc83a8ac18b6c05f', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref" }), h("div", { key: '0acb837b4604d8d590bbfbcd738a3e09a099c362', class: `${mobileMapClass}`, ref: (el) => { this._mapViewContainer = el; } })));
567
567
  }
568
568
  //--------------------------------------------------------------------------
569
569
  //
@@ -667,6 +667,8 @@ const CreateFeature = class {
667
667
  }
668
668
  //Add handle to watch if attachments are added/edited
669
669
  const attachmentHandle = this.reactiveUtils.watch(() => this._editor.viewModel.state, (state) => {
670
+ console.log(`this._editor.viewModel.state: ${state}`);
671
+ console.log(`this._editor.viewModel?.activeWorkflow?.type: ${this._editor.viewModel?.activeWorkflow?.type}`);
670
672
  if (state === 'adding-attachment' || state === 'editing-attachment') {
671
673
  this._addingAttachment = true;
672
674
  this.editingAttachment.emit(true);
@@ -681,7 +683,9 @@ const CreateFeature = class {
681
683
  this._editor.viewModel.addHandles(attachmentHandle);
682
684
  //Add handle to watch featureTemplatesViewModel ready state and then start the creation
683
685
  const handle = this.reactiveUtils.watch(() => this._editor.viewModel.featureTemplatesViewModel.state, (state) => {
684
- if (state === 'ready') {
686
+ console.log(`this._editor.viewModel.featureTemplatesViewModel.state: ${state}`);
687
+ console.log(`this._editor.viewModel?.activeWorkflow?.type: ${this._editor.viewModel?.activeWorkflow?.type}`);
688
+ if (state === 'ready' && this._editor.viewModel?.activeWorkflow?.type !== "create-features") {
685
689
  this.progressStatus.emit(0.5);
686
690
  this._editorLoading = true;
687
691
  }
@@ -700,9 +704,10 @@ const CreateFeature = class {
700
704
  this._editor.viewModel.addHandles(formHandle);
701
705
  //Add handle to watch editor viewmodel state and then show the search widget
702
706
  const createFeatureHandle = this.reactiveUtils.watch(() => this._editor.viewModel.state, (state) => {
707
+ console.log(`==============================this._editor.viewModel.state: ${state}`);
703
708
  if (state === 'creating-features') {
704
709
  this._mapViewContainer?.classList?.replace("hide-map", "show-map");
705
- this._editorLoading = true;
710
+ //this._editorLoading = true;
706
711
  this._showSearchWidget = true;
707
712
  }
708
713
  });
@@ -713,7 +718,8 @@ const CreateFeature = class {
713
718
  * @protected
714
719
  */
715
720
  async startCreate() {
716
- // hides the header elements on template picker page
721
+ console.log("========================startCreate==============================");
722
+ // hides the header elements on template picker page
717
723
  await this.hideEditorsElements();
718
724
  return new Promise((resolve, reject) => {
719
725
  if (this._editor.viewModel.featureTemplatesViewModel.items?.length) {