@dolusoft/vue3-datatable 1.8.51 → 1.8.52
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
CHANGED
|
@@ -5541,6 +5541,13 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5541
5541
|
clearTimeout(existingTimer);
|
|
5542
5542
|
debounceTimers.set(col.field, null);
|
|
5543
5543
|
}
|
|
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;
|
|
5549
|
+
}
|
|
5550
|
+
}
|
|
5544
5551
|
const processChange = () => {
|
|
5545
5552
|
debounceTimers.set(col.field, null);
|
|
5546
5553
|
if (isEmpty) {
|
|
@@ -5552,10 +5559,8 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5552
5559
|
if ((column.type === "string" || column.type === "String") && typeof newValue === "string") {
|
|
5553
5560
|
const parsed = parseFilterInput(newValue);
|
|
5554
5561
|
if (parsed.isOperatorDetected && parsed.rules.length > 0) {
|
|
5555
|
-
column.value =
|
|
5556
|
-
column.
|
|
5557
|
-
columnConditions.value[col.field] = parsed.rules[0].condition;
|
|
5558
|
-
column.parsedFilterRules = parsed.rules.length > 1 ? parsed.rules : void 0;
|
|
5562
|
+
column.value = newValue.trim();
|
|
5563
|
+
column.parsedFilterRules = parsed.rules;
|
|
5559
5564
|
emit("filterChange");
|
|
5560
5565
|
return;
|
|
5561
5566
|
}
|
package/dist/vue3-datatable.js
CHANGED
|
@@ -5540,6 +5540,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
5540
5540
|
clearTimeout(existingTimer);
|
|
5541
5541
|
debounceTimers.set(col.field, null);
|
|
5542
5542
|
}
|
|
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;
|
|
5548
|
+
}
|
|
5549
|
+
}
|
|
5543
5550
|
const processChange = () => {
|
|
5544
5551
|
debounceTimers.set(col.field, null);
|
|
5545
5552
|
if (isEmpty) {
|
|
@@ -5551,10 +5558,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
5551
5558
|
if ((column.type === "string" || column.type === "String") && typeof newValue === "string") {
|
|
5552
5559
|
const parsed = parseFilterInput(newValue);
|
|
5553
5560
|
if (parsed.isOperatorDetected && parsed.rules.length > 0) {
|
|
5554
|
-
column.value =
|
|
5555
|
-
column.
|
|
5556
|
-
columnConditions.value[col.field] = parsed.rules[0].condition;
|
|
5557
|
-
column.parsedFilterRules = parsed.rules.length > 1 ? parsed.rules : void 0;
|
|
5561
|
+
column.value = newValue.trim();
|
|
5562
|
+
column.parsedFilterRules = parsed.rules;
|
|
5558
5563
|
emit("filterChange");
|
|
5559
5564
|
return;
|
|
5560
5565
|
}
|