@cdmx/wappler_ag_grid 1.7.2 → 1.7.3
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/README.md +37 -36
- package/app_connect/components.hjson +23 -16
- package/dmx-ag-grid.js +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,50 +37,51 @@ To use the "Custom" theme, copy "ag-theme-custom.css" to public/css/ag-theme-cus
|
|
|
37
37
|
6. **Floating Filter**: Specifies if the column has a floating filter. (Default: true)
|
|
38
38
|
7. **Exclude Hidden Fields**: Specifies if Hidden fields are to be excluded in CSV export. (Default: false)
|
|
39
39
|
8. **CSV Export**: Specifies if Export to CSV is enabled. (Default: true)
|
|
40
|
-
9. **
|
|
41
|
-
10. **
|
|
42
|
-
11. **
|
|
43
|
-
12. **
|
|
44
|
-
13. **
|
|
45
|
-
14. **
|
|
46
|
-
15. **Page Limit**:
|
|
47
|
-
16. **
|
|
40
|
+
9. **Exclude Fields CSV**: Specifies fields to be excluded in CSV export. (Default: null)
|
|
41
|
+
10. **Enable RTL**: Enabled Right to Left, used for Hebrew and Arabic. (Default: false)
|
|
42
|
+
11. **Column Hover Highlight**: Specifies column hover highlighting. (Default: true)
|
|
43
|
+
12. **Suppress Row Deselection**: Specifies if rows can be deselected. (Default: false)
|
|
44
|
+
13. **Pagination**: Enables pagination. (Default: true)
|
|
45
|
+
14. **Auto Pagination**: Enables automatic pagination. (Default: false)
|
|
46
|
+
15. **Page Limit Selectors**: Allowed selectors for for page size. Set to false to hide the page size selector. (Default: [20,50,100] ).
|
|
47
|
+
16. **Page Limit**: Number of rows to show per page. (Default: 20)
|
|
48
|
+
17. **Row Selection**: Row Selection (single or multiple).
|
|
48
49
|
- "Single"
|
|
49
50
|
- "Multiple" (Default)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
18. **Timezone**: Timezone for Date Fields. Select the appropriate timezone from the dropdown list. (Default: Local)
|
|
52
|
+
19. **Date Format**: Date Format for displaying date values. (Default: "dd/MM/yyyy hh:mm A")
|
|
53
|
+
20. **Filter Field ID**: Specifies the field ID of the search field when using grid quick filter. Applicable when using Quick Filter feature of AG Grid, called from Dynamic Events on change event on the field. (Default: search_field)
|
|
54
|
+
21. **Loading Overlay**: This enables loading overlay. (Default: false)
|
|
55
|
+
22. **Loading Overlay Duration**: This sets loading overlay duration in ms. (Default: 500)
|
|
56
|
+
23. **Sticky Header and Horizontal Scrollbar**: Optionally specify the header offset and topbar class.
|
|
56
57
|
- Fixed Header: Enables sticky header. (Default: false)
|
|
57
58
|
- Header Offset: Specifies offset from the top of the viewport area (Optional). (Default: 100)
|
|
58
59
|
- Topbar Class: Specify class, e.g., "topbar", to measure the offset from (Optional). (Default: "topbar")
|
|
59
60
|
- Topbar Offset: Specify topbar offset (Default: 80)
|
|
60
61
|
- Fixed Horizontal Scroll: Enables Hovering horizontal scrollbar which stays at the bottom all the time. (Default: false)
|
|
61
62
|
- Fixed Horizontal Scroll Width: Fixed horizontal scroll width percentage. (Default: 80%)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
63
|
+
24. **Row Height**: Height of each row in pixels. (Default: Auto)
|
|
64
|
+
25. **Header Height**: Height of the header row in pixels. (Default: Auto)
|
|
65
|
+
26. **Wrap Header Text**: This will cause long headers to wrap. (Default: true)
|
|
66
|
+
27. **Auto Header Height**: The header height is automatically set based on the content of the header. (Default: true)
|
|
67
|
+
28. **Auto Height**: The height is automatically set based on the content of the cells. (Default: false)
|
|
68
|
+
29. **Wrap Text**: This will cause long texts to wrap in the cells. (Default: false)
|
|
69
|
+
30. **Center Align (V)**: Specifies if the cell data should be vertically centered. (Default: false)
|
|
70
|
+
31. **Suppress Row Click Selection**: Disables row selection on row click. (Default: false)
|
|
71
|
+
32. **Suppress Menu Hide**: Prevents hiding the column menu. (Default: false)
|
|
72
|
+
33. **Suppress Movable Columns**: Disables moving columns. (Default: false)
|
|
73
|
+
34. **Enable Cell Expressions**: Enables expressions in cell values. (Default: false)
|
|
74
|
+
35. **Animate Rows**: Enables row animation on data changes. (Default: false)
|
|
75
|
+
36. **Suppress Aggregation Function in Header**: Hides the aggregation function in column headers. (Default: false)
|
|
76
|
+
37. **Suppress Clipboard Paste**: Disables pasting data from the clipboard. (Default: false)
|
|
77
|
+
38. **Suppress Scroll on New Data**: Prevents scrolling to newly added data. (Default: false)
|
|
78
|
+
39. **Suppress Property Names Check**: Disables checking for duplicate property names. (Default: false)
|
|
79
|
+
40. **Hide ID Field**: Hides the ID Field in the Grid. (Default: false)
|
|
80
|
+
41. **Numeric Column Align**: Align numeric columns to the right. (Default: false)
|
|
81
|
+
42. **Row Click Events**: Enables row click events. This can be used in Dynamic events => Grid Events => Row Clicked. (Default: false)
|
|
82
|
+
43. **Row Double Click Events**: Enables row double click events. This can be used in Dynamic events => Grid Events => Row Double Clicked. (Default: false)
|
|
83
|
+
44. **Enable Row Selection**: Enables row selection. This can be used in Dynamic events => Grid Events => Checkbox Checked || Checkbox Unchecked. (Default: false)
|
|
84
|
+
45. **Enable Row Status Toggle**: Enables row status toggle events. This can be used in Dynamic events => Grid Events => Checkbox Checked || Checkbox Unchecked. (Default: false)
|
|
84
85
|
|
|
85
86
|
# Data Type Overrides
|
|
86
87
|
|
|
@@ -176,22 +176,6 @@
|
|
|
176
176
|
"defaultValue": true,
|
|
177
177
|
"help": "Specifies if the column has a floating filter"
|
|
178
178
|
},
|
|
179
|
-
{
|
|
180
|
-
"name": "exportExcludeHidden",
|
|
181
|
-
"attribute": "dmx-bind:export_exclude_hidden_fields",
|
|
182
|
-
"title": "Exclude Hidden Fields",
|
|
183
|
-
"type": "boolean",
|
|
184
|
-
"defaultValue": false,
|
|
185
|
-
"help": "Specifies if Hidden fields are to be excluded in CSV export."
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"name": "exportToCSV",
|
|
189
|
-
"attribute": "dmx-bind:export_to_csv",
|
|
190
|
-
"title": "CSV Export",
|
|
191
|
-
"type": "boolean",
|
|
192
|
-
"defaultValue": true,
|
|
193
|
-
"help": "Specifies if Export to CSV to be enabled"
|
|
194
|
-
},
|
|
195
179
|
{
|
|
196
180
|
"name": "enableRtl",
|
|
197
181
|
"attribute": "dmx-bind:enable_rtl",
|
|
@@ -232,6 +216,29 @@
|
|
|
232
216
|
"defaultValue": false,
|
|
233
217
|
"help": "Built-in pagination size as per page size."
|
|
234
218
|
},
|
|
219
|
+
{
|
|
220
|
+
"name": "exportToCSV",
|
|
221
|
+
"attribute": "dmx-bind:export_to_csv",
|
|
222
|
+
"title": "CSV Export",
|
|
223
|
+
"type": "boolean",
|
|
224
|
+
"defaultValue": true,
|
|
225
|
+
"help": "Specifies if Export to CSV to be enabled"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "exportExcludeHidden",
|
|
229
|
+
"attribute": "dmx-bind:export_exclude_hidden_fields",
|
|
230
|
+
"title": "Exclude Hidden Fields",
|
|
231
|
+
"type": "boolean",
|
|
232
|
+
"defaultValue": false,
|
|
233
|
+
"help": "Specifies if Hidden fields are to be excluded in CSV export."
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "exportExcludeFields",
|
|
237
|
+
"attribute": "export_exclude_fields",
|
|
238
|
+
"title": "Exclude Fields CSV",
|
|
239
|
+
"type": "text",
|
|
240
|
+
"help": "Specifies fields to be excluded in CSV export (comma-seperated)."
|
|
241
|
+
},
|
|
235
242
|
{
|
|
236
243
|
"name": "paginationPageSizeSelector",
|
|
237
244
|
"attribute": "dmx-bind:pagination_page_size_selector",
|
package/dmx-ag-grid.js
CHANGED
|
@@ -82,6 +82,7 @@ dmx.Component('ag-grid', {
|
|
|
82
82
|
column_hover_highlight: { type: Boolean, default: true },
|
|
83
83
|
quick_filter_field: { type: String, default: 'search_field' },
|
|
84
84
|
export_exclude_hidden_fields: { type: Boolean, default: false },
|
|
85
|
+
export_exclude_fields: { type: String, default: null },
|
|
85
86
|
export_to_csv: { type: Boolean, default: true },
|
|
86
87
|
export_csv_filename: { type: String, default: 'export.csv' },
|
|
87
88
|
fixed_header: { type: Boolean, default: false },
|
|
@@ -1781,6 +1782,7 @@ dmx.Component('ag-grid', {
|
|
|
1781
1782
|
//CSV Export Function
|
|
1782
1783
|
exportGridData = () => {
|
|
1783
1784
|
const excludedColumnIds = ['checkboxColumn', 'actionsColumn'];
|
|
1785
|
+
const exportExcludeFieldsArray = options.export_exclude_fields ? options.export_exclude_fields.split(',') : [];
|
|
1784
1786
|
// Extracting fields and colIds from columnDefs
|
|
1785
1787
|
let fieldsAndColIds;
|
|
1786
1788
|
if (options.group_config) {
|
|
@@ -1811,7 +1813,8 @@ dmx.Component('ag-grid', {
|
|
|
1811
1813
|
}
|
|
1812
1814
|
const fieldsToExport = fieldsAndColIds.filter((column) => {
|
|
1813
1815
|
return !excludedColumnIds.includes(column.colId) &&
|
|
1814
|
-
(!options.export_exclude_hidden_fields || !column.hide)
|
|
1816
|
+
(!options.export_exclude_hidden_fields || !column.hide) &&
|
|
1817
|
+
!exportExcludeFieldsArray.includes(column.field);
|
|
1815
1818
|
}).map((column) => column.field);
|
|
1816
1819
|
|
|
1817
1820
|
const params = {
|