@dolusoft/vue3-datatable 1.8.5 → 1.8.6

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.
@@ -3001,13 +3001,8 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
3001
3001
  const setupColumnWatches = () => {
3002
3002
  var _a;
3003
3003
  if (!((_a = props.all) == null ? void 0 : _a.columns)) return;
3004
- console.log("🔵 [SETUP-WATCHES] Starting setup for", props.all.columns.length, "columns");
3005
3004
  props.all.columns.forEach((col) => {
3006
3005
  if (col.filter && col.field && !watchedFields.value.has(col.field)) {
3007
- console.log("🔵 [WATCH-INIT]", col.field, {
3008
- initialValue: col.value,
3009
- initialCondition: col.condition
3010
- });
3011
3006
  if (filterInputs.value[col.field] === void 0) {
3012
3007
  filterInputs.value[col.field] = col.value || "";
3013
3008
  }
@@ -3017,13 +3012,6 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
3017
3012
  (newValue) => {
3018
3013
  const column = columnsMap.value.get(col.field);
3019
3014
  const currentCondition = columnConditions.value[col.field] || (column == null ? void 0 : column.condition);
3020
- console.log("🔴 [DEBOUNCE-FIRED]", {
3021
- field: col.field,
3022
- newValue,
3023
- columnConditionFromState: columnConditions.value[col.field],
3024
- columnConditionFromMap: column == null ? void 0 : column.condition,
3025
- resolvedCondition: currentCondition
3026
- });
3027
3015
  if (column) {
3028
3016
  if (column.type === "string" || column.type === "String") {
3029
3017
  column.value = typeof newValue === "string" ? newValue.trim() : newValue;
@@ -3035,13 +3023,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
3035
3023
  } else if (column.value) {
3036
3024
  column.condition = "Equal";
3037
3025
  columnConditions.value[col.field] = column.condition;
3038
- console.log("🟡 [DEFAULT-CONDITION-SET]", col.field, column.condition);
3039
3026
  }
3040
- console.log("🟢 [AFTER-MUTATION]", {
3041
- field: col.field,
3042
- valueAfter: column.value,
3043
- conditionAfter: column.condition
3044
- });
3045
3027
  emit("filterChange");
3046
3028
  }
3047
3029
  },
@@ -3100,16 +3082,10 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
3100
3082
  return condition;
3101
3083
  };
3102
3084
  const handleConditionChange = (field, condition) => {
3103
- console.log("🟠 [CONDITION-CHANGE]", { field, condition });
3104
3085
  const column = columnsMap.value.get(field);
3105
3086
  if (column) {
3106
3087
  column.condition = condition;
3107
3088
  columnConditions.value[field] = condition;
3108
- console.log("🟠 [CONDITION-UPDATED]", {
3109
- field,
3110
- newCondition: column.condition,
3111
- columnValue: column.value
3112
- });
3113
3089
  emit("filterChange");
3114
3090
  }
3115
3091
  };
@@ -4161,10 +4137,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4161
4137
  }
4162
4138
  };
4163
4139
  const changeForServer = (changeType, isResetPage = false) => {
4164
- console.log(
4165
- "🔵 [CHANGE-FOR-SERVER] Props columns detail:",
4166
- props.columns.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
4167
- );
4168
4140
  if (props.isServerMode) {
4169
4141
  setDefaultCondition();
4170
4142
  const res = {
@@ -4177,10 +4149,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4177
4149
  column_filters: props.columns,
4178
4150
  change_type: changeType
4179
4151
  };
4180
- console.log(
4181
- "🔵 [EMITTING-CHANGE] Final column_filters:",
4182
- res.column_filters.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
4183
- );
4184
4152
  emit("change", res);
4185
4153
  }
4186
4154
  };
@@ -3000,13 +3000,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3000
3000
  const setupColumnWatches = () => {
3001
3001
  var _a;
3002
3002
  if (!((_a = props.all) == null ? void 0 : _a.columns)) return;
3003
- console.log("🔵 [SETUP-WATCHES] Starting setup for", props.all.columns.length, "columns");
3004
3003
  props.all.columns.forEach((col) => {
3005
3004
  if (col.filter && col.field && !watchedFields.value.has(col.field)) {
3006
- console.log("🔵 [WATCH-INIT]", col.field, {
3007
- initialValue: col.value,
3008
- initialCondition: col.condition
3009
- });
3010
3005
  if (filterInputs.value[col.field] === void 0) {
3011
3006
  filterInputs.value[col.field] = col.value || "";
3012
3007
  }
@@ -3016,13 +3011,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3016
3011
  (newValue) => {
3017
3012
  const column = columnsMap.value.get(col.field);
3018
3013
  const currentCondition = columnConditions.value[col.field] || (column == null ? void 0 : column.condition);
3019
- console.log("🔴 [DEBOUNCE-FIRED]", {
3020
- field: col.field,
3021
- newValue,
3022
- columnConditionFromState: columnConditions.value[col.field],
3023
- columnConditionFromMap: column == null ? void 0 : column.condition,
3024
- resolvedCondition: currentCondition
3025
- });
3026
3014
  if (column) {
3027
3015
  if (column.type === "string" || column.type === "String") {
3028
3016
  column.value = typeof newValue === "string" ? newValue.trim() : newValue;
@@ -3034,13 +3022,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3034
3022
  } else if (column.value) {
3035
3023
  column.condition = "Equal";
3036
3024
  columnConditions.value[col.field] = column.condition;
3037
- console.log("🟡 [DEFAULT-CONDITION-SET]", col.field, column.condition);
3038
3025
  }
3039
- console.log("🟢 [AFTER-MUTATION]", {
3040
- field: col.field,
3041
- valueAfter: column.value,
3042
- conditionAfter: column.condition
3043
- });
3044
3026
  emit("filterChange");
3045
3027
  }
3046
3028
  },
@@ -3099,16 +3081,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3099
3081
  return condition;
3100
3082
  };
3101
3083
  const handleConditionChange = (field, condition) => {
3102
- console.log("🟠 [CONDITION-CHANGE]", { field, condition });
3103
3084
  const column = columnsMap.value.get(field);
3104
3085
  if (column) {
3105
3086
  column.condition = condition;
3106
3087
  columnConditions.value[field] = condition;
3107
- console.log("🟠 [CONDITION-UPDATED]", {
3108
- field,
3109
- newCondition: column.condition,
3110
- columnValue: column.value
3111
- });
3112
3088
  emit("filterChange");
3113
3089
  }
3114
3090
  };
@@ -4160,10 +4136,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4160
4136
  }
4161
4137
  };
4162
4138
  const changeForServer = (changeType, isResetPage = false) => {
4163
- console.log(
4164
- "🔵 [CHANGE-FOR-SERVER] Props columns detail:",
4165
- props.columns.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
4166
- );
4167
4139
  if (props.isServerMode) {
4168
4140
  setDefaultCondition();
4169
4141
  const res = {
@@ -4176,10 +4148,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4176
4148
  column_filters: props.columns,
4177
4149
  change_type: changeType
4178
4150
  };
4179
- console.log(
4180
- "🔵 [EMITTING-CHANGE] Final column_filters:",
4181
- res.column_filters.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
4182
- );
4183
4151
  emit("change", res);
4184
4152
  }
4185
4153
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolusoft/vue3-datatable",
3
- "version": "1.8.5",
3
+ "version": "1.8.6",
4
4
  "description": "Vue3 Datatable - fully customizable & easy to use datatable library",
5
5
  "private": false,
6
6
  "type": "module",