@bit.rhplus/ag-grid 0.0.31 → 0.0.32
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
CHANGED
|
@@ -35,7 +35,6 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
35
35
|
try {
|
|
36
36
|
// Bezpečnostní kontrola API dostupnosti
|
|
37
37
|
if (!internalRef.current?.api || internalRef.current.api.isDestroyed?.()) {
|
|
38
|
-
console.log("⚠️ AG-Grid: API not available or destroyed, skipping flashCells");
|
|
39
38
|
return;
|
|
40
39
|
}
|
|
41
40
|
const newRowNodes = [];
|
|
@@ -46,7 +45,6 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
46
45
|
});
|
|
47
46
|
// Kontrola, že máme platné row nodes
|
|
48
47
|
if (newRowNodes.length === 0) {
|
|
49
|
-
console.log("⚠️ AG-Grid: No valid row nodes found for flashing");
|
|
50
48
|
return;
|
|
51
49
|
}
|
|
52
50
|
// Modern AG-Grid (33+): getColumnState() moved to main api
|
|
@@ -58,13 +56,8 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
58
56
|
.map((colState) => colState.colId);
|
|
59
57
|
// Kontrola, že máme platné sloupce
|
|
60
58
|
if (allColumns.length === 0) {
|
|
61
|
-
console.log("⚠️ AG-Grid: No valid columns found for flashing");
|
|
62
59
|
return;
|
|
63
60
|
}
|
|
64
|
-
console.log("✨ AG-Grid: Flashing cells for new rows:", {
|
|
65
|
-
rowNodesCount: newRowNodes.length,
|
|
66
|
-
columnsCount: allColumns.length
|
|
67
|
-
});
|
|
68
61
|
internalRef.current.api.flashCells({
|
|
69
62
|
rowNodes: newRowNodes,
|
|
70
63
|
columns: allColumns,
|
|
@@ -72,7 +65,6 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
72
65
|
}
|
|
73
66
|
}
|
|
74
67
|
catch (error) {
|
|
75
|
-
console.warn("⚠️ AG-Grid: Error during flashCells, ignoring:", error);
|
|
76
68
|
// Ignorujeme chybu a pokračujeme bez crash aplikace
|
|
77
69
|
}
|
|
78
70
|
}, 100); // Zvýšený timeout pro stabilizaci gridu
|
|
@@ -100,17 +92,6 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
100
92
|
// if (props.onRangeSelectionChanged) props.onRangeSelectionChanged(event);
|
|
101
93
|
}, []);
|
|
102
94
|
const AgGridOnGridReady = (event, options) => {
|
|
103
|
-
console.log("🔥 AgGrid AgGridOnGridReady called:", {
|
|
104
|
-
props,
|
|
105
|
-
hasEvent: !!event,
|
|
106
|
-
hasOptions: !!options,
|
|
107
|
-
hasOptionsOnGridReady: !!options?.onGridReady,
|
|
108
|
-
eventApi: !!event?.api,
|
|
109
|
-
eventColumnApi: !!event?.columnApi,
|
|
110
|
-
optionsOnGridReadyType: typeof options?.onGridReady,
|
|
111
|
-
propsOnGridReadyType: typeof props?.onGridReady,
|
|
112
|
-
areTheSame: options?.onGridReady === props?.onGridReady
|
|
113
|
-
});
|
|
114
95
|
if (onGridReady) {
|
|
115
96
|
onGridReady(event, options);
|
|
116
97
|
}
|
|
@@ -118,31 +99,20 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
118
99
|
if (internalRef.current) {
|
|
119
100
|
internalRef.current.api = event.api;
|
|
120
101
|
internalRef.current.columnApi = event.columnApi || event.api; // fallback for modern AG-Grid
|
|
121
|
-
console.log("✅ AgGrid: Internal refs set", {
|
|
122
|
-
hasApi: !!event.api,
|
|
123
|
-
hasColumnApi: !!event.columnApi,
|
|
124
|
-
usingFallback: !event.columnApi
|
|
125
|
-
});
|
|
126
102
|
}
|
|
127
103
|
// Pak zavoláme parent onGridReady handler, pokud existuje
|
|
128
104
|
// Toto je kritické pro správné fungování bit/ui/grid a GridLayout
|
|
129
105
|
if (options.onGridReady) {
|
|
130
106
|
try {
|
|
131
|
-
console.log("🎯 AgGrid: Calling parent onGridReady handler");
|
|
132
107
|
options.onGridReady(event);
|
|
133
|
-
console.log("✅ AgGrid: Parent onGridReady handler completed");
|
|
134
108
|
}
|
|
135
109
|
catch (error) {
|
|
136
|
-
|
|
110
|
+
// Error handling without console output
|
|
137
111
|
}
|
|
138
112
|
}
|
|
139
|
-
else {
|
|
140
|
-
console.log("❌ AgGrid: No parent onGridReady handler found");
|
|
141
|
-
}
|
|
142
113
|
// Nakonec nastavíme grid ready state s timeout
|
|
143
114
|
setTimeout(() => {
|
|
144
115
|
setIsGridReady(true);
|
|
145
|
-
console.log("✅ AgGrid: setIsGridReady(true) called");
|
|
146
116
|
}, 1000);
|
|
147
117
|
};
|
|
148
118
|
const components = React.useMemo(() => {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.jsx"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,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;AAGtE,MAAM,MAAM,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AE,WAAW;QAChB,GAAG,KAAK;QACR,UAAU,EAAE,aAAa,CAAC,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC;QAClD,oBAAoB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,0BAA0B,CAAC,KAAK,EAAE,KAAK,CAAC;QACzE,mBAAmB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,yBAAyB,CAAC,KAAK,EAAE,KAAK,CAAC;QACvE,kBAAkB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,CAAC;QACrE,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC;QACjD,WAAW,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC;QAChE,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;IACF,OAAO,KAAC,WAAW,OAAK,YAAY,GAAI,CAAC;AAC3C,CAAC,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
package/index.jsx
CHANGED
|
@@ -44,7 +44,6 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
44
44
|
try {
|
|
45
45
|
// Bezpečnostní kontrola API dostupnosti
|
|
46
46
|
if (!internalRef.current?.api || internalRef.current.api.isDestroyed?.()) {
|
|
47
|
-
console.log("⚠️ AG-Grid: API not available or destroyed, skipping flashCells");
|
|
48
47
|
return;
|
|
49
48
|
}
|
|
50
49
|
|
|
@@ -57,7 +56,6 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
57
56
|
|
|
58
57
|
// Kontrola, že máme platné row nodes
|
|
59
58
|
if (newRowNodes.length === 0) {
|
|
60
|
-
console.log("⚠️ AG-Grid: No valid row nodes found for flashing");
|
|
61
59
|
return;
|
|
62
60
|
}
|
|
63
61
|
|
|
@@ -71,22 +69,15 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
71
69
|
|
|
72
70
|
// Kontrola, že máme platné sloupce
|
|
73
71
|
if (allColumns.length === 0) {
|
|
74
|
-
console.log("⚠️ AG-Grid: No valid columns found for flashing");
|
|
75
72
|
return;
|
|
76
73
|
}
|
|
77
74
|
|
|
78
|
-
console.log("✨ AG-Grid: Flashing cells for new rows:", {
|
|
79
|
-
rowNodesCount: newRowNodes.length,
|
|
80
|
-
columnsCount: allColumns.length
|
|
81
|
-
});
|
|
82
|
-
|
|
83
75
|
internalRef.current.api.flashCells({
|
|
84
76
|
rowNodes: newRowNodes,
|
|
85
77
|
columns: allColumns,
|
|
86
78
|
});
|
|
87
79
|
}
|
|
88
80
|
} catch (error) {
|
|
89
|
-
console.warn("⚠️ AG-Grid: Error during flashCells, ignoring:", error);
|
|
90
81
|
// Ignorujeme chybu a pokračujeme bez crash aplikace
|
|
91
82
|
}
|
|
92
83
|
}, 100); // Zvýšený timeout pro stabilizaci gridu
|
|
@@ -120,18 +111,6 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
120
111
|
);
|
|
121
112
|
|
|
122
113
|
const AgGridOnGridReady = (event, options) => {
|
|
123
|
-
console.log("🔥 AgGrid AgGridOnGridReady called:", {
|
|
124
|
-
props,
|
|
125
|
-
hasEvent: !!event,
|
|
126
|
-
hasOptions: !!options,
|
|
127
|
-
hasOptionsOnGridReady: !!options?.onGridReady,
|
|
128
|
-
eventApi: !!event?.api,
|
|
129
|
-
eventColumnApi: !!event?.columnApi,
|
|
130
|
-
optionsOnGridReadyType: typeof options?.onGridReady,
|
|
131
|
-
propsOnGridReadyType: typeof props?.onGridReady,
|
|
132
|
-
areTheSame: options?.onGridReady === props?.onGridReady
|
|
133
|
-
});
|
|
134
|
-
|
|
135
114
|
if (onGridReady) {
|
|
136
115
|
onGridReady(event, options);
|
|
137
116
|
}
|
|
@@ -140,31 +119,21 @@ const AgGrid = React.forwardRef((props, ref) => {
|
|
|
140
119
|
if (internalRef.current) {
|
|
141
120
|
internalRef.current.api = event.api;
|
|
142
121
|
internalRef.current.columnApi = event.columnApi || event.api; // fallback for modern AG-Grid
|
|
143
|
-
console.log("✅ AgGrid: Internal refs set", {
|
|
144
|
-
hasApi: !!event.api,
|
|
145
|
-
hasColumnApi: !!event.columnApi,
|
|
146
|
-
usingFallback: !event.columnApi
|
|
147
|
-
});
|
|
148
122
|
}
|
|
149
123
|
|
|
150
124
|
// Pak zavoláme parent onGridReady handler, pokud existuje
|
|
151
125
|
// Toto je kritické pro správné fungování bit/ui/grid a GridLayout
|
|
152
126
|
if (options.onGridReady) {
|
|
153
127
|
try {
|
|
154
|
-
console.log("🎯 AgGrid: Calling parent onGridReady handler");
|
|
155
128
|
options.onGridReady(event);
|
|
156
|
-
console.log("✅ AgGrid: Parent onGridReady handler completed");
|
|
157
129
|
} catch (error) {
|
|
158
|
-
|
|
130
|
+
// Error handling without console output
|
|
159
131
|
}
|
|
160
|
-
} else {
|
|
161
|
-
console.log("❌ AgGrid: No parent onGridReady handler found");
|
|
162
132
|
}
|
|
163
133
|
|
|
164
134
|
// Nakonec nastavíme grid ready state s timeout
|
|
165
135
|
setTimeout(() => {
|
|
166
136
|
setIsGridReady(true);
|
|
167
|
-
console.log("✅ AgGrid: setIsGridReady(true) called");
|
|
168
137
|
}, 1000);
|
|
169
138
|
};
|
|
170
139
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bit.rhplus/ag-grid",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.32",
|
|
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.32"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"linq": "^4.0.3",
|
|
File without changes
|