File tree Expand file tree Collapse file tree 7 files changed +1133
-985
lines changed Expand file tree Collapse file tree 7 files changed +1133
-985
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this project will be documented in this file.
4
4
5
+ ### 1.0.8 - (2019-02-15)
6
+
7
+ * fix(d-slider): add nouislider keyboard support
8
+
5
9
### 1.0.7 - (2019-01-20)
6
10
7
- * fix(d-textarea): fix(d-textarea): dynamic height based on max-rows #12
11
+ * fix(d-textarea): dynamic height based on max-rows #12
8
12
9
13
### 1.0.6 - (2018-11-20)
10
14
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " shards-vue" ,
3
- "version" : " 1.0.7 " ,
3
+ "version" : " 1.0.8 " ,
4
4
"license" : " MIT" ,
5
5
"description" : " A free, beautiful and modern Vue.js UI kit based on the Shards UI kit." ,
6
6
"main" : " dist/shards-vue.common.js" ,
83
83
}
84
84
],
85
85
"dependencies" : {
86
- "bootstrap" : " ^4.1.3 " ,
87
- "shards-ui" : " ^2.1 .0" ,
86
+ "bootstrap" : " ^4.6.1 " ,
87
+ "shards-ui" : " ^3.0 .0" ,
88
88
"lodash.xor" : " ^4.5.0" ,
89
- "nouislider" : " ^11 .1.0 " ,
89
+ "nouislider" : " ^13 .1.1 " ,
90
90
"popper.js" : " ^1.14.4" ,
91
- "vue-clickaway " : " ^2 .2.2 " ,
91
+ "vue3-click-away " : " ^1 .2.1 " ,
92
92
"vuejs-datepicker" : " ^1.5.3"
93
93
},
94
94
"devDependencies" : {
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<textarea
3
3
ref =" input"
4
+ v-model =" localValue"
4
5
:class =" [
5
6
plaintext ? 'form-control-plaintext' : 'form-control',
6
7
plaintext ? 'w-100' : '',
19
20
:wrap =" wrap"
20
21
:aria-required =" required ? 'true' : null"
21
22
:aria-invalid =" computedAriaInvalid"
22
- @input =" handleInput"
23
23
></textarea >
24
24
</template >
25
25
@@ -34,6 +34,13 @@ export default {
34
34
};
35
35
},
36
36
props: {
37
+ /**
38
+ * The element value.
39
+ */
40
+ value: {
41
+ type: String ,
42
+ default: ' '
43
+ },
37
44
/**
38
45
* The element name.
39
46
*/
@@ -241,10 +248,5 @@ export default {
241
248
}
242
249
}
243
250
},
244
- methods: {
245
- handleInput (e ) {
246
- this .localValue = e .target .value ;
247
- }
248
- }
249
251
};
250
252
</script >
Original file line number Diff line number Diff line change 11
11
disabled ? 'disabled' : ''
12
12
]"
13
13
:aria-disabled =" computedAriaDisabled"
14
- @click.native =" handleClick" >
14
+ @click =" handleClick" >
15
15
<slot >Link</slot >
16
16
</component >
17
17
</template >
Original file line number Diff line number Diff line change @@ -56,11 +56,18 @@ export default {
56
56
centered: {
57
57
type: Boolean ,
58
58
default: false
59
- }
59
+ },
60
+ /**
61
+ * No close on backdrop click.
62
+ */
63
+ noCloseOnBackdrop: {
64
+ type: Boolean ,
65
+ default: false
66
+ },
60
67
},
61
68
methods: {
62
69
away () {
63
- if (this .noBackdrop ) {
70
+ if (this .noBackdrop || this . noCloseOnBackdrop ) {
64
71
return ;
65
72
}
66
73
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ export default {
92
92
93
93
noUiSlider .create (this .$el , config)
94
94
95
- this .$el .noUiSlider .on (' slide ' , () => {
95
+ this .$el .noUiSlider .on (' update ' , () => {
96
96
const value = this .$el .noUiSlider .get ()
97
97
if (value !== this .value ) {
98
98
this .$emit (' input' , value)
You can’t perform that action at this time.
0 commit comments