@uxf/data-grid 11.19.3 → 11.20.0

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 (77) hide show
  1. package/_components/drawer.js +2 -2
  2. package/components.d.ts +5 -0
  3. package/components.js +5 -0
  4. package/data-grid-custom-example.stories.d.ts +2 -0
  5. package/data-grid-custom-example.stories.js +57 -0
  6. package/data-grid.js +16 -14
  7. package/data-grid.stories.js +0 -1
  8. package/export-button/export-button.d.ts +4 -3
  9. package/export-button/export-button.js +3 -1
  10. package/export-button/export-button.stories.js +1 -1
  11. package/filter-handler/entity-multi-select.js +7 -3
  12. package/filter-list/filter-list.d.ts +4 -1
  13. package/filter-list/filter-list.js +4 -2
  14. package/filter-list/filter-list.stories.js +1 -1
  15. package/filters/filters.d.ts +4 -4
  16. package/filters/filters.js +4 -2
  17. package/filters/filters.stories.js +1 -1
  18. package/filters-button/filters-button.d.ts +4 -4
  19. package/filters-button/filters-button.js +4 -2
  20. package/filters-button/filters-button.stories.js +1 -1
  21. package/footer/footer.d.ts +7 -0
  22. package/footer/footer.js +13 -0
  23. package/footer/index.d.ts +1 -0
  24. package/footer/index.js +17 -0
  25. package/fulltext-input/fulltext-input.d.ts +4 -3
  26. package/fulltext-input/fulltext-input.js +3 -1
  27. package/fulltext-input/fulltext-input.stories.js +1 -1
  28. package/hidden-columns/hidden-columns.d.ts +4 -3
  29. package/hidden-columns/hidden-columns.js +3 -1
  30. package/hidden-columns/hidden-columns.stories.js +1 -1
  31. package/hidden-columns-button/hidden-columns-button.d.ts +4 -3
  32. package/hidden-columns-button/hidden-columns-button.js +3 -1
  33. package/hidden-columns-button/hidden-columns-button.stories.js +1 -1
  34. package/linear-progress/linear-progress.d.ts +4 -0
  35. package/linear-progress/linear-progress.js +3 -1
  36. package/package.json +4 -3
  37. package/pagination/pagination.d.ts +4 -0
  38. package/pagination/pagination.js +3 -1
  39. package/pagination/pagination.stories.js +1 -1
  40. package/root/index.d.ts +1 -0
  41. package/root/index.js +17 -0
  42. package/root/root.d.ts +8 -0
  43. package/root/root.js +13 -0
  44. package/row-counts/row-counts.d.ts +4 -0
  45. package/row-counts/row-counts.js +4 -2
  46. package/row-counts/row-counts.stories.js +1 -1
  47. package/rows-per-page-select/rows-per-page-select.d.ts +2 -0
  48. package/rows-per-page-select/rows-per-page-select.js +3 -1
  49. package/rows-per-page-select/rows-per-page-select.stories.js +1 -1
  50. package/selected-rows-toolbar/selected-rows-toolbar.d.ts +4 -0
  51. package/selected-rows-toolbar/selected-rows-toolbar.js +3 -1
  52. package/selected-rows-toolbar/selected-rows-toolbar.stories.js +1 -1
  53. package/table/table.d.ts +5 -2
  54. package/table/table.js +7 -4
  55. package/table/table.stories.js +1 -1
  56. package/table/types.d.ts +2 -0
  57. package/table-v2/hooks/use-resizable-columns.js +5 -6
  58. package/table-v2/table-v2.d.ts +4 -2
  59. package/table-v2/table-v2.js +4 -2
  60. package/table-v2/table-v2.stories.js +2 -2
  61. package/table-v2/types.d.ts +2 -0
  62. package/toolbar/index.d.ts +1 -0
  63. package/toolbar/index.js +17 -0
  64. package/toolbar/toolbar.d.ts +6 -0
  65. package/toolbar/toolbar.js +13 -0
  66. package/toolbar-control/toolbar-control.d.ts +4 -1
  67. package/toolbar-control/toolbar-control.js +8 -6
  68. package/toolbar-control/toolbar-control.stories.js +1 -1
  69. package/toolbar-customs/toolbar-customs.d.ts +4 -0
  70. package/toolbar-customs/toolbar-customs.js +3 -1
  71. package/toolbar-customs/toolbar-customs.stories.js +1 -1
  72. package/toolbar-tabs/toolbar-tabs.d.ts +5 -1
  73. package/toolbar-tabs/toolbar-tabs.js +4 -2
  74. package/toolbar-tabs/toolbar-tabs.stories.js +1 -1
  75. package/types/data-grid-props.d.ts +5 -4
  76. package/use-data-grid-fetching/use-data-grid-fetching.d.ts +0 -1
  77. package/use-data-grid-fetching/use-data-grid-fetching.js +3 -3
@@ -15,7 +15,6 @@ export interface DataGridFetchingResult<Row> {
15
15
  export interface UseDataGridFetchingConfig {
16
16
  loader?: Loader;
17
17
  schema: Schema<any>;
18
- gridName: string;
19
18
  state: DataGridControl["state"];
20
19
  }
21
20
  export declare function useDataGridFetching(config: UseDataGridFetchingConfig): DataGridFetchingResult<any>;
@@ -5,7 +5,7 @@ const react_1 = require("react");
5
5
  const utils_1 = require("../utils");
6
6
  const loader_1 = require("./loader");
7
7
  function useDataGridFetching(config) {
8
- const { state, loader = loader_1.dataGridLoader, gridName } = config;
8
+ const { state, loader = loader_1.dataGridLoader } = config;
9
9
  const [isLoading, setIsLoading] = (0, react_1.useState)(false);
10
10
  const [error, setError] = (0, react_1.useState)(null);
11
11
  const [data, setData] = (0, react_1.useState)(null);
@@ -14,7 +14,7 @@ function useDataGridFetching(config) {
14
14
  const stateRequest = JSON.parse(stringStateRequest);
15
15
  const request = (0, utils_1.createRequest)(stateRequest);
16
16
  setIsLoading(true);
17
- loader(gridName, request, (0, utils_1.encodeFilter)(request))
17
+ loader(config.schema.name, request, (0, utils_1.encodeFilter)(request))
18
18
  .then((response) => {
19
19
  setData(response);
20
20
  setError(null);
@@ -27,7 +27,7 @@ function useDataGridFetching(config) {
27
27
  setError(e);
28
28
  });
29
29
  // eslint-disable-next-line react-hooks/exhaustive-deps
30
- }, [stringStateRequest, gridName]);
30
+ }, [stringStateRequest, config.schema]);
31
31
  (0, react_1.useEffect)(() => {
32
32
  reload();
33
33
  }, [reload]);