@sumaris-net/ngx-components 1.19.13 → 1.19.15-rc1

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.
@@ -2649,11 +2649,14 @@
2649
2649
  var NumberFormatPipe = /** @class */ (function () {
2650
2650
  function NumberFormatPipe() {
2651
2651
  }
2652
- NumberFormatPipe.prototype.transform = function (val, numberFormatOptions) {
2652
+ NumberFormatPipe.prototype.transform = function (val, opts) {
2653
2653
  // Format the output to display any way you want here.
2654
2654
  // For instance:
2655
2655
  if (val !== undefined && val !== null) {
2656
- return val.toLocaleString(undefined, numberFormatOptions);
2656
+ if (opts === null || opts === void 0 ? void 0 : opts.fixedDecimals) {
2657
+ return val.toFixed(opts.fixedDecimals);
2658
+ }
2659
+ return val.toLocaleString(undefined, opts);
2657
2660
  }
2658
2661
  else {
2659
2662
  return '';
@@ -26066,8 +26069,15 @@
26066
26069
  return true;
26067
26070
  };
26068
26071
  AppTable.prototype.confirmAndForward = function (event, row) {
26072
+ var _this = this;
26073
+ var _a;
26069
26074
  row = row || this.editedRow;
26070
26075
  if (!this.confirmEditCreate(event, row)) {
26076
+ // If pending: Wait end of validation, then loop
26077
+ if ((_a = row.validator) === null || _a === void 0 ? void 0 : _a.pending) {
26078
+ AppFormUtils.waitWhilePending(row.validator).then(function () { return _this.confirmAndForward(event, row); });
26079
+ return false;
26080
+ }
26071
26081
  return false;
26072
26082
  }
26073
26083
  // Edit next row