@economic/taco 2.46.9-alpha.1 → 2.47.0-server-1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. package/dist/components/AlertDialog/AlertDialog.d.ts +1 -2
  2. package/dist/components/AlertDialog/components/Content.d.ts +0 -2
  3. package/dist/components/Dialog/components/Content.d.ts +3 -3
  4. package/dist/components/Menu/components/Content.d.ts +1 -1
  5. package/dist/components/Menu/components/SubMenu.d.ts +1 -1
  6. package/dist/components/Popover/Popover.d.ts +1 -1
  7. package/dist/components/Report/Report.d.ts +1 -1
  8. package/dist/components/SearchInput2/SearchInput2.d.ts +2 -0
  9. package/dist/components/Table3/components/Row/Editing/CreateNewRow.d.ts +1 -2
  10. package/dist/components/Table3/components/Row/Editing/TemporaryRow.d.ts +1 -0
  11. package/dist/components/Table3/features/useEditingState.d.ts +11 -11
  12. package/dist/components/Table3/features/useTableEditing.d.ts +13 -13
  13. package/dist/components/Table3/util/editing.d.ts +3 -0
  14. package/dist/esm/index.css +2 -2
  15. package/dist/esm/node_modules/babel-plugin-transform-async-to-promises/helpers.mjs.js +17 -17
  16. package/dist/esm/node_modules/babel-plugin-transform-async-to-promises/helpers.mjs.js.map +1 -1
  17. package/dist/esm/packages/taco/src/components/AlertDialog/AlertDialog.js +1 -2
  18. package/dist/esm/packages/taco/src/components/AlertDialog/AlertDialog.js.map +1 -1
  19. package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js +2 -7
  20. package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js.map +1 -1
  21. package/dist/esm/packages/taco/src/components/Dialog/components/Content.js +1 -2
  22. package/dist/esm/packages/taco/src/components/Dialog/components/Content.js.map +1 -1
  23. package/dist/esm/packages/taco/src/components/Drawer/components/Content.js +0 -1
  24. package/dist/esm/packages/taco/src/components/Drawer/components/Content.js.map +1 -1
  25. package/dist/esm/packages/taco/src/components/Popover/Popover.js.map +1 -1
  26. package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js +6 -3
  27. package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js.map +1 -1
  28. package/dist/esm/packages/taco/src/components/Select/Select.js +1 -2
  29. package/dist/esm/packages/taco/src/components/Select/Select.js.map +1 -1
  30. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js +1 -1
  31. package/dist/esm/packages/taco/src/components/Table3/Table3.js +14 -4
  32. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  33. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js +1 -1
  34. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -1
  35. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js +14 -9
  36. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js.map +1 -1
  37. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/CreateNewRow.js +2 -4
  38. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/CreateNewRow.js.map +1 -1
  39. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/TemporaryRow.js +5 -4
  40. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/TemporaryRow.js.map +1 -1
  41. package/dist/esm/packages/taco/src/components/Table3/features/useEditingState.js +32 -51
  42. package/dist/esm/packages/taco/src/components/Table3/features/useEditingState.js.map +1 -1
  43. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +5 -3
  44. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +1 -1
  45. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +15 -12
  46. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +1 -1
  47. package/dist/esm/packages/taco/src/components/Table3/util/editing.js +9 -1
  48. package/dist/esm/packages/taco/src/components/Table3/util/editing.js.map +1 -1
  49. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +2 -1
  50. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +1 -1
  51. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js +4 -0
  52. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +1 -1
  53. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js +7 -4
  54. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js.map +1 -1
  55. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js +7 -2
  56. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js.map +1 -1
  57. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js +7 -5
  58. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js.map +1 -1
  59. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js +24 -22
  60. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js.map +1 -1
  61. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js +41 -4
  62. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js.map +1 -1
  63. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js +3 -1
  64. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js.map +1 -1
  65. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js +26 -3
  66. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js.map +1 -1
  67. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js +1 -1
  68. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js.map +1 -1
  69. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js +36 -9
  70. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js.map +1 -1
  71. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js +1 -1
  72. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js.map +1 -1
  73. package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
  74. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js +5 -7
  75. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js.map +1 -1
  76. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js +1 -1
  77. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js.map +1 -1
  78. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowExpansion.js +2 -1
  79. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowExpansion.js.map +1 -1
  80. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSearch.js +3 -2
  81. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSearch.js.map +1 -1
  82. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableServerLoading.js +4 -2
  83. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableServerLoading.js.map +1 -1
  84. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFilterListener.js +3 -1
  85. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFilterListener.js.map +1 -1
  86. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowSelectionListener.js +4 -4
  87. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowSelectionListener.js.map +1 -1
  88. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSearchListener.js +14 -13
  89. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSearchListener.js.map +1 -1
  90. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableServerLoadingListener.js +7 -3
  91. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableServerLoadingListener.js.map +1 -1
  92. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js +4 -4
  93. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -1
  94. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/columns.js +4 -1
  95. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/columns.js.map +1 -1
  96. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js +7 -1
  97. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js.map +1 -1
  98. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js +6 -0
  99. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -1
  100. package/dist/hooks/useLazyDebouncedEffect.d.ts +2 -0
  101. package/dist/index.css +2 -2
  102. package/dist/primitives/Table/Core/Table.d.ts +1 -0
  103. package/dist/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.d.ts +2 -2
  104. package/dist/primitives/Table/Core/components/Row/Row.d.ts +2 -0
  105. package/dist/primitives/Table/Core/features/useTableRenderer.d.ts +1 -1
  106. package/dist/primitives/Table/types.d.ts +11 -6
  107. package/dist/primitives/Table/useTableDataLoader2.d.ts +24 -0
  108. package/dist/primitives/Table/useTableManager/features/useTableRowExpansion.d.ts +2 -1
  109. package/dist/primitives/Table/useTableManager/features/useTableSearch.d.ts +4 -2
  110. package/dist/primitives/Table/useTableManager/features/useTableServerLoading.d.ts +3 -1
  111. package/dist/primitives/Table/useTableManager/listeners/useTableSearchListener.d.ts +1 -2
  112. package/dist/primitives/Table/useTableManager/util/columns.d.ts +2 -1
  113. package/dist/taco.cjs.development.js +365 -240
  114. package/dist/taco.cjs.development.js.map +1 -1
  115. package/dist/taco.cjs.production.min.js +1 -1
  116. package/dist/taco.cjs.production.min.js.map +1 -1
  117. package/package.json +16 -17
@@ -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[];