@sumaris-net/ngx-components 1.12.5 → 1.12.9

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.
@@ -566,7 +566,7 @@
566
566
  var nextOffset = (opts && opts.offset || 0) + pageData.length;
567
567
  if (nextOffset < total) {
568
568
  result.fetchMore = function (_) { return __awaiter(_this, void 0, void 0, function () {
569
- return __generator(this, function (_a) {
569
+ return __generator(this, function (_b) {
570
570
  return [2 /*return*/, suggestFromArray(filteredItems, undefined /*OPTIMISATION: already applied*/, Object.assign(Object.assign({}, opts), { offset: nextOffset, skipSort: true, excludedIds: undefined // OPTIMISATION: already filtered
571
571
  }))];
572
572
  });
@@ -738,7 +738,8 @@
738
738
  }
739
739
  function splitByProperty(array, propertyName) {
740
740
  return (array || []).reduce(function (res, value) {
741
- var key = value === null || value === void 0 ? void 0 : value[propertyName];
741
+ var _a;
742
+ var key = (_a = value) === null || _a === void 0 ? void 0 : _a[propertyName];
742
743
  if (isNotNil(key)) {
743
744
  res[key] = value;
744
745
  }
@@ -4386,6 +4387,21 @@
4386
4387
  { type: FormErrorTranslator },
4387
4388
  { type: i0.ChangeDetectorRef }
4388
4389
  ]; };
4390
+ var FormControlGetPipe = /** @class */ (function () {
4391
+ function FormControlGetPipe() {
4392
+ }
4393
+ FormControlGetPipe.prototype.transform = function (form, path) {
4394
+ return form.get(path);
4395
+ };
4396
+ return FormControlGetPipe;
4397
+ }());
4398
+ FormControlGetPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function FormControlGetPipe_Factory() { return new FormControlGetPipe(); }, token: FormControlGetPipe, providedIn: "root" });
4399
+ FormControlGetPipe.decorators = [
4400
+ { type: i0.Pipe, args: [{
4401
+ name: 'formGet'
4402
+ },] },
4403
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
4404
+ ];
4389
4405
 
4390
4406
  var SharedPipesModule = /** @class */ (function () {
4391
4407
  function SharedPipesModule() {
@@ -4431,7 +4447,8 @@
4431
4447
  TranslateContextPipe,
4432
4448
  TranslatablePipe,
4433
4449
  NgInitDirective,
4434
- FormErrorTranslatePipe
4450
+ FormErrorTranslatePipe,
4451
+ FormControlGetPipe
4435
4452
  ],
4436
4453
  exports: [
4437
4454
  PropertyGetPipe,
@@ -4465,7 +4482,8 @@
4465
4482
  TranslateContextPipe,
4466
4483
  TranslatablePipe,
4467
4484
  NgInitDirective,
4468
- FormErrorTranslatePipe
4485
+ FormErrorTranslatePipe,
4486
+ FormControlGetPipe
4469
4487
  ]
4470
4488
  },] }
4471
4489
  ];
@@ -25538,6 +25556,7 @@
25538
25556
  * @param event
25539
25557
  * @param row
25540
25558
  * @param opts Use interactive=false to avoid user interaction (e.g. user confirmation)
25559
+ * Use skipIfLoading=false to force deletion even if table is busy
25541
25560
  */
25542
25561
  AppTable.prototype.deleteRow = function (event, row, opts) {
25543
25562
  return __awaiter(this, void 0, void 0, function () {
@@ -25557,6 +25576,7 @@
25557
25576
  * @param event
25558
25577
  * @param rows
25559
25578
  * @param opts Use interactive=false to avoid user interaction (e.g. user confirmation)
25579
+ * Use skipIfLoading=false to force deletion even if table is busy
25560
25580
  */
25561
25581
  AppTable.prototype.deleteRows = function (event, rows, opts) {
25562
25582
  var _a;
@@ -25574,7 +25594,7 @@
25574
25594
  event === null || event === void 0 ? void 0 : event.preventDefault();
25575
25595
  if (!this._enabled || isEmptyArray(rows))
25576
25596
  return [2 /*return*/, 0]; // Skip is disabled, or no rows to delete
25577
- if (this.loading && (!opts || opts.skipIfLoading !== true)) {
25597
+ if (this.loading && (!opts || opts.skipIfLoading !== false)) {
25578
25598
  console.warn('[app-table] Skip deleteRows() because table is busy (loading). Use opts.skipLoading = false to force deletion');
25579
25599
  return [2 /*return*/, 0]; // Skip if loading
25580
25600
  }
@@ -30742,6 +30762,7 @@
30742
30762
  exports.FormArrayHelper = FormArrayHelper;
30743
30763
  exports.FormButtonsBarComponent = FormButtonsBarComponent;
30744
30764
  exports.FormButtonsBarToken = FormButtonsBarToken;
30765
+ exports.FormControlGetPipe = FormControlGetPipe;
30745
30766
  exports.FormErrorTranslatePipe = FormErrorTranslatePipe;
30746
30767
  exports.FormErrorTranslator = FormErrorTranslator;
30747
30768
  exports.FormFieldValuesHolder = FormFieldValuesHolder;