bootstrap-vue-wrapper 2.2.1 → 2.3.1
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/components/bs-table/BsTable.vue.js +55 -47
- package/dist/index.d.ts +1 -13
- package/dist/index.js +12 -12
- package/dist/ssr-safe.d.ts +13 -0
- package/dist/ssr-safe.js +22 -0
- package/dist/style.css +1 -1
- package/package.json +5 -1
|
@@ -1,77 +1,85 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveDirective as
|
|
1
|
+
import y from "./BsTable.vue2.js";
|
|
2
|
+
import { resolveDirective as v, openBlock as t, createElementBlock as o, createElementVNode as r, Fragment as d, renderList as c, normalizeClass as a, renderSlot as n, createTextVNode as p, toDisplayString as u, createCommentVNode as h, withDirectives as m, pushScopeId as C, popScopeId as _ } from "vue";
|
|
3
3
|
import "./BsTable.vue3.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import $ from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const b = (e) => (C("data-v-17dfe1d3"), e = e(), _(), e), f = { class: "table" }, g = ["onClick"], w = { key: 0 }, S = ["colspan"], B = /* @__PURE__ */ b(() => /* @__PURE__ */ r("div", { class: "d-flex justify-content-center p-2" }, [
|
|
6
6
|
/* @__PURE__ */ r("div", { class: "spinner-border spinner-border-sm" })
|
|
7
|
-
], -1)),
|
|
8
|
-
function
|
|
9
|
-
const k =
|
|
10
|
-
return
|
|
7
|
+
], -1)), D = { key: 1 }, I = ["colspan"], N = { class: "text-center text-muted small" }, V = ["data-id", "onClick"], A = { key: 0 }, E = ["colspan"];
|
|
8
|
+
function F(e, L, O, T, j, z) {
|
|
9
|
+
const k = v("t");
|
|
10
|
+
return t(), o("table", f, [
|
|
11
11
|
r("thead", null, [
|
|
12
12
|
r("tr", null, [
|
|
13
|
-
(
|
|
14
|
-
key:
|
|
15
|
-
class:
|
|
16
|
-
"cursor-pointer": e.isSortableField(
|
|
17
|
-
"text-decoration-underline": e.isActiveOrderBy(
|
|
13
|
+
(t(!0), o(d, null, c(e.fields, (s) => (t(), o("th", {
|
|
14
|
+
key: s.key,
|
|
15
|
+
class: a({
|
|
16
|
+
"cursor-pointer": e.isSortableField(s),
|
|
17
|
+
"text-decoration-underline": e.isActiveOrderBy(s.key),
|
|
18
18
|
thClass: e.thClass
|
|
19
19
|
}),
|
|
20
|
-
onClick: (i) => e.onHeadClick(
|
|
20
|
+
onClick: (i) => e.onHeadClick(s)
|
|
21
21
|
}, [
|
|
22
|
-
|
|
23
|
-
p(u(
|
|
24
|
-
e.isActiveOrderBy(
|
|
22
|
+
n(e.$slots, "tr", {}, () => [
|
|
23
|
+
p(u(s.label) + " ", 1),
|
|
24
|
+
e.isActiveOrderBy(s.key) && e.sortDesc !== void 0 ? (t(), o("i", {
|
|
25
25
|
key: 0,
|
|
26
|
-
class:
|
|
27
|
-
}, null, 2)) :
|
|
26
|
+
class: a(e.getSortIconClass())
|
|
27
|
+
}, null, 2)) : h("", !0)
|
|
28
28
|
], !0)
|
|
29
29
|
], 10, g))), 128))
|
|
30
30
|
])
|
|
31
31
|
]),
|
|
32
32
|
r("tbody", null, [
|
|
33
|
-
e.isLoading ? (
|
|
33
|
+
e.isLoading ? (t(), o("tr", w, [
|
|
34
34
|
r("td", {
|
|
35
35
|
colspan: e.fields.length
|
|
36
36
|
}, [
|
|
37
|
-
|
|
37
|
+
n(e.$slots, "loading", {}, () => [
|
|
38
38
|
B
|
|
39
39
|
], !0)
|
|
40
|
-
], 8,
|
|
41
|
-
])) : e.items.length === 0 ? (
|
|
40
|
+
], 8, S)
|
|
41
|
+
])) : e.items.length === 0 ? (t(), o("tr", D, [
|
|
42
42
|
r("td", {
|
|
43
43
|
colspan: e.fields.length
|
|
44
44
|
}, [
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
n(e.$slots, "empty", {}, () => [
|
|
46
|
+
m(r("div", N, null, 512), [
|
|
47
47
|
[k, "table.empty_text"]
|
|
48
48
|
])
|
|
49
49
|
], !0)
|
|
50
|
-
], 8,
|
|
51
|
-
])) : (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}, [
|
|
57
|
-
(s(!0), o(d, null, c(e.fields, (l) => (s(), o("td", {
|
|
58
|
-
key: l.key,
|
|
59
|
-
class: n(e.tdClass)
|
|
50
|
+
], 8, I)
|
|
51
|
+
])) : (t(!0), o(d, { key: 2 }, c(e.items, (s, i) => (t(), o(d, { key: i }, [
|
|
52
|
+
r("tr", {
|
|
53
|
+
class: a([s.trClass || "", { "cursor-pointer": e.rowClickable }]),
|
|
54
|
+
"data-id": s.id,
|
|
55
|
+
onClick: (l) => e.$emit("rowClicked", s)
|
|
60
56
|
}, [
|
|
61
|
-
|
|
62
|
-
key:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
57
|
+
(t(!0), o(d, null, c(e.fields, (l) => (t(), o("td", {
|
|
58
|
+
key: l.key,
|
|
59
|
+
class: a(e.tdClass)
|
|
60
|
+
}, [
|
|
61
|
+
n(e.$slots, "td", {
|
|
62
|
+
key: i,
|
|
63
|
+
field: l.key,
|
|
64
|
+
row: s,
|
|
65
|
+
value: l.key in s ? s[l.key] : null
|
|
66
|
+
}, () => [
|
|
67
|
+
p(u(s[l.key]), 1)
|
|
68
|
+
], !0)
|
|
69
|
+
], 2))), 128))
|
|
70
|
+
], 10, V),
|
|
71
|
+
s._showRowDetails ? (t(), o("tr", A, [
|
|
72
|
+
r("td", {
|
|
73
|
+
colspan: e.fields.length
|
|
74
|
+
}, [
|
|
75
|
+
n(e.$slots, "row-details", { row: s }, void 0, !0)
|
|
76
|
+
], 8, E)
|
|
77
|
+
])) : h("", !0)
|
|
78
|
+
], 64))), 128))
|
|
71
79
|
])
|
|
72
80
|
]);
|
|
73
81
|
}
|
|
74
|
-
const
|
|
82
|
+
const J = /* @__PURE__ */ $(y, [["render", F], ["__scopeId", "data-v-17dfe1d3"]]);
|
|
75
83
|
export {
|
|
76
|
-
|
|
84
|
+
J as default
|
|
77
85
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { default as BsForm } from './components/bs-form/BsForm.vue';
|
|
3
|
-
export { default as BsInput } from './components/bs-input/BsInput.vue';
|
|
4
|
-
export { default as BsCheckbox } from './components/bs-checkbox/BsCheckbox.vue';
|
|
5
|
-
export { default as BsTextarea } from './components/bs-textarea/BsTextarea.vue';
|
|
6
|
-
export { default as BsPaginator } from './components/bs-paginator/BsPaginator.vue';
|
|
7
|
-
export { default as BsTable } from './components/bs-table/BsTable.vue';
|
|
1
|
+
export * from './ssr-safe';
|
|
8
2
|
export { default as BsToast } from './components/bs-toast/BsToast.vue';
|
|
9
3
|
export { default as BsModal } from './components/bs-modal/BsModal.vue';
|
|
10
|
-
export { default as BsSelect } from './components/bs-select/BsSelect.vue';
|
|
11
|
-
export { default as BsRadio } from './components/bs-radio/BsRadio.vue';
|
|
12
4
|
export { default as BsOffcanvas } from './components/bs-offcanvas/BsOffcanvas.vue';
|
|
13
|
-
export type { default as BreadCrumbItem } from './types/BreadcrumbItem.ts';
|
|
14
|
-
export type { default as Option } from './types/Option.ts';
|
|
15
|
-
export type { default as Field } from './types/Field.ts';
|
|
16
|
-
export { useValidator } from './components/validator/Validator.ts';
|
package/dist/index.js
CHANGED
|
@@ -5,24 +5,24 @@ import { default as l } from "./components/bs-checkbox/BsCheckbox.vue.js";
|
|
|
5
5
|
import { default as u } from "./components/bs-textarea/BsTextarea.vue.js";
|
|
6
6
|
import { default as p } from "./components/bs-paginator/BsPaginator.vue.js";
|
|
7
7
|
import { default as c } from "./components/bs-table/BsTable.vue.js";
|
|
8
|
-
import { default as i } from "./components/bs-
|
|
9
|
-
import { default as T } from "./components/bs-
|
|
10
|
-
import {
|
|
11
|
-
import { default as v } from "./components/bs-
|
|
12
|
-
import { default as F } from "./components/bs-
|
|
13
|
-
import {
|
|
8
|
+
import { default as i } from "./components/bs-select/BsSelect.vue.js";
|
|
9
|
+
import { default as T } from "./components/bs-radio/BsRadio.vue.js";
|
|
10
|
+
import { useValidator as h } from "./components/validator/Validator.js";
|
|
11
|
+
import { default as v } from "./components/bs-toast/BsToast.vue.js";
|
|
12
|
+
import { default as F } from "./components/bs-modal/BsModal.vue.js";
|
|
13
|
+
import { default as M } from "./components/bs-offcanvas/BsOffcanvas.vue.js";
|
|
14
14
|
export {
|
|
15
15
|
o as BsBreadcrumb,
|
|
16
16
|
l as BsCheckbox,
|
|
17
17
|
t as BsForm,
|
|
18
18
|
s as BsInput,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
F as BsModal,
|
|
20
|
+
M as BsOffcanvas,
|
|
21
21
|
p as BsPaginator,
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
T as BsRadio,
|
|
23
|
+
i as BsSelect,
|
|
24
24
|
c as BsTable,
|
|
25
25
|
u as BsTextarea,
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
v as BsToast,
|
|
27
|
+
h as useValidator
|
|
28
28
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { default as BsBreadcrumb } from './components/bs-breadcrumb/BsBreadcrumb.vue';
|
|
2
|
+
export { default as BsForm } from './components/bs-form/BsForm.vue';
|
|
3
|
+
export { default as BsInput } from './components/bs-input/BsInput.vue';
|
|
4
|
+
export { default as BsCheckbox } from './components/bs-checkbox/BsCheckbox.vue';
|
|
5
|
+
export { default as BsTextarea } from './components/bs-textarea/BsTextarea.vue';
|
|
6
|
+
export { default as BsPaginator } from './components/bs-paginator/BsPaginator.vue';
|
|
7
|
+
export { default as BsTable } from './components/bs-table/BsTable.vue';
|
|
8
|
+
export { default as BsSelect } from './components/bs-select/BsSelect.vue';
|
|
9
|
+
export { default as BsRadio } from './components/bs-radio/BsRadio.vue';
|
|
10
|
+
export type { default as BreadCrumbItem } from './types/BreadcrumbItem.ts';
|
|
11
|
+
export type { default as Option } from './types/Option.ts';
|
|
12
|
+
export type { default as Field } from './types/Field.ts';
|
|
13
|
+
export { useValidator } from './components/validator/Validator.ts';
|
package/dist/ssr-safe.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as r } from "./components/bs-breadcrumb/BsBreadcrumb.vue.js";
|
|
2
|
+
import { default as t } from "./components/bs-form/BsForm.vue.js";
|
|
3
|
+
import { default as s } from "./components/bs-input/BsInput.vue.js";
|
|
4
|
+
import { default as l } from "./components/bs-checkbox/BsCheckbox.vue.js";
|
|
5
|
+
import { default as u } from "./components/bs-textarea/BsTextarea.vue.js";
|
|
6
|
+
import { default as p } from "./components/bs-paginator/BsPaginator.vue.js";
|
|
7
|
+
import { default as b } from "./components/bs-table/BsTable.vue.js";
|
|
8
|
+
import { default as i } from "./components/bs-select/BsSelect.vue.js";
|
|
9
|
+
import { default as T } from "./components/bs-radio/BsRadio.vue.js";
|
|
10
|
+
import { useValidator as h } from "./components/validator/Validator.js";
|
|
11
|
+
export {
|
|
12
|
+
r as BsBreadcrumb,
|
|
13
|
+
l as BsCheckbox,
|
|
14
|
+
t as BsForm,
|
|
15
|
+
s as BsInput,
|
|
16
|
+
p as BsPaginator,
|
|
17
|
+
T as BsRadio,
|
|
18
|
+
i as BsSelect,
|
|
19
|
+
b as BsTable,
|
|
20
|
+
u as BsTextarea,
|
|
21
|
+
h as useValidator
|
|
22
|
+
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.page-link[data-v-ff85ae67]{cursor:pointer}.page-item-first[data-v-ff85ae67],.page-item-last[data-v-ff85ae67],.page-item-number[data-v-ff85ae67]:not(.active){display:none}@media (min-width: 576px){.page-item-number[data-v-ff85ae67]:not(.active){display:block}}@media (min-width: 992px){.page-item-first[data-v-ff85ae67],.page-item-last[data-v-ff85ae67]{display:block}}.cursor-pointer[data-v-
|
|
1
|
+
.page-link[data-v-ff85ae67]{cursor:pointer}.page-item-first[data-v-ff85ae67],.page-item-last[data-v-ff85ae67],.page-item-number[data-v-ff85ae67]:not(.active){display:none}@media (min-width: 576px){.page-item-number[data-v-ff85ae67]:not(.active){display:block}}@media (min-width: 992px){.page-item-first[data-v-ff85ae67],.page-item-last[data-v-ff85ae67]{display:block}}.cursor-pointer[data-v-17dfe1d3]{cursor:pointer}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bootstrap-vue-wrapper",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "Bootstrap 5 components in Vue3 wrapper.",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
".": {
|
|
13
13
|
"import": "./dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./ssr-safe": {
|
|
17
|
+
"import": "./dist/ssr-safe.js",
|
|
18
|
+
"types": "./dist/ssr-safe.d.ts"
|
|
15
19
|
}
|
|
16
20
|
},
|
|
17
21
|
"files": [
|