@lowdefy/blocks-aggrid 4.0.0-alpha.20 → 4.0.0-alpha.23
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 +1 -1
- package/dist/AgGridInput.js +1 -1
- package/dist/processColDefs.js +5 -5
- package/package.json +6 -6
package/dist/AgGrid.js
CHANGED
|
@@ -133,7 +133,7 @@ let AgGrid = class AgGrid extends React.Component {
|
|
|
133
133
|
onCellClicked: this.onCellClicked,
|
|
134
134
|
onGridReady: this.onGridReady,
|
|
135
135
|
modules: AllCommunityModules,
|
|
136
|
-
columnDefs: processColDefs(columnDefs)
|
|
136
|
+
columnDefs: processColDefs(columnDefs, this.props.methods)
|
|
137
137
|
}, someProperties));
|
|
138
138
|
}
|
|
139
139
|
constructor(props){
|
package/dist/AgGridInput.js
CHANGED
|
@@ -177,7 +177,7 @@ let AgGridInput = class AgGridInput extends React.Component {
|
|
|
177
177
|
onCellValueChanged: this.onCellValueChanged,
|
|
178
178
|
postSort: this.postSort,
|
|
179
179
|
modules: AllCommunityModules,
|
|
180
|
-
columnDefs: processColDefs(columnDefs)
|
|
180
|
+
columnDefs: processColDefs(columnDefs, this.props.methods)
|
|
181
181
|
}, someProperties, {
|
|
182
182
|
rowData: this.props.value
|
|
183
183
|
}));
|
package/dist/processColDefs.js
CHANGED
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import { renderHtml } from '@lowdefy/block-utils';
|
|
16
16
|
import { type } from '@lowdefy/helpers';
|
|
17
|
-
function recProcessColDefs(columnDefs) {
|
|
17
|
+
function recProcessColDefs(columnDefs, methods) {
|
|
18
18
|
return columnDefs.map((col)=>{
|
|
19
19
|
const newColDef = {};
|
|
20
20
|
if (type.isArray(col.children)) {
|
|
21
|
-
newColDef.children = recProcessColDefs(col.children);
|
|
21
|
+
newColDef.children = recProcessColDefs(col.children, methods);
|
|
22
22
|
}
|
|
23
23
|
if (type.isFunction(col.cellRenderer)) {
|
|
24
24
|
newColDef.cellRenderer = (params)=>{
|
|
25
25
|
return renderHtml({
|
|
26
26
|
html: col.cellRenderer(params),
|
|
27
|
-
methods
|
|
27
|
+
methods
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
}
|
|
@@ -34,7 +34,7 @@ function recProcessColDefs(columnDefs) {
|
|
|
34
34
|
};
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
function processColDefs(columnDefs = []) {
|
|
38
|
-
return recProcessColDefs(columnDefs);
|
|
37
|
+
function processColDefs(columnDefs = [], methods) {
|
|
38
|
+
return recProcessColDefs(columnDefs, methods);
|
|
39
39
|
}
|
|
40
40
|
export default processColDefs;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/blocks-aggrid",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.23",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "AgGrid Blocks for Lowdefy.",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
"@ag-grid-community/all-modules": "27.3.0",
|
|
55
55
|
"@ag-grid-community/core": "27.3.0",
|
|
56
56
|
"@ag-grid-community/react": "27.3.0",
|
|
57
|
-
"@lowdefy/block-utils": "4.0.0-alpha.
|
|
58
|
-
"@lowdefy/helpers": "4.0.0-alpha.
|
|
57
|
+
"@lowdefy/block-utils": "4.0.0-alpha.23",
|
|
58
|
+
"@lowdefy/helpers": "4.0.0-alpha.23",
|
|
59
59
|
"react": "18.1.0",
|
|
60
60
|
"react-dom": "18.1.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@emotion/jest": "11.9.1",
|
|
64
|
-
"@lowdefy/block-dev": "4.0.0-alpha.
|
|
65
|
-
"@lowdefy/jest-yaml-transform": "4.0.0-alpha.
|
|
64
|
+
"@lowdefy/block-dev": "4.0.0-alpha.23",
|
|
65
|
+
"@lowdefy/jest-yaml-transform": "4.0.0-alpha.23",
|
|
66
66
|
"@swc/cli": "0.1.57",
|
|
67
67
|
"@swc/core": "1.2.194",
|
|
68
68
|
"@swc/jest": "0.2.21",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "1bb110fb4432267efb199df926bae6bb735209ca"
|
|
81
81
|
}
|