@sumaris-net/ngx-components 1.10.2 → 1.10.5

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.
@@ -10672,11 +10672,11 @@
10672
10672
  },
10673
10673
  account: {
10674
10674
  enableListenChanges: true,
10675
- listenIntervalInSeconds: 30
10675
+ listenIntervalInSeconds: 60
10676
10676
  },
10677
10677
  entityEditor: {
10678
10678
  enableListenChanges: true,
10679
- listenIntervalInSeconds: 30
10679
+ listenIntervalInSeconds: 60
10680
10680
  }
10681
10681
  });
10682
10682
 
@@ -16692,7 +16692,7 @@
16692
16692
  }(BaseGraphqlService));
16693
16693
  AccountService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountService_Factory() { return new AccountService(i0__namespace.ɵɵinject(CryptoService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(GraphqlService), i0__namespace.ɵɵinject(LocalSettingsService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(FileService), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService, 8), i0__namespace.ɵɵinject(i1__namespace$4.ToastController, 8), i0__namespace.ɵɵinject(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
16694
16694
  AccountService.decorators = [
16695
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
16695
+ { type: i0.Injectable, args: [{ providedIn: 'root', deps: [ENVIRONMENT] },] }
16696
16696
  ];
16697
16697
  AccountService.ctorParameters = function () { return [
16698
16698
  { type: CryptoService },
@@ -23630,7 +23630,9 @@
23630
23630
  console.info('[core] Creating module (root)');
23631
23631
  return {
23632
23632
  ngModule: CoreModule,
23633
- providers: [PlatformService]
23633
+ providers: [
23634
+ PlatformService
23635
+ ]
23634
23636
  };
23635
23637
  };
23636
23638
  return CoreModule;
@@ -27296,7 +27298,9 @@
27296
27298
  var AppEntityEditor = /** @class */ (function (_super) {
27297
27299
  __extends(AppEntityEditor, _super);
27298
27300
  function AppEntityEditor(injector, dataType, dataService, options) {
27299
- var _this = _super.call(this, injector.get(i3.ActivatedRoute), injector.get(i3.Router), injector.get(i1$5.AlertController), injector.get(i1$2.TranslateService), options) || this;
27301
+ var _this = this;
27302
+ var _a, _b;
27303
+ _this = _super.call(this, injector.get(i3.ActivatedRoute), injector.get(i3.Router), injector.get(i1$5.AlertController), injector.get(i1$2.TranslateService), options) || this;
27300
27304
  _this.dataType = dataType;
27301
27305
  _this.dataService = dataService;
27302
27306
  _this.saving = false;
@@ -27305,7 +27309,7 @@
27305
27309
  _this.environement = injector.get(ENVIRONMENT);
27306
27310
  options = Object.assign({
27307
27311
  // Default options
27308
- enableListenChanges: !_this.environement.entityEditor || _this.environement.entityEditor.enableListenChanges !== false, listenIntervalInSeconds: toNumber(_this.environement.entityEditor && _this.environement.entityEditor.listenIntervalInSeconds, 0), pathIdAttribute: 'id', autoLoad: true, autoUpdateRoute: true, i18nPrefix: ''
27312
+ enableListenChanges: ((_a = _this.environement.entityEditor) === null || _a === void 0 ? void 0 : _a.enableListenChanges) || false, listenIntervalInSeconds: toNumber((_b = _this.environement.entityEditor) === null || _b === void 0 ? void 0 : _b.listenIntervalInSeconds, 0), pathIdAttribute: 'id', autoLoad: true, autoUpdateRoute: true, i18nPrefix: ''
27309
27313
  }, options);
27310
27314
  _this.settings = injector.get(LocalSettingsService);
27311
27315
  _this.errorTranslator = injector.get(FormErrorTranslator);
@@ -27440,27 +27444,27 @@
27440
27444
  AppEntityEditor.prototype.load = function (id, opts) {
27441
27445
  return __awaiter(this, void 0, void 0, function () {
27442
27446
  var data, err_1, data, err_2;
27443
- return __generator(this, function (_b) {
27444
- switch (_b.label) {
27447
+ return __generator(this, function (_c) {
27448
+ switch (_c.label) {
27445
27449
  case 0:
27446
27450
  if (!this.dataService)
27447
27451
  throw new Error('Cannot load data: missing \'dataService\'!');
27448
27452
  this.resetError();
27449
27453
  if (!isNil(id)) return [3 /*break*/, 7];
27450
- _b.label = 1;
27454
+ _c.label = 1;
27451
27455
  case 1:
27452
- _b.trys.push([1, 4, 5, 6]);
27456
+ _c.trys.push([1, 4, 5, 6]);
27453
27457
  data = new this.dataType();
27454
27458
  this._usageMode = this.computeUsageMode(data);
27455
27459
  return [4 /*yield*/, this.onNewEntity(data, opts)];
27456
27460
  case 2:
27457
- _b.sent();
27461
+ _c.sent();
27458
27462
  return [4 /*yield*/, this.updateView(data, Object.assign({ openTabIndex: 0 }, opts))];
27459
27463
  case 3:
27460
- _b.sent();
27464
+ _c.sent();
27461
27465
  return [3 /*break*/, 6];
27462
27466
  case 4:
27463
- err_1 = _b.sent();
27467
+ err_1 = _c.sent();
27464
27468
  this.setError(err_1, { emitEvent: false });
27465
27469
  this.selectedTabIndex = 0;
27466
27470
  return [3 /*break*/, 6];
@@ -27469,23 +27473,23 @@
27469
27473
  return [7 /*endfinally*/];
27470
27474
  case 6: return [3 /*break*/, 13];
27471
27475
  case 7:
27472
- _b.trys.push([7, 11, 12, 13]);
27476
+ _c.trys.push([7, 11, 12, 13]);
27473
27477
  return [4 /*yield*/, this.dataService.load(id, opts)];
27474
27478
  case 8:
27475
- data = _b.sent();
27479
+ data = _c.sent();
27476
27480
  if (!data)
27477
27481
  throw { code: ErrorCodes$2.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
27478
27482
  this._usageMode = this.computeUsageMode(data);
27479
27483
  return [4 /*yield*/, this.onEntityLoaded(data, opts)];
27480
27484
  case 9:
27481
- _b.sent();
27485
+ _c.sent();
27482
27486
  return [4 /*yield*/, this.updateView(data, opts)];
27483
27487
  case 10:
27484
- _b.sent();
27488
+ _c.sent();
27485
27489
  this.startListenRemoteChanges();
27486
27490
  return [3 /*break*/, 13];
27487
27491
  case 11:
27488
- err_2 = _b.sent();
27492
+ err_2 = _c.sent();
27489
27493
  this.setError(err_2);
27490
27494
  this.selectedTabIndex = 0;
27491
27495
  return [3 /*break*/, 13];
@@ -27533,8 +27537,8 @@
27533
27537
  return __awaiter(this, void 0, void 0, function () {
27534
27538
  var idChanged, promiseOrVoid;
27535
27539
  var _this = this;
27536
- return __generator(this, function (_b) {
27537
- switch (_b.label) {
27540
+ return __generator(this, function (_c) {
27541
+ switch (_c.label) {
27538
27542
  case 0:
27539
27543
  idChanged = isNotNil(data.id)
27540
27544
  && this.previousDataId !== undefined // Ignore if first loading (=undefined)
@@ -27544,13 +27548,13 @@
27544
27548
  this.previousDataId = data.id || null;
27545
27549
  return [4 /*yield*/, this.ready()];
27546
27550
  case 1:
27547
- _b.sent();
27551
+ _c.sent();
27548
27552
  promiseOrVoid = this.setValue(data);
27549
27553
  if (!promiseOrVoid) return [3 /*break*/, 3];
27550
27554
  return [4 /*yield*/, promiseOrVoid];
27551
27555
  case 2:
27552
- _b.sent();
27553
- _b.label = 3;
27556
+ _c.sent();
27557
+ _c.label = 3;
27554
27558
  case 3:
27555
27559
  if (!opts || opts.emitEvent !== false) {
27556
27560
  this.markAsPristine();
@@ -27594,8 +27598,8 @@
27594
27598
  AppEntityEditor.prototype.updateTabAndRoute = function (data, opts) {
27595
27599
  return __awaiter(this, void 0, void 0, function () {
27596
27600
  var forcedQueryParams;
27597
- return __generator(this, function (_b) {
27598
- switch (_b.label) {
27601
+ return __generator(this, function (_c) {
27602
+ switch (_c.label) {
27599
27603
  case 0:
27600
27604
  this.queryParams = this.queryParams || {};
27601
27605
  // Open the next tab
@@ -27610,18 +27614,18 @@
27610
27614
  queryParams: Object.assign(Object.assign({}, this.queryParams), forcedQueryParams)
27611
27615
  })];
27612
27616
  case 1:
27613
- _b.sent();
27617
+ _c.sent();
27614
27618
  return [3 /*break*/, 4];
27615
27619
  case 2: return [4 /*yield*/, this.router.navigate(['..', 'new'], {
27616
27620
  relativeTo: this.route,
27617
27621
  queryParams: Object.assign(Object.assign({}, this.queryParams), forcedQueryParams)
27618
27622
  })];
27619
27623
  case 3:
27620
- _b.sent();
27621
- _b.label = 4;
27624
+ _c.sent();
27625
+ _c.label = 4;
27622
27626
  case 4: return [4 /*yield*/, this.updateRoute(data, this.queryParams)];
27623
27627
  case 5:
27624
- _b.sent();
27628
+ _c.sent();
27625
27629
  return [2 /*return*/];
27626
27630
  }
27627
27631
  });
@@ -27639,16 +27643,16 @@
27639
27643
  AppEntityEditor.prototype.saveAndClose = function (event, options) {
27640
27644
  return __awaiter(this, void 0, void 0, function () {
27641
27645
  var saved;
27642
- return __generator(this, function (_b) {
27643
- switch (_b.label) {
27646
+ return __generator(this, function (_c) {
27647
+ switch (_c.label) {
27644
27648
  case 0: return [4 /*yield*/, this.save(event)];
27645
27649
  case 1:
27646
- saved = _b.sent();
27650
+ saved = _c.sent();
27647
27651
  if (!saved) return [3 /*break*/, 3];
27648
27652
  return [4 /*yield*/, this.close(event)];
27649
27653
  case 2:
27650
- _b.sent();
27651
- _b.label = 3;
27654
+ _c.sent();
27655
+ _c.label = 3;
27652
27656
  case 3: return [2 /*return*/, saved];
27653
27657
  }
27654
27658
  });
@@ -27656,7 +27660,7 @@
27656
27660
  };
27657
27661
  AppEntityEditor.prototype.close = function (event) {
27658
27662
  return __awaiter(this, void 0, void 0, function () {
27659
- return __generator(this, function (_b) {
27663
+ return __generator(this, function (_c) {
27660
27664
  if (event) {
27661
27665
  if (event.defaultPrevented)
27662
27666
  return [2 /*return*/];
@@ -27676,8 +27680,8 @@
27676
27680
  AppEntityEditor.prototype.save = function (event, opts) {
27677
27681
  return __awaiter(this, void 0, void 0, function () {
27678
27682
  var data, updatedData, err_3;
27679
- return __generator(this, function (_b) {
27680
- switch (_b.label) {
27683
+ return __generator(this, function (_c) {
27684
+ switch (_c.label) {
27681
27685
  case 0:
27682
27686
  if (this.loading || this.saving) {
27683
27687
  console.debug('[data-editor] Skip save: editor is busy (loading or saving)');
@@ -27691,7 +27695,7 @@
27691
27695
  return [4 /*yield*/, this.waitWhilePending()];
27692
27696
  case 1:
27693
27697
  // Wait end of async validation
27694
- _b.sent();
27698
+ _c.sent();
27695
27699
  // If invalid
27696
27700
  if (this.invalid) {
27697
27701
  this.markAllAsTouched();
@@ -27704,31 +27708,31 @@
27704
27708
  this.resetError();
27705
27709
  if (this.debug)
27706
27710
  console.debug('[data-editor] Saving data...');
27707
- _b.label = 2;
27711
+ _c.label = 2;
27708
27712
  case 2:
27709
- _b.trys.push([2, 7, 8, 9]);
27713
+ _c.trys.push([2, 7, 8, 9]);
27710
27714
  return [4 /*yield*/, this.getValue()];
27711
27715
  case 3:
27712
- data = _b.sent();
27716
+ data = _c.sent();
27713
27717
  this.disable();
27714
27718
  return [4 /*yield*/, this.dataService.save(data, opts)];
27715
27719
  case 4:
27716
- updatedData = _b.sent();
27720
+ updatedData = _c.sent();
27717
27721
  return [4 /*yield*/, this.onEntitySaved(updatedData)];
27718
27722
  case 5:
27719
- _b.sent();
27723
+ _c.sent();
27720
27724
  // Update the view (e.g metadata)
27721
27725
  return [4 /*yield*/, this.updateView(updatedData, opts)];
27722
27726
  case 6:
27723
27727
  // Update the view (e.g metadata)
27724
- _b.sent();
27728
+ _c.sent();
27725
27729
  // Subscribe to remote changes
27726
27730
  if (!this._listenChangesSubscription)
27727
27731
  this.startListenRemoteChanges();
27728
27732
  this.submitted = false;
27729
27733
  return [2 /*return*/, true];
27730
27734
  case 7:
27731
- err_3 = _b.sent();
27735
+ err_3 = _c.sent();
27732
27736
  this.submitted = true;
27733
27737
  this.setError(err_3);
27734
27738
  this.selectedTabIndex = 0;
@@ -27757,29 +27761,29 @@
27757
27761
  AppEntityEditor.prototype.saveAndGetDataIfValid = function () {
27758
27762
  return __awaiter(this, void 0, void 0, function () {
27759
27763
  var saved;
27760
- return __generator(this, function (_b) {
27761
- switch (_b.label) {
27764
+ return __generator(this, function (_c) {
27765
+ switch (_c.label) {
27762
27766
  case 0:
27763
27767
  if (!!this.valid) return [3 /*break*/, 2];
27764
27768
  // Make sure validation is finished
27765
27769
  return [4 /*yield*/, AppFormUtils.waitWhilePending(this)];
27766
27770
  case 1:
27767
27771
  // Make sure validation is finished
27768
- _b.sent();
27772
+ _c.sent();
27769
27773
  // If invalid: Open the first tab in error
27770
27774
  if (this.invalid) {
27771
27775
  this.openFirstInvalidTab();
27772
27776
  return [2 /*return*/, undefined];
27773
27777
  }
27774
- _b.label = 2;
27778
+ _c.label = 2;
27775
27779
  case 2:
27776
27780
  if (!this.dirty) return [3 /*break*/, 4];
27777
27781
  return [4 /*yield*/, this.save(new Event('save'))];
27778
27782
  case 3:
27779
- saved = _b.sent();
27783
+ saved = _c.sent();
27780
27784
  if (!saved)
27781
27785
  return [2 /*return*/, undefined];
27782
- _b.label = 4;
27786
+ _c.label = 4;
27783
27787
  case 4:
27784
27788
  // Valid and saved data
27785
27789
  return [2 /*return*/, this.data];
@@ -27791,40 +27795,40 @@
27791
27795
  return __awaiter(this, void 0, void 0, function () {
27792
27796
  var confirmation, data, isNew, err_4;
27793
27797
  var _this = this;
27794
- return __generator(this, function (_b) {
27795
- switch (_b.label) {
27798
+ return __generator(this, function (_c) {
27799
+ switch (_c.label) {
27796
27800
  case 0:
27797
27801
  if (this.loading || this.saving)
27798
27802
  return [2 /*return*/, false];
27799
27803
  return [4 /*yield*/, Alerts.askDeleteConfirmation(this.alertCtrl, this.translate)];
27800
27804
  case 1:
27801
- confirmation = _b.sent();
27805
+ confirmation = _c.sent();
27802
27806
  if (!confirmation)
27803
27807
  return [2 /*return*/];
27804
27808
  console.debug('[data-editor] Asking to delete...');
27805
27809
  this.markAsSaving();
27806
27810
  this.resetError();
27807
- _b.label = 2;
27811
+ _c.label = 2;
27808
27812
  case 2:
27809
- _b.trys.push([2, 7, , 8]);
27813
+ _c.trys.push([2, 7, , 8]);
27810
27814
  return [4 /*yield*/, this.getValue()];
27811
27815
  case 3:
27812
- data = _b.sent();
27816
+ data = _c.sent();
27813
27817
  isNew = this.isNewData;
27814
27818
  this.disable();
27815
27819
  if (!!isNew) return [3 /*break*/, 5];
27816
27820
  return [4 /*yield*/, this.dataService.delete(data)];
27817
27821
  case 4:
27818
- _b.sent();
27819
- _b.label = 5;
27822
+ _c.sent();
27823
+ _c.label = 5;
27820
27824
  case 5: return [4 /*yield*/, this.onEntityDeleted(data)];
27821
27825
  case 6:
27822
- _b.sent();
27826
+ _c.sent();
27823
27827
  // Remove page history
27824
27828
  this.removePageHistory();
27825
27829
  return [3 /*break*/, 8];
27826
27830
  case 7:
27827
- err_4 = _b.sent();
27831
+ err_4 = _c.sent();
27828
27832
  this.submitted = true;
27829
27833
  this.setError(err_4);
27830
27834
  this.selectedTabIndex = 0;
@@ -27836,7 +27840,7 @@
27836
27840
  return [4 /*yield*/, setTimeout(function () { return _this.goBack(); }, 500)];
27837
27841
  case 9:
27838
27842
  // Wait, then go back (wait is need in order to update back href is need)
27839
- _b.sent();
27843
+ _c.sent();
27840
27844
  return [2 /*return*/, true];
27841
27845
  }
27842
27846
  });
@@ -27844,13 +27848,13 @@
27844
27848
  };
27845
27849
  AppEntityEditor.prototype.reload = function () {
27846
27850
  return __awaiter(this, void 0, void 0, function () {
27847
- return __generator(this, function (_b) {
27848
- switch (_b.label) {
27851
+ return __generator(this, function (_c) {
27852
+ switch (_c.label) {
27849
27853
  case 0:
27850
27854
  this.markAsLoading();
27851
27855
  return [4 /*yield*/, this.load(this.data && this.data.id)];
27852
27856
  case 1:
27853
- _b.sent();
27857
+ _c.sent();
27854
27858
  return [2 /*return*/];
27855
27859
  }
27856
27860
  });
@@ -27859,7 +27863,7 @@
27859
27863
  AppEntityEditor.prototype.goBack = function (event) {
27860
27864
  var _a;
27861
27865
  return __awaiter(this, void 0, void 0, function () {
27862
- return __generator(this, function (_b) {
27866
+ return __generator(this, function (_c) {
27863
27867
  // Go back
27864
27868
  if ((_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.canGoBack) {
27865
27869
  return [2 /*return*/, this.toolbar.goBack()];
@@ -27920,7 +27924,7 @@
27920
27924
  };
27921
27925
  AppEntityEditor.prototype.unload = function () {
27922
27926
  return __awaiter(this, void 0, void 0, function () {
27923
- return __generator(this, function (_b) {
27927
+ return __generator(this, function (_c) {
27924
27928
  this.stopListenRemoteChanges();
27925
27929
  this.form.reset();
27926
27930
  this.registerForms();
@@ -27933,35 +27937,35 @@
27933
27937
  };
27934
27938
  AppEntityEditor.prototype.onBeforeEntityLoad = function () {
27935
27939
  return __awaiter(this, void 0, void 0, function () {
27936
- return __generator(this, function (_b) {
27940
+ return __generator(this, function (_c) {
27937
27941
  return [2 /*return*/];
27938
27942
  });
27939
27943
  });
27940
27944
  };
27941
27945
  AppEntityEditor.prototype.onNewEntity = function (data, options) {
27942
27946
  return __awaiter(this, void 0, void 0, function () {
27943
- return __generator(this, function (_b) {
27947
+ return __generator(this, function (_c) {
27944
27948
  return [2 /*return*/];
27945
27949
  });
27946
27950
  });
27947
27951
  };
27948
27952
  AppEntityEditor.prototype.onEntityLoaded = function (data, options) {
27949
27953
  return __awaiter(this, void 0, void 0, function () {
27950
- return __generator(this, function (_b) {
27954
+ return __generator(this, function (_c) {
27951
27955
  return [2 /*return*/];
27952
27956
  });
27953
27957
  });
27954
27958
  };
27955
27959
  AppEntityEditor.prototype.onEntitySaved = function (data) {
27956
27960
  return __awaiter(this, void 0, void 0, function () {
27957
- return __generator(this, function (_b) {
27961
+ return __generator(this, function (_c) {
27958
27962
  return [2 /*return*/];
27959
27963
  });
27960
27964
  });
27961
27965
  };
27962
27966
  AppEntityEditor.prototype.onEntityDeleted = function (data) {
27963
27967
  return __awaiter(this, void 0, void 0, function () {
27964
- return __generator(this, function (_b) {
27968
+ return __generator(this, function (_c) {
27965
27969
  return [2 /*return*/];
27966
27970
  });
27967
27971
  });
@@ -27975,11 +27979,11 @@
27975
27979
  AppEntityEditor.prototype.getValue = function () {
27976
27980
  return __awaiter(this, void 0, void 0, function () {
27977
27981
  var json, res;
27978
- return __generator(this, function (_b) {
27979
- switch (_b.label) {
27982
+ return __generator(this, function (_c) {
27983
+ switch (_c.label) {
27980
27984
  case 0: return [4 /*yield*/, this.getJsonValueToSave()];
27981
27985
  case 1:
27982
- json = _b.sent();
27986
+ json = _c.sent();
27983
27987
  res = new this.dataType();
27984
27988
  res.fromObject(json);
27985
27989
  return [2 /*return*/, res];
@@ -27998,18 +28002,18 @@
27998
28002
  AppEntityEditor.prototype.updateTitle = function (data) {
27999
28003
  return __awaiter(this, void 0, void 0, function () {
28000
28004
  var title, page;
28001
- return __generator(this, function (_b) {
28002
- switch (_b.label) {
28005
+ return __generator(this, function (_c) {
28006
+ switch (_c.label) {
28003
28007
  case 0:
28004
28008
  data = data || this.data;
28005
28009
  return [4 /*yield*/, this.computeTitle(data)];
28006
28010
  case 1:
28007
- title = _b.sent();
28011
+ title = _c.sent();
28008
28012
  this.$title.next(title);
28009
28013
  if (!!this.isNewData) return [3 /*break*/, 3];
28010
28014
  return [4 /*yield*/, this.computePageHistory(title)];
28011
28015
  case 2:
28012
- page = _b.sent();
28016
+ page = _c.sent();
28013
28017
  return [2 /*return*/, this.addToPageHistory(page)];
28014
28018
  case 3: return [2 /*return*/];
28015
28019
  }
@@ -28018,7 +28022,7 @@
28018
28022
  };
28019
28023
  AppEntityEditor.prototype.addToPageHistory = function (page, opts) {
28020
28024
  return __awaiter(this, void 0, void 0, function () {
28021
- return __generator(this, function (_b) {
28025
+ return __generator(this, function (_c) {
28022
28026
  if (!page)
28023
28027
  return [2 /*return*/]; // Skip
28024
28028
  return [2 /*return*/, this.settings.addToPageHistory(page, Object.assign({ removePathQueryParams: true, removeTitleSmallTag: true, emitEvent: false }, opts))];
@@ -28027,7 +28031,7 @@
28027
28031
  };
28028
28032
  AppEntityEditor.prototype.computePageHistory = function (title) {
28029
28033
  return __awaiter(this, void 0, void 0, function () {
28030
- return __generator(this, function (_b) {
28034
+ return __generator(this, function (_c) {
28031
28035
  return [2 /*return*/, {
28032
28036
  title: title,
28033
28037
  path: this.router.url
@@ -28037,7 +28041,7 @@
28037
28041
  };
28038
28042
  AppEntityEditor.prototype.removePageHistory = function (opts) {
28039
28043
  return __awaiter(this, void 0, void 0, function () {
28040
- return __generator(this, function (_b) {
28044
+ return __generator(this, function (_c) {
28041
28045
  return [2 /*return*/, this.settings.removePageHistory(this.router.url, opts)];
28042
28046
  });
28043
28047
  });
@@ -28071,8 +28075,8 @@
28071
28075
  AppEntityEditor.prototype.updateRoute = function (data, queryParams) {
28072
28076
  return __awaiter(this, void 0, void 0, function () {
28073
28077
  var path, commands;
28074
- return __generator(this, function (_b) {
28075
- switch (_b.label) {
28078
+ return __generator(this, function (_c) {
28079
+ switch (_c.label) {
28076
28080
  case 0:
28077
28081
  path = this.computePageUrl(isNotNil(data.id) ? data.id : 'new');
28078
28082
  commands = (path && typeof path === 'string') ? path.split('/') : path;
@@ -28081,10 +28085,10 @@
28081
28085
  replaceUrl: true,
28082
28086
  queryParams: this.queryParams
28083
28087
  })];
28084
- case 1: return [2 /*return*/, _b.sent()];
28088
+ case 1: return [2 /*return*/, _c.sent()];
28085
28089
  case 2:
28086
28090
  console.warn('Skip page route update. Invalid page path: ', path);
28087
- _b.label = 3;
28091
+ _c.label = 3;
28088
28092
  case 3: return [2 /*return*/];
28089
28093
  }
28090
28094
  });