@dolusoft/vue3-datatable 1.8.20 → 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 +1 -15
- package/dist/vue3-datatable.js +1 -15
- package/package.json +1 -1
package/dist/vue3-datatable.cjs
CHANGED
|
@@ -3108,14 +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
|
-
console.log("🟡 [COLUMN-HEADER] APPLY STORED:", col.field, { value: column.value, condition: column.condition, storedCondition: columnConditions.value[col.field] });
|
|
3119
3116
|
}
|
|
3120
3117
|
emit("filterChange");
|
|
3121
3118
|
};
|
|
@@ -3206,17 +3203,10 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3206
3203
|
return condition;
|
|
3207
3204
|
};
|
|
3208
3205
|
const handleConditionChange = (field, condition) => {
|
|
3209
|
-
console.log("🟠 [COLUMN-HEADER] handleConditionChange CALLED:", { field, condition });
|
|
3210
3206
|
const column = columnsMap.value.get(field);
|
|
3211
3207
|
if (column) {
|
|
3212
3208
|
columnConditions.value[field] = condition;
|
|
3213
3209
|
column.condition = condition;
|
|
3214
|
-
console.log("🟠 [COLUMN-HEADER] handleConditionChange UPDATED:", {
|
|
3215
|
-
field,
|
|
3216
|
-
columnCondition: column.condition,
|
|
3217
|
-
localState: columnConditions.value[field],
|
|
3218
|
-
columnValue: column.value
|
|
3219
|
-
});
|
|
3220
3210
|
emit("filterChange");
|
|
3221
3211
|
}
|
|
3222
3212
|
};
|
|
@@ -4342,11 +4332,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4342
4332
|
const changeForServer = (changeType, isResetPage = false) => {
|
|
4343
4333
|
if (props.isServerMode) {
|
|
4344
4334
|
setDefaultCondition();
|
|
4345
|
-
|
|
4346
|
-
console.log("🔵 [CUSTOM-TABLE] changeForServer:", changeType, {
|
|
4347
|
-
activeFilters: activeFilters.map((c) => ({ field: c.field, value: c.value, condition: c.condition })),
|
|
4348
|
-
allColumns: props.columns.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
|
|
4349
|
-
});
|
|
4335
|
+
props.columns.filter((c) => c.value || c.condition);
|
|
4350
4336
|
const res = {
|
|
4351
4337
|
current_page: isResetPage ? 1 : currentPage.value,
|
|
4352
4338
|
pagesize: currentPageSize.value,
|
package/dist/vue3-datatable.js
CHANGED
|
@@ -3107,14 +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
|
-
console.log("🟡 [COLUMN-HEADER] APPLY STORED:", col.field, { value: column.value, condition: column.condition, storedCondition: columnConditions.value[col.field] });
|
|
3118
3115
|
}
|
|
3119
3116
|
emit("filterChange");
|
|
3120
3117
|
};
|
|
@@ -3205,17 +3202,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3205
3202
|
return condition;
|
|
3206
3203
|
};
|
|
3207
3204
|
const handleConditionChange = (field, condition) => {
|
|
3208
|
-
console.log("🟠 [COLUMN-HEADER] handleConditionChange CALLED:", { field, condition });
|
|
3209
3205
|
const column = columnsMap.value.get(field);
|
|
3210
3206
|
if (column) {
|
|
3211
3207
|
columnConditions.value[field] = condition;
|
|
3212
3208
|
column.condition = condition;
|
|
3213
|
-
console.log("🟠 [COLUMN-HEADER] handleConditionChange UPDATED:", {
|
|
3214
|
-
field,
|
|
3215
|
-
columnCondition: column.condition,
|
|
3216
|
-
localState: columnConditions.value[field],
|
|
3217
|
-
columnValue: column.value
|
|
3218
|
-
});
|
|
3219
3209
|
emit("filterChange");
|
|
3220
3210
|
}
|
|
3221
3211
|
};
|
|
@@ -4341,11 +4331,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4341
4331
|
const changeForServer = (changeType, isResetPage = false) => {
|
|
4342
4332
|
if (props.isServerMode) {
|
|
4343
4333
|
setDefaultCondition();
|
|
4344
|
-
|
|
4345
|
-
console.log("🔵 [CUSTOM-TABLE] changeForServer:", changeType, {
|
|
4346
|
-
activeFilters: activeFilters.map((c) => ({ field: c.field, value: c.value, condition: c.condition })),
|
|
4347
|
-
allColumns: props.columns.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
|
|
4348
|
-
});
|
|
4334
|
+
props.columns.filter((c) => c.value || c.condition);
|
|
4349
4335
|
const res = {
|
|
4350
4336
|
current_page: isResetPage ? 1 : currentPage.value,
|
|
4351
4337
|
pagesize: currentPageSize.value,
|