bootstrap-vue-wrapper 2.3.4 → 3.0.0
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 +23 -8
- package/dist/components/bs-toast/BsToast.vue.d.ts +3 -3
- package/dist/index.js +10 -12
- package/dist/node_modules/@zemkogabor/vue-form-validator/dist/index.js +63 -0
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bootstrap-vue-wrapper",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
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
|
-
};
|
|
@@ -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/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
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-c310373d]{cursor:pointer}
|