Skip to content

Commit 54cb3ac

Browse files
https://github.com/DesignRevision/shards-vue/issues/33
DesignRevision#31 DesignRevision#28 DesignRevision#21 DesignRevision#15
1 parent b10a248 commit 54cb3ac

File tree

7 files changed

+1133
-985
lines changed

7 files changed

+1133
-985
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
### 1.0.8 - (2019-02-15)
6+
7+
* fix(d-slider): add nouislider keyboard support
8+
59
### 1.0.7 - (2019-01-20)
610

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
812

913
### 1.0.6 - (2018-11-20)
1014

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "shards-vue",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"license": "MIT",
55
"description": "A free, beautiful and modern Vue.js UI kit based on the Shards UI kit.",
66
"main": "dist/shards-vue.common.js",
@@ -83,12 +83,12 @@
8383
}
8484
],
8585
"dependencies": {
86-
"bootstrap": "^4.1.3",
87-
"shards-ui": "^2.1.0",
86+
"bootstrap": "^4.6.1",
87+
"shards-ui": "^3.0.0",
8888
"lodash.xor": "^4.5.0",
89-
"nouislider": "^11.1.0",
89+
"nouislider": "^13.1.1",
9090
"popper.js": "^1.14.4",
91-
"vue-clickaway": "^2.2.2",
91+
"vue3-click-away": "^1.2.1",
9292
"vuejs-datepicker": "^1.5.3"
9393
},
9494
"devDependencies": {

src/components/form-textarea/FormTextarea.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<textarea
33
ref="input"
4+
v-model="localValue"
45
:class="[
56
plaintext ? 'form-control-plaintext' : 'form-control',
67
plaintext ? 'w-100' : '',
@@ -19,7 +20,6 @@
1920
:wrap="wrap"
2021
:aria-required="required ? 'true' : null"
2122
:aria-invalid="computedAriaInvalid"
22-
@input="handleInput"
2323
></textarea>
2424
</template>
2525

@@ -34,6 +34,13 @@ export default {
3434
};
3535
},
3636
props: {
37+
/**
38+
* The element value.
39+
*/
40+
value: {
41+
type: String,
42+
default: ''
43+
},
3744
/**
3845
* The element name.
3946
*/
@@ -241,10 +248,5 @@ export default {
241248
}
242249
}
243250
},
244-
methods: {
245-
handleInput(e) {
246-
this.localValue = e.target.value;
247-
}
248-
}
249251
};
250252
</script>

src/components/link/Link.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
disabled ? 'disabled' : ''
1212
]"
1313
:aria-disabled="computedAriaDisabled"
14-
@click.native="handleClick">
14+
@click="handleClick">
1515
<slot>Link</slot>
1616
</component>
1717
</template>

src/components/modal/Modal.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,18 @@ export default {
5656
centered: {
5757
type: Boolean,
5858
default: false
59-
}
59+
},
60+
/**
61+
* No close on backdrop click.
62+
*/
63+
noCloseOnBackdrop: {
64+
type: Boolean,
65+
default: false
66+
},
6067
},
6168
methods: {
6269
away() {
63-
if (this.noBackdrop) {
70+
if (this.noBackdrop || this.noCloseOnBackdrop) {
6471
return;
6572
}
6673

src/components/slider/Slider.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default {
9292
9393
noUiSlider.create(this.$el, config)
9494
95-
this.$el.noUiSlider.on('slide', () => {
95+
this.$el.noUiSlider.on('update', () => {
9696
const value = this.$el.noUiSlider.get()
9797
if (value !== this.value) {
9898
this.$emit('input', value)

0 commit comments

Comments
 (0)