@sumaris-net/ngx-components 1.21.0-beta30 → 1.21.0-beta31

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.
@@ -31821,10 +31821,15 @@
31821
31821
  _this.removeJob(progression.id);
31822
31822
  // If last job
31823
31823
  if (_this.autoHide && !((_a = _this.jobProgressions) === null || _a === void 0 ? void 0 : _a.length)) {
31824
- setTimeout(function () {
31825
- _this.visible = false;
31826
- _this.markForCheck();
31827
- }, _this.autoHideDelay);
31824
+ setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
31825
+ var _b;
31826
+ return __generator(this, function (_e) {
31827
+ (_b = this._listPopover) === null || _b === void 0 ? void 0 : _b.dismiss();
31828
+ this.visible = false;
31829
+ this.markForCheck();
31830
+ return [2 /*return*/];
31831
+ });
31832
+ }); }, _this.autoHideDelay);
31828
31833
  }
31829
31834
  }, _this.autoRemoveDelay);
31830
31835
  }
@@ -31874,26 +31879,32 @@
31874
31879
  };
31875
31880
  JobProgressionComponent.prototype.showList = function (event) {
31876
31881
  return __awaiter(this, void 0, void 0, function () {
31877
- var popover;
31878
- return __generator(this, function (_e) {
31879
- switch (_e.label) {
31880
- case 0: return [4 /*yield*/, this.popoverController.create({
31881
- component: JobProgressionList,
31882
- componentProps: {
31883
- titleI18n: this.titleI18n,
31884
- jobProgressions: this.jobProgressions
31885
- },
31886
- backdropDismiss: true,
31887
- keyboardClose: true,
31888
- event: event,
31889
- translucent: true,
31890
- cssClass: 'popover-large'
31891
- })];
31882
+ var _e;
31883
+ return __generator(this, function (_f) {
31884
+ switch (_f.label) {
31885
+ case 0:
31886
+ _e = this;
31887
+ return [4 /*yield*/, this.popoverController.create({
31888
+ component: JobProgressionList,
31889
+ componentProps: {
31890
+ titleI18n: this.titleI18n,
31891
+ jobProgressions: this.jobProgressions
31892
+ },
31893
+ backdropDismiss: true,
31894
+ keyboardClose: true,
31895
+ event: event,
31896
+ translucent: true,
31897
+ cssClass: 'popover-large'
31898
+ })];
31892
31899
  case 1:
31893
- popover = _e.sent();
31894
- return [4 /*yield*/, popover.present()];
31900
+ _e._listPopover = _f.sent();
31901
+ return [4 /*yield*/, this._listPopover.present()];
31895
31902
  case 2:
31896
- _e.sent();
31903
+ _f.sent();
31904
+ return [4 /*yield*/, this._listPopover.onDidDismiss()];
31905
+ case 3:
31906
+ _f.sent();
31907
+ this._listPopover = undefined;
31897
31908
  return [2 /*return*/];
31898
31909
  }
31899
31910
  });