@cdmx/wappler_ag_grid 0.3.6 → 0.3.7
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/app_connect/components.hjson +37 -0
- package/dmx-ag-grid.js +9 -1
- package/package.json +1 -1
|
@@ -812,6 +812,43 @@
|
|
|
812
812
|
}
|
|
813
813
|
]
|
|
814
814
|
},
|
|
815
|
+
{
|
|
816
|
+
"group": "📒 Hide Fields and Filters",
|
|
817
|
+
"variables": [
|
|
818
|
+
{
|
|
819
|
+
"name": "hide_components",
|
|
820
|
+
"title": "Hide Components",
|
|
821
|
+
"attributeStartsWith": "dmx-bind",
|
|
822
|
+
"attribute": "cwidths",
|
|
823
|
+
"type": "boolean",
|
|
824
|
+
"defaultValue": false,
|
|
825
|
+
"display": "fieldset",
|
|
826
|
+
"show": [
|
|
827
|
+
"hideFields",
|
|
828
|
+
"hideFilters",
|
|
829
|
+
],
|
|
830
|
+
"noChangeOnHide": true,
|
|
831
|
+
"groupEnabler": true,
|
|
832
|
+
"help": "hide components such as filters and fields"
|
|
833
|
+
"children": [
|
|
834
|
+
{
|
|
835
|
+
"name": "hideFields",
|
|
836
|
+
"attribute": "hide_fields",
|
|
837
|
+
"title": "Hide Fields",
|
|
838
|
+
"type": "text",
|
|
839
|
+
"initDisplay": "none"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"name": "hideFilters",
|
|
843
|
+
"attribute": "hide_filters",
|
|
844
|
+
"title": "Hide Filters",
|
|
845
|
+
"type": "text",
|
|
846
|
+
"initDisplay": "none"
|
|
847
|
+
}
|
|
848
|
+
]
|
|
849
|
+
}
|
|
850
|
+
]
|
|
851
|
+
},
|
|
815
852
|
{
|
|
816
853
|
"group": "📒 Configure Actions Column",
|
|
817
854
|
"variables": [
|
package/dmx-ag-grid.js
CHANGED
|
@@ -66,7 +66,9 @@ dmx.Component('ag-grid', {
|
|
|
66
66
|
edit_action_btn_class: {type: String, default: 'btn-primary btn-xs' },
|
|
67
67
|
view_action_icon_class: {type: String, default: 'fas fa-eye' },
|
|
68
68
|
view_action_btn_class: {type: String, default: 'btn-info btn-xs' },
|
|
69
|
-
data_binded_changes: {type: Array, default: [] }
|
|
69
|
+
data_binded_changes: {type: Array, default: [] },
|
|
70
|
+
hide_fields: {type: Array, default: [] },
|
|
71
|
+
hide_filters: {type: Array, default: [] }
|
|
70
72
|
},
|
|
71
73
|
|
|
72
74
|
methods: {
|
|
@@ -492,12 +494,18 @@ dmx.Component('ag-grid', {
|
|
|
492
494
|
cellRenderer = 'checkboxCellRenderer';
|
|
493
495
|
filter = null;
|
|
494
496
|
}
|
|
497
|
+
else if (options.hide_filters && options.hide_filters.includes(key)) {
|
|
498
|
+
filter = null;
|
|
499
|
+
}
|
|
495
500
|
else {
|
|
496
501
|
cellRenderer = undefined;
|
|
497
502
|
}
|
|
498
503
|
if (options.hide_id_field && key == 'id') {
|
|
499
504
|
hide = true;
|
|
500
505
|
}
|
|
506
|
+
else if (options.hide_fields && options.hide_fields.includes(key)) {
|
|
507
|
+
hide = true;
|
|
508
|
+
}
|
|
501
509
|
else {
|
|
502
510
|
hide = undefined;
|
|
503
511
|
}
|