@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 ADDED
@@ -0,0 +1,7 @@
1
+ # @open-kingdom/shared-frontend-ui-datagrid
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Running unit tests
6
+
7
+ Run `nx test @open-kingdom/shared-frontend-ui-datagrid` to execute the unit tests via [Vitest](https://vitest.dev/).
@@ -1,4 +1,4 @@
1
- import { RowSelectionOptions, FirstDataRenderedEvent } from './datagrid.types';
1
+ import { RowSelectionOptions, type FirstDataRenderedEvent } from './datagrid.types';
2
2
  export declare const gridDefaults: {
3
3
  defaultColDef: {
4
4
  sortable: boolean;
@@ -1,3 +1,3 @@
1
1
  import { DataGridProps, GridApi } from './datagrid.types';
2
- export declare const DataGrid: import('react').ForwardRefExoticComponent<DataGridProps & import('react').RefAttributes<GridApi<any> | null>>;
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('ag-grid-community').GridState) & {
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('ag-grid-community').GridState;
13
- memoizedResultFunc: ((resultFuncArgs_0: DataGridState) => import('ag-grid-community').GridState) & {
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('ag-grid-community').GridState;
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('reselect').weakMapMemoize;
26
- argsMemoize: typeof import('reselect').weakMapMemoize;
25
+ memoize: typeof import("reselect").weakMapMemoize;
26
+ argsMemoize: typeof import("reselect").weakMapMemoize;
27
27
  };
28
- export declare const selectAllViews: ((state: RootStateWithDataGrid) => import('../datagrid.types').DataGridView[]) & {
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('../datagrid.types').DataGridView[];
34
- memoizedResultFunc: ((resultFuncArgs_0: DataGridState) => import('../datagrid.types').DataGridView[]) & {
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('../datagrid.types').DataGridView[];
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('reselect').weakMapMemoize;
47
- argsMemoize: typeof import('reselect').weakMapMemoize;
46
+ memoize: typeof import("reselect").weakMapMemoize;
47
+ argsMemoize: typeof import("reselect").weakMapMemoize;
48
48
  };
49
- export declare const selectView: (id: string) => ((state: RootStateWithDataGrid) => import('../datagrid.types').DataGridView) & {
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('../datagrid.types').DataGridView;
55
- memoizedResultFunc: ((resultFuncArgs_0: DataGridState) => import('../datagrid.types').DataGridView) & {
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('../datagrid.types').DataGridView;
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('reselect').weakMapMemoize;
68
- argsMemoize: typeof import('reselect').weakMapMemoize;
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 { PayloadAction } from '@reduxjs/toolkit';
2
- import { GridState } from 'ag-grid-community';
3
- import { DataGridState } from '../datagrid.types';
4
- export declare const dataGridSlice: import('@reduxjs/toolkit').Slice<DataGridState, {
5
- setGridState: (state: import('immer').WritableDraft<DataGridState>, action: PayloadAction<{
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,EAAe,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAOvD,eAAO,MAAM,aAAa;gFAMZ,aAAa,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,SAAS,CAAA;KAAE,CAAC;4EAOnD,aAAa,CAAC;QACpB,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,SAAS,CAAC;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;8EAawB,aAAa,CAAC,MAAM,CAAC;kFAIjB,aAAa,CAAC,MAAM,CAAC;oFAIvD,CAAC;AAEH,eAAO,MAAQ,YAAY;QAnCO,MAAM;eAAa,SAAS;6BAmCjC,QAAQ;QA3BzB,MAAM;UACJ,MAAM;eACD,SAAS;kBACN,MAAM;yBAwBW,UAAU,sFAAE,cAAc,wFAC1C,CAAC;AAExB,eAAO,MAAM,eAAe,wCAAwB,CAAC"}
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",
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",