bootstrap-vue-wrapper 2.1.4 → 2.1.6

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/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 +51 -0
  11. package/dist/components/bs-modal/BsModal.vue2.js +59 -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 +50 -0
  20. package/dist/components/bs-select/BsSelect.vue2.js +92 -0
  21. package/dist/components/bs-table/BsTable.vue.js +75 -0
  22. package/dist/components/bs-table/BsTable.vue2.js +108 -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/dist/style.css +1 -1
  31. package/package.json +4 -2
  32. package/dist/bootstrap-vue-wrapper.js +0 -1284
  33. package/dist/bootstrap-vue-wrapper.umd.cjs +0 -1
@@ -0,0 +1,19 @@
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
+ };
@@ -0,0 +1,34 @@
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
+ };
@@ -0,0 +1,54 @@
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 ADDED
@@ -0,0 +1,28 @@
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
+ };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .page-link[data-v-ff85ae67]{cursor:pointer}.page-item-first[data-v-ff85ae67],.page-item-last[data-v-ff85ae67],.page-item-number[data-v-ff85ae67]:not(.active){display:none}@media (min-width: 576px){.page-item-number[data-v-ff85ae67]:not(.active){display:block}}@media (min-width: 992px){.page-item-first[data-v-ff85ae67],.page-item-last[data-v-ff85ae67]{display:block}}.cursor-pointer[data-v-7c949d62]{cursor:pointer}
1
+ .cursor-pointer[data-v-7c949d62],.page-link[data-v-ff85ae67]{cursor:pointer}.page-item-first[data-v-ff85ae67],.page-item-last[data-v-ff85ae67],.page-item-number[data-v-ff85ae67]:not(.active){display:none}@media (min-width: 576px){.page-item-number[data-v-ff85ae67]:not(.active){display:block}}@media (min-width: 992px){.page-item-first[data-v-ff85ae67],.page-item-last[data-v-ff85ae67]{display:block}}
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "bootstrap-vue-wrapper",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "Bootstrap 5 components in Vue3 wrapper.",
5
5
  "main": "./dist/bootstrap-vue-wrapper.umd.cjs",
6
6
  "module": "./dist/bootstrap-vue-wrapper.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "type": "module",
9
- "sideEffects": false,
9
+ "sideEffects": [
10
+ "*.css"
11
+ ],
10
12
  "exports": {
11
13
  ".": {
12
14
  "import": "./dist/bootstrap-vue-wrapper.js",