bootstrap-vue-wrapper 1.6.0 → 1.7.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bootstrap-vue-wrapper",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "bootstrap 5 components in Vue3 warapper.",
|
|
5
5
|
"author": "Gabor Zemko <gaborzemko@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/zemkogabor/bootstrap-vue-wrapper",
|
|
@@ -12,30 +12,21 @@
|
|
|
12
12
|
},
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"bootstrap": "^5.
|
|
16
|
-
"
|
|
17
|
-
"vue": "^
|
|
18
|
-
"vue-i18n": "^9.1.6",
|
|
19
|
-
"vue-router": "^4.0.5"
|
|
15
|
+
"bootstrap": "^5.1",
|
|
16
|
+
"vue": "^3.2",
|
|
17
|
+
"vue-router": "^4.0"
|
|
20
18
|
},
|
|
21
19
|
"devDependencies": {
|
|
22
|
-
"
|
|
23
|
-
"@semantic-release/github": "^7.2.3",
|
|
24
|
-
"babel-eslint": "^10.1.0",
|
|
25
|
-
"eslint": "^7.28.0",
|
|
20
|
+
"eslint": "^8.8.0",
|
|
26
21
|
"eslint-config-standard": "^16.0.3",
|
|
27
|
-
"eslint-plugin-import": "^2.
|
|
22
|
+
"eslint-plugin-import": "^2.25.4",
|
|
28
23
|
"eslint-plugin-node": "^11.1.0",
|
|
29
|
-
"eslint-plugin-promise": "^
|
|
30
|
-
"eslint-plugin-vue": "^
|
|
31
|
-
"sass": "^1.34.1",
|
|
32
|
-
"sass-loader": "^10.2.0",
|
|
33
|
-
"semantic-release": "^17.4.7"
|
|
24
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
25
|
+
"eslint-plugin-vue": "^8.4.1"
|
|
34
26
|
},
|
|
35
27
|
"scripts": {
|
|
36
28
|
"eslint": "eslint '{**/*,*}.{js,ts,jsx,tsx,vue}'",
|
|
37
|
-
"eslint:fix": "npm run eslint -- --fix"
|
|
38
|
-
"semantic-release": "semantic-release"
|
|
29
|
+
"eslint:fix": "npm run eslint -- --fix"
|
|
39
30
|
},
|
|
40
31
|
"keywords": [
|
|
41
32
|
"bootstrap",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<tr v-else-if="items.length === 0">
|
|
32
32
|
<td :colspan="fields.length">
|
|
33
33
|
<slot name="empty">
|
|
34
|
-
<div
|
|
34
|
+
<div v-t="'table.empty_text'" class="text-center" />
|
|
35
35
|
</slot>
|
|
36
36
|
</td>
|
|
37
37
|
</tr>
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
}"
|
|
44
44
|
>
|
|
45
45
|
<slot
|
|
46
|
-
name="td"
|
|
47
46
|
:key="key"
|
|
47
|
+
name="td"
|
|
48
48
|
:field="field.key"
|
|
49
49
|
:item="field.key in item ? item[field.key] : null"
|
|
50
50
|
>
|
package/src/mixins/validator.js
CHANGED
|
@@ -8,6 +8,15 @@ export default {
|
|
|
8
8
|
invalidMessage: null,
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
|
+
props: {
|
|
12
|
+
/**
|
|
13
|
+
* If this is true the validation message does not appear.
|
|
14
|
+
*/
|
|
15
|
+
hideValidationMessage: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: false,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
11
20
|
methods: {
|
|
12
21
|
/**
|
|
13
22
|
* On invalid event.
|
|
@@ -15,6 +24,10 @@ export default {
|
|
|
15
24
|
* @param event
|
|
16
25
|
*/
|
|
17
26
|
onInvalid(event) {
|
|
27
|
+
if (this.hideValidationMessage) {
|
|
28
|
+
return
|
|
29
|
+
}
|
|
30
|
+
|
|
18
31
|
this.invalidMessage = this.getInvalidMessage(event.target)
|
|
19
32
|
},
|
|
20
33
|
/**
|
|
@@ -33,7 +46,9 @@ export default {
|
|
|
33
46
|
validationTarget.setCustomValidity('')
|
|
34
47
|
}
|
|
35
48
|
|
|
36
|
-
|
|
49
|
+
if (!this.hideValidationMessage) {
|
|
50
|
+
this.invalidMessage = this.getInvalidMessage(validationTarget)
|
|
51
|
+
}
|
|
37
52
|
},
|
|
38
53
|
/**
|
|
39
54
|
* Return invalid message.
|