@1771technologies/lytenyte-pro 0.0.70 → 0.0.72
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/dist/index.js +8 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/types.d.ts +12 -0
- package/dist/types/use-server-data-source.d.ts +1 -1
- package/package.json +16 -15
package/dist/index.js
CHANGED
|
@@ -24,6 +24,7 @@ import { M as MoreDotsIcon } from "./more-dots-icon-CzAH3xHG.js";
|
|
|
24
24
|
import { S as SortAscending, a as SortDescending } from "./sort-descending-BMtfaa2L.js";
|
|
25
25
|
import { createClientDataSource } from "@1771technologies/grid-client-data-source-pro";
|
|
26
26
|
import { createTreeDataSource } from "@1771technologies/grid-tree-data-source";
|
|
27
|
+
import { createServerDataSource } from "@1771technologies/grid-server-data-source";
|
|
27
28
|
function useGrid() {
|
|
28
29
|
return useContext(context);
|
|
29
30
|
}
|
|
@@ -3796,6 +3797,12 @@ function useTreeDataSource(init) {
|
|
|
3796
3797
|
});
|
|
3797
3798
|
return ds;
|
|
3798
3799
|
}
|
|
3800
|
+
function useServerDataSource(init) {
|
|
3801
|
+
const [ds] = useState(() => {
|
|
3802
|
+
return createServerDataSource(init);
|
|
3803
|
+
});
|
|
3804
|
+
return ds;
|
|
3805
|
+
}
|
|
3799
3806
|
export {
|
|
3800
3807
|
COLUMN_EMPTY_PREFIX,
|
|
3801
3808
|
t as COLUMN_GROUP_HEADER_HEIGHT,
|
|
@@ -3832,5 +3839,6 @@ export {
|
|
|
3832
3839
|
hasAValidLicense,
|
|
3833
3840
|
useClientDataSource,
|
|
3834
3841
|
useLyteNytePro,
|
|
3842
|
+
useServerDataSource,
|
|
3835
3843
|
useTreeDataSource
|
|
3836
3844
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export type { LyteNyteGridProProps } from './lytenyte-pro.js';
|
|
|
3
3
|
export { LyteNyteGrid } from './lytenyte-pro.js';
|
|
4
4
|
export { useLyteNytePro } from './use-lytenyte.js';
|
|
5
5
|
export * from './use-client-data-source.js';
|
|
6
|
-
export
|
|
6
|
+
export * from './use-tree-data-source.js';
|
|
7
|
+
export * from './use-server-data-source.js';
|
|
7
8
|
export { activateLicense, hasAValidLicense } from './license.js';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
+
import { AsyncDataBlock, AsyncDataBlockPinned, AsyncDataRequestBlock, AsyncDataResponse, ColumnInFilterItemFetcher, ColumnInFilterItemFetcherParams, ColumnPivotsFetcher, ColumnPivotsFetcherParams, DataFetcher, DataFetcherParams } from '@1771technologies/grid-server-data-source';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
1
3
|
export type * from '@1771technologies/grid-types/pro-react';
|
|
4
|
+
export type AsyncDataBlockProReact = AsyncDataBlock;
|
|
5
|
+
export type AsyncDataBlockPinnedProReact = AsyncDataBlockPinned;
|
|
6
|
+
export type AsyncDataRequestBlockProReact = AsyncDataRequestBlock;
|
|
7
|
+
export type AsyncDataResponseProReact = AsyncDataResponse;
|
|
8
|
+
export type ColumnInFilterItemFetcherProReact<D = any> = ColumnInFilterItemFetcher<D, ReactNode>;
|
|
9
|
+
export type ColumnInFilterItemFetcherParamsProReact<D = any> = ColumnInFilterItemFetcherParams<D, ReactNode>;
|
|
10
|
+
export type ColumnPivotsFetcherProReact<D = any> = ColumnPivotsFetcher<D, ReactNode>;
|
|
11
|
+
export type ColumnPivotsFetcherParamsProReact<D = any> = ColumnPivotsFetcherParams<D, ReactNode>;
|
|
12
|
+
export type DataFetcherProReact<D = any> = DataFetcher<D, ReactNode>;
|
|
13
|
+
export type DataFetcherParamsPropReact<D = any> = DataFetcherParams<D, ReactNode>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ServerDataSourceInitial } from '@1771technologies/grid-server-data-source';
|
|
2
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { ServerDataSourceInitial } from '@1771technologies/grid-server-data-source';
|
|
3
3
|
export declare function useServerDataSource<D>(init: ServerDataSourceInitial<D, ReactNode>): import('@1771technologies/grid-types/pro').RowDataSourcePro<D, ReactNode>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1771technologies/lytenyte-pro",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.72",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -70,20 +70,21 @@
|
|
|
70
70
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@1771technologies/grid-client-data-source-pro": "0.0.
|
|
74
|
-
"@1771technologies/grid-
|
|
75
|
-
"@1771technologies/grid-
|
|
76
|
-
"@1771technologies/grid-
|
|
77
|
-
"@1771technologies/grid-
|
|
78
|
-
"@1771technologies/grid-
|
|
79
|
-
"@1771technologies/grid-
|
|
80
|
-
"@1771technologies/
|
|
81
|
-
"@1771technologies/
|
|
82
|
-
"@1771technologies/
|
|
83
|
-
"@1771technologies/react-
|
|
84
|
-
"@1771technologies/react-
|
|
85
|
-
"@1771technologies/react-
|
|
86
|
-
"@1771technologies/react-
|
|
73
|
+
"@1771technologies/grid-client-data-source-pro": "0.0.72",
|
|
74
|
+
"@1771technologies/grid-server-data-source": "0.0.72",
|
|
75
|
+
"@1771technologies/grid-core": "0.0.72",
|
|
76
|
+
"@1771technologies/grid-design": "0.0.72",
|
|
77
|
+
"@1771technologies/grid-provider": "0.0.72",
|
|
78
|
+
"@1771technologies/grid-store-pro": "0.0.72",
|
|
79
|
+
"@1771technologies/grid-tree-data-source": "0.0.72",
|
|
80
|
+
"@1771technologies/grid-types": "0.0.72",
|
|
81
|
+
"@1771technologies/js-utils": "0.0.72",
|
|
82
|
+
"@1771technologies/lytenyte-core": "0.0.72",
|
|
83
|
+
"@1771technologies/react-cascada": "0.0.72",
|
|
84
|
+
"@1771technologies/react-dragon": "0.0.72",
|
|
85
|
+
"@1771technologies/react-sizer": "0.0.72",
|
|
86
|
+
"@1771technologies/react-split-pane": "0.0.72",
|
|
87
|
+
"@1771technologies/react-utils": "0.0.72",
|
|
87
88
|
"@base-ui-components/react": "1.0.0-alpha.7"
|
|
88
89
|
},
|
|
89
90
|
"devDependencies": {
|