@masterteam/components 0.0.275 → 0.0.276
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/package.json
CHANGED
|
@@ -163,6 +163,14 @@ interface ColumnDef {
|
|
|
163
163
|
*/
|
|
164
164
|
shrink?: boolean;
|
|
165
165
|
filterOnly?: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* Opts the column out of the filter UI entirely, whatever its type would
|
|
168
|
+
* otherwise allow. Use it on lazy tables whose backend has no query
|
|
169
|
+
* parameter for the column: lazy mode never filters locally, so a filter the
|
|
170
|
+
* host cannot translate into a backend parameter renders a control that
|
|
171
|
+
* silently does nothing. Defaults to filterable.
|
|
172
|
+
*/
|
|
173
|
+
filterable?: boolean;
|
|
166
174
|
/**
|
|
167
175
|
* Opts a `custom` column into export/print. Custom columns are excluded by
|
|
168
176
|
* default because their template may render purely visual content with no
|
|
@@ -621,6 +629,17 @@ declare class TableValueResolver {
|
|
|
621
629
|
*/
|
|
622
630
|
static matchesSearchTerm(value: unknown, searchTerm: string, depth?: number): boolean;
|
|
623
631
|
static getColumnFilterType(column: ColumnDef, row?: Record<string, unknown>): FilterConfig['type'] | null;
|
|
632
|
+
/**
|
|
633
|
+
* Whether the filter UI should offer a control for this column.
|
|
634
|
+
*
|
|
635
|
+
* Deliberately separate from {@link getColumnFilterType}, which also drives
|
|
636
|
+
* export, sort and grouping resolution — opting a column out of the filter
|
|
637
|
+
* panel must not change how its value is exported. Hosts opt out with
|
|
638
|
+
* `filterable: false`, most usefully on lazy tables: those never filter
|
|
639
|
+
* locally, so a filter the host cannot map onto a backend query parameter
|
|
640
|
+
* would render a control that does nothing at all.
|
|
641
|
+
*/
|
|
642
|
+
static isColumnFilterable(column: ColumnDef, row?: Record<string, unknown>): boolean;
|
|
624
643
|
/**
|
|
625
644
|
* Returns a column with its filterConfig normalized for rendering:
|
|
626
645
|
* - `type` is resolved via `getColumnFilterType`
|