diff --git a/README.md b/README.md index 7a46d57..6f9a319 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,9 @@

-Vue Material is lightweight framework built exactly according to the Material Design specs. +Vue Material is lightweight framework built exactly according to the Material Design specs. -It aims to deliver a collection of reusable components and a series of UI Elements to build applications with support to all modern Web Browsers through Vue 2. +It aims to deliver a collection of reusable components and a series of UI Elements to build applications with support to all modern Web Browsers through Vue 2. Build powerful and well-designed web apps that can fit on every screen. You can generate and use themes dynamically, use components on demand, take advantage of UI Elements and Components with an ease-to-use API. @@ -114,11 +114,11 @@ Vue Material supports the latest version of all Browsers. This means: * Thanks a lot to elviskang for donating the npm package name! * Thanks to Evan You for allowing me to use Vue.js Logo. -## Internal Dependencies +## Internal Dependencies You don't need to include any other library to work with vue-material. The focus of this project is to have a standalone build with no external dependence, but aiming to deliver the best experience without break the compatibility with the Vue.js core. * vue * autosize * element.scrollintoviewifneeded-polyfill -## License +## License MIT diff --git a/docs/src/pages/components/BottomBar.vue b/docs/src/pages/components/BottomBar.vue index f51d465..3c22b1d 100644 --- a/docs/src/pages/components/BottomBar.vue +++ b/docs/src/pages/components/BottomBar.vue @@ -94,7 +94,7 @@ disabled Boolean - Disable the item and prevent his actions. Default false + Disable the item and prevent its actions. Default false diff --git a/docs/src/pages/components/Buttons.vue b/docs/src/pages/components/Buttons.vue index 5689aa1..cf6f6ee 100644 --- a/docs/src/pages/components/Buttons.vue +++ b/docs/src/pages/components/Buttons.vue @@ -26,7 +26,7 @@ disabled Boolean - Disable the button and prevent his actions. Default false + Disable the button and prevent its actions. Default false @@ -79,32 +79,32 @@ md-fab-top-left - Position the md-fab absolutely on the top left of his parent + Position the md-fab absolutely on the top left of its parent md-fab-top-center - Position the md-fab absolutely on the top center of his parent + Position the md-fab absolutely on the top center of its parent md-fab-top-right - Position the md-fab absolutely on the top right of his parent + Position the md-fab absolutely on the top right of its parent md-fab-bottom-left - Position the md-fab absolutely on the bottom left of his parent + Position the md-fab absolutely on the bottom left of its parent md-fab-bottom-center - Position the md-fab absolutely on the bottom center of his parent + Position the md-fab absolutely on the bottom center of its parent md-fab-bottom-right - Position the md-fab absolutely on the bottom right of his parent + Position the md-fab absolutely on the bottom right of its parent diff --git a/docs/src/pages/components/Checkbox.vue b/docs/src/pages/components/Checkbox.vue index 58cf13a..9b4f233 100644 --- a/docs/src/pages/components/Checkbox.vue +++ b/docs/src/pages/components/Checkbox.vue @@ -43,7 +43,7 @@ disabled Boolean - Disable the checkbox and prevent his actions. Default false + Disable the checkbox and prevent its actions. Default false @@ -61,7 +61,7 @@ change Receive the state of the checkbox - Triggered when the checkbox changes his value. + Triggered when the checkbox changes its value. diff --git a/docs/src/pages/components/Chips.vue b/docs/src/pages/components/Chips.vue index dfe42e6..9f6ab7a 100644 --- a/docs/src/pages/components/Chips.vue +++ b/docs/src/pages/components/Chips.vue @@ -20,7 +20,7 @@ disabled Boolean - Disable the chip and prevent his actions. Default: false + Disable the chip and prevent its actions. Default: false @@ -81,7 +81,7 @@ disabled Boolean - Disable the chips and prevent his actions. Default: false + Disable the chips and prevent its actions. Default: false diff --git a/docs/src/pages/components/Dialog.vue b/docs/src/pages/components/Dialog.vue index b418c40..c095686 100644 --- a/docs/src/pages/components/Dialog.vue +++ b/docs/src/pages/components/Dialog.vue @@ -534,6 +534,7 @@ :md-cancel-text="prompt.cancel" @open="onOpen" @close="onClose" + v-model="prompt.value" ref="dialog6"> </md-dialog-prompt> diff --git a/docs/src/pages/components/File.vue b/docs/src/pages/components/File.vue index 2b80f0e..5d6df9e 100644 --- a/docs/src/pages/components/File.vue +++ b/docs/src/pages/components/File.vue @@ -38,7 +38,7 @@ disabled Boolean - Disable the input and prevent his actions. Default false + Disable the input and prevent its actions. Default false diff --git a/docs/src/pages/components/Input.vue b/docs/src/pages/components/Input.vue index 679ad39..8f06eda 100644 --- a/docs/src/pages/components/Input.vue +++ b/docs/src/pages/components/Input.vue @@ -86,7 +86,7 @@ disabled Boolean - Disable the input and prevent his actions. Default false + Disable the input and prevent its actions. Default false @@ -136,7 +136,7 @@ disabled Boolean - Disable the textarea and prevent his actions. Default false + Disable the textarea and prevent its actions. Default false diff --git a/docs/src/pages/components/List.vue b/docs/src/pages/components/List.vue index 2cb5901..2527a1e 100644 --- a/docs/src/pages/components/List.vue +++ b/docs/src/pages/components/List.vue @@ -68,7 +68,7 @@ disabled Boolean - Disable the item and prevent his actions. Default false + Disable the item and prevent its actions. Default false @@ -974,6 +974,17 @@
+ <div class="phone-viewport"> + <md-list> + <md-list-item>Plain Text</md-list-item> + <md-list-item target="_blank" href="https://google.com">Link</md-list-item> + <md-list-item @click.native="openAlert">Button</md-list-item> + <md-list-item> + <router-link to="/components/list">Router View</router-link> + </md-list-item> + </md-list> + </div> + <div class="phone-viewport"> <md-list> <md-list-item> @@ -1022,6 +1033,55 @@ </md-list-item> </md-list> </div> + + <div class="phone-viewport"> + <md-list> + <md-list-item md-expand-multiple> + <md-icon>whatshot</md-icon> + <span>News</span> + + <md-list-expand> + <md-list> + <md-list-item class="md-inset">World</md-list-item> + <md-list-item class="md-inset">Americas</md-list-item> + <md-list-item class="md-inset">Europe</md-list-item> + </md-list> + </md-list-expand> + </md-list-item> + + <md-list-item md-expand-multiple> + <md-icon>videogame_asset</md-icon> + <span>Games</span> + + <md-list-expand> + <md-list> + <md-list-item class="md-inset">Console</md-list-item> + <md-list-item class="md-inset">PC</md-list-item> + <md-list-item class="md-inset">Phone</md-list-item> + </md-list> + </md-list-expand> + </md-list-item> + + <md-list-item md-expand-multiple> + <md-icon>video_library</md-icon> + <span>Video</span> + + <md-list-expand> + <md-list> + <md-list-item class="md-inset">Humor</md-list-item> + <md-list-item class="md-inset">Music</md-list-item> + <md-list-item class="md-inset">Movies</md-list-item> + <md-list-item class="md-inset">TV Shows</md-list-item> + </md-list> + </md-list-expand> + </md-list-item> + + <md-list-item> + <md-icon>shopping_basket</md-icon> + <span>Shop</span> + </md-list-item> + </md-list> + </div>
diff --git a/docs/src/pages/components/Menu.vue b/docs/src/pages/components/Menu.vue index 9d3e139..3929adb 100644 --- a/docs/src/pages/components/Menu.vue +++ b/docs/src/pages/components/Menu.vue @@ -125,7 +125,7 @@ disabled Boolean - Disable the button and prevent his actions. Default false + Disable the button and prevent its actions. Default false diff --git a/docs/src/pages/components/Radio.vue b/docs/src/pages/components/Radio.vue index 9b086b7..897552c 100644 --- a/docs/src/pages/components/Radio.vue +++ b/docs/src/pages/components/Radio.vue @@ -49,7 +49,7 @@ disabled Boolean - Disable the radio and prevent his actions. Default false + Disable the radio and prevent its actions. Default false @@ -67,7 +67,7 @@ change Receive the state of the radio - Triggered when the radio changes his value. + Triggered when the radio changes its value. diff --git a/docs/src/pages/components/Select.vue b/docs/src/pages/components/Select.vue index 93958cc..72fb43f 100644 --- a/docs/src/pages/components/Select.vue +++ b/docs/src/pages/components/Select.vue @@ -38,7 +38,7 @@ disabled Boolean - Disable the input and prevent his actions. Default false + Disable the input and prevent its actions. Default false @@ -115,7 +115,7 @@ disabled Boolean - Disable the button and prevent his actions. Default false + Disable the button and prevent its actions. Default false diff --git a/docs/src/pages/components/SpeedDial.vue b/docs/src/pages/components/SpeedDial.vue index 82fcc17..fcb7d9f 100644 --- a/docs/src/pages/components/SpeedDial.vue +++ b/docs/src/pages/components/SpeedDial.vue @@ -20,22 +20,22 @@ md-fab-top-left - Position the md-fab absolutely on the top left of his parent + Position the md-fab absolutely on the top left of its parent md-fab-top-center - Position the md-fab absolutely on the top center of his parent + Position the md-fab absolutely on the top center of its parent md-fab-top-right - Position the md-fab absolutely on the top right of his parent + Position the md-fab absolutely on the top right of its parent md-fab-bottom-left - Position the md-fab absolutely on the bottom left of his parent + Position the md-fab absolutely on the bottom left of its parent diff --git a/docs/src/pages/components/Switch.vue b/docs/src/pages/components/Switch.vue index b82fd07..e1f2434 100644 --- a/docs/src/pages/components/Switch.vue +++ b/docs/src/pages/components/Switch.vue @@ -49,7 +49,7 @@ disabled Boolean - Disable the switch and prevent his actions. Default false + Disable the switch and prevent its actions. Default false @@ -67,7 +67,7 @@ change Receive the state of the switch - Triggered when the switch changes his value. + Triggered when the switch changes its value. diff --git a/docs/src/pages/components/Tabs.vue b/docs/src/pages/components/Tabs.vue index 9ff04ee..6833d27 100644 --- a/docs/src/pages/components/Tabs.vue +++ b/docs/src/pages/components/Tabs.vue @@ -135,7 +135,7 @@ md-disabled Boolean - Disable the tab and prevent his actions. Default false + Disable the tab and prevent its actions. Default false diff --git a/src/components/mdBottomBar/mdBottomBarItem.vue b/src/components/mdBottomBar/mdBottomBarItem.vue index 6bf6b76..c9ca8b7 100644 --- a/src/components/mdBottomBar/mdBottomBarItem.vue +++ b/src/components/mdBottomBar/mdBottomBarItem.vue @@ -28,7 +28,7 @@ mdIconSrc: String, mdIconset: String, mdActive: Boolean, - disabled: String, + disabled: Boolean, href: String }, data() { diff --git a/src/components/mdMenu/mdMenuContent.vue b/src/components/mdMenu/mdMenuContent.vue index a26568c..4076c22 100644 --- a/src/components/mdMenu/mdMenuContent.vue +++ b/src/components/mdMenu/mdMenuContent.vue @@ -50,8 +50,13 @@ }, fireClick() { if (this.highlighted > 0) { - this.$children[0].$children[this.highlighted - 1].$el.click(); + this.getOptions()[this.highlighted - 1].$el.click(); } + }, + getOptions() { + return this.$children[0].$children.filter((child) => { + return child.$el.classList.contains('md-option'); + }); } }, mounted() { diff --git a/src/components/mdRadio/mdRadio.scss b/src/components/mdRadio/mdRadio.scss index c35da46..81a369d 100644 --- a/src/components/mdRadio/mdRadio.scss +++ b/src/components/mdRadio/mdRadio.scss @@ -1,7 +1,7 @@ @import '../../core/stylesheets/variables.scss'; $radio-size: 20px; -$radio-ripple-size: 48px; +$radio-touch-size: 48px; .md-radio { width: auto; @@ -19,8 +19,8 @@ $radio-ripple-size: 48px; transition: $swift-ease-out; &:before { - width: $radio-ripple-size; - height: $radio-ripple-size; + width: $radio-touch-size; + height: $radio-touch-size; position: absolute; top: 50%; left: 50%; @@ -57,8 +57,8 @@ $radio-ripple-size: 48px; color: rgba(#000, .54); .md-ripple { - width: $radio-ripple-size !important; - height: $radio-ripple-size !important; + width: $radio-touch-size !important; + height: $radio-touch-size !important; top: 0 !important; right: 0 !important; bottom: 0 !important; diff --git a/src/components/mdRadio/mdRadio.vue b/src/components/mdRadio/mdRadio.vue index f8604f4..abb9b68 100644 --- a/src/components/mdRadio/mdRadio.vue +++ b/src/components/mdRadio/mdRadio.vue @@ -1,7 +1,7 @@