From c1257c2bfc62caf42de0ca6132d1a6c50b4d941c Mon Sep 17 00:00:00 2001 From: Aaron M Date: Mon, 20 Mar 2017 18:08:10 -0600 Subject: [PATCH 1/6] fix grammar and spelling on themes page docs (#602) --- docs/src/pages/themes/DynamicThemes.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/pages/themes/DynamicThemes.vue b/docs/src/pages/themes/DynamicThemes.vue index 766f055..6db988a 100644 --- a/docs/src/pages/themes/DynamicThemes.vue +++ b/docs/src/pages/themes/DynamicThemes.vue @@ -2,10 +2,10 @@
-

Vue Material have a complete theme suite. You can create several themes and apply them on-demand. Like on this documentation website you can set a different theme per-page using the API. But you can have a advanced way to change themes using dynamic themes.

-

You can apply a theme only in a single area of your application using the <md-theme>. If the theme component have only one child element then the theme definition will be attached to this particular element. In other case the component will wrap all of it's children in a <div> tag (or you can customize the output tag).

-

Also every single component in Vue Material suite have a md-theme attribute to set his theme.

-

All the components will inherit all theme properties from it's parents. If the direct parent doesn't have a theme definition the theme will be resolved by its closest parent or the current theme of the entire application.

+

Vue Material have a complete theme suite. You can create several themes and apply them on-demand. Like on this documentation website you can set a different theme per-page using the API. But you can have an advanced way to change themes using dynamic themes.

+

You can apply a theme only in a single area of your application using the <md-theme>. If the theme component has only one child element then the theme definition will be attached to this particular element. In other cases the component will wrap all of its children in a <div> tag (or you can customize the output tag).

+

Also every single component in Vue Material suite has a md-theme attribute to set its theme.

+

All the components will inherit all theme properties from its parents. If the direct parent doesn't have a theme definition the theme will be resolved by its closest parent or the current theme of the entire application.

From a5327f0a6cfce0c63c2a5798cc12be13c024cf60 Mon Sep 17 00:00:00 2001 From: Jonatas Walker Date: Mon, 20 Mar 2017 21:40:55 -0300 Subject: [PATCH 2/6] fix table arrow sort (#347) --- src/components/mdTable/mdTableHead.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/mdTable/mdTableHead.vue b/src/components/mdTable/mdTableHead.vue index 064f9cb..52cb536 100644 --- a/src/components/mdTable/mdTableHead.vue +++ b/src/components/mdTable/mdTableHead.vue @@ -2,7 +2,7 @@
- arrow_downward + arrow_upward From b86cb6dae0f8db67172cc88a25093a97a4bcee73 Mon Sep 17 00:00:00 2001 From: Marcos Moura Date: Mon, 20 Mar 2017 22:24:46 -0300 Subject: [PATCH 3/6] fix badges alignment --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 57212d4..1707e24 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,21 @@

Material Design for Vue.js

- Downloads + + Downloads + - Version + + Version + - License + + License + - Gitter Chat
+ + Gitter Chat +

Vue Material is lightweight framework built exactly according to the Material Design specs. From 1371d6c690c33a82af4645b1ee29125f4f8c1c31 Mon Sep 17 00:00:00 2001 From: Monisan Fu Date: Mon, 8 May 2017 06:35:07 +0800 Subject: [PATCH 4/6] Add CDNJS version badge in README.md (#718) This badge will show the version on CDNJS! --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 1707e24..7a46d57 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ Version + + Version + + License From 4bcb6870ce374c025b38c92d8cd1142c6647cf4d Mon Sep 17 00:00:00 2001 From: Pablo Henrique Date: Sun, 7 May 2017 19:41:21 -0300 Subject: [PATCH 5/6] Issue#544 (#674) * chips autocomplete * criando autocomplete * base solida * fixing issue #544 * removing old files * reduced debounce time --- docs/src/pages/components/Input.vue | 12 ++++++++++++ src/components/mdInputContainer/common.js | 22 ++++++++++++++++++++-- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/docs/src/pages/components/Input.vue b/docs/src/pages/components/Input.vue index 8bc3c70..f3e3d97 100644 --- a/docs/src/pages/components/Input.vue +++ b/docs/src/pages/components/Input.vue @@ -71,6 +71,12 @@ Sets the type. Default text + + debounce + Number + Debounce the change and input events emission. Default 300ms + + disabled Boolean @@ -115,6 +121,12 @@ A required model object to bind the value. + + debounce + Number + Debounce the change and input events emission. Default 300ms + + disabled Boolean diff --git a/src/components/mdInputContainer/common.js b/src/components/mdInputContainer/common.js index 4cf4800..c82fe60 100644 --- a/src/components/mdInputContainer/common.js +++ b/src/components/mdInputContainer/common.js @@ -1,11 +1,21 @@ export default { props: { value: [String, Number], + debounce: { + type: Number, + default: 3E2 + }, disabled: Boolean, required: Boolean, maxlength: [Number, String], + name: String, placeholder: String }, + data() { + return { + timeout: 0 + }; + }, watch: { value(value) { this.setParentValue(value); @@ -29,6 +39,15 @@ export default { this.parentContainer.enableCounter = this.maxlength > 0; this.parentContainer.counterLength = this.maxlength; }, + lazyEventEmitter() { + if (this.timeout) { + window.clearTimeout(this.timeout); + } + this.timeout = window.setTimeout(() => { + this.$emit('change', this.$el.value); + this.$emit('input', this.$el.value); + }, this.debounce); + }, setParentValue(value) { this.parentContainer.setValue(value || this.$el.value); }, @@ -58,8 +77,7 @@ export default { }, onInput() { this.updateValues(); - this.$emit('change', this.$el.value); - this.$emit('input', this.$el.value); + this.lazyEventEmitter(); } } }; From 369f3f0e392dd4fcc2c4e26e80a2e36d6dcf54cd Mon Sep 17 00:00:00 2001 From: supersun Date: Mon, 8 May 2017 06:45:43 +0800 Subject: [PATCH 6/6] fixed when npm install extract-text-webpack-plugin@beta not found error ( #665 ) (#666) * Update package.json * Update mdSpinner.vue --- package.json | 2 +- src/components/mdSpinner/mdSpinner.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 36dbfa2..5d5a5e2 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "eslint-plugin-html": "^2.0.0", "eventsource-polyfill": "^0.9.6", "express": "^4.14.1", - "extract-text-webpack-plugin": "beta", + "extract-text-webpack-plugin": "^2.1.0", "file-loader": "^0.10.0", "friendly-errors-webpack-plugin": "^1.1.3", "highlight.js": "^9.9.0", diff --git a/src/components/mdSpinner/mdSpinner.vue b/src/components/mdSpinner/mdSpinner.vue index 0262f40..629e366 100644 --- a/src/components/mdSpinner/mdSpinner.vue +++ b/src/components/mdSpinner/mdSpinner.vue @@ -2,7 +2,7 @@
- +