bootstrap-vue-wrapper 2.1.19 → 2.2.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 (31) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  2. package/dist/components/bs-breadcrumb/BsBreadcrumb.vue.js +32 -0
  3. package/dist/components/bs-breadcrumb/BsBreadcrumb.vue2.js +27 -0
  4. package/dist/components/bs-checkbox/BsCheckbox.vue.js +43 -0
  5. package/dist/components/bs-checkbox/BsCheckbox.vue2.js +104 -0
  6. package/dist/components/bs-form/BsForm.vue.js +18 -0
  7. package/dist/components/bs-form/BsForm.vue2.js +23 -0
  8. package/dist/components/bs-input/BsInput.vue.js +39 -0
  9. package/dist/components/bs-input/BsInput.vue2.js +78 -0
  10. package/dist/components/bs-modal/BsModal.vue.js +50 -0
  11. package/dist/components/bs-modal/BsModal.vue2.js +47 -0
  12. package/dist/components/bs-offcanvas/BsOffcanvas.vue.js +34 -0
  13. package/dist/components/bs-offcanvas/BsOffcanvas.vue2.js +43 -0
  14. package/dist/components/bs-paginator/BsPaginator.vue.js +63 -0
  15. package/dist/components/bs-paginator/BsPaginator.vue2.js +114 -0
  16. package/dist/components/bs-paginator/BsPaginator.vue3.js +1 -0
  17. package/dist/components/bs-radio/BsRadio.vue.js +43 -0
  18. package/dist/components/bs-radio/BsRadio.vue2.js +97 -0
  19. package/dist/components/bs-select/BsSelect.vue.js +51 -0
  20. package/dist/components/bs-select/BsSelect.vue2.js +92 -0
  21. package/dist/components/bs-table/BsTable.vue.js +77 -0
  22. package/dist/components/bs-table/BsTable.vue2.js +115 -0
  23. package/dist/components/bs-table/BsTable.vue3.js +1 -0
  24. package/dist/components/bs-textarea/BsTextarea.vue.js +39 -0
  25. package/dist/components/bs-textarea/BsTextarea.vue2.js +78 -0
  26. package/dist/components/bs-toast/BsToast.vue.js +19 -0
  27. package/dist/components/bs-toast/BsToast.vue2.js +34 -0
  28. package/dist/components/validator/Validator.js +54 -0
  29. package/dist/index.js +28 -0
  30. package/package.json +3 -3
  31. package/dist/bootstrap-vue-wrapper.js +0 -1281
@@ -0,0 +1,9 @@
1
+ const s = (t, e) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [r, c] of e)
4
+ o[r] = c;
5
+ return o;
6
+ };
7
+ export {
8
+ s as default
9
+ };
@@ -0,0 +1,32 @@
1
+ import s from "./BsBreadcrumb.vue2.js";
2
+ import { resolveComponent as c, openBlock as t, createElementBlock as o, createElementVNode as i, Fragment as u, renderList as d, normalizeClass as m, createBlock as _, withCtx as p, createTextVNode as b, toDisplayString as n } from "vue";
3
+ import f from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const k = { "aria-label": "breadcrumb" }, h = { class: "breadcrumb" }, v = ["textContent"];
5
+ function B(r, C, x, y, $, g) {
6
+ const a = c("router-link");
7
+ return t(), o("nav", k, [
8
+ i("ol", h, [
9
+ (t(!0), o(u, null, d(r.items, (e, l) => (t(), o("li", {
10
+ key: l,
11
+ class: m(["breadcrumb-item", { active: !r.isRouteAvailable(e) }])
12
+ }, [
13
+ r.isRouteAvailable(e) ? (t(), _(a, {
14
+ key: 0,
15
+ to: e.route
16
+ }, {
17
+ default: p(() => [
18
+ b(n(e.title), 1)
19
+ ]),
20
+ _: 2
21
+ }, 1032, ["to"])) : (t(), o("span", {
22
+ key: 1,
23
+ textContent: n(e.title)
24
+ }, null, 8, v))
25
+ ], 2))), 128))
26
+ ])
27
+ ]);
28
+ }
29
+ const R = /* @__PURE__ */ f(s, [["render", B]]);
30
+ export {
31
+ R as default
32
+ };
@@ -0,0 +1,27 @@
1
+ import { defineComponent as r } from "vue";
2
+ const o = r({
3
+ name: "BsBreadcrumb",
4
+ props: {
5
+ /**
6
+ * List of breadcrumb items.
7
+ */
8
+ items: {
9
+ type: Array,
10
+ required: !0
11
+ }
12
+ },
13
+ methods: {
14
+ /**
15
+ * Is route available
16
+ *
17
+ * @param item
18
+ * @returns {boolean}
19
+ */
20
+ isRouteAvailable(e) {
21
+ return e.route !== void 0;
22
+ }
23
+ }
24
+ });
25
+ export {
26
+ o as default
27
+ };
@@ -0,0 +1,43 @@
1
+ import a from "./BsCheckbox.vue2.js";
2
+ import { openBlock as t, createElementBlock as o, normalizeClass as r, createElementVNode as s, mergeProps as u, toDisplayString as l, createCommentVNode as d } from "vue";
3
+ import p from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = ["id", "value", "checked", "aria-describedby"], v = ["for", "textContent"], f = ["textContent"], k = ["id", "textContent"];
5
+ function b(e, n, c, h, C, I) {
6
+ return t(), o("div", {
7
+ class: r(["form-check", e.classContainer])
8
+ }, [
9
+ s("input", u({
10
+ id: e.id,
11
+ ref: "inputRef",
12
+ value: e.modelValue
13
+ }, e.$attrs, {
14
+ type: "checkbox",
15
+ class: "form-check-input",
16
+ checked: e.isChecked,
17
+ "aria-describedby": e.hint !== void 0 ? e.getHintId() : void 0,
18
+ onInput: n[0] || (n[0] = (...i) => e.onInput && e.onInput(...i)),
19
+ onInvalid: n[1] || (n[1] = (...i) => e.onInvalid && e.onInvalid(...i))
20
+ }), null, 16, m),
21
+ e.label !== void 0 ? (t(), o("label", {
22
+ key: 0,
23
+ for: e.id,
24
+ class: "form-check-label",
25
+ textContent: l(e.label)
26
+ }, null, 8, v)) : d("", !0),
27
+ e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (t(), o("div", {
28
+ key: 1,
29
+ class: "invalid-feedback",
30
+ textContent: l(e.validator.getInvalidMessage())
31
+ }, null, 8, f)) : d("", !0),
32
+ e.hint !== void 0 ? (t(), o("div", {
33
+ key: 2,
34
+ id: e.getHintId(),
35
+ class: "form-text",
36
+ textContent: l(e.hint)
37
+ }, null, 8, k)) : d("", !0)
38
+ ], 2);
39
+ }
40
+ const B = /* @__PURE__ */ p(a, [["render", b]]);
41
+ export {
42
+ B as default
43
+ };
@@ -0,0 +1,104 @@
1
+ import { useValidator as i } from "../validator/Validator.js";
2
+ import { defineComponent as l, ref as n } from "vue";
3
+ const r = l({
4
+ name: "BsCheckbox",
5
+ props: {
6
+ /**
7
+ * Value for checkbox if v-model is array.
8
+ */
9
+ value: {
10
+ type: String,
11
+ default: null
12
+ },
13
+ /**
14
+ * Value for v-model
15
+ */
16
+ modelValue: {
17
+ type: [Array, Boolean],
18
+ default: null
19
+ },
20
+ /**
21
+ * Html id
22
+ */
23
+ id: {
24
+ type: String,
25
+ required: !0
26
+ },
27
+ /**
28
+ * Label for input
29
+ */
30
+ label: {
31
+ type: String,
32
+ default: void 0
33
+ },
34
+ /**
35
+ * Attribute hint
36
+ */
37
+ hint: {
38
+ type: String,
39
+ default: void 0
40
+ },
41
+ /**
42
+ * Input container div class.
43
+ */
44
+ classContainer: {
45
+ type: String,
46
+ default: void 0
47
+ },
48
+ /**
49
+ * Enable or disable validator
50
+ */
51
+ validatorEnabled: {
52
+ type: Boolean,
53
+ default: !0
54
+ }
55
+ },
56
+ emits: ["update:modelValue"],
57
+ setup() {
58
+ const e = n(null);
59
+ return {
60
+ inputRef: e,
61
+ validator: i(e)
62
+ };
63
+ },
64
+ computed: {
65
+ /**
66
+ * Checkbox is checked or not.
67
+ */
68
+ isChecked() {
69
+ return this.modelValue instanceof Array ? this.modelValue.includes(this.value) : this.modelValue === !0;
70
+ }
71
+ },
72
+ methods: {
73
+ /**
74
+ * Hint id is generated
75
+ */
76
+ getHintId() {
77
+ return this.id + "Hint";
78
+ },
79
+ /**
80
+ * On input event
81
+ *
82
+ * @param event
83
+ */
84
+ onInput(e) {
85
+ const a = e.target.checked;
86
+ if (this.modelValue instanceof Array) {
87
+ const t = [...this.modelValue];
88
+ a ? t.push(this.value) : t.splice(t.indexOf(this.value), 1), this.$emit("update:modelValue", t);
89
+ } else
90
+ this.$emit("update:modelValue", a);
91
+ },
92
+ /**
93
+ * On invalid event
94
+ *
95
+ * @param event
96
+ */
97
+ onInvalid(e) {
98
+ this.validatorEnabled && this.validator.onInvalid(e);
99
+ }
100
+ }
101
+ });
102
+ export {
103
+ r as default
104
+ };
@@ -0,0 +1,18 @@
1
+ import t from "./BsForm.vue2.js";
2
+ import { openBlock as n, createElementBlock as s, normalizeClass as a, renderSlot as i } from "vue";
3
+ import m from "../../_virtual/_plugin-vue_export-helper.js";
4
+ function l(o, e, d, f, p, u) {
5
+ return n(), s("form", {
6
+ class: a(["needs-validation", {
7
+ "was-validated": o.submitClicked
8
+ }]),
9
+ novalidate: "",
10
+ onSubmit: e[0] || (e[0] = (...r) => o.onSubmit && o.onSubmit(...r))
11
+ }, [
12
+ i(o.$slots, "default")
13
+ ], 34);
14
+ }
15
+ const S = /* @__PURE__ */ m(t, [["render", l]]);
16
+ export {
17
+ S as default
18
+ };
@@ -0,0 +1,23 @@
1
+ import { defineComponent as e } from "vue";
2
+ const m = e({
3
+ name: "BsForm",
4
+ emits: ["submit"],
5
+ data() {
6
+ return {
7
+ submitClicked: !1
8
+ };
9
+ },
10
+ methods: {
11
+ /**
12
+ * On submit event.
13
+ *
14
+ * @param event
15
+ */
16
+ onSubmit(t) {
17
+ t.preventDefault(), this.submitClicked = !0, this.$emit("submit", t);
18
+ }
19
+ }
20
+ });
21
+ export {
22
+ m as default
23
+ };
@@ -0,0 +1,39 @@
1
+ import r from "./BsInput.vue2.js";
2
+ import { openBlock as n, createElementBlock as o, Fragment as a, toDisplayString as l, createCommentVNode as d, createElementVNode as s, mergeProps as u } from "vue";
3
+ import p from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = ["for", "textContent"], v = ["id", "value", "aria-describedby"], f = ["textContent"], I = ["id", "textContent"];
5
+ function b(e, t, g, C, k, y) {
6
+ return n(), o(a, null, [
7
+ e.label !== void 0 ? (n(), o("label", {
8
+ key: 0,
9
+ for: e.id,
10
+ class: "form-label",
11
+ textContent: l(e.label)
12
+ }, null, 8, m)) : d("", !0),
13
+ s("input", u({
14
+ id: e.id,
15
+ ref: "inputRef",
16
+ value: e.modelValue,
17
+ class: "form-control"
18
+ }, e.$attrs, {
19
+ "aria-describedby": e.hint !== void 0 ? e.getHintId() : void 0,
20
+ onInput: t[0] || (t[0] = (...i) => e.onInput && e.onInput(...i)),
21
+ onInvalid: t[1] || (t[1] = (...i) => e.onInvalid && e.onInvalid(...i))
22
+ }), null, 16, v),
23
+ e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (n(), o("div", {
24
+ key: 1,
25
+ class: "invalid-feedback",
26
+ textContent: l(e.validator.getInvalidMessage())
27
+ }, null, 8, f)) : d("", !0),
28
+ e.hint !== void 0 ? (n(), o("div", {
29
+ key: 2,
30
+ id: e.getHintId(),
31
+ class: "form-text",
32
+ textContent: l(e.hint)
33
+ }, null, 8, I)) : d("", !0)
34
+ ], 64);
35
+ }
36
+ const E = /* @__PURE__ */ p(r, [["render", b]]);
37
+ export {
38
+ E as default
39
+ };
@@ -0,0 +1,78 @@
1
+ import { useValidator as a } from "../validator/Validator.js";
2
+ import { defineComponent as i, ref as n } from "vue";
3
+ const d = i({
4
+ name: "BsInput",
5
+ props: {
6
+ /**
7
+ * Value for v-model
8
+ */
9
+ modelValue: {
10
+ type: [String, Number],
11
+ default: null
12
+ },
13
+ /**
14
+ * Html id
15
+ */
16
+ id: {
17
+ type: String,
18
+ required: !0
19
+ },
20
+ /**
21
+ * Label for input
22
+ */
23
+ label: {
24
+ type: String,
25
+ default: void 0
26
+ },
27
+ /**
28
+ * Attribute hint
29
+ */
30
+ hint: {
31
+ type: String,
32
+ default: void 0
33
+ },
34
+ /**
35
+ * Enable or disable validator
36
+ */
37
+ validatorEnabled: {
38
+ type: Boolean,
39
+ default: !0
40
+ }
41
+ },
42
+ emits: ["update:modelValue"],
43
+ setup() {
44
+ const t = n(null);
45
+ return {
46
+ inputRef: t,
47
+ validator: a(t)
48
+ };
49
+ },
50
+ methods: {
51
+ /**
52
+ * Hint id is generated
53
+ */
54
+ getHintId() {
55
+ return this.id + "Hint";
56
+ },
57
+ /**
58
+ * On input event
59
+ *
60
+ * @param event
61
+ */
62
+ onInput(t) {
63
+ const e = t.target;
64
+ this.$emit("update:modelValue", e.value);
65
+ },
66
+ /**
67
+ * On invalid event
68
+ *
69
+ * @param event
70
+ */
71
+ onInvalid(t) {
72
+ this.validatorEnabled && this.validator.onInvalid(t);
73
+ }
74
+ }
75
+ });
76
+ export {
77
+ d as default
78
+ };
@@ -0,0 +1,50 @@
1
+ import l from "./BsModal.vue2.js";
2
+ import { openBlock as e, createElementBlock as t, createElementVNode as s, normalizeClass as n, renderSlot as d, toDisplayString as i, createCommentVNode as a } from "vue";
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const c = {
5
+ ref: "modalRef",
6
+ class: "modal fade",
7
+ tabindex: "-1"
8
+ }, m = { class: "modal-content" }, h = {
9
+ key: 0,
10
+ class: "modal-header"
11
+ }, _ = ["textContent"], f = /* @__PURE__ */ s("button", {
12
+ type: "button",
13
+ class: "btn-close",
14
+ "data-bs-dismiss": "modal"
15
+ }, null, -1), p = {
16
+ key: 1,
17
+ class: "modal-body"
18
+ }, u = {
19
+ key: 2,
20
+ class: "modal-footer"
21
+ };
22
+ function y(o, b, v, $, k, B) {
23
+ return e(), t("div", c, [
24
+ s("div", {
25
+ class: n(["modal-dialog", o.classDialog])
26
+ }, [
27
+ s("div", m, [
28
+ o.hideHeader ? a("", !0) : (e(), t("div", h, [
29
+ d(o.$slots, "header", {}, () => [
30
+ s("div", {
31
+ class: "h5 modal-title",
32
+ textContent: i(o.title)
33
+ }, null, 8, _),
34
+ f
35
+ ])
36
+ ])),
37
+ o.hideBody ? a("", !0) : (e(), t("div", p, [
38
+ d(o.$slots, "body")
39
+ ])),
40
+ o.hideFooter ? a("", !0) : (e(), t("div", u, [
41
+ d(o.$slots, "footer")
42
+ ]))
43
+ ])
44
+ ], 2)
45
+ ], 512);
46
+ }
47
+ const E = /* @__PURE__ */ r(l, [["render", y]]);
48
+ export {
49
+ E as default
50
+ };
@@ -0,0 +1,47 @@
1
+ import { Modal as d } from "bootstrap";
2
+ import { defineComponent as s } from "vue";
3
+ const n = s({
4
+ name: "BsModal",
5
+ props: {
6
+ /**
7
+ * Modal title
8
+ */
9
+ title: {
10
+ type: String,
11
+ required: !0
12
+ },
13
+ classDialog: {
14
+ type: [String, Object],
15
+ default: null
16
+ },
17
+ hideHeader: {
18
+ type: Boolean,
19
+ default: !1
20
+ },
21
+ hideBody: {
22
+ type: Boolean,
23
+ default: !1
24
+ },
25
+ hideFooter: {
26
+ type: Boolean,
27
+ default: !1
28
+ }
29
+ },
30
+ emits: ["show", "shown", "hide", "hidden", "hidePrevented"],
31
+ mounted() {
32
+ const t = this.$refs.modalRef;
33
+ d.getOrCreateInstance(t).show(), t.addEventListener("show.bs.modal", (e) => this.$emit("show", e)), t.addEventListener("shown.bs.modal", (e) => this.$emit("shown", e)), t.addEventListener("hide.bs.modal", (e) => this.$emit("hide", e)), t.addEventListener("hidden.bs.modal", (e) => this.$emit("hidden", e)), t.addEventListener("hidePrevented.bs.modal", (e) => this.$emit("hidePrevented", e));
34
+ },
35
+ methods: {
36
+ /**
37
+ * Trigger modal hide event.
38
+ */
39
+ hide() {
40
+ const t = this.$refs.modalRef;
41
+ d.getOrCreateInstance(t).hide();
42
+ }
43
+ }
44
+ });
45
+ export {
46
+ n as default
47
+ };
@@ -0,0 +1,34 @@
1
+ import o from "./BsOffcanvas.vue2.js";
2
+ import { openBlock as a, createElementBlock as n, createElementVNode as t, renderSlot as s, toDisplayString as c } from "vue";
3
+ import f from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const i = {
5
+ ref: "offcanvasRef",
6
+ class: "offcanvas",
7
+ tabindex: "-1",
8
+ "aria-labelledby": "offcanvasTitle"
9
+ }, l = { class: "offcanvas-header" }, r = ["textContent"], d = /* @__PURE__ */ t("button", {
10
+ type: "button",
11
+ class: "btn-close text-reset",
12
+ "data-bs-dismiss": "offcanvas"
13
+ }, null, -1), _ = { class: "offcanvas-body" };
14
+ function p(e, v, m, b, h, u) {
15
+ return a(), n("div", i, [
16
+ t("div", l, [
17
+ s(e.$slots, "header", {}, () => [
18
+ t("div", {
19
+ id: "offcanvasTitle",
20
+ class: "h5 mb-0",
21
+ textContent: c(e.title)
22
+ }, null, 8, r),
23
+ d
24
+ ])
25
+ ]),
26
+ t("div", _, [
27
+ s(e.$slots, "body")
28
+ ])
29
+ ], 512);
30
+ }
31
+ const B = /* @__PURE__ */ f(o, [["render", p]]);
32
+ export {
33
+ B as default
34
+ };
@@ -0,0 +1,43 @@
1
+ import { Offcanvas as n } from "bootstrap";
2
+ import { defineComponent as t } from "vue";
3
+ const a = t({
4
+ name: "BsOffcanvas",
5
+ props: {
6
+ /**
7
+ * Offcanvas title
8
+ */
9
+ title: {
10
+ type: String,
11
+ required: !0
12
+ }
13
+ },
14
+ emits: ["shown", "hidden"],
15
+ mounted() {
16
+ const e = this.$refs.offcanvasRef;
17
+ n.getOrCreateInstance(e).show(), e.addEventListener("shown.bs.offcanvas", this.onShown), e.addEventListener("hidden.bs.offcanvas", this.onHidden);
18
+ },
19
+ methods: {
20
+ /**
21
+ * Trigger offcanvas hide event.
22
+ */
23
+ hide() {
24
+ const e = this.$refs.offcanvasRef;
25
+ n.getOrCreateInstance(e).hide();
26
+ },
27
+ /**
28
+ * Shown event.
29
+ */
30
+ onShown() {
31
+ this.$emit("shown");
32
+ },
33
+ /**
34
+ * Hidden event.
35
+ */
36
+ onHidden() {
37
+ this.$emit("hidden");
38
+ }
39
+ }
40
+ });
41
+ export {
42
+ a as default
43
+ };
@@ -0,0 +1,63 @@
1
+ import r from "./BsPaginator.vue2.js";
2
+ import { openBlock as s, createElementBlock as o, createElementVNode as t, normalizeClass as a, toDisplayString as l, Fragment as p, renderList as d } from "vue";
3
+ import "./BsPaginator.vue3.js";
4
+ import C from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const m = { class: "pagination" }, u = ["textContent"], P = ["textContent"], v = ["onClick", "textContent"], k = ["textContent"], c = ["textContent"];
6
+ function f(e, n, b, $, A, L) {
7
+ return s(), o("nav", null, [
8
+ t("ul", m, [
9
+ t("li", {
10
+ class: a(["page-item page-item-first", { disabled: e.isPageActive(1) }])
11
+ }, [
12
+ t("div", {
13
+ class: "page-link",
14
+ onClick: n[0] || (n[0] = (i) => e.onPageClick(1)),
15
+ textContent: l(e.firstPageLabel)
16
+ }, null, 8, u)
17
+ ], 2),
18
+ t("li", {
19
+ class: a(["page-item page-item-previous", { disabled: e.isPageActive(1) }])
20
+ }, [
21
+ t("div", {
22
+ class: "page-link",
23
+ onClick: n[1] || (n[1] = (i) => e.onPageClick(e.currentPage - 1)),
24
+ textContent: l(e.previousPageLabel)
25
+ }, null, 8, P)
26
+ ], 2),
27
+ (s(!0), o(p, null, d(e.getVisiblePages(), (i, g) => (s(), o("li", {
28
+ key: g,
29
+ class: a(["page-item page-item-number", {
30
+ active: e.isPageActive(i)
31
+ }])
32
+ }, [
33
+ t("div", {
34
+ class: "page-link",
35
+ onClick: (B) => e.onPageClick(i),
36
+ textContent: l(i)
37
+ }, null, 8, v)
38
+ ], 2))), 128)),
39
+ t("li", {
40
+ class: a(["page-item page-item-next", { disabled: e.isPageActive(e.getPageCount()) }])
41
+ }, [
42
+ t("div", {
43
+ class: "page-link",
44
+ onClick: n[2] || (n[2] = (i) => e.onPageClick(e.currentPage + 1)),
45
+ textContent: l(e.nextPageLabel)
46
+ }, null, 8, k)
47
+ ], 2),
48
+ t("li", {
49
+ class: a(["page-item page-item-last", { disabled: e.isPageActive(e.getPageCount()) }])
50
+ }, [
51
+ t("div", {
52
+ class: "page-link",
53
+ onClick: n[3] || (n[3] = (i) => e.onPageClick(e.getPageCount())),
54
+ textContent: l(e.lastPageLabel)
55
+ }, null, 8, c)
56
+ ], 2)
57
+ ])
58
+ ]);
59
+ }
60
+ const D = /* @__PURE__ */ C(r, [["render", f], ["__scopeId", "data-v-ff85ae67"]]);
61
+ export {
62
+ D as default
63
+ };