@cdmx/wappler_ag_grid 1.0.3 → 1.0.5

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 CHANGED
@@ -47,20 +47,23 @@ The overrides for the "Custom" theme can be applied in the ag-theme-custom.css f
47
47
  - Fixed Horizontal Scroll Width: Fixed horizontal scroll width percentage. (Default: 80%)
48
48
  16. **Row Height**: Height of each row in pixels. (Default: 25)
49
49
  17. **Header Height**: Height of the header row in pixels. (Default: 30)
50
- 18. **Suppress Row Click Selection**: Disables row selection on row click. (Default: false)
51
- 19. **Suppress Menu Hide**: Prevents hiding the column menu. (Default: false)
52
- 20. **Suppress Movable Columns**: Disables moving columns. (Default: false)
53
- 21. **Enable Cell Expressions**: Enables expressions in cell values. (Default: false)
54
- 22. **Animate Rows**: Enables row animation on data changes. (Default: false)
55
- 23. **Suppress Aggregation Function in Header**: Hides the aggregation function in column headers. (Default: false)
56
- 24. **Suppress Aggregation at Root Level**: Disables aggregation at the root level. (Default: false)
57
- 25. **Suppress Clipboard Paste**: Disables pasting data from the clipboard. (Default: false)
58
- 26. **Suppress Scroll on New Data**: Prevents scrolling to newly added data. (Default: false)
59
- 27. **Suppress Property Names Check**: Disables checking for duplicate property names. (Default: false)
60
- 28. **Hide ID Field**: Hides the ID Field in the Grid. (Default: false)
61
- 29. **Row Click Events**: Enables row click events. This can be used in Dynamic events => Grid Events => Row Clicked. (Default: false)
62
- 30. **Enable Row Selection**: Enables row selection. This can be used in Dynamic events => Grid Events => Checkbox Checked || Checkbox Unchecked. (Default: false)
63
- 31. **Enable Row Status Toggle**: Enables row status toggle events. This can be used in Dynamic events => Grid Events => Checkbox Checked || Checkbox Unchecked. (Default: false)
50
+ 18. **Wrap Header Text**: This will cause long headers to wrap. (Default: true)
51
+ 19. **Auto Header Height**: The column header height is automatically set based on the content of the header cells. (Default: true)
52
+ 20. **Wrap Text**: This will cause long texts to wrap in the cells. (Default: false)
53
+ 21. **Suppress Row Click Selection**: Disables row selection on row click. (Default: false)
54
+ 22. **Suppress Menu Hide**: Prevents hiding the column menu. (Default: false)
55
+ 23. **Suppress Movable Columns**: Disables moving columns. (Default: false)
56
+ 24. **Enable Cell Expressions**: Enables expressions in cell values. (Default: false)
57
+ 25. **Animate Rows**: Enables row animation on data changes. (Default: false)
58
+ 26. **Suppress Aggregation Function in Header**: Hides the aggregation function in column headers. (Default: false)
59
+ 27. **Suppress Aggregation at Root Level**: Disables aggregation at the root level. (Default: false)
60
+ 28. **Suppress Clipboard Paste**: Disables pasting data from the clipboard. (Default: false)
61
+ 29. **Suppress Scroll on New Data**: Prevents scrolling to newly added data. (Default: false)
62
+ 30. **Suppress Property Names Check**: Disables checking for duplicate property names. (Default: false)
63
+ 31. **Hide ID Field**: Hides the ID Field in the Grid. (Default: false)
64
+ 32. **Row Click Events**: Enables row click events. This can be used in Dynamic events => Grid Events => Row Clicked. (Default: false)
65
+ 33. **Enable Row Selection**: Enables row selection. This can be used in Dynamic events => Grid Events => Checkbox Checked || Checkbox Unchecked. (Default: false)
66
+ 34. **Enable Row Status Toggle**: Enables row status toggle events. This can be used in Dynamic events => Grid Events => Checkbox Checked || Checkbox Unchecked. (Default: false)
64
67
 
65
68
  # Data Type Overrides
66
69
 
@@ -204,13 +207,15 @@ Configuration includes:
204
207
 
205
208
  ---
206
209
 
207
- ### Set Filters
210
+ # Set Filters
208
211
 
209
212
  The "Set Filters" feature allows you to enable the setting of filters for columns in a user interface. This feature allows to preset filters when the grid is rendered.
210
213
 
211
214
  Configuration includes:
212
- - **Set Filters**: Toggle to enable or disable the feature. When enabled, users can set filters for columns. (Default: false)
213
- - **Custom Filters**: A grid that allows you to define custom filters.
215
+ ### Set Filters
216
+ Toggle to enable or disable the feature. When enabled, users can set filters for columns. (Default: false)
217
+
218
+ **Custom Filters**: A grid that allows you to define custom filters.
214
219
  - **Field**: The column name to filter.
215
220
  - **Filter Type**: The type of filter to apply, options available are: "Starts With," "Less Than," "Date From," "Greater Than," "Equals," and "Contains."
216
221
  - **Filter Value**: The Value/Filter to be applied.
@@ -361,6 +361,30 @@
361
361
  "defaultValue": null,
362
362
  "help": "Height of the header row in pixels"
363
363
  },
364
+ {
365
+ "name": "wrapHeaderText",
366
+ "attribute": "dmx-bind:wrap_header_text",
367
+ "title": "Wrap Header Text",
368
+ "type": "boolean",
369
+ "defaultValue": true,
370
+ "help": "This will cause long headers to wrap."
371
+ },
372
+ {
373
+ "name": "autoHeaderHeight",
374
+ "attribute": "dmx-bind:auto_header_height",
375
+ "title": "Auto Header Height",
376
+ "type": "boolean",
377
+ "defaultValue": true,
378
+ "help": "The column header height is automatically set based on the content of the header cells."
379
+ },
380
+ {
381
+ "name": "wrapText",
382
+ "attribute": "dmx-bind:wrap_text",
383
+ "title": "Wrap Text",
384
+ "type": "boolean",
385
+ "defaultValue": false,
386
+ "help": "This will cause long texts to wrap in the cells."
387
+ },
364
388
  {
365
389
  "name": "suppressRowClickSelection",
366
390
  "attribute": "dmx-bind:suppress_row_click_selection",
package/dmx-ag-grid.js CHANGED
@@ -20,6 +20,9 @@ dmx.Component('ag-grid', {
20
20
  cwidths: { type: Object, default: {} },
21
21
  ctypes: { type: Array, default: [] },
22
22
  cfilters: { type: Array, default: [] },
23
+ wrap_header_text: { type: Boolean, default: true },
24
+ auto_header_height: { type: Boolean, default: true },
25
+ wrap_text: { type: Boolean, default: false },
23
26
  data_changes: { type: Array, default: [] },
24
27
  data: { type: Array, default: [] },
25
28
  dom_layout: { type: String, default: 'autoHeight' },
@@ -1088,6 +1091,9 @@ dmx.Component('ag-grid', {
1088
1091
  flex: 1,
1089
1092
  minWidth: options.min_width,
1090
1093
  resizable: options.resizable,
1094
+ wrapHeaderText: options.wrap_header_text,
1095
+ autoHeaderHeight: options.auto_header_height,
1096
+ wrapText: options.wrap_text,
1091
1097
  filter: options.filter,
1092
1098
  sortable: options.sortable,
1093
1099
  floatingFilter: options.floating_filter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",