@cdmx/wappler_ag_grid 1.5.8 → 1.5.10
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/.github/workflows/npm-publish.yml +2 -2
- package/README.md +30 -29
- package/dmx-ag-grid.js +6 -6
- package/package.json +3 -3
|
@@ -17,7 +17,7 @@ jobs:
|
|
|
17
17
|
- uses: actions/checkout@v3
|
|
18
18
|
- uses: actions/setup-node@v3
|
|
19
19
|
with:
|
|
20
|
-
node-version:
|
|
20
|
+
node-version: 20
|
|
21
21
|
- run: npm ci
|
|
22
22
|
|
|
23
23
|
publish-npm:
|
|
@@ -27,7 +27,7 @@ jobs:
|
|
|
27
27
|
- uses: actions/checkout@v3
|
|
28
28
|
- uses: actions/setup-node@v3
|
|
29
29
|
with:
|
|
30
|
-
node-version:
|
|
30
|
+
node-version: 20
|
|
31
31
|
registry-url: https://registry.npmjs.org/
|
|
32
32
|
- run: npm ci
|
|
33
33
|
- run: npm publish --access public
|
package/README.md
CHANGED
|
@@ -3,10 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
The AG Grid module allows you to create a flexible and customizable data grid with various options and properties. Below, you'll find the list of properties and options available for configuring the AG Grid module:
|
|
5
5
|
|
|
6
|
-
**Important Changes in v1.2.5:**
|
|
7
|
-
With the update to AG Grid v31, a built-in page limit dropdown feature has been introduced. Consequently, when utilizing external page limit selectors, it is necessary to configure the page selector settings accordingly. The defaults are 20, 50, and 100. If you wish to use values other than these defaults, kindly utilize the Page Size Selectors settings to define your preferred selections.
|
|
8
|
-
|
|
9
|
-
|
|
10
6
|
## AG Grid Properties
|
|
11
7
|
|
|
12
8
|
1. **ID**: Unique ID for the grid. (Required)
|
|
@@ -43,43 +39,44 @@ To use the "Custom" theme, copy "ag-theme-custom.css" to public/css/ag-theme-cus
|
|
|
43
39
|
10. **Suppress Row Deselection**: Specifies if rows can be deselected. (Default: false)
|
|
44
40
|
11. **Pagination**: Enables pagination. (Default: true)
|
|
45
41
|
12. **Auto Pagination**: Enables automatic pagination. (Default: false)
|
|
46
|
-
13. **Page Limit Selectors**: Allowed selectors for for page size. (Default: [20,50,100] ).
|
|
42
|
+
13. **Page Limit Selectors**: Allowed selectors for for page size. Set to false to hide the page size selector. (Default: [20,50,100] ).
|
|
47
43
|
14. **Page Limit**: Number of rows to show per page. (Default: 20)
|
|
48
44
|
15. **Row Selection**: Row Selection (single or multiple).
|
|
49
45
|
- "Single"
|
|
50
46
|
- "Multiple" (Default)
|
|
51
47
|
16. **Timezone**: Timezone for Date Fields. Select the appropriate timezone from the dropdown list. (Default: Local)
|
|
52
48
|
17. **Date Format**: Date Format for displaying date values. (Default: "dd/MM/yyyy hh:mm A")
|
|
53
|
-
18. **
|
|
54
|
-
19. **Loading Overlay
|
|
55
|
-
20. **
|
|
49
|
+
18. **Filder 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)
|
|
50
|
+
19. **Loading Overlay**: This enables loading overlay. (Default: false)
|
|
51
|
+
20. **Loading Overlay Duration**: This sets loading overlay duration in ms. (Default: 500)
|
|
52
|
+
21. **Sticky Header and Horizontal Scrollbar**: Optionally specify the header offset and topbar class.
|
|
56
53
|
- Fixed Header: Enables sticky header. (Default: false)
|
|
57
54
|
- Header Offset: Specifies offset from the top of the viewport area (Optional). (Default: 100)
|
|
58
55
|
- Topbar Class: Specify class, e.g., "topbar", to measure the offset from (Optional). (Default: "topbar")
|
|
59
56
|
- Topbar Offset: Specify topbar offset (Default: 80)
|
|
60
57
|
- Fixed Horizontal Scroll: Enables Hovering horizontal scrollbar which stays at the bottom all the time. (Default: false)
|
|
61
58
|
- 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
|
-
|
|
59
|
+
22. **Row Height**: Height of each row in pixels. (Default: Auto)
|
|
60
|
+
23. **Header Height**: Height of the header row in pixels. (Default: Auto)
|
|
61
|
+
24. **Wrap Header Text**: This will cause long headers to wrap. (Default: true)
|
|
62
|
+
25. **Auto Header Height**: The header height is automatically set based on the content of the header. (Default: true)
|
|
63
|
+
26. **Auto Height**: The height is automatically set based on the content of the cells. (Default: false)
|
|
64
|
+
27. **Wrap Text**: This will cause long texts to wrap in the cells. (Default: false)
|
|
65
|
+
28. **Suppress Row Click Selection**: Disables row selection on row click. (Default: false)
|
|
66
|
+
29. **Suppress Menu Hide**: Prevents hiding the column menu. (Default: false)
|
|
67
|
+
30. **Suppress Movable Columns**: Disables moving columns. (Default: false)
|
|
68
|
+
31. **Enable Cell Expressions**: Enables expressions in cell values. (Default: false)
|
|
69
|
+
32. **Animate Rows**: Enables row animation on data changes. (Default: false)
|
|
70
|
+
33. **Suppress Aggregation Function in Header**: Hides the aggregation function in column headers. (Default: false)
|
|
71
|
+
34. **Suppress Clipboard Paste**: Disables pasting data from the clipboard. (Default: false)
|
|
72
|
+
35. **Suppress Scroll on New Data**: Prevents scrolling to newly added data. (Default: false)
|
|
73
|
+
36. **Suppress Property Names Check**: Disables checking for duplicate property names. (Default: false)
|
|
74
|
+
37. **Hide ID Field**: Hides the ID Field in the Grid. (Default: false)
|
|
75
|
+
38. **Numeric Column Align**: Align numeric columns to the right. (Default: false)
|
|
76
|
+
39. **Row Click Events**: Enables row click events. This can be used in Dynamic events => Grid Events => Row Clicked. (Default: false)
|
|
77
|
+
40. **Row Double Click Events**: Enables row double click events. This can be used in Dynamic events => Grid Events => Row Double Clicked. (Default: false)
|
|
78
|
+
41. **Enable Row Selection**: Enables row selection. This can be used in Dynamic events => Grid Events => Checkbox Checked || Checkbox Unchecked. (Default: false)
|
|
79
|
+
42. **Enable Row Status Toggle**: Enables row status toggle events. This can be used in Dynamic events => Grid Events => Checkbox Checked || Checkbox Unchecked. (Default: false)
|
|
83
80
|
|
|
84
81
|
# Data Type Overrides
|
|
85
82
|
|
|
@@ -406,6 +403,10 @@ Specify the condition to Show the Button[i] Action button, eg: code==TEST, or st
|
|
|
406
403
|
- The "Get Selected Rows" feature is designed to retrieve selected rows.
|
|
407
404
|
- This variable named "selectedRows", holds the selected data for access from other modules.
|
|
408
405
|
|
|
406
|
+
**Quick Filter**
|
|
407
|
+
- The "Quick Filter" feature is designed to filter the results based on the value in the Filter Field defined in above settings.
|
|
408
|
+
- Quick Filter is used to filter rows by comparing against the data in all columns. This can be used in addition to column-specific filtering.
|
|
409
|
+
|
|
409
410
|
## License
|
|
410
411
|
|
|
411
412
|
The AG Grid module is licensed under the MIT License. Please refer to the license file for more details.
|
package/dmx-ag-grid.js
CHANGED
|
@@ -619,12 +619,12 @@ dmx.Component('ag-grid', {
|
|
|
619
619
|
let finalResult = results[0];
|
|
620
620
|
|
|
621
621
|
for (let i = 0; i < operators.length; i++) {
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
622
|
+
if (operators[i] === '||') {
|
|
623
|
+
finalResult = finalResult || results[i];
|
|
624
|
+
} else if (operators[i] === '&&') {
|
|
625
|
+
finalResult = finalResult && results[i];
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
628
|
return finalResult;
|
|
629
629
|
}
|
|
630
630
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdmx/wappler_ag_grid",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "App Connect module for AG Grid Table Generation.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"ag-grid"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"ag-grid-community": "31.0.
|
|
17
|
+
"ag-grid-community": "~31.0.3",
|
|
18
18
|
"exceljs": "4.4.x",
|
|
19
19
|
"papaparse": "5.4.x"
|
|
20
20
|
},
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
"build": "rollup --config",
|
|
23
23
|
"publish-dry-run": "npm publish ./dist --access public --dry-run"
|
|
24
24
|
}
|
|
25
|
-
}
|
|
25
|
+
}
|