@webitel/ui-sdk 26.8.95 → 26.8.96
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.
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { SortSymbols } from '../../../scripts/sortQueryAdapters';
|
|
2
2
|
/** derived so adding a symbol to `SortSymbols` widens this automatically */
|
|
3
3
|
export type WtTableSortOrder = (typeof SortSymbols)[keyof typeof SortSymbols];
|
|
4
|
+
export type WtTableHeaderFilter = string | {
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
4
7
|
export type WtTableHeader = {
|
|
5
8
|
value: string;
|
|
6
9
|
/**
|
|
@@ -18,12 +21,12 @@ export type WtTableHeader = {
|
|
|
18
21
|
/** `false` excludes the column from drag-to-reorder and pins it to the start */
|
|
19
22
|
reorderable?: boolean;
|
|
20
23
|
/**
|
|
21
|
-
*
|
|
24
|
+
* Filter shown in the column header popover (`column-filter` slot).
|
|
22
25
|
* Set only on columns that have a header filter.
|
|
23
26
|
*
|
|
24
27
|
* [WTEL-7727](https://webitel.atlassian.net/browse/WTEL-7727)
|
|
25
28
|
*/
|
|
26
|
-
filter?:
|
|
29
|
+
filter?: WtTableHeaderFilter;
|
|
27
30
|
/**
|
|
28
31
|
* Shows the badge on the filter icon. Set by whoever owns `headers` (mirrors `sort`: read
|
|
29
32
|
* here, written by the caller), not derived from a separate table-wide prop.
|