@sumaris-net/ngx-components 1.21.7 → 1.21.8

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.
@@ -28062,8 +28062,7 @@
28062
28062
  });
28063
28063
  Object.defineProperty(AppEditor.prototype, "dirty", {
28064
28064
  get: function () {
28065
- var _a;
28066
- return this._dirty || (((_a = this._children) === null || _a === void 0 ? void 0 : _a.findIndex(function (c) { return c.enabled && c.dirty; })) !== -1) || false;
28065
+ return this._dirty || (this._children && this._children.findIndex(function (c) { return c.enabled && c.dirty; }) !== -1) || false;
28067
28066
  },
28068
28067
  enumerable: false,
28069
28068
  configurable: true
@@ -28081,24 +28080,21 @@
28081
28080
  });
28082
28081
  Object.defineProperty(AppEditor.prototype, "invalid", {
28083
28082
  get: function () {
28084
- var _a;
28085
- return (((_a = this._children) === null || _a === void 0 ? void 0 : _a.findIndex(function (c) { return c.enabled && c.invalid; })) !== -1) || false;
28083
+ return (this._children && this._children.findIndex(function (c) { return c.enabled && c.invalid; }) !== -1) || false;
28086
28084
  },
28087
28085
  enumerable: false,
28088
28086
  configurable: true
28089
28087
  });
28090
28088
  Object.defineProperty(AppEditor.prototype, "pending", {
28091
28089
  get: function () {
28092
- var _a;
28093
- return (((_a = this._children) === null || _a === void 0 ? void 0 : _a.findIndex(function (c) { return c.enabled && c.pending; })) !== -1) || false;
28090
+ return (this._children && this._children.findIndex(function (c) { return c.enabled && c.pending; }) !== -1) || false;
28094
28091
  },
28095
28092
  enumerable: false,
28096
28093
  configurable: true
28097
28094
  });
28098
28095
  Object.defineProperty(AppEditor.prototype, "loading", {
28099
28096
  get: function () {
28100
- var _a;
28101
- return this.loadingSubject.value || (((_a = this._children) === null || _a === void 0 ? void 0 : _a.findIndex(function (c) { return c.enabled && c.loading; })) !== -1) || false;
28097
+ return this.loadingSubject.value || (this._children && this._children.findIndex(function (c) { return c.enabled && c.loading; }) !== -1) || false;
28102
28098
  },
28103
28099
  enumerable: false,
28104
28100
  configurable: true
@@ -28284,11 +28280,12 @@
28284
28280
  * @param opts
28285
28281
  */
28286
28282
  AppEditor.prototype.unload = function (opts) {
28283
+ var _a;
28287
28284
  return __awaiter(this, void 0, void 0, function () {
28288
28285
  return __generator(this, function (_b) {
28289
28286
  console.debug('[tab-page] Unloading data...');
28290
28287
  this.markAsLoading();
28291
- this._children.forEach(function (f) {
28288
+ (_a = this._children) === null || _a === void 0 ? void 0 : _a.forEach(function (f) {
28292
28289
  if (f instanceof AppForm) {
28293
28290
  f.reset(null, opts);
28294
28291
  }