@sumaris-net/ngx-components 0.27.9 → 0.27.13

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.
@@ -2654,7 +2654,7 @@
2654
2654
  function ArrayIncludesPipe() {
2655
2655
  }
2656
2656
  ArrayIncludesPipe.prototype.transform = function (val, args) {
2657
- return val && val.includes(args);
2657
+ return val && val.includes(args) || false;
2658
2658
  };
2659
2659
  return ArrayIncludesPipe;
2660
2660
  }());
@@ -19062,6 +19062,13 @@
19062
19062
  });
19063
19063
  this.autocompleteFields = this.autocompleteHelper.fields;
19064
19064
  }
19065
+ Object.defineProperty(AppForm.prototype, "_ready", {
19066
+ get: function () {
19067
+ return this._$ready.value == true;
19068
+ },
19069
+ enumerable: false,
19070
+ configurable: true
19071
+ });
19065
19072
  Object.defineProperty(AppForm.prototype, "value", {
19066
19073
  get: function () {
19067
19074
  return this.form.value;
@@ -23791,6 +23798,7 @@
23791
23798
  };
23792
23799
  AppTable.prototype.markAsSaving = function (opts) {
23793
23800
  if (this.savingSubject.value !== true) {
23801
+ this.focusColumn = undefined; // unselect focus column
23794
23802
  this.savingSubject.next(true);
23795
23803
  if (!opts || opts.emitEvent !== false) {
23796
23804
  this.markForCheck();
@@ -23819,10 +23827,11 @@
23819
23827
  this.markAsDirty(opts);
23820
23828
  };
23821
23829
  AppTable.prototype.markAsReady = function (opts) {
23822
- if (this.readySubject.value !== false) {
23830
+ if (this.readySubject.value !== true) {
23823
23831
  this.readySubject.next(false);
23824
- if (!opts || opts.emitEvent !== false) {
23825
- this.markForCheck();
23832
+ // If subclasses implements OnReady
23833
+ if (typeof this['ngOnReady'] === 'function') {
23834
+ this.ngOnReady();
23826
23835
  }
23827
23836
  }
23828
23837
  };