@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.
- package/dist/vue3-datatable.cjs +14 -4
- package/dist/vue3-datatable.js +14 -4
- package/package.json +1 -1
package/dist/vue3-datatable.cjs
CHANGED
|
@@ -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
|
|
5546
|
-
if (
|
|
5547
|
-
|
|
5548
|
-
|
|
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 = () => {
|
package/dist/vue3-datatable.js
CHANGED
|
@@ -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
|
|
5545
|
-
if (
|
|
5546
|
-
|
|
5547
|
-
|
|
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 = () => {
|