@dolusoft/vue3-datatable 1.8.3 → 1.8.5
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
|
@@ -3015,13 +3015,14 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3015
3015
|
watchDebounced(
|
|
3016
3016
|
() => filterInputs.value[col.field],
|
|
3017
3017
|
(newValue) => {
|
|
3018
|
-
var _a2;
|
|
3019
3018
|
const column = columnsMap.value.get(col.field);
|
|
3019
|
+
const currentCondition = columnConditions.value[col.field] || (column == null ? void 0 : column.condition);
|
|
3020
3020
|
console.log("🔴 [DEBOUNCE-FIRED]", {
|
|
3021
3021
|
field: col.field,
|
|
3022
3022
|
newValue,
|
|
3023
|
-
|
|
3024
|
-
|
|
3023
|
+
columnConditionFromState: columnConditions.value[col.field],
|
|
3024
|
+
columnConditionFromMap: column == null ? void 0 : column.condition,
|
|
3025
|
+
resolvedCondition: currentCondition
|
|
3025
3026
|
});
|
|
3026
3027
|
if (column) {
|
|
3027
3028
|
if (column.type === "string" || column.type === "String") {
|
|
@@ -3029,9 +3030,11 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3029
3030
|
} else {
|
|
3030
3031
|
column.value = newValue;
|
|
3031
3032
|
}
|
|
3032
|
-
if (
|
|
3033
|
-
|
|
3034
|
-
|
|
3033
|
+
if (currentCondition) {
|
|
3034
|
+
column.condition = currentCondition;
|
|
3035
|
+
} else if (column.value) {
|
|
3036
|
+
column.condition = "Equal";
|
|
3037
|
+
columnConditions.value[col.field] = column.condition;
|
|
3035
3038
|
console.log("🟡 [DEFAULT-CONDITION-SET]", col.field, column.condition);
|
|
3036
3039
|
}
|
|
3037
3040
|
console.log("🟢 [AFTER-MUTATION]", {
|
package/dist/vue3-datatable.js
CHANGED
|
@@ -3014,13 +3014,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3014
3014
|
watchDebounced(
|
|
3015
3015
|
() => filterInputs.value[col.field],
|
|
3016
3016
|
(newValue) => {
|
|
3017
|
-
var _a2;
|
|
3018
3017
|
const column = columnsMap.value.get(col.field);
|
|
3018
|
+
const currentCondition = columnConditions.value[col.field] || (column == null ? void 0 : column.condition);
|
|
3019
3019
|
console.log("🔴 [DEBOUNCE-FIRED]", {
|
|
3020
3020
|
field: col.field,
|
|
3021
3021
|
newValue,
|
|
3022
|
-
|
|
3023
|
-
|
|
3022
|
+
columnConditionFromState: columnConditions.value[col.field],
|
|
3023
|
+
columnConditionFromMap: column == null ? void 0 : column.condition,
|
|
3024
|
+
resolvedCondition: currentCondition
|
|
3024
3025
|
});
|
|
3025
3026
|
if (column) {
|
|
3026
3027
|
if (column.type === "string" || column.type === "String") {
|
|
@@ -3028,9 +3029,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3028
3029
|
} else {
|
|
3029
3030
|
column.value = newValue;
|
|
3030
3031
|
}
|
|
3031
|
-
if (
|
|
3032
|
-
|
|
3033
|
-
|
|
3032
|
+
if (currentCondition) {
|
|
3033
|
+
column.condition = currentCondition;
|
|
3034
|
+
} else if (column.value) {
|
|
3035
|
+
column.condition = "Equal";
|
|
3036
|
+
columnConditions.value[col.field] = column.condition;
|
|
3034
3037
|
console.log("🟡 [DEFAULT-CONDITION-SET]", col.field, column.condition);
|
|
3035
3038
|
}
|
|
3036
3039
|
console.log("🟢 [AFTER-MUTATION]", {
|