@dolusoft/vue3-datatable 1.7.84 → 1.7.88

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.
@@ -2501,7 +2501,7 @@ const _export_sfc = (sfc, props) => {
2501
2501
  }
2502
2502
  return target;
2503
2503
  };
2504
- const ButtonExpand = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-da3bc8d5"]]);
2504
+ const ButtonExpand = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-4d01a2fa"]]);
2505
2505
  const __default__$4 = {
2506
2506
  name: "ButtonRightPanel"
2507
2507
  };
@@ -2527,7 +2527,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
2527
2527
  };
2528
2528
  }
2529
2529
  });
2530
- const ButtonRightPanel = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-b373d5f7"]]);
2530
+ const ButtonRightPanel = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-d739c6bf"]]);
2531
2531
  const _hoisted_1$6 = { class: "bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden" };
2532
2532
  const __default__$3 = {
2533
2533
  name: "columnFilter"
@@ -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
  };
@@ -1,16 +1,16 @@
1
1
 
2
- .expandbtn[data-v-da3bc8d5] {
2
+ .expandbtn[data-v-4d01a2fa] {
3
3
  cursor: pointer;
4
- }
4
+ }
5
5
 
6
- .rightpanelbtn[data-v-b373d5f7] {
7
- cursor: pointer;
8
- display: inline-flex;
9
- align-items: center;
10
- justify-content: center;
11
- width: 24px;
6
+ .rightpanelbtn[data-v-d739c6bf] {
7
+ cursor: pointer;
8
+ display: inline-flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ width: 24px;
12
12
  height: 24px;
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
16
  .left-menu-container {
@@ -2500,7 +2500,7 @@ const _export_sfc = (sfc, props) => {
2500
2500
  }
2501
2501
  return target;
2502
2502
  };
2503
- const ButtonExpand = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-da3bc8d5"]]);
2503
+ const ButtonExpand = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-4d01a2fa"]]);
2504
2504
  const __default__$4 = {
2505
2505
  name: "ButtonRightPanel"
2506
2506
  };
@@ -2526,7 +2526,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2526
2526
  };
2527
2527
  }
2528
2528
  });
2529
- const ButtonRightPanel = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-b373d5f7"]]);
2529
+ const ButtonRightPanel = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-d739c6bf"]]);
2530
2530
  const _hoisted_1$6 = { class: "bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden" };
2531
2531
  const __default__$3 = {
2532
2532
  name: "columnFilter"
@@ -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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolusoft/vue3-datatable",
3
- "version": "1.7.84",
3
+ "version": "1.7.88",
4
4
  "description": "Vue3 Datatable - fully customizable & easy to use datatable library",
5
5
  "private": false,
6
6
  "type": "module",
@@ -60,10 +60,7 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@iconify/vue": "^4.1.2",
63
- "@typescript-eslint/eslint-plugin": "^7.18.0",
64
63
  "@vueuse/core": "^10.11.0",
65
- "eslint-plugin-import": "^2.29.1",
66
- "eslint-plugin-vue": "^9.27.0",
67
64
  "floating-vue": "^5.2.2",
68
65
  "splitpanes": "4.0.3",
69
66
  "vue": "^3.4.35",
@@ -72,9 +69,12 @@
72
69
  },
73
70
  "devDependencies": {
74
71
  "@types/node": "^20.14.14",
72
+ "@typescript-eslint/eslint-plugin": "^8.0.0",
75
73
  "@vitejs/plugin-vue": "^5.1.2",
76
74
  "autoprefixer": "^10.4.20",
75
+ "eslint-plugin-import": "^2.29.1",
77
76
  "eslint-plugin-prettier": "^5.2.1",
77
+ "eslint-plugin-vue": "^9.27.0",
78
78
  "sass": "^1.77.8",
79
79
  "tailwindcss": "^3.3.3",
80
80
  "typescript": "^5.5.4",