@sumaris-net/ngx-components 1.23.52 → 1.23.54

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.
@@ -20458,6 +20458,14 @@
20458
20458
  this.markForCheck();
20459
20459
  }
20460
20460
  };
20461
+ Object.defineProperty(AppForm.prototype, "destroyed", {
20462
+ get: function () {
20463
+ var _a;
20464
+ return ((_a = this.destroySubject) === null || _a === void 0 ? void 0 : _a.closed) !== false;
20465
+ },
20466
+ enumerable: false,
20467
+ configurable: true
20468
+ });
20461
20469
  Object.defineProperty(AppForm.prototype, "form", {
20462
20470
  get: function () {
20463
20471
  return this._form;
@@ -26965,6 +26973,14 @@
26965
26973
  enumerable: false,
26966
26974
  configurable: true
26967
26975
  });
26976
+ Object.defineProperty(AppTable.prototype, "destroyed", {
26977
+ get: function () {
26978
+ var _a;
26979
+ return ((_a = this.destroySubject) === null || _a === void 0 ? void 0 : _a.closed) !== false;
26980
+ },
26981
+ enumerable: false,
26982
+ configurable: true
26983
+ });
26968
26984
  AppTable.prototype.ngOnInit = function () {
26969
26985
  var _this = this;
26970
26986
  var _a;
@@ -27001,17 +27017,11 @@
27001
27017
  // Propagate row dirty state to table
27002
27018
  this.registerSubscription(this.onStartEditingRow
27003
27019
  .pipe(operators.filter(function (row) { return (row === null || row === void 0 ? void 0 : row.validator) && true; }), operators.mergeMap(function (row) { return row.validator.valueChanges
27004
- .pipe(operators.takeUntil(
27005
- // Stop if next another row, or destroying
27006
- rxjs.combineLatest([
27007
- _this.onStartEditingRow,
27008
- _this.destroySubject
27009
- ])
27020
+ .pipe(operators.map(function () { var _a; return (_a = row.validator) === null || _a === void 0 ? void 0 : _a.dirty; }), operators.filter(function (dirty) { return dirty === true; }), operators.first(),
27010
27021
  // DEBUG
27011
- //.pipe(
27012
- // tap(() => console.debug('TODO stopping previous row listener'))
27013
- //)
27014
- ), operators.map(function () { var _a; return (_a = row.validator) === null || _a === void 0 ? void 0 : _a.dirty; }), operators.filter(function (dirty) { return dirty === true; }), operators.first()); }))
27022
+ //tap(() => console.debug("Propagate row's dirty to table..."))
27023
+ // Stop if next another row, or destroying
27024
+ operators.takeUntil(_this.onStartEditingRow), operators.takeUntil(_this.destroySubject)); }))
27015
27025
  .subscribe(function () { return _this.markAsDirty(); }));
27016
27026
  // Call datasource refresh, on each refresh events
27017
27027
  this.registerSubscription(this.onRefresh
@@ -28610,6 +28620,14 @@
28610
28620
  enumerable: false,
28611
28621
  configurable: true
28612
28622
  });
28623
+ Object.defineProperty(AppEditor.prototype, "destroyed", {
28624
+ get: function () {
28625
+ var _a;
28626
+ return ((_a = this.destroySubject) === null || _a === void 0 ? void 0 : _a.closed) !== false;
28627
+ },
28628
+ enumerable: false,
28629
+ configurable: true
28630
+ });
28613
28631
  Object.defineProperty(AppEditor.prototype, "tables", {
28614
28632
  get: function () {
28615
28633
  return this._children && this._children.filter(function (c) { return c instanceof AppTable; });