@ngx-smz/core 21.7.1 → 21.8.0

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.
@@ -13493,9 +13493,16 @@ class SmzTableContextPipe {
13493
13493
  }
13494
13494
  }
13495
13495
  if (column.filter.isGlobalFilterable) {
13496
- globalFilter.push(column.field);
13497
- // TODO: Global filter customizado, não é compatível com o globalFilterFields do primeNG
13498
- // globalFilter.push(`${column.field}:${column.globalFilterField}`);
13496
+ const globalFilterField = column.globalFilterField;
13497
+ const hasDedicatedGlobalFilterField = globalFilterField != null
13498
+ && globalFilterField !== ''
13499
+ && globalFilterField !== column.field;
13500
+ if (hasDedicatedGlobalFilterField) {
13501
+ globalFilter.push(globalFilterField);
13502
+ }
13503
+ else {
13504
+ globalFilter.push(column.field);
13505
+ }
13499
13506
  }
13500
13507
  columns.push(contextColumn);
13501
13508
  }
@@ -14701,7 +14708,6 @@ class SmzColumnCollectionBuilder extends SmzBuilderUtilities {
14701
14708
  currency(field, header, width = 'auto') {
14702
14709
  return new SmzCurrencyColumnBuilder(this.tableRefBuilder, this, field, header, width);
14703
14710
  }
14704
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
14705
14711
  dataTransform(field, header, callback, width = 'auto') {
14706
14712
  return new SmzDataTransformColumnBuilder(this.tableRefBuilder, this, field, header, callback, width);
14707
14713
  }