@sumaris-net/ngx-components 0.15.2 → 0.15.3

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.
@@ -24435,10 +24435,10 @@
24435
24435
  this._subscription = new rxjs.Subscription();
24436
24436
  this._enabled = false;
24437
24437
  this._dirty = false;
24438
+ this._loading = true;
24438
24439
  this.debug = false;
24439
24440
  this.selectedTabIndex = 0;
24440
24441
  this.submitted = false;
24441
- this.loading = true;
24442
24442
  this.toolbar = null;
24443
24443
  this.formButtonsBar = null;
24444
24444
  options = Object.assign({ tabCount: 1, tabGroupAnimationDuration: '200ms', enableSwipe: true }, options);
@@ -24485,6 +24485,13 @@
24485
24485
  enumerable: false,
24486
24486
  configurable: true
24487
24487
  });
24488
+ Object.defineProperty(AppTabEditor.prototype, "loading", {
24489
+ get: function () {
24490
+ return this._loading || this._children && this._children.find(function (c) { return c.loading; }) && true;
24491
+ },
24492
+ enumerable: false,
24493
+ configurable: true
24494
+ });
24488
24495
  Object.defineProperty(AppTabEditor.prototype, "enabled", {
24489
24496
  get: function () {
24490
24497
  return this._enabled;
@@ -24602,15 +24609,15 @@
24602
24609
  this.markForCheck();
24603
24610
  };
24604
24611
  AppTabEditor.prototype.markAsLoading = function (opts) {
24605
- if (!this.loading) {
24606
- this.loading = true;
24612
+ if (!this._loading) {
24613
+ this._loading = true;
24607
24614
  if (!opts || opts.emitEvent !== false)
24608
24615
  this.markForCheck();
24609
24616
  }
24610
24617
  };
24611
24618
  AppTabEditor.prototype.markAsLoaded = function (opts) {
24612
- if (this.loading) {
24613
- this.loading = false;
24619
+ if (this._loading) {
24620
+ this._loading = false;
24614
24621
  if (!opts || opts.emitEvent !== false)
24615
24622
  this.markForCheck();
24616
24623
  }
@@ -24700,7 +24707,7 @@
24700
24707
  return __awaiter(this, void 0, void 0, function () {
24701
24708
  return __generator(this, function (_a) {
24702
24709
  console.debug('[tab-page] Unloading data...');
24703
- this.loading = true;
24710
+ this._loading = true;
24704
24711
  this.selectedTabIndex = 0;
24705
24712
  this._children.forEach(function (f) {
24706
24713
  if (f instanceof AppForm) {
@@ -25580,7 +25587,7 @@
25580
25587
  return __generator(this, function (_a) {
25581
25588
  switch (_a.label) {
25582
25589
  case 0:
25583
- this.loading = true;
25590
+ this._loading = true;
25584
25591
  return [4 /*yield*/, this.load(this.data && this.data.id)];
25585
25592
  case 1:
25586
25593
  _a.sent();