@dolusoft/query-table 3.14.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.
@@ -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
  }
@@ -7,7 +7,9 @@ import type { Column, FilterCondition, FilterRule } from '../contract.js';
7
7
  * a segment without an operator uses `condition`.
8
8
  * - `number`: one rule per comma-separated number value; a value after `!`
9
9
  * is `NotEqual` (`80,443`, `!80,!443`). A value that is not a finite
10
- * number, or a list that mixes `!` and plain values, gives `[]`.
10
+ * number, a list that mixes `!` and plain values, or a list without `!`
11
+ * whose `condition` is a comparison (`0,5` with `GreaterThan`), gives
12
+ * `[]`. The comma always separates; a decimal is written with a dot.
11
13
  * - `integer`: the same, but only whole numbers in the safe range; `2.5`
12
14
  * and `9007199254740993` give `[]`.
13
15
  * - `bool`: `'true'` or `'false'` gives one rule with a boolean value;
@@ -15,8 +17,9 @@ import type { Column, FilterCondition, FilterRule } from '../contract.js';
15
17
  * - `date` and `datetime`: one rule with the trimmed text as its value; the
16
18
  * text is not validated, as the input already gives an ISO date.
17
19
  *
18
- * `condition` is the one picked in the filter menu; without it the column
19
- * type's default applies (`Contains` for text, `Equal` otherwise). Empty or
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
20
23
  * blank text, and text that is only operators (`*`, `!`, `!*`), gives `[]`.
21
24
  * Invalid input never throws. Pure: no Vue, no DOM; the column is not written.
22
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.14.0",
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.14.0",
49
- "@dolusoft/query-table-core": "3.14.0",
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": {