@dolusoft/vue3-datatable 1.7.84 → 1.7.85
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 +0 -36
- package/dist/vue3-datatable.css +26 -26
- package/dist/vue3-datatable.js +0 -36
- package/package.json +1 -1
package/dist/vue3-datatable.cjs
CHANGED
|
@@ -3003,7 +3003,6 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3003
3003
|
if (!((_a = props.all) == null ? void 0 : _a.columns)) return;
|
|
3004
3004
|
props.all.columns.forEach((col) => {
|
|
3005
3005
|
if (col.filter && col.field && !watchedFields.value.has(col.field)) {
|
|
3006
|
-
console.log("🔵 [WATCH-SETUP] Setting up watch for:", col.field);
|
|
3007
3006
|
if (filterInputs.value[col.field] === void 0) {
|
|
3008
3007
|
filterInputs.value[col.field] = col.value || "";
|
|
3009
3008
|
}
|
|
@@ -3012,22 +3011,12 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3012
3011
|
() => filterInputs.value[col.field],
|
|
3013
3012
|
(newValue) => {
|
|
3014
3013
|
const column = columnsMap.value.get(col.field);
|
|
3015
|
-
console.log("🔴 [DEBOUNCE-FIRED]", {
|
|
3016
|
-
field: col.field,
|
|
3017
|
-
newValue,
|
|
3018
|
-
columnFromMap: !!column,
|
|
3019
|
-
columnValueBefore: column == null ? void 0 : column.value
|
|
3020
|
-
});
|
|
3021
3014
|
if (column) {
|
|
3022
3015
|
if (column.type === "string" || column.type === "String") {
|
|
3023
3016
|
column.value = typeof newValue === "string" ? newValue.trim() : newValue;
|
|
3024
3017
|
} else {
|
|
3025
3018
|
column.value = newValue;
|
|
3026
3019
|
}
|
|
3027
|
-
console.log("🟢 [AFTER-MUTATION]", {
|
|
3028
|
-
field: col.field,
|
|
3029
|
-
columnValueAfter: column.value
|
|
3030
|
-
});
|
|
3031
3020
|
emit("filterChange");
|
|
3032
3021
|
}
|
|
3033
3022
|
},
|
|
@@ -3043,25 +3032,12 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3043
3032
|
},
|
|
3044
3033
|
(newColumns) => {
|
|
3045
3034
|
if (newColumns && newColumns.length > 0) {
|
|
3046
|
-
console.log("🟡 [COLUMNS-CHANGED] Setting up watches for", newColumns.length, "columns");
|
|
3047
3035
|
setupColumnWatches();
|
|
3048
3036
|
}
|
|
3049
3037
|
},
|
|
3050
3038
|
{ immediate: true, deep: true }
|
|
3051
3039
|
);
|
|
3052
|
-
vue.watch(
|
|
3053
|
-
filterInputs,
|
|
3054
|
-
(newVal) => {
|
|
3055
|
-
console.log("🟡 [FILTER-INPUTS-CHANGED]", JSON.parse(JSON.stringify(newVal)));
|
|
3056
|
-
},
|
|
3057
|
-
{ deep: true }
|
|
3058
|
-
);
|
|
3059
3040
|
vue.onMounted(() => {
|
|
3060
|
-
var _a, _b, _c;
|
|
3061
|
-
console.log("🔍 [COLUMN-HEADER] onMounted", {
|
|
3062
|
-
hasColumns: !!((_a = props.all) == null ? void 0 : _a.columns),
|
|
3063
|
-
columnsCount: (_c = (_b = props.all) == null ? void 0 : _b.columns) == null ? void 0 : _c.length
|
|
3064
|
-
});
|
|
3065
3041
|
setupColumnWatches();
|
|
3066
3042
|
});
|
|
3067
3043
|
const checkboxChange = () => {
|
|
@@ -4080,10 +4056,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4080
4056
|
}
|
|
4081
4057
|
};
|
|
4082
4058
|
const filterChange = () => {
|
|
4083
|
-
console.log("🔍 [CUSTOM-TABLE] filterChange called", {
|
|
4084
|
-
isServerMode: props.isServerMode,
|
|
4085
|
-
currentPage: currentPage.value
|
|
4086
|
-
});
|
|
4087
4059
|
selectAll(false);
|
|
4088
4060
|
if (props.isServerMode) {
|
|
4089
4061
|
if (currentPage.value === 1) {
|
|
@@ -4157,10 +4129,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4157
4129
|
}
|
|
4158
4130
|
};
|
|
4159
4131
|
const changeForServer = (changeType, isResetPage = false) => {
|
|
4160
|
-
console.log(
|
|
4161
|
-
"🔵 [CHANGE-FOR-SERVER] Props columns detail:",
|
|
4162
|
-
props.columns.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
|
|
4163
|
-
);
|
|
4164
4132
|
if (props.isServerMode) {
|
|
4165
4133
|
setDefaultCondition();
|
|
4166
4134
|
const res = {
|
|
@@ -4173,10 +4141,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4173
4141
|
column_filters: props.columns,
|
|
4174
4142
|
change_type: changeType
|
|
4175
4143
|
};
|
|
4176
|
-
console.log(
|
|
4177
|
-
"🔵 [EMITTING-CHANGE] Final column_filters:",
|
|
4178
|
-
res.column_filters.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
|
|
4179
|
-
);
|
|
4180
4144
|
emit("change", res);
|
|
4181
4145
|
}
|
|
4182
4146
|
};
|
package/dist/vue3-datatable.css
CHANGED
|
@@ -13,40 +13,40 @@
|
|
|
13
13
|
}
|
|
14
14
|
.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging .splitpanes__pane{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}
|
|
15
15
|
|
|
16
|
-
.left-menu-container {
|
|
17
|
-
position: relative;
|
|
16
|
+
.left-menu-container {
|
|
17
|
+
position: relative;
|
|
18
18
|
flex-shrink: 0 !important;
|
|
19
19
|
}
|
|
20
|
-
.menu-resize-controls {
|
|
21
|
-
position: absolute;
|
|
22
|
-
right: 0;
|
|
23
|
-
top: 50%;
|
|
24
|
-
transform: translateY(-50%);
|
|
25
|
-
z-index: 10;
|
|
26
|
-
background: #f0f0f0;
|
|
27
|
-
border-radius: 3px 0 0 3px;
|
|
20
|
+
.menu-resize-controls {
|
|
21
|
+
position: absolute;
|
|
22
|
+
right: 0;
|
|
23
|
+
top: 50%;
|
|
24
|
+
transform: translateY(-50%);
|
|
25
|
+
z-index: 10;
|
|
26
|
+
background: #f0f0f0;
|
|
27
|
+
border-radius: 3px 0 0 3px;
|
|
28
28
|
box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
|
|
29
29
|
}
|
|
30
|
-
.menu-resize-controls button {
|
|
31
|
-
width: 16px;
|
|
32
|
-
height: 40px;
|
|
33
|
-
display: flex;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
align-items: center;
|
|
36
|
-
border: none;
|
|
37
|
-
background: transparent;
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
-webkit-user-select: none;
|
|
40
|
-
-moz-user-select: none;
|
|
30
|
+
.menu-resize-controls button {
|
|
31
|
+
width: 16px;
|
|
32
|
+
height: 40px;
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
align-items: center;
|
|
36
|
+
border: none;
|
|
37
|
+
background: transparent;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
-webkit-user-select: none;
|
|
40
|
+
-moz-user-select: none;
|
|
41
41
|
user-select: none;
|
|
42
42
|
}
|
|
43
|
-
.bh-datatable thead {
|
|
43
|
+
.bh-datatable thead {
|
|
44
44
|
z-index: 15 !important;
|
|
45
45
|
}
|
|
46
|
-
.bh-datatable tbody tr {
|
|
47
|
-
position: relative;
|
|
46
|
+
.bh-datatable tbody tr {
|
|
47
|
+
position: relative;
|
|
48
48
|
z-index: 1;
|
|
49
49
|
}
|
|
50
|
-
.bh-datatable tbody tr:has(td[colspan]) {
|
|
50
|
+
.bh-datatable tbody tr:has(td[colspan]) {
|
|
51
51
|
z-index: 0;
|
|
52
|
-
}
|
|
52
|
+
}
|
package/dist/vue3-datatable.js
CHANGED
|
@@ -3002,7 +3002,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3002
3002
|
if (!((_a = props.all) == null ? void 0 : _a.columns)) return;
|
|
3003
3003
|
props.all.columns.forEach((col) => {
|
|
3004
3004
|
if (col.filter && col.field && !watchedFields.value.has(col.field)) {
|
|
3005
|
-
console.log("🔵 [WATCH-SETUP] Setting up watch for:", col.field);
|
|
3006
3005
|
if (filterInputs.value[col.field] === void 0) {
|
|
3007
3006
|
filterInputs.value[col.field] = col.value || "";
|
|
3008
3007
|
}
|
|
@@ -3011,22 +3010,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3011
3010
|
() => filterInputs.value[col.field],
|
|
3012
3011
|
(newValue) => {
|
|
3013
3012
|
const column = columnsMap.value.get(col.field);
|
|
3014
|
-
console.log("🔴 [DEBOUNCE-FIRED]", {
|
|
3015
|
-
field: col.field,
|
|
3016
|
-
newValue,
|
|
3017
|
-
columnFromMap: !!column,
|
|
3018
|
-
columnValueBefore: column == null ? void 0 : column.value
|
|
3019
|
-
});
|
|
3020
3013
|
if (column) {
|
|
3021
3014
|
if (column.type === "string" || column.type === "String") {
|
|
3022
3015
|
column.value = typeof newValue === "string" ? newValue.trim() : newValue;
|
|
3023
3016
|
} else {
|
|
3024
3017
|
column.value = newValue;
|
|
3025
3018
|
}
|
|
3026
|
-
console.log("🟢 [AFTER-MUTATION]", {
|
|
3027
|
-
field: col.field,
|
|
3028
|
-
columnValueAfter: column.value
|
|
3029
|
-
});
|
|
3030
3019
|
emit("filterChange");
|
|
3031
3020
|
}
|
|
3032
3021
|
},
|
|
@@ -3042,25 +3031,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3042
3031
|
},
|
|
3043
3032
|
(newColumns) => {
|
|
3044
3033
|
if (newColumns && newColumns.length > 0) {
|
|
3045
|
-
console.log("🟡 [COLUMNS-CHANGED] Setting up watches for", newColumns.length, "columns");
|
|
3046
3034
|
setupColumnWatches();
|
|
3047
3035
|
}
|
|
3048
3036
|
},
|
|
3049
3037
|
{ immediate: true, deep: true }
|
|
3050
3038
|
);
|
|
3051
|
-
watch(
|
|
3052
|
-
filterInputs,
|
|
3053
|
-
(newVal) => {
|
|
3054
|
-
console.log("🟡 [FILTER-INPUTS-CHANGED]", JSON.parse(JSON.stringify(newVal)));
|
|
3055
|
-
},
|
|
3056
|
-
{ deep: true }
|
|
3057
|
-
);
|
|
3058
3039
|
onMounted(() => {
|
|
3059
|
-
var _a, _b, _c;
|
|
3060
|
-
console.log("🔍 [COLUMN-HEADER] onMounted", {
|
|
3061
|
-
hasColumns: !!((_a = props.all) == null ? void 0 : _a.columns),
|
|
3062
|
-
columnsCount: (_c = (_b = props.all) == null ? void 0 : _b.columns) == null ? void 0 : _c.length
|
|
3063
|
-
});
|
|
3064
3040
|
setupColumnWatches();
|
|
3065
3041
|
});
|
|
3066
3042
|
const checkboxChange = () => {
|
|
@@ -4079,10 +4055,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4079
4055
|
}
|
|
4080
4056
|
};
|
|
4081
4057
|
const filterChange = () => {
|
|
4082
|
-
console.log("🔍 [CUSTOM-TABLE] filterChange called", {
|
|
4083
|
-
isServerMode: props.isServerMode,
|
|
4084
|
-
currentPage: currentPage.value
|
|
4085
|
-
});
|
|
4086
4058
|
selectAll(false);
|
|
4087
4059
|
if (props.isServerMode) {
|
|
4088
4060
|
if (currentPage.value === 1) {
|
|
@@ -4156,10 +4128,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4156
4128
|
}
|
|
4157
4129
|
};
|
|
4158
4130
|
const changeForServer = (changeType, isResetPage = false) => {
|
|
4159
|
-
console.log(
|
|
4160
|
-
"🔵 [CHANGE-FOR-SERVER] Props columns detail:",
|
|
4161
|
-
props.columns.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
|
|
4162
|
-
);
|
|
4163
4131
|
if (props.isServerMode) {
|
|
4164
4132
|
setDefaultCondition();
|
|
4165
4133
|
const res = {
|
|
@@ -4172,10 +4140,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4172
4140
|
column_filters: props.columns,
|
|
4173
4141
|
change_type: changeType
|
|
4174
4142
|
};
|
|
4175
|
-
console.log(
|
|
4176
|
-
"🔵 [EMITTING-CHANGE] Final column_filters:",
|
|
4177
|
-
res.column_filters.map((c) => ({ field: c.field, value: c.value, condition: c.condition }))
|
|
4178
|
-
);
|
|
4179
4143
|
emit("change", res);
|
|
4180
4144
|
}
|
|
4181
4145
|
};
|