@dolusoft/vue3-datatable 1.8.4 → 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.
- package/dist/vue3-datatable.cjs +1 -35
- package/dist/vue3-datatable.js +1 -35
- package/package.json +1 -1
package/dist/vue3-datatable.cjs
CHANGED
|
@@ -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
|
}
|
|
@@ -3015,16 +3010,8 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3015
3010
|
watchDebounced(
|
|
3016
3011
|
() => filterInputs.value[col.field],
|
|
3017
3012
|
(newValue) => {
|
|
3018
|
-
var _a2;
|
|
3019
3013
|
const column = columnsMap.value.get(col.field);
|
|
3020
3014
|
const currentCondition = columnConditions.value[col.field] || (column == null ? void 0 : column.condition);
|
|
3021
|
-
console.log("🔴 [DEBOUNCE-FIRED]", {
|
|
3022
|
-
field: col.field,
|
|
3023
|
-
newValue,
|
|
3024
|
-
columnConditionFromState: columnConditions.value[col.field],
|
|
3025
|
-
columnConditionFromMap: column == null ? void 0 : column.condition,
|
|
3026
|
-
resolvedCondition: currentCondition
|
|
3027
|
-
});
|
|
3028
3015
|
if (column) {
|
|
3029
3016
|
if (column.type === "string" || column.type === "String") {
|
|
3030
3017
|
column.value = typeof newValue === "string" ? newValue.trim() : newValue;
|
|
@@ -3034,16 +3021,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3034
3021
|
if (currentCondition) {
|
|
3035
3022
|
column.condition = currentCondition;
|
|
3036
3023
|
} else if (column.value) {
|
|
3037
|
-
|
|
3038
|
-
column.condition = type === "string" ? "Contains" : "Equal";
|
|
3024
|
+
column.condition = "Equal";
|
|
3039
3025
|
columnConditions.value[col.field] = column.condition;
|
|
3040
|
-
console.log("🟡 [DEFAULT-CONDITION-SET]", col.field, column.condition);
|
|
3041
3026
|
}
|
|
3042
|
-
console.log("🟢 [AFTER-MUTATION]", {
|
|
3043
|
-
field: col.field,
|
|
3044
|
-
valueAfter: column.value,
|
|
3045
|
-
conditionAfter: column.condition
|
|
3046
|
-
});
|
|
3047
3027
|
emit("filterChange");
|
|
3048
3028
|
}
|
|
3049
3029
|
},
|
|
@@ -3102,16 +3082,10 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3102
3082
|
return condition;
|
|
3103
3083
|
};
|
|
3104
3084
|
const handleConditionChange = (field, condition) => {
|
|
3105
|
-
console.log("🟠 [CONDITION-CHANGE]", { field, condition });
|
|
3106
3085
|
const column = columnsMap.value.get(field);
|
|
3107
3086
|
if (column) {
|
|
3108
3087
|
column.condition = condition;
|
|
3109
3088
|
columnConditions.value[field] = condition;
|
|
3110
|
-
console.log("🟠 [CONDITION-UPDATED]", {
|
|
3111
|
-
field,
|
|
3112
|
-
newCondition: column.condition,
|
|
3113
|
-
columnValue: column.value
|
|
3114
|
-
});
|
|
3115
3089
|
emit("filterChange");
|
|
3116
3090
|
}
|
|
3117
3091
|
};
|
|
@@ -4163,10 +4137,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4163
4137
|
}
|
|
4164
4138
|
};
|
|
4165
4139
|
const changeForServer = (changeType, isResetPage = false) => {
|
|
4166
|
-
console.log(
|
|
4167
|
-
"🔵 [CHANGE-FOR-SERVER] Props columns detail:",
|
|
4168
|
-
props.columns.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
|
|
4169
|
-
);
|
|
4170
4140
|
if (props.isServerMode) {
|
|
4171
4141
|
setDefaultCondition();
|
|
4172
4142
|
const res = {
|
|
@@ -4179,10 +4149,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4179
4149
|
column_filters: props.columns,
|
|
4180
4150
|
change_type: changeType
|
|
4181
4151
|
};
|
|
4182
|
-
console.log(
|
|
4183
|
-
"🔵 [EMITTING-CHANGE] Final column_filters:",
|
|
4184
|
-
res.column_filters.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
|
|
4185
|
-
);
|
|
4186
4152
|
emit("change", res);
|
|
4187
4153
|
}
|
|
4188
4154
|
};
|
package/dist/vue3-datatable.js
CHANGED
|
@@ -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
|
}
|
|
@@ -3014,16 +3009,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3014
3009
|
watchDebounced(
|
|
3015
3010
|
() => filterInputs.value[col.field],
|
|
3016
3011
|
(newValue) => {
|
|
3017
|
-
var _a2;
|
|
3018
3012
|
const column = columnsMap.value.get(col.field);
|
|
3019
3013
|
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
3014
|
if (column) {
|
|
3028
3015
|
if (column.type === "string" || column.type === "String") {
|
|
3029
3016
|
column.value = typeof newValue === "string" ? newValue.trim() : newValue;
|
|
@@ -3033,16 +3020,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3033
3020
|
if (currentCondition) {
|
|
3034
3021
|
column.condition = currentCondition;
|
|
3035
3022
|
} else if (column.value) {
|
|
3036
|
-
|
|
3037
|
-
column.condition = type === "string" ? "Contains" : "Equal";
|
|
3023
|
+
column.condition = "Equal";
|
|
3038
3024
|
columnConditions.value[col.field] = column.condition;
|
|
3039
|
-
console.log("🟡 [DEFAULT-CONDITION-SET]", col.field, column.condition);
|
|
3040
3025
|
}
|
|
3041
|
-
console.log("🟢 [AFTER-MUTATION]", {
|
|
3042
|
-
field: col.field,
|
|
3043
|
-
valueAfter: column.value,
|
|
3044
|
-
conditionAfter: column.condition
|
|
3045
|
-
});
|
|
3046
3026
|
emit("filterChange");
|
|
3047
3027
|
}
|
|
3048
3028
|
},
|
|
@@ -3101,16 +3081,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3101
3081
|
return condition;
|
|
3102
3082
|
};
|
|
3103
3083
|
const handleConditionChange = (field, condition) => {
|
|
3104
|
-
console.log("🟠 [CONDITION-CHANGE]", { field, condition });
|
|
3105
3084
|
const column = columnsMap.value.get(field);
|
|
3106
3085
|
if (column) {
|
|
3107
3086
|
column.condition = condition;
|
|
3108
3087
|
columnConditions.value[field] = condition;
|
|
3109
|
-
console.log("🟠 [CONDITION-UPDATED]", {
|
|
3110
|
-
field,
|
|
3111
|
-
newCondition: column.condition,
|
|
3112
|
-
columnValue: column.value
|
|
3113
|
-
});
|
|
3114
3088
|
emit("filterChange");
|
|
3115
3089
|
}
|
|
3116
3090
|
};
|
|
@@ -4162,10 +4136,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4162
4136
|
}
|
|
4163
4137
|
};
|
|
4164
4138
|
const changeForServer = (changeType, isResetPage = false) => {
|
|
4165
|
-
console.log(
|
|
4166
|
-
"🔵 [CHANGE-FOR-SERVER] Props columns detail:",
|
|
4167
|
-
props.columns.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
|
|
4168
|
-
);
|
|
4169
4139
|
if (props.isServerMode) {
|
|
4170
4140
|
setDefaultCondition();
|
|
4171
4141
|
const res = {
|
|
@@ -4178,10 +4148,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4178
4148
|
column_filters: props.columns,
|
|
4179
4149
|
change_type: changeType
|
|
4180
4150
|
};
|
|
4181
|
-
console.log(
|
|
4182
|
-
"🔵 [EMITTING-CHANGE] Final column_filters:",
|
|
4183
|
-
res.column_filters.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
|
|
4184
|
-
);
|
|
4185
4151
|
emit("change", res);
|
|
4186
4152
|
}
|
|
4187
4153
|
};
|