@revolist/revogrid 4.8.8 → 4.8.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/dist/cjs/revo-grid.cjs.entry.js +1 -6
- package/dist/cjs/revo-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +8 -1
- package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -1
- package/dist/collection/plugins/filter/filter.plugin.js +1 -6
- package/dist/collection/plugins/filter/filter.plugin.js.map +1 -1
- package/dist/collection/plugins/filter/filter.pop.js +9 -2
- package/dist/collection/plugins/filter/filter.pop.js.map +1 -1
- package/dist/esm/revo-grid.entry.js +1 -6
- package/dist/esm/revo-grid.entry.js.map +1 -1
- package/dist/esm/revogr-filter-panel.entry.js +8 -1
- package/dist/esm/revogr-filter-panel.entry.js.map +1 -1
- package/dist/revo-grid/revo-grid.entry.js +1 -1
- package/dist/revo-grid/revo-grid.entry.js.map +1 -1
- package/dist/revo-grid/revogr-filter-panel.entry.js +1 -1
- package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -1
- package/dist/types/plugins/filter/filter.pop.d.ts +5 -0
- package/hydrate/index.js +9 -7
- package/hydrate/index.mjs +9 -7
- package/package.json +5 -1
- package/standalone/revo-grid.js +1 -6
- package/standalone/revo-grid.js.map +1 -1
- package/standalone/revogr-filter-panel.js +8 -1
- package/standalone/revogr-filter-panel.js.map +1 -1
|
@@ -1163,12 +1163,7 @@ class FilterPlugin extends base_plugin.BasePlugin {
|
|
|
1163
1163
|
const buttonPos = el.getBoundingClientRect();
|
|
1164
1164
|
const prop = e.detail.prop;
|
|
1165
1165
|
this.pop.filterTypes = this.getColumnFilter(e.detail.filter);
|
|
1166
|
-
this.pop.show(Object.assign(Object.assign({}, this.filterCollection[prop]), { x: -
|
|
1167
|
-
// fix filter dialog is out of view
|
|
1168
|
-
setTimeout(async () => {
|
|
1169
|
-
const { width } = this.pop.getBoundingClientRect();
|
|
1170
|
-
this.pop.style.left = Math.min(buttonPos.x - gridPos.x, gridPos.width - width - 20) + 'px';
|
|
1171
|
-
});
|
|
1166
|
+
this.pop.show(Object.assign(Object.assign({}, this.filterCollection[prop]), { x: buttonPos.x - gridPos.x, y: buttonPos.y - gridPos.y + buttonPos.height, autoCorrect: true, prop }));
|
|
1172
1167
|
}
|
|
1173
1168
|
getColumnFilter(type) {
|
|
1174
1169
|
let filterType = 'string';
|