@sumaris-net/ngx-components 1.23.1-rc2 → 1.23.1-rc5

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.
@@ -1056,7 +1056,10 @@
1056
1056
  function filterNotNil(obs) {
1057
1057
  return obs.pipe(operators.filter(isNotNil));
1058
1058
  }
1059
- function firstNotNil(obs) {
1059
+ function firstNotNil(obs, opts) {
1060
+ if ((opts === null || opts === void 0 ? void 0 : opts.timeout) > 0) {
1061
+ obs.pipe(operators.takeUntil(rxjs.timer(opts.timeout)), operators.first(isNotNil));
1062
+ }
1060
1063
  return obs.pipe(operators.first(isNotNil));
1061
1064
  }
1062
1065
  function filterTrue(obs) {
@@ -1067,21 +1070,18 @@
1067
1070
  }
1068
1071
  function firstTruePromise(obs, opts) {
1069
1072
  if ((opts === null || opts === void 0 ? void 0 : opts.timeout) > 0) {
1070
- return obs.pipe(operators.first(function (v) { return v === true; }), operators.takeUntil(rxjs.timer(opts.timeout))).toPromise();
1073
+ return obs.pipe(operators.takeUntil(rxjs.timer(opts.timeout)), operators.first(function (v) { return v === true; })).toPromise();
1071
1074
  }
1072
1075
  return obs.pipe(operators.first(function (v) { return v === true; })).toPromise();
1073
1076
  }
1074
1077
  function firstFalsePromise(obs, opts) {
1075
1078
  if ((opts === null || opts === void 0 ? void 0 : opts.timeout) > 0) {
1076
- return obs.pipe(operators.first(function (v) { return v === false; }), operators.takeUntil(rxjs.timer(opts.timeout))).toPromise();
1079
+ return obs.pipe(operators.takeUntil(rxjs.timer(opts.timeout)), operators.first(function (v) { return v === false; })).toPromise();
1077
1080
  }
1078
1081
  return obs.pipe(operators.first(function (v) { return v === false; })).toPromise();
1079
1082
  }
1080
1083
  function firstNotNilPromise(obs, opts) {
1081
- if ((opts === null || opts === void 0 ? void 0 : opts.timeout) > 0) {
1082
- return firstNotNil(obs).pipe(operators.takeUntil(rxjs.timer(opts.timeout))).toPromise();
1083
- }
1084
- return firstNotNil(obs).toPromise();
1084
+ return firstNotNil(obs, opts).toPromise();
1085
1085
  }
1086
1086
  function chainPromises(defers) {
1087
1087
  return (defers || []).reduce(function (previous, defer) {
@@ -25826,7 +25826,7 @@
25826
25826
  * @param config Additional configuration for table.
25827
25827
  */
25828
25828
  function EntitiesTableDataSource(dataType, dataService, validatorService, options) {
25829
- var _this = _super_1.call(this, [], dataType, validatorService, Object.assign({ keepOriginalDataAfterConfirm: false, readOnly: false, saveOnlyDirtyRows: false, dataServiceOptions: {} }, options)) || this;
25829
+ var _this = _super_1.call(this, [], dataType, validatorService, Object.assign({ keepOriginalDataAfterConfirm: false, readOnly: false, saveOnlyDirtyRows: false }, options)) || this;
25830
25830
  _this.dataService = dataService;
25831
25831
  _this._debug = false;
25832
25832
  _this._creating = false;
@@ -26130,7 +26130,7 @@
26130
26130
  case 2:
26131
26131
  // Call service deletion
26132
26132
  _b.sent();
26133
- rowNotDeleted = this.getRows().map(function (row) { return rows.find(function (r) { return r === row; }); });
26133
+ rowNotDeleted = this.getRows().filter(function (row) { return rows.includes(row); });
26134
26134
  // Apply missing deletion
26135
26135
  if (isNotEmptyArray(rowNotDeleted)) {
26136
26136
  console.warn("[table-datasource] Force deletion of " + rowNotDeleted.length + " rows (Is service update the cache ?)");