@acvl/frontend-components 0.0.114 → 0.0.115
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/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +8 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2561,6 +2561,12 @@ interface SharedFiltersConfig {
|
|
|
2561
2561
|
key: string;
|
|
2562
2562
|
/** Filter keys that stay with each grid — the tab's own `estado`, in an estado list. */
|
|
2563
2563
|
exclude?: string[];
|
|
2564
|
+
/**
|
|
2565
|
+
* Where the group starts when the session has none yet — "my own records" for a CSR. Unlike
|
|
2566
|
+
* `initialState.filters`, which every grid re-applies on mount, these apply **once**: clear
|
|
2567
|
+
* them on one tab and the next tab doesn't put them back.
|
|
2568
|
+
*/
|
|
2569
|
+
defaults?: MyGridFilterModel["items"];
|
|
2564
2570
|
}
|
|
2565
2571
|
interface ResolveInitialStateInput {
|
|
2566
2572
|
storageKey: string;
|
|
@@ -2587,7 +2593,8 @@ interface ResolveInitialStateInput {
|
|
|
2587
2593
|
* A grid in a shared-filters group takes its filters and search from the **group** instead of
|
|
2588
2594
|
* its own saved state — that is what carries a filter picked on one tab over to the next. Only
|
|
2589
2595
|
* the excluded keys still come from its own state, and the declared filters still win. Until
|
|
2590
|
-
* the group has written anything (the first grid of the session),
|
|
2596
|
+
* the group has written anything (the first grid of the session), it starts from its
|
|
2597
|
+
* `defaults` — or, without them, the grid's own state stands.
|
|
2591
2598
|
*/
|
|
2592
2599
|
declare function resolveInitialState({ storageKey, disabled, initialState, columns, sharedFilters, }: ResolveInitialStateInput): ResolvedGridState;
|
|
2593
2600
|
|
package/package.json
CHANGED