@open-kingdom/shared-frontend-ui-datagrid 0.0.2-3 → 0.0.2-6
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/README.md +7 -0
- package/dist/lib/datagrid.config.d.ts +1 -1
- package/dist/lib/datagrid.d.ts +1 -1
- package/dist/lib/datagrid.types.d.ts +3 -3
- package/dist/lib/hooks/use-state-persistence.hooks.d.ts +2 -2
- package/dist/lib/store/datagrid.selectors.d.ts +19 -19
- package/dist/lib/store/datagrid.slice.d.ts +5 -27
- package/dist/lib/store/datagrid.slice.d.ts.map +1 -1
- package/dist/lib/theme/theme.adapter.d.ts +2 -2
- package/package.json +7 -8
package/README.md
ADDED
package/dist/lib/datagrid.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DataGridProps, GridApi } from './datagrid.types';
|
|
2
|
-
export declare const DataGrid: import(
|
|
2
|
+
export declare const DataGrid: import("react").ForwardRefExoticComponent<DataGridProps & import("react").RefAttributes<GridApi<any> | null>>;
|
|
3
3
|
//# sourceMappingURL=datagrid.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AgGridReactProps } from 'ag-grid-react';
|
|
2
|
-
import { CSSProperties } from 'react';
|
|
3
|
-
import { DataGridTheme, ThemeMode } from './theme';
|
|
1
|
+
import { type AgGridReactProps } from 'ag-grid-react';
|
|
2
|
+
import { type CSSProperties } from 'react';
|
|
3
|
+
import { type DataGridTheme, type ThemeMode } from './theme';
|
|
4
4
|
import { GridState } from 'ag-grid-community';
|
|
5
5
|
export interface DataGridView {
|
|
6
6
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
import { GridApi, GridState, StateUpdatedEvent, GridReadyEvent } from 'ag-grid-community';
|
|
3
|
-
import { StorageProvider } from '../datagrid.types';
|
|
2
|
+
import type { GridApi, GridState, StateUpdatedEvent, GridReadyEvent } from 'ag-grid-community';
|
|
3
|
+
import type { StorageProvider } from '../datagrid.types';
|
|
4
4
|
export interface UseGridStatePersistenceParams {
|
|
5
5
|
ref?: RefObject<GridApi | null> | ((instance: GridApi | null) => void) | null;
|
|
6
6
|
initialState?: GridState;
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { DataGridState } from '../datagrid.types';
|
|
1
|
+
import type { DataGridState } from '../datagrid.types';
|
|
2
2
|
export declare const DataGridKey = "dataGrid";
|
|
3
3
|
export type RootStateWithDataGrid = {
|
|
4
4
|
[DataGridKey]: DataGridState;
|
|
5
5
|
};
|
|
6
6
|
export declare const selectDataGridSlice: (state: RootStateWithDataGrid) => DataGridState;
|
|
7
|
-
export declare const selectGridInstance: (id: string) => ((state: RootStateWithDataGrid) => import(
|
|
7
|
+
export declare const selectGridInstance: (id: string) => ((state: RootStateWithDataGrid) => import("ag-grid-community").GridState) & {
|
|
8
8
|
clearCache: () => void;
|
|
9
9
|
resultsCount: () => number;
|
|
10
10
|
resetResultsCount: () => void;
|
|
11
11
|
} & {
|
|
12
|
-
resultFunc: (resultFuncArgs_0: DataGridState) => import(
|
|
13
|
-
memoizedResultFunc: ((resultFuncArgs_0: DataGridState) => import(
|
|
12
|
+
resultFunc: (resultFuncArgs_0: DataGridState) => import("ag-grid-community").GridState;
|
|
13
|
+
memoizedResultFunc: ((resultFuncArgs_0: DataGridState) => import("ag-grid-community").GridState) & {
|
|
14
14
|
clearCache: () => void;
|
|
15
15
|
resultsCount: () => number;
|
|
16
16
|
resetResultsCount: () => void;
|
|
17
17
|
};
|
|
18
|
-
lastResult: () => import(
|
|
18
|
+
lastResult: () => import("ag-grid-community").GridState;
|
|
19
19
|
dependencies: [(state: RootStateWithDataGrid) => DataGridState];
|
|
20
20
|
recomputations: () => number;
|
|
21
21
|
resetRecomputations: () => void;
|
|
22
22
|
dependencyRecomputations: () => number;
|
|
23
23
|
resetDependencyRecomputations: () => void;
|
|
24
24
|
} & {
|
|
25
|
-
memoize: typeof import(
|
|
26
|
-
argsMemoize: typeof import(
|
|
25
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
26
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
27
27
|
};
|
|
28
|
-
export declare const selectAllViews: ((state: RootStateWithDataGrid) => import(
|
|
28
|
+
export declare const selectAllViews: ((state: RootStateWithDataGrid) => import("../datagrid.types").DataGridView[]) & {
|
|
29
29
|
clearCache: () => void;
|
|
30
30
|
resultsCount: () => number;
|
|
31
31
|
resetResultsCount: () => void;
|
|
32
32
|
} & {
|
|
33
|
-
resultFunc: (resultFuncArgs_0: DataGridState) => import(
|
|
34
|
-
memoizedResultFunc: ((resultFuncArgs_0: DataGridState) => import(
|
|
33
|
+
resultFunc: (resultFuncArgs_0: DataGridState) => import("../datagrid.types").DataGridView[];
|
|
34
|
+
memoizedResultFunc: ((resultFuncArgs_0: DataGridState) => import("../datagrid.types").DataGridView[]) & {
|
|
35
35
|
clearCache: () => void;
|
|
36
36
|
resultsCount: () => number;
|
|
37
37
|
resetResultsCount: () => void;
|
|
38
38
|
};
|
|
39
|
-
lastResult: () => import(
|
|
39
|
+
lastResult: () => import("../datagrid.types").DataGridView[];
|
|
40
40
|
dependencies: [(state: RootStateWithDataGrid) => DataGridState];
|
|
41
41
|
recomputations: () => number;
|
|
42
42
|
resetRecomputations: () => void;
|
|
43
43
|
dependencyRecomputations: () => number;
|
|
44
44
|
resetDependencyRecomputations: () => void;
|
|
45
45
|
} & {
|
|
46
|
-
memoize: typeof import(
|
|
47
|
-
argsMemoize: typeof import(
|
|
46
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
47
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
48
48
|
};
|
|
49
|
-
export declare const selectView: (id: string) => ((state: RootStateWithDataGrid) => import(
|
|
49
|
+
export declare const selectView: (id: string) => ((state: RootStateWithDataGrid) => import("../datagrid.types").DataGridView) & {
|
|
50
50
|
clearCache: () => void;
|
|
51
51
|
resultsCount: () => number;
|
|
52
52
|
resetResultsCount: () => void;
|
|
53
53
|
} & {
|
|
54
|
-
resultFunc: (resultFuncArgs_0: DataGridState) => import(
|
|
55
|
-
memoizedResultFunc: ((resultFuncArgs_0: DataGridState) => import(
|
|
54
|
+
resultFunc: (resultFuncArgs_0: DataGridState) => import("../datagrid.types").DataGridView;
|
|
55
|
+
memoizedResultFunc: ((resultFuncArgs_0: DataGridState) => import("../datagrid.types").DataGridView) & {
|
|
56
56
|
clearCache: () => void;
|
|
57
57
|
resultsCount: () => number;
|
|
58
58
|
resetResultsCount: () => void;
|
|
59
59
|
};
|
|
60
|
-
lastResult: () => import(
|
|
60
|
+
lastResult: () => import("../datagrid.types").DataGridView;
|
|
61
61
|
dependencies: [(state: RootStateWithDataGrid) => DataGridState];
|
|
62
62
|
recomputations: () => number;
|
|
63
63
|
resetRecomputations: () => void;
|
|
64
64
|
dependencyRecomputations: () => number;
|
|
65
65
|
resetDependencyRecomputations: () => void;
|
|
66
66
|
} & {
|
|
67
|
-
memoize: typeof import(
|
|
68
|
-
argsMemoize: typeof import(
|
|
67
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
68
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
69
69
|
};
|
|
70
70
|
export declare const selectHasDataGridSlice: (state: RootStateWithDataGrid) => boolean;
|
|
71
71
|
//# sourceMappingURL=datagrid.selectors.d.ts.map
|
|
@@ -1,28 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
id: string;
|
|
7
|
-
gridState: GridState;
|
|
8
|
-
}>) => void;
|
|
9
|
-
saveView: (state: import('immer').WritableDraft<DataGridState>, action: PayloadAction<{
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
gridState: GridState;
|
|
13
|
-
description?: string;
|
|
14
|
-
}>) => void;
|
|
15
|
-
deleteView: (state: import('immer').WritableDraft<DataGridState>, action: PayloadAction<string>) => void;
|
|
16
|
-
clearGridState: (state: import('immer').WritableDraft<DataGridState>, action: PayloadAction<string>) => void;
|
|
17
|
-
}, "dataGrid", "dataGrid", import('@reduxjs/toolkit').SliceSelectors<DataGridState>>;
|
|
18
|
-
export declare const setGridState: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
19
|
-
id: string;
|
|
20
|
-
gridState: GridState;
|
|
21
|
-
}, "dataGrid/setGridState">, saveView: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
22
|
-
id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
gridState: GridState;
|
|
25
|
-
description?: string;
|
|
26
|
-
}, "dataGrid/saveView">, deleteView: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "dataGrid/deleteView">, clearGridState: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "dataGrid/clearGridState">;
|
|
27
|
-
export declare const dataGridReducer: import('redux').Reducer<DataGridState>;
|
|
1
|
+
import { Slice } from '@reduxjs/toolkit';
|
|
2
|
+
import type { DataGridState } from '../datagrid.types';
|
|
3
|
+
export declare const dataGridSlice: Slice<DataGridState>;
|
|
4
|
+
export declare const setGridState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<`${string}/${string}`> | import("@reduxjs/toolkit").ActionCreatorWithPayload<any, `${string}/${string}`> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, never, never> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, never, any> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, any, never> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, any, any>, saveView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<`${string}/${string}`> | import("@reduxjs/toolkit").ActionCreatorWithPayload<any, `${string}/${string}`> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, never, never> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, never, any> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, any, never> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, any, any>, deleteView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<`${string}/${string}`> | import("@reduxjs/toolkit").ActionCreatorWithPayload<any, `${string}/${string}`> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, never, never> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, never, any> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, any, never> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, any, any>, clearGridState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<`${string}/${string}`> | import("@reduxjs/toolkit").ActionCreatorWithPayload<any, `${string}/${string}`> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, never, never> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, never, any> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, any, never> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, any, any>;
|
|
5
|
+
export declare const dataGridReducer: import("redux").Reducer<DataGridState>;
|
|
28
6
|
//# sourceMappingURL=datagrid.slice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datagrid.slice.d.ts","sourceRoot":"","sources":["../../../src/lib/store/datagrid.slice.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"datagrid.slice.d.ts","sourceRoot":"","sources":["../../../src/lib/store/datagrid.slice.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAOvD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,aAAa,CAuC7C,CAAC;AAEH,eAAO,MAAQ,YAAY,ulBAAE,QAAQ,ulBAAE,UAAU,ulBAAE,cAAc,qlBAC1C,CAAC;AAExB,eAAO,MAAM,eAAe,wCAAwB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Theme as AgTheme } from '../datagrid.types';
|
|
2
|
-
import { DataGridTheme, ThemeMode } from './theme.types';
|
|
1
|
+
import { type Theme as AgTheme } from '../datagrid.types';
|
|
2
|
+
import type { DataGridTheme, ThemeMode } from './theme.types';
|
|
3
3
|
/**
|
|
4
4
|
* Theme adapter that converts UI-Theme format to AG Grid themes
|
|
5
5
|
*/
|
package/package.json
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-kingdom/shared-frontend-ui-datagrid",
|
|
3
|
-
"version": "0.0.2-
|
|
3
|
+
"version": "0.0.2-6",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
4
7
|
"type": "module",
|
|
5
8
|
"main": "./dist/index.js",
|
|
6
9
|
"module": "./dist/index.js",
|
|
7
10
|
"types": "./dist/index.d.ts",
|
|
8
11
|
"exports": {
|
|
12
|
+
"./package.json": "./package.json",
|
|
9
13
|
".": {
|
|
14
|
+
"development": "./src/index.ts",
|
|
10
15
|
"types": "./dist/index.d.ts",
|
|
11
16
|
"import": "./dist/index.js",
|
|
12
|
-
"development": "./src/index.ts",
|
|
13
17
|
"default": "./dist/index.js"
|
|
14
|
-
}
|
|
15
|
-
"./package.json": "./package.json"
|
|
18
|
+
}
|
|
16
19
|
},
|
|
17
20
|
"files": [
|
|
18
21
|
"dist",
|
|
19
22
|
"!**/*.tsbuildinfo"
|
|
20
23
|
],
|
|
21
|
-
"publishConfig": {
|
|
22
|
-
"access": "public"
|
|
23
|
-
},
|
|
24
24
|
"nx": {
|
|
25
|
-
"name": "@open-kingdom/shared-frontend-ui-datagrid",
|
|
26
25
|
"tags": [
|
|
27
26
|
"scope:shared",
|
|
28
27
|
"type:ui",
|