@dolusoft/vue3-datatable 1.8.19 → 1.8.23
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
|
@@ -3108,13 +3108,11 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3108
3108
|
if (isEmpty) {
|
|
3109
3109
|
column.condition = "";
|
|
3110
3110
|
columnConditions.value[col.field] = "";
|
|
3111
|
-
console.log("🔴 [COLUMN-HEADER] CLEARED:", col.field, { value: column.value, condition: column.condition });
|
|
3112
3111
|
} else if (!columnConditions.value[col.field]) {
|
|
3113
3112
|
column.condition = "Equal";
|
|
3114
3113
|
columnConditions.value[col.field] = "Equal";
|
|
3115
|
-
console.log("🟢 [COLUMN-HEADER] SET DEFAULT:", col.field, { value: column.value, condition: column.condition });
|
|
3116
3114
|
} else {
|
|
3117
|
-
|
|
3115
|
+
column.condition = columnConditions.value[col.field];
|
|
3118
3116
|
}
|
|
3119
3117
|
emit("filterChange");
|
|
3120
3118
|
};
|
|
@@ -3207,8 +3205,8 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3207
3205
|
const handleConditionChange = (field, condition) => {
|
|
3208
3206
|
const column = columnsMap.value.get(field);
|
|
3209
3207
|
if (column) {
|
|
3210
|
-
column.condition = condition;
|
|
3211
3208
|
columnConditions.value[field] = condition;
|
|
3209
|
+
column.condition = condition;
|
|
3212
3210
|
emit("filterChange");
|
|
3213
3211
|
}
|
|
3214
3212
|
};
|
|
@@ -4334,11 +4332,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4334
4332
|
const changeForServer = (changeType, isResetPage = false) => {
|
|
4335
4333
|
if (props.isServerMode) {
|
|
4336
4334
|
setDefaultCondition();
|
|
4337
|
-
|
|
4338
|
-
console.log("🔵 [CUSTOM-TABLE] changeForServer:", changeType, {
|
|
4339
|
-
activeFilters: activeFilters.map((c) => ({ field: c.field, value: c.value, condition: c.condition })),
|
|
4340
|
-
allColumns: props.columns.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
|
|
4341
|
-
});
|
|
4335
|
+
props.columns.filter((c) => c.value || c.condition);
|
|
4342
4336
|
const res = {
|
|
4343
4337
|
current_page: isResetPage ? 1 : currentPage.value,
|
|
4344
4338
|
pagesize: currentPageSize.value,
|
package/dist/vue3-datatable.js
CHANGED
|
@@ -3107,13 +3107,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3107
3107
|
if (isEmpty) {
|
|
3108
3108
|
column.condition = "";
|
|
3109
3109
|
columnConditions.value[col.field] = "";
|
|
3110
|
-
console.log("🔴 [COLUMN-HEADER] CLEARED:", col.field, { value: column.value, condition: column.condition });
|
|
3111
3110
|
} else if (!columnConditions.value[col.field]) {
|
|
3112
3111
|
column.condition = "Equal";
|
|
3113
3112
|
columnConditions.value[col.field] = "Equal";
|
|
3114
|
-
console.log("🟢 [COLUMN-HEADER] SET DEFAULT:", col.field, { value: column.value, condition: column.condition });
|
|
3115
3113
|
} else {
|
|
3116
|
-
|
|
3114
|
+
column.condition = columnConditions.value[col.field];
|
|
3117
3115
|
}
|
|
3118
3116
|
emit("filterChange");
|
|
3119
3117
|
};
|
|
@@ -3206,8 +3204,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3206
3204
|
const handleConditionChange = (field, condition) => {
|
|
3207
3205
|
const column = columnsMap.value.get(field);
|
|
3208
3206
|
if (column) {
|
|
3209
|
-
column.condition = condition;
|
|
3210
3207
|
columnConditions.value[field] = condition;
|
|
3208
|
+
column.condition = condition;
|
|
3211
3209
|
emit("filterChange");
|
|
3212
3210
|
}
|
|
3213
3211
|
};
|
|
@@ -4333,11 +4331,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4333
4331
|
const changeForServer = (changeType, isResetPage = false) => {
|
|
4334
4332
|
if (props.isServerMode) {
|
|
4335
4333
|
setDefaultCondition();
|
|
4336
|
-
|
|
4337
|
-
console.log("🔵 [CUSTOM-TABLE] changeForServer:", changeType, {
|
|
4338
|
-
activeFilters: activeFilters.map((c) => ({ field: c.field, value: c.value, condition: c.condition })),
|
|
4339
|
-
allColumns: props.columns.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
|
|
4340
|
-
});
|
|
4334
|
+
props.columns.filter((c) => c.value || c.condition);
|
|
4341
4335
|
const res = {
|
|
4342
4336
|
current_page: isResetPage ? 1 : currentPage.value,
|
|
4343
4337
|
pagesize: currentPageSize.value,
|