@dolusoft/query-table 3.15.0 → 3.16.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/dist/types/contract.d.ts
CHANGED
|
@@ -91,6 +91,14 @@ export interface Column {
|
|
|
91
91
|
* of the type, as in 3.12.
|
|
92
92
|
*/
|
|
93
93
|
filterConditions?: FilterCondition[];
|
|
94
|
+
/**
|
|
95
|
+
* The condition of text typed without an operator, in place of the type's
|
|
96
|
+
* default (C-117): with `'Equal'`, `abc` in a text column emits an `Equal`
|
|
97
|
+
* rule; `*abc*` still emits `Contains`. One the column type does not offer
|
|
98
|
+
* in `conditionOptions` counts as unset. Unset, text matches by `Contains`
|
|
99
|
+
* and every other type by `Equal`, as in 3.15.
|
|
100
|
+
*/
|
|
101
|
+
filterDefaultCondition?: FilterCondition;
|
|
94
102
|
/** Allow sorting by this column (needs table `sortable`). Defaults to `true`. */
|
|
95
103
|
sortable?: boolean;
|
|
96
104
|
}
|
|
@@ -17,8 +17,9 @@ import type { Column, FilterCondition, FilterRule } from '../contract.js';
|
|
|
17
17
|
* - `date` and `datetime`: one rule with the trimmed text as its value; the
|
|
18
18
|
* text is not validated, as the input already gives an ISO date.
|
|
19
19
|
*
|
|
20
|
-
* `condition` is the one picked in the filter menu; without it the column
|
|
21
|
-
*
|
|
20
|
+
* `condition` is the one picked in the filter menu; without it the column's
|
|
21
|
+
* `filterDefaultCondition` applies (C-117), else the type's default
|
|
22
|
+
* (`Contains` for text, `Equal` otherwise). Empty or
|
|
22
23
|
* blank text, and text that is only operators (`*`, `!`, `!*`), gives `[]`.
|
|
23
24
|
* Invalid input never throws. Pure: no Vue, no DOM; the column is not written.
|
|
24
25
|
* The grammar is the protocol's (`@dolusoft/query-protocol`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dolusoft/query-table",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.16.0",
|
|
4
4
|
"description": "A thin Vue 3 table for server-side data: it renders rows and emits sort, filter, search and paging changes. Built on TanStack Table.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
],
|
|
46
46
|
"license": "MIT",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@dolusoft/query-protocol": "3.
|
|
49
|
-
"@dolusoft/query-table-core": "3.
|
|
48
|
+
"@dolusoft/query-protocol": "3.16.0",
|
|
49
|
+
"@dolusoft/query-table-core": "3.16.0",
|
|
50
50
|
"@tanstack/vue-table": "9.2.6"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|