bootstrap-vue-wrapper 2.3.4 → 3.0.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/README.md +7 -1
- package/dist/bootstrap-vue-wrapper.css +1 -0
- package/dist/components/bs-breadcrumb/BsBreadcrumb.vue.d.ts +5 -5
- package/dist/components/bs-checkbox/BsCheckbox.vue.d.ts +9 -9
- package/dist/components/bs-checkbox/BsCheckbox.vue2.js +1 -1
- package/dist/components/bs-form/BsForm.vue.d.ts +3 -3
- package/dist/components/bs-input/BsInput.vue.d.ts +41 -11
- package/dist/components/bs-input/BsInput.vue2.js +23 -8
- package/dist/components/bs-modal/BsModal.vue.d.ts +7 -7
- package/dist/components/bs-modal/BsModal.vue.js +21 -21
- package/dist/components/bs-offcanvas/BsOffcanvas.vue.d.ts +5 -5
- package/dist/components/bs-offcanvas/BsOffcanvas.vue.js +19 -19
- package/dist/components/bs-paginator/BsPaginator.vue.d.ts +8 -8
- package/dist/components/bs-paginator/BsPaginator.vue.js +2 -2
- package/dist/components/bs-radio/BsRadio.vue.d.ts +13 -13
- package/dist/components/bs-radio/BsRadio.vue2.js +1 -1
- package/dist/components/bs-select/BsSelect.vue.d.ts +11 -11
- package/dist/components/bs-select/BsSelect.vue2.js +2 -2
- package/dist/components/bs-table/BsTable.vue.d.ts +28 -9
- package/dist/components/bs-table/BsTable.vue.js +41 -41
- package/dist/components/bs-table/BsTable.vue2.js +7 -3
- package/dist/components/bs-textarea/BsTextarea.vue.d.ts +40 -10
- package/dist/components/bs-textarea/BsTextarea.vue2.js +22 -7
- package/dist/components/bs-toast/BsToast.vue.d.ts +3 -3
- package/dist/index.js +10 -12
- package/dist/ssr-safe.d.ts +0 -1
- package/dist/ssr-safe.js +1 -3
- package/package.json +21 -18
- package/dist/components/bs-paginator/BsPaginator.vue3.js +0 -1
- package/dist/components/bs-table/BsTable.vue3.js +0 -1
- package/dist/components/validator/Validator.d.ts +0 -9
- package/dist/components/validator/Validator.js +0 -54
- package/dist/style.css +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PropType, Ref } from 'vue';
|
|
2
|
-
import Option from '../../types/Option.ts';
|
|
3
|
-
declare const _default: import(
|
|
2
|
+
import { default as Option } from '../../types/Option.ts';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
/**
|
|
5
5
|
* Value for v-model
|
|
6
6
|
*/
|
|
7
7
|
modelValue: {
|
|
8
|
-
type: PropType<
|
|
8
|
+
type: PropType<number | string | string[] | number[] | null>;
|
|
9
9
|
default: null;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
@@ -50,14 +50,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
50
|
type: BooleanConstructor;
|
|
51
51
|
default: boolean;
|
|
52
52
|
};
|
|
53
|
-
}
|
|
54
|
-
inputRef: Ref<HTMLInputElement | null>;
|
|
53
|
+
}>, {
|
|
54
|
+
inputRef: Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
55
55
|
validator: {
|
|
56
56
|
onInvalid: (event: Event) => void;
|
|
57
57
|
getInvalidMessage: () => string | null;
|
|
58
58
|
setCustomError: (data: string) => void;
|
|
59
59
|
};
|
|
60
|
-
},
|
|
60
|
+
}, {}, {}, {
|
|
61
61
|
/**
|
|
62
62
|
* Hint id is generated
|
|
63
63
|
*/
|
|
@@ -74,12 +74,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
74
|
* @param event
|
|
75
75
|
*/
|
|
76
76
|
onInvalid(event: Event): void;
|
|
77
|
-
}, import(
|
|
77
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
78
78
|
/**
|
|
79
79
|
* Value for v-model
|
|
80
80
|
*/
|
|
81
81
|
modelValue: {
|
|
82
|
-
type: PropType<
|
|
82
|
+
type: PropType<number | string | string[] | number[] | null>;
|
|
83
83
|
default: null;
|
|
84
84
|
};
|
|
85
85
|
/**
|
|
@@ -124,13 +124,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
124
124
|
type: BooleanConstructor;
|
|
125
125
|
default: boolean;
|
|
126
126
|
};
|
|
127
|
-
}>> & {
|
|
127
|
+
}>> & Readonly<{
|
|
128
128
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
129
|
-
}
|
|
129
|
+
}>, {
|
|
130
130
|
label: string;
|
|
131
131
|
modelValue: string | number | string[] | number[] | null;
|
|
132
132
|
hint: string;
|
|
133
133
|
validatorEnabled: boolean;
|
|
134
134
|
placeholder: string;
|
|
135
|
-
}, {}>;
|
|
135
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
136
136
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useValidator as r } from "
|
|
1
|
+
import { useValidator as r } from "@zemkogabor/vue-form-validator";
|
|
2
2
|
import { defineComponent as a, ref as i } from "vue";
|
|
3
3
|
const d = a({
|
|
4
4
|
name: "BsSelect",
|
|
@@ -7,7 +7,7 @@ const d = a({
|
|
|
7
7
|
* Value for v-model
|
|
8
8
|
*/
|
|
9
9
|
modelValue: {
|
|
10
|
-
type: [String, Number, Array],
|
|
10
|
+
type: [String, Number, Array, null],
|
|
11
11
|
default: null
|
|
12
12
|
},
|
|
13
13
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import Field from '../../types/Field.ts';
|
|
3
|
-
declare const _default: import(
|
|
2
|
+
import { default as Field } from '../../types/Field.ts';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
/**
|
|
5
5
|
* Field list
|
|
6
6
|
*/
|
|
@@ -12,7 +12,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
* Item list
|
|
13
13
|
*/
|
|
14
14
|
items: {
|
|
15
|
-
type: PropType<
|
|
15
|
+
type: PropType<{
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
trClass?: string;
|
|
18
|
+
id?: string | number;
|
|
19
|
+
_showRowDetails?: boolean;
|
|
20
|
+
}[]>;
|
|
16
21
|
required: true;
|
|
17
22
|
};
|
|
18
23
|
/**
|
|
@@ -57,7 +62,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
62
|
type: BooleanConstructor;
|
|
58
63
|
default: boolean;
|
|
59
64
|
};
|
|
60
|
-
|
|
65
|
+
emptyText: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
}>, {}, {}, {}, {
|
|
61
70
|
/**
|
|
62
71
|
* Is order by active by field?
|
|
63
72
|
*
|
|
@@ -91,7 +100,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
100
|
* Table head clicked.
|
|
92
101
|
*/
|
|
93
102
|
onHeadClick(field: Field): void;
|
|
94
|
-
}, import(
|
|
103
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("orderChanged" | "rowClicked")[], "orderChanged" | "rowClicked", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
95
104
|
/**
|
|
96
105
|
* Field list
|
|
97
106
|
*/
|
|
@@ -103,7 +112,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
103
112
|
* Item list
|
|
104
113
|
*/
|
|
105
114
|
items: {
|
|
106
|
-
type: PropType<
|
|
115
|
+
type: PropType<{
|
|
116
|
+
[key: string]: unknown;
|
|
117
|
+
trClass?: string;
|
|
118
|
+
id?: string | number;
|
|
119
|
+
_showRowDetails?: boolean;
|
|
120
|
+
}[]>;
|
|
107
121
|
required: true;
|
|
108
122
|
};
|
|
109
123
|
/**
|
|
@@ -148,15 +162,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
148
162
|
type: BooleanConstructor;
|
|
149
163
|
default: boolean;
|
|
150
164
|
};
|
|
151
|
-
|
|
165
|
+
emptyText: {
|
|
166
|
+
type: StringConstructor;
|
|
167
|
+
default: string;
|
|
168
|
+
};
|
|
169
|
+
}>> & Readonly<{
|
|
152
170
|
onOrderChanged?: ((...args: any[]) => any) | undefined;
|
|
153
171
|
onRowClicked?: ((...args: any[]) => any) | undefined;
|
|
154
|
-
}
|
|
172
|
+
}>, {
|
|
155
173
|
isLoading: boolean;
|
|
156
174
|
orderBy: string;
|
|
157
175
|
sortDesc: boolean;
|
|
158
176
|
thClass: string;
|
|
159
177
|
tdClass: string;
|
|
160
178
|
rowClickable: boolean;
|
|
161
|
-
|
|
179
|
+
emptyText: string;
|
|
180
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
162
181
|
export default _default;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function F(e, L, O, T, j, z) {
|
|
9
|
-
const k = v("t");
|
|
10
|
-
return t(), o("table", g, [
|
|
1
|
+
import h from "./BsTable.vue2.js";
|
|
2
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as r, Fragment as a, renderList as u, normalizeClass as d, renderSlot as l, createTextVNode as k, toDisplayString as c, createCommentVNode as y } from "vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import C from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const m = { class: "table" }, $ = ["onClick"], v = { key: 0 }, b = ["colspan"], g = { key: 1 }, w = ["colspan"], f = ["textContent"], B = ["data-id", "onClick"], _ = { key: 0 }, S = ["colspan"];
|
|
6
|
+
function D(e, p, N, T, V, A) {
|
|
7
|
+
return t(), o("table", m, [
|
|
11
8
|
r("thead", null, [
|
|
12
9
|
r("tr", null, [
|
|
13
|
-
(t(!0), o(a, null,
|
|
10
|
+
(t(!0), o(a, null, u(e.fields, (s) => (t(), o("th", {
|
|
14
11
|
key: s.key,
|
|
15
12
|
class: d({
|
|
16
13
|
"cursor-pointer": e.isSortableField(s),
|
|
@@ -19,67 +16,70 @@ function F(e, L, O, T, j, z) {
|
|
|
19
16
|
}),
|
|
20
17
|
onClick: (i) => e.onHeadClick(s)
|
|
21
18
|
}, [
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
l(e.$slots, "tr", {}, () => [
|
|
20
|
+
k(c(s.label) + " ", 1),
|
|
24
21
|
e.isActiveOrderBy(s.key) && e.sortDesc !== void 0 ? (t(), o("i", {
|
|
25
22
|
key: 0,
|
|
26
23
|
class: d(e.getSortIconClass())
|
|
27
|
-
}, null, 2)) :
|
|
24
|
+
}, null, 2)) : y("", !0)
|
|
28
25
|
], !0)
|
|
29
|
-
], 10,
|
|
26
|
+
], 10, $))), 128))
|
|
30
27
|
])
|
|
31
28
|
]),
|
|
32
29
|
r("tbody", null, [
|
|
33
|
-
e.isLoading ? (t(), o("tr",
|
|
30
|
+
e.isLoading ? (t(), o("tr", v, [
|
|
34
31
|
r("td", {
|
|
35
32
|
colspan: e.fields.length
|
|
36
33
|
}, [
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
l(e.$slots, "loading", {}, () => [
|
|
35
|
+
p[0] || (p[0] = r("div", { class: "d-flex justify-content-center p-2" }, [
|
|
36
|
+
r("div", { class: "spinner-border spinner-border-sm" })
|
|
37
|
+
], -1))
|
|
39
38
|
], !0)
|
|
40
|
-
], 8,
|
|
41
|
-
])) : e.items.length === 0 ? (t(), o("tr",
|
|
39
|
+
], 8, b)
|
|
40
|
+
])) : e.items.length === 0 ? (t(), o("tr", g, [
|
|
42
41
|
r("td", {
|
|
43
42
|
colspan: e.fields.length
|
|
44
43
|
}, [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
l(e.$slots, "empty", {}, () => [
|
|
45
|
+
r("div", {
|
|
46
|
+
class: "text-center text-muted small",
|
|
47
|
+
textContent: c(e.emptyText)
|
|
48
|
+
}, null, 8, f)
|
|
49
49
|
], !0)
|
|
50
|
-
], 8,
|
|
51
|
-
])) : (t(!0), o(a, { key: 2 },
|
|
50
|
+
], 8, w)
|
|
51
|
+
])) : (t(!0), o(a, { key: 2 }, u(e.items, (s, i) => (t(), o(a, { key: i }, [
|
|
52
52
|
r("tr", {
|
|
53
53
|
class: d([s.trClass || "", { "cursor-pointer": e.rowClickable }]),
|
|
54
54
|
"data-id": s.id,
|
|
55
|
-
onClick: (
|
|
55
|
+
onClick: (n) => e.$emit("rowClicked", s)
|
|
56
56
|
}, [
|
|
57
|
-
(t(!0), o(a, null,
|
|
58
|
-
key:
|
|
59
|
-
class: d(
|
|
57
|
+
(t(!0), o(a, null, u(e.fields, (n) => (t(), o("td", {
|
|
58
|
+
key: n.key,
|
|
59
|
+
class: d(n.tdClass || e.tdClass)
|
|
60
60
|
}, [
|
|
61
|
-
|
|
61
|
+
l(e.$slots, "td", {
|
|
62
62
|
key: i,
|
|
63
|
-
field:
|
|
63
|
+
field: n.key,
|
|
64
64
|
row: s,
|
|
65
|
-
value:
|
|
65
|
+
value: n.key in s ? s[n.key] : null
|
|
66
66
|
}, () => [
|
|
67
|
-
|
|
67
|
+
k(c(s[n.key]), 1)
|
|
68
68
|
], !0)
|
|
69
69
|
], 2))), 128))
|
|
70
|
-
], 10,
|
|
71
|
-
s._showRowDetails ? (t(), o("tr",
|
|
70
|
+
], 10, B),
|
|
71
|
+
s._showRowDetails ? (t(), o("tr", _, [
|
|
72
72
|
r("td", {
|
|
73
73
|
colspan: e.fields.length
|
|
74
74
|
}, [
|
|
75
|
-
|
|
76
|
-
], 8,
|
|
77
|
-
])) :
|
|
75
|
+
l(e.$slots, "row-details", { row: s }, void 0, !0)
|
|
76
|
+
], 8, S)
|
|
77
|
+
])) : y("", !0)
|
|
78
78
|
], 64))), 128))
|
|
79
79
|
])
|
|
80
80
|
]);
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const O = /* @__PURE__ */ C(h, [["render", D], ["__scopeId", "data-v-24264439"]]);
|
|
83
83
|
export {
|
|
84
|
-
|
|
84
|
+
O as default
|
|
85
85
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as t } from "vue";
|
|
2
|
+
const i = t({
|
|
3
3
|
name: "BsTable",
|
|
4
4
|
props: {
|
|
5
5
|
/**
|
|
@@ -57,6 +57,10 @@ const s = r({
|
|
|
57
57
|
rowClickable: {
|
|
58
58
|
type: Boolean,
|
|
59
59
|
default: !1
|
|
60
|
+
},
|
|
61
|
+
emptyText: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: "No data available"
|
|
60
64
|
}
|
|
61
65
|
},
|
|
62
66
|
emits: ["orderChanged", "rowClicked"],
|
|
@@ -111,5 +115,5 @@ const s = r({
|
|
|
111
115
|
}
|
|
112
116
|
});
|
|
113
117
|
export {
|
|
114
|
-
|
|
118
|
+
i as default
|
|
115
119
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
declare const _default: import(
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
3
|
/**
|
|
4
4
|
* Value for v-model
|
|
5
5
|
*/
|
|
6
6
|
modelValue: {
|
|
7
|
-
type: (
|
|
7
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
8
8
|
default: null;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
@@ -35,14 +35,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
type: BooleanConstructor;
|
|
36
36
|
default: boolean;
|
|
37
37
|
};
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Convert empty string to null
|
|
40
|
+
*/
|
|
41
|
+
emptyStringToNull: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Trim input value
|
|
47
|
+
*/
|
|
48
|
+
trim: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
}>, {
|
|
53
|
+
inputRef: Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
40
54
|
validator: {
|
|
41
55
|
onInvalid: (event: Event) => void;
|
|
42
56
|
getInvalidMessage: () => string | null;
|
|
43
57
|
setCustomError: (data: string) => void;
|
|
44
58
|
};
|
|
45
|
-
},
|
|
59
|
+
}, {}, {}, {
|
|
46
60
|
/**
|
|
47
61
|
* Hint id is generated
|
|
48
62
|
*/
|
|
@@ -59,12 +73,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
73
|
* @param event
|
|
60
74
|
*/
|
|
61
75
|
onInvalid(event: Event): void;
|
|
62
|
-
}, import(
|
|
76
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
63
77
|
/**
|
|
64
78
|
* Value for v-model
|
|
65
79
|
*/
|
|
66
80
|
modelValue: {
|
|
67
|
-
type: (
|
|
81
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
68
82
|
default: null;
|
|
69
83
|
};
|
|
70
84
|
/**
|
|
@@ -95,12 +109,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
109
|
type: BooleanConstructor;
|
|
96
110
|
default: boolean;
|
|
97
111
|
};
|
|
98
|
-
|
|
112
|
+
/**
|
|
113
|
+
* Convert empty string to null
|
|
114
|
+
*/
|
|
115
|
+
emptyStringToNull: {
|
|
116
|
+
type: BooleanConstructor;
|
|
117
|
+
default: boolean;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Trim input value
|
|
121
|
+
*/
|
|
122
|
+
trim: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
}>> & Readonly<{
|
|
99
127
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
100
|
-
}
|
|
128
|
+
}>, {
|
|
101
129
|
label: string;
|
|
130
|
+
trim: boolean;
|
|
102
131
|
modelValue: string | number;
|
|
103
132
|
hint: string;
|
|
104
133
|
validatorEnabled: boolean;
|
|
105
|
-
|
|
134
|
+
emptyStringToNull: boolean;
|
|
135
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
106
136
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useValidator as a } from "
|
|
2
|
-
import { defineComponent as i, ref as
|
|
3
|
-
const
|
|
1
|
+
import { useValidator as a } from "@zemkogabor/vue-form-validator";
|
|
2
|
+
import { defineComponent as i, ref as r } from "vue";
|
|
3
|
+
const u = i({
|
|
4
4
|
name: "BsTextarea",
|
|
5
5
|
props: {
|
|
6
6
|
/**
|
|
@@ -37,11 +37,25 @@ const d = i({
|
|
|
37
37
|
validatorEnabled: {
|
|
38
38
|
type: Boolean,
|
|
39
39
|
default: !0
|
|
40
|
+
},
|
|
41
|
+
/**
|
|
42
|
+
* Convert empty string to null
|
|
43
|
+
*/
|
|
44
|
+
emptyStringToNull: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: !0
|
|
47
|
+
},
|
|
48
|
+
/**
|
|
49
|
+
* Trim input value
|
|
50
|
+
*/
|
|
51
|
+
trim: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: !0
|
|
40
54
|
}
|
|
41
55
|
},
|
|
42
56
|
emits: ["update:modelValue"],
|
|
43
57
|
setup() {
|
|
44
|
-
const t =
|
|
58
|
+
const t = r(null);
|
|
45
59
|
return {
|
|
46
60
|
inputRef: t,
|
|
47
61
|
validator: a(t)
|
|
@@ -60,8 +74,9 @@ const d = i({
|
|
|
60
74
|
* @param event
|
|
61
75
|
*/
|
|
62
76
|
onInput(t) {
|
|
63
|
-
const
|
|
64
|
-
|
|
77
|
+
const l = t.target;
|
|
78
|
+
let e = l.value;
|
|
79
|
+
this.trim && (e = l.value.trim()), this.emptyStringToNull && e === "" && (e = null), this.$emit("update:modelValue", e);
|
|
65
80
|
},
|
|
66
81
|
/**
|
|
67
82
|
* On invalid event
|
|
@@ -74,5 +89,5 @@ const d = i({
|
|
|
74
89
|
}
|
|
75
90
|
});
|
|
76
91
|
export {
|
|
77
|
-
|
|
92
|
+
u as default
|
|
78
93
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {
|
|
2
2
|
/**
|
|
3
3
|
* Trigger toast hide event.
|
|
4
4
|
*/
|
|
@@ -11,8 +11,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
|
11
11
|
* Hidden event.
|
|
12
12
|
*/
|
|
13
13
|
onHidden(): void;
|
|
14
|
-
}, import(
|
|
14
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("hidden" | "shown")[], "hidden" | "shown", import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
15
15
|
onHidden?: ((...args: any[]) => any) | undefined;
|
|
16
16
|
onShown?: ((...args: any[]) => any) | undefined;
|
|
17
|
-
}, {}, {}>;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
18
|
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -5,24 +5,22 @@ 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
|
|
9
|
-
import { default as
|
|
10
|
-
import {
|
|
11
|
-
import { default as v } from "./components/bs-
|
|
12
|
-
import { default as F } from "./components/bs-
|
|
13
|
-
import { default as M } from "./components/bs-offcanvas/BsOffcanvas.vue.js";
|
|
8
|
+
import { default as n } from "./components/bs-select/BsSelect.vue.js";
|
|
9
|
+
import { default as i } from "./components/bs-radio/BsRadio.vue.js";
|
|
10
|
+
import { default as h } from "./components/bs-toast/BsToast.vue.js";
|
|
11
|
+
import { default as v } from "./components/bs-modal/BsModal.vue.js";
|
|
12
|
+
import { default as F } from "./components/bs-offcanvas/BsOffcanvas.vue.js";
|
|
14
13
|
export {
|
|
15
14
|
o as BsBreadcrumb,
|
|
16
15
|
l as BsCheckbox,
|
|
17
16
|
t as BsForm,
|
|
18
17
|
s as BsInput,
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
v as BsModal,
|
|
19
|
+
F as BsOffcanvas,
|
|
21
20
|
p as BsPaginator,
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
i as BsRadio,
|
|
22
|
+
n as BsSelect,
|
|
24
23
|
c as BsTable,
|
|
25
24
|
u as BsTextarea,
|
|
26
|
-
|
|
27
|
-
h as useValidator
|
|
25
|
+
h as BsToast
|
|
28
26
|
};
|
package/dist/ssr-safe.d.ts
CHANGED
|
@@ -10,4 +10,3 @@ 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 { useValidator } from './components/validator/Validator.ts';
|
package/dist/ssr-safe.js
CHANGED
|
@@ -7,7 +7,6 @@ import { default as p } from "./components/bs-paginator/BsPaginator.vue.js";
|
|
|
7
7
|
import { default as b } from "./components/bs-table/BsTable.vue.js";
|
|
8
8
|
import { default as i } from "./components/bs-select/BsSelect.vue.js";
|
|
9
9
|
import { default as T } from "./components/bs-radio/BsRadio.vue.js";
|
|
10
|
-
import { useValidator as h } from "./components/validator/Validator.js";
|
|
11
10
|
export {
|
|
12
11
|
r as BsBreadcrumb,
|
|
13
12
|
l as BsCheckbox,
|
|
@@ -17,6 +16,5 @@ export {
|
|
|
17
16
|
T as BsRadio,
|
|
18
17
|
i as BsSelect,
|
|
19
18
|
b as BsTable,
|
|
20
|
-
u as BsTextarea
|
|
21
|
-
h as useValidator
|
|
19
|
+
u as BsTextarea
|
|
22
20
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bootstrap-vue-wrapper",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Bootstrap 5 components in Vue3 wrapper.",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -40,35 +40,38 @@
|
|
|
40
40
|
"author": "Gabor Zemko <gaborzemko@gmail.com>",
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@popperjs/core": "^2.0.0",
|
|
43
|
+
"@zemkogabor/vue-form-validator": "^1.2.0",
|
|
43
44
|
"bootstrap": "^5.1.0",
|
|
44
45
|
"bootstrap-icons": "^1.0.0",
|
|
45
46
|
"sass": "^1.70.0",
|
|
46
|
-
"vue": "^3.0.0"
|
|
47
|
-
"vue-i18n": "^9.0.0",
|
|
48
|
-
"vue-router": "^4.0.0"
|
|
47
|
+
"vue": "^3.0.0"
|
|
49
48
|
},
|
|
50
49
|
"devDependencies": {
|
|
50
|
+
"@eslint/js": "^9.39.2",
|
|
51
51
|
"@popperjs/core": "^2.11.8",
|
|
52
|
+
"@tsconfig/node22": "^22.0.5",
|
|
52
53
|
"@types/bootstrap": "^5.2.10",
|
|
53
|
-
"@types/node": "^
|
|
54
|
-
"@vitejs/plugin-vue": "^
|
|
55
|
-
"@vue/eslint-config-typescript": "^
|
|
54
|
+
"@types/node": "^25.0.10",
|
|
55
|
+
"@vitejs/plugin-vue": "^6.0.3",
|
|
56
|
+
"@vue/eslint-config-typescript": "^14.6.0",
|
|
57
|
+
"@vue/tsconfig": "^0.8.1",
|
|
58
|
+
"@zemkogabor/vue-form-validator": "^1.2.0",
|
|
56
59
|
"bootstrap": "^5.3.3",
|
|
57
60
|
"bootstrap-icons": "^1.11.3",
|
|
58
|
-
"eslint": "^
|
|
61
|
+
"eslint": "^9.39.2",
|
|
59
62
|
"eslint-config-standard": "^17.1.0",
|
|
60
|
-
"eslint-plugin-import": "^2.
|
|
61
|
-
"eslint-plugin-n": "^
|
|
63
|
+
"eslint-plugin-import": "^2.32.0",
|
|
64
|
+
"eslint-plugin-n": "^17.23.1",
|
|
62
65
|
"eslint-plugin-node": "^11.1.0",
|
|
63
|
-
"eslint-plugin-promise": "^
|
|
64
|
-
"eslint-plugin-vue": "^
|
|
66
|
+
"eslint-plugin-promise": "^7.2.1",
|
|
67
|
+
"eslint-plugin-vue": "^10.6.2",
|
|
68
|
+
"lint-staged": "^16.2.7",
|
|
65
69
|
"sass": "^1.71.1",
|
|
66
|
-
"typescript": "^
|
|
67
|
-
"vite": "^
|
|
68
|
-
"vite-plugin-dts": "^
|
|
69
|
-
"vue": "^3.
|
|
70
|
-
"vue-i18n": "^9.10.1",
|
|
70
|
+
"typescript-eslint": "^8.52.0",
|
|
71
|
+
"vite": "^7.3.1",
|
|
72
|
+
"vite-plugin-dts": "^4.5.4",
|
|
73
|
+
"vue": "^3.5.27",
|
|
71
74
|
"vue-router": "^4.3.0",
|
|
72
|
-
"vue-tsc": "^2.
|
|
75
|
+
"vue-tsc": "^3.2.2"
|
|
73
76
|
}
|
|
74
77
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated Use @zemkogabor/vue-form-validator instead of this file.
|
|
4
|
-
*/
|
|
5
|
-
export declare function useValidator(inputRef: Ref<HTMLInputElement | null>): {
|
|
6
|
-
onInvalid: (event: Event) => void;
|
|
7
|
-
getInvalidMessage: () => string | null;
|
|
8
|
-
setCustomError: (data: string) => void;
|
|
9
|
-
};
|