bootstrap-vue-wrapper 3.0.9 → 3.0.11
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
.page-link[data-v-f98dc134]{cursor:pointer}.page-item-first[data-v-f98dc134],.page-item-last[data-v-f98dc134],.page-item-number[data-v-f98dc134]:not(.active){display:none}@media(min-width:576px){.page-item-number[data-v-f98dc134]:not(.active){display:block}}@media(min-width:992px){.page-item-first[data-v-f98dc134],.page-item-last[data-v-f98dc134]{display:block}}.cursor-pointer[data-v-
|
|
1
|
+
.page-link[data-v-f98dc134]{cursor:pointer}.page-item-first[data-v-f98dc134],.page-item-last[data-v-f98dc134],.page-item-number[data-v-f98dc134]:not(.active){display:none}@media(min-width:576px){.page-item-number[data-v-f98dc134]:not(.active){display:block}}@media(min-width:992px){.page-item-first[data-v-f98dc134],.page-item-last[data-v-f98dc134]{display:block}}.cursor-pointer[data-v-f3847220]{cursor:pointer}.bs-skeleton-line[data-v-f3847220]{display:block;width:100%;height:.85em;border-radius:999px;margin:.25rem 0;--sk-base: color-mix(in srgb, var(--bs-body-color) 10%, transparent);--sk-shine: color-mix(in srgb, var(--bs-body-color) 18%, transparent);background-image:linear-gradient(90deg,var(--sk-base) 0%,var(--sk-shine) 20%,var(--sk-base) 40%,var(--sk-base) 100%);background-size:200% 100%;background-position:100% 0;animation:bs-skeleton-shimmer-f3847220 1.15s ease-in-out infinite}@supports not (color: color-mix(in srgb,black,white)){.bs-skeleton-line[data-v-f3847220]{background-image:linear-gradient(90deg,#00000014,#00000024 20%,#00000014 40% 100%)}}@keyframes bs-skeleton-shimmer-f3847220{to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.bs-skeleton-line[data-v-f3847220]{animation:none}}
|
|
@@ -62,6 +62,21 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
62
62
|
type: StringConstructor;
|
|
63
63
|
default: undefined;
|
|
64
64
|
};
|
|
65
|
+
sortAscIconClass: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
sortDescIconClass: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Use skeleton loading instead of spinner when isLoading is true
|
|
75
|
+
*/
|
|
76
|
+
skeletonLoading: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
65
80
|
}>, {}, {}, {}, {
|
|
66
81
|
/**
|
|
67
82
|
* Is order by active by field?
|
|
@@ -157,6 +172,21 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
157
172
|
type: StringConstructor;
|
|
158
173
|
default: undefined;
|
|
159
174
|
};
|
|
175
|
+
sortAscIconClass: {
|
|
176
|
+
type: StringConstructor;
|
|
177
|
+
default: string;
|
|
178
|
+
};
|
|
179
|
+
sortDescIconClass: {
|
|
180
|
+
type: StringConstructor;
|
|
181
|
+
default: string;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Use skeleton loading instead of spinner when isLoading is true
|
|
185
|
+
*/
|
|
186
|
+
skeletonLoading: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: boolean;
|
|
189
|
+
};
|
|
160
190
|
}>> & Readonly<{
|
|
161
191
|
onOrderChanged?: ((...args: any[]) => any) | undefined;
|
|
162
192
|
onRowClicked?: ((...args: any[]) => any) | undefined;
|
|
@@ -168,5 +198,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
168
198
|
tdClass: string;
|
|
169
199
|
rowClickable: boolean;
|
|
170
200
|
emptyText: string;
|
|
201
|
+
sortAscIconClass: string;
|
|
202
|
+
sortDescIconClass: string;
|
|
203
|
+
skeletonLoading: boolean;
|
|
171
204
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
172
205
|
export default _default;
|
|
@@ -1,86 +1,92 @@
|
|
|
1
1
|
import h from "./BsTable.vue2.js";
|
|
2
|
-
import { openBlock as t, createElementBlock as o, createElementVNode as
|
|
2
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as n, Fragment as l, renderList as p, normalizeClass as i, renderSlot as d, createTextVNode as c, toDisplayString as y, createCommentVNode as u } from "vue";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import C from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const m = { class: "table" }, v = ["onClick"],
|
|
6
|
-
function
|
|
5
|
+
const m = { class: "table" }, v = ["onClick"], g = { key: 0 }, $ = ["colspan"], b = { key: 1 }, f = ["colspan"], w = ["textContent"], L = ["data-id", "onClick"], B = { key: 1 }, S = { key: 0 }, T = ["colspan"];
|
|
6
|
+
function D(e, a, N, V, A, E) {
|
|
7
7
|
return t(), o("table", m, [
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
(t(!0), o(
|
|
8
|
+
n("thead", null, [
|
|
9
|
+
n("tr", null, [
|
|
10
|
+
(t(!0), o(l, null, p(e.fields, (s) => (t(), o("th", {
|
|
11
11
|
key: s.key,
|
|
12
|
-
class:
|
|
12
|
+
class: i({
|
|
13
13
|
"cursor-pointer": e.isSortableField(s),
|
|
14
14
|
"active-order-by": e.isActiveOrderBy(s.key),
|
|
15
15
|
thClass: e.thClass
|
|
16
16
|
}),
|
|
17
|
-
onClick: (
|
|
17
|
+
onClick: (k) => e.onHeadClick(s)
|
|
18
18
|
}, [
|
|
19
|
-
|
|
20
|
-
y(
|
|
19
|
+
d(e.$slots, "tr", {}, () => [
|
|
20
|
+
c(y(s.label) + " ", 1),
|
|
21
21
|
e.isActiveOrderBy(s.key) && e.sortDesc !== void 0 ? (t(), o("i", {
|
|
22
22
|
key: 0,
|
|
23
|
-
class:
|
|
24
|
-
}, null, 2)) :
|
|
23
|
+
class: i(e.getSortIconClass())
|
|
24
|
+
}, null, 2)) : u("", !0)
|
|
25
25
|
], !0)
|
|
26
26
|
], 10, v))), 128))
|
|
27
27
|
])
|
|
28
28
|
]),
|
|
29
|
-
|
|
30
|
-
e.isLoading ? (t(), o("tr",
|
|
31
|
-
|
|
29
|
+
n("tbody", null, [
|
|
30
|
+
e.isLoading && !e.skeletonLoading ? (t(), o("tr", g, [
|
|
31
|
+
n("td", {
|
|
32
32
|
colspan: e.fields.length
|
|
33
33
|
}, [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
d(e.$slots, "loading", {}, () => [
|
|
35
|
+
a[0] || (a[0] = n("div", { class: "d-flex justify-content-center p-2" }, [
|
|
36
|
+
n("div", { class: "spinner-border spinner-border-sm" })
|
|
37
37
|
], -1))
|
|
38
38
|
], !0)
|
|
39
|
-
], 8,
|
|
40
|
-
])) : e.items.length === 0 ? (t(), o("tr",
|
|
41
|
-
|
|
39
|
+
], 8, $)
|
|
40
|
+
])) : e.items.length === 0 ? (t(), o("tr", b, [
|
|
41
|
+
n("td", {
|
|
42
42
|
colspan: e.fields.length
|
|
43
43
|
}, [
|
|
44
|
-
|
|
44
|
+
d(e.$slots, "empty", {}, () => [
|
|
45
45
|
e.emptyText !== void 0 ? (t(), o("div", {
|
|
46
46
|
key: 0,
|
|
47
47
|
class: "text-center text-muted small",
|
|
48
|
-
textContent:
|
|
49
|
-
}, null, 8,
|
|
48
|
+
textContent: y(e.emptyText)
|
|
49
|
+
}, null, 8, w)) : u("", !0)
|
|
50
50
|
], !0)
|
|
51
|
-
], 8,
|
|
52
|
-
])) : (t(!0), o(
|
|
53
|
-
|
|
54
|
-
class:
|
|
51
|
+
], 8, f)
|
|
52
|
+
])) : (t(!0), o(l, { key: 2 }, p(e.items, (s, k) => (t(), o(l, { key: k }, [
|
|
53
|
+
n("tr", {
|
|
54
|
+
class: i([s.trClass || "", { "cursor-pointer": e.rowClickable }]),
|
|
55
55
|
"data-id": s.id,
|
|
56
|
-
onClick: (
|
|
56
|
+
onClick: (r) => e.$emit("rowClicked", s)
|
|
57
57
|
}, [
|
|
58
|
-
(t(!0), o(
|
|
59
|
-
key:
|
|
60
|
-
class: d(n.tdClass || e.tdClass)
|
|
58
|
+
(t(!0), o(l, null, p(e.fields, (r) => (t(), o(l, {
|
|
59
|
+
key: r.key
|
|
61
60
|
}, [
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
61
|
+
e.isLoading ? e.skeletonLoading ? (t(), o("td", B, [...a[1] || (a[1] = [
|
|
62
|
+
n("div", { class: "bs-skeleton-line" }, null, -1)
|
|
63
|
+
])])) : u("", !0) : (t(), o("td", {
|
|
64
|
+
key: 0,
|
|
65
|
+
class: i(r.tdClass || e.tdClass)
|
|
66
|
+
}, [
|
|
67
|
+
d(e.$slots, "td", {
|
|
68
|
+
key: k,
|
|
69
|
+
field: r.key,
|
|
70
|
+
row: s,
|
|
71
|
+
value: r.key in s ? s[r.key] : null
|
|
72
|
+
}, () => [
|
|
73
|
+
c(y(s[r.key]), 1)
|
|
74
|
+
], !0)
|
|
75
|
+
], 2))
|
|
76
|
+
], 64))), 128))
|
|
77
|
+
], 10, L),
|
|
78
|
+
s._showRowDetails && !e.isLoading ? (t(), o("tr", S, [
|
|
79
|
+
n("td", {
|
|
74
80
|
colspan: e.fields.length
|
|
75
81
|
}, [
|
|
76
|
-
|
|
82
|
+
d(e.$slots, "row-details", { row: s }, void 0, !0)
|
|
77
83
|
], 8, T)
|
|
78
|
-
])) :
|
|
84
|
+
])) : u("", !0)
|
|
79
85
|
], 64))), 128))
|
|
80
86
|
])
|
|
81
87
|
]);
|
|
82
88
|
}
|
|
83
|
-
const
|
|
89
|
+
const z = /* @__PURE__ */ C(h, [["render", D], ["__scopeId", "data-v-f3847220"]]);
|
|
84
90
|
export {
|
|
85
|
-
|
|
91
|
+
z as default
|
|
86
92
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as t } from "vue";
|
|
2
|
-
const
|
|
2
|
+
const s = t({
|
|
3
3
|
name: "BsTable",
|
|
4
4
|
props: {
|
|
5
5
|
/**
|
|
@@ -62,6 +62,21 @@ const i = t({
|
|
|
62
62
|
emptyText: {
|
|
63
63
|
type: String,
|
|
64
64
|
default: void 0
|
|
65
|
+
},
|
|
66
|
+
sortAscIconClass: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: "bi bi-caret-down-fill"
|
|
69
|
+
},
|
|
70
|
+
sortDescIconClass: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: "bi bi-caret-up-fill"
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* Use skeleton loading instead of spinner when isLoading is true
|
|
76
|
+
*/
|
|
77
|
+
skeletonLoading: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: !1
|
|
65
80
|
}
|
|
66
81
|
},
|
|
67
82
|
emits: ["orderChanged", "rowClicked"],
|
|
@@ -92,7 +107,7 @@ const i = t({
|
|
|
92
107
|
getSortIconClass() {
|
|
93
108
|
if (this.sortDesc === void 0)
|
|
94
109
|
throw new Error("Sort desc value is null, cannot calculate the sort icon!");
|
|
95
|
-
return this.sortDesc ?
|
|
110
|
+
return this.sortDesc ? this.sortDescIconClass : this.sortAscIconClass;
|
|
96
111
|
},
|
|
97
112
|
/**
|
|
98
113
|
* Calcuate sort desc value on click
|
|
@@ -116,5 +131,5 @@ const i = t({
|
|
|
116
131
|
}
|
|
117
132
|
});
|
|
118
133
|
export {
|
|
119
|
-
|
|
134
|
+
s as default
|
|
120
135
|
};
|