@dolusoft/vue3-datatable 1.8.3 → 1.8.4

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.
@@ -3017,11 +3017,13 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
3017
3017
  (newValue) => {
3018
3018
  var _a2;
3019
3019
  const column = columnsMap.value.get(col.field);
3020
+ const currentCondition = columnConditions.value[col.field] || (column == null ? void 0 : column.condition);
3020
3021
  console.log("🔴 [DEBOUNCE-FIRED]", {
3021
3022
  field: col.field,
3022
3023
  newValue,
3023
- columnConditionBefore: column == null ? void 0 : column.condition,
3024
- columnValueBefore: column == null ? void 0 : column.value
3024
+ columnConditionFromState: columnConditions.value[col.field],
3025
+ columnConditionFromMap: column == null ? void 0 : column.condition,
3026
+ resolvedCondition: currentCondition
3025
3027
  });
3026
3028
  if (column) {
3027
3029
  if (column.type === "string" || column.type === "String") {
@@ -3029,9 +3031,12 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
3029
3031
  } else {
3030
3032
  column.value = newValue;
3031
3033
  }
3032
- if (!column.condition && column.value) {
3034
+ if (currentCondition) {
3035
+ column.condition = currentCondition;
3036
+ } else if (column.value) {
3033
3037
  const type = ((_a2 = column.type) == null ? void 0 : _a2.toLowerCase()) || "string";
3034
3038
  column.condition = type === "string" ? "Contains" : "Equal";
3039
+ columnConditions.value[col.field] = column.condition;
3035
3040
  console.log("🟡 [DEFAULT-CONDITION-SET]", col.field, column.condition);
3036
3041
  }
3037
3042
  console.log("🟢 [AFTER-MUTATION]", {
@@ -3016,11 +3016,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3016
3016
  (newValue) => {
3017
3017
  var _a2;
3018
3018
  const column = columnsMap.value.get(col.field);
3019
+ const currentCondition = columnConditions.value[col.field] || (column == null ? void 0 : column.condition);
3019
3020
  console.log("🔴 [DEBOUNCE-FIRED]", {
3020
3021
  field: col.field,
3021
3022
  newValue,
3022
- columnConditionBefore: column == null ? void 0 : column.condition,
3023
- columnValueBefore: column == null ? void 0 : column.value
3023
+ columnConditionFromState: columnConditions.value[col.field],
3024
+ columnConditionFromMap: column == null ? void 0 : column.condition,
3025
+ resolvedCondition: currentCondition
3024
3026
  });
3025
3027
  if (column) {
3026
3028
  if (column.type === "string" || column.type === "String") {
@@ -3028,9 +3030,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3028
3030
  } else {
3029
3031
  column.value = newValue;
3030
3032
  }
3031
- if (!column.condition && column.value) {
3033
+ if (currentCondition) {
3034
+ column.condition = currentCondition;
3035
+ } else if (column.value) {
3032
3036
  const type = ((_a2 = column.type) == null ? void 0 : _a2.toLowerCase()) || "string";
3033
3037
  column.condition = type === "string" ? "Contains" : "Equal";
3038
+ columnConditions.value[col.field] = column.condition;
3034
3039
  console.log("🟡 [DEFAULT-CONDITION-SET]", col.field, column.condition);
3035
3040
  }
3036
3041
  console.log("🟢 [AFTER-MUTATION]", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolusoft/vue3-datatable",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
4
4
  "description": "Vue3 Datatable - fully customizable & easy to use datatable library",
5
5
  "private": false,
6
6
  "type": "module",