bootstrap-vue-wrapper 3.0.1 → 3.0.3
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/bootstrap-vue-wrapper.css +1 -1
- package/dist/components/bs-radio/BsRadio.vue.d.ts +3 -3
- package/dist/components/bs-radio/BsRadio.vue2.js +3 -3
- package/dist/components/bs-table/BsTable.vue.d.ts +5 -14
- package/dist/components/bs-table/BsTable.vue.js +32 -31
- package/dist/components/bs-table/BsTable.vue2.js +1 -1
- package/dist/ssr-safe.d.ts +1 -0
- package/dist/types/TableRow.d.ts +6 -0
- package/package.json +1 -1
|
@@ -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-051542bd]{cursor:pointer}
|
|
@@ -11,7 +11,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
11
11
|
* Value for v-model
|
|
12
12
|
*/
|
|
13
13
|
modelValue: {
|
|
14
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
14
|
+
type: (StringConstructor | NumberConstructor | null)[];
|
|
15
15
|
default: null;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
@@ -88,7 +88,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
88
88
|
* Value for v-model
|
|
89
89
|
*/
|
|
90
90
|
modelValue: {
|
|
91
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
91
|
+
type: (StringConstructor | NumberConstructor | null)[];
|
|
92
92
|
default: null;
|
|
93
93
|
};
|
|
94
94
|
/**
|
|
@@ -131,7 +131,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
131
131
|
}>, {
|
|
132
132
|
label: string;
|
|
133
133
|
value: string | number;
|
|
134
|
-
modelValue: string | number;
|
|
134
|
+
modelValue: string | number | null;
|
|
135
135
|
hint: string;
|
|
136
136
|
validatorEnabled: boolean;
|
|
137
137
|
classContainer: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useValidator as t } from "@zemkogabor/vue-form-validator";
|
|
2
|
-
import { defineComponent as i, ref as
|
|
2
|
+
import { defineComponent as i, ref as l } from "vue";
|
|
3
3
|
const d = i({
|
|
4
4
|
name: "BsRadio",
|
|
5
5
|
props: {
|
|
@@ -14,7 +14,7 @@ const d = i({
|
|
|
14
14
|
* Value for v-model
|
|
15
15
|
*/
|
|
16
16
|
modelValue: {
|
|
17
|
-
type: [String, Number],
|
|
17
|
+
type: [String, Number, null],
|
|
18
18
|
default: null
|
|
19
19
|
},
|
|
20
20
|
/**
|
|
@@ -55,7 +55,7 @@ const d = i({
|
|
|
55
55
|
},
|
|
56
56
|
emits: ["update:modelValue"],
|
|
57
57
|
setup() {
|
|
58
|
-
const e =
|
|
58
|
+
const e = l(null);
|
|
59
59
|
return {
|
|
60
60
|
inputRef: e,
|
|
61
61
|
validator: t(e)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { default as Field } from '../../types/Field.ts';
|
|
3
|
+
import { default as TableRow } from '../../types/TableRow.ts';
|
|
3
4
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
5
|
/**
|
|
5
6
|
* Field list
|
|
@@ -12,12 +13,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
12
13
|
* Item list
|
|
13
14
|
*/
|
|
14
15
|
items: {
|
|
15
|
-
type: PropType<
|
|
16
|
-
[key: string]: unknown;
|
|
17
|
-
trClass?: string;
|
|
18
|
-
id?: string | number;
|
|
19
|
-
_showRowDetails?: boolean;
|
|
20
|
-
}[]>;
|
|
16
|
+
type: PropType<TableRow[]>;
|
|
21
17
|
required: true;
|
|
22
18
|
};
|
|
23
19
|
/**
|
|
@@ -64,7 +60,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
64
60
|
};
|
|
65
61
|
emptyText: {
|
|
66
62
|
type: StringConstructor;
|
|
67
|
-
default:
|
|
63
|
+
default: undefined;
|
|
68
64
|
};
|
|
69
65
|
}>, {}, {}, {}, {
|
|
70
66
|
/**
|
|
@@ -112,12 +108,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
112
108
|
* Item list
|
|
113
109
|
*/
|
|
114
110
|
items: {
|
|
115
|
-
type: PropType<
|
|
116
|
-
[key: string]: unknown;
|
|
117
|
-
trClass?: string;
|
|
118
|
-
id?: string | number;
|
|
119
|
-
_showRowDetails?: boolean;
|
|
120
|
-
}[]>;
|
|
111
|
+
type: PropType<TableRow[]>;
|
|
121
112
|
required: true;
|
|
122
113
|
};
|
|
123
114
|
/**
|
|
@@ -164,7 +155,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
164
155
|
};
|
|
165
156
|
emptyText: {
|
|
166
157
|
type: StringConstructor;
|
|
167
|
-
default:
|
|
158
|
+
default: undefined;
|
|
168
159
|
};
|
|
169
160
|
}>> & Readonly<{
|
|
170
161
|
onOrderChanged?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,85 +1,86 @@
|
|
|
1
1
|
import h from "./BsTable.vue2.js";
|
|
2
|
-
import { openBlock as
|
|
2
|
+
import { openBlock as s, createElementBlock as o, createElementVNode as r, Fragment as a, renderList as u, normalizeClass as d, renderSlot as l, createTextVNode as y, toDisplayString as c, createCommentVNode as p } from "vue";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import C from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const m = { class: "table" },
|
|
6
|
-
function
|
|
7
|
-
return
|
|
5
|
+
const m = { class: "table" }, v = ["onClick"], $ = { key: 0 }, b = ["colspan"], g = { key: 1 }, w = ["colspan"], f = ["textContent"], B = ["data-id", "onClick"], S = { key: 0 }, T = ["colspan"];
|
|
6
|
+
function _(e, k, D, N, V, A) {
|
|
7
|
+
return s(), o("table", m, [
|
|
8
8
|
r("thead", null, [
|
|
9
9
|
r("tr", null, [
|
|
10
|
-
(
|
|
11
|
-
key:
|
|
10
|
+
(s(!0), o(a, null, u(e.fields, (t) => (s(), o("th", {
|
|
11
|
+
key: t.key,
|
|
12
12
|
class: d({
|
|
13
|
-
"cursor-pointer": e.isSortableField(
|
|
14
|
-
"text-decoration-underline": e.isActiveOrderBy(
|
|
13
|
+
"cursor-pointer": e.isSortableField(t),
|
|
14
|
+
"text-decoration-underline": e.isActiveOrderBy(t.key),
|
|
15
15
|
thClass: e.thClass
|
|
16
16
|
}),
|
|
17
|
-
onClick: (i) => e.onHeadClick(
|
|
17
|
+
onClick: (i) => e.onHeadClick(t)
|
|
18
18
|
}, [
|
|
19
19
|
l(e.$slots, "tr", {}, () => [
|
|
20
|
-
|
|
21
|
-
e.isActiveOrderBy(
|
|
20
|
+
y(c(t.label) + " ", 1),
|
|
21
|
+
e.isActiveOrderBy(t.key) && e.sortDesc !== void 0 ? (s(), o("i", {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: d(e.getSortIconClass())
|
|
24
|
-
}, null, 2)) :
|
|
24
|
+
}, null, 2)) : p("", !0)
|
|
25
25
|
], !0)
|
|
26
|
-
], 10,
|
|
26
|
+
], 10, v))), 128))
|
|
27
27
|
])
|
|
28
28
|
]),
|
|
29
29
|
r("tbody", null, [
|
|
30
|
-
e.isLoading ? (
|
|
30
|
+
e.isLoading ? (s(), o("tr", $, [
|
|
31
31
|
r("td", {
|
|
32
32
|
colspan: e.fields.length
|
|
33
33
|
}, [
|
|
34
34
|
l(e.$slots, "loading", {}, () => [
|
|
35
|
-
|
|
35
|
+
k[0] || (k[0] = r("div", { class: "d-flex justify-content-center p-2" }, [
|
|
36
36
|
r("div", { class: "spinner-border spinner-border-sm" })
|
|
37
37
|
], -1))
|
|
38
38
|
], !0)
|
|
39
39
|
], 8, b)
|
|
40
|
-
])) : e.items.length === 0 ? (
|
|
40
|
+
])) : e.items.length === 0 ? (s(), o("tr", g, [
|
|
41
41
|
r("td", {
|
|
42
42
|
colspan: e.fields.length
|
|
43
43
|
}, [
|
|
44
44
|
l(e.$slots, "empty", {}, () => [
|
|
45
|
-
|
|
45
|
+
e.emptyText !== void 0 ? (s(), o("div", {
|
|
46
|
+
key: 0,
|
|
46
47
|
class: "text-center text-muted small",
|
|
47
48
|
textContent: c(e.emptyText)
|
|
48
|
-
}, null, 8, f)
|
|
49
|
+
}, null, 8, f)) : p("", !0)
|
|
49
50
|
], !0)
|
|
50
51
|
], 8, w)
|
|
51
|
-
])) : (
|
|
52
|
+
])) : (s(!0), o(a, { key: 2 }, u(e.items, (t, i) => (s(), o(a, { key: i }, [
|
|
52
53
|
r("tr", {
|
|
53
|
-
class: d([
|
|
54
|
-
"data-id":
|
|
55
|
-
onClick: (n) => e.$emit("rowClicked",
|
|
54
|
+
class: d([t.trClass || "", { "cursor-pointer": e.rowClickable }]),
|
|
55
|
+
"data-id": t.id,
|
|
56
|
+
onClick: (n) => e.$emit("rowClicked", t)
|
|
56
57
|
}, [
|
|
57
|
-
(
|
|
58
|
+
(s(!0), o(a, null, u(e.fields, (n) => (s(), o("td", {
|
|
58
59
|
key: n.key,
|
|
59
60
|
class: d(n.tdClass || e.tdClass)
|
|
60
61
|
}, [
|
|
61
62
|
l(e.$slots, "td", {
|
|
62
63
|
key: i,
|
|
63
64
|
field: n.key,
|
|
64
|
-
row:
|
|
65
|
-
value: n.key in
|
|
65
|
+
row: t,
|
|
66
|
+
value: n.key in t ? t[n.key] : null
|
|
66
67
|
}, () => [
|
|
67
|
-
|
|
68
|
+
y(c(t[n.key]), 1)
|
|
68
69
|
], !0)
|
|
69
70
|
], 2))), 128))
|
|
70
71
|
], 10, B),
|
|
71
|
-
|
|
72
|
+
t._showRowDetails ? (s(), o("tr", S, [
|
|
72
73
|
r("td", {
|
|
73
74
|
colspan: e.fields.length
|
|
74
75
|
}, [
|
|
75
|
-
l(e.$slots, "row-details", { row:
|
|
76
|
-
], 8,
|
|
77
|
-
])) :
|
|
76
|
+
l(e.$slots, "row-details", { row: t }, void 0, !0)
|
|
77
|
+
], 8, T)
|
|
78
|
+
])) : p("", !0)
|
|
78
79
|
], 64))), 128))
|
|
79
80
|
])
|
|
80
81
|
]);
|
|
81
82
|
}
|
|
82
|
-
const O = /* @__PURE__ */ C(h, [["render",
|
|
83
|
+
const O = /* @__PURE__ */ C(h, [["render", _], ["__scopeId", "data-v-051542bd"]]);
|
|
83
84
|
export {
|
|
84
85
|
O as default
|
|
85
86
|
};
|
package/dist/ssr-safe.d.ts
CHANGED
|
@@ -10,3 +10,4 @@ export { default as BsRadio } from './components/bs-radio/BsRadio.vue';
|
|
|
10
10
|
export type { default as BreadCrumbItem } from './types/BreadcrumbItem.ts';
|
|
11
11
|
export type { default as Option } from './types/Option.ts';
|
|
12
12
|
export type { default as Field } from './types/Field.ts';
|
|
13
|
+
export type { default as TableRow } from './types/TableRow.ts';
|