@sumaris-net/ngx-components 1.21.6 → 1.21.7

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.
@@ -28053,6 +28053,13 @@
28053
28053
  enumerable: false,
28054
28054
  configurable: true
28055
28055
  });
28056
+ Object.defineProperty(AppEditor.prototype, "editors", {
28057
+ get: function () {
28058
+ return this._children && this._children.filter(function (c) { return c instanceof AppEditor; });
28059
+ },
28060
+ enumerable: false,
28061
+ configurable: true
28062
+ });
28056
28063
  Object.defineProperty(AppEditor.prototype, "dirty", {
28057
28064
  get: function () {
28058
28065
  var _a;
@@ -28154,7 +28161,15 @@
28154
28161
  AppEditor.prototype.addChildForms = function (forms) {
28155
28162
  var _this = this;
28156
28163
  (forms || []).forEach(function (form) { return _this.addChildForm(form); });
28157
- return this;
28164
+ };
28165
+ AppEditor.prototype.removeChildForm = function (form) {
28166
+ if (!form)
28167
+ throw new Error('Trying to remove an undefined child form');
28168
+ var index = (this._children || []).findIndex(function (c) { return c === form; });
28169
+ if (index !== -1) {
28170
+ return this._children.splice(index, 1)[0];
28171
+ }
28172
+ return undefined;
28158
28173
  };
28159
28174
  AppEditor.prototype.disable = function (opts) {
28160
28175
  var _a;