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.
- package/bundles/ngx-aur-mat-table.umd.js +14 -5
- package/bundles/ngx-aur-mat-table.umd.js.map +1 -1
- package/esm2015/lib/utils/ngx-aur-table-config.util.js +15 -0
- package/esm2015/public-api.js +2 -2
- package/fesm2015/ngx-aur-mat-table.js +11 -2
- package/fesm2015/ngx-aur-mat-table.js.map +1 -1
- package/lib/utils/ngx-aur-table-config.util.d.ts +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/esm2015/lib/utils/table-config.util.js +0 -6
- package/lib/utils/table-config.util.d.ts +0 -4
|
@@ -34,13 +34,22 @@
|
|
|
34
34
|
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
35
35
|
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
36
36
|
|
|
37
|
-
var
|
|
38
|
-
function
|
|
37
|
+
var NgxAurTableConfigUtil = /** @class */ (function () {
|
|
38
|
+
function NgxAurTableConfigUtil() {
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
NgxAurTableConfigUtil.keys = function (config) {
|
|
41
41
|
return config.columnsCfg.map(function (config) { return config.key; });
|
|
42
42
|
};
|
|
43
|
-
|
|
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 });
|