ngx-aur-mat-table 12.2.17 → 12.2.18

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.
@@ -34,13 +34,22 @@
34
34
  var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
35
35
  var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
36
36
 
37
- var TableConfigUtil = /** @class */ (function () {
38
- function TableConfigUtil() {
37
+ var NgxAurTableConfigUtil = /** @class */ (function () {
38
+ function NgxAurTableConfigUtil() {
39
39
  }
40
- TableConfigUtil.keys = function (config) {
40
+ NgxAurTableConfigUtil.keys = function (config) {
41
41
  return config.columnsCfg.map(function (config) { return config.key; });
42
42
  };
43
- return TableConfigUtil;
43
+ NgxAurTableConfigUtil.namedKeys = function (config) {
44
+ return config.columnsCfg.map(function (cfg) { return ({ name: cfg.name, key: cfg.key }); });
45
+ };
46
+ /**
47
+ * @return Map where the key is 'key' and the value is 'name'
48
+ */
49
+ NgxAurTableConfigUtil.keyNameMap = function (config) {
50
+ return new Map(config.columnsCfg.map(function (cfg) { return [cfg.key, cfg.name]; }));
51
+ };
52
+ return NgxAurTableConfigUtil;
44
53
  }());
45
54
 
46
55
  /******************************************************************************
@@ -1740,11 +1749,11 @@
1740
1749
  exports.IndexProviderDummy = IndexProviderDummy;
1741
1750
  exports.NgxAurMatTableComponent = NgxAurMatTableComponent;
1742
1751
  exports.NgxAurMatTableModule = NgxAurMatTableModule;
1752
+ exports.NgxAurTableConfigUtil = NgxAurTableConfigUtil;
1743
1753
  exports.RowActionProvider = RowActionProvider;
1744
1754
  exports.RowActionProviderDummy = RowActionProviderDummy;
1745
1755
  exports.SelectionProvider = SelectionProvider;
1746
1756
  exports.SelectionProviderDummy = SelectionProviderDummy;
1747
- exports.TableConfigUtil = TableConfigUtil;
1748
1757
  exports.TableRow = TableRow;
1749
1758
 
1750
1759
  Object.defineProperty(exports, '__esModule', { value: true });