@dolusoft/vue3-datatable 1.8.17 → 1.8.18

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.
@@ -3134,9 +3134,13 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
3134
3134
  if (isEmpty) {
3135
3135
  column.condition = "";
3136
3136
  columnConditions.value[col.field] = "";
3137
+ console.log("🔴 [COLUMN-HEADER] CLEARED:", col.field, { value: column.value, condition: column.condition });
3137
3138
  } else if (!columnConditions.value[col.field]) {
3138
3139
  column.condition = "Equal";
3139
3140
  columnConditions.value[col.field] = "Equal";
3141
+ console.log("🟢 [COLUMN-HEADER] SET DEFAULT:", col.field, { value: column.value, condition: column.condition });
3142
+ } else {
3143
+ console.log("🟡 [COLUMN-HEADER] KEEP EXISTING:", col.field, { value: column.value, condition: column.condition });
3140
3144
  }
3141
3145
  emit("filterChange");
3142
3146
  },
@@ -4351,6 +4355,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4351
4355
  const changeForServer = (changeType, isResetPage = false) => {
4352
4356
  if (props.isServerMode) {
4353
4357
  setDefaultCondition();
4358
+ const activeFilters = props.columns.filter((c) => c.value || c.condition);
4359
+ console.log("🔵 [CUSTOM-TABLE] changeForServer:", changeType, {
4360
+ activeFilters: activeFilters.map((c) => ({ field: c.field, value: c.value, condition: c.condition })),
4361
+ allColumns: props.columns.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
4362
+ });
4354
4363
  const res = {
4355
4364
  current_page: isResetPage ? 1 : currentPage.value,
4356
4365
  pagesize: currentPageSize.value,
@@ -3133,9 +3133,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3133
3133
  if (isEmpty) {
3134
3134
  column.condition = "";
3135
3135
  columnConditions.value[col.field] = "";
3136
+ console.log("🔴 [COLUMN-HEADER] CLEARED:", col.field, { value: column.value, condition: column.condition });
3136
3137
  } else if (!columnConditions.value[col.field]) {
3137
3138
  column.condition = "Equal";
3138
3139
  columnConditions.value[col.field] = "Equal";
3140
+ console.log("🟢 [COLUMN-HEADER] SET DEFAULT:", col.field, { value: column.value, condition: column.condition });
3141
+ } else {
3142
+ console.log("🟡 [COLUMN-HEADER] KEEP EXISTING:", col.field, { value: column.value, condition: column.condition });
3139
3143
  }
3140
3144
  emit("filterChange");
3141
3145
  },
@@ -4350,6 +4354,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4350
4354
  const changeForServer = (changeType, isResetPage = false) => {
4351
4355
  if (props.isServerMode) {
4352
4356
  setDefaultCondition();
4357
+ const activeFilters = props.columns.filter((c) => c.value || c.condition);
4358
+ console.log("🔵 [CUSTOM-TABLE] changeForServer:", changeType, {
4359
+ activeFilters: activeFilters.map((c) => ({ field: c.field, value: c.value, condition: c.condition })),
4360
+ allColumns: props.columns.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
4361
+ });
4353
4362
  const res = {
4354
4363
  current_page: isResetPage ? 1 : currentPage.value,
4355
4364
  pagesize: currentPageSize.value,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolusoft/vue3-datatable",
3
- "version": "1.8.17",
3
+ "version": "1.8.18",
4
4
  "description": "Vue3 Datatable - fully customizable & easy to use datatable library",
5
5
  "private": false,
6
6
  "type": "module",