@economic/taco 2.46.9 → 2.47.0-server-1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. package/dist/components/Report/Report.d.ts +1 -1
  2. package/dist/components/SearchInput2/SearchInput2.d.ts +2 -0
  3. package/dist/components/Table3/components/Row/Editing/CreateNewRow.d.ts +1 -2
  4. package/dist/components/Table3/components/Row/Editing/TemporaryRow.d.ts +1 -0
  5. package/dist/components/Table3/features/useEditingState.d.ts +11 -11
  6. package/dist/components/Table3/features/useTableEditing.d.ts +13 -13
  7. package/dist/components/Table3/util/editing.d.ts +3 -0
  8. package/dist/esm/index.css +2 -2
  9. package/dist/esm/node_modules/babel-plugin-transform-async-to-promises/helpers.mjs.js +17 -17
  10. package/dist/esm/node_modules/babel-plugin-transform-async-to-promises/helpers.mjs.js.map +1 -1
  11. package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js +6 -3
  12. package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js.map +1 -1
  13. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js +1 -1
  14. package/dist/esm/packages/taco/src/components/Table3/Table3.js +14 -4
  15. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  16. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js +1 -1
  17. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -1
  18. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js +14 -9
  19. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js.map +1 -1
  20. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/CreateNewRow.js +2 -4
  21. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/CreateNewRow.js.map +1 -1
  22. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/TemporaryRow.js +5 -4
  23. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/TemporaryRow.js.map +1 -1
  24. package/dist/esm/packages/taco/src/components/Table3/features/useEditingState.js +32 -51
  25. package/dist/esm/packages/taco/src/components/Table3/features/useEditingState.js.map +1 -1
  26. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +5 -3
  27. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +1 -1
  28. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +15 -12
  29. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +1 -1
  30. package/dist/esm/packages/taco/src/components/Table3/util/editing.js +9 -1
  31. package/dist/esm/packages/taco/src/components/Table3/util/editing.js.map +1 -1
  32. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +2 -1
  33. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +1 -1
  34. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js +4 -0
  35. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +1 -1
  36. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js +7 -4
  37. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js.map +1 -1
  38. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js +7 -2
  39. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js.map +1 -1
  40. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js +7 -5
  41. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js.map +1 -1
  42. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js +24 -22
  43. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js.map +1 -1
  44. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js +41 -4
  45. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js.map +1 -1
  46. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js +3 -1
  47. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js.map +1 -1
  48. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js +26 -3
  49. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js.map +1 -1
  50. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js +1 -1
  51. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js.map +1 -1
  52. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js +36 -9
  53. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js.map +1 -1
  54. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js +1 -1
  55. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js.map +1 -1
  56. package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
  57. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js +5 -7
  58. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js.map +1 -1
  59. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js +1 -1
  60. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js.map +1 -1
  61. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowExpansion.js +2 -1
  62. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowExpansion.js.map +1 -1
  63. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSearch.js +3 -2
  64. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSearch.js.map +1 -1
  65. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableServerLoading.js +4 -2
  66. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableServerLoading.js.map +1 -1
  67. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFilterListener.js +3 -1
  68. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFilterListener.js.map +1 -1
  69. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowSelectionListener.js +4 -4
  70. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowSelectionListener.js.map +1 -1
  71. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSearchListener.js +14 -13
  72. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSearchListener.js.map +1 -1
  73. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableServerLoadingListener.js +7 -3
  74. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableServerLoadingListener.js.map +1 -1
  75. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js +4 -4
  76. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -1
  77. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/columns.js +4 -1
  78. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/columns.js.map +1 -1
  79. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js +7 -1
  80. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js.map +1 -1
  81. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js +6 -0
  82. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -1
  83. package/dist/hooks/useLazyDebouncedEffect.d.ts +2 -0
  84. package/dist/index.css +2 -2
  85. package/dist/primitives/Table/Core/Table.d.ts +1 -0
  86. package/dist/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.d.ts +2 -2
  87. package/dist/primitives/Table/Core/components/Row/Row.d.ts +2 -0
  88. package/dist/primitives/Table/Core/features/useTableRenderer.d.ts +1 -1
  89. package/dist/primitives/Table/types.d.ts +11 -6
  90. package/dist/primitives/Table/useTableDataLoader2.d.ts +24 -0
  91. package/dist/primitives/Table/useTableManager/features/useTableRowExpansion.d.ts +2 -1
  92. package/dist/primitives/Table/useTableManager/features/useTableSearch.d.ts +4 -2
  93. package/dist/primitives/Table/useTableManager/features/useTableServerLoading.d.ts +3 -1
  94. package/dist/primitives/Table/useTableManager/listeners/useTableSearchListener.d.ts +1 -2
  95. package/dist/primitives/Table/useTableManager/util/columns.d.ts +2 -1
  96. package/dist/taco.cjs.development.js +363 -229
  97. package/dist/taco.cjs.development.js.map +1 -1
  98. package/dist/taco.cjs.production.min.js +1 -1
  99. package/dist/taco.cjs.production.min.js.map +1 -1
  100. package/package.json +2 -3
@@ -1,5 +1,6 @@
1
1
  import { TableRowExpansionRenderer } from '../../types';
2
- export declare function useTableRowExpansion<TType = unknown>(isEnabled?: boolean, rowExpansionRenderer?: TableRowExpansionRenderer<TType>): {
2
+ export declare function useTableRowExpansion<TType = unknown>(isEnabled?: boolean, canExpandAll?: boolean, rowExpansionRenderer?: TableRowExpansionRenderer<TType>): {
3
3
  isEnabled: boolean;
4
+ canExpandAll: boolean;
4
5
  rowExpansionRenderer: TableRowExpansionRenderer<TType> | undefined;
5
6
  };
@@ -1,11 +1,13 @@
1
1
  import React from 'react';
2
2
  import { Table as ReactTable } from '@tanstack/react-table';
3
- export declare function useTableSearch(isEnabled?: boolean, defaultEnableGlobalFilter?: boolean): {
3
+ import { TableSearchHandler } from '../../types';
4
+ export declare function useTableSearch<TType = unknown>(isEnabled: boolean | undefined, onChangeSearch: TableSearchHandler | undefined, defaultEnableGlobalFilter?: boolean): {
4
5
  isEnabled: boolean;
5
6
  enableGlobalFilter: boolean;
6
- setEnableGlobalFilter: <TType = unknown>(enabled: boolean, instance: ReactTable<TType>) => void;
7
+ setEnableGlobalFilter: <T extends TType>(enabled: boolean, instance: ReactTable<T>) => void;
7
8
  highlightedColumnIndexes: number[][];
8
9
  setHighlightedColumnIndexes: React.Dispatch<React.SetStateAction<number[][]>>;
9
10
  currentHighlightColumnIndex: number | undefined;
10
11
  setCurrentHighlightColumnIndex: React.Dispatch<React.SetStateAction<number | undefined>>;
12
+ handleSearch: TableSearchHandler | undefined;
11
13
  };
@@ -1,5 +1,6 @@
1
1
  import { TableServerLoadAllHandler, TableServerLoadAllState, TableServerLoadPageHandler } from '../../types';
2
- export declare function useTableServerLoading(loadPage?: TableServerLoadPageHandler, loadAll?: TableServerLoadAllHandler, pageSize?: number): {
2
+ export declare function useTableServerLoading(loadPage?: TableServerLoadPageHandler, loadAll?: TableServerLoadAllHandler, pages?: number[], pageSize?: number, _experimentalDataLoader2?: boolean): {
3
+ pages: number[] | undefined;
3
4
  isEnabled: boolean;
4
5
  isReady: boolean;
5
6
  loadPage: TableServerLoadPageHandler | undefined;
@@ -7,4 +8,5 @@ export declare function useTableServerLoading(loadPage?: TableServerLoadPageHand
7
8
  loadAllIfNeeded: TableServerLoadAllHandler | undefined;
8
9
  loadAllStatus: TableServerLoadAllState;
9
10
  pageSize: number;
11
+ _experimentalDataLoader2: boolean;
10
12
  };
@@ -1,3 +1,2 @@
1
1
  import { Table as ReactTable } from '@tanstack/react-table';
2
- import { TableSearchHandler } from '../../types';
3
- export declare function useTableSearchListener<TType = unknown>(table: ReactTable<TType>, onChangeSearch?: TableSearchHandler): void;
2
+ export declare function useTableSearchListener<TType = unknown>(table: ReactTable<TType>): void;
@@ -1,4 +1,4 @@
1
- import { ColumnDef as ReactTableColumnDef } from '@tanstack/react-table';
1
+ import { ColumnDef as ReactTableColumnDef, VisibilityState as ReactTableVisibilityState } from '@tanstack/react-table';
2
2
  import { FontSize } from '../../../../types';
3
3
  import { TableColumnDataType } from '../../types';
4
4
  import { Localization } from '../../../../components/Provider/Localization';
@@ -8,3 +8,4 @@ export declare function isCellHighlighted(query: string, value: unknown, dataTyp
8
8
  export declare function ensureOrdering<TType = unknown>(columns: ReactTableColumnDef<TType>[], settingsOrder: string[] | undefined, pinnedOrder?: string[] | undefined, internalColumnsPinnedToTheRight?: string[]): string[];
9
9
  export declare function unfreezeAllExternalColumns(leftPinnedState?: string[]): string[];
10
10
  export declare function freezeUptoExternalColumn(index: number, columns: string[]): string[];
11
+ export declare function getHiddenColumns(columnVisibility?: ReactTableVisibilityState): string[];