bootstrap-vue-wrapper 2.1.7 → 2.1.9

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 (32) hide show
  1. package/dist/bootstrap-vue-wrapper.js +1286 -0
  2. package/dist/style.css +1 -1
  3. package/package.json +3 -3
  4. package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
  5. package/dist/components/bs-breadcrumb/BsBreadcrumb.vue.js +0 -32
  6. package/dist/components/bs-breadcrumb/BsBreadcrumb.vue2.js +0 -27
  7. package/dist/components/bs-checkbox/BsCheckbox.vue.js +0 -43
  8. package/dist/components/bs-checkbox/BsCheckbox.vue2.js +0 -104
  9. package/dist/components/bs-form/BsForm.vue.js +0 -18
  10. package/dist/components/bs-form/BsForm.vue2.js +0 -23
  11. package/dist/components/bs-input/BsInput.vue.js +0 -39
  12. package/dist/components/bs-input/BsInput.vue2.js +0 -78
  13. package/dist/components/bs-modal/BsModal.vue.js +0 -51
  14. package/dist/components/bs-modal/BsModal.vue2.js +0 -59
  15. package/dist/components/bs-offcanvas/BsOffcanvas.vue.js +0 -34
  16. package/dist/components/bs-offcanvas/BsOffcanvas.vue2.js +0 -43
  17. package/dist/components/bs-paginator/BsPaginator.vue.js +0 -63
  18. package/dist/components/bs-paginator/BsPaginator.vue2.js +0 -114
  19. package/dist/components/bs-paginator/BsPaginator.vue3.js +0 -1
  20. package/dist/components/bs-radio/BsRadio.vue.js +0 -43
  21. package/dist/components/bs-radio/BsRadio.vue2.js +0 -97
  22. package/dist/components/bs-select/BsSelect.vue.js +0 -50
  23. package/dist/components/bs-select/BsSelect.vue2.js +0 -92
  24. package/dist/components/bs-table/BsTable.vue.js +0 -75
  25. package/dist/components/bs-table/BsTable.vue2.js +0 -108
  26. package/dist/components/bs-table/BsTable.vue3.js +0 -1
  27. package/dist/components/bs-textarea/BsTextarea.vue.js +0 -39
  28. package/dist/components/bs-textarea/BsTextarea.vue2.js +0 -78
  29. package/dist/components/bs-toast/BsToast.vue.js +0 -19
  30. package/dist/components/bs-toast/BsToast.vue2.js +0 -34
  31. package/dist/components/validator/Validator.js +0 -54
  32. package/dist/index.js +0 -28
@@ -1,19 +0,0 @@
1
- import t from "./BsToast.vue2.js";
2
- import { openBlock as o, createElementBlock as r, renderSlot as s } from "vue";
3
- import a from "../../_virtual/_plugin-vue_export-helper.js";
4
- const i = {
5
- ref: "toastRef",
6
- class: "toast hide",
7
- role: "alert",
8
- "aria-live": "assertive",
9
- "aria-atomic": "true"
10
- };
11
- function c(e, n, f, l, p, d) {
12
- return o(), r("div", i, [
13
- s(e.$slots, "default")
14
- ], 512);
15
- }
16
- const $ = /* @__PURE__ */ a(t, [["render", c]]);
17
- export {
18
- $ as default
19
- };
@@ -1,34 +0,0 @@
1
- import * as s from "bootstrap";
2
- import { defineComponent as n } from "vue";
3
- const e = s.Toast, i = n({
4
- name: "BsToast",
5
- emits: ["shown", "hidden"],
6
- mounted() {
7
- const t = this.$refs.toastRef;
8
- e.getOrCreateInstance(t).show(), t.addEventListener("shown.bs.toast", this.onShown), t.addEventListener("hidden.bs.toast", this.onHidden);
9
- },
10
- methods: {
11
- /**
12
- * Trigger toast hide event.
13
- */
14
- hide() {
15
- const t = this.$refs.toastRef;
16
- e.getOrCreateInstance(t).hide();
17
- },
18
- /**
19
- * Hidden event.
20
- */
21
- onShown() {
22
- this.$emit("shown");
23
- },
24
- /**
25
- * Hidden event.
26
- */
27
- onHidden() {
28
- this.$emit("hidden");
29
- }
30
- }
31
- });
32
- export {
33
- i as default
34
- };
@@ -1,54 +0,0 @@
1
- import { ref as v } from "vue";
2
- import { useI18n as m } from "vue-i18n";
3
- function c(i) {
4
- const { t: e } = m(), t = v(null);
5
- function l(r) {
6
- const a = i.value;
7
- a !== null && (r !== null ? a.setCustomValidity(r) : a.setCustomValidity(""), t.value = o(a));
8
- }
9
- function o(r) {
10
- if (r.validity.valueMissing)
11
- return e("validator.error.value_missing");
12
- if (r.validity.tooShort)
13
- return e("validator.error.too_short", [r.minLength]);
14
- if (r.validity.tooLong)
15
- return e("validator.error.too_long", [r.maxLength]);
16
- if (r.validity.rangeUnderflow)
17
- return e("validator.error.range_underflow", [r.min]);
18
- if (r.validity.rangeOverflow)
19
- return e("validator.error.range_overflow", [r.max]);
20
- if (r.validity.typeMismatch) {
21
- if (r.type === "email")
22
- return e("validator.error.type_mismatch.email");
23
- if (r.type === "url")
24
- return e("validator.error.type_mismatch.url");
25
- }
26
- if (r.validity.badInput) {
27
- if (r.type === "number")
28
- return e("validator.error.bad_input.number");
29
- if (r.type === "date")
30
- return e("validator.error.bad_input.date");
31
- }
32
- if (r.validity.patternMismatch)
33
- return e("validator.error.pattern_mismatch");
34
- if (r.validity.stepMismatch) {
35
- const a = Math.floor(Number(r.value) / Number(r.step)) * Number(r.step), d = Math.ceil(Number(r.value) / Number(r.step)) * Number(r.step);
36
- return e("validator.error.step_mismatch", [a, d]);
37
- }
38
- return r.validity.customError ? r.validationMessage : null;
39
- }
40
- function n(r) {
41
- r.target !== null && (t.value = o(r.target));
42
- }
43
- function s() {
44
- return t.value;
45
- }
46
- return {
47
- onInvalid: n,
48
- getInvalidMessage: s,
49
- setCustomError: l
50
- };
51
- }
52
- export {
53
- c as useValidator
54
- };
package/dist/index.js DELETED
@@ -1,28 +0,0 @@
1
- import { default as o } 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 c } from "./components/bs-table/BsTable.vue.js";
8
- import { default as i } from "./components/bs-toast/BsToast.vue.js";
9
- import { default as T } from "./components/bs-modal/BsModal.vue.js";
10
- import { default as h } from "./components/bs-select/BsSelect.vue.js";
11
- import { default as v } from "./components/bs-radio/BsRadio.vue.js";
12
- import { default as F } from "./components/bs-offcanvas/BsOffcanvas.vue.js";
13
- import { useValidator as M } from "./components/validator/Validator.js";
14
- export {
15
- o as BsBreadcrumb,
16
- l as BsCheckbox,
17
- t as BsForm,
18
- s as BsInput,
19
- T as BsModal,
20
- F as BsOffcanvas,
21
- p as BsPaginator,
22
- v as BsRadio,
23
- h as BsSelect,
24
- c as BsTable,
25
- u as BsTextarea,
26
- i as BsToast,
27
- M as useValidator
28
- };