@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.
@@ -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: this.props.min_width,
1085
- resizable: this.props.resizable,
1086
- filter: this.props.filter,
1087
- sortable: this.props.sortable,
1088
- floatingFilter: this.props.floating_filter
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.pageYOffset > headerPos) {
1264
+ if (window.scrollY > headerPos) {
1265
1265
  header.style.position = 'fixed';
1266
1266
  header.style.top = `${topbarHeight}px`;
1267
1267
  header.style.zIndex = '1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",