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.
Files changed (33) hide show
  1. package/README.md +7 -1
  2. package/dist/bootstrap-vue-wrapper.css +1 -0
  3. package/dist/components/bs-breadcrumb/BsBreadcrumb.vue.d.ts +5 -5
  4. package/dist/components/bs-checkbox/BsCheckbox.vue.d.ts +9 -9
  5. package/dist/components/bs-checkbox/BsCheckbox.vue2.js +1 -1
  6. package/dist/components/bs-form/BsForm.vue.d.ts +3 -3
  7. package/dist/components/bs-input/BsInput.vue.d.ts +41 -11
  8. package/dist/components/bs-input/BsInput.vue2.js +23 -8
  9. package/dist/components/bs-modal/BsModal.vue.d.ts +7 -7
  10. package/dist/components/bs-modal/BsModal.vue.js +21 -21
  11. package/dist/components/bs-offcanvas/BsOffcanvas.vue.d.ts +5 -5
  12. package/dist/components/bs-offcanvas/BsOffcanvas.vue.js +19 -19
  13. package/dist/components/bs-paginator/BsPaginator.vue.d.ts +8 -8
  14. package/dist/components/bs-paginator/BsPaginator.vue.js +2 -2
  15. package/dist/components/bs-radio/BsRadio.vue.d.ts +13 -13
  16. package/dist/components/bs-radio/BsRadio.vue2.js +1 -1
  17. package/dist/components/bs-select/BsSelect.vue.d.ts +11 -11
  18. package/dist/components/bs-select/BsSelect.vue2.js +2 -2
  19. package/dist/components/bs-table/BsTable.vue.d.ts +28 -9
  20. package/dist/components/bs-table/BsTable.vue.js +41 -41
  21. package/dist/components/bs-table/BsTable.vue2.js +7 -3
  22. package/dist/components/bs-textarea/BsTextarea.vue.d.ts +40 -10
  23. package/dist/components/bs-textarea/BsTextarea.vue2.js +22 -7
  24. package/dist/components/bs-toast/BsToast.vue.d.ts +3 -3
  25. package/dist/index.js +10 -12
  26. package/dist/ssr-safe.d.ts +0 -1
  27. package/dist/ssr-safe.js +1 -3
  28. package/package.json +21 -18
  29. package/dist/components/bs-paginator/BsPaginator.vue3.js +0 -1
  30. package/dist/components/bs-table/BsTable.vue3.js +0 -1
  31. package/dist/components/validator/Validator.d.ts +0 -9
  32. package/dist/components/validator/Validator.js +0 -54
  33. 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("vue").DefineComponent<{
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<string | number | string[] | number[] | null>;
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
- }, unknown, {}, {
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("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
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<string | number | string[] | number[] | null>;
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 "../validator/Validator.js";
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("vue").DefineComponent<{
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<any[]>;
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
- }, unknown, unknown, {}, {
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("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("orderChanged" | "rowClicked")[], "orderChanged" | "rowClicked", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
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<any[]>;
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 y from "./BsTable.vue2.js";
2
- import { resolveDirective as v, openBlock as t, createElementBlock as o, createElementVNode as r, Fragment as a, renderList as c, normalizeClass as d, renderSlot as n, createTextVNode as p, toDisplayString as u, createCommentVNode as h, withDirectives as C, pushScopeId as m, popScopeId as _ } from "vue";
3
- import "./BsTable.vue3.js";
4
- import $ from "../../_virtual/_plugin-vue_export-helper.js";
5
- const b = (e) => (m("data-v-c310373d"), e = e(), _(), e), g = { class: "table" }, w = ["onClick"], S = { key: 0 }, f = ["colspan"], B = /* @__PURE__ */ b(() => /* @__PURE__ */ r("div", { class: "d-flex justify-content-center p-2" }, [
6
- /* @__PURE__ */ r("div", { class: "spinner-border spinner-border-sm" })
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", 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, c(e.fields, (s) => (t(), o("th", {
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
- n(e.$slots, "tr", {}, () => [
23
- p(u(s.label) + " ", 1),
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)) : h("", !0)
24
+ }, null, 2)) : y("", !0)
28
25
  ], !0)
29
- ], 10, w))), 128))
26
+ ], 10, $))), 128))
30
27
  ])
31
28
  ]),
32
29
  r("tbody", null, [
33
- e.isLoading ? (t(), o("tr", S, [
30
+ e.isLoading ? (t(), o("tr", v, [
34
31
  r("td", {
35
32
  colspan: e.fields.length
36
33
  }, [
37
- n(e.$slots, "loading", {}, () => [
38
- B
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, f)
41
- ])) : e.items.length === 0 ? (t(), o("tr", D, [
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
- n(e.$slots, "empty", {}, () => [
46
- C(r("div", N, null, 512), [
47
- [k, "table.empty_text"]
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, I)
51
- ])) : (t(!0), o(a, { key: 2 }, c(e.items, (s, i) => (t(), o(a, { key: i }, [
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: (l) => e.$emit("rowClicked", s)
55
+ onClick: (n) => e.$emit("rowClicked", s)
56
56
  }, [
57
- (t(!0), o(a, null, c(e.fields, (l) => (t(), o("td", {
58
- key: l.key,
59
- class: d(l.tdClass || e.tdClass)
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
- n(e.$slots, "td", {
61
+ l(e.$slots, "td", {
62
62
  key: i,
63
- field: l.key,
63
+ field: n.key,
64
64
  row: s,
65
- value: l.key in s ? s[l.key] : null
65
+ value: n.key in s ? s[n.key] : null
66
66
  }, () => [
67
- p(u(s[l.key]), 1)
67
+ k(c(s[n.key]), 1)
68
68
  ], !0)
69
69
  ], 2))), 128))
70
- ], 10, V),
71
- s._showRowDetails ? (t(), o("tr", A, [
70
+ ], 10, B),
71
+ s._showRowDetails ? (t(), o("tr", _, [
72
72
  r("td", {
73
73
  colspan: e.fields.length
74
74
  }, [
75
- n(e.$slots, "row-details", { row: s }, void 0, !0)
76
- ], 8, E)
77
- ])) : h("", !0)
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 J = /* @__PURE__ */ $(y, [["render", F], ["__scopeId", "data-v-c310373d"]]);
82
+ const O = /* @__PURE__ */ C(h, [["render", D], ["__scopeId", "data-v-24264439"]]);
83
83
  export {
84
- J as default
84
+ O as default
85
85
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as r } from "vue";
2
- const s = r({
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
- s as default
118
+ i as default
115
119
  };
@@ -1,10 +1,10 @@
1
1
  import { Ref } from 'vue';
2
- declare const _default: import("vue").DefineComponent<{
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: (NumberConstructor | StringConstructor)[];
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
- inputRef: Ref<HTMLInputElement | null>;
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
- }, unknown, {}, {
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("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
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: (NumberConstructor | StringConstructor)[];
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 "../validator/Validator.js";
2
- import { defineComponent as i, ref as n } from "vue";
3
- const d = i({
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 = n(null);
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 e = t.target;
64
- this.$emit("update:modelValue", e.value);
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
- d as default
92
+ u as default
78
93
  };
@@ -1,4 +1,4 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {
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("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hidden" | "shown")[], "hidden" | "shown", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
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 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";
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
- F as BsModal,
20
- M as BsOffcanvas,
18
+ v as BsModal,
19
+ F as BsOffcanvas,
21
20
  p as BsPaginator,
22
- T as BsRadio,
23
- i as BsSelect,
21
+ i as BsRadio,
22
+ n as BsSelect,
24
23
  c as BsTable,
25
24
  u as BsTextarea,
26
- v as BsToast,
27
- h as useValidator
25
+ h as BsToast
28
26
  };
@@ -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": "2.3.4",
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": "^20.11.27",
54
- "@vitejs/plugin-vue": "^5.0.4",
55
- "@vue/eslint-config-typescript": "^13.0.0",
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": "^8.57.0",
61
+ "eslint": "^9.39.2",
59
62
  "eslint-config-standard": "^17.1.0",
60
- "eslint-plugin-import": "^2.29.1",
61
- "eslint-plugin-n": "^16.6.2",
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": "^6.1.1",
64
- "eslint-plugin-vue": "^9.23.0",
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": "^5.4.2",
67
- "vite": "^5.1.6",
68
- "vite-plugin-dts": "^3.7.2",
69
- "vue": "^3.4.21",
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.0.6"
75
+ "vue-tsc": "^3.2.2"
73
76
  }
74
77
  }
@@ -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
- };