@lavalogic/scoria 0.22.0 → 0.22.2
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.
|
@@ -51,7 +51,6 @@ export declare class TableContext<T extends object, RowIdType extends Primitive>
|
|
|
51
51
|
get remoteFilters(): CustomRemoteFilters<unknown> | undefined;
|
|
52
52
|
private set remoteFilters(value);
|
|
53
53
|
private _showSelectedOnly;
|
|
54
|
-
private _pageBeforeSelectedOnly;
|
|
55
54
|
get showSelectedOnly(): boolean;
|
|
56
55
|
set showSelectedOnly(v: boolean);
|
|
57
56
|
readonly dateFilter: FilterFn<T, DateFilterValueType> | undefined;
|
|
@@ -172,7 +172,7 @@ export class TableContext {
|
|
|
172
172
|
}
|
|
173
173
|
const { row: startRowIndexId, column: startColumnIndex } = this.focusStart;
|
|
174
174
|
const { row: endRowIndexId, column: endColumnIndex } = this.focusEnd;
|
|
175
|
-
const model = this.
|
|
175
|
+
const model = this.paginationRowModel;
|
|
176
176
|
if (current === latest_pageColData) {
|
|
177
177
|
const startRowIndex = model.rows.findIndex((row) => row.visibleIndex === startRowIndexId);
|
|
178
178
|
const endRowIndex = model.rows.findIndex((row) => row.visibleIndex === endRowIndexId);
|
|
@@ -423,7 +423,6 @@ export class TableContext {
|
|
|
423
423
|
this._remoteFilters = v;
|
|
424
424
|
}
|
|
425
425
|
_showSelectedOnly = $state(false);
|
|
426
|
-
_pageBeforeSelectedOnly = undefined;
|
|
427
426
|
get showSelectedOnly() {
|
|
428
427
|
return this._showSelectedOnly;
|
|
429
428
|
}
|
|
@@ -432,14 +431,6 @@ export class TableContext {
|
|
|
432
431
|
return;
|
|
433
432
|
}
|
|
434
433
|
this._showSelectedOnly = v;
|
|
435
|
-
if (v) {
|
|
436
|
-
this._pageBeforeSelectedOnly = (this.paginationRepo?.paginationState.pageIndex ?? 0) + 1;
|
|
437
|
-
this.paginationRepo?.setPage(1);
|
|
438
|
-
}
|
|
439
|
-
else if (this._pageBeforeSelectedOnly != null) {
|
|
440
|
-
this.paginationRepo?.setPage(this._pageBeforeSelectedOnly);
|
|
441
|
-
this._pageBeforeSelectedOnly = undefined;
|
|
442
|
-
}
|
|
443
434
|
}
|
|
444
435
|
dateFilter = $derived(this.paginationRepo?.dateFilter);
|
|
445
436
|
numberFilter = $derived(this.paginationRepo?.numberFilter);
|