@lowdefy/blocks-aggrid 4.7.3 → 5.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.
Files changed (56) hide show
  1. package/dist/ag-grid-antd.module.css +22 -0
  2. package/dist/blocks/AgGridAlpine/AgGridAlpine.js +12 -14
  3. package/dist/blocks/AgGridAlpine/meta.js +147 -0
  4. package/dist/blocks/AgGridBalham/AgGridBalham.js +12 -14
  5. package/dist/blocks/AgGridBalham/meta.js +147 -0
  6. package/dist/blocks/AgGridInputAlpine/AgGridInputAlpine.js +12 -15
  7. package/dist/blocks/AgGridInputAlpine/meta.js +181 -0
  8. package/dist/blocks/AgGridInputBalham/AgGridInputBalham.js +12 -15
  9. package/dist/blocks/AgGridInputBalham/meta.js +181 -0
  10. package/dist/blocks/AgGridInputMaterial/AgGridInputMaterial.js +12 -15
  11. package/dist/blocks/AgGridInputMaterial/meta.js +181 -0
  12. package/dist/blocks/AgGridMaterial/AgGridMaterial.js +12 -14
  13. package/dist/blocks/AgGridMaterial/meta.js +147 -0
  14. package/dist/blocks.js +0 -4
  15. package/dist/e2e.js +0 -4
  16. package/dist/{schemas.js → metas.js} +6 -10
  17. package/dist/types.js +4 -16
  18. package/package.json +13 -11
  19. package/dist/blocks/AgGridAlpine/schema.js +0 -125
  20. package/dist/blocks/AgGridAlpine/schema.json +0 -105
  21. package/dist/blocks/AgGridAlpine/style.less +0 -18
  22. package/dist/blocks/AgGridAlpineDark/AgGridAlpineDark.js +0 -39
  23. package/dist/blocks/AgGridAlpineDark/e2e.js +0 -16
  24. package/dist/blocks/AgGridAlpineDark/schema.js +0 -125
  25. package/dist/blocks/AgGridAlpineDark/schema.json +0 -105
  26. package/dist/blocks/AgGridAlpineDark/style.less +0 -18
  27. package/dist/blocks/AgGridBalham/schema.js +0 -125
  28. package/dist/blocks/AgGridBalham/schema.json +0 -105
  29. package/dist/blocks/AgGridBalham/style.less +0 -18
  30. package/dist/blocks/AgGridBalhamDark/AgGridBalhamDark.js +0 -39
  31. package/dist/blocks/AgGridBalhamDark/e2e.js +0 -16
  32. package/dist/blocks/AgGridBalhamDark/schema.js +0 -125
  33. package/dist/blocks/AgGridBalhamDark/schema.json +0 -105
  34. package/dist/blocks/AgGridBalhamDark/style.less +0 -18
  35. package/dist/blocks/AgGridInputAlpine/schema.js +0 -146
  36. package/dist/blocks/AgGridInputAlpine/schema.json +0 -123
  37. package/dist/blocks/AgGridInputAlpine/style.less +0 -18
  38. package/dist/blocks/AgGridInputAlpineDark/AgGridInputAlpineDark.js +0 -44
  39. package/dist/blocks/AgGridInputAlpineDark/e2e.js +0 -16
  40. package/dist/blocks/AgGridInputAlpineDark/schema.js +0 -146
  41. package/dist/blocks/AgGridInputAlpineDark/schema.json +0 -123
  42. package/dist/blocks/AgGridInputAlpineDark/style.less +0 -18
  43. package/dist/blocks/AgGridInputBalham/schema.js +0 -146
  44. package/dist/blocks/AgGridInputBalham/schema.json +0 -123
  45. package/dist/blocks/AgGridInputBalham/style.less +0 -18
  46. package/dist/blocks/AgGridInputBalhamDark/AgGridInputBalhamDark.js +0 -44
  47. package/dist/blocks/AgGridInputBalhamDark/e2e.js +0 -16
  48. package/dist/blocks/AgGridInputBalhamDark/schema.js +0 -146
  49. package/dist/blocks/AgGridInputBalhamDark/schema.json +0 -123
  50. package/dist/blocks/AgGridInputBalhamDark/style.less +0 -18
  51. package/dist/blocks/AgGridInputMaterial/schema.js +0 -146
  52. package/dist/blocks/AgGridInputMaterial/schema.json +0 -123
  53. package/dist/blocks/AgGridInputMaterial/style.less +0 -18
  54. package/dist/blocks/AgGridMaterial/schema.js +0 -125
  55. package/dist/blocks/AgGridMaterial/schema.json +0 -105
  56. package/dist/blocks/AgGridMaterial/style.less +0 -18
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2021 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -13,15 +13,20 @@
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
15
  */ import React from 'react';
16
- import { blockDefaultProps } from '@lowdefy/block-utils';
16
+ import { withBlockDefaults } from '@lowdefy/block-utils';
17
+ import '@ag-grid-community/styles/ag-grid.css';
18
+ import '@ag-grid-community/styles/ag-theme-balham.css';
19
+ import antdStyles from '../../ag-grid-antd.module.css';
17
20
  import AgGridInput from '../../AgGridInput.js';
18
- const AgGridInputBalham = ({ blockId, events, loading, methods, properties, required, validation, value })=>/*#__PURE__*/ React.createElement("div", {
21
+ const AgGridInputBalham = ({ blockId, events, loading, methods, properties, required, styles, validation, value })=>{
22
+ return /*#__PURE__*/ React.createElement("div", {
19
23
  id: blockId,
20
- className: `ag-theme-balham ${methods.makeCssClass({
24
+ className: `ag-theme-balham ${antdStyles.antdTheme}`,
25
+ style: {
21
26
  width: '100%',
22
27
  height: properties.height ?? 500,
23
- ...properties.style
24
- })}`
28
+ ...styles?.element
29
+ }
25
30
  }, /*#__PURE__*/ React.createElement(AgGridInput, {
26
31
  blockId: blockId,
27
32
  events: events,
@@ -32,13 +37,5 @@ const AgGridInputBalham = ({ blockId, events, loading, methods, properties, requ
32
37
  validation: validation,
33
38
  value: value
34
39
  }));
35
- AgGridInputBalham.defaultProps = blockDefaultProps;
36
- AgGridInputBalham.meta = {
37
- category: 'input',
38
- valueType: 'array',
39
- icons: [],
40
- styles: [
41
- 'blocks/AgGridInputBalham/style.less'
42
- ]
43
40
  };
44
- export default AgGridInputBalham;
41
+ export default withBlockDefaults(AgGridInputBalham);
@@ -0,0 +1,181 @@
1
+ /*
2
+ Copyright 2020-2026 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ export default {
16
+ category: 'input',
17
+ icons: [],
18
+ valueType: 'array',
19
+ cssKeys: {
20
+ element: 'The AgGridInputBalham element.'
21
+ },
22
+ events: {
23
+ onCellClick: {
24
+ description: 'Trigger event when a cell is clicked.',
25
+ event: {
26
+ cell: 'The clicked cell with column and value.',
27
+ colId: 'The column id.',
28
+ row: 'The row data.',
29
+ rowIndex: 'The row index.',
30
+ selected: 'All selected rows.'
31
+ }
32
+ },
33
+ onFilterChanged: {
34
+ description: 'Trigger event when the filter changes.',
35
+ event: {
36
+ rows: 'The displayed rows after filtering.',
37
+ filter: 'The filter model.'
38
+ }
39
+ },
40
+ onRowClick: {
41
+ description: 'Trigger event when a row is clicked.',
42
+ event: {
43
+ row: 'The row data.',
44
+ selected: 'All selected rows.',
45
+ rowIndex: 'The row index.'
46
+ }
47
+ },
48
+ onRowSelected: {
49
+ description: 'Trigger event when a row is selected.',
50
+ event: {
51
+ row: 'The row data.',
52
+ rowIndex: 'The row index.',
53
+ selected: 'All selected rows.'
54
+ }
55
+ },
56
+ onSelectionChanged: {
57
+ description: 'Triggered when the selected rows are changed.',
58
+ event: {
59
+ selected: 'All selected rows.'
60
+ }
61
+ },
62
+ onSortChanged: {
63
+ description: 'Trigger event when the sort changes.',
64
+ event: {
65
+ rows: 'The displayed rows after sorting.',
66
+ sort: 'The sort column state.'
67
+ }
68
+ },
69
+ onCellValueChanged: {
70
+ description: 'Triggered when a cell value is changed on the grid.',
71
+ event: {
72
+ field: 'The column field name.',
73
+ newRowData: 'All row data after the change.',
74
+ newValue: 'The new cell value.',
75
+ oldValue: 'The previous cell value.',
76
+ rowData: 'The changed row data.',
77
+ rowIndex: 'The row index.'
78
+ }
79
+ },
80
+ onRowDragEnd: {
81
+ description: 'Triggered when a row is dragged to another position in the grid.',
82
+ event: {
83
+ fromData: 'The dragged row data.',
84
+ toData: 'The target row data.',
85
+ fromIndex: 'The original row index.',
86
+ toIndex: 'The new row index.',
87
+ newRowData: 'All row data after reorder.'
88
+ }
89
+ }
90
+ },
91
+ properties: {
92
+ type: 'object',
93
+ additionalProperties: false,
94
+ properties: {
95
+ height: {
96
+ type: [
97
+ 'number',
98
+ 'string'
99
+ ],
100
+ default: 'auto',
101
+ description: 'Specify table height explicitly, in pixel.'
102
+ },
103
+ rowData: {
104
+ type: 'array',
105
+ description: 'The list of data to display on the table.'
106
+ },
107
+ rowId: {
108
+ type: 'string',
109
+ description: 'The data field to use in `getRowId` which results in Row Selection being maintained across Row Data changes (assuming the Row exists in both sets). See Ag Grid docs for more details (https://www.ag-grid.com/react-data-grid/data-update-row-data/).'
110
+ },
111
+ defaultColDef: {
112
+ type: 'object',
113
+ description: 'Column properties which get applied to all columns. See all (https://www.ag-grid.com/javascript-data-grid/column-properties/).'
114
+ },
115
+ columnDefs: {
116
+ type: 'array',
117
+ description: 'A list of properties for each column.',
118
+ items: {
119
+ type: 'object',
120
+ properties: {
121
+ field: {
122
+ type: 'string',
123
+ description: "The field of the row object to get the cell's data from. Deep references into a row object is supported via dot notation, i.e 'address.firstLine'."
124
+ },
125
+ headerName: {
126
+ type: 'string',
127
+ description: 'The name to render in the column header. If not specified and field is specified, the field name will be used as the header name.'
128
+ },
129
+ editable: {
130
+ type: 'boolean',
131
+ default: false,
132
+ description: 'Set to true if this column is editable, otherwise false.'
133
+ },
134
+ rowDrag: {
135
+ type: [
136
+ 'boolean',
137
+ 'object'
138
+ ],
139
+ default: false,
140
+ description: 'Set to true (or return true from function) to allow row dragging.'
141
+ },
142
+ filter: {
143
+ type: 'boolean',
144
+ default: false,
145
+ description: 'Filter component to use for this column. Set to true to use the default filter.'
146
+ },
147
+ sortable: {
148
+ type: 'boolean',
149
+ default: false,
150
+ description: 'Set to true to allow sorting on this column.'
151
+ },
152
+ resizable: {
153
+ type: 'boolean',
154
+ default: false,
155
+ description: 'Set to true to allow this column should be resized.'
156
+ },
157
+ width: {
158
+ type: 'number',
159
+ description: 'Initial width in pixels for the cell.'
160
+ },
161
+ cellStyle: {
162
+ type: 'number',
163
+ description: 'An object of css values returning an object of css values for a particular cell.'
164
+ },
165
+ cellRenderer: {
166
+ type: 'object',
167
+ description: "Provide your own cell Renderer function (using the `_function` operator) for this column's cells."
168
+ },
169
+ valueFormatter: {
170
+ type: [
171
+ 'object',
172
+ 'string'
173
+ ],
174
+ description: 'A function (using the `_function` operator) or expression to format a value, should return a string. Not used for CSV export or copy to clipboard, only for UI cell rendering.'
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+ };
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2021 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -13,15 +13,20 @@
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
15
  */ import React from 'react';
16
- import { blockDefaultProps } from '@lowdefy/block-utils';
16
+ import { withBlockDefaults } from '@lowdefy/block-utils';
17
+ import '@ag-grid-community/styles/ag-grid.css';
18
+ import '@ag-grid-community/styles/ag-theme-material.css';
19
+ import antdStyles from '../../ag-grid-antd.module.css';
17
20
  import AgGridInput from '../../AgGridInput.js';
18
- const AgGridInputMaterial = ({ blockId, events, loading, methods, properties, required, validation, value })=>/*#__PURE__*/ React.createElement("div", {
21
+ const AgGridInputMaterial = ({ blockId, events, loading, methods, properties, required, styles, validation, value })=>{
22
+ return /*#__PURE__*/ React.createElement("div", {
19
23
  id: blockId,
20
- className: `ag-theme-material ${methods.makeCssClass({
24
+ className: `ag-theme-material ${antdStyles.antdTheme}`,
25
+ style: {
21
26
  width: '100%',
22
27
  height: properties.height ?? 500,
23
- ...properties.style
24
- })}`
28
+ ...styles?.element
29
+ }
25
30
  }, /*#__PURE__*/ React.createElement(AgGridInput, {
26
31
  blockId: blockId,
27
32
  events: events,
@@ -32,13 +37,5 @@ const AgGridInputMaterial = ({ blockId, events, loading, methods, properties, re
32
37
  validation: validation,
33
38
  value: value
34
39
  }));
35
- AgGridInputMaterial.defaultProps = blockDefaultProps;
36
- AgGridInputMaterial.meta = {
37
- category: 'input',
38
- valueType: 'array',
39
- icons: [],
40
- styles: [
41
- 'blocks/AgGridInputMaterial/style.less'
42
- ]
43
40
  };
44
- export default AgGridInputMaterial;
41
+ export default withBlockDefaults(AgGridInputMaterial);
@@ -0,0 +1,181 @@
1
+ /*
2
+ Copyright 2020-2026 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ export default {
16
+ category: 'input',
17
+ icons: [],
18
+ valueType: 'array',
19
+ cssKeys: {
20
+ element: 'The AgGridInputMaterial element.'
21
+ },
22
+ events: {
23
+ onCellClick: {
24
+ description: 'Trigger event when a cell is clicked.',
25
+ event: {
26
+ cell: 'The clicked cell with column and value.',
27
+ colId: 'The column id.',
28
+ row: 'The row data.',
29
+ rowIndex: 'The row index.',
30
+ selected: 'All selected rows.'
31
+ }
32
+ },
33
+ onFilterChanged: {
34
+ description: 'Trigger event when the filter changes.',
35
+ event: {
36
+ rows: 'The displayed rows after filtering.',
37
+ filter: 'The filter model.'
38
+ }
39
+ },
40
+ onRowClick: {
41
+ description: 'Trigger event when a row is clicked.',
42
+ event: {
43
+ row: 'The row data.',
44
+ selected: 'All selected rows.',
45
+ rowIndex: 'The row index.'
46
+ }
47
+ },
48
+ onRowSelected: {
49
+ description: 'Trigger event when a row is selected.',
50
+ event: {
51
+ row: 'The row data.',
52
+ rowIndex: 'The row index.',
53
+ selected: 'All selected rows.'
54
+ }
55
+ },
56
+ onSelectionChanged: {
57
+ description: 'Triggered when the selected rows are changed.',
58
+ event: {
59
+ selected: 'All selected rows.'
60
+ }
61
+ },
62
+ onSortChanged: {
63
+ description: 'Trigger event when the sort changes.',
64
+ event: {
65
+ rows: 'The displayed rows after sorting.',
66
+ sort: 'The sort column state.'
67
+ }
68
+ },
69
+ onCellValueChanged: {
70
+ description: 'Triggered when a cell value is changed on the grid.',
71
+ event: {
72
+ field: 'The column field name.',
73
+ newRowData: 'All row data after the change.',
74
+ newValue: 'The new cell value.',
75
+ oldValue: 'The previous cell value.',
76
+ rowData: 'The changed row data.',
77
+ rowIndex: 'The row index.'
78
+ }
79
+ },
80
+ onRowDragEnd: {
81
+ description: 'Triggered when a row is dragged to another position in the grid.',
82
+ event: {
83
+ fromData: 'The dragged row data.',
84
+ toData: 'The target row data.',
85
+ fromIndex: 'The original row index.',
86
+ toIndex: 'The new row index.',
87
+ newRowData: 'All row data after reorder.'
88
+ }
89
+ }
90
+ },
91
+ properties: {
92
+ type: 'object',
93
+ additionalProperties: false,
94
+ properties: {
95
+ height: {
96
+ type: [
97
+ 'number',
98
+ 'string'
99
+ ],
100
+ default: 'auto',
101
+ description: 'Specify table height explicitly, in pixel.'
102
+ },
103
+ rowData: {
104
+ type: 'array',
105
+ description: 'The list of data to display on the table.'
106
+ },
107
+ rowId: {
108
+ type: 'string',
109
+ description: 'The data field to use in `getRowId` which results in Row Selection being maintained across Row Data changes (assuming the Row exists in both sets). See Ag Grid docs for more details (https://www.ag-grid.com/react-data-grid/data-update-row-data/).'
110
+ },
111
+ defaultColDef: {
112
+ type: 'object',
113
+ description: 'Column properties which get applied to all columns. See all (https://www.ag-grid.com/javascript-data-grid/column-properties/).'
114
+ },
115
+ columnDefs: {
116
+ type: 'array',
117
+ description: 'A list of properties for each column.',
118
+ items: {
119
+ type: 'object',
120
+ properties: {
121
+ field: {
122
+ type: 'string',
123
+ description: "The field of the row object to get the cell's data from. Deep references into a row object is supported via dot notation, i.e 'address.firstLine'."
124
+ },
125
+ headerName: {
126
+ type: 'string',
127
+ description: 'The name to render in the column header. If not specified and field is specified, the field name will be used as the header name.'
128
+ },
129
+ editable: {
130
+ type: 'boolean',
131
+ default: false,
132
+ description: 'Set to true if this column is editable, otherwise false.'
133
+ },
134
+ rowDrag: {
135
+ type: [
136
+ 'boolean',
137
+ 'object'
138
+ ],
139
+ default: false,
140
+ description: 'Set to true (or return true from function) to allow row dragging.'
141
+ },
142
+ filter: {
143
+ type: 'boolean',
144
+ default: false,
145
+ description: 'Filter component to use for this column. Set to true to use the default filter.'
146
+ },
147
+ sortable: {
148
+ type: 'boolean',
149
+ default: false,
150
+ description: 'Set to true to allow sorting on this column.'
151
+ },
152
+ resizable: {
153
+ type: 'boolean',
154
+ default: false,
155
+ description: 'Set to true to allow this column should be resized.'
156
+ },
157
+ width: {
158
+ type: 'number',
159
+ description: 'Initial width in pixels for the cell.'
160
+ },
161
+ cellStyle: {
162
+ type: 'number',
163
+ description: 'An object of css values returning an object of css values for a particular cell.'
164
+ },
165
+ cellRenderer: {
166
+ type: 'object',
167
+ description: "Provide your own cell Renderer function (using the `_function` operator) for this column's cells."
168
+ },
169
+ valueFormatter: {
170
+ type: [
171
+ 'object',
172
+ 'string'
173
+ ],
174
+ description: 'A function (using the `_function` operator) or expression to format a value, should return a string. Not used for CSV export or copy to clipboard, only for UI cell rendering.'
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+ };
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2021 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -13,27 +13,25 @@
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
15
  */ import React from 'react';
16
- import { blockDefaultProps } from '@lowdefy/block-utils';
16
+ import { withBlockDefaults } from '@lowdefy/block-utils';
17
+ import '@ag-grid-community/styles/ag-grid.css';
18
+ import '@ag-grid-community/styles/ag-theme-material.css';
19
+ import antdStyles from '../../ag-grid-antd.module.css';
17
20
  import AgGrid from '../../AgGrid.js';
18
- const AgGridMaterial = ({ blockId, events, loading, methods, properties })=>/*#__PURE__*/ React.createElement("div", {
21
+ const AgGridMaterial = ({ blockId, events, loading, methods, properties, styles })=>{
22
+ return /*#__PURE__*/ React.createElement("div", {
19
23
  id: blockId,
20
- className: `ag-theme-material ${methods.makeCssClass({
24
+ className: `ag-theme-material ${antdStyles.antdTheme}`,
25
+ style: {
21
26
  width: '100%',
22
27
  height: properties.height ?? 500,
23
- ...properties.style
24
- })}`
28
+ ...styles?.element
29
+ }
25
30
  }, /*#__PURE__*/ React.createElement(AgGrid, {
26
31
  events: events,
27
32
  loading: loading,
28
33
  methods: methods,
29
34
  properties: properties
30
35
  }));
31
- AgGridMaterial.defaultProps = blockDefaultProps;
32
- AgGridMaterial.meta = {
33
- category: 'display',
34
- icons: [],
35
- styles: [
36
- 'blocks/AgGridMaterial/style.less'
37
- ]
38
36
  };
39
- export default AgGridMaterial;
37
+ export default withBlockDefaults(AgGridMaterial);
@@ -0,0 +1,147 @@
1
+ /*
2
+ Copyright 2020-2026 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ export default {
16
+ category: 'display',
17
+ icons: [],
18
+ valueType: null,
19
+ cssKeys: {
20
+ element: 'The AgGridMaterial element.'
21
+ },
22
+ events: {
23
+ onCellClick: {
24
+ description: 'Trigger event when a cell is clicked.',
25
+ event: {
26
+ cell: 'The clicked cell with column and value.',
27
+ colId: 'The column id.',
28
+ row: 'The row data.',
29
+ rowIndex: 'The row index.',
30
+ selected: 'All selected rows.'
31
+ }
32
+ },
33
+ onFilterChanged: {
34
+ description: 'Trigger event when the filter changes.',
35
+ event: {
36
+ rows: 'The displayed rows after filtering.',
37
+ filter: 'The filter model.'
38
+ }
39
+ },
40
+ onRowClick: {
41
+ description: 'Trigger event when a row is clicked.',
42
+ event: {
43
+ row: 'The row data.',
44
+ selected: 'All selected rows.',
45
+ rowIndex: 'The row index.'
46
+ }
47
+ },
48
+ onRowSelected: {
49
+ description: 'Trigger event when a row is selected.',
50
+ event: {
51
+ row: 'The row data.',
52
+ rowIndex: 'The row index.',
53
+ selected: 'All selected rows.'
54
+ }
55
+ },
56
+ onSelectionChanged: {
57
+ description: 'Triggered when the selected rows are changed.',
58
+ event: {
59
+ selected: 'All selected rows.'
60
+ }
61
+ },
62
+ onSortChanged: {
63
+ description: 'Trigger event when the sort changes.',
64
+ event: {
65
+ rows: 'The displayed rows after sorting.',
66
+ sort: 'The sort column state.'
67
+ }
68
+ }
69
+ },
70
+ properties: {
71
+ type: 'object',
72
+ additionalProperties: false,
73
+ properties: {
74
+ height: {
75
+ type: [
76
+ 'number',
77
+ 'string'
78
+ ],
79
+ default: 'auto',
80
+ description: 'Specify table height explicitly, in pixel.'
81
+ },
82
+ rowData: {
83
+ type: 'array',
84
+ description: 'The list of data to display on the table.'
85
+ },
86
+ rowId: {
87
+ type: 'string',
88
+ description: 'The data field to use in `getRowId` which results in Row Selection being maintained across Row Data changes (assuming the Row exists in both sets). See Ag Grid docs for more details (https://www.ag-grid.com/react-data-grid/data-update-row-data/).'
89
+ },
90
+ defaultColDef: {
91
+ type: 'object',
92
+ description: 'Column properties which get applied to all columns. See all (https://www.ag-grid.com/javascript-data-grid/column-properties/).'
93
+ },
94
+ columnDefs: {
95
+ type: 'array',
96
+ description: 'A list of properties for each column.',
97
+ items: {
98
+ type: 'object',
99
+ properties: {
100
+ field: {
101
+ type: 'string',
102
+ description: "The field of the row object to get the cell's data from. Deep references into a row object is supported via dot notation, i.e 'address.firstLine'."
103
+ },
104
+ headerName: {
105
+ type: 'string',
106
+ description: 'The name to render in the column header. If not specified and field is specified, the field name will be used as the header name.'
107
+ },
108
+ filter: {
109
+ type: 'boolean',
110
+ default: false,
111
+ description: 'Filter component to use for this column. Set to true to use the default filter.'
112
+ },
113
+ sortable: {
114
+ type: 'boolean',
115
+ default: false,
116
+ description: 'Set to true to allow sorting on this column.'
117
+ },
118
+ resizable: {
119
+ type: 'boolean',
120
+ default: false,
121
+ description: 'Set to true to allow this column should be resized.'
122
+ },
123
+ width: {
124
+ type: 'number',
125
+ description: 'Initial width in pixels for the cell.'
126
+ },
127
+ cellStyle: {
128
+ type: 'number',
129
+ description: 'An object of css values returning an object of css values for a particular cell.'
130
+ },
131
+ cellRenderer: {
132
+ type: 'object',
133
+ description: "Provide your own cell Renderer function (using the `_function` operator) for this column's cells."
134
+ },
135
+ valueFormatter: {
136
+ type: [
137
+ 'object',
138
+ 'string'
139
+ ],
140
+ description: 'A function (using the `_function` operator) or expression to format a value, should return a string. Not used for CSV export or copy to clipboard, only for UI cell rendering.'
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
146
+ }
147
+ };
package/dist/blocks.js CHANGED
@@ -13,12 +13,8 @@
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
15
  */ export { default as AgGridAlpine } from './blocks/AgGridAlpine/AgGridAlpine.js';
16
- export { default as AgGridAlpineDark } from './blocks/AgGridAlpineDark/AgGridAlpineDark.js';
17
16
  export { default as AgGridBalham } from './blocks/AgGridBalham/AgGridBalham.js';
18
- export { default as AgGridBalhamDark } from './blocks/AgGridBalhamDark/AgGridBalhamDark.js';
19
17
  export { default as AgGridInputAlpine } from './blocks/AgGridInputAlpine/AgGridInputAlpine.js';
20
- export { default as AgGridInputAlpineDark } from './blocks/AgGridInputAlpineDark/AgGridInputAlpineDark.js';
21
18
  export { default as AgGridInputBalham } from './blocks/AgGridInputBalham/AgGridInputBalham.js';
22
- export { default as AgGridInputBalhamDark } from './blocks/AgGridInputBalhamDark/AgGridInputBalhamDark.js';
23
19
  export { default as AgGridInputMaterial } from './blocks/AgGridInputMaterial/AgGridInputMaterial.js';
24
20
  export { default as AgGridMaterial } from './blocks/AgGridMaterial/AgGridMaterial.js';