@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.
@@ -2885,7 +2885,8 @@ function useQueryTable(options) {
2885
2885
  id: column.field,
2886
2886
  accessorFn: (row) => valueAt(row, column.field),
2887
2887
  enableSorting: column.sortable !== false,
2888
- filterType: columnTypeOf(column)
2888
+ filterType: columnTypeOf(column),
2889
+ filterDefaultCondition: column.filterDefaultCondition
2889
2890
  })));
2890
2891
  const columnVisibility = computed(() => Object.fromEntries(columns().map((column) => [column.field, !column.hide])));
2891
2892
  const columnOrder = computed(() => columns().map((column) => column.field));
@@ -4752,7 +4753,9 @@ var query_table_default = /* @__PURE__ */ defineComponent({
4752
4753
  * a segment without an operator uses `condition`.
4753
4754
  * - `number`: one rule per comma-separated number value; a value after `!`
4754
4755
  * is `NotEqual` (`80,443`, `!80,!443`). A value that is not a finite
4755
- * number, or a list that mixes `!` and plain values, gives `[]`.
4756
+ * number, a list that mixes `!` and plain values, or a list without `!`
4757
+ * whose `condition` is a comparison (`0,5` with `GreaterThan`), gives
4758
+ * `[]`. The comma always separates; a decimal is written with a dot.
4756
4759
  * - `integer`: the same, but only whole numbers in the safe range; `2.5`
4757
4760
  * and `9007199254740993` give `[]`.
4758
4761
  * - `bool`: `'true'` or `'false'` gives one rule with a boolean value;
@@ -4760,8 +4763,9 @@ var query_table_default = /* @__PURE__ */ defineComponent({
4760
4763
  * - `date` and `datetime`: one rule with the trimmed text as its value; the
4761
4764
  * text is not validated, as the input already gives an ISO date.
4762
4765
  *
4763
- * `condition` is the one picked in the filter menu; without it the column
4764
- * type's default applies (`Contains` for text, `Equal` otherwise). Empty or
4766
+ * `condition` is the one picked in the filter menu; without it the column's
4767
+ * `filterDefaultCondition` applies (C-117), else the type's default
4768
+ * (`Contains` for text, `Equal` otherwise). Empty or
4765
4769
  * blank text, and text that is only operators (`*`, `!`, `!*`), gives `[]`.
4766
4770
  * Invalid input never throws. Pure: no Vue, no DOM; the column is not written.
4767
4771
  * The grammar is the protocol's (`@dolusoft/query-protocol`).