@sumaris-net/ngx-components 1.10.3 → 1.10.6

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