@mintplayer/ng-spark 22.28.0 → 22.29.0
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/fesm2022/mintplayer-ng-spark-client-operations.mjs +6 -2
- package/fesm2022/mintplayer-ng-spark-client-operations.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-spark-grid.mjs +37 -9
- package/fesm2022/mintplayer-ng-spark-grid.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-spark-po-detail.mjs +1 -1
- package/fesm2022/mintplayer-ng-spark-po-detail.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-spark-query-list.mjs +28 -9
- package/fesm2022/mintplayer-ng-spark-query-list.mjs.map +1 -1
- package/package.json +1 -1
- package/types/mintplayer-ng-spark-client-operations.d.ts +11 -4
- package/types/mintplayer-ng-spark-grid.d.ts +17 -3
|
@@ -430,6 +430,11 @@ export declare class SparkQueryGridComponent {
|
|
|
430
430
|
offersCreate: import("@angular/core").Signal<boolean>;
|
|
431
431
|
visibleCustomActions: import("@angular/core").Signal<CustomActionDefinition[]>;
|
|
432
432
|
fetchFn: import("@angular/core").WritableSignal<BsDatatableFetch<QueryResultItem> | null>;
|
|
433
|
+
/**
|
|
434
|
+
* The grid's own datatable, for {@link reload}. A `viewChild` is safe here: the `@if` concern above
|
|
435
|
+
* is about hosts holding this grid, while this is the grid's own template, read only on demand.
|
|
436
|
+
*/
|
|
437
|
+
private readonly datatable;
|
|
433
438
|
/**
|
|
434
439
|
* Why the component renders its own failure instead of only reporting one.
|
|
435
440
|
*
|
|
@@ -563,8 +568,15 @@ export declare class SparkQueryGridComponent {
|
|
|
563
568
|
* Data-level on purpose: it re-seeds the fetch closure and nothing else. For a definition
|
|
564
569
|
* change — new columns, a renamed query — the inputs themselves must change; that is the
|
|
565
570
|
* expensive path. Inert when rows come from the host: there is nothing here to re-run.
|
|
571
|
+
*
|
|
572
|
+
* Through the datatable's own `reload()` (mintplayer-ng-bootstrap#407), which re-queries the
|
|
573
|
+
* current page and coalesces calls within a microtask. Swapping the `[fetch]` identity, the only
|
|
574
|
+
* way before it existed, also disarmed the datatable's reload dedupe. The swap stays as the
|
|
575
|
+
* fallback while the datatable is not rendered (loading), where a fresh closure is what counts.
|
|
566
576
|
*/
|
|
567
|
-
reload(
|
|
577
|
+
reload(options?: {
|
|
578
|
+
resetPage?: boolean;
|
|
579
|
+
}): void;
|
|
568
580
|
private onSearchChanged;
|
|
569
581
|
/**
|
|
570
582
|
* Replaces the fetched columns only when they actually differ.
|
|
@@ -627,11 +639,13 @@ export declare class SparkQueryGridComponent {
|
|
|
627
639
|
*/
|
|
628
640
|
protected onFilterChange(detail: FilterChangeDetail): void;
|
|
629
641
|
/**
|
|
630
|
-
* Back to page 1 and a
|
|
642
|
+
* Back to page 1 and a forced re-fetch.
|
|
631
643
|
*
|
|
632
644
|
* Both halves matter: the old page number means nothing against a different result set, and the
|
|
633
645
|
* datatable dedupes reloads by `(page, perPage, sort)` — none of which a filter changes — so
|
|
634
|
-
* without
|
|
646
|
+
* without forcing it the request is silently never made. `resetPage` makes the datatable fetch
|
|
647
|
+
* page 1 itself: the settings binding reaches it only on the next change detection, after the
|
|
648
|
+
* reload already fetched.
|
|
635
649
|
*/
|
|
636
650
|
private onFilterChanged;
|
|
637
651
|
/**
|