@cdmx/wappler_ag_grid 0.0.4 → 0.0.6
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 +8 -8
- package/dmx-ag-grid.js +21 -77
- package/package.json +1 -1
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
"name": "resizable",
|
|
69
|
-
"attribute": "resizable",
|
|
69
|
+
"attribute": "dmx-bind:resizable",
|
|
70
70
|
"title": "Resizable",
|
|
71
71
|
"type": "boolean",
|
|
72
72
|
"defaultValue": true,
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"name": "sortable",
|
|
77
|
-
"attribute": "sortable",
|
|
77
|
+
"attribute": "dmx-bind:sortable",
|
|
78
78
|
"title": "Sortable",
|
|
79
79
|
"type": "boolean",
|
|
80
80
|
"defaultValue": true,
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
"name": "filter",
|
|
85
|
-
"attribute": "filter",
|
|
85
|
+
"attribute": "dmx-bind:filter",
|
|
86
86
|
"title": "Filter",
|
|
87
87
|
"type": "boolean",
|
|
88
88
|
"defaultValue": true,
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
"name": "floatingFilter",
|
|
93
|
-
"attribute": "floatingFilter",
|
|
93
|
+
"attribute": "dmx-bind:floatingFilter",
|
|
94
94
|
"title": "Floating Filter",
|
|
95
95
|
"type": "boolean",
|
|
96
96
|
"defaultValue": true,
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"name": "exportToCSV",
|
|
101
|
-
"attribute": "exportToCSV",
|
|
101
|
+
"attribute": "dmx-bind:exportToCSV",
|
|
102
102
|
"title": "CSV Export",
|
|
103
103
|
"type": "boolean",
|
|
104
104
|
"defaultValue": true,
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
"name": "columnHoverHighlight",
|
|
109
|
-
"attribute": "columnHoverHighlight",
|
|
109
|
+
"attribute": "dmx-bind:columnHoverHighlight",
|
|
110
110
|
"title": "Column Hover Highlight",
|
|
111
111
|
"type": "boolean",
|
|
112
112
|
"defaultValue": true,
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
"name": "suppressRowDeselection",
|
|
117
|
-
"attribute": "suppressRowDeselection",
|
|
117
|
+
"attribute": "dmx-bind:suppressRowDeselection",
|
|
118
118
|
"title": "Supress Row Deselection",
|
|
119
119
|
"type": "boolean",
|
|
120
120
|
"defaultValue": true,
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
"name": "pagination",
|
|
125
|
-
"attribute": "pagination",
|
|
125
|
+
"attribute": "dmx-bind:pagination",
|
|
126
126
|
"title": "Pagination",
|
|
127
127
|
"type": "boolean",
|
|
128
128
|
"defaultValue": true,
|
package/dmx-ag-grid.js
CHANGED
|
@@ -62,87 +62,31 @@ dmx.Component('ag-grid', {
|
|
|
62
62
|
suppressRowClickSelection: { type: Boolean, default: false },
|
|
63
63
|
suppressMenuHide: { type: Boolean, default: false },
|
|
64
64
|
suppressMovableColumns: { type: Boolean, default: false },
|
|
65
|
-
enableCellExpressions: {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
},
|
|
85
|
-
suppressScrollOnNewData: {
|
|
86
|
-
type: Boolean,
|
|
87
|
-
default: false
|
|
88
|
-
},
|
|
89
|
-
suppressPropertyNamesCheck: {
|
|
90
|
-
type: Boolean,
|
|
91
|
-
default: false
|
|
92
|
-
},
|
|
93
|
-
localeText: {
|
|
94
|
-
default: null
|
|
95
|
-
},
|
|
96
|
-
minWidth: {
|
|
97
|
-
type: Number,
|
|
98
|
-
default: 150
|
|
99
|
-
},
|
|
100
|
-
sortable: {
|
|
101
|
-
type: Boolean,
|
|
102
|
-
default: true
|
|
103
|
-
},
|
|
104
|
-
resizable: {
|
|
105
|
-
type: Boolean,
|
|
106
|
-
default: true
|
|
107
|
-
},
|
|
108
|
-
filter: {
|
|
109
|
-
type: Boolean,
|
|
110
|
-
default: true
|
|
111
|
-
},
|
|
112
|
-
floatingFilter: {
|
|
113
|
-
type: Boolean,
|
|
114
|
-
default: true
|
|
115
|
-
},
|
|
116
|
-
columnHoverHighlight: {
|
|
117
|
-
type: Boolean,
|
|
118
|
-
default: true
|
|
119
|
-
},
|
|
120
|
-
exportToCSV: {
|
|
121
|
-
type: Boolean,
|
|
122
|
-
default: true
|
|
123
|
-
},
|
|
124
|
-
fixedHeader: {
|
|
125
|
-
type: Boolean,
|
|
126
|
-
default: false
|
|
127
|
-
},
|
|
128
|
-
topbarClass: {
|
|
129
|
-
type: Text,
|
|
130
|
-
default: 'topbar'
|
|
131
|
-
},
|
|
132
|
-
fixedHeaderOffset: {
|
|
133
|
-
type: Number,
|
|
134
|
-
default: 100
|
|
135
|
-
},
|
|
136
|
-
fixedTopOffset: {
|
|
137
|
-
type: Number,
|
|
138
|
-
default: 80
|
|
139
|
-
},
|
|
65
|
+
enableCellExpressions: { type: Boolean, default: false },
|
|
66
|
+
animateRows: { type: Boolean, default: false },
|
|
67
|
+
suppressAggFuncInHeader: { type: Boolean, default: false },
|
|
68
|
+
suppressAggAtRootLevel: { type: Boolean, default: false },
|
|
69
|
+
suppressClipboardPaste: { type: Boolean, default: false },
|
|
70
|
+
suppressScrollOnNewData: { type: Boolean, default: false },
|
|
71
|
+
suppressPropertyNamesCheck: { type: Boolean, default: false },
|
|
72
|
+
localeText: { default: null },
|
|
73
|
+
minWidth: { type: Number, default: 150 },
|
|
74
|
+
sortable: { type: Boolean, default: true },
|
|
75
|
+
resizable: { type: Boolean, default: true },
|
|
76
|
+
filter: { type: Boolean, default: true },
|
|
77
|
+
floatingFilter: { type: Boolean, default: true },
|
|
78
|
+
columnHoverHighlight: { type: Boolean, default: true },
|
|
79
|
+
exportToCSV: { type: Boolean, default: true },
|
|
80
|
+
fixedHeader: { type: Boolean, default: false },
|
|
81
|
+
topbarClass: { type: Text, default: 'topbar' },
|
|
82
|
+
fixedHeaderOffset: { type: Number, default: 100 },
|
|
83
|
+
fixedTopOffset: { type: Number, default: 80 },
|
|
140
84
|
fixedHorizonatalScroll: { type: Boolean, default: false },
|
|
141
85
|
timezone: {type: Text, default: '' }
|
|
142
86
|
},
|
|
143
87
|
|
|
144
88
|
methods: {
|
|
145
|
-
|
|
89
|
+
setValue: function (rowData, columnDefs) {
|
|
146
90
|
this.set('rowData', rowData);
|
|
147
91
|
this.set('columnDefs', columnDefs);
|
|
148
92
|
this.refreshGrid();
|
|
@@ -411,7 +355,7 @@ const cstyles = this.props.cstyles
|
|
|
411
355
|
localeText: this.props.localeText
|
|
412
356
|
};
|
|
413
357
|
|
|
414
|
-
const gridDiv = document.
|
|
358
|
+
const gridDiv = document.getElementById(gridId+'-grid');
|
|
415
359
|
|
|
416
360
|
if (!gridDiv) {
|
|
417
361
|
console.error(`Grid container element with ID '${gridId}' not found.`);
|