@rivet-health/design-system 40.35.0 → 40.35.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.
- package/esm2020/lib/table/table/state-helpers/search-helpers.mjs +45 -1
- package/esm2020/lib/table/table/state.mjs +9 -66
- package/esm2020/lib/table/table/table/table.component.mjs +3 -3
- package/fesm2015/rivet-health-design-system.mjs +58 -61
- package/fesm2015/rivet-health-design-system.mjs.map +1 -1
- package/fesm2020/rivet-health-design-system.mjs +54 -67
- package/fesm2020/rivet-health-design-system.mjs.map +1 -1
- package/lib/table/table/state-helpers/search-helpers.d.ts +12 -0
- package/package.json +1 -1
|
@@ -1,5 +1,17 @@
|
|
|
1
|
+
import { IFuseOptions } from 'fuse.js';
|
|
1
2
|
import { RivTable } from '../state';
|
|
2
3
|
export declare namespace TableSearchHelpers {
|
|
4
|
+
/**
|
|
5
|
+
* The configured fuse options, without the keys for columns search does not
|
|
6
|
+
* cover: the ones marked `searchable: false` and the ones turned off in
|
|
7
|
+
* "Search in". Keys that don't belong to a column are left alone.
|
|
8
|
+
*/
|
|
9
|
+
function fuseOptionsForSearchColumns<R extends RivTable.Row, C extends RivTable.Column, F extends RivTable.Filters>(fuseOptions: IFuseOptions<R> | undefined, columns: Map<C, RivTable.InMemoryColumnMetadata<R>>, query: RivTable.Query<C, F>): IFuseOptions<R> | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Marks the columns with no key in `fuseOptions.keys` as `searchable: false`,
|
|
12
|
+
* so "Search in" only offers columns that search can cover.
|
|
13
|
+
*/
|
|
14
|
+
function markColumnsOutsideFuseKeysUnsearchable<R extends RivTable.Row, C extends RivTable.Column>(columns: Map<C, RivTable.InMemoryColumnMetadata<R>>, fuseOptions: IFuseOptions<R> | undefined): Map<C, RivTable.InMemoryColumnMetadata<R>>;
|
|
3
15
|
function getSearchColumnsSelectedState<R extends RivTable.Row, C extends RivTable.Column, F extends RivTable.Filters, G extends RivTable.Group>(state: RivTable.CoreState<R, C, F, G>, expectedValue: 'all' | 'none'): boolean;
|
|
4
16
|
function toggleAllSearchColumns<R extends RivTable.Row, C extends RivTable.Column, F extends RivTable.Filters, G extends RivTable.Group>(state: RivTable.CoreState<R, C, F, G>): RivTable.CoreState<R, C, F, G>;
|
|
5
17
|
}
|