@dolusoft/vue3-datatable 1.8.52 → 1.8.53

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.
@@ -5542,10 +5542,20 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
5542
5542
  debounceTimers.set(col.field, null);
5543
5543
  }
5544
5544
  if (!isEmpty && (column.type === "string" || column.type === "String") && typeof newValue === "string") {
5545
- const parsed = parseFilterInput(newValue);
5546
- if (parsed.isOperatorDetected && parsed.rules.length > 0) {
5547
- column.condition = parsed.rules[0].condition;
5548
- columnConditions.value[col.field] = parsed.rules[0].condition;
5545
+ const v2 = newValue.trim();
5546
+ if (v2 === "*" || v2 === "!*") {
5547
+ const hint = v2.startsWith("!") ? "NotContains" : "Contains";
5548
+ column.condition = hint;
5549
+ columnConditions.value[col.field] = hint;
5550
+ } else if (v2 === "!") {
5551
+ column.condition = "NotEqual";
5552
+ columnConditions.value[col.field] = "NotEqual";
5553
+ } else {
5554
+ const parsed = parseFilterInput(v2);
5555
+ if (parsed.isOperatorDetected && parsed.rules.length > 0) {
5556
+ column.condition = parsed.rules[0].condition;
5557
+ columnConditions.value[col.field] = parsed.rules[0].condition;
5558
+ }
5549
5559
  }
5550
5560
  }
5551
5561
  const processChange = () => {
@@ -5541,10 +5541,20 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
5541
5541
  debounceTimers.set(col.field, null);
5542
5542
  }
5543
5543
  if (!isEmpty && (column.type === "string" || column.type === "String") && typeof newValue === "string") {
5544
- const parsed = parseFilterInput(newValue);
5545
- if (parsed.isOperatorDetected && parsed.rules.length > 0) {
5546
- column.condition = parsed.rules[0].condition;
5547
- columnConditions.value[col.field] = parsed.rules[0].condition;
5544
+ const v2 = newValue.trim();
5545
+ if (v2 === "*" || v2 === "!*") {
5546
+ const hint = v2.startsWith("!") ? "NotContains" : "Contains";
5547
+ column.condition = hint;
5548
+ columnConditions.value[col.field] = hint;
5549
+ } else if (v2 === "!") {
5550
+ column.condition = "NotEqual";
5551
+ columnConditions.value[col.field] = "NotEqual";
5552
+ } else {
5553
+ const parsed = parseFilterInput(v2);
5554
+ if (parsed.isOperatorDetected && parsed.rules.length > 0) {
5555
+ column.condition = parsed.rules[0].condition;
5556
+ columnConditions.value[col.field] = parsed.rules[0].condition;
5557
+ }
5548
5558
  }
5549
5559
  }
5550
5560
  const processChange = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolusoft/vue3-datatable",
3
- "version": "1.8.52",
3
+ "version": "1.8.53",
4
4
  "description": "Vue3 Datatable - fully customizable & easy to use datatable library",
5
5
  "private": false,
6
6
  "type": "module",