@redhat-cloud-services/frontend-components-utilities 4.0.0 → 4.0.1
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/package.json +1 -1
- package/Deffered/Deffered.d.ts +0 -6
- package/Deffered/Deffered.js +0 -14
- package/Deffered/Deffered.js.map +0 -1
- package/Deffered/index.d.ts +0 -2
- package/Deffered/index.js +0 -20
- package/Deffered/index.js.map +0 -1
- package/Deffered/package.json +0 -1
- package/__fixtures__/columns.d.ts +0 -62
- package/__fixtures__/columns.js +0 -46
- package/__fixtures__/columns.js.map +0 -1
- package/__fixtures__/filters.d.ts +0 -44
- package/__fixtures__/filters.js +0 -97
- package/__fixtures__/filters.js.map +0 -1
- package/__fixtures__/items.d.ts +0 -8
- package/__fixtures__/items.js +0 -27
- package/__fixtures__/items.js.map +0 -1
- package/esm/Deffered/Deffered.js +0 -11
- package/esm/Deffered/Deffered.js.map +0 -1
- package/esm/Deffered/index.js +0 -3
- package/esm/Deffered/index.js.map +0 -1
- package/esm/__fixtures__/columns.js +0 -44
- package/esm/__fixtures__/columns.js.map +0 -1
- package/esm/__fixtures__/filters.js +0 -94
- package/esm/__fixtures__/filters.js.map +0 -1
- package/esm/__fixtures__/items.js +0 -24
- package/esm/__fixtures__/items.js.map +0 -1
- package/esm/inventoryDependencies/index.js +0 -4
- package/esm/inventoryDependencies/index.js.map +0 -1
- package/esm/inventoryDependencies/inventoryDependencies.js +0 -68
- package/esm/inventoryDependencies/inventoryDependencies.js.map +0 -1
- package/esm/useBulkSelect/helpers.js +0 -57
- package/esm/useBulkSelect/helpers.js.map +0 -1
- package/esm/useBulkSelect/index.js +0 -3
- package/esm/useBulkSelect/index.js.map +0 -1
- package/esm/useBulkSelect/useBulkSelect.js +0 -134
- package/esm/useBulkSelect/useBulkSelect.js.map +0 -1
- package/esm/useBulkSelect/useBulkSelectWithItems.js +0 -57
- package/esm/useBulkSelect/useBulkSelectWithItems.js.map +0 -1
- package/esm/useColumnManager/helper.js +0 -18
- package/esm/useColumnManager/helper.js.map +0 -1
- package/esm/useColumnManager/index.js +0 -2
- package/esm/useColumnManager/index.js.map +0 -1
- package/esm/useColumnManager/useColumnManager.js +0 -31
- package/esm/useColumnManager/useColumnManager.js.map +0 -1
- package/esm/useDedicatedAction/index.js +0 -2
- package/esm/useDedicatedAction/index.js.map +0 -1
- package/esm/useDedicatedAction/useDedicatedAction.js +0 -27
- package/esm/useDedicatedAction/useDedicatedAction.js.map +0 -1
- package/esm/useExpandable/helpers.js +0 -10
- package/esm/useExpandable/helpers.js.map +0 -1
- package/esm/useExpandable/index.js +0 -3
- package/esm/useExpandable/index.js.map +0 -1
- package/esm/useExpandable/useExpandable.js +0 -19
- package/esm/useExpandable/useExpandable.js.map +0 -1
- package/esm/useExpandable/useExpandableWithItems.js +0 -28
- package/esm/useExpandable/useExpandableWithItems.js.map +0 -1
- package/esm/useExport/helpers.js +0 -62
- package/esm/useExport/helpers.js.map +0 -1
- package/esm/useExport/index.js +0 -3
- package/esm/useExport/index.js.map +0 -1
- package/esm/useExport/useExport.js +0 -80
- package/esm/useExport/useExport.js.map +0 -1
- package/esm/useExport/useExportWithItems.js +0 -16
- package/esm/useExport/useExportWithItems.js.map +0 -1
- package/esm/useFilterConfig/filterChipHelpers.js +0 -17
- package/esm/useFilterConfig/filterChipHelpers.js.map +0 -1
- package/esm/useFilterConfig/filterConfigHelpers.js +0 -27
- package/esm/useFilterConfig/filterConfigHelpers.js.map +0 -1
- package/esm/useFilterConfig/filterTypeHelpers.js +0 -90
- package/esm/useFilterConfig/filterTypeHelpers.js.map +0 -1
- package/esm/useFilterConfig/helpers.js +0 -55
- package/esm/useFilterConfig/helpers.js.map +0 -1
- package/esm/useFilterConfig/index.js +0 -4
- package/esm/useFilterConfig/index.js.map +0 -1
- package/esm/useFilterConfig/useFilterConfig.js +0 -71
- package/esm/useFilterConfig/useFilterConfig.js.map +0 -1
- package/esm/useFilterConfig/useFilterConfigWithItems.js +0 -45
- package/esm/useFilterConfig/useFilterConfigWithItems.js.map +0 -1
- package/esm/usePaginate/index.js +0 -3
- package/esm/usePaginate/index.js.map +0 -1
- package/esm/usePaginate/usePaginate.js +0 -43
- package/esm/usePaginate/usePaginate.js.map +0 -1
- package/esm/usePaginate/usePaginateWithItems.js +0 -26
- package/esm/usePaginate/usePaginateWithItems.js.map +0 -1
- package/esm/useSelectionManager/index.js +0 -2
- package/esm/useSelectionManager/index.js.map +0 -1
- package/esm/useSelectionManager/reducer.js +0 -61
- package/esm/useSelectionManager/reducer.js.map +0 -1
- package/esm/useSelectionManager/useSelectionManager.js +0 -30
- package/esm/useSelectionManager/useSelectionManager.js.map +0 -1
- package/esm/useTableSort/helpers.js +0 -56
- package/esm/useTableSort/helpers.js.map +0 -1
- package/esm/useTableSort/index.js +0 -4
- package/esm/useTableSort/index.js.map +0 -1
- package/esm/useTableSort/useTableSort.js +0 -25
- package/esm/useTableSort/useTableSort.js.map +0 -1
- package/esm/useTableSort/useTableSortWithItems.js +0 -29
- package/esm/useTableSort/useTableSortWithItems.js.map +0 -1
- package/esm/useTableTools/helpers.js +0 -47
- package/esm/useTableTools/helpers.js.map +0 -1
- package/esm/useTableTools/index.js +0 -3
- package/esm/useTableTools/index.js.map +0 -1
- package/esm/useTableTools/rowsBuilder.js +0 -72
- package/esm/useTableTools/rowsBuilder.js.map +0 -1
- package/esm/useTableTools/useTableTools.js +0 -71
- package/esm/useTableTools/useTableTools.js.map +0 -1
- package/inventoryDependencies/index.d.ts +0 -2
- package/inventoryDependencies/index.js +0 -32
- package/inventoryDependencies/index.js.map +0 -1
- package/inventoryDependencies/inventoryDependencies.d.ts +0 -146
- package/inventoryDependencies/inventoryDependencies.js +0 -71
- package/inventoryDependencies/inventoryDependencies.js.map +0 -1
- package/inventoryDependencies/package.json +0 -1
- package/useBulkSelect/helpers.d.ts +0 -6
- package/useBulkSelect/helpers.js +0 -66
- package/useBulkSelect/helpers.js.map +0 -1
- package/useBulkSelect/index.d.ts +0 -2
- package/useBulkSelect/index.js +0 -11
- package/useBulkSelect/index.js.map +0 -1
- package/useBulkSelect/package.json +0 -1
- package/useBulkSelect/useBulkSelect.d.ts +0 -5
- package/useBulkSelect/useBulkSelect.js +0 -136
- package/useBulkSelect/useBulkSelect.js.map +0 -1
- package/useBulkSelect/useBulkSelectWithItems.d.ts +0 -9
- package/useBulkSelect/useBulkSelectWithItems.js +0 -62
- package/useBulkSelect/useBulkSelectWithItems.js.map +0 -1
- package/useColumnManager/helper.d.ts +0 -2
- package/useColumnManager/helper.js +0 -26
- package/useColumnManager/helper.js.map +0 -1
- package/useColumnManager/index.d.ts +0 -1
- package/useColumnManager/index.js +0 -9
- package/useColumnManager/index.js.map +0 -1
- package/useColumnManager/package.json +0 -1
- package/useColumnManager/useColumnManager.d.ts +0 -13
- package/useColumnManager/useColumnManager.js +0 -55
- package/useColumnManager/useColumnManager.js.map +0 -1
- package/useDedicatedAction/index.d.ts +0 -1
- package/useDedicatedAction/index.js +0 -9
- package/useDedicatedAction/index.js.map +0 -1
- package/useDedicatedAction/package.json +0 -1
- package/useDedicatedAction/useDedicatedAction.d.ts +0 -8
- package/useDedicatedAction/useDedicatedAction.js +0 -32
- package/useDedicatedAction/useDedicatedAction.js.map +0 -1
- package/useExpandable/helpers.d.ts +0 -7
- package/useExpandable/helpers.js +0 -17
- package/useExpandable/helpers.js.map +0 -1
- package/useExpandable/index.d.ts +0 -2
- package/useExpandable/index.js +0 -11
- package/useExpandable/index.js.map +0 -1
- package/useExpandable/package.json +0 -1
- package/useExpandable/useExpandable.d.ts +0 -12
- package/useExpandable/useExpandable.js +0 -24
- package/useExpandable/useExpandable.js.map +0 -1
- package/useExpandable/useExpandableWithItems.d.ts +0 -2
- package/useExpandable/useExpandableWithItems.js +0 -33
- package/useExpandable/useExpandableWithItems.js.map +0 -1
- package/useExport/helpers.d.ts +0 -12
- package/useExport/helpers.js +0 -74
- package/useExport/helpers.js.map +0 -1
- package/useExport/index.d.ts +0 -2
- package/useExport/index.js +0 -11
- package/useExport/index.js.map +0 -1
- package/useExport/package.json +0 -1
- package/useExport/useExport.d.ts +0 -9
- package/useExport/useExport.js +0 -82
- package/useExport/useExport.js.map +0 -1
- package/useExport/useExportWithItems.d.ts +0 -2
- package/useExport/useExportWithItems.js +0 -23
- package/useExport/useExportWithItems.js.map +0 -1
- package/useFilterConfig/filterChipHelpers.d.ts +0 -5
- package/useFilterConfig/filterChipHelpers.js +0 -25
- package/useFilterConfig/filterChipHelpers.js.map +0 -1
- package/useFilterConfig/filterConfigHelpers.d.ts +0 -5
- package/useFilterConfig/filterConfigHelpers.js +0 -36
- package/useFilterConfig/filterConfigHelpers.js.map +0 -1
- package/useFilterConfig/filterTypeHelpers.d.ts +0 -49
- package/useFilterConfig/filterTypeHelpers.js +0 -92
- package/useFilterConfig/filterTypeHelpers.js.map +0 -1
- package/useFilterConfig/helpers.d.ts +0 -11
- package/useFilterConfig/helpers.js +0 -70
- package/useFilterConfig/helpers.js.map +0 -1
- package/useFilterConfig/index.d.ts +0 -3
- package/useFilterConfig/index.js +0 -22
- package/useFilterConfig/index.js.map +0 -1
- package/useFilterConfig/package.json +0 -1
- package/useFilterConfig/useFilterConfig.d.ts +0 -19
- package/useFilterConfig/useFilterConfig.js +0 -76
- package/useFilterConfig/useFilterConfig.js.map +0 -1
- package/useFilterConfig/useFilterConfigWithItems.d.ts +0 -21
- package/useFilterConfig/useFilterConfigWithItems.js +0 -50
- package/useFilterConfig/useFilterConfigWithItems.js.map +0 -1
- package/usePaginate/index.d.ts +0 -2
- package/usePaginate/index.js +0 -11
- package/usePaginate/index.js.map +0 -1
- package/usePaginate/package.json +0 -1
- package/usePaginate/usePaginate.d.ts +0 -20
- package/usePaginate/usePaginate.js +0 -45
- package/usePaginate/usePaginate.js.map +0 -1
- package/usePaginate/usePaginateWithItems.d.ts +0 -2
- package/usePaginate/usePaginateWithItems.js +0 -31
- package/usePaginate/usePaginateWithItems.js.map +0 -1
- package/useSelectionManager/index.d.ts +0 -1
- package/useSelectionManager/index.js +0 -9
- package/useSelectionManager/index.js.map +0 -1
- package/useSelectionManager/package.json +0 -1
- package/useSelectionManager/reducer.d.ts +0 -3
- package/useSelectionManager/reducer.js +0 -68
- package/useSelectionManager/reducer.js.map +0 -1
- package/useSelectionManager/useSelectionManager.d.ts +0 -10
- package/useSelectionManager/useSelectionManager.js +0 -51
- package/useSelectionManager/useSelectionManager.js.map +0 -1
- package/useTableSort/helpers.d.ts +0 -4
- package/useTableSort/helpers.js +0 -63
- package/useTableSort/helpers.js.map +0 -1
- package/useTableSort/index.d.ts +0 -3
- package/useTableSort/index.js +0 -22
- package/useTableSort/index.js.map +0 -1
- package/useTableSort/package.json +0 -1
- package/useTableSort/useTableSort.d.ts +0 -9
- package/useTableSort/useTableSort.js +0 -27
- package/useTableSort/useTableSort.js.map +0 -1
- package/useTableSort/useTableSortWithItems.d.ts +0 -10
- package/useTableSort/useTableSortWithItems.js +0 -34
- package/useTableSort/useTableSortWithItems.js.map +0 -1
- package/useTableTools/helpers.d.ts +0 -12
- package/useTableTools/helpers.js +0 -54
- package/useTableTools/helpers.js.map +0 -1
- package/useTableTools/index.d.ts +0 -2
- package/useTableTools/index.js +0 -20
- package/useTableTools/index.js.map +0 -1
- package/useTableTools/package.json +0 -1
- package/useTableTools/rowsBuilder.d.ts +0 -9
- package/useTableTools/rowsBuilder.js +0 -77
- package/useTableTools/rowsBuilder.js.map +0 -1
- package/useTableTools/useTableTools.d.ts +0 -6
- package/useTableTools/useTableTools.js +0 -76
- package/useTableTools/useTableTools.js.map +0 -1
package/useExpandable/helpers.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.itemDetailsRow = void 0;
|
|
7
|
-
var react_1 = __importDefault(require("react"));
|
|
8
|
-
var childRowForRule = function (item, idx, DetailsComponent) { return ({
|
|
9
|
-
parent: idx * 2,
|
|
10
|
-
fullWidth: true,
|
|
11
|
-
cells: [{ title: react_1.default.createElement(DetailsComponent, { item: item, key: 'item-' + item.rowId }) }],
|
|
12
|
-
}); };
|
|
13
|
-
var itemDetailsRow = function (item, idx, options) {
|
|
14
|
-
return typeof (options === null || options === void 0 ? void 0 : options.detailsComponent) !== 'undefined' && childRowForRule(item, idx, options.detailsComponent);
|
|
15
|
-
};
|
|
16
|
-
exports.itemDetailsRow = itemDetailsRow;
|
|
17
|
-
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/useExpandable/helpers.js"],"names":[],"mappings":";;;;;;AAAA,gDAA0B;AAE1B,IAAM,eAAe,GAAG,UAAC,IAAI,EAAE,GAAG,EAAE,gBAAgB,IAAK,OAAA,CAAC;IACxD,MAAM,EAAE,GAAG,GAAG,CAAC;IACf,SAAS,EAAE,IAAI;IACf,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,8BAAC,gBAAgB,IAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC,KAAK,GAAI,EAAE,CAAC;CAChF,CAAC,EAJuD,CAIvD,CAAC;AAGI,IAAM,cAAc,GAAG,UAAC,IAAI,EAAE,GAAG,EAAE,OAAO;IAC/C,OAAA,OAAO,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,CAAA,KAAK,WAAW,IAAI,eAAe,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,gBAAgB,CAAC;AAAxG,CAAwG,CAAC;AAD9F,QAAA,cAAc,kBACgF"}
|
package/useExpandable/index.d.ts
DELETED
package/useExpandable/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.useExpandableWithItems = exports.default = void 0;
|
|
7
|
-
var useExpandable_1 = require("./useExpandable");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(useExpandable_1).default; } });
|
|
9
|
-
var useExpandableWithItems_1 = require("./useExpandableWithItems");
|
|
10
|
-
Object.defineProperty(exports, "useExpandableWithItems", { enumerable: true, get: function () { return __importDefault(useExpandableWithItems_1).default; } });
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/useExpandable/index.js"],"names":[],"mappings":";;;;;;AAAA,iDAA0C;AAAjC,yHAAA,OAAO,OAAA;AAChB,mEAA6E;AAApE,iJAAA,OAAO,OAA0B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"main":"index.js","module":"../esm/useExpandable/index.js","typings":"index.d.ts"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default useExpandable;
|
|
2
|
-
declare function useExpandable(options: any): {
|
|
3
|
-
openItems: any;
|
|
4
|
-
tableProps: {
|
|
5
|
-
onCollapse: (_event: any, _index: any, _isOpen: any, { itemId }: {
|
|
6
|
-
itemId: any;
|
|
7
|
-
}) => void;
|
|
8
|
-
};
|
|
9
|
-
} | {
|
|
10
|
-
openItems?: undefined;
|
|
11
|
-
tableProps?: undefined;
|
|
12
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var useSelectionManager_1 = __importDefault(require("../useSelectionManager"));
|
|
7
|
-
var useExpandable = function (options) {
|
|
8
|
-
var enableExpanbale = !!options.detailsComponent;
|
|
9
|
-
var _a = (0, useSelectionManager_1.default)([]), openItems = _a.selection, toggle = _a.toggle;
|
|
10
|
-
var onCollapse = function (_event, _index, _isOpen, _a) {
|
|
11
|
-
var itemId = _a.itemId;
|
|
12
|
-
return toggle(itemId);
|
|
13
|
-
};
|
|
14
|
-
return enableExpanbale
|
|
15
|
-
? {
|
|
16
|
-
openItems: openItems,
|
|
17
|
-
tableProps: {
|
|
18
|
-
onCollapse: onCollapse,
|
|
19
|
-
},
|
|
20
|
-
}
|
|
21
|
-
: {};
|
|
22
|
-
};
|
|
23
|
-
exports.default = useExpandable;
|
|
24
|
-
//# sourceMappingURL=useExpandable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExpandable.js","sourceRoot":"","sources":["../src/useExpandable/useExpandable.js"],"names":[],"mappings":";;;;;AAAA,+EAAyD;AAEzD,IAAM,aAAa,GAAG,UAAC,OAAO;IAC5B,IAAM,eAAe,GAAG,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;IAC7C,IAAA,KAAmC,IAAA,6BAAmB,EAAC,EAAE,CAAC,EAA7C,SAAS,eAAA,EAAE,MAAM,YAA4B,CAAC;IAEjE,IAAM,UAAU,GAAG,UAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,EAAU;YAAR,MAAM,YAAA;QAAO,OAAA,MAAM,CAAC,MAAM,CAAC;IAAd,CAAc,CAAC;IAE3E,OAAO,eAAe;QACpB,CAAC,CAAC;YACE,SAAS,WAAA;YACT,UAAU,EAAE;gBACV,UAAU,YAAA;aACX;SACF;QACH,CAAC,CAAC,EAAE,CAAC;AACT,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
var useExpandable_1 = __importDefault(require("./useExpandable"));
|
|
18
|
-
var helpers_1 = require("./helpers");
|
|
19
|
-
var useExpandableWithItems = function (options) {
|
|
20
|
-
var enableExpanbale = !!options.detailsComponent;
|
|
21
|
-
var expandable = (0, useExpandable_1.default)(options);
|
|
22
|
-
var openItem = function (row, item, _columns, rowIndex) {
|
|
23
|
-
var _a;
|
|
24
|
-
return [
|
|
25
|
-
__assign(__assign({}, row), { isOpen: ((_a = expandable.openItems) === null || _a === void 0 ? void 0 : _a.includes(item.itemId)) || false }),
|
|
26
|
-
(0, helpers_1.itemDetailsRow)(item, rowIndex, options),
|
|
27
|
-
];
|
|
28
|
-
};
|
|
29
|
-
return enableExpanbale
|
|
30
|
-
? __assign(__assign({}, expandable), { transformer: openItem }) : {};
|
|
31
|
-
};
|
|
32
|
-
exports.default = useExpandableWithItems;
|
|
33
|
-
//# sourceMappingURL=useExpandableWithItems.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExpandableWithItems.js","sourceRoot":"","sources":["../src/useExpandable/useExpandableWithItems.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAA4C;AAC5C,qCAA2C;AAE3C,IAAM,sBAAsB,GAAG,UAAC,OAAO;IACrC,IAAM,eAAe,GAAG,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;IACnD,IAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,OAAO,CAAC,CAAC;IAE1C,IAAM,QAAQ,GAAG,UAAC,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ;;QAAK,OAAA;kCAE7C,GAAG,KACN,MAAM,EAAE,CAAA,MAAA,UAAU,CAAC,SAAS,0CAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAI,KAAK;YAE9D,IAAA,wBAAc,EAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC;SACxC,CAAA;KAAA,CAAC;IAEF,OAAO,eAAe;QACpB,CAAC,uBACM,UAAU,KACb,WAAW,EAAE,QAAQ,IAEzB,CAAC,CAAC,EAAE,CAAC;AACT,CAAC,CAAC;AAEF,kBAAe,sBAAsB,CAAC"}
|
package/useExport/helpers.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export function filename(format: any): string;
|
|
2
|
-
export function linkAndDownload(data: any, filename: any): void;
|
|
3
|
-
export function csvForItems({ items, columns }: {
|
|
4
|
-
items: any;
|
|
5
|
-
columns: any;
|
|
6
|
-
}): string;
|
|
7
|
-
export function jsonForItems({ items, columns }: {
|
|
8
|
-
items: any;
|
|
9
|
-
columns: any;
|
|
10
|
-
}): string;
|
|
11
|
-
export function callCallback(callback: any, ...args: any[]): any;
|
|
12
|
-
export function exportableColumns(columns: any): any;
|
package/useExport/helpers.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
-
if (ar || !(i in from)) {
|
|
5
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
-
ar[i] = from[i];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.exportableColumns = exports.callCallback = exports.jsonForItems = exports.csvForItems = exports.linkAndDownload = exports.filename = void 0;
|
|
16
|
-
var get_1 = __importDefault(require("lodash/get"));
|
|
17
|
-
var camelCase_1 = __importDefault(require("lodash/camelCase"));
|
|
18
|
-
var CSV_FILE_PREFIX = 'compliance-export';
|
|
19
|
-
var CSV_DELIMITER = ',';
|
|
20
|
-
var ENCODINGS = {
|
|
21
|
-
csv: 'text/csv',
|
|
22
|
-
json: 'application/json',
|
|
23
|
-
};
|
|
24
|
-
var filename = function (format) { return CSV_FILE_PREFIX + '-' + new Date().toISOString() + '.' + format; };
|
|
25
|
-
exports.filename = filename;
|
|
26
|
-
var encoding = function (format) { return "data:".concat(ENCODINGS[format], ";charset=utf-8"); };
|
|
27
|
-
var linkAndDownload = function (data, filename) {
|
|
28
|
-
var link = document.createElement('a');
|
|
29
|
-
link.href = data;
|
|
30
|
-
link.download = filename;
|
|
31
|
-
link.click();
|
|
32
|
-
};
|
|
33
|
-
exports.linkAndDownload = linkAndDownload;
|
|
34
|
-
var textForCell = function (row, column) {
|
|
35
|
-
var exportKey = column.exportKey, renderExport = column.renderExport;
|
|
36
|
-
var cell = exportKey ? (0, get_1.default)(row, exportKey) : row;
|
|
37
|
-
if (renderExport) {
|
|
38
|
-
return renderExport(cell);
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
return cell;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
var csvForItems = function (_a) {
|
|
45
|
-
var items = _a.items, columns = _a.columns;
|
|
46
|
-
var header = columns.map(function (column) { return column.original || column.title; }).join(CSV_DELIMITER);
|
|
47
|
-
var csvRows = __spreadArray([header], items.map(function (row) { return columns.map(function (column) { return "\"".concat(textForCell(row, column), "\""); }).join(CSV_DELIMITER); }), true);
|
|
48
|
-
return encodeURI("".concat(encoding('csv'), ",").concat(csvRows.join('\n')));
|
|
49
|
-
};
|
|
50
|
-
exports.csvForItems = csvForItems;
|
|
51
|
-
var jsonForItems = function (_a) {
|
|
52
|
-
var items = _a.items, columns = _a.columns;
|
|
53
|
-
var result = items.map(function (row) {
|
|
54
|
-
return columns.reduce(function (object, column) {
|
|
55
|
-
var key = (0, camelCase_1.default)(column.original || column.title);
|
|
56
|
-
var value = textForCell(row, column);
|
|
57
|
-
object[key] = value;
|
|
58
|
-
return object;
|
|
59
|
-
}, {});
|
|
60
|
-
});
|
|
61
|
-
return encodeURI("".concat(encoding('json'), ",").concat(JSON.stringify(result)));
|
|
62
|
-
};
|
|
63
|
-
exports.jsonForItems = jsonForItems;
|
|
64
|
-
var callCallback = function (callback) {
|
|
65
|
-
var args = [];
|
|
66
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
67
|
-
args[_i - 1] = arguments[_i];
|
|
68
|
-
}
|
|
69
|
-
return callback && callback.apply(void 0, args);
|
|
70
|
-
};
|
|
71
|
-
exports.callCallback = callCallback;
|
|
72
|
-
var exportableColumns = function (columns) { return columns.filter(function (column) { return column.export !== false && (column.exportKey || column.renderExport); }); };
|
|
73
|
-
exports.exportableColumns = exportableColumns;
|
|
74
|
-
//# sourceMappingURL=helpers.js.map
|
package/useExport/helpers.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/useExport/helpers.js"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAA6B;AAC7B,+DAAyC;AAEzC,IAAM,eAAe,GAAG,mBAAmB,CAAC;AAC5C,IAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,IAAM,SAAS,GAAG;IAChB,GAAG,EAAE,UAAU;IACf,IAAI,EAAE,kBAAkB;CACzB,CAAC;AAEK,IAAM,QAAQ,GAAG,UAAC,MAAM,IAAK,OAAA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AAA,OAAO,CAAC,MAAM,CAAC,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,MAAM,KAAK,KAAK,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,YAAY,CAAC,EAApE,CAAoE,CAAC,EAAhG,CAAgG,CAAC;AAAlI,QAAA,iBAAiB,qBAAiH"}
|
package/useExport/index.d.ts
DELETED
package/useExport/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.useExportWithItems = exports.default = void 0;
|
|
7
|
-
var useExport_1 = require("./useExport");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(useExport_1).default; } });
|
|
9
|
-
var useExportWithItems_1 = require("./useExportWithItems");
|
|
10
|
-
Object.defineProperty(exports, "useExportWithItems", { enumerable: true, get: function () { return __importDefault(useExportWithItems_1).default; } });
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
package/useExport/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/useExport/index.js"],"names":[],"mappings":";;;;;;AAAA,yCAAsC;AAA7B,qHAAA,OAAO,OAAA;AAChB,2DAAqE;AAA5D,yIAAA,OAAO,OAAsB"}
|
package/useExport/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"main":"index.js","module":"../esm/useExport/index.js","typings":"index.d.ts"}
|
package/useExport/useExport.d.ts
DELETED
package/useExport/useExport.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
var helpers_1 = require("./helpers");
|
|
40
|
-
var useExport = function (_a) {
|
|
41
|
-
var exporter = _a.exporter, _b = _a.columns, columns = _b === void 0 ? [] : _b, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, onStart = _a.onStart, onComplete = _a.onComplete, onError = _a.onError;
|
|
42
|
-
var exportColumns = (0, helpers_1.exportableColumns)(columns);
|
|
43
|
-
var exportWithFormat = function (format) { return __awaiter(void 0, void 0, void 0, function () {
|
|
44
|
-
var items, formater;
|
|
45
|
-
return __generator(this, function (_a) {
|
|
46
|
-
switch (_a.label) {
|
|
47
|
-
case 0:
|
|
48
|
-
(0, helpers_1.callCallback)(onStart);
|
|
49
|
-
return [4, exporter()
|
|
50
|
-
.then(function (items) {
|
|
51
|
-
(0, helpers_1.callCallback)(onComplete, items);
|
|
52
|
-
return items;
|
|
53
|
-
})
|
|
54
|
-
.catch(function (error) { return (0, helpers_1.callCallback)(onError, error); })];
|
|
55
|
-
case 1:
|
|
56
|
-
items = _a.sent();
|
|
57
|
-
formater = format === 'csv' ? helpers_1.csvForItems : helpers_1.jsonForItems;
|
|
58
|
-
if (items) {
|
|
59
|
-
return [2, (0, helpers_1.linkAndDownload)(formater({
|
|
60
|
-
items: items,
|
|
61
|
-
columns: exportColumns,
|
|
62
|
-
}), (0, helpers_1.filename)(format))];
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
console.info('No items returned for export');
|
|
66
|
-
return [2];
|
|
67
|
-
}
|
|
68
|
-
return [2];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
}); };
|
|
72
|
-
return {
|
|
73
|
-
toolbarProps: {
|
|
74
|
-
exportConfig: {
|
|
75
|
-
isDisabled: isDisabled,
|
|
76
|
-
onSelect: function (_, format) { return exportWithFormat(format); },
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
exports.default = useExport;
|
|
82
|
-
//# sourceMappingURL=useExport.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExport.js","sourceRoot":"","sources":["../src/useExport/useExport.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAkH;AAalH,IAAM,SAAS,GAAG,UAAC,EAA4E;QAA1E,QAAQ,cAAA,EAAE,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,kBAAkB,EAAlB,UAAU,mBAAG,KAAK,KAAA,EAAE,OAAO,aAAA,EAAE,UAAU,gBAAA,EAAE,OAAO,aAAA;IAC3F,IAAM,aAAa,GAAG,IAAA,2BAAiB,EAAC,OAAO,CAAC,CAAC;IACjD,IAAM,gBAAgB,GAAG,UAAO,MAAM;;;;;oBACpC,IAAA,sBAAY,EAAC,OAAO,CAAC,CAAC;oBACR,WAAM,QAAQ,EAAE;6BAC3B,IAAI,CAAC,UAAC,KAAK;4BACV,IAAA,sBAAY,EAAC,UAAU,EAAE,KAAK,CAAC,CAAC;4BAChC,OAAO,KAAK,CAAC;wBACf,CAAC,CAAC;6BACD,KAAK,CAAC,UAAC,KAAK,IAAK,OAAA,IAAA,sBAAY,EAAC,OAAO,EAAE,KAAK,CAAC,EAA5B,CAA4B,CAAC,EAAA;;oBAL3C,KAAK,GAAG,SAKmC;oBAE3C,QAAQ,GAAG,MAAM,KAAK,KAAK,CAAC,CAAC,CAAC,qBAAW,CAAC,CAAC,CAAC,sBAAY,CAAC;oBAE/D,IAAI,KAAK,EAAE;wBACT,WAAO,IAAA,yBAAe,EACpB,QAAQ,CAAC;gCACP,KAAK,OAAA;gCACL,OAAO,EAAE,aAAa;6BACvB,CAAC,EACF,IAAA,kBAAQ,EAAC,MAAM,CAAC,CACjB,EAAC;qBACH;yBAAM;wBACL,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;wBAC7C,WAAO;qBACR;;;;SACF,CAAC;IAEF,OAAO;QACL,YAAY,EAAE;YACZ,YAAY,EAAE;gBACZ,UAAU,YAAA;gBACV,QAAQ,EAAE,UAAC,CAAC,EAAE,MAAM,IAAK,OAAA,gBAAgB,CAAC,MAAM,CAAC,EAAxB,CAAwB;aAClD;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.useExportWithItems = void 0;
|
|
7
|
-
var useExport_1 = __importDefault(require("./useExport"));
|
|
8
|
-
var useExportWithItems = function (items, columns, options) {
|
|
9
|
-
if (options === void 0) { options = {}; }
|
|
10
|
-
var exportEnabled = options === null || options === void 0 ? void 0 : options.exportable;
|
|
11
|
-
var _a = typeof options.exportable === 'object' ? options.exportable : {}, exportColumns = _a.columns, onStart = _a.onStart, onComplete = _a.onComplete;
|
|
12
|
-
var exportProps = (0, useExport_1.default)({
|
|
13
|
-
exporter: function () { return Promise.resolve(items); },
|
|
14
|
-
isDisabled: items.length === 0,
|
|
15
|
-
columns: exportColumns,
|
|
16
|
-
onStart: onStart,
|
|
17
|
-
onComplete: onComplete,
|
|
18
|
-
});
|
|
19
|
-
return exportEnabled ? exportProps : {};
|
|
20
|
-
};
|
|
21
|
-
exports.useExportWithItems = useExportWithItems;
|
|
22
|
-
exports.default = exports.useExportWithItems;
|
|
23
|
-
//# sourceMappingURL=useExportWithItems.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExportWithItems.js","sourceRoot":"","sources":["../src/useExport/useExportWithItems.js"],"names":[],"mappings":";;;;;;AAAA,0DAAoC;AAE7B,IAAM,kBAAkB,GAAG,UAAC,KAAK,EAAE,OAAO,EAAE,OAAY;IAAZ,wBAAA,EAAA,YAAY;IAC7D,IAAM,aAAa,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,CAAC;IACpC,IAAA,KAAkD,OAAO,OAAO,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAvG,aAAa,aAAA,EAAE,OAAO,aAAA,EAAE,UAAU,gBAAqE,CAAC;IAEzH,IAAM,WAAW,GAAG,IAAA,mBAAS,EAAC;QAC5B,QAAQ,EAAE,cAAM,OAAA,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAAtB,CAAsB;QACtC,UAAU,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC;QAC9B,OAAO,EAAE,aAAa;QACtB,OAAO,SAAA;QACP,UAAU,YAAA;KACX,CAAC,CAAC;IAEH,OAAO,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;AAC1C,CAAC,CAAC;AAbW,QAAA,kBAAkB,sBAa7B;AAEF,kBAAe,0BAAkB,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.toDeselectValue = exports.toFilterChips = void 0;
|
|
7
|
-
var helpers_1 = require("./helpers");
|
|
8
|
-
var filterConfigHelpers_1 = require("./filterConfigHelpers");
|
|
9
|
-
var filterTypeHelpers_1 = __importDefault(require("./filterTypeHelpers"));
|
|
10
|
-
var filterChipTemplates = function (configItem, value) { var _a; return (_a = (0, filterTypeHelpers_1.default)(configItem.type)) === null || _a === void 0 ? void 0 : _a.filterChips(configItem, value); };
|
|
11
|
-
var toFilterChips = function (filterConfig, activeFilters) {
|
|
12
|
-
return Object.entries(activeFilters)
|
|
13
|
-
.map(function (_a) {
|
|
14
|
-
var filter = _a[0], value = _a[1];
|
|
15
|
-
return ((0, helpers_1.isNotEmpty)(value) ? filterChipTemplates((0, filterConfigHelpers_1.getFilterConfigItem)(filterConfig, filter), value) : undefined);
|
|
16
|
-
})
|
|
17
|
-
.filter(function (v) { return !!v; });
|
|
18
|
-
};
|
|
19
|
-
exports.toFilterChips = toFilterChips;
|
|
20
|
-
var toDeselectValue = function (filterConfig, chip, activeFilters) {
|
|
21
|
-
var configItem = (0, filterConfigHelpers_1.getFilterConfigItem)(filterConfig, (0, helpers_1.stringToId)(chip.category));
|
|
22
|
-
return (0, filterTypeHelpers_1.default)(configItem.type).toDeselectValue(configItem, chip, activeFilters);
|
|
23
|
-
};
|
|
24
|
-
exports.toDeselectValue = toDeselectValue;
|
|
25
|
-
//# sourceMappingURL=filterChipHelpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filterChipHelpers.js","sourceRoot":"","sources":["../src/useFilterConfig/filterChipHelpers.js"],"names":[],"mappings":";;;;;;AAAA,qCAAmD;AACnD,6DAA4D;AAC5D,0EAAoD;AAEpD,IAAM,mBAAmB,GAAG,UAAC,UAAU,EAAE,KAAK,YAAK,OAAA,MAAA,IAAA,2BAAiB,EAAC,UAAU,CAAC,IAAI,CAAC,0CAAE,WAAW,CAAC,UAAU,EAAE,KAAK,CAAC,CAAA,EAAA,CAAC;AAE/G,IAAM,aAAa,GAAG,UAAC,YAAY,EAAE,aAAa;IACvD,OAAA,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC;SAC1B,GAAG,CAAC,UAAC,EAAe;YAAd,MAAM,QAAA,EAAE,KAAK,QAAA;QAAM,OAAA,CAAC,IAAA,oBAAU,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,IAAA,yCAAmB,EAAC,YAAY,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAAvG,CAAuG,CAAC;SACjI,MAAM,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,CAAC,EAAH,CAAG,CAAC;AAFrB,CAEqB,CAAC;AAHX,QAAA,aAAa,iBAGF;AAEjB,IAAM,eAAe,GAAG,UAAC,YAAY,EAAE,IAAI,EAAE,aAAa;IAC/D,IAAM,UAAU,GAAG,IAAA,yCAAmB,EAAC,YAAY,EAAE,IAAA,oBAAU,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChF,OAAO,IAAA,2BAAiB,EAAC,UAAU,CAAC,IAAI,CAAC,CAAC,eAAe,CAAC,UAAU,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC;AAC7F,CAAC,CAAC;AAHW,QAAA,eAAe,mBAG1B"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export function toFilterConfig(filterConfig: any, activeFilters: any, handler: any): {
|
|
2
|
-
items: any;
|
|
3
|
-
};
|
|
4
|
-
export function getFilterConfigItem(filterConfig: any, filter: any): any;
|
|
5
|
-
export function toSelectValue(filterConfig: any, filter: any, selectedValue: any, selectedValues: any): any[];
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.toSelectValue = exports.getFilterConfigItem = exports.toFilterConfig = void 0;
|
|
7
|
-
var helpers_1 = require("./helpers");
|
|
8
|
-
var filterTypeHelpers_1 = __importDefault(require("./filterTypeHelpers"));
|
|
9
|
-
var getActiveFilters = function (configItem, activeFilters) { var _a, _b; return ((_b = (_a = (0, filterTypeHelpers_1.default)(configItem.type)) === null || _a === void 0 ? void 0 : _a.getActiveFilterValues) === null || _b === void 0 ? void 0 : _b.call(_a, configItem, activeFilters)) || activeFilters[(0, helpers_1.stringToId)(configItem.label)]; };
|
|
10
|
-
var toFilterConfigItem = function (configItem, handler, activeFilters) {
|
|
11
|
-
var _a, _b;
|
|
12
|
-
var value = getActiveFilters(configItem, activeFilters);
|
|
13
|
-
var filterValues = (_a = (0, filterTypeHelpers_1.default)(configItem.type)) === null || _a === void 0 ? void 0 : _a.filterValues(configItem, handler, value);
|
|
14
|
-
return filterValues
|
|
15
|
-
? {
|
|
16
|
-
type: configItem.type,
|
|
17
|
-
label: configItem.label,
|
|
18
|
-
className: configItem.className,
|
|
19
|
-
placeholder: (_b = configItem === null || configItem === void 0 ? void 0 : configItem.placeholder) !== null && _b !== void 0 ? _b : (0, helpers_1.defaultPlaceholder)(configItem.label),
|
|
20
|
-
id: (0, helpers_1.stringToId)(configItem.label),
|
|
21
|
-
filterValues: filterValues,
|
|
22
|
-
}
|
|
23
|
-
: undefined;
|
|
24
|
-
};
|
|
25
|
-
var toFilterConfig = function (filterConfig, activeFilters, handler) { return ({
|
|
26
|
-
items: filterConfig.map(function (configItem) { return toFilterConfigItem(configItem, handler, activeFilters); }).filter(function (v) { return !!v; }),
|
|
27
|
-
}); };
|
|
28
|
-
exports.toFilterConfig = toFilterConfig;
|
|
29
|
-
var getFilterConfigItem = function (filterConfig, filter) { return filterConfig.find(function (configItem) { return (0, helpers_1.stringToId)(configItem.label) === (0, helpers_1.stringToId)(filter); }); };
|
|
30
|
-
exports.getFilterConfigItem = getFilterConfigItem;
|
|
31
|
-
var toSelectValue = function (filterConfig, filter, selectedValue, selectedValues) {
|
|
32
|
-
var configItem = (0, exports.getFilterConfigItem)(filterConfig, filter);
|
|
33
|
-
return (0, filterTypeHelpers_1.default)(configItem.type).toSelectValue(configItem, selectedValues, selectedValue);
|
|
34
|
-
};
|
|
35
|
-
exports.toSelectValue = toSelectValue;
|
|
36
|
-
//# sourceMappingURL=filterConfigHelpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filterConfigHelpers.js","sourceRoot":"","sources":["../src/useFilterConfig/filterConfigHelpers.js"],"names":[],"mappings":";;;;;;AAAA,qCAA2D;AAC3D,0EAAoD;AAEpD,IAAM,gBAAgB,GAAG,UAAC,UAAU,EAAE,aAAa,gBACjD,OAAA,CAAA,MAAA,MAAA,IAAA,2BAAiB,EAAC,UAAU,CAAC,IAAI,CAAC,0CAAE,qBAAqB,mDAAG,UAAU,EAAE,aAAa,CAAC,KAAI,aAAa,CAAC,IAAA,oBAAU,EAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAA,EAAA,CAAC;AAExI,IAAM,kBAAkB,GAAG,UAAC,UAAU,EAAE,OAAO,EAAE,aAAa;;IAC5D,IAAM,KAAK,GAAG,gBAAgB,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IAC1D,IAAM,YAAY,GAAG,MAAA,IAAA,2BAAiB,EAAC,UAAU,CAAC,IAAI,CAAC,0CAAE,YAAY,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAClG,OAAO,YAAY;QACjB,CAAC,CAAC;YACE,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,SAAS,EAAE,UAAU,CAAC,SAAS;YAC/B,WAAW,EAAE,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,WAAW,mCAAI,IAAA,4BAAkB,EAAC,UAAU,CAAC,KAAK,CAAC;YAC5E,EAAE,EAAE,IAAA,oBAAU,EAAC,UAAU,CAAC,KAAK,CAAC;YAChC,YAAY,cAAA;SACb;QACH,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC,CAAC;AAEK,IAAM,cAAc,GAAG,UAAC,YAAY,EAAE,aAAa,EAAE,OAAO,IAAK,OAAA,CAAC;IACvE,KAAK,EAAE,YAAY,CAAC,GAAG,CAAC,UAAC,UAAU,IAAK,OAAA,kBAAkB,CAAC,UAAU,EAAE,OAAO,EAAE,aAAa,CAAC,EAAtD,CAAsD,CAAC,CAAC,MAAM,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,CAAC,EAAH,CAAG,CAAC;CACnH,CAAC,EAFsE,CAEtE,CAAC;AAFU,QAAA,cAAc,kBAExB;AAEI,IAAM,mBAAmB,GAAG,UAAC,YAAY,EAAE,MAAM,IAAK,OAAA,YAAY,CAAC,IAAI,CAAC,UAAC,UAAU,IAAK,OAAA,IAAA,oBAAU,EAAC,UAAU,CAAC,KAAK,CAAC,KAAK,IAAA,oBAAU,EAAC,MAAM,CAAC,EAAnD,CAAmD,CAAC,EAAtF,CAAsF,CAAC;AAAvI,QAAA,mBAAmB,uBAAoH;AAE7I,IAAM,aAAa,GAAG,UAAC,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc;IAC/E,IAAM,UAAU,GAAG,IAAA,2BAAmB,EAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAC7D,OAAO,IAAA,2BAAiB,EAAC,UAAU,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,UAAU,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC;AACrG,CAAC,CAAC;AAHW,QAAA,aAAa,iBAGxB"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
declare function _default(type: any): {
|
|
2
|
-
filterValues: ({ label }: {
|
|
3
|
-
label: any;
|
|
4
|
-
}, handler: any, value: any) => {
|
|
5
|
-
onChange: (_event: any, selectedValues: any, selectedValue: any) => void;
|
|
6
|
-
value: any;
|
|
7
|
-
};
|
|
8
|
-
filterChips: (configItem: any, value: any) => {
|
|
9
|
-
category: any;
|
|
10
|
-
chips: {
|
|
11
|
-
name: any;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
toSelectValue: (configItem: any, selectedValue: any) => any[];
|
|
15
|
-
toDeselectValue: (configItem: any, chip: any) => any[];
|
|
16
|
-
} | {
|
|
17
|
-
filterValues: ({ items, label }: {
|
|
18
|
-
items: any;
|
|
19
|
-
label: any;
|
|
20
|
-
}, handler: any, value: any) => {
|
|
21
|
-
onChange: (_event: any, selectedValues: any, selectedValue: any) => void;
|
|
22
|
-
items: any;
|
|
23
|
-
value: any;
|
|
24
|
-
};
|
|
25
|
-
filterChips: (configItem: any, value: any) => {
|
|
26
|
-
category: any;
|
|
27
|
-
chips: any;
|
|
28
|
-
};
|
|
29
|
-
toSelectValue: (configItem: any, _: any, selectedValue: any) => any[];
|
|
30
|
-
toDeselectValue: (configItem: any, chip: any) => any[];
|
|
31
|
-
} | {
|
|
32
|
-
filterValues: ({ items, label }: {
|
|
33
|
-
items: any;
|
|
34
|
-
label: any;
|
|
35
|
-
}, handler: any, value: any) => {
|
|
36
|
-
onChange: (_event: any, selectedValues: any, selectedValue: any) => void;
|
|
37
|
-
selected: any;
|
|
38
|
-
groups: any;
|
|
39
|
-
};
|
|
40
|
-
filterChips: (configItem: any, value: any) => {
|
|
41
|
-
category: any;
|
|
42
|
-
chips: {
|
|
43
|
-
name: any;
|
|
44
|
-
}[];
|
|
45
|
-
};
|
|
46
|
-
toSelectValue: (configItem: any, selectedValues: any) => any[];
|
|
47
|
-
toDeselectValue: (configItem: any, chip: any, activeFilters: any) => any[];
|
|
48
|
-
};
|
|
49
|
-
export default _default;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
var ConditionalFilter_1 = require("@redhat-cloud-services/frontend-components/ConditionalFilter");
|
|
15
|
-
var helpers_1 = require("./helpers");
|
|
16
|
-
var textType = {
|
|
17
|
-
filterValues: function (_a, handler, value) {
|
|
18
|
-
var label = _a.label;
|
|
19
|
-
return (__assign({ value: value }, (0, helpers_1.defaultOnChange)(handler, (0, helpers_1.stringToId)(label))));
|
|
20
|
-
},
|
|
21
|
-
filterChips: function (configItem, value) { return ({
|
|
22
|
-
category: configItem.label,
|
|
23
|
-
chips: [{ name: value[0] }],
|
|
24
|
-
}); },
|
|
25
|
-
toSelectValue: function (configItem, selectedValue) { return [selectedValue.length === 0 ? undefined : [selectedValue], (0, helpers_1.stringToId)(configItem.label), true]; },
|
|
26
|
-
toDeselectValue: function (configItem, chip) { return [chip.chips[0].name, (0, helpers_1.stringToId)(configItem.label)]; },
|
|
27
|
-
};
|
|
28
|
-
var checkboxType = {
|
|
29
|
-
filterValues: function (_a, handler, value) {
|
|
30
|
-
var items = _a.items, label = _a.label;
|
|
31
|
-
return (__assign({ items: items, value: value }, (0, helpers_1.defaultOnChange)(handler, (0, helpers_1.stringToId)(label))));
|
|
32
|
-
},
|
|
33
|
-
filterChips: function (configItem, value) { return ({
|
|
34
|
-
category: configItem.label,
|
|
35
|
-
chips: value.map(function (chipValue) { return ({
|
|
36
|
-
name: configItem.items.find(function (item) { return item.value === chipValue; }).label,
|
|
37
|
-
}); }),
|
|
38
|
-
}); },
|
|
39
|
-
toSelectValue: function (configItem, _, selectedValue) { return [selectedValue, (0, helpers_1.stringToId)(configItem.label)]; },
|
|
40
|
-
toDeselectValue: function (configItem, chip) { return [(0, helpers_1.configItemItemByLabel)(configItem, chip.chips[0].name).value, (0, helpers_1.stringToId)(configItem.label)]; },
|
|
41
|
-
};
|
|
42
|
-
var radioType = {
|
|
43
|
-
filterValues: function (_a, handler, value) {
|
|
44
|
-
var items = _a.items, label = _a.label;
|
|
45
|
-
return (__assign({ items: items, value: value === null || value === void 0 ? void 0 : value[0] }, (0, helpers_1.defaultOnChange)(handler, (0, helpers_1.stringToId)(label))));
|
|
46
|
-
},
|
|
47
|
-
filterChips: function (configItem, value) { return ({
|
|
48
|
-
category: configItem.label,
|
|
49
|
-
chips: [{ name: configItem.items.find(function (item) { return item.value === value[0]; }).label }],
|
|
50
|
-
}); },
|
|
51
|
-
toSelectValue: function (configItem, selectedValue) { return [[selectedValue], (0, helpers_1.stringToId)(configItem.label), true]; },
|
|
52
|
-
toDeselectValue: function (configItem, chip) { return [(0, helpers_1.configItemItemByLabel)(configItem, chip.chips[0].name).value, (0, helpers_1.stringToId)(configItem.label)]; },
|
|
53
|
-
};
|
|
54
|
-
var groupType = {
|
|
55
|
-
filterValues: function (_a, handler, value) {
|
|
56
|
-
var items = _a.items, label = _a.label;
|
|
57
|
-
return (__assign({ selected: value, groups: items === null || items === void 0 ? void 0 : items.map(function (item) {
|
|
58
|
-
var _a;
|
|
59
|
-
return (__assign(__assign({}, item), { type: 'checkbox', items: (_a = item.items) === null || _a === void 0 ? void 0 : _a.map(function (subItem) { return (__assign(__assign({}, subItem), { type: 'checkbox' })); }) }));
|
|
60
|
-
}) }, (0, helpers_1.defaultOnChange)(handler, (0, helpers_1.stringToId)(label))));
|
|
61
|
-
},
|
|
62
|
-
filterChips: function (configItem, value) { return ({
|
|
63
|
-
category: configItem.label,
|
|
64
|
-
chips: Object.entries(value).flatMap(function (groupItem) {
|
|
65
|
-
return Object.keys(groupItem[1]).map(function (itemValue) { return ({ name: (0, helpers_1.itemForValueInGroups)(configItem, itemValue).label }); });
|
|
66
|
-
}),
|
|
67
|
-
}); },
|
|
68
|
-
toSelectValue: function (configItem, selectedValues) { return [selectedValues, (0, helpers_1.stringToId)(configItem.label), true]; },
|
|
69
|
-
toDeselectValue: function (configItem, chip, activeFilters) {
|
|
70
|
-
var _a;
|
|
71
|
-
var filter = (0, helpers_1.stringToId)(configItem.label);
|
|
72
|
-
var activeValues = activeFilters[filter];
|
|
73
|
-
var item = (0, helpers_1.itemForLabelInGroups)(configItem, chip.chips[0].name);
|
|
74
|
-
if ((_a = item.parent) === null || _a === void 0 ? void 0 : _a.value) {
|
|
75
|
-
delete activeValues[item.parent.value][item.value];
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
delete activeValues[item.value][item.value];
|
|
79
|
-
}
|
|
80
|
-
return [activeValues, filter, true];
|
|
81
|
-
},
|
|
82
|
-
};
|
|
83
|
-
exports.default = (function (type) {
|
|
84
|
-
var _a;
|
|
85
|
-
return ((_a = {},
|
|
86
|
-
_a[ConditionalFilter_1.conditionalFilterType.text] = textType,
|
|
87
|
-
_a[ConditionalFilter_1.conditionalFilterType.checkbox] = checkboxType,
|
|
88
|
-
_a[ConditionalFilter_1.conditionalFilterType.radio] = radioType,
|
|
89
|
-
_a[ConditionalFilter_1.conditionalFilterType.group] = groupType,
|
|
90
|
-
_a)[type]);
|
|
91
|
-
});
|
|
92
|
-
//# sourceMappingURL=filterTypeHelpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filterTypeHelpers.js","sourceRoot":"","sources":["../src/useFilterConfig/filterTypeHelpers.js"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kGAAqG;AACrG,qCAA2H;AAE3H,IAAM,QAAQ,GAAG;IAEf,YAAY,EAAE,UAAC,EAAS,EAAE,OAAO,EAAE,KAAK;YAAvB,KAAK,WAAA;QAAuB,OAAA,YAC3C,KAAK,OAAA,IACF,IAAA,yBAAe,EAAC,OAAO,EAAE,IAAA,oBAAU,EAAC,KAAK,CAAC,CAAC,EAC9C;IAH2C,CAG3C;IAEF,WAAW,EAAE,UAAC,UAAU,EAAE,KAAK,IAAK,OAAA,CAAC;QACnC,QAAQ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