@cdmx/wappler_ag_grid 0.9.4 → 0.9.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/app_connect/components.hjson +35 -1
- package/dmx-ag-grid.js +6 -6
- package/package.json +1 -1
|
@@ -2057,7 +2057,7 @@
|
|
|
2057
2057
|
"attribute": "pagination_page_size",
|
|
2058
2058
|
"isValue": true,
|
|
2059
2059
|
"dataBindings": true,
|
|
2060
|
-
"title": "Pagination Page Size
|
|
2060
|
+
"title": "Pagination Page Size",
|
|
2061
2061
|
"type": "text",
|
|
2062
2062
|
"help": "Pagination Page Size.",
|
|
2063
2063
|
"defaultValue": "",
|
|
@@ -2068,6 +2068,40 @@
|
|
|
2068
2068
|
"dmx-ag-grid": true
|
|
2069
2069
|
}
|
|
2070
2070
|
},
|
|
2071
|
+
{
|
|
2072
|
+
"name": "dmx-ag-grid-floating-filter",
|
|
2073
|
+
"attributeStartsWith": "dmx-bind",
|
|
2074
|
+
"attribute": "floating_filter",
|
|
2075
|
+
"title": "Floating Filter",
|
|
2076
|
+
"type": "boolean",
|
|
2077
|
+
"display": "fieldset",
|
|
2078
|
+
"icon": "fa fa-lg fa-chevron-right",
|
|
2079
|
+
"groupTitle": "Grid Config",
|
|
2080
|
+
"groupIcon": "fa fa-lg fa-cubes",
|
|
2081
|
+
"defaultValue": false,
|
|
2082
|
+
"show": [
|
|
2083
|
+
"floatingFilters"
|
|
2084
|
+
],
|
|
2085
|
+
"noChangeOnHide": true,
|
|
2086
|
+
"groupEnabler": true,
|
|
2087
|
+
"children": [
|
|
2088
|
+
{
|
|
2089
|
+
"name": "floatingFilters",
|
|
2090
|
+
"attributeStartsWith": "dmx-bind",
|
|
2091
|
+
"attribute": "floating_filter",
|
|
2092
|
+
"isValue": true,
|
|
2093
|
+
"dataBindings": true,
|
|
2094
|
+
"title": "Floating Filter",
|
|
2095
|
+
"type": "text",
|
|
2096
|
+
"help": "Show/Hide FLoating Filters",
|
|
2097
|
+
"defaultValue": "",
|
|
2098
|
+
"initDisplay": "none"
|
|
2099
|
+
}
|
|
2100
|
+
],
|
|
2101
|
+
"allowedOn": {
|
|
2102
|
+
"dmx-ag-grid": true
|
|
2103
|
+
}
|
|
2104
|
+
},
|
|
2071
2105
|
{
|
|
2072
2106
|
"name": "dmx-ag-grid-locale",
|
|
2073
2107
|
"attributeStartsWith": "dmx-bind",
|
package/dmx-ag-grid.js
CHANGED
|
@@ -1081,11 +1081,11 @@ dmx.Component('ag-grid', {
|
|
|
1081
1081
|
rowStyle: enableRowClickEvent || enableCellClickEvent ? { cursor: 'pointer' } : undefined,
|
|
1082
1082
|
defaultColDef: {
|
|
1083
1083
|
flex: 1,
|
|
1084
|
-
minWidth:
|
|
1085
|
-
resizable:
|
|
1086
|
-
filter:
|
|
1087
|
-
sortable:
|
|
1088
|
-
floatingFilter:
|
|
1084
|
+
minWidth: options.min_width,
|
|
1085
|
+
resizable: options.resizable,
|
|
1086
|
+
filter: options.filter,
|
|
1087
|
+
sortable: options.sortable,
|
|
1088
|
+
floatingFilter: options.floating_filter
|
|
1089
1089
|
},
|
|
1090
1090
|
domLayout: this.props.dom_layout,
|
|
1091
1091
|
enableCellTextSelection: true,
|
|
@@ -1261,7 +1261,7 @@ dmx.Component('ag-grid', {
|
|
|
1261
1261
|
const topbar = document.querySelector('.' + options.topbar_class);
|
|
1262
1262
|
const topbarHeight = (topbar ? topbar.getBoundingClientRect().height : 0) + options.fixed_top_offset;
|
|
1263
1263
|
const headerPos = (topbar ? topbar.getBoundingClientRect().bottom : 0) + options.fixed_header_offset;
|
|
1264
|
-
if (window.
|
|
1264
|
+
if (window.scrollY > headerPos) {
|
|
1265
1265
|
header.style.position = 'fixed';
|
|
1266
1266
|
header.style.top = `${topbarHeight}px`;
|
|
1267
1267
|
header.style.zIndex = '1';
|