@revolist/revogrid 4.12.5 → 4.12.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/dist/cjs/revogr-attribution_7.cjs.entry.js +23 -8
- package/dist/cjs/revogr-attribution_7.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-data_4.cjs.entry.js +58 -36
- package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/{throttle-08957661.js → throttle-5674040a.js} +4 -1
- package/dist/cjs/throttle-5674040a.js.map +1 -0
- package/dist/collection/components/overlay/revogr-overlay-selection.js +2 -2
- package/dist/collection/components/revoGrid/revo-grid.js +1 -1
- package/dist/collection/components/revoGrid/viewport.resize.service.js +19 -4
- package/dist/collection/components/revoGrid/viewport.resize.service.js.map +1 -1
- package/dist/collection/components/scroll/revogr-viewport-scroll.js +38 -31
- package/dist/collection/components/scroll/revogr-viewport-scroll.js.map +1 -1
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js +23 -8
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js.map +1 -1
- package/dist/collection/plugins/filter/filter.panel.js +8 -4
- package/dist/collection/plugins/filter/filter.panel.js.map +1 -1
- package/dist/collection/plugins/filter/filter.types.js +7 -0
- package/dist/collection/plugins/filter/filter.types.js.map +1 -1
- package/dist/collection/services/local.scroll.service.js +3 -0
- package/dist/collection/services/local.scroll.service.js.map +1 -1
- package/dist/collection/types/interfaces.js.map +1 -1
- package/dist/esm/revogr-attribution_7.entry.js +23 -8
- package/dist/esm/revogr-attribution_7.entry.js.map +1 -1
- package/dist/esm/revogr-data_4.entry.js +58 -36
- package/dist/esm/revogr-data_4.entry.js.map +1 -1
- package/dist/esm/revogr-filter-panel.entry.js.map +1 -1
- package/dist/esm/{throttle-05489451.js → throttle-dec28f5b.js} +4 -1
- package/dist/esm/throttle-dec28f5b.js.map +1 -0
- package/dist/revo-grid/revogr-attribution_7.entry.js +1 -1
- package/dist/revo-grid/revogr-attribution_7.entry.js.map +1 -1
- package/dist/revo-grid/revogr-data_4.entry.js +1 -1
- package/dist/revo-grid/revogr-data_4.entry.js.map +1 -1
- package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -1
- package/dist/revo-grid/throttle-dec28f5b.js +5 -0
- package/dist/revo-grid/throttle-dec28f5b.js.map +1 -0
- package/dist/types/components/revoGrid/viewport.resize.service.d.ts +8 -6
- package/dist/types/components/scroll/revogr-viewport-scroll.d.ts +2 -2
- package/dist/types/components.d.ts +2 -2
- package/dist/types/plugins/filter/filter.panel.d.ts +1 -1
- package/dist/types/plugins/filter/filter.types.d.ts +15 -15
- package/dist/types/types/interfaces.d.ts +6 -6
- package/hydrate/index.js +82 -42
- package/hydrate/index.mjs +82 -42
- package/package.json +1 -1
- package/standalone/local.scroll.timer.js +3 -0
- package/standalone/local.scroll.timer.js.map +1 -1
- package/standalone/revogr-filter-panel.js.map +1 -1
- package/standalone/revogr-scroll-virtual2.js +22 -7
- package/standalone/revogr-scroll-virtual2.js.map +1 -1
- package/standalone/revogr-viewport-scroll2.js +57 -35
- package/standalone/revogr-viewport-scroll2.js.map +1 -1
- package/dist/cjs/throttle-08957661.js.map +0 -1
- package/dist/esm/throttle-05489451.js.map +0 -1
- package/dist/revo-grid/throttle-05489451.js +0 -5
- package/dist/revo-grid/throttle-05489451.js.map +0 -1
|
@@ -14,7 +14,7 @@ const key_utils = require('./key.utils-05f14738.js');
|
|
|
14
14
|
const debounce = require('./debounce-ec7a04b4.js');
|
|
15
15
|
const viewport_store = require('./viewport.store-4dbfeaa3.js');
|
|
16
16
|
const viewport_helpers = require('./viewport.helpers-e59a544e.js');
|
|
17
|
-
const throttle = require('./throttle-
|
|
17
|
+
const throttle = require('./throttle-5674040a.js');
|
|
18
18
|
|
|
19
19
|
const Attribution = class {
|
|
20
20
|
constructor(hostRef) {
|
|
@@ -1328,15 +1328,31 @@ const RevogrScrollVirtual = class {
|
|
|
1328
1328
|
}
|
|
1329
1329
|
componentDidRender() {
|
|
1330
1330
|
const type = this.dimension === 'rgRow' ? 'scrollHeight' : 'scrollWidth';
|
|
1331
|
-
|
|
1332
|
-
|
|
1331
|
+
// Get scrollbar size once during component initialization
|
|
1332
|
+
const scrollbarSize = this.scrollSize;
|
|
1333
|
+
// Calculate if content exceeds viewport size
|
|
1334
|
+
// Add scrollbar size to the comparison to account for other dimension's scrollbar
|
|
1335
|
+
const hasScroll = this.element[type] > this.size + scrollbarSize;
|
|
1336
|
+
// Set scroll size based on whether scroll is needed
|
|
1337
|
+
this.size = hasScroll ? this.scrollSize : 0;
|
|
1338
|
+
let additionalScrollbarSize = 0;
|
|
1339
|
+
if (this.dimension === 'rgRow') {
|
|
1340
|
+
additionalScrollbarSize =
|
|
1341
|
+
this.element.scrollWidth > this.element.clientWidth
|
|
1342
|
+
? scrollbarSize
|
|
1343
|
+
: 0;
|
|
1333
1344
|
}
|
|
1334
1345
|
else {
|
|
1335
|
-
|
|
1346
|
+
additionalScrollbarSize =
|
|
1347
|
+
this.element.scrollHeight > this.element.clientHeight
|
|
1348
|
+
? scrollbarSize
|
|
1349
|
+
: 0;
|
|
1336
1350
|
}
|
|
1351
|
+
const clientSize = this.size + additionalScrollbarSize;
|
|
1337
1352
|
this.localScrollService.setParams({
|
|
1338
1353
|
contentSize: this.dimensionStore.get('realSize'),
|
|
1339
|
-
clientSize
|
|
1354
|
+
// Add scrollbar size to clientSize if other dimension has scroll
|
|
1355
|
+
clientSize,
|
|
1340
1356
|
virtualSize: this.viewportStore.get('clientSize'),
|
|
1341
1357
|
}, this.dimension);
|
|
1342
1358
|
}
|
|
@@ -1357,9 +1373,8 @@ const RevogrScrollVirtual = class {
|
|
|
1357
1373
|
}
|
|
1358
1374
|
render() {
|
|
1359
1375
|
const sizeType = this.dimension === 'rgRow' ? 'height' : 'width';
|
|
1360
|
-
const size = throttle.getContentSize(this.dimensionStore.get('realSize'), this.size, this.viewportStore.get('clientSize')
|
|
1361
|
-
)
|
|
1362
|
-
return (index.h(index.Host, { key: '2d11902403db45b805bde88b6fc40acff4b6b910', onScroll: (e) => this.onScroll(e) }, index.h("div", { key: '74978e90cbf66e3fb6dcc25bd5882346f1515c39', style: {
|
|
1376
|
+
const size = throttle.getContentSize(this.dimensionStore.get('realSize'), this.size, this.viewportStore.get('clientSize'));
|
|
1377
|
+
return (index.h(index.Host, { key: '7789bd408d3e154836bcd2aed4ebaa1663e7f968', onScroll: (e) => this.onScroll(e) }, index.h("div", { key: '40549da97df3a580ad2ddef13fe7b4dbe6df54bc', style: {
|
|
1363
1378
|
[sizeType]: `${size}px`,
|
|
1364
1379
|
} })));
|
|
1365
1380
|
}
|