@cdmx/wappler_ag_grid 1.6.1 → 1.6.2
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 +39 -38
- package/app_connect/components.hjson +8 -0
- package/dmx-ag-grid.js +14 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,52 +35,53 @@ To use the "Custom" theme, copy "ag-theme-custom.css" to public/css/ag-theme-cus
|
|
|
35
35
|
6. **Floating Filter**: Specifies if the column has a floating filter. (Default: true)
|
|
36
36
|
7. **Editiable Cells**: Makes cells editable. (Default: false)
|
|
37
37
|
8. **Editiable Rows**: Makes row data editable. (Default: false)
|
|
38
|
-
9. **
|
|
39
|
-
10. **
|
|
40
|
-
11. **
|
|
41
|
-
12. **
|
|
42
|
-
13. **
|
|
43
|
-
14. **
|
|
44
|
-
15. **
|
|
45
|
-
16. **Page Limit**:
|
|
46
|
-
17. **
|
|
38
|
+
9. **Exclude Hidden Fields**: Specifies if Hidden fields are to be excluded in CSV export. (Default: false)
|
|
39
|
+
10. **CSV Export**: Specifies if Export to CSV is enabled. (Default: true)
|
|
40
|
+
11. **Enable RTL**: Enabled Right to Left, used for Hebrew and Arabic. (Default: false)
|
|
41
|
+
12. **Column Hover Highlight**: Specifies column hover highlighting. (Default: true)
|
|
42
|
+
13. **Suppress Row Deselection**: Specifies if rows can be deselected. (Default: false)
|
|
43
|
+
14. **Pagination**: Enables pagination. (Default: true)
|
|
44
|
+
15. **Auto Pagination**: Enables automatic pagination. (Default: false)
|
|
45
|
+
16. **Page Limit Selectors**: Allowed selectors for for page size. Set to false to hide the page size selector. (Default: [20,50,100] ).
|
|
46
|
+
17. **Page Limit**: Number of rows to show per page. (Default: 20)
|
|
47
|
+
18. **Row Selection**: Row Selection (single or multiple).
|
|
47
48
|
- "Single"
|
|
48
49
|
- "Multiple" (Default)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
19. **Timezone**: Timezone for Date Fields. Select the appropriate timezone from the dropdown list. (Default: Local)
|
|
51
|
+
20. **Date Format**: Date Format for displaying date values. (Default: "dd/MM/yyyy hh:mm A")
|
|
52
|
+
21. **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)
|
|
53
|
+
22. **Loading Overlay**: This enables loading overlay. (Default: false)
|
|
54
|
+
23. **Loading Overlay Duration**: This sets loading overlay duration in ms. (Default: 500)
|
|
55
|
+
24. **Sticky Header and Horizontal Scrollbar**: Optionally specify the header offset and topbar class.
|
|
55
56
|
- Fixed Header: Enables sticky header. (Default: false)
|
|
56
57
|
- Header Offset: Specifies offset from the top of the viewport area (Optional). (Default: 100)
|
|
57
58
|
- Topbar Class: Specify class, e.g., "topbar", to measure the offset from (Optional). (Default: "topbar")
|
|
58
59
|
- Topbar Offset: Specify topbar offset (Default: 80)
|
|
59
60
|
- Fixed Horizontal Scroll: Enables Hovering horizontal scrollbar which stays at the bottom all the time. (Default: false)
|
|
60
61
|
- Fixed Horizontal Scroll Width: Fixed horizontal scroll width percentage. (Default: 80%)
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
62
|
+
25. **Row Height**: Height of each row in pixels. (Default: Auto)
|
|
63
|
+
26. **Header Height**: Height of the header row in pixels. (Default: Auto)
|
|
64
|
+
27. **Wrap Header Text**: This will cause long headers to wrap. (Default: true)
|
|
65
|
+
28. **Auto Header Height**: The header height is automatically set based on the content of the header. (Default: true)
|
|
66
|
+
29. **Auto Height**: The height is automatically set based on the content of the cells. (Default: false)
|
|
67
|
+
30. **Wrap Text**: This will cause long texts to wrap in the cells. (Default: false)
|
|
68
|
+
31. **Center Align (V)**: Specifies if the cell data should be vertically centered. (Default: false)
|
|
69
|
+
32. **Center Align (H)**: Specifies if the cell data should be vertically centered. (Default: false)
|
|
70
|
+
33. **Suppress Row Click Selection**: Disables row selection on row click. (Default: false)
|
|
71
|
+
34. **Suppress Menu Hide**: Prevents hiding the column menu. (Default: false)
|
|
72
|
+
35. **Suppress Movable Columns**: Disables moving columns. (Default: false)
|
|
73
|
+
36. **Enable Cell Expressions**: Enables expressions in cell values. (Default: false)
|
|
74
|
+
37. **Animate Rows**: Enables row animation on data changes. (Default: false)
|
|
75
|
+
38. **Suppress Aggregation Function in Header**: Hides the aggregation function in column headers. (Default: false)
|
|
76
|
+
39. **Suppress Clipboard Paste**: Disables pasting data from the clipboard. (Default: false)
|
|
77
|
+
40. **Suppress Scroll on New Data**: Prevents scrolling to newly added data. (Default: false)
|
|
78
|
+
41. **Suppress Property Names Check**: Disables checking for duplicate property names. (Default: false)
|
|
79
|
+
42. **Hide ID Field**: Hides the ID Field in the Grid. (Default: false)
|
|
80
|
+
43. **Numeric Column Align**: Align numeric columns to the right. (Default: false)
|
|
81
|
+
44. **Row Click Events**: Enables row click events. This can be used in Dynamic events => Grid Events => Row Clicked. (Default: false)
|
|
82
|
+
45. **Row Double Click Events**: Enables row double click events. This can be used in Dynamic events => Grid Events => Row Double Clicked. (Default: false)
|
|
83
|
+
46. **Enable Row Selection**: Enables row selection. This can be used in Dynamic events => Grid Events => Checkbox Checked || Checkbox Unchecked. (Default: false)
|
|
84
|
+
47. **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
|
|
|
@@ -192,6 +192,14 @@
|
|
|
192
192
|
"defaultValue": false,
|
|
193
193
|
"help": "Makes entire row editable."
|
|
194
194
|
},
|
|
195
|
+
{
|
|
196
|
+
"name": "exportExcludeHidden",
|
|
197
|
+
"attribute": "dmx-bind:export_exclude_hidden_fields",
|
|
198
|
+
"title": "Exclude Hidden Fields",
|
|
199
|
+
"type": "boolean",
|
|
200
|
+
"defaultValue": false,
|
|
201
|
+
"help": "Specifies if Hidden fields are to be excluded in CSV export."
|
|
202
|
+
},
|
|
195
203
|
{
|
|
196
204
|
"name": "exportToCSV",
|
|
197
205
|
"attribute": "dmx-bind:export_to_csv",
|
package/dmx-ag-grid.js
CHANGED
|
@@ -76,6 +76,7 @@ dmx.Component('ag-grid', {
|
|
|
76
76
|
floating_filter: { type: Boolean, default: true },
|
|
77
77
|
column_hover_highlight: { type: Boolean, default: true },
|
|
78
78
|
quick_filter_field: { type: String, default: 'search_field' },
|
|
79
|
+
export_exclude_hidden_fields: { type: Boolean, default: false },
|
|
79
80
|
export_to_csv: { type: Boolean, default: true },
|
|
80
81
|
export_csv_filename: { type: String, default: 'export.csv' },
|
|
81
82
|
fixed_header: { type: Boolean, default: false },
|
|
@@ -1686,25 +1687,26 @@ dmx.Component('ag-grid', {
|
|
|
1686
1687
|
fieldsAndColIds.push({
|
|
1687
1688
|
field: column.field,
|
|
1688
1689
|
colId: column.colId,
|
|
1690
|
+
hide: column.hide,
|
|
1689
1691
|
});
|
|
1690
1692
|
}
|
|
1691
1693
|
});
|
|
1692
1694
|
return fieldsAndColIds;
|
|
1693
1695
|
};
|
|
1694
|
-
|
|
1695
1696
|
// Traverse columnDefs to gather fields and colIds
|
|
1696
1697
|
fieldsAndColIds = traverseColumns(gridConfig.columnDefs);
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
).map((column) => column.field);
|
|
1698
|
+
} else {
|
|
1699
|
+
fieldsAndColIds = gridConfig.columnDefs.map((column) => ({
|
|
1700
|
+
field: column.field,
|
|
1701
|
+
colId: column.colId,
|
|
1702
|
+
hide: column.hide,
|
|
1703
|
+
}));
|
|
1704
|
+
}
|
|
1705
|
+
const fieldsToExport = fieldsAndColIds.filter((column) => {
|
|
1706
|
+
return !excludedColumnIds.includes(column.colId) &&
|
|
1707
|
+
(!options.export_exclude_hidden_fields || !column.hide);
|
|
1708
|
+
}).map((column) => column.field);
|
|
1709
|
+
|
|
1708
1710
|
const params = {
|
|
1709
1711
|
fileName: options.export_csv_filename,
|
|
1710
1712
|
allColumns: true,
|