@uxf/data-grid 3.2.0 → 4.0.0-beta.3
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/DataGrid.d.ts +1 -0
- package/DataGrid.js +52 -108
- package/README.md +105 -100
- package/index.d.ts +1 -6
- package/index.js +2 -7
- package/package.json +6 -11
- package/store/actions.d.ts +4 -0
- package/store/actions.js +7 -2
- package/store/reducer.js +6 -2
- package/tailwindui/DataGrid.d.ts +11 -0
- package/tailwindui/DataGrid.js +83 -0
- package/{components/ActionCellBase.d.ts → tailwindui/components/action-cell-base.d.ts} +1 -1
- package/tailwindui/components/action-cell-base.js +90 -0
- package/tailwindui/components/badge.d.ts +5 -0
- package/tailwindui/components/badge.js +18 -0
- package/{components/BodyCellBase.d.ts → tailwindui/components/body-cell-base.d.ts} +1 -1
- package/tailwindui/components/body-cell-base.js +23 -0
- package/{components/BodyCellWrapper.d.ts → tailwindui/components/body-cell-wrapper.d.ts} +0 -0
- package/tailwindui/components/body-cell-wrapper.js +13 -0
- package/tailwindui/components/circle-button.d.ts +9 -0
- package/tailwindui/components/circle-button.js +13 -0
- package/tailwindui/components/container.d.ts +2 -0
- package/tailwindui/components/container.js +20 -0
- package/tailwindui/components/drawer.d.ts +9 -0
- package/tailwindui/components/drawer.js +22 -0
- package/{components/FilterInputBase.d.ts → tailwindui/components/filter-input-base.d.ts} +1 -1
- package/tailwindui/components/filter-input-base.js +30 -0
- package/{components/FilterListItemBase.d.ts → tailwindui/components/filter-list-item-base.d.ts} +1 -1
- package/tailwindui/components/filter-list-item-base.js +34 -0
- package/tailwindui/components/filters-list.d.ts +2 -0
- package/tailwindui/components/filters-list.js +21 -0
- package/tailwindui/components/icons/chevron-double-left.d.ts +2 -0
- package/tailwindui/components/icons/chevron-double-left.js +13 -0
- package/tailwindui/components/icons/chevron-double-right.d.ts +2 -0
- package/tailwindui/components/icons/chevron-double-right.js +13 -0
- package/tailwindui/components/icons/chevron-left.d.ts +2 -0
- package/tailwindui/components/icons/chevron-left.js +13 -0
- package/tailwindui/components/icons/chevron-right.d.ts +2 -0
- package/tailwindui/components/icons/chevron-right.js +13 -0
- package/tailwindui/components/icons/cloud-download.d.ts +2 -0
- package/tailwindui/components/icons/cloud-download.js +13 -0
- package/tailwindui/components/icons/edit.d.ts +2 -0
- package/tailwindui/components/icons/edit.js +13 -0
- package/tailwindui/components/icons/filter.d.ts +2 -0
- package/tailwindui/components/icons/filter.js +13 -0
- package/tailwindui/components/icons/open.d.ts +2 -0
- package/tailwindui/components/icons/open.js +13 -0
- package/tailwindui/components/icons/table.d.ts +2 -0
- package/tailwindui/components/icons/table.js +13 -0
- package/tailwindui/components/icons/trash.d.ts +2 -0
- package/tailwindui/components/icons/trash.js +13 -0
- package/tailwindui/components/inputs/checkbox.d.ts +10 -0
- package/tailwindui/components/inputs/checkbox.js +23 -0
- package/tailwindui/components/inputs/select.d.ts +13 -0
- package/tailwindui/components/inputs/select.js +19 -0
- package/tailwindui/components/inputs/switch.d.ts +7 -0
- package/tailwindui/components/inputs/switch.js +19 -0
- package/tailwindui/components/inputs/text-input.d.ts +7 -0
- package/tailwindui/components/inputs/text-input.js +18 -0
- package/tailwindui/components/linear-progress.d.ts +2 -0
- package/tailwindui/components/linear-progress.js +10 -0
- package/tailwindui/components/no-rows-fallback.d.ts +2 -0
- package/tailwindui/components/no-rows-fallback.js +13 -0
- package/tailwindui/components/pagination.d.ts +2 -0
- package/tailwindui/components/pagination.js +55 -0
- package/tailwindui/components/tab.d.ts +6 -0
- package/tailwindui/components/tab.js +16 -0
- package/tailwindui/components/toolbar-container.d.ts +2 -0
- package/tailwindui/components/toolbar-container.js +12 -0
- package/tailwindui/index.d.ts +7 -0
- package/tailwindui/index.js +20 -0
- package/tailwindui/styles.css +60 -0
- package/tailwindui/toolbar-plugins/csv-export-plugin.d.ts +2 -0
- package/tailwindui/toolbar-plugins/csv-export-plugin.js +20 -0
- package/tailwindui/toolbar-plugins/filters-plugin.d.ts +2 -0
- package/tailwindui/toolbar-plugins/filters-plugin.js +67 -0
- package/tailwindui/toolbar-plugins/fulltext-plugin.d.ts +2 -0
- package/tailwindui/toolbar-plugins/fulltext-plugin.js +65 -0
- package/tailwindui/toolbar-plugins/hidden-columns-plugin.d.ts +2 -0
- package/tailwindui/toolbar-plugins/hidden-columns-plugin.js +79 -0
- package/tailwindui/toolbar-plugins/tabs-filter-plugin.d.ts +2 -0
- package/tailwindui/toolbar-plugins/tabs-filter-plugin.js +19 -0
- package/tailwindui/toolbar-plugins/title-plugin.d.ts +2 -0
- package/tailwindui/toolbar-plugins/title-plugin.js +16 -0
- package/tailwindui/ui.d.ts +2 -0
- package/tailwindui/ui.js +27 -0
- package/types.d.ts +89 -29
- package/{utils/utils.d.ts → utils.d.ts} +1 -1
- package/utils.js +37 -0
- package/components/ActionCellBase.js +0 -96
- package/components/BodyCellBase.js +0 -23
- package/components/BodyCellWrapper.js +0 -14
- package/components/Drawer.d.ts +0 -7
- package/components/Drawer.js +0 -42
- package/components/FilterInputBase.js +0 -43
- package/components/FilterListItemBase.js +0 -25
- package/components/Filters.d.ts +0 -11
- package/components/Filters.js +0 -66
- package/components/FiltersList.d.ts +0 -10
- package/components/FiltersList.js +0 -47
- package/components/HiddenColumns.d.ts +0 -10
- package/components/HiddenColumns.js +0 -79
- package/components/Paper.d.ts +0 -15
- package/components/Paper.js +0 -15
- package/translations/textLabels.d.ts +0 -42
- package/translations/textLabels.js +0 -45
- package/translations/textLabelsEn.d.ts +0 -42
- package/translations/textLabelsEn.js +0 -45
- package/translations/types.d.ts +0 -49
- package/translations/types.js +0 -3
- package/utils/utils.js +0 -36
package/utils/utils.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createRequest = exports.encodeFilter = exports.decodeFilter = void 0;
|
|
4
|
-
function decodeFilter(filterString) {
|
|
5
|
-
try {
|
|
6
|
-
var filter = JSON.parse(decodeURIComponent(escape(atob(filterString))));
|
|
7
|
-
return {
|
|
8
|
-
f: filter.f || [],
|
|
9
|
-
perPage: filter.perPage || 10,
|
|
10
|
-
page: filter.page || 0,
|
|
11
|
-
dir: filter.dir || "asc",
|
|
12
|
-
sort: filter.sort || "id",
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
catch (e) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.decodeFilter = decodeFilter;
|
|
20
|
-
function encodeFilter(request) {
|
|
21
|
-
return btoa(unescape(encodeURIComponent(JSON.stringify(request))));
|
|
22
|
-
}
|
|
23
|
-
exports.encodeFilter = encodeFilter;
|
|
24
|
-
function createRequest(state, defaultSort, defaultDir) {
|
|
25
|
-
var _a, _b;
|
|
26
|
-
return {
|
|
27
|
-
sort: (_a = state.sort) !== null && _a !== void 0 ? _a : defaultSort,
|
|
28
|
-
dir: (_b = state.dir) !== null && _b !== void 0 ? _b : defaultDir,
|
|
29
|
-
perPage: state.perPage,
|
|
30
|
-
page: state.page,
|
|
31
|
-
f: state.f.filter(function (f) { return !!f.value; }),
|
|
32
|
-
search: state.fullText,
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
exports.createRequest = createRequest;
|
|
36
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbHMvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsU0FBZ0IsWUFBWSxDQUFDLFlBQW9CO0lBQzdDLElBQUk7UUFDQSxJQUFNLE1BQU0sR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLGtCQUFrQixDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFFMUUsT0F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