@bit.rhplus/ag-grid 0.0.19 → 0.0.20
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 +41 -37
- package/dist/index.js.map +1 -1
- package/index.jsx +43 -61
- package/package.json +3 -4
- /package/dist/{preview-1747917457532.js → preview-1750330600954.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
4
|
-
import { notification } from 'antd';
|
|
5
3
|
import { AgGridReact } from 'ag-grid-react';
|
|
6
4
|
import { AgGridColumns } from './AgGridColumn';
|
|
7
5
|
import { RhPlusOnCellEditingStarted } from './OnCellEditingStarted';
|
|
@@ -10,19 +8,15 @@ import { RhPlusOnCellValueChanged } from './OnCellValueChanged';
|
|
|
10
8
|
import { AgGridPostSort } from './AgGridPostSort';
|
|
11
9
|
import { AgGridOnRowDataChanged } from './AgGridOnRowDataChanged';
|
|
12
10
|
import { AgGridOnRowDataUpdated } from './AgGridOnRowDataUpdated';
|
|
13
|
-
// import HyperModuleEditor from "./HyperModuleEditor";
|
|
14
11
|
import CheckboxRenderer from './Renderers/CheckboxRenderer';
|
|
15
12
|
import BooleanRenderer from './Renderers/BooleanRenderer';
|
|
16
13
|
import IconRenderer from './Renderers/IconRenderer';
|
|
17
14
|
import SelectRenderer from './Renderers/SelectRenderer';
|
|
18
15
|
import ButtonRenderer from './Renderers/ButtonRenderer';
|
|
19
|
-
import Aggregations from './Aggregations';
|
|
20
16
|
import CountrySelectRenderer from './Renderers/CountrySelectRenderer';
|
|
21
|
-
import NotificationOptionsInit from './NotificationOptions';
|
|
22
|
-
const key = uuidv4();
|
|
23
17
|
const AgGrid = React.forwardRef((props, ref) => {
|
|
24
18
|
const internalRef = React.useRef();
|
|
25
|
-
const { rowData = [],
|
|
19
|
+
const { rowData = [], newRowFlash = true, } = props;
|
|
26
20
|
const [, setIsGridReady] = React.useState(false);
|
|
27
21
|
const previousRowDataRef = React.useRef(rowData);
|
|
28
22
|
const findNewRows = (oldData, newData) => {
|
|
@@ -38,16 +32,14 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
38
32
|
if (addedRows.length > 0) {
|
|
39
33
|
setTimeout(() => {
|
|
40
34
|
const newRowNodes = [];
|
|
41
|
-
if (internalRef.current
|
|
35
|
+
if (internalRef.current?.api) {
|
|
42
36
|
internalRef.current.api.forEachNode((node) => {
|
|
43
37
|
if (addedRows.some((row) => row.id === node.data.id)) {
|
|
44
38
|
newRowNodes.push(node);
|
|
45
39
|
}
|
|
46
40
|
});
|
|
47
41
|
}
|
|
48
|
-
if (internalRef.current
|
|
49
|
-
internalRef.current.columnApi &&
|
|
50
|
-
internalRef.current.columnApi.getColumnState) {
|
|
42
|
+
if (internalRef.current?.columnApi?.getColumnState) {
|
|
51
43
|
const allColumns = internalRef.current.columnApi
|
|
52
44
|
.getColumnState()
|
|
53
45
|
.map((colState) => colState.colId);
|
|
@@ -56,33 +48,30 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
56
48
|
columns: allColumns,
|
|
57
49
|
});
|
|
58
50
|
}
|
|
59
|
-
else {
|
|
60
|
-
console.error('columnApi není dostupné.');
|
|
61
|
-
}
|
|
62
51
|
}, 0);
|
|
63
52
|
}
|
|
64
53
|
previousRowDataRef.current = rowData;
|
|
65
|
-
}, [rowData]);
|
|
66
|
-
const RhPlusRangeSelectionChanged = React.useCallback((
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}, [
|
|
54
|
+
}, [rowData, newRowFlash]);
|
|
55
|
+
const RhPlusRangeSelectionChanged = React.useCallback(() => {
|
|
56
|
+
// Zakomentovaná funkcionalita pro budoucí použití
|
|
57
|
+
// if (internalRef && !!internalRef.current && enableNotification) {
|
|
58
|
+
// const messageInfo = Aggregations(internalRef);
|
|
59
|
+
// if (messageInfo.count > 1) {
|
|
60
|
+
// if (props.onAggregationChanged)
|
|
61
|
+
// props.onAggregationChanged(messageInfo);
|
|
62
|
+
// notification.info({
|
|
63
|
+
// key,
|
|
64
|
+
// message: notificationHead(messageInfo),
|
|
65
|
+
// description: notificationBody(messageInfo),
|
|
66
|
+
// duration: 0,
|
|
67
|
+
// showDate: false,
|
|
68
|
+
// style,
|
|
69
|
+
// placement,
|
|
70
|
+
// });
|
|
71
|
+
// }
|
|
72
|
+
// }
|
|
73
|
+
// if (props.onRangeSelectionChanged) props.onRangeSelectionChanged(event);
|
|
74
|
+
}, []);
|
|
86
75
|
const AgGridOnGridReady = (event, options) => {
|
|
87
76
|
setTimeout(() => setIsGridReady(true), 1000);
|
|
88
77
|
if (options.onGridReady)
|
|
@@ -102,8 +91,23 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
102
91
|
iconRenderer: IconRenderer,
|
|
103
92
|
...props.frameworkComponents,
|
|
104
93
|
};
|
|
105
|
-
}, [props]);
|
|
106
|
-
|
|
94
|
+
}, [props.frameworkComponents]);
|
|
95
|
+
const allGridProps = {
|
|
96
|
+
ref: internalRef,
|
|
97
|
+
...props,
|
|
98
|
+
columnDefs: AgGridColumns(props.columnDefs, props),
|
|
99
|
+
onCellEditingStarted: (event) => RhPlusOnCellEditingStarted(event, props),
|
|
100
|
+
onCellDoubleClicked: (event) => RhPlusOnCellDoubleClicked(event, props),
|
|
101
|
+
onCellValueChanged: (event) => RhPlusOnCellValueChanged(event, props),
|
|
102
|
+
postSort: (event) => AgGridPostSort(event, props),
|
|
103
|
+
onGridReady: (event) => AgGridOnGridReady(event, props),
|
|
104
|
+
onRowDataChanged: (event) => AgGridOnRowDataChanged(event, props),
|
|
105
|
+
onRowDataUpdated: (event) => AgGridOnRowDataUpdated(event, props),
|
|
106
|
+
onRangeSelectionChanged: RhPlusRangeSelectionChanged,
|
|
107
|
+
context: { componentParent: { ...props } },
|
|
108
|
+
components,
|
|
109
|
+
};
|
|
110
|
+
return _jsx(AgGridReact, { ...allGridProps });
|
|
107
111
|
});
|
|
108
112
|
export default AgGrid;
|
|
109
113
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,gBAAgB,MAAM,8BAA8B,CAAC;AAC5D,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,cAAc,MAAM,4BAA4B,CAAC;AACxD,OAAO,cAAc,MAAM,4BAA4B,CAAC;AACxD,OAAO,qBAAqB,MAAM,mCAAmC,CAAC;A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AC,KAAK,EAAE,KAAK,CAAC;QACvD,gBAAgB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,sBAAsB,CAAC,KAAK,EAAE,KAAK,CAAC;QACjE,gBAAgB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,sBAAsB,CAAC,KAAK,EAAE,KAAK,CAAC;QACjE,uBAAuB,EAAE,2BAA2B;QACpD,OAAO,EAAE,EAAE,eAAe,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE;QAC1C,UAAU;KACX,CAAC;IAEF,OAAO,KAAC,WAAW,OAAK,YAAY,GAAI,CAAC;AAC3C,CAAC,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
package/index.jsx
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
3
|
-
import { notification } from 'antd';
|
|
4
2
|
import { AgGridReact } from 'ag-grid-react';
|
|
5
3
|
import { AgGridColumns } from './AgGridColumn';
|
|
6
4
|
import { RhPlusOnCellEditingStarted } from './OnCellEditingStarted';
|
|
@@ -9,29 +7,17 @@ import { RhPlusOnCellValueChanged } from './OnCellValueChanged';
|
|
|
9
7
|
import { AgGridPostSort } from './AgGridPostSort';
|
|
10
8
|
import { AgGridOnRowDataChanged } from './AgGridOnRowDataChanged';
|
|
11
9
|
import { AgGridOnRowDataUpdated } from './AgGridOnRowDataUpdated';
|
|
12
|
-
// import HyperModuleEditor from "./HyperModuleEditor";
|
|
13
10
|
import CheckboxRenderer from './Renderers/CheckboxRenderer';
|
|
14
11
|
import BooleanRenderer from './Renderers/BooleanRenderer';
|
|
15
12
|
import IconRenderer from './Renderers/IconRenderer';
|
|
16
13
|
import SelectRenderer from './Renderers/SelectRenderer';
|
|
17
14
|
import ButtonRenderer from './Renderers/ButtonRenderer';
|
|
18
|
-
import Aggregations from './Aggregations';
|
|
19
15
|
import CountrySelectRenderer from './Renderers/CountrySelectRenderer';
|
|
20
|
-
import NotificationOptionsInit from './NotificationOptions';
|
|
21
|
-
|
|
22
|
-
const key = uuidv4();
|
|
23
16
|
|
|
24
17
|
const AgGrid = React.forwardRef((props, ref) => {
|
|
25
18
|
const internalRef = React.useRef();
|
|
26
19
|
const {
|
|
27
20
|
rowData = [],
|
|
28
|
-
enableNotification,
|
|
29
|
-
notificationOptions: {
|
|
30
|
-
notificationHead = NotificationOptionsInit.head,
|
|
31
|
-
notificationBody = NotificationOptionsInit.body,
|
|
32
|
-
style = NotificationOptionsInit.style,
|
|
33
|
-
placement = NotificationOptionsInit.placement,
|
|
34
|
-
} = {},
|
|
35
21
|
newRowFlash = true,
|
|
36
22
|
} = props;
|
|
37
23
|
const [, setIsGridReady] = React.useState(false);
|
|
@@ -48,13 +34,12 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
48
34
|
if (!newRowFlash) return;
|
|
49
35
|
|
|
50
36
|
const previousRowData = previousRowDataRef.current;
|
|
51
|
-
|
|
52
37
|
const addedRows = findNewRows(previousRowData, rowData);
|
|
53
38
|
|
|
54
39
|
if (addedRows.length > 0) {
|
|
55
40
|
setTimeout(() => {
|
|
56
41
|
const newRowNodes = [];
|
|
57
|
-
if (internalRef.current
|
|
42
|
+
if (internalRef.current?.api) {
|
|
58
43
|
internalRef.current.api.forEachNode((node) => {
|
|
59
44
|
if (addedRows.some((row) => row.id === node.data.id)) {
|
|
60
45
|
newRowNodes.push(node);
|
|
@@ -63,9 +48,7 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
63
48
|
}
|
|
64
49
|
|
|
65
50
|
if (
|
|
66
|
-
internalRef.current
|
|
67
|
-
internalRef.current.columnApi &&
|
|
68
|
-
internalRef.current.columnApi.getColumnState
|
|
51
|
+
internalRef.current?.columnApi?.getColumnState
|
|
69
52
|
) {
|
|
70
53
|
const allColumns = internalRef.current.columnApi
|
|
71
54
|
.getColumnState()
|
|
@@ -74,36 +57,35 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
74
57
|
rowNodes: newRowNodes,
|
|
75
58
|
columns: allColumns,
|
|
76
59
|
});
|
|
77
|
-
} else {
|
|
78
|
-
console.error('columnApi není dostupné.');
|
|
79
60
|
}
|
|
80
61
|
}, 0);
|
|
81
62
|
}
|
|
82
63
|
|
|
83
64
|
previousRowDataRef.current = rowData;
|
|
84
|
-
}, [rowData]);
|
|
65
|
+
}, [rowData, newRowFlash]);
|
|
85
66
|
|
|
86
67
|
const RhPlusRangeSelectionChanged = React.useCallback(
|
|
87
|
-
(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
|
|
68
|
+
() => {
|
|
69
|
+
// Zakomentovaná funkcionalita pro budoucí použití
|
|
70
|
+
// if (internalRef && !!internalRef.current && enableNotification) {
|
|
71
|
+
// const messageInfo = Aggregations(internalRef);
|
|
72
|
+
// if (messageInfo.count > 1) {
|
|
73
|
+
// if (props.onAggregationChanged)
|
|
74
|
+
// props.onAggregationChanged(messageInfo);
|
|
75
|
+
// notification.info({
|
|
76
|
+
// key,
|
|
77
|
+
// message: notificationHead(messageInfo),
|
|
78
|
+
// description: notificationBody(messageInfo),
|
|
79
|
+
// duration: 0,
|
|
80
|
+
// showDate: false,
|
|
81
|
+
// style,
|
|
82
|
+
// placement,
|
|
83
|
+
// });
|
|
84
|
+
// }
|
|
85
|
+
// }
|
|
86
|
+
// if (props.onRangeSelectionChanged) props.onRangeSelectionChanged(event);
|
|
105
87
|
},
|
|
106
|
-
[
|
|
88
|
+
[]
|
|
107
89
|
);
|
|
108
90
|
|
|
109
91
|
const AgGridOnGridReady = (event, options) => {
|
|
@@ -126,25 +108,25 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
126
108
|
iconRenderer: IconRenderer,
|
|
127
109
|
...props.frameworkComponents,
|
|
128
110
|
};
|
|
129
|
-
}, [props]);
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
111
|
+
}, [props.frameworkComponents]);
|
|
112
|
+
|
|
113
|
+
const allGridProps = {
|
|
114
|
+
ref: internalRef,
|
|
115
|
+
...props,
|
|
116
|
+
columnDefs: AgGridColumns(props.columnDefs, props),
|
|
117
|
+
onCellEditingStarted: (event) => RhPlusOnCellEditingStarted(event, props),
|
|
118
|
+
onCellDoubleClicked: (event) => RhPlusOnCellDoubleClicked(event, props),
|
|
119
|
+
onCellValueChanged: (event) => RhPlusOnCellValueChanged(event, props),
|
|
120
|
+
postSort: (event) => AgGridPostSort(event, props),
|
|
121
|
+
onGridReady: (event) => AgGridOnGridReady(event, props),
|
|
122
|
+
onRowDataChanged: (event) => AgGridOnRowDataChanged(event, props),
|
|
123
|
+
onRowDataUpdated: (event) => AgGridOnRowDataUpdated(event, props),
|
|
124
|
+
onRangeSelectionChanged: RhPlusRangeSelectionChanged,
|
|
125
|
+
context: { componentParent: { ...props } },
|
|
126
|
+
components,
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
return <AgGridReact {...allGridProps} />;
|
|
148
130
|
});
|
|
149
131
|
|
|
150
|
-
export default AgGrid;
|
|
132
|
+
export default AgGrid;
|
package/package.json
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bit.rhplus/ag-grid",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"homepage": "https://bit.cloud/remote-scope/ag-grid",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "remote-scope",
|
|
8
8
|
"name": "ag-grid",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.20"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"linq": "^4.0.3",
|
|
13
13
|
"moment": "^2.30.1",
|
|
14
14
|
"lodash": "^4.17.21",
|
|
15
|
-
"ag-grid-react": "^
|
|
15
|
+
"ag-grid-react": "^33.3.2",
|
|
16
16
|
"antd": "^5.20.6",
|
|
17
|
-
"uuid": "^10.0.0",
|
|
18
17
|
"lucide-react": "^0.503.0",
|
|
19
18
|
"@bit.rhplus/linq": "0.0.2"
|
|
20
19
|
},
|
|
File without changes
|