@dolusoft/vue3-datatable 1.8.47 → 1.8.48

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.
@@ -2469,7 +2469,7 @@ const _export_sfc = (sfc, props) => {
2469
2469
  }
2470
2470
  return target;
2471
2471
  };
2472
- const ButtonExpand = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-4d01a2fa"]]);
2472
+ const ButtonExpand = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-da3bc8d5"]]);
2473
2473
  const __default__$4 = {
2474
2474
  name: "ButtonRightPanel"
2475
2475
  };
@@ -2495,7 +2495,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
2495
2495
  };
2496
2496
  }
2497
2497
  });
2498
- const ButtonRightPanel = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-d739c6bf"]]);
2498
+ const ButtonRightPanel = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-b373d5f7"]]);
2499
2499
  const sides = ["top", "right", "bottom", "left"];
2500
2500
  const alignments = ["start", "end"];
2501
2501
  const placements = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
@@ -7021,16 +7021,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
7021
7021
  filterChange();
7022
7022
  emit("clearAllFilters");
7023
7023
  };
7024
- let extracolumnlength = 0;
7025
- if (props.hasCheckbox) {
7026
- extracolumnlength++;
7027
- }
7028
- if (props.hasSubtable) {
7029
- extracolumnlength++;
7030
- }
7031
- if (props.hasRightPanel) {
7032
- extracolumnlength++;
7033
- }
7024
+ const extracolumnlength = vue.computed(() => {
7025
+ let count = 0;
7026
+ if (props.hasCheckbox) count++;
7027
+ if (props.hasSubtable) count++;
7028
+ if (props.hasRightPanel) count++;
7029
+ return count;
7030
+ });
7034
7031
  const topmenusize = vue.ref(props.topmenusize);
7035
7032
  const topmenuel = vue.ref(null);
7036
7033
  const { height: topmenuheight } = useElementSize(
@@ -7320,7 +7317,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
7320
7317
  onClick: vue.withModifiers(($event) => rowClick(item, i2), ["prevent"])
7321
7318
  }, [
7322
7319
  vue.createElementVNode("td", {
7323
- colspan: props.columns.length + vue.unref(extracolumnlength)
7320
+ colspan: props.columns.length + extracolumnlength.value
7324
7321
  }, [
7325
7322
  vue.renderSlot(_ctx.$slots, "tsub", {
7326
7323
  rowData: item,
@@ -7337,7 +7334,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
7337
7334
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
7338
7335
  }, [
7339
7336
  vue.createElementVNode("td", {
7340
- colspan: props.columns.length + vue.unref(extracolumnlength),
7337
+ colspan: props.columns.length + extracolumnlength.value,
7341
7338
  class: "!bh-p-0 !bh-border-transparent"
7342
7339
  }, _hoisted_19, 8, _hoisted_17)
7343
7340
  ]);
@@ -7347,9 +7344,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
7347
7344
  key: item[uniqueKey.value] ? item[uniqueKey.value] : i2,
7348
7345
  class: "sticky-table-footer"
7349
7346
  }, [
7350
- vue.unref(extracolumnlength) > 0 ? (vue.openBlock(), vue.createElementBlock("td", {
7347
+ extracolumnlength.value > 0 ? (vue.openBlock(), vue.createElementBlock("td", {
7351
7348
  key: 0,
7352
- colspan: vue.unref(extracolumnlength)
7349
+ colspan: extracolumnlength.value
7353
7350
  }, null, 8, _hoisted_20)) : vue.createCommentVNode("", true),
7354
7351
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.columns, (col, j) => {
7355
7352
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
@@ -7616,7 +7613,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
7616
7613
  onClick: vue.withModifiers(($event) => rowClick(item, i2), ["prevent"])
7617
7614
  }, [
7618
7615
  vue.createElementVNode("td", {
7619
- colspan: props.columns.length + vue.unref(extracolumnlength)
7616
+ colspan: props.columns.length + extracolumnlength.value
7620
7617
  }, [
7621
7618
  vue.createElementVNode("div", {
7622
7619
  class: "subtable-container",
@@ -7644,7 +7641,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
7644
7641
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
7645
7642
  }, [
7646
7643
  vue.createElementVNode("td", {
7647
- colspan: props.columns.length + vue.unref(extracolumnlength),
7644
+ colspan: props.columns.length + extracolumnlength.value,
7648
7645
  class: "!bh-p-0 !bh-border-transparent"
7649
7646
  }, _hoisted_30, 8, _hoisted_28)
7650
7647
  ]);
@@ -7654,9 +7651,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
7654
7651
  key: item[uniqueKey.value] ? item[uniqueKey.value] : i2,
7655
7652
  class: "sticky-table-footer"
7656
7653
  }, [
7657
- vue.unref(extracolumnlength) > 0 ? (vue.openBlock(), vue.createElementBlock("td", {
7654
+ extracolumnlength.value > 0 ? (vue.openBlock(), vue.createElementBlock("td", {
7658
7655
  key: 0,
7659
- colspan: vue.unref(extracolumnlength)
7656
+ colspan: extracolumnlength.value
7660
7657
  }, null, 8, _hoisted_31)) : vue.createCommentVNode("", true),
7661
7658
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.columns, (col, j) => {
7662
7659
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
@@ -1,91 +1,91 @@
1
1
 
2
- .expandbtn[data-v-4d01a2fa] {
2
+ .expandbtn[data-v-da3bc8d5] {
3
3
  cursor: pointer;
4
- }
4
+ }
5
5
 
6
- .rightpanelbtn[data-v-d739c6bf] {
7
- cursor: pointer;
8
- display: inline-flex;
9
- align-items: center;
10
- justify-content: center;
11
- width: 24px;
6
+ .rightpanelbtn[data-v-b373d5f7] {
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
- .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
+ }
53
53
  /* Clear All Filters Button */
54
- .bh-clear-all-button {
55
- display: flex;
56
- align-items: center;
57
- justify-content: center;
58
- width: 28px;
59
- height: 28px;
60
- padding: 0;
61
- border: 1px solid #e0e6ed;
62
- border-radius: 4px;
63
- background: #e0e6ed;
64
- color: rgba(0, 0, 0, 0.4);
65
- cursor: not-allowed;
54
+ .bh-clear-all-button {
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+ width: 28px;
59
+ height: 28px;
60
+ padding: 0;
61
+ border: 1px solid #e0e6ed;
62
+ border-radius: 4px;
63
+ background: #e0e6ed;
64
+ color: rgba(0, 0, 0, 0.4);
65
+ cursor: not-allowed;
66
66
  transition: all 0.2s ease;
67
67
  }
68
- .bh-clear-all-button:disabled {
68
+ .bh-clear-all-button:disabled {
69
69
  opacity: 0.5;
70
70
  }
71
- .bh-clear-all-button--active {
72
- background: rgba(var(--primary-rgb, 59, 130, 246), 0.1);
73
- border-color: var(--primary, #3b82f6);
74
- color: var(--primary, #3b82f6);
71
+ .bh-clear-all-button--active {
72
+ background: rgba(var(--primary-rgb, 59, 130, 246), 0.1);
73
+ border-color: var(--primary, #3b82f6);
74
+ color: var(--primary, #3b82f6);
75
75
  cursor: pointer;
76
76
  }
77
- .bh-clear-all-button--active:hover {
77
+ .bh-clear-all-button--active:hover {
78
78
  background: rgba(var(--primary-rgb, 59, 130, 246), 0.2);
79
- }
80
-
79
+ }
80
+
81
81
  /* Dark mode */
82
- .dark .bh-clear-all-button {
83
- background: #374151;
84
- border-color: #4b5563;
82
+ .dark .bh-clear-all-button {
83
+ background: #374151;
84
+ border-color: #4b5563;
85
85
  color: rgba(255, 255, 255, 0.4);
86
86
  }
87
- .dark .bh-clear-all-button--active {
88
- background: rgba(var(--primary-rgb, 59, 130, 246), 0.2);
89
- border-color: var(--primary, #3b82f6);
87
+ .dark .bh-clear-all-button--active {
88
+ background: rgba(var(--primary-rgb, 59, 130, 246), 0.2);
89
+ border-color: var(--primary, #3b82f6);
90
90
  color: var(--primary, #3b82f6);
91
- }
91
+ }
@@ -2468,7 +2468,7 @@ const _export_sfc = (sfc, props) => {
2468
2468
  }
2469
2469
  return target;
2470
2470
  };
2471
- const ButtonExpand = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-4d01a2fa"]]);
2471
+ const ButtonExpand = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-da3bc8d5"]]);
2472
2472
  const __default__$4 = {
2473
2473
  name: "ButtonRightPanel"
2474
2474
  };
@@ -2494,7 +2494,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2494
2494
  };
2495
2495
  }
2496
2496
  });
2497
- const ButtonRightPanel = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-d739c6bf"]]);
2497
+ const ButtonRightPanel = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-b373d5f7"]]);
2498
2498
  const sides = ["top", "right", "bottom", "left"];
2499
2499
  const alignments = ["start", "end"];
2500
2500
  const placements = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
@@ -7020,16 +7020,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7020
7020
  filterChange();
7021
7021
  emit("clearAllFilters");
7022
7022
  };
7023
- let extracolumnlength = 0;
7024
- if (props.hasCheckbox) {
7025
- extracolumnlength++;
7026
- }
7027
- if (props.hasSubtable) {
7028
- extracolumnlength++;
7029
- }
7030
- if (props.hasRightPanel) {
7031
- extracolumnlength++;
7032
- }
7023
+ const extracolumnlength = computed(() => {
7024
+ let count = 0;
7025
+ if (props.hasCheckbox) count++;
7026
+ if (props.hasSubtable) count++;
7027
+ if (props.hasRightPanel) count++;
7028
+ return count;
7029
+ });
7033
7030
  const topmenusize = ref(props.topmenusize);
7034
7031
  const topmenuel = ref(null);
7035
7032
  const { height: topmenuheight } = useElementSize(
@@ -7319,7 +7316,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7319
7316
  onClick: withModifiers(($event) => rowClick(item, i2), ["prevent"])
7320
7317
  }, [
7321
7318
  createElementVNode("td", {
7322
- colspan: props.columns.length + unref(extracolumnlength)
7319
+ colspan: props.columns.length + extracolumnlength.value
7323
7320
  }, [
7324
7321
  renderSlot(_ctx.$slots, "tsub", {
7325
7322
  rowData: item,
@@ -7336,7 +7333,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7336
7333
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
7337
7334
  }, [
7338
7335
  createElementVNode("td", {
7339
- colspan: props.columns.length + unref(extracolumnlength),
7336
+ colspan: props.columns.length + extracolumnlength.value,
7340
7337
  class: "!bh-p-0 !bh-border-transparent"
7341
7338
  }, _hoisted_19, 8, _hoisted_17)
7342
7339
  ]);
@@ -7346,9 +7343,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7346
7343
  key: item[uniqueKey.value] ? item[uniqueKey.value] : i2,
7347
7344
  class: "sticky-table-footer"
7348
7345
  }, [
7349
- unref(extracolumnlength) > 0 ? (openBlock(), createElementBlock("td", {
7346
+ extracolumnlength.value > 0 ? (openBlock(), createElementBlock("td", {
7350
7347
  key: 0,
7351
- colspan: unref(extracolumnlength)
7348
+ colspan: extracolumnlength.value
7352
7349
  }, null, 8, _hoisted_20)) : createCommentVNode("", true),
7353
7350
  (openBlock(true), createElementBlock(Fragment, null, renderList(props.columns, (col, j) => {
7354
7351
  return openBlock(), createElementBlock(Fragment, null, [
@@ -7615,7 +7612,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7615
7612
  onClick: withModifiers(($event) => rowClick(item, i2), ["prevent"])
7616
7613
  }, [
7617
7614
  createElementVNode("td", {
7618
- colspan: props.columns.length + unref(extracolumnlength)
7615
+ colspan: props.columns.length + extracolumnlength.value
7619
7616
  }, [
7620
7617
  createElementVNode("div", {
7621
7618
  class: "subtable-container",
@@ -7643,7 +7640,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7643
7640
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
7644
7641
  }, [
7645
7642
  createElementVNode("td", {
7646
- colspan: props.columns.length + unref(extracolumnlength),
7643
+ colspan: props.columns.length + extracolumnlength.value,
7647
7644
  class: "!bh-p-0 !bh-border-transparent"
7648
7645
  }, _hoisted_30, 8, _hoisted_28)
7649
7646
  ]);
@@ -7653,9 +7650,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7653
7650
  key: item[uniqueKey.value] ? item[uniqueKey.value] : i2,
7654
7651
  class: "sticky-table-footer"
7655
7652
  }, [
7656
- unref(extracolumnlength) > 0 ? (openBlock(), createElementBlock("td", {
7653
+ extracolumnlength.value > 0 ? (openBlock(), createElementBlock("td", {
7657
7654
  key: 0,
7658
- colspan: unref(extracolumnlength)
7655
+ colspan: extracolumnlength.value
7659
7656
  }, null, 8, _hoisted_31)) : createCommentVNode("", true),
7660
7657
  (openBlock(true), createElementBlock(Fragment, null, renderList(props.columns, (col, j) => {
7661
7658
  return openBlock(), createElementBlock(Fragment, null, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolusoft/vue3-datatable",
3
- "version": "1.8.47",
3
+ "version": "1.8.48",
4
4
  "description": "Vue3 Datatable - fully customizable & easy to use datatable library",
5
5
  "private": false,
6
6
  "type": "module",