@dolusoft/vue3-datatable 1.8.40 → 1.8.43
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/style.css +1 -1
- package/dist/vue3-datatable-css.css +21 -0
- package/dist/vue3-datatable.cjs +295 -144
- package/dist/vue3-datatable.js +296 -145
- package/package.json +1 -1
package/dist/vue3-datatable.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isRef, onMounted, nextTick, getCurrentScope, onScopeDispose, unref, getCurrentInstance, computed, ref, watch, useSlots, onBeforeUnmount, provide, openBlock, createBlock, resolveDynamicComponent, inject, createElementBlock, normalizeStyle, renderSlot, h as h$2, defineComponent, toRef, Fragment, withModifiers, createVNode, pushScopeId, popScopeId, normalizeClass, normalizeProps, guardReactiveProps, withScopeId, resolveComponent, withKeys, createElementVNode, createCommentVNode, mergeProps, withCtx, toDisplayString, withDirectives, renderList, vModelSelect, createTextVNode, vModelText, vShow, onUnmounted, createSlots, vModelCheckbox } from "vue";
|
|
1
|
+
import { isRef, onMounted, nextTick, getCurrentScope, onScopeDispose, unref, getCurrentInstance, computed, ref, watch, useSlots, onBeforeUnmount, provide, openBlock, createBlock, resolveDynamicComponent, inject, createElementBlock, normalizeStyle, renderSlot, h as h$2, defineComponent, toRef, Fragment, withModifiers, createVNode, pushScopeId, popScopeId, normalizeClass, normalizeProps, guardReactiveProps, withScopeId, resolveComponent, withKeys, createElementVNode, createCommentVNode, mergeProps, withCtx, toDisplayString, withDirectives, renderList, vModelSelect, createTextVNode, vModelText, vShow, onUpdated, onUnmounted, createSlots, vModelCheckbox } from "vue";
|
|
2
2
|
function tryOnScopeDispose(fn) {
|
|
3
3
|
if (getCurrentScope()) {
|
|
4
4
|
onScopeDispose(fn);
|
|
@@ -2378,7 +2378,7 @@ const Icon = defineComponent({
|
|
|
2378
2378
|
const __default__$5 = {
|
|
2379
2379
|
name: "buttonExpand"
|
|
2380
2380
|
};
|
|
2381
|
-
const _sfc_main$
|
|
2381
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
2382
2382
|
...__default__$5,
|
|
2383
2383
|
props: {
|
|
2384
2384
|
item: { default: [] },
|
|
@@ -2468,11 +2468,11 @@ const _export_sfc = (sfc, props) => {
|
|
|
2468
2468
|
}
|
|
2469
2469
|
return target;
|
|
2470
2470
|
};
|
|
2471
|
-
const ButtonExpand = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2471
|
+
const ButtonExpand = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-4d01a2fa"]]);
|
|
2472
2472
|
const __default__$4 = {
|
|
2473
2473
|
name: "ButtonRightPanel"
|
|
2474
2474
|
};
|
|
2475
|
-
const _sfc_main$
|
|
2475
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2476
2476
|
...__default__$4,
|
|
2477
2477
|
props: {
|
|
2478
2478
|
item: { default: [] }
|
|
@@ -2494,7 +2494,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2494
2494
|
};
|
|
2495
2495
|
}
|
|
2496
2496
|
});
|
|
2497
|
-
const ButtonRightPanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2497
|
+
const ButtonRightPanel = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-d739c6bf"]]);
|
|
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]), []);
|
|
@@ -4863,11 +4863,11 @@ defineComponent({
|
|
|
4863
4863
|
}
|
|
4864
4864
|
});
|
|
4865
4865
|
const Vt = Ce;
|
|
4866
|
-
const _hoisted_1$
|
|
4866
|
+
const _hoisted_1$7 = { class: "bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden" };
|
|
4867
4867
|
const __default__$3 = {
|
|
4868
4868
|
name: "columnFilter"
|
|
4869
4869
|
};
|
|
4870
|
-
const _sfc_main$
|
|
4870
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
4871
4871
|
...__default__$3,
|
|
4872
4872
|
props: ["column", "columnFilterLang"],
|
|
4873
4873
|
emits: ["close", "filterChange"],
|
|
@@ -4892,7 +4892,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
4892
4892
|
ref: menuRef,
|
|
4893
4893
|
class: "bh-filter-menu bh-absolute bh-z-[1] bh-bg-white dark:bh-bg-gray-800 bh-shadow-md bh-rounded-md bh-top-full bh-right-0 bh-w-32 bh-mt-1 bh-border bh-border-solid bh-border-gray-200 dark:bh-border-gray-600"
|
|
4894
4894
|
}, [
|
|
4895
|
-
createElementVNode("div", _hoisted_1$
|
|
4895
|
+
createElementVNode("div", _hoisted_1$7, [
|
|
4896
4896
|
createElementVNode("button", {
|
|
4897
4897
|
type: "button",
|
|
4898
4898
|
class: normalizeClass({ active: props.column.condition === "" }),
|
|
@@ -5055,10 +5055,10 @@ const FILTER_CONDITIONS = {
|
|
|
5055
5055
|
{ value: "NotEqual", label: "Not Equal", icon: "≠" }
|
|
5056
5056
|
]
|
|
5057
5057
|
};
|
|
5058
|
-
const _hoisted_1$
|
|
5059
|
-
const _hoisted_2$
|
|
5060
|
-
const _hoisted_3$
|
|
5061
|
-
const _hoisted_4$
|
|
5058
|
+
const _hoisted_1$6 = { class: "bh-p-2" };
|
|
5059
|
+
const _hoisted_2$6 = { class: "bh-mb-2" };
|
|
5060
|
+
const _hoisted_3$6 = /* @__PURE__ */ createElementVNode("label", { class: "bh-text-xs bh-font-medium bh-text-gray-600 dark:bh-text-gray-400 bh-block bh-mb-1" }, " Filter Condition ", -1);
|
|
5061
|
+
const _hoisted_4$3 = ["value"];
|
|
5062
5062
|
const _hoisted_5$2 = {
|
|
5063
5063
|
key: 0,
|
|
5064
5064
|
class: "bh-border-t bh-border-gray-200 dark:bh-border-gray-600 bh-pt-2 bh-mt-2"
|
|
@@ -5068,7 +5068,7 @@ const _hoisted_7$2 = { class: "bh-flex bh-flex-col bh-gap-1" };
|
|
|
5068
5068
|
const __default__$2 = {
|
|
5069
5069
|
name: "columnFilterNew"
|
|
5070
5070
|
};
|
|
5071
|
-
const _sfc_main$
|
|
5071
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
5072
5072
|
...__default__$2,
|
|
5073
5073
|
props: [
|
|
5074
5074
|
"column",
|
|
@@ -5133,9 +5133,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
5133
5133
|
ref: dropdownRef,
|
|
5134
5134
|
class: "bh-filter-dropdown-content bh-min-w-[220px]"
|
|
5135
5135
|
}, [
|
|
5136
|
-
createElementVNode("div", _hoisted_1$
|
|
5137
|
-
createElementVNode("div", _hoisted_2$
|
|
5138
|
-
_hoisted_3$
|
|
5136
|
+
createElementVNode("div", _hoisted_1$6, [
|
|
5137
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
5138
|
+
_hoisted_3$6,
|
|
5139
5139
|
withDirectives(createElementVNode("select", {
|
|
5140
5140
|
ref_key: "selectRef",
|
|
5141
5141
|
ref: selectRef,
|
|
@@ -5149,7 +5149,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
5149
5149
|
return openBlock(), createElementBlock("option", {
|
|
5150
5150
|
key: cond.value,
|
|
5151
5151
|
value: cond.value
|
|
5152
|
-
}, toDisplayString(cond.icon ? cond.icon + " " : "") + toDisplayString(getTranslatedLabel(cond)), 9, _hoisted_4$
|
|
5152
|
+
}, toDisplayString(cond.icon ? cond.icon + " " : "") + toDisplayString(getTranslatedLabel(cond)), 9, _hoisted_4$3);
|
|
5153
5153
|
}), 128))
|
|
5154
5154
|
], 544), [
|
|
5155
5155
|
[vModelSelect, selectedCondition.value]
|
|
@@ -5188,13 +5188,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
5188
5188
|
};
|
|
5189
5189
|
}
|
|
5190
5190
|
});
|
|
5191
|
-
const _sfc_main$
|
|
5192
|
-
const _hoisted_1$
|
|
5191
|
+
const _sfc_main$5 = {};
|
|
5192
|
+
const _hoisted_1$5 = {
|
|
5193
5193
|
version: "1.1",
|
|
5194
5194
|
viewBox: "0 0 17 12",
|
|
5195
5195
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5196
5196
|
};
|
|
5197
|
-
const _hoisted_2$
|
|
5197
|
+
const _hoisted_2$5 = /* @__PURE__ */ createElementVNode("g", {
|
|
5198
5198
|
fill: "none",
|
|
5199
5199
|
"fill-rule": "evenodd"
|
|
5200
5200
|
}, [
|
|
@@ -5206,15 +5206,15 @@ const _hoisted_2$4 = /* @__PURE__ */ createElementVNode("g", {
|
|
|
5206
5206
|
/* @__PURE__ */ createElementVNode("path", { d: "m25.576 11.414c0.56558 0.55188 0.56558 1.4439 0 1.9961l-9.404 9.176c-0.28213 0.27529-0.65247 0.41385-1.0228 0.41385-0.37034 0-0.74068-0.13855-1.0228-0.41385l-4.7019-4.588c-0.56584-0.55188-0.56584-1.4442 0-1.9961 0.56558-0.55214 1.4798-0.55214 2.0456 0l3.679 3.5899 8.3812-8.1779c0.56558-0.55214 1.4798-0.55214 2.0456 0z" })
|
|
5207
5207
|
])
|
|
5208
5208
|
], -1);
|
|
5209
|
-
const _hoisted_3$
|
|
5210
|
-
_hoisted_2$
|
|
5209
|
+
const _hoisted_3$5 = [
|
|
5210
|
+
_hoisted_2$5
|
|
5211
5211
|
];
|
|
5212
5212
|
function _sfc_render$2(_ctx, _cache) {
|
|
5213
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
5213
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$5, _hoisted_3$5);
|
|
5214
5214
|
}
|
|
5215
|
-
const iconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5216
|
-
const _sfc_main$
|
|
5217
|
-
const _hoisted_1$
|
|
5215
|
+
const iconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$2]]);
|
|
5216
|
+
const _sfc_main$4 = {};
|
|
5217
|
+
const _hoisted_1$4 = {
|
|
5218
5218
|
viewBox: "0 0 24 24",
|
|
5219
5219
|
width: "24",
|
|
5220
5220
|
height: "24",
|
|
@@ -5225,21 +5225,21 @@ const _hoisted_1$3 = {
|
|
|
5225
5225
|
"stroke-linejoin": "round",
|
|
5226
5226
|
class: "css-i6dzq1"
|
|
5227
5227
|
};
|
|
5228
|
-
const _hoisted_2$
|
|
5228
|
+
const _hoisted_2$4 = /* @__PURE__ */ createElementVNode("line", {
|
|
5229
5229
|
x1: "5",
|
|
5230
5230
|
y1: "12",
|
|
5231
5231
|
x2: "19",
|
|
5232
5232
|
y2: "12"
|
|
5233
5233
|
}, null, -1);
|
|
5234
|
-
const _hoisted_3$
|
|
5235
|
-
_hoisted_2$
|
|
5234
|
+
const _hoisted_3$4 = [
|
|
5235
|
+
_hoisted_2$4
|
|
5236
5236
|
];
|
|
5237
5237
|
function _sfc_render$1(_ctx, _cache) {
|
|
5238
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
5238
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$4, _hoisted_3$4);
|
|
5239
5239
|
}
|
|
5240
|
-
const iconDash = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5241
|
-
const _sfc_main$
|
|
5242
|
-
const _hoisted_1$
|
|
5240
|
+
const iconDash = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$1]]);
|
|
5241
|
+
const _sfc_main$3 = {};
|
|
5242
|
+
const _hoisted_1$3 = {
|
|
5243
5243
|
viewBox: "0 0 24 24",
|
|
5244
5244
|
width: "24",
|
|
5245
5245
|
height: "24",
|
|
@@ -5250,21 +5250,21 @@ const _hoisted_1$2 = {
|
|
|
5250
5250
|
"stroke-linejoin": "round",
|
|
5251
5251
|
class: "css-i6dzq1"
|
|
5252
5252
|
};
|
|
5253
|
-
const _hoisted_2$
|
|
5254
|
-
const _hoisted_3$
|
|
5255
|
-
_hoisted_2$
|
|
5253
|
+
const _hoisted_2$3 = /* @__PURE__ */ createElementVNode("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }, null, -1);
|
|
5254
|
+
const _hoisted_3$3 = [
|
|
5255
|
+
_hoisted_2$3
|
|
5256
5256
|
];
|
|
5257
5257
|
function _sfc_render(_ctx, _cache) {
|
|
5258
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
5258
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$3, _hoisted_3$3);
|
|
5259
5259
|
}
|
|
5260
|
-
const iconFilter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5261
|
-
const _hoisted_1$
|
|
5262
|
-
const _hoisted_2$
|
|
5263
|
-
const _hoisted_3$
|
|
5260
|
+
const iconFilter = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render]]);
|
|
5261
|
+
const _hoisted_1$2 = { key: "hdrrow" };
|
|
5262
|
+
const _hoisted_2$2 = { class: "bh-checkbox" };
|
|
5263
|
+
const _hoisted_3$2 = {
|
|
5264
5264
|
key: 0,
|
|
5265
5265
|
class: "bh-filter bh-flex bh-justify-center"
|
|
5266
5266
|
};
|
|
5267
|
-
const _hoisted_4$
|
|
5267
|
+
const _hoisted_4$2 = ["disabled"];
|
|
5268
5268
|
const _hoisted_5$1 = /* @__PURE__ */ createElementVNode("svg", {
|
|
5269
5269
|
width: "14",
|
|
5270
5270
|
height: "14",
|
|
@@ -5397,7 +5397,7 @@ const _hoisted_36$1 = ["onClick"];
|
|
|
5397
5397
|
const __default__$1 = {
|
|
5398
5398
|
name: "columnHeader"
|
|
5399
5399
|
};
|
|
5400
|
-
const _sfc_main$
|
|
5400
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
5401
5401
|
...__default__$1,
|
|
5402
5402
|
props: [
|
|
5403
5403
|
"all",
|
|
@@ -5462,6 +5462,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5462
5462
|
watch(
|
|
5463
5463
|
() => filterInputs.value[col.field],
|
|
5464
5464
|
(newValue) => {
|
|
5465
|
+
var _a2;
|
|
5465
5466
|
const column = columnsMap.value.get(col.field);
|
|
5466
5467
|
if (!column) return;
|
|
5467
5468
|
const isEmpty = newValue === "" || newValue === null || newValue === void 0;
|
|
@@ -5492,7 +5493,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5492
5493
|
if (isEmpty) {
|
|
5493
5494
|
processChange();
|
|
5494
5495
|
} else {
|
|
5495
|
-
|
|
5496
|
+
const debounceTime = ((_a2 = props.all) == null ? void 0 : _a2.filterDebounce) ?? 100;
|
|
5497
|
+
debounceTimers.set(col.field, setTimeout(processChange, debounceTime));
|
|
5496
5498
|
}
|
|
5497
5499
|
}
|
|
5498
5500
|
);
|
|
@@ -5670,7 +5672,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5670
5672
|
});
|
|
5671
5673
|
return (_ctx, _cache) => {
|
|
5672
5674
|
const _component_VDropdown = resolveComponent("VDropdown");
|
|
5673
|
-
return openBlock(), createElementBlock("tr", _hoisted_1$
|
|
5675
|
+
return openBlock(), createElementBlock("tr", _hoisted_1$2, [
|
|
5674
5676
|
props.all.hasCheckbox ? (openBlock(), createElementBlock("th", {
|
|
5675
5677
|
key: "chkall",
|
|
5676
5678
|
style: normalizeStyle({
|
|
@@ -5683,7 +5685,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5683
5685
|
"bh-left-0": props.all.stickyFirstColumn
|
|
5684
5686
|
})
|
|
5685
5687
|
}, [
|
|
5686
|
-
createElementVNode("div", _hoisted_2$
|
|
5688
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
5687
5689
|
createElementVNode("input", {
|
|
5688
5690
|
ref_key: "selectedAll",
|
|
5689
5691
|
ref: selectedAll,
|
|
@@ -5698,7 +5700,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5698
5700
|
createVNode(iconDash, { class: "intermediate" })
|
|
5699
5701
|
])
|
|
5700
5702
|
]),
|
|
5701
|
-
props.all.columnFilter && !props.isFooter && clearButtonLocation.value === "checkbox" ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
5703
|
+
props.all.columnFilter && !props.isFooter && clearButtonLocation.value === "checkbox" ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
|
|
5702
5704
|
createVNode(unref(Vt), {
|
|
5703
5705
|
placement: "top",
|
|
5704
5706
|
distance: 6
|
|
@@ -5715,7 +5717,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5715
5717
|
}]),
|
|
5716
5718
|
disabled: !hasAnyActiveFilterLocal.value,
|
|
5717
5719
|
onClick: withModifiers(handleClearAllFilters, ["stop"])
|
|
5718
|
-
}, _hoisted_6$1, 10, _hoisted_4$
|
|
5720
|
+
}, _hoisted_6$1, 10, _hoisted_4$2)) : createCommentVNode("", true)
|
|
5719
5721
|
]),
|
|
5720
5722
|
_: 1
|
|
5721
5723
|
})
|
|
@@ -5971,7 +5973,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5971
5973
|
}])
|
|
5972
5974
|
}, null, 8, ["class"])
|
|
5973
5975
|
], 10, _hoisted_35$1)) : createCommentVNode("", true),
|
|
5974
|
-
!props.all.useNewColumnFilter ? withDirectives((openBlock(), createBlock(_sfc_main$
|
|
5976
|
+
!props.all.useNewColumnFilter ? withDirectives((openBlock(), createBlock(_sfc_main$7, {
|
|
5975
5977
|
key: 3,
|
|
5976
5978
|
column: col,
|
|
5977
5979
|
type: col.type,
|
|
@@ -5991,7 +5993,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5991
5993
|
onApplyHide: _cache[8] || (_cache[8] = ($event) => emit("toggleFilterMenu", null))
|
|
5992
5994
|
}, {
|
|
5993
5995
|
popper: withCtx(() => [
|
|
5994
|
-
createVNode(_sfc_main$
|
|
5996
|
+
createVNode(_sfc_main$6, {
|
|
5995
5997
|
column: col,
|
|
5996
5998
|
columnFilterLang: props.columnFilterLang,
|
|
5997
5999
|
currentSortColumn: props.currentSortColumn,
|
|
@@ -6033,6 +6035,111 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
6033
6035
|
};
|
|
6034
6036
|
}
|
|
6035
6037
|
});
|
|
6038
|
+
const _hoisted_1$1 = ["innerHTML"];
|
|
6039
|
+
const _hoisted_2$1 = { class: "bh-tooltip-content" };
|
|
6040
|
+
const _hoisted_3$1 = ["innerHTML"];
|
|
6041
|
+
const _hoisted_4$1 = ["innerHTML"];
|
|
6042
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
6043
|
+
__name: "truncated-cell",
|
|
6044
|
+
props: {
|
|
6045
|
+
value: {},
|
|
6046
|
+
truncate: { type: Boolean },
|
|
6047
|
+
maxWidth: {},
|
|
6048
|
+
truncateLines: {},
|
|
6049
|
+
showTooltip: { type: Boolean },
|
|
6050
|
+
html: { type: Boolean }
|
|
6051
|
+
},
|
|
6052
|
+
setup(__props) {
|
|
6053
|
+
const props = __props;
|
|
6054
|
+
const cellRef = ref(null);
|
|
6055
|
+
const isOverflowing = ref(false);
|
|
6056
|
+
const checkOverflow = () => {
|
|
6057
|
+
if (cellRef.value && props.truncate) {
|
|
6058
|
+
const el = cellRef.value;
|
|
6059
|
+
if (props.truncateLines === 1) {
|
|
6060
|
+
isOverflowing.value = el.scrollWidth > el.clientWidth;
|
|
6061
|
+
} else {
|
|
6062
|
+
isOverflowing.value = el.scrollHeight > el.clientHeight;
|
|
6063
|
+
}
|
|
6064
|
+
} else {
|
|
6065
|
+
isOverflowing.value = false;
|
|
6066
|
+
}
|
|
6067
|
+
};
|
|
6068
|
+
onMounted(checkOverflow);
|
|
6069
|
+
onUpdated(checkOverflow);
|
|
6070
|
+
const tooltipContent = computed(() => {
|
|
6071
|
+
return String(props.value ?? "");
|
|
6072
|
+
});
|
|
6073
|
+
const shouldShowTooltip = computed(() => {
|
|
6074
|
+
return props.truncate && props.showTooltip && isOverflowing.value;
|
|
6075
|
+
});
|
|
6076
|
+
const cellStyle = computed(() => {
|
|
6077
|
+
if (!props.truncate) return {};
|
|
6078
|
+
const style = {};
|
|
6079
|
+
if (props.maxWidth) {
|
|
6080
|
+
style.maxWidth = props.maxWidth;
|
|
6081
|
+
}
|
|
6082
|
+
if (props.truncateLines > 1) {
|
|
6083
|
+
style["-webkit-line-clamp"] = props.truncateLines;
|
|
6084
|
+
}
|
|
6085
|
+
return style;
|
|
6086
|
+
});
|
|
6087
|
+
return (_ctx, _cache) => {
|
|
6088
|
+
return shouldShowTooltip.value ? (openBlock(), createBlock(unref(Vt), {
|
|
6089
|
+
key: 0,
|
|
6090
|
+
placement: "top",
|
|
6091
|
+
distance: 6,
|
|
6092
|
+
delay: { show: 300, hide: 100 }
|
|
6093
|
+
}, {
|
|
6094
|
+
popper: withCtx(() => [
|
|
6095
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
6096
|
+
_ctx.html ? (openBlock(), createElementBlock("span", {
|
|
6097
|
+
key: 0,
|
|
6098
|
+
innerHTML: tooltipContent.value
|
|
6099
|
+
}, null, 8, _hoisted_3$1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
6100
|
+
createTextVNode(toDisplayString(tooltipContent.value), 1)
|
|
6101
|
+
], 64))
|
|
6102
|
+
])
|
|
6103
|
+
]),
|
|
6104
|
+
default: withCtx(() => [
|
|
6105
|
+
createElementVNode("div", {
|
|
6106
|
+
ref_key: "cellRef",
|
|
6107
|
+
ref: cellRef,
|
|
6108
|
+
class: normalizeClass(["bh-truncate-cell", {
|
|
6109
|
+
"bh-truncate-single": _ctx.truncateLines === 1,
|
|
6110
|
+
"bh-truncate-multi": _ctx.truncateLines > 1
|
|
6111
|
+
}]),
|
|
6112
|
+
style: normalizeStyle(cellStyle.value)
|
|
6113
|
+
}, [
|
|
6114
|
+
_ctx.html ? (openBlock(), createElementBlock("span", {
|
|
6115
|
+
key: 0,
|
|
6116
|
+
innerHTML: _ctx.value
|
|
6117
|
+
}, null, 8, _hoisted_1$1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
6118
|
+
createTextVNode(toDisplayString(_ctx.value), 1)
|
|
6119
|
+
], 64))
|
|
6120
|
+
], 6)
|
|
6121
|
+
]),
|
|
6122
|
+
_: 1
|
|
6123
|
+
})) : (openBlock(), createElementBlock("div", {
|
|
6124
|
+
key: 1,
|
|
6125
|
+
ref_key: "cellRef",
|
|
6126
|
+
ref: cellRef,
|
|
6127
|
+
class: normalizeClass(["bh-truncate-cell", {
|
|
6128
|
+
"bh-truncate-single": _ctx.truncate && _ctx.truncateLines === 1,
|
|
6129
|
+
"bh-truncate-multi": _ctx.truncate && _ctx.truncateLines > 1
|
|
6130
|
+
}]),
|
|
6131
|
+
style: normalizeStyle(cellStyle.value)
|
|
6132
|
+
}, [
|
|
6133
|
+
_ctx.html ? (openBlock(), createElementBlock("span", {
|
|
6134
|
+
key: 0,
|
|
6135
|
+
innerHTML: _ctx.value
|
|
6136
|
+
}, null, 8, _hoisted_4$1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
6137
|
+
createTextVNode(toDisplayString(_ctx.value), 1)
|
|
6138
|
+
], 64))
|
|
6139
|
+
], 6));
|
|
6140
|
+
};
|
|
6141
|
+
}
|
|
6142
|
+
});
|
|
6036
6143
|
const _hoisted_1 = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" };
|
|
6037
6144
|
const _hoisted_2 = { class: "bh-flex bh-h-full" };
|
|
6038
6145
|
const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", null, "##Left Menu Slot##", -1);
|
|
@@ -6061,102 +6168,100 @@ const _hoisted_11 = ["onClick"];
|
|
|
6061
6168
|
const _hoisted_12 = { class: "bh-checkbox" };
|
|
6062
6169
|
const _hoisted_13 = ["value"];
|
|
6063
6170
|
const _hoisted_14 = ["onContextmenu"];
|
|
6064
|
-
const _hoisted_15 = ["
|
|
6065
|
-
const _hoisted_16 = ["
|
|
6171
|
+
const _hoisted_15 = ["onClick"];
|
|
6172
|
+
const _hoisted_16 = ["colspan"];
|
|
6066
6173
|
const _hoisted_17 = ["colspan"];
|
|
6067
|
-
const _hoisted_18 =
|
|
6068
|
-
const _hoisted_19 =
|
|
6069
|
-
|
|
6070
|
-
_hoisted_19
|
|
6174
|
+
const _hoisted_18 = /* @__PURE__ */ createElementVNode("div", { class: "bh-skeleton-box bh-h-8" }, null, -1);
|
|
6175
|
+
const _hoisted_19 = [
|
|
6176
|
+
_hoisted_18
|
|
6071
6177
|
];
|
|
6072
|
-
const
|
|
6073
|
-
const
|
|
6074
|
-
const
|
|
6075
|
-
const
|
|
6076
|
-
const
|
|
6077
|
-
const
|
|
6078
|
-
const
|
|
6079
|
-
const
|
|
6080
|
-
const
|
|
6081
|
-
const
|
|
6082
|
-
const
|
|
6083
|
-
|
|
6084
|
-
_hoisted_31
|
|
6178
|
+
const _hoisted_20 = ["colspan"];
|
|
6179
|
+
const _hoisted_21 = /* @__PURE__ */ createElementVNode("span", null, "##Table Header Area Slot##", -1);
|
|
6180
|
+
const _hoisted_22 = ["onClick"];
|
|
6181
|
+
const _hoisted_23 = { class: "bh-checkbox" };
|
|
6182
|
+
const _hoisted_24 = ["value"];
|
|
6183
|
+
const _hoisted_25 = ["onContextmenu"];
|
|
6184
|
+
const _hoisted_26 = ["onClick"];
|
|
6185
|
+
const _hoisted_27 = ["colspan"];
|
|
6186
|
+
const _hoisted_28 = ["colspan"];
|
|
6187
|
+
const _hoisted_29 = /* @__PURE__ */ createElementVNode("div", { class: "bh-skeleton-box bh-h-8" }, null, -1);
|
|
6188
|
+
const _hoisted_30 = [
|
|
6189
|
+
_hoisted_29
|
|
6085
6190
|
];
|
|
6086
|
-
const
|
|
6087
|
-
const
|
|
6088
|
-
const
|
|
6089
|
-
const
|
|
6090
|
-
const
|
|
6091
|
-
const
|
|
6092
|
-
const
|
|
6093
|
-
const
|
|
6191
|
+
const _hoisted_31 = ["colspan"];
|
|
6192
|
+
const _hoisted_32 = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" };
|
|
6193
|
+
const _hoisted_33 = { class: "bh-pagination-info bh-flex bh-items-center" };
|
|
6194
|
+
const _hoisted_34 = { class: "bh-mr-2" };
|
|
6195
|
+
const _hoisted_35 = ["value"];
|
|
6196
|
+
const _hoisted_36 = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" };
|
|
6197
|
+
const _hoisted_37 = ["innerHTML"];
|
|
6198
|
+
const _hoisted_38 = {
|
|
6094
6199
|
key: 1,
|
|
6095
6200
|
"aria-hidden": "true",
|
|
6096
6201
|
width: "14",
|
|
6097
6202
|
height: "14",
|
|
6098
6203
|
viewBox: "0 0 16 16"
|
|
6099
6204
|
};
|
|
6100
|
-
const
|
|
6205
|
+
const _hoisted_39 = /* @__PURE__ */ createElementVNode("g", {
|
|
6101
6206
|
fill: "currentColor",
|
|
6102
6207
|
"fill-rule": "evenodd"
|
|
6103
6208
|
}, [
|
|
6104
6209
|
/* @__PURE__ */ createElementVNode("path", { d: "M8.354 1.646a.5.5 0 0 1 0 .708L2.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z" }),
|
|
6105
6210
|
/* @__PURE__ */ createElementVNode("path", { d: "M12.354 1.646a.5.5 0 0 1 0 .708L6.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z" })
|
|
6106
6211
|
], -1);
|
|
6107
|
-
const
|
|
6108
|
-
|
|
6212
|
+
const _hoisted_40 = [
|
|
6213
|
+
_hoisted_39
|
|
6109
6214
|
];
|
|
6110
|
-
const
|
|
6111
|
-
const
|
|
6215
|
+
const _hoisted_41 = ["innerHTML"];
|
|
6216
|
+
const _hoisted_42 = {
|
|
6112
6217
|
key: 1,
|
|
6113
6218
|
"aria-hidden": "true",
|
|
6114
6219
|
width: "14",
|
|
6115
6220
|
height: "14",
|
|
6116
6221
|
viewBox: "0 0 16 16"
|
|
6117
6222
|
};
|
|
6118
|
-
const
|
|
6223
|
+
const _hoisted_43 = /* @__PURE__ */ createElementVNode("path", {
|
|
6119
6224
|
fill: "currentColor",
|
|
6120
6225
|
"fill-rule": "evenodd",
|
|
6121
6226
|
d: "M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"
|
|
6122
6227
|
}, null, -1);
|
|
6123
|
-
const
|
|
6124
|
-
|
|
6228
|
+
const _hoisted_44 = [
|
|
6229
|
+
_hoisted_43
|
|
6125
6230
|
];
|
|
6126
|
-
const
|
|
6127
|
-
const
|
|
6128
|
-
const
|
|
6231
|
+
const _hoisted_45 = ["onClick"];
|
|
6232
|
+
const _hoisted_46 = ["innerHTML"];
|
|
6233
|
+
const _hoisted_47 = {
|
|
6129
6234
|
key: 1,
|
|
6130
6235
|
"aria-hidden": "true",
|
|
6131
6236
|
width: "14",
|
|
6132
6237
|
height: "14",
|
|
6133
6238
|
viewBox: "0 0 16 16"
|
|
6134
6239
|
};
|
|
6135
|
-
const
|
|
6240
|
+
const _hoisted_48 = /* @__PURE__ */ createElementVNode("path", {
|
|
6136
6241
|
fill: "currentColor",
|
|
6137
6242
|
"fill-rule": "evenodd",
|
|
6138
6243
|
d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8L4.646 2.354a.5.5 0 0 1 0-.708z"
|
|
6139
6244
|
}, null, -1);
|
|
6140
|
-
const
|
|
6141
|
-
|
|
6245
|
+
const _hoisted_49 = [
|
|
6246
|
+
_hoisted_48
|
|
6142
6247
|
];
|
|
6143
|
-
const
|
|
6144
|
-
const
|
|
6248
|
+
const _hoisted_50 = ["innerHTML"];
|
|
6249
|
+
const _hoisted_51 = {
|
|
6145
6250
|
key: 1,
|
|
6146
6251
|
"aria-hidden": "true",
|
|
6147
6252
|
width: "14",
|
|
6148
6253
|
height: "14",
|
|
6149
6254
|
viewBox: "0 0 16 16"
|
|
6150
6255
|
};
|
|
6151
|
-
const
|
|
6256
|
+
const _hoisted_52 = /* @__PURE__ */ createElementVNode("g", {
|
|
6152
6257
|
fill: "currentColor",
|
|
6153
6258
|
"fill-rule": "evenodd"
|
|
6154
6259
|
}, [
|
|
6155
6260
|
/* @__PURE__ */ createElementVNode("path", { d: "M3.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L9.293 8L3.646 2.354a.5.5 0 0 1 0-.708z" }),
|
|
6156
6261
|
/* @__PURE__ */ createElementVNode("path", { d: "M7.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L13.293 8L7.646 2.354a.5.5 0 0 1 0-.708z" })
|
|
6157
6262
|
], -1);
|
|
6158
|
-
const
|
|
6159
|
-
|
|
6263
|
+
const _hoisted_53 = [
|
|
6264
|
+
_hoisted_52
|
|
6160
6265
|
];
|
|
6161
6266
|
const __default__ = {
|
|
6162
6267
|
name: "Vue3Datatable"
|
|
@@ -6193,6 +6298,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6193
6298
|
sortDirection: { default: "asc" },
|
|
6194
6299
|
columnFilter: { type: Boolean, default: false },
|
|
6195
6300
|
columnFilterLang: { default: null },
|
|
6301
|
+
filterDebounce: { default: 100 },
|
|
6196
6302
|
useNewColumnFilter: { type: Boolean, default: false },
|
|
6197
6303
|
showFloatingFilterLabel: { type: Boolean, default: false },
|
|
6198
6304
|
pagination: { type: Boolean, default: true },
|
|
@@ -6230,7 +6336,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6230
6336
|
footerOffset: { default: 0 },
|
|
6231
6337
|
tableRightOffset: { default: 0 },
|
|
6232
6338
|
tableLeftOffset: { default: 5 },
|
|
6233
|
-
initialLeftMenuState: { type: Boolean, default: void 0 }
|
|
6339
|
+
initialLeftMenuState: { type: Boolean, default: void 0 },
|
|
6340
|
+
truncate: { type: Boolean, default: true },
|
|
6341
|
+
defaultMaxWidth: { default: "400px" },
|
|
6342
|
+
truncateLines: { default: 1 }
|
|
6234
6343
|
},
|
|
6235
6344
|
emits: [
|
|
6236
6345
|
"change",
|
|
@@ -6263,6 +6372,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6263
6372
|
item.search = item.search !== void 0 ? item.search : true;
|
|
6264
6373
|
item.sort = item.sort !== void 0 ? item.sort : true;
|
|
6265
6374
|
item.html = item.html !== void 0 ? item.html : false;
|
|
6375
|
+
item.truncate = item.truncate !== void 0 ? item.truncate : props.truncate;
|
|
6376
|
+
item.maxWidth = item.maxWidth !== void 0 ? item.maxWidth : props.defaultMaxWidth;
|
|
6377
|
+
item.truncateLines = item.truncateLines !== void 0 ? item.truncateLines : props.truncateLines;
|
|
6378
|
+
item.showTooltip = item.showTooltip !== void 0 ? item.showTooltip : true;
|
|
6266
6379
|
if (item.value !== void 0 && item.value !== null && item.value !== "") {
|
|
6267
6380
|
item.condition = item.condition || "Equal";
|
|
6268
6381
|
} else {
|
|
@@ -7121,7 +7234,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7121
7234
|
"bh-sticky bh-top-0 bh-z-10": props.stickyHeader
|
|
7122
7235
|
})
|
|
7123
7236
|
}, [
|
|
7124
|
-
createVNode(_sfc_main$
|
|
7237
|
+
createVNode(_sfc_main$2, {
|
|
7125
7238
|
ref_key: "columnHeaderRef",
|
|
7126
7239
|
ref: columnHeaderRef,
|
|
7127
7240
|
all: props,
|
|
@@ -7230,18 +7343,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7230
7343
|
props.hasCheckbox && j === 0 && props.stickyFirstColumn ? "bh-left-[52px]" : "",
|
|
7231
7344
|
col.cellClass ? col.cellClass : ""
|
|
7232
7345
|
]),
|
|
7346
|
+
style: normalizeStyle({ maxWidth: col.truncate !== false ? col.maxWidth : void 0 }),
|
|
7233
7347
|
onContextmenu: ($event) => handleCellContextMenu($event, item, col, cellValue(item, col.field), i2, j)
|
|
7234
7348
|
}, [
|
|
7235
7349
|
unref(slots)[col.field] ? renderSlot(_ctx.$slots, col.field, {
|
|
7236
7350
|
key: 0,
|
|
7237
7351
|
value: item
|
|
7238
|
-
}) : col.cellRenderer ? (openBlock(),
|
|
7352
|
+
}) : col.cellRenderer ? (openBlock(), createBlock(_sfc_main$1, {
|
|
7239
7353
|
key: 1,
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7354
|
+
value: col.cellRenderer(item),
|
|
7355
|
+
truncate: col.truncate !== false,
|
|
7356
|
+
"max-width": col.maxWidth,
|
|
7357
|
+
"truncate-lines": col.truncateLines || 1,
|
|
7358
|
+
"show-tooltip": col.showTooltip !== false,
|
|
7359
|
+
html: true
|
|
7360
|
+
}, null, 8, ["value", "truncate", "max-width", "truncate-lines", "show-tooltip"])) : (openBlock(), createBlock(_sfc_main$1, {
|
|
7361
|
+
key: 2,
|
|
7362
|
+
value: cellValue(item, col.field),
|
|
7363
|
+
truncate: col.truncate !== false,
|
|
7364
|
+
"max-width": col.maxWidth,
|
|
7365
|
+
"truncate-lines": col.truncateLines || 1,
|
|
7366
|
+
"show-tooltip": col.showTooltip !== false,
|
|
7367
|
+
html: col.html
|
|
7368
|
+
}, null, 8, ["value", "truncate", "max-width", "truncate-lines", "show-tooltip", "html"]))
|
|
7369
|
+
], 46, _hoisted_14)) : createCommentVNode("", true)
|
|
7245
7370
|
], 64);
|
|
7246
7371
|
}), 256))
|
|
7247
7372
|
], 10, _hoisted_11)) : createCommentVNode("", true),
|
|
@@ -7261,8 +7386,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7261
7386
|
rowIndex: i2,
|
|
7262
7387
|
filterItems: filterItems.value
|
|
7263
7388
|
})
|
|
7264
|
-
], 8,
|
|
7265
|
-
], 10,
|
|
7389
|
+
], 8, _hoisted_16)
|
|
7390
|
+
], 10, _hoisted_15)) : createCommentVNode("", true)
|
|
7266
7391
|
], 64);
|
|
7267
7392
|
}), 128)),
|
|
7268
7393
|
!filterRowCount.value && currentLoader.value && _ctx.skeletonloader ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(props.pageSize, (i2) => {
|
|
@@ -7273,7 +7398,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7273
7398
|
createElementVNode("td", {
|
|
7274
7399
|
colspan: props.columns.length + unref(extracolumnlength),
|
|
7275
7400
|
class: "!bh-p-0 !bh-border-transparent"
|
|
7276
|
-
},
|
|
7401
|
+
}, _hoisted_19, 8, _hoisted_17)
|
|
7277
7402
|
]);
|
|
7278
7403
|
}), 128)) : createCommentVNode("", true),
|
|
7279
7404
|
filterRowCount.value ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(props.footerRows, (item, i2) => {
|
|
@@ -7284,7 +7409,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7284
7409
|
unref(extracolumnlength) > 0 ? (openBlock(), createElementBlock("td", {
|
|
7285
7410
|
key: 0,
|
|
7286
7411
|
colspan: unref(extracolumnlength)
|
|
7287
|
-
}, null, 8,
|
|
7412
|
+
}, null, 8, _hoisted_20)) : createCommentVNode("", true),
|
|
7288
7413
|
(openBlock(true), createElementBlock(Fragment, null, renderList(props.columns, (col, j) => {
|
|
7289
7414
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
7290
7415
|
!col.hide && !col.dataOnly ? (openBlock(), createElementBlock("td", {
|
|
@@ -7294,12 +7419,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7294
7419
|
j === 0 && props.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
|
|
7295
7420
|
props.hasCheckbox && j === 0 && props.stickyFirstColumn ? "bh-left-[52px]" : "",
|
|
7296
7421
|
col.cellClass ? col.cellClass : ""
|
|
7297
|
-
])
|
|
7422
|
+
]),
|
|
7423
|
+
style: normalizeStyle({ maxWidth: col.truncate !== false ? col.maxWidth : void 0 })
|
|
7298
7424
|
}, [
|
|
7299
|
-
item.cells.find((x2) => x2.field == col.field) ? (openBlock(),
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7425
|
+
item.cells.find((x2) => x2.field == col.field) ? (openBlock(), createBlock(_sfc_main$1, {
|
|
7426
|
+
key: 0,
|
|
7427
|
+
value: item.cells.find((x2) => x2.field == col.field).text,
|
|
7428
|
+
truncate: col.truncate !== false,
|
|
7429
|
+
"max-width": col.maxWidth,
|
|
7430
|
+
"truncate-lines": col.truncateLines || 1,
|
|
7431
|
+
"show-tooltip": col.showTooltip !== false,
|
|
7432
|
+
html: false
|
|
7433
|
+
}, null, 8, ["value", "truncate", "max-width", "truncate-lines", "show-tooltip"])) : createCommentVNode("", true)
|
|
7434
|
+
], 6)) : createCommentVNode("", true)
|
|
7303
7435
|
], 64);
|
|
7304
7436
|
}), 256))
|
|
7305
7437
|
]);
|
|
@@ -7311,7 +7443,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7311
7443
|
"bh-sticky bh-bottom-0": props.stickyHeader
|
|
7312
7444
|
})
|
|
7313
7445
|
}, [
|
|
7314
|
-
createVNode(_sfc_main$
|
|
7446
|
+
createVNode(_sfc_main$2, {
|
|
7315
7447
|
all: props,
|
|
7316
7448
|
currentSortColumn: currentSortColumn.value,
|
|
7317
7449
|
currentSortDirection: currentSortDirection.value,
|
|
@@ -7378,7 +7510,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7378
7510
|
style: normalizeStyle({ height: _ctx.headerAreaHeight, "margin-bottom": "10px" })
|
|
7379
7511
|
}, [
|
|
7380
7512
|
renderSlot(_ctx.$slots, "tableHeaderArea", {}, () => [
|
|
7381
|
-
|
|
7513
|
+
_hoisted_21
|
|
7382
7514
|
])
|
|
7383
7515
|
], 4)) : createCommentVNode("", true),
|
|
7384
7516
|
renderSlot(_ctx.$slots, "tableactionheader"),
|
|
@@ -7397,7 +7529,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7397
7529
|
"bh-sticky bh-top-0 bh-z-10": props.stickyHeader
|
|
7398
7530
|
})
|
|
7399
7531
|
}, [
|
|
7400
|
-
createVNode(_sfc_main$
|
|
7532
|
+
createVNode(_sfc_main$2, {
|
|
7401
7533
|
all: props,
|
|
7402
7534
|
expandedrows: expandedrows.value,
|
|
7403
7535
|
currentSortColumn: currentSortColumn.value,
|
|
@@ -7448,14 +7580,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7448
7580
|
"bh-sticky bh-left-0 bh-bg-blue-light": props.stickyFirstColumn
|
|
7449
7581
|
})
|
|
7450
7582
|
}, [
|
|
7451
|
-
createElementVNode("div",
|
|
7583
|
+
createElementVNode("div", _hoisted_23, [
|
|
7452
7584
|
withDirectives(createElementVNode("input", {
|
|
7453
7585
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => selected.value = $event),
|
|
7454
7586
|
type: "checkbox",
|
|
7455
7587
|
value: getRowKey(i2),
|
|
7456
7588
|
onClick: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
7457
7589
|
}, ["stop"]))
|
|
7458
|
-
}, null, 8,
|
|
7590
|
+
}, null, 8, _hoisted_24), [
|
|
7459
7591
|
[vModelCheckbox, selected.value]
|
|
7460
7592
|
]),
|
|
7461
7593
|
createElementVNode("div", null, [
|
|
@@ -7504,21 +7636,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7504
7636
|
props.hasCheckbox && j === 0 && props.stickyFirstColumn ? "bh-left-[52px]" : "",
|
|
7505
7637
|
col.cellClass ? col.cellClass : ""
|
|
7506
7638
|
]),
|
|
7639
|
+
style: normalizeStyle({ maxWidth: col.truncate !== false ? col.maxWidth : void 0 }),
|
|
7507
7640
|
onContextmenu: ($event) => handleCellContextMenu($event, item, col, cellValue(item, col.field), i2, j)
|
|
7508
7641
|
}, [
|
|
7509
7642
|
unref(slots)[col.field] ? renderSlot(_ctx.$slots, col.field, {
|
|
7510
7643
|
key: 0,
|
|
7511
7644
|
value: item
|
|
7512
|
-
}) : col.cellRenderer ? (openBlock(),
|
|
7645
|
+
}) : col.cellRenderer ? (openBlock(), createBlock(_sfc_main$1, {
|
|
7513
7646
|
key: 1,
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
|
|
7647
|
+
value: col.cellRenderer(item),
|
|
7648
|
+
truncate: col.truncate !== false,
|
|
7649
|
+
"max-width": col.maxWidth,
|
|
7650
|
+
"truncate-lines": col.truncateLines || 1,
|
|
7651
|
+
"show-tooltip": col.showTooltip !== false,
|
|
7652
|
+
html: true
|
|
7653
|
+
}, null, 8, ["value", "truncate", "max-width", "truncate-lines", "show-tooltip"])) : (openBlock(), createBlock(_sfc_main$1, {
|
|
7654
|
+
key: 2,
|
|
7655
|
+
value: cellValue(item, col.field),
|
|
7656
|
+
truncate: col.truncate !== false,
|
|
7657
|
+
"max-width": col.maxWidth,
|
|
7658
|
+
"truncate-lines": col.truncateLines || 1,
|
|
7659
|
+
"show-tooltip": col.showTooltip !== false,
|
|
7660
|
+
html: col.html
|
|
7661
|
+
}, null, 8, ["value", "truncate", "max-width", "truncate-lines", "show-tooltip", "html"]))
|
|
7662
|
+
], 46, _hoisted_25)) : createCommentVNode("", true)
|
|
7519
7663
|
], 64);
|
|
7520
7664
|
}), 256))
|
|
7521
|
-
], 10,
|
|
7665
|
+
], 10, _hoisted_22)) : createCommentVNode("", true),
|
|
7522
7666
|
isRowExpanded(item, i2) && props.hasSubtable ? (openBlock(), createElementBlock("tr", {
|
|
7523
7667
|
key: 1,
|
|
7524
7668
|
class: normalizeClass([
|
|
@@ -7546,8 +7690,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7546
7690
|
filterItems: filterItems.value
|
|
7547
7691
|
})
|
|
7548
7692
|
], 4)
|
|
7549
|
-
], 8,
|
|
7550
|
-
], 10,
|
|
7693
|
+
], 8, _hoisted_27)
|
|
7694
|
+
], 10, _hoisted_26)) : createCommentVNode("", true)
|
|
7551
7695
|
], 64);
|
|
7552
7696
|
}), 128)),
|
|
7553
7697
|
!filterRowCount.value && currentLoader.value && _ctx.skeletonloader ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(props.pageSize, (i2) => {
|
|
@@ -7558,7 +7702,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7558
7702
|
createElementVNode("td", {
|
|
7559
7703
|
colspan: props.columns.length + unref(extracolumnlength),
|
|
7560
7704
|
class: "!bh-p-0 !bh-border-transparent"
|
|
7561
|
-
},
|
|
7705
|
+
}, _hoisted_30, 8, _hoisted_28)
|
|
7562
7706
|
]);
|
|
7563
7707
|
}), 128)) : createCommentVNode("", true),
|
|
7564
7708
|
filterRowCount.value ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(props.footerRows, (item, i2) => {
|
|
@@ -7569,7 +7713,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7569
7713
|
unref(extracolumnlength) > 0 ? (openBlock(), createElementBlock("td", {
|
|
7570
7714
|
key: 0,
|
|
7571
7715
|
colspan: unref(extracolumnlength)
|
|
7572
|
-
}, null, 8,
|
|
7716
|
+
}, null, 8, _hoisted_31)) : createCommentVNode("", true),
|
|
7573
7717
|
(openBlock(true), createElementBlock(Fragment, null, renderList(props.columns, (col, j) => {
|
|
7574
7718
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
7575
7719
|
!col.hide && !col.dataOnly ? (openBlock(), createElementBlock("td", {
|
|
@@ -7579,12 +7723,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7579
7723
|
j === 0 && props.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
|
|
7580
7724
|
props.hasCheckbox && j === 0 && props.stickyFirstColumn ? "bh-left-[52px]" : "",
|
|
7581
7725
|
col.cellClass ? col.cellClass : ""
|
|
7582
|
-
])
|
|
7726
|
+
]),
|
|
7727
|
+
style: normalizeStyle({ maxWidth: col.truncate !== false ? col.maxWidth : void 0 })
|
|
7583
7728
|
}, [
|
|
7584
|
-
item.cells.find((x2) => x2.field == col.field) ? (openBlock(),
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7729
|
+
item.cells.find((x2) => x2.field == col.field) ? (openBlock(), createBlock(_sfc_main$1, {
|
|
7730
|
+
key: 0,
|
|
7731
|
+
value: item.cells.find((x2) => x2.field == col.field).text,
|
|
7732
|
+
truncate: col.truncate !== false,
|
|
7733
|
+
"max-width": col.maxWidth,
|
|
7734
|
+
"truncate-lines": col.truncateLines || 1,
|
|
7735
|
+
"show-tooltip": col.showTooltip !== false,
|
|
7736
|
+
html: false
|
|
7737
|
+
}, null, 8, ["value", "truncate", "max-width", "truncate-lines", "show-tooltip"])) : createCommentVNode("", true)
|
|
7738
|
+
], 6)) : createCommentVNode("", true)
|
|
7588
7739
|
], 64);
|
|
7589
7740
|
}), 256))
|
|
7590
7741
|
]);
|
|
@@ -7594,7 +7745,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7594
7745
|
key: 0,
|
|
7595
7746
|
class: normalizeClass({ "bh-sticky bh-bottom-0": props.stickyHeader })
|
|
7596
7747
|
}, [
|
|
7597
|
-
createVNode(_sfc_main$
|
|
7748
|
+
createVNode(_sfc_main$2, {
|
|
7598
7749
|
all: props,
|
|
7599
7750
|
currentSortColumn: currentSortColumn.value,
|
|
7600
7751
|
currentSortDirection: currentSortDirection.value,
|
|
@@ -7657,7 +7808,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7657
7808
|
"sticky-footer": props.stickyFooter
|
|
7658
7809
|
}])
|
|
7659
7810
|
}, [
|
|
7660
|
-
createElementVNode("div",
|
|
7811
|
+
createElementVNode("div", _hoisted_32, [
|
|
7661
7812
|
_ctx.enablefooterpagination ? renderSlot(_ctx.$slots, "footerpageinfo", {
|
|
7662
7813
|
key: 0,
|
|
7663
7814
|
paginationInfo: _ctx.paginationInfo,
|
|
@@ -7670,8 +7821,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7670
7821
|
stringFormat,
|
|
7671
7822
|
setPageSize
|
|
7672
7823
|
}, () => [
|
|
7673
|
-
createElementVNode("div",
|
|
7674
|
-
createElementVNode("span",
|
|
7824
|
+
createElementVNode("div", _hoisted_33, [
|
|
7825
|
+
createElementVNode("span", _hoisted_34, toDisplayString(stringFormat(
|
|
7675
7826
|
props.paginationInfo,
|
|
7676
7827
|
filterRowCount.value ? offset2.value : 0,
|
|
7677
7828
|
limit.value,
|
|
@@ -7686,7 +7837,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7686
7837
|
return openBlock(), createElementBlock("option", {
|
|
7687
7838
|
value: option,
|
|
7688
7839
|
key: option
|
|
7689
|
-
}, toDisplayString(option), 9,
|
|
7840
|
+
}, toDisplayString(option), 9, _hoisted_35);
|
|
7690
7841
|
}), 128))
|
|
7691
7842
|
], 512)), [
|
|
7692
7843
|
[vModelSelect, currentPageSize.value]
|
|
@@ -7702,7 +7853,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7702
7853
|
nextPage,
|
|
7703
7854
|
previousPage
|
|
7704
7855
|
}, () => [
|
|
7705
|
-
createElementVNode("div",
|
|
7856
|
+
createElementVNode("div", _hoisted_36, [
|
|
7706
7857
|
props.showFirstPage ? (openBlock(), createElementBlock("button", {
|
|
7707
7858
|
key: 0,
|
|
7708
7859
|
type: "button",
|
|
@@ -7712,7 +7863,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7712
7863
|
props.firstArrow ? (openBlock(), createElementBlock("span", {
|
|
7713
7864
|
key: 0,
|
|
7714
7865
|
innerHTML: props.firstArrow
|
|
7715
|
-
}, null, 8,
|
|
7866
|
+
}, null, 8, _hoisted_37)) : (openBlock(), createElementBlock("svg", _hoisted_38, _hoisted_40))
|
|
7716
7867
|
], 2)) : createCommentVNode("", true),
|
|
7717
7868
|
createElementVNode("button", {
|
|
7718
7869
|
type: "button",
|
|
@@ -7722,7 +7873,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7722
7873
|
props.previousArrow ? (openBlock(), createElementBlock("span", {
|
|
7723
7874
|
key: 0,
|
|
7724
7875
|
innerHTML: props.previousArrow
|
|
7725
|
-
}, null, 8,
|
|
7876
|
+
}, null, 8, _hoisted_41)) : (openBlock(), createElementBlock("svg", _hoisted_42, _hoisted_44))
|
|
7726
7877
|
], 2),
|
|
7727
7878
|
props.showNumbers ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(paging.value, (page) => {
|
|
7728
7879
|
return openBlock(), createElementBlock("button", {
|
|
@@ -7733,7 +7884,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7733
7884
|
"bh-active": page === currentPage.value
|
|
7734
7885
|
}]),
|
|
7735
7886
|
onClick: ($event) => movePage(page)
|
|
7736
|
-
}, toDisplayString(page), 11,
|
|
7887
|
+
}, toDisplayString(page), 11, _hoisted_45);
|
|
7737
7888
|
}), 128)) : createCommentVNode("", true),
|
|
7738
7889
|
createElementVNode("button", {
|
|
7739
7890
|
type: "button",
|
|
@@ -7743,7 +7894,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7743
7894
|
props.nextArrow ? (openBlock(), createElementBlock("span", {
|
|
7744
7895
|
key: 0,
|
|
7745
7896
|
innerHTML: props.nextArrow
|
|
7746
|
-
}, null, 8,
|
|
7897
|
+
}, null, 8, _hoisted_46)) : (openBlock(), createElementBlock("svg", _hoisted_47, _hoisted_49))
|
|
7747
7898
|
], 2),
|
|
7748
7899
|
props.showLastPage ? (openBlock(), createElementBlock("button", {
|
|
7749
7900
|
key: 2,
|
|
@@ -7754,7 +7905,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7754
7905
|
props.lastArrow ? (openBlock(), createElementBlock("span", {
|
|
7755
7906
|
key: 0,
|
|
7756
7907
|
innerHTML: props.lastArrow
|
|
7757
|
-
}, null, 8,
|
|
7908
|
+
}, null, 8, _hoisted_50)) : (openBlock(), createElementBlock("svg", _hoisted_51, _hoisted_53))
|
|
7758
7909
|
], 2)) : createCommentVNode("", true)
|
|
7759
7910
|
])
|
|
7760
7911
|
]) : createCommentVNode("", true)
|