@dolusoft/vue3-datatable 1.8.42 → 1.8.44
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 +291 -143
- package/dist/vue3-datatable.js +292 -144
- 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",
|
|
@@ -5672,7 +5672,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5672
5672
|
});
|
|
5673
5673
|
return (_ctx, _cache) => {
|
|
5674
5674
|
const _component_VDropdown = resolveComponent("VDropdown");
|
|
5675
|
-
return openBlock(), createElementBlock("tr", _hoisted_1$
|
|
5675
|
+
return openBlock(), createElementBlock("tr", _hoisted_1$2, [
|
|
5676
5676
|
props.all.hasCheckbox ? (openBlock(), createElementBlock("th", {
|
|
5677
5677
|
key: "chkall",
|
|
5678
5678
|
style: normalizeStyle({
|
|
@@ -5685,7 +5685,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5685
5685
|
"bh-left-0": props.all.stickyFirstColumn
|
|
5686
5686
|
})
|
|
5687
5687
|
}, [
|
|
5688
|
-
createElementVNode("div", _hoisted_2$
|
|
5688
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
5689
5689
|
createElementVNode("input", {
|
|
5690
5690
|
ref_key: "selectedAll",
|
|
5691
5691
|
ref: selectedAll,
|
|
@@ -5700,7 +5700,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5700
5700
|
createVNode(iconDash, { class: "intermediate" })
|
|
5701
5701
|
])
|
|
5702
5702
|
]),
|
|
5703
|
-
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, [
|
|
5704
5704
|
createVNode(unref(Vt), {
|
|
5705
5705
|
placement: "top",
|
|
5706
5706
|
distance: 6
|
|
@@ -5717,7 +5717,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5717
5717
|
}]),
|
|
5718
5718
|
disabled: !hasAnyActiveFilterLocal.value,
|
|
5719
5719
|
onClick: withModifiers(handleClearAllFilters, ["stop"])
|
|
5720
|
-
}, _hoisted_6$1, 10, _hoisted_4$
|
|
5720
|
+
}, _hoisted_6$1, 10, _hoisted_4$2)) : createCommentVNode("", true)
|
|
5721
5721
|
]),
|
|
5722
5722
|
_: 1
|
|
5723
5723
|
})
|
|
@@ -5973,7 +5973,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5973
5973
|
}])
|
|
5974
5974
|
}, null, 8, ["class"])
|
|
5975
5975
|
], 10, _hoisted_35$1)) : createCommentVNode("", true),
|
|
5976
|
-
!props.all.useNewColumnFilter ? withDirectives((openBlock(), createBlock(_sfc_main$
|
|
5976
|
+
!props.all.useNewColumnFilter ? withDirectives((openBlock(), createBlock(_sfc_main$7, {
|
|
5977
5977
|
key: 3,
|
|
5978
5978
|
column: col,
|
|
5979
5979
|
type: col.type,
|
|
@@ -5993,7 +5993,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5993
5993
|
onApplyHide: _cache[8] || (_cache[8] = ($event) => emit("toggleFilterMenu", null))
|
|
5994
5994
|
}, {
|
|
5995
5995
|
popper: withCtx(() => [
|
|
5996
|
-
createVNode(_sfc_main$
|
|
5996
|
+
createVNode(_sfc_main$6, {
|
|
5997
5997
|
column: col,
|
|
5998
5998
|
columnFilterLang: props.columnFilterLang,
|
|
5999
5999
|
currentSortColumn: props.currentSortColumn,
|
|
@@ -6035,6 +6035,111 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
6035
6035
|
};
|
|
6036
6036
|
}
|
|
6037
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
|
+
});
|
|
6038
6143
|
const _hoisted_1 = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" };
|
|
6039
6144
|
const _hoisted_2 = { class: "bh-flex bh-h-full" };
|
|
6040
6145
|
const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", null, "##Left Menu Slot##", -1);
|
|
@@ -6063,102 +6168,100 @@ const _hoisted_11 = ["onClick"];
|
|
|
6063
6168
|
const _hoisted_12 = { class: "bh-checkbox" };
|
|
6064
6169
|
const _hoisted_13 = ["value"];
|
|
6065
6170
|
const _hoisted_14 = ["onContextmenu"];
|
|
6066
|
-
const _hoisted_15 = ["
|
|
6067
|
-
const _hoisted_16 = ["
|
|
6171
|
+
const _hoisted_15 = ["onClick"];
|
|
6172
|
+
const _hoisted_16 = ["colspan"];
|
|
6068
6173
|
const _hoisted_17 = ["colspan"];
|
|
6069
|
-
const _hoisted_18 =
|
|
6070
|
-
const _hoisted_19 =
|
|
6071
|
-
|
|
6072
|
-
_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
|
|
6073
6177
|
];
|
|
6074
|
-
const
|
|
6075
|
-
const
|
|
6076
|
-
const
|
|
6077
|
-
const
|
|
6078
|
-
const
|
|
6079
|
-
const
|
|
6080
|
-
const
|
|
6081
|
-
const
|
|
6082
|
-
const
|
|
6083
|
-
const
|
|
6084
|
-
const
|
|
6085
|
-
|
|
6086
|
-
_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
|
|
6087
6190
|
];
|
|
6088
|
-
const
|
|
6089
|
-
const
|
|
6090
|
-
const
|
|
6091
|
-
const
|
|
6092
|
-
const
|
|
6093
|
-
const
|
|
6094
|
-
const
|
|
6095
|
-
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 = {
|
|
6096
6199
|
key: 1,
|
|
6097
6200
|
"aria-hidden": "true",
|
|
6098
6201
|
width: "14",
|
|
6099
6202
|
height: "14",
|
|
6100
6203
|
viewBox: "0 0 16 16"
|
|
6101
6204
|
};
|
|
6102
|
-
const
|
|
6205
|
+
const _hoisted_39 = /* @__PURE__ */ createElementVNode("g", {
|
|
6103
6206
|
fill: "currentColor",
|
|
6104
6207
|
"fill-rule": "evenodd"
|
|
6105
6208
|
}, [
|
|
6106
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" }),
|
|
6107
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" })
|
|
6108
6211
|
], -1);
|
|
6109
|
-
const
|
|
6110
|
-
|
|
6212
|
+
const _hoisted_40 = [
|
|
6213
|
+
_hoisted_39
|
|
6111
6214
|
];
|
|
6112
|
-
const
|
|
6113
|
-
const
|
|
6215
|
+
const _hoisted_41 = ["innerHTML"];
|
|
6216
|
+
const _hoisted_42 = {
|
|
6114
6217
|
key: 1,
|
|
6115
6218
|
"aria-hidden": "true",
|
|
6116
6219
|
width: "14",
|
|
6117
6220
|
height: "14",
|
|
6118
6221
|
viewBox: "0 0 16 16"
|
|
6119
6222
|
};
|
|
6120
|
-
const
|
|
6223
|
+
const _hoisted_43 = /* @__PURE__ */ createElementVNode("path", {
|
|
6121
6224
|
fill: "currentColor",
|
|
6122
6225
|
"fill-rule": "evenodd",
|
|
6123
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"
|
|
6124
6227
|
}, null, -1);
|
|
6125
|
-
const
|
|
6126
|
-
|
|
6228
|
+
const _hoisted_44 = [
|
|
6229
|
+
_hoisted_43
|
|
6127
6230
|
];
|
|
6128
|
-
const
|
|
6129
|
-
const
|
|
6130
|
-
const
|
|
6231
|
+
const _hoisted_45 = ["onClick"];
|
|
6232
|
+
const _hoisted_46 = ["innerHTML"];
|
|
6233
|
+
const _hoisted_47 = {
|
|
6131
6234
|
key: 1,
|
|
6132
6235
|
"aria-hidden": "true",
|
|
6133
6236
|
width: "14",
|
|
6134
6237
|
height: "14",
|
|
6135
6238
|
viewBox: "0 0 16 16"
|
|
6136
6239
|
};
|
|
6137
|
-
const
|
|
6240
|
+
const _hoisted_48 = /* @__PURE__ */ createElementVNode("path", {
|
|
6138
6241
|
fill: "currentColor",
|
|
6139
6242
|
"fill-rule": "evenodd",
|
|
6140
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"
|
|
6141
6244
|
}, null, -1);
|
|
6142
|
-
const
|
|
6143
|
-
|
|
6245
|
+
const _hoisted_49 = [
|
|
6246
|
+
_hoisted_48
|
|
6144
6247
|
];
|
|
6145
|
-
const
|
|
6146
|
-
const
|
|
6248
|
+
const _hoisted_50 = ["innerHTML"];
|
|
6249
|
+
const _hoisted_51 = {
|
|
6147
6250
|
key: 1,
|
|
6148
6251
|
"aria-hidden": "true",
|
|
6149
6252
|
width: "14",
|
|
6150
6253
|
height: "14",
|
|
6151
6254
|
viewBox: "0 0 16 16"
|
|
6152
6255
|
};
|
|
6153
|
-
const
|
|
6256
|
+
const _hoisted_52 = /* @__PURE__ */ createElementVNode("g", {
|
|
6154
6257
|
fill: "currentColor",
|
|
6155
6258
|
"fill-rule": "evenodd"
|
|
6156
6259
|
}, [
|
|
6157
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" }),
|
|
6158
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" })
|
|
6159
6262
|
], -1);
|
|
6160
|
-
const
|
|
6161
|
-
|
|
6263
|
+
const _hoisted_53 = [
|
|
6264
|
+
_hoisted_52
|
|
6162
6265
|
];
|
|
6163
6266
|
const __default__ = {
|
|
6164
6267
|
name: "Vue3Datatable"
|
|
@@ -6233,7 +6336,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6233
6336
|
footerOffset: { default: 0 },
|
|
6234
6337
|
tableRightOffset: { default: 0 },
|
|
6235
6338
|
tableLeftOffset: { default: 5 },
|
|
6236
|
-
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 }
|
|
6237
6343
|
},
|
|
6238
6344
|
emits: [
|
|
6239
6345
|
"change",
|
|
@@ -6266,6 +6372,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6266
6372
|
item.search = item.search !== void 0 ? item.search : true;
|
|
6267
6373
|
item.sort = item.sort !== void 0 ? item.sort : true;
|
|
6268
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 || props.defaultMaxWidth;
|
|
6377
|
+
item.truncateLines = item.truncateLines || props.truncateLines;
|
|
6378
|
+
item.showTooltip = item.showTooltip !== void 0 ? item.showTooltip : true;
|
|
6269
6379
|
if (item.value !== void 0 && item.value !== null && item.value !== "") {
|
|
6270
6380
|
item.condition = item.condition || "Equal";
|
|
6271
6381
|
} else {
|
|
@@ -7124,7 +7234,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7124
7234
|
"bh-sticky bh-top-0 bh-z-10": props.stickyHeader
|
|
7125
7235
|
})
|
|
7126
7236
|
}, [
|
|
7127
|
-
createVNode(_sfc_main$
|
|
7237
|
+
createVNode(_sfc_main$2, {
|
|
7128
7238
|
ref_key: "columnHeaderRef",
|
|
7129
7239
|
ref: columnHeaderRef,
|
|
7130
7240
|
all: props,
|
|
@@ -7233,18 +7343,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7233
7343
|
props.hasCheckbox && j === 0 && props.stickyFirstColumn ? "bh-left-[52px]" : "",
|
|
7234
7344
|
col.cellClass ? col.cellClass : ""
|
|
7235
7345
|
]),
|
|
7346
|
+
style: normalizeStyle({ maxWidth: col.truncate !== false ? col.maxWidth : void 0 }),
|
|
7236
7347
|
onContextmenu: ($event) => handleCellContextMenu($event, item, col, cellValue(item, col.field), i2, j)
|
|
7237
7348
|
}, [
|
|
7238
7349
|
unref(slots)[col.field] ? renderSlot(_ctx.$slots, col.field, {
|
|
7239
7350
|
key: 0,
|
|
7240
7351
|
value: item
|
|
7241
|
-
}) : col.cellRenderer ? (openBlock(),
|
|
7352
|
+
}) : col.cellRenderer ? (openBlock(), createBlock(_sfc_main$1, {
|
|
7242
7353
|
key: 1,
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
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)
|
|
7248
7370
|
], 64);
|
|
7249
7371
|
}), 256))
|
|
7250
7372
|
], 10, _hoisted_11)) : createCommentVNode("", true),
|
|
@@ -7264,8 +7386,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7264
7386
|
rowIndex: i2,
|
|
7265
7387
|
filterItems: filterItems.value
|
|
7266
7388
|
})
|
|
7267
|
-
], 8,
|
|
7268
|
-
], 10,
|
|
7389
|
+
], 8, _hoisted_16)
|
|
7390
|
+
], 10, _hoisted_15)) : createCommentVNode("", true)
|
|
7269
7391
|
], 64);
|
|
7270
7392
|
}), 128)),
|
|
7271
7393
|
!filterRowCount.value && currentLoader.value && _ctx.skeletonloader ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(props.pageSize, (i2) => {
|
|
@@ -7276,7 +7398,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7276
7398
|
createElementVNode("td", {
|
|
7277
7399
|
colspan: props.columns.length + unref(extracolumnlength),
|
|
7278
7400
|
class: "!bh-p-0 !bh-border-transparent"
|
|
7279
|
-
},
|
|
7401
|
+
}, _hoisted_19, 8, _hoisted_17)
|
|
7280
7402
|
]);
|
|
7281
7403
|
}), 128)) : createCommentVNode("", true),
|
|
7282
7404
|
filterRowCount.value ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(props.footerRows, (item, i2) => {
|
|
@@ -7287,7 +7409,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7287
7409
|
unref(extracolumnlength) > 0 ? (openBlock(), createElementBlock("td", {
|
|
7288
7410
|
key: 0,
|
|
7289
7411
|
colspan: unref(extracolumnlength)
|
|
7290
|
-
}, null, 8,
|
|
7412
|
+
}, null, 8, _hoisted_20)) : createCommentVNode("", true),
|
|
7291
7413
|
(openBlock(true), createElementBlock(Fragment, null, renderList(props.columns, (col, j) => {
|
|
7292
7414
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
7293
7415
|
!col.hide && !col.dataOnly ? (openBlock(), createElementBlock("td", {
|
|
@@ -7297,12 +7419,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7297
7419
|
j === 0 && props.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
|
|
7298
7420
|
props.hasCheckbox && j === 0 && props.stickyFirstColumn ? "bh-left-[52px]" : "",
|
|
7299
7421
|
col.cellClass ? col.cellClass : ""
|
|
7300
|
-
])
|
|
7422
|
+
]),
|
|
7423
|
+
style: normalizeStyle({ maxWidth: col.truncate !== false ? col.maxWidth : void 0 })
|
|
7301
7424
|
}, [
|
|
7302
|
-
item.cells.find((x2) => x2.field == col.field) ? (openBlock(),
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
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)
|
|
7306
7435
|
], 64);
|
|
7307
7436
|
}), 256))
|
|
7308
7437
|
]);
|
|
@@ -7314,7 +7443,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7314
7443
|
"bh-sticky bh-bottom-0": props.stickyHeader
|
|
7315
7444
|
})
|
|
7316
7445
|
}, [
|
|
7317
|
-
createVNode(_sfc_main$
|
|
7446
|
+
createVNode(_sfc_main$2, {
|
|
7318
7447
|
all: props,
|
|
7319
7448
|
currentSortColumn: currentSortColumn.value,
|
|
7320
7449
|
currentSortDirection: currentSortDirection.value,
|
|
@@ -7381,7 +7510,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7381
7510
|
style: normalizeStyle({ height: _ctx.headerAreaHeight, "margin-bottom": "10px" })
|
|
7382
7511
|
}, [
|
|
7383
7512
|
renderSlot(_ctx.$slots, "tableHeaderArea", {}, () => [
|
|
7384
|
-
|
|
7513
|
+
_hoisted_21
|
|
7385
7514
|
])
|
|
7386
7515
|
], 4)) : createCommentVNode("", true),
|
|
7387
7516
|
renderSlot(_ctx.$slots, "tableactionheader"),
|
|
@@ -7400,7 +7529,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7400
7529
|
"bh-sticky bh-top-0 bh-z-10": props.stickyHeader
|
|
7401
7530
|
})
|
|
7402
7531
|
}, [
|
|
7403
|
-
createVNode(_sfc_main$
|
|
7532
|
+
createVNode(_sfc_main$2, {
|
|
7404
7533
|
all: props,
|
|
7405
7534
|
expandedrows: expandedrows.value,
|
|
7406
7535
|
currentSortColumn: currentSortColumn.value,
|
|
@@ -7451,14 +7580,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7451
7580
|
"bh-sticky bh-left-0 bh-bg-blue-light": props.stickyFirstColumn
|
|
7452
7581
|
})
|
|
7453
7582
|
}, [
|
|
7454
|
-
createElementVNode("div",
|
|
7583
|
+
createElementVNode("div", _hoisted_23, [
|
|
7455
7584
|
withDirectives(createElementVNode("input", {
|
|
7456
7585
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => selected.value = $event),
|
|
7457
7586
|
type: "checkbox",
|
|
7458
7587
|
value: getRowKey(i2),
|
|
7459
7588
|
onClick: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
7460
7589
|
}, ["stop"]))
|
|
7461
|
-
}, null, 8,
|
|
7590
|
+
}, null, 8, _hoisted_24), [
|
|
7462
7591
|
[vModelCheckbox, selected.value]
|
|
7463
7592
|
]),
|
|
7464
7593
|
createElementVNode("div", null, [
|
|
@@ -7507,21 +7636,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7507
7636
|
props.hasCheckbox && j === 0 && props.stickyFirstColumn ? "bh-left-[52px]" : "",
|
|
7508
7637
|
col.cellClass ? col.cellClass : ""
|
|
7509
7638
|
]),
|
|
7639
|
+
style: normalizeStyle({ maxWidth: col.truncate !== false ? col.maxWidth : void 0 }),
|
|
7510
7640
|
onContextmenu: ($event) => handleCellContextMenu($event, item, col, cellValue(item, col.field), i2, j)
|
|
7511
7641
|
}, [
|
|
7512
7642
|
unref(slots)[col.field] ? renderSlot(_ctx.$slots, col.field, {
|
|
7513
7643
|
key: 0,
|
|
7514
7644
|
value: item
|
|
7515
|
-
}) : col.cellRenderer ? (openBlock(),
|
|
7645
|
+
}) : col.cellRenderer ? (openBlock(), createBlock(_sfc_main$1, {
|
|
7516
7646
|
key: 1,
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
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)
|
|
7522
7663
|
], 64);
|
|
7523
7664
|
}), 256))
|
|
7524
|
-
], 10,
|
|
7665
|
+
], 10, _hoisted_22)) : createCommentVNode("", true),
|
|
7525
7666
|
isRowExpanded(item, i2) && props.hasSubtable ? (openBlock(), createElementBlock("tr", {
|
|
7526
7667
|
key: 1,
|
|
7527
7668
|
class: normalizeClass([
|
|
@@ -7549,8 +7690,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7549
7690
|
filterItems: filterItems.value
|
|
7550
7691
|
})
|
|
7551
7692
|
], 4)
|
|
7552
|
-
], 8,
|
|
7553
|
-
], 10,
|
|
7693
|
+
], 8, _hoisted_27)
|
|
7694
|
+
], 10, _hoisted_26)) : createCommentVNode("", true)
|
|
7554
7695
|
], 64);
|
|
7555
7696
|
}), 128)),
|
|
7556
7697
|
!filterRowCount.value && currentLoader.value && _ctx.skeletonloader ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(props.pageSize, (i2) => {
|
|
@@ -7561,7 +7702,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7561
7702
|
createElementVNode("td", {
|
|
7562
7703
|
colspan: props.columns.length + unref(extracolumnlength),
|
|
7563
7704
|
class: "!bh-p-0 !bh-border-transparent"
|
|
7564
|
-
},
|
|
7705
|
+
}, _hoisted_30, 8, _hoisted_28)
|
|
7565
7706
|
]);
|
|
7566
7707
|
}), 128)) : createCommentVNode("", true),
|
|
7567
7708
|
filterRowCount.value ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(props.footerRows, (item, i2) => {
|
|
@@ -7572,7 +7713,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7572
7713
|
unref(extracolumnlength) > 0 ? (openBlock(), createElementBlock("td", {
|
|
7573
7714
|
key: 0,
|
|
7574
7715
|
colspan: unref(extracolumnlength)
|
|
7575
|
-
}, null, 8,
|
|
7716
|
+
}, null, 8, _hoisted_31)) : createCommentVNode("", true),
|
|
7576
7717
|
(openBlock(true), createElementBlock(Fragment, null, renderList(props.columns, (col, j) => {
|
|
7577
7718
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
7578
7719
|
!col.hide && !col.dataOnly ? (openBlock(), createElementBlock("td", {
|
|
@@ -7582,12 +7723,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7582
7723
|
j === 0 && props.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
|
|
7583
7724
|
props.hasCheckbox && j === 0 && props.stickyFirstColumn ? "bh-left-[52px]" : "",
|
|
7584
7725
|
col.cellClass ? col.cellClass : ""
|
|
7585
|
-
])
|
|
7726
|
+
]),
|
|
7727
|
+
style: normalizeStyle({ maxWidth: col.truncate !== false ? col.maxWidth : void 0 })
|
|
7586
7728
|
}, [
|
|
7587
|
-
item.cells.find((x2) => x2.field == col.field) ? (openBlock(),
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
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)
|
|
7591
7739
|
], 64);
|
|
7592
7740
|
}), 256))
|
|
7593
7741
|
]);
|
|
@@ -7597,7 +7745,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7597
7745
|
key: 0,
|
|
7598
7746
|
class: normalizeClass({ "bh-sticky bh-bottom-0": props.stickyHeader })
|
|
7599
7747
|
}, [
|
|
7600
|
-
createVNode(_sfc_main$
|
|
7748
|
+
createVNode(_sfc_main$2, {
|
|
7601
7749
|
all: props,
|
|
7602
7750
|
currentSortColumn: currentSortColumn.value,
|
|
7603
7751
|
currentSortDirection: currentSortDirection.value,
|
|
@@ -7660,7 +7808,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7660
7808
|
"sticky-footer": props.stickyFooter
|
|
7661
7809
|
}])
|
|
7662
7810
|
}, [
|
|
7663
|
-
createElementVNode("div",
|
|
7811
|
+
createElementVNode("div", _hoisted_32, [
|
|
7664
7812
|
_ctx.enablefooterpagination ? renderSlot(_ctx.$slots, "footerpageinfo", {
|
|
7665
7813
|
key: 0,
|
|
7666
7814
|
paginationInfo: _ctx.paginationInfo,
|
|
@@ -7673,8 +7821,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7673
7821
|
stringFormat,
|
|
7674
7822
|
setPageSize
|
|
7675
7823
|
}, () => [
|
|
7676
|
-
createElementVNode("div",
|
|
7677
|
-
createElementVNode("span",
|
|
7824
|
+
createElementVNode("div", _hoisted_33, [
|
|
7825
|
+
createElementVNode("span", _hoisted_34, toDisplayString(stringFormat(
|
|
7678
7826
|
props.paginationInfo,
|
|
7679
7827
|
filterRowCount.value ? offset2.value : 0,
|
|
7680
7828
|
limit.value,
|
|
@@ -7689,7 +7837,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7689
7837
|
return openBlock(), createElementBlock("option", {
|
|
7690
7838
|
value: option,
|
|
7691
7839
|
key: option
|
|
7692
|
-
}, toDisplayString(option), 9,
|
|
7840
|
+
}, toDisplayString(option), 9, _hoisted_35);
|
|
7693
7841
|
}), 128))
|
|
7694
7842
|
], 512)), [
|
|
7695
7843
|
[vModelSelect, currentPageSize.value]
|
|
@@ -7705,7 +7853,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7705
7853
|
nextPage,
|
|
7706
7854
|
previousPage
|
|
7707
7855
|
}, () => [
|
|
7708
|
-
createElementVNode("div",
|
|
7856
|
+
createElementVNode("div", _hoisted_36, [
|
|
7709
7857
|
props.showFirstPage ? (openBlock(), createElementBlock("button", {
|
|
7710
7858
|
key: 0,
|
|
7711
7859
|
type: "button",
|
|
@@ -7715,7 +7863,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7715
7863
|
props.firstArrow ? (openBlock(), createElementBlock("span", {
|
|
7716
7864
|
key: 0,
|
|
7717
7865
|
innerHTML: props.firstArrow
|
|
7718
|
-
}, null, 8,
|
|
7866
|
+
}, null, 8, _hoisted_37)) : (openBlock(), createElementBlock("svg", _hoisted_38, _hoisted_40))
|
|
7719
7867
|
], 2)) : createCommentVNode("", true),
|
|
7720
7868
|
createElementVNode("button", {
|
|
7721
7869
|
type: "button",
|
|
@@ -7725,7 +7873,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7725
7873
|
props.previousArrow ? (openBlock(), createElementBlock("span", {
|
|
7726
7874
|
key: 0,
|
|
7727
7875
|
innerHTML: props.previousArrow
|
|
7728
|
-
}, null, 8,
|
|
7876
|
+
}, null, 8, _hoisted_41)) : (openBlock(), createElementBlock("svg", _hoisted_42, _hoisted_44))
|
|
7729
7877
|
], 2),
|
|
7730
7878
|
props.showNumbers ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(paging.value, (page) => {
|
|
7731
7879
|
return openBlock(), createElementBlock("button", {
|
|
@@ -7736,7 +7884,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7736
7884
|
"bh-active": page === currentPage.value
|
|
7737
7885
|
}]),
|
|
7738
7886
|
onClick: ($event) => movePage(page)
|
|
7739
|
-
}, toDisplayString(page), 11,
|
|
7887
|
+
}, toDisplayString(page), 11, _hoisted_45);
|
|
7740
7888
|
}), 128)) : createCommentVNode("", true),
|
|
7741
7889
|
createElementVNode("button", {
|
|
7742
7890
|
type: "button",
|
|
@@ -7746,7 +7894,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7746
7894
|
props.nextArrow ? (openBlock(), createElementBlock("span", {
|
|
7747
7895
|
key: 0,
|
|
7748
7896
|
innerHTML: props.nextArrow
|
|
7749
|
-
}, null, 8,
|
|
7897
|
+
}, null, 8, _hoisted_46)) : (openBlock(), createElementBlock("svg", _hoisted_47, _hoisted_49))
|
|
7750
7898
|
], 2),
|
|
7751
7899
|
props.showLastPage ? (openBlock(), createElementBlock("button", {
|
|
7752
7900
|
key: 2,
|
|
@@ -7757,7 +7905,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7757
7905
|
props.lastArrow ? (openBlock(), createElementBlock("span", {
|
|
7758
7906
|
key: 0,
|
|
7759
7907
|
innerHTML: props.lastArrow
|
|
7760
|
-
}, null, 8,
|
|
7908
|
+
}, null, 8, _hoisted_50)) : (openBlock(), createElementBlock("svg", _hoisted_51, _hoisted_53))
|
|
7761
7909
|
], 2)) : createCommentVNode("", true)
|
|
7762
7910
|
])
|
|
7763
7911
|
]) : createCommentVNode("", true)
|