@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.
Files changed (111) hide show
  1. package/DataGrid.d.ts +1 -0
  2. package/DataGrid.js +52 -108
  3. package/README.md +105 -100
  4. package/index.d.ts +1 -6
  5. package/index.js +2 -7
  6. package/package.json +6 -11
  7. package/store/actions.d.ts +4 -0
  8. package/store/actions.js +7 -2
  9. package/store/reducer.js +6 -2
  10. package/tailwindui/DataGrid.d.ts +11 -0
  11. package/tailwindui/DataGrid.js +83 -0
  12. package/{components/ActionCellBase.d.ts → tailwindui/components/action-cell-base.d.ts} +1 -1
  13. package/tailwindui/components/action-cell-base.js +90 -0
  14. package/tailwindui/components/badge.d.ts +5 -0
  15. package/tailwindui/components/badge.js +18 -0
  16. package/{components/BodyCellBase.d.ts → tailwindui/components/body-cell-base.d.ts} +1 -1
  17. package/tailwindui/components/body-cell-base.js +23 -0
  18. package/{components/BodyCellWrapper.d.ts → tailwindui/components/body-cell-wrapper.d.ts} +0 -0
  19. package/tailwindui/components/body-cell-wrapper.js +13 -0
  20. package/tailwindui/components/circle-button.d.ts +9 -0
  21. package/tailwindui/components/circle-button.js +13 -0
  22. package/tailwindui/components/container.d.ts +2 -0
  23. package/tailwindui/components/container.js +20 -0
  24. package/tailwindui/components/drawer.d.ts +9 -0
  25. package/tailwindui/components/drawer.js +22 -0
  26. package/{components/FilterInputBase.d.ts → tailwindui/components/filter-input-base.d.ts} +1 -1
  27. package/tailwindui/components/filter-input-base.js +30 -0
  28. package/{components/FilterListItemBase.d.ts → tailwindui/components/filter-list-item-base.d.ts} +1 -1
  29. package/tailwindui/components/filter-list-item-base.js +34 -0
  30. package/tailwindui/components/filters-list.d.ts +2 -0
  31. package/tailwindui/components/filters-list.js +21 -0
  32. package/tailwindui/components/icons/chevron-double-left.d.ts +2 -0
  33. package/tailwindui/components/icons/chevron-double-left.js +13 -0
  34. package/tailwindui/components/icons/chevron-double-right.d.ts +2 -0
  35. package/tailwindui/components/icons/chevron-double-right.js +13 -0
  36. package/tailwindui/components/icons/chevron-left.d.ts +2 -0
  37. package/tailwindui/components/icons/chevron-left.js +13 -0
  38. package/tailwindui/components/icons/chevron-right.d.ts +2 -0
  39. package/tailwindui/components/icons/chevron-right.js +13 -0
  40. package/tailwindui/components/icons/cloud-download.d.ts +2 -0
  41. package/tailwindui/components/icons/cloud-download.js +13 -0
  42. package/tailwindui/components/icons/edit.d.ts +2 -0
  43. package/tailwindui/components/icons/edit.js +13 -0
  44. package/tailwindui/components/icons/filter.d.ts +2 -0
  45. package/tailwindui/components/icons/filter.js +13 -0
  46. package/tailwindui/components/icons/open.d.ts +2 -0
  47. package/tailwindui/components/icons/open.js +13 -0
  48. package/tailwindui/components/icons/table.d.ts +2 -0
  49. package/tailwindui/components/icons/table.js +13 -0
  50. package/tailwindui/components/icons/trash.d.ts +2 -0
  51. package/tailwindui/components/icons/trash.js +13 -0
  52. package/tailwindui/components/inputs/checkbox.d.ts +10 -0
  53. package/tailwindui/components/inputs/checkbox.js +23 -0
  54. package/tailwindui/components/inputs/select.d.ts +13 -0
  55. package/tailwindui/components/inputs/select.js +19 -0
  56. package/tailwindui/components/inputs/switch.d.ts +7 -0
  57. package/tailwindui/components/inputs/switch.js +19 -0
  58. package/tailwindui/components/inputs/text-input.d.ts +7 -0
  59. package/tailwindui/components/inputs/text-input.js +18 -0
  60. package/tailwindui/components/linear-progress.d.ts +2 -0
  61. package/tailwindui/components/linear-progress.js +10 -0
  62. package/tailwindui/components/no-rows-fallback.d.ts +2 -0
  63. package/tailwindui/components/no-rows-fallback.js +13 -0
  64. package/tailwindui/components/pagination.d.ts +2 -0
  65. package/tailwindui/components/pagination.js +55 -0
  66. package/tailwindui/components/tab.d.ts +6 -0
  67. package/tailwindui/components/tab.js +16 -0
  68. package/tailwindui/components/toolbar-container.d.ts +2 -0
  69. package/tailwindui/components/toolbar-container.js +12 -0
  70. package/tailwindui/index.d.ts +7 -0
  71. package/tailwindui/index.js +20 -0
  72. package/tailwindui/styles.css +60 -0
  73. package/tailwindui/toolbar-plugins/csv-export-plugin.d.ts +2 -0
  74. package/tailwindui/toolbar-plugins/csv-export-plugin.js +20 -0
  75. package/tailwindui/toolbar-plugins/filters-plugin.d.ts +2 -0
  76. package/tailwindui/toolbar-plugins/filters-plugin.js +67 -0
  77. package/tailwindui/toolbar-plugins/fulltext-plugin.d.ts +2 -0
  78. package/tailwindui/toolbar-plugins/fulltext-plugin.js +65 -0
  79. package/tailwindui/toolbar-plugins/hidden-columns-plugin.d.ts +2 -0
  80. package/tailwindui/toolbar-plugins/hidden-columns-plugin.js +79 -0
  81. package/tailwindui/toolbar-plugins/tabs-filter-plugin.d.ts +2 -0
  82. package/tailwindui/toolbar-plugins/tabs-filter-plugin.js +19 -0
  83. package/tailwindui/toolbar-plugins/title-plugin.d.ts +2 -0
  84. package/tailwindui/toolbar-plugins/title-plugin.js +16 -0
  85. package/tailwindui/ui.d.ts +2 -0
  86. package/tailwindui/ui.js +27 -0
  87. package/types.d.ts +89 -29
  88. package/{utils/utils.d.ts → utils.d.ts} +1 -1
  89. package/utils.js +37 -0
  90. package/components/ActionCellBase.js +0 -96
  91. package/components/BodyCellBase.js +0 -23
  92. package/components/BodyCellWrapper.js +0 -14
  93. package/components/Drawer.d.ts +0 -7
  94. package/components/Drawer.js +0 -42
  95. package/components/FilterInputBase.js +0 -43
  96. package/components/FilterListItemBase.js +0 -25
  97. package/components/Filters.d.ts +0 -11
  98. package/components/Filters.js +0 -66
  99. package/components/FiltersList.d.ts +0 -10
  100. package/components/FiltersList.js +0 -47
  101. package/components/HiddenColumns.d.ts +0 -10
  102. package/components/HiddenColumns.js +0 -79
  103. package/components/Paper.d.ts +0 -15
  104. package/components/Paper.js +0 -15
  105. package/translations/textLabels.d.ts +0 -42
  106. package/translations/textLabels.js +0 -45
  107. package/translations/textLabelsEn.d.ts +0 -42
  108. package/translations/textLabelsEn.js +0 -45
  109. package/translations/types.d.ts +0 -49
  110. package/translations/types.js +0 -3
  111. 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbHMvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsU0FBZ0IsWUFBWSxDQUFDLFlBQW9CO0lBQzdDLElBQUk7UUFDQSxJQUFNLE1BQU0sR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLGtCQUFrQixDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFFMUUsT0FBTztZQUNILENBQUMsRUFBRSxNQU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