@sumaris-net/ngx-components 1.21.0-beta29 → 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.
@@ -31657,6 +31657,7 @@
31657
31657
  }
31658
31658
  JobProgression.prototype.fromObject = function (source) {
31659
31659
  _super.prototype.fromObject.call(this, source);
31660
+ this.name = source.name;
31660
31661
  this.message = source.message;
31661
31662
  this.current = source.current;
31662
31663
  this.total = source.total;
@@ -31668,7 +31669,7 @@
31668
31669
  ], exports.JobProgression);
31669
31670
 
31670
31671
  var JobProgressionServiceToken = new i0.InjectionToken('JobProgressionService');
31671
- var jobProgressionSubscription = core.gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["subscription UpdateJobProgression($id: Int!, $interval: Int){\n data: updateJobProgression(id: $id, interval: $interval) {\n id\n message\n current\n total\n }\n}"], ["subscription UpdateJobProgression($id: Int!, $interval: Int){\n data: updateJobProgression(id: $id, interval: $interval) {\n id\n message\n current\n total\n }\n}"])));
31672
+ var jobProgressionSubscription = core.gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["subscription UpdateJobProgression($id: Int!, $interval: Int){\n data: updateJobProgression(id: $id, interval: $interval) {\n id\n name\n message\n current\n total\n }\n}"], ["subscription UpdateJobProgression($id: Int!, $interval: Int){\n data: updateJobProgression(id: $id, interval: $interval) {\n id\n name\n message\n current\n total\n }\n}"])));
31672
31673
  var JobProgressionService = /** @class */ (function (_super) {
31673
31674
  __extends(JobProgressionService, _super);
31674
31675
  function JobProgressionService(graphql, environment) {
@@ -31720,8 +31721,8 @@
31720
31721
  JobProgressionList.decorators = [
31721
31722
  { type: i0.Component, args: [{
31722
31723
  selector: 'app-job-progression-list',
31723
- template: "<ion-list class=\"ion-list-popover\">\n\n <ion-row class=\"ion-list-header column\">\n <ion-col>\n <ion-label>{{titleI18n | translate}}</ion-label>\n </ion-col>\n </ion-row>\n\n <ion-item *ngIf=\"!jobProgressions?.length\">\n {{'SOCIAL.JOB.PROGRESSION.EMPTY' | translate}}\n </ion-item>\n <ion-item *ngFor=\"let jobProgression of jobProgressions\">\n <ion-grid class=\"ion-no-margin\">\n <ion-row>\n <ion-col>\n {{jobProgression.message}}\n </ion-col>\n </ion-row>\n <ion-row>\n <ion-col>\n <ion-progress-bar\n [value]=\"jobProgression.total > 0 ? jobProgression.current / jobProgression.total : undefined\"\n [type]=\"jobProgression.total > 0 ? 'determinate' : 'indeterminate'\">\n </ion-progress-bar>\n </ion-col>\n </ion-row>\n </ion-grid>\n </ion-item>\n\n</ion-list>\n",
31724
- styles: [":host(.popover-viewport){overflow-y:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}"]
31724
+ template: "<ion-list class=\"ion-list-popover\">\n\n <ion-row class=\"ion-list-header column\">\n <ion-col>\n <ion-label>{{titleI18n | translate}}</ion-label>\n </ion-col>\n </ion-row>\n\n <ion-item *ngIf=\"!jobProgressions?.length\">\n {{'SOCIAL.JOB.PROGRESSION.EMPTY' | translate}}\n </ion-item>\n <ion-item *ngFor=\"let jobProgression of jobProgressions\" class=\"ion-item-job-progression\">\n <ion-grid class=\"ion-no-margin\">\n <ion-row class=\"name\">\n <ion-col>\n {{jobProgression.name}}\n </ion-col>\n </ion-row>\n <ion-row class=\"message\">\n <ion-col>\n {{jobProgression.message}}\n </ion-col>\n </ion-row>\n <ion-row class=\"progress-bar\">\n <ion-col>\n <ion-progress-bar\n [value]=\"jobProgression.total > 0 ? jobProgression.current / jobProgression.total : undefined\"\n [type]=\"jobProgression.total > 0 ? 'determinate' : 'indeterminate'\">\n </ion-progress-bar>\n </ion-col>\n </ion-row>\n </ion-grid>\n </ion-item>\n\n</ion-list>\n",
31725
+ styles: [":host(.popover-viewport){overflow-y:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ion-item-job-progression{font-size:.9em}.ion-item-job-progression .message{font-style:italic}.ion-item-job-progression .progress-bar{margin-top:5px;margin-bottom:5px}"]
31725
31726
  },] }
31726
31727
  ];
31727
31728
  JobProgressionList.ctorParameters = function () { return []; };
@@ -31820,10 +31821,15 @@
31820
31821
  _this.removeJob(progression.id);
31821
31822
  // If last job
31822
31823
  if (_this.autoHide && !((_a = _this.jobProgressions) === null || _a === void 0 ? void 0 : _a.length)) {
31823
- setTimeout(function () {
31824
- _this.visible = false;
31825
- _this.markForCheck();
31826
- }, _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);
31827
31833
  }
31828
31834
  }, _this.autoRemoveDelay);
31829
31835
  }
@@ -31873,26 +31879,32 @@
31873
31879
  };
31874
31880
  JobProgressionComponent.prototype.showList = function (event) {
31875
31881
  return __awaiter(this, void 0, void 0, function () {
31876
- var popover;
31877
- return __generator(this, function (_e) {
31878
- switch (_e.label) {
31879
- case 0: return [4 /*yield*/, this.popoverController.create({
31880
- component: JobProgressionList,
31881
- componentProps: {
31882
- titleI18n: this.titleI18n,
31883
- jobProgressions: this.jobProgressions
31884
- },
31885
- backdropDismiss: true,
31886
- keyboardClose: true,
31887
- event: event,
31888
- translucent: true,
31889
- cssClass: 'popover-large'
31890
- })];
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
+ })];
31891
31899
  case 1:
31892
- popover = _e.sent();
31893
- return [4 /*yield*/, popover.present()];
31900
+ _e._listPopover = _f.sent();
31901
+ return [4 /*yield*/, this._listPopover.present()];
31894
31902
  case 2:
31895
- _e.sent();
31903
+ _f.sent();
31904
+ return [4 /*yield*/, this._listPopover.onDidDismiss()];
31905
+ case 3:
31906
+ _f.sent();
31907
+ this._listPopover = undefined;
31896
31908
  return [2 /*return*/];
31897
31909
  }
31898
31910
  });