@lowdefy/blocks-aggrid 5.6.0 → 6.0.0
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/AgGrid.js +8 -2
- package/dist/AgGridInput.js +7 -2
- package/dist/blocks/AgGridAlpine/gallery.yaml +1451 -0
- package/dist/blocks/AgGridAlpine/tests/AgGridAlpine.e2e.yaml +310 -0
- package/dist/blocks/AgGridBalham/gallery.yaml +645 -0
- package/dist/blocks/AgGridBalham/tests/AgGridBalham.e2e.yaml +594 -0
- package/dist/blocks/AgGridInputAlpine/gallery.yaml +362 -0
- package/dist/blocks/AgGridInputAlpine/tests/AgGridInputAlpine.e2e.yaml +365 -0
- package/dist/blocks/AgGridInputBalham/gallery.yaml +362 -0
- package/dist/blocks/AgGridInputBalham/tests/AgGridInputBalham.e2e.yaml +365 -0
- package/dist/blocks/AgGridInputMaterial/gallery.yaml +362 -0
- package/dist/blocks/AgGridInputMaterial/tests/AgGridInputMaterial.e2e.yaml +365 -0
- package/dist/blocks/AgGridLowdefy/gallery.yaml +1242 -0
- package/dist/blocks/AgGridLowdefy/tests/AgGridLowdefy.e2e.yaml +667 -0
- package/dist/blocks/AgGridLowdefyInput/gallery.yaml +489 -0
- package/dist/blocks/AgGridLowdefyInput/tests/AgGridLowdefyInput.e2e.yaml +686 -0
- package/dist/blocks/AgGridMaterial/gallery.yaml +645 -0
- package/dist/blocks/AgGridMaterial/tests/AgGridMaterial.e2e.yaml +310 -0
- package/dist/cellRenderers/MenuCell.js +110 -0
- package/dist/cellRenderers/index.js +2 -0
- package/dist/createDisplayMeta.js +94 -0
- package/dist/processColDefs.js +75 -32
- package/dist/useColDefs.js +65 -0
- package/package.json +12 -12
package/dist/AgGrid.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/ import React, { useState, useRef, useEffect, useMemo, useCallback } from 'react';
|
|
16
16
|
import { AgGridReact } from 'ag-grid-react';
|
|
17
17
|
import { AllCommunityModule, ModuleRegistry } from 'ag-grid-community';
|
|
18
|
-
import
|
|
18
|
+
import useColDefs from './useColDefs.js';
|
|
19
19
|
import assignRowId from './assignRowId.js';
|
|
20
20
|
import LoadingOverlay from './LoadingOverlay.js';
|
|
21
21
|
// Registration is idempotent, so each core registers independently to stay standalone.
|
|
@@ -27,6 +27,12 @@ const AgGrid = ({ components, events, loading, methods, properties, theme })=>{
|
|
|
27
27
|
const [rowData, setRowData] = useState(newRowData ?? []);
|
|
28
28
|
const gridRef = useRef();
|
|
29
29
|
const memoDefaultColDef = useMemo(()=>defaultColDef);
|
|
30
|
+
const processedColDefs = useColDefs({
|
|
31
|
+
columnDefs,
|
|
32
|
+
methods,
|
|
33
|
+
components,
|
|
34
|
+
gridRef
|
|
35
|
+
});
|
|
30
36
|
const getRowId = useCallback((params)=>{
|
|
31
37
|
if (rowId && params.data[rowId] !== undefined) return params.data[rowId];
|
|
32
38
|
return assignRowId(params);
|
|
@@ -159,7 +165,7 @@ const AgGrid = ({ components, events, loading, methods, properties, theme })=>{
|
|
|
159
165
|
onRowSelected: onRowSelected,
|
|
160
166
|
onRowClicked: onRowClick,
|
|
161
167
|
onCellClicked: onCellClicked,
|
|
162
|
-
columnDefs:
|
|
168
|
+
columnDefs: processedColDefs,
|
|
163
169
|
ref: gridRef,
|
|
164
170
|
getRowId: getRowId,
|
|
165
171
|
suppressLoadingOverlay: true
|
package/dist/AgGridInput.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/ import React, { useState, useRef, useEffect, useMemo, useCallback } from 'react';
|
|
16
16
|
import { AgGridReact } from 'ag-grid-react';
|
|
17
17
|
import { AllCommunityModule, ModuleRegistry } from 'ag-grid-community';
|
|
18
|
-
import
|
|
18
|
+
import useColDefs from './useColDefs.js';
|
|
19
19
|
import assignRowId from './assignRowId.js';
|
|
20
20
|
import LoadingOverlay from './LoadingOverlay.js';
|
|
21
21
|
// Registration is idempotent, so each core registers independently to stay standalone.
|
|
@@ -27,6 +27,11 @@ const AgGridInput = ({ events, loading, methods, properties, theme, value })=>{
|
|
|
27
27
|
const [rowData, setRowData] = useState(value ?? []);
|
|
28
28
|
const gridRef = useRef();
|
|
29
29
|
const memoDefaultColDef = useMemo(()=>defaultColDef);
|
|
30
|
+
const processedColDefs = useColDefs({
|
|
31
|
+
columnDefs,
|
|
32
|
+
methods,
|
|
33
|
+
gridRef
|
|
34
|
+
});
|
|
30
35
|
const getRowId = useCallback((params)=>{
|
|
31
36
|
if (rowId && params.data[rowId] !== undefined) return params.data[rowId];
|
|
32
37
|
return assignRowId(params);
|
|
@@ -208,7 +213,7 @@ const AgGridInput = ({ events, loading, methods, properties, theme, value })=>{
|
|
|
208
213
|
onSortChanged: onSortChanged,
|
|
209
214
|
onRowDragEnd: onRowDragEnd,
|
|
210
215
|
defaultColDef: memoDefaultColDef,
|
|
211
|
-
columnDefs:
|
|
216
|
+
columnDefs: processedColDefs,
|
|
212
217
|
ref: gridRef,
|
|
213
218
|
getRowId: getRowId,
|
|
214
219
|
suppressLoadingOverlay: true
|